]>
Commit | Line | Data |
---|---|---|
db137867 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.61 for libratbox devel. | |
4 | # | |
3202e249 | 5 | # $Id: configure.ac 26168 2008-10-26 20:58:40Z androsyn $ |
db137867 AC |
6 | # |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
42 | # The user is always right. | |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
44 | echo "#! /bin/sh" >conf$$.sh | |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
53 | fi | |
54 | ||
55 | # Support unset when possible. | |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
62 | ||
63 | # IFS | |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" "" $as_nl" | |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
73 | case $0 in | |
74 | *[\\/]* ) as_myself=$0 ;; | |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 | done | |
82 | IFS=$as_save_IFS | |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 | { (exit 1); exit 1; } | |
94 | fi | |
95 | ||
96 | # Work around bugs in pre-3.0 UWIN ksh. | |
97 | for as_var in ENV MAIL MAILPATH | |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
100 | PS1='$ ' | |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
105 | for as_var in \ | |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
114 | fi | |
115 | done | |
116 | ||
117 | # Required to use basename. | |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
120 | as_expr=expr | |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
126 | as_basename=basename | |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
133 | as_me=`$as_basename -- "$0" || | |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
135 | X"$0" : 'X\(//\)$' \| \ | |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
137 | echo X/"$0" | | |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
151 | ||
152 | # CDPATH. | |
153 | $as_unset CDPATH | |
154 | ||
155 | ||
156 | if test "x$CONFIG_SHELL" = x; then | |
157 | if (eval ":") 2>/dev/null; then | |
158 | as_have_required=yes | |
159 | else | |
160 | as_have_required=no | |
161 | fi | |
162 | ||
163 | if test $as_have_required = yes && (eval ": | |
164 | (as_func_return () { | |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
179 | ||
180 | exitcode=0 | |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
187 | ||
188 | if as_func_failure; then | |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
191 | fi | |
192 | ||
193 | if as_func_ret_success; then | |
194 | : | |
195 | else | |
196 | exitcode=1 | |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
225 | do | |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
228 | case $as_dir in | |
229 | /*) | |
230 | for as_base in sh bash ksh sh5; do | |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 | done;; | |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | for as_shell in $as_candidate_shells $SHELL; do | |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 | # is contrary to our usage. Disable this feature. | |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
253 | ||
254 | fi | |
255 | ||
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 | # is contrary to our usage. Disable this feature. | |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
275 | fi | |
276 | ||
277 | ||
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
293 | } | |
294 | ||
295 | exitcode=0 | |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
302 | ||
303 | if as_func_failure; then | |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
307 | ||
308 | if as_func_ret_success; then | |
309 | : | |
310 | else | |
311 | exitcode=1 | |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
322 | else | |
323 | exitcode=1 | |
324 | echo positional parameters were not saved. | |
325 | fi | |
326 | ||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | ||
329 | ( | |
330 | as_lineno_1=$LINENO | |
331 | as_lineno_2=$LINENO | |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
334 | ||
335 | _ASEOF | |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 | fi | |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
387 | else | |
388 | exitcode=1 | |
389 | echo as_func_success failed. | |
390 | fi | |
391 | ||
392 | if as_func_failure; then | |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
399 | else | |
400 | exitcode=1 | |
401 | echo as_func_ret_success failed. | |
402 | fi | |
403 | ||
404 | if as_func_ret_failure; then | |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
411 | else | |
412 | exitcode=1 | |
413 | echo positional parameters were not saved. | |
414 | fi | |
415 | ||
416 | test \$exitcode = 0") || { | |
417 | echo No shell found that supports shell functions. | |
418 | echo Please tell autoconf@gnu.org about your system, | |
419 | echo including any error possibly output before this | |
420 | echo message | |
421 | } | |
422 | ||
423 | ||
424 | ||
425 | as_lineno_1=$LINENO | |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
429 | ||
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
432 | # line-number line after each line using $LINENO; the second 'sed' | |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 | sed -n ' | |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
444 | sed ' | |
445 | s/[$]LINENO.*/&-/ | |
446 | t lineno | |
447 | b | |
448 | :lineno | |
449 | N | |
450 | :loop | |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
452 | t loop | |
453 | s/-\n.*// | |
454 | ' >$as_me.lineno && | |
455 | chmod +x "$as_me.lineno" || | |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
457 | { (exit 1); exit 1; }; } | |
458 | ||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
461 | # original and so on. Autoconf is especially sensitive to this). | |
462 | . "./$as_me.lineno" | |
463 | # Exit status is that of the last command. | |
464 | exit | |
465 | } | |
466 | ||
467 | ||
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
474 | ECHO_C= ECHO_N= ECHO_T= | |
475 | case `echo -n x` in | |
476 | -n*) | |
477 | case `echo 'x\c'` in | |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 | *) ECHO_C='\c';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
483 | esac | |
484 | ||
485 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
487 | as_expr=expr | |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
493 | if test -d conf$$.dir; then | |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
497 | mkdir conf$$.dir | |
498 | fi | |
499 | echo >conf$$.file | |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
501 | as_ln_s='ln -s' | |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
507 | as_ln_s='cp -p' | |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
509 | as_ln_s=ln | |
510 | else | |
511 | as_ln_s='cp -p' | |
512 | fi | |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
514 | rmdir conf$$.dir 2>/dev/null | |
515 | ||
516 | if mkdir -p . 2>/dev/null; then | |
517 | as_mkdir_p=: | |
518 | else | |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
523 | if test -x / >/dev/null 2>&1; then | |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
534 | test -d "$1/."; | |
535 | else | |
536 | case $1 in | |
537 | -*)set "./$1";; | |
538 | esac; | |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 | ???[sx]*):;;*)false;;esac;fi | |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
545 | ||
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
553 | ||
554 | ||
555 | # Check that we are running under the correct shell. | |
556 | SHELL=${CONFIG_SHELL-/bin/sh} | |
557 | ||
558 | case X$ECHO in | |
559 | X*--fallback-echo) | |
560 | # Remove one level of quotation (which was required for Make). | |
561 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
562 | ;; | |
563 | esac | |
564 | ||
565 | echo=${ECHO-echo} | |
566 | if test "X$1" = X--no-reexec; then | |
567 | # Discard the --no-reexec flag, and continue. | |
568 | shift | |
569 | elif test "X$1" = X--fallback-echo; then | |
570 | # Avoid inline document here, it may be left over | |
571 | : | |
572 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
573 | # Yippee, $echo works! | |
574 | : | |
575 | else | |
576 | # Restart under the correct shell. | |
577 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
578 | fi | |
579 | ||
580 | if test "X$1" = X--fallback-echo; then | |
581 | # used as fallback echo | |
582 | shift | |
583 | cat <<EOF | |
584 | $* | |
585 | EOF | |
586 | exit 0 | |
587 | fi | |
588 | ||
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
590 | # if CDPATH is set. | |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
592 | ||
593 | if test -z "$ECHO"; then | |
594 | if test "X${echo_test_string+set}" != Xset; then | |
595 | # find a string as large as possible, as long as the shell can cope with it | |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | |
599 | echo_test_string=`eval $cmd` && | |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
601 | then | |
602 | break | |
603 | fi | |
604 | done | |
605 | fi | |
606 | ||
607 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
608 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
609 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
610 | : | |
611 | else | |
612 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
613 | # backslashes. This makes it impossible to quote backslashes using | |
614 | # echo "$something" | sed 's/\\/\\\\/g' | |
615 | # | |
616 | # So, first we look for a working echo in the user's PATH. | |
617 | ||
618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
619 | for dir in $PATH /usr/ucb; do | |
620 | IFS="$lt_save_ifs" | |
621 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
622 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
623 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
624 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
625 | echo="$dir/echo" | |
626 | break | |
627 | fi | |
628 | done | |
629 | IFS="$lt_save_ifs" | |
630 | ||
631 | if test "X$echo" = Xecho; then | |
632 | # We didn't find a better echo, so look for alternatives. | |
633 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
634 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
635 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
636 | # This shell has a builtin print -r that does the trick. | |
637 | echo='print -r' | |
638 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
639 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
640 | # If we have ksh, try running configure again with it. | |
641 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
642 | export ORIGINAL_CONFIG_SHELL | |
643 | CONFIG_SHELL=/bin/ksh | |
644 | export CONFIG_SHELL | |
645 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
646 | else | |
647 | # Try using printf. | |
648 | echo='printf %s\n' | |
649 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
650 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
651 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
652 | # Cool, printf works | |
653 | : | |
654 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
655 | test "X$echo_testing_string" = 'X\t' && | |
656 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
657 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
658 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
659 | export CONFIG_SHELL | |
660 | SHELL="$CONFIG_SHELL" | |
661 | export SHELL | |
662 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
663 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
664 | test "X$echo_testing_string" = 'X\t' && | |
665 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
666 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
667 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
668 | else | |
669 | # maybe with a smaller string... | |
670 | prev=: | |
671 | ||
672 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
673 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
674 | then | |
675 | break | |
676 | fi | |
677 | prev="$cmd" | |
678 | done | |
679 | ||
680 | if test "$prev" != 'sed 50q "$0"'; then | |
681 | echo_test_string=`eval $prev` | |
682 | export echo_test_string | |
683 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
684 | else | |
685 | # Oops. We lost completely, so just stick with echo. | |
686 | echo=echo | |
687 | fi | |
688 | fi | |
689 | fi | |
690 | fi | |
691 | fi | |
692 | fi | |
693 | ||
694 | # Copy echo and quote the copy suitably for passing to libtool from | |
695 | # the Makefile, instead of quoting the original, which is used later. | |
696 | ECHO=$echo | |
697 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
698 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
699 | fi | |
700 | ||
701 | ||
702 | ||
703 | ||
704 | tagnames=${tagnames+${tagnames},}CXX | |
705 | ||
706 | tagnames=${tagnames+${tagnames},}F77 | |
707 | ||
708 | exec 7<&0 </dev/null 6>&1 | |
709 | ||
710 | # Name of the host. | |
711 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
712 | # so uname gets run too. | |
713 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
714 | ||
715 | # | |
716 | # Initializations. | |
717 | # | |
718 | ac_default_prefix=/usr/local | |
719 | ac_clean_files= | |
720 | ac_config_libobj_dir=. | |
721 | LIBOBJS= | |
722 | cross_compiling=no | |
723 | subdirs= | |
724 | MFLAGS= | |
725 | MAKEFLAGS= | |
726 | SHELL=${CONFIG_SHELL-/bin/sh} | |
727 | ||
728 | # Identity of this package. | |
729 | PACKAGE_NAME='libratbox' | |
730 | PACKAGE_TARNAME='libratbox' | |
731 | PACKAGE_VERSION='devel' | |
732 | PACKAGE_STRING='libratbox devel' | |
733 | PACKAGE_BUGREPORT='' | |
734 | ||
735 | ac_default_prefix=/usr/local/libratbox | |
736 | # Factoring default headers for most tests. | |
737 | ac_includes_default="\ | |
738 | #include <stdio.h> | |
739 | #ifdef HAVE_SYS_TYPES_H | |
740 | # include <sys/types.h> | |
741 | #endif | |
742 | #ifdef HAVE_SYS_STAT_H | |
743 | # include <sys/stat.h> | |
744 | #endif | |
745 | #ifdef STDC_HEADERS | |
746 | # include <stdlib.h> | |
747 | # include <stddef.h> | |
748 | #else | |
749 | # ifdef HAVE_STDLIB_H | |
750 | # include <stdlib.h> | |
751 | # endif | |
752 | #endif | |
753 | #ifdef HAVE_STRING_H | |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
755 | # include <memory.h> | |
756 | # endif | |
757 | # include <string.h> | |
758 | #endif | |
759 | #ifdef HAVE_STRINGS_H | |
760 | # include <strings.h> | |
761 | #endif | |
762 | #ifdef HAVE_INTTYPES_H | |
763 | # include <inttypes.h> | |
764 | #endif | |
765 | #ifdef HAVE_STDINT_H | |
766 | # include <stdint.h> | |
767 | #endif | |
768 | #ifdef HAVE_UNISTD_H | |
769 | # include <unistd.h> | |
770 | #endif" | |
771 | ||
772 | ac_subst_vars='SHELL | |
773 | PATH_SEPARATOR | |
774 | PACKAGE_NAME | |
775 | PACKAGE_TARNAME | |
776 | PACKAGE_VERSION | |
777 | PACKAGE_STRING | |
778 | PACKAGE_BUGREPORT | |
779 | exec_prefix | |
780 | prefix | |
781 | program_transform_name | |
782 | bindir | |
783 | sbindir | |
784 | libexecdir | |
785 | datarootdir | |
786 | datadir | |
787 | sysconfdir | |
788 | sharedstatedir | |
789 | localstatedir | |
790 | includedir | |
791 | oldincludedir | |
792 | docdir | |
793 | infodir | |
794 | htmldir | |
795 | dvidir | |
796 | pdfdir | |
797 | psdir | |
798 | libdir | |
799 | localedir | |
800 | mandir | |
801 | DEFS | |
802 | ECHO_C | |
803 | ECHO_N | |
804 | ECHO_T | |
805 | LIBS | |
806 | build_alias | |
807 | host_alias | |
808 | target_alias | |
809 | INSTALL_PROGRAM | |
810 | INSTALL_SCRIPT | |
811 | INSTALL_DATA | |
812 | am__isrc | |
813 | CYGPATH_W | |
814 | PACKAGE | |
815 | VERSION | |
816 | ACLOCAL | |
817 | AUTOCONF | |
818 | AUTOMAKE | |
819 | AUTOHEADER | |
820 | MAKEINFO | |
821 | install_sh | |
822 | STRIP | |
823 | INSTALL_STRIP_PROGRAM | |
824 | mkdir_p | |
825 | AWK | |
826 | SET_MAKE | |
827 | am__leading_dot | |
828 | AMTAR | |
829 | am__tar | |
830 | am__untar | |
831 | CC | |
832 | CFLAGS | |
833 | LDFLAGS | |
834 | CPPFLAGS | |
835 | ac_ct_CC | |
836 | EXEEXT | |
837 | OBJEXT | |
838 | DEPDIR | |
839 | am__include | |
840 | am__quote | |
841 | AMDEP_TRUE | |
842 | AMDEP_FALSE | |
843 | AMDEPBACKSLASH | |
844 | CCDEPMODE | |
845 | am__fastdepCC_TRUE | |
846 | am__fastdepCC_FALSE | |
847 | GREP | |
848 | EGREP | |
849 | SED | |
850 | MAINTAINER_MODE_TRUE | |
851 | MAINTAINER_MODE_FALSE | |
852 | MAINT | |
853 | AS | |
854 | RM | |
855 | CP | |
856 | MV | |
857 | LN | |
db137867 AC |
858 | TOUCH |
859 | build | |
860 | build_cpu | |
861 | build_vendor | |
862 | build_os | |
863 | host | |
864 | host_cpu | |
865 | host_vendor | |
866 | host_os | |
867 | LN_S | |
868 | ECHO | |
3202e249 VY |
869 | AR |
870 | RANLIB | |
b676ea3b AC |
871 | DSYMUTIL |
872 | NMEDIT | |
db137867 AC |
873 | CPP |
874 | CXX | |
875 | CXXFLAGS | |
876 | ac_ct_CXX | |
877 | CXXDEPMODE | |
878 | am__fastdepCXX_TRUE | |
879 | am__fastdepCXX_FALSE | |
880 | CXXCPP | |
881 | F77 | |
882 | FFLAGS | |
883 | ac_ct_F77 | |
884 | LIBTOOL | |
db137867 AC |
885 | MINGW_TRUE |
886 | MINGW_FALSE | |
887 | NEED_CRYPT_TRUE | |
888 | NEED_CRYPT_FALSE | |
889 | CRYPT_LIB | |
890 | ALLOCA | |
709c1951 AC |
891 | PKG_CONFIG |
892 | GNUTLS_CFLAGS | |
893 | GNUTLS_LIBS | |
db137867 AC |
894 | PICFLAGS |
895 | SEDOBJ | |
c2ac22cc | 896 | SSL_CFLAGS |
db137867 AC |
897 | SSL_LIBS |
898 | RB_PREFIX | |
899 | LIBOBJS | |
900 | LTLIBOBJS' | |
901 | ac_subst_files='' | |
902 | ac_precious_vars='build_alias | |
903 | host_alias | |
904 | target_alias | |
905 | CC | |
906 | CFLAGS | |
907 | LDFLAGS | |
908 | LIBS | |
909 | CPPFLAGS | |
910 | CPP | |
911 | CXX | |
912 | CXXFLAGS | |
913 | CCC | |
914 | CXXCPP | |
915 | F77 | |
709c1951 AC |
916 | FFLAGS |
917 | PKG_CONFIG | |
918 | GNUTLS_CFLAGS | |
919 | GNUTLS_LIBS' | |
3202e249 | 920 | |
db137867 AC |
921 | |
922 | # Initialize some variables set by options. | |
923 | ac_init_help= | |
924 | ac_init_version=false | |
925 | # The variables have the same names as the options, with | |
926 | # dashes changed to underlines. | |
927 | cache_file=/dev/null | |
928 | exec_prefix=NONE | |
929 | no_create= | |
930 | no_recursion= | |
931 | prefix=NONE | |
932 | program_prefix=NONE | |
933 | program_suffix=NONE | |
934 | program_transform_name=s,x,x, | |
935 | silent= | |
936 | site= | |
937 | srcdir= | |
938 | verbose= | |
939 | x_includes=NONE | |
940 | x_libraries=NONE | |
941 | ||
942 | # Installation directory options. | |
943 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
944 | # and all the variables that are supposed to be based on exec_prefix | |
945 | # by default will actually change. | |
946 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
947 | # (The list follows the same order as the GNU Coding Standards.) | |
948 | bindir='${exec_prefix}/bin' | |
949 | sbindir='${exec_prefix}/sbin' | |
950 | libexecdir='${exec_prefix}/libexec' | |
951 | datarootdir='${prefix}/share' | |
952 | datadir='${datarootdir}' | |
953 | sysconfdir='${prefix}/etc' | |
954 | sharedstatedir='${prefix}/com' | |
955 | localstatedir='${prefix}/var' | |
956 | includedir='${prefix}/include' | |
957 | oldincludedir='/usr/include' | |
958 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
959 | infodir='${datarootdir}/info' | |
960 | htmldir='${docdir}' | |
961 | dvidir='${docdir}' | |
962 | pdfdir='${docdir}' | |
963 | psdir='${docdir}' | |
964 | libdir='${exec_prefix}/lib' | |
965 | localedir='${datarootdir}/locale' | |
966 | mandir='${datarootdir}/man' | |
967 | ||
968 | ac_prev= | |
969 | ac_dashdash= | |
970 | for ac_option | |
971 | do | |
972 | # If the previous option needs an argument, assign it. | |
973 | if test -n "$ac_prev"; then | |
974 | eval $ac_prev=\$ac_option | |
975 | ac_prev= | |
976 | continue | |
977 | fi | |
978 | ||
979 | case $ac_option in | |
980 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
981 | *) ac_optarg=yes ;; | |
982 | esac | |
983 | ||
984 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
985 | ||
986 | case $ac_dashdash$ac_option in | |
987 | --) | |
988 | ac_dashdash=yes ;; | |
989 | ||
990 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
991 | ac_prev=bindir ;; | |
992 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
993 | bindir=$ac_optarg ;; | |
994 | ||
995 | -build | --build | --buil | --bui | --bu) | |
996 | ac_prev=build_alias ;; | |
997 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
998 | build_alias=$ac_optarg ;; | |
999 | ||
1000 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1001 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1002 | ac_prev=cache_file ;; | |
1003 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1004 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1005 | cache_file=$ac_optarg ;; | |
1006 | ||
1007 | --config-cache | -C) | |
1008 | cache_file=config.cache ;; | |
1009 | ||
1010 | -datadir | --datadir | --datadi | --datad) | |
1011 | ac_prev=datadir ;; | |
1012 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1013 | datadir=$ac_optarg ;; | |
1014 | ||
1015 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1016 | | --dataroo | --dataro | --datar) | |
1017 | ac_prev=datarootdir ;; | |
1018 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1019 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1020 | datarootdir=$ac_optarg ;; | |
1021 | ||
1022 | -disable-* | --disable-*) | |
1023 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1024 | # Reject names that are not valid shell variable names. | |
1025 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1026 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1027 | { (exit 1); exit 1; }; } | |
1028 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1029 | eval enable_$ac_feature=no ;; | |
1030 | ||
1031 | -docdir | --docdir | --docdi | --doc | --do) | |
1032 | ac_prev=docdir ;; | |
1033 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1034 | docdir=$ac_optarg ;; | |
1035 | ||
1036 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1037 | ac_prev=dvidir ;; | |
1038 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1039 | dvidir=$ac_optarg ;; | |
1040 | ||
1041 | -enable-* | --enable-*) | |
1042 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1043 | # Reject names that are not valid shell variable names. | |
1044 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1045 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1046 | { (exit 1); exit 1; }; } | |
1047 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1048 | eval enable_$ac_feature=\$ac_optarg ;; | |
1049 | ||
1050 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1051 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1052 | | --exec | --exe | --ex) | |
1053 | ac_prev=exec_prefix ;; | |
1054 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1055 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1056 | | --exec=* | --exe=* | --ex=*) | |
1057 | exec_prefix=$ac_optarg ;; | |
1058 | ||
1059 | -gas | --gas | --ga | --g) | |
1060 | # Obsolete; use --with-gas. | |
1061 | with_gas=yes ;; | |
1062 | ||
1063 | -help | --help | --hel | --he | -h) | |
1064 | ac_init_help=long ;; | |
1065 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1066 | ac_init_help=recursive ;; | |
1067 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1068 | ac_init_help=short ;; | |
1069 | ||
1070 | -host | --host | --hos | --ho) | |
1071 | ac_prev=host_alias ;; | |
1072 | -host=* | --host=* | --hos=* | --ho=*) | |
1073 | host_alias=$ac_optarg ;; | |
1074 | ||
1075 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1076 | ac_prev=htmldir ;; | |
1077 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1078 | | --ht=*) | |
1079 | htmldir=$ac_optarg ;; | |
1080 | ||
1081 | -includedir | --includedir | --includedi | --included | --include \ | |
1082 | | --includ | --inclu | --incl | --inc) | |
1083 | ac_prev=includedir ;; | |
1084 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1085 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1086 | includedir=$ac_optarg ;; | |
1087 | ||
1088 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1089 | ac_prev=infodir ;; | |
1090 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1091 | infodir=$ac_optarg ;; | |
1092 | ||
1093 | -libdir | --libdir | --libdi | --libd) | |
1094 | ac_prev=libdir ;; | |
1095 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1096 | libdir=$ac_optarg ;; | |
1097 | ||
1098 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1099 | | --libexe | --libex | --libe) | |
1100 | ac_prev=libexecdir ;; | |
1101 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1102 | | --libexe=* | --libex=* | --libe=*) | |
1103 | libexecdir=$ac_optarg ;; | |
1104 | ||
1105 | -localedir | --localedir | --localedi | --localed | --locale) | |
1106 | ac_prev=localedir ;; | |
1107 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1108 | localedir=$ac_optarg ;; | |
1109 | ||
1110 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1111 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1112 | ac_prev=localstatedir ;; | |
1113 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1114 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1115 | localstatedir=$ac_optarg ;; | |
1116 | ||
1117 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1118 | ac_prev=mandir ;; | |
1119 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1120 | mandir=$ac_optarg ;; | |
1121 | ||
1122 | -nfp | --nfp | --nf) | |
1123 | # Obsolete; use --without-fp. | |
1124 | with_fp=no ;; | |
1125 | ||
1126 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1127 | | --no-cr | --no-c | -n) | |
1128 | no_create=yes ;; | |
1129 | ||
1130 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1131 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1132 | no_recursion=yes ;; | |
1133 | ||
1134 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1135 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1136 | | --oldin | --oldi | --old | --ol | --o) | |
1137 | ac_prev=oldincludedir ;; | |
1138 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1139 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1140 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1141 | oldincludedir=$ac_optarg ;; | |
1142 | ||
1143 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1144 | ac_prev=prefix ;; | |
1145 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1146 | prefix=$ac_optarg ;; | |
1147 | ||
1148 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1149 | | --program-pre | --program-pr | --program-p) | |
1150 | ac_prev=program_prefix ;; | |
1151 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1152 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1153 | program_prefix=$ac_optarg ;; | |
1154 | ||
1155 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1156 | | --program-suf | --program-su | --program-s) | |
1157 | ac_prev=program_suffix ;; | |
1158 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1159 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1160 | program_suffix=$ac_optarg ;; | |
1161 | ||
1162 | -program-transform-name | --program-transform-name \ | |
1163 | | --program-transform-nam | --program-transform-na \ | |
1164 | | --program-transform-n | --program-transform- \ | |
1165 | | --program-transform | --program-transfor \ | |
1166 | | --program-transfo | --program-transf \ | |
1167 | | --program-trans | --program-tran \ | |
1168 | | --progr-tra | --program-tr | --program-t) | |
1169 | ac_prev=program_transform_name ;; | |
1170 | -program-transform-name=* | --program-transform-name=* \ | |
1171 | | --program-transform-nam=* | --program-transform-na=* \ | |
1172 | | --program-transform-n=* | --program-transform-=* \ | |
1173 | | --program-transform=* | --program-transfor=* \ | |
1174 | | --program-transfo=* | --program-transf=* \ | |
1175 | | --program-trans=* | --program-tran=* \ | |
1176 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1177 | program_transform_name=$ac_optarg ;; | |
1178 | ||
1179 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1180 | ac_prev=pdfdir ;; | |
1181 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1182 | pdfdir=$ac_optarg ;; | |
1183 | ||
1184 | -psdir | --psdir | --psdi | --psd | --ps) | |
1185 | ac_prev=psdir ;; | |
1186 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1187 | psdir=$ac_optarg ;; | |
1188 | ||
1189 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1190 | | -silent | --silent | --silen | --sile | --sil) | |
1191 | silent=yes ;; | |
1192 | ||
1193 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1194 | ac_prev=sbindir ;; | |
1195 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1196 | | --sbi=* | --sb=*) | |
1197 | sbindir=$ac_optarg ;; | |
1198 | ||
1199 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1200 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1201 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1202 | | --sha | --sh) | |
1203 | ac_prev=sharedstatedir ;; | |
1204 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1205 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1206 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1207 | | --sha=* | --sh=*) | |
1208 | sharedstatedir=$ac_optarg ;; | |
1209 | ||
1210 | -site | --site | --sit) | |
1211 | ac_prev=site ;; | |
1212 | -site=* | --site=* | --sit=*) | |
1213 | site=$ac_optarg ;; | |
1214 | ||
1215 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1216 | ac_prev=srcdir ;; | |
1217 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1218 | srcdir=$ac_optarg ;; | |
1219 | ||
1220 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1221 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1222 | ac_prev=sysconfdir ;; | |
1223 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1224 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1225 | sysconfdir=$ac_optarg ;; | |
1226 | ||
1227 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1228 | ac_prev=target_alias ;; | |
1229 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1230 | target_alias=$ac_optarg ;; | |
1231 | ||
1232 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1233 | verbose=yes ;; | |
1234 | ||
1235 | -version | --version | --versio | --versi | --vers | -V) | |
1236 | ac_init_version=: ;; | |
1237 | ||
1238 | -with-* | --with-*) | |
1239 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1240 | # Reject names that are not valid shell variable names. | |
1241 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1242 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1243 | { (exit 1); exit 1; }; } | |
1244 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1245 | eval with_$ac_package=\$ac_optarg ;; | |
1246 | ||
1247 | -without-* | --without-*) | |
1248 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1249 | # Reject names that are not valid shell variable names. | |
1250 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1251 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1252 | { (exit 1); exit 1; }; } | |
1253 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1254 | eval with_$ac_package=no ;; | |
1255 | ||
1256 | --x) | |
1257 | # Obsolete; use --with-x. | |
1258 | with_x=yes ;; | |
1259 | ||
1260 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1261 | | --x-incl | --x-inc | --x-in | --x-i) | |
1262 | ac_prev=x_includes ;; | |
1263 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1264 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1265 | x_includes=$ac_optarg ;; | |
1266 | ||
1267 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1268 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1269 | ac_prev=x_libraries ;; | |
1270 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1271 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1272 | x_libraries=$ac_optarg ;; | |
1273 | ||
1274 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1275 | Try \`$0 --help' for more information." >&2 | |
1276 | { (exit 1); exit 1; }; } | |
1277 | ;; | |
1278 | ||
1279 | *=*) | |
1280 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1281 | # Reject names that are not valid shell variable names. | |
1282 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1283 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1284 | { (exit 1); exit 1; }; } | |
1285 | eval $ac_envvar=\$ac_optarg | |
1286 | export $ac_envvar ;; | |
1287 | ||
1288 | *) | |
1289 | # FIXME: should be removed in autoconf 3.0. | |
1290 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1291 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1292 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1293 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1294 | ;; | |
1295 | ||
1296 | esac | |
1297 | done | |
1298 | ||
1299 | if test -n "$ac_prev"; then | |
1300 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1301 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1302 | { (exit 1); exit 1; }; } | |
1303 | fi | |
1304 | ||
1305 | # Be sure to have absolute directory names. | |
1306 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1307 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1308 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1309 | libdir localedir mandir | |
1310 | do | |
1311 | eval ac_val=\$$ac_var | |
1312 | case $ac_val in | |
1313 | [\\/$]* | ?:[\\/]* ) continue;; | |
1314 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1315 | esac | |
1316 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1317 | { (exit 1); exit 1; }; } | |
1318 | done | |
1319 | ||
1320 | # There might be people who depend on the old broken behavior: `$host' | |
1321 | # used to hold the argument of --host etc. | |
1322 | # FIXME: To remove some day. | |
1323 | build=$build_alias | |
1324 | host=$host_alias | |
1325 | target=$target_alias | |
1326 | ||
1327 | # FIXME: To remove some day. | |
1328 | if test "x$host_alias" != x; then | |
1329 | if test "x$build_alias" = x; then | |
1330 | cross_compiling=maybe | |
1331 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1332 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1333 | elif test "x$build_alias" != "x$host_alias"; then | |
1334 | cross_compiling=yes | |
1335 | fi | |
1336 | fi | |
1337 | ||
1338 | ac_tool_prefix= | |
1339 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1340 | ||
1341 | test "$silent" = yes && exec 6>/dev/null | |
1342 | ||
1343 | ||
1344 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1345 | ac_ls_di=`ls -di .` && | |
1346 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1347 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1348 | { (exit 1); exit 1; }; } | |
1349 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1350 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1351 | { (exit 1); exit 1; }; } | |
1352 | ||
1353 | ||
1354 | # Find the source files, if location was not specified. | |
1355 | if test -z "$srcdir"; then | |
1356 | ac_srcdir_defaulted=yes | |
1357 | # Try the directory containing this script, then the parent directory. | |
1358 | ac_confdir=`$as_dirname -- "$0" || | |
1359 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1360 | X"$0" : 'X\(//\)[^/]' \| \ | |
1361 | X"$0" : 'X\(//\)$' \| \ | |
1362 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1363 | echo X"$0" | | |
1364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1365 | s//\1/ | |
1366 | q | |
1367 | } | |
1368 | /^X\(\/\/\)[^/].*/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)$/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\).*/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | s/.*/./; q'` | |
1381 | srcdir=$ac_confdir | |
1382 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1383 | srcdir=.. | |
1384 | fi | |
1385 | else | |
1386 | ac_srcdir_defaulted=no | |
1387 | fi | |
1388 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1389 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1390 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1391 | { (exit 1); exit 1; }; } | |
1392 | fi | |
1393 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1394 | ac_abs_confdir=`( | |
1395 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1396 | { (exit 1); exit 1; }; } | |
1397 | pwd)` | |
1398 | # When building in place, set srcdir=. | |
1399 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1400 | srcdir=. | |
1401 | fi | |
1402 | # Remove unnecessary trailing slashes from srcdir. | |
1403 | # Double slashes in file names in object file debugging info | |
1404 | # mess up M-x gdb in Emacs. | |
1405 | case $srcdir in | |
1406 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1407 | esac | |
1408 | for ac_var in $ac_precious_vars; do | |
1409 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1410 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1411 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1412 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1413 | done | |
1414 | ||
1415 | # | |
1416 | # Report the --help message. | |
1417 | # | |
1418 | if test "$ac_init_help" = "long"; then | |
1419 | # Omit some internal or obsolete options to make the list less imposing. | |
1420 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1421 | cat <<_ACEOF | |
1422 | \`configure' configures libratbox devel to adapt to many kinds of systems. | |
1423 | ||
1424 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1425 | ||
1426 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1427 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1428 | ||
1429 | Defaults for the options are specified in brackets. | |
1430 | ||
1431 | Configuration: | |
1432 | -h, --help display this help and exit | |
1433 | --help=short display options specific to this package | |
1434 | --help=recursive display the short help of all the included packages | |
1435 | -V, --version display version information and exit | |
1436 | -q, --quiet, --silent do not print \`checking...' messages | |
1437 | --cache-file=FILE cache test results in FILE [disabled] | |
1438 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1439 | -n, --no-create do not create output files | |
1440 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1441 | ||
1442 | Installation directories: | |
1443 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1444 | [$ac_default_prefix] | |
1445 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1446 | [PREFIX] | |
1447 | ||
1448 | By default, \`make install' will install all the files in | |
1449 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1450 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1451 | for instance \`--prefix=\$HOME'. | |
1452 | ||
1453 | For better control, use the options below. | |
1454 | ||
1455 | Fine tuning of the installation directories: | |
1456 | --bindir=DIR user executables [EPREFIX/bin] | |
1457 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1458 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1459 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1460 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1461 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1462 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1463 | --includedir=DIR C header files [PREFIX/include] | |
1464 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1465 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1466 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1467 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1468 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1469 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1470 | --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox] | |
1471 | --htmldir=DIR html documentation [DOCDIR] | |
1472 | --dvidir=DIR dvi documentation [DOCDIR] | |
1473 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1474 | --psdir=DIR ps documentation [DOCDIR] | |
1475 | _ACEOF | |
1476 | ||
1477 | cat <<\_ACEOF | |
1478 | ||
1479 | Program names: | |
1480 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1481 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1482 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1483 | ||
1484 | System types: | |
1485 | --build=BUILD configure for building on BUILD [guessed] | |
1486 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1487 | _ACEOF | |
1488 | fi | |
1489 | ||
1490 | if test -n "$ac_init_help"; then | |
1491 | case $ac_init_help in | |
1492 | short | recursive ) echo "Configuration of libratbox devel:";; | |
1493 | esac | |
1494 | cat <<\_ACEOF | |
1495 | ||
1496 | Optional Features: | |
1497 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1498 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1499 | --disable-dependency-tracking speeds up one-time build | |
1500 | --enable-dependency-tracking do not reject slow dependency extractors | |
1501 | --enable-static[=PKGS] build static libraries [default=no] | |
1502 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1503 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1504 | (and sometimes confusing) to the casual installer | |
1505 | --enable-fast-install[=PKGS] | |
1506 | optimize for fast installation [default=yes] | |
1507 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1508 | --disable-ipv6 Disable IPv6 support | |
1509 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1510 | --disable-openssl Disable OpenSSL support. | |
c2ac22cc VY |
1511 | --enable-gnutls Enable GnuTLS support. |
1512 | --disable-gnutls Disable GnuTLS support. | |
db137867 AC |
1513 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1514 | hard(aborts the daemon) | |
1515 | --enable-profile Enable profiling | |
1516 | --disable-balloc Disable the block allocator. | |
1517 | --enable-warnings Enable all sorts of warnings for debugging. | |
1518 | ||
1519 | Optional Packages: | |
1520 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1521 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1522 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1523 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1524 | both] | |
1525 | --with-tags[=TAGS] include additional configurations [automatic] | |
1526 | ||
1527 | Some influential environment variables: | |
1528 | CC C compiler command | |
1529 | CFLAGS C compiler flags | |
1530 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1531 | nonstandard directory <lib dir> | |
1532 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1533 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1534 | you have headers in a nonstandard directory <include dir> | |
1535 | CPP C preprocessor | |
1536 | CXX C++ compiler command | |
1537 | CXXFLAGS C++ compiler flags | |
1538 | CXXCPP C++ preprocessor | |
1539 | F77 Fortran 77 compiler command | |
1540 | FFLAGS Fortran 77 compiler flags | |
709c1951 AC |
1541 | PKG_CONFIG path to pkg-config utility |
1542 | GNUTLS_CFLAGS | |
1543 | C compiler flags for GNUTLS, overriding pkg-config | |
1544 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config | |
db137867 AC |
1545 | |
1546 | Use these variables to override the choices made by `configure' or to help | |
1547 | it to find libraries and programs with nonstandard names/locations. | |
1548 | ||
1549 | _ACEOF | |
1550 | ac_status=$? | |
1551 | fi | |
1552 | ||
1553 | if test "$ac_init_help" = "recursive"; then | |
1554 | # If there are subdirs, report their specific --help. | |
1555 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1556 | test -d "$ac_dir" || continue | |
1557 | ac_builddir=. | |
1558 | ||
1559 | case "$ac_dir" in | |
1560 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1561 | *) | |
1562 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1563 | # A ".." for each directory in $ac_dir_suffix. | |
1564 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1565 | case $ac_top_builddir_sub in | |
1566 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1567 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1568 | esac ;; | |
1569 | esac | |
1570 | ac_abs_top_builddir=$ac_pwd | |
1571 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1572 | # for backward compatibility: | |
1573 | ac_top_builddir=$ac_top_build_prefix | |
1574 | ||
1575 | case $srcdir in | |
1576 | .) # We are building in place. | |
1577 | ac_srcdir=. | |
1578 | ac_top_srcdir=$ac_top_builddir_sub | |
1579 | ac_abs_top_srcdir=$ac_pwd ;; | |
1580 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1581 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1582 | ac_top_srcdir=$srcdir | |
1583 | ac_abs_top_srcdir=$srcdir ;; | |
1584 | *) # Relative name. | |
1585 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1586 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1587 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1588 | esac | |
1589 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1590 | ||
1591 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1592 | # Check for guested configure. | |
1593 | if test -f "$ac_srcdir/configure.gnu"; then | |
1594 | echo && | |
1595 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1596 | elif test -f "$ac_srcdir/configure"; then | |
1597 | echo && | |
1598 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1599 | else | |
1600 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1601 | fi || ac_status=$? | |
1602 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1603 | done | |
1604 | fi | |
1605 | ||
1606 | test -n "$ac_init_help" && exit $ac_status | |
1607 | if $ac_init_version; then | |
1608 | cat <<\_ACEOF | |
1609 | libratbox configure devel | |
1610 | generated by GNU Autoconf 2.61 | |
1611 | ||
1612 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1613 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1614 | This configure script is free software; the Free Software Foundation | |
1615 | gives unlimited permission to copy, distribute and modify it. | |
1616 | ||
3202e249 | 1617 | $Id: configure.ac 26168 2008-10-26 20:58:40Z androsyn $ |
db137867 AC |
1618 | _ACEOF |
1619 | exit | |
1620 | fi | |
1621 | cat >config.log <<_ACEOF | |
1622 | This file contains any messages produced by compilers while | |
1623 | running configure, to aid debugging if configure makes a mistake. | |
1624 | ||
1625 | It was created by libratbox $as_me devel, which was | |
1626 | generated by GNU Autoconf 2.61. Invocation command line was | |
1627 | ||
1628 | $ $0 $@ | |
1629 | ||
1630 | _ACEOF | |
1631 | exec 5>>config.log | |
1632 | { | |
1633 | cat <<_ASUNAME | |
1634 | ## --------- ## | |
1635 | ## Platform. ## | |
1636 | ## --------- ## | |
1637 | ||
1638 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1639 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1640 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1641 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1642 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1643 | ||
1644 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1645 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1646 | ||
1647 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1648 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1649 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1650 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1651 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1652 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1653 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1654 | ||
1655 | _ASUNAME | |
1656 | ||
1657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1658 | for as_dir in $PATH | |
1659 | do | |
1660 | IFS=$as_save_IFS | |
1661 | test -z "$as_dir" && as_dir=. | |
1662 | echo "PATH: $as_dir" | |
1663 | done | |
1664 | IFS=$as_save_IFS | |
1665 | ||
1666 | } >&5 | |
1667 | ||
1668 | cat >&5 <<_ACEOF | |
1669 | ||
1670 | ||
1671 | ## ----------- ## | |
1672 | ## Core tests. ## | |
1673 | ## ----------- ## | |
1674 | ||
1675 | _ACEOF | |
1676 | ||
1677 | ||
1678 | # Keep a trace of the command line. | |
1679 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1680 | # Strip out --silent because we don't want to record it for future runs. | |
1681 | # Also quote any args containing shell meta-characters. | |
1682 | # Make two passes to allow for proper duplicate-argument suppression. | |
1683 | ac_configure_args= | |
1684 | ac_configure_args0= | |
1685 | ac_configure_args1= | |
1686 | ac_must_keep_next=false | |
1687 | for ac_pass in 1 2 | |
1688 | do | |
1689 | for ac_arg | |
1690 | do | |
1691 | case $ac_arg in | |
1692 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1694 | | -silent | --silent | --silen | --sile | --sil) | |
1695 | continue ;; | |
1696 | *\'*) | |
1697 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1698 | esac | |
1699 | case $ac_pass in | |
1700 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1701 | 2) | |
1702 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1703 | if test $ac_must_keep_next = true; then | |
1704 | ac_must_keep_next=false # Got value, back to normal. | |
1705 | else | |
1706 | case $ac_arg in | |
1707 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1708 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1709 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1710 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1711 | case "$ac_configure_args0 " in | |
1712 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1713 | esac | |
1714 | ;; | |
1715 | -* ) ac_must_keep_next=true ;; | |
1716 | esac | |
1717 | fi | |
1718 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1719 | ;; | |
1720 | esac | |
1721 | done | |
1722 | done | |
1723 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1724 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1725 | ||
1726 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1727 | # config.log. We remove comments because anyway the quotes in there | |
1728 | # would cause problems or look ugly. | |
1729 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1730 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1731 | trap 'exit_status=$? | |
1732 | # Save into config.log some information that might help in debugging. | |
1733 | { | |
1734 | echo | |
1735 | ||
1736 | cat <<\_ASBOX | |
1737 | ## ---------------- ## | |
1738 | ## Cache variables. ## | |
1739 | ## ---------------- ## | |
1740 | _ASBOX | |
1741 | echo | |
1742 | # The following way of writing the cache mishandles newlines in values, | |
1743 | ( | |
1744 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1745 | eval ac_val=\$$ac_var | |
1746 | case $ac_val in #( | |
1747 | *${as_nl}*) | |
1748 | case $ac_var in #( | |
1749 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1750 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1751 | esac | |
1752 | case $ac_var in #( | |
1753 | _ | IFS | as_nl) ;; #( | |
1754 | *) $as_unset $ac_var ;; | |
1755 | esac ;; | |
1756 | esac | |
1757 | done | |
1758 | (set) 2>&1 | | |
1759 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1760 | *${as_nl}ac_space=\ *) | |
1761 | sed -n \ | |
1762 | "s/'\''/'\''\\\\'\'''\''/g; | |
1763 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1764 | ;; #( | |
1765 | *) | |
1766 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1767 | ;; | |
1768 | esac | | |
1769 | sort | |
1770 | ) | |
1771 | echo | |
1772 | ||
1773 | cat <<\_ASBOX | |
1774 | ## ----------------- ## | |
1775 | ## Output variables. ## | |
1776 | ## ----------------- ## | |
1777 | _ASBOX | |
1778 | echo | |
1779 | for ac_var in $ac_subst_vars | |
1780 | do | |
1781 | eval ac_val=\$$ac_var | |
1782 | case $ac_val in | |
1783 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1784 | esac | |
1785 | echo "$ac_var='\''$ac_val'\''" | |
1786 | done | sort | |
1787 | echo | |
1788 | ||
1789 | if test -n "$ac_subst_files"; then | |
1790 | cat <<\_ASBOX | |
1791 | ## ------------------- ## | |
1792 | ## File substitutions. ## | |
1793 | ## ------------------- ## | |
1794 | _ASBOX | |
1795 | echo | |
1796 | for ac_var in $ac_subst_files | |
1797 | do | |
1798 | eval ac_val=\$$ac_var | |
1799 | case $ac_val in | |
1800 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1801 | esac | |
1802 | echo "$ac_var='\''$ac_val'\''" | |
1803 | done | sort | |
1804 | echo | |
1805 | fi | |
1806 | ||
1807 | if test -s confdefs.h; then | |
1808 | cat <<\_ASBOX | |
1809 | ## ----------- ## | |
1810 | ## confdefs.h. ## | |
1811 | ## ----------- ## | |
1812 | _ASBOX | |
1813 | echo | |
1814 | cat confdefs.h | |
1815 | echo | |
1816 | fi | |
1817 | test "$ac_signal" != 0 && | |
1818 | echo "$as_me: caught signal $ac_signal" | |
1819 | echo "$as_me: exit $exit_status" | |
1820 | } >&5 | |
1821 | rm -f core *.core core.conftest.* && | |
1822 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1823 | exit $exit_status | |
1824 | ' 0 | |
1825 | for ac_signal in 1 2 13 15; do | |
1826 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1827 | done | |
1828 | ac_signal=0 | |
1829 | ||
1830 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1831 | rm -f -r conftest* confdefs.h | |
1832 | ||
1833 | # Predefined preprocessor variables. | |
1834 | ||
1835 | cat >>confdefs.h <<_ACEOF | |
1836 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1837 | _ACEOF | |
1838 | ||
1839 | ||
1840 | cat >>confdefs.h <<_ACEOF | |
1841 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1842 | _ACEOF | |
1843 | ||
1844 | ||
1845 | cat >>confdefs.h <<_ACEOF | |
1846 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1847 | _ACEOF | |
1848 | ||
1849 | ||
1850 | cat >>confdefs.h <<_ACEOF | |
1851 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1852 | _ACEOF | |
1853 | ||
1854 | ||
1855 | cat >>confdefs.h <<_ACEOF | |
1856 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1857 | _ACEOF | |
1858 | ||
1859 | ||
1860 | # Let the site file select an alternate cache file if it wants to. | |
1861 | # Prefer explicitly selected file to automatically selected ones. | |
1862 | if test -n "$CONFIG_SITE"; then | |
1863 | set x "$CONFIG_SITE" | |
1864 | elif test "x$prefix" != xNONE; then | |
1865 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1866 | else | |
1867 | set x "$ac_default_prefix/share/config.site" \ | |
1868 | "$ac_default_prefix/etc/config.site" | |
1869 | fi | |
1870 | shift | |
1871 | for ac_site_file | |
1872 | do | |
1873 | if test -r "$ac_site_file"; then | |
1874 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1875 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1876 | sed 's/^/| /' "$ac_site_file" >&5 | |
1877 | . "$ac_site_file" | |
1878 | fi | |
1879 | done | |
1880 | ||
1881 | if test -r "$cache_file"; then | |
1882 | # Some versions of bash will fail to source /dev/null (special | |
1883 | # files actually), so we avoid doing that. | |
1884 | if test -f "$cache_file"; then | |
1885 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1886 | echo "$as_me: loading cache $cache_file" >&6;} | |
1887 | case $cache_file in | |
1888 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1889 | *) . "./$cache_file";; | |
1890 | esac | |
1891 | fi | |
1892 | else | |
1893 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1894 | echo "$as_me: creating cache $cache_file" >&6;} | |
1895 | >$cache_file | |
1896 | fi | |
1897 | ||
1898 | # Check that the precious variables saved in the cache have kept the same | |
1899 | # value. | |
1900 | ac_cache_corrupted=false | |
1901 | for ac_var in $ac_precious_vars; do | |
1902 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1903 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1904 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1905 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1906 | case $ac_old_set,$ac_new_set in | |
1907 | set,) | |
1908 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1909 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1910 | ac_cache_corrupted=: ;; | |
1911 | ,set) | |
1912 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1913 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1914 | ac_cache_corrupted=: ;; | |
1915 | ,);; | |
1916 | *) | |
1917 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1918 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1919 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1920 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1921 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1922 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1923 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1924 | ac_cache_corrupted=: | |
1925 | fi;; | |
1926 | esac | |
1927 | # Pass precious variables to config.status. | |
1928 | if test "$ac_new_set" = set; then | |
1929 | case $ac_new_val in | |
1930 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1931 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1932 | esac | |
1933 | case " $ac_configure_args " in | |
1934 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1935 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1936 | esac | |
1937 | fi | |
1938 | done | |
1939 | if $ac_cache_corrupted; then | |
1940 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1941 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1942 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1943 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1944 | { (exit 1); exit 1; }; } | |
1945 | fi | |
1946 | ||
1947 | ||
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | ||
1957 | ||
1958 | ||
1959 | ||
1960 | ||
1961 | ||
1962 | ||
1963 | ||
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | ||
1969 | ||
1970 | ||
1971 | ac_ext=c | |
1972 | ac_cpp='$CPP $CPPFLAGS' | |
1973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1976 | ||
1977 | ||
1978 | am__api_version='1.10' | |
1979 | ||
1980 | ac_aux_dir= | |
1981 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
1982 | if test -f "$ac_dir/install-sh"; then | |
1983 | ac_aux_dir=$ac_dir | |
1984 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1985 | break | |
1986 | elif test -f "$ac_dir/install.sh"; then | |
1987 | ac_aux_dir=$ac_dir | |
1988 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1989 | break | |
1990 | elif test -f "$ac_dir/shtool"; then | |
1991 | ac_aux_dir=$ac_dir | |
1992 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1993 | break | |
1994 | fi | |
1995 | done | |
1996 | if test -z "$ac_aux_dir"; then | |
1997 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
1998 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1999 | { (exit 1); exit 1; }; } | |
2000 | fi | |
2001 | ||
2002 | # These three variables are undocumented and unsupported, | |
2003 | # and are intended to be withdrawn in a future Autoconf release. | |
2004 | # They can cause serious problems if a builder's source tree is in a directory | |
2005 | # whose full name contains unusual characters. | |
2006 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2007 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2008 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2009 | ||
2010 | ||
2011 | # Find a good install program. We prefer a C program (faster), | |
2012 | # so one script is as good as another. But avoid the broken or | |
2013 | # incompatible versions: | |
2014 | # SysV /etc/install, /usr/sbin/install | |
2015 | # SunOS /usr/etc/install | |
2016 | # IRIX /sbin/install | |
2017 | # AIX /bin/install | |
2018 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2019 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2020 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2021 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2022 | # OS/2's system install, which has a completely different semantic | |
2023 | # ./install, which can be erroneously created by make from ./install.sh. | |
2024 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2025 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
2026 | if test -z "$INSTALL"; then | |
2027 | if test "${ac_cv_path_install+set}" = set; then | |
2028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2029 | else | |
2030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2031 | for as_dir in $PATH | |
2032 | do | |
2033 | IFS=$as_save_IFS | |
2034 | test -z "$as_dir" && as_dir=. | |
2035 | # Account for people who put trailing slashes in PATH elements. | |
2036 | case $as_dir/ in | |
2037 | ./ | .// | /cC/* | \ | |
2038 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2039 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2040 | /usr/ucb/* ) ;; | |
2041 | *) | |
2042 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2043 | # Don't use installbsd from OSF since it installs stuff as root | |
2044 | # by default. | |
2045 | for ac_prog in ginstall scoinst install; do | |
2046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2047 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2048 | if test $ac_prog = install && | |
2049 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2050 | # AIX install. It has an incompatible calling convention. | |
2051 | : | |
2052 | elif test $ac_prog = install && | |
2053 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2054 | # program-specific install script used by HP pwplus--don't use. | |
2055 | : | |
2056 | else | |
2057 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2058 | break 3 | |
2059 | fi | |
2060 | fi | |
2061 | done | |
2062 | done | |
2063 | ;; | |
2064 | esac | |
2065 | done | |
2066 | IFS=$as_save_IFS | |
2067 | ||
2068 | ||
2069 | fi | |
2070 | if test "${ac_cv_path_install+set}" = set; then | |
2071 | INSTALL=$ac_cv_path_install | |
2072 | else | |
2073 | # As a last resort, use the slow shell script. Don't cache a | |
2074 | # value for INSTALL within a source directory, because that will | |
2075 | # break other packages using the cache if that directory is | |
2076 | # removed, or if the value is a relative name. | |
2077 | INSTALL=$ac_install_sh | |
2078 | fi | |
2079 | fi | |
2080 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2081 | echo "${ECHO_T}$INSTALL" >&6; } | |
2082 | ||
2083 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2084 | # It thinks the first close brace ends the variable substitution. | |
2085 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2086 | ||
2087 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2088 | ||
2089 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2090 | ||
2091 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2092 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
2093 | # Just in case | |
2094 | sleep 1 | |
2095 | echo timestamp > conftest.file | |
2096 | # Do `set' in a subshell so we don't clobber the current shell's | |
2097 | # arguments. Must try -L first in case configure is actually a | |
2098 | # symlink; some systems play weird games with the mod time of symlinks | |
2099 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2100 | # directory). | |
2101 | if ( | |
2102 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2103 | if test "$*" = "X"; then | |
2104 | # -L didn't work. | |
2105 | set X `ls -t $srcdir/configure conftest.file` | |
2106 | fi | |
2107 | rm -f conftest.file | |
2108 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2109 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2110 | ||
2111 | # If neither matched, then we have a broken ls. This can happen | |
2112 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2113 | # broken ls alias from the environment. This has actually | |
2114 | # happened. Such a system could not be considered "sane". | |
2115 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2116 | alias in your environment" >&5 | |
2117 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2118 | alias in your environment" >&2;} | |
2119 | { (exit 1); exit 1; }; } | |
2120 | fi | |
2121 | ||
2122 | test "$2" = conftest.file | |
2123 | ) | |
2124 | then | |
2125 | # Ok. | |
2126 | : | |
2127 | else | |
2128 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2129 | Check your system clock" >&5 | |
2130 | echo "$as_me: error: newly created file is older than distributed files! | |
2131 | Check your system clock" >&2;} | |
2132 | { (exit 1); exit 1; }; } | |
2133 | fi | |
2134 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2135 | echo "${ECHO_T}yes" >&6; } | |
2136 | test "$program_prefix" != NONE && | |
2137 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2138 | # Use a double $ so make ignores it. | |
2139 | test "$program_suffix" != NONE && | |
2140 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2141 | # Double any \ or $. echo might interpret backslashes. | |
2142 | # By default was `s,x,x', remove it if useless. | |
2143 | cat <<\_ACEOF >conftest.sed | |
2144 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2145 | _ACEOF | |
2146 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2147 | rm -f conftest.sed | |
2148 | ||
2149 | # expand $ac_aux_dir to an absolute path | |
2150 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2151 | ||
2152 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2153 | # Use eval to expand $SHELL | |
2154 | if eval "$MISSING --run true"; then | |
2155 | am_missing_run="$MISSING --run " | |
2156 | else | |
2157 | am_missing_run= | |
2158 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2159 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2160 | fi | |
2161 | ||
2162 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2163 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
2164 | if test -z "$MKDIR_P"; then | |
2165 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2167 | else | |
2168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2169 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2170 | do | |
2171 | IFS=$as_save_IFS | |
2172 | test -z "$as_dir" && as_dir=. | |
2173 | for ac_prog in mkdir gmkdir; do | |
2174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2175 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2176 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2177 | 'mkdir (GNU coreutils) '* | \ | |
2178 | 'mkdir (coreutils) '* | \ | |
2179 | 'mkdir (fileutils) '4.1*) | |
2180 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2181 | break 3;; | |
2182 | esac | |
2183 | done | |
2184 | done | |
2185 | done | |
2186 | IFS=$as_save_IFS | |
2187 | ||
2188 | fi | |
2189 | ||
2190 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2191 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2192 | else | |
2193 | # As a last resort, use the slow shell script. Don't cache a | |
2194 | # value for MKDIR_P within a source directory, because that will | |
2195 | # break other packages using the cache if that directory is | |
2196 | # removed, or if the value is a relative name. | |
2197 | test -d ./--version && rmdir ./--version | |
2198 | MKDIR_P="$ac_install_sh -d" | |
2199 | fi | |
2200 | fi | |
2201 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
2202 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
2203 | ||
2204 | mkdir_p="$MKDIR_P" | |
2205 | case $mkdir_p in | |
2206 | [\\/$]* | ?:[\\/]*) ;; | |
2207 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2208 | esac | |
2209 | ||
2210 | for ac_prog in gawk mawk nawk awk | |
2211 | do | |
2212 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2213 | set dummy $ac_prog; ac_word=$2 | |
2214 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2216 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2218 | else | |
2219 | if test -n "$AWK"; then | |
2220 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2221 | else | |
2222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2223 | for as_dir in $PATH | |
2224 | do | |
2225 | IFS=$as_save_IFS | |
2226 | test -z "$as_dir" && as_dir=. | |
2227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2229 | ac_cv_prog_AWK="$ac_prog" | |
2230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2231 | break 2 | |
2232 | fi | |
2233 | done | |
2234 | done | |
2235 | IFS=$as_save_IFS | |
2236 | ||
2237 | fi | |
2238 | fi | |
2239 | AWK=$ac_cv_prog_AWK | |
2240 | if test -n "$AWK"; then | |
2241 | { echo "$as_me:$LINENO: result: $AWK" >&5 | |
2242 | echo "${ECHO_T}$AWK" >&6; } | |
2243 | else | |
2244 | { echo "$as_me:$LINENO: result: no" >&5 | |
2245 | echo "${ECHO_T}no" >&6; } | |
2246 | fi | |
2247 | ||
2248 | ||
2249 | test -n "$AWK" && break | |
2250 | done | |
2251 | ||
2252 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2253 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2254 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2255 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2257 | else | |
2258 | cat >conftest.make <<\_ACEOF | |
2259 | SHELL = /bin/sh | |
2260 | all: | |
2261 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2262 | _ACEOF | |
2263 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2264 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2265 | *@@@%%%=?*=@@@%%%*) | |
2266 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2267 | *) | |
2268 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2269 | esac | |
2270 | rm -f conftest.make | |
2271 | fi | |
2272 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2273 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2274 | echo "${ECHO_T}yes" >&6; } | |
2275 | SET_MAKE= | |
2276 | else | |
2277 | { echo "$as_me:$LINENO: result: no" >&5 | |
2278 | echo "${ECHO_T}no" >&6; } | |
2279 | SET_MAKE="MAKE=${MAKE-make}" | |
2280 | fi | |
2281 | ||
2282 | rm -rf .tst 2>/dev/null | |
2283 | mkdir .tst 2>/dev/null | |
2284 | if test -d .tst; then | |
2285 | am__leading_dot=. | |
2286 | else | |
2287 | am__leading_dot=_ | |
2288 | fi | |
2289 | rmdir .tst 2>/dev/null | |
2290 | ||
2291 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2292 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2293 | # is not polluted with repeated "-I." | |
2294 | am__isrc=' -I$(srcdir)' | |
2295 | # test to see if srcdir already configured | |
2296 | if test -f $srcdir/config.status; then | |
2297 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2298 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2299 | { (exit 1); exit 1; }; } | |
2300 | fi | |
2301 | fi | |
2302 | ||
2303 | # test whether we have cygpath | |
2304 | if test -z "$CYGPATH_W"; then | |
2305 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2306 | CYGPATH_W='cygpath -w' | |
2307 | else | |
2308 | CYGPATH_W=echo | |
2309 | fi | |
2310 | fi | |
2311 | ||
2312 | ||
2313 | # Define the identity of the package. | |
2314 | PACKAGE=libratbox | |
2315 | VERSION=devel | |
2316 | ||
2317 | ||
2318 | # Some tools Automake needs. | |
2319 | ||
2320 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2321 | ||
2322 | ||
2323 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2324 | ||
2325 | ||
2326 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2327 | ||
2328 | ||
2329 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2330 | ||
2331 | ||
2332 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2333 | ||
2334 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
2335 | ||
2336 | # Installed binaries are usually stripped using `strip' when the user | |
2337 | # run `make install-strip'. However `strip' might not be the right | |
2338 | # tool to use in cross-compilation environments, therefore Automake | |
2339 | # will honor the `STRIP' environment variable to overrule this program. | |
2340 | if test "$cross_compiling" != no; then | |
2341 | if test -n "$ac_tool_prefix"; then | |
2342 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2343 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2344 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2346 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2348 | else | |
2349 | if test -n "$STRIP"; then | |
2350 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2351 | else | |
2352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2353 | for as_dir in $PATH | |
2354 | do | |
2355 | IFS=$as_save_IFS | |
2356 | test -z "$as_dir" && as_dir=. | |
2357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2359 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2361 | break 2 | |
2362 | fi | |
2363 | done | |
2364 | done | |
2365 | IFS=$as_save_IFS | |
2366 | ||
2367 | fi | |
2368 | fi | |
2369 | STRIP=$ac_cv_prog_STRIP | |
2370 | if test -n "$STRIP"; then | |
2371 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2372 | echo "${ECHO_T}$STRIP" >&6; } | |
2373 | else | |
2374 | { echo "$as_me:$LINENO: result: no" >&5 | |
2375 | echo "${ECHO_T}no" >&6; } | |
2376 | fi | |
2377 | ||
2378 | ||
2379 | fi | |
2380 | if test -z "$ac_cv_prog_STRIP"; then | |
2381 | ac_ct_STRIP=$STRIP | |
2382 | # Extract the first word of "strip", so it can be a program name with args. | |
2383 | set dummy strip; ac_word=$2 | |
2384 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2386 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2388 | else | |
2389 | if test -n "$ac_ct_STRIP"; then | |
2390 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2391 | else | |
2392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2393 | for as_dir in $PATH | |
2394 | do | |
2395 | IFS=$as_save_IFS | |
2396 | test -z "$as_dir" && as_dir=. | |
2397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2399 | ac_cv_prog_ac_ct_STRIP="strip" | |
2400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2401 | break 2 | |
2402 | fi | |
2403 | done | |
2404 | done | |
2405 | IFS=$as_save_IFS | |
2406 | ||
2407 | fi | |
2408 | fi | |
2409 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2410 | if test -n "$ac_ct_STRIP"; then | |
2411 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2412 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
2413 | else | |
2414 | { echo "$as_me:$LINENO: result: no" >&5 | |
2415 | echo "${ECHO_T}no" >&6; } | |
2416 | fi | |
2417 | ||
2418 | if test "x$ac_ct_STRIP" = x; then | |
2419 | STRIP=":" | |
2420 | else | |
2421 | case $cross_compiling:$ac_tool_warned in | |
2422 | yes:) | |
2423 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2424 | whose name does not start with the host triplet. If you think this | |
2425 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2426 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2427 | whose name does not start with the host triplet. If you think this | |
2428 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2429 | ac_tool_warned=yes ;; | |
2430 | esac | |
2431 | STRIP=$ac_ct_STRIP | |
2432 | fi | |
2433 | else | |
2434 | STRIP="$ac_cv_prog_STRIP" | |
2435 | fi | |
2436 | ||
2437 | fi | |
2438 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2439 | ||
2440 | # We need awk for the "check" target. The system "awk" is bad on | |
2441 | # some platforms. | |
2442 | # Always define AMTAR for backward compatibility. | |
2443 | ||
2444 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2445 | ||
2446 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2447 | ||
2448 | ||
2449 | ||
2450 | ||
2451 | ||
2452 | ||
2453 | ac_config_headers="$ac_config_headers include/libratbox_config.h" | |
2454 | ||
2455 | ||
2456 | ||
2457 | ||
2458 | cat >>confdefs.h <<\_ACEOF | |
2459 | #define _GNU_SOURCE 1 | |
2460 | _ACEOF | |
2461 | ||
2462 | ||
2463 | ||
2464 | DEPDIR="${am__leading_dot}deps" | |
2465 | ||
2466 | ac_config_commands="$ac_config_commands depfiles" | |
2467 | ||
2468 | ||
2469 | am_make=${MAKE-make} | |
2470 | cat > confinc << 'END' | |
2471 | am__doit: | |
2472 | @echo done | |
2473 | .PHONY: am__doit | |
2474 | END | |
2475 | # If we don't find an include directive, just comment out the code. | |
2476 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2477 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
2478 | am__include="#" | |
2479 | am__quote= | |
2480 | _am_result=none | |
2481 | # First try GNU make style include. | |
2482 | echo "include confinc" > confmf | |
2483 | # We grep out `Entering directory' and `Leaving directory' | |
2484 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2485 | # In particular we don't look at `^make:' because GNU make might | |
2486 | # be invoked under some other name (usually "gmake"), in which | |
2487 | # case it prints its new name instead of `make'. | |
2488 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2489 | am__include=include | |
2490 | am__quote= | |
2491 | _am_result=GNU | |
2492 | fi | |
2493 | # Now try BSD make style include. | |
2494 | if test "$am__include" = "#"; then | |
2495 | echo '.include "confinc"' > confmf | |
2496 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2497 | am__include=.include | |
2498 | am__quote="\"" | |
2499 | _am_result=BSD | |
2500 | fi | |
2501 | fi | |
2502 | ||
2503 | ||
2504 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2505 | echo "${ECHO_T}$_am_result" >&6; } | |
2506 | rm -f confinc confmf | |
2507 | ||
2508 | # Check whether --enable-dependency-tracking was given. | |
2509 | if test "${enable_dependency_tracking+set}" = set; then | |
2510 | enableval=$enable_dependency_tracking; | |
2511 | fi | |
2512 | ||
2513 | if test "x$enable_dependency_tracking" != xno; then | |
2514 | am_depcomp="$ac_aux_dir/depcomp" | |
2515 | AMDEPBACKSLASH='\' | |
2516 | fi | |
2517 | if test "x$enable_dependency_tracking" != xno; then | |
2518 | AMDEP_TRUE= | |
2519 | AMDEP_FALSE='#' | |
2520 | else | |
2521 | AMDEP_TRUE='#' | |
2522 | AMDEP_FALSE= | |
2523 | fi | |
2524 | ||
2525 | ||
2526 | ac_ext=c | |
2527 | ac_cpp='$CPP $CPPFLAGS' | |
2528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2531 | if test -n "$ac_tool_prefix"; then | |
2532 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2533 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2534 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2536 | if test "${ac_cv_prog_CC+set}" = set; then | |
2537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2538 | else | |
2539 | if test -n "$CC"; then | |
2540 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2541 | else | |
2542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2543 | for as_dir in $PATH | |
2544 | do | |
2545 | IFS=$as_save_IFS | |
2546 | test -z "$as_dir" && as_dir=. | |
2547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2549 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2551 | break 2 | |
2552 | fi | |
2553 | done | |
2554 | done | |
2555 | IFS=$as_save_IFS | |
2556 | ||
2557 | fi | |
2558 | fi | |
2559 | CC=$ac_cv_prog_CC | |
2560 | if test -n "$CC"; then | |
2561 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2562 | echo "${ECHO_T}$CC" >&6; } | |
2563 | else | |
2564 | { echo "$as_me:$LINENO: result: no" >&5 | |
2565 | echo "${ECHO_T}no" >&6; } | |
2566 | fi | |
2567 | ||
2568 | ||
2569 | fi | |
2570 | if test -z "$ac_cv_prog_CC"; then | |
2571 | ac_ct_CC=$CC | |
2572 | # Extract the first word of "gcc", so it can be a program name with args. | |
2573 | set dummy gcc; ac_word=$2 | |
2574 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2576 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2578 | else | |
2579 | if test -n "$ac_ct_CC"; then | |
2580 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2581 | else | |
2582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2583 | for as_dir in $PATH | |
2584 | do | |
2585 | IFS=$as_save_IFS | |
2586 | test -z "$as_dir" && as_dir=. | |
2587 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2589 | ac_cv_prog_ac_ct_CC="gcc" | |
2590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2591 | break 2 | |
2592 | fi | |
2593 | done | |
2594 | done | |
2595 | IFS=$as_save_IFS | |
2596 | ||
2597 | fi | |
2598 | fi | |
2599 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2600 | if test -n "$ac_ct_CC"; then | |
2601 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2602 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2603 | else | |
2604 | { echo "$as_me:$LINENO: result: no" >&5 | |
2605 | echo "${ECHO_T}no" >&6; } | |
2606 | fi | |
2607 | ||
2608 | if test "x$ac_ct_CC" = x; then | |
2609 | CC="" | |
2610 | else | |
2611 | case $cross_compiling:$ac_tool_warned in | |
2612 | yes:) | |
2613 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2614 | whose name does not start with the host triplet. If you think this | |
2615 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2616 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2617 | whose name does not start with the host triplet. If you think this | |
2618 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2619 | ac_tool_warned=yes ;; | |
2620 | esac | |
2621 | CC=$ac_ct_CC | |
2622 | fi | |
2623 | else | |
2624 | CC="$ac_cv_prog_CC" | |
2625 | fi | |
2626 | ||
2627 | if test -z "$CC"; then | |
2628 | if test -n "$ac_tool_prefix"; then | |
2629 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2630 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2631 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2633 | if test "${ac_cv_prog_CC+set}" = set; then | |
2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2635 | else | |
2636 | if test -n "$CC"; then | |
2637 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2638 | else | |
2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2640 | for as_dir in $PATH | |
2641 | do | |
2642 | IFS=$as_save_IFS | |
2643 | test -z "$as_dir" && as_dir=. | |
2644 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2646 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2648 | break 2 | |
2649 | fi | |
2650 | done | |
2651 | done | |
2652 | IFS=$as_save_IFS | |
2653 | ||
2654 | fi | |
2655 | fi | |
2656 | CC=$ac_cv_prog_CC | |
2657 | if test -n "$CC"; then | |
2658 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2659 | echo "${ECHO_T}$CC" >&6; } | |
2660 | else | |
2661 | { echo "$as_me:$LINENO: result: no" >&5 | |
2662 | echo "${ECHO_T}no" >&6; } | |
2663 | fi | |
2664 | ||
2665 | ||
2666 | fi | |
2667 | fi | |
2668 | if test -z "$CC"; then | |
2669 | # Extract the first word of "cc", so it can be a program name with args. | |
2670 | set dummy cc; ac_word=$2 | |
2671 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2673 | if test "${ac_cv_prog_CC+set}" = set; then | |
2674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2675 | else | |
2676 | if test -n "$CC"; then | |
2677 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2678 | else | |
2679 | ac_prog_rejected=no | |
2680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2681 | for as_dir in $PATH | |
2682 | do | |
2683 | IFS=$as_save_IFS | |
2684 | test -z "$as_dir" && as_dir=. | |
2685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2687 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2688 | ac_prog_rejected=yes | |
2689 | continue | |
2690 | fi | |
2691 | ac_cv_prog_CC="cc" | |
2692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2693 | break 2 | |
2694 | fi | |
2695 | done | |
2696 | done | |
2697 | IFS=$as_save_IFS | |
2698 | ||
2699 | if test $ac_prog_rejected = yes; then | |
2700 | # We found a bogon in the path, so make sure we never use it. | |
2701 | set dummy $ac_cv_prog_CC | |
2702 | shift | |
2703 | if test $# != 0; then | |
2704 | # We chose a different compiler from the bogus one. | |
2705 | # However, it has the same basename, so the bogon will be chosen | |
2706 | # first if we set CC to just the basename; use the full file name. | |
2707 | shift | |
2708 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2709 | fi | |
2710 | fi | |
2711 | fi | |
2712 | fi | |
2713 | CC=$ac_cv_prog_CC | |
2714 | if test -n "$CC"; then | |
2715 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2716 | echo "${ECHO_T}$CC" >&6; } | |
2717 | else | |
2718 | { echo "$as_me:$LINENO: result: no" >&5 | |
2719 | echo "${ECHO_T}no" >&6; } | |
2720 | fi | |
2721 | ||
2722 | ||
2723 | fi | |
2724 | if test -z "$CC"; then | |
2725 | if test -n "$ac_tool_prefix"; then | |
2726 | for ac_prog in cl.exe | |
2727 | do | |
2728 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2729 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2732 | if test "${ac_cv_prog_CC+set}" = set; then | |
2733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2734 | else | |
2735 | if test -n "$CC"; then | |
2736 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2737 | else | |
2738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2739 | for as_dir in $PATH | |
2740 | do | |
2741 | IFS=$as_save_IFS | |
2742 | test -z "$as_dir" && as_dir=. | |
2743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2745 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2747 | break 2 | |
2748 | fi | |
2749 | done | |
2750 | done | |
2751 | IFS=$as_save_IFS | |
2752 | ||
2753 | fi | |
2754 | fi | |
2755 | CC=$ac_cv_prog_CC | |
2756 | if test -n "$CC"; then | |
2757 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2758 | echo "${ECHO_T}$CC" >&6; } | |
2759 | else | |
2760 | { echo "$as_me:$LINENO: result: no" >&5 | |
2761 | echo "${ECHO_T}no" >&6; } | |
2762 | fi | |
2763 | ||
2764 | ||
2765 | test -n "$CC" && break | |
2766 | done | |
2767 | fi | |
2768 | if test -z "$CC"; then | |
2769 | ac_ct_CC=$CC | |
2770 | for ac_prog in cl.exe | |
2771 | do | |
2772 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2773 | set dummy $ac_prog; ac_word=$2 | |
2774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2776 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2778 | else | |
2779 | if test -n "$ac_ct_CC"; then | |
2780 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2781 | else | |
2782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2783 | for as_dir in $PATH | |
2784 | do | |
2785 | IFS=$as_save_IFS | |
2786 | test -z "$as_dir" && as_dir=. | |
2787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2789 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2791 | break 2 | |
2792 | fi | |
2793 | done | |
2794 | done | |
2795 | IFS=$as_save_IFS | |
2796 | ||
2797 | fi | |
2798 | fi | |
2799 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2800 | if test -n "$ac_ct_CC"; then | |
2801 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2802 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2803 | else | |
2804 | { echo "$as_me:$LINENO: result: no" >&5 | |
2805 | echo "${ECHO_T}no" >&6; } | |
2806 | fi | |
2807 | ||
2808 | ||
2809 | test -n "$ac_ct_CC" && break | |
2810 | done | |
2811 | ||
2812 | if test "x$ac_ct_CC" = x; then | |
2813 | CC="" | |
2814 | else | |
2815 | case $cross_compiling:$ac_tool_warned in | |
2816 | yes:) | |
2817 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2818 | whose name does not start with the host triplet. If you think this | |
2819 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2820 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2821 | whose name does not start with the host triplet. If you think this | |
2822 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2823 | ac_tool_warned=yes ;; | |
2824 | esac | |
2825 | CC=$ac_ct_CC | |
2826 | fi | |
2827 | fi | |
2828 | ||
2829 | fi | |
2830 | ||
2831 | ||
2832 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2833 | See \`config.log' for more details." >&5 | |
2834 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2835 | See \`config.log' for more details." >&2;} | |
2836 | { (exit 1); exit 1; }; } | |
2837 | ||
2838 | # Provide some information about the compiler. | |
2839 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2840 | ac_compiler=`set X $ac_compile; echo $2` | |
2841 | { (ac_try="$ac_compiler --version >&5" | |
2842 | case "(($ac_try" in | |
2843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2844 | *) ac_try_echo=$ac_try;; | |
2845 | esac | |
2846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2847 | (eval "$ac_compiler --version >&5") 2>&5 | |
2848 | ac_status=$? | |
2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2850 | (exit $ac_status); } | |
2851 | { (ac_try="$ac_compiler -v >&5" | |
2852 | case "(($ac_try" in | |
2853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2854 | *) ac_try_echo=$ac_try;; | |
2855 | esac | |
2856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2857 | (eval "$ac_compiler -v >&5") 2>&5 | |
2858 | ac_status=$? | |
2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2860 | (exit $ac_status); } | |
2861 | { (ac_try="$ac_compiler -V >&5" | |
2862 | case "(($ac_try" in | |
2863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2864 | *) ac_try_echo=$ac_try;; | |
2865 | esac | |
2866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2867 | (eval "$ac_compiler -V >&5") 2>&5 | |
2868 | ac_status=$? | |
2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2870 | (exit $ac_status); } | |
2871 | ||
2872 | cat >conftest.$ac_ext <<_ACEOF | |
2873 | /* confdefs.h. */ | |
2874 | _ACEOF | |
2875 | cat confdefs.h >>conftest.$ac_ext | |
2876 | cat >>conftest.$ac_ext <<_ACEOF | |
2877 | /* end confdefs.h. */ | |
2878 | ||
2879 | int | |
2880 | main () | |
2881 | { | |
2882 | ||
2883 | ; | |
2884 | return 0; | |
2885 | } | |
2886 | _ACEOF | |
2887 | ac_clean_files_save=$ac_clean_files | |
2888 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2889 | # Try to create an executable without -o first, disregard a.out. | |
2890 | # It will help us diagnose broken compilers, and finding out an intuition | |
2891 | # of exeext. | |
2892 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2893 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2894 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2895 | # | |
2896 | # List of possible output files, starting from the most likely. | |
2897 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2898 | # only as a last resort. b.out is created by i960 compilers. | |
2899 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2900 | # | |
2901 | # The IRIX 6 linker writes into existing files which may not be | |
2902 | # executable, retaining their permissions. Remove them first so a | |
2903 | # subsequent execution test works. | |
2904 | ac_rmfiles= | |
2905 | for ac_file in $ac_files | |
2906 | do | |
2907 | case $ac_file in | |
2908 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2909 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2910 | esac | |
2911 | done | |
2912 | rm -f $ac_rmfiles | |
2913 | ||
2914 | if { (ac_try="$ac_link_default" | |
2915 | case "(($ac_try" in | |
2916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2917 | *) ac_try_echo=$ac_try;; | |
2918 | esac | |
2919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2920 | (eval "$ac_link_default") 2>&5 | |
2921 | ac_status=$? | |
2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2923 | (exit $ac_status); }; then | |
2924 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2925 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2926 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2927 | # so that the user can short-circuit this test for compilers unknown to | |
2928 | # Autoconf. | |
2929 | for ac_file in $ac_files '' | |
2930 | do | |
2931 | test -f "$ac_file" || continue | |
2932 | case $ac_file in | |
2933 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2934 | ;; | |
2935 | [ab].out ) | |
2936 | # We found the default executable, but exeext='' is most | |
2937 | # certainly right. | |
2938 | break;; | |
2939 | *.* ) | |
2940 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2941 | then :; else | |
2942 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2943 | fi | |
2944 | # We set ac_cv_exeext here because the later test for it is not | |
2945 | # safe: cross compilers may not add the suffix if given an `-o' | |
2946 | # argument, so we may need to know it at that point already. | |
2947 | # Even if this section looks crufty: it has the advantage of | |
2948 | # actually working. | |
2949 | break;; | |
2950 | * ) | |
2951 | break;; | |
2952 | esac | |
2953 | done | |
2954 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2955 | ||
2956 | else | |
2957 | ac_file='' | |
2958 | fi | |
2959 | ||
2960 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2961 | echo "${ECHO_T}$ac_file" >&6; } | |
2962 | if test -z "$ac_file"; then | |
2963 | echo "$as_me: failed program was:" >&5 | |
2964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2965 | ||
2966 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2967 | See \`config.log' for more details." >&5 | |
2968 | echo "$as_me: error: C compiler cannot create executables | |
2969 | See \`config.log' for more details." >&2;} | |
2970 | { (exit 77); exit 77; }; } | |
2971 | fi | |
2972 | ||
2973 | ac_exeext=$ac_cv_exeext | |
2974 | ||
2975 | # Check that the compiler produces executables we can run. If not, either | |
2976 | # the compiler is broken, or we cross compile. | |
2977 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2978 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2979 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2980 | # If not cross compiling, check that we can run a simple program. | |
2981 | if test "$cross_compiling" != yes; then | |
2982 | if { ac_try='./$ac_file' | |
2983 | { (case "(($ac_try" in | |
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2985 | *) ac_try_echo=$ac_try;; | |
2986 | esac | |
2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2988 | (eval "$ac_try") 2>&5 | |
2989 | ac_status=$? | |
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2991 | (exit $ac_status); }; }; then | |
2992 | cross_compiling=no | |
2993 | else | |
2994 | if test "$cross_compiling" = maybe; then | |
2995 | cross_compiling=yes | |
2996 | else | |
2997 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2998 | If you meant to cross compile, use \`--host'. | |
2999 | See \`config.log' for more details." >&5 | |
3000 | echo "$as_me: error: cannot run C compiled programs. | |
3001 | If you meant to cross compile, use \`--host'. | |
3002 | See \`config.log' for more details." >&2;} | |
3003 | { (exit 1); exit 1; }; } | |
3004 | fi | |
3005 | fi | |
3006 | fi | |
3007 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3008 | echo "${ECHO_T}yes" >&6; } | |
3009 | ||
3010 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3011 | ac_clean_files=$ac_clean_files_save | |
3012 | # Check that the compiler produces executables we can run. If not, either | |
3013 | # the compiler is broken, or we cross compile. | |
3014 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3015 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3016 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3017 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3018 | ||
3019 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3020 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3021 | if { (ac_try="$ac_link" | |
3022 | case "(($ac_try" in | |
3023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3024 | *) ac_try_echo=$ac_try;; | |
3025 | esac | |
3026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3027 | (eval "$ac_link") 2>&5 | |
3028 | ac_status=$? | |
3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3030 | (exit $ac_status); }; then | |
3031 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3032 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3033 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3034 | # `rm'. | |
3035 | for ac_file in conftest.exe conftest conftest.*; do | |
3036 | test -f "$ac_file" || continue | |
3037 | case $ac_file in | |
3038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3039 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3040 | break;; | |
3041 | * ) break;; | |
3042 | esac | |
3043 | done | |
3044 | else | |
3045 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3046 | See \`config.log' for more details." >&5 | |
3047 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3048 | See \`config.log' for more details." >&2;} | |
3049 | { (exit 1); exit 1; }; } | |
3050 | fi | |
3051 | ||
3052 | rm -f conftest$ac_cv_exeext | |
3053 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3054 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
3055 | ||
3056 | rm -f conftest.$ac_ext | |
3057 | EXEEXT=$ac_cv_exeext | |
3058 | ac_exeext=$EXEEXT | |
3059 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3060 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
3061 | if test "${ac_cv_objext+set}" = set; then | |
3062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3063 | else | |
3064 | cat >conftest.$ac_ext <<_ACEOF | |
3065 | /* confdefs.h. */ | |
3066 | _ACEOF | |
3067 | cat confdefs.h >>conftest.$ac_ext | |
3068 | cat >>conftest.$ac_ext <<_ACEOF | |
3069 | /* end confdefs.h. */ | |
3070 | ||
3071 | int | |
3072 | main () | |
3073 | { | |
3074 | ||
3075 | ; | |
3076 | return 0; | |
3077 | } | |
3078 | _ACEOF | |
3079 | rm -f conftest.o conftest.obj | |
3080 | if { (ac_try="$ac_compile" | |
3081 | case "(($ac_try" in | |
3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3083 | *) ac_try_echo=$ac_try;; | |
3084 | esac | |
3085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3086 | (eval "$ac_compile") 2>&5 | |
3087 | ac_status=$? | |
3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3089 | (exit $ac_status); }; then | |
3090 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3091 | test -f "$ac_file" || continue; | |
3092 | case $ac_file in | |
3093 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
3094 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3095 | break;; | |
3096 | esac | |
3097 | done | |
3098 | else | |
3099 | echo "$as_me: failed program was:" >&5 | |
3100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3101 | ||
3102 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3103 | See \`config.log' for more details." >&5 | |
3104 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3105 | See \`config.log' for more details." >&2;} | |
3106 | { (exit 1); exit 1; }; } | |
3107 | fi | |
3108 | ||
3109 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3110 | fi | |
3111 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3112 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
3113 | OBJEXT=$ac_cv_objext | |
3114 | ac_objext=$OBJEXT | |
3115 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3116 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
3117 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3119 | else | |
3120 | cat >conftest.$ac_ext <<_ACEOF | |
3121 | /* confdefs.h. */ | |
3122 | _ACEOF | |
3123 | cat confdefs.h >>conftest.$ac_ext | |
3124 | cat >>conftest.$ac_ext <<_ACEOF | |
3125 | /* end confdefs.h. */ | |
3126 | ||
3127 | int | |
3128 | main () | |
3129 | { | |
3130 | #ifndef __GNUC__ | |
3131 | choke me | |
3132 | #endif | |
3133 | ||
3134 | ; | |
3135 | return 0; | |
3136 | } | |
3137 | _ACEOF | |
3138 | rm -f conftest.$ac_objext | |
3139 | if { (ac_try="$ac_compile" | |
3140 | case "(($ac_try" in | |
3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3142 | *) ac_try_echo=$ac_try;; | |
3143 | esac | |
3144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3145 | (eval "$ac_compile") 2>conftest.er1 | |
3146 | ac_status=$? | |
3147 | grep -v '^ *+' conftest.er1 >conftest.err | |
3148 | rm -f conftest.er1 | |
3149 | cat conftest.err >&5 | |
3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3151 | (exit $ac_status); } && { | |
3152 | test -z "$ac_c_werror_flag" || | |
3153 | test ! -s conftest.err | |
3154 | } && test -s conftest.$ac_objext; then | |
3155 | ac_compiler_gnu=yes | |
3156 | else | |
3157 | echo "$as_me: failed program was:" >&5 | |
3158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3159 | ||
3160 | ac_compiler_gnu=no | |
3161 | fi | |
3162 | ||
3163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3164 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3165 | ||
3166 | fi | |
3167 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3168 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
3169 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3170 | ac_test_CFLAGS=${CFLAGS+set} | |
3171 | ac_save_CFLAGS=$CFLAGS | |
3172 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3173 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
3174 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3176 | else | |
3177 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3178 | ac_c_werror_flag=yes | |
3179 | ac_cv_prog_cc_g=no | |
3180 | CFLAGS="-g" | |
3181 | cat >conftest.$ac_ext <<_ACEOF | |
3182 | /* confdefs.h. */ | |
3183 | _ACEOF | |
3184 | cat confdefs.h >>conftest.$ac_ext | |
3185 | cat >>conftest.$ac_ext <<_ACEOF | |
3186 | /* end confdefs.h. */ | |
3187 | ||
3188 | int | |
3189 | main () | |
3190 | { | |
3191 | ||
3192 | ; | |
3193 | return 0; | |
3194 | } | |
3195 | _ACEOF | |
3196 | rm -f conftest.$ac_objext | |
3197 | if { (ac_try="$ac_compile" | |
3198 | case "(($ac_try" in | |
3199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3200 | *) ac_try_echo=$ac_try;; | |
3201 | esac | |
3202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3203 | (eval "$ac_compile") 2>conftest.er1 | |
3204 | ac_status=$? | |
3205 | grep -v '^ *+' conftest.er1 >conftest.err | |
3206 | rm -f conftest.er1 | |
3207 | cat conftest.err >&5 | |
3208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3209 | (exit $ac_status); } && { | |
3210 | test -z "$ac_c_werror_flag" || | |
3211 | test ! -s conftest.err | |
3212 | } && test -s conftest.$ac_objext; then | |
3213 | ac_cv_prog_cc_g=yes | |
3214 | else | |
3215 | echo "$as_me: failed program was:" >&5 | |
3216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3217 | ||
3218 | CFLAGS="" | |
3219 | cat >conftest.$ac_ext <<_ACEOF | |
3220 | /* confdefs.h. */ | |
3221 | _ACEOF | |
3222 | cat confdefs.h >>conftest.$ac_ext | |
3223 | cat >>conftest.$ac_ext <<_ACEOF | |
3224 | /* end confdefs.h. */ | |
3225 | ||
3226 | int | |
3227 | main () | |
3228 | { | |
3229 | ||
3230 | ; | |
3231 | return 0; | |
3232 | } | |
3233 | _ACEOF | |
3234 | rm -f conftest.$ac_objext | |
3235 | if { (ac_try="$ac_compile" | |
3236 | case "(($ac_try" in | |
3237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3238 | *) ac_try_echo=$ac_try;; | |
3239 | esac | |
3240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3241 | (eval "$ac_compile") 2>conftest.er1 | |
3242 | ac_status=$? | |
3243 | grep -v '^ *+' conftest.er1 >conftest.err | |
3244 | rm -f conftest.er1 | |
3245 | cat conftest.err >&5 | |
3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3247 | (exit $ac_status); } && { | |
3248 | test -z "$ac_c_werror_flag" || | |
3249 | test ! -s conftest.err | |
3250 | } && test -s conftest.$ac_objext; then | |
3251 | : | |
3252 | else | |
3253 | echo "$as_me: failed program was:" >&5 | |
3254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3255 | ||
3256 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3257 | CFLAGS="-g" | |
3258 | cat >conftest.$ac_ext <<_ACEOF | |
3259 | /* confdefs.h. */ | |
3260 | _ACEOF | |
3261 | cat confdefs.h >>conftest.$ac_ext | |
3262 | cat >>conftest.$ac_ext <<_ACEOF | |
3263 | /* end confdefs.h. */ | |
3264 | ||
3265 | int | |
3266 | main () | |
3267 | { | |
3268 | ||
3269 | ; | |
3270 | return 0; | |
3271 | } | |
3272 | _ACEOF | |
3273 | rm -f conftest.$ac_objext | |
3274 | if { (ac_try="$ac_compile" | |
3275 | case "(($ac_try" in | |
3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3277 | *) ac_try_echo=$ac_try;; | |
3278 | esac | |
3279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3280 | (eval "$ac_compile") 2>conftest.er1 | |
3281 | ac_status=$? | |
3282 | grep -v '^ *+' conftest.er1 >conftest.err | |
3283 | rm -f conftest.er1 | |
3284 | cat conftest.err >&5 | |
3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3286 | (exit $ac_status); } && { | |
3287 | test -z "$ac_c_werror_flag" || | |
3288 | test ! -s conftest.err | |
3289 | } && test -s conftest.$ac_objext; then | |
3290 | ac_cv_prog_cc_g=yes | |
3291 | else | |
3292 | echo "$as_me: failed program was:" >&5 | |
3293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3294 | ||
3295 | ||
3296 | fi | |
3297 | ||
3298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3299 | fi | |
3300 | ||
3301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3302 | fi | |
3303 | ||
3304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3305 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3306 | fi | |
3307 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3308 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
3309 | if test "$ac_test_CFLAGS" = set; then | |
3310 | CFLAGS=$ac_save_CFLAGS | |
3311 | elif test $ac_cv_prog_cc_g = yes; then | |
3312 | if test "$GCC" = yes; then | |
3313 | CFLAGS="-g -O2" | |
3314 | else | |
3315 | CFLAGS="-g" | |
3316 | fi | |
3317 | else | |
3318 | if test "$GCC" = yes; then | |
3319 | CFLAGS="-O2" | |
3320 | else | |
3321 | CFLAGS= | |
3322 | fi | |
3323 | fi | |
3324 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3325 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3326 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3328 | else | |
3329 | ac_cv_prog_cc_c89=no | |
3330 | ac_save_CC=$CC | |
3331 | cat >conftest.$ac_ext <<_ACEOF | |
3332 | /* confdefs.h. */ | |
3333 | _ACEOF | |
3334 | cat confdefs.h >>conftest.$ac_ext | |
3335 | cat >>conftest.$ac_ext <<_ACEOF | |
3336 | /* end confdefs.h. */ | |
3337 | #include <stdarg.h> | |
3338 | #include <stdio.h> | |
3339 | #include <sys/types.h> | |
3340 | #include <sys/stat.h> | |
3341 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3342 | struct buf { int x; }; | |
3343 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3344 | static char *e (p, i) | |
3345 | char **p; | |
3346 | int i; | |
3347 | { | |
3348 | return p[i]; | |
3349 | } | |
3350 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3351 | { | |
3352 | char *s; | |
3353 | va_list v; | |
3354 | va_start (v,p); | |
3355 | s = g (p, va_arg (v,int)); | |
3356 | va_end (v); | |
3357 | return s; | |
3358 | } | |
3359 | ||
3360 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3361 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3362 | These don't provoke an error unfortunately, instead are silently treated | |
3363 | as 'x'. The following induces an error, until -std is added to get | |
3364 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3365 | array size at least. It's necessary to write '\x00'==0 to get something | |
3366 | that's true only with -std. */ | |
3367 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3368 | ||
3369 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3370 | inside strings and character constants. */ | |
3371 | #define FOO(x) 'x' | |
3372 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3373 | ||
3374 | int test (int i, double x); | |
3375 | struct s1 {int (*f) (int a);}; | |
3376 | struct s2 {int (*f) (double a);}; | |
3377 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3378 | int argc; | |
3379 | char **argv; | |
3380 | int | |
3381 | main () | |
3382 | { | |
3383 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3384 | ; | |
3385 | return 0; | |
3386 | } | |
3387 | _ACEOF | |
3388 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3389 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3390 | do | |
3391 | CC="$ac_save_CC $ac_arg" | |
3392 | rm -f conftest.$ac_objext | |
3393 | if { (ac_try="$ac_compile" | |
3394 | case "(($ac_try" in | |
3395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3396 | *) ac_try_echo=$ac_try;; | |
3397 | esac | |
3398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3399 | (eval "$ac_compile") 2>conftest.er1 | |
3400 | ac_status=$? | |
3401 | grep -v '^ *+' conftest.er1 >conftest.err | |
3402 | rm -f conftest.er1 | |
3403 | cat conftest.err >&5 | |
3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3405 | (exit $ac_status); } && { | |
3406 | test -z "$ac_c_werror_flag" || | |
3407 | test ! -s conftest.err | |
3408 | } && test -s conftest.$ac_objext; then | |
3409 | ac_cv_prog_cc_c89=$ac_arg | |
3410 | else | |
3411 | echo "$as_me: failed program was:" >&5 | |
3412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3413 | ||
3414 | ||
3415 | fi | |
3416 | ||
3417 | rm -f core conftest.err conftest.$ac_objext | |
3418 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3419 | done | |
3420 | rm -f conftest.$ac_ext | |
3421 | CC=$ac_save_CC | |
3422 | ||
3423 | fi | |
3424 | # AC_CACHE_VAL | |
3425 | case "x$ac_cv_prog_cc_c89" in | |
3426 | x) | |
3427 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3428 | echo "${ECHO_T}none needed" >&6; } ;; | |
3429 | xno) | |
3430 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3431 | echo "${ECHO_T}unsupported" >&6; } ;; | |
3432 | *) | |
3433 | CC="$CC $ac_cv_prog_cc_c89" | |
3434 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3435 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
3436 | esac | |
3437 | ||
3438 | ||
3439 | ac_ext=c | |
3440 | ac_cpp='$CPP $CPPFLAGS' | |
3441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3444 | ||
3445 | depcc="$CC" am_compiler_list= | |
3446 | ||
3447 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3448 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
3449 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3451 | else | |
3452 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3453 | # We make a subdir and do the tests there. Otherwise we can end up | |
3454 | # making bogus files that we don't know about and never remove. For | |
3455 | # instance it was reported that on HP-UX the gcc test will end up | |
3456 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3457 | # in D'. | |
3458 | mkdir conftest.dir | |
3459 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3460 | # using a relative directory. | |
3461 | cp "$am_depcomp" conftest.dir | |
3462 | cd conftest.dir | |
3463 | # We will build objects and dependencies in a subdirectory because | |
3464 | # it helps to detect inapplicable dependency modes. For instance | |
3465 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3466 | # side effect of compilation, but ICC will put the dependencies in | |
3467 | # the current directory while Tru64 will put them in the object | |
3468 | # directory. | |
3469 | mkdir sub | |
3470 | ||
3471 | am_cv_CC_dependencies_compiler_type=none | |
3472 | if test "$am_compiler_list" = ""; then | |
3473 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3474 | fi | |
3475 | for depmode in $am_compiler_list; do | |
3476 | # Setup a source with many dependencies, because some compilers | |
3477 | # like to wrap large dependency lists on column 80 (with \), and | |
3478 | # we should not choose a depcomp mode which is confused by this. | |
3479 | # | |
3480 | # We need to recreate these files for each test, as the compiler may | |
3481 | # overwrite some of them when testing with obscure command lines. | |
3482 | # This happens at least with the AIX C compiler. | |
3483 | : > sub/conftest.c | |
3484 | for i in 1 2 3 4 5 6; do | |
3485 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3486 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3487 | # Solaris 8's {/usr,}/bin/sh. | |
3488 | touch sub/conftst$i.h | |
3489 | done | |
3490 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3491 | ||
3492 | case $depmode in | |
3493 | nosideeffect) | |
3494 | # after this tag, mechanisms are not by side-effect, so they'll | |
3495 | # only be used when explicitly requested | |
3496 | if test "x$enable_dependency_tracking" = xyes; then | |
3497 | continue | |
3498 | else | |
3499 | break | |
3500 | fi | |
3501 | ;; | |
3502 | none) break ;; | |
3503 | esac | |
3504 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3505 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3506 | # handle `-M -o', and we need to detect this. | |
3507 | if depmode=$depmode \ | |
3508 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3509 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3510 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3511 | >/dev/null 2>conftest.err && | |
3512 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3513 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3514 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3515 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3516 | # icc doesn't choke on unknown options, it will just issue warnings | |
3517 | # or remarks (even with -Werror). So we grep stderr for any message | |
3518 | # that says an option was ignored or not supported. | |
3519 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3520 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3521 | # The diagnosis changed in icc 8.0: | |
3522 | # icc: Command line remark: option '-MP' not supported | |
3523 | if (grep 'ignoring option' conftest.err || | |
3524 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3525 | am_cv_CC_dependencies_compiler_type=$depmode | |
3526 | break | |
3527 | fi | |
3528 | fi | |
3529 | done | |
3530 | ||
3531 | cd .. | |
3532 | rm -rf conftest.dir | |
3533 | else | |
3534 | am_cv_CC_dependencies_compiler_type=none | |
3535 | fi | |
3536 | ||
3537 | fi | |
3538 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3539 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
3540 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3541 | ||
3542 | if | |
3543 | test "x$enable_dependency_tracking" != xno \ | |
3544 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3545 | am__fastdepCC_TRUE= | |
3546 | am__fastdepCC_FALSE='#' | |
3547 | else | |
3548 | am__fastdepCC_TRUE='#' | |
3549 | am__fastdepCC_FALSE= | |
3550 | fi | |
3551 | ||
3552 | ||
3553 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 | |
3554 | echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; } | |
3555 | if test "${ac_cv_prog_cc_c99+set}" = set; then | |
3556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3557 | else | |
3558 | ac_cv_prog_cc_c99=no | |
3559 | ac_save_CC=$CC | |
3560 | cat >conftest.$ac_ext <<_ACEOF | |
3561 | /* confdefs.h. */ | |
3562 | _ACEOF | |
3563 | cat confdefs.h >>conftest.$ac_ext | |
3564 | cat >>conftest.$ac_ext <<_ACEOF | |
3565 | /* end confdefs.h. */ | |
3566 | #include <stdarg.h> | |
3567 | #include <stdbool.h> | |
3568 | #include <stdlib.h> | |
3569 | #include <wchar.h> | |
3570 | #include <stdio.h> | |
3571 | ||
3572 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
3573 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3574 | #define showlist(...) puts (#__VA_ARGS__) | |
3575 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
3576 | static void | |
3577 | test_varargs_macros (void) | |
3578 | { | |
3579 | int x = 1234; | |
3580 | int y = 5678; | |
3581 | debug ("Flag"); | |
3582 | debug ("X = %d\n", x); | |
3583 | showlist (The first, second, and third items.); | |
3584 | report (x>y, "x is %d but y is %d", x, y); | |
3585 | } | |
3586 | ||
3587 | // Check long long types. | |
3588 | #define BIG64 18446744073709551615ull | |
3589 | #define BIG32 4294967295ul | |
3590 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
3591 | #if !BIG_OK | |
3592 | your preprocessor is broken; | |
3593 | #endif | |
3594 | #if BIG_OK | |
3595 | #else | |
3596 | your preprocessor is broken; | |
3597 | #endif | |
3598 | static long long int bignum = -9223372036854775807LL; | |
3599 | static unsigned long long int ubignum = BIG64; | |
3600 | ||
3601 | struct incomplete_array | |
3602 | { | |
3603 | int datasize; | |
3604 | double data[]; | |
3605 | }; | |
3606 | ||
3607 | struct named_init { | |
3608 | int number; | |
3609 | const wchar_t *name; | |
3610 | double average; | |
3611 | }; | |
3612 | ||
3613 | typedef const char *ccp; | |
3614 | ||
3615 | static inline int | |
3616 | test_restrict (ccp restrict text) | |
3617 | { | |
3618 | // See if C++-style comments work. | |
3619 | // Iterate through items via the restricted pointer. | |
3620 | // Also check for declarations in for loops. | |
3621 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
3622 | continue; | |
3623 | return 0; | |
3624 | } | |
3625 | ||
3626 | // Check varargs and va_copy. | |
3627 | static void | |
3628 | test_varargs (const char *format, ...) | |
3629 | { | |
3630 | va_list args; | |
3631 | va_start (args, format); | |
3632 | va_list args_copy; | |
3633 | va_copy (args_copy, args); | |
3634 | ||
3635 | const char *str; | |
3636 | int number; | |
3637 | float fnumber; | |
3638 | ||
3639 | while (*format) | |
3640 | { | |
3641 | switch (*format++) | |
3642 | { | |
3643 | case 's': // string | |
3644 | str = va_arg (args_copy, const char *); | |
3645 | break; | |
3646 | case 'd': // int | |
3647 | number = va_arg (args_copy, int); | |
3648 | break; | |
3649 | case 'f': // float | |
3650 | fnumber = va_arg (args_copy, double); | |
3651 | break; | |
3652 | default: | |
3653 | break; | |
3654 | } | |
3655 | } | |
3656 | va_end (args_copy); | |
3657 | va_end (args); | |
3658 | } | |
3659 | ||
3660 | int | |
3661 | main () | |
3662 | { | |
3663 | ||
3664 | // Check bool. | |
3665 | _Bool success = false; | |
3666 | ||
3667 | // Check restrict. | |
3668 | if (test_restrict ("String literal") == 0) | |
3669 | success = true; | |
3670 | char *restrict newvar = "Another string"; | |
3671 | ||
3672 | // Check varargs. | |
3673 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
3674 | test_varargs_macros (); | |
3675 | ||
3676 | // Check flexible array members. | |
3677 | struct incomplete_array *ia = | |
3678 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3679 | ia->datasize = 10; | |
3680 | for (int i = 0; i < ia->datasize; ++i) | |
3681 | ia->data[i] = i * 1.234; | |
3682 | ||
3683 | // Check named initializers. | |
3684 | struct named_init ni = { | |
3685 | .number = 34, | |
3686 | .name = L"Test wide string", | |
3687 | .average = 543.34343, | |
3688 | }; | |
3689 | ||
3690 | ni.number = 58; | |
3691 | ||
3692 | int dynamic_array[ni.number]; | |
3693 | dynamic_array[ni.number - 1] = 543; | |
3694 | ||
3695 | // work around unused variable warnings | |
3696 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
3697 | || dynamic_array[ni.number - 1] != 543); | |
3698 | ||
3699 | ; | |
3700 | return 0; | |
3701 | } | |
3702 | _ACEOF | |
3703 | for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99 | |
3704 | do | |
3705 | CC="$ac_save_CC $ac_arg" | |
3706 | rm -f conftest.$ac_objext | |
3707 | if { (ac_try="$ac_compile" | |
3708 | case "(($ac_try" in | |
3709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3710 | *) ac_try_echo=$ac_try;; | |
3711 | esac | |
3712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3713 | (eval "$ac_compile") 2>conftest.er1 | |
3714 | ac_status=$? | |
3715 | grep -v '^ *+' conftest.er1 >conftest.err | |
3716 | rm -f conftest.er1 | |
3717 | cat conftest.err >&5 | |
3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3719 | (exit $ac_status); } && { | |
3720 | test -z "$ac_c_werror_flag" || | |
3721 | test ! -s conftest.err | |
3722 | } && test -s conftest.$ac_objext; then | |
3723 | ac_cv_prog_cc_c99=$ac_arg | |
3724 | else | |
3725 | echo "$as_me: failed program was:" >&5 | |
3726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3727 | ||
3728 | ||
3729 | fi | |
3730 | ||
3731 | rm -f core conftest.err conftest.$ac_objext | |
3732 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
3733 | done | |
3734 | rm -f conftest.$ac_ext | |
3735 | CC=$ac_save_CC | |
3736 | ||
3737 | fi | |
3738 | # AC_CACHE_VAL | |
3739 | case "x$ac_cv_prog_cc_c99" in | |
3740 | x) | |
3741 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3742 | echo "${ECHO_T}none needed" >&6; } ;; | |
3743 | xno) | |
3744 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3745 | echo "${ECHO_T}unsupported" >&6; } ;; | |
3746 | *) | |
3747 | CC="$CC $ac_cv_prog_cc_c99" | |
3748 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 | |
3749 | echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;; | |
3750 | esac | |
3751 | ||
3752 | ||
3753 | ||
3754 | ||
3755 | if test x"$ac_cv_prog_cc_c99" = "xno"; then | |
3756 | { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5 | |
3757 | echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;} | |
3758 | { (exit 1); exit 1; }; } | |
3759 | fi | |
3760 | ||
3761 | ||
3762 | # Find a good install program. We prefer a C program (faster), | |
3763 | # so one script is as good as another. But avoid the broken or | |
3764 | # incompatible versions: | |
3765 | # SysV /etc/install, /usr/sbin/install | |
3766 | # SunOS /usr/etc/install | |
3767 | # IRIX /sbin/install | |
3768 | # AIX /bin/install | |
3769 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3770 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3771 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3772 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3773 | # OS/2's system install, which has a completely different semantic | |
3774 | # ./install, which can be erroneously created by make from ./install.sh. | |
3775 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3776 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
3777 | if test -z "$INSTALL"; then | |
3778 | if test "${ac_cv_path_install+set}" = set; then | |
3779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3780 | else | |
3781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3782 | for as_dir in $PATH | |
3783 | do | |
3784 | IFS=$as_save_IFS | |
3785 | test -z "$as_dir" && as_dir=. | |
3786 | # Account for people who put trailing slashes in PATH elements. | |
3787 | case $as_dir/ in | |
3788 | ./ | .// | /cC/* | \ | |
3789 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3790 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3791 | /usr/ucb/* ) ;; | |
3792 | *) | |
3793 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3794 | # Don't use installbsd from OSF since it installs stuff as root | |
3795 | # by default. | |
3796 | for ac_prog in ginstall scoinst install; do | |
3797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3798 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3799 | if test $ac_prog = install && | |
3800 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3801 | # AIX install. It has an incompatible calling convention. | |
3802 | : | |
3803 | elif test $ac_prog = install && | |
3804 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3805 | # program-specific install script used by HP pwplus--don't use. | |
3806 | : | |
3807 | else | |
3808 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3809 | break 3 | |
3810 | fi | |
3811 | fi | |
3812 | done | |
3813 | done | |
3814 | ;; | |
3815 | esac | |
3816 | done | |
3817 | IFS=$as_save_IFS | |
3818 | ||
3819 | ||
3820 | fi | |
3821 | if test "${ac_cv_path_install+set}" = set; then | |
3822 | INSTALL=$ac_cv_path_install | |
3823 | else | |
3824 | # As a last resort, use the slow shell script. Don't cache a | |
3825 | # value for INSTALL within a source directory, because that will | |
3826 | # break other packages using the cache if that directory is | |
3827 | # removed, or if the value is a relative name. | |
3828 | INSTALL=$ac_install_sh | |
3829 | fi | |
3830 | fi | |
3831 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3832 | echo "${ECHO_T}$INSTALL" >&6; } | |
3833 | ||
3834 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3835 | # It thinks the first close brace ends the variable substitution. | |
3836 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3837 | ||
3838 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3839 | ||
3840 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3841 | ||
3842 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3843 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3844 | if test "${ac_cv_path_GREP+set}" = set; then | |
3845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3846 | else | |
3847 | # Extract the first word of "grep ggrep" to use in msg output | |
3848 | if test -z "$GREP"; then | |
3849 | set dummy grep ggrep; ac_prog_name=$2 | |
3850 | if test "${ac_cv_path_GREP+set}" = set; then | |
3851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3852 | else | |
3853 | ac_path_GREP_found=false | |
3854 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3856 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3857 | do | |
3858 | IFS=$as_save_IFS | |
3859 | test -z "$as_dir" && as_dir=. | |
3860 | for ac_prog in grep ggrep; do | |
3861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3862 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3863 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3864 | # Check for GNU ac_path_GREP and select it if it is found. | |
3865 | # Check for GNU $ac_path_GREP | |
3866 | case `"$ac_path_GREP" --version 2>&1` in | |
3867 | *GNU*) | |
3868 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3869 | *) | |
3870 | ac_count=0 | |
3871 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3872 | while : | |
3873 | do | |
3874 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3875 | mv "conftest.tmp" "conftest.in" | |
3876 | cp "conftest.in" "conftest.nl" | |
3877 | echo 'GREP' >> "conftest.nl" | |
3878 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3879 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3880 | ac_count=`expr $ac_count + 1` | |
3881 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3882 | # Best one so far, save it but keep looking for a better one | |
3883 | ac_cv_path_GREP="$ac_path_GREP" | |
3884 | ac_path_GREP_max=$ac_count | |
3885 | fi | |
3886 | # 10*(2^10) chars as input seems more than enough | |
3887 | test $ac_count -gt 10 && break | |
3888 | done | |
3889 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3890 | esac | |
3891 | ||
3892 | ||
3893 | $ac_path_GREP_found && break 3 | |
3894 | done | |
3895 | done | |
3896 | ||
3897 | done | |
3898 | IFS=$as_save_IFS | |
3899 | ||
3900 | ||
3901 | fi | |
3902 | ||
3903 | GREP="$ac_cv_path_GREP" | |
3904 | if test -z "$GREP"; then | |
3905 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3906 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3907 | { (exit 1); exit 1; }; } | |
3908 | fi | |
3909 | ||
3910 | else | |
3911 | ac_cv_path_GREP=$GREP | |
3912 | fi | |
3913 | ||
3914 | ||
3915 | fi | |
3916 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3917 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3918 | GREP="$ac_cv_path_GREP" | |
3919 | ||
3920 | ||
3921 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3922 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3923 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3925 | else | |
3926 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3927 | then ac_cv_path_EGREP="$GREP -E" | |
3928 | else | |
3929 | # Extract the first word of "egrep" to use in msg output | |
3930 | if test -z "$EGREP"; then | |
3931 | set dummy egrep; ac_prog_name=$2 | |
3932 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3934 | else | |
3935 | ac_path_EGREP_found=false | |
3936 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3938 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3939 | do | |
3940 | IFS=$as_save_IFS | |
3941 | test -z "$as_dir" && as_dir=. | |
3942 | for ac_prog in egrep; do | |
3943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3944 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3945 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3946 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3947 | # Check for GNU $ac_path_EGREP | |
3948 | case `"$ac_path_EGREP" --version 2>&1` in | |
3949 | *GNU*) | |
3950 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3951 | *) | |
3952 | ac_count=0 | |
3953 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3954 | while : | |
3955 | do | |
3956 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3957 | mv "conftest.tmp" "conftest.in" | |
3958 | cp "conftest.in" "conftest.nl" | |
3959 | echo 'EGREP' >> "conftest.nl" | |
3960 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3961 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3962 | ac_count=`expr $ac_count + 1` | |
3963 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3964 | # Best one so far, save it but keep looking for a better one | |
3965 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3966 | ac_path_EGREP_max=$ac_count | |
3967 | fi | |
3968 | # 10*(2^10) chars as input seems more than enough | |
3969 | test $ac_count -gt 10 && break | |
3970 | done | |
3971 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3972 | esac | |
3973 | ||
3974 | ||
3975 | $ac_path_EGREP_found && break 3 | |
3976 | done | |
3977 | done | |
3978 | ||
3979 | done | |
3980 | IFS=$as_save_IFS | |
3981 | ||
3982 | ||
3983 | fi | |
3984 | ||
3985 | EGREP="$ac_cv_path_EGREP" | |
3986 | if test -z "$EGREP"; then | |
3987 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3988 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3989 | { (exit 1); exit 1; }; } | |
3990 | fi | |
3991 | ||
3992 | else | |
3993 | ac_cv_path_EGREP=$EGREP | |
3994 | fi | |
3995 | ||
3996 | ||
3997 | fi | |
3998 | fi | |
3999 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4000 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4001 | EGREP="$ac_cv_path_EGREP" | |
4002 | ||
4003 | ||
4004 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4005 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
4006 | if test "${ac_cv_path_SED+set}" = set; then | |
4007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4008 | else | |
4009 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4010 | for ac_i in 1 2 3 4 5 6 7; do | |
4011 | ac_script="$ac_script$as_nl$ac_script" | |
4012 | done | |
4013 | echo "$ac_script" | sed 99q >conftest.sed | |
4014 | $as_unset ac_script || ac_script= | |
4015 | # Extract the first word of "sed gsed" to use in msg output | |
4016 | if test -z "$SED"; then | |
4017 | set dummy sed gsed; ac_prog_name=$2 | |
4018 | if test "${ac_cv_path_SED+set}" = set; then | |
4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4020 | else | |
4021 | ac_path_SED_found=false | |
4022 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4024 | for as_dir in $PATH | |
4025 | do | |
4026 | IFS=$as_save_IFS | |
4027 | test -z "$as_dir" && as_dir=. | |
4028 | for ac_prog in sed gsed; do | |
4029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4030 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4031 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4032 | # Check for GNU ac_path_SED and select it if it is found. | |
4033 | # Check for GNU $ac_path_SED | |
4034 | case `"$ac_path_SED" --version 2>&1` in | |
4035 | *GNU*) | |
4036 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4037 | *) | |
4038 | ac_count=0 | |
4039 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4040 | while : | |
4041 | do | |
4042 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4043 | mv "conftest.tmp" "conftest.in" | |
4044 | cp "conftest.in" "conftest.nl" | |
4045 | echo '' >> "conftest.nl" | |
4046 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4047 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4048 | ac_count=`expr $ac_count + 1` | |
4049 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4050 | # Best one so far, save it but keep looking for a better one | |
4051 | ac_cv_path_SED="$ac_path_SED" | |
4052 | ac_path_SED_max=$ac_count | |
4053 | fi | |
4054 | # 10*(2^10) chars as input seems more than enough | |
4055 | test $ac_count -gt 10 && break | |
4056 | done | |
4057 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4058 | esac | |
4059 | ||
4060 | ||
4061 | $ac_path_SED_found && break 3 | |
4062 | done | |
4063 | done | |
4064 | ||
4065 | done | |
4066 | IFS=$as_save_IFS | |
4067 | ||
4068 | ||
4069 | fi | |
4070 | ||
4071 | SED="$ac_cv_path_SED" | |
4072 | if test -z "$SED"; then | |
4073 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
4074 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
4075 | { (exit 1); exit 1; }; } | |
4076 | fi | |
4077 | ||
4078 | else | |
4079 | ac_cv_path_SED=$SED | |
4080 | fi | |
4081 | ||
4082 | fi | |
4083 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
4084 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
4085 | SED="$ac_cv_path_SED" | |
4086 | rm -f conftest.sed | |
4087 | ||
4088 | ||
4089 | F77=no | |
4090 | CXX=no | |
4091 | GCJ=no | |
4092 | ||
4093 | # Check whether --enable-static was given. | |
4094 | if test "${enable_static+set}" = set; then | |
4095 | enableval=$enable_static; p=${PACKAGE-default} | |
4096 | case $enableval in | |
4097 | yes) enable_static=yes ;; | |
4098 | no) enable_static=no ;; | |
4099 | *) | |
4100 | enable_static=no | |
4101 | # Look at the argument we got. We use all the common list separators. | |
4102 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4103 | for pkg in $enableval; do | |
4104 | IFS="$lt_save_ifs" | |
4105 | if test "X$pkg" = "X$p"; then | |
4106 | enable_static=yes | |
4107 | fi | |
4108 | done | |
4109 | IFS="$lt_save_ifs" | |
4110 | ;; | |
4111 | esac | |
4112 | else | |
4113 | enable_static=no | |
4114 | fi | |
4115 | ||
4116 | ||
4117 | ||
4118 | # Check whether --enable-shared was given. | |
4119 | if test "${enable_shared+set}" = set; then | |
4120 | enableval=$enable_shared; p=${PACKAGE-default} | |
4121 | case $enableval in | |
4122 | yes) enable_shared=yes ;; | |
4123 | no) enable_shared=no ;; | |
4124 | *) | |
4125 | enable_shared=no | |
4126 | # Look at the argument we got. We use all the common list separators. | |
4127 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4128 | for pkg in $enableval; do | |
4129 | IFS="$lt_save_ifs" | |
4130 | if test "X$pkg" = "X$p"; then | |
4131 | enable_shared=yes | |
4132 | fi | |
4133 | done | |
4134 | IFS="$lt_save_ifs" | |
4135 | ;; | |
4136 | esac | |
4137 | else | |
4138 | enable_shared=yes | |
4139 | fi | |
4140 | ||
4141 | ||
4142 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
4143 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
4144 | # Check whether --enable-maintainer-mode was given. | |
4145 | if test "${enable_maintainer_mode+set}" = set; then | |
4146 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4147 | else | |
4148 | USE_MAINTAINER_MODE=no | |
4149 | fi | |
4150 | ||
4151 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4152 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
4153 | if test $USE_MAINTAINER_MODE = yes; then | |
4154 | MAINTAINER_MODE_TRUE= | |
4155 | MAINTAINER_MODE_FALSE='#' | |
4156 | else | |
4157 | MAINTAINER_MODE_TRUE='#' | |
4158 | MAINTAINER_MODE_FALSE= | |
4159 | fi | |
4160 | ||
4161 | MAINT=$MAINTAINER_MODE_TRUE | |
4162 | ||
4163 | ||
4164 | ||
4165 | ||
4166 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
4167 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
4168 | if test "${ac_cv_search_strerror+set}" = set; then | |
4169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4170 | else | |
4171 | ac_func_search_save_LIBS=$LIBS | |
4172 | cat >conftest.$ac_ext <<_ACEOF | |
4173 | /* confdefs.h. */ | |
4174 | _ACEOF | |
4175 | cat confdefs.h >>conftest.$ac_ext | |
4176 | cat >>conftest.$ac_ext <<_ACEOF | |
4177 | /* end confdefs.h. */ | |
4178 | ||
4179 | /* Override any GCC internal prototype to avoid an error. | |
4180 | Use char because int might match the return type of a GCC | |
4181 | builtin and then its argument prototype would still apply. */ | |
4182 | #ifdef __cplusplus | |
4183 | extern "C" | |
4184 | #endif | |
4185 | char strerror (); | |
4186 | int | |
4187 | main () | |
4188 | { | |
4189 | return strerror (); | |
4190 | ; | |
4191 | return 0; | |
4192 | } | |
4193 | _ACEOF | |
4194 | for ac_lib in '' cposix; do | |
4195 | if test -z "$ac_lib"; then | |
4196 | ac_res="none required" | |
4197 | else | |
4198 | ac_res=-l$ac_lib | |
4199 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4200 | fi | |
4201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4202 | if { (ac_try="$ac_link" | |
4203 | case "(($ac_try" in | |
4204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4205 | *) ac_try_echo=$ac_try;; | |
4206 | esac | |
4207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4208 | (eval "$ac_link") 2>conftest.er1 | |
4209 | ac_status=$? | |
4210 | grep -v '^ *+' conftest.er1 >conftest.err | |
4211 | rm -f conftest.er1 | |
4212 | cat conftest.err >&5 | |
4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4214 | (exit $ac_status); } && { | |
4215 | test -z "$ac_c_werror_flag" || | |
4216 | test ! -s conftest.err | |
4217 | } && test -s conftest$ac_exeext && | |
4218 | $as_test_x conftest$ac_exeext; then | |
4219 | ac_cv_search_strerror=$ac_res | |
4220 | else | |
4221 | echo "$as_me: failed program was:" >&5 | |
4222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4223 | ||
4224 | ||
4225 | fi | |
4226 | ||
4227 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4228 | conftest$ac_exeext | |
4229 | if test "${ac_cv_search_strerror+set}" = set; then | |
4230 | break | |
4231 | fi | |
4232 | done | |
4233 | if test "${ac_cv_search_strerror+set}" = set; then | |
4234 | : | |
4235 | else | |
4236 | ac_cv_search_strerror=no | |
4237 | fi | |
4238 | rm conftest.$ac_ext | |
4239 | LIBS=$ac_func_search_save_LIBS | |
4240 | fi | |
4241 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
4242 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
4243 | ac_res=$ac_cv_search_strerror | |
4244 | if test "$ac_res" != no; then | |
4245 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4246 | ||
4247 | fi | |
4248 | ||
4249 | { echo "$as_me:$LINENO: checking for inline" >&5 | |
4250 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
4251 | if test "${ac_cv_c_inline+set}" = set; then | |
4252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4253 | else | |
4254 | ac_cv_c_inline=no | |
4255 | for ac_kw in inline __inline__ __inline; do | |
4256 | cat >conftest.$ac_ext <<_ACEOF | |
4257 | /* confdefs.h. */ | |
4258 | _ACEOF | |
4259 | cat confdefs.h >>conftest.$ac_ext | |
4260 | cat >>conftest.$ac_ext <<_ACEOF | |
4261 | /* end confdefs.h. */ | |
4262 | #ifndef __cplusplus | |
4263 | typedef int foo_t; | |
4264 | static $ac_kw foo_t static_foo () {return 0; } | |
4265 | $ac_kw foo_t foo () {return 0; } | |
4266 | #endif | |
4267 | ||
4268 | _ACEOF | |
4269 | rm -f conftest.$ac_objext | |
4270 | if { (ac_try="$ac_compile" | |
4271 | case "(($ac_try" in | |
4272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4273 | *) ac_try_echo=$ac_try;; | |
4274 | esac | |
4275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4276 | (eval "$ac_compile") 2>conftest.er1 | |
4277 | ac_status=$? | |
4278 | grep -v '^ *+' conftest.er1 >conftest.err | |
4279 | rm -f conftest.er1 | |
4280 | cat conftest.err >&5 | |
4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4282 | (exit $ac_status); } && { | |
4283 | test -z "$ac_c_werror_flag" || | |
4284 | test ! -s conftest.err | |
4285 | } && test -s conftest.$ac_objext; then | |
4286 | ac_cv_c_inline=$ac_kw | |
4287 | else | |
4288 | echo "$as_me: failed program was:" >&5 | |
4289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4290 | ||
4291 | ||
4292 | fi | |
4293 | ||
4294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4295 | test "$ac_cv_c_inline" != no && break | |
4296 | done | |
4297 | ||
4298 | fi | |
4299 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
4300 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
4301 | ||
4302 | ||
4303 | case $ac_cv_c_inline in | |
4304 | inline | yes) ;; | |
4305 | *) | |
4306 | case $ac_cv_c_inline in | |
4307 | no) ac_val=;; | |
4308 | *) ac_val=$ac_cv_c_inline;; | |
4309 | esac | |
4310 | cat >>confdefs.h <<_ACEOF | |
4311 | #ifndef __cplusplus | |
4312 | #define inline $ac_val | |
4313 | #endif | |
4314 | _ACEOF | |
4315 | ;; | |
4316 | esac | |
4317 | ||
4318 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
4319 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
4320 | if test "${ac_cv_c_const+set}" = set; then | |
4321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4322 | else | |
4323 | cat >conftest.$ac_ext <<_ACEOF | |
4324 | /* confdefs.h. */ | |
4325 | _ACEOF | |
4326 | cat confdefs.h >>conftest.$ac_ext | |
4327 | cat >>conftest.$ac_ext <<_ACEOF | |
4328 | /* end confdefs.h. */ | |
4329 | ||
4330 | int | |
4331 | main () | |
4332 | { | |
4333 | /* FIXME: Include the comments suggested by Paul. */ | |
4334 | #ifndef __cplusplus | |
4335 | /* Ultrix mips cc rejects this. */ | |
4336 | typedef int charset[2]; | |
4337 | const charset cs; | |
4338 | /* SunOS 4.1.1 cc rejects this. */ | |
4339 | char const *const *pcpcc; | |
4340 | char **ppc; | |
4341 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4342 | struct point {int x, y;}; | |
4343 | static struct point const zero = {0,0}; | |
4344 | /* AIX XL C 1.02.0.0 rejects this. | |
4345 | It does not let you subtract one const X* pointer from another in | |
4346 | an arm of an if-expression whose if-part is not a constant | |
4347 | expression */ | |
4348 | const char *g = "string"; | |
4349 | pcpcc = &g + (g ? g-g : 0); | |
4350 | /* HPUX 7.0 cc rejects these. */ | |
4351 | ++pcpcc; | |
4352 | ppc = (char**) pcpcc; | |
4353 | pcpcc = (char const *const *) ppc; | |
4354 | { /* SCO 3.2v4 cc rejects this. */ | |
4355 | char *t; | |
4356 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4357 | ||
4358 | *t++ = 0; | |
4359 | if (s) return 0; | |
4360 | } | |
4361 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4362 | int x[] = {25, 17}; | |
4363 | const int *foo = &x[0]; | |
4364 | ++foo; | |
4365 | } | |
4366 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4367 | typedef const int *iptr; | |
4368 | iptr p = 0; | |
4369 | ++p; | |
4370 | } | |
4371 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4372 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4373 | struct s { int j; const int *ap[3]; }; | |
4374 | struct s *b; b->j = 5; | |
4375 | } | |
4376 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4377 | const int foo = 10; | |
4378 | if (!foo) return 0; | |
4379 | } | |
4380 | return !cs[0] && !zero.x; | |
4381 | #endif | |
4382 | ||
4383 | ; | |
4384 | return 0; | |
4385 | } | |
4386 | _ACEOF | |
4387 | rm -f conftest.$ac_objext | |
4388 | if { (ac_try="$ac_compile" | |
4389 | case "(($ac_try" in | |
4390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4391 | *) ac_try_echo=$ac_try;; | |
4392 | esac | |
4393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4394 | (eval "$ac_compile") 2>conftest.er1 | |
4395 | ac_status=$? | |
4396 | grep -v '^ *+' conftest.er1 >conftest.err | |
4397 | rm -f conftest.er1 | |
4398 | cat conftest.err >&5 | |
4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4400 | (exit $ac_status); } && { | |
4401 | test -z "$ac_c_werror_flag" || | |
4402 | test ! -s conftest.err | |
4403 | } && test -s conftest.$ac_objext; then | |
4404 | ac_cv_c_const=yes | |
4405 | else | |
4406 | echo "$as_me: failed program was:" >&5 | |
4407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4408 | ||
4409 | ac_cv_c_const=no | |
4410 | fi | |
4411 | ||
4412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4413 | fi | |
4414 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
4415 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
4416 | if test $ac_cv_c_const = no; then | |
4417 | ||
4418 | cat >>confdefs.h <<\_ACEOF | |
4419 | #define const | |
4420 | _ACEOF | |
4421 | ||
4422 | fi | |
4423 | ||
4424 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4425 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
4426 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4427 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4429 | else | |
4430 | cat >conftest.make <<\_ACEOF | |
4431 | SHELL = /bin/sh | |
4432 | all: | |
4433 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4434 | _ACEOF | |
4435 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4436 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4437 | *@@@%%%=?*=@@@%%%*) | |
4438 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4439 | *) | |
4440 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4441 | esac | |
4442 | rm -f conftest.make | |
4443 | fi | |
4444 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4445 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4446 | echo "${ECHO_T}yes" >&6; } | |
4447 | SET_MAKE= | |
4448 | else | |
4449 | { echo "$as_me:$LINENO: result: no" >&5 | |
4450 | echo "${ECHO_T}no" >&6; } | |
4451 | SET_MAKE="MAKE=${MAKE-make}" | |
4452 | fi | |
4453 | ||
4454 | # Find a good install program. We prefer a C program (faster), | |
4455 | # so one script is as good as another. But avoid the broken or | |
4456 | # incompatible versions: | |
4457 | # SysV /etc/install, /usr/sbin/install | |
4458 | # SunOS /usr/etc/install | |
4459 | # IRIX /sbin/install | |
4460 | # AIX /bin/install | |
4461 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4462 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4463 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4464 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4465 | # OS/2's system install, which has a completely different semantic | |
4466 | # ./install, which can be erroneously created by make from ./install.sh. | |
4467 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
4468 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
4469 | if test -z "$INSTALL"; then | |
4470 | if test "${ac_cv_path_install+set}" = set; then | |
4471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4472 | else | |
4473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4474 | for as_dir in $PATH | |
4475 | do | |
4476 | IFS=$as_save_IFS | |
4477 | test -z "$as_dir" && as_dir=. | |
4478 | # Account for people who put trailing slashes in PATH elements. | |
4479 | case $as_dir/ in | |
4480 | ./ | .// | /cC/* | \ | |
4481 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4482 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4483 | /usr/ucb/* ) ;; | |
4484 | *) | |
4485 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4486 | # Don't use installbsd from OSF since it installs stuff as root | |
4487 | # by default. | |
4488 | for ac_prog in ginstall scoinst install; do | |
4489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4490 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4491 | if test $ac_prog = install && | |
4492 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4493 | # AIX install. It has an incompatible calling convention. | |
4494 | : | |
4495 | elif test $ac_prog = install && | |
4496 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4497 | # program-specific install script used by HP pwplus--don't use. | |
4498 | : | |
4499 | else | |
4500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4501 | break 3 | |
4502 | fi | |
4503 | fi | |
4504 | done | |
4505 | done | |
4506 | ;; | |
4507 | esac | |
4508 | done | |
4509 | IFS=$as_save_IFS | |
4510 | ||
4511 | ||
4512 | fi | |
4513 | if test "${ac_cv_path_install+set}" = set; then | |
4514 | INSTALL=$ac_cv_path_install | |
4515 | else | |
4516 | # As a last resort, use the slow shell script. Don't cache a | |
4517 | # value for INSTALL within a source directory, because that will | |
4518 | # break other packages using the cache if that directory is | |
4519 | # removed, or if the value is a relative name. | |
4520 | INSTALL=$ac_install_sh | |
4521 | fi | |
4522 | fi | |
4523 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
4524 | echo "${ECHO_T}$INSTALL" >&6; } | |
4525 | ||
4526 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4527 | # It thinks the first close brace ends the variable substitution. | |
4528 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4529 | ||
4530 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4531 | ||
4532 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4533 | ||
4534 | # Extract the first word of "automake", so it can be a program name with args. | |
4535 | set dummy automake; ac_word=$2 | |
4536 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4538 | if test "${ac_cv_path_AUTOMAKE+set}" = set; then | |
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4540 | else | |
4541 | case $AUTOMAKE in | |
4542 | [\\/]* | ?:[\\/]*) | |
4543 | ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path. | |
4544 | ;; | |
4545 | *) | |
4546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4547 | for as_dir in $PATH | |
4548 | do | |
4549 | IFS=$as_save_IFS | |
4550 | test -z "$as_dir" && as_dir=. | |
4551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4553 | ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext" | |
4554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4555 | break 2 | |
4556 | fi | |
4557 | done | |
4558 | done | |
4559 | IFS=$as_save_IFS | |
4560 | ||
4561 | ;; | |
4562 | esac | |
4563 | fi | |
4564 | AUTOMAKE=$ac_cv_path_AUTOMAKE | |
4565 | if test -n "$AUTOMAKE"; then | |
4566 | { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5 | |
4567 | echo "${ECHO_T}$AUTOMAKE" >&6; } | |
4568 | else | |
4569 | { echo "$as_me:$LINENO: result: no" >&5 | |
4570 | echo "${ECHO_T}no" >&6; } | |
4571 | fi | |
4572 | ||
4573 | ||
4574 | # Extract the first word of "aclocal", so it can be a program name with args. | |
4575 | set dummy aclocal; ac_word=$2 | |
4576 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4578 | if test "${ac_cv_path_ACLOCAL+set}" = set; then | |
4579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4580 | else | |
4581 | case $ACLOCAL in | |
4582 | [\\/]* | ?:[\\/]*) | |
4583 | ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path. | |
4584 | ;; | |
4585 | *) | |
4586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4587 | for as_dir in $PATH | |
4588 | do | |
4589 | IFS=$as_save_IFS | |
4590 | test -z "$as_dir" && as_dir=. | |
4591 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4592 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4593 | ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext" | |
4594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4595 | break 2 | |
4596 | fi | |
4597 | done | |
4598 | done | |
4599 | IFS=$as_save_IFS | |
4600 | ||
4601 | ;; | |
4602 | esac | |
4603 | fi | |
4604 | ACLOCAL=$ac_cv_path_ACLOCAL | |
4605 | if test -n "$ACLOCAL"; then | |
4606 | { echo "$as_me:$LINENO: result: $ACLOCAL" >&5 | |
4607 | echo "${ECHO_T}$ACLOCAL" >&6; } | |
4608 | else | |
4609 | { echo "$as_me:$LINENO: result: no" >&5 | |
4610 | echo "${ECHO_T}no" >&6; } | |
4611 | fi | |
4612 | ||
4613 | ||
4614 | # Extract the first word of "autoheader", so it can be a program name with args. | |
4615 | set dummy autoheader; ac_word=$2 | |
4616 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4618 | if test "${ac_cv_path_AUTOHEADER+set}" = set; then | |
4619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4620 | else | |
4621 | case $AUTOHEADER in | |
4622 | [\\/]* | ?:[\\/]*) | |
4623 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. | |
4624 | ;; | |
4625 | *) | |
4626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4627 | for as_dir in $PATH | |
4628 | do | |
4629 | IFS=$as_save_IFS | |
4630 | test -z "$as_dir" && as_dir=. | |
4631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4633 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" | |
4634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4635 | break 2 | |
4636 | fi | |
4637 | done | |
4638 | done | |
4639 | IFS=$as_save_IFS | |
4640 | ||
4641 | ;; | |
4642 | esac | |
4643 | fi | |
4644 | AUTOHEADER=$ac_cv_path_AUTOHEADER | |
4645 | if test -n "$AUTOHEADER"; then | |
4646 | { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5 | |
4647 | echo "${ECHO_T}$AUTOHEADER" >&6; } | |
4648 | else | |
4649 | { echo "$as_me:$LINENO: result: no" >&5 | |
4650 | echo "${ECHO_T}no" >&6; } | |
4651 | fi | |
4652 | ||
4653 | ||
4654 | # Extract the first word of "as", so it can be a program name with args. | |
4655 | set dummy as; ac_word=$2 | |
4656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4658 | if test "${ac_cv_path_AS+set}" = set; then | |
4659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4660 | else | |
4661 | case $AS in | |
4662 | [\\/]* | ?:[\\/]*) | |
4663 | ac_cv_path_AS="$AS" # Let the user override the test with a path. | |
4664 | ;; | |
4665 | *) | |
4666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4667 | for as_dir in $PATH | |
4668 | do | |
4669 | IFS=$as_save_IFS | |
4670 | test -z "$as_dir" && as_dir=. | |
4671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4673 | ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" | |
4674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4675 | break 2 | |
4676 | fi | |
4677 | done | |
4678 | done | |
4679 | IFS=$as_save_IFS | |
4680 | ||
4681 | ;; | |
4682 | esac | |
4683 | fi | |
4684 | AS=$ac_cv_path_AS | |
4685 | if test -n "$AS"; then | |
4686 | { echo "$as_me:$LINENO: result: $AS" >&5 | |
4687 | echo "${ECHO_T}$AS" >&6; } | |
4688 | else | |
4689 | { echo "$as_me:$LINENO: result: no" >&5 | |
4690 | echo "${ECHO_T}no" >&6; } | |
4691 | fi | |
4692 | ||
4693 | ||
4694 | # Extract the first word of "rm", so it can be a program name with args. | |
4695 | set dummy rm; ac_word=$2 | |
4696 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4698 | if test "${ac_cv_path_RM+set}" = set; then | |
4699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4700 | else | |
4701 | case $RM in | |
4702 | [\\/]* | ?:[\\/]*) | |
4703 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4704 | ;; | |
4705 | *) | |
4706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4707 | for as_dir in $PATH | |
4708 | do | |
4709 | IFS=$as_save_IFS | |
4710 | test -z "$as_dir" && as_dir=. | |
4711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4713 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
4714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4715 | break 2 | |
4716 | fi | |
4717 | done | |
4718 | done | |
4719 | IFS=$as_save_IFS | |
4720 | ||
4721 | ;; | |
4722 | esac | |
4723 | fi | |
4724 | RM=$ac_cv_path_RM | |
4725 | if test -n "$RM"; then | |
4726 | { echo "$as_me:$LINENO: result: $RM" >&5 | |
4727 | echo "${ECHO_T}$RM" >&6; } | |
4728 | else | |
4729 | { echo "$as_me:$LINENO: result: no" >&5 | |
4730 | echo "${ECHO_T}no" >&6; } | |
4731 | fi | |
4732 | ||
4733 | ||
4734 | # Extract the first word of "cp", so it can be a program name with args. | |
4735 | set dummy cp; ac_word=$2 | |
4736 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4738 | if test "${ac_cv_path_CP+set}" = set; then | |
4739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4740 | else | |
4741 | case $CP in | |
4742 | [\\/]* | ?:[\\/]*) | |
4743 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4744 | ;; | |
4745 | *) | |
4746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4747 | for as_dir in $PATH | |
4748 | do | |
4749 | IFS=$as_save_IFS | |
4750 | test -z "$as_dir" && as_dir=. | |
4751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4753 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
4754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4755 | break 2 | |
4756 | fi | |
4757 | done | |
4758 | done | |
4759 | IFS=$as_save_IFS | |
4760 | ||
4761 | ;; | |
4762 | esac | |
4763 | fi | |
4764 | CP=$ac_cv_path_CP | |
4765 | if test -n "$CP"; then | |
4766 | { echo "$as_me:$LINENO: result: $CP" >&5 | |
4767 | echo "${ECHO_T}$CP" >&6; } | |
4768 | else | |
4769 | { echo "$as_me:$LINENO: result: no" >&5 | |
4770 | echo "${ECHO_T}no" >&6; } | |
4771 | fi | |
4772 | ||
4773 | ||
4774 | # Extract the first word of "mv", so it can be a program name with args. | |
4775 | set dummy mv; ac_word=$2 | |
4776 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4778 | if test "${ac_cv_path_MV+set}" = set; then | |
4779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4780 | else | |
4781 | case $MV in | |
4782 | [\\/]* | ?:[\\/]*) | |
4783 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4784 | ;; | |
4785 | *) | |
4786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4787 | for as_dir in $PATH | |
4788 | do | |
4789 | IFS=$as_save_IFS | |
4790 | test -z "$as_dir" && as_dir=. | |
4791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4793 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
4794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4795 | break 2 | |
4796 | fi | |
4797 | done | |
4798 | done | |
4799 | IFS=$as_save_IFS | |
4800 | ||
4801 | ;; | |
4802 | esac | |
4803 | fi | |
4804 | MV=$ac_cv_path_MV | |
4805 | if test -n "$MV"; then | |
4806 | { echo "$as_me:$LINENO: result: $MV" >&5 | |
4807 | echo "${ECHO_T}$MV" >&6; } | |
4808 | else | |
4809 | { echo "$as_me:$LINENO: result: no" >&5 | |
4810 | echo "${ECHO_T}no" >&6; } | |
4811 | fi | |
4812 | ||
4813 | ||
4814 | # Extract the first word of "ln", so it can be a program name with args. | |
4815 | set dummy ln; ac_word=$2 | |
4816 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4818 | if test "${ac_cv_path_LN+set}" = set; then | |
4819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4820 | else | |
4821 | case $LN in | |
4822 | [\\/]* | ?:[\\/]*) | |
4823 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4824 | ;; | |
4825 | *) | |
4826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4827 | for as_dir in $PATH | |
4828 | do | |
4829 | IFS=$as_save_IFS | |
4830 | test -z "$as_dir" && as_dir=. | |
4831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4833 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
4834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4835 | break 2 | |
4836 | fi | |
4837 | done | |
4838 | done | |
4839 | IFS=$as_save_IFS | |
4840 | ||
4841 | ;; | |
4842 | esac | |
4843 | fi | |
4844 | LN=$ac_cv_path_LN | |
4845 | if test -n "$LN"; then | |
4846 | { echo "$as_me:$LINENO: result: $LN" >&5 | |
4847 | echo "${ECHO_T}$LN" >&6; } | |
4848 | else | |
4849 | { echo "$as_me:$LINENO: result: no" >&5 | |
4850 | echo "${ECHO_T}no" >&6; } | |
4851 | fi | |
4852 | ||
4853 | ||
db137867 AC |
4854 | # Extract the first word of "touch", so it can be a program name with args. |
4855 | set dummy touch; ac_word=$2 | |
4856 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4858 | if test "${ac_cv_path_TOUCH+set}" = set; then | |
4859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4860 | else | |
4861 | case $TOUCH in | |
4862 | [\\/]* | ?:[\\/]*) | |
4863 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
4864 | ;; | |
4865 | *) | |
4866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4867 | for as_dir in $PATH | |
4868 | do | |
4869 | IFS=$as_save_IFS | |
4870 | test -z "$as_dir" && as_dir=. | |
4871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4873 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
4874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4875 | break 2 | |
4876 | fi | |
4877 | done | |
4878 | done | |
4879 | IFS=$as_save_IFS | |
4880 | ||
4881 | ;; | |
4882 | esac | |
4883 | fi | |
4884 | TOUCH=$ac_cv_path_TOUCH | |
4885 | if test -n "$TOUCH"; then | |
4886 | { echo "$as_me:$LINENO: result: $TOUCH" >&5 | |
4887 | echo "${ECHO_T}$TOUCH" >&6; } | |
4888 | else | |
4889 | { echo "$as_me:$LINENO: result: no" >&5 | |
4890 | echo "${ECHO_T}no" >&6; } | |
4891 | fi | |
4892 | ||
4893 | ||
4894 | ac_ext=c | |
4895 | ac_cpp='$CPP $CPPFLAGS' | |
4896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4899 | ||
4900 | ||
4901 | # Check whether --enable-fast-install was given. | |
4902 | if test "${enable_fast_install+set}" = set; then | |
4903 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
4904 | case $enableval in | |
4905 | yes) enable_fast_install=yes ;; | |
4906 | no) enable_fast_install=no ;; | |
4907 | *) | |
4908 | enable_fast_install=no | |
4909 | # Look at the argument we got. We use all the common list separators. | |
4910 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4911 | for pkg in $enableval; do | |
4912 | IFS="$lt_save_ifs" | |
4913 | if test "X$pkg" = "X$p"; then | |
4914 | enable_fast_install=yes | |
4915 | fi | |
4916 | done | |
4917 | IFS="$lt_save_ifs" | |
4918 | ;; | |
4919 | esac | |
4920 | else | |
4921 | enable_fast_install=yes | |
4922 | fi | |
4923 | ||
4924 | ||
4925 | # Make sure we can run config.sub. | |
4926 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4927 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
4928 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
4929 | { (exit 1); exit 1; }; } | |
4930 | ||
4931 | { echo "$as_me:$LINENO: checking build system type" >&5 | |
4932 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
4933 | if test "${ac_cv_build+set}" = set; then | |
4934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4935 | else | |
4936 | ac_build_alias=$build_alias | |
4937 | test "x$ac_build_alias" = x && | |
4938 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4939 | test "x$ac_build_alias" = x && | |
4940 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
4941 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
4942 | { (exit 1); exit 1; }; } | |
4943 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4944 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
4945 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
4946 | { (exit 1); exit 1; }; } | |
4947 | ||
4948 | fi | |
4949 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
4950 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
4951 | case $ac_cv_build in | |
4952 | *-*-*) ;; | |
4953 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
4954 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
4955 | { (exit 1); exit 1; }; };; | |
4956 | esac | |
4957 | build=$ac_cv_build | |
4958 | ac_save_IFS=$IFS; IFS='-' | |
4959 | set x $ac_cv_build | |
4960 | shift | |
4961 | build_cpu=$1 | |
4962 | build_vendor=$2 | |
4963 | shift; shift | |
4964 | # Remember, the first character of IFS is used to create $*, | |
4965 | # except with old shells: | |
4966 | build_os=$* | |
4967 | IFS=$ac_save_IFS | |
4968 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4969 | ||
4970 | ||
4971 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
4972 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
4973 | if test "${ac_cv_host+set}" = set; then | |
4974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4975 | else | |
4976 | if test "x$host_alias" = x; then | |
4977 | ac_cv_host=$ac_cv_build | |
4978 | else | |
4979 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4980 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
4981 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
4982 | { (exit 1); exit 1; }; } | |
4983 | fi | |
4984 | ||
4985 | fi | |
4986 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
4987 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
4988 | case $ac_cv_host in | |
4989 | *-*-*) ;; | |
4990 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
4991 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
4992 | { (exit 1); exit 1; }; };; | |
4993 | esac | |
4994 | host=$ac_cv_host | |
4995 | ac_save_IFS=$IFS; IFS='-' | |
4996 | set x $ac_cv_host | |
4997 | shift | |
4998 | host_cpu=$1 | |
4999 | host_vendor=$2 | |
5000 | shift; shift | |
5001 | # Remember, the first character of IFS is used to create $*, | |
5002 | # except with old shells: | |
5003 | host_os=$* | |
5004 | IFS=$ac_save_IFS | |
5005 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5006 | ||
5007 | ||
5008 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
5009 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
5010 | if test "${lt_cv_path_SED+set}" = set; then | |
5011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5012 | else | |
5013 | # Loop through the user's path and test for sed and gsed. | |
5014 | # Then use that list of sed's as ones to test for truncation. | |
5015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5016 | for as_dir in $PATH | |
5017 | do | |
5018 | IFS=$as_save_IFS | |
5019 | test -z "$as_dir" && as_dir=. | |
5020 | for lt_ac_prog in sed gsed; do | |
5021 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5022 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then | |
5023 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
5024 | fi | |
5025 | done | |
5026 | done | |
5027 | done | |
5028 | IFS=$as_save_IFS | |
5029 | lt_ac_max=0 | |
5030 | lt_ac_count=0 | |
5031 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
5032 | # along with /bin/sed that truncates output. | |
5033 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
5034 | test ! -f $lt_ac_sed && continue | |
5035 | cat /dev/null > conftest.in | |
5036 | lt_ac_count=0 | |
5037 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
5038 | # Check for GNU sed and select it if it is found. | |
5039 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
5040 | lt_cv_path_SED=$lt_ac_sed | |
5041 | break | |
5042 | fi | |
5043 | while true; do | |
5044 | cat conftest.in conftest.in >conftest.tmp | |
5045 | mv conftest.tmp conftest.in | |
5046 | cp conftest.in conftest.nl | |
5047 | echo >>conftest.nl | |
5048 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
5049 | cmp -s conftest.out conftest.nl || break | |
5050 | # 10000 chars as input seems more than enough | |
5051 | test $lt_ac_count -gt 10 && break | |
5052 | lt_ac_count=`expr $lt_ac_count + 1` | |
5053 | if test $lt_ac_count -gt $lt_ac_max; then | |
5054 | lt_ac_max=$lt_ac_count | |
5055 | lt_cv_path_SED=$lt_ac_sed | |
5056 | fi | |
5057 | done | |
5058 | done | |
5059 | ||
5060 | fi | |
5061 | ||
5062 | SED=$lt_cv_path_SED | |
5063 | ||
5064 | { echo "$as_me:$LINENO: result: $SED" >&5 | |
5065 | echo "${ECHO_T}$SED" >&6; } | |
5066 | ||
5067 | ||
5068 | # Check whether --with-gnu-ld was given. | |
5069 | if test "${with_gnu_ld+set}" = set; then | |
5070 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5071 | else | |
5072 | with_gnu_ld=no | |
5073 | fi | |
5074 | ||
5075 | ac_prog=ld | |
5076 | if test "$GCC" = yes; then | |
5077 | # Check if gcc -print-prog-name=ld gives a path. | |
5078 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
5079 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
5080 | case $host in | |
5081 | *-*-mingw*) | |
5082 | # gcc leaves a trailing carriage return which upsets mingw | |
5083 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5084 | *) | |
5085 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5086 | esac | |
5087 | case $ac_prog in | |
5088 | # Accept absolute paths. | |
5089 | [\\/]* | ?:[\\/]*) | |
5090 | re_direlt='/[^/][^/]*/\.\./' | |
5091 | # Canonicalize the pathname of ld | |
5092 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
5093 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5094 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
5095 | done | |
5096 | test -z "$LD" && LD="$ac_prog" | |
5097 | ;; | |
5098 | "") | |
5099 | # If it fails, then pretend we aren't using GCC. | |
5100 | ac_prog=ld | |
5101 | ;; | |
5102 | *) | |
5103 | # If it is relative, then search for the first ld in PATH. | |
5104 | with_gnu_ld=unknown | |
5105 | ;; | |
5106 | esac | |
5107 | elif test "$with_gnu_ld" = yes; then | |
5108 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5109 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
5110 | else | |
5111 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5112 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
5113 | fi | |
5114 | if test "${lt_cv_path_LD+set}" = set; then | |
5115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5116 | else | |
5117 | if test -z "$LD"; then | |
5118 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5119 | for ac_dir in $PATH; do | |
5120 | IFS="$lt_save_ifs" | |
5121 | test -z "$ac_dir" && ac_dir=. | |
5122 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5123 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5124 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5125 | # but apparently some variants of GNU ld only accept -v. | |
5126 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5127 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5128 | *GNU* | *'with BFD'*) | |
5129 | test "$with_gnu_ld" != no && break | |
5130 | ;; | |
5131 | *) | |
5132 | test "$with_gnu_ld" != yes && break | |
5133 | ;; | |
5134 | esac | |
5135 | fi | |
5136 | done | |
5137 | IFS="$lt_save_ifs" | |
5138 | else | |
5139 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5140 | fi | |
5141 | fi | |
5142 | ||
5143 | LD="$lt_cv_path_LD" | |
5144 | if test -n "$LD"; then | |
5145 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
5146 | echo "${ECHO_T}$LD" >&6; } | |
5147 | else | |
5148 | { echo "$as_me:$LINENO: result: no" >&5 | |
5149 | echo "${ECHO_T}no" >&6; } | |
5150 | fi | |
5151 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5152 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5153 | { (exit 1); exit 1; }; } | |
5154 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5155 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
5156 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
5157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5158 | else | |
5159 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5160 | case `$LD -v 2>&1 </dev/null` in | |
5161 | *GNU* | *'with BFD'*) | |
5162 | lt_cv_prog_gnu_ld=yes | |
5163 | ;; | |
5164 | *) | |
5165 | lt_cv_prog_gnu_ld=no | |
5166 | ;; | |
5167 | esac | |
5168 | fi | |
5169 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
5170 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
5171 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5172 | ||
5173 | ||
5174 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
5175 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | |
5176 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5178 | else | |
5179 | lt_cv_ld_reload_flag='-r' | |
5180 | fi | |
5181 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
5182 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | |
5183 | reload_flag=$lt_cv_ld_reload_flag | |
5184 | case $reload_flag in | |
5185 | "" | " "*) ;; | |
5186 | *) reload_flag=" $reload_flag" ;; | |
5187 | esac | |
5188 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5189 | case $host_os in | |
5190 | darwin*) | |
5191 | if test "$GCC" = yes; then | |
5192 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5193 | else | |
5194 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5195 | fi | |
5196 | ;; | |
5197 | esac | |
5198 | ||
5199 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
5200 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | |
5201 | if test "${lt_cv_path_NM+set}" = set; then | |
5202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5203 | else | |
5204 | if test -n "$NM"; then | |
5205 | # Let the user override the test. | |
5206 | lt_cv_path_NM="$NM" | |
5207 | else | |
5208 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5209 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5210 | lt_nm_to_check="$lt_nm_to_check nm" | |
5211 | fi | |
5212 | for lt_tmp_nm in $lt_nm_to_check; do | |
5213 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5214 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5215 | IFS="$lt_save_ifs" | |
5216 | test -z "$ac_dir" && ac_dir=. | |
5217 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5218 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5219 | # Check to see if the nm accepts a BSD-compat flag. | |
5220 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5221 | # nm: unknown option "B" ignored | |
5222 | # Tru64's nm complains that /dev/null is an invalid object file | |
5223 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5224 | */dev/null* | *'Invalid file or object type'*) | |
5225 | lt_cv_path_NM="$tmp_nm -B" | |
5226 | break | |
5227 | ;; | |
5228 | *) | |
5229 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5230 | */dev/null*) | |
5231 | lt_cv_path_NM="$tmp_nm -p" | |
5232 | break | |
5233 | ;; | |
5234 | *) | |
5235 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5236 | continue # so that we can try to find one that supports BSD flags | |
5237 | ;; | |
5238 | esac | |
5239 | ;; | |
5240 | esac | |
5241 | fi | |
5242 | done | |
5243 | IFS="$lt_save_ifs" | |
5244 | done | |
5245 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
5246 | fi | |
5247 | fi | |
5248 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
5249 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | |
5250 | NM="$lt_cv_path_NM" | |
5251 | ||
5252 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
5253 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
5254 | LN_S=$as_ln_s | |
5255 | if test "$LN_S" = "ln -s"; then | |
5256 | { echo "$as_me:$LINENO: result: yes" >&5 | |
5257 | echo "${ECHO_T}yes" >&6; } | |
5258 | else | |
5259 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
5260 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
5261 | fi | |
5262 | ||
5263 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
5264 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } | |
5265 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5267 | else | |
5268 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5269 | lt_cv_file_magic_test_file= | |
5270 | lt_cv_deplibs_check_method='unknown' | |
5271 | # Need to set the preceding variable on all platforms that support | |
5272 | # interlibrary dependencies. | |
5273 | # 'none' -- dependencies not supported. | |
5274 | # `unknown' -- same as none, but documents that we really don't know. | |
5275 | # 'pass_all' -- all dependencies passed with no checks. | |
5276 | # 'test_compile' -- check by making test program. | |
5277 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5278 | # which responds to the $file_magic_cmd with a given extended regex. | |
5279 | # If you have `file' or equivalent on your system and you're not sure | |
5280 | # whether `pass_all' will *always* work, you probably want this one. | |
5281 | ||
5282 | case $host_os in | |
b676ea3b | 5283 | aix[4-9]*) |
db137867 AC |
5284 | lt_cv_deplibs_check_method=pass_all |
5285 | ;; | |
5286 | ||
5287 | beos*) | |
5288 | lt_cv_deplibs_check_method=pass_all | |
5289 | ;; | |
5290 | ||
5291 | bsdi[45]*) | |
5292 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5293 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5294 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5295 | ;; | |
5296 | ||
5297 | cygwin*) | |
5298 | # func_win32_libid is a shell function defined in ltmain.sh | |
5299 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5300 | lt_cv_file_magic_cmd='func_win32_libid' | |
5301 | ;; | |
5302 | ||
5303 | mingw* | pw32*) | |
5304 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5305 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5306 | # unless we find 'file', for example because we are cross-compiling. | |
5307 | if ( file / ) >/dev/null 2>&1; then | |
5308 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5309 | lt_cv_file_magic_cmd='func_win32_libid' | |
5310 | else | |
5311 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5312 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5313 | fi | |
5314 | ;; | |
5315 | ||
5316 | darwin* | rhapsody*) | |
5317 | lt_cv_deplibs_check_method=pass_all | |
5318 | ;; | |
5319 | ||
5320 | freebsd* | dragonfly*) | |
5321 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
5322 | case $host_cpu in | |
5323 | i*86 ) | |
5324 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5325 | # Let's accept both of them until this is cleared up. | |
5326 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5327 | lt_cv_file_magic_cmd=/usr/bin/file | |
5328 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5329 | ;; | |
5330 | esac | |
5331 | else | |
5332 | lt_cv_deplibs_check_method=pass_all | |
5333 | fi | |
5334 | ;; | |
5335 | ||
5336 | gnu*) | |
5337 | lt_cv_deplibs_check_method=pass_all | |
5338 | ;; | |
5339 | ||
5340 | hpux10.20* | hpux11*) | |
5341 | lt_cv_file_magic_cmd=/usr/bin/file | |
5342 | case $host_cpu in | |
5343 | ia64*) | |
5344 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5345 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5346 | ;; | |
5347 | hppa*64*) | |
5348 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
5349 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5350 | ;; | |
5351 | *) | |
5352 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5353 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5354 | ;; | |
5355 | esac | |
5356 | ;; | |
5357 | ||
5358 | interix[3-9]*) | |
5359 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5360 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5361 | ;; | |
5362 | ||
5363 | irix5* | irix6* | nonstopux*) | |
5364 | case $LD in | |
5365 | *-32|*"-32 ") libmagic=32-bit;; | |
5366 | *-n32|*"-n32 ") libmagic=N32;; | |
5367 | *-64|*"-64 ") libmagic=64-bit;; | |
5368 | *) libmagic=never-match;; | |
5369 | esac | |
5370 | lt_cv_deplibs_check_method=pass_all | |
5371 | ;; | |
5372 | ||
5373 | # This must be Linux ELF. | |
5374 | linux* | k*bsd*-gnu) | |
5375 | lt_cv_deplibs_check_method=pass_all | |
5376 | ;; | |
5377 | ||
5378 | netbsd* | netbsdelf*-gnu) | |
5379 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
5380 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5381 | else | |
5382 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5383 | fi | |
5384 | ;; | |
5385 | ||
5386 | newos6*) | |
5387 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5388 | lt_cv_file_magic_cmd=/usr/bin/file | |
5389 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5390 | ;; | |
5391 | ||
5392 | nto-qnx*) | |
5393 | lt_cv_deplibs_check_method=unknown | |
5394 | ;; | |
5395 | ||
5396 | openbsd*) | |
5397 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5398 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5399 | else | |
5400 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5401 | fi | |
5402 | ;; | |
5403 | ||
5404 | osf3* | osf4* | osf5*) | |
5405 | lt_cv_deplibs_check_method=pass_all | |
5406 | ;; | |
5407 | ||
5408 | rdos*) | |
5409 | lt_cv_deplibs_check_method=pass_all | |
5410 | ;; | |
5411 | ||
5412 | solaris*) | |
5413 | lt_cv_deplibs_check_method=pass_all | |
5414 | ;; | |
5415 | ||
5416 | sysv4 | sysv4.3*) | |
5417 | case $host_vendor in | |
5418 | motorola) | |
5419 | 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]' | |
5420 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5421 | ;; | |
5422 | ncr) | |
5423 | lt_cv_deplibs_check_method=pass_all | |
5424 | ;; | |
5425 | sequent) | |
5426 | lt_cv_file_magic_cmd='/bin/file' | |
5427 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5428 | ;; | |
5429 | sni) | |
5430 | lt_cv_file_magic_cmd='/bin/file' | |
5431 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5432 | lt_cv_file_magic_test_file=/lib/libc.so | |
5433 | ;; | |
5434 | siemens) | |
5435 | lt_cv_deplibs_check_method=pass_all | |
5436 | ;; | |
5437 | pc) | |
5438 | lt_cv_deplibs_check_method=pass_all | |
5439 | ;; | |
5440 | esac | |
5441 | ;; | |
5442 | ||
5443 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5444 | lt_cv_deplibs_check_method=pass_all | |
5445 | ;; | |
5446 | esac | |
5447 | ||
5448 | fi | |
5449 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
5450 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | |
5451 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5452 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5453 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | # If no C compiler was specified, use CC. | |
5459 | LTCC=${LTCC-"$CC"} | |
5460 | ||
5461 | # If no C compiler flags were specified, use CFLAGS. | |
5462 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5463 | ||
5464 | # Allow CC to be a program name with arguments. | |
5465 | compiler=$CC | |
5466 | ||
5467 | # Check whether --enable-libtool-lock was given. | |
5468 | if test "${enable_libtool_lock+set}" = set; then | |
5469 | enableval=$enable_libtool_lock; | |
5470 | fi | |
5471 | ||
5472 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5473 | ||
5474 | # Some flags need to be propagated to the compiler or linker for good | |
5475 | # libtool support. | |
5476 | case $host in | |
5477 | ia64-*-hpux*) | |
5478 | # Find out which ABI we are using. | |
5479 | echo 'int i;' > conftest.$ac_ext | |
5480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5481 | (eval $ac_compile) 2>&5 | |
5482 | ac_status=$? | |
5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5484 | (exit $ac_status); }; then | |
5485 | case `/usr/bin/file conftest.$ac_objext` in | |
5486 | *ELF-32*) | |
5487 | HPUX_IA64_MODE="32" | |
5488 | ;; | |
5489 | *ELF-64*) | |
5490 | HPUX_IA64_MODE="64" | |
5491 | ;; | |
5492 | esac | |
5493 | fi | |
5494 | rm -rf conftest* | |
5495 | ;; | |
5496 | *-*-irix6*) | |
5497 | # Find out which ABI we are using. | |
3202e249 | 5498 | echo '#line 5498 "configure"' > conftest.$ac_ext |
db137867 AC |
5499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5500 | (eval $ac_compile) 2>&5 | |
5501 | ac_status=$? | |
5502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5503 | (exit $ac_status); }; then | |
5504 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5505 | case `/usr/bin/file conftest.$ac_objext` in | |
5506 | *32-bit*) | |
5507 | LD="${LD-ld} -melf32bsmip" | |
5508 | ;; | |
5509 | *N32*) | |
5510 | LD="${LD-ld} -melf32bmipn32" | |
5511 | ;; | |
5512 | *64-bit*) | |
5513 | LD="${LD-ld} -melf64bmip" | |
5514 | ;; | |
5515 | esac | |
5516 | else | |
5517 | case `/usr/bin/file conftest.$ac_objext` in | |
5518 | *32-bit*) | |
5519 | LD="${LD-ld} -32" | |
5520 | ;; | |
5521 | *N32*) | |
5522 | LD="${LD-ld} -n32" | |
5523 | ;; | |
5524 | *64-bit*) | |
5525 | LD="${LD-ld} -64" | |
5526 | ;; | |
5527 | esac | |
5528 | fi | |
5529 | fi | |
5530 | rm -rf conftest* | |
5531 | ;; | |
5532 | ||
5533 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5534 | s390*-*linux*|sparc*-*linux*) | |
5535 | # Find out which ABI we are using. | |
5536 | echo 'int i;' > conftest.$ac_ext | |
5537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5538 | (eval $ac_compile) 2>&5 | |
5539 | ac_status=$? | |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5541 | (exit $ac_status); }; then | |
5542 | case `/usr/bin/file conftest.o` in | |
5543 | *32-bit*) | |
5544 | case $host in | |
5545 | x86_64-*kfreebsd*-gnu) | |
5546 | LD="${LD-ld} -m elf_i386_fbsd" | |
5547 | ;; | |
5548 | x86_64-*linux*) | |
5549 | LD="${LD-ld} -m elf_i386" | |
5550 | ;; | |
5551 | ppc64-*linux*|powerpc64-*linux*) | |
5552 | LD="${LD-ld} -m elf32ppclinux" | |
5553 | ;; | |
5554 | s390x-*linux*) | |
5555 | LD="${LD-ld} -m elf_s390" | |
5556 | ;; | |
5557 | sparc64-*linux*) | |
5558 | LD="${LD-ld} -m elf32_sparc" | |
5559 | ;; | |
5560 | esac | |
5561 | ;; | |
5562 | *64-bit*) | |
5563 | case $host in | |
5564 | x86_64-*kfreebsd*-gnu) | |
5565 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5566 | ;; | |
5567 | x86_64-*linux*) | |
5568 | LD="${LD-ld} -m elf_x86_64" | |
5569 | ;; | |
5570 | ppc*-*linux*|powerpc*-*linux*) | |
5571 | LD="${LD-ld} -m elf64ppc" | |
5572 | ;; | |
5573 | s390*-*linux*) | |
5574 | LD="${LD-ld} -m elf64_s390" | |
5575 | ;; | |
5576 | sparc*-*linux*) | |
5577 | LD="${LD-ld} -m elf64_sparc" | |
5578 | ;; | |
5579 | esac | |
5580 | ;; | |
5581 | esac | |
5582 | fi | |
5583 | rm -rf conftest* | |
5584 | ;; | |
5585 | ||
5586 | *-*-sco3.2v5*) | |
5587 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5588 | SAVE_CFLAGS="$CFLAGS" | |
5589 | CFLAGS="$CFLAGS -belf" | |
5590 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5591 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
5592 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5594 | else | |
5595 | ac_ext=c | |
5596 | ac_cpp='$CPP $CPPFLAGS' | |
5597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5600 | ||
5601 | cat >conftest.$ac_ext <<_ACEOF | |
5602 | /* confdefs.h. */ | |
5603 | _ACEOF | |
5604 | cat confdefs.h >>conftest.$ac_ext | |
5605 | cat >>conftest.$ac_ext <<_ACEOF | |
5606 | /* end confdefs.h. */ | |
5607 | ||
5608 | int | |
5609 | main () | |
5610 | { | |
5611 | ||
5612 | ; | |
5613 | return 0; | |
5614 | } | |
5615 | _ACEOF | |
5616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5617 | if { (ac_try="$ac_link" | |
5618 | case "(($ac_try" in | |
5619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5620 | *) ac_try_echo=$ac_try;; | |
5621 | esac | |
5622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5623 | (eval "$ac_link") 2>conftest.er1 | |
5624 | ac_status=$? | |
5625 | grep -v '^ *+' conftest.er1 >conftest.err | |
5626 | rm -f conftest.er1 | |
5627 | cat conftest.err >&5 | |
5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5629 | (exit $ac_status); } && { | |
5630 | test -z "$ac_c_werror_flag" || | |
5631 | test ! -s conftest.err | |
5632 | } && test -s conftest$ac_exeext && | |
5633 | $as_test_x conftest$ac_exeext; then | |
5634 | lt_cv_cc_needs_belf=yes | |
5635 | else | |
5636 | echo "$as_me: failed program was:" >&5 | |
5637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5638 | ||
5639 | lt_cv_cc_needs_belf=no | |
5640 | fi | |
5641 | ||
5642 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5643 | conftest$ac_exeext conftest.$ac_ext | |
5644 | ac_ext=c | |
5645 | ac_cpp='$CPP $CPPFLAGS' | |
5646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5649 | ||
5650 | fi | |
5651 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5652 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
5653 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5654 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5655 | CFLAGS="$SAVE_CFLAGS" | |
5656 | fi | |
5657 | ;; | |
5658 | sparc*-*solaris*) | |
5659 | # Find out which ABI we are using. | |
5660 | echo 'int i;' > conftest.$ac_ext | |
5661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5662 | (eval $ac_compile) 2>&5 | |
5663 | ac_status=$? | |
5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5665 | (exit $ac_status); }; then | |
5666 | case `/usr/bin/file conftest.o` in | |
5667 | *64-bit*) | |
5668 | case $lt_cv_prog_gnu_ld in | |
5669 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
b676ea3b AC |
5670 | *) |
5671 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5672 | LD="${LD-ld} -64" | |
5673 | fi | |
5674 | ;; | |
db137867 AC |
5675 | esac |
5676 | ;; | |
5677 | esac | |
5678 | fi | |
5679 | rm -rf conftest* | |
5680 | ;; | |
5681 | ||
5682 | ||
5683 | esac | |
5684 | ||
5685 | need_locks="$enable_libtool_lock" | |
5686 | ||
5687 | ||
5688 | ac_ext=c | |
5689 | ac_cpp='$CPP $CPPFLAGS' | |
5690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5693 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5694 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
5695 | # On Suns, sometimes $CPP names a directory. | |
5696 | if test -n "$CPP" && test -d "$CPP"; then | |
5697 | CPP= | |
5698 | fi | |
5699 | if test -z "$CPP"; then | |
5700 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5702 | else | |
5703 | # Double quotes because CPP needs to be expanded | |
5704 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5705 | do | |
5706 | ac_preproc_ok=false | |
5707 | for ac_c_preproc_warn_flag in '' yes | |
5708 | do | |
5709 | # Use a header file that comes with gcc, so configuring glibc | |
5710 | # with a fresh cross-compiler works. | |
5711 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5712 | # <limits.h> exists even on freestanding compilers. | |
5713 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5714 | # not just through cpp. "Syntax error" is here to catch this case. | |
5715 | cat >conftest.$ac_ext <<_ACEOF | |
5716 | /* confdefs.h. */ | |
5717 | _ACEOF | |
5718 | cat confdefs.h >>conftest.$ac_ext | |
5719 | cat >>conftest.$ac_ext <<_ACEOF | |
5720 | /* end confdefs.h. */ | |
5721 | #ifdef __STDC__ | |
5722 | # include <limits.h> | |
5723 | #else | |
5724 | # include <assert.h> | |
5725 | #endif | |
5726 | Syntax error | |
5727 | _ACEOF | |
5728 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5729 | case "(($ac_try" in | |
5730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5731 | *) ac_try_echo=$ac_try;; | |
5732 | esac | |
5733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5734 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5735 | ac_status=$? | |
5736 | grep -v '^ *+' conftest.er1 >conftest.err | |
5737 | rm -f conftest.er1 | |
5738 | cat conftest.err >&5 | |
5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5740 | (exit $ac_status); } >/dev/null && { | |
5741 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5742 | test ! -s conftest.err | |
5743 | }; then | |
5744 | : | |
5745 | else | |
5746 | echo "$as_me: failed program was:" >&5 | |
5747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5748 | ||
5749 | # Broken: fails on valid input. | |
5750 | continue | |
5751 | fi | |
5752 | ||
5753 | rm -f conftest.err conftest.$ac_ext | |
5754 | ||
5755 | # OK, works on sane cases. Now check whether nonexistent headers | |
5756 | # can be detected and how. | |
5757 | cat >conftest.$ac_ext <<_ACEOF | |
5758 | /* confdefs.h. */ | |
5759 | _ACEOF | |
5760 | cat confdefs.h >>conftest.$ac_ext | |
5761 | cat >>conftest.$ac_ext <<_ACEOF | |
5762 | /* end confdefs.h. */ | |
5763 | #include <ac_nonexistent.h> | |
5764 | _ACEOF | |
5765 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5766 | case "(($ac_try" in | |
5767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5768 | *) ac_try_echo=$ac_try;; | |
5769 | esac | |
5770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5772 | ac_status=$? | |
5773 | grep -v '^ *+' conftest.er1 >conftest.err | |
5774 | rm -f conftest.er1 | |
5775 | cat conftest.err >&5 | |
5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5777 | (exit $ac_status); } >/dev/null && { | |
5778 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5779 | test ! -s conftest.err | |
5780 | }; then | |
5781 | # Broken: success on invalid input. | |
5782 | continue | |
5783 | else | |
5784 | echo "$as_me: failed program was:" >&5 | |
5785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5786 | ||
5787 | # Passes both tests. | |
5788 | ac_preproc_ok=: | |
5789 | break | |
5790 | fi | |
5791 | ||
5792 | rm -f conftest.err conftest.$ac_ext | |
5793 | ||
5794 | done | |
5795 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5796 | rm -f conftest.err conftest.$ac_ext | |
5797 | if $ac_preproc_ok; then | |
5798 | break | |
5799 | fi | |
5800 | ||
5801 | done | |
5802 | ac_cv_prog_CPP=$CPP | |
5803 | ||
5804 | fi | |
5805 | CPP=$ac_cv_prog_CPP | |
5806 | else | |
5807 | ac_cv_prog_CPP=$CPP | |
5808 | fi | |
5809 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
5810 | echo "${ECHO_T}$CPP" >&6; } | |
5811 | ac_preproc_ok=false | |
5812 | for ac_c_preproc_warn_flag in '' yes | |
5813 | do | |
5814 | # Use a header file that comes with gcc, so configuring glibc | |
5815 | # with a fresh cross-compiler works. | |
5816 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5817 | # <limits.h> exists even on freestanding compilers. | |
5818 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5819 | # not just through cpp. "Syntax error" is here to catch this case. | |
5820 | cat >conftest.$ac_ext <<_ACEOF | |
5821 | /* confdefs.h. */ | |
5822 | _ACEOF | |
5823 | cat confdefs.h >>conftest.$ac_ext | |
5824 | cat >>conftest.$ac_ext <<_ACEOF | |
5825 | /* end confdefs.h. */ | |
5826 | #ifdef __STDC__ | |
5827 | # include <limits.h> | |
5828 | #else | |
5829 | # include <assert.h> | |
5830 | #endif | |
5831 | Syntax error | |
5832 | _ACEOF | |
5833 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5834 | case "(($ac_try" in | |
5835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5836 | *) ac_try_echo=$ac_try;; | |
5837 | esac | |
5838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5839 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5840 | ac_status=$? | |
5841 | grep -v '^ *+' conftest.er1 >conftest.err | |
5842 | rm -f conftest.er1 | |
5843 | cat conftest.err >&5 | |
5844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5845 | (exit $ac_status); } >/dev/null && { | |
5846 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5847 | test ! -s conftest.err | |
5848 | }; then | |
5849 | : | |
5850 | else | |
5851 | echo "$as_me: failed program was:" >&5 | |
5852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5853 | ||
5854 | # Broken: fails on valid input. | |
5855 | continue | |
5856 | fi | |
5857 | ||
5858 | rm -f conftest.err conftest.$ac_ext | |
5859 | ||
5860 | # OK, works on sane cases. Now check whether nonexistent headers | |
5861 | # can be detected and how. | |
5862 | cat >conftest.$ac_ext <<_ACEOF | |
5863 | /* confdefs.h. */ | |
5864 | _ACEOF | |
5865 | cat confdefs.h >>conftest.$ac_ext | |
5866 | cat >>conftest.$ac_ext <<_ACEOF | |
5867 | /* end confdefs.h. */ | |
5868 | #include <ac_nonexistent.h> | |
5869 | _ACEOF | |
5870 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5871 | case "(($ac_try" in | |
5872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5873 | *) ac_try_echo=$ac_try;; | |
5874 | esac | |
5875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5876 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5877 | ac_status=$? | |
5878 | grep -v '^ *+' conftest.er1 >conftest.err | |
5879 | rm -f conftest.er1 | |
5880 | cat conftest.err >&5 | |
5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5882 | (exit $ac_status); } >/dev/null && { | |
5883 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5884 | test ! -s conftest.err | |
5885 | }; then | |
5886 | # Broken: success on invalid input. | |
5887 | continue | |
5888 | else | |
5889 | echo "$as_me: failed program was:" >&5 | |
5890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5891 | ||
5892 | # Passes both tests. | |
5893 | ac_preproc_ok=: | |
5894 | break | |
5895 | fi | |
5896 | ||
5897 | rm -f conftest.err conftest.$ac_ext | |
5898 | ||
5899 | done | |
5900 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5901 | rm -f conftest.err conftest.$ac_ext | |
5902 | if $ac_preproc_ok; then | |
5903 | : | |
5904 | else | |
5905 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5906 | See \`config.log' for more details." >&5 | |
5907 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5908 | See \`config.log' for more details." >&2;} | |
5909 | { (exit 1); exit 1; }; } | |
5910 | fi | |
5911 | ||
5912 | ac_ext=c | |
5913 | ac_cpp='$CPP $CPPFLAGS' | |
5914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5917 | ||
5918 | ||
5919 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5920 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
5921 | if test "${ac_cv_header_stdc+set}" = set; then | |
5922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5923 | else | |
5924 | cat >conftest.$ac_ext <<_ACEOF | |
5925 | /* confdefs.h. */ | |
5926 | _ACEOF | |
5927 | cat confdefs.h >>conftest.$ac_ext | |
5928 | cat >>conftest.$ac_ext <<_ACEOF | |
5929 | /* end confdefs.h. */ | |
5930 | #include <stdlib.h> | |
5931 | #include <stdarg.h> | |
5932 | #include <string.h> | |
5933 | #include <float.h> | |
5934 | ||
5935 | int | |
5936 | main () | |
5937 | { | |
5938 | ||
5939 | ; | |
5940 | return 0; | |
5941 | } | |
5942 | _ACEOF | |
5943 | rm -f conftest.$ac_objext | |
5944 | if { (ac_try="$ac_compile" | |
5945 | case "(($ac_try" in | |
5946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5947 | *) ac_try_echo=$ac_try;; | |
5948 | esac | |
5949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5950 | (eval "$ac_compile") 2>conftest.er1 | |
5951 | ac_status=$? | |
5952 | grep -v '^ *+' conftest.er1 >conftest.err | |
5953 | rm -f conftest.er1 | |
5954 | cat conftest.err >&5 | |
5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5956 | (exit $ac_status); } && { | |
5957 | test -z "$ac_c_werror_flag" || | |
5958 | test ! -s conftest.err | |
5959 | } && test -s conftest.$ac_objext; then | |
5960 | ac_cv_header_stdc=yes | |
5961 | else | |
5962 | echo "$as_me: failed program was:" >&5 | |
5963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5964 | ||
5965 | ac_cv_header_stdc=no | |
5966 | fi | |
5967 | ||
5968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5969 | ||
5970 | if test $ac_cv_header_stdc = yes; then | |
5971 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5972 | cat >conftest.$ac_ext <<_ACEOF | |
5973 | /* confdefs.h. */ | |
5974 | _ACEOF | |
5975 | cat confdefs.h >>conftest.$ac_ext | |
5976 | cat >>conftest.$ac_ext <<_ACEOF | |
5977 | /* end confdefs.h. */ | |
5978 | #include <string.h> | |
5979 | ||
5980 | _ACEOF | |
5981 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5982 | $EGREP "memchr" >/dev/null 2>&1; then | |
5983 | : | |
5984 | else | |
5985 | ac_cv_header_stdc=no | |
5986 | fi | |
5987 | rm -f conftest* | |
5988 | ||
5989 | fi | |
5990 | ||
5991 | if test $ac_cv_header_stdc = yes; then | |
5992 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5993 | cat >conftest.$ac_ext <<_ACEOF | |
5994 | /* confdefs.h. */ | |
5995 | _ACEOF | |
5996 | cat confdefs.h >>conftest.$ac_ext | |
5997 | cat >>conftest.$ac_ext <<_ACEOF | |
5998 | /* end confdefs.h. */ | |
5999 | #include <stdlib.h> | |
6000 | ||
6001 | _ACEOF | |
6002 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6003 | $EGREP "free" >/dev/null 2>&1; then | |
6004 | : | |
6005 | else | |
6006 | ac_cv_header_stdc=no | |
6007 | fi | |
6008 | rm -f conftest* | |
6009 | ||
6010 | fi | |
6011 | ||
6012 | if test $ac_cv_header_stdc = yes; then | |
6013 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6014 | if test "$cross_compiling" = yes; then | |
6015 | : | |
6016 | else | |
6017 | cat >conftest.$ac_ext <<_ACEOF | |
6018 | /* confdefs.h. */ | |
6019 | _ACEOF | |
6020 | cat confdefs.h >>conftest.$ac_ext | |
6021 | cat >>conftest.$ac_ext <<_ACEOF | |
6022 | /* end confdefs.h. */ | |
6023 | #include <ctype.h> | |
6024 | #include <stdlib.h> | |
6025 | #if ((' ' & 0x0FF) == 0x020) | |
6026 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6027 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6028 | #else | |
6029 | # define ISLOWER(c) \ | |
6030 | (('a' <= (c) && (c) <= 'i') \ | |
6031 | || ('j' <= (c) && (c) <= 'r') \ | |
6032 | || ('s' <= (c) && (c) <= 'z')) | |
6033 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6034 | #endif | |
6035 | ||
6036 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6037 | int | |
6038 | main () | |
6039 | { | |
6040 | int i; | |
6041 | for (i = 0; i < 256; i++) | |
6042 | if (XOR (islower (i), ISLOWER (i)) | |
6043 | || toupper (i) != TOUPPER (i)) | |
6044 | return 2; | |
6045 | return 0; | |
6046 | } | |
6047 | _ACEOF | |
6048 | rm -f conftest$ac_exeext | |
6049 | if { (ac_try="$ac_link" | |
6050 | case "(($ac_try" in | |
6051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6052 | *) ac_try_echo=$ac_try;; | |
6053 | esac | |
6054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6055 | (eval "$ac_link") 2>&5 | |
6056 | ac_status=$? | |
6057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6058 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6059 | { (case "(($ac_try" in | |
6060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6061 | *) ac_try_echo=$ac_try;; | |
6062 | esac | |
6063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6064 | (eval "$ac_try") 2>&5 | |
6065 | ac_status=$? | |
6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6067 | (exit $ac_status); }; }; then | |
6068 | : | |
6069 | else | |
6070 | echo "$as_me: program exited with status $ac_status" >&5 | |
6071 | echo "$as_me: failed program was:" >&5 | |
6072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6073 | ||
6074 | ( exit $ac_status ) | |
6075 | ac_cv_header_stdc=no | |
6076 | fi | |
6077 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6078 | fi | |
6079 | ||
6080 | ||
6081 | fi | |
6082 | fi | |
6083 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6084 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
6085 | if test $ac_cv_header_stdc = yes; then | |
6086 | ||
6087 | cat >>confdefs.h <<\_ACEOF | |
6088 | #define STDC_HEADERS 1 | |
6089 | _ACEOF | |
6090 | ||
6091 | fi | |
6092 | ||
6093 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6094 | ||
6095 | ||
6096 | ||
6097 | ||
6098 | ||
6099 | ||
6100 | ||
6101 | ||
6102 | ||
6103 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6104 | inttypes.h stdint.h unistd.h | |
6105 | do | |
6106 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6107 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6108 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6109 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6111 | else | |
6112 | cat >conftest.$ac_ext <<_ACEOF | |
6113 | /* confdefs.h. */ | |
6114 | _ACEOF | |
6115 | cat confdefs.h >>conftest.$ac_ext | |
6116 | cat >>conftest.$ac_ext <<_ACEOF | |
6117 | /* end confdefs.h. */ | |
6118 | $ac_includes_default | |
6119 | ||
6120 | #include <$ac_header> | |
6121 | _ACEOF | |
6122 | rm -f conftest.$ac_objext | |
6123 | if { (ac_try="$ac_compile" | |
6124 | case "(($ac_try" in | |
6125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6126 | *) ac_try_echo=$ac_try;; | |
6127 | esac | |
6128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6129 | (eval "$ac_compile") 2>conftest.er1 | |
6130 | ac_status=$? | |
6131 | grep -v '^ *+' conftest.er1 >conftest.err | |
6132 | rm -f conftest.er1 | |
6133 | cat conftest.err >&5 | |
6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6135 | (exit $ac_status); } && { | |
6136 | test -z "$ac_c_werror_flag" || | |
6137 | test ! -s conftest.err | |
6138 | } && test -s conftest.$ac_objext; then | |
6139 | eval "$as_ac_Header=yes" | |
6140 | else | |
6141 | echo "$as_me: failed program was:" >&5 | |
6142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6143 | ||
6144 | eval "$as_ac_Header=no" | |
6145 | fi | |
6146 | ||
6147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6148 | fi | |
6149 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6150 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6151 | echo "${ECHO_T}$ac_res" >&6; } | |
6152 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6153 | cat >>confdefs.h <<_ACEOF | |
6154 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6155 | _ACEOF | |
6156 | ||
6157 | fi | |
6158 | ||
6159 | done | |
6160 | ||
6161 | ||
6162 | ||
6163 | for ac_header in dlfcn.h | |
6164 | do | |
6165 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6166 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6167 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6169 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6171 | fi | |
6172 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6173 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6174 | echo "${ECHO_T}$ac_res" >&6; } | |
6175 | else | |
6176 | # Is the header compilable? | |
6177 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6178 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
6179 | cat >conftest.$ac_ext <<_ACEOF | |
6180 | /* confdefs.h. */ | |
6181 | _ACEOF | |
6182 | cat confdefs.h >>conftest.$ac_ext | |
6183 | cat >>conftest.$ac_ext <<_ACEOF | |
6184 | /* end confdefs.h. */ | |
6185 | $ac_includes_default | |
6186 | #include <$ac_header> | |
6187 | _ACEOF | |
6188 | rm -f conftest.$ac_objext | |
6189 | if { (ac_try="$ac_compile" | |
6190 | case "(($ac_try" in | |
6191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6192 | *) ac_try_echo=$ac_try;; | |
6193 | esac | |
6194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6195 | (eval "$ac_compile") 2>conftest.er1 | |
6196 | ac_status=$? | |
6197 | grep -v '^ *+' conftest.er1 >conftest.err | |
6198 | rm -f conftest.er1 | |
6199 | cat conftest.err >&5 | |
6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6201 | (exit $ac_status); } && { | |
6202 | test -z "$ac_c_werror_flag" || | |
6203 | test ! -s conftest.err | |
6204 | } && test -s conftest.$ac_objext; then | |
6205 | ac_header_compiler=yes | |
6206 | else | |
6207 | echo "$as_me: failed program was:" >&5 | |
6208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6209 | ||
6210 | ac_header_compiler=no | |
6211 | fi | |
6212 | ||
6213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6214 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6215 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
6216 | ||
6217 | # Is the header present? | |
6218 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6219 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
6220 | cat >conftest.$ac_ext <<_ACEOF | |
6221 | /* confdefs.h. */ | |
6222 | _ACEOF | |
6223 | cat confdefs.h >>conftest.$ac_ext | |
6224 | cat >>conftest.$ac_ext <<_ACEOF | |
6225 | /* end confdefs.h. */ | |
6226 | #include <$ac_header> | |
6227 | _ACEOF | |
6228 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6229 | case "(($ac_try" in | |
6230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6231 | *) ac_try_echo=$ac_try;; | |
6232 | esac | |
6233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6234 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6235 | ac_status=$? | |
6236 | grep -v '^ *+' conftest.er1 >conftest.err | |
6237 | rm -f conftest.er1 | |
6238 | cat conftest.err >&5 | |
6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6240 | (exit $ac_status); } >/dev/null && { | |
6241 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6242 | test ! -s conftest.err | |
6243 | }; then | |
6244 | ac_header_preproc=yes | |
6245 | else | |
6246 | echo "$as_me: failed program was:" >&5 | |
6247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6248 | ||
6249 | ac_header_preproc=no | |
6250 | fi | |
6251 | ||
6252 | rm -f conftest.err conftest.$ac_ext | |
6253 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6254 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
6255 | ||
6256 | # So? What about this header? | |
6257 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6258 | yes:no: ) | |
6259 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6260 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6262 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6263 | ac_header_preproc=yes | |
6264 | ;; | |
6265 | no:yes:* ) | |
6266 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6267 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6268 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6269 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6270 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6271 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6272 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6273 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6274 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6275 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6276 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6277 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6278 | ||
6279 | ;; | |
6280 | esac | |
6281 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6282 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6283 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6285 | else | |
6286 | eval "$as_ac_Header=\$ac_header_preproc" | |
6287 | fi | |
6288 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6289 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6290 | echo "${ECHO_T}$ac_res" >&6; } | |
6291 | ||
6292 | fi | |
6293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6294 | cat >>confdefs.h <<_ACEOF | |
6295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6296 | _ACEOF | |
6297 | ||
6298 | fi | |
6299 | ||
6300 | done | |
6301 | ||
6302 | ac_ext=cpp | |
6303 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6304 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6305 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6306 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6307 | if test -z "$CXX"; then | |
6308 | if test -n "$CCC"; then | |
6309 | CXX=$CCC | |
6310 | else | |
6311 | if test -n "$ac_tool_prefix"; then | |
6312 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
6313 | do | |
6314 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6315 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6318 | if test "${ac_cv_prog_CXX+set}" = set; then | |
6319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6320 | else | |
6321 | if test -n "$CXX"; then | |
6322 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6323 | else | |
6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6325 | for as_dir in $PATH | |
6326 | do | |
6327 | IFS=$as_save_IFS | |
6328 | test -z "$as_dir" && as_dir=. | |
6329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6331 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
6332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6333 | break 2 | |
6334 | fi | |
6335 | done | |
6336 | done | |
6337 | IFS=$as_save_IFS | |
6338 | ||
6339 | fi | |
6340 | fi | |
6341 | CXX=$ac_cv_prog_CXX | |
6342 | if test -n "$CXX"; then | |
6343 | { echo "$as_me:$LINENO: result: $CXX" >&5 | |
6344 | echo "${ECHO_T}$CXX" >&6; } | |
6345 | else | |
6346 | { echo "$as_me:$LINENO: result: no" >&5 | |
6347 | echo "${ECHO_T}no" >&6; } | |
6348 | fi | |
6349 | ||
6350 | ||
6351 | test -n "$CXX" && break | |
6352 | done | |
6353 | fi | |
6354 | if test -z "$CXX"; then | |
6355 | ac_ct_CXX=$CXX | |
6356 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
6357 | do | |
6358 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6359 | set dummy $ac_prog; ac_word=$2 | |
6360 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6362 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
6363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6364 | else | |
6365 | if test -n "$ac_ct_CXX"; then | |
6366 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
6367 | else | |
6368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6369 | for as_dir in $PATH | |
6370 | do | |
6371 | IFS=$as_save_IFS | |
6372 | test -z "$as_dir" && as_dir=. | |
6373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6375 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
6376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6377 | break 2 | |
6378 | fi | |
6379 | done | |
6380 | done | |
6381 | IFS=$as_save_IFS | |
6382 | ||
6383 | fi | |
6384 | fi | |
6385 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
6386 | if test -n "$ac_ct_CXX"; then | |
6387 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
6388 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
6389 | else | |
6390 | { echo "$as_me:$LINENO: result: no" >&5 | |
6391 | echo "${ECHO_T}no" >&6; } | |
6392 | fi | |
6393 | ||
6394 | ||
6395 | test -n "$ac_ct_CXX" && break | |
6396 | done | |
6397 | ||
6398 | if test "x$ac_ct_CXX" = x; then | |
6399 | CXX="g++" | |
6400 | else | |
6401 | case $cross_compiling:$ac_tool_warned in | |
6402 | yes:) | |
6403 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6404 | whose name does not start with the host triplet. If you think this | |
6405 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6406 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6407 | whose name does not start with the host triplet. If you think this | |
6408 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6409 | ac_tool_warned=yes ;; | |
6410 | esac | |
6411 | CXX=$ac_ct_CXX | |
6412 | fi | |
6413 | fi | |
6414 | ||
6415 | fi | |
6416 | fi | |
6417 | # Provide some information about the compiler. | |
6418 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
6419 | ac_compiler=`set X $ac_compile; echo $2` | |
6420 | { (ac_try="$ac_compiler --version >&5" | |
6421 | case "(($ac_try" in | |
6422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6423 | *) ac_try_echo=$ac_try;; | |
6424 | esac | |
6425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6426 | (eval "$ac_compiler --version >&5") 2>&5 | |
6427 | ac_status=$? | |
6428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6429 | (exit $ac_status); } | |
6430 | { (ac_try="$ac_compiler -v >&5" | |
6431 | case "(($ac_try" in | |
6432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6433 | *) ac_try_echo=$ac_try;; | |
6434 | esac | |
6435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6436 | (eval "$ac_compiler -v >&5") 2>&5 | |
6437 | ac_status=$? | |
6438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6439 | (exit $ac_status); } | |
6440 | { (ac_try="$ac_compiler -V >&5" | |
6441 | case "(($ac_try" in | |
6442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6443 | *) ac_try_echo=$ac_try;; | |
6444 | esac | |
6445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6446 | (eval "$ac_compiler -V >&5") 2>&5 | |
6447 | ac_status=$? | |
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6449 | (exit $ac_status); } | |
6450 | ||
6451 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
6452 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
6453 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
6454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6455 | else | |
6456 | cat >conftest.$ac_ext <<_ACEOF | |
6457 | /* confdefs.h. */ | |
6458 | _ACEOF | |
6459 | cat confdefs.h >>conftest.$ac_ext | |
6460 | cat >>conftest.$ac_ext <<_ACEOF | |
6461 | /* end confdefs.h. */ | |
6462 | ||
6463 | int | |
6464 | main () | |
6465 | { | |
6466 | #ifndef __GNUC__ | |
6467 | choke me | |
6468 | #endif | |
6469 | ||
6470 | ; | |
6471 | return 0; | |
6472 | } | |
6473 | _ACEOF | |
6474 | rm -f conftest.$ac_objext | |
6475 | if { (ac_try="$ac_compile" | |
6476 | case "(($ac_try" in | |
6477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6478 | *) ac_try_echo=$ac_try;; | |
6479 | esac | |
6480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6481 | (eval "$ac_compile") 2>conftest.er1 | |
6482 | ac_status=$? | |
6483 | grep -v '^ *+' conftest.er1 >conftest.err | |
6484 | rm -f conftest.er1 | |
6485 | cat conftest.err >&5 | |
6486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6487 | (exit $ac_status); } && { | |
6488 | test -z "$ac_cxx_werror_flag" || | |
6489 | test ! -s conftest.err | |
6490 | } && test -s conftest.$ac_objext; then | |
6491 | ac_compiler_gnu=yes | |
6492 | else | |
6493 | echo "$as_me: failed program was:" >&5 | |
6494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6495 | ||
6496 | ac_compiler_gnu=no | |
6497 | fi | |
6498 | ||
6499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6500 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
6501 | ||
6502 | fi | |
6503 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
6504 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
6505 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
6506 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
6507 | ac_save_CXXFLAGS=$CXXFLAGS | |
6508 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
6509 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
6510 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6512 | else | |
6513 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
6514 | ac_cxx_werror_flag=yes | |
6515 | ac_cv_prog_cxx_g=no | |
6516 | CXXFLAGS="-g" | |
6517 | cat >conftest.$ac_ext <<_ACEOF | |
6518 | /* confdefs.h. */ | |
6519 | _ACEOF | |
6520 | cat confdefs.h >>conftest.$ac_ext | |
6521 | cat >>conftest.$ac_ext <<_ACEOF | |
6522 | /* end confdefs.h. */ | |
6523 | ||
6524 | int | |
6525 | main () | |
6526 | { | |
6527 | ||
6528 | ; | |
6529 | return 0; | |
6530 | } | |
6531 | _ACEOF | |
6532 | rm -f conftest.$ac_objext | |
6533 | if { (ac_try="$ac_compile" | |
6534 | case "(($ac_try" in | |
6535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6536 | *) ac_try_echo=$ac_try;; | |
6537 | esac | |
6538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6539 | (eval "$ac_compile") 2>conftest.er1 | |
6540 | ac_status=$? | |
6541 | grep -v '^ *+' conftest.er1 >conftest.err | |
6542 | rm -f conftest.er1 | |
6543 | cat conftest.err >&5 | |
6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6545 | (exit $ac_status); } && { | |
6546 | test -z "$ac_cxx_werror_flag" || | |
6547 | test ! -s conftest.err | |
6548 | } && test -s conftest.$ac_objext; then | |
6549 | ac_cv_prog_cxx_g=yes | |
6550 | else | |
6551 | echo "$as_me: failed program was:" >&5 | |
6552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6553 | ||
6554 | CXXFLAGS="" | |
6555 | cat >conftest.$ac_ext <<_ACEOF | |
6556 | /* confdefs.h. */ | |
6557 | _ACEOF | |
6558 | cat confdefs.h >>conftest.$ac_ext | |
6559 | cat >>conftest.$ac_ext <<_ACEOF | |
6560 | /* end confdefs.h. */ | |
6561 | ||
6562 | int | |
6563 | main () | |
6564 | { | |
6565 | ||
6566 | ; | |
6567 | return 0; | |
6568 | } | |
6569 | _ACEOF | |
6570 | rm -f conftest.$ac_objext | |
6571 | if { (ac_try="$ac_compile" | |
6572 | case "(($ac_try" in | |
6573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6574 | *) ac_try_echo=$ac_try;; | |
6575 | esac | |
6576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6577 | (eval "$ac_compile") 2>conftest.er1 | |
6578 | ac_status=$? | |
6579 | grep -v '^ *+' conftest.er1 >conftest.err | |
6580 | rm -f conftest.er1 | |
6581 | cat conftest.err >&5 | |
6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6583 | (exit $ac_status); } && { | |
6584 | test -z "$ac_cxx_werror_flag" || | |
6585 | test ! -s conftest.err | |
6586 | } && test -s conftest.$ac_objext; then | |
6587 | : | |
6588 | else | |
6589 | echo "$as_me: failed program was:" >&5 | |
6590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6591 | ||
6592 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
6593 | CXXFLAGS="-g" | |
6594 | cat >conftest.$ac_ext <<_ACEOF | |
6595 | /* confdefs.h. */ | |
6596 | _ACEOF | |
6597 | cat confdefs.h >>conftest.$ac_ext | |
6598 | cat >>conftest.$ac_ext <<_ACEOF | |
6599 | /* end confdefs.h. */ | |
6600 | ||
6601 | int | |
6602 | main () | |
6603 | { | |
6604 | ||
6605 | ; | |
6606 | return 0; | |
6607 | } | |
6608 | _ACEOF | |
6609 | rm -f conftest.$ac_objext | |
6610 | if { (ac_try="$ac_compile" | |
6611 | case "(($ac_try" in | |
6612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6613 | *) ac_try_echo=$ac_try;; | |
6614 | esac | |
6615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6616 | (eval "$ac_compile") 2>conftest.er1 | |
6617 | ac_status=$? | |
6618 | grep -v '^ *+' conftest.er1 >conftest.err | |
6619 | rm -f conftest.er1 | |
6620 | cat conftest.err >&5 | |
6621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6622 | (exit $ac_status); } && { | |
6623 | test -z "$ac_cxx_werror_flag" || | |
6624 | test ! -s conftest.err | |
6625 | } && test -s conftest.$ac_objext; then | |
6626 | ac_cv_prog_cxx_g=yes | |
6627 | else | |
6628 | echo "$as_me: failed program was:" >&5 | |
6629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6630 | ||
6631 | ||
6632 | fi | |
6633 | ||
6634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6635 | fi | |
6636 | ||
6637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6638 | fi | |
6639 | ||
6640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6641 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
6642 | fi | |
6643 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
6644 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
6645 | if test "$ac_test_CXXFLAGS" = set; then | |
6646 | CXXFLAGS=$ac_save_CXXFLAGS | |
6647 | elif test $ac_cv_prog_cxx_g = yes; then | |
6648 | if test "$GXX" = yes; then | |
6649 | CXXFLAGS="-g -O2" | |
6650 | else | |
6651 | CXXFLAGS="-g" | |
6652 | fi | |
6653 | else | |
6654 | if test "$GXX" = yes; then | |
6655 | CXXFLAGS="-O2" | |
6656 | else | |
6657 | CXXFLAGS= | |
6658 | fi | |
6659 | fi | |
6660 | ac_ext=cpp | |
6661 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6662 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6663 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6664 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6665 | ||
6666 | depcc="$CXX" am_compiler_list= | |
6667 | ||
6668 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
6669 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
6670 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
6671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6672 | else | |
6673 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6674 | # We make a subdir and do the tests there. Otherwise we can end up | |
6675 | # making bogus files that we don't know about and never remove. For | |
6676 | # instance it was reported that on HP-UX the gcc test will end up | |
6677 | # making a dummy file named `D' -- because `-MD' means `put the output | |
6678 | # in D'. | |
6679 | mkdir conftest.dir | |
6680 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6681 | # using a relative directory. | |
6682 | cp "$am_depcomp" conftest.dir | |
6683 | cd conftest.dir | |
6684 | # We will build objects and dependencies in a subdirectory because | |
6685 | # it helps to detect inapplicable dependency modes. For instance | |
6686 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6687 | # side effect of compilation, but ICC will put the dependencies in | |
6688 | # the current directory while Tru64 will put them in the object | |
6689 | # directory. | |
6690 | mkdir sub | |
6691 | ||
6692 | am_cv_CXX_dependencies_compiler_type=none | |
6693 | if test "$am_compiler_list" = ""; then | |
6694 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6695 | fi | |
6696 | for depmode in $am_compiler_list; do | |
6697 | # Setup a source with many dependencies, because some compilers | |
6698 | # like to wrap large dependency lists on column 80 (with \), and | |
6699 | # we should not choose a depcomp mode which is confused by this. | |
6700 | # | |
6701 | # We need to recreate these files for each test, as the compiler may | |
6702 | # overwrite some of them when testing with obscure command lines. | |
6703 | # This happens at least with the AIX C compiler. | |
6704 | : > sub/conftest.c | |
6705 | for i in 1 2 3 4 5 6; do | |
6706 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
6707 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
6708 | # Solaris 8's {/usr,}/bin/sh. | |
6709 | touch sub/conftst$i.h | |
6710 | done | |
6711 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6712 | ||
6713 | case $depmode in | |
6714 | nosideeffect) | |
6715 | # after this tag, mechanisms are not by side-effect, so they'll | |
6716 | # only be used when explicitly requested | |
6717 | if test "x$enable_dependency_tracking" = xyes; then | |
6718 | continue | |
6719 | else | |
6720 | break | |
6721 | fi | |
6722 | ;; | |
6723 | none) break ;; | |
6724 | esac | |
6725 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
6726 | # mode. It turns out that the SunPro C++ compiler does not properly | |
6727 | # handle `-M -o', and we need to detect this. | |
6728 | if depmode=$depmode \ | |
6729 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
6730 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6731 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
6732 | >/dev/null 2>conftest.err && | |
6733 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6734 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6735 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
6736 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6737 | # icc doesn't choke on unknown options, it will just issue warnings | |
6738 | # or remarks (even with -Werror). So we grep stderr for any message | |
6739 | # that says an option was ignored or not supported. | |
6740 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6741 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6742 | # The diagnosis changed in icc 8.0: | |
6743 | # icc: Command line remark: option '-MP' not supported | |
6744 | if (grep 'ignoring option' conftest.err || | |
6745 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6746 | am_cv_CXX_dependencies_compiler_type=$depmode | |
6747 | break | |
6748 | fi | |
6749 | fi | |
6750 | done | |
6751 | ||
6752 | cd .. | |
6753 | rm -rf conftest.dir | |
6754 | else | |
6755 | am_cv_CXX_dependencies_compiler_type=none | |
6756 | fi | |
6757 | ||
6758 | fi | |
6759 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
6760 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | |
6761 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
6762 | ||
6763 | if | |
6764 | test "x$enable_dependency_tracking" != xno \ | |
6765 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
6766 | am__fastdepCXX_TRUE= | |
6767 | am__fastdepCXX_FALSE='#' | |
6768 | else | |
6769 | am__fastdepCXX_TRUE='#' | |
6770 | am__fastdepCXX_FALSE= | |
6771 | fi | |
6772 | ||
6773 | ||
6774 | ||
6775 | ||
6776 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
6777 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
6778 | (test "X$CXX" != "Xg++"))) ; then | |
6779 | ac_ext=cpp | |
6780 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6781 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6782 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6783 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6784 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
6785 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | |
6786 | if test -z "$CXXCPP"; then | |
6787 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
6788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6789 | else | |
6790 | # Double quotes because CXXCPP needs to be expanded | |
6791 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6792 | do | |
6793 | ac_preproc_ok=false | |
6794 | for ac_cxx_preproc_warn_flag in '' yes | |
6795 | do | |
6796 | # Use a header file that comes with gcc, so configuring glibc | |
6797 | # with a fresh cross-compiler works. | |
6798 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6799 | # <limits.h> exists even on freestanding compilers. | |
6800 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6801 | # not just through cpp. "Syntax error" is here to catch this case. | |
6802 | cat >conftest.$ac_ext <<_ACEOF | |
6803 | /* confdefs.h. */ | |
6804 | _ACEOF | |
6805 | cat confdefs.h >>conftest.$ac_ext | |
6806 | cat >>conftest.$ac_ext <<_ACEOF | |
6807 | /* end confdefs.h. */ | |
6808 | #ifdef __STDC__ | |
6809 | # include <limits.h> | |
6810 | #else | |
6811 | # include <assert.h> | |
6812 | #endif | |
6813 | Syntax error | |
6814 | _ACEOF | |
6815 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6816 | case "(($ac_try" in | |
6817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6818 | *) ac_try_echo=$ac_try;; | |
6819 | esac | |
6820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6822 | ac_status=$? | |
6823 | grep -v '^ *+' conftest.er1 >conftest.err | |
6824 | rm -f conftest.er1 | |
6825 | cat conftest.err >&5 | |
6826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6827 | (exit $ac_status); } >/dev/null && { | |
6828 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
6829 | test ! -s conftest.err | |
6830 | }; then | |
6831 | : | |
6832 | else | |
6833 | echo "$as_me: failed program was:" >&5 | |
6834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6835 | ||
6836 | # Broken: fails on valid input. | |
6837 | continue | |
6838 | fi | |
6839 | ||
6840 | rm -f conftest.err conftest.$ac_ext | |
6841 | ||
6842 | # OK, works on sane cases. Now check whether nonexistent headers | |
6843 | # can be detected and how. | |
6844 | cat >conftest.$ac_ext <<_ACEOF | |
6845 | /* confdefs.h. */ | |
6846 | _ACEOF | |
6847 | cat confdefs.h >>conftest.$ac_ext | |
6848 | cat >>conftest.$ac_ext <<_ACEOF | |
6849 | /* end confdefs.h. */ | |
6850 | #include <ac_nonexistent.h> | |
6851 | _ACEOF | |
6852 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6853 | case "(($ac_try" in | |
6854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6855 | *) ac_try_echo=$ac_try;; | |
6856 | esac | |
6857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6858 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6859 | ac_status=$? | |
6860 | grep -v '^ *+' conftest.er1 >conftest.err | |
6861 | rm -f conftest.er1 | |
6862 | cat conftest.err >&5 | |
6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6864 | (exit $ac_status); } >/dev/null && { | |
6865 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
6866 | test ! -s conftest.err | |
6867 | }; then | |
6868 | # Broken: success on invalid input. | |
6869 | continue | |
6870 | else | |
6871 | echo "$as_me: failed program was:" >&5 | |
6872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6873 | ||
6874 | # Passes both tests. | |
6875 | ac_preproc_ok=: | |
6876 | break | |
6877 | fi | |
6878 | ||
6879 | rm -f conftest.err conftest.$ac_ext | |
6880 | ||
6881 | done | |
6882 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6883 | rm -f conftest.err conftest.$ac_ext | |
6884 | if $ac_preproc_ok; then | |
6885 | break | |
6886 | fi | |
6887 | ||
6888 | done | |
6889 | ac_cv_prog_CXXCPP=$CXXCPP | |
6890 | ||
6891 | fi | |
6892 | CXXCPP=$ac_cv_prog_CXXCPP | |
6893 | else | |
6894 | ac_cv_prog_CXXCPP=$CXXCPP | |
6895 | fi | |
6896 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
6897 | echo "${ECHO_T}$CXXCPP" >&6; } | |
6898 | ac_preproc_ok=false | |
6899 | for ac_cxx_preproc_warn_flag in '' yes | |
6900 | do | |
6901 | # Use a header file that comes with gcc, so configuring glibc | |
6902 | # with a fresh cross-compiler works. | |
6903 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6904 | # <limits.h> exists even on freestanding compilers. | |
6905 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6906 | # not just through cpp. "Syntax error" is here to catch this case. | |
6907 | cat >conftest.$ac_ext <<_ACEOF | |
6908 | /* confdefs.h. */ | |
6909 | _ACEOF | |
6910 | cat confdefs.h >>conftest.$ac_ext | |
6911 | cat >>conftest.$ac_ext <<_ACEOF | |
6912 | /* end confdefs.h. */ | |
6913 | #ifdef __STDC__ | |
6914 | # include <limits.h> | |
6915 | #else | |
6916 | # include <assert.h> | |
6917 | #endif | |
6918 | Syntax error | |
6919 | _ACEOF | |
6920 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6921 | case "(($ac_try" in | |
6922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6923 | *) ac_try_echo=$ac_try;; | |
6924 | esac | |
6925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6926 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6927 | ac_status=$? | |
6928 | grep -v '^ *+' conftest.er1 >conftest.err | |
6929 | rm -f conftest.er1 | |
6930 | cat conftest.err >&5 | |
6931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6932 | (exit $ac_status); } >/dev/null && { | |
6933 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
6934 | test ! -s conftest.err | |
6935 | }; then | |
6936 | : | |
6937 | else | |
6938 | echo "$as_me: failed program was:" >&5 | |
6939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6940 | ||
6941 | # Broken: fails on valid input. | |
6942 | continue | |
6943 | fi | |
6944 | ||
6945 | rm -f conftest.err conftest.$ac_ext | |
6946 | ||
6947 | # OK, works on sane cases. Now check whether nonexistent headers | |
6948 | # can be detected and how. | |
6949 | cat >conftest.$ac_ext <<_ACEOF | |
6950 | /* confdefs.h. */ | |
6951 | _ACEOF | |
6952 | cat confdefs.h >>conftest.$ac_ext | |
6953 | cat >>conftest.$ac_ext <<_ACEOF | |
6954 | /* end confdefs.h. */ | |
6955 | #include <ac_nonexistent.h> | |
6956 | _ACEOF | |
6957 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6958 | case "(($ac_try" in | |
6959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6960 | *) ac_try_echo=$ac_try;; | |
6961 | esac | |
6962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6963 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6964 | ac_status=$? | |
6965 | grep -v '^ *+' conftest.er1 >conftest.err | |
6966 | rm -f conftest.er1 | |
6967 | cat conftest.err >&5 | |
6968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6969 | (exit $ac_status); } >/dev/null && { | |
6970 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
6971 | test ! -s conftest.err | |
6972 | }; then | |
6973 | # Broken: success on invalid input. | |
6974 | continue | |
6975 | else | |
6976 | echo "$as_me: failed program was:" >&5 | |
6977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6978 | ||
6979 | # Passes both tests. | |
6980 | ac_preproc_ok=: | |
6981 | break | |
6982 | fi | |
6983 | ||
6984 | rm -f conftest.err conftest.$ac_ext | |
6985 | ||
6986 | done | |
6987 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6988 | rm -f conftest.err conftest.$ac_ext | |
6989 | if $ac_preproc_ok; then | |
6990 | : | |
6991 | else | |
6992 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
6993 | See \`config.log' for more details." >&5 | |
6994 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
6995 | See \`config.log' for more details." >&2;} | |
6996 | { (exit 1); exit 1; }; } | |
6997 | fi | |
6998 | ||
6999 | ac_ext=cpp | |
7000 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7001 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7002 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7003 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7004 | ||
7005 | fi | |
7006 | ||
7007 | ||
7008 | ac_ext=f | |
7009 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
7010 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7011 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
7012 | if test -n "$ac_tool_prefix"; then | |
7013 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn | |
7014 | do | |
7015 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7016 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7017 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7019 | if test "${ac_cv_prog_F77+set}" = set; then | |
7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7021 | else | |
7022 | if test -n "$F77"; then | |
7023 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
7024 | else | |
7025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7026 | for as_dir in $PATH | |
7027 | do | |
7028 | IFS=$as_save_IFS | |
7029 | test -z "$as_dir" && as_dir=. | |
7030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7032 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
7033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7034 | break 2 | |
7035 | fi | |
7036 | done | |
7037 | done | |
7038 | IFS=$as_save_IFS | |
7039 | ||
7040 | fi | |
7041 | fi | |
7042 | F77=$ac_cv_prog_F77 | |
7043 | if test -n "$F77"; then | |
7044 | { echo "$as_me:$LINENO: result: $F77" >&5 | |
7045 | echo "${ECHO_T}$F77" >&6; } | |
7046 | else | |
7047 | { echo "$as_me:$LINENO: result: no" >&5 | |
7048 | echo "${ECHO_T}no" >&6; } | |
7049 | fi | |
7050 | ||
7051 | ||
7052 | test -n "$F77" && break | |
7053 | done | |
7054 | fi | |
7055 | if test -z "$F77"; then | |
7056 | ac_ct_F77=$F77 | |
7057 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn | |
7058 | do | |
7059 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7060 | set dummy $ac_prog; ac_word=$2 | |
7061 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7063 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
7064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7065 | else | |
7066 | if test -n "$ac_ct_F77"; then | |
7067 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
7068 | else | |
7069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7070 | for as_dir in $PATH | |
7071 | do | |
7072 | IFS=$as_save_IFS | |
7073 | test -z "$as_dir" && as_dir=. | |
7074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7076 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
7077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7078 | break 2 | |
7079 | fi | |
7080 | done | |
7081 | done | |
7082 | IFS=$as_save_IFS | |
7083 | ||
7084 | fi | |
7085 | fi | |
7086 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
7087 | if test -n "$ac_ct_F77"; then | |
7088 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
7089 | echo "${ECHO_T}$ac_ct_F77" >&6; } | |
7090 | else | |
7091 | { echo "$as_me:$LINENO: result: no" >&5 | |
7092 | echo "${ECHO_T}no" >&6; } | |
7093 | fi | |
7094 | ||
7095 | ||
7096 | test -n "$ac_ct_F77" && break | |
7097 | done | |
7098 | ||
7099 | if test "x$ac_ct_F77" = x; then | |
7100 | F77="" | |
7101 | else | |
7102 | case $cross_compiling:$ac_tool_warned in | |
7103 | yes:) | |
7104 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7105 | whose name does not start with the host triplet. If you think this | |
7106 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7107 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7108 | whose name does not start with the host triplet. If you think this | |
7109 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7110 | ac_tool_warned=yes ;; | |
7111 | esac | |
7112 | F77=$ac_ct_F77 | |
7113 | fi | |
7114 | fi | |
7115 | ||
7116 | ||
7117 | # Provide some information about the compiler. | |
7118 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 | |
7119 | ac_compiler=`set X $ac_compile; echo $2` | |
7120 | { (ac_try="$ac_compiler --version >&5" | |
7121 | case "(($ac_try" in | |
7122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7123 | *) ac_try_echo=$ac_try;; | |
7124 | esac | |
7125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7126 | (eval "$ac_compiler --version >&5") 2>&5 | |
7127 | ac_status=$? | |
7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7129 | (exit $ac_status); } | |
7130 | { (ac_try="$ac_compiler -v >&5" | |
7131 | case "(($ac_try" in | |
7132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7133 | *) ac_try_echo=$ac_try;; | |
7134 | esac | |
7135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7136 | (eval "$ac_compiler -v >&5") 2>&5 | |
7137 | ac_status=$? | |
7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7139 | (exit $ac_status); } | |
7140 | { (ac_try="$ac_compiler -V >&5" | |
7141 | case "(($ac_try" in | |
7142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7143 | *) ac_try_echo=$ac_try;; | |
7144 | esac | |
7145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7146 | (eval "$ac_compiler -V >&5") 2>&5 | |
7147 | ac_status=$? | |
7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7149 | (exit $ac_status); } | |
7150 | rm -f a.out | |
7151 | ||
7152 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
7153 | # input file. (Note that this only needs to work for GNU compilers.) | |
7154 | ac_save_ext=$ac_ext | |
7155 | ac_ext=F | |
7156 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
7157 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } | |
7158 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
7159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7160 | else | |
7161 | cat >conftest.$ac_ext <<_ACEOF | |
7162 | program main | |
7163 | #ifndef __GNUC__ | |
7164 | choke me | |
7165 | #endif | |
7166 | ||
7167 | end | |
7168 | _ACEOF | |
7169 | rm -f conftest.$ac_objext | |
7170 | if { (ac_try="$ac_compile" | |
7171 | case "(($ac_try" in | |
7172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7173 | *) ac_try_echo=$ac_try;; | |
7174 | esac | |
7175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7176 | (eval "$ac_compile") 2>conftest.er1 | |
7177 | ac_status=$? | |
7178 | grep -v '^ *+' conftest.er1 >conftest.err | |
7179 | rm -f conftest.er1 | |
7180 | cat conftest.err >&5 | |
7181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7182 | (exit $ac_status); } && { | |
7183 | test -z "$ac_f77_werror_flag" || | |
7184 | test ! -s conftest.err | |
7185 | } && test -s conftest.$ac_objext; then | |
7186 | ac_compiler_gnu=yes | |
7187 | else | |
7188 | echo "$as_me: failed program was:" >&5 | |
7189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7190 | ||
7191 | ac_compiler_gnu=no | |
7192 | fi | |
7193 | ||
7194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7195 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
7196 | ||
7197 | fi | |
7198 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
7199 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } | |
7200 | ac_ext=$ac_save_ext | |
7201 | ac_test_FFLAGS=${FFLAGS+set} | |
7202 | ac_save_FFLAGS=$FFLAGS | |
7203 | FFLAGS= | |
7204 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
7205 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } | |
7206 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7208 | else | |
7209 | FFLAGS=-g | |
7210 | cat >conftest.$ac_ext <<_ACEOF | |
7211 | program main | |
7212 | ||
7213 | end | |
7214 | _ACEOF | |
7215 | rm -f conftest.$ac_objext | |
7216 | if { (ac_try="$ac_compile" | |
7217 | case "(($ac_try" in | |
7218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7219 | *) ac_try_echo=$ac_try;; | |
7220 | esac | |
7221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7222 | (eval "$ac_compile") 2>conftest.er1 | |
7223 | ac_status=$? | |
7224 | grep -v '^ *+' conftest.er1 >conftest.err | |
7225 | rm -f conftest.er1 | |
7226 | cat conftest.err >&5 | |
7227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7228 | (exit $ac_status); } && { | |
7229 | test -z "$ac_f77_werror_flag" || | |
7230 | test ! -s conftest.err | |
7231 | } && test -s conftest.$ac_objext; then | |
7232 | ac_cv_prog_f77_g=yes | |
7233 | else | |
7234 | echo "$as_me: failed program was:" >&5 | |
7235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7236 | ||
7237 | ac_cv_prog_f77_g=no | |
7238 | fi | |
7239 | ||
7240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7241 | ||
7242 | fi | |
7243 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
7244 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } | |
7245 | if test "$ac_test_FFLAGS" = set; then | |
7246 | FFLAGS=$ac_save_FFLAGS | |
7247 | elif test $ac_cv_prog_f77_g = yes; then | |
7248 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
7249 | FFLAGS="-g -O2" | |
7250 | else | |
7251 | FFLAGS="-g" | |
7252 | fi | |
7253 | else | |
7254 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
7255 | FFLAGS="-O2" | |
7256 | else | |
7257 | FFLAGS= | |
7258 | fi | |
7259 | fi | |
7260 | ||
7261 | G77=`test $ac_compiler_gnu = yes && echo yes` | |
7262 | ac_ext=c | |
7263 | ac_cpp='$CPP $CPPFLAGS' | |
7264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7267 | ||
7268 | ||
7269 | ||
7270 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
db137867 AC |
7271 | # find the maximum length of command line arguments |
7272 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
7273 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
7274 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
7275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7276 | else | |
7277 | i=0 | |
7278 | teststring="ABCD" | |
7279 | ||
7280 | case $build_os in | |
7281 | msdosdjgpp*) | |
7282 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7283 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7284 | # during glob expansion). Even if it were fixed, the result of this | |
7285 | # check would be larger than it should be. | |
7286 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7287 | ;; | |
7288 | ||
7289 | gnu*) | |
7290 | # Under GNU Hurd, this test is not required because there is | |
7291 | # no limit to the length of command line arguments. | |
7292 | # Libtool will interpret -1 as no limit whatsoever | |
7293 | lt_cv_sys_max_cmd_len=-1; | |
7294 | ;; | |
7295 | ||
7296 | cygwin* | mingw*) | |
7297 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
7298 | # about 5 minutes as the teststring grows exponentially. | |
7299 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7300 | # you end up with a "frozen" computer, even though with patience | |
7301 | # the test eventually succeeds (with a max line length of 256k). | |
7302 | # Instead, let's just punt: use the minimum linelength reported by | |
7303 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7304 | lt_cv_sys_max_cmd_len=8192; | |
7305 | ;; | |
7306 | ||
7307 | amigaos*) | |
7308 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7309 | # So we just punt and use a minimum line length of 8192. | |
7310 | lt_cv_sys_max_cmd_len=8192; | |
7311 | ;; | |
7312 | ||
7313 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7314 | # This has been around since 386BSD, at least. Likely further. | |
7315 | if test -x /sbin/sysctl; then | |
7316 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7317 | elif test -x /usr/sbin/sysctl; then | |
7318 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7319 | else | |
7320 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7321 | fi | |
7322 | # And add a safety zone | |
7323 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7324 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7325 | ;; | |
7326 | ||
7327 | interix*) | |
7328 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7329 | lt_cv_sys_max_cmd_len=196608 | |
7330 | ;; | |
7331 | ||
7332 | osf*) | |
7333 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7334 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7335 | # nice to cause kernel panics so lets avoid the loop below. | |
7336 | # First set a reasonable default. | |
7337 | lt_cv_sys_max_cmd_len=16384 | |
7338 | # | |
7339 | if test -x /sbin/sysconfig; then | |
7340 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7341 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7342 | esac | |
7343 | fi | |
7344 | ;; | |
7345 | sco3.2v5*) | |
7346 | lt_cv_sys_max_cmd_len=102400 | |
7347 | ;; | |
7348 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7349 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7350 | if test -n "$kargmax"; then | |
7351 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7352 | else | |
7353 | lt_cv_sys_max_cmd_len=32768 | |
7354 | fi | |
7355 | ;; | |
7356 | *) | |
7357 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
7358 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7359 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7360 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7361 | else | |
7362 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7363 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
7364 | = "XX$teststring") >/dev/null 2>&1 && | |
7365 | new_result=`expr "X$teststring" : ".*" 2>&1` && | |
7366 | lt_cv_sys_max_cmd_len=$new_result && | |
7367 | test $i != 17 # 1/2 MB should be enough | |
7368 | do | |
7369 | i=`expr $i + 1` | |
7370 | teststring=$teststring$teststring | |
7371 | done | |
7372 | teststring= | |
7373 | # Add a significant safety factor because C++ compilers can tack on massive | |
7374 | # amounts of additional arguments before passing them to the linker. | |
7375 | # It appears as though 1/2 is a usable value. | |
7376 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7377 | fi | |
7378 | ;; | |
7379 | esac | |
7380 | ||
7381 | fi | |
7382 | ||
7383 | if test -n $lt_cv_sys_max_cmd_len ; then | |
7384 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
7385 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | |
7386 | else | |
7387 | { echo "$as_me:$LINENO: result: none" >&5 | |
7388 | echo "${ECHO_T}none" >&6; } | |
7389 | fi | |
7390 | ||
7391 | ||
7392 | ||
7393 | ||
7394 | ||
7395 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7396 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
7397 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | |
7398 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
7399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7400 | else | |
7401 | ||
7402 | # These are sane defaults that work on at least a few old systems. | |
7403 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7404 | ||
7405 | # Character class describing NM global symbol codes. | |
7406 | symcode='[BCDEGRST]' | |
7407 | ||
7408 | # Regexp to match symbols that can be accessed directly from C. | |
7409 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7410 | ||
7411 | # Transform an extracted symbol line into a proper C declaration | |
7412 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
7413 | ||
7414 | # Transform an extracted symbol line into symbol name and symbol address | |
7415 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
7416 | ||
7417 | # Define system-specific variables. | |
7418 | case $host_os in | |
7419 | aix*) | |
7420 | symcode='[BCDT]' | |
7421 | ;; | |
7422 | cygwin* | mingw* | pw32*) | |
7423 | symcode='[ABCDGISTW]' | |
7424 | ;; | |
7425 | hpux*) # Its linker distinguishes data from code symbols | |
7426 | if test "$host_cpu" = ia64; then | |
7427 | symcode='[ABCDEGRST]' | |
7428 | fi | |
7429 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7430 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
7431 | ;; | |
7432 | linux* | k*bsd*-gnu) | |
7433 | if test "$host_cpu" = ia64; then | |
7434 | symcode='[ABCDGIRSTW]' | |
7435 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7436 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
7437 | fi | |
7438 | ;; | |
7439 | irix* | nonstopux*) | |
7440 | symcode='[BCDEGRST]' | |
7441 | ;; | |
7442 | osf*) | |
7443 | symcode='[BCDEGQRST]' | |
7444 | ;; | |
7445 | solaris*) | |
7446 | symcode='[BDRT]' | |
7447 | ;; | |
7448 | sco3.2v5*) | |
7449 | symcode='[DT]' | |
7450 | ;; | |
7451 | sysv4.2uw2*) | |
7452 | symcode='[DT]' | |
7453 | ;; | |
7454 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7455 | symcode='[ABDT]' | |
7456 | ;; | |
7457 | sysv4) | |
7458 | symcode='[DFNSTU]' | |
7459 | ;; | |
7460 | esac | |
7461 | ||
7462 | # Handle CRLF in mingw tool chain | |
7463 | opt_cr= | |
7464 | case $build_os in | |
7465 | mingw*) | |
7466 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7467 | ;; | |
7468 | esac | |
7469 | ||
7470 | # If we're using GNU nm, then use its standard symbol codes. | |
7471 | case `$NM -V 2>&1` in | |
7472 | *GNU* | *'with BFD'*) | |
7473 | symcode='[ABCDGIRSTW]' ;; | |
7474 | esac | |
7475 | ||
7476 | # Try without a prefix undercore, then with it. | |
7477 | for ac_symprfx in "" "_"; do | |
7478 | ||
7479 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7480 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7481 | ||
7482 | # Write the raw and C identifiers. | |
7483 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7484 | ||
7485 | # Check to see that the pipe works correctly. | |
7486 | pipe_works=no | |
7487 | ||
7488 | rm -f conftest* | |
7489 | cat > conftest.$ac_ext <<EOF | |
7490 | #ifdef __cplusplus | |
7491 | extern "C" { | |
7492 | #endif | |
7493 | char nm_test_var; | |
7494 | void nm_test_func(){} | |
7495 | #ifdef __cplusplus | |
7496 | } | |
7497 | #endif | |
7498 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7499 | EOF | |
7500 | ||
7501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7502 | (eval $ac_compile) 2>&5 | |
7503 | ac_status=$? | |
7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7505 | (exit $ac_status); }; then | |
7506 | # Now try to grab the symbols. | |
7507 | nlist=conftest.nm | |
7508 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
7509 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
7510 | ac_status=$? | |
7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7512 | (exit $ac_status); } && test -s "$nlist"; then | |
7513 | # Try sorting and uniquifying the output. | |
7514 | if sort "$nlist" | uniq > "$nlist"T; then | |
7515 | mv -f "$nlist"T "$nlist" | |
7516 | else | |
7517 | rm -f "$nlist"T | |
7518 | fi | |
7519 | ||
7520 | # Make sure that we snagged all the symbols we need. | |
7521 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
7522 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
7523 | cat <<EOF > conftest.$ac_ext | |
7524 | #ifdef __cplusplus | |
7525 | extern "C" { | |
7526 | #endif | |
7527 | ||
7528 | EOF | |
7529 | # Now generate the symbol file. | |
7530 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
7531 | ||
7532 | cat <<EOF >> conftest.$ac_ext | |
7533 | #if defined (__STDC__) && __STDC__ | |
7534 | # define lt_ptr_t void * | |
7535 | #else | |
7536 | # define lt_ptr_t char * | |
7537 | # define const | |
7538 | #endif | |
7539 | ||
7540 | /* The mapping between symbol names and symbols. */ | |
7541 | const struct { | |
7542 | const char *name; | |
7543 | lt_ptr_t address; | |
7544 | } | |
7545 | lt_preloaded_symbols[] = | |
7546 | { | |
7547 | EOF | |
7548 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
7549 | cat <<\EOF >> conftest.$ac_ext | |
7550 | {0, (lt_ptr_t) 0} | |
7551 | }; | |
7552 | ||
7553 | #ifdef __cplusplus | |
7554 | } | |
7555 | #endif | |
7556 | EOF | |
7557 | # Now try linking the two files. | |
7558 | mv conftest.$ac_objext conftstm.$ac_objext | |
7559 | lt_save_LIBS="$LIBS" | |
7560 | lt_save_CFLAGS="$CFLAGS" | |
7561 | LIBS="conftstm.$ac_objext" | |
7562 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7564 | (eval $ac_link) 2>&5 | |
7565 | ac_status=$? | |
7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7567 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
7568 | pipe_works=yes | |
7569 | fi | |
7570 | LIBS="$lt_save_LIBS" | |
7571 | CFLAGS="$lt_save_CFLAGS" | |
7572 | else | |
7573 | echo "cannot find nm_test_func in $nlist" >&5 | |
7574 | fi | |
7575 | else | |
7576 | echo "cannot find nm_test_var in $nlist" >&5 | |
7577 | fi | |
7578 | else | |
7579 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7580 | fi | |
7581 | else | |
7582 | echo "$progname: failed program was:" >&5 | |
7583 | cat conftest.$ac_ext >&5 | |
7584 | fi | |
b676ea3b | 7585 | rm -rf conftest* conftst* |
db137867 AC |
7586 | |
7587 | # Do not use the global_symbol_pipe unless it works. | |
7588 | if test "$pipe_works" = yes; then | |
7589 | break | |
7590 | else | |
7591 | lt_cv_sys_global_symbol_pipe= | |
7592 | fi | |
7593 | done | |
7594 | ||
7595 | fi | |
7596 | ||
7597 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7598 | lt_cv_sys_global_symbol_to_cdecl= | |
7599 | fi | |
7600 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7601 | { echo "$as_me:$LINENO: result: failed" >&5 | |
7602 | echo "${ECHO_T}failed" >&6; } | |
7603 | else | |
7604 | { echo "$as_me:$LINENO: result: ok" >&5 | |
7605 | echo "${ECHO_T}ok" >&6; } | |
7606 | fi | |
7607 | ||
7608 | { echo "$as_me:$LINENO: checking for objdir" >&5 | |
7609 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | |
7610 | if test "${lt_cv_objdir+set}" = set; then | |
7611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7612 | else | |
7613 | rm -f .libs 2>/dev/null | |
7614 | mkdir .libs 2>/dev/null | |
7615 | if test -d .libs; then | |
7616 | lt_cv_objdir=.libs | |
7617 | else | |
7618 | # MS-DOS does not allow filenames that begin with a dot. | |
7619 | lt_cv_objdir=_libs | |
7620 | fi | |
7621 | rmdir .libs 2>/dev/null | |
7622 | fi | |
7623 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7624 | echo "${ECHO_T}$lt_cv_objdir" >&6; } | |
7625 | objdir=$lt_cv_objdir | |
7626 | ||
7627 | ||
7628 | ||
7629 | ||
7630 | ||
7631 | case $host_os in | |
7632 | aix3*) | |
7633 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7634 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7635 | # vanish in a puff of smoke. | |
7636 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7637 | COLLECT_NAMES= | |
7638 | export COLLECT_NAMES | |
7639 | fi | |
7640 | ;; | |
7641 | esac | |
7642 | ||
7643 | # Sed substitution that helps us do robust quoting. It backslashifies | |
7644 | # metacharacters that are still active within double-quoted strings. | |
7645 | Xsed='sed -e 1s/^X//' | |
7646 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
7647 | ||
7648 | # Same as above, but do not quote variable references. | |
7649 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
7650 | ||
7651 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7652 | # double_quote_subst'ed string. | |
7653 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7654 | ||
7655 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7656 | no_glob_subst='s/\*/\\\*/g' | |
7657 | ||
7658 | # Constants: | |
7659 | rm="rm -f" | |
7660 | ||
7661 | # Global variables: | |
7662 | default_ofile=libtool | |
7663 | can_build_shared=yes | |
7664 | ||
7665 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7666 | # which needs '.lib'). | |
7667 | libext=a | |
7668 | ltmain="$ac_aux_dir/ltmain.sh" | |
7669 | ofile="$default_ofile" | |
7670 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7671 | ||
7672 | if test -n "$ac_tool_prefix"; then | |
7673 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7674 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7677 | if test "${ac_cv_prog_AR+set}" = set; then | |
7678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7679 | else | |
7680 | if test -n "$AR"; then | |
7681 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7682 | else | |
7683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7684 | for as_dir in $PATH | |
7685 | do | |
7686 | IFS=$as_save_IFS | |
7687 | test -z "$as_dir" && as_dir=. | |
7688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7690 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7692 | break 2 | |
7693 | fi | |
7694 | done | |
7695 | done | |
7696 | IFS=$as_save_IFS | |
7697 | ||
7698 | fi | |
7699 | fi | |
7700 | AR=$ac_cv_prog_AR | |
7701 | if test -n "$AR"; then | |
7702 | { echo "$as_me:$LINENO: result: $AR" >&5 | |
7703 | echo "${ECHO_T}$AR" >&6; } | |
7704 | else | |
7705 | { echo "$as_me:$LINENO: result: no" >&5 | |
7706 | echo "${ECHO_T}no" >&6; } | |
7707 | fi | |
7708 | ||
7709 | ||
7710 | fi | |
7711 | if test -z "$ac_cv_prog_AR"; then | |
7712 | ac_ct_AR=$AR | |
7713 | # Extract the first word of "ar", so it can be a program name with args. | |
7714 | set dummy ar; ac_word=$2 | |
7715 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7716 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7717 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7719 | else | |
7720 | if test -n "$ac_ct_AR"; then | |
7721 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7722 | else | |
7723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7724 | for as_dir in $PATH | |
7725 | do | |
7726 | IFS=$as_save_IFS | |
7727 | test -z "$as_dir" && as_dir=. | |
7728 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7729 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7730 | ac_cv_prog_ac_ct_AR="ar" | |
7731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7732 | break 2 | |
7733 | fi | |
7734 | done | |
7735 | done | |
7736 | IFS=$as_save_IFS | |
7737 | ||
7738 | fi | |
7739 | fi | |
7740 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7741 | if test -n "$ac_ct_AR"; then | |
7742 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
7743 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
7744 | else | |
7745 | { echo "$as_me:$LINENO: result: no" >&5 | |
7746 | echo "${ECHO_T}no" >&6; } | |
7747 | fi | |
7748 | ||
7749 | if test "x$ac_ct_AR" = x; then | |
7750 | AR="false" | |
7751 | else | |
7752 | case $cross_compiling:$ac_tool_warned in | |
7753 | yes:) | |
7754 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7755 | whose name does not start with the host triplet. If you think this | |
7756 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7757 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7758 | whose name does not start with the host triplet. If you think this | |
7759 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7760 | ac_tool_warned=yes ;; | |
7761 | esac | |
7762 | AR=$ac_ct_AR | |
7763 | fi | |
7764 | else | |
7765 | AR="$ac_cv_prog_AR" | |
7766 | fi | |
7767 | ||
7768 | if test -n "$ac_tool_prefix"; then | |
7769 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7770 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7773 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
7774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7775 | else | |
7776 | if test -n "$RANLIB"; then | |
7777 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7778 | else | |
7779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7780 | for as_dir in $PATH | |
7781 | do | |
7782 | IFS=$as_save_IFS | |
7783 | test -z "$as_dir" && as_dir=. | |
7784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7786 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7788 | break 2 | |
7789 | fi | |
7790 | done | |
7791 | done | |
7792 | IFS=$as_save_IFS | |
7793 | ||
7794 | fi | |
7795 | fi | |
7796 | RANLIB=$ac_cv_prog_RANLIB | |
7797 | if test -n "$RANLIB"; then | |
7798 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
7799 | echo "${ECHO_T}$RANLIB" >&6; } | |
7800 | else | |
7801 | { echo "$as_me:$LINENO: result: no" >&5 | |
7802 | echo "${ECHO_T}no" >&6; } | |
7803 | fi | |
7804 | ||
7805 | ||
7806 | fi | |
7807 | if test -z "$ac_cv_prog_RANLIB"; then | |
7808 | ac_ct_RANLIB=$RANLIB | |
7809 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7810 | set dummy ranlib; ac_word=$2 | |
7811 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7813 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
7814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7815 | else | |
7816 | if test -n "$ac_ct_RANLIB"; then | |
7817 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7818 | else | |
7819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7820 | for as_dir in $PATH | |
7821 | do | |
7822 | IFS=$as_save_IFS | |
7823 | test -z "$as_dir" && as_dir=. | |
7824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7826 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7828 | break 2 | |
7829 | fi | |
7830 | done | |
7831 | done | |
7832 | IFS=$as_save_IFS | |
7833 | ||
7834 | fi | |
7835 | fi | |
7836 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7837 | if test -n "$ac_ct_RANLIB"; then | |
7838 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
7839 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
7840 | else | |
7841 | { echo "$as_me:$LINENO: result: no" >&5 | |
7842 | echo "${ECHO_T}no" >&6; } | |
7843 | fi | |
7844 | ||
7845 | if test "x$ac_ct_RANLIB" = x; then | |
7846 | RANLIB=":" | |
7847 | else | |
7848 | case $cross_compiling:$ac_tool_warned in | |
7849 | yes:) | |
7850 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7851 | whose name does not start with the host triplet. If you think this | |
7852 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7853 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7854 | whose name does not start with the host triplet. If you think this | |
7855 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7856 | ac_tool_warned=yes ;; | |
7857 | esac | |
7858 | RANLIB=$ac_ct_RANLIB | |
7859 | fi | |
7860 | else | |
7861 | RANLIB="$ac_cv_prog_RANLIB" | |
7862 | fi | |
7863 | ||
7864 | if test -n "$ac_tool_prefix"; then | |
7865 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7866 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7867 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7869 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
7870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7871 | else | |
7872 | if test -n "$STRIP"; then | |
7873 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7874 | else | |
7875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7876 | for as_dir in $PATH | |
7877 | do | |
7878 | IFS=$as_save_IFS | |
7879 | test -z "$as_dir" && as_dir=. | |
7880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7881 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7882 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7884 | break 2 | |
7885 | fi | |
7886 | done | |
7887 | done | |
7888 | IFS=$as_save_IFS | |
7889 | ||
7890 | fi | |
7891 | fi | |
7892 | STRIP=$ac_cv_prog_STRIP | |
7893 | if test -n "$STRIP"; then | |
7894 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
7895 | echo "${ECHO_T}$STRIP" >&6; } | |
7896 | else | |
7897 | { echo "$as_me:$LINENO: result: no" >&5 | |
7898 | echo "${ECHO_T}no" >&6; } | |
7899 | fi | |
7900 | ||
7901 | ||
7902 | fi | |
7903 | if test -z "$ac_cv_prog_STRIP"; then | |
7904 | ac_ct_STRIP=$STRIP | |
7905 | # Extract the first word of "strip", so it can be a program name with args. | |
7906 | set dummy strip; ac_word=$2 | |
7907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7909 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7911 | else | |
7912 | if test -n "$ac_ct_STRIP"; then | |
7913 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7914 | else | |
7915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7916 | for as_dir in $PATH | |
7917 | do | |
7918 | IFS=$as_save_IFS | |
7919 | test -z "$as_dir" && as_dir=. | |
7920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7922 | ac_cv_prog_ac_ct_STRIP="strip" | |
7923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7924 | break 2 | |
7925 | fi | |
7926 | done | |
7927 | done | |
7928 | IFS=$as_save_IFS | |
7929 | ||
7930 | fi | |
7931 | fi | |
7932 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7933 | if test -n "$ac_ct_STRIP"; then | |
7934 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
7935 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
7936 | else | |
7937 | { echo "$as_me:$LINENO: result: no" >&5 | |
7938 | echo "${ECHO_T}no" >&6; } | |
7939 | fi | |
7940 | ||
7941 | if test "x$ac_ct_STRIP" = x; then | |
7942 | STRIP=":" | |
7943 | else | |
7944 | case $cross_compiling:$ac_tool_warned in | |
7945 | yes:) | |
7946 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7947 | whose name does not start with the host triplet. If you think this | |
7948 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7949 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7950 | whose name does not start with the host triplet. If you think this | |
7951 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7952 | ac_tool_warned=yes ;; | |
7953 | esac | |
7954 | STRIP=$ac_ct_STRIP | |
7955 | fi | |
7956 | else | |
7957 | STRIP="$ac_cv_prog_STRIP" | |
7958 | fi | |
7959 | ||
7960 | ||
7961 | old_CC="$CC" | |
7962 | old_CFLAGS="$CFLAGS" | |
7963 | ||
7964 | # Set sane defaults for various variables | |
7965 | test -z "$AR" && AR=ar | |
7966 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7967 | test -z "$AS" && AS=as | |
7968 | test -z "$CC" && CC=cc | |
7969 | test -z "$LTCC" && LTCC=$CC | |
7970 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7971 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
7972 | test -z "$LD" && LD=ld | |
7973 | test -z "$LN_S" && LN_S="ln -s" | |
7974 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7975 | test -z "$NM" && NM=nm | |
7976 | test -z "$SED" && SED=sed | |
7977 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7978 | test -z "$RANLIB" && RANLIB=: | |
7979 | test -z "$STRIP" && STRIP=: | |
7980 | test -z "$ac_objext" && ac_objext=o | |
7981 | ||
7982 | # Determine commands to create old-style static archives. | |
7983 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7984 | old_postinstall_cmds='chmod 644 $oldlib' | |
7985 | old_postuninstall_cmds= | |
7986 | ||
7987 | if test -n "$RANLIB"; then | |
7988 | case $host_os in | |
7989 | openbsd*) | |
7990 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7991 | ;; | |
7992 | *) | |
7993 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7994 | ;; | |
7995 | esac | |
7996 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7997 | fi | |
7998 | ||
7999 | for cc_temp in $compiler""; do | |
8000 | case $cc_temp in | |
8001 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8002 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8003 | \-*) ;; | |
8004 | *) break;; | |
8005 | esac | |
8006 | done | |
8007 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
8008 | ||
8009 | ||
8010 | # Only perform the check for file, if the check method requires it | |
8011 | case $deplibs_check_method in | |
8012 | file_magic*) | |
8013 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8014 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
8015 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | |
8016 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8018 | else | |
8019 | case $MAGIC_CMD in | |
8020 | [\\/*] | ?:[\\/]*) | |
8021 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8022 | ;; | |
8023 | *) | |
8024 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8025 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8026 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8027 | for ac_dir in $ac_dummy; do | |
8028 | IFS="$lt_save_ifs" | |
8029 | test -z "$ac_dir" && ac_dir=. | |
8030 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8031 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8032 | if test -n "$file_magic_test_file"; then | |
8033 | case $deplibs_check_method in | |
8034 | "file_magic "*) | |
8035 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8036 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8037 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8038 | $EGREP "$file_magic_regex" > /dev/null; then | |
8039 | : | |
8040 | else | |
8041 | cat <<EOF 1>&2 | |
8042 | ||
8043 | *** Warning: the command libtool uses to detect shared libraries, | |
8044 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8045 | *** The result is that libtool may fail to recognize shared libraries | |
8046 | *** as such. This will affect the creation of libtool libraries that | |
8047 | *** depend on shared libraries, but programs linked with such libtool | |
8048 | *** libraries will work regardless of this problem. Nevertheless, you | |
8049 | *** may want to report the problem to your system manager and/or to | |
8050 | *** bug-libtool@gnu.org | |
8051 | ||
8052 | EOF | |
8053 | fi ;; | |
8054 | esac | |
8055 | fi | |
8056 | break | |
8057 | fi | |
8058 | done | |
8059 | IFS="$lt_save_ifs" | |
8060 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8061 | ;; | |
8062 | esac | |
8063 | fi | |
8064 | ||
8065 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8066 | if test -n "$MAGIC_CMD"; then | |
8067 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
8068 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
8069 | else | |
8070 | { echo "$as_me:$LINENO: result: no" >&5 | |
8071 | echo "${ECHO_T}no" >&6; } | |
8072 | fi | |
8073 | ||
8074 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8075 | if test -n "$ac_tool_prefix"; then | |
8076 | { echo "$as_me:$LINENO: checking for file" >&5 | |
8077 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } | |
8078 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8080 | else | |
8081 | case $MAGIC_CMD in | |
8082 | [\\/*] | ?:[\\/]*) | |
8083 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8084 | ;; | |
8085 | *) | |
8086 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8087 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8088 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8089 | for ac_dir in $ac_dummy; do | |
8090 | IFS="$lt_save_ifs" | |
8091 | test -z "$ac_dir" && ac_dir=. | |
8092 | if test -f $ac_dir/file; then | |
8093 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8094 | if test -n "$file_magic_test_file"; then | |
8095 | case $deplibs_check_method in | |
8096 | "file_magic "*) | |
8097 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8098 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8099 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8100 | $EGREP "$file_magic_regex" > /dev/null; then | |
8101 | : | |
8102 | else | |
8103 | cat <<EOF 1>&2 | |
8104 | ||
8105 | *** Warning: the command libtool uses to detect shared libraries, | |
8106 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8107 | *** The result is that libtool may fail to recognize shared libraries | |
8108 | *** as such. This will affect the creation of libtool libraries that | |
8109 | *** depend on shared libraries, but programs linked with such libtool | |
8110 | *** libraries will work regardless of this problem. Nevertheless, you | |
8111 | *** may want to report the problem to your system manager and/or to | |
8112 | *** bug-libtool@gnu.org | |
8113 | ||
8114 | EOF | |
8115 | fi ;; | |
8116 | esac | |
8117 | fi | |
8118 | break | |
8119 | fi | |
8120 | done | |
8121 | IFS="$lt_save_ifs" | |
8122 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8123 | ;; | |
8124 | esac | |
8125 | fi | |
8126 | ||
8127 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8128 | if test -n "$MAGIC_CMD"; then | |
8129 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
8130 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
8131 | else | |
8132 | { echo "$as_me:$LINENO: result: no" >&5 | |
8133 | echo "${ECHO_T}no" >&6; } | |
8134 | fi | |
8135 | ||
8136 | else | |
8137 | MAGIC_CMD=: | |
8138 | fi | |
8139 | fi | |
8140 | ||
8141 | fi | |
8142 | ;; | |
8143 | esac | |
8144 | ||
b676ea3b AC |
8145 | |
8146 | case $host_os in | |
8147 | rhapsody* | darwin*) | |
8148 | if test -n "$ac_tool_prefix"; then | |
8149 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8150 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
8151 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8152 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8153 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
8154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8155 | else | |
8156 | if test -n "$DSYMUTIL"; then | |
8157 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8158 | else | |
8159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8160 | for as_dir in $PATH | |
8161 | do | |
8162 | IFS=$as_save_IFS | |
8163 | test -z "$as_dir" && as_dir=. | |
8164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8166 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
8167 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8168 | break 2 | |
8169 | fi | |
8170 | done | |
8171 | done | |
8172 | IFS=$as_save_IFS | |
8173 | ||
8174 | fi | |
8175 | fi | |
8176 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8177 | if test -n "$DSYMUTIL"; then | |
8178 | { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
8179 | echo "${ECHO_T}$DSYMUTIL" >&6; } | |
8180 | else | |
8181 | { echo "$as_me:$LINENO: result: no" >&5 | |
8182 | echo "${ECHO_T}no" >&6; } | |
8183 | fi | |
8184 | ||
8185 | ||
8186 | fi | |
8187 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8188 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8189 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8190 | set dummy dsymutil; ac_word=$2 | |
8191 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8193 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
8194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8195 | else | |
8196 | if test -n "$ac_ct_DSYMUTIL"; then | |
8197 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8198 | else | |
8199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8200 | for as_dir in $PATH | |
8201 | do | |
8202 | IFS=$as_save_IFS | |
8203 | test -z "$as_dir" && as_dir=. | |
8204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8206 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8208 | break 2 | |
8209 | fi | |
8210 | done | |
8211 | done | |
8212 | IFS=$as_save_IFS | |
8213 | ||
8214 | fi | |
8215 | fi | |
8216 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8217 | if test -n "$ac_ct_DSYMUTIL"; then | |
8218 | { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
8219 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } | |
8220 | else | |
8221 | { echo "$as_me:$LINENO: result: no" >&5 | |
8222 | echo "${ECHO_T}no" >&6; } | |
8223 | fi | |
8224 | ||
8225 | if test "x$ac_ct_DSYMUTIL" = x; then | |
8226 | DSYMUTIL=":" | |
8227 | else | |
8228 | case $cross_compiling:$ac_tool_warned in | |
8229 | yes:) | |
8230 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
8231 | whose name does not start with the host triplet. If you think this | |
8232 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
8233 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
8234 | whose name does not start with the host triplet. If you think this | |
8235 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
8236 | ac_tool_warned=yes ;; | |
8237 | esac | |
8238 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8239 | fi | |
8240 | else | |
8241 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8242 | fi | |
8243 | ||
8244 | if test -n "$ac_tool_prefix"; then | |
8245 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8246 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8247 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8249 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
8250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8251 | else | |
8252 | if test -n "$NMEDIT"; then | |
8253 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8254 | else | |
8255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8256 | for as_dir in $PATH | |
8257 | do | |
8258 | IFS=$as_save_IFS | |
8259 | test -z "$as_dir" && as_dir=. | |
8260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8262 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8264 | break 2 | |
8265 | fi | |
8266 | done | |
8267 | done | |
8268 | IFS=$as_save_IFS | |
8269 | ||
8270 | fi | |
8271 | fi | |
8272 | NMEDIT=$ac_cv_prog_NMEDIT | |
8273 | if test -n "$NMEDIT"; then | |
8274 | { echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
8275 | echo "${ECHO_T}$NMEDIT" >&6; } | |
8276 | else | |
8277 | { echo "$as_me:$LINENO: result: no" >&5 | |
8278 | echo "${ECHO_T}no" >&6; } | |
8279 | fi | |
8280 | ||
8281 | ||
8282 | fi | |
8283 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8284 | ac_ct_NMEDIT=$NMEDIT | |
8285 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8286 | set dummy nmedit; ac_word=$2 | |
8287 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8289 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8291 | else | |
8292 | if test -n "$ac_ct_NMEDIT"; then | |
8293 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8294 | else | |
8295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8296 | for as_dir in $PATH | |
8297 | do | |
8298 | IFS=$as_save_IFS | |
8299 | test -z "$as_dir" && as_dir=. | |
8300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8302 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8304 | break 2 | |
8305 | fi | |
8306 | done | |
8307 | done | |
8308 | IFS=$as_save_IFS | |
8309 | ||
8310 | fi | |
8311 | fi | |
8312 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8313 | if test -n "$ac_ct_NMEDIT"; then | |
8314 | { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
8315 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } | |
8316 | else | |
8317 | { echo "$as_me:$LINENO: result: no" >&5 | |
8318 | echo "${ECHO_T}no" >&6; } | |
8319 | fi | |
8320 | ||
8321 | if test "x$ac_ct_NMEDIT" = x; then | |
8322 | NMEDIT=":" | |
8323 | else | |
8324 | case $cross_compiling:$ac_tool_warned in | |
8325 | yes:) | |
8326 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
8327 | whose name does not start with the host triplet. If you think this | |
8328 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
8329 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
8330 | whose name does not start with the host triplet. If you think this | |
8331 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
8332 | ac_tool_warned=yes ;; | |
8333 | esac | |
8334 | NMEDIT=$ac_ct_NMEDIT | |
8335 | fi | |
8336 | else | |
8337 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8338 | fi | |
8339 | ||
8340 | ||
8341 | { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
8342 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } | |
8343 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8345 | else | |
8346 | lt_cv_apple_cc_single_mod=no | |
8347 | if test -z "${LT_MULTI_MODULE}"; then | |
8348 | # By default we will add the -single_module flag. You can override | |
8349 | # by either setting the environment variable LT_MULTI_MODULE | |
8350 | # non-empty at configure time, or by adding -multi_module to the | |
8351 | # link flags. | |
8352 | echo "int foo(void){return 1;}" > conftest.c | |
8353 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8354 | -dynamiclib ${wl}-single_module conftest.c | |
8355 | if test -f libconftest.dylib; then | |
8356 | lt_cv_apple_cc_single_mod=yes | |
8357 | rm -rf libconftest.dylib* | |
8358 | fi | |
8359 | rm conftest.c | |
8360 | fi | |
8361 | fi | |
8362 | { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
8363 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } | |
8364 | { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
8365 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } | |
8366 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
8367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8368 | else | |
8369 | lt_cv_ld_exported_symbols_list=no | |
8370 | save_LDFLAGS=$LDFLAGS | |
8371 | echo "_main" > conftest.sym | |
8372 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8373 | cat >conftest.$ac_ext <<_ACEOF | |
8374 | /* confdefs.h. */ | |
8375 | _ACEOF | |
8376 | cat confdefs.h >>conftest.$ac_ext | |
8377 | cat >>conftest.$ac_ext <<_ACEOF | |
8378 | /* end confdefs.h. */ | |
8379 | ||
8380 | int | |
8381 | main () | |
8382 | { | |
8383 | ||
8384 | ; | |
8385 | return 0; | |
8386 | } | |
8387 | _ACEOF | |
8388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8389 | if { (ac_try="$ac_link" | |
8390 | case "(($ac_try" in | |
8391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8392 | *) ac_try_echo=$ac_try;; | |
8393 | esac | |
8394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8395 | (eval "$ac_link") 2>conftest.er1 | |
8396 | ac_status=$? | |
8397 | grep -v '^ *+' conftest.er1 >conftest.err | |
8398 | rm -f conftest.er1 | |
8399 | cat conftest.err >&5 | |
8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8401 | (exit $ac_status); } && { | |
8402 | test -z "$ac_c_werror_flag" || | |
8403 | test ! -s conftest.err | |
8404 | } && test -s conftest$ac_exeext && | |
8405 | $as_test_x conftest$ac_exeext; then | |
8406 | lt_cv_ld_exported_symbols_list=yes | |
8407 | else | |
8408 | echo "$as_me: failed program was:" >&5 | |
8409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8410 | ||
8411 | lt_cv_ld_exported_symbols_list=no | |
8412 | fi | |
8413 | ||
8414 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8415 | conftest$ac_exeext conftest.$ac_ext | |
8416 | LDFLAGS="$save_LDFLAGS" | |
8417 | ||
8418 | fi | |
8419 | { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8420 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } | |
8421 | case $host_os in | |
8422 | rhapsody* | darwin1.[0123]) | |
8423 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8424 | darwin1.*) | |
8425 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8426 | darwin*) | |
8427 | # if running on 10.5 or later, the deployment target defaults | |
8428 | # to the OS version, if on x86, and 10.4, the deployment | |
8429 | # target defaults to 10.4. Don't you love it? | |
8430 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8431 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8432 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8433 | 10.[012]*) | |
8434 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8435 | 10.*) | |
8436 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8437 | esac | |
8438 | ;; | |
8439 | esac | |
8440 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8441 | _lt_dar_single_mod='$single_module' | |
8442 | fi | |
8443 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8444 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8445 | else | |
8446 | _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" | |
8447 | fi | |
8448 | if test "$DSYMUTIL" != ":"; then | |
8449 | _lt_dsymutil="~$DSYMUTIL \$lib || :" | |
8450 | else | |
8451 | _lt_dsymutil= | |
8452 | fi | |
8453 | ;; | |
8454 | esac | |
8455 | ||
8456 | ||
db137867 AC |
8457 | enable_dlopen=no |
8458 | enable_win32_dll=no | |
8459 | ||
8460 | # Check whether --enable-libtool-lock was given. | |
8461 | if test "${enable_libtool_lock+set}" = set; then | |
8462 | enableval=$enable_libtool_lock; | |
8463 | fi | |
8464 | ||
8465 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
8466 | ||
8467 | ||
8468 | # Check whether --with-pic was given. | |
8469 | if test "${with_pic+set}" = set; then | |
8470 | withval=$with_pic; pic_mode="$withval" | |
8471 | else | |
8472 | pic_mode=default | |
8473 | fi | |
8474 | ||
8475 | test -z "$pic_mode" && pic_mode=default | |
8476 | ||
8477 | # Use C for the default configuration in the libtool script | |
8478 | tagname= | |
8479 | lt_save_CC="$CC" | |
8480 | ac_ext=c | |
8481 | ac_cpp='$CPP $CPPFLAGS' | |
8482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8485 | ||
8486 | ||
8487 | # Source file extension for C test sources. | |
8488 | ac_ext=c | |
8489 | ||
8490 | # Object file extension for compiled C test sources. | |
8491 | objext=o | |
8492 | objext=$objext | |
8493 | ||
8494 | # Code to be used in simple compile tests | |
8495 | lt_simple_compile_test_code="int some_variable = 0;" | |
8496 | ||
8497 | # Code to be used in simple link tests | |
8498 | lt_simple_link_test_code='int main(){return(0);}' | |
8499 | ||
8500 | ||
8501 | # If no C compiler was specified, use CC. | |
8502 | LTCC=${LTCC-"$CC"} | |
8503 | ||
8504 | # If no C compiler flags were specified, use CFLAGS. | |
8505 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8506 | ||
8507 | # Allow CC to be a program name with arguments. | |
8508 | compiler=$CC | |
8509 | ||
8510 | ||
8511 | # save warnings/boilerplate of simple test code | |
8512 | ac_outfile=conftest.$ac_objext | |
8513 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8514 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8515 | _lt_compiler_boilerplate=`cat conftest.err` | |
8516 | $rm conftest* | |
8517 | ||
8518 | ac_outfile=conftest.$ac_objext | |
8519 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8520 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8521 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 8522 | $rm -r conftest* |
db137867 AC |
8523 | |
8524 | ||
8525 | ||
8526 | lt_prog_compiler_no_builtin_flag= | |
8527 | ||
8528 | if test "$GCC" = yes; then | |
8529 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8530 | ||
8531 | ||
8532 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8533 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
8534 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
8535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8536 | else | |
8537 | lt_cv_prog_compiler_rtti_exceptions=no | |
8538 | ac_outfile=conftest.$ac_objext | |
8539 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8540 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8541 | # Insert the option either (1) after the last *FLAGS variable, or | |
8542 | # (2) before a word containing "conftest.", or (3) at the end. | |
8543 | # Note that $ac_compile itself does not contain backslashes and begins | |
8544 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8545 | # The option is referenced via a variable to avoid confusing sed. | |
8546 | lt_compile=`echo "$ac_compile" | $SED \ | |
8547 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8548 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8549 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 8550 | (eval echo "\"\$as_me:8550: $lt_compile\"" >&5) |
db137867 AC |
8551 | (eval "$lt_compile" 2>conftest.err) |
8552 | ac_status=$? | |
8553 | cat conftest.err >&5 | |
3202e249 | 8554 | echo "$as_me:8554: \$? = $ac_status" >&5 |
db137867 AC |
8555 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8556 | # The compiler can only warn and ignore the option if not recognized | |
8557 | # So say no if there are warnings other than the usual output. | |
8558 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8559 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8560 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8561 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8562 | fi | |
8563 | fi | |
8564 | $rm conftest* | |
8565 | ||
8566 | fi | |
8567 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8568 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8569 | ||
8570 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8571 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8572 | else | |
8573 | : | |
8574 | fi | |
8575 | ||
8576 | fi | |
8577 | ||
8578 | lt_prog_compiler_wl= | |
8579 | lt_prog_compiler_pic= | |
8580 | lt_prog_compiler_static= | |
8581 | ||
8582 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
8583 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
8584 | ||
8585 | if test "$GCC" = yes; then | |
8586 | lt_prog_compiler_wl='-Wl,' | |
8587 | lt_prog_compiler_static='-static' | |
8588 | ||
8589 | case $host_os in | |
8590 | aix*) | |
8591 | # All AIX code is PIC. | |
8592 | if test "$host_cpu" = ia64; then | |
8593 | # AIX 5 now supports IA64 processor | |
8594 | lt_prog_compiler_static='-Bstatic' | |
8595 | fi | |
8596 | ;; | |
8597 | ||
8598 | amigaos*) | |
8599 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8600 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8601 | # like `-m68040'. | |
8602 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8603 | ;; | |
8604 | ||
8605 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8606 | # PIC is the default for these OSes. | |
8607 | ;; | |
8608 | ||
8609 | mingw* | cygwin* | pw32* | os2*) | |
8610 | # This hack is so that the source file can tell whether it is being | |
8611 | # built for inclusion in a dll (and should export symbols for example). | |
8612 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8613 | # (--disable-auto-import) libraries | |
8614 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8615 | ;; | |
8616 | ||
8617 | darwin* | rhapsody*) | |
8618 | # PIC is the default on this platform | |
8619 | # Common symbols not allowed in MH_DYLIB files | |
8620 | lt_prog_compiler_pic='-fno-common' | |
8621 | ;; | |
8622 | ||
8623 | interix[3-9]*) | |
8624 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8625 | # Instead, we relocate shared libraries at runtime. | |
8626 | ;; | |
8627 | ||
8628 | msdosdjgpp*) | |
8629 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8630 | # on systems that don't support them. | |
8631 | lt_prog_compiler_can_build_shared=no | |
8632 | enable_shared=no | |
8633 | ;; | |
8634 | ||
8635 | sysv4*MP*) | |
8636 | if test -d /usr/nec; then | |
8637 | lt_prog_compiler_pic=-Kconform_pic | |
8638 | fi | |
8639 | ;; | |
8640 | ||
8641 | hpux*) | |
8642 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8643 | # not for PA HP-UX. | |
8644 | case $host_cpu in | |
8645 | hppa*64*|ia64*) | |
8646 | # +Z the default | |
8647 | ;; | |
8648 | *) | |
8649 | lt_prog_compiler_pic='-fPIC' | |
8650 | ;; | |
8651 | esac | |
8652 | ;; | |
8653 | ||
8654 | *) | |
8655 | lt_prog_compiler_pic='-fPIC' | |
8656 | ;; | |
8657 | esac | |
8658 | else | |
8659 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8660 | case $host_os in | |
8661 | aix*) | |
8662 | lt_prog_compiler_wl='-Wl,' | |
8663 | if test "$host_cpu" = ia64; then | |
8664 | # AIX 5 now supports IA64 processor | |
8665 | lt_prog_compiler_static='-Bstatic' | |
8666 | else | |
8667 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8668 | fi | |
8669 | ;; | |
8670 | darwin*) | |
8671 | # PIC is the default on this platform | |
8672 | # Common symbols not allowed in MH_DYLIB files | |
8673 | case $cc_basename in | |
8674 | xlc*) | |
8675 | lt_prog_compiler_pic='-qnocommon' | |
8676 | lt_prog_compiler_wl='-Wl,' | |
8677 | ;; | |
8678 | esac | |
8679 | ;; | |
8680 | ||
8681 | mingw* | cygwin* | pw32* | os2*) | |
8682 | # This hack is so that the source file can tell whether it is being | |
8683 | # built for inclusion in a dll (and should export symbols for example). | |
8684 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8685 | ;; | |
8686 | ||
8687 | hpux9* | hpux10* | hpux11*) | |
8688 | lt_prog_compiler_wl='-Wl,' | |
8689 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8690 | # not for PA HP-UX. | |
8691 | case $host_cpu in | |
8692 | hppa*64*|ia64*) | |
8693 | # +Z the default | |
8694 | ;; | |
8695 | *) | |
8696 | lt_prog_compiler_pic='+Z' | |
8697 | ;; | |
8698 | esac | |
8699 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8700 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8701 | ;; | |
8702 | ||
8703 | irix5* | irix6* | nonstopux*) | |
8704 | lt_prog_compiler_wl='-Wl,' | |
8705 | # PIC (with -KPIC) is the default. | |
8706 | lt_prog_compiler_static='-non_shared' | |
8707 | ;; | |
8708 | ||
8709 | newsos6) | |
8710 | lt_prog_compiler_pic='-KPIC' | |
8711 | lt_prog_compiler_static='-Bstatic' | |
8712 | ;; | |
8713 | ||
8714 | linux* | k*bsd*-gnu) | |
8715 | case $cc_basename in | |
8716 | icc* | ecc*) | |
8717 | lt_prog_compiler_wl='-Wl,' | |
8718 | lt_prog_compiler_pic='-KPIC' | |
8719 | lt_prog_compiler_static='-static' | |
8720 | ;; | |
8721 | pgcc* | pgf77* | pgf90* | pgf95*) | |
8722 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8723 | # which looks to be a dead project) | |
8724 | lt_prog_compiler_wl='-Wl,' | |
8725 | lt_prog_compiler_pic='-fpic' | |
8726 | lt_prog_compiler_static='-Bstatic' | |
8727 | ;; | |
8728 | ccc*) | |
8729 | lt_prog_compiler_wl='-Wl,' | |
8730 | # All Alpha code is PIC. | |
8731 | lt_prog_compiler_static='-non_shared' | |
8732 | ;; | |
8733 | *) | |
8734 | case `$CC -V 2>&1 | sed 5q` in | |
8735 | *Sun\ C*) | |
8736 | # Sun C 5.9 | |
8737 | lt_prog_compiler_pic='-KPIC' | |
8738 | lt_prog_compiler_static='-Bstatic' | |
8739 | lt_prog_compiler_wl='-Wl,' | |
8740 | ;; | |
8741 | *Sun\ F*) | |
8742 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8743 | lt_prog_compiler_pic='-KPIC' | |
8744 | lt_prog_compiler_static='-Bstatic' | |
8745 | lt_prog_compiler_wl='' | |
8746 | ;; | |
8747 | esac | |
8748 | ;; | |
8749 | esac | |
8750 | ;; | |
8751 | ||
8752 | osf3* | osf4* | osf5*) | |
8753 | lt_prog_compiler_wl='-Wl,' | |
8754 | # All OSF/1 code is PIC. | |
8755 | lt_prog_compiler_static='-non_shared' | |
8756 | ;; | |
8757 | ||
8758 | rdos*) | |
8759 | lt_prog_compiler_static='-non_shared' | |
8760 | ;; | |
8761 | ||
8762 | solaris*) | |
8763 | lt_prog_compiler_pic='-KPIC' | |
8764 | lt_prog_compiler_static='-Bstatic' | |
8765 | case $cc_basename in | |
8766 | f77* | f90* | f95*) | |
8767 | lt_prog_compiler_wl='-Qoption ld ';; | |
8768 | *) | |
8769 | lt_prog_compiler_wl='-Wl,';; | |
8770 | esac | |
8771 | ;; | |
8772 | ||
8773 | sunos4*) | |
8774 | lt_prog_compiler_wl='-Qoption ld ' | |
8775 | lt_prog_compiler_pic='-PIC' | |
8776 | lt_prog_compiler_static='-Bstatic' | |
8777 | ;; | |
8778 | ||
8779 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8780 | lt_prog_compiler_wl='-Wl,' | |
8781 | lt_prog_compiler_pic='-KPIC' | |
8782 | lt_prog_compiler_static='-Bstatic' | |
8783 | ;; | |
8784 | ||
8785 | sysv4*MP*) | |
8786 | if test -d /usr/nec ;then | |
8787 | lt_prog_compiler_pic='-Kconform_pic' | |
8788 | lt_prog_compiler_static='-Bstatic' | |
8789 | fi | |
8790 | ;; | |
8791 | ||
8792 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8793 | lt_prog_compiler_wl='-Wl,' | |
8794 | lt_prog_compiler_pic='-KPIC' | |
8795 | lt_prog_compiler_static='-Bstatic' | |
8796 | ;; | |
8797 | ||
8798 | unicos*) | |
8799 | lt_prog_compiler_wl='-Wl,' | |
8800 | lt_prog_compiler_can_build_shared=no | |
8801 | ;; | |
8802 | ||
8803 | uts4*) | |
8804 | lt_prog_compiler_pic='-pic' | |
8805 | lt_prog_compiler_static='-Bstatic' | |
8806 | ;; | |
8807 | ||
8808 | *) | |
8809 | lt_prog_compiler_can_build_shared=no | |
8810 | ;; | |
8811 | esac | |
8812 | fi | |
8813 | ||
8814 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8815 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | |
8816 | ||
8817 | # | |
8818 | # Check to make sure the PIC flag actually works. | |
8819 | # | |
8820 | if test -n "$lt_prog_compiler_pic"; then | |
8821 | ||
8822 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8823 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | |
b676ea3b | 8824 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
db137867 AC |
8825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8826 | else | |
b676ea3b | 8827 | lt_cv_prog_compiler_pic_works=no |
db137867 AC |
8828 | ac_outfile=conftest.$ac_objext |
8829 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8830 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8831 | # Insert the option either (1) after the last *FLAGS variable, or | |
8832 | # (2) before a word containing "conftest.", or (3) at the end. | |
8833 | # Note that $ac_compile itself does not contain backslashes and begins | |
8834 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8835 | # The option is referenced via a variable to avoid confusing sed. | |
8836 | lt_compile=`echo "$ac_compile" | $SED \ | |
8837 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8838 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8839 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 8840 | (eval echo "\"\$as_me:8840: $lt_compile\"" >&5) |
db137867 AC |
8841 | (eval "$lt_compile" 2>conftest.err) |
8842 | ac_status=$? | |
8843 | cat conftest.err >&5 | |
3202e249 | 8844 | echo "$as_me:8844: \$? = $ac_status" >&5 |
db137867 AC |
8845 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8846 | # The compiler can only warn and ignore the option if not recognized | |
8847 | # So say no if there are warnings other than the usual output. | |
8848 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8849 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8850 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 8851 | lt_cv_prog_compiler_pic_works=yes |
db137867 AC |
8852 | fi |
8853 | fi | |
8854 | $rm conftest* | |
8855 | ||
8856 | fi | |
b676ea3b AC |
8857 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
8858 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } | |
db137867 | 8859 | |
b676ea3b | 8860 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
db137867 AC |
8861 | case $lt_prog_compiler_pic in |
8862 | "" | " "*) ;; | |
8863 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8864 | esac | |
8865 | else | |
8866 | lt_prog_compiler_pic= | |
8867 | lt_prog_compiler_can_build_shared=no | |
8868 | fi | |
8869 | ||
8870 | fi | |
8871 | case $host_os in | |
8872 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8873 | *djgpp*) | |
8874 | lt_prog_compiler_pic= | |
8875 | ;; | |
8876 | *) | |
8877 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8878 | ;; | |
8879 | esac | |
8880 | ||
8881 | # | |
8882 | # Check to make sure the static flag actually works. | |
8883 | # | |
8884 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8885 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8886 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
b676ea3b | 8887 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
db137867 AC |
8888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8889 | else | |
b676ea3b | 8890 | lt_cv_prog_compiler_static_works=no |
db137867 AC |
8891 | save_LDFLAGS="$LDFLAGS" |
8892 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8893 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8894 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8895 | # The linker can only warn and ignore the option if not recognized | |
8896 | # So say no if there are warnings | |
8897 | if test -s conftest.err; then | |
8898 | # Append any errors to the config.log. | |
8899 | cat conftest.err 1>&5 | |
8900 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8901 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8902 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 8903 | lt_cv_prog_compiler_static_works=yes |
db137867 AC |
8904 | fi |
8905 | else | |
b676ea3b | 8906 | lt_cv_prog_compiler_static_works=yes |
db137867 AC |
8907 | fi |
8908 | fi | |
b676ea3b | 8909 | $rm -r conftest* |
db137867 AC |
8910 | LDFLAGS="$save_LDFLAGS" |
8911 | ||
8912 | fi | |
b676ea3b AC |
8913 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
8914 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } | |
db137867 | 8915 | |
b676ea3b | 8916 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
db137867 AC |
8917 | : |
8918 | else | |
8919 | lt_prog_compiler_static= | |
8920 | fi | |
8921 | ||
8922 | ||
8923 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8924 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
8925 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8927 | else | |
8928 | lt_cv_prog_compiler_c_o=no | |
8929 | $rm -r conftest 2>/dev/null | |
8930 | mkdir conftest | |
8931 | cd conftest | |
8932 | mkdir out | |
8933 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8934 | ||
8935 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8936 | # Insert the option either (1) after the last *FLAGS variable, or | |
8937 | # (2) before a word containing "conftest.", or (3) at the end. | |
8938 | # Note that $ac_compile itself does not contain backslashes and begins | |
8939 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8940 | lt_compile=`echo "$ac_compile" | $SED \ | |
8941 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8942 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8943 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 8944 | (eval echo "\"\$as_me:8944: $lt_compile\"" >&5) |
db137867 AC |
8945 | (eval "$lt_compile" 2>out/conftest.err) |
8946 | ac_status=$? | |
8947 | cat out/conftest.err >&5 | |
3202e249 | 8948 | echo "$as_me:8948: \$? = $ac_status" >&5 |
db137867 AC |
8949 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8950 | then | |
8951 | # The compiler can only warn and ignore the option if not recognized | |
8952 | # So say no if there are warnings | |
8953 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8954 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8955 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8956 | lt_cv_prog_compiler_c_o=yes | |
8957 | fi | |
8958 | fi | |
8959 | chmod u+w . 2>&5 | |
8960 | $rm conftest* | |
8961 | # SGI C++ compiler will create directory out/ii_files/ for | |
8962 | # template instantiation | |
8963 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
8964 | $rm out/* && rmdir out | |
8965 | cd .. | |
8966 | rmdir conftest | |
8967 | $rm conftest* | |
8968 | ||
8969 | fi | |
8970 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8971 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
8972 | ||
8973 | ||
8974 | hard_links="nottested" | |
8975 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8976 | # do not overwrite the value of need_locks provided by the user | |
8977 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8978 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
8979 | hard_links=yes | |
8980 | $rm conftest* | |
8981 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8982 | touch conftest.a | |
8983 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8984 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8985 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8986 | echo "${ECHO_T}$hard_links" >&6; } | |
8987 | if test "$hard_links" = no; then | |
8988 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8989 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8990 | need_locks=warn | |
8991 | fi | |
8992 | else | |
8993 | need_locks=no | |
8994 | fi | |
8995 | ||
8996 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8997 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
8998 | ||
8999 | runpath_var= | |
9000 | allow_undefined_flag= | |
9001 | enable_shared_with_static_runtimes=no | |
9002 | archive_cmds= | |
9003 | archive_expsym_cmds= | |
9004 | old_archive_From_new_cmds= | |
9005 | old_archive_from_expsyms_cmds= | |
9006 | export_dynamic_flag_spec= | |
9007 | whole_archive_flag_spec= | |
9008 | thread_safe_flag_spec= | |
9009 | hardcode_libdir_flag_spec= | |
9010 | hardcode_libdir_flag_spec_ld= | |
9011 | hardcode_libdir_separator= | |
9012 | hardcode_direct=no | |
9013 | hardcode_minus_L=no | |
9014 | hardcode_shlibpath_var=unsupported | |
9015 | link_all_deplibs=unknown | |
9016 | hardcode_automatic=no | |
9017 | module_cmds= | |
9018 | module_expsym_cmds= | |
9019 | always_export_symbols=no | |
9020 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9021 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9022 | # included in the symbol list | |
9023 | include_expsyms= | |
9024 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9025 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9026 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9027 | # as well as any symbol that contains `d'. | |
b676ea3b | 9028 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
db137867 AC |
9029 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9030 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9031 | # the symbol is explicitly referenced. Since portable code cannot | |
9032 | # rely on this symbol name, it's probably fine to never include it in | |
9033 | # preloaded symbol tables. | |
b676ea3b | 9034 | # Exclude shared library initialization/finalization symbols. |
db137867 AC |
9035 | extract_expsyms_cmds= |
9036 | # Just being paranoid about ensuring that cc_basename is set. | |
9037 | for cc_temp in $compiler""; do | |
9038 | case $cc_temp in | |
9039 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9040 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9041 | \-*) ;; | |
9042 | *) break;; | |
9043 | esac | |
9044 | done | |
9045 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9046 | ||
9047 | case $host_os in | |
9048 | cygwin* | mingw* | pw32*) | |
9049 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9050 | # When not using gcc, we currently assume that we are using | |
9051 | # Microsoft Visual C++. | |
9052 | if test "$GCC" != yes; then | |
9053 | with_gnu_ld=no | |
9054 | fi | |
9055 | ;; | |
9056 | interix*) | |
9057 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9058 | with_gnu_ld=yes | |
9059 | ;; | |
9060 | openbsd*) | |
9061 | with_gnu_ld=no | |
9062 | ;; | |
9063 | esac | |
9064 | ||
9065 | ld_shlibs=yes | |
9066 | if test "$with_gnu_ld" = yes; then | |
9067 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9068 | wlarc='${wl}' | |
9069 | ||
9070 | # Set some defaults for GNU ld with shared library support. These | |
9071 | # are reset later if shared libraries are not supported. Putting them | |
9072 | # here allows them to be overridden if necessary. | |
9073 | runpath_var=LD_RUN_PATH | |
9074 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
9075 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9076 | # ancient GNU ld didn't support --whole-archive et. al. | |
9077 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
9078 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9079 | else | |
9080 | whole_archive_flag_spec= | |
9081 | fi | |
9082 | supports_anon_versioning=no | |
9083 | case `$LD -v 2>/dev/null` in | |
9084 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9085 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9086 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9087 | *\ 2.11.*) ;; # other 2.11 versions | |
9088 | *) supports_anon_versioning=yes ;; | |
9089 | esac | |
9090 | ||
9091 | # See if GNU ld supports shared libraries. | |
9092 | case $host_os in | |
b676ea3b | 9093 | aix[3-9]*) |
db137867 AC |
9094 | # On AIX/PPC, the GNU linker is very broken |
9095 | if test "$host_cpu" != ia64; then | |
9096 | ld_shlibs=no | |
9097 | cat <<EOF 1>&2 | |
9098 | ||
9099 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
9100 | *** to be unable to reliably create shared libraries on AIX. | |
9101 | *** Therefore, libtool is disabling shared libraries support. If you | |
9102 | *** really care for shared libraries, you may want to modify your PATH | |
9103 | *** so that a non-GNU linker is found, and then restart. | |
9104 | ||
9105 | EOF | |
9106 | fi | |
9107 | ;; | |
9108 | ||
9109 | amigaos*) | |
9110 | 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)' | |
9111 | hardcode_libdir_flag_spec='-L$libdir' | |
9112 | hardcode_minus_L=yes | |
9113 | ||
9114 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
9115 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
9116 | # to version 4, is to share data among multiple programs linked | |
9117 | # with the same dynamic library. Since this doesn't match the | |
9118 | # behavior of shared libraries on other platforms, we can't use | |
9119 | # them. | |
9120 | ld_shlibs=no | |
9121 | ;; | |
9122 | ||
9123 | beos*) | |
9124 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9125 | allow_undefined_flag=unsupported | |
9126 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9127 | # support --undefined. This deserves some investigation. FIXME | |
9128 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9129 | else | |
9130 | ld_shlibs=no | |
9131 | fi | |
9132 | ;; | |
9133 | ||
9134 | cygwin* | mingw* | pw32*) | |
9135 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9136 | # as there is no search path for DLLs. | |
9137 | hardcode_libdir_flag_spec='-L$libdir' | |
9138 | allow_undefined_flag=unsupported | |
9139 | always_export_symbols=no | |
9140 | enable_shared_with_static_runtimes=yes | |
9141 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9142 | ||
9143 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
9144 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9145 | # If the export-symbols file already is a .def file (1st line | |
9146 | # is EXPORTS), use it as is; otherwise, prepend... | |
9147 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9148 | cp $export_symbols $output_objdir/$soname.def; | |
9149 | else | |
9150 | echo EXPORTS > $output_objdir/$soname.def; | |
9151 | cat $export_symbols >> $output_objdir/$soname.def; | |
9152 | fi~ | |
9153 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9154 | else | |
9155 | ld_shlibs=no | |
9156 | fi | |
9157 | ;; | |
9158 | ||
9159 | interix[3-9]*) | |
9160 | hardcode_direct=no | |
9161 | hardcode_shlibpath_var=no | |
9162 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9163 | export_dynamic_flag_spec='${wl}-E' | |
9164 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9165 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9166 | # default) and relocated if they conflict, which is a slow very memory | |
9167 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9168 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9169 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9170 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9171 | 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' | |
9172 | ;; | |
9173 | ||
9174 | gnu* | linux* | k*bsd*-gnu) | |
9175 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9176 | tmp_addflag= | |
9177 | case $cc_basename,$host_cpu in | |
9178 | pgcc*) # Portland Group C compiler | |
9179 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
9180 | tmp_addflag=' $pic_flag' | |
9181 | ;; | |
9182 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
9183 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
9184 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9185 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9186 | tmp_addflag=' -i_dynamic' ;; | |
9187 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9188 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9189 | ifc* | ifort*) # Intel Fortran compiler | |
9190 | tmp_addflag=' -nofor_main' ;; | |
9191 | esac | |
9192 | case `$CC -V 2>&1 | sed 5q` in | |
9193 | *Sun\ C*) # Sun C 5.9 | |
9194 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
9195 | tmp_sharedflag='-G' ;; | |
9196 | *Sun\ F*) # Sun Fortran 8.3 | |
9197 | tmp_sharedflag='-G' ;; | |
9198 | *) | |
9199 | tmp_sharedflag='-shared' ;; | |
9200 | esac | |
9201 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9202 | ||
9203 | if test $supports_anon_versioning = yes; then | |
9204 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
9205 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9206 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9207 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9208 | fi | |
9209 | link_all_deplibs=no | |
9210 | else | |
9211 | ld_shlibs=no | |
9212 | fi | |
9213 | ;; | |
9214 | ||
9215 | netbsd* | netbsdelf*-gnu) | |
9216 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
9217 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9218 | wlarc= | |
9219 | else | |
9220 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9221 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9222 | fi | |
9223 | ;; | |
9224 | ||
9225 | solaris*) | |
9226 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
9227 | ld_shlibs=no | |
9228 | cat <<EOF 1>&2 | |
9229 | ||
9230 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9231 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9232 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9233 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9234 | *** your PATH or compiler configuration so that the native linker is | |
9235 | *** used, and then restart. | |
9236 | ||
9237 | EOF | |
9238 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9239 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9240 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9241 | else | |
9242 | ld_shlibs=no | |
9243 | fi | |
9244 | ;; | |
9245 | ||
9246 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9247 | case `$LD -v 2>&1` in | |
9248 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9249 | ld_shlibs=no | |
9250 | cat <<_LT_EOF 1>&2 | |
9251 | ||
9252 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9253 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9254 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9255 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9256 | *** your PATH or compiler configuration so that the native linker is | |
9257 | *** used, and then restart. | |
9258 | ||
9259 | _LT_EOF | |
9260 | ;; | |
9261 | *) | |
9262 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9263 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
9264 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
9265 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
9266 | else | |
9267 | ld_shlibs=no | |
9268 | fi | |
9269 | ;; | |
9270 | esac | |
9271 | ;; | |
9272 | ||
9273 | sunos4*) | |
9274 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9275 | wlarc= | |
9276 | hardcode_direct=yes | |
9277 | hardcode_shlibpath_var=no | |
9278 | ;; | |
9279 | ||
9280 | *) | |
9281 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9282 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9283 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9284 | else | |
9285 | ld_shlibs=no | |
9286 | fi | |
9287 | ;; | |
9288 | esac | |
9289 | ||
9290 | if test "$ld_shlibs" = no; then | |
9291 | runpath_var= | |
9292 | hardcode_libdir_flag_spec= | |
9293 | export_dynamic_flag_spec= | |
9294 | whole_archive_flag_spec= | |
9295 | fi | |
9296 | else | |
9297 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9298 | case $host_os in | |
9299 | aix3*) | |
9300 | allow_undefined_flag=unsupported | |
9301 | always_export_symbols=yes | |
9302 | 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' | |
9303 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9304 | # are no directories specified by -L. | |
9305 | hardcode_minus_L=yes | |
9306 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9307 | # Neither direct hardcoding nor static linking is supported with a | |
9308 | # broken collect2. | |
9309 | hardcode_direct=unsupported | |
9310 | fi | |
9311 | ;; | |
9312 | ||
b676ea3b | 9313 | aix[4-9]*) |
db137867 AC |
9314 | if test "$host_cpu" = ia64; then |
9315 | # On IA64, the linker does run time linking by default, so we don't | |
9316 | # have to do anything special. | |
9317 | aix_use_runtimelinking=no | |
9318 | exp_sym_flag='-Bexport' | |
9319 | no_entry_flag="" | |
9320 | else | |
9321 | # If we're using GNU nm, then we don't want the "-C" option. | |
9322 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9323 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
9324 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
9325 | else | |
9326 | 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' | |
9327 | fi | |
9328 | aix_use_runtimelinking=no | |
9329 | ||
9330 | # Test if we are trying to use run time linking or normal | |
9331 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9332 | # need to do runtime linking. | |
b676ea3b | 9333 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 AC |
9334 | for ld_flag in $LDFLAGS; do |
9335 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9336 | aix_use_runtimelinking=yes | |
9337 | break | |
9338 | fi | |
9339 | done | |
9340 | ;; | |
9341 | esac | |
9342 | ||
9343 | exp_sym_flag='-bexport' | |
9344 | no_entry_flag='-bnoentry' | |
9345 | fi | |
9346 | ||
9347 | # When large executables or shared objects are built, AIX ld can | |
9348 | # have problems creating the table of contents. If linking a library | |
9349 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9350 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9351 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9352 | ||
9353 | archive_cmds='' | |
9354 | hardcode_direct=yes | |
9355 | hardcode_libdir_separator=':' | |
9356 | link_all_deplibs=yes | |
9357 | ||
9358 | if test "$GCC" = yes; then | |
9359 | case $host_os in aix4.[012]|aix4.[012].*) | |
9360 | # We only want to do this on AIX 4.2 and lower, the check | |
9361 | # below for broken collect2 doesn't work under 4.3+ | |
9362 | collect2name=`${CC} -print-prog-name=collect2` | |
9363 | if test -f "$collect2name" && \ | |
9364 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
9365 | then | |
9366 | # We have reworked collect2 | |
9367 | : | |
9368 | else | |
9369 | # We have old collect2 | |
9370 | hardcode_direct=unsupported | |
9371 | # It fails to find uninstalled libraries when the uninstalled | |
9372 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9373 | # to unsupported forces relinking | |
9374 | hardcode_minus_L=yes | |
9375 | hardcode_libdir_flag_spec='-L$libdir' | |
9376 | hardcode_libdir_separator= | |
9377 | fi | |
9378 | ;; | |
9379 | esac | |
9380 | shared_flag='-shared' | |
9381 | if test "$aix_use_runtimelinking" = yes; then | |
9382 | shared_flag="$shared_flag "'${wl}-G' | |
9383 | fi | |
9384 | else | |
9385 | # not using gcc | |
9386 | if test "$host_cpu" = ia64; then | |
9387 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9388 | # chokes on -Wl,-G. The following line is correct: | |
9389 | shared_flag='-G' | |
9390 | else | |
9391 | if test "$aix_use_runtimelinking" = yes; then | |
9392 | shared_flag='${wl}-G' | |
9393 | else | |
9394 | shared_flag='${wl}-bM:SRE' | |
9395 | fi | |
9396 | fi | |
9397 | fi | |
9398 | ||
9399 | # It seems that -bexpall does not export symbols beginning with | |
9400 | # underscore (_), so it is better to generate a list of symbols to export. | |
9401 | always_export_symbols=yes | |
9402 | if test "$aix_use_runtimelinking" = yes; then | |
9403 | # Warning - without using the other runtime loading flags (-brtl), | |
9404 | # -berok will link without error, but may produce a broken library. | |
9405 | allow_undefined_flag='-berok' | |
9406 | # Determine the default libpath from the value encoded in an empty executable. | |
9407 | cat >conftest.$ac_ext <<_ACEOF | |
9408 | /* confdefs.h. */ | |
9409 | _ACEOF | |
9410 | cat confdefs.h >>conftest.$ac_ext | |
9411 | cat >>conftest.$ac_ext <<_ACEOF | |
9412 | /* end confdefs.h. */ | |
9413 | ||
9414 | int | |
9415 | main () | |
9416 | { | |
9417 | ||
9418 | ; | |
9419 | return 0; | |
9420 | } | |
9421 | _ACEOF | |
9422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9423 | if { (ac_try="$ac_link" | |
9424 | case "(($ac_try" in | |
9425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9426 | *) ac_try_echo=$ac_try;; | |
9427 | esac | |
9428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9429 | (eval "$ac_link") 2>conftest.er1 | |
9430 | ac_status=$? | |
9431 | grep -v '^ *+' conftest.er1 >conftest.err | |
9432 | rm -f conftest.er1 | |
9433 | cat conftest.err >&5 | |
9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9435 | (exit $ac_status); } && { | |
9436 | test -z "$ac_c_werror_flag" || | |
9437 | test ! -s conftest.err | |
9438 | } && test -s conftest$ac_exeext && | |
9439 | $as_test_x conftest$ac_exeext; then | |
9440 | ||
9441 | lt_aix_libpath_sed=' | |
9442 | /Import File Strings/,/^$/ { | |
9443 | /^0/ { | |
9444 | s/^0 *\(.*\)$/\1/ | |
9445 | p | |
9446 | } | |
9447 | }' | |
9448 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9449 | # Check for a 64-bit object if we didn't find anything. | |
9450 | if test -z "$aix_libpath"; then | |
9451 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9452 | fi | |
9453 | else | |
9454 | echo "$as_me: failed program was:" >&5 | |
9455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9456 | ||
9457 | ||
9458 | fi | |
9459 | ||
9460 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9461 | conftest$ac_exeext conftest.$ac_ext | |
9462 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9463 | ||
9464 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9465 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9466 | else | |
9467 | if test "$host_cpu" = ia64; then | |
9468 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9469 | allow_undefined_flag="-z nodefs" | |
9470 | 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" | |
9471 | else | |
9472 | # Determine the default libpath from the value encoded in an empty executable. | |
9473 | cat >conftest.$ac_ext <<_ACEOF | |
9474 | /* confdefs.h. */ | |
9475 | _ACEOF | |
9476 | cat confdefs.h >>conftest.$ac_ext | |
9477 | cat >>conftest.$ac_ext <<_ACEOF | |
9478 | /* end confdefs.h. */ | |
9479 | ||
9480 | int | |
9481 | main () | |
9482 | { | |
9483 | ||
9484 | ; | |
9485 | return 0; | |
9486 | } | |
9487 | _ACEOF | |
9488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9489 | if { (ac_try="$ac_link" | |
9490 | case "(($ac_try" in | |
9491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9492 | *) ac_try_echo=$ac_try;; | |
9493 | esac | |
9494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9495 | (eval "$ac_link") 2>conftest.er1 | |
9496 | ac_status=$? | |
9497 | grep -v '^ *+' conftest.er1 >conftest.err | |
9498 | rm -f conftest.er1 | |
9499 | cat conftest.err >&5 | |
9500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9501 | (exit $ac_status); } && { | |
9502 | test -z "$ac_c_werror_flag" || | |
9503 | test ! -s conftest.err | |
9504 | } && test -s conftest$ac_exeext && | |
9505 | $as_test_x conftest$ac_exeext; then | |
9506 | ||
9507 | lt_aix_libpath_sed=' | |
9508 | /Import File Strings/,/^$/ { | |
9509 | /^0/ { | |
9510 | s/^0 *\(.*\)$/\1/ | |
9511 | p | |
9512 | } | |
9513 | }' | |
9514 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9515 | # Check for a 64-bit object if we didn't find anything. | |
9516 | if test -z "$aix_libpath"; then | |
9517 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9518 | fi | |
9519 | else | |
9520 | echo "$as_me: failed program was:" >&5 | |
9521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9522 | ||
9523 | ||
9524 | fi | |
9525 | ||
9526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9527 | conftest$ac_exeext conftest.$ac_ext | |
9528 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9529 | ||
9530 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9531 | # Warning - without using the other run time loading flags, | |
9532 | # -berok will link without error, but may produce a broken library. | |
9533 | no_undefined_flag=' ${wl}-bernotok' | |
9534 | allow_undefined_flag=' ${wl}-berok' | |
9535 | # Exported symbols can be pulled into shared objects from archives | |
9536 | whole_archive_flag_spec='$convenience' | |
9537 | archive_cmds_need_lc=yes | |
9538 | # This is similar to how AIX traditionally builds its shared libraries. | |
9539 | 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' | |
9540 | fi | |
9541 | fi | |
9542 | ;; | |
9543 | ||
9544 | amigaos*) | |
9545 | 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)' | |
9546 | hardcode_libdir_flag_spec='-L$libdir' | |
9547 | hardcode_minus_L=yes | |
9548 | # see comment about different semantics on the GNU ld section | |
9549 | ld_shlibs=no | |
9550 | ;; | |
9551 | ||
9552 | bsdi[45]*) | |
9553 | export_dynamic_flag_spec=-rdynamic | |
9554 | ;; | |
9555 | ||
9556 | cygwin* | mingw* | pw32*) | |
9557 | # When not using gcc, we currently assume that we are using | |
9558 | # Microsoft Visual C++. | |
9559 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9560 | # no search path for DLLs. | |
9561 | hardcode_libdir_flag_spec=' ' | |
9562 | allow_undefined_flag=unsupported | |
9563 | # Tell ltmain to make .lib files, not .a files. | |
9564 | libext=lib | |
9565 | # Tell ltmain to make .dll files, not .so files. | |
9566 | shrext_cmds=".dll" | |
9567 | # FIXME: Setting linknames here is a bad hack. | |
9568 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9569 | # The linker will automatically build a .lib file if we build a DLL. | |
9570 | old_archive_From_new_cmds='true' | |
9571 | # FIXME: Should let the user specify the lib program. | |
9572 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9573 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9574 | enable_shared_with_static_runtimes=yes | |
9575 | ;; | |
9576 | ||
9577 | darwin* | rhapsody*) | |
9578 | case $host_os in | |
9579 | rhapsody* | darwin1.[012]) | |
9580 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
9581 | ;; | |
9582 | *) # Darwin 1.3 on | |
9583 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
9584 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
9585 | else | |
9586 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
9587 | 10.[012]) | |
9588 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
9589 | ;; | |
9590 | 10.*) | |
9591 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
9592 | ;; | |
9593 | esac | |
9594 | fi | |
9595 | ;; | |
9596 | esac | |
9597 | archive_cmds_need_lc=no | |
9598 | hardcode_direct=no | |
9599 | hardcode_automatic=yes | |
9600 | hardcode_shlibpath_var=unsupported | |
9601 | whole_archive_flag_spec='' | |
9602 | link_all_deplibs=yes | |
9603 | if test "$GCC" = yes ; then | |
9604 | output_verbose_link_cmd='echo' | |
b676ea3b AC |
9605 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9606 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9607 | 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}" | |
9608 | 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}" | |
db137867 AC |
9609 | else |
9610 | case $cc_basename in | |
9611 | xlc*) | |
9612 | output_verbose_link_cmd='echo' | |
9613 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' | |
9614 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
9615 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
9616 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9617 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9618 | ;; | |
9619 | *) | |
9620 | ld_shlibs=no | |
9621 | ;; | |
9622 | esac | |
9623 | fi | |
9624 | ;; | |
9625 | ||
9626 | dgux*) | |
9627 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9628 | hardcode_libdir_flag_spec='-L$libdir' | |
9629 | hardcode_shlibpath_var=no | |
9630 | ;; | |
9631 | ||
9632 | freebsd1*) | |
9633 | ld_shlibs=no | |
9634 | ;; | |
9635 | ||
9636 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9637 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9638 | # does not break anything, and helps significantly (at the cost of a little | |
9639 | # extra space). | |
9640 | freebsd2.2*) | |
9641 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9642 | hardcode_libdir_flag_spec='-R$libdir' | |
9643 | hardcode_direct=yes | |
9644 | hardcode_shlibpath_var=no | |
9645 | ;; | |
9646 | ||
9647 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9648 | freebsd2*) | |
9649 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9650 | hardcode_direct=yes | |
9651 | hardcode_minus_L=yes | |
9652 | hardcode_shlibpath_var=no | |
9653 | ;; | |
9654 | ||
9655 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9656 | freebsd* | dragonfly*) | |
9657 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9658 | hardcode_libdir_flag_spec='-R$libdir' | |
9659 | hardcode_direct=yes | |
9660 | hardcode_shlibpath_var=no | |
9661 | ;; | |
9662 | ||
9663 | hpux9*) | |
9664 | if test "$GCC" = yes; then | |
9665 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9666 | else | |
9667 | 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' | |
9668 | fi | |
9669 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9670 | hardcode_libdir_separator=: | |
9671 | hardcode_direct=yes | |
9672 | ||
9673 | # hardcode_minus_L: Not really in the search PATH, | |
9674 | # but as the default location of the library. | |
9675 | hardcode_minus_L=yes | |
9676 | export_dynamic_flag_spec='${wl}-E' | |
9677 | ;; | |
9678 | ||
9679 | hpux10*) | |
9680 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9681 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9682 | else | |
9683 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9684 | fi | |
9685 | if test "$with_gnu_ld" = no; then | |
9686 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9687 | hardcode_libdir_separator=: | |
9688 | ||
9689 | hardcode_direct=yes | |
9690 | export_dynamic_flag_spec='${wl}-E' | |
9691 | ||
9692 | # hardcode_minus_L: Not really in the search PATH, | |
9693 | # but as the default location of the library. | |
9694 | hardcode_minus_L=yes | |
9695 | fi | |
9696 | ;; | |
9697 | ||
9698 | hpux11*) | |
9699 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9700 | case $host_cpu in | |
9701 | hppa*64*) | |
9702 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9703 | ;; | |
9704 | ia64*) | |
9705 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9706 | ;; | |
9707 | *) | |
9708 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9709 | ;; | |
9710 | esac | |
9711 | else | |
9712 | case $host_cpu in | |
9713 | hppa*64*) | |
9714 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9715 | ;; | |
9716 | ia64*) | |
9717 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9718 | ;; | |
9719 | *) | |
9720 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9721 | ;; | |
9722 | esac | |
9723 | fi | |
9724 | if test "$with_gnu_ld" = no; then | |
9725 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9726 | hardcode_libdir_separator=: | |
9727 | ||
9728 | case $host_cpu in | |
9729 | hppa*64*|ia64*) | |
9730 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9731 | hardcode_direct=no | |
9732 | hardcode_shlibpath_var=no | |
9733 | ;; | |
9734 | *) | |
9735 | hardcode_direct=yes | |
9736 | export_dynamic_flag_spec='${wl}-E' | |
9737 | ||
9738 | # hardcode_minus_L: Not really in the search PATH, | |
9739 | # but as the default location of the library. | |
9740 | hardcode_minus_L=yes | |
9741 | ;; | |
9742 | esac | |
9743 | fi | |
9744 | ;; | |
9745 | ||
9746 | irix5* | irix6* | nonstopux*) | |
9747 | if test "$GCC" = yes; then | |
9748 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9749 | else | |
9750 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
9751 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9752 | fi | |
9753 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9754 | hardcode_libdir_separator=: | |
9755 | link_all_deplibs=yes | |
9756 | ;; | |
9757 | ||
9758 | netbsd* | netbsdelf*-gnu) | |
9759 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
9760 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9761 | else | |
9762 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9763 | fi | |
9764 | hardcode_libdir_flag_spec='-R$libdir' | |
9765 | hardcode_direct=yes | |
9766 | hardcode_shlibpath_var=no | |
9767 | ;; | |
9768 | ||
9769 | newsos6) | |
9770 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9771 | hardcode_direct=yes | |
9772 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9773 | hardcode_libdir_separator=: | |
9774 | hardcode_shlibpath_var=no | |
9775 | ;; | |
9776 | ||
9777 | openbsd*) | |
9778 | if test -f /usr/libexec/ld.so; then | |
9779 | hardcode_direct=yes | |
9780 | hardcode_shlibpath_var=no | |
9781 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9782 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9783 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9784 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9785 | export_dynamic_flag_spec='${wl}-E' | |
9786 | else | |
9787 | case $host_os in | |
9788 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9789 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9790 | hardcode_libdir_flag_spec='-R$libdir' | |
9791 | ;; | |
9792 | *) | |
9793 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9794 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9795 | ;; | |
9796 | esac | |
9797 | fi | |
9798 | else | |
9799 | ld_shlibs=no | |
9800 | fi | |
9801 | ;; | |
9802 | ||
9803 | os2*) | |
9804 | hardcode_libdir_flag_spec='-L$libdir' | |
9805 | hardcode_minus_L=yes | |
9806 | allow_undefined_flag=unsupported | |
9807 | 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' | |
9808 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9809 | ;; | |
9810 | ||
9811 | osf3*) | |
9812 | if test "$GCC" = yes; then | |
9813 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9814 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9815 | else | |
9816 | allow_undefined_flag=' -expect_unresolved \*' | |
9817 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
9818 | fi | |
9819 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9820 | hardcode_libdir_separator=: | |
9821 | ;; | |
9822 | ||
9823 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9824 | if test "$GCC" = yes; then | |
9825 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9826 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9827 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9828 | else | |
9829 | allow_undefined_flag=' -expect_unresolved \*' | |
9830 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
9831 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
9832 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
9833 | ||
9834 | # Both c and cxx compiler support -rpath directly | |
9835 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9836 | fi | |
9837 | hardcode_libdir_separator=: | |
9838 | ;; | |
9839 | ||
9840 | solaris*) | |
9841 | no_undefined_flag=' -z text' | |
9842 | if test "$GCC" = yes; then | |
9843 | wlarc='${wl}' | |
9844 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9845 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9846 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
9847 | else | |
9848 | wlarc='' | |
9849 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9850 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9851 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
9852 | fi | |
9853 | hardcode_libdir_flag_spec='-R$libdir' | |
9854 | hardcode_shlibpath_var=no | |
9855 | case $host_os in | |
9856 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9857 | *) | |
9858 | # The compiler driver will combine and reorder linker options, | |
9859 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9860 | # but is careful enough not to reorder. | |
9861 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9862 | if test "$GCC" = yes; then | |
9863 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9864 | else | |
9865 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9866 | fi | |
9867 | ;; | |
9868 | esac | |
9869 | link_all_deplibs=yes | |
9870 | ;; | |
9871 | ||
9872 | sunos4*) | |
9873 | if test "x$host_vendor" = xsequent; then | |
9874 | # Use $CC to link under sequent, because it throws in some extra .o | |
9875 | # files that make .init and .fini sections work. | |
9876 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9877 | else | |
9878 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9879 | fi | |
9880 | hardcode_libdir_flag_spec='-L$libdir' | |
9881 | hardcode_direct=yes | |
9882 | hardcode_minus_L=yes | |
9883 | hardcode_shlibpath_var=no | |
9884 | ;; | |
9885 | ||
9886 | sysv4) | |
9887 | case $host_vendor in | |
9888 | sni) | |
9889 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9890 | hardcode_direct=yes # is this really true??? | |
9891 | ;; | |
9892 | siemens) | |
9893 | ## LD is ld it makes a PLAMLIB | |
9894 | ## CC just makes a GrossModule. | |
9895 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9896 | reload_cmds='$CC -r -o $output$reload_objs' | |
9897 | hardcode_direct=no | |
9898 | ;; | |
9899 | motorola) | |
9900 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9901 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9902 | ;; | |
9903 | esac | |
9904 | runpath_var='LD_RUN_PATH' | |
9905 | hardcode_shlibpath_var=no | |
9906 | ;; | |
9907 | ||
9908 | sysv4.3*) | |
9909 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9910 | hardcode_shlibpath_var=no | |
9911 | export_dynamic_flag_spec='-Bexport' | |
9912 | ;; | |
9913 | ||
9914 | sysv4*MP*) | |
9915 | if test -d /usr/nec; then | |
9916 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9917 | hardcode_shlibpath_var=no | |
9918 | runpath_var=LD_RUN_PATH | |
9919 | hardcode_runpath_var=yes | |
9920 | ld_shlibs=yes | |
9921 | fi | |
9922 | ;; | |
9923 | ||
9924 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9925 | no_undefined_flag='${wl}-z,text' | |
9926 | archive_cmds_need_lc=no | |
9927 | hardcode_shlibpath_var=no | |
9928 | runpath_var='LD_RUN_PATH' | |
9929 | ||
9930 | if test "$GCC" = yes; then | |
9931 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9932 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9933 | else | |
9934 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9935 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9936 | fi | |
9937 | ;; | |
9938 | ||
9939 | sysv5* | sco3.2v5* | sco5v6*) | |
9940 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9941 | # link with -lc, and that would cause any symbols used from libc to | |
9942 | # always be unresolved, which means just about no library would | |
9943 | # ever link correctly. If we're not using GNU ld we use -z text | |
9944 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9945 | # as -z defs. | |
9946 | no_undefined_flag='${wl}-z,text' | |
9947 | allow_undefined_flag='${wl}-z,nodefs' | |
9948 | archive_cmds_need_lc=no | |
9949 | hardcode_shlibpath_var=no | |
9950 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
9951 | hardcode_libdir_separator=':' | |
9952 | link_all_deplibs=yes | |
9953 | export_dynamic_flag_spec='${wl}-Bexport' | |
9954 | runpath_var='LD_RUN_PATH' | |
9955 | ||
9956 | if test "$GCC" = yes; then | |
9957 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9958 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9959 | else | |
9960 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9961 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9962 | fi | |
9963 | ;; | |
9964 | ||
9965 | uts4*) | |
9966 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9967 | hardcode_libdir_flag_spec='-L$libdir' | |
9968 | hardcode_shlibpath_var=no | |
9969 | ;; | |
9970 | ||
9971 | *) | |
9972 | ld_shlibs=no | |
9973 | ;; | |
9974 | esac | |
9975 | fi | |
9976 | ||
9977 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
9978 | echo "${ECHO_T}$ld_shlibs" >&6; } | |
9979 | test "$ld_shlibs" = no && can_build_shared=no | |
9980 | ||
9981 | # | |
9982 | # Do we need to explicitly link libc? | |
9983 | # | |
9984 | case "x$archive_cmds_need_lc" in | |
9985 | x|xyes) | |
9986 | # Assume -lc should be added | |
9987 | archive_cmds_need_lc=yes | |
9988 | ||
9989 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9990 | case $archive_cmds in | |
9991 | *'~'*) | |
9992 | # FIXME: we may have to deal with multi-command sequences. | |
9993 | ;; | |
9994 | '$CC '*) | |
9995 | # Test whether the compiler implicitly links with -lc since on some | |
9996 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9997 | # to ld, don't add -lc before -lgcc. | |
9998 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9999 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
10000 | $rm conftest* | |
10001 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10002 | ||
10003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10004 | (eval $ac_compile) 2>&5 | |
10005 | ac_status=$? | |
10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10007 | (exit $ac_status); } 2>conftest.err; then | |
10008 | soname=conftest | |
10009 | lib=conftest | |
10010 | libobjs=conftest.$ac_objext | |
10011 | deplibs= | |
10012 | wl=$lt_prog_compiler_wl | |
10013 | pic_flag=$lt_prog_compiler_pic | |
10014 | compiler_flags=-v | |
10015 | linker_flags=-v | |
10016 | verstring= | |
10017 | output_objdir=. | |
10018 | libname=conftest | |
10019 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10020 | allow_undefined_flag= | |
10021 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
10022 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10023 | ac_status=$? | |
10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10025 | (exit $ac_status); } | |
10026 | then | |
10027 | archive_cmds_need_lc=no | |
10028 | else | |
10029 | archive_cmds_need_lc=yes | |
10030 | fi | |
10031 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10032 | else | |
10033 | cat conftest.err 1>&5 | |
10034 | fi | |
10035 | $rm conftest* | |
10036 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
10037 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | |
10038 | ;; | |
10039 | esac | |
10040 | fi | |
10041 | ;; | |
10042 | esac | |
10043 | ||
10044 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
10045 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
10046 | library_names_spec= | |
10047 | libname_spec='lib$name' | |
10048 | soname_spec= | |
10049 | shrext_cmds=".so" | |
10050 | postinstall_cmds= | |
10051 | postuninstall_cmds= | |
10052 | finish_cmds= | |
10053 | finish_eval= | |
10054 | shlibpath_var= | |
10055 | shlibpath_overrides_runpath=unknown | |
10056 | version_type=none | |
10057 | dynamic_linker="$host_os ld.so" | |
10058 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10059 | ||
10060 | if test "$GCC" = yes; then | |
10061 | case $host_os in | |
10062 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10063 | *) lt_awk_arg="/^libraries:/" ;; | |
10064 | esac | |
10065 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10066 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then | |
10067 | # if the path contains ";" then we assume it to be the separator | |
10068 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10069 | # assumed that no part of a normal pathname contains ";" but that should | |
10070 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10071 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10072 | else | |
10073 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10074 | fi | |
10075 | # Ok, now we have the path, separated by spaces, we can step through it | |
10076 | # and add multilib dir if necessary. | |
10077 | lt_tmp_lt_search_path_spec= | |
10078 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10079 | for lt_sys_path in $lt_search_path_spec; do | |
10080 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10081 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10082 | else | |
10083 | test -d "$lt_sys_path" && \ | |
10084 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10085 | fi | |
10086 | done | |
10087 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' | |
10088 | BEGIN {RS=" "; FS="/|\n";} { | |
10089 | lt_foo=""; | |
10090 | lt_count=0; | |
10091 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10092 | if ($lt_i != "" && $lt_i != ".") { | |
10093 | if ($lt_i == "..") { | |
10094 | lt_count++; | |
10095 | } else { | |
10096 | if (lt_count == 0) { | |
10097 | lt_foo="/" $lt_i lt_foo; | |
10098 | } else { | |
10099 | lt_count--; | |
10100 | } | |
10101 | } | |
10102 | } | |
10103 | } | |
10104 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10105 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10106 | }'` | |
10107 | sys_lib_search_path_spec=`echo $lt_search_path_spec` | |
10108 | else | |
10109 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10110 | fi | |
10111 | need_lib_prefix=unknown | |
10112 | hardcode_into_libs=no | |
10113 | ||
10114 | # when you set need_version to no, make sure it does not cause -set_version | |
10115 | # flags to be left without arguments | |
10116 | need_version=unknown | |
10117 | ||
10118 | case $host_os in | |
10119 | aix3*) | |
10120 | version_type=linux | |
10121 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10122 | shlibpath_var=LIBPATH | |
10123 | ||
10124 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10125 | soname_spec='${libname}${release}${shared_ext}$major' | |
10126 | ;; | |
10127 | ||
b676ea3b | 10128 | aix[4-9]*) |
db137867 AC |
10129 | version_type=linux |
10130 | need_lib_prefix=no | |
10131 | need_version=no | |
10132 | hardcode_into_libs=yes | |
10133 | if test "$host_cpu" = ia64; then | |
10134 | # AIX 5 supports IA64 | |
10135 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10136 | shlibpath_var=LD_LIBRARY_PATH | |
10137 | else | |
10138 | # With GCC up to 2.95.x, collect2 would create an import file | |
10139 | # for dependence libraries. The import file would start with | |
10140 | # the line `#! .'. This would cause the generated library to | |
10141 | # depend on `.', always an invalid library. This was fixed in | |
10142 | # development snapshots of GCC prior to 3.0. | |
10143 | case $host_os in | |
10144 | aix4 | aix4.[01] | aix4.[01].*) | |
10145 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10146 | echo ' yes ' | |
10147 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
10148 | : | |
10149 | else | |
10150 | can_build_shared=no | |
10151 | fi | |
10152 | ;; | |
10153 | esac | |
10154 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10155 | # soname into executable. Probably we can add versioning support to | |
10156 | # collect2, so additional links can be useful in future. | |
10157 | if test "$aix_use_runtimelinking" = yes; then | |
10158 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10159 | # instead of lib<name>.a to let people know that these are not | |
10160 | # typical AIX shared libraries. | |
10161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10162 | else | |
10163 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10164 | # and later when we are not doing run time linking. | |
10165 | library_names_spec='${libname}${release}.a $libname.a' | |
10166 | soname_spec='${libname}${release}${shared_ext}$major' | |
10167 | fi | |
10168 | shlibpath_var=LIBPATH | |
10169 | fi | |
10170 | ;; | |
10171 | ||
10172 | amigaos*) | |
10173 | library_names_spec='$libname.ixlibrary $libname.a' | |
10174 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10175 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
10176 | ;; | |
10177 | ||
10178 | beos*) | |
10179 | library_names_spec='${libname}${shared_ext}' | |
10180 | dynamic_linker="$host_os ld.so" | |
10181 | shlibpath_var=LIBRARY_PATH | |
10182 | ;; | |
10183 | ||
10184 | bsdi[45]*) | |
10185 | version_type=linux | |
10186 | need_version=no | |
10187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10188 | soname_spec='${libname}${release}${shared_ext}$major' | |
10189 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10190 | shlibpath_var=LD_LIBRARY_PATH | |
10191 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10192 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10193 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10194 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10195 | # libtool to hard-code these into programs | |
10196 | ;; | |
10197 | ||
10198 | cygwin* | mingw* | pw32*) | |
10199 | version_type=windows | |
10200 | shrext_cmds=".dll" | |
10201 | need_version=no | |
10202 | need_lib_prefix=no | |
10203 | ||
10204 | case $GCC,$host_os in | |
10205 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
10206 | library_names_spec='$libname.dll.a' | |
10207 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10208 | postinstall_cmds='base_file=`basename \${file}`~ | |
10209 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
10210 | dldir=$destdir/`dirname \$dlpath`~ | |
10211 | test -d \$dldir || mkdir -p \$dldir~ | |
10212 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10213 | chmod a+x \$dldir/$dlname' | |
10214 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10215 | dlpath=$dir/\$dldll~ | |
10216 | $rm \$dlpath' | |
10217 | shlibpath_overrides_runpath=yes | |
10218 | ||
10219 | case $host_os in | |
10220 | cygwin*) | |
10221 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10222 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10223 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10224 | ;; | |
10225 | mingw*) | |
10226 | # MinGW DLLs use traditional 'lib' prefix | |
10227 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10228 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10229 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
10230 | # It is most probably a Windows format PATH printed by | |
10231 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10232 | # path with ; separators, and with drive letters. We can handle the | |
10233 | # drive letters (cygwin fileutils understands them), so leave them, | |
10234 | # especially as we might pass files found there to a mingw objdump, | |
10235 | # which wouldn't understand a cygwinified path. Ahh. | |
10236 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10237 | else | |
10238 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10239 | fi | |
10240 | ;; | |
10241 | pw32*) | |
10242 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10243 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10244 | ;; | |
10245 | esac | |
10246 | ;; | |
10247 | ||
10248 | *) | |
10249 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10250 | ;; | |
10251 | esac | |
10252 | dynamic_linker='Win32 ld.exe' | |
10253 | # FIXME: first we should search . and the directory the executable is in | |
10254 | shlibpath_var=PATH | |
10255 | ;; | |
10256 | ||
10257 | darwin* | rhapsody*) | |
10258 | dynamic_linker="$host_os dyld" | |
10259 | version_type=darwin | |
10260 | need_lib_prefix=no | |
10261 | need_version=no | |
10262 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10263 | soname_spec='${libname}${release}${major}$shared_ext' | |
10264 | shlibpath_overrides_runpath=yes | |
10265 | shlibpath_var=DYLD_LIBRARY_PATH | |
10266 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10267 | ||
10268 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10269 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10270 | ;; | |
10271 | ||
10272 | dgux*) | |
10273 | version_type=linux | |
10274 | need_lib_prefix=no | |
10275 | need_version=no | |
10276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10277 | soname_spec='${libname}${release}${shared_ext}$major' | |
10278 | shlibpath_var=LD_LIBRARY_PATH | |
10279 | ;; | |
10280 | ||
10281 | freebsd1*) | |
10282 | dynamic_linker=no | |
10283 | ;; | |
10284 | ||
10285 | freebsd* | dragonfly*) | |
10286 | # DragonFly does not have aout. When/if they implement a new | |
10287 | # versioning mechanism, adjust this. | |
10288 | if test -x /usr/bin/objformat; then | |
10289 | objformat=`/usr/bin/objformat` | |
10290 | else | |
10291 | case $host_os in | |
10292 | freebsd[123]*) objformat=aout ;; | |
10293 | *) objformat=elf ;; | |
10294 | esac | |
10295 | fi | |
10296 | version_type=freebsd-$objformat | |
10297 | case $version_type in | |
10298 | freebsd-elf*) | |
10299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10300 | need_version=no | |
10301 | need_lib_prefix=no | |
10302 | ;; | |
10303 | freebsd-*) | |
10304 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10305 | need_version=yes | |
10306 | ;; | |
10307 | esac | |
10308 | shlibpath_var=LD_LIBRARY_PATH | |
10309 | case $host_os in | |
10310 | freebsd2*) | |
10311 | shlibpath_overrides_runpath=yes | |
10312 | ;; | |
10313 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10314 | shlibpath_overrides_runpath=yes | |
10315 | hardcode_into_libs=yes | |
10316 | ;; | |
10317 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10318 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10319 | shlibpath_overrides_runpath=no | |
10320 | hardcode_into_libs=yes | |
10321 | ;; | |
10322 | *) # from 4.6 on, and DragonFly | |
10323 | shlibpath_overrides_runpath=yes | |
10324 | hardcode_into_libs=yes | |
10325 | ;; | |
10326 | esac | |
10327 | ;; | |
10328 | ||
10329 | gnu*) | |
10330 | version_type=linux | |
10331 | need_lib_prefix=no | |
10332 | need_version=no | |
10333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10334 | soname_spec='${libname}${release}${shared_ext}$major' | |
10335 | shlibpath_var=LD_LIBRARY_PATH | |
10336 | hardcode_into_libs=yes | |
10337 | ;; | |
10338 | ||
10339 | hpux9* | hpux10* | hpux11*) | |
10340 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10341 | # link against other versions. | |
10342 | version_type=sunos | |
10343 | need_lib_prefix=no | |
10344 | need_version=no | |
10345 | case $host_cpu in | |
10346 | ia64*) | |
10347 | shrext_cmds='.so' | |
10348 | hardcode_into_libs=yes | |
10349 | dynamic_linker="$host_os dld.so" | |
10350 | shlibpath_var=LD_LIBRARY_PATH | |
10351 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10353 | soname_spec='${libname}${release}${shared_ext}$major' | |
10354 | if test "X$HPUX_IA64_MODE" = X32; then | |
10355 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10356 | else | |
10357 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10358 | fi | |
10359 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10360 | ;; | |
10361 | hppa*64*) | |
10362 | shrext_cmds='.sl' | |
10363 | hardcode_into_libs=yes | |
10364 | dynamic_linker="$host_os dld.sl" | |
10365 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10366 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10368 | soname_spec='${libname}${release}${shared_ext}$major' | |
10369 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10370 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10371 | ;; | |
10372 | *) | |
10373 | shrext_cmds='.sl' | |
10374 | dynamic_linker="$host_os dld.sl" | |
10375 | shlibpath_var=SHLIB_PATH | |
10376 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10378 | soname_spec='${libname}${release}${shared_ext}$major' | |
10379 | ;; | |
10380 | esac | |
10381 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10382 | postinstall_cmds='chmod 555 $lib' | |
10383 | ;; | |
10384 | ||
10385 | interix[3-9]*) | |
10386 | version_type=linux | |
10387 | need_lib_prefix=no | |
10388 | need_version=no | |
10389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10390 | soname_spec='${libname}${release}${shared_ext}$major' | |
10391 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10392 | shlibpath_var=LD_LIBRARY_PATH | |
10393 | shlibpath_overrides_runpath=no | |
10394 | hardcode_into_libs=yes | |
10395 | ;; | |
10396 | ||
10397 | irix5* | irix6* | nonstopux*) | |
10398 | case $host_os in | |
10399 | nonstopux*) version_type=nonstopux ;; | |
10400 | *) | |
10401 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10402 | version_type=linux | |
10403 | else | |
10404 | version_type=irix | |
10405 | fi ;; | |
10406 | esac | |
10407 | need_lib_prefix=no | |
10408 | need_version=no | |
10409 | soname_spec='${libname}${release}${shared_ext}$major' | |
10410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10411 | case $host_os in | |
10412 | irix5* | nonstopux*) | |
10413 | libsuff= shlibsuff= | |
10414 | ;; | |
10415 | *) | |
10416 | case $LD in # libtool.m4 will add one of these switches to LD | |
10417 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10418 | libsuff= shlibsuff= libmagic=32-bit;; | |
10419 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10420 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10421 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10422 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10423 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10424 | esac | |
10425 | ;; | |
10426 | esac | |
10427 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10428 | shlibpath_overrides_runpath=no | |
10429 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10430 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10431 | hardcode_into_libs=yes | |
10432 | ;; | |
10433 | ||
10434 | # No shared lib support for Linux oldld, aout, or coff. | |
10435 | linux*oldld* | linux*aout* | linux*coff*) | |
10436 | dynamic_linker=no | |
10437 | ;; | |
10438 | ||
10439 | # This must be Linux ELF. | |
10440 | linux* | k*bsd*-gnu) | |
10441 | version_type=linux | |
10442 | need_lib_prefix=no | |
10443 | need_version=no | |
10444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10445 | soname_spec='${libname}${release}${shared_ext}$major' | |
10446 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10447 | shlibpath_var=LD_LIBRARY_PATH | |
10448 | shlibpath_overrides_runpath=no | |
10449 | # This implies no fast_install, which is unacceptable. | |
10450 | # Some rework will be needed to allow for fast_install | |
10451 | # before this can be enabled. | |
10452 | hardcode_into_libs=yes | |
10453 | ||
10454 | # Append ld.so.conf contents to the search path | |
10455 | if test -f /etc/ld.so.conf; then | |
10456 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
10457 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10458 | fi | |
10459 | ||
10460 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10461 | # powerpc, because MkLinux only supported shared libraries with the | |
10462 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10463 | # most powerpc-linux boxes support dynamic linking these days and | |
10464 | # people can always --disable-shared, the test was removed, and we | |
10465 | # assume the GNU/Linux dynamic linker is in use. | |
10466 | dynamic_linker='GNU/Linux ld.so' | |
10467 | ;; | |
10468 | ||
10469 | netbsdelf*-gnu) | |
10470 | version_type=linux | |
10471 | need_lib_prefix=no | |
10472 | need_version=no | |
10473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10474 | soname_spec='${libname}${release}${shared_ext}$major' | |
10475 | shlibpath_var=LD_LIBRARY_PATH | |
10476 | shlibpath_overrides_runpath=no | |
10477 | hardcode_into_libs=yes | |
10478 | dynamic_linker='NetBSD ld.elf_so' | |
10479 | ;; | |
10480 | ||
10481 | netbsd*) | |
10482 | version_type=sunos | |
10483 | need_lib_prefix=no | |
10484 | need_version=no | |
10485 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10487 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10488 | dynamic_linker='NetBSD (a.out) ld.so' | |
10489 | else | |
10490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10491 | soname_spec='${libname}${release}${shared_ext}$major' | |
10492 | dynamic_linker='NetBSD ld.elf_so' | |
10493 | fi | |
10494 | shlibpath_var=LD_LIBRARY_PATH | |
10495 | shlibpath_overrides_runpath=yes | |
10496 | hardcode_into_libs=yes | |
10497 | ;; | |
10498 | ||
10499 | newsos6) | |
10500 | version_type=linux | |
10501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10502 | shlibpath_var=LD_LIBRARY_PATH | |
10503 | shlibpath_overrides_runpath=yes | |
10504 | ;; | |
10505 | ||
10506 | nto-qnx*) | |
10507 | version_type=linux | |
10508 | need_lib_prefix=no | |
10509 | need_version=no | |
10510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10511 | soname_spec='${libname}${release}${shared_ext}$major' | |
10512 | shlibpath_var=LD_LIBRARY_PATH | |
10513 | shlibpath_overrides_runpath=yes | |
10514 | ;; | |
10515 | ||
10516 | openbsd*) | |
10517 | version_type=sunos | |
10518 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10519 | need_lib_prefix=no | |
10520 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10521 | case $host_os in | |
10522 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10523 | *) need_version=no ;; | |
10524 | esac | |
10525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10526 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10527 | shlibpath_var=LD_LIBRARY_PATH | |
10528 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10529 | case $host_os in | |
10530 | openbsd2.[89] | openbsd2.[89].*) | |
10531 | shlibpath_overrides_runpath=no | |
10532 | ;; | |
10533 | *) | |
10534 | shlibpath_overrides_runpath=yes | |
10535 | ;; | |
10536 | esac | |
10537 | else | |
10538 | shlibpath_overrides_runpath=yes | |
10539 | fi | |
10540 | ;; | |
10541 | ||
10542 | os2*) | |
10543 | libname_spec='$name' | |
10544 | shrext_cmds=".dll" | |
10545 | need_lib_prefix=no | |
10546 | library_names_spec='$libname${shared_ext} $libname.a' | |
10547 | dynamic_linker='OS/2 ld.exe' | |
10548 | shlibpath_var=LIBPATH | |
10549 | ;; | |
10550 | ||
10551 | osf3* | osf4* | osf5*) | |
10552 | version_type=osf | |
10553 | need_lib_prefix=no | |
10554 | need_version=no | |
10555 | soname_spec='${libname}${release}${shared_ext}$major' | |
10556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10557 | shlibpath_var=LD_LIBRARY_PATH | |
10558 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10559 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10560 | ;; | |
10561 | ||
10562 | rdos*) | |
10563 | dynamic_linker=no | |
10564 | ;; | |
10565 | ||
10566 | solaris*) | |
10567 | version_type=linux | |
10568 | need_lib_prefix=no | |
10569 | need_version=no | |
10570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10571 | soname_spec='${libname}${release}${shared_ext}$major' | |
10572 | shlibpath_var=LD_LIBRARY_PATH | |
10573 | shlibpath_overrides_runpath=yes | |
10574 | hardcode_into_libs=yes | |
10575 | # ldd complains unless libraries are executable | |
10576 | postinstall_cmds='chmod +x $lib' | |
10577 | ;; | |
10578 | ||
10579 | sunos4*) | |
10580 | version_type=sunos | |
10581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10582 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10583 | shlibpath_var=LD_LIBRARY_PATH | |
10584 | shlibpath_overrides_runpath=yes | |
10585 | if test "$with_gnu_ld" = yes; then | |
10586 | need_lib_prefix=no | |
10587 | fi | |
10588 | need_version=yes | |
10589 | ;; | |
10590 | ||
10591 | sysv4 | sysv4.3*) | |
10592 | version_type=linux | |
10593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10594 | soname_spec='${libname}${release}${shared_ext}$major' | |
10595 | shlibpath_var=LD_LIBRARY_PATH | |
10596 | case $host_vendor in | |
10597 | sni) | |
10598 | shlibpath_overrides_runpath=no | |
10599 | need_lib_prefix=no | |
10600 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10601 | runpath_var=LD_RUN_PATH | |
10602 | ;; | |
10603 | siemens) | |
10604 | need_lib_prefix=no | |
10605 | ;; | |
10606 | motorola) | |
10607 | need_lib_prefix=no | |
10608 | need_version=no | |
10609 | shlibpath_overrides_runpath=no | |
10610 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10611 | ;; | |
10612 | esac | |
10613 | ;; | |
10614 | ||
10615 | sysv4*MP*) | |
10616 | if test -d /usr/nec ;then | |
10617 | version_type=linux | |
10618 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10619 | soname_spec='$libname${shared_ext}.$major' | |
10620 | shlibpath_var=LD_LIBRARY_PATH | |
10621 | fi | |
10622 | ;; | |
10623 | ||
10624 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10625 | version_type=freebsd-elf | |
10626 | need_lib_prefix=no | |
10627 | need_version=no | |
10628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10629 | soname_spec='${libname}${release}${shared_ext}$major' | |
10630 | shlibpath_var=LD_LIBRARY_PATH | |
10631 | hardcode_into_libs=yes | |
10632 | if test "$with_gnu_ld" = yes; then | |
10633 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10634 | shlibpath_overrides_runpath=no | |
10635 | else | |
10636 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10637 | shlibpath_overrides_runpath=yes | |
10638 | case $host_os in | |
10639 | sco3.2v5*) | |
10640 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10641 | ;; | |
10642 | esac | |
10643 | fi | |
10644 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10645 | ;; | |
10646 | ||
10647 | uts4*) | |
10648 | version_type=linux | |
10649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10650 | soname_spec='${libname}${release}${shared_ext}$major' | |
10651 | shlibpath_var=LD_LIBRARY_PATH | |
10652 | ;; | |
10653 | ||
10654 | *) | |
10655 | dynamic_linker=no | |
10656 | ;; | |
10657 | esac | |
10658 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10659 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
10660 | test "$dynamic_linker" = no && can_build_shared=no | |
10661 | ||
b676ea3b AC |
10662 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10664 | else | |
10665 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" | |
10666 | fi | |
10667 | ||
10668 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10669 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10671 | else | |
10672 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" | |
10673 | fi | |
10674 | ||
10675 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10676 | ||
db137867 AC |
10677 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10678 | if test "$GCC" = yes; then | |
10679 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10680 | fi | |
10681 | ||
10682 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10683 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
10684 | hardcode_action= | |
10685 | if test -n "$hardcode_libdir_flag_spec" || \ | |
10686 | test -n "$runpath_var" || \ | |
10687 | test "X$hardcode_automatic" = "Xyes" ; then | |
10688 | ||
10689 | # We can hardcode non-existant directories. | |
10690 | if test "$hardcode_direct" != no && | |
10691 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10692 | # have to relink, otherwise we might link with an installed library | |
10693 | # when we should be linking with a yet-to-be-installed one | |
10694 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10695 | test "$hardcode_minus_L" != no; then | |
10696 | # Linking always hardcodes the temporary library directory. | |
10697 | hardcode_action=relink | |
10698 | else | |
10699 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10700 | hardcode_action=immediate | |
10701 | fi | |
10702 | else | |
10703 | # We cannot hardcode anything, or else we can only hardcode existing | |
10704 | # directories. | |
10705 | hardcode_action=unsupported | |
10706 | fi | |
10707 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10708 | echo "${ECHO_T}$hardcode_action" >&6; } | |
10709 | ||
10710 | if test "$hardcode_action" = relink; then | |
10711 | # Fast installation is not supported | |
10712 | enable_fast_install=no | |
10713 | elif test "$shlibpath_overrides_runpath" = yes || | |
10714 | test "$enable_shared" = no; then | |
10715 | # Fast installation is not necessary | |
10716 | enable_fast_install=needless | |
10717 | fi | |
10718 | ||
10719 | striplib= | |
10720 | old_striplib= | |
10721 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10722 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | |
10723 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
10724 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10725 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10726 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10727 | echo "${ECHO_T}yes" >&6; } | |
10728 | else | |
10729 | # FIXME - insert some real tests, host_os isn't really good enough | |
10730 | case $host_os in | |
10731 | darwin*) | |
10732 | if test -n "$STRIP" ; then | |
10733 | striplib="$STRIP -x" | |
10734 | old_striplib="$STRIP -S" | |
10735 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10736 | echo "${ECHO_T}yes" >&6; } | |
10737 | else | |
10738 | { echo "$as_me:$LINENO: result: no" >&5 | |
10739 | echo "${ECHO_T}no" >&6; } | |
10740 | fi | |
10741 | ;; | |
10742 | *) | |
10743 | { echo "$as_me:$LINENO: result: no" >&5 | |
10744 | echo "${ECHO_T}no" >&6; } | |
10745 | ;; | |
10746 | esac | |
10747 | fi | |
10748 | ||
10749 | if test "x$enable_dlopen" != xyes; then | |
10750 | enable_dlopen=unknown | |
10751 | enable_dlopen_self=unknown | |
10752 | enable_dlopen_self_static=unknown | |
10753 | else | |
10754 | lt_cv_dlopen=no | |
10755 | lt_cv_dlopen_libs= | |
10756 | ||
10757 | case $host_os in | |
10758 | beos*) | |
10759 | lt_cv_dlopen="load_add_on" | |
10760 | lt_cv_dlopen_libs= | |
10761 | lt_cv_dlopen_self=yes | |
10762 | ;; | |
10763 | ||
10764 | mingw* | pw32*) | |
10765 | lt_cv_dlopen="LoadLibrary" | |
10766 | lt_cv_dlopen_libs= | |
10767 | ;; | |
10768 | ||
10769 | cygwin*) | |
10770 | lt_cv_dlopen="dlopen" | |
10771 | lt_cv_dlopen_libs= | |
10772 | ;; | |
10773 | ||
10774 | darwin*) | |
10775 | # if libdl is installed we need to link against it | |
10776 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10777 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
10778 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10780 | else | |
10781 | ac_check_lib_save_LIBS=$LIBS | |
10782 | LIBS="-ldl $LIBS" | |
10783 | cat >conftest.$ac_ext <<_ACEOF | |
10784 | /* confdefs.h. */ | |
10785 | _ACEOF | |
10786 | cat confdefs.h >>conftest.$ac_ext | |
10787 | cat >>conftest.$ac_ext <<_ACEOF | |
10788 | /* end confdefs.h. */ | |
10789 | ||
10790 | /* Override any GCC internal prototype to avoid an error. | |
10791 | Use char because int might match the return type of a GCC | |
10792 | builtin and then its argument prototype would still apply. */ | |
10793 | #ifdef __cplusplus | |
10794 | extern "C" | |
10795 | #endif | |
10796 | char dlopen (); | |
10797 | int | |
10798 | main () | |
10799 | { | |
10800 | return dlopen (); | |
10801 | ; | |
10802 | return 0; | |
10803 | } | |
10804 | _ACEOF | |
10805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10806 | if { (ac_try="$ac_link" | |
10807 | case "(($ac_try" in | |
10808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10809 | *) ac_try_echo=$ac_try;; | |
10810 | esac | |
10811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10812 | (eval "$ac_link") 2>conftest.er1 | |
10813 | ac_status=$? | |
10814 | grep -v '^ *+' conftest.er1 >conftest.err | |
10815 | rm -f conftest.er1 | |
10816 | cat conftest.err >&5 | |
10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10818 | (exit $ac_status); } && { | |
10819 | test -z "$ac_c_werror_flag" || | |
10820 | test ! -s conftest.err | |
10821 | } && test -s conftest$ac_exeext && | |
10822 | $as_test_x conftest$ac_exeext; then | |
10823 | ac_cv_lib_dl_dlopen=yes | |
10824 | else | |
10825 | echo "$as_me: failed program was:" >&5 | |
10826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10827 | ||
10828 | ac_cv_lib_dl_dlopen=no | |
10829 | fi | |
10830 | ||
10831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10832 | conftest$ac_exeext conftest.$ac_ext | |
10833 | LIBS=$ac_check_lib_save_LIBS | |
10834 | fi | |
10835 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10836 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
10837 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10838 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10839 | else | |
10840 | ||
10841 | lt_cv_dlopen="dyld" | |
10842 | lt_cv_dlopen_libs= | |
10843 | lt_cv_dlopen_self=yes | |
10844 | ||
10845 | fi | |
10846 | ||
10847 | ;; | |
10848 | ||
10849 | *) | |
10850 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10851 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | |
10852 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10854 | else | |
10855 | cat >conftest.$ac_ext <<_ACEOF | |
10856 | /* confdefs.h. */ | |
10857 | _ACEOF | |
10858 | cat confdefs.h >>conftest.$ac_ext | |
10859 | cat >>conftest.$ac_ext <<_ACEOF | |
10860 | /* end confdefs.h. */ | |
10861 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10862 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10863 | #define shl_load innocuous_shl_load | |
10864 | ||
10865 | /* System header to define __stub macros and hopefully few prototypes, | |
10866 | which can conflict with char shl_load (); below. | |
10867 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10868 | <limits.h> exists even on freestanding compilers. */ | |
10869 | ||
10870 | #ifdef __STDC__ | |
10871 | # include <limits.h> | |
10872 | #else | |
10873 | # include <assert.h> | |
10874 | #endif | |
10875 | ||
10876 | #undef shl_load | |
10877 | ||
10878 | /* Override any GCC internal prototype to avoid an error. | |
10879 | Use char because int might match the return type of a GCC | |
10880 | builtin and then its argument prototype would still apply. */ | |
10881 | #ifdef __cplusplus | |
10882 | extern "C" | |
10883 | #endif | |
10884 | char shl_load (); | |
10885 | /* The GNU C library defines this for functions which it implements | |
10886 | to always fail with ENOSYS. Some functions are actually named | |
10887 | something starting with __ and the normal name is an alias. */ | |
10888 | #if defined __stub_shl_load || defined __stub___shl_load | |
10889 | choke me | |
10890 | #endif | |
10891 | ||
10892 | int | |
10893 | main () | |
10894 | { | |
10895 | return shl_load (); | |
10896 | ; | |
10897 | return 0; | |
10898 | } | |
10899 | _ACEOF | |
10900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10901 | if { (ac_try="$ac_link" | |
10902 | case "(($ac_try" in | |
10903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10904 | *) ac_try_echo=$ac_try;; | |
10905 | esac | |
10906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10907 | (eval "$ac_link") 2>conftest.er1 | |
10908 | ac_status=$? | |
10909 | grep -v '^ *+' conftest.er1 >conftest.err | |
10910 | rm -f conftest.er1 | |
10911 | cat conftest.err >&5 | |
10912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10913 | (exit $ac_status); } && { | |
10914 | test -z "$ac_c_werror_flag" || | |
10915 | test ! -s conftest.err | |
10916 | } && test -s conftest$ac_exeext && | |
10917 | $as_test_x conftest$ac_exeext; then | |
10918 | ac_cv_func_shl_load=yes | |
10919 | else | |
10920 | echo "$as_me: failed program was:" >&5 | |
10921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10922 | ||
10923 | ac_cv_func_shl_load=no | |
10924 | fi | |
10925 | ||
10926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10927 | conftest$ac_exeext conftest.$ac_ext | |
10928 | fi | |
10929 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10930 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | |
10931 | if test $ac_cv_func_shl_load = yes; then | |
10932 | lt_cv_dlopen="shl_load" | |
10933 | else | |
10934 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10935 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | |
10936 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10938 | else | |
10939 | ac_check_lib_save_LIBS=$LIBS | |
10940 | LIBS="-ldld $LIBS" | |
10941 | cat >conftest.$ac_ext <<_ACEOF | |
10942 | /* confdefs.h. */ | |
10943 | _ACEOF | |
10944 | cat confdefs.h >>conftest.$ac_ext | |
10945 | cat >>conftest.$ac_ext <<_ACEOF | |
10946 | /* end confdefs.h. */ | |
10947 | ||
10948 | /* Override any GCC internal prototype to avoid an error. | |
10949 | Use char because int might match the return type of a GCC | |
10950 | builtin and then its argument prototype would still apply. */ | |
10951 | #ifdef __cplusplus | |
10952 | extern "C" | |
10953 | #endif | |
10954 | char shl_load (); | |
10955 | int | |
10956 | main () | |
10957 | { | |
10958 | return shl_load (); | |
10959 | ; | |
10960 | return 0; | |
10961 | } | |
10962 | _ACEOF | |
10963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10964 | if { (ac_try="$ac_link" | |
10965 | case "(($ac_try" in | |
10966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10967 | *) ac_try_echo=$ac_try;; | |
10968 | esac | |
10969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10970 | (eval "$ac_link") 2>conftest.er1 | |
10971 | ac_status=$? | |
10972 | grep -v '^ *+' conftest.er1 >conftest.err | |
10973 | rm -f conftest.er1 | |
10974 | cat conftest.err >&5 | |
10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10976 | (exit $ac_status); } && { | |
10977 | test -z "$ac_c_werror_flag" || | |
10978 | test ! -s conftest.err | |
10979 | } && test -s conftest$ac_exeext && | |
10980 | $as_test_x conftest$ac_exeext; then | |
10981 | ac_cv_lib_dld_shl_load=yes | |
10982 | else | |
10983 | echo "$as_me: failed program was:" >&5 | |
10984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10985 | ||
10986 | ac_cv_lib_dld_shl_load=no | |
10987 | fi | |
10988 | ||
10989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10990 | conftest$ac_exeext conftest.$ac_ext | |
10991 | LIBS=$ac_check_lib_save_LIBS | |
10992 | fi | |
10993 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10994 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | |
10995 | if test $ac_cv_lib_dld_shl_load = yes; then | |
b676ea3b | 10996 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
db137867 AC |
10997 | else |
10998 | { echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10999 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | |
11000 | if test "${ac_cv_func_dlopen+set}" = set; then | |
11001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11002 | else | |
11003 | cat >conftest.$ac_ext <<_ACEOF | |
11004 | /* confdefs.h. */ | |
11005 | _ACEOF | |
11006 | cat confdefs.h >>conftest.$ac_ext | |
11007 | cat >>conftest.$ac_ext <<_ACEOF | |
11008 | /* end confdefs.h. */ | |
11009 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
11010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11011 | #define dlopen innocuous_dlopen | |
11012 | ||
11013 | /* System header to define __stub macros and hopefully few prototypes, | |
11014 | which can conflict with char dlopen (); below. | |
11015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11016 | <limits.h> exists even on freestanding compilers. */ | |
11017 | ||
11018 | #ifdef __STDC__ | |
11019 | # include <limits.h> | |
11020 | #else | |
11021 | # include <assert.h> | |
11022 | #endif | |
11023 | ||
11024 | #undef dlopen | |
11025 | ||
11026 | /* Override any GCC internal prototype to avoid an error. | |
11027 | Use char because int might match the return type of a GCC | |
11028 | builtin and then its argument prototype would still apply. */ | |
11029 | #ifdef __cplusplus | |
11030 | extern "C" | |
11031 | #endif | |
11032 | char dlopen (); | |
11033 | /* The GNU C library defines this for functions which it implements | |
11034 | to always fail with ENOSYS. Some functions are actually named | |
11035 | something starting with __ and the normal name is an alias. */ | |
11036 | #if defined __stub_dlopen || defined __stub___dlopen | |
11037 | choke me | |
11038 | #endif | |
11039 | ||
11040 | int | |
11041 | main () | |
11042 | { | |
11043 | return dlopen (); | |
11044 | ; | |
11045 | return 0; | |
11046 | } | |
11047 | _ACEOF | |
11048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11049 | if { (ac_try="$ac_link" | |
11050 | case "(($ac_try" in | |
11051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11052 | *) ac_try_echo=$ac_try;; | |
11053 | esac | |
11054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11055 | (eval "$ac_link") 2>conftest.er1 | |
11056 | ac_status=$? | |
11057 | grep -v '^ *+' conftest.er1 >conftest.err | |
11058 | rm -f conftest.er1 | |
11059 | cat conftest.err >&5 | |
11060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11061 | (exit $ac_status); } && { | |
11062 | test -z "$ac_c_werror_flag" || | |
11063 | test ! -s conftest.err | |
11064 | } && test -s conftest$ac_exeext && | |
11065 | $as_test_x conftest$ac_exeext; then | |
11066 | ac_cv_func_dlopen=yes | |
11067 | else | |
11068 | echo "$as_me: failed program was:" >&5 | |
11069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11070 | ||
11071 | ac_cv_func_dlopen=no | |
11072 | fi | |
11073 | ||
11074 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11075 | conftest$ac_exeext conftest.$ac_ext | |
11076 | fi | |
11077 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
11078 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | |
11079 | if test $ac_cv_func_dlopen = yes; then | |
11080 | lt_cv_dlopen="dlopen" | |
11081 | else | |
11082 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11083 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
11084 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11086 | else | |
11087 | ac_check_lib_save_LIBS=$LIBS | |
11088 | LIBS="-ldl $LIBS" | |
11089 | cat >conftest.$ac_ext <<_ACEOF | |
11090 | /* confdefs.h. */ | |
11091 | _ACEOF | |
11092 | cat confdefs.h >>conftest.$ac_ext | |
11093 | cat >>conftest.$ac_ext <<_ACEOF | |
11094 | /* end confdefs.h. */ | |
11095 | ||
11096 | /* Override any GCC internal prototype to avoid an error. | |
11097 | Use char because int might match the return type of a GCC | |
11098 | builtin and then its argument prototype would still apply. */ | |
11099 | #ifdef __cplusplus | |
11100 | extern "C" | |
11101 | #endif | |
11102 | char dlopen (); | |
11103 | int | |
11104 | main () | |
11105 | { | |
11106 | return dlopen (); | |
11107 | ; | |
11108 | return 0; | |
11109 | } | |
11110 | _ACEOF | |
11111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11112 | if { (ac_try="$ac_link" | |
11113 | case "(($ac_try" in | |
11114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11115 | *) ac_try_echo=$ac_try;; | |
11116 | esac | |
11117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11118 | (eval "$ac_link") 2>conftest.er1 | |
11119 | ac_status=$? | |
11120 | grep -v '^ *+' conftest.er1 >conftest.err | |
11121 | rm -f conftest.er1 | |
11122 | cat conftest.err >&5 | |
11123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11124 | (exit $ac_status); } && { | |
11125 | test -z "$ac_c_werror_flag" || | |
11126 | test ! -s conftest.err | |
11127 | } && test -s conftest$ac_exeext && | |
11128 | $as_test_x conftest$ac_exeext; then | |
11129 | ac_cv_lib_dl_dlopen=yes | |
11130 | else | |
11131 | echo "$as_me: failed program was:" >&5 | |
11132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11133 | ||
11134 | ac_cv_lib_dl_dlopen=no | |
11135 | fi | |
11136 | ||
11137 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11138 | conftest$ac_exeext conftest.$ac_ext | |
11139 | LIBS=$ac_check_lib_save_LIBS | |
11140 | fi | |
11141 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11142 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
11143 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11144 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11145 | else | |
11146 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11147 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | |
11148 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11150 | else | |
11151 | ac_check_lib_save_LIBS=$LIBS | |
11152 | LIBS="-lsvld $LIBS" | |
11153 | cat >conftest.$ac_ext <<_ACEOF | |
11154 | /* confdefs.h. */ | |
11155 | _ACEOF | |
11156 | cat confdefs.h >>conftest.$ac_ext | |
11157 | cat >>conftest.$ac_ext <<_ACEOF | |
11158 | /* end confdefs.h. */ | |
11159 | ||
11160 | /* Override any GCC internal prototype to avoid an error. | |
11161 | Use char because int might match the return type of a GCC | |
11162 | builtin and then its argument prototype would still apply. */ | |
11163 | #ifdef __cplusplus | |
11164 | extern "C" | |
11165 | #endif | |
11166 | char dlopen (); | |
11167 | int | |
11168 | main () | |
11169 | { | |
11170 | return dlopen (); | |
11171 | ; | |
11172 | return 0; | |
11173 | } | |
11174 | _ACEOF | |
11175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11176 | if { (ac_try="$ac_link" | |
11177 | case "(($ac_try" in | |
11178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11179 | *) ac_try_echo=$ac_try;; | |
11180 | esac | |
11181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11182 | (eval "$ac_link") 2>conftest.er1 | |
11183 | ac_status=$? | |
11184 | grep -v '^ *+' conftest.er1 >conftest.err | |
11185 | rm -f conftest.er1 | |
11186 | cat conftest.err >&5 | |
11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11188 | (exit $ac_status); } && { | |
11189 | test -z "$ac_c_werror_flag" || | |
11190 | test ! -s conftest.err | |
11191 | } && test -s conftest$ac_exeext && | |
11192 | $as_test_x conftest$ac_exeext; then | |
11193 | ac_cv_lib_svld_dlopen=yes | |
11194 | else | |
11195 | echo "$as_me: failed program was:" >&5 | |
11196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11197 | ||
11198 | ac_cv_lib_svld_dlopen=no | |
11199 | fi | |
11200 | ||
11201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11202 | conftest$ac_exeext conftest.$ac_ext | |
11203 | LIBS=$ac_check_lib_save_LIBS | |
11204 | fi | |
11205 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11206 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | |
11207 | if test $ac_cv_lib_svld_dlopen = yes; then | |
11208 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11209 | else | |
11210 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11211 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | |
11212 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11214 | else | |
11215 | ac_check_lib_save_LIBS=$LIBS | |
11216 | LIBS="-ldld $LIBS" | |
11217 | cat >conftest.$ac_ext <<_ACEOF | |
11218 | /* confdefs.h. */ | |
11219 | _ACEOF | |
11220 | cat confdefs.h >>conftest.$ac_ext | |
11221 | cat >>conftest.$ac_ext <<_ACEOF | |
11222 | /* end confdefs.h. */ | |
11223 | ||
11224 | /* Override any GCC internal prototype to avoid an error. | |
11225 | Use char because int might match the return type of a GCC | |
11226 | builtin and then its argument prototype would still apply. */ | |
11227 | #ifdef __cplusplus | |
11228 | extern "C" | |
11229 | #endif | |
11230 | char dld_link (); | |
11231 | int | |
11232 | main () | |
11233 | { | |
11234 | return dld_link (); | |
11235 | ; | |
11236 | return 0; | |
11237 | } | |
11238 | _ACEOF | |
11239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11240 | if { (ac_try="$ac_link" | |
11241 | case "(($ac_try" in | |
11242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11243 | *) ac_try_echo=$ac_try;; | |
11244 | esac | |
11245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11246 | (eval "$ac_link") 2>conftest.er1 | |
11247 | ac_status=$? | |
11248 | grep -v '^ *+' conftest.er1 >conftest.err | |
11249 | rm -f conftest.er1 | |
11250 | cat conftest.err >&5 | |
11251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11252 | (exit $ac_status); } && { | |
11253 | test -z "$ac_c_werror_flag" || | |
11254 | test ! -s conftest.err | |
11255 | } && test -s conftest$ac_exeext && | |
11256 | $as_test_x conftest$ac_exeext; then | |
11257 | ac_cv_lib_dld_dld_link=yes | |
11258 | else | |
11259 | echo "$as_me: failed program was:" >&5 | |
11260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11261 | ||
11262 | ac_cv_lib_dld_dld_link=no | |
11263 | fi | |
11264 | ||
11265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11266 | conftest$ac_exeext conftest.$ac_ext | |
11267 | LIBS=$ac_check_lib_save_LIBS | |
11268 | fi | |
11269 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11270 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | |
11271 | if test $ac_cv_lib_dld_dld_link = yes; then | |
b676ea3b | 11272 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
db137867 AC |
11273 | fi |
11274 | ||
11275 | ||
11276 | fi | |
11277 | ||
11278 | ||
11279 | fi | |
11280 | ||
11281 | ||
11282 | fi | |
11283 | ||
11284 | ||
11285 | fi | |
11286 | ||
11287 | ||
11288 | fi | |
11289 | ||
11290 | ;; | |
11291 | esac | |
11292 | ||
11293 | if test "x$lt_cv_dlopen" != xno; then | |
11294 | enable_dlopen=yes | |
11295 | else | |
11296 | enable_dlopen=no | |
11297 | fi | |
11298 | ||
11299 | case $lt_cv_dlopen in | |
11300 | dlopen) | |
11301 | save_CPPFLAGS="$CPPFLAGS" | |
11302 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11303 | ||
11304 | save_LDFLAGS="$LDFLAGS" | |
11305 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11306 | ||
11307 | save_LIBS="$LIBS" | |
11308 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11309 | ||
11310 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11311 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | |
11312 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11314 | else | |
11315 | if test "$cross_compiling" = yes; then : | |
11316 | lt_cv_dlopen_self=cross | |
11317 | else | |
11318 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11319 | lt_status=$lt_dlunknown | |
11320 | cat > conftest.$ac_ext <<EOF | |
3202e249 | 11321 | #line 11321 "configure" |
db137867 AC |
11322 | #include "confdefs.h" |
11323 | ||
11324 | #if HAVE_DLFCN_H | |
11325 | #include <dlfcn.h> | |
11326 | #endif | |
11327 | ||
11328 | #include <stdio.h> | |
11329 | ||
11330 | #ifdef RTLD_GLOBAL | |
11331 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11332 | #else | |
11333 | # ifdef DL_GLOBAL | |
11334 | # define LT_DLGLOBAL DL_GLOBAL | |
11335 | # else | |
11336 | # define LT_DLGLOBAL 0 | |
11337 | # endif | |
11338 | #endif | |
11339 | ||
11340 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11341 | find out it does not work in some platform. */ | |
11342 | #ifndef LT_DLLAZY_OR_NOW | |
11343 | # ifdef RTLD_LAZY | |
11344 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11345 | # else | |
11346 | # ifdef DL_LAZY | |
11347 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11348 | # else | |
11349 | # ifdef RTLD_NOW | |
11350 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11351 | # else | |
11352 | # ifdef DL_NOW | |
11353 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11354 | # else | |
11355 | # define LT_DLLAZY_OR_NOW 0 | |
11356 | # endif | |
11357 | # endif | |
11358 | # endif | |
11359 | # endif | |
11360 | #endif | |
11361 | ||
11362 | #ifdef __cplusplus | |
11363 | extern "C" void exit (int); | |
11364 | #endif | |
11365 | ||
11366 | void fnord() { int i=42;} | |
11367 | int main () | |
11368 | { | |
11369 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11370 | int status = $lt_dlunknown; | |
11371 | ||
11372 | if (self) | |
11373 | { | |
11374 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11375 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11376 | /* dlclose (self); */ | |
11377 | } | |
11378 | else | |
11379 | puts (dlerror ()); | |
11380 | ||
11381 | exit (status); | |
11382 | } | |
11383 | EOF | |
11384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11385 | (eval $ac_link) 2>&5 | |
11386 | ac_status=$? | |
11387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11388 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11389 | (./conftest; exit; ) >&5 2>/dev/null | |
11390 | lt_status=$? | |
11391 | case x$lt_status in | |
11392 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11393 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11394 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11395 | esac | |
11396 | else : | |
11397 | # compilation failed | |
11398 | lt_cv_dlopen_self=no | |
11399 | fi | |
11400 | fi | |
11401 | rm -fr conftest* | |
11402 | ||
11403 | ||
11404 | fi | |
11405 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11406 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | |
11407 | ||
11408 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11409 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11410 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11411 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | |
11412 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11414 | else | |
11415 | if test "$cross_compiling" = yes; then : | |
11416 | lt_cv_dlopen_self_static=cross | |
11417 | else | |
11418 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11419 | lt_status=$lt_dlunknown | |
11420 | cat > conftest.$ac_ext <<EOF | |
3202e249 | 11421 | #line 11421 "configure" |
db137867 AC |
11422 | #include "confdefs.h" |
11423 | ||
11424 | #if HAVE_DLFCN_H | |
11425 | #include <dlfcn.h> | |
11426 | #endif | |
11427 | ||
11428 | #include <stdio.h> | |
11429 | ||
11430 | #ifdef RTLD_GLOBAL | |
11431 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11432 | #else | |
11433 | # ifdef DL_GLOBAL | |
11434 | # define LT_DLGLOBAL DL_GLOBAL | |
11435 | # else | |
11436 | # define LT_DLGLOBAL 0 | |
11437 | # endif | |
11438 | #endif | |
11439 | ||
11440 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11441 | find out it does not work in some platform. */ | |
11442 | #ifndef LT_DLLAZY_OR_NOW | |
11443 | # ifdef RTLD_LAZY | |
11444 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11445 | # else | |
11446 | # ifdef DL_LAZY | |
11447 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11448 | # else | |
11449 | # ifdef RTLD_NOW | |
11450 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11451 | # else | |
11452 | # ifdef DL_NOW | |
11453 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11454 | # else | |
11455 | # define LT_DLLAZY_OR_NOW 0 | |
11456 | # endif | |
11457 | # endif | |
11458 | # endif | |
11459 | # endif | |
11460 | #endif | |
11461 | ||
11462 | #ifdef __cplusplus | |
11463 | extern "C" void exit (int); | |
11464 | #endif | |
11465 | ||
11466 | void fnord() { int i=42;} | |
11467 | int main () | |
11468 | { | |
11469 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11470 | int status = $lt_dlunknown; | |
11471 | ||
11472 | if (self) | |
11473 | { | |
11474 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11475 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11476 | /* dlclose (self); */ | |
11477 | } | |
11478 | else | |
11479 | puts (dlerror ()); | |
11480 | ||
11481 | exit (status); | |
11482 | } | |
11483 | EOF | |
11484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11485 | (eval $ac_link) 2>&5 | |
11486 | ac_status=$? | |
11487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11488 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11489 | (./conftest; exit; ) >&5 2>/dev/null | |
11490 | lt_status=$? | |
11491 | case x$lt_status in | |
11492 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11493 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11494 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11495 | esac | |
11496 | else : | |
11497 | # compilation failed | |
11498 | lt_cv_dlopen_self_static=no | |
11499 | fi | |
11500 | fi | |
11501 | rm -fr conftest* | |
11502 | ||
11503 | ||
11504 | fi | |
11505 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11506 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | |
11507 | fi | |
11508 | ||
11509 | CPPFLAGS="$save_CPPFLAGS" | |
11510 | LDFLAGS="$save_LDFLAGS" | |
11511 | LIBS="$save_LIBS" | |
11512 | ;; | |
11513 | esac | |
11514 | ||
11515 | case $lt_cv_dlopen_self in | |
11516 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11517 | *) enable_dlopen_self=unknown ;; | |
11518 | esac | |
11519 | ||
11520 | case $lt_cv_dlopen_self_static in | |
11521 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11522 | *) enable_dlopen_self_static=unknown ;; | |
11523 | esac | |
11524 | fi | |
11525 | ||
11526 | ||
11527 | # Report which library types will actually be built | |
11528 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11529 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
11530 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11531 | echo "${ECHO_T}$can_build_shared" >&6; } | |
11532 | ||
11533 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
11534 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
11535 | test "$can_build_shared" = "no" && enable_shared=no | |
11536 | ||
11537 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11538 | # are all built from PIC. | |
11539 | case $host_os in | |
11540 | aix3*) | |
11541 | test "$enable_shared" = yes && enable_static=no | |
11542 | if test -n "$RANLIB"; then | |
11543 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11544 | postinstall_cmds='$RANLIB $lib' | |
11545 | fi | |
11546 | ;; | |
11547 | ||
b676ea3b | 11548 | aix[4-9]*) |
db137867 AC |
11549 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11550 | test "$enable_shared" = yes && enable_static=no | |
11551 | fi | |
11552 | ;; | |
11553 | esac | |
11554 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11555 | echo "${ECHO_T}$enable_shared" >&6; } | |
11556 | ||
11557 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11558 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
11559 | # Make sure either enable_shared or enable_static is yes. | |
11560 | test "$enable_shared" = yes || enable_static=yes | |
11561 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11562 | echo "${ECHO_T}$enable_static" >&6; } | |
11563 | ||
11564 | # The else clause should only fire when bootstrapping the | |
11565 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
11566 | # with your package, and you will get complaints that there are | |
11567 | # no rules to generate ltmain.sh. | |
11568 | if test -f "$ltmain"; then | |
11569 | # See if we are running on zsh, and set the options which allow our commands through | |
11570 | # without removal of \ escapes. | |
11571 | if test -n "${ZSH_VERSION+set}" ; then | |
11572 | setopt NO_GLOB_SUBST | |
11573 | fi | |
11574 | # Now quote all the things that may contain metacharacters while being | |
11575 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
11576 | # variables and quote the copies for generation of the libtool script. | |
11577 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
11578 | SED SHELL STRIP \ | |
11579 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
11580 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
11581 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
11582 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
11583 | lt_cv_sys_global_symbol_to_c_name_address \ | |
11584 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
11585 | old_postinstall_cmds old_postuninstall_cmds \ | |
11586 | compiler \ | |
11587 | CC \ | |
11588 | LD \ | |
11589 | lt_prog_compiler_wl \ | |
11590 | lt_prog_compiler_pic \ | |
11591 | lt_prog_compiler_static \ | |
11592 | lt_prog_compiler_no_builtin_flag \ | |
11593 | export_dynamic_flag_spec \ | |
11594 | thread_safe_flag_spec \ | |
11595 | whole_archive_flag_spec \ | |
11596 | enable_shared_with_static_runtimes \ | |
11597 | old_archive_cmds \ | |
11598 | old_archive_from_new_cmds \ | |
11599 | predep_objects \ | |
11600 | postdep_objects \ | |
11601 | predeps \ | |
11602 | postdeps \ | |
11603 | compiler_lib_search_path \ | |
b676ea3b | 11604 | compiler_lib_search_dirs \ |
db137867 AC |
11605 | archive_cmds \ |
11606 | archive_expsym_cmds \ | |
11607 | postinstall_cmds \ | |
11608 | postuninstall_cmds \ | |
11609 | old_archive_from_expsyms_cmds \ | |
11610 | allow_undefined_flag \ | |
11611 | no_undefined_flag \ | |
11612 | export_symbols_cmds \ | |
11613 | hardcode_libdir_flag_spec \ | |
11614 | hardcode_libdir_flag_spec_ld \ | |
11615 | hardcode_libdir_separator \ | |
11616 | hardcode_automatic \ | |
11617 | module_cmds \ | |
11618 | module_expsym_cmds \ | |
11619 | lt_cv_prog_compiler_c_o \ | |
11620 | fix_srcfile_path \ | |
11621 | exclude_expsyms \ | |
11622 | include_expsyms; do | |
11623 | ||
11624 | case $var in | |
11625 | old_archive_cmds | \ | |
11626 | old_archive_from_new_cmds | \ | |
11627 | archive_cmds | \ | |
11628 | archive_expsym_cmds | \ | |
11629 | module_cmds | \ | |
11630 | module_expsym_cmds | \ | |
11631 | old_archive_from_expsyms_cmds | \ | |
11632 | export_symbols_cmds | \ | |
11633 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
11634 | postinstall_cmds | postuninstall_cmds | \ | |
11635 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
11636 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
11637 | # Double-quote double-evaled strings. | |
11638 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
11639 | ;; | |
11640 | *) | |
11641 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
11642 | ;; | |
11643 | esac | |
11644 | done | |
11645 | ||
11646 | case $lt_echo in | |
11647 | *'\$0 --fallback-echo"') | |
11648 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
11649 | ;; | |
11650 | esac | |
11651 | ||
11652 | cfgfile="${ofile}T" | |
11653 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
11654 | $rm -f "$cfgfile" | |
11655 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
11656 | echo "$as_me: creating $ofile" >&6;} | |
11657 | ||
11658 | cat <<__EOF__ >> "$cfgfile" | |
11659 | #! $SHELL | |
11660 | ||
11661 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
11662 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
11663 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
11664 | # | |
b676ea3b | 11665 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
db137867 AC |
11666 | # Free Software Foundation, Inc. |
11667 | # | |
11668 | # This file is part of GNU Libtool: | |
11669 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
11670 | # | |
11671 | # This program is free software; you can redistribute it and/or modify | |
11672 | # it under the terms of the GNU General Public License as published by | |
11673 | # the Free Software Foundation; either version 2 of the License, or | |
11674 | # (at your option) any later version. | |
11675 | # | |
11676 | # This program is distributed in the hope that it will be useful, but | |
11677 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
11678 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
11679 | # General Public License for more details. | |
11680 | # | |
11681 | # You should have received a copy of the GNU General Public License | |
11682 | # along with this program; if not, write to the Free Software | |
11683 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
11684 | # | |
11685 | # As a special exception to the GNU General Public License, if you | |
11686 | # distribute this file as part of a program that contains a | |
11687 | # configuration script generated by Autoconf, you may include it under | |
11688 | # the same distribution terms that you use for the rest of that program. | |
11689 | ||
11690 | # A sed program that does not truncate output. | |
11691 | SED=$lt_SED | |
11692 | ||
11693 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
11694 | Xsed="$SED -e 1s/^X//" | |
11695 | ||
11696 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
11697 | # if CDPATH is set. | |
11698 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11699 | ||
11700 | # The names of the tagged configurations supported by this script. | |
11701 | available_tags= | |
11702 | ||
11703 | # ### BEGIN LIBTOOL CONFIG | |
11704 | ||
11705 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
11706 | ||
11707 | # Shell to use when invoking shell scripts. | |
11708 | SHELL=$lt_SHELL | |
11709 | ||
11710 | # Whether or not to build shared libraries. | |
11711 | build_libtool_libs=$enable_shared | |
11712 | ||
11713 | # Whether or not to build static libraries. | |
11714 | build_old_libs=$enable_static | |
11715 | ||
11716 | # Whether or not to add -lc for building shared libraries. | |
11717 | build_libtool_need_lc=$archive_cmds_need_lc | |
11718 | ||
11719 | # Whether or not to disallow shared libs when runtime libs are static | |
11720 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
11721 | ||
11722 | # Whether or not to optimize for fast installation. | |
11723 | fast_install=$enable_fast_install | |
11724 | ||
11725 | # The host system. | |
11726 | host_alias=$host_alias | |
11727 | host=$host | |
11728 | host_os=$host_os | |
11729 | ||
11730 | # The build system. | |
11731 | build_alias=$build_alias | |
11732 | build=$build | |
11733 | build_os=$build_os | |
11734 | ||
11735 | # An echo program that does not interpret backslashes. | |
11736 | echo=$lt_echo | |
11737 | ||
11738 | # The archiver. | |
11739 | AR=$lt_AR | |
11740 | AR_FLAGS=$lt_AR_FLAGS | |
11741 | ||
11742 | # A C compiler. | |
11743 | LTCC=$lt_LTCC | |
11744 | ||
11745 | # LTCC compiler flags. | |
11746 | LTCFLAGS=$lt_LTCFLAGS | |
11747 | ||
11748 | # A language-specific compiler. | |
11749 | CC=$lt_compiler | |
11750 | ||
11751 | # Is the compiler the GNU C compiler? | |
11752 | with_gcc=$GCC | |
11753 | ||
11754 | # An ERE matcher. | |
11755 | EGREP=$lt_EGREP | |
11756 | ||
11757 | # The linker used to build libraries. | |
11758 | LD=$lt_LD | |
11759 | ||
11760 | # Whether we need hard or soft links. | |
11761 | LN_S=$lt_LN_S | |
11762 | ||
11763 | # A BSD-compatible nm program. | |
11764 | NM=$lt_NM | |
11765 | ||
11766 | # A symbol stripping program | |
11767 | STRIP=$lt_STRIP | |
11768 | ||
11769 | # Used to examine libraries when file_magic_cmd begins "file" | |
11770 | MAGIC_CMD=$MAGIC_CMD | |
11771 | ||
11772 | # Used on cygwin: DLL creation program. | |
11773 | DLLTOOL="$DLLTOOL" | |
11774 | ||
11775 | # Used on cygwin: object dumper. | |
11776 | OBJDUMP="$OBJDUMP" | |
11777 | ||
11778 | # Used on cygwin: assembler. | |
11779 | AS="$AS" | |
11780 | ||
11781 | # The name of the directory that contains temporary libtool files. | |
11782 | objdir=$objdir | |
11783 | ||
11784 | # How to create reloadable object files. | |
11785 | reload_flag=$lt_reload_flag | |
11786 | reload_cmds=$lt_reload_cmds | |
11787 | ||
11788 | # How to pass a linker flag through the compiler. | |
11789 | wl=$lt_lt_prog_compiler_wl | |
11790 | ||
11791 | # Object file suffix (normally "o"). | |
11792 | objext="$ac_objext" | |
11793 | ||
11794 | # Old archive suffix (normally "a"). | |
11795 | libext="$libext" | |
11796 | ||
11797 | # Shared library suffix (normally ".so"). | |
11798 | shrext_cmds='$shrext_cmds' | |
11799 | ||
11800 | # Executable file suffix (normally ""). | |
11801 | exeext="$exeext" | |
11802 | ||
11803 | # Additional compiler flags for building library objects. | |
11804 | pic_flag=$lt_lt_prog_compiler_pic | |
11805 | pic_mode=$pic_mode | |
11806 | ||
11807 | # What is the maximum length of a command? | |
11808 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
11809 | ||
11810 | # Does compiler simultaneously support -c and -o options? | |
11811 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
11812 | ||
11813 | # Must we lock files when doing compilation? | |
11814 | need_locks=$lt_need_locks | |
11815 | ||
11816 | # Do we need the lib prefix for modules? | |
11817 | need_lib_prefix=$need_lib_prefix | |
11818 | ||
11819 | # Do we need a version for libraries? | |
11820 | need_version=$need_version | |
11821 | ||
11822 | # Whether dlopen is supported. | |
11823 | dlopen_support=$enable_dlopen | |
11824 | ||
11825 | # Whether dlopen of programs is supported. | |
11826 | dlopen_self=$enable_dlopen_self | |
11827 | ||
11828 | # Whether dlopen of statically linked programs is supported. | |
11829 | dlopen_self_static=$enable_dlopen_self_static | |
11830 | ||
11831 | # Compiler flag to prevent dynamic linking. | |
11832 | link_static_flag=$lt_lt_prog_compiler_static | |
11833 | ||
11834 | # Compiler flag to turn off builtin functions. | |
11835 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
11836 | ||
11837 | # Compiler flag to allow reflexive dlopens. | |
11838 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
11839 | ||
11840 | # Compiler flag to generate shared objects directly from archives. | |
11841 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
11842 | ||
11843 | # Compiler flag to generate thread-safe objects. | |
11844 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
11845 | ||
11846 | # Library versioning type. | |
11847 | version_type=$version_type | |
11848 | ||
11849 | # Format of library name prefix. | |
11850 | libname_spec=$lt_libname_spec | |
11851 | ||
11852 | # List of archive names. First name is the real one, the rest are links. | |
11853 | # The last name is the one that the linker finds with -lNAME. | |
11854 | library_names_spec=$lt_library_names_spec | |
11855 | ||
11856 | # The coded name of the library, if different from the real name. | |
11857 | soname_spec=$lt_soname_spec | |
11858 | ||
11859 | # Commands used to build and install an old-style archive. | |
11860 | RANLIB=$lt_RANLIB | |
11861 | old_archive_cmds=$lt_old_archive_cmds | |
11862 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
11863 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
11864 | ||
11865 | # Create an old-style archive from a shared archive. | |
11866 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
11867 | ||
11868 | # Create a temporary old-style archive to link instead of a shared archive. | |
11869 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
11870 | ||
11871 | # Commands used to build and install a shared archive. | |
11872 | archive_cmds=$lt_archive_cmds | |
11873 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
11874 | postinstall_cmds=$lt_postinstall_cmds | |
11875 | postuninstall_cmds=$lt_postuninstall_cmds | |
11876 | ||
11877 | # Commands used to build a loadable module (assumed same as above if empty) | |
11878 | module_cmds=$lt_module_cmds | |
11879 | module_expsym_cmds=$lt_module_expsym_cmds | |
11880 | ||
11881 | # Commands to strip libraries. | |
11882 | old_striplib=$lt_old_striplib | |
11883 | striplib=$lt_striplib | |
11884 | ||
11885 | # Dependencies to place before the objects being linked to create a | |
11886 | # shared library. | |
11887 | predep_objects=$lt_predep_objects | |
11888 | ||
11889 | # Dependencies to place after the objects being linked to create a | |
11890 | # shared library. | |
11891 | postdep_objects=$lt_postdep_objects | |
11892 | ||
11893 | # Dependencies to place before the objects being linked to create a | |
11894 | # shared library. | |
11895 | predeps=$lt_predeps | |
11896 | ||
11897 | # Dependencies to place after the objects being linked to create a | |
11898 | # shared library. | |
11899 | postdeps=$lt_postdeps | |
11900 | ||
b676ea3b AC |
11901 | # The directories searched by this compiler when creating a shared |
11902 | # library | |
11903 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
11904 | ||
db137867 AC |
11905 | # The library search path used internally by the compiler when linking |
11906 | # a shared library. | |
11907 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
11908 | ||
11909 | # Method to check whether dependent libraries are shared objects. | |
11910 | deplibs_check_method=$lt_deplibs_check_method | |
11911 | ||
11912 | # Command to use when deplibs_check_method == file_magic. | |
11913 | file_magic_cmd=$lt_file_magic_cmd | |
11914 | ||
11915 | # Flag that allows shared libraries with undefined symbols to be built. | |
11916 | allow_undefined_flag=$lt_allow_undefined_flag | |
11917 | ||
11918 | # Flag that forces no undefined symbols. | |
11919 | no_undefined_flag=$lt_no_undefined_flag | |
11920 | ||
11921 | # Commands used to finish a libtool library installation in a directory. | |
11922 | finish_cmds=$lt_finish_cmds | |
11923 | ||
11924 | # Same as above, but a single script fragment to be evaled but not shown. | |
11925 | finish_eval=$lt_finish_eval | |
11926 | ||
11927 | # Take the output of nm and produce a listing of raw symbols and C names. | |
11928 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
11929 | ||
11930 | # Transform the output of nm in a proper C declaration | |
11931 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
11932 | ||
11933 | # Transform the output of nm in a C name address pair | |
11934 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
11935 | ||
11936 | # This is the shared library runtime path variable. | |
11937 | runpath_var=$runpath_var | |
11938 | ||
11939 | # This is the shared library path variable. | |
11940 | shlibpath_var=$shlibpath_var | |
11941 | ||
11942 | # Is shlibpath searched before the hard-coded library search path? | |
11943 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
11944 | ||
11945 | # How to hardcode a shared library path into an executable. | |
11946 | hardcode_action=$hardcode_action | |
11947 | ||
11948 | # Whether we should hardcode library paths into libraries. | |
11949 | hardcode_into_libs=$hardcode_into_libs | |
11950 | ||
11951 | # Flag to hardcode \$libdir into a binary during linking. | |
11952 | # This must work even if \$libdir does not exist. | |
11953 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
11954 | ||
11955 | # If ld is used when linking, flag to hardcode \$libdir into | |
11956 | # a binary during linking. This must work even if \$libdir does | |
11957 | # not exist. | |
11958 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
11959 | ||
11960 | # Whether we need a single -rpath flag with a separated argument. | |
11961 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
11962 | ||
11963 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
11964 | # resulting binary. | |
11965 | hardcode_direct=$hardcode_direct | |
11966 | ||
11967 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
11968 | # resulting binary. | |
11969 | hardcode_minus_L=$hardcode_minus_L | |
11970 | ||
11971 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
11972 | # the resulting binary. | |
11973 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
11974 | ||
11975 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
11976 | # and all subsequent libraries and executables linked against it. | |
11977 | hardcode_automatic=$hardcode_automatic | |
11978 | ||
11979 | # Variables whose values should be saved in libtool wrapper scripts and | |
11980 | # restored at relink time. | |
11981 | variables_saved_for_relink="$variables_saved_for_relink" | |
11982 | ||
11983 | # Whether libtool must link a program against all its dependency libraries. | |
11984 | link_all_deplibs=$link_all_deplibs | |
11985 | ||
11986 | # Compile-time system search path for libraries | |
11987 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
11988 | ||
11989 | # Run-time system search path for libraries | |
11990 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
11991 | ||
11992 | # Fix the shell variable \$srcfile for the compiler. | |
11993 | fix_srcfile_path=$lt_fix_srcfile_path | |
11994 | ||
11995 | # Set to yes if exported symbols are required. | |
11996 | always_export_symbols=$always_export_symbols | |
11997 | ||
11998 | # The commands to list exported symbols. | |
11999 | export_symbols_cmds=$lt_export_symbols_cmds | |
12000 | ||
12001 | # The commands to extract the exported symbol list from a shared archive. | |
12002 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
12003 | ||
12004 | # Symbols that should not be listed in the preloaded symbols. | |
12005 | exclude_expsyms=$lt_exclude_expsyms | |
12006 | ||
12007 | # Symbols that must always be exported. | |
12008 | include_expsyms=$lt_include_expsyms | |
12009 | ||
12010 | # ### END LIBTOOL CONFIG | |
12011 | ||
12012 | __EOF__ | |
12013 | ||
12014 | ||
12015 | case $host_os in | |
12016 | aix3*) | |
12017 | cat <<\EOF >> "$cfgfile" | |
12018 | ||
12019 | # AIX sometimes has problems with the GCC collect2 program. For some | |
12020 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
12021 | # vanish in a puff of smoke. | |
12022 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
12023 | COLLECT_NAMES= | |
12024 | export COLLECT_NAMES | |
12025 | fi | |
12026 | EOF | |
12027 | ;; | |
12028 | esac | |
12029 | ||
12030 | # We use sed instead of cat because bash on DJGPP gets confused if | |
12031 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
12032 | # text mode, it properly converts lines to CR/LF. This bash problem | |
12033 | # is reportedly fixed, but why not run on old versions too? | |
12034 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
12035 | ||
12036 | mv -f "$cfgfile" "$ofile" || \ | |
12037 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
12038 | chmod +x "$ofile" | |
12039 | ||
12040 | else | |
12041 | # If there is no Makefile yet, we rely on a make rule to execute | |
12042 | # `config.status --recheck' to rerun these tests and create the | |
12043 | # libtool script then. | |
12044 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
12045 | if test -f "$ltmain_in"; then | |
12046 | test -f Makefile && make "$ltmain" | |
12047 | fi | |
12048 | fi | |
12049 | ||
12050 | ||
12051 | ac_ext=c | |
12052 | ac_cpp='$CPP $CPPFLAGS' | |
12053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12056 | ||
12057 | CC="$lt_save_CC" | |
12058 | ||
12059 | ||
12060 | # Check whether --with-tags was given. | |
12061 | if test "${with_tags+set}" = set; then | |
12062 | withval=$with_tags; tagnames="$withval" | |
12063 | fi | |
12064 | ||
12065 | ||
12066 | if test -f "$ltmain" && test -n "$tagnames"; then | |
12067 | if test ! -f "${ofile}"; then | |
12068 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
12069 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
12070 | fi | |
12071 | ||
12072 | if test -z "$LTCC"; then | |
12073 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
12074 | if test -z "$LTCC"; then | |
12075 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
12076 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
12077 | else | |
12078 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
12079 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
12080 | fi | |
12081 | fi | |
12082 | if test -z "$LTCFLAGS"; then | |
12083 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
12084 | fi | |
12085 | ||
12086 | # Extract list of available tagged configurations in $ofile. | |
12087 | # Note that this assumes the entire list is on one line. | |
12088 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
12089 | ||
12090 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
12091 | for tagname in $tagnames; do | |
12092 | IFS="$lt_save_ifs" | |
12093 | # Check whether tagname contains only valid characters | |
12094 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
12095 | "") ;; | |
12096 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
12097 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
12098 | { (exit 1); exit 1; }; } | |
12099 | ;; | |
12100 | esac | |
12101 | ||
12102 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
12103 | then | |
12104 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
12105 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
12106 | { (exit 1); exit 1; }; } | |
12107 | fi | |
12108 | ||
12109 | # Update the list of available tags. | |
12110 | if test -n "$tagname"; then | |
12111 | echo appending configuration tag \"$tagname\" to $ofile | |
12112 | ||
12113 | case $tagname in | |
12114 | CXX) | |
12115 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12116 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12117 | (test "X$CXX" != "Xg++"))) ; then | |
12118 | ac_ext=cpp | |
12119 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12123 | ||
12124 | ||
12125 | ||
12126 | ||
12127 | archive_cmds_need_lc_CXX=no | |
12128 | allow_undefined_flag_CXX= | |
12129 | always_export_symbols_CXX=no | |
12130 | archive_expsym_cmds_CXX= | |
12131 | export_dynamic_flag_spec_CXX= | |
12132 | hardcode_direct_CXX=no | |
12133 | hardcode_libdir_flag_spec_CXX= | |
12134 | hardcode_libdir_flag_spec_ld_CXX= | |
12135 | hardcode_libdir_separator_CXX= | |
12136 | hardcode_minus_L_CXX=no | |
12137 | hardcode_shlibpath_var_CXX=unsupported | |
12138 | hardcode_automatic_CXX=no | |
12139 | module_cmds_CXX= | |
12140 | module_expsym_cmds_CXX= | |
12141 | link_all_deplibs_CXX=unknown | |
12142 | old_archive_cmds_CXX=$old_archive_cmds | |
12143 | no_undefined_flag_CXX= | |
12144 | whole_archive_flag_spec_CXX= | |
12145 | enable_shared_with_static_runtimes_CXX=no | |
12146 | ||
12147 | # Dependencies to place before and after the object being linked: | |
12148 | predep_objects_CXX= | |
12149 | postdep_objects_CXX= | |
12150 | predeps_CXX= | |
12151 | postdeps_CXX= | |
12152 | compiler_lib_search_path_CXX= | |
b676ea3b | 12153 | compiler_lib_search_dirs_CXX= |
db137867 AC |
12154 | |
12155 | # Source file extension for C++ test sources. | |
12156 | ac_ext=cpp | |
12157 | ||
12158 | # Object file extension for compiled C++ test sources. | |
12159 | objext=o | |
12160 | objext_CXX=$objext | |
12161 | ||
12162 | # Code to be used in simple compile tests | |
12163 | lt_simple_compile_test_code="int some_variable = 0;" | |
12164 | ||
12165 | # Code to be used in simple link tests | |
12166 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12167 | ||
12168 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12169 | ||
12170 | # If no C compiler was specified, use CC. | |
12171 | LTCC=${LTCC-"$CC"} | |
12172 | ||
12173 | # If no C compiler flags were specified, use CFLAGS. | |
12174 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12175 | ||
12176 | # Allow CC to be a program name with arguments. | |
12177 | compiler=$CC | |
12178 | ||
12179 | ||
12180 | # save warnings/boilerplate of simple test code | |
12181 | ac_outfile=conftest.$ac_objext | |
12182 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12183 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12184 | _lt_compiler_boilerplate=`cat conftest.err` | |
12185 | $rm conftest* | |
12186 | ||
12187 | ac_outfile=conftest.$ac_objext | |
12188 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12189 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12190 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 12191 | $rm -r conftest* |
db137867 AC |
12192 | |
12193 | ||
12194 | # Allow CC to be a program name with arguments. | |
12195 | lt_save_CC=$CC | |
12196 | lt_save_LD=$LD | |
12197 | lt_save_GCC=$GCC | |
12198 | GCC=$GXX | |
12199 | lt_save_with_gnu_ld=$with_gnu_ld | |
12200 | lt_save_path_LD=$lt_cv_path_LD | |
12201 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12202 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12203 | else | |
12204 | $as_unset lt_cv_prog_gnu_ld | |
12205 | fi | |
12206 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12207 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12208 | else | |
12209 | $as_unset lt_cv_path_LD | |
12210 | fi | |
12211 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12212 | CC=${CXX-"c++"} | |
12213 | compiler=$CC | |
12214 | compiler_CXX=$CC | |
12215 | for cc_temp in $compiler""; do | |
12216 | case $cc_temp in | |
12217 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12218 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12219 | \-*) ;; | |
12220 | *) break;; | |
12221 | esac | |
12222 | done | |
12223 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
12224 | ||
12225 | ||
12226 | # We don't want -fno-exception wen compiling C++ code, so set the | |
12227 | # no_builtin_flag separately | |
12228 | if test "$GXX" = yes; then | |
12229 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12230 | else | |
12231 | lt_prog_compiler_no_builtin_flag_CXX= | |
12232 | fi | |
12233 | ||
12234 | if test "$GXX" = yes; then | |
12235 | # Set up default GNU C++ configuration | |
12236 | ||
12237 | ||
12238 | # Check whether --with-gnu-ld was given. | |
12239 | if test "${with_gnu_ld+set}" = set; then | |
12240 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12241 | else | |
12242 | with_gnu_ld=no | |
12243 | fi | |
12244 | ||
12245 | ac_prog=ld | |
12246 | if test "$GCC" = yes; then | |
12247 | # Check if gcc -print-prog-name=ld gives a path. | |
12248 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
12249 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
12250 | case $host in | |
12251 | *-*-mingw*) | |
12252 | # gcc leaves a trailing carriage return which upsets mingw | |
12253 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12254 | *) | |
12255 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12256 | esac | |
12257 | case $ac_prog in | |
12258 | # Accept absolute paths. | |
12259 | [\\/]* | ?:[\\/]*) | |
12260 | re_direlt='/[^/][^/]*/\.\./' | |
12261 | # Canonicalize the pathname of ld | |
12262 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
12263 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
12264 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
12265 | done | |
12266 | test -z "$LD" && LD="$ac_prog" | |
12267 | ;; | |
12268 | "") | |
12269 | # If it fails, then pretend we aren't using GCC. | |
12270 | ac_prog=ld | |
12271 | ;; | |
12272 | *) | |
12273 | # If it is relative, then search for the first ld in PATH. | |
12274 | with_gnu_ld=unknown | |
12275 | ;; | |
12276 | esac | |
12277 | elif test "$with_gnu_ld" = yes; then | |
12278 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
12279 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
12280 | else | |
12281 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
12282 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
12283 | fi | |
12284 | if test "${lt_cv_path_LD+set}" = set; then | |
12285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12286 | else | |
12287 | if test -z "$LD"; then | |
12288 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12289 | for ac_dir in $PATH; do | |
12290 | IFS="$lt_save_ifs" | |
12291 | test -z "$ac_dir" && ac_dir=. | |
12292 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12293 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12294 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12295 | # but apparently some variants of GNU ld only accept -v. | |
12296 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12297 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12298 | *GNU* | *'with BFD'*) | |
12299 | test "$with_gnu_ld" != no && break | |
12300 | ;; | |
12301 | *) | |
12302 | test "$with_gnu_ld" != yes && break | |
12303 | ;; | |
12304 | esac | |
12305 | fi | |
12306 | done | |
12307 | IFS="$lt_save_ifs" | |
12308 | else | |
12309 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12310 | fi | |
12311 | fi | |
12312 | ||
12313 | LD="$lt_cv_path_LD" | |
12314 | if test -n "$LD"; then | |
12315 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
12316 | echo "${ECHO_T}$LD" >&6; } | |
12317 | else | |
12318 | { echo "$as_me:$LINENO: result: no" >&5 | |
12319 | echo "${ECHO_T}no" >&6; } | |
12320 | fi | |
12321 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
12322 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
12323 | { (exit 1); exit 1; }; } | |
12324 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
12325 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
12326 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
12327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12328 | else | |
12329 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12330 | case `$LD -v 2>&1 </dev/null` in | |
12331 | *GNU* | *'with BFD'*) | |
12332 | lt_cv_prog_gnu_ld=yes | |
12333 | ;; | |
12334 | *) | |
12335 | lt_cv_prog_gnu_ld=no | |
12336 | ;; | |
12337 | esac | |
12338 | fi | |
12339 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
12340 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
12341 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12342 | ||
12343 | ||
12344 | ||
12345 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12346 | # archiving commands below assume that GNU ld is being used. | |
12347 | if test "$with_gnu_ld" = yes; then | |
12348 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12349 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12350 | ||
12351 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12352 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12353 | ||
12354 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12355 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12356 | # investigate it a little bit more. (MM) | |
12357 | wlarc='${wl}' | |
12358 | ||
12359 | # ancient GNU ld didn't support --whole-archive et. al. | |
12360 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
12361 | grep 'no-whole-archive' > /dev/null; then | |
12362 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12363 | else | |
12364 | whole_archive_flag_spec_CXX= | |
12365 | fi | |
12366 | else | |
12367 | with_gnu_ld=no | |
12368 | wlarc= | |
12369 | ||
12370 | # A generic and very simple default shared library creation | |
12371 | # command for GNU C++ for the case where it uses the native | |
12372 | # linker, instead of GNU ld. If possible, this setting should | |
12373 | # overridden to take advantage of the native linker features on | |
12374 | # the platform it is being used on. | |
12375 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12376 | fi | |
12377 | ||
12378 | # Commands to make compiler produce verbose output that lists | |
12379 | # what "hidden" libraries, object files and flags are used when | |
12380 | # linking a shared library. | |
12381 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
12382 | ||
12383 | else | |
12384 | GXX=no | |
12385 | with_gnu_ld=no | |
12386 | wlarc= | |
12387 | fi | |
12388 | ||
12389 | # PORTME: fill in a description of your system's C++ link characteristics | |
12390 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12391 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
12392 | ld_shlibs_CXX=yes | |
12393 | case $host_os in | |
12394 | aix3*) | |
12395 | # FIXME: insert proper C++ library support | |
12396 | ld_shlibs_CXX=no | |
12397 | ;; | |
b676ea3b | 12398 | aix[4-9]*) |
db137867 AC |
12399 | if test "$host_cpu" = ia64; then |
12400 | # On IA64, the linker does run time linking by default, so we don't | |
12401 | # have to do anything special. | |
12402 | aix_use_runtimelinking=no | |
12403 | exp_sym_flag='-Bexport' | |
12404 | no_entry_flag="" | |
12405 | else | |
12406 | aix_use_runtimelinking=no | |
12407 | ||
12408 | # Test if we are trying to use run time linking or normal | |
12409 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12410 | # need to do runtime linking. | |
b676ea3b | 12411 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 AC |
12412 | for ld_flag in $LDFLAGS; do |
12413 | case $ld_flag in | |
12414 | *-brtl*) | |
12415 | aix_use_runtimelinking=yes | |
12416 | break | |
12417 | ;; | |
12418 | esac | |
12419 | done | |
12420 | ;; | |
12421 | esac | |
12422 | ||
12423 | exp_sym_flag='-bexport' | |
12424 | no_entry_flag='-bnoentry' | |
12425 | fi | |
12426 | ||
12427 | # When large executables or shared objects are built, AIX ld can | |
12428 | # have problems creating the table of contents. If linking a library | |
12429 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12430 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12431 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12432 | ||
12433 | archive_cmds_CXX='' | |
12434 | hardcode_direct_CXX=yes | |
12435 | hardcode_libdir_separator_CXX=':' | |
12436 | link_all_deplibs_CXX=yes | |
12437 | ||
12438 | if test "$GXX" = yes; then | |
12439 | case $host_os in aix4.[012]|aix4.[012].*) | |
12440 | # We only want to do this on AIX 4.2 and lower, the check | |
12441 | # below for broken collect2 doesn't work under 4.3+ | |
12442 | collect2name=`${CC} -print-prog-name=collect2` | |
12443 | if test -f "$collect2name" && \ | |
12444 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
12445 | then | |
12446 | # We have reworked collect2 | |
12447 | : | |
12448 | else | |
12449 | # We have old collect2 | |
12450 | hardcode_direct_CXX=unsupported | |
12451 | # It fails to find uninstalled libraries when the uninstalled | |
12452 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12453 | # to unsupported forces relinking | |
12454 | hardcode_minus_L_CXX=yes | |
12455 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12456 | hardcode_libdir_separator_CXX= | |
12457 | fi | |
12458 | ;; | |
12459 | esac | |
12460 | shared_flag='-shared' | |
12461 | if test "$aix_use_runtimelinking" = yes; then | |
12462 | shared_flag="$shared_flag "'${wl}-G' | |
12463 | fi | |
12464 | else | |
12465 | # not using gcc | |
12466 | if test "$host_cpu" = ia64; then | |
12467 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12468 | # chokes on -Wl,-G. The following line is correct: | |
12469 | shared_flag='-G' | |
12470 | else | |
12471 | if test "$aix_use_runtimelinking" = yes; then | |
12472 | shared_flag='${wl}-G' | |
12473 | else | |
12474 | shared_flag='${wl}-bM:SRE' | |
12475 | fi | |
12476 | fi | |
12477 | fi | |
12478 | ||
12479 | # It seems that -bexpall does not export symbols beginning with | |
12480 | # underscore (_), so it is better to generate a list of symbols to export. | |
12481 | always_export_symbols_CXX=yes | |
12482 | if test "$aix_use_runtimelinking" = yes; then | |
12483 | # Warning - without using the other runtime loading flags (-brtl), | |
12484 | # -berok will link without error, but may produce a broken library. | |
12485 | allow_undefined_flag_CXX='-berok' | |
12486 | # Determine the default libpath from the value encoded in an empty executable. | |
12487 | cat >conftest.$ac_ext <<_ACEOF | |
12488 | /* confdefs.h. */ | |
12489 | _ACEOF | |
12490 | cat confdefs.h >>conftest.$ac_ext | |
12491 | cat >>conftest.$ac_ext <<_ACEOF | |
12492 | /* end confdefs.h. */ | |
12493 | ||
12494 | int | |
12495 | main () | |
12496 | { | |
12497 | ||
12498 | ; | |
12499 | return 0; | |
12500 | } | |
12501 | _ACEOF | |
12502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12503 | if { (ac_try="$ac_link" | |
12504 | case "(($ac_try" in | |
12505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12506 | *) ac_try_echo=$ac_try;; | |
12507 | esac | |
12508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12509 | (eval "$ac_link") 2>conftest.er1 | |
12510 | ac_status=$? | |
12511 | grep -v '^ *+' conftest.er1 >conftest.err | |
12512 | rm -f conftest.er1 | |
12513 | cat conftest.err >&5 | |
12514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12515 | (exit $ac_status); } && { | |
12516 | test -z "$ac_cxx_werror_flag" || | |
12517 | test ! -s conftest.err | |
12518 | } && test -s conftest$ac_exeext && | |
12519 | $as_test_x conftest$ac_exeext; then | |
12520 | ||
12521 | lt_aix_libpath_sed=' | |
12522 | /Import File Strings/,/^$/ { | |
12523 | /^0/ { | |
12524 | s/^0 *\(.*\)$/\1/ | |
12525 | p | |
12526 | } | |
12527 | }' | |
12528 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12529 | # Check for a 64-bit object if we didn't find anything. | |
12530 | if test -z "$aix_libpath"; then | |
12531 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12532 | fi | |
12533 | else | |
12534 | echo "$as_me: failed program was:" >&5 | |
12535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12536 | ||
12537 | ||
12538 | fi | |
12539 | ||
12540 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12541 | conftest$ac_exeext conftest.$ac_ext | |
12542 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12543 | ||
12544 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12545 | ||
12546 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
12547 | else | |
12548 | if test "$host_cpu" = ia64; then | |
12549 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12550 | allow_undefined_flag_CXX="-z nodefs" | |
12551 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
12552 | else | |
12553 | # Determine the default libpath from the value encoded in an empty executable. | |
12554 | cat >conftest.$ac_ext <<_ACEOF | |
12555 | /* confdefs.h. */ | |
12556 | _ACEOF | |
12557 | cat confdefs.h >>conftest.$ac_ext | |
12558 | cat >>conftest.$ac_ext <<_ACEOF | |
12559 | /* end confdefs.h. */ | |
12560 | ||
12561 | int | |
12562 | main () | |
12563 | { | |
12564 | ||
12565 | ; | |
12566 | return 0; | |
12567 | } | |
12568 | _ACEOF | |
12569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12570 | if { (ac_try="$ac_link" | |
12571 | case "(($ac_try" in | |
12572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12573 | *) ac_try_echo=$ac_try;; | |
12574 | esac | |
12575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12576 | (eval "$ac_link") 2>conftest.er1 | |
12577 | ac_status=$? | |
12578 | grep -v '^ *+' conftest.er1 >conftest.err | |
12579 | rm -f conftest.er1 | |
12580 | cat conftest.err >&5 | |
12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12582 | (exit $ac_status); } && { | |
12583 | test -z "$ac_cxx_werror_flag" || | |
12584 | test ! -s conftest.err | |
12585 | } && test -s conftest$ac_exeext && | |
12586 | $as_test_x conftest$ac_exeext; then | |
12587 | ||
12588 | lt_aix_libpath_sed=' | |
12589 | /Import File Strings/,/^$/ { | |
12590 | /^0/ { | |
12591 | s/^0 *\(.*\)$/\1/ | |
12592 | p | |
12593 | } | |
12594 | }' | |
12595 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12596 | # Check for a 64-bit object if we didn't find anything. | |
12597 | if test -z "$aix_libpath"; then | |
12598 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12599 | fi | |
12600 | else | |
12601 | echo "$as_me: failed program was:" >&5 | |
12602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12603 | ||
12604 | ||
12605 | fi | |
12606 | ||
12607 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12608 | conftest$ac_exeext conftest.$ac_ext | |
12609 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12610 | ||
12611 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12612 | # Warning - without using the other run time loading flags, | |
12613 | # -berok will link without error, but may produce a broken library. | |
12614 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12615 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12616 | # Exported symbols can be pulled into shared objects from archives | |
12617 | whole_archive_flag_spec_CXX='$convenience' | |
12618 | archive_cmds_need_lc_CXX=yes | |
12619 | # This is similar to how AIX traditionally builds its shared libraries. | |
12620 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
12621 | fi | |
12622 | fi | |
12623 | ;; | |
12624 | ||
12625 | beos*) | |
12626 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
12627 | allow_undefined_flag_CXX=unsupported | |
12628 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12629 | # support --undefined. This deserves some investigation. FIXME | |
12630 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12631 | else | |
12632 | ld_shlibs_CXX=no | |
12633 | fi | |
12634 | ;; | |
12635 | ||
12636 | chorus*) | |
12637 | case $cc_basename in | |
12638 | *) | |
12639 | # FIXME: insert proper C++ library support | |
12640 | ld_shlibs_CXX=no | |
12641 | ;; | |
12642 | esac | |
12643 | ;; | |
12644 | ||
12645 | cygwin* | mingw* | pw32*) | |
12646 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12647 | # as there is no search path for DLLs. | |
12648 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12649 | allow_undefined_flag_CXX=unsupported | |
12650 | always_export_symbols_CXX=no | |
12651 | enable_shared_with_static_runtimes_CXX=yes | |
12652 | ||
12653 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
12654 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12655 | # If the export-symbols file already is a .def file (1st line | |
12656 | # is EXPORTS), use it as is; otherwise, prepend... | |
12657 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12658 | cp $export_symbols $output_objdir/$soname.def; | |
12659 | else | |
12660 | echo EXPORTS > $output_objdir/$soname.def; | |
12661 | cat $export_symbols >> $output_objdir/$soname.def; | |
12662 | fi~ | |
12663 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12664 | else | |
12665 | ld_shlibs_CXX=no | |
12666 | fi | |
12667 | ;; | |
12668 | darwin* | rhapsody*) | |
db137867 AC |
12669 | archive_cmds_need_lc_CXX=no |
12670 | hardcode_direct_CXX=no | |
12671 | hardcode_automatic_CXX=yes | |
12672 | hardcode_shlibpath_var_CXX=unsupported | |
12673 | whole_archive_flag_spec_CXX='' | |
12674 | link_all_deplibs_CXX=yes | |
b676ea3b AC |
12675 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
12676 | if test "$GXX" = yes ; then | |
db137867 | 12677 | output_verbose_link_cmd='echo' |
b676ea3b AC |
12678 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
12679 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12680 | archive_expsym_cmds_CXX="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}" | |
12681 | module_expsym_cmds_CXX="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}" | |
12682 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
12683 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
12684 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
db137867 | 12685 | fi |
db137867 AC |
12686 | else |
12687 | case $cc_basename in | |
12688 | xlc*) | |
12689 | output_verbose_link_cmd='echo' | |
12690 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' | |
12691 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
12692 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
12693 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12694 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12695 | ;; | |
12696 | *) | |
12697 | ld_shlibs_CXX=no | |
12698 | ;; | |
12699 | esac | |
12700 | fi | |
12701 | ;; | |
12702 | ||
12703 | dgux*) | |
12704 | case $cc_basename in | |
12705 | ec++*) | |
12706 | # FIXME: insert proper C++ library support | |
12707 | ld_shlibs_CXX=no | |
12708 | ;; | |
12709 | ghcx*) | |
12710 | # Green Hills C++ Compiler | |
12711 | # FIXME: insert proper C++ library support | |
12712 | ld_shlibs_CXX=no | |
12713 | ;; | |
12714 | *) | |
12715 | # FIXME: insert proper C++ library support | |
12716 | ld_shlibs_CXX=no | |
12717 | ;; | |
12718 | esac | |
12719 | ;; | |
12720 | freebsd[12]*) | |
12721 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
12722 | ld_shlibs_CXX=no | |
12723 | ;; | |
12724 | freebsd-elf*) | |
12725 | archive_cmds_need_lc_CXX=no | |
12726 | ;; | |
12727 | freebsd* | dragonfly*) | |
12728 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
12729 | # conventions | |
12730 | ld_shlibs_CXX=yes | |
12731 | ;; | |
12732 | gnu*) | |
12733 | ;; | |
12734 | hpux9*) | |
12735 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12736 | hardcode_libdir_separator_CXX=: | |
12737 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12738 | hardcode_direct_CXX=yes | |
12739 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12740 | # but as the default | |
12741 | # location of the library. | |
12742 | ||
12743 | case $cc_basename in | |
12744 | CC*) | |
12745 | # FIXME: insert proper C++ library support | |
12746 | ld_shlibs_CXX=no | |
12747 | ;; | |
12748 | aCC*) | |
12749 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12750 | # Commands to make compiler produce verbose output that lists | |
12751 | # what "hidden" libraries, object files and flags are used when | |
12752 | # linking a shared library. | |
12753 | # | |
12754 | # There doesn't appear to be a way to prevent this compiler from | |
12755 | # explicitly linking system object files so we need to strip them | |
12756 | # from the output so that they don't get included in the library | |
12757 | # dependencies. | |
12758 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
12759 | ;; | |
12760 | *) | |
12761 | if test "$GXX" = yes; then | |
12762 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12763 | else | |
12764 | # FIXME: insert proper C++ library support | |
12765 | ld_shlibs_CXX=no | |
12766 | fi | |
12767 | ;; | |
12768 | esac | |
12769 | ;; | |
12770 | hpux10*|hpux11*) | |
12771 | if test $with_gnu_ld = no; then | |
12772 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12773 | hardcode_libdir_separator_CXX=: | |
12774 | ||
12775 | case $host_cpu in | |
12776 | hppa*64*|ia64*) ;; | |
12777 | *) | |
12778 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12779 | ;; | |
12780 | esac | |
12781 | fi | |
12782 | case $host_cpu in | |
12783 | hppa*64*|ia64*) | |
12784 | hardcode_direct_CXX=no | |
12785 | hardcode_shlibpath_var_CXX=no | |
12786 | ;; | |
12787 | *) | |
12788 | hardcode_direct_CXX=yes | |
12789 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12790 | # but as the default | |
12791 | # location of the library. | |
12792 | ;; | |
12793 | esac | |
12794 | ||
12795 | case $cc_basename in | |
12796 | CC*) | |
12797 | # FIXME: insert proper C++ library support | |
12798 | ld_shlibs_CXX=no | |
12799 | ;; | |
12800 | aCC*) | |
12801 | case $host_cpu in | |
12802 | hppa*64*) | |
12803 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12804 | ;; | |
12805 | ia64*) | |
12806 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12807 | ;; | |
12808 | *) | |
12809 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12810 | ;; | |
12811 | esac | |
12812 | # Commands to make compiler produce verbose output that lists | |
12813 | # what "hidden" libraries, object files and flags are used when | |
12814 | # linking a shared library. | |
12815 | # | |
12816 | # There doesn't appear to be a way to prevent this compiler from | |
12817 | # explicitly linking system object files so we need to strip them | |
12818 | # from the output so that they don't get included in the library | |
12819 | # dependencies. | |
12820 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
12821 | ;; | |
12822 | *) | |
12823 | if test "$GXX" = yes; then | |
12824 | if test $with_gnu_ld = no; then | |
12825 | case $host_cpu in | |
12826 | hppa*64*) | |
12827 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12828 | ;; | |
12829 | ia64*) | |
12830 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12831 | ;; | |
12832 | *) | |
12833 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12834 | ;; | |
12835 | esac | |
12836 | fi | |
12837 | else | |
12838 | # FIXME: insert proper C++ library support | |
12839 | ld_shlibs_CXX=no | |
12840 | fi | |
12841 | ;; | |
12842 | esac | |
12843 | ;; | |
12844 | interix[3-9]*) | |
12845 | hardcode_direct_CXX=no | |
12846 | hardcode_shlibpath_var_CXX=no | |
12847 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12848 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12849 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12850 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12851 | # default) and relocated if they conflict, which is a slow very memory | |
12852 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12853 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12854 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12855 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12856 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12857 | ;; | |
12858 | irix5* | irix6*) | |
12859 | case $cc_basename in | |
12860 | CC*) | |
12861 | # SGI C++ | |
12862 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
12863 | ||
12864 | # Archives containing C++ object files must be created using | |
12865 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12866 | # necessary to make sure instantiated templates are included | |
12867 | # in the archive. | |
12868 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12869 | ;; | |
12870 | *) | |
12871 | if test "$GXX" = yes; then | |
12872 | if test "$with_gnu_ld" = no; then | |
12873 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12874 | else | |
12875 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
12876 | fi | |
12877 | fi | |
12878 | link_all_deplibs_CXX=yes | |
12879 | ;; | |
12880 | esac | |
12881 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12882 | hardcode_libdir_separator_CXX=: | |
12883 | ;; | |
12884 | linux* | k*bsd*-gnu) | |
12885 | case $cc_basename in | |
12886 | KCC*) | |
12887 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12888 | ||
12889 | # KCC will only create a shared library if the output file | |
12890 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12891 | # to its proper name (with version) after linking. | |
12892 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
12893 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
12894 | # Commands to make compiler produce verbose output that lists | |
12895 | # what "hidden" libraries, object files and flags are used when | |
12896 | # linking a shared library. | |
12897 | # | |
12898 | # There doesn't appear to be a way to prevent this compiler from | |
12899 | # explicitly linking system object files so we need to strip them | |
12900 | # from the output so that they don't get included in the library | |
12901 | # dependencies. | |
12902 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
12903 | ||
12904 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
12905 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12906 | ||
12907 | # Archives containing C++ object files must be created using | |
12908 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12909 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12910 | ;; | |
12911 | icpc*) | |
12912 | # Intel C++ | |
12913 | with_gnu_ld=yes | |
12914 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12915 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12916 | # earlier do not add the objects themselves. | |
12917 | case `$CC -V 2>&1` in | |
12918 | *"Version 7."*) | |
12919 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12920 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12921 | ;; | |
12922 | *) # Version 8.0 or newer | |
12923 | tmp_idyn= | |
12924 | case $host_cpu in | |
12925 | ia64*) tmp_idyn=' -i_dynamic';; | |
12926 | esac | |
12927 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12928 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12929 | ;; | |
12930 | esac | |
12931 | archive_cmds_need_lc_CXX=no | |
12932 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12933 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12934 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12935 | ;; | |
b676ea3b | 12936 | pgCC* | pgcpp*) |
db137867 AC |
12937 | # Portland Group C++ compiler |
12938 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12939 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
12940 | ||
12941 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12942 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12943 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
12944 | ;; | |
12945 | cxx*) | |
12946 | # Compaq C++ | |
12947 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12948 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
12949 | ||
12950 | runpath_var=LD_RUN_PATH | |
12951 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12952 | hardcode_libdir_separator_CXX=: | |
12953 | ||
12954 | # Commands to make compiler produce verbose output that lists | |
12955 | # what "hidden" libraries, object files and flags are used when | |
12956 | # linking a shared library. | |
12957 | # | |
12958 | # There doesn't appear to be a way to prevent this compiler from | |
12959 | # explicitly linking system object files so we need to strip them | |
12960 | # from the output so that they don't get included in the library | |
12961 | # dependencies. | |
12962 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
12963 | ;; | |
12964 | *) | |
12965 | case `$CC -V 2>&1 | sed 5q` in | |
12966 | *Sun\ C*) | |
12967 | # Sun C++ 5.9 | |
12968 | no_undefined_flag_CXX=' -zdefs' | |
12969 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12970 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
12971 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12972 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
12973 | ||
12974 | # Not sure whether something based on | |
12975 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12976 | # would be better. | |
12977 | output_verbose_link_cmd='echo' | |
12978 | ||
12979 | # Archives containing C++ object files must be created using | |
12980 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12981 | # necessary to make sure instantiated templates are included | |
12982 | # in the archive. | |
12983 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12984 | ;; | |
12985 | esac | |
12986 | ;; | |
12987 | esac | |
12988 | ;; | |
12989 | lynxos*) | |
12990 | # FIXME: insert proper C++ library support | |
12991 | ld_shlibs_CXX=no | |
12992 | ;; | |
12993 | m88k*) | |
12994 | # FIXME: insert proper C++ library support | |
12995 | ld_shlibs_CXX=no | |
12996 | ;; | |
12997 | mvs*) | |
12998 | case $cc_basename in | |
12999 | cxx*) | |
13000 | # FIXME: insert proper C++ library support | |
13001 | ld_shlibs_CXX=no | |
13002 | ;; | |
13003 | *) | |
13004 | # FIXME: insert proper C++ library support | |
13005 | ld_shlibs_CXX=no | |
13006 | ;; | |
13007 | esac | |
13008 | ;; | |
13009 | netbsd* | netbsdelf*-gnu) | |
13010 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13011 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13012 | wlarc= | |
13013 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13014 | hardcode_direct_CXX=yes | |
13015 | hardcode_shlibpath_var_CXX=no | |
13016 | fi | |
13017 | # Workaround some broken pre-1.5 toolchains | |
13018 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13019 | ;; | |
13020 | openbsd2*) | |
13021 | # C++ shared libraries are fairly broken | |
13022 | ld_shlibs_CXX=no | |
13023 | ;; | |
13024 | openbsd*) | |
13025 | if test -f /usr/libexec/ld.so; then | |
13026 | hardcode_direct_CXX=yes | |
13027 | hardcode_shlibpath_var_CXX=no | |
13028 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13029 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13030 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13031 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13032 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13033 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13034 | fi | |
13035 | output_verbose_link_cmd='echo' | |
13036 | else | |
13037 | ld_shlibs_CXX=no | |
13038 | fi | |
13039 | ;; | |
13040 | osf3*) | |
13041 | case $cc_basename in | |
13042 | KCC*) | |
13043 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13044 | ||
13045 | # KCC will only create a shared library if the output file | |
13046 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13047 | # to its proper name (with version) after linking. | |
13048 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13049 | ||
13050 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13051 | hardcode_libdir_separator_CXX=: | |
13052 | ||
13053 | # Archives containing C++ object files must be created using | |
13054 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13055 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13056 | ||
13057 | ;; | |
13058 | RCC*) | |
13059 | # Rational C++ 2.4.1 | |
13060 | # FIXME: insert proper C++ library support | |
13061 | ld_shlibs_CXX=no | |
13062 | ;; | |
13063 | cxx*) | |
13064 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13065 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
13066 | ||
13067 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13068 | hardcode_libdir_separator_CXX=: | |
13069 | ||
13070 | # Commands to make compiler produce verbose output that lists | |
13071 | # what "hidden" libraries, object files and flags are used when | |
13072 | # linking a shared library. | |
13073 | # | |
13074 | # There doesn't appear to be a way to prevent this compiler from | |
13075 | # explicitly linking system object files so we need to strip them | |
13076 | # from the output so that they don't get included in the library | |
13077 | # dependencies. | |
13078 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
13079 | ;; | |
13080 | *) | |
13081 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13082 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13083 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13084 | ||
13085 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13086 | hardcode_libdir_separator_CXX=: | |
13087 | ||
13088 | # Commands to make compiler produce verbose output that lists | |
13089 | # what "hidden" libraries, object files and flags are used when | |
13090 | # linking a shared library. | |
13091 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
13092 | ||
13093 | else | |
13094 | # FIXME: insert proper C++ library support | |
13095 | ld_shlibs_CXX=no | |
13096 | fi | |
13097 | ;; | |
13098 | esac | |
13099 | ;; | |
13100 | osf4* | osf5*) | |
13101 | case $cc_basename in | |
13102 | KCC*) | |
13103 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13104 | ||
13105 | # KCC will only create a shared library if the output file | |
13106 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13107 | # to its proper name (with version) after linking. | |
13108 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13109 | ||
13110 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13111 | hardcode_libdir_separator_CXX=: | |
13112 | ||
13113 | # Archives containing C++ object files must be created using | |
13114 | # the KAI C++ compiler. | |
13115 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
13116 | ;; | |
13117 | RCC*) | |
13118 | # Rational C++ 2.4.1 | |
13119 | # FIXME: insert proper C++ library support | |
13120 | ld_shlibs_CXX=no | |
13121 | ;; | |
13122 | cxx*) | |
13123 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13124 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
13125 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13126 | echo "-hidden">> $lib.exp~ | |
13127 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13128 | $rm $lib.exp' | |
13129 | ||
13130 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13131 | hardcode_libdir_separator_CXX=: | |
13132 | ||
13133 | # Commands to make compiler produce verbose output that lists | |
13134 | # what "hidden" libraries, object files and flags are used when | |
13135 | # linking a shared library. | |
13136 | # | |
13137 | # There doesn't appear to be a way to prevent this compiler from | |
13138 | # explicitly linking system object files so we need to strip them | |
13139 | # from the output so that they don't get included in the library | |
13140 | # dependencies. | |
13141 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
13142 | ;; | |
13143 | *) | |
13144 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13145 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13146 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13147 | ||
13148 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13149 | hardcode_libdir_separator_CXX=: | |
13150 | ||
13151 | # Commands to make compiler produce verbose output that lists | |
13152 | # what "hidden" libraries, object files and flags are used when | |
13153 | # linking a shared library. | |
13154 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
13155 | ||
13156 | else | |
13157 | # FIXME: insert proper C++ library support | |
13158 | ld_shlibs_CXX=no | |
13159 | fi | |
13160 | ;; | |
13161 | esac | |
13162 | ;; | |
13163 | psos*) | |
13164 | # FIXME: insert proper C++ library support | |
13165 | ld_shlibs_CXX=no | |
13166 | ;; | |
13167 | sunos4*) | |
13168 | case $cc_basename in | |
13169 | CC*) | |
13170 | # Sun C++ 4.x | |
13171 | # FIXME: insert proper C++ library support | |
13172 | ld_shlibs_CXX=no | |
13173 | ;; | |
13174 | lcc*) | |
13175 | # Lucid | |
13176 | # FIXME: insert proper C++ library support | |
13177 | ld_shlibs_CXX=no | |
13178 | ;; | |
13179 | *) | |
13180 | # FIXME: insert proper C++ library support | |
13181 | ld_shlibs_CXX=no | |
13182 | ;; | |
13183 | esac | |
13184 | ;; | |
13185 | solaris*) | |
13186 | case $cc_basename in | |
13187 | CC*) | |
13188 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13189 | archive_cmds_need_lc_CXX=yes | |
13190 | no_undefined_flag_CXX=' -zdefs' | |
13191 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13192 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13193 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
13194 | ||
13195 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13196 | hardcode_shlibpath_var_CXX=no | |
13197 | case $host_os in | |
13198 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13199 | *) | |
13200 | # The compiler driver will combine and reorder linker options, | |
13201 | # but understands `-z linker_flag'. | |
13202 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13203 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13204 | ;; | |
13205 | esac | |
13206 | link_all_deplibs_CXX=yes | |
13207 | ||
13208 | output_verbose_link_cmd='echo' | |
13209 | ||
13210 | # Archives containing C++ object files must be created using | |
13211 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13212 | # necessary to make sure instantiated templates are included | |
13213 | # in the archive. | |
13214 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13215 | ;; | |
13216 | gcx*) | |
13217 | # Green Hills C++ Compiler | |
13218 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13219 | ||
13220 | # The C++ compiler must be used to create the archive. | |
13221 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13222 | ;; | |
13223 | *) | |
13224 | # GNU C++ compiler with Solaris linker | |
13225 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13226 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13227 | if $CC --version | grep -v '^2\.7' > /dev/null; then | |
13228 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13229 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13230 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
13231 | ||
13232 | # Commands to make compiler produce verbose output that lists | |
13233 | # what "hidden" libraries, object files and flags are used when | |
13234 | # linking a shared library. | |
13235 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
13236 | else | |
13237 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13238 | # platform. | |
13239 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13240 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13241 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
13242 | ||
13243 | # Commands to make compiler produce verbose output that lists | |
13244 | # what "hidden" libraries, object files and flags are used when | |
13245 | # linking a shared library. | |
13246 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
13247 | fi | |
13248 | ||
13249 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13250 | case $host_os in | |
13251 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13252 | *) | |
13253 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13254 | ;; | |
13255 | esac | |
13256 | fi | |
13257 | ;; | |
13258 | esac | |
13259 | ;; | |
13260 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13261 | no_undefined_flag_CXX='${wl}-z,text' | |
13262 | archive_cmds_need_lc_CXX=no | |
13263 | hardcode_shlibpath_var_CXX=no | |
13264 | runpath_var='LD_RUN_PATH' | |
13265 | ||
13266 | case $cc_basename in | |
13267 | CC*) | |
13268 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13269 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13270 | ;; | |
13271 | *) | |
13272 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13273 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13274 | ;; | |
13275 | esac | |
13276 | ;; | |
13277 | sysv5* | sco3.2v5* | sco5v6*) | |
13278 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13279 | # link with -lc, and that would cause any symbols used from libc to | |
13280 | # always be unresolved, which means just about no library would | |
13281 | # ever link correctly. If we're not using GNU ld we use -z text | |
13282 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13283 | # as -z defs. | |
13284 | # For security reasons, it is highly recommended that you always | |
13285 | # use absolute paths for naming shared libraries, and exclude the | |
13286 | # DT_RUNPATH tag from executables and libraries. But doing so | |
13287 | # requires that you compile everything twice, which is a pain. | |
13288 | # So that behaviour is only enabled if SCOABSPATH is set to a | |
13289 | # non-empty value in the environment. Most likely only useful for | |
13290 | # creating official distributions of packages. | |
13291 | # This is a hack until libtool officially supports absolute path | |
13292 | # names for shared libraries. | |
13293 | no_undefined_flag_CXX='${wl}-z,text' | |
13294 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13295 | archive_cmds_need_lc_CXX=no | |
13296 | hardcode_shlibpath_var_CXX=no | |
13297 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
13298 | hardcode_libdir_separator_CXX=':' | |
13299 | link_all_deplibs_CXX=yes | |
13300 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13301 | runpath_var='LD_RUN_PATH' | |
13302 | ||
13303 | case $cc_basename in | |
13304 | CC*) | |
13305 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13306 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13307 | ;; | |
13308 | *) | |
13309 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13310 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13311 | ;; | |
13312 | esac | |
13313 | ;; | |
13314 | tandem*) | |
13315 | case $cc_basename in | |
13316 | NCC*) | |
13317 | # NonStop-UX NCC 3.20 | |
13318 | # FIXME: insert proper C++ library support | |
13319 | ld_shlibs_CXX=no | |
13320 | ;; | |
13321 | *) | |
13322 | # FIXME: insert proper C++ library support | |
13323 | ld_shlibs_CXX=no | |
13324 | ;; | |
13325 | esac | |
13326 | ;; | |
13327 | vxworks*) | |
13328 | # FIXME: insert proper C++ library support | |
13329 | ld_shlibs_CXX=no | |
13330 | ;; | |
13331 | *) | |
13332 | # FIXME: insert proper C++ library support | |
13333 | ld_shlibs_CXX=no | |
13334 | ;; | |
13335 | esac | |
13336 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
13337 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
13338 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13339 | ||
13340 | GCC_CXX="$GXX" | |
13341 | LD_CXX="$LD" | |
13342 | ||
db137867 AC |
13343 | cat > conftest.$ac_ext <<EOF |
13344 | class Foo | |
13345 | { | |
13346 | public: | |
13347 | Foo (void) { a = 0; } | |
13348 | private: | |
13349 | int a; | |
13350 | }; | |
13351 | EOF | |
13352 | ||
13353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13354 | (eval $ac_compile) 2>&5 | |
13355 | ac_status=$? | |
13356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13357 | (exit $ac_status); }; then | |
13358 | # Parse the compiler output and extract the necessary | |
13359 | # objects, libraries and library flags. | |
13360 | ||
13361 | # Sentinel used to keep track of whether or not we are before | |
13362 | # the conftest object file. | |
13363 | pre_test_object_deps_done=no | |
13364 | ||
13365 | # The `*' in the case matches for architectures that use `case' in | |
13366 | # $output_verbose_cmd can trigger glob expansion during the loop | |
13367 | # eval without this substitution. | |
13368 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
13369 | ||
13370 | for p in `eval $output_verbose_link_cmd`; do | |
13371 | case $p in | |
13372 | ||
13373 | -L* | -R* | -l*) | |
13374 | # Some compilers place space between "-{L,R}" and the path. | |
13375 | # Remove the space. | |
13376 | if test $p = "-L" \ | |
13377 | || test $p = "-R"; then | |
13378 | prev=$p | |
13379 | continue | |
13380 | else | |
13381 | prev= | |
13382 | fi | |
13383 | ||
13384 | if test "$pre_test_object_deps_done" = no; then | |
13385 | case $p in | |
13386 | -L* | -R*) | |
13387 | # Internal compiler library paths should come after those | |
13388 | # provided the user. The postdeps already come after the | |
13389 | # user supplied libs so there is no need to process them. | |
13390 | if test -z "$compiler_lib_search_path_CXX"; then | |
13391 | compiler_lib_search_path_CXX="${prev}${p}" | |
13392 | else | |
13393 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13394 | fi | |
13395 | ;; | |
13396 | # The "-l" case would never come before the object being | |
13397 | # linked, so don't bother handling this case. | |
13398 | esac | |
13399 | else | |
13400 | if test -z "$postdeps_CXX"; then | |
13401 | postdeps_CXX="${prev}${p}" | |
13402 | else | |
13403 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13404 | fi | |
13405 | fi | |
13406 | ;; | |
13407 | ||
13408 | *.$objext) | |
13409 | # This assumes that the test object file only shows up | |
13410 | # once in the compiler output. | |
13411 | if test "$p" = "conftest.$objext"; then | |
13412 | pre_test_object_deps_done=yes | |
13413 | continue | |
13414 | fi | |
13415 | ||
13416 | if test "$pre_test_object_deps_done" = no; then | |
13417 | if test -z "$predep_objects_CXX"; then | |
13418 | predep_objects_CXX="$p" | |
13419 | else | |
13420 | predep_objects_CXX="$predep_objects_CXX $p" | |
13421 | fi | |
13422 | else | |
13423 | if test -z "$postdep_objects_CXX"; then | |
13424 | postdep_objects_CXX="$p" | |
13425 | else | |
13426 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13427 | fi | |
13428 | fi | |
13429 | ;; | |
13430 | ||
13431 | *) ;; # Ignore the rest. | |
13432 | ||
13433 | esac | |
13434 | done | |
13435 | ||
13436 | # Clean up. | |
13437 | rm -f a.out a.exe | |
13438 | else | |
13439 | echo "libtool.m4: error: problem compiling CXX test program" | |
13440 | fi | |
13441 | ||
13442 | $rm -f confest.$objext | |
13443 | ||
b676ea3b AC |
13444 | compiler_lib_search_dirs_CXX= |
13445 | if test -n "$compiler_lib_search_path_CXX"; then | |
13446 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13447 | fi | |
13448 | ||
db137867 AC |
13449 | # PORTME: override above test on systems where it is broken |
13450 | case $host_os in | |
13451 | interix[3-9]*) | |
13452 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13453 | # hack all around it, let's just trust "g++" to DTRT. | |
13454 | predep_objects_CXX= | |
13455 | postdep_objects_CXX= | |
13456 | postdeps_CXX= | |
13457 | ;; | |
13458 | ||
13459 | linux*) | |
13460 | case `$CC -V 2>&1 | sed 5q` in | |
13461 | *Sun\ C*) | |
13462 | # Sun C++ 5.9 | |
13463 | # | |
13464 | # The more standards-conforming stlport4 library is | |
13465 | # incompatible with the Cstd library. Avoid specifying | |
13466 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13467 | # -library=stlport4 depends on it. | |
13468 | case " $CXX $CXXFLAGS " in | |
13469 | *" -library=stlport4 "*) | |
13470 | solaris_use_stlport4=yes | |
13471 | ;; | |
13472 | esac | |
13473 | if test "$solaris_use_stlport4" != yes; then | |
13474 | postdeps_CXX='-library=Cstd -library=Crun' | |
13475 | fi | |
13476 | ;; | |
13477 | esac | |
13478 | ;; | |
13479 | ||
13480 | solaris*) | |
13481 | case $cc_basename in | |
13482 | CC*) | |
13483 | # The more standards-conforming stlport4 library is | |
13484 | # incompatible with the Cstd library. Avoid specifying | |
13485 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13486 | # -library=stlport4 depends on it. | |
13487 | case " $CXX $CXXFLAGS " in | |
13488 | *" -library=stlport4 "*) | |
13489 | solaris_use_stlport4=yes | |
13490 | ;; | |
13491 | esac | |
13492 | ||
13493 | # Adding this requires a known-good setup of shared libraries for | |
13494 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13495 | # archive will be linked into the output, leading to subtle bugs. | |
13496 | if test "$solaris_use_stlport4" != yes; then | |
13497 | postdeps_CXX='-library=Cstd -library=Crun' | |
13498 | fi | |
13499 | ;; | |
13500 | esac | |
13501 | ;; | |
13502 | esac | |
13503 | ||
db137867 AC |
13504 | case " $postdeps_CXX " in |
13505 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13506 | esac | |
13507 | ||
13508 | lt_prog_compiler_wl_CXX= | |
13509 | lt_prog_compiler_pic_CXX= | |
13510 | lt_prog_compiler_static_CXX= | |
13511 | ||
13512 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13513 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
13514 | ||
13515 | # C++ specific cases for pic, static, wl, etc. | |
13516 | if test "$GXX" = yes; then | |
13517 | lt_prog_compiler_wl_CXX='-Wl,' | |
13518 | lt_prog_compiler_static_CXX='-static' | |
13519 | ||
13520 | case $host_os in | |
13521 | aix*) | |
13522 | # All AIX code is PIC. | |
13523 | if test "$host_cpu" = ia64; then | |
13524 | # AIX 5 now supports IA64 processor | |
13525 | lt_prog_compiler_static_CXX='-Bstatic' | |
13526 | fi | |
13527 | ;; | |
13528 | amigaos*) | |
13529 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13530 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13531 | # like `-m68040'. | |
13532 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13533 | ;; | |
13534 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13535 | # PIC is the default for these OSes. | |
13536 | ;; | |
13537 | mingw* | cygwin* | os2* | pw32*) | |
13538 | # This hack is so that the source file can tell whether it is being | |
13539 | # built for inclusion in a dll (and should export symbols for example). | |
13540 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13541 | # (--disable-auto-import) libraries | |
13542 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13543 | ;; | |
13544 | darwin* | rhapsody*) | |
13545 | # PIC is the default on this platform | |
13546 | # Common symbols not allowed in MH_DYLIB files | |
13547 | lt_prog_compiler_pic_CXX='-fno-common' | |
13548 | ;; | |
13549 | *djgpp*) | |
13550 | # DJGPP does not support shared libraries at all | |
13551 | lt_prog_compiler_pic_CXX= | |
13552 | ;; | |
13553 | interix[3-9]*) | |
13554 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13555 | # Instead, we relocate shared libraries at runtime. | |
13556 | ;; | |
13557 | sysv4*MP*) | |
13558 | if test -d /usr/nec; then | |
13559 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13560 | fi | |
13561 | ;; | |
13562 | hpux*) | |
13563 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13564 | # not for PA HP-UX. | |
13565 | case $host_cpu in | |
13566 | hppa*64*|ia64*) | |
13567 | ;; | |
13568 | *) | |
13569 | lt_prog_compiler_pic_CXX='-fPIC' | |
13570 | ;; | |
13571 | esac | |
13572 | ;; | |
13573 | *) | |
13574 | lt_prog_compiler_pic_CXX='-fPIC' | |
13575 | ;; | |
13576 | esac | |
13577 | else | |
13578 | case $host_os in | |
b676ea3b | 13579 | aix[4-9]*) |
db137867 AC |
13580 | # All AIX code is PIC. |
13581 | if test "$host_cpu" = ia64; then | |
13582 | # AIX 5 now supports IA64 processor | |
13583 | lt_prog_compiler_static_CXX='-Bstatic' | |
13584 | else | |
13585 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
13586 | fi | |
13587 | ;; | |
13588 | chorus*) | |
13589 | case $cc_basename in | |
13590 | cxch68*) | |
13591 | # Green Hills C++ Compiler | |
13592 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
13593 | ;; | |
13594 | esac | |
13595 | ;; | |
13596 | darwin*) | |
13597 | # PIC is the default on this platform | |
13598 | # Common symbols not allowed in MH_DYLIB files | |
13599 | case $cc_basename in | |
13600 | xlc*) | |
13601 | lt_prog_compiler_pic_CXX='-qnocommon' | |
13602 | lt_prog_compiler_wl_CXX='-Wl,' | |
13603 | ;; | |
13604 | esac | |
13605 | ;; | |
13606 | dgux*) | |
13607 | case $cc_basename in | |
13608 | ec++*) | |
13609 | lt_prog_compiler_pic_CXX='-KPIC' | |
13610 | ;; | |
13611 | ghcx*) | |
13612 | # Green Hills C++ Compiler | |
13613 | lt_prog_compiler_pic_CXX='-pic' | |
13614 | ;; | |
13615 | *) | |
13616 | ;; | |
13617 | esac | |
13618 | ;; | |
13619 | freebsd* | dragonfly*) | |
13620 | # FreeBSD uses GNU C++ | |
13621 | ;; | |
13622 | hpux9* | hpux10* | hpux11*) | |
13623 | case $cc_basename in | |
13624 | CC*) | |
13625 | lt_prog_compiler_wl_CXX='-Wl,' | |
13626 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13627 | if test "$host_cpu" != ia64; then | |
13628 | lt_prog_compiler_pic_CXX='+Z' | |
13629 | fi | |
13630 | ;; | |
13631 | aCC*) | |
13632 | lt_prog_compiler_wl_CXX='-Wl,' | |
13633 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13634 | case $host_cpu in | |
13635 | hppa*64*|ia64*) | |
13636 | # +Z the default | |
13637 | ;; | |
13638 | *) | |
13639 | lt_prog_compiler_pic_CXX='+Z' | |
13640 | ;; | |
13641 | esac | |
13642 | ;; | |
13643 | *) | |
13644 | ;; | |
13645 | esac | |
13646 | ;; | |
13647 | interix*) | |
13648 | # This is c89, which is MS Visual C++ (no shared libs) | |
13649 | # Anyone wants to do a port? | |
13650 | ;; | |
13651 | irix5* | irix6* | nonstopux*) | |
13652 | case $cc_basename in | |
13653 | CC*) | |
13654 | lt_prog_compiler_wl_CXX='-Wl,' | |
13655 | lt_prog_compiler_static_CXX='-non_shared' | |
13656 | # CC pic flag -KPIC is the default. | |
13657 | ;; | |
13658 | *) | |
13659 | ;; | |
13660 | esac | |
13661 | ;; | |
13662 | linux* | k*bsd*-gnu) | |
13663 | case $cc_basename in | |
13664 | KCC*) | |
13665 | # KAI C++ Compiler | |
13666 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13667 | lt_prog_compiler_pic_CXX='-fPIC' | |
13668 | ;; | |
13669 | icpc* | ecpc*) | |
13670 | # Intel C++ | |
13671 | lt_prog_compiler_wl_CXX='-Wl,' | |
13672 | lt_prog_compiler_pic_CXX='-KPIC' | |
13673 | lt_prog_compiler_static_CXX='-static' | |
13674 | ;; | |
b676ea3b | 13675 | pgCC* | pgcpp*) |
db137867 AC |
13676 | # Portland Group C++ compiler. |
13677 | lt_prog_compiler_wl_CXX='-Wl,' | |
13678 | lt_prog_compiler_pic_CXX='-fpic' | |
13679 | lt_prog_compiler_static_CXX='-Bstatic' | |
13680 | ;; | |
13681 | cxx*) | |
13682 | # Compaq C++ | |
13683 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13684 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13685 | lt_prog_compiler_pic_CXX= | |
13686 | lt_prog_compiler_static_CXX='-non_shared' | |
13687 | ;; | |
13688 | *) | |
13689 | case `$CC -V 2>&1 | sed 5q` in | |
13690 | *Sun\ C*) | |
13691 | # Sun C++ 5.9 | |
13692 | lt_prog_compiler_pic_CXX='-KPIC' | |
13693 | lt_prog_compiler_static_CXX='-Bstatic' | |
13694 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13695 | ;; | |
13696 | esac | |
13697 | ;; | |
13698 | esac | |
13699 | ;; | |
13700 | lynxos*) | |
13701 | ;; | |
13702 | m88k*) | |
13703 | ;; | |
13704 | mvs*) | |
13705 | case $cc_basename in | |
13706 | cxx*) | |
13707 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
13708 | ;; | |
13709 | *) | |
13710 | ;; | |
13711 | esac | |
13712 | ;; | |
13713 | netbsd* | netbsdelf*-gnu) | |
13714 | ;; | |
13715 | osf3* | osf4* | osf5*) | |
13716 | case $cc_basename in | |
13717 | KCC*) | |
13718 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13719 | ;; | |
13720 | RCC*) | |
13721 | # Rational C++ 2.4.1 | |
13722 | lt_prog_compiler_pic_CXX='-pic' | |
13723 | ;; | |
13724 | cxx*) | |
13725 | # Digital/Compaq C++ | |
13726 | lt_prog_compiler_wl_CXX='-Wl,' | |
13727 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13728 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13729 | lt_prog_compiler_pic_CXX= | |
13730 | lt_prog_compiler_static_CXX='-non_shared' | |
13731 | ;; | |
13732 | *) | |
13733 | ;; | |
13734 | esac | |
13735 | ;; | |
13736 | psos*) | |
13737 | ;; | |
13738 | solaris*) | |
13739 | case $cc_basename in | |
13740 | CC*) | |
13741 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13742 | lt_prog_compiler_pic_CXX='-KPIC' | |
13743 | lt_prog_compiler_static_CXX='-Bstatic' | |
13744 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13745 | ;; | |
13746 | gcx*) | |
13747 | # Green Hills C++ Compiler | |
13748 | lt_prog_compiler_pic_CXX='-PIC' | |
13749 | ;; | |
13750 | *) | |
13751 | ;; | |
13752 | esac | |
13753 | ;; | |
13754 | sunos4*) | |
13755 | case $cc_basename in | |
13756 | CC*) | |
13757 | # Sun C++ 4.x | |
13758 | lt_prog_compiler_pic_CXX='-pic' | |
13759 | lt_prog_compiler_static_CXX='-Bstatic' | |
13760 | ;; | |
13761 | lcc*) | |
13762 | # Lucid | |
13763 | lt_prog_compiler_pic_CXX='-pic' | |
13764 | ;; | |
13765 | *) | |
13766 | ;; | |
13767 | esac | |
13768 | ;; | |
13769 | tandem*) | |
13770 | case $cc_basename in | |
13771 | NCC*) | |
13772 | # NonStop-UX NCC 3.20 | |
13773 | lt_prog_compiler_pic_CXX='-KPIC' | |
13774 | ;; | |
13775 | *) | |
13776 | ;; | |
13777 | esac | |
13778 | ;; | |
13779 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13780 | case $cc_basename in | |
13781 | CC*) | |
13782 | lt_prog_compiler_wl_CXX='-Wl,' | |
13783 | lt_prog_compiler_pic_CXX='-KPIC' | |
13784 | lt_prog_compiler_static_CXX='-Bstatic' | |
13785 | ;; | |
13786 | esac | |
13787 | ;; | |
13788 | vxworks*) | |
13789 | ;; | |
13790 | *) | |
13791 | lt_prog_compiler_can_build_shared_CXX=no | |
13792 | ;; | |
13793 | esac | |
13794 | fi | |
13795 | ||
13796 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
13797 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | |
13798 | ||
13799 | # | |
13800 | # Check to make sure the PIC flag actually works. | |
13801 | # | |
13802 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13803 | ||
13804 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13805 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | |
b676ea3b | 13806 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then |
db137867 AC |
13807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13808 | else | |
b676ea3b | 13809 | lt_cv_prog_compiler_pic_works_CXX=no |
db137867 AC |
13810 | ac_outfile=conftest.$ac_objext |
13811 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13812 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13813 | # Insert the option either (1) after the last *FLAGS variable, or | |
13814 | # (2) before a word containing "conftest.", or (3) at the end. | |
13815 | # Note that $ac_compile itself does not contain backslashes and begins | |
13816 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13817 | # The option is referenced via a variable to avoid confusing sed. | |
13818 | lt_compile=`echo "$ac_compile" | $SED \ | |
13819 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13820 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13821 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 13822 | (eval echo "\"\$as_me:13822: $lt_compile\"" >&5) |
db137867 AC |
13823 | (eval "$lt_compile" 2>conftest.err) |
13824 | ac_status=$? | |
13825 | cat conftest.err >&5 | |
3202e249 | 13826 | echo "$as_me:13826: \$? = $ac_status" >&5 |
db137867 AC |
13827 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13828 | # The compiler can only warn and ignore the option if not recognized | |
13829 | # So say no if there are warnings other than the usual output. | |
13830 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13831 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13832 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 13833 | lt_cv_prog_compiler_pic_works_CXX=yes |
db137867 AC |
13834 | fi |
13835 | fi | |
13836 | $rm conftest* | |
13837 | ||
13838 | fi | |
b676ea3b AC |
13839 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
13840 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
db137867 | 13841 | |
b676ea3b | 13842 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
db137867 AC |
13843 | case $lt_prog_compiler_pic_CXX in |
13844 | "" | " "*) ;; | |
13845 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13846 | esac | |
13847 | else | |
13848 | lt_prog_compiler_pic_CXX= | |
13849 | lt_prog_compiler_can_build_shared_CXX=no | |
13850 | fi | |
13851 | ||
13852 | fi | |
13853 | case $host_os in | |
13854 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13855 | *djgpp*) | |
13856 | lt_prog_compiler_pic_CXX= | |
13857 | ;; | |
13858 | *) | |
13859 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13860 | ;; | |
13861 | esac | |
13862 | ||
13863 | # | |
13864 | # Check to make sure the static flag actually works. | |
13865 | # | |
13866 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13867 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13868 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
b676ea3b | 13869 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then |
db137867 AC |
13870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13871 | else | |
b676ea3b | 13872 | lt_cv_prog_compiler_static_works_CXX=no |
db137867 AC |
13873 | save_LDFLAGS="$LDFLAGS" |
13874 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13875 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13876 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13877 | # The linker can only warn and ignore the option if not recognized | |
13878 | # So say no if there are warnings | |
13879 | if test -s conftest.err; then | |
13880 | # Append any errors to the config.log. | |
13881 | cat conftest.err 1>&5 | |
13882 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13883 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13884 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 13885 | lt_cv_prog_compiler_static_works_CXX=yes |
db137867 AC |
13886 | fi |
13887 | else | |
b676ea3b | 13888 | lt_cv_prog_compiler_static_works_CXX=yes |
db137867 AC |
13889 | fi |
13890 | fi | |
b676ea3b | 13891 | $rm -r conftest* |
db137867 AC |
13892 | LDFLAGS="$save_LDFLAGS" |
13893 | ||
13894 | fi | |
b676ea3b AC |
13895 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
13896 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
db137867 | 13897 | |
b676ea3b | 13898 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
db137867 AC |
13899 | : |
13900 | else | |
13901 | lt_prog_compiler_static_CXX= | |
13902 | fi | |
13903 | ||
13904 | ||
13905 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13906 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
13907 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
13908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13909 | else | |
13910 | lt_cv_prog_compiler_c_o_CXX=no | |
13911 | $rm -r conftest 2>/dev/null | |
13912 | mkdir conftest | |
13913 | cd conftest | |
13914 | mkdir out | |
13915 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13916 | ||
13917 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13918 | # Insert the option either (1) after the last *FLAGS variable, or | |
13919 | # (2) before a word containing "conftest.", or (3) at the end. | |
13920 | # Note that $ac_compile itself does not contain backslashes and begins | |
13921 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13922 | lt_compile=`echo "$ac_compile" | $SED \ | |
13923 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13924 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13925 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 13926 | (eval echo "\"\$as_me:13926: $lt_compile\"" >&5) |
db137867 AC |
13927 | (eval "$lt_compile" 2>out/conftest.err) |
13928 | ac_status=$? | |
13929 | cat out/conftest.err >&5 | |
3202e249 | 13930 | echo "$as_me:13930: \$? = $ac_status" >&5 |
db137867 AC |
13931 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13932 | then | |
13933 | # The compiler can only warn and ignore the option if not recognized | |
13934 | # So say no if there are warnings | |
13935 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13936 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13937 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13938 | lt_cv_prog_compiler_c_o_CXX=yes | |
13939 | fi | |
13940 | fi | |
13941 | chmod u+w . 2>&5 | |
13942 | $rm conftest* | |
13943 | # SGI C++ compiler will create directory out/ii_files/ for | |
13944 | # template instantiation | |
13945 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
13946 | $rm out/* && rmdir out | |
13947 | cd .. | |
13948 | rmdir conftest | |
13949 | $rm conftest* | |
13950 | ||
13951 | fi | |
13952 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13953 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13954 | ||
13955 | ||
13956 | hard_links="nottested" | |
13957 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13958 | # do not overwrite the value of need_locks provided by the user | |
13959 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13960 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
13961 | hard_links=yes | |
13962 | $rm conftest* | |
13963 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13964 | touch conftest.a | |
13965 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13966 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13967 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13968 | echo "${ECHO_T}$hard_links" >&6; } | |
13969 | if test "$hard_links" = no; then | |
13970 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13971 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13972 | need_locks=warn | |
13973 | fi | |
13974 | else | |
13975 | need_locks=no | |
13976 | fi | |
13977 | ||
13978 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13979 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
13980 | ||
13981 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13982 | case $host_os in | |
b676ea3b | 13983 | aix[4-9]*) |
db137867 AC |
13984 | # If we're using GNU nm, then we don't want the "-C" option. |
13985 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13986 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
13987 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
13988 | else | |
13989 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
13990 | fi | |
13991 | ;; | |
13992 | pw32*) | |
13993 | export_symbols_cmds_CXX="$ltdll_cmds" | |
13994 | ;; | |
13995 | cygwin* | mingw*) | |
13996 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
13997 | ;; | |
13998 | linux* | k*bsd*-gnu) | |
13999 | link_all_deplibs_CXX=no | |
14000 | ;; | |
14001 | *) | |
14002 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14003 | ;; | |
14004 | esac | |
b676ea3b | 14005 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
db137867 AC |
14006 | |
14007 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
14008 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
14009 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14010 | ||
14011 | # | |
14012 | # Do we need to explicitly link libc? | |
14013 | # | |
14014 | case "x$archive_cmds_need_lc_CXX" in | |
14015 | x|xyes) | |
14016 | # Assume -lc should be added | |
14017 | archive_cmds_need_lc_CXX=yes | |
14018 | ||
14019 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14020 | case $archive_cmds_CXX in | |
14021 | *'~'*) | |
14022 | # FIXME: we may have to deal with multi-command sequences. | |
14023 | ;; | |
14024 | '$CC '*) | |
14025 | # Test whether the compiler implicitly links with -lc since on some | |
14026 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14027 | # to ld, don't add -lc before -lgcc. | |
14028 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14029 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
14030 | $rm conftest* | |
14031 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14032 | ||
14033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14034 | (eval $ac_compile) 2>&5 | |
14035 | ac_status=$? | |
14036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14037 | (exit $ac_status); } 2>conftest.err; then | |
14038 | soname=conftest | |
14039 | lib=conftest | |
14040 | libobjs=conftest.$ac_objext | |
14041 | deplibs= | |
14042 | wl=$lt_prog_compiler_wl_CXX | |
14043 | pic_flag=$lt_prog_compiler_pic_CXX | |
14044 | compiler_flags=-v | |
14045 | linker_flags=-v | |
14046 | verstring= | |
14047 | output_objdir=. | |
14048 | libname=conftest | |
14049 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14050 | allow_undefined_flag_CXX= | |
14051 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14052 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14053 | ac_status=$? | |
14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14055 | (exit $ac_status); } | |
14056 | then | |
14057 | archive_cmds_need_lc_CXX=no | |
14058 | else | |
14059 | archive_cmds_need_lc_CXX=yes | |
14060 | fi | |
14061 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14062 | else | |
14063 | cat conftest.err 1>&5 | |
14064 | fi | |
14065 | $rm conftest* | |
14066 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
14067 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | |
14068 | ;; | |
14069 | esac | |
14070 | fi | |
14071 | ;; | |
14072 | esac | |
14073 | ||
14074 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14075 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
14076 | library_names_spec= | |
14077 | libname_spec='lib$name' | |
14078 | soname_spec= | |
14079 | shrext_cmds=".so" | |
14080 | postinstall_cmds= | |
14081 | postuninstall_cmds= | |
14082 | finish_cmds= | |
14083 | finish_eval= | |
14084 | shlibpath_var= | |
14085 | shlibpath_overrides_runpath=unknown | |
14086 | version_type=none | |
14087 | dynamic_linker="$host_os ld.so" | |
14088 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14089 | ||
14090 | need_lib_prefix=unknown | |
14091 | hardcode_into_libs=no | |
14092 | ||
14093 | # when you set need_version to no, make sure it does not cause -set_version | |
14094 | # flags to be left without arguments | |
14095 | need_version=unknown | |
14096 | ||
14097 | case $host_os in | |
14098 | aix3*) | |
14099 | version_type=linux | |
14100 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14101 | shlibpath_var=LIBPATH | |
14102 | ||
14103 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14104 | soname_spec='${libname}${release}${shared_ext}$major' | |
14105 | ;; | |
14106 | ||
b676ea3b | 14107 | aix[4-9]*) |
db137867 AC |
14108 | version_type=linux |
14109 | need_lib_prefix=no | |
14110 | need_version=no | |
14111 | hardcode_into_libs=yes | |
14112 | if test "$host_cpu" = ia64; then | |
14113 | # AIX 5 supports IA64 | |
14114 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14115 | shlibpath_var=LD_LIBRARY_PATH | |
14116 | else | |
14117 | # With GCC up to 2.95.x, collect2 would create an import file | |
14118 | # for dependence libraries. The import file would start with | |
14119 | # the line `#! .'. This would cause the generated library to | |
14120 | # depend on `.', always an invalid library. This was fixed in | |
14121 | # development snapshots of GCC prior to 3.0. | |
14122 | case $host_os in | |
14123 | aix4 | aix4.[01] | aix4.[01].*) | |
14124 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14125 | echo ' yes ' | |
14126 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14127 | : | |
14128 | else | |
14129 | can_build_shared=no | |
14130 | fi | |
14131 | ;; | |
14132 | esac | |
14133 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14134 | # soname into executable. Probably we can add versioning support to | |
14135 | # collect2, so additional links can be useful in future. | |
14136 | if test "$aix_use_runtimelinking" = yes; then | |
14137 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14138 | # instead of lib<name>.a to let people know that these are not | |
14139 | # typical AIX shared libraries. | |
14140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14141 | else | |
14142 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14143 | # and later when we are not doing run time linking. | |
14144 | library_names_spec='${libname}${release}.a $libname.a' | |
14145 | soname_spec='${libname}${release}${shared_ext}$major' | |
14146 | fi | |
14147 | shlibpath_var=LIBPATH | |
14148 | fi | |
14149 | ;; | |
14150 | ||
14151 | amigaos*) | |
14152 | library_names_spec='$libname.ixlibrary $libname.a' | |
14153 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14154 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
14155 | ;; | |
14156 | ||
14157 | beos*) | |
14158 | library_names_spec='${libname}${shared_ext}' | |
14159 | dynamic_linker="$host_os ld.so" | |
14160 | shlibpath_var=LIBRARY_PATH | |
14161 | ;; | |
14162 | ||
14163 | bsdi[45]*) | |
14164 | version_type=linux | |
14165 | need_version=no | |
14166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14167 | soname_spec='${libname}${release}${shared_ext}$major' | |
14168 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14169 | shlibpath_var=LD_LIBRARY_PATH | |
14170 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14171 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14172 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14173 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14174 | # libtool to hard-code these into programs | |
14175 | ;; | |
14176 | ||
14177 | cygwin* | mingw* | pw32*) | |
14178 | version_type=windows | |
14179 | shrext_cmds=".dll" | |
14180 | need_version=no | |
14181 | need_lib_prefix=no | |
14182 | ||
14183 | case $GCC,$host_os in | |
14184 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
14185 | library_names_spec='$libname.dll.a' | |
14186 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14187 | postinstall_cmds='base_file=`basename \${file}`~ | |
14188 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14189 | dldir=$destdir/`dirname \$dlpath`~ | |
14190 | test -d \$dldir || mkdir -p \$dldir~ | |
14191 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14192 | chmod a+x \$dldir/$dlname' | |
14193 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14194 | dlpath=$dir/\$dldll~ | |
14195 | $rm \$dlpath' | |
14196 | shlibpath_overrides_runpath=yes | |
14197 | ||
14198 | case $host_os in | |
14199 | cygwin*) | |
14200 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14201 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14202 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14203 | ;; | |
14204 | mingw*) | |
14205 | # MinGW DLLs use traditional 'lib' prefix | |
14206 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14207 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14208 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14209 | # It is most probably a Windows format PATH printed by | |
14210 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14211 | # path with ; separators, and with drive letters. We can handle the | |
14212 | # drive letters (cygwin fileutils understands them), so leave them, | |
14213 | # especially as we might pass files found there to a mingw objdump, | |
14214 | # which wouldn't understand a cygwinified path. Ahh. | |
14215 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14216 | else | |
14217 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14218 | fi | |
14219 | ;; | |
14220 | pw32*) | |
14221 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14222 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14223 | ;; | |
14224 | esac | |
14225 | ;; | |
14226 | ||
14227 | *) | |
14228 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14229 | ;; | |
14230 | esac | |
14231 | dynamic_linker='Win32 ld.exe' | |
14232 | # FIXME: first we should search . and the directory the executable is in | |
14233 | shlibpath_var=PATH | |
14234 | ;; | |
14235 | ||
14236 | darwin* | rhapsody*) | |
14237 | dynamic_linker="$host_os dyld" | |
14238 | version_type=darwin | |
14239 | need_lib_prefix=no | |
14240 | need_version=no | |
14241 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14242 | soname_spec='${libname}${release}${major}$shared_ext' | |
14243 | shlibpath_overrides_runpath=yes | |
14244 | shlibpath_var=DYLD_LIBRARY_PATH | |
14245 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14246 | ||
14247 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14248 | ;; | |
14249 | ||
14250 | dgux*) | |
14251 | version_type=linux | |
14252 | need_lib_prefix=no | |
14253 | need_version=no | |
14254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14255 | soname_spec='${libname}${release}${shared_ext}$major' | |
14256 | shlibpath_var=LD_LIBRARY_PATH | |
14257 | ;; | |
14258 | ||
14259 | freebsd1*) | |
14260 | dynamic_linker=no | |
14261 | ;; | |
14262 | ||
14263 | freebsd* | dragonfly*) | |
14264 | # DragonFly does not have aout. When/if they implement a new | |
14265 | # versioning mechanism, adjust this. | |
14266 | if test -x /usr/bin/objformat; then | |
14267 | objformat=`/usr/bin/objformat` | |
14268 | else | |
14269 | case $host_os in | |
14270 | freebsd[123]*) objformat=aout ;; | |
14271 | *) objformat=elf ;; | |
14272 | esac | |
14273 | fi | |
14274 | version_type=freebsd-$objformat | |
14275 | case $version_type in | |
14276 | freebsd-elf*) | |
14277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14278 | need_version=no | |
14279 | need_lib_prefix=no | |
14280 | ;; | |
14281 | freebsd-*) | |
14282 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14283 | need_version=yes | |
14284 | ;; | |
14285 | esac | |
14286 | shlibpath_var=LD_LIBRARY_PATH | |
14287 | case $host_os in | |
14288 | freebsd2*) | |
14289 | shlibpath_overrides_runpath=yes | |
14290 | ;; | |
14291 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14292 | shlibpath_overrides_runpath=yes | |
14293 | hardcode_into_libs=yes | |
14294 | ;; | |
14295 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14296 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14297 | shlibpath_overrides_runpath=no | |
14298 | hardcode_into_libs=yes | |
14299 | ;; | |
14300 | *) # from 4.6 on, and DragonFly | |
14301 | shlibpath_overrides_runpath=yes | |
14302 | hardcode_into_libs=yes | |
14303 | ;; | |
14304 | esac | |
14305 | ;; | |
14306 | ||
14307 | gnu*) | |
14308 | version_type=linux | |
14309 | need_lib_prefix=no | |
14310 | need_version=no | |
14311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14312 | soname_spec='${libname}${release}${shared_ext}$major' | |
14313 | shlibpath_var=LD_LIBRARY_PATH | |
14314 | hardcode_into_libs=yes | |
14315 | ;; | |
14316 | ||
14317 | hpux9* | hpux10* | hpux11*) | |
14318 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14319 | # link against other versions. | |
14320 | version_type=sunos | |
14321 | need_lib_prefix=no | |
14322 | need_version=no | |
14323 | case $host_cpu in | |
14324 | ia64*) | |
14325 | shrext_cmds='.so' | |
14326 | hardcode_into_libs=yes | |
14327 | dynamic_linker="$host_os dld.so" | |
14328 | shlibpath_var=LD_LIBRARY_PATH | |
14329 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14331 | soname_spec='${libname}${release}${shared_ext}$major' | |
14332 | if test "X$HPUX_IA64_MODE" = X32; then | |
14333 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14334 | else | |
14335 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14336 | fi | |
14337 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14338 | ;; | |
14339 | hppa*64*) | |
14340 | shrext_cmds='.sl' | |
14341 | hardcode_into_libs=yes | |
14342 | dynamic_linker="$host_os dld.sl" | |
14343 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14344 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14346 | soname_spec='${libname}${release}${shared_ext}$major' | |
14347 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14348 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14349 | ;; | |
14350 | *) | |
14351 | shrext_cmds='.sl' | |
14352 | dynamic_linker="$host_os dld.sl" | |
14353 | shlibpath_var=SHLIB_PATH | |
14354 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14356 | soname_spec='${libname}${release}${shared_ext}$major' | |
14357 | ;; | |
14358 | esac | |
14359 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14360 | postinstall_cmds='chmod 555 $lib' | |
14361 | ;; | |
14362 | ||
14363 | interix[3-9]*) | |
14364 | version_type=linux | |
14365 | need_lib_prefix=no | |
14366 | need_version=no | |
14367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14368 | soname_spec='${libname}${release}${shared_ext}$major' | |
14369 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14370 | shlibpath_var=LD_LIBRARY_PATH | |
14371 | shlibpath_overrides_runpath=no | |
14372 | hardcode_into_libs=yes | |
14373 | ;; | |
14374 | ||
14375 | irix5* | irix6* | nonstopux*) | |
14376 | case $host_os in | |
14377 | nonstopux*) version_type=nonstopux ;; | |
14378 | *) | |
14379 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14380 | version_type=linux | |
14381 | else | |
14382 | version_type=irix | |
14383 | fi ;; | |
14384 | esac | |
14385 | need_lib_prefix=no | |
14386 | need_version=no | |
14387 | soname_spec='${libname}${release}${shared_ext}$major' | |
14388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14389 | case $host_os in | |
14390 | irix5* | nonstopux*) | |
14391 | libsuff= shlibsuff= | |
14392 | ;; | |
14393 | *) | |
14394 | case $LD in # libtool.m4 will add one of these switches to LD | |
14395 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14396 | libsuff= shlibsuff= libmagic=32-bit;; | |
14397 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14398 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14399 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14400 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14401 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14402 | esac | |
14403 | ;; | |
14404 | esac | |
14405 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14406 | shlibpath_overrides_runpath=no | |
14407 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14408 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14409 | hardcode_into_libs=yes | |
14410 | ;; | |
14411 | ||
14412 | # No shared lib support for Linux oldld, aout, or coff. | |
14413 | linux*oldld* | linux*aout* | linux*coff*) | |
14414 | dynamic_linker=no | |
14415 | ;; | |
14416 | ||
14417 | # This must be Linux ELF. | |
14418 | linux* | k*bsd*-gnu) | |
14419 | version_type=linux | |
14420 | need_lib_prefix=no | |
14421 | need_version=no | |
14422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14423 | soname_spec='${libname}${release}${shared_ext}$major' | |
14424 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14425 | shlibpath_var=LD_LIBRARY_PATH | |
14426 | shlibpath_overrides_runpath=no | |
14427 | # This implies no fast_install, which is unacceptable. | |
14428 | # Some rework will be needed to allow for fast_install | |
14429 | # before this can be enabled. | |
14430 | hardcode_into_libs=yes | |
14431 | ||
14432 | # Append ld.so.conf contents to the search path | |
14433 | if test -f /etc/ld.so.conf; then | |
14434 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
14435 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14436 | fi | |
14437 | ||
14438 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14439 | # powerpc, because MkLinux only supported shared libraries with the | |
14440 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14441 | # most powerpc-linux boxes support dynamic linking these days and | |
14442 | # people can always --disable-shared, the test was removed, and we | |
14443 | # assume the GNU/Linux dynamic linker is in use. | |
14444 | dynamic_linker='GNU/Linux ld.so' | |
14445 | ;; | |
14446 | ||
14447 | netbsdelf*-gnu) | |
14448 | version_type=linux | |
14449 | need_lib_prefix=no | |
14450 | need_version=no | |
14451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14452 | soname_spec='${libname}${release}${shared_ext}$major' | |
14453 | shlibpath_var=LD_LIBRARY_PATH | |
14454 | shlibpath_overrides_runpath=no | |
14455 | hardcode_into_libs=yes | |
14456 | dynamic_linker='NetBSD ld.elf_so' | |
14457 | ;; | |
14458 | ||
14459 | netbsd*) | |
14460 | version_type=sunos | |
14461 | need_lib_prefix=no | |
14462 | need_version=no | |
14463 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14465 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14466 | dynamic_linker='NetBSD (a.out) ld.so' | |
14467 | else | |
14468 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14469 | soname_spec='${libname}${release}${shared_ext}$major' | |
14470 | dynamic_linker='NetBSD ld.elf_so' | |
14471 | fi | |
14472 | shlibpath_var=LD_LIBRARY_PATH | |
14473 | shlibpath_overrides_runpath=yes | |
14474 | hardcode_into_libs=yes | |
14475 | ;; | |
14476 | ||
14477 | newsos6) | |
14478 | version_type=linux | |
14479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14480 | shlibpath_var=LD_LIBRARY_PATH | |
14481 | shlibpath_overrides_runpath=yes | |
14482 | ;; | |
14483 | ||
14484 | nto-qnx*) | |
14485 | version_type=linux | |
14486 | need_lib_prefix=no | |
14487 | need_version=no | |
14488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14489 | soname_spec='${libname}${release}${shared_ext}$major' | |
14490 | shlibpath_var=LD_LIBRARY_PATH | |
14491 | shlibpath_overrides_runpath=yes | |
14492 | ;; | |
14493 | ||
14494 | openbsd*) | |
14495 | version_type=sunos | |
14496 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14497 | need_lib_prefix=no | |
14498 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14499 | case $host_os in | |
14500 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14501 | *) need_version=no ;; | |
14502 | esac | |
14503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14504 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14505 | shlibpath_var=LD_LIBRARY_PATH | |
14506 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14507 | case $host_os in | |
14508 | openbsd2.[89] | openbsd2.[89].*) | |
14509 | shlibpath_overrides_runpath=no | |
14510 | ;; | |
14511 | *) | |
14512 | shlibpath_overrides_runpath=yes | |
14513 | ;; | |
14514 | esac | |
14515 | else | |
14516 | shlibpath_overrides_runpath=yes | |
14517 | fi | |
14518 | ;; | |
14519 | ||
14520 | os2*) | |
14521 | libname_spec='$name' | |
14522 | shrext_cmds=".dll" | |
14523 | need_lib_prefix=no | |
14524 | library_names_spec='$libname${shared_ext} $libname.a' | |
14525 | dynamic_linker='OS/2 ld.exe' | |
14526 | shlibpath_var=LIBPATH | |
14527 | ;; | |
14528 | ||
14529 | osf3* | osf4* | osf5*) | |
14530 | version_type=osf | |
14531 | need_lib_prefix=no | |
14532 | need_version=no | |
14533 | soname_spec='${libname}${release}${shared_ext}$major' | |
14534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14535 | shlibpath_var=LD_LIBRARY_PATH | |
14536 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14537 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14538 | ;; | |
14539 | ||
14540 | rdos*) | |
14541 | dynamic_linker=no | |
14542 | ;; | |
14543 | ||
14544 | solaris*) | |
14545 | version_type=linux | |
14546 | need_lib_prefix=no | |
14547 | need_version=no | |
14548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14549 | soname_spec='${libname}${release}${shared_ext}$major' | |
14550 | shlibpath_var=LD_LIBRARY_PATH | |
14551 | shlibpath_overrides_runpath=yes | |
14552 | hardcode_into_libs=yes | |
14553 | # ldd complains unless libraries are executable | |
14554 | postinstall_cmds='chmod +x $lib' | |
14555 | ;; | |
14556 | ||
14557 | sunos4*) | |
14558 | version_type=sunos | |
14559 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14560 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14561 | shlibpath_var=LD_LIBRARY_PATH | |
14562 | shlibpath_overrides_runpath=yes | |
14563 | if test "$with_gnu_ld" = yes; then | |
14564 | need_lib_prefix=no | |
14565 | fi | |
14566 | need_version=yes | |
14567 | ;; | |
14568 | ||
14569 | sysv4 | sysv4.3*) | |
14570 | version_type=linux | |
14571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14572 | soname_spec='${libname}${release}${shared_ext}$major' | |
14573 | shlibpath_var=LD_LIBRARY_PATH | |
14574 | case $host_vendor in | |
14575 | sni) | |
14576 | shlibpath_overrides_runpath=no | |
14577 | need_lib_prefix=no | |
14578 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
14579 | runpath_var=LD_RUN_PATH | |
14580 | ;; | |
14581 | siemens) | |
14582 | need_lib_prefix=no | |
14583 | ;; | |
14584 | motorola) | |
14585 | need_lib_prefix=no | |
14586 | need_version=no | |
14587 | shlibpath_overrides_runpath=no | |
14588 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14589 | ;; | |
14590 | esac | |
14591 | ;; | |
14592 | ||
14593 | sysv4*MP*) | |
14594 | if test -d /usr/nec ;then | |
14595 | version_type=linux | |
14596 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14597 | soname_spec='$libname${shared_ext}.$major' | |
14598 | shlibpath_var=LD_LIBRARY_PATH | |
14599 | fi | |
14600 | ;; | |
14601 | ||
14602 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14603 | version_type=freebsd-elf | |
14604 | need_lib_prefix=no | |
14605 | need_version=no | |
14606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14607 | soname_spec='${libname}${release}${shared_ext}$major' | |
14608 | shlibpath_var=LD_LIBRARY_PATH | |
14609 | hardcode_into_libs=yes | |
14610 | if test "$with_gnu_ld" = yes; then | |
14611 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14612 | shlibpath_overrides_runpath=no | |
14613 | else | |
14614 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14615 | shlibpath_overrides_runpath=yes | |
14616 | case $host_os in | |
14617 | sco3.2v5*) | |
14618 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14619 | ;; | |
14620 | esac | |
14621 | fi | |
14622 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14623 | ;; | |
14624 | ||
14625 | uts4*) | |
14626 | version_type=linux | |
14627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14628 | soname_spec='${libname}${release}${shared_ext}$major' | |
14629 | shlibpath_var=LD_LIBRARY_PATH | |
14630 | ;; | |
14631 | ||
14632 | *) | |
14633 | dynamic_linker=no | |
14634 | ;; | |
14635 | esac | |
14636 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
14637 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
14638 | test "$dynamic_linker" = no && can_build_shared=no | |
14639 | ||
b676ea3b AC |
14640 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14642 | else | |
14643 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" | |
14644 | fi | |
14645 | ||
14646 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14647 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14649 | else | |
14650 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" | |
14651 | fi | |
14652 | ||
14653 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
14654 | ||
db137867 AC |
14655 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
14656 | if test "$GCC" = yes; then | |
14657 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14658 | fi | |
14659 | ||
14660 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
14661 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
14662 | hardcode_action_CXX= | |
14663 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
14664 | test -n "$runpath_var_CXX" || \ | |
14665 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14666 | ||
14667 | # We can hardcode non-existant directories. | |
14668 | if test "$hardcode_direct_CXX" != no && | |
14669 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14670 | # have to relink, otherwise we might link with an installed library | |
14671 | # when we should be linking with a yet-to-be-installed one | |
14672 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14673 | test "$hardcode_minus_L_CXX" != no; then | |
14674 | # Linking always hardcodes the temporary library directory. | |
14675 | hardcode_action_CXX=relink | |
14676 | else | |
14677 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14678 | hardcode_action_CXX=immediate | |
14679 | fi | |
14680 | else | |
14681 | # We cannot hardcode anything, or else we can only hardcode existing | |
14682 | # directories. | |
14683 | hardcode_action_CXX=unsupported | |
14684 | fi | |
14685 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
14686 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } | |
14687 | ||
14688 | if test "$hardcode_action_CXX" = relink; then | |
14689 | # Fast installation is not supported | |
14690 | enable_fast_install=no | |
14691 | elif test "$shlibpath_overrides_runpath" = yes || | |
14692 | test "$enable_shared" = no; then | |
14693 | # Fast installation is not necessary | |
14694 | enable_fast_install=needless | |
14695 | fi | |
14696 | ||
14697 | ||
14698 | # The else clause should only fire when bootstrapping the | |
14699 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
14700 | # with your package, and you will get complaints that there are | |
14701 | # no rules to generate ltmain.sh. | |
14702 | if test -f "$ltmain"; then | |
14703 | # See if we are running on zsh, and set the options which allow our commands through | |
14704 | # without removal of \ escapes. | |
14705 | if test -n "${ZSH_VERSION+set}" ; then | |
14706 | setopt NO_GLOB_SUBST | |
14707 | fi | |
14708 | # Now quote all the things that may contain metacharacters while being | |
14709 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
14710 | # variables and quote the copies for generation of the libtool script. | |
14711 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
14712 | SED SHELL STRIP \ | |
14713 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
14714 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
14715 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
14716 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
14717 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14718 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
14719 | old_postinstall_cmds old_postuninstall_cmds \ | |
14720 | compiler_CXX \ | |
14721 | CC_CXX \ | |
14722 | LD_CXX \ | |
14723 | lt_prog_compiler_wl_CXX \ | |
14724 | lt_prog_compiler_pic_CXX \ | |
14725 | lt_prog_compiler_static_CXX \ | |
14726 | lt_prog_compiler_no_builtin_flag_CXX \ | |
14727 | export_dynamic_flag_spec_CXX \ | |
14728 | thread_safe_flag_spec_CXX \ | |
14729 | whole_archive_flag_spec_CXX \ | |
14730 | enable_shared_with_static_runtimes_CXX \ | |
14731 | old_archive_cmds_CXX \ | |
14732 | old_archive_from_new_cmds_CXX \ | |
14733 | predep_objects_CXX \ | |
14734 | postdep_objects_CXX \ | |
14735 | predeps_CXX \ | |
14736 | postdeps_CXX \ | |
14737 | compiler_lib_search_path_CXX \ | |
b676ea3b | 14738 | compiler_lib_search_dirs_CXX \ |
db137867 AC |
14739 | archive_cmds_CXX \ |
14740 | archive_expsym_cmds_CXX \ | |
14741 | postinstall_cmds_CXX \ | |
14742 | postuninstall_cmds_CXX \ | |
14743 | old_archive_from_expsyms_cmds_CXX \ | |
14744 | allow_undefined_flag_CXX \ | |
14745 | no_undefined_flag_CXX \ | |
14746 | export_symbols_cmds_CXX \ | |
14747 | hardcode_libdir_flag_spec_CXX \ | |
14748 | hardcode_libdir_flag_spec_ld_CXX \ | |
14749 | hardcode_libdir_separator_CXX \ | |
14750 | hardcode_automatic_CXX \ | |
14751 | module_cmds_CXX \ | |
14752 | module_expsym_cmds_CXX \ | |
14753 | lt_cv_prog_compiler_c_o_CXX \ | |
14754 | fix_srcfile_path_CXX \ | |
14755 | exclude_expsyms_CXX \ | |
14756 | include_expsyms_CXX; do | |
14757 | ||
14758 | case $var in | |
14759 | old_archive_cmds_CXX | \ | |
14760 | old_archive_from_new_cmds_CXX | \ | |
14761 | archive_cmds_CXX | \ | |
14762 | archive_expsym_cmds_CXX | \ | |
14763 | module_cmds_CXX | \ | |
14764 | module_expsym_cmds_CXX | \ | |
14765 | old_archive_from_expsyms_cmds_CXX | \ | |
14766 | export_symbols_cmds_CXX | \ | |
14767 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
14768 | postinstall_cmds | postuninstall_cmds | \ | |
14769 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
14770 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
14771 | # Double-quote double-evaled strings. | |
14772 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
14773 | ;; | |
14774 | *) | |
14775 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
14776 | ;; | |
14777 | esac | |
14778 | done | |
14779 | ||
14780 | case $lt_echo in | |
14781 | *'\$0 --fallback-echo"') | |
14782 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
14783 | ;; | |
14784 | esac | |
14785 | ||
14786 | cfgfile="$ofile" | |
14787 | ||
14788 | cat <<__EOF__ >> "$cfgfile" | |
14789 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
14790 | ||
14791 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14792 | ||
14793 | # Shell to use when invoking shell scripts. | |
14794 | SHELL=$lt_SHELL | |
14795 | ||
14796 | # Whether or not to build shared libraries. | |
14797 | build_libtool_libs=$enable_shared | |
14798 | ||
14799 | # Whether or not to build static libraries. | |
14800 | build_old_libs=$enable_static | |
14801 | ||
14802 | # Whether or not to add -lc for building shared libraries. | |
14803 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
14804 | ||
14805 | # Whether or not to disallow shared libs when runtime libs are static | |
14806 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
14807 | ||
14808 | # Whether or not to optimize for fast installation. | |
14809 | fast_install=$enable_fast_install | |
14810 | ||
14811 | # The host system. | |
14812 | host_alias=$host_alias | |
14813 | host=$host | |
14814 | host_os=$host_os | |
14815 | ||
14816 | # The build system. | |
14817 | build_alias=$build_alias | |
14818 | build=$build | |
14819 | build_os=$build_os | |
14820 | ||
14821 | # An echo program that does not interpret backslashes. | |
14822 | echo=$lt_echo | |
14823 | ||
14824 | # The archiver. | |
14825 | AR=$lt_AR | |
14826 | AR_FLAGS=$lt_AR_FLAGS | |
14827 | ||
14828 | # A C compiler. | |
14829 | LTCC=$lt_LTCC | |
14830 | ||
14831 | # LTCC compiler flags. | |
14832 | LTCFLAGS=$lt_LTCFLAGS | |
14833 | ||
14834 | # A language-specific compiler. | |
14835 | CC=$lt_compiler_CXX | |
14836 | ||
14837 | # Is the compiler the GNU C compiler? | |
14838 | with_gcc=$GCC_CXX | |
14839 | ||
14840 | # An ERE matcher. | |
14841 | EGREP=$lt_EGREP | |
14842 | ||
14843 | # The linker used to build libraries. | |
14844 | LD=$lt_LD_CXX | |
14845 | ||
14846 | # Whether we need hard or soft links. | |
14847 | LN_S=$lt_LN_S | |
14848 | ||
14849 | # A BSD-compatible nm program. | |
14850 | NM=$lt_NM | |
14851 | ||
14852 | # A symbol stripping program | |
14853 | STRIP=$lt_STRIP | |
14854 | ||
14855 | # Used to examine libraries when file_magic_cmd begins "file" | |
14856 | MAGIC_CMD=$MAGIC_CMD | |
14857 | ||
14858 | # Used on cygwin: DLL creation program. | |
14859 | DLLTOOL="$DLLTOOL" | |
14860 | ||
14861 | # Used on cygwin: object dumper. | |
14862 | OBJDUMP="$OBJDUMP" | |
14863 | ||
14864 | # Used on cygwin: assembler. | |
14865 | AS="$AS" | |
14866 | ||
14867 | # The name of the directory that contains temporary libtool files. | |
14868 | objdir=$objdir | |
14869 | ||
14870 | # How to create reloadable object files. | |
14871 | reload_flag=$lt_reload_flag | |
14872 | reload_cmds=$lt_reload_cmds | |
14873 | ||
14874 | # How to pass a linker flag through the compiler. | |
14875 | wl=$lt_lt_prog_compiler_wl_CXX | |
14876 | ||
14877 | # Object file suffix (normally "o"). | |
14878 | objext="$ac_objext" | |
14879 | ||
14880 | # Old archive suffix (normally "a"). | |
14881 | libext="$libext" | |
14882 | ||
14883 | # Shared library suffix (normally ".so"). | |
14884 | shrext_cmds='$shrext_cmds' | |
14885 | ||
14886 | # Executable file suffix (normally ""). | |
14887 | exeext="$exeext" | |
14888 | ||
14889 | # Additional compiler flags for building library objects. | |
14890 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
14891 | pic_mode=$pic_mode | |
14892 | ||
14893 | # What is the maximum length of a command? | |
14894 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
14895 | ||
14896 | # Does compiler simultaneously support -c and -o options? | |
14897 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
14898 | ||
14899 | # Must we lock files when doing compilation? | |
14900 | need_locks=$lt_need_locks | |
14901 | ||
14902 | # Do we need the lib prefix for modules? | |
14903 | need_lib_prefix=$need_lib_prefix | |
14904 | ||
14905 | # Do we need a version for libraries? | |
14906 | need_version=$need_version | |
14907 | ||
14908 | # Whether dlopen is supported. | |
14909 | dlopen_support=$enable_dlopen | |
14910 | ||
14911 | # Whether dlopen of programs is supported. | |
14912 | dlopen_self=$enable_dlopen_self | |
14913 | ||
14914 | # Whether dlopen of statically linked programs is supported. | |
14915 | dlopen_self_static=$enable_dlopen_self_static | |
14916 | ||
14917 | # Compiler flag to prevent dynamic linking. | |
14918 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
14919 | ||
14920 | # Compiler flag to turn off builtin functions. | |
14921 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
14922 | ||
14923 | # Compiler flag to allow reflexive dlopens. | |
14924 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
14925 | ||
14926 | # Compiler flag to generate shared objects directly from archives. | |
14927 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
14928 | ||
14929 | # Compiler flag to generate thread-safe objects. | |
14930 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
14931 | ||
14932 | # Library versioning type. | |
14933 | version_type=$version_type | |
14934 | ||
14935 | # Format of library name prefix. | |
14936 | libname_spec=$lt_libname_spec | |
14937 | ||
14938 | # List of archive names. First name is the real one, the rest are links. | |
14939 | # The last name is the one that the linker finds with -lNAME. | |
14940 | library_names_spec=$lt_library_names_spec | |
14941 | ||
14942 | # The coded name of the library, if different from the real name. | |
14943 | soname_spec=$lt_soname_spec | |
14944 | ||
14945 | # Commands used to build and install an old-style archive. | |
14946 | RANLIB=$lt_RANLIB | |
14947 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
14948 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14949 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14950 | ||
14951 | # Create an old-style archive from a shared archive. | |
14952 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
14953 | ||
14954 | # Create a temporary old-style archive to link instead of a shared archive. | |
14955 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
14956 | ||
14957 | # Commands used to build and install a shared archive. | |
14958 | archive_cmds=$lt_archive_cmds_CXX | |
14959 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
14960 | postinstall_cmds=$lt_postinstall_cmds | |
14961 | postuninstall_cmds=$lt_postuninstall_cmds | |
14962 | ||
14963 | # Commands used to build a loadable module (assumed same as above if empty) | |
14964 | module_cmds=$lt_module_cmds_CXX | |
14965 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
14966 | ||
14967 | # Commands to strip libraries. | |
14968 | old_striplib=$lt_old_striplib | |
14969 | striplib=$lt_striplib | |
14970 | ||
14971 | # Dependencies to place before the objects being linked to create a | |
14972 | # shared library. | |
14973 | predep_objects=$lt_predep_objects_CXX | |
14974 | ||
14975 | # Dependencies to place after the objects being linked to create a | |
14976 | # shared library. | |
14977 | postdep_objects=$lt_postdep_objects_CXX | |
14978 | ||
14979 | # Dependencies to place before the objects being linked to create a | |
14980 | # shared library. | |
14981 | predeps=$lt_predeps_CXX | |
14982 | ||
14983 | # Dependencies to place after the objects being linked to create a | |
14984 | # shared library. | |
14985 | postdeps=$lt_postdeps_CXX | |
14986 | ||
b676ea3b AC |
14987 | # The directories searched by this compiler when creating a shared |
14988 | # library | |
14989 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
14990 | ||
db137867 AC |
14991 | # The library search path used internally by the compiler when linking |
14992 | # a shared library. | |
14993 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
14994 | ||
14995 | # Method to check whether dependent libraries are shared objects. | |
14996 | deplibs_check_method=$lt_deplibs_check_method | |
14997 | ||
14998 | # Command to use when deplibs_check_method == file_magic. | |
14999 | file_magic_cmd=$lt_file_magic_cmd | |
15000 | ||
15001 | # Flag that allows shared libraries with undefined symbols to be built. | |
15002 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
15003 | ||
15004 | # Flag that forces no undefined symbols. | |
15005 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
15006 | ||
15007 | # Commands used to finish a libtool library installation in a directory. | |
15008 | finish_cmds=$lt_finish_cmds | |
15009 | ||
15010 | # Same as above, but a single script fragment to be evaled but not shown. | |
15011 | finish_eval=$lt_finish_eval | |
15012 | ||
15013 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15014 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15015 | ||
15016 | # Transform the output of nm in a proper C declaration | |
15017 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15018 | ||
15019 | # Transform the output of nm in a C name address pair | |
15020 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15021 | ||
15022 | # This is the shared library runtime path variable. | |
15023 | runpath_var=$runpath_var | |
15024 | ||
15025 | # This is the shared library path variable. | |
15026 | shlibpath_var=$shlibpath_var | |
15027 | ||
15028 | # Is shlibpath searched before the hard-coded library search path? | |
15029 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15030 | ||
15031 | # How to hardcode a shared library path into an executable. | |
15032 | hardcode_action=$hardcode_action_CXX | |
15033 | ||
15034 | # Whether we should hardcode library paths into libraries. | |
15035 | hardcode_into_libs=$hardcode_into_libs | |
15036 | ||
15037 | # Flag to hardcode \$libdir into a binary during linking. | |
15038 | # This must work even if \$libdir does not exist. | |
15039 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
15040 | ||
15041 | # If ld is used when linking, flag to hardcode \$libdir into | |
15042 | # a binary during linking. This must work even if \$libdir does | |
15043 | # not exist. | |
15044 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
15045 | ||
15046 | # Whether we need a single -rpath flag with a separated argument. | |
15047 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
15048 | ||
15049 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15050 | # resulting binary. | |
15051 | hardcode_direct=$hardcode_direct_CXX | |
15052 | ||
15053 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15054 | # resulting binary. | |
15055 | hardcode_minus_L=$hardcode_minus_L_CXX | |
15056 | ||
15057 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15058 | # the resulting binary. | |
15059 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
15060 | ||
15061 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15062 | # and all subsequent libraries and executables linked against it. | |
15063 | hardcode_automatic=$hardcode_automatic_CXX | |
15064 | ||
15065 | # Variables whose values should be saved in libtool wrapper scripts and | |
15066 | # restored at relink time. | |
15067 | variables_saved_for_relink="$variables_saved_for_relink" | |
15068 | ||
15069 | # Whether libtool must link a program against all its dependency libraries. | |
15070 | link_all_deplibs=$link_all_deplibs_CXX | |
15071 | ||
15072 | # Compile-time system search path for libraries | |
15073 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15074 | ||
15075 | # Run-time system search path for libraries | |
15076 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15077 | ||
15078 | # Fix the shell variable \$srcfile for the compiler. | |
15079 | fix_srcfile_path=$lt_fix_srcfile_path | |
15080 | ||
15081 | # Set to yes if exported symbols are required. | |
15082 | always_export_symbols=$always_export_symbols_CXX | |
15083 | ||
15084 | # The commands to list exported symbols. | |
15085 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
15086 | ||
15087 | # The commands to extract the exported symbol list from a shared archive. | |
15088 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15089 | ||
15090 | # Symbols that should not be listed in the preloaded symbols. | |
15091 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
15092 | ||
15093 | # Symbols that must always be exported. | |
15094 | include_expsyms=$lt_include_expsyms_CXX | |
15095 | ||
15096 | # ### END LIBTOOL TAG CONFIG: $tagname | |
15097 | ||
15098 | __EOF__ | |
15099 | ||
15100 | ||
15101 | else | |
15102 | # If there is no Makefile yet, we rely on a make rule to execute | |
15103 | # `config.status --recheck' to rerun these tests and create the | |
15104 | # libtool script then. | |
15105 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15106 | if test -f "$ltmain_in"; then | |
15107 | test -f Makefile && make "$ltmain" | |
15108 | fi | |
15109 | fi | |
15110 | ||
15111 | ||
15112 | ac_ext=c | |
15113 | ac_cpp='$CPP $CPPFLAGS' | |
15114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15117 | ||
15118 | CC=$lt_save_CC | |
15119 | LDCXX=$LD | |
15120 | LD=$lt_save_LD | |
15121 | GCC=$lt_save_GCC | |
15122 | with_gnu_ldcxx=$with_gnu_ld | |
15123 | with_gnu_ld=$lt_save_with_gnu_ld | |
15124 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15125 | lt_cv_path_LD=$lt_save_path_LD | |
15126 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15127 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15128 | ||
15129 | else | |
15130 | tagname="" | |
15131 | fi | |
15132 | ;; | |
15133 | ||
15134 | F77) | |
15135 | if test -n "$F77" && test "X$F77" != "Xno"; then | |
15136 | ||
15137 | ac_ext=f | |
15138 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
15139 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15140 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
15141 | ||
15142 | ||
15143 | archive_cmds_need_lc_F77=no | |
15144 | allow_undefined_flag_F77= | |
15145 | always_export_symbols_F77=no | |
15146 | archive_expsym_cmds_F77= | |
15147 | export_dynamic_flag_spec_F77= | |
15148 | hardcode_direct_F77=no | |
15149 | hardcode_libdir_flag_spec_F77= | |
15150 | hardcode_libdir_flag_spec_ld_F77= | |
15151 | hardcode_libdir_separator_F77= | |
15152 | hardcode_minus_L_F77=no | |
15153 | hardcode_automatic_F77=no | |
15154 | module_cmds_F77= | |
15155 | module_expsym_cmds_F77= | |
15156 | link_all_deplibs_F77=unknown | |
15157 | old_archive_cmds_F77=$old_archive_cmds | |
15158 | no_undefined_flag_F77= | |
15159 | whole_archive_flag_spec_F77= | |
15160 | enable_shared_with_static_runtimes_F77=no | |
15161 | ||
15162 | # Source file extension for f77 test sources. | |
15163 | ac_ext=f | |
15164 | ||
15165 | # Object file extension for compiled f77 test sources. | |
15166 | objext=o | |
15167 | objext_F77=$objext | |
15168 | ||
15169 | # Code to be used in simple compile tests | |
15170 | lt_simple_compile_test_code="\ | |
15171 | subroutine t | |
15172 | return | |
15173 | end | |
15174 | " | |
15175 | ||
15176 | # Code to be used in simple link tests | |
15177 | lt_simple_link_test_code="\ | |
15178 | program t | |
15179 | end | |
15180 | " | |
15181 | ||
15182 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15183 | ||
15184 | # If no C compiler was specified, use CC. | |
15185 | LTCC=${LTCC-"$CC"} | |
15186 | ||
15187 | # If no C compiler flags were specified, use CFLAGS. | |
15188 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15189 | ||
15190 | # Allow CC to be a program name with arguments. | |
15191 | compiler=$CC | |
15192 | ||
15193 | ||
15194 | # save warnings/boilerplate of simple test code | |
15195 | ac_outfile=conftest.$ac_objext | |
15196 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15197 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15198 | _lt_compiler_boilerplate=`cat conftest.err` | |
15199 | $rm conftest* | |
15200 | ||
15201 | ac_outfile=conftest.$ac_objext | |
15202 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
15203 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15204 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 15205 | $rm -r conftest* |
db137867 AC |
15206 | |
15207 | ||
15208 | # Allow CC to be a program name with arguments. | |
15209 | lt_save_CC="$CC" | |
15210 | CC=${F77-"f77"} | |
15211 | compiler=$CC | |
15212 | compiler_F77=$CC | |
15213 | for cc_temp in $compiler""; do | |
15214 | case $cc_temp in | |
15215 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15216 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15217 | \-*) ;; | |
15218 | *) break;; | |
15219 | esac | |
15220 | done | |
15221 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15222 | ||
15223 | ||
15224 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
15225 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
15226 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
15227 | echo "${ECHO_T}$can_build_shared" >&6; } | |
15228 | ||
15229 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
15230 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
15231 | test "$can_build_shared" = "no" && enable_shared=no | |
15232 | ||
15233 | # On AIX, shared libraries and static libraries use the same namespace, and | |
15234 | # are all built from PIC. | |
15235 | case $host_os in | |
15236 | aix3*) | |
15237 | test "$enable_shared" = yes && enable_static=no | |
15238 | if test -n "$RANLIB"; then | |
15239 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
15240 | postinstall_cmds='$RANLIB $lib' | |
15241 | fi | |
15242 | ;; | |
b676ea3b | 15243 | aix[4-9]*) |
db137867 AC |
15244 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
15245 | test "$enable_shared" = yes && enable_static=no | |
15246 | fi | |
15247 | ;; | |
15248 | esac | |
15249 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
15250 | echo "${ECHO_T}$enable_shared" >&6; } | |
15251 | ||
15252 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
15253 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
15254 | # Make sure either enable_shared or enable_static is yes. | |
15255 | test "$enable_shared" = yes || enable_static=yes | |
15256 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
15257 | echo "${ECHO_T}$enable_static" >&6; } | |
15258 | ||
15259 | GCC_F77="$G77" | |
15260 | LD_F77="$LD" | |
15261 | ||
15262 | lt_prog_compiler_wl_F77= | |
15263 | lt_prog_compiler_pic_F77= | |
15264 | lt_prog_compiler_static_F77= | |
15265 | ||
15266 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15267 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
15268 | ||
15269 | if test "$GCC" = yes; then | |
15270 | lt_prog_compiler_wl_F77='-Wl,' | |
15271 | lt_prog_compiler_static_F77='-static' | |
15272 | ||
15273 | case $host_os in | |
15274 | aix*) | |
15275 | # All AIX code is PIC. | |
15276 | if test "$host_cpu" = ia64; then | |
15277 | # AIX 5 now supports IA64 processor | |
15278 | lt_prog_compiler_static_F77='-Bstatic' | |
15279 | fi | |
15280 | ;; | |
15281 | ||
15282 | amigaos*) | |
15283 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15284 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15285 | # like `-m68040'. | |
15286 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
15287 | ;; | |
15288 | ||
15289 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15290 | # PIC is the default for these OSes. | |
15291 | ;; | |
15292 | ||
15293 | mingw* | cygwin* | pw32* | os2*) | |
15294 | # This hack is so that the source file can tell whether it is being | |
15295 | # built for inclusion in a dll (and should export symbols for example). | |
15296 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
15297 | # (--disable-auto-import) libraries | |
15298 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
15299 | ;; | |
15300 | ||
15301 | darwin* | rhapsody*) | |
15302 | # PIC is the default on this platform | |
15303 | # Common symbols not allowed in MH_DYLIB files | |
15304 | lt_prog_compiler_pic_F77='-fno-common' | |
15305 | ;; | |
15306 | ||
15307 | interix[3-9]*) | |
15308 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
15309 | # Instead, we relocate shared libraries at runtime. | |
15310 | ;; | |
15311 | ||
15312 | msdosdjgpp*) | |
15313 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15314 | # on systems that don't support them. | |
15315 | lt_prog_compiler_can_build_shared_F77=no | |
15316 | enable_shared=no | |
15317 | ;; | |
15318 | ||
15319 | sysv4*MP*) | |
15320 | if test -d /usr/nec; then | |
15321 | lt_prog_compiler_pic_F77=-Kconform_pic | |
15322 | fi | |
15323 | ;; | |
15324 | ||
15325 | hpux*) | |
15326 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15327 | # not for PA HP-UX. | |
15328 | case $host_cpu in | |
15329 | hppa*64*|ia64*) | |
15330 | # +Z the default | |
15331 | ;; | |
15332 | *) | |
15333 | lt_prog_compiler_pic_F77='-fPIC' | |
15334 | ;; | |
15335 | esac | |
15336 | ;; | |
15337 | ||
15338 | *) | |
15339 | lt_prog_compiler_pic_F77='-fPIC' | |
15340 | ;; | |
15341 | esac | |
15342 | else | |
15343 | # PORTME Check for flag to pass linker flags through the system compiler. | |
15344 | case $host_os in | |
15345 | aix*) | |
15346 | lt_prog_compiler_wl_F77='-Wl,' | |
15347 | if test "$host_cpu" = ia64; then | |
15348 | # AIX 5 now supports IA64 processor | |
15349 | lt_prog_compiler_static_F77='-Bstatic' | |
15350 | else | |
15351 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
15352 | fi | |
15353 | ;; | |
15354 | darwin*) | |
15355 | # PIC is the default on this platform | |
15356 | # Common symbols not allowed in MH_DYLIB files | |
15357 | case $cc_basename in | |
15358 | xlc*) | |
15359 | lt_prog_compiler_pic_F77='-qnocommon' | |
15360 | lt_prog_compiler_wl_F77='-Wl,' | |
15361 | ;; | |
15362 | esac | |
15363 | ;; | |
15364 | ||
15365 | mingw* | cygwin* | pw32* | os2*) | |
15366 | # This hack is so that the source file can tell whether it is being | |
15367 | # built for inclusion in a dll (and should export symbols for example). | |
15368 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
15369 | ;; | |
15370 | ||
15371 | hpux9* | hpux10* | hpux11*) | |
15372 | lt_prog_compiler_wl_F77='-Wl,' | |
15373 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15374 | # not for PA HP-UX. | |
15375 | case $host_cpu in | |
15376 | hppa*64*|ia64*) | |
15377 | # +Z the default | |
15378 | ;; | |
15379 | *) | |
15380 | lt_prog_compiler_pic_F77='+Z' | |
15381 | ;; | |
15382 | esac | |
15383 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
15384 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
15385 | ;; | |
15386 | ||
15387 | irix5* | irix6* | nonstopux*) | |
15388 | lt_prog_compiler_wl_F77='-Wl,' | |
15389 | # PIC (with -KPIC) is the default. | |
15390 | lt_prog_compiler_static_F77='-non_shared' | |
15391 | ;; | |
15392 | ||
15393 | newsos6) | |
15394 | lt_prog_compiler_pic_F77='-KPIC' | |
15395 | lt_prog_compiler_static_F77='-Bstatic' | |
15396 | ;; | |
15397 | ||
15398 | linux* | k*bsd*-gnu) | |
15399 | case $cc_basename in | |
15400 | icc* | ecc*) | |
15401 | lt_prog_compiler_wl_F77='-Wl,' | |
15402 | lt_prog_compiler_pic_F77='-KPIC' | |
15403 | lt_prog_compiler_static_F77='-static' | |
15404 | ;; | |
15405 | pgcc* | pgf77* | pgf90* | pgf95*) | |
15406 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
15407 | # which looks to be a dead project) | |
15408 | lt_prog_compiler_wl_F77='-Wl,' | |
15409 | lt_prog_compiler_pic_F77='-fpic' | |
15410 | lt_prog_compiler_static_F77='-Bstatic' | |
15411 | ;; | |
15412 | ccc*) | |
15413 | lt_prog_compiler_wl_F77='-Wl,' | |
15414 | # All Alpha code is PIC. | |
15415 | lt_prog_compiler_static_F77='-non_shared' | |
15416 | ;; | |
15417 | *) | |
15418 | case `$CC -V 2>&1 | sed 5q` in | |
15419 | *Sun\ C*) | |
15420 | # Sun C 5.9 | |
15421 | lt_prog_compiler_pic_F77='-KPIC' | |
15422 | lt_prog_compiler_static_F77='-Bstatic' | |
15423 | lt_prog_compiler_wl_F77='-Wl,' | |
15424 | ;; | |
15425 | *Sun\ F*) | |
15426 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
15427 | lt_prog_compiler_pic_F77='-KPIC' | |
15428 | lt_prog_compiler_static_F77='-Bstatic' | |
15429 | lt_prog_compiler_wl_F77='' | |
15430 | ;; | |
15431 | esac | |
15432 | ;; | |
15433 | esac | |
15434 | ;; | |
15435 | ||
15436 | osf3* | osf4* | osf5*) | |
15437 | lt_prog_compiler_wl_F77='-Wl,' | |
15438 | # All OSF/1 code is PIC. | |
15439 | lt_prog_compiler_static_F77='-non_shared' | |
15440 | ;; | |
15441 | ||
15442 | rdos*) | |
15443 | lt_prog_compiler_static_F77='-non_shared' | |
15444 | ;; | |
15445 | ||
15446 | solaris*) | |
15447 | lt_prog_compiler_pic_F77='-KPIC' | |
15448 | lt_prog_compiler_static_F77='-Bstatic' | |
15449 | case $cc_basename in | |
15450 | f77* | f90* | f95*) | |
15451 | lt_prog_compiler_wl_F77='-Qoption ld ';; | |
15452 | *) | |
15453 | lt_prog_compiler_wl_F77='-Wl,';; | |
15454 | esac | |
15455 | ;; | |
15456 | ||
15457 | sunos4*) | |
15458 | lt_prog_compiler_wl_F77='-Qoption ld ' | |
15459 | lt_prog_compiler_pic_F77='-PIC' | |
15460 | lt_prog_compiler_static_F77='-Bstatic' | |
15461 | ;; | |
15462 | ||
15463 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
15464 | lt_prog_compiler_wl_F77='-Wl,' | |
15465 | lt_prog_compiler_pic_F77='-KPIC' | |
15466 | lt_prog_compiler_static_F77='-Bstatic' | |
15467 | ;; | |
15468 | ||
15469 | sysv4*MP*) | |
15470 | if test -d /usr/nec ;then | |
15471 | lt_prog_compiler_pic_F77='-Kconform_pic' | |
15472 | lt_prog_compiler_static_F77='-Bstatic' | |
15473 | fi | |
15474 | ;; | |
15475 | ||
15476 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15477 | lt_prog_compiler_wl_F77='-Wl,' | |
15478 | lt_prog_compiler_pic_F77='-KPIC' | |
15479 | lt_prog_compiler_static_F77='-Bstatic' | |
15480 | ;; | |
15481 | ||
15482 | unicos*) | |
15483 | lt_prog_compiler_wl_F77='-Wl,' | |
15484 | lt_prog_compiler_can_build_shared_F77=no | |
15485 | ;; | |
15486 | ||
15487 | uts4*) | |
15488 | lt_prog_compiler_pic_F77='-pic' | |
15489 | lt_prog_compiler_static_F77='-Bstatic' | |
15490 | ;; | |
15491 | ||
15492 | *) | |
15493 | lt_prog_compiler_can_build_shared_F77=no | |
15494 | ;; | |
15495 | esac | |
15496 | fi | |
15497 | ||
15498 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
15499 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } | |
15500 | ||
15501 | # | |
15502 | # Check to make sure the PIC flag actually works. | |
15503 | # | |
15504 | if test -n "$lt_prog_compiler_pic_F77"; then | |
15505 | ||
15506 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
15507 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } | |
b676ea3b | 15508 | if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then |
db137867 AC |
15509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15510 | else | |
b676ea3b | 15511 | lt_cv_prog_compiler_pic_works_F77=no |
db137867 AC |
15512 | ac_outfile=conftest.$ac_objext |
15513 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15514 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
15515 | # Insert the option either (1) after the last *FLAGS variable, or | |
15516 | # (2) before a word containing "conftest.", or (3) at the end. | |
15517 | # Note that $ac_compile itself does not contain backslashes and begins | |
15518 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15519 | # The option is referenced via a variable to avoid confusing sed. | |
15520 | lt_compile=`echo "$ac_compile" | $SED \ | |
15521 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15522 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15523 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 15524 | (eval echo "\"\$as_me:15524: $lt_compile\"" >&5) |
db137867 AC |
15525 | (eval "$lt_compile" 2>conftest.err) |
15526 | ac_status=$? | |
15527 | cat conftest.err >&5 | |
3202e249 | 15528 | echo "$as_me:15528: \$? = $ac_status" >&5 |
db137867 AC |
15529 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15530 | # The compiler can only warn and ignore the option if not recognized | |
15531 | # So say no if there are warnings other than the usual output. | |
15532 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
15533 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15534 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 15535 | lt_cv_prog_compiler_pic_works_F77=yes |
db137867 AC |
15536 | fi |
15537 | fi | |
15538 | $rm conftest* | |
15539 | ||
15540 | fi | |
b676ea3b AC |
15541 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 |
15542 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } | |
db137867 | 15543 | |
b676ea3b | 15544 | if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then |
db137867 AC |
15545 | case $lt_prog_compiler_pic_F77 in |
15546 | "" | " "*) ;; | |
15547 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
15548 | esac | |
15549 | else | |
15550 | lt_prog_compiler_pic_F77= | |
15551 | lt_prog_compiler_can_build_shared_F77=no | |
15552 | fi | |
15553 | ||
15554 | fi | |
15555 | case $host_os in | |
15556 | # For platforms which do not support PIC, -DPIC is meaningless: | |
15557 | *djgpp*) | |
15558 | lt_prog_compiler_pic_F77= | |
15559 | ;; | |
15560 | *) | |
15561 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
15562 | ;; | |
15563 | esac | |
15564 | ||
15565 | # | |
15566 | # Check to make sure the static flag actually works. | |
15567 | # | |
15568 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
15569 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
15570 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
b676ea3b | 15571 | if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then |
db137867 AC |
15572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15573 | else | |
b676ea3b | 15574 | lt_cv_prog_compiler_static_works_F77=no |
db137867 AC |
15575 | save_LDFLAGS="$LDFLAGS" |
15576 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
15577 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
15578 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15579 | # The linker can only warn and ignore the option if not recognized | |
15580 | # So say no if there are warnings | |
15581 | if test -s conftest.err; then | |
15582 | # Append any errors to the config.log. | |
15583 | cat conftest.err 1>&5 | |
15584 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
15585 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15586 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 15587 | lt_cv_prog_compiler_static_works_F77=yes |
db137867 AC |
15588 | fi |
15589 | else | |
b676ea3b | 15590 | lt_cv_prog_compiler_static_works_F77=yes |
db137867 AC |
15591 | fi |
15592 | fi | |
b676ea3b | 15593 | $rm -r conftest* |
db137867 AC |
15594 | LDFLAGS="$save_LDFLAGS" |
15595 | ||
15596 | fi | |
b676ea3b AC |
15597 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 |
15598 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } | |
db137867 | 15599 | |
b676ea3b | 15600 | if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then |
db137867 AC |
15601 | : |
15602 | else | |
15603 | lt_prog_compiler_static_F77= | |
15604 | fi | |
15605 | ||
15606 | ||
15607 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15608 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
15609 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
15610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15611 | else | |
15612 | lt_cv_prog_compiler_c_o_F77=no | |
15613 | $rm -r conftest 2>/dev/null | |
15614 | mkdir conftest | |
15615 | cd conftest | |
15616 | mkdir out | |
15617 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15618 | ||
15619 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15620 | # Insert the option either (1) after the last *FLAGS variable, or | |
15621 | # (2) before a word containing "conftest.", or (3) at the end. | |
15622 | # Note that $ac_compile itself does not contain backslashes and begins | |
15623 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15624 | lt_compile=`echo "$ac_compile" | $SED \ | |
15625 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15626 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15627 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 15628 | (eval echo "\"\$as_me:15628: $lt_compile\"" >&5) |
db137867 AC |
15629 | (eval "$lt_compile" 2>out/conftest.err) |
15630 | ac_status=$? | |
15631 | cat out/conftest.err >&5 | |
3202e249 | 15632 | echo "$as_me:15632: \$? = $ac_status" >&5 |
db137867 AC |
15633 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15634 | then | |
15635 | # The compiler can only warn and ignore the option if not recognized | |
15636 | # So say no if there are warnings | |
15637 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
15638 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
15639 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15640 | lt_cv_prog_compiler_c_o_F77=yes | |
15641 | fi | |
15642 | fi | |
15643 | chmod u+w . 2>&5 | |
15644 | $rm conftest* | |
15645 | # SGI C++ compiler will create directory out/ii_files/ for | |
15646 | # template instantiation | |
15647 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
15648 | $rm out/* && rmdir out | |
15649 | cd .. | |
15650 | rmdir conftest | |
15651 | $rm conftest* | |
15652 | ||
15653 | fi | |
15654 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
15655 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } | |
15656 | ||
15657 | ||
15658 | hard_links="nottested" | |
15659 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
15660 | # do not overwrite the value of need_locks provided by the user | |
15661 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
15662 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
15663 | hard_links=yes | |
15664 | $rm conftest* | |
15665 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15666 | touch conftest.a | |
15667 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15668 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15669 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
15670 | echo "${ECHO_T}$hard_links" >&6; } | |
15671 | if test "$hard_links" = no; then | |
15672 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
15673 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
15674 | need_locks=warn | |
15675 | fi | |
15676 | else | |
15677 | need_locks=no | |
15678 | fi | |
15679 | ||
15680 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15681 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
15682 | ||
15683 | runpath_var= | |
15684 | allow_undefined_flag_F77= | |
15685 | enable_shared_with_static_runtimes_F77=no | |
15686 | archive_cmds_F77= | |
15687 | archive_expsym_cmds_F77= | |
15688 | old_archive_From_new_cmds_F77= | |
15689 | old_archive_from_expsyms_cmds_F77= | |
15690 | export_dynamic_flag_spec_F77= | |
15691 | whole_archive_flag_spec_F77= | |
15692 | thread_safe_flag_spec_F77= | |
15693 | hardcode_libdir_flag_spec_F77= | |
15694 | hardcode_libdir_flag_spec_ld_F77= | |
15695 | hardcode_libdir_separator_F77= | |
15696 | hardcode_direct_F77=no | |
15697 | hardcode_minus_L_F77=no | |
15698 | hardcode_shlibpath_var_F77=unsupported | |
15699 | link_all_deplibs_F77=unknown | |
15700 | hardcode_automatic_F77=no | |
15701 | module_cmds_F77= | |
15702 | module_expsym_cmds_F77= | |
15703 | always_export_symbols_F77=no | |
15704 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15705 | # include_expsyms should be a list of space-separated symbols to be *always* | |
15706 | # included in the symbol list | |
15707 | include_expsyms_F77= | |
15708 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
15709 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
15710 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
15711 | # as well as any symbol that contains `d'. | |
b676ea3b | 15712 | exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
db137867 AC |
15713 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
15714 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
15715 | # the symbol is explicitly referenced. Since portable code cannot | |
15716 | # rely on this symbol name, it's probably fine to never include it in | |
15717 | # preloaded symbol tables. | |
b676ea3b | 15718 | # Exclude shared library initialization/finalization symbols. |
db137867 AC |
15719 | extract_expsyms_cmds= |
15720 | # Just being paranoid about ensuring that cc_basename is set. | |
15721 | for cc_temp in $compiler""; do | |
15722 | case $cc_temp in | |
15723 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15724 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15725 | \-*) ;; | |
15726 | *) break;; | |
15727 | esac | |
15728 | done | |
15729 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15730 | ||
15731 | case $host_os in | |
15732 | cygwin* | mingw* | pw32*) | |
15733 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
15734 | # When not using gcc, we currently assume that we are using | |
15735 | # Microsoft Visual C++. | |
15736 | if test "$GCC" != yes; then | |
15737 | with_gnu_ld=no | |
15738 | fi | |
15739 | ;; | |
15740 | interix*) | |
15741 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
15742 | with_gnu_ld=yes | |
15743 | ;; | |
15744 | openbsd*) | |
15745 | with_gnu_ld=no | |
15746 | ;; | |
15747 | esac | |
15748 | ||
15749 | ld_shlibs_F77=yes | |
15750 | if test "$with_gnu_ld" = yes; then | |
15751 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
15752 | wlarc='${wl}' | |
15753 | ||
15754 | # Set some defaults for GNU ld with shared library support. These | |
15755 | # are reset later if shared libraries are not supported. Putting them | |
15756 | # here allows them to be overridden if necessary. | |
15757 | runpath_var=LD_RUN_PATH | |
15758 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
15759 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
15760 | # ancient GNU ld didn't support --whole-archive et. al. | |
15761 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
15762 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
15763 | else | |
15764 | whole_archive_flag_spec_F77= | |
15765 | fi | |
15766 | supports_anon_versioning=no | |
15767 | case `$LD -v 2>/dev/null` in | |
15768 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
15769 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
15770 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
15771 | *\ 2.11.*) ;; # other 2.11 versions | |
15772 | *) supports_anon_versioning=yes ;; | |
15773 | esac | |
15774 | ||
15775 | # See if GNU ld supports shared libraries. | |
15776 | case $host_os in | |
b676ea3b | 15777 | aix[3-9]*) |
db137867 AC |
15778 | # On AIX/PPC, the GNU linker is very broken |
15779 | if test "$host_cpu" != ia64; then | |
15780 | ld_shlibs_F77=no | |
15781 | cat <<EOF 1>&2 | |
15782 | ||
15783 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
15784 | *** to be unable to reliably create shared libraries on AIX. | |
15785 | *** Therefore, libtool is disabling shared libraries support. If you | |
15786 | *** really care for shared libraries, you may want to modify your PATH | |
15787 | *** so that a non-GNU linker is found, and then restart. | |
15788 | ||
15789 | EOF | |
15790 | fi | |
15791 | ;; | |
15792 | ||
15793 | amigaos*) | |
15794 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
15795 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
15796 | hardcode_minus_L_F77=yes | |
15797 | ||
15798 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
15799 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
15800 | # to version 4, is to share data among multiple programs linked | |
15801 | # with the same dynamic library. Since this doesn't match the | |
15802 | # behavior of shared libraries on other platforms, we can't use | |
15803 | # them. | |
15804 | ld_shlibs_F77=no | |
15805 | ;; | |
15806 | ||
15807 | beos*) | |
15808 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15809 | allow_undefined_flag_F77=unsupported | |
15810 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
15811 | # support --undefined. This deserves some investigation. FIXME | |
15812 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15813 | else | |
15814 | ld_shlibs_F77=no | |
15815 | fi | |
15816 | ;; | |
15817 | ||
15818 | cygwin* | mingw* | pw32*) | |
15819 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
15820 | # as there is no search path for DLLs. | |
15821 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
15822 | allow_undefined_flag_F77=unsupported | |
15823 | always_export_symbols_F77=no | |
15824 | enable_shared_with_static_runtimes_F77=yes | |
15825 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
15826 | ||
15827 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
15828 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
15829 | # If the export-symbols file already is a .def file (1st line | |
15830 | # is EXPORTS), use it as is; otherwise, prepend... | |
15831 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
15832 | cp $export_symbols $output_objdir/$soname.def; | |
15833 | else | |
15834 | echo EXPORTS > $output_objdir/$soname.def; | |
15835 | cat $export_symbols >> $output_objdir/$soname.def; | |
15836 | fi~ | |
15837 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
15838 | else | |
15839 | ld_shlibs_F77=no | |
15840 | fi | |
15841 | ;; | |
15842 | ||
15843 | interix[3-9]*) | |
15844 | hardcode_direct_F77=no | |
15845 | hardcode_shlibpath_var_F77=no | |
15846 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
15847 | export_dynamic_flag_spec_F77='${wl}-E' | |
15848 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
15849 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
15850 | # default) and relocated if they conflict, which is a slow very memory | |
15851 | # consuming and fragmenting process. To avoid this, we pick a random, | |
15852 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
15853 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
15854 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
15855 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
15856 | ;; | |
15857 | ||
15858 | gnu* | linux* | k*bsd*-gnu) | |
15859 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15860 | tmp_addflag= | |
15861 | case $cc_basename,$host_cpu in | |
15862 | pgcc*) # Portland Group C compiler | |
15863 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
15864 | tmp_addflag=' $pic_flag' | |
15865 | ;; | |
15866 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
15867 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
15868 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
15869 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
15870 | tmp_addflag=' -i_dynamic' ;; | |
15871 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
15872 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
15873 | ifc* | ifort*) # Intel Fortran compiler | |
15874 | tmp_addflag=' -nofor_main' ;; | |
15875 | esac | |
15876 | case `$CC -V 2>&1 | sed 5q` in | |
15877 | *Sun\ C*) # Sun C 5.9 | |
15878 | whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
15879 | tmp_sharedflag='-G' ;; | |
15880 | *Sun\ F*) # Sun Fortran 8.3 | |
15881 | tmp_sharedflag='-G' ;; | |
15882 | *) | |
15883 | tmp_sharedflag='-shared' ;; | |
15884 | esac | |
15885 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15886 | ||
15887 | if test $supports_anon_versioning = yes; then | |
15888 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
15889 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
15890 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
15891 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
15892 | fi | |
15893 | link_all_deplibs_F77=no | |
15894 | else | |
15895 | ld_shlibs_F77=no | |
15896 | fi | |
15897 | ;; | |
15898 | ||
15899 | netbsd* | netbsdelf*-gnu) | |
15900 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15901 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
15902 | wlarc= | |
15903 | else | |
15904 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15905 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15906 | fi | |
15907 | ;; | |
15908 | ||
15909 | solaris*) | |
15910 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
15911 | ld_shlibs_F77=no | |
15912 | cat <<EOF 1>&2 | |
15913 | ||
15914 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
15915 | *** create shared libraries on Solaris systems. Therefore, libtool | |
15916 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
15917 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
15918 | *** your PATH or compiler configuration so that the native linker is | |
15919 | *** used, and then restart. | |
15920 | ||
15921 | EOF | |
15922 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15923 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15924 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15925 | else | |
15926 | ld_shlibs_F77=no | |
15927 | fi | |
15928 | ;; | |
15929 | ||
15930 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
15931 | case `$LD -v 2>&1` in | |
15932 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
15933 | ld_shlibs_F77=no | |
15934 | cat <<_LT_EOF 1>&2 | |
15935 | ||
15936 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
15937 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
15938 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
15939 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
15940 | *** your PATH or compiler configuration so that the native linker is | |
15941 | *** used, and then restart. | |
15942 | ||
15943 | _LT_EOF | |
15944 | ;; | |
15945 | *) | |
15946 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15947 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
15948 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
15949 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
15950 | else | |
15951 | ld_shlibs_F77=no | |
15952 | fi | |
15953 | ;; | |
15954 | esac | |
15955 | ;; | |
15956 | ||
15957 | sunos4*) | |
15958 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15959 | wlarc= | |
15960 | hardcode_direct_F77=yes | |
15961 | hardcode_shlibpath_var_F77=no | |
15962 | ;; | |
15963 | ||
15964 | *) | |
15965 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15966 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15967 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15968 | else | |
15969 | ld_shlibs_F77=no | |
15970 | fi | |
15971 | ;; | |
15972 | esac | |
15973 | ||
15974 | if test "$ld_shlibs_F77" = no; then | |
15975 | runpath_var= | |
15976 | hardcode_libdir_flag_spec_F77= | |
15977 | export_dynamic_flag_spec_F77= | |
15978 | whole_archive_flag_spec_F77= | |
15979 | fi | |
15980 | else | |
15981 | # PORTME fill in a description of your system's linker (not GNU ld) | |
15982 | case $host_os in | |
15983 | aix3*) | |
15984 | allow_undefined_flag_F77=unsupported | |
15985 | always_export_symbols_F77=yes | |
15986 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
15987 | # Note: this linker hardcodes the directories in LIBPATH if there | |
15988 | # are no directories specified by -L. | |
15989 | hardcode_minus_L_F77=yes | |
15990 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
15991 | # Neither direct hardcoding nor static linking is supported with a | |
15992 | # broken collect2. | |
15993 | hardcode_direct_F77=unsupported | |
15994 | fi | |
15995 | ;; | |
15996 | ||
b676ea3b | 15997 | aix[4-9]*) |
db137867 AC |
15998 | if test "$host_cpu" = ia64; then |
15999 | # On IA64, the linker does run time linking by default, so we don't | |
16000 | # have to do anything special. | |
16001 | aix_use_runtimelinking=no | |
16002 | exp_sym_flag='-Bexport' | |
16003 | no_entry_flag="" | |
16004 | else | |
16005 | # If we're using GNU nm, then we don't want the "-C" option. | |
16006 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16007 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16008 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16009 | else | |
16010 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16011 | fi | |
16012 | aix_use_runtimelinking=no | |
16013 | ||
16014 | # Test if we are trying to use run time linking or normal | |
16015 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16016 | # need to do runtime linking. | |
b676ea3b | 16017 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 AC |
16018 | for ld_flag in $LDFLAGS; do |
16019 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16020 | aix_use_runtimelinking=yes | |
16021 | break | |
16022 | fi | |
16023 | done | |
16024 | ;; | |
16025 | esac | |
16026 | ||
16027 | exp_sym_flag='-bexport' | |
16028 | no_entry_flag='-bnoentry' | |
16029 | fi | |
16030 | ||
16031 | # When large executables or shared objects are built, AIX ld can | |
16032 | # have problems creating the table of contents. If linking a library | |
16033 | # or program results in "error TOC overflow" add -mminimal-toc to | |
16034 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16035 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16036 | ||
16037 | archive_cmds_F77='' | |
16038 | hardcode_direct_F77=yes | |
16039 | hardcode_libdir_separator_F77=':' | |
16040 | link_all_deplibs_F77=yes | |
16041 | ||
16042 | if test "$GCC" = yes; then | |
16043 | case $host_os in aix4.[012]|aix4.[012].*) | |
16044 | # We only want to do this on AIX 4.2 and lower, the check | |
16045 | # below for broken collect2 doesn't work under 4.3+ | |
16046 | collect2name=`${CC} -print-prog-name=collect2` | |
16047 | if test -f "$collect2name" && \ | |
16048 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16049 | then | |
16050 | # We have reworked collect2 | |
16051 | : | |
16052 | else | |
16053 | # We have old collect2 | |
16054 | hardcode_direct_F77=unsupported | |
16055 | # It fails to find uninstalled libraries when the uninstalled | |
16056 | # path is not listed in the libpath. Setting hardcode_minus_L | |
16057 | # to unsupported forces relinking | |
16058 | hardcode_minus_L_F77=yes | |
16059 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16060 | hardcode_libdir_separator_F77= | |
16061 | fi | |
16062 | ;; | |
16063 | esac | |
16064 | shared_flag='-shared' | |
16065 | if test "$aix_use_runtimelinking" = yes; then | |
16066 | shared_flag="$shared_flag "'${wl}-G' | |
16067 | fi | |
16068 | else | |
16069 | # not using gcc | |
16070 | if test "$host_cpu" = ia64; then | |
16071 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16072 | # chokes on -Wl,-G. The following line is correct: | |
16073 | shared_flag='-G' | |
16074 | else | |
16075 | if test "$aix_use_runtimelinking" = yes; then | |
16076 | shared_flag='${wl}-G' | |
16077 | else | |
16078 | shared_flag='${wl}-bM:SRE' | |
16079 | fi | |
16080 | fi | |
16081 | fi | |
16082 | ||
16083 | # It seems that -bexpall does not export symbols beginning with | |
16084 | # underscore (_), so it is better to generate a list of symbols to export. | |
16085 | always_export_symbols_F77=yes | |
16086 | if test "$aix_use_runtimelinking" = yes; then | |
16087 | # Warning - without using the other runtime loading flags (-brtl), | |
16088 | # -berok will link without error, but may produce a broken library. | |
16089 | allow_undefined_flag_F77='-berok' | |
16090 | # Determine the default libpath from the value encoded in an empty executable. | |
16091 | cat >conftest.$ac_ext <<_ACEOF | |
16092 | program main | |
16093 | ||
16094 | end | |
16095 | _ACEOF | |
16096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16097 | if { (ac_try="$ac_link" | |
16098 | case "(($ac_try" in | |
16099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16100 | *) ac_try_echo=$ac_try;; | |
16101 | esac | |
16102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16103 | (eval "$ac_link") 2>conftest.er1 | |
16104 | ac_status=$? | |
16105 | grep -v '^ *+' conftest.er1 >conftest.err | |
16106 | rm -f conftest.er1 | |
16107 | cat conftest.err >&5 | |
16108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16109 | (exit $ac_status); } && { | |
16110 | test -z "$ac_f77_werror_flag" || | |
16111 | test ! -s conftest.err | |
16112 | } && test -s conftest$ac_exeext && | |
16113 | $as_test_x conftest$ac_exeext; then | |
16114 | ||
16115 | lt_aix_libpath_sed=' | |
16116 | /Import File Strings/,/^$/ { | |
16117 | /^0/ { | |
16118 | s/^0 *\(.*\)$/\1/ | |
16119 | p | |
16120 | } | |
16121 | }' | |
16122 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
16123 | # Check for a 64-bit object if we didn't find anything. | |
16124 | if test -z "$aix_libpath"; then | |
16125 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
16126 | fi | |
16127 | else | |
16128 | echo "$as_me: failed program was:" >&5 | |
16129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16130 | ||
16131 | ||
16132 | fi | |
16133 | ||
16134 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16135 | conftest$ac_exeext conftest.$ac_ext | |
16136 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16137 | ||
16138 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16139 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
16140 | else | |
16141 | if test "$host_cpu" = ia64; then | |
16142 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
16143 | allow_undefined_flag_F77="-z nodefs" | |
16144 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
16145 | else | |
16146 | # Determine the default libpath from the value encoded in an empty executable. | |
16147 | cat >conftest.$ac_ext <<_ACEOF | |
16148 | program main | |
16149 | ||
16150 | end | |
16151 | _ACEOF | |
16152 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16153 | if { (ac_try="$ac_link" | |
16154 | case "(($ac_try" in | |
16155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16156 | *) ac_try_echo=$ac_try;; | |
16157 | esac | |
16158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16159 | (eval "$ac_link") 2>conftest.er1 | |
16160 | ac_status=$? | |
16161 | grep -v '^ *+' conftest.er1 >conftest.err | |
16162 | rm -f conftest.er1 | |
16163 | cat conftest.err >&5 | |
16164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16165 | (exit $ac_status); } && { | |
16166 | test -z "$ac_f77_werror_flag" || | |
16167 | test ! -s conftest.err | |
16168 | } && test -s conftest$ac_exeext && | |
16169 | $as_test_x conftest$ac_exeext; then | |
16170 | ||
16171 | lt_aix_libpath_sed=' | |
16172 | /Import File Strings/,/^$/ { | |
16173 | /^0/ { | |
16174 | s/^0 *\(.*\)$/\1/ | |
16175 | p | |
16176 | } | |
16177 | }' | |
16178 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
16179 | # Check for a 64-bit object if we didn't find anything. | |
16180 | if test -z "$aix_libpath"; then | |
16181 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
16182 | fi | |
16183 | else | |
16184 | echo "$as_me: failed program was:" >&5 | |
16185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16186 | ||
16187 | ||
16188 | fi | |
16189 | ||
16190 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16191 | conftest$ac_exeext conftest.$ac_ext | |
16192 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16193 | ||
16194 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16195 | # Warning - without using the other run time loading flags, | |
16196 | # -berok will link without error, but may produce a broken library. | |
16197 | no_undefined_flag_F77=' ${wl}-bernotok' | |
16198 | allow_undefined_flag_F77=' ${wl}-berok' | |
16199 | # Exported symbols can be pulled into shared objects from archives | |
16200 | whole_archive_flag_spec_F77='$convenience' | |
16201 | archive_cmds_need_lc_F77=yes | |
16202 | # This is similar to how AIX traditionally builds its shared libraries. | |
16203 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
16204 | fi | |
16205 | fi | |
16206 | ;; | |
16207 | ||
16208 | amigaos*) | |
16209 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
16210 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16211 | hardcode_minus_L_F77=yes | |
16212 | # see comment about different semantics on the GNU ld section | |
16213 | ld_shlibs_F77=no | |
16214 | ;; | |
16215 | ||
16216 | bsdi[45]*) | |
16217 | export_dynamic_flag_spec_F77=-rdynamic | |
16218 | ;; | |
16219 | ||
16220 | cygwin* | mingw* | pw32*) | |
16221 | # When not using gcc, we currently assume that we are using | |
16222 | # Microsoft Visual C++. | |
16223 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16224 | # no search path for DLLs. | |
16225 | hardcode_libdir_flag_spec_F77=' ' | |
16226 | allow_undefined_flag_F77=unsupported | |
16227 | # Tell ltmain to make .lib files, not .a files. | |
16228 | libext=lib | |
16229 | # Tell ltmain to make .dll files, not .so files. | |
16230 | shrext_cmds=".dll" | |
16231 | # FIXME: Setting linknames here is a bad hack. | |
16232 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16233 | # The linker will automatically build a .lib file if we build a DLL. | |
16234 | old_archive_From_new_cmds_F77='true' | |
16235 | # FIXME: Should let the user specify the lib program. | |
16236 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
16237 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
16238 | enable_shared_with_static_runtimes_F77=yes | |
16239 | ;; | |
16240 | ||
16241 | darwin* | rhapsody*) | |
16242 | case $host_os in | |
16243 | rhapsody* | darwin1.[012]) | |
16244 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
16245 | ;; | |
16246 | *) # Darwin 1.3 on | |
16247 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16248 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16249 | else | |
16250 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
16251 | 10.[012]) | |
16252 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16253 | ;; | |
16254 | 10.*) | |
16255 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
16256 | ;; | |
16257 | esac | |
16258 | fi | |
16259 | ;; | |
16260 | esac | |
16261 | archive_cmds_need_lc_F77=no | |
16262 | hardcode_direct_F77=no | |
16263 | hardcode_automatic_F77=yes | |
16264 | hardcode_shlibpath_var_F77=unsupported | |
16265 | whole_archive_flag_spec_F77='' | |
16266 | link_all_deplibs_F77=yes | |
16267 | if test "$GCC" = yes ; then | |
16268 | output_verbose_link_cmd='echo' | |
b676ea3b AC |
16269 | archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
16270 | module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
16271 | archive_expsym_cmds_F77="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}" | |
16272 | module_expsym_cmds_F77="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}" | |
db137867 AC |
16273 | else |
16274 | case $cc_basename in | |
16275 | xlc*) | |
16276 | output_verbose_link_cmd='echo' | |
16277 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' | |
16278 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16279 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
16280 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16281 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16282 | ;; | |
16283 | *) | |
16284 | ld_shlibs_F77=no | |
16285 | ;; | |
16286 | esac | |
16287 | fi | |
16288 | ;; | |
16289 | ||
16290 | dgux*) | |
16291 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16292 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16293 | hardcode_shlibpath_var_F77=no | |
16294 | ;; | |
16295 | ||
16296 | freebsd1*) | |
16297 | ld_shlibs_F77=no | |
16298 | ;; | |
16299 | ||
16300 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16301 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
16302 | # does not break anything, and helps significantly (at the cost of a little | |
16303 | # extra space). | |
16304 | freebsd2.2*) | |
16305 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16306 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16307 | hardcode_direct_F77=yes | |
16308 | hardcode_shlibpath_var_F77=no | |
16309 | ;; | |
16310 | ||
16311 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16312 | freebsd2*) | |
16313 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16314 | hardcode_direct_F77=yes | |
16315 | hardcode_minus_L_F77=yes | |
16316 | hardcode_shlibpath_var_F77=no | |
16317 | ;; | |
16318 | ||
16319 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16320 | freebsd* | dragonfly*) | |
16321 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16322 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16323 | hardcode_direct_F77=yes | |
16324 | hardcode_shlibpath_var_F77=no | |
16325 | ;; | |
16326 | ||
16327 | hpux9*) | |
16328 | if test "$GCC" = yes; then | |
16329 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
16330 | else | |
16331 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
16332 | fi | |
16333 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16334 | hardcode_libdir_separator_F77=: | |
16335 | hardcode_direct_F77=yes | |
16336 | ||
16337 | # hardcode_minus_L: Not really in the search PATH, | |
16338 | # but as the default location of the library. | |
16339 | hardcode_minus_L_F77=yes | |
16340 | export_dynamic_flag_spec_F77='${wl}-E' | |
16341 | ;; | |
16342 | ||
16343 | hpux10*) | |
16344 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16345 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16346 | else | |
16347 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16348 | fi | |
16349 | if test "$with_gnu_ld" = no; then | |
16350 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16351 | hardcode_libdir_separator_F77=: | |
16352 | ||
16353 | hardcode_direct_F77=yes | |
16354 | export_dynamic_flag_spec_F77='${wl}-E' | |
16355 | ||
16356 | # hardcode_minus_L: Not really in the search PATH, | |
16357 | # but as the default location of the library. | |
16358 | hardcode_minus_L_F77=yes | |
16359 | fi | |
16360 | ;; | |
16361 | ||
16362 | hpux11*) | |
16363 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16364 | case $host_cpu in | |
16365 | hppa*64*) | |
16366 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16367 | ;; | |
16368 | ia64*) | |
16369 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16370 | ;; | |
16371 | *) | |
16372 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16373 | ;; | |
16374 | esac | |
16375 | else | |
16376 | case $host_cpu in | |
16377 | hppa*64*) | |
16378 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16379 | ;; | |
16380 | ia64*) | |
16381 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16382 | ;; | |
16383 | *) | |
16384 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16385 | ;; | |
16386 | esac | |
16387 | fi | |
16388 | if test "$with_gnu_ld" = no; then | |
16389 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16390 | hardcode_libdir_separator_F77=: | |
16391 | ||
16392 | case $host_cpu in | |
16393 | hppa*64*|ia64*) | |
16394 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
16395 | hardcode_direct_F77=no | |
16396 | hardcode_shlibpath_var_F77=no | |
16397 | ;; | |
16398 | *) | |
16399 | hardcode_direct_F77=yes | |
16400 | export_dynamic_flag_spec_F77='${wl}-E' | |
16401 | ||
16402 | # hardcode_minus_L: Not really in the search PATH, | |
16403 | # but as the default location of the library. | |
16404 | hardcode_minus_L_F77=yes | |
16405 | ;; | |
16406 | esac | |
16407 | fi | |
16408 | ;; | |
16409 | ||
16410 | irix5* | irix6* | nonstopux*) | |
16411 | if test "$GCC" = yes; then | |
16412 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16413 | else | |
16414 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
16415 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
16416 | fi | |
16417 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16418 | hardcode_libdir_separator_F77=: | |
16419 | link_all_deplibs_F77=yes | |
16420 | ;; | |
16421 | ||
16422 | netbsd* | netbsdelf*-gnu) | |
16423 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16424 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
16425 | else | |
16426 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
16427 | fi | |
16428 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16429 | hardcode_direct_F77=yes | |
16430 | hardcode_shlibpath_var_F77=no | |
16431 | ;; | |
16432 | ||
16433 | newsos6) | |
16434 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16435 | hardcode_direct_F77=yes | |
16436 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16437 | hardcode_libdir_separator_F77=: | |
16438 | hardcode_shlibpath_var_F77=no | |
16439 | ;; | |
16440 | ||
16441 | openbsd*) | |
16442 | if test -f /usr/libexec/ld.so; then | |
16443 | hardcode_direct_F77=yes | |
16444 | hardcode_shlibpath_var_F77=no | |
16445 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16446 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16447 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
16448 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16449 | export_dynamic_flag_spec_F77='${wl}-E' | |
16450 | else | |
16451 | case $host_os in | |
16452 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16453 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16454 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16455 | ;; | |
16456 | *) | |
16457 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16458 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16459 | ;; | |
16460 | esac | |
16461 | fi | |
16462 | else | |
16463 | ld_shlibs_F77=no | |
16464 | fi | |
16465 | ;; | |
16466 | ||
16467 | os2*) | |
16468 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16469 | hardcode_minus_L_F77=yes | |
16470 | allow_undefined_flag_F77=unsupported | |
16471 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
16472 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
16473 | ;; | |
16474 | ||
16475 | osf3*) | |
16476 | if test "$GCC" = yes; then | |
16477 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
16478 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16479 | else | |
16480 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
16481 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
16482 | fi | |
16483 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16484 | hardcode_libdir_separator_F77=: | |
16485 | ;; | |
16486 | ||
16487 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
16488 | if test "$GCC" = yes; then | |
16489 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
16490 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16491 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16492 | else | |
16493 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
16494 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
16495 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
16496 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
16497 | ||
16498 | # Both c and cxx compiler support -rpath directly | |
16499 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
16500 | fi | |
16501 | hardcode_libdir_separator_F77=: | |
16502 | ;; | |
16503 | ||
16504 | solaris*) | |
16505 | no_undefined_flag_F77=' -z text' | |
16506 | if test "$GCC" = yes; then | |
16507 | wlarc='${wl}' | |
16508 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16509 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16510 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
16511 | else | |
16512 | wlarc='' | |
16513 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16514 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16515 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16516 | fi | |
16517 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16518 | hardcode_shlibpath_var_F77=no | |
16519 | case $host_os in | |
16520 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16521 | *) | |
16522 | # The compiler driver will combine and reorder linker options, | |
16523 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
16524 | # but is careful enough not to reorder. | |
16525 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
16526 | if test "$GCC" = yes; then | |
16527 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
16528 | else | |
16529 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' | |
16530 | fi | |
16531 | ;; | |
16532 | esac | |
16533 | link_all_deplibs_F77=yes | |
16534 | ;; | |
16535 | ||
16536 | sunos4*) | |
16537 | if test "x$host_vendor" = xsequent; then | |
16538 | # Use $CC to link under sequent, because it throws in some extra .o | |
16539 | # files that make .init and .fini sections work. | |
16540 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
16541 | else | |
16542 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
16543 | fi | |
16544 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16545 | hardcode_direct_F77=yes | |
16546 | hardcode_minus_L_F77=yes | |
16547 | hardcode_shlibpath_var_F77=no | |
16548 | ;; | |
16549 | ||
16550 | sysv4) | |
16551 | case $host_vendor in | |
16552 | sni) | |
16553 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16554 | hardcode_direct_F77=yes # is this really true??? | |
16555 | ;; | |
16556 | siemens) | |
16557 | ## LD is ld it makes a PLAMLIB | |
16558 | ## CC just makes a GrossModule. | |
16559 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16560 | reload_cmds_F77='$CC -r -o $output$reload_objs' | |
16561 | hardcode_direct_F77=no | |
16562 | ;; | |
16563 | motorola) | |
16564 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16565 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
16566 | ;; | |
16567 | esac | |
16568 | runpath_var='LD_RUN_PATH' | |
16569 | hardcode_shlibpath_var_F77=no | |
16570 | ;; | |
16571 | ||
16572 | sysv4.3*) | |
16573 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16574 | hardcode_shlibpath_var_F77=no | |
16575 | export_dynamic_flag_spec_F77='-Bexport' | |
16576 | ;; | |
16577 | ||
16578 | sysv4*MP*) | |
16579 | if test -d /usr/nec; then | |
16580 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16581 | hardcode_shlibpath_var_F77=no | |
16582 | runpath_var=LD_RUN_PATH | |
16583 | hardcode_runpath_var=yes | |
16584 | ld_shlibs_F77=yes | |
16585 | fi | |
16586 | ;; | |
16587 | ||
16588 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
16589 | no_undefined_flag_F77='${wl}-z,text' | |
16590 | archive_cmds_need_lc_F77=no | |
16591 | hardcode_shlibpath_var_F77=no | |
16592 | runpath_var='LD_RUN_PATH' | |
16593 | ||
16594 | if test "$GCC" = yes; then | |
16595 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16596 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16597 | else | |
16598 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16599 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16600 | fi | |
16601 | ;; | |
16602 | ||
16603 | sysv5* | sco3.2v5* | sco5v6*) | |
16604 | # Note: We can NOT use -z defs as we might desire, because we do not | |
16605 | # link with -lc, and that would cause any symbols used from libc to | |
16606 | # always be unresolved, which means just about no library would | |
16607 | # ever link correctly. If we're not using GNU ld we use -z text | |
16608 | # though, which does catch some bad symbols but isn't as heavy-handed | |
16609 | # as -z defs. | |
16610 | no_undefined_flag_F77='${wl}-z,text' | |
16611 | allow_undefined_flag_F77='${wl}-z,nodefs' | |
16612 | archive_cmds_need_lc_F77=no | |
16613 | hardcode_shlibpath_var_F77=no | |
16614 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
16615 | hardcode_libdir_separator_F77=':' | |
16616 | link_all_deplibs_F77=yes | |
16617 | export_dynamic_flag_spec_F77='${wl}-Bexport' | |
16618 | runpath_var='LD_RUN_PATH' | |
16619 | ||
16620 | if test "$GCC" = yes; then | |
16621 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16622 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16623 | else | |
16624 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16625 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16626 | fi | |
16627 | ;; | |
16628 | ||
16629 | uts4*) | |
16630 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16631 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16632 | hardcode_shlibpath_var_F77=no | |
16633 | ;; | |
16634 | ||
16635 | *) | |
16636 | ld_shlibs_F77=no | |
16637 | ;; | |
16638 | esac | |
16639 | fi | |
16640 | ||
16641 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
16642 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } | |
16643 | test "$ld_shlibs_F77" = no && can_build_shared=no | |
16644 | ||
16645 | # | |
16646 | # Do we need to explicitly link libc? | |
16647 | # | |
16648 | case "x$archive_cmds_need_lc_F77" in | |
16649 | x|xyes) | |
16650 | # Assume -lc should be added | |
16651 | archive_cmds_need_lc_F77=yes | |
16652 | ||
16653 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
16654 | case $archive_cmds_F77 in | |
16655 | *'~'*) | |
16656 | # FIXME: we may have to deal with multi-command sequences. | |
16657 | ;; | |
16658 | '$CC '*) | |
16659 | # Test whether the compiler implicitly links with -lc since on some | |
16660 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
16661 | # to ld, don't add -lc before -lgcc. | |
16662 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
16663 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
16664 | $rm conftest* | |
16665 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16666 | ||
16667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16668 | (eval $ac_compile) 2>&5 | |
16669 | ac_status=$? | |
16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16671 | (exit $ac_status); } 2>conftest.err; then | |
16672 | soname=conftest | |
16673 | lib=conftest | |
16674 | libobjs=conftest.$ac_objext | |
16675 | deplibs= | |
16676 | wl=$lt_prog_compiler_wl_F77 | |
16677 | pic_flag=$lt_prog_compiler_pic_F77 | |
16678 | compiler_flags=-v | |
16679 | linker_flags=-v | |
16680 | verstring= | |
16681 | output_objdir=. | |
16682 | libname=conftest | |
16683 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
16684 | allow_undefined_flag_F77= | |
16685 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
16686 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
16687 | ac_status=$? | |
16688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16689 | (exit $ac_status); } | |
16690 | then | |
16691 | archive_cmds_need_lc_F77=no | |
16692 | else | |
16693 | archive_cmds_need_lc_F77=yes | |
16694 | fi | |
16695 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
16696 | else | |
16697 | cat conftest.err 1>&5 | |
16698 | fi | |
16699 | $rm conftest* | |
16700 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
16701 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } | |
16702 | ;; | |
16703 | esac | |
16704 | fi | |
16705 | ;; | |
16706 | esac | |
16707 | ||
16708 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
16709 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
16710 | library_names_spec= | |
16711 | libname_spec='lib$name' | |
16712 | soname_spec= | |
16713 | shrext_cmds=".so" | |
16714 | postinstall_cmds= | |
16715 | postuninstall_cmds= | |
16716 | finish_cmds= | |
16717 | finish_eval= | |
16718 | shlibpath_var= | |
16719 | shlibpath_overrides_runpath=unknown | |
16720 | version_type=none | |
16721 | dynamic_linker="$host_os ld.so" | |
16722 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
16723 | ||
16724 | need_lib_prefix=unknown | |
16725 | hardcode_into_libs=no | |
16726 | ||
16727 | # when you set need_version to no, make sure it does not cause -set_version | |
16728 | # flags to be left without arguments | |
16729 | need_version=unknown | |
16730 | ||
16731 | case $host_os in | |
16732 | aix3*) | |
16733 | version_type=linux | |
16734 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
16735 | shlibpath_var=LIBPATH | |
16736 | ||
16737 | # AIX 3 has no versioning support, so we append a major version to the name. | |
16738 | soname_spec='${libname}${release}${shared_ext}$major' | |
16739 | ;; | |
16740 | ||
b676ea3b | 16741 | aix[4-9]*) |
db137867 AC |
16742 | version_type=linux |
16743 | need_lib_prefix=no | |
16744 | need_version=no | |
16745 | hardcode_into_libs=yes | |
16746 | if test "$host_cpu" = ia64; then | |
16747 | # AIX 5 supports IA64 | |
16748 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
16749 | shlibpath_var=LD_LIBRARY_PATH | |
16750 | else | |
16751 | # With GCC up to 2.95.x, collect2 would create an import file | |
16752 | # for dependence libraries. The import file would start with | |
16753 | # the line `#! .'. This would cause the generated library to | |
16754 | # depend on `.', always an invalid library. This was fixed in | |
16755 | # development snapshots of GCC prior to 3.0. | |
16756 | case $host_os in | |
16757 | aix4 | aix4.[01] | aix4.[01].*) | |
16758 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
16759 | echo ' yes ' | |
16760 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
16761 | : | |
16762 | else | |
16763 | can_build_shared=no | |
16764 | fi | |
16765 | ;; | |
16766 | esac | |
16767 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
16768 | # soname into executable. Probably we can add versioning support to | |
16769 | # collect2, so additional links can be useful in future. | |
16770 | if test "$aix_use_runtimelinking" = yes; then | |
16771 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
16772 | # instead of lib<name>.a to let people know that these are not | |
16773 | # typical AIX shared libraries. | |
16774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16775 | else | |
16776 | # We preserve .a as extension for shared libraries through AIX4.2 | |
16777 | # and later when we are not doing run time linking. | |
16778 | library_names_spec='${libname}${release}.a $libname.a' | |
16779 | soname_spec='${libname}${release}${shared_ext}$major' | |
16780 | fi | |
16781 | shlibpath_var=LIBPATH | |
16782 | fi | |
16783 | ;; | |
16784 | ||
16785 | amigaos*) | |
16786 | library_names_spec='$libname.ixlibrary $libname.a' | |
16787 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
16788 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
16789 | ;; | |
16790 | ||
16791 | beos*) | |
16792 | library_names_spec='${libname}${shared_ext}' | |
16793 | dynamic_linker="$host_os ld.so" | |
16794 | shlibpath_var=LIBRARY_PATH | |
16795 | ;; | |
16796 | ||
16797 | bsdi[45]*) | |
16798 | version_type=linux | |
16799 | need_version=no | |
16800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16801 | soname_spec='${libname}${release}${shared_ext}$major' | |
16802 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
16803 | shlibpath_var=LD_LIBRARY_PATH | |
16804 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
16805 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
16806 | # the default ld.so.conf also contains /usr/contrib/lib and | |
16807 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
16808 | # libtool to hard-code these into programs | |
16809 | ;; | |
16810 | ||
16811 | cygwin* | mingw* | pw32*) | |
16812 | version_type=windows | |
16813 | shrext_cmds=".dll" | |
16814 | need_version=no | |
16815 | need_lib_prefix=no | |
16816 | ||
16817 | case $GCC,$host_os in | |
16818 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
16819 | library_names_spec='$libname.dll.a' | |
16820 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
16821 | postinstall_cmds='base_file=`basename \${file}`~ | |
16822 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
16823 | dldir=$destdir/`dirname \$dlpath`~ | |
16824 | test -d \$dldir || mkdir -p \$dldir~ | |
16825 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
16826 | chmod a+x \$dldir/$dlname' | |
16827 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
16828 | dlpath=$dir/\$dldll~ | |
16829 | $rm \$dlpath' | |
16830 | shlibpath_overrides_runpath=yes | |
16831 | ||
16832 | case $host_os in | |
16833 | cygwin*) | |
16834 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
16835 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
16836 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
16837 | ;; | |
16838 | mingw*) | |
16839 | # MinGW DLLs use traditional 'lib' prefix | |
16840 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
16841 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
16842 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
16843 | # It is most probably a Windows format PATH printed by | |
16844 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
16845 | # path with ; separators, and with drive letters. We can handle the | |
16846 | # drive letters (cygwin fileutils understands them), so leave them, | |
16847 | # especially as we might pass files found there to a mingw objdump, | |
16848 | # which wouldn't understand a cygwinified path. Ahh. | |
16849 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
16850 | else | |
16851 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
16852 | fi | |
16853 | ;; | |
16854 | pw32*) | |
16855 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
16856 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
16857 | ;; | |
16858 | esac | |
16859 | ;; | |
16860 | ||
16861 | *) | |
16862 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
16863 | ;; | |
16864 | esac | |
16865 | dynamic_linker='Win32 ld.exe' | |
16866 | # FIXME: first we should search . and the directory the executable is in | |
16867 | shlibpath_var=PATH | |
16868 | ;; | |
16869 | ||
16870 | darwin* | rhapsody*) | |
16871 | dynamic_linker="$host_os dyld" | |
16872 | version_type=darwin | |
16873 | need_lib_prefix=no | |
16874 | need_version=no | |
16875 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
16876 | soname_spec='${libname}${release}${major}$shared_ext' | |
16877 | shlibpath_overrides_runpath=yes | |
16878 | shlibpath_var=DYLD_LIBRARY_PATH | |
16879 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
16880 | ||
16881 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
16882 | ;; | |
16883 | ||
16884 | dgux*) | |
16885 | version_type=linux | |
16886 | need_lib_prefix=no | |
16887 | need_version=no | |
16888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
16889 | soname_spec='${libname}${release}${shared_ext}$major' | |
16890 | shlibpath_var=LD_LIBRARY_PATH | |
16891 | ;; | |
16892 | ||
16893 | freebsd1*) | |
16894 | dynamic_linker=no | |
16895 | ;; | |
16896 | ||
16897 | freebsd* | dragonfly*) | |
16898 | # DragonFly does not have aout. When/if they implement a new | |
16899 | # versioning mechanism, adjust this. | |
16900 | if test -x /usr/bin/objformat; then | |
16901 | objformat=`/usr/bin/objformat` | |
16902 | else | |
16903 | case $host_os in | |
16904 | freebsd[123]*) objformat=aout ;; | |
16905 | *) objformat=elf ;; | |
16906 | esac | |
16907 | fi | |
16908 | version_type=freebsd-$objformat | |
16909 | case $version_type in | |
16910 | freebsd-elf*) | |
16911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16912 | need_version=no | |
16913 | need_lib_prefix=no | |
16914 | ;; | |
16915 | freebsd-*) | |
16916 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
16917 | need_version=yes | |
16918 | ;; | |
16919 | esac | |
16920 | shlibpath_var=LD_LIBRARY_PATH | |
16921 | case $host_os in | |
16922 | freebsd2*) | |
16923 | shlibpath_overrides_runpath=yes | |
16924 | ;; | |
16925 | freebsd3.[01]* | freebsdelf3.[01]*) | |
16926 | shlibpath_overrides_runpath=yes | |
16927 | hardcode_into_libs=yes | |
16928 | ;; | |
16929 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
16930 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
16931 | shlibpath_overrides_runpath=no | |
16932 | hardcode_into_libs=yes | |
16933 | ;; | |
16934 | *) # from 4.6 on, and DragonFly | |
16935 | shlibpath_overrides_runpath=yes | |
16936 | hardcode_into_libs=yes | |
16937 | ;; | |
16938 | esac | |
16939 | ;; | |
16940 | ||
16941 | gnu*) | |
16942 | version_type=linux | |
16943 | need_lib_prefix=no | |
16944 | need_version=no | |
16945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
16946 | soname_spec='${libname}${release}${shared_ext}$major' | |
16947 | shlibpath_var=LD_LIBRARY_PATH | |
16948 | hardcode_into_libs=yes | |
16949 | ;; | |
16950 | ||
16951 | hpux9* | hpux10* | hpux11*) | |
16952 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
16953 | # link against other versions. | |
16954 | version_type=sunos | |
16955 | need_lib_prefix=no | |
16956 | need_version=no | |
16957 | case $host_cpu in | |
16958 | ia64*) | |
16959 | shrext_cmds='.so' | |
16960 | hardcode_into_libs=yes | |
16961 | dynamic_linker="$host_os dld.so" | |
16962 | shlibpath_var=LD_LIBRARY_PATH | |
16963 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16965 | soname_spec='${libname}${release}${shared_ext}$major' | |
16966 | if test "X$HPUX_IA64_MODE" = X32; then | |
16967 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
16968 | else | |
16969 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
16970 | fi | |
16971 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16972 | ;; | |
16973 | hppa*64*) | |
16974 | shrext_cmds='.sl' | |
16975 | hardcode_into_libs=yes | |
16976 | dynamic_linker="$host_os dld.sl" | |
16977 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
16978 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16980 | soname_spec='${libname}${release}${shared_ext}$major' | |
16981 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
16982 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16983 | ;; | |
16984 | *) | |
16985 | shrext_cmds='.sl' | |
16986 | dynamic_linker="$host_os dld.sl" | |
16987 | shlibpath_var=SHLIB_PATH | |
16988 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
16989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16990 | soname_spec='${libname}${release}${shared_ext}$major' | |
16991 | ;; | |
16992 | esac | |
16993 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
16994 | postinstall_cmds='chmod 555 $lib' | |
16995 | ;; | |
16996 | ||
16997 | interix[3-9]*) | |
16998 | version_type=linux | |
16999 | need_lib_prefix=no | |
17000 | need_version=no | |
17001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17002 | soname_spec='${libname}${release}${shared_ext}$major' | |
17003 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
17004 | shlibpath_var=LD_LIBRARY_PATH | |
17005 | shlibpath_overrides_runpath=no | |
17006 | hardcode_into_libs=yes | |
17007 | ;; | |
17008 | ||
17009 | irix5* | irix6* | nonstopux*) | |
17010 | case $host_os in | |
17011 | nonstopux*) version_type=nonstopux ;; | |
17012 | *) | |
17013 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
17014 | version_type=linux | |
17015 | else | |
17016 | version_type=irix | |
17017 | fi ;; | |
17018 | esac | |
17019 | need_lib_prefix=no | |
17020 | need_version=no | |
17021 | soname_spec='${libname}${release}${shared_ext}$major' | |
17022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17023 | case $host_os in | |
17024 | irix5* | nonstopux*) | |
17025 | libsuff= shlibsuff= | |
17026 | ;; | |
17027 | *) | |
17028 | case $LD in # libtool.m4 will add one of these switches to LD | |
17029 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17030 | libsuff= shlibsuff= libmagic=32-bit;; | |
17031 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17032 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17033 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17034 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17035 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17036 | esac | |
17037 | ;; | |
17038 | esac | |
17039 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17040 | shlibpath_overrides_runpath=no | |
17041 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17042 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17043 | hardcode_into_libs=yes | |
17044 | ;; | |
17045 | ||
17046 | # No shared lib support for Linux oldld, aout, or coff. | |
17047 | linux*oldld* | linux*aout* | linux*coff*) | |
17048 | dynamic_linker=no | |
17049 | ;; | |
17050 | ||
17051 | # This must be Linux ELF. | |
17052 | linux* | k*bsd*-gnu) | |
17053 | version_type=linux | |
17054 | need_lib_prefix=no | |
17055 | need_version=no | |
17056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17057 | soname_spec='${libname}${release}${shared_ext}$major' | |
17058 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17059 | shlibpath_var=LD_LIBRARY_PATH | |
17060 | shlibpath_overrides_runpath=no | |
17061 | # This implies no fast_install, which is unacceptable. | |
17062 | # Some rework will be needed to allow for fast_install | |
17063 | # before this can be enabled. | |
17064 | hardcode_into_libs=yes | |
17065 | ||
17066 | # Append ld.so.conf contents to the search path | |
17067 | if test -f /etc/ld.so.conf; then | |
17068 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
17069 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
17070 | fi | |
17071 | ||
17072 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17073 | # powerpc, because MkLinux only supported shared libraries with the | |
17074 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17075 | # most powerpc-linux boxes support dynamic linking these days and | |
17076 | # people can always --disable-shared, the test was removed, and we | |
17077 | # assume the GNU/Linux dynamic linker is in use. | |
17078 | dynamic_linker='GNU/Linux ld.so' | |
17079 | ;; | |
17080 | ||
17081 | netbsdelf*-gnu) | |
17082 | version_type=linux | |
17083 | need_lib_prefix=no | |
17084 | need_version=no | |
17085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17086 | soname_spec='${libname}${release}${shared_ext}$major' | |
17087 | shlibpath_var=LD_LIBRARY_PATH | |
17088 | shlibpath_overrides_runpath=no | |
17089 | hardcode_into_libs=yes | |
17090 | dynamic_linker='NetBSD ld.elf_so' | |
17091 | ;; | |
17092 | ||
17093 | netbsd*) | |
17094 | version_type=sunos | |
17095 | need_lib_prefix=no | |
17096 | need_version=no | |
17097 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17099 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17100 | dynamic_linker='NetBSD (a.out) ld.so' | |
17101 | else | |
17102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17103 | soname_spec='${libname}${release}${shared_ext}$major' | |
17104 | dynamic_linker='NetBSD ld.elf_so' | |
17105 | fi | |
17106 | shlibpath_var=LD_LIBRARY_PATH | |
17107 | shlibpath_overrides_runpath=yes | |
17108 | hardcode_into_libs=yes | |
17109 | ;; | |
17110 | ||
17111 | newsos6) | |
17112 | version_type=linux | |
17113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17114 | shlibpath_var=LD_LIBRARY_PATH | |
17115 | shlibpath_overrides_runpath=yes | |
17116 | ;; | |
17117 | ||
17118 | nto-qnx*) | |
17119 | version_type=linux | |
17120 | need_lib_prefix=no | |
17121 | need_version=no | |
17122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17123 | soname_spec='${libname}${release}${shared_ext}$major' | |
17124 | shlibpath_var=LD_LIBRARY_PATH | |
17125 | shlibpath_overrides_runpath=yes | |
17126 | ;; | |
17127 | ||
17128 | openbsd*) | |
17129 | version_type=sunos | |
17130 | sys_lib_dlsearch_path_spec="/usr/lib" | |
17131 | need_lib_prefix=no | |
17132 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
17133 | case $host_os in | |
17134 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
17135 | *) need_version=no ;; | |
17136 | esac | |
17137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17138 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17139 | shlibpath_var=LD_LIBRARY_PATH | |
17140 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17141 | case $host_os in | |
17142 | openbsd2.[89] | openbsd2.[89].*) | |
17143 | shlibpath_overrides_runpath=no | |
17144 | ;; | |
17145 | *) | |
17146 | shlibpath_overrides_runpath=yes | |
17147 | ;; | |
17148 | esac | |
17149 | else | |
17150 | shlibpath_overrides_runpath=yes | |
17151 | fi | |
17152 | ;; | |
17153 | ||
17154 | os2*) | |
17155 | libname_spec='$name' | |
17156 | shrext_cmds=".dll" | |
17157 | need_lib_prefix=no | |
17158 | library_names_spec='$libname${shared_ext} $libname.a' | |
17159 | dynamic_linker='OS/2 ld.exe' | |
17160 | shlibpath_var=LIBPATH | |
17161 | ;; | |
17162 | ||
17163 | osf3* | osf4* | osf5*) | |
17164 | version_type=osf | |
17165 | need_lib_prefix=no | |
17166 | need_version=no | |
17167 | soname_spec='${libname}${release}${shared_ext}$major' | |
17168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17169 | shlibpath_var=LD_LIBRARY_PATH | |
17170 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17171 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17172 | ;; | |
17173 | ||
17174 | rdos*) | |
17175 | dynamic_linker=no | |
17176 | ;; | |
17177 | ||
17178 | solaris*) | |
17179 | version_type=linux | |
17180 | need_lib_prefix=no | |
17181 | need_version=no | |
17182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17183 | soname_spec='${libname}${release}${shared_ext}$major' | |
17184 | shlibpath_var=LD_LIBRARY_PATH | |
17185 | shlibpath_overrides_runpath=yes | |
17186 | hardcode_into_libs=yes | |
17187 | # ldd complains unless libraries are executable | |
17188 | postinstall_cmds='chmod +x $lib' | |
17189 | ;; | |
17190 | ||
17191 | sunos4*) | |
17192 | version_type=sunos | |
17193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17194 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17195 | shlibpath_var=LD_LIBRARY_PATH | |
17196 | shlibpath_overrides_runpath=yes | |
17197 | if test "$with_gnu_ld" = yes; then | |
17198 | need_lib_prefix=no | |
17199 | fi | |
17200 | need_version=yes | |
17201 | ;; | |
17202 | ||
17203 | sysv4 | sysv4.3*) | |
17204 | version_type=linux | |
17205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17206 | soname_spec='${libname}${release}${shared_ext}$major' | |
17207 | shlibpath_var=LD_LIBRARY_PATH | |
17208 | case $host_vendor in | |
17209 | sni) | |
17210 | shlibpath_overrides_runpath=no | |
17211 | need_lib_prefix=no | |
17212 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17213 | runpath_var=LD_RUN_PATH | |
17214 | ;; | |
17215 | siemens) | |
17216 | need_lib_prefix=no | |
17217 | ;; | |
17218 | motorola) | |
17219 | need_lib_prefix=no | |
17220 | need_version=no | |
17221 | shlibpath_overrides_runpath=no | |
17222 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17223 | ;; | |
17224 | esac | |
17225 | ;; | |
17226 | ||
17227 | sysv4*MP*) | |
17228 | if test -d /usr/nec ;then | |
17229 | version_type=linux | |
17230 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17231 | soname_spec='$libname${shared_ext}.$major' | |
17232 | shlibpath_var=LD_LIBRARY_PATH | |
17233 | fi | |
17234 | ;; | |
17235 | ||
17236 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
17237 | version_type=freebsd-elf | |
17238 | need_lib_prefix=no | |
17239 | need_version=no | |
17240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17241 | soname_spec='${libname}${release}${shared_ext}$major' | |
17242 | shlibpath_var=LD_LIBRARY_PATH | |
17243 | hardcode_into_libs=yes | |
17244 | if test "$with_gnu_ld" = yes; then | |
17245 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
17246 | shlibpath_overrides_runpath=no | |
17247 | else | |
17248 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17249 | shlibpath_overrides_runpath=yes | |
17250 | case $host_os in | |
17251 | sco3.2v5*) | |
17252 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17253 | ;; | |
17254 | esac | |
17255 | fi | |
17256 | sys_lib_dlsearch_path_spec='/usr/lib' | |
17257 | ;; | |
17258 | ||
17259 | uts4*) | |
17260 | version_type=linux | |
17261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17262 | soname_spec='${libname}${release}${shared_ext}$major' | |
17263 | shlibpath_var=LD_LIBRARY_PATH | |
17264 | ;; | |
17265 | ||
17266 | *) | |
17267 | dynamic_linker=no | |
17268 | ;; | |
17269 | esac | |
17270 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17271 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
17272 | test "$dynamic_linker" = no && can_build_shared=no | |
17273 | ||
b676ea3b AC |
17274 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
17275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17276 | else | |
17277 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" | |
17278 | fi | |
17279 | ||
17280 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
17281 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
17282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17283 | else | |
17284 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" | |
17285 | fi | |
17286 | ||
17287 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
17288 | ||
db137867 AC |
17289 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17290 | if test "$GCC" = yes; then | |
17291 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
17292 | fi | |
17293 | ||
17294 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
17295 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
17296 | hardcode_action_F77= | |
17297 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
17298 | test -n "$runpath_var_F77" || \ | |
17299 | test "X$hardcode_automatic_F77" = "Xyes" ; then | |
17300 | ||
17301 | # We can hardcode non-existant directories. | |
17302 | if test "$hardcode_direct_F77" != no && | |
17303 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17304 | # have to relink, otherwise we might link with an installed library | |
17305 | # when we should be linking with a yet-to-be-installed one | |
17306 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
17307 | test "$hardcode_minus_L_F77" != no; then | |
17308 | # Linking always hardcodes the temporary library directory. | |
17309 | hardcode_action_F77=relink | |
17310 | else | |
17311 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17312 | hardcode_action_F77=immediate | |
17313 | fi | |
17314 | else | |
17315 | # We cannot hardcode anything, or else we can only hardcode existing | |
17316 | # directories. | |
17317 | hardcode_action_F77=unsupported | |
17318 | fi | |
17319 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
17320 | echo "${ECHO_T}$hardcode_action_F77" >&6; } | |
17321 | ||
17322 | if test "$hardcode_action_F77" = relink; then | |
17323 | # Fast installation is not supported | |
17324 | enable_fast_install=no | |
17325 | elif test "$shlibpath_overrides_runpath" = yes || | |
17326 | test "$enable_shared" = no; then | |
17327 | # Fast installation is not necessary | |
17328 | enable_fast_install=needless | |
17329 | fi | |
17330 | ||
17331 | ||
17332 | # The else clause should only fire when bootstrapping the | |
17333 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
17334 | # with your package, and you will get complaints that there are | |
17335 | # no rules to generate ltmain.sh. | |
17336 | if test -f "$ltmain"; then | |
17337 | # See if we are running on zsh, and set the options which allow our commands through | |
17338 | # without removal of \ escapes. | |
17339 | if test -n "${ZSH_VERSION+set}" ; then | |
17340 | setopt NO_GLOB_SUBST | |
17341 | fi | |
17342 | # Now quote all the things that may contain metacharacters while being | |
17343 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
17344 | # variables and quote the copies for generation of the libtool script. | |
17345 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
17346 | SED SHELL STRIP \ | |
17347 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
17348 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
17349 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
17350 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
17351 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17352 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
17353 | old_postinstall_cmds old_postuninstall_cmds \ | |
17354 | compiler_F77 \ | |
17355 | CC_F77 \ | |
17356 | LD_F77 \ | |
17357 | lt_prog_compiler_wl_F77 \ | |
17358 | lt_prog_compiler_pic_F77 \ | |
17359 | lt_prog_compiler_static_F77 \ | |
17360 | lt_prog_compiler_no_builtin_flag_F77 \ | |
17361 | export_dynamic_flag_spec_F77 \ | |
17362 | thread_safe_flag_spec_F77 \ | |
17363 | whole_archive_flag_spec_F77 \ | |
17364 | enable_shared_with_static_runtimes_F77 \ | |
17365 | old_archive_cmds_F77 \ | |
17366 | old_archive_from_new_cmds_F77 \ | |
17367 | predep_objects_F77 \ | |
17368 | postdep_objects_F77 \ | |
17369 | predeps_F77 \ | |
17370 | postdeps_F77 \ | |
17371 | compiler_lib_search_path_F77 \ | |
b676ea3b | 17372 | compiler_lib_search_dirs_F77 \ |
db137867 AC |
17373 | archive_cmds_F77 \ |
17374 | archive_expsym_cmds_F77 \ | |
17375 | postinstall_cmds_F77 \ | |
17376 | postuninstall_cmds_F77 \ | |
17377 | old_archive_from_expsyms_cmds_F77 \ | |
17378 | allow_undefined_flag_F77 \ | |
17379 | no_undefined_flag_F77 \ | |
17380 | export_symbols_cmds_F77 \ | |
17381 | hardcode_libdir_flag_spec_F77 \ | |
17382 | hardcode_libdir_flag_spec_ld_F77 \ | |
17383 | hardcode_libdir_separator_F77 \ | |
17384 | hardcode_automatic_F77 \ | |
17385 | module_cmds_F77 \ | |
17386 | module_expsym_cmds_F77 \ | |
17387 | lt_cv_prog_compiler_c_o_F77 \ | |
17388 | fix_srcfile_path_F77 \ | |
17389 | exclude_expsyms_F77 \ | |
17390 | include_expsyms_F77; do | |
17391 | ||
17392 | case $var in | |
17393 | old_archive_cmds_F77 | \ | |
17394 | old_archive_from_new_cmds_F77 | \ | |
17395 | archive_cmds_F77 | \ | |
17396 | archive_expsym_cmds_F77 | \ | |
17397 | module_cmds_F77 | \ | |
17398 | module_expsym_cmds_F77 | \ | |
17399 | old_archive_from_expsyms_cmds_F77 | \ | |
17400 | export_symbols_cmds_F77 | \ | |
17401 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
17402 | postinstall_cmds | postuninstall_cmds | \ | |
17403 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
17404 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
17405 | # Double-quote double-evaled strings. | |
17406 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
17407 | ;; | |
17408 | *) | |
17409 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
17410 | ;; | |
17411 | esac | |
17412 | done | |
17413 | ||
17414 | case $lt_echo in | |
17415 | *'\$0 --fallback-echo"') | |
17416 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
17417 | ;; | |
17418 | esac | |
17419 | ||
17420 | cfgfile="$ofile" | |
17421 | ||
17422 | cat <<__EOF__ >> "$cfgfile" | |
17423 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
17424 | ||
17425 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17426 | ||
17427 | # Shell to use when invoking shell scripts. | |
17428 | SHELL=$lt_SHELL | |
17429 | ||
17430 | # Whether or not to build shared libraries. | |
17431 | build_libtool_libs=$enable_shared | |
17432 | ||
17433 | # Whether or not to build static libraries. | |
17434 | build_old_libs=$enable_static | |
17435 | ||
17436 | # Whether or not to add -lc for building shared libraries. | |
17437 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
17438 | ||
17439 | # Whether or not to disallow shared libs when runtime libs are static | |
17440 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
17441 | ||
17442 | # Whether or not to optimize for fast installation. | |
17443 | fast_install=$enable_fast_install | |
17444 | ||
17445 | # The host system. | |
17446 | host_alias=$host_alias | |
17447 | host=$host | |
17448 | host_os=$host_os | |
17449 | ||
17450 | # The build system. | |
17451 | build_alias=$build_alias | |
17452 | build=$build | |
17453 | build_os=$build_os | |
17454 | ||
17455 | # An echo program that does not interpret backslashes. | |
17456 | echo=$lt_echo | |
17457 | ||
17458 | # The archiver. | |
17459 | AR=$lt_AR | |
17460 | AR_FLAGS=$lt_AR_FLAGS | |
17461 | ||
17462 | # A C compiler. | |
17463 | LTCC=$lt_LTCC | |
17464 | ||
17465 | # LTCC compiler flags. | |
17466 | LTCFLAGS=$lt_LTCFLAGS | |
17467 | ||
17468 | # A language-specific compiler. | |
17469 | CC=$lt_compiler_F77 | |
17470 | ||
17471 | # Is the compiler the GNU C compiler? | |
17472 | with_gcc=$GCC_F77 | |
17473 | ||
17474 | # An ERE matcher. | |
17475 | EGREP=$lt_EGREP | |
17476 | ||
17477 | # The linker used to build libraries. | |
17478 | LD=$lt_LD_F77 | |
17479 | ||
17480 | # Whether we need hard or soft links. | |
17481 | LN_S=$lt_LN_S | |
17482 | ||
17483 | # A BSD-compatible nm program. | |
17484 | NM=$lt_NM | |
17485 | ||
17486 | # A symbol stripping program | |
17487 | STRIP=$lt_STRIP | |
17488 | ||
17489 | # Used to examine libraries when file_magic_cmd begins "file" | |
17490 | MAGIC_CMD=$MAGIC_CMD | |
17491 | ||
17492 | # Used on cygwin: DLL creation program. | |
17493 | DLLTOOL="$DLLTOOL" | |
17494 | ||
17495 | # Used on cygwin: object dumper. | |
17496 | OBJDUMP="$OBJDUMP" | |
17497 | ||
17498 | # Used on cygwin: assembler. | |
17499 | AS="$AS" | |
17500 | ||
17501 | # The name of the directory that contains temporary libtool files. | |
17502 | objdir=$objdir | |
17503 | ||
17504 | # How to create reloadable object files. | |
17505 | reload_flag=$lt_reload_flag | |
17506 | reload_cmds=$lt_reload_cmds | |
17507 | ||
17508 | # How to pass a linker flag through the compiler. | |
17509 | wl=$lt_lt_prog_compiler_wl_F77 | |
17510 | ||
17511 | # Object file suffix (normally "o"). | |
17512 | objext="$ac_objext" | |
17513 | ||
17514 | # Old archive suffix (normally "a"). | |
17515 | libext="$libext" | |
17516 | ||
17517 | # Shared library suffix (normally ".so"). | |
17518 | shrext_cmds='$shrext_cmds' | |
17519 | ||
17520 | # Executable file suffix (normally ""). | |
17521 | exeext="$exeext" | |
17522 | ||
17523 | # Additional compiler flags for building library objects. | |
17524 | pic_flag=$lt_lt_prog_compiler_pic_F77 | |
17525 | pic_mode=$pic_mode | |
17526 | ||
17527 | # What is the maximum length of a command? | |
17528 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
17529 | ||
17530 | # Does compiler simultaneously support -c and -o options? | |
17531 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
17532 | ||
17533 | # Must we lock files when doing compilation? | |
17534 | need_locks=$lt_need_locks | |
17535 | ||
17536 | # Do we need the lib prefix for modules? | |
17537 | need_lib_prefix=$need_lib_prefix | |
17538 | ||
17539 | # Do we need a version for libraries? | |
17540 | need_version=$need_version | |
17541 | ||
17542 | # Whether dlopen is supported. | |
17543 | dlopen_support=$enable_dlopen | |
17544 | ||
17545 | # Whether dlopen of programs is supported. | |
17546 | dlopen_self=$enable_dlopen_self | |
17547 | ||
17548 | # Whether dlopen of statically linked programs is supported. | |
17549 | dlopen_self_static=$enable_dlopen_self_static | |
17550 | ||
17551 | # Compiler flag to prevent dynamic linking. | |
17552 | link_static_flag=$lt_lt_prog_compiler_static_F77 | |
17553 | ||
17554 | # Compiler flag to turn off builtin functions. | |
17555 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
17556 | ||
17557 | # Compiler flag to allow reflexive dlopens. | |
17558 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
17559 | ||
17560 | # Compiler flag to generate shared objects directly from archives. | |
17561 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
17562 | ||
17563 | # Compiler flag to generate thread-safe objects. | |
17564 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
17565 | ||
17566 | # Library versioning type. | |
17567 | version_type=$version_type | |
17568 | ||
17569 | # Format of library name prefix. | |
17570 | libname_spec=$lt_libname_spec | |
17571 | ||
17572 | # List of archive names. First name is the real one, the rest are links. | |
17573 | # The last name is the one that the linker finds with -lNAME. | |
17574 | library_names_spec=$lt_library_names_spec | |
17575 | ||
17576 | # The coded name of the library, if different from the real name. | |
17577 | soname_spec=$lt_soname_spec | |
17578 | ||
17579 | # Commands used to build and install an old-style archive. | |
17580 | RANLIB=$lt_RANLIB | |
17581 | old_archive_cmds=$lt_old_archive_cmds_F77 | |
17582 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17583 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17584 | ||
17585 | # Create an old-style archive from a shared archive. | |
17586 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
17587 | ||
17588 | # Create a temporary old-style archive to link instead of a shared archive. | |
17589 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
17590 | ||
17591 | # Commands used to build and install a shared archive. | |
17592 | archive_cmds=$lt_archive_cmds_F77 | |
17593 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
17594 | postinstall_cmds=$lt_postinstall_cmds | |
17595 | postuninstall_cmds=$lt_postuninstall_cmds | |
17596 | ||
17597 | # Commands used to build a loadable module (assumed same as above if empty) | |
17598 | module_cmds=$lt_module_cmds_F77 | |
17599 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
17600 | ||
17601 | # Commands to strip libraries. | |
17602 | old_striplib=$lt_old_striplib | |
17603 | striplib=$lt_striplib | |
17604 | ||
17605 | # Dependencies to place before the objects being linked to create a | |
17606 | # shared library. | |
17607 | predep_objects=$lt_predep_objects_F77 | |
17608 | ||
17609 | # Dependencies to place after the objects being linked to create a | |
17610 | # shared library. | |
17611 | postdep_objects=$lt_postdep_objects_F77 | |
17612 | ||
17613 | # Dependencies to place before the objects being linked to create a | |
17614 | # shared library. | |
17615 | predeps=$lt_predeps_F77 | |
17616 | ||
17617 | # Dependencies to place after the objects being linked to create a | |
17618 | # shared library. | |
17619 | postdeps=$lt_postdeps_F77 | |
17620 | ||
b676ea3b AC |
17621 | # The directories searched by this compiler when creating a shared |
17622 | # library | |
17623 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 | |
17624 | ||
db137867 AC |
17625 | # The library search path used internally by the compiler when linking |
17626 | # a shared library. | |
17627 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
17628 | ||
17629 | # Method to check whether dependent libraries are shared objects. | |
17630 | deplibs_check_method=$lt_deplibs_check_method | |
17631 | ||
17632 | # Command to use when deplibs_check_method == file_magic. | |
17633 | file_magic_cmd=$lt_file_magic_cmd | |
17634 | ||
17635 | # Flag that allows shared libraries with undefined symbols to be built. | |
17636 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
17637 | ||
17638 | # Flag that forces no undefined symbols. | |
17639 | no_undefined_flag=$lt_no_undefined_flag_F77 | |
17640 | ||
17641 | # Commands used to finish a libtool library installation in a directory. | |
17642 | finish_cmds=$lt_finish_cmds | |
17643 | ||
17644 | # Same as above, but a single script fragment to be evaled but not shown. | |
17645 | finish_eval=$lt_finish_eval | |
17646 | ||
17647 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17648 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17649 | ||
17650 | # Transform the output of nm in a proper C declaration | |
17651 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17652 | ||
17653 | # Transform the output of nm in a C name address pair | |
17654 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17655 | ||
17656 | # This is the shared library runtime path variable. | |
17657 | runpath_var=$runpath_var | |
17658 | ||
17659 | # This is the shared library path variable. | |
17660 | shlibpath_var=$shlibpath_var | |
17661 | ||
17662 | # Is shlibpath searched before the hard-coded library search path? | |
17663 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17664 | ||
17665 | # How to hardcode a shared library path into an executable. | |
17666 | hardcode_action=$hardcode_action_F77 | |
17667 | ||
17668 | # Whether we should hardcode library paths into libraries. | |
17669 | hardcode_into_libs=$hardcode_into_libs | |
17670 | ||
17671 | # Flag to hardcode \$libdir into a binary during linking. | |
17672 | # This must work even if \$libdir does not exist. | |
17673 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
17674 | ||
17675 | # If ld is used when linking, flag to hardcode \$libdir into | |
17676 | # a binary during linking. This must work even if \$libdir does | |
17677 | # not exist. | |
17678 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
17679 | ||
17680 | # Whether we need a single -rpath flag with a separated argument. | |
17681 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
17682 | ||
17683 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
17684 | # resulting binary. | |
17685 | hardcode_direct=$hardcode_direct_F77 | |
17686 | ||
17687 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
17688 | # resulting binary. | |
17689 | hardcode_minus_L=$hardcode_minus_L_F77 | |
17690 | ||
17691 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
17692 | # the resulting binary. | |
17693 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
17694 | ||
17695 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
17696 | # and all subsequent libraries and executables linked against it. | |
17697 | hardcode_automatic=$hardcode_automatic_F77 | |
17698 | ||
17699 | # Variables whose values should be saved in libtool wrapper scripts and | |
17700 | # restored at relink time. | |
17701 | variables_saved_for_relink="$variables_saved_for_relink" | |
17702 | ||
17703 | # Whether libtool must link a program against all its dependency libraries. | |
17704 | link_all_deplibs=$link_all_deplibs_F77 | |
17705 | ||
17706 | # Compile-time system search path for libraries | |
17707 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17708 | ||
17709 | # Run-time system search path for libraries | |
17710 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17711 | ||
17712 | # Fix the shell variable \$srcfile for the compiler. | |
17713 | fix_srcfile_path=$lt_fix_srcfile_path | |
17714 | ||
17715 | # Set to yes if exported symbols are required. | |
17716 | always_export_symbols=$always_export_symbols_F77 | |
17717 | ||
17718 | # The commands to list exported symbols. | |
17719 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
17720 | ||
17721 | # The commands to extract the exported symbol list from a shared archive. | |
17722 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17723 | ||
17724 | # Symbols that should not be listed in the preloaded symbols. | |
17725 | exclude_expsyms=$lt_exclude_expsyms_F77 | |
17726 | ||
17727 | # Symbols that must always be exported. | |
17728 | include_expsyms=$lt_include_expsyms_F77 | |
17729 | ||
17730 | # ### END LIBTOOL TAG CONFIG: $tagname | |
17731 | ||
17732 | __EOF__ | |
17733 | ||
17734 | ||
17735 | else | |
17736 | # If there is no Makefile yet, we rely on a make rule to execute | |
17737 | # `config.status --recheck' to rerun these tests and create the | |
17738 | # libtool script then. | |
17739 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
17740 | if test -f "$ltmain_in"; then | |
17741 | test -f Makefile && make "$ltmain" | |
17742 | fi | |
17743 | fi | |
17744 | ||
17745 | ||
17746 | ac_ext=c | |
17747 | ac_cpp='$CPP $CPPFLAGS' | |
17748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17751 | ||
17752 | CC="$lt_save_CC" | |
17753 | ||
17754 | else | |
17755 | tagname="" | |
17756 | fi | |
17757 | ;; | |
17758 | ||
17759 | GCJ) | |
17760 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
17761 | ||
17762 | ||
17763 | # Source file extension for Java test sources. | |
17764 | ac_ext=java | |
17765 | ||
17766 | # Object file extension for compiled Java test sources. | |
17767 | objext=o | |
17768 | objext_GCJ=$objext | |
17769 | ||
17770 | # Code to be used in simple compile tests | |
17771 | lt_simple_compile_test_code="class foo {}" | |
17772 | ||
17773 | # Code to be used in simple link tests | |
17774 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' | |
17775 | ||
17776 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
17777 | ||
17778 | # If no C compiler was specified, use CC. | |
17779 | LTCC=${LTCC-"$CC"} | |
17780 | ||
17781 | # If no C compiler flags were specified, use CFLAGS. | |
17782 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
17783 | ||
17784 | # Allow CC to be a program name with arguments. | |
17785 | compiler=$CC | |
17786 | ||
17787 | ||
17788 | # save warnings/boilerplate of simple test code | |
17789 | ac_outfile=conftest.$ac_objext | |
17790 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
17791 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
17792 | _lt_compiler_boilerplate=`cat conftest.err` | |
17793 | $rm conftest* | |
17794 | ||
17795 | ac_outfile=conftest.$ac_objext | |
17796 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
17797 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
17798 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 17799 | $rm -r conftest* |
db137867 AC |
17800 | |
17801 | ||
17802 | # Allow CC to be a program name with arguments. | |
17803 | lt_save_CC="$CC" | |
17804 | CC=${GCJ-"gcj"} | |
17805 | compiler=$CC | |
17806 | compiler_GCJ=$CC | |
17807 | for cc_temp in $compiler""; do | |
17808 | case $cc_temp in | |
17809 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
17810 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
17811 | \-*) ;; | |
17812 | *) break;; | |
17813 | esac | |
17814 | done | |
17815 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
17816 | ||
17817 | ||
17818 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
17819 | archive_cmds_need_lc_GCJ=no | |
17820 | ||
17821 | old_archive_cmds_GCJ=$old_archive_cmds | |
17822 | ||
17823 | ||
17824 | lt_prog_compiler_no_builtin_flag_GCJ= | |
17825 | ||
17826 | if test "$GCC" = yes; then | |
17827 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
17828 | ||
17829 | ||
17830 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
17831 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
17832 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
17833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17834 | else | |
17835 | lt_cv_prog_compiler_rtti_exceptions=no | |
17836 | ac_outfile=conftest.$ac_objext | |
17837 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17838 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
17839 | # Insert the option either (1) after the last *FLAGS variable, or | |
17840 | # (2) before a word containing "conftest.", or (3) at the end. | |
17841 | # Note that $ac_compile itself does not contain backslashes and begins | |
17842 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17843 | # The option is referenced via a variable to avoid confusing sed. | |
17844 | lt_compile=`echo "$ac_compile" | $SED \ | |
17845 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17846 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17847 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 17848 | (eval echo "\"\$as_me:17848: $lt_compile\"" >&5) |
db137867 AC |
17849 | (eval "$lt_compile" 2>conftest.err) |
17850 | ac_status=$? | |
17851 | cat conftest.err >&5 | |
3202e249 | 17852 | echo "$as_me:17852: \$? = $ac_status" >&5 |
db137867 AC |
17853 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17854 | # The compiler can only warn and ignore the option if not recognized | |
17855 | # So say no if there are warnings other than the usual output. | |
17856 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
17857 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
17858 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
17859 | lt_cv_prog_compiler_rtti_exceptions=yes | |
17860 | fi | |
17861 | fi | |
17862 | $rm conftest* | |
17863 | ||
17864 | fi | |
17865 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
17866 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
17867 | ||
17868 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
17869 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
17870 | else | |
17871 | : | |
17872 | fi | |
17873 | ||
17874 | fi | |
17875 | ||
17876 | lt_prog_compiler_wl_GCJ= | |
17877 | lt_prog_compiler_pic_GCJ= | |
17878 | lt_prog_compiler_static_GCJ= | |
17879 | ||
17880 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
17881 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
17882 | ||
17883 | if test "$GCC" = yes; then | |
17884 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17885 | lt_prog_compiler_static_GCJ='-static' | |
17886 | ||
17887 | case $host_os in | |
17888 | aix*) | |
17889 | # All AIX code is PIC. | |
17890 | if test "$host_cpu" = ia64; then | |
17891 | # AIX 5 now supports IA64 processor | |
17892 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17893 | fi | |
17894 | ;; | |
17895 | ||
17896 | amigaos*) | |
17897 | # FIXME: we need at least 68020 code to build shared libraries, but | |
17898 | # adding the `-m68020' flag to GCC prevents building anything better, | |
17899 | # like `-m68040'. | |
17900 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
17901 | ;; | |
17902 | ||
17903 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
17904 | # PIC is the default for these OSes. | |
17905 | ;; | |
17906 | ||
17907 | mingw* | cygwin* | pw32* | os2*) | |
17908 | # This hack is so that the source file can tell whether it is being | |
17909 | # built for inclusion in a dll (and should export symbols for example). | |
17910 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
17911 | # (--disable-auto-import) libraries | |
b676ea3b | 17912 | |
db137867 AC |
17913 | ;; |
17914 | ||
17915 | darwin* | rhapsody*) | |
17916 | # PIC is the default on this platform | |
17917 | # Common symbols not allowed in MH_DYLIB files | |
17918 | lt_prog_compiler_pic_GCJ='-fno-common' | |
17919 | ;; | |
17920 | ||
17921 | interix[3-9]*) | |
17922 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
17923 | # Instead, we relocate shared libraries at runtime. | |
17924 | ;; | |
17925 | ||
17926 | msdosdjgpp*) | |
17927 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
17928 | # on systems that don't support them. | |
17929 | lt_prog_compiler_can_build_shared_GCJ=no | |
17930 | enable_shared=no | |
17931 | ;; | |
17932 | ||
17933 | sysv4*MP*) | |
17934 | if test -d /usr/nec; then | |
17935 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
17936 | fi | |
17937 | ;; | |
17938 | ||
17939 | hpux*) | |
17940 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
17941 | # not for PA HP-UX. | |
17942 | case $host_cpu in | |
17943 | hppa*64*|ia64*) | |
17944 | # +Z the default | |
17945 | ;; | |
17946 | *) | |
17947 | lt_prog_compiler_pic_GCJ='-fPIC' | |
17948 | ;; | |
17949 | esac | |
17950 | ;; | |
17951 | ||
17952 | *) | |
17953 | lt_prog_compiler_pic_GCJ='-fPIC' | |
17954 | ;; | |
17955 | esac | |
17956 | else | |
17957 | # PORTME Check for flag to pass linker flags through the system compiler. | |
17958 | case $host_os in | |
17959 | aix*) | |
17960 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17961 | if test "$host_cpu" = ia64; then | |
17962 | # AIX 5 now supports IA64 processor | |
17963 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17964 | else | |
17965 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
17966 | fi | |
17967 | ;; | |
17968 | darwin*) | |
17969 | # PIC is the default on this platform | |
17970 | # Common symbols not allowed in MH_DYLIB files | |
17971 | case $cc_basename in | |
17972 | xlc*) | |
17973 | lt_prog_compiler_pic_GCJ='-qnocommon' | |
17974 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17975 | ;; | |
17976 | esac | |
17977 | ;; | |
17978 | ||
17979 | mingw* | cygwin* | pw32* | os2*) | |
17980 | # This hack is so that the source file can tell whether it is being | |
17981 | # built for inclusion in a dll (and should export symbols for example). | |
b676ea3b | 17982 | |
db137867 AC |
17983 | ;; |
17984 | ||
17985 | hpux9* | hpux10* | hpux11*) | |
17986 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17987 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
17988 | # not for PA HP-UX. | |
17989 | case $host_cpu in | |
17990 | hppa*64*|ia64*) | |
17991 | # +Z the default | |
17992 | ;; | |
17993 | *) | |
17994 | lt_prog_compiler_pic_GCJ='+Z' | |
17995 | ;; | |
17996 | esac | |
17997 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
17998 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
17999 | ;; | |
18000 | ||
18001 | irix5* | irix6* | nonstopux*) | |
18002 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18003 | # PIC (with -KPIC) is the default. | |
18004 | lt_prog_compiler_static_GCJ='-non_shared' | |
18005 | ;; | |
18006 | ||
18007 | newsos6) | |
18008 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18009 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18010 | ;; | |
18011 | ||
18012 | linux* | k*bsd*-gnu) | |
18013 | case $cc_basename in | |
18014 | icc* | ecc*) | |
18015 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18016 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18017 | lt_prog_compiler_static_GCJ='-static' | |
18018 | ;; | |
18019 | pgcc* | pgf77* | pgf90* | pgf95*) | |
18020 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
18021 | # which looks to be a dead project) | |
18022 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18023 | lt_prog_compiler_pic_GCJ='-fpic' | |
18024 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18025 | ;; | |
18026 | ccc*) | |
18027 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18028 | # All Alpha code is PIC. | |
18029 | lt_prog_compiler_static_GCJ='-non_shared' | |
18030 | ;; | |
18031 | *) | |
18032 | case `$CC -V 2>&1 | sed 5q` in | |
18033 | *Sun\ C*) | |
18034 | # Sun C 5.9 | |
18035 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18036 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18037 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18038 | ;; | |
18039 | *Sun\ F*) | |
18040 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
18041 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18042 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18043 | lt_prog_compiler_wl_GCJ='' | |
18044 | ;; | |
18045 | esac | |
18046 | ;; | |
18047 | esac | |
18048 | ;; | |
18049 | ||
18050 | osf3* | osf4* | osf5*) | |
18051 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18052 | # All OSF/1 code is PIC. | |
18053 | lt_prog_compiler_static_GCJ='-non_shared' | |
18054 | ;; | |
18055 | ||
18056 | rdos*) | |
18057 | lt_prog_compiler_static_GCJ='-non_shared' | |
18058 | ;; | |
18059 | ||
18060 | solaris*) | |
18061 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18062 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18063 | case $cc_basename in | |
18064 | f77* | f90* | f95*) | |
18065 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
18066 | *) | |
18067 | lt_prog_compiler_wl_GCJ='-Wl,';; | |
18068 | esac | |
18069 | ;; | |
18070 | ||
18071 | sunos4*) | |
18072 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
18073 | lt_prog_compiler_pic_GCJ='-PIC' | |
18074 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18075 | ;; | |
18076 | ||
18077 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
18078 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18079 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18080 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18081 | ;; | |
18082 | ||
18083 | sysv4*MP*) | |
18084 | if test -d /usr/nec ;then | |
18085 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
18086 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18087 | fi | |
18088 | ;; | |
18089 | ||
18090 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
18091 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18092 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18093 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18094 | ;; | |
18095 | ||
18096 | unicos*) | |
18097 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18098 | lt_prog_compiler_can_build_shared_GCJ=no | |
18099 | ;; | |
18100 | ||
18101 | uts4*) | |
18102 | lt_prog_compiler_pic_GCJ='-pic' | |
18103 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18104 | ;; | |
18105 | ||
18106 | *) | |
18107 | lt_prog_compiler_can_build_shared_GCJ=no | |
18108 | ;; | |
18109 | esac | |
18110 | fi | |
18111 | ||
18112 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
18113 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } | |
18114 | ||
18115 | # | |
18116 | # Check to make sure the PIC flag actually works. | |
18117 | # | |
18118 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
18119 | ||
18120 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
18121 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } | |
b676ea3b | 18122 | if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then |
db137867 AC |
18123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18124 | else | |
b676ea3b | 18125 | lt_cv_prog_compiler_pic_works_GCJ=no |
db137867 AC |
18126 | ac_outfile=conftest.$ac_objext |
18127 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18128 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
18129 | # Insert the option either (1) after the last *FLAGS variable, or | |
18130 | # (2) before a word containing "conftest.", or (3) at the end. | |
18131 | # Note that $ac_compile itself does not contain backslashes and begins | |
18132 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
18133 | # The option is referenced via a variable to avoid confusing sed. | |
18134 | lt_compile=`echo "$ac_compile" | $SED \ | |
18135 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
18136 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
18137 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 18138 | (eval echo "\"\$as_me:18138: $lt_compile\"" >&5) |
db137867 AC |
18139 | (eval "$lt_compile" 2>conftest.err) |
18140 | ac_status=$? | |
18141 | cat conftest.err >&5 | |
3202e249 | 18142 | echo "$as_me:18142: \$? = $ac_status" >&5 |
db137867 AC |
18143 | if (exit $ac_status) && test -s "$ac_outfile"; then |
18144 | # The compiler can only warn and ignore the option if not recognized | |
18145 | # So say no if there are warnings other than the usual output. | |
18146 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
18147 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18148 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 18149 | lt_cv_prog_compiler_pic_works_GCJ=yes |
db137867 AC |
18150 | fi |
18151 | fi | |
18152 | $rm conftest* | |
18153 | ||
18154 | fi | |
b676ea3b AC |
18155 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 |
18156 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } | |
db137867 | 18157 | |
b676ea3b | 18158 | if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then |
db137867 AC |
18159 | case $lt_prog_compiler_pic_GCJ in |
18160 | "" | " "*) ;; | |
18161 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
18162 | esac | |
18163 | else | |
18164 | lt_prog_compiler_pic_GCJ= | |
18165 | lt_prog_compiler_can_build_shared_GCJ=no | |
18166 | fi | |
18167 | ||
18168 | fi | |
18169 | case $host_os in | |
18170 | # For platforms which do not support PIC, -DPIC is meaningless: | |
18171 | *djgpp*) | |
18172 | lt_prog_compiler_pic_GCJ= | |
18173 | ;; | |
18174 | *) | |
18175 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
18176 | ;; | |
18177 | esac | |
18178 | ||
18179 | # | |
18180 | # Check to make sure the static flag actually works. | |
18181 | # | |
18182 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
18183 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
18184 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
b676ea3b | 18185 | if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then |
db137867 AC |
18186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18187 | else | |
b676ea3b | 18188 | lt_cv_prog_compiler_static_works_GCJ=no |
db137867 AC |
18189 | save_LDFLAGS="$LDFLAGS" |
18190 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
18191 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
18192 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
18193 | # The linker can only warn and ignore the option if not recognized | |
18194 | # So say no if there are warnings | |
18195 | if test -s conftest.err; then | |
18196 | # Append any errors to the config.log. | |
18197 | cat conftest.err 1>&5 | |
18198 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
18199 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18200 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 18201 | lt_cv_prog_compiler_static_works_GCJ=yes |
db137867 AC |
18202 | fi |
18203 | else | |
b676ea3b | 18204 | lt_cv_prog_compiler_static_works_GCJ=yes |
db137867 AC |
18205 | fi |
18206 | fi | |
b676ea3b | 18207 | $rm -r conftest* |
db137867 AC |
18208 | LDFLAGS="$save_LDFLAGS" |
18209 | ||
18210 | fi | |
b676ea3b AC |
18211 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 |
18212 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } | |
db137867 | 18213 | |
b676ea3b | 18214 | if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then |
db137867 AC |
18215 | : |
18216 | else | |
18217 | lt_prog_compiler_static_GCJ= | |
18218 | fi | |
18219 | ||
18220 | ||
18221 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
18222 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
18223 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
18224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18225 | else | |
18226 | lt_cv_prog_compiler_c_o_GCJ=no | |
18227 | $rm -r conftest 2>/dev/null | |
18228 | mkdir conftest | |
18229 | cd conftest | |
18230 | mkdir out | |
18231 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18232 | ||
18233 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
18234 | # Insert the option either (1) after the last *FLAGS variable, or | |
18235 | # (2) before a word containing "conftest.", or (3) at the end. | |
18236 | # Note that $ac_compile itself does not contain backslashes and begins | |
18237 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
18238 | lt_compile=`echo "$ac_compile" | $SED \ | |
18239 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
18240 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
18241 | -e 's:$: $lt_compiler_flag:'` | |
3202e249 | 18242 | (eval echo "\"\$as_me:18242: $lt_compile\"" >&5) |
db137867 AC |
18243 | (eval "$lt_compile" 2>out/conftest.err) |
18244 | ac_status=$? | |
18245 | cat out/conftest.err >&5 | |
3202e249 | 18246 | echo "$as_me:18246: \$? = $ac_status" >&5 |
db137867 AC |
18247 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
18248 | then | |
18249 | # The compiler can only warn and ignore the option if not recognized | |
18250 | # So say no if there are warnings | |
18251 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
18252 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
18253 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
18254 | lt_cv_prog_compiler_c_o_GCJ=yes | |
18255 | fi | |
18256 | fi | |
18257 | chmod u+w . 2>&5 | |
18258 | $rm conftest* | |
18259 | # SGI C++ compiler will create directory out/ii_files/ for | |
18260 | # template instantiation | |
18261 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
18262 | $rm out/* && rmdir out | |
18263 | cd .. | |
18264 | rmdir conftest | |
18265 | $rm conftest* | |
18266 | ||
18267 | fi | |
18268 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
18269 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } | |
18270 | ||
18271 | ||
18272 | hard_links="nottested" | |
18273 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
18274 | # do not overwrite the value of need_locks provided by the user | |
18275 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
18276 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
18277 | hard_links=yes | |
18278 | $rm conftest* | |
18279 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
18280 | touch conftest.a | |
18281 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
18282 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
18283 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
18284 | echo "${ECHO_T}$hard_links" >&6; } | |
18285 | if test "$hard_links" = no; then | |
18286 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
18287 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
18288 | need_locks=warn | |
18289 | fi | |
18290 | else | |
18291 | need_locks=no | |
18292 | fi | |
18293 | ||
18294 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
18295 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
18296 | ||
18297 | runpath_var= | |
18298 | allow_undefined_flag_GCJ= | |
18299 | enable_shared_with_static_runtimes_GCJ=no | |
18300 | archive_cmds_GCJ= | |
18301 | archive_expsym_cmds_GCJ= | |
18302 | old_archive_From_new_cmds_GCJ= | |
18303 | old_archive_from_expsyms_cmds_GCJ= | |
18304 | export_dynamic_flag_spec_GCJ= | |
18305 | whole_archive_flag_spec_GCJ= | |
18306 | thread_safe_flag_spec_GCJ= | |
18307 | hardcode_libdir_flag_spec_GCJ= | |
18308 | hardcode_libdir_flag_spec_ld_GCJ= | |
18309 | hardcode_libdir_separator_GCJ= | |
18310 | hardcode_direct_GCJ=no | |
18311 | hardcode_minus_L_GCJ=no | |
18312 | hardcode_shlibpath_var_GCJ=unsupported | |
18313 | link_all_deplibs_GCJ=unknown | |
18314 | hardcode_automatic_GCJ=no | |
18315 | module_cmds_GCJ= | |
18316 | module_expsym_cmds_GCJ= | |
18317 | always_export_symbols_GCJ=no | |
18318 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
18319 | # include_expsyms should be a list of space-separated symbols to be *always* | |
18320 | # included in the symbol list | |
18321 | include_expsyms_GCJ= | |
18322 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
18323 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
18324 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
18325 | # as well as any symbol that contains `d'. | |
b676ea3b | 18326 | exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
db137867 AC |
18327 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
18328 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
18329 | # the symbol is explicitly referenced. Since portable code cannot | |
18330 | # rely on this symbol name, it's probably fine to never include it in | |
18331 | # preloaded symbol tables. | |
b676ea3b | 18332 | # Exclude shared library initialization/finalization symbols. |
db137867 AC |
18333 | extract_expsyms_cmds= |
18334 | # Just being paranoid about ensuring that cc_basename is set. | |
18335 | for cc_temp in $compiler""; do | |
18336 | case $cc_temp in | |
18337 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18338 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18339 | \-*) ;; | |
18340 | *) break;; | |
18341 | esac | |
18342 | done | |
18343 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18344 | ||
18345 | case $host_os in | |
18346 | cygwin* | mingw* | pw32*) | |
18347 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
18348 | # When not using gcc, we currently assume that we are using | |
18349 | # Microsoft Visual C++. | |
18350 | if test "$GCC" != yes; then | |
18351 | with_gnu_ld=no | |
18352 | fi | |
18353 | ;; | |
18354 | interix*) | |
18355 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
18356 | with_gnu_ld=yes | |
18357 | ;; | |
18358 | openbsd*) | |
18359 | with_gnu_ld=no | |
18360 | ;; | |
18361 | esac | |
18362 | ||
18363 | ld_shlibs_GCJ=yes | |
18364 | if test "$with_gnu_ld" = yes; then | |
18365 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
18366 | wlarc='${wl}' | |
18367 | ||
18368 | # Set some defaults for GNU ld with shared library support. These | |
18369 | # are reset later if shared libraries are not supported. Putting them | |
18370 | # here allows them to be overridden if necessary. | |
18371 | runpath_var=LD_RUN_PATH | |
18372 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
18373 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
18374 | # ancient GNU ld didn't support --whole-archive et. al. | |
18375 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
18376 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
18377 | else | |
18378 | whole_archive_flag_spec_GCJ= | |
18379 | fi | |
18380 | supports_anon_versioning=no | |
18381 | case `$LD -v 2>/dev/null` in | |
18382 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
18383 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
18384 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
18385 | *\ 2.11.*) ;; # other 2.11 versions | |
18386 | *) supports_anon_versioning=yes ;; | |
18387 | esac | |
18388 | ||
18389 | # See if GNU ld supports shared libraries. | |
18390 | case $host_os in | |
b676ea3b | 18391 | aix[3-9]*) |
db137867 AC |
18392 | # On AIX/PPC, the GNU linker is very broken |
18393 | if test "$host_cpu" != ia64; then | |
18394 | ld_shlibs_GCJ=no | |
18395 | cat <<EOF 1>&2 | |
18396 | ||
18397 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
18398 | *** to be unable to reliably create shared libraries on AIX. | |
18399 | *** Therefore, libtool is disabling shared libraries support. If you | |
18400 | *** really care for shared libraries, you may want to modify your PATH | |
18401 | *** so that a non-GNU linker is found, and then restart. | |
18402 | ||
18403 | EOF | |
18404 | fi | |
18405 | ;; | |
18406 | ||
18407 | amigaos*) | |
18408 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
18409 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18410 | hardcode_minus_L_GCJ=yes | |
18411 | ||
18412 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
18413 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
18414 | # to version 4, is to share data among multiple programs linked | |
18415 | # with the same dynamic library. Since this doesn't match the | |
18416 | # behavior of shared libraries on other platforms, we can't use | |
18417 | # them. | |
18418 | ld_shlibs_GCJ=no | |
18419 | ;; | |
18420 | ||
18421 | beos*) | |
18422 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18423 | allow_undefined_flag_GCJ=unsupported | |
18424 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
18425 | # support --undefined. This deserves some investigation. FIXME | |
18426 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18427 | else | |
18428 | ld_shlibs_GCJ=no | |
18429 | fi | |
18430 | ;; | |
18431 | ||
18432 | cygwin* | mingw* | pw32*) | |
18433 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
18434 | # as there is no search path for DLLs. | |
18435 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18436 | allow_undefined_flag_GCJ=unsupported | |
18437 | always_export_symbols_GCJ=no | |
18438 | enable_shared_with_static_runtimes_GCJ=yes | |
18439 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
18440 | ||
18441 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
18442 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
18443 | # If the export-symbols file already is a .def file (1st line | |
18444 | # is EXPORTS), use it as is; otherwise, prepend... | |
18445 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
18446 | cp $export_symbols $output_objdir/$soname.def; | |
18447 | else | |
18448 | echo EXPORTS > $output_objdir/$soname.def; | |
18449 | cat $export_symbols >> $output_objdir/$soname.def; | |
18450 | fi~ | |
18451 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
18452 | else | |
18453 | ld_shlibs_GCJ=no | |
18454 | fi | |
18455 | ;; | |
18456 | ||
18457 | interix[3-9]*) | |
18458 | hardcode_direct_GCJ=no | |
18459 | hardcode_shlibpath_var_GCJ=no | |
18460 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
18461 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18462 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
18463 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
18464 | # default) and relocated if they conflict, which is a slow very memory | |
18465 | # consuming and fragmenting process. To avoid this, we pick a random, | |
18466 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
18467 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
18468 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
18469 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
18470 | ;; | |
18471 | ||
18472 | gnu* | linux* | k*bsd*-gnu) | |
18473 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18474 | tmp_addflag= | |
18475 | case $cc_basename,$host_cpu in | |
18476 | pgcc*) # Portland Group C compiler | |
18477 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
18478 | tmp_addflag=' $pic_flag' | |
18479 | ;; | |
18480 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
18481 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
18482 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
18483 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
18484 | tmp_addflag=' -i_dynamic' ;; | |
18485 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
18486 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
18487 | ifc* | ifort*) # Intel Fortran compiler | |
18488 | tmp_addflag=' -nofor_main' ;; | |
18489 | esac | |
18490 | case `$CC -V 2>&1 | sed 5q` in | |
18491 | *Sun\ C*) # Sun C 5.9 | |
18492 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
18493 | tmp_sharedflag='-G' ;; | |
18494 | *Sun\ F*) # Sun Fortran 8.3 | |
18495 | tmp_sharedflag='-G' ;; | |
18496 | *) | |
18497 | tmp_sharedflag='-shared' ;; | |
18498 | esac | |
18499 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18500 | ||
18501 | if test $supports_anon_versioning = yes; then | |
18502 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
18503 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
18504 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
18505 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
18506 | fi | |
18507 | link_all_deplibs_GCJ=no | |
18508 | else | |
18509 | ld_shlibs_GCJ=no | |
18510 | fi | |
18511 | ;; | |
18512 | ||
18513 | netbsd* | netbsdelf*-gnu) | |
18514 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
18515 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
18516 | wlarc= | |
18517 | else | |
18518 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18519 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18520 | fi | |
18521 | ;; | |
18522 | ||
18523 | solaris*) | |
18524 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
18525 | ld_shlibs_GCJ=no | |
18526 | cat <<EOF 1>&2 | |
18527 | ||
18528 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
18529 | *** create shared libraries on Solaris systems. Therefore, libtool | |
18530 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
18531 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
18532 | *** your PATH or compiler configuration so that the native linker is | |
18533 | *** used, and then restart. | |
18534 | ||
18535 | EOF | |
18536 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18537 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18538 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18539 | else | |
18540 | ld_shlibs_GCJ=no | |
18541 | fi | |
18542 | ;; | |
18543 | ||
18544 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
18545 | case `$LD -v 2>&1` in | |
18546 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
18547 | ld_shlibs_GCJ=no | |
18548 | cat <<_LT_EOF 1>&2 | |
18549 | ||
18550 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
18551 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
18552 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
18553 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
18554 | *** your PATH or compiler configuration so that the native linker is | |
18555 | *** used, and then restart. | |
18556 | ||
18557 | _LT_EOF | |
18558 | ;; | |
18559 | *) | |
18560 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18561 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
18562 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
18563 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
18564 | else | |
18565 | ld_shlibs_GCJ=no | |
18566 | fi | |
18567 | ;; | |
18568 | esac | |
18569 | ;; | |
18570 | ||
18571 | sunos4*) | |
18572 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18573 | wlarc= | |
18574 | hardcode_direct_GCJ=yes | |
18575 | hardcode_shlibpath_var_GCJ=no | |
18576 | ;; | |
18577 | ||
18578 | *) | |
18579 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18580 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18581 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18582 | else | |
18583 | ld_shlibs_GCJ=no | |
18584 | fi | |
18585 | ;; | |
18586 | esac | |
18587 | ||
18588 | if test "$ld_shlibs_GCJ" = no; then | |
18589 | runpath_var= | |
18590 | hardcode_libdir_flag_spec_GCJ= | |
18591 | export_dynamic_flag_spec_GCJ= | |
18592 | whole_archive_flag_spec_GCJ= | |
18593 | fi | |
18594 | else | |
18595 | # PORTME fill in a description of your system's linker (not GNU ld) | |
18596 | case $host_os in | |
18597 | aix3*) | |
18598 | allow_undefined_flag_GCJ=unsupported | |
18599 | always_export_symbols_GCJ=yes | |
18600 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
18601 | # Note: this linker hardcodes the directories in LIBPATH if there | |
18602 | # are no directories specified by -L. | |
18603 | hardcode_minus_L_GCJ=yes | |
18604 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
18605 | # Neither direct hardcoding nor static linking is supported with a | |
18606 | # broken collect2. | |
18607 | hardcode_direct_GCJ=unsupported | |
18608 | fi | |
18609 | ;; | |
18610 | ||
b676ea3b | 18611 | aix[4-9]*) |
db137867 AC |
18612 | if test "$host_cpu" = ia64; then |
18613 | # On IA64, the linker does run time linking by default, so we don't | |
18614 | # have to do anything special. | |
18615 | aix_use_runtimelinking=no | |
18616 | exp_sym_flag='-Bexport' | |
18617 | no_entry_flag="" | |
18618 | else | |
18619 | # If we're using GNU nm, then we don't want the "-C" option. | |
18620 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
18621 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
18622 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
18623 | else | |
18624 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
18625 | fi | |
18626 | aix_use_runtimelinking=no | |
18627 | ||
18628 | # Test if we are trying to use run time linking or normal | |
18629 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
18630 | # need to do runtime linking. | |
b676ea3b | 18631 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 AC |
18632 | for ld_flag in $LDFLAGS; do |
18633 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
18634 | aix_use_runtimelinking=yes | |
18635 | break | |
18636 | fi | |
18637 | done | |
18638 | ;; | |
18639 | esac | |
18640 | ||
18641 | exp_sym_flag='-bexport' | |
18642 | no_entry_flag='-bnoentry' | |
18643 | fi | |
18644 | ||
18645 | # When large executables or shared objects are built, AIX ld can | |
18646 | # have problems creating the table of contents. If linking a library | |
18647 | # or program results in "error TOC overflow" add -mminimal-toc to | |
18648 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
18649 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
18650 | ||
18651 | archive_cmds_GCJ='' | |
18652 | hardcode_direct_GCJ=yes | |
18653 | hardcode_libdir_separator_GCJ=':' | |
18654 | link_all_deplibs_GCJ=yes | |
18655 | ||
18656 | if test "$GCC" = yes; then | |
18657 | case $host_os in aix4.[012]|aix4.[012].*) | |
18658 | # We only want to do this on AIX 4.2 and lower, the check | |
18659 | # below for broken collect2 doesn't work under 4.3+ | |
18660 | collect2name=`${CC} -print-prog-name=collect2` | |
18661 | if test -f "$collect2name" && \ | |
18662 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
18663 | then | |
18664 | # We have reworked collect2 | |
18665 | : | |
18666 | else | |
18667 | # We have old collect2 | |
18668 | hardcode_direct_GCJ=unsupported | |
18669 | # It fails to find uninstalled libraries when the uninstalled | |
18670 | # path is not listed in the libpath. Setting hardcode_minus_L | |
18671 | # to unsupported forces relinking | |
18672 | hardcode_minus_L_GCJ=yes | |
18673 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18674 | hardcode_libdir_separator_GCJ= | |
18675 | fi | |
18676 | ;; | |
18677 | esac | |
18678 | shared_flag='-shared' | |
18679 | if test "$aix_use_runtimelinking" = yes; then | |
18680 | shared_flag="$shared_flag "'${wl}-G' | |
18681 | fi | |
18682 | else | |
18683 | # not using gcc | |
18684 | if test "$host_cpu" = ia64; then | |
18685 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
18686 | # chokes on -Wl,-G. The following line is correct: | |
18687 | shared_flag='-G' | |
18688 | else | |
18689 | if test "$aix_use_runtimelinking" = yes; then | |
18690 | shared_flag='${wl}-G' | |
18691 | else | |
18692 | shared_flag='${wl}-bM:SRE' | |
18693 | fi | |
18694 | fi | |
18695 | fi | |
18696 | ||
18697 | # It seems that -bexpall does not export symbols beginning with | |
18698 | # underscore (_), so it is better to generate a list of symbols to export. | |
18699 | always_export_symbols_GCJ=yes | |
18700 | if test "$aix_use_runtimelinking" = yes; then | |
18701 | # Warning - without using the other runtime loading flags (-brtl), | |
18702 | # -berok will link without error, but may produce a broken library. | |
18703 | allow_undefined_flag_GCJ='-berok' | |
18704 | # Determine the default libpath from the value encoded in an empty executable. | |
18705 | cat >conftest.$ac_ext <<_ACEOF | |
18706 | /* confdefs.h. */ | |
18707 | _ACEOF | |
18708 | cat confdefs.h >>conftest.$ac_ext | |
18709 | cat >>conftest.$ac_ext <<_ACEOF | |
18710 | /* end confdefs.h. */ | |
18711 | ||
18712 | int | |
18713 | main () | |
18714 | { | |
18715 | ||
18716 | ; | |
18717 | return 0; | |
18718 | } | |
18719 | _ACEOF | |
18720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18721 | if { (ac_try="$ac_link" | |
18722 | case "(($ac_try" in | |
18723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18724 | *) ac_try_echo=$ac_try;; | |
18725 | esac | |
18726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18727 | (eval "$ac_link") 2>conftest.er1 | |
18728 | ac_status=$? | |
18729 | grep -v '^ *+' conftest.er1 >conftest.err | |
18730 | rm -f conftest.er1 | |
18731 | cat conftest.err >&5 | |
18732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18733 | (exit $ac_status); } && { | |
18734 | test -z "$ac_c_werror_flag" || | |
18735 | test ! -s conftest.err | |
18736 | } && test -s conftest$ac_exeext && | |
18737 | $as_test_x conftest$ac_exeext; then | |
18738 | ||
18739 | lt_aix_libpath_sed=' | |
18740 | /Import File Strings/,/^$/ { | |
18741 | /^0/ { | |
18742 | s/^0 *\(.*\)$/\1/ | |
18743 | p | |
18744 | } | |
18745 | }' | |
18746 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18747 | # Check for a 64-bit object if we didn't find anything. | |
18748 | if test -z "$aix_libpath"; then | |
18749 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18750 | fi | |
18751 | else | |
18752 | echo "$as_me: failed program was:" >&5 | |
18753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18754 | ||
18755 | ||
18756 | fi | |
18757 | ||
18758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18759 | conftest$ac_exeext conftest.$ac_ext | |
18760 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
18761 | ||
18762 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18763 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
18764 | else | |
18765 | if test "$host_cpu" = ia64; then | |
18766 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
18767 | allow_undefined_flag_GCJ="-z nodefs" | |
18768 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
18769 | else | |
18770 | # Determine the default libpath from the value encoded in an empty executable. | |
18771 | cat >conftest.$ac_ext <<_ACEOF | |
18772 | /* confdefs.h. */ | |
18773 | _ACEOF | |
18774 | cat confdefs.h >>conftest.$ac_ext | |
18775 | cat >>conftest.$ac_ext <<_ACEOF | |
18776 | /* end confdefs.h. */ | |
18777 | ||
18778 | int | |
18779 | main () | |
18780 | { | |
18781 | ||
18782 | ; | |
18783 | return 0; | |
18784 | } | |
18785 | _ACEOF | |
18786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18787 | if { (ac_try="$ac_link" | |
18788 | case "(($ac_try" in | |
18789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18790 | *) ac_try_echo=$ac_try;; | |
18791 | esac | |
18792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18793 | (eval "$ac_link") 2>conftest.er1 | |
18794 | ac_status=$? | |
18795 | grep -v '^ *+' conftest.er1 >conftest.err | |
18796 | rm -f conftest.er1 | |
18797 | cat conftest.err >&5 | |
18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18799 | (exit $ac_status); } && { | |
18800 | test -z "$ac_c_werror_flag" || | |
18801 | test ! -s conftest.err | |
18802 | } && test -s conftest$ac_exeext && | |
18803 | $as_test_x conftest$ac_exeext; then | |
18804 | ||
18805 | lt_aix_libpath_sed=' | |
18806 | /Import File Strings/,/^$/ { | |
18807 | /^0/ { | |
18808 | s/^0 *\(.*\)$/\1/ | |
18809 | p | |
18810 | } | |
18811 | }' | |
18812 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18813 | # Check for a 64-bit object if we didn't find anything. | |
18814 | if test -z "$aix_libpath"; then | |
18815 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18816 | fi | |
18817 | else | |
18818 | echo "$as_me: failed program was:" >&5 | |
18819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18820 | ||
18821 | ||
18822 | fi | |
18823 | ||
18824 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18825 | conftest$ac_exeext conftest.$ac_ext | |
18826 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
18827 | ||
18828 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18829 | # Warning - without using the other run time loading flags, | |
18830 | # -berok will link without error, but may produce a broken library. | |
18831 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
18832 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
18833 | # Exported symbols can be pulled into shared objects from archives | |
18834 | whole_archive_flag_spec_GCJ='$convenience' | |
18835 | archive_cmds_need_lc_GCJ=yes | |
18836 | # This is similar to how AIX traditionally builds its shared libraries. | |
18837 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
18838 | fi | |
18839 | fi | |
18840 | ;; | |
18841 | ||
18842 | amigaos*) | |
18843 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
18844 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18845 | hardcode_minus_L_GCJ=yes | |
18846 | # see comment about different semantics on the GNU ld section | |
18847 | ld_shlibs_GCJ=no | |
18848 | ;; | |
18849 | ||
18850 | bsdi[45]*) | |
18851 | export_dynamic_flag_spec_GCJ=-rdynamic | |
18852 | ;; | |
18853 | ||
18854 | cygwin* | mingw* | pw32*) | |
18855 | # When not using gcc, we currently assume that we are using | |
18856 | # Microsoft Visual C++. | |
18857 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
18858 | # no search path for DLLs. | |
18859 | hardcode_libdir_flag_spec_GCJ=' ' | |
18860 | allow_undefined_flag_GCJ=unsupported | |
18861 | # Tell ltmain to make .lib files, not .a files. | |
18862 | libext=lib | |
18863 | # Tell ltmain to make .dll files, not .so files. | |
18864 | shrext_cmds=".dll" | |
18865 | # FIXME: Setting linknames here is a bad hack. | |
18866 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
18867 | # The linker will automatically build a .lib file if we build a DLL. | |
18868 | old_archive_From_new_cmds_GCJ='true' | |
18869 | # FIXME: Should let the user specify the lib program. | |
18870 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
18871 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
18872 | enable_shared_with_static_runtimes_GCJ=yes | |
18873 | ;; | |
18874 | ||
18875 | darwin* | rhapsody*) | |
18876 | case $host_os in | |
18877 | rhapsody* | darwin1.[012]) | |
18878 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
18879 | ;; | |
18880 | *) # Darwin 1.3 on | |
18881 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
18882 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
18883 | else | |
18884 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
18885 | 10.[012]) | |
18886 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
18887 | ;; | |
18888 | 10.*) | |
18889 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
18890 | ;; | |
18891 | esac | |
18892 | fi | |
18893 | ;; | |
18894 | esac | |
18895 | archive_cmds_need_lc_GCJ=no | |
18896 | hardcode_direct_GCJ=no | |
18897 | hardcode_automatic_GCJ=yes | |
18898 | hardcode_shlibpath_var_GCJ=unsupported | |
18899 | whole_archive_flag_spec_GCJ='' | |
18900 | link_all_deplibs_GCJ=yes | |
18901 | if test "$GCC" = yes ; then | |
18902 | output_verbose_link_cmd='echo' | |
b676ea3b AC |
18903 | archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
18904 | module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
18905 | archive_expsym_cmds_GCJ="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}" | |
18906 | module_expsym_cmds_GCJ="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}" | |
db137867 AC |
18907 | else |
18908 | case $cc_basename in | |
18909 | xlc*) | |
18910 | output_verbose_link_cmd='echo' | |
18911 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' | |
18912 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
18913 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
18914 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
18915 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
18916 | ;; | |
18917 | *) | |
18918 | ld_shlibs_GCJ=no | |
18919 | ;; | |
18920 | esac | |
18921 | fi | |
18922 | ;; | |
18923 | ||
18924 | dgux*) | |
18925 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18926 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18927 | hardcode_shlibpath_var_GCJ=no | |
18928 | ;; | |
18929 | ||
18930 | freebsd1*) | |
18931 | ld_shlibs_GCJ=no | |
18932 | ;; | |
18933 | ||
18934 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
18935 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
18936 | # does not break anything, and helps significantly (at the cost of a little | |
18937 | # extra space). | |
18938 | freebsd2.2*) | |
18939 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
18940 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
18941 | hardcode_direct_GCJ=yes | |
18942 | hardcode_shlibpath_var_GCJ=no | |
18943 | ;; | |
18944 | ||
18945 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
18946 | freebsd2*) | |
18947 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18948 | hardcode_direct_GCJ=yes | |
18949 | hardcode_minus_L_GCJ=yes | |
18950 | hardcode_shlibpath_var_GCJ=no | |
18951 | ;; | |
18952 | ||
18953 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
18954 | freebsd* | dragonfly*) | |
18955 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
18956 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
18957 | hardcode_direct_GCJ=yes | |
18958 | hardcode_shlibpath_var_GCJ=no | |
18959 | ;; | |
18960 | ||
18961 | hpux9*) | |
18962 | if test "$GCC" = yes; then | |
18963 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
18964 | else | |
18965 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
18966 | fi | |
18967 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
18968 | hardcode_libdir_separator_GCJ=: | |
18969 | hardcode_direct_GCJ=yes | |
18970 | ||
18971 | # hardcode_minus_L: Not really in the search PATH, | |
18972 | # but as the default location of the library. | |
18973 | hardcode_minus_L_GCJ=yes | |
18974 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18975 | ;; | |
18976 | ||
18977 | hpux10*) | |
18978 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
18979 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
18980 | else | |
18981 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
18982 | fi | |
18983 | if test "$with_gnu_ld" = no; then | |
18984 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
18985 | hardcode_libdir_separator_GCJ=: | |
18986 | ||
18987 | hardcode_direct_GCJ=yes | |
18988 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18989 | ||
18990 | # hardcode_minus_L: Not really in the search PATH, | |
18991 | # but as the default location of the library. | |
18992 | hardcode_minus_L_GCJ=yes | |
18993 | fi | |
18994 | ;; | |
18995 | ||
18996 | hpux11*) | |
18997 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
18998 | case $host_cpu in | |
18999 | hppa*64*) | |
19000 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19001 | ;; | |
19002 | ia64*) | |
19003 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
19004 | ;; | |
19005 | *) | |
19006 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
19007 | ;; | |
19008 | esac | |
19009 | else | |
19010 | case $host_cpu in | |
19011 | hppa*64*) | |
19012 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19013 | ;; | |
19014 | ia64*) | |
19015 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
19016 | ;; | |
19017 | *) | |
19018 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
19019 | ;; | |
19020 | esac | |
19021 | fi | |
19022 | if test "$with_gnu_ld" = no; then | |
19023 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
19024 | hardcode_libdir_separator_GCJ=: | |
19025 | ||
19026 | case $host_cpu in | |
19027 | hppa*64*|ia64*) | |
19028 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
19029 | hardcode_direct_GCJ=no | |
19030 | hardcode_shlibpath_var_GCJ=no | |
19031 | ;; | |
19032 | *) | |
19033 | hardcode_direct_GCJ=yes | |
19034 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19035 | ||
19036 | # hardcode_minus_L: Not really in the search PATH, | |
19037 | # but as the default location of the library. | |
19038 | hardcode_minus_L_GCJ=yes | |
19039 | ;; | |
19040 | esac | |
19041 | fi | |
19042 | ;; | |
19043 | ||
19044 | irix5* | irix6* | nonstopux*) | |
19045 | if test "$GCC" = yes; then | |
19046 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
19047 | else | |
19048 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
19049 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
19050 | fi | |
19051 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19052 | hardcode_libdir_separator_GCJ=: | |
19053 | link_all_deplibs_GCJ=yes | |
19054 | ;; | |
19055 | ||
19056 | netbsd* | netbsdelf*-gnu) | |
19057 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
19058 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
19059 | else | |
19060 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
19061 | fi | |
19062 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19063 | hardcode_direct_GCJ=yes | |
19064 | hardcode_shlibpath_var_GCJ=no | |
19065 | ;; | |
19066 | ||
19067 | newsos6) | |
19068 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19069 | hardcode_direct_GCJ=yes | |
19070 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19071 | hardcode_libdir_separator_GCJ=: | |
19072 | hardcode_shlibpath_var_GCJ=no | |
19073 | ;; | |
19074 | ||
19075 | openbsd*) | |
19076 | if test -f /usr/libexec/ld.so; then | |
19077 | hardcode_direct_GCJ=yes | |
19078 | hardcode_shlibpath_var_GCJ=no | |
19079 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
19080 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
19081 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
19082 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
19083 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19084 | else | |
19085 | case $host_os in | |
19086 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
19087 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
19088 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19089 | ;; | |
19090 | *) | |
19091 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
19092 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
19093 | ;; | |
19094 | esac | |
19095 | fi | |
19096 | else | |
19097 | ld_shlibs_GCJ=no | |
19098 | fi | |
19099 | ;; | |
19100 | ||
19101 | os2*) | |
19102 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19103 | hardcode_minus_L_GCJ=yes | |
19104 | allow_undefined_flag_GCJ=unsupported | |
19105 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
19106 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
19107 | ;; | |
19108 | ||
19109 | osf3*) | |
19110 | if test "$GCC" = yes; then | |
19111 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
19112 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
19113 | else | |
19114 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
19115 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
19116 | fi | |
19117 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19118 | hardcode_libdir_separator_GCJ=: | |
19119 | ;; | |
19120 | ||
19121 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
19122 | if test "$GCC" = yes; then | |
19123 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
19124 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
19125 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19126 | else | |
19127 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
19128 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
19129 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
19130 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
19131 | ||
19132 | # Both c and cxx compiler support -rpath directly | |
19133 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
19134 | fi | |
19135 | hardcode_libdir_separator_GCJ=: | |
19136 | ;; | |
19137 | ||
19138 | solaris*) | |
19139 | no_undefined_flag_GCJ=' -z text' | |
19140 | if test "$GCC" = yes; then | |
19141 | wlarc='${wl}' | |
19142 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19143 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19144 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
19145 | else | |
19146 | wlarc='' | |
19147 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19148 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19149 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
19150 | fi | |
19151 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19152 | hardcode_shlibpath_var_GCJ=no | |
19153 | case $host_os in | |
19154 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
19155 | *) | |
19156 | # The compiler driver will combine and reorder linker options, | |
19157 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
19158 | # but is careful enough not to reorder. | |
19159 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
19160 | if test "$GCC" = yes; then | |
19161 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
19162 | else | |
19163 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' | |
19164 | fi | |
19165 | ;; | |
19166 | esac | |
19167 | link_all_deplibs_GCJ=yes | |
19168 | ;; | |
19169 | ||
19170 | sunos4*) | |
19171 | if test "x$host_vendor" = xsequent; then | |
19172 | # Use $CC to link under sequent, because it throws in some extra .o | |
19173 | # files that make .init and .fini sections work. | |
19174 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
19175 | else | |
19176 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
19177 | fi | |
19178 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19179 | hardcode_direct_GCJ=yes | |
19180 | hardcode_minus_L_GCJ=yes | |
19181 | hardcode_shlibpath_var_GCJ=no | |
19182 | ;; | |
19183 | ||
19184 | sysv4) | |
19185 | case $host_vendor in | |
19186 | sni) | |
19187 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19188 | hardcode_direct_GCJ=yes # is this really true??? | |
19189 | ;; | |
19190 | siemens) | |
19191 | ## LD is ld it makes a PLAMLIB | |
19192 | ## CC just makes a GrossModule. | |
19193 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
19194 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
19195 | hardcode_direct_GCJ=no | |
19196 | ;; | |
19197 | motorola) | |
19198 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19199 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
19200 | ;; | |
19201 | esac | |
19202 | runpath_var='LD_RUN_PATH' | |
19203 | hardcode_shlibpath_var_GCJ=no | |
19204 | ;; | |
19205 | ||
19206 | sysv4.3*) | |
19207 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19208 | hardcode_shlibpath_var_GCJ=no | |
19209 | export_dynamic_flag_spec_GCJ='-Bexport' | |
19210 | ;; | |
19211 | ||
19212 | sysv4*MP*) | |
19213 | if test -d /usr/nec; then | |
19214 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19215 | hardcode_shlibpath_var_GCJ=no | |
19216 | runpath_var=LD_RUN_PATH | |
19217 | hardcode_runpath_var=yes | |
19218 | ld_shlibs_GCJ=yes | |
19219 | fi | |
19220 | ;; | |
19221 | ||
19222 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
19223 | no_undefined_flag_GCJ='${wl}-z,text' | |
19224 | archive_cmds_need_lc_GCJ=no | |
19225 | hardcode_shlibpath_var_GCJ=no | |
19226 | runpath_var='LD_RUN_PATH' | |
19227 | ||
19228 | if test "$GCC" = yes; then | |
19229 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19230 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19231 | else | |
19232 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19233 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19234 | fi | |
19235 | ;; | |
19236 | ||
19237 | sysv5* | sco3.2v5* | sco5v6*) | |
19238 | # Note: We can NOT use -z defs as we might desire, because we do not | |
19239 | # link with -lc, and that would cause any symbols used from libc to | |
19240 | # always be unresolved, which means just about no library would | |
19241 | # ever link correctly. If we're not using GNU ld we use -z text | |
19242 | # though, which does catch some bad symbols but isn't as heavy-handed | |
19243 | # as -z defs. | |
19244 | no_undefined_flag_GCJ='${wl}-z,text' | |
19245 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
19246 | archive_cmds_need_lc_GCJ=no | |
19247 | hardcode_shlibpath_var_GCJ=no | |
19248 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
19249 | hardcode_libdir_separator_GCJ=':' | |
19250 | link_all_deplibs_GCJ=yes | |
19251 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
19252 | runpath_var='LD_RUN_PATH' | |
19253 | ||
19254 | if test "$GCC" = yes; then | |
19255 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19256 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19257 | else | |
19258 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19259 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19260 | fi | |
19261 | ;; | |
19262 | ||
19263 | uts4*) | |
19264 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19265 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19266 | hardcode_shlibpath_var_GCJ=no | |
19267 | ;; | |
19268 | ||
19269 | *) | |
19270 | ld_shlibs_GCJ=no | |
19271 | ;; | |
19272 | esac | |
19273 | fi | |
19274 | ||
19275 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
19276 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } | |
19277 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
19278 | ||
19279 | # | |
19280 | # Do we need to explicitly link libc? | |
19281 | # | |
19282 | case "x$archive_cmds_need_lc_GCJ" in | |
19283 | x|xyes) | |
19284 | # Assume -lc should be added | |
19285 | archive_cmds_need_lc_GCJ=yes | |
19286 | ||
19287 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
19288 | case $archive_cmds_GCJ in | |
19289 | *'~'*) | |
19290 | # FIXME: we may have to deal with multi-command sequences. | |
19291 | ;; | |
19292 | '$CC '*) | |
19293 | # Test whether the compiler implicitly links with -lc since on some | |
19294 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
19295 | # to ld, don't add -lc before -lgcc. | |
19296 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
19297 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
19298 | $rm conftest* | |
19299 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19300 | ||
19301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19302 | (eval $ac_compile) 2>&5 | |
19303 | ac_status=$? | |
19304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19305 | (exit $ac_status); } 2>conftest.err; then | |
19306 | soname=conftest | |
19307 | lib=conftest | |
19308 | libobjs=conftest.$ac_objext | |
19309 | deplibs= | |
19310 | wl=$lt_prog_compiler_wl_GCJ | |
19311 | pic_flag=$lt_prog_compiler_pic_GCJ | |
19312 | compiler_flags=-v | |
19313 | linker_flags=-v | |
19314 | verstring= | |
19315 | output_objdir=. | |
19316 | libname=conftest | |
19317 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
19318 | allow_undefined_flag_GCJ= | |
19319 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
19320 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
19321 | ac_status=$? | |
19322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19323 | (exit $ac_status); } | |
19324 | then | |
19325 | archive_cmds_need_lc_GCJ=no | |
19326 | else | |
19327 | archive_cmds_need_lc_GCJ=yes | |
19328 | fi | |
19329 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
19330 | else | |
19331 | cat conftest.err 1>&5 | |
19332 | fi | |
19333 | $rm conftest* | |
19334 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
19335 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } | |
19336 | ;; | |
19337 | esac | |
19338 | fi | |
19339 | ;; | |
19340 | esac | |
19341 | ||
19342 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
19343 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
19344 | library_names_spec= | |
19345 | libname_spec='lib$name' | |
19346 | soname_spec= | |
19347 | shrext_cmds=".so" | |
19348 | postinstall_cmds= | |
19349 | postuninstall_cmds= | |
19350 | finish_cmds= | |
19351 | finish_eval= | |
19352 | shlibpath_var= | |
19353 | shlibpath_overrides_runpath=unknown | |
19354 | version_type=none | |
19355 | dynamic_linker="$host_os ld.so" | |
19356 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
19357 | ||
19358 | need_lib_prefix=unknown | |
19359 | hardcode_into_libs=no | |
19360 | ||
19361 | # when you set need_version to no, make sure it does not cause -set_version | |
19362 | # flags to be left without arguments | |
19363 | need_version=unknown | |
19364 | ||
19365 | case $host_os in | |
19366 | aix3*) | |
19367 | version_type=linux | |
19368 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
19369 | shlibpath_var=LIBPATH | |
19370 | ||
19371 | # AIX 3 has no versioning support, so we append a major version to the name. | |
19372 | soname_spec='${libname}${release}${shared_ext}$major' | |
19373 | ;; | |
19374 | ||
b676ea3b | 19375 | aix[4-9]*) |
db137867 AC |
19376 | version_type=linux |
19377 | need_lib_prefix=no | |
19378 | need_version=no | |
19379 | hardcode_into_libs=yes | |
19380 | if test "$host_cpu" = ia64; then | |
19381 | # AIX 5 supports IA64 | |
19382 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
19383 | shlibpath_var=LD_LIBRARY_PATH | |
19384 | else | |
19385 | # With GCC up to 2.95.x, collect2 would create an import file | |
19386 | # for dependence libraries. The import file would start with | |
19387 | # the line `#! .'. This would cause the generated library to | |
19388 | # depend on `.', always an invalid library. This was fixed in | |
19389 | # development snapshots of GCC prior to 3.0. | |
19390 | case $host_os in | |
19391 | aix4 | aix4.[01] | aix4.[01].*) | |
19392 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
19393 | echo ' yes ' | |
19394 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
19395 | : | |
19396 | else | |
19397 | can_build_shared=no | |
19398 | fi | |
19399 | ;; | |
19400 | esac | |
19401 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
19402 | # soname into executable. Probably we can add versioning support to | |
19403 | # collect2, so additional links can be useful in future. | |
19404 | if test "$aix_use_runtimelinking" = yes; then | |
19405 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
19406 | # instead of lib<name>.a to let people know that these are not | |
19407 | # typical AIX shared libraries. | |
19408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19409 | else | |
19410 | # We preserve .a as extension for shared libraries through AIX4.2 | |
19411 | # and later when we are not doing run time linking. | |
19412 | library_names_spec='${libname}${release}.a $libname.a' | |
19413 | soname_spec='${libname}${release}${shared_ext}$major' | |
19414 | fi | |
19415 | shlibpath_var=LIBPATH | |
19416 | fi | |
19417 | ;; | |
19418 | ||
19419 | amigaos*) | |
19420 | library_names_spec='$libname.ixlibrary $libname.a' | |
19421 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
19422 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
19423 | ;; | |
19424 | ||
19425 | beos*) | |
19426 | library_names_spec='${libname}${shared_ext}' | |
19427 | dynamic_linker="$host_os ld.so" | |
19428 | shlibpath_var=LIBRARY_PATH | |
19429 | ;; | |
19430 | ||
19431 | bsdi[45]*) | |
19432 | version_type=linux | |
19433 | need_version=no | |
19434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19435 | soname_spec='${libname}${release}${shared_ext}$major' | |
19436 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
19437 | shlibpath_var=LD_LIBRARY_PATH | |
19438 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
19439 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
19440 | # the default ld.so.conf also contains /usr/contrib/lib and | |
19441 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
19442 | # libtool to hard-code these into programs | |
19443 | ;; | |
19444 | ||
19445 | cygwin* | mingw* | pw32*) | |
19446 | version_type=windows | |
19447 | shrext_cmds=".dll" | |
19448 | need_version=no | |
19449 | need_lib_prefix=no | |
19450 | ||
19451 | case $GCC,$host_os in | |
19452 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
19453 | library_names_spec='$libname.dll.a' | |
19454 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
19455 | postinstall_cmds='base_file=`basename \${file}`~ | |
19456 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
19457 | dldir=$destdir/`dirname \$dlpath`~ | |
19458 | test -d \$dldir || mkdir -p \$dldir~ | |
19459 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
19460 | chmod a+x \$dldir/$dlname' | |
19461 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19462 | dlpath=$dir/\$dldll~ | |
19463 | $rm \$dlpath' | |
19464 | shlibpath_overrides_runpath=yes | |
19465 | ||
19466 | case $host_os in | |
19467 | cygwin*) | |
19468 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
19469 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19470 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
19471 | ;; | |
19472 | mingw*) | |
19473 | # MinGW DLLs use traditional 'lib' prefix | |
19474 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19475 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
19476 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
19477 | # It is most probably a Windows format PATH printed by | |
19478 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
19479 | # path with ; separators, and with drive letters. We can handle the | |
19480 | # drive letters (cygwin fileutils understands them), so leave them, | |
19481 | # especially as we might pass files found there to a mingw objdump, | |
19482 | # which wouldn't understand a cygwinified path. Ahh. | |
19483 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
19484 | else | |
19485 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19486 | fi | |
19487 | ;; | |
19488 | pw32*) | |
19489 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
19490 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19491 | ;; | |
19492 | esac | |
19493 | ;; | |
19494 | ||
19495 | *) | |
19496 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
19497 | ;; | |
19498 | esac | |
19499 | dynamic_linker='Win32 ld.exe' | |
19500 | # FIXME: first we should search . and the directory the executable is in | |
19501 | shlibpath_var=PATH | |
19502 | ;; | |
19503 | ||
19504 | darwin* | rhapsody*) | |
19505 | dynamic_linker="$host_os dyld" | |
19506 | version_type=darwin | |
19507 | need_lib_prefix=no | |
19508 | need_version=no | |
19509 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
19510 | soname_spec='${libname}${release}${major}$shared_ext' | |
19511 | shlibpath_overrides_runpath=yes | |
19512 | shlibpath_var=DYLD_LIBRARY_PATH | |
19513 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
19514 | ||
19515 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
19516 | ;; | |
19517 | ||
19518 | dgux*) | |
19519 | version_type=linux | |
19520 | need_lib_prefix=no | |
19521 | need_version=no | |
19522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
19523 | soname_spec='${libname}${release}${shared_ext}$major' | |
19524 | shlibpath_var=LD_LIBRARY_PATH | |
19525 | ;; | |
19526 | ||
19527 | freebsd1*) | |
19528 | dynamic_linker=no | |
19529 | ;; | |
19530 | ||
19531 | freebsd* | dragonfly*) | |
19532 | # DragonFly does not have aout. When/if they implement a new | |
19533 | # versioning mechanism, adjust this. | |
19534 | if test -x /usr/bin/objformat; then | |
19535 | objformat=`/usr/bin/objformat` | |
19536 | else | |
19537 | case $host_os in | |
19538 | freebsd[123]*) objformat=aout ;; | |
19539 | *) objformat=elf ;; | |
19540 | esac | |
19541 | fi | |
19542 | version_type=freebsd-$objformat | |
19543 | case $version_type in | |
19544 | freebsd-elf*) | |
19545 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19546 | need_version=no | |
19547 | need_lib_prefix=no | |
19548 | ;; | |
19549 | freebsd-*) | |
19550 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
19551 | need_version=yes | |
19552 | ;; | |
19553 | esac | |
19554 | shlibpath_var=LD_LIBRARY_PATH | |
19555 | case $host_os in | |
19556 | freebsd2*) | |
19557 | shlibpath_overrides_runpath=yes | |
19558 | ;; | |
19559 | freebsd3.[01]* | freebsdelf3.[01]*) | |
19560 | shlibpath_overrides_runpath=yes | |
19561 | hardcode_into_libs=yes | |
19562 | ;; | |
19563 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
19564 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
19565 | shlibpath_overrides_runpath=no | |
19566 | hardcode_into_libs=yes | |
19567 | ;; | |
19568 | *) # from 4.6 on, and DragonFly | |
19569 | shlibpath_overrides_runpath=yes | |
19570 | hardcode_into_libs=yes | |
19571 | ;; | |
19572 | esac | |
19573 | ;; | |
19574 | ||
19575 | gnu*) | |
19576 | version_type=linux | |
19577 | need_lib_prefix=no | |
19578 | need_version=no | |
19579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
19580 | soname_spec='${libname}${release}${shared_ext}$major' | |
19581 | shlibpath_var=LD_LIBRARY_PATH | |
19582 | hardcode_into_libs=yes | |
19583 | ;; | |
19584 | ||
19585 | hpux9* | hpux10* | hpux11*) | |
19586 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
19587 | # link against other versions. | |
19588 | version_type=sunos | |
19589 | need_lib_prefix=no | |
19590 | need_version=no | |
19591 | case $host_cpu in | |
19592 | ia64*) | |
19593 | shrext_cmds='.so' | |
19594 | hardcode_into_libs=yes | |
19595 | dynamic_linker="$host_os dld.so" | |
19596 | shlibpath_var=LD_LIBRARY_PATH | |
19597 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19599 | soname_spec='${libname}${release}${shared_ext}$major' | |
19600 | if test "X$HPUX_IA64_MODE" = X32; then | |
19601 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
19602 | else | |
19603 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
19604 | fi | |
19605 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19606 | ;; | |
19607 | hppa*64*) | |
19608 | shrext_cmds='.sl' | |
19609 | hardcode_into_libs=yes | |
19610 | dynamic_linker="$host_os dld.sl" | |
19611 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
19612 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19614 | soname_spec='${libname}${release}${shared_ext}$major' | |
19615 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
19616 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19617 | ;; | |
19618 | *) | |
19619 | shrext_cmds='.sl' | |
19620 | dynamic_linker="$host_os dld.sl" | |
19621 | shlibpath_var=SHLIB_PATH | |
19622 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
19623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19624 | soname_spec='${libname}${release}${shared_ext}$major' | |
19625 | ;; | |
19626 | esac | |
19627 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
19628 | postinstall_cmds='chmod 555 $lib' | |
19629 | ;; | |
19630 | ||
19631 | interix[3-9]*) | |
19632 | version_type=linux | |
19633 | need_lib_prefix=no | |
19634 | need_version=no | |
19635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19636 | soname_spec='${libname}${release}${shared_ext}$major' | |
19637 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
19638 | shlibpath_var=LD_LIBRARY_PATH | |
19639 | shlibpath_overrides_runpath=no | |
19640 | hardcode_into_libs=yes | |
19641 | ;; | |
19642 | ||
19643 | irix5* | irix6* | nonstopux*) | |
19644 | case $host_os in | |
19645 | nonstopux*) version_type=nonstopux ;; | |
19646 | *) | |
19647 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
19648 | version_type=linux | |
19649 | else | |
19650 | version_type=irix | |
19651 | fi ;; | |
19652 | esac | |
19653 | need_lib_prefix=no | |
19654 | need_version=no | |
19655 | soname_spec='${libname}${release}${shared_ext}$major' | |
19656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19657 | case $host_os in | |
19658 | irix5* | nonstopux*) | |
19659 | libsuff= shlibsuff= | |
19660 | ;; | |
19661 | *) | |
19662 | case $LD in # libtool.m4 will add one of these switches to LD | |
19663 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
19664 | libsuff= shlibsuff= libmagic=32-bit;; | |
19665 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
19666 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
19667 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
19668 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
19669 | *) libsuff= shlibsuff= libmagic=never-match;; | |
19670 | esac | |
19671 | ;; | |
19672 | esac | |
19673 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
19674 | shlibpath_overrides_runpath=no | |
19675 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
19676 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
19677 | hardcode_into_libs=yes | |
19678 | ;; | |
19679 | ||
19680 | # No shared lib support for Linux oldld, aout, or coff. | |
19681 | linux*oldld* | linux*aout* | linux*coff*) | |
19682 | dynamic_linker=no | |
19683 | ;; | |
19684 | ||
19685 | # This must be Linux ELF. | |
19686 | linux* | k*bsd*-gnu) | |
19687 | version_type=linux | |
19688 | need_lib_prefix=no | |
19689 | need_version=no | |
19690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19691 | soname_spec='${libname}${release}${shared_ext}$major' | |
19692 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
19693 | shlibpath_var=LD_LIBRARY_PATH | |
19694 | shlibpath_overrides_runpath=no | |
19695 | # This implies no fast_install, which is unacceptable. | |
19696 | # Some rework will be needed to allow for fast_install | |
19697 | # before this can be enabled. | |
19698 | hardcode_into_libs=yes | |
19699 | ||
19700 | # Append ld.so.conf contents to the search path | |
19701 | if test -f /etc/ld.so.conf; then | |
19702 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
19703 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
19704 | fi | |
19705 | ||
19706 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
19707 | # powerpc, because MkLinux only supported shared libraries with the | |
19708 | # GNU dynamic linker. Since this was broken with cross compilers, | |
19709 | # most powerpc-linux boxes support dynamic linking these days and | |
19710 | # people can always --disable-shared, the test was removed, and we | |
19711 | # assume the GNU/Linux dynamic linker is in use. | |
19712 | dynamic_linker='GNU/Linux ld.so' | |
19713 | ;; | |
19714 | ||
19715 | netbsdelf*-gnu) | |
19716 | version_type=linux | |
19717 | need_lib_prefix=no | |
19718 | need_version=no | |
19719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19720 | soname_spec='${libname}${release}${shared_ext}$major' | |
19721 | shlibpath_var=LD_LIBRARY_PATH | |
19722 | shlibpath_overrides_runpath=no | |
19723 | hardcode_into_libs=yes | |
19724 | dynamic_linker='NetBSD ld.elf_so' | |
19725 | ;; | |
19726 | ||
19727 | netbsd*) | |
19728 | version_type=sunos | |
19729 | need_lib_prefix=no | |
19730 | need_version=no | |
19731 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
19732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19733 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
19734 | dynamic_linker='NetBSD (a.out) ld.so' | |
19735 | else | |
19736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19737 | soname_spec='${libname}${release}${shared_ext}$major' | |
19738 | dynamic_linker='NetBSD ld.elf_so' | |
19739 | fi | |
19740 | shlibpath_var=LD_LIBRARY_PATH | |
19741 | shlibpath_overrides_runpath=yes | |
19742 | hardcode_into_libs=yes | |
19743 | ;; | |
19744 | ||
19745 | newsos6) | |
19746 | version_type=linux | |
19747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19748 | shlibpath_var=LD_LIBRARY_PATH | |
19749 | shlibpath_overrides_runpath=yes | |
19750 | ;; | |
19751 | ||
19752 | nto-qnx*) | |
19753 | version_type=linux | |
19754 | need_lib_prefix=no | |
19755 | need_version=no | |
19756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19757 | soname_spec='${libname}${release}${shared_ext}$major' | |
19758 | shlibpath_var=LD_LIBRARY_PATH | |
19759 | shlibpath_overrides_runpath=yes | |
19760 | ;; | |
19761 | ||
19762 | openbsd*) | |
19763 | version_type=sunos | |
19764 | sys_lib_dlsearch_path_spec="/usr/lib" | |
19765 | need_lib_prefix=no | |
19766 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
19767 | case $host_os in | |
19768 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
19769 | *) need_version=no ;; | |
19770 | esac | |
19771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19772 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
19773 | shlibpath_var=LD_LIBRARY_PATH | |
19774 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
19775 | case $host_os in | |
19776 | openbsd2.[89] | openbsd2.[89].*) | |
19777 | shlibpath_overrides_runpath=no | |
19778 | ;; | |
19779 | *) | |
19780 | shlibpath_overrides_runpath=yes | |
19781 | ;; | |
19782 | esac | |
19783 | else | |
19784 | shlibpath_overrides_runpath=yes | |
19785 | fi | |
19786 | ;; | |
19787 | ||
19788 | os2*) | |
19789 | libname_spec='$name' | |
19790 | shrext_cmds=".dll" | |
19791 | need_lib_prefix=no | |
19792 | library_names_spec='$libname${shared_ext} $libname.a' | |
19793 | dynamic_linker='OS/2 ld.exe' | |
19794 | shlibpath_var=LIBPATH | |
19795 | ;; | |
19796 | ||
19797 | osf3* | osf4* | osf5*) | |
19798 | version_type=osf | |
19799 | need_lib_prefix=no | |
19800 | need_version=no | |
19801 | soname_spec='${libname}${release}${shared_ext}$major' | |
19802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19803 | shlibpath_var=LD_LIBRARY_PATH | |
19804 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
19805 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
19806 | ;; | |
19807 | ||
19808 | rdos*) | |
19809 | dynamic_linker=no | |
19810 | ;; | |
19811 | ||
19812 | solaris*) | |
19813 | version_type=linux | |
19814 | need_lib_prefix=no | |
19815 | need_version=no | |
19816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19817 | soname_spec='${libname}${release}${shared_ext}$major' | |
19818 | shlibpath_var=LD_LIBRARY_PATH | |
19819 | shlibpath_overrides_runpath=yes | |
19820 | hardcode_into_libs=yes | |
19821 | # ldd complains unless libraries are executable | |
19822 | postinstall_cmds='chmod +x $lib' | |
19823 | ;; | |
19824 | ||
19825 | sunos4*) | |
19826 | version_type=sunos | |
19827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19828 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
19829 | shlibpath_var=LD_LIBRARY_PATH | |
19830 | shlibpath_overrides_runpath=yes | |
19831 | if test "$with_gnu_ld" = yes; then | |
19832 | need_lib_prefix=no | |
19833 | fi | |
19834 | need_version=yes | |
19835 | ;; | |
19836 | ||
19837 | sysv4 | sysv4.3*) | |
19838 | version_type=linux | |
19839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19840 | soname_spec='${libname}${release}${shared_ext}$major' | |
19841 | shlibpath_var=LD_LIBRARY_PATH | |
19842 | case $host_vendor in | |
19843 | sni) | |
19844 | shlibpath_overrides_runpath=no | |
19845 | need_lib_prefix=no | |
19846 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
19847 | runpath_var=LD_RUN_PATH | |
19848 | ;; | |
19849 | siemens) | |
19850 | need_lib_prefix=no | |
19851 | ;; | |
19852 | motorola) | |
19853 | need_lib_prefix=no | |
19854 | need_version=no | |
19855 | shlibpath_overrides_runpath=no | |
19856 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
19857 | ;; | |
19858 | esac | |
19859 | ;; | |
19860 | ||
19861 | sysv4*MP*) | |
19862 | if test -d /usr/nec ;then | |
19863 | version_type=linux | |
19864 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
19865 | soname_spec='$libname${shared_ext}.$major' | |
19866 | shlibpath_var=LD_LIBRARY_PATH | |
19867 | fi | |
19868 | ;; | |
19869 | ||
19870 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
19871 | version_type=freebsd-elf | |
19872 | need_lib_prefix=no | |
19873 | need_version=no | |
19874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19875 | soname_spec='${libname}${release}${shared_ext}$major' | |
19876 | shlibpath_var=LD_LIBRARY_PATH | |
19877 | hardcode_into_libs=yes | |
19878 | if test "$with_gnu_ld" = yes; then | |
19879 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
19880 | shlibpath_overrides_runpath=no | |
19881 | else | |
19882 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
19883 | shlibpath_overrides_runpath=yes | |
19884 | case $host_os in | |
19885 | sco3.2v5*) | |
19886 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
19887 | ;; | |
19888 | esac | |
19889 | fi | |
19890 | sys_lib_dlsearch_path_spec='/usr/lib' | |
19891 | ;; | |
19892 | ||
19893 | uts4*) | |
19894 | version_type=linux | |
19895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19896 | soname_spec='${libname}${release}${shared_ext}$major' | |
19897 | shlibpath_var=LD_LIBRARY_PATH | |
19898 | ;; | |
19899 | ||
19900 | *) | |
19901 | dynamic_linker=no | |
19902 | ;; | |
19903 | esac | |
19904 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
19905 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
19906 | test "$dynamic_linker" = no && can_build_shared=no | |
19907 | ||
b676ea3b AC |
19908 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
19909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19910 | else | |
19911 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" | |
19912 | fi | |
19913 | ||
19914 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
19915 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
19916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19917 | else | |
19918 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" | |
19919 | fi | |
19920 | ||
19921 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
19922 | ||
db137867 AC |
19923 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
19924 | if test "$GCC" = yes; then | |
19925 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
19926 | fi | |
19927 | ||
19928 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
19929 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
19930 | hardcode_action_GCJ= | |
19931 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
19932 | test -n "$runpath_var_GCJ" || \ | |
19933 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
19934 | ||
19935 | # We can hardcode non-existant directories. | |
19936 | if test "$hardcode_direct_GCJ" != no && | |
19937 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
19938 | # have to relink, otherwise we might link with an installed library | |
19939 | # when we should be linking with a yet-to-be-installed one | |
19940 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
19941 | test "$hardcode_minus_L_GCJ" != no; then | |
19942 | # Linking always hardcodes the temporary library directory. | |
19943 | hardcode_action_GCJ=relink | |
19944 | else | |
19945 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
19946 | hardcode_action_GCJ=immediate | |
19947 | fi | |
19948 | else | |
19949 | # We cannot hardcode anything, or else we can only hardcode existing | |
19950 | # directories. | |
19951 | hardcode_action_GCJ=unsupported | |
19952 | fi | |
19953 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
19954 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } | |
19955 | ||
19956 | if test "$hardcode_action_GCJ" = relink; then | |
19957 | # Fast installation is not supported | |
19958 | enable_fast_install=no | |
19959 | elif test "$shlibpath_overrides_runpath" = yes || | |
19960 | test "$enable_shared" = no; then | |
19961 | # Fast installation is not necessary | |
19962 | enable_fast_install=needless | |
19963 | fi | |
19964 | ||
19965 | ||
19966 | # The else clause should only fire when bootstrapping the | |
19967 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
19968 | # with your package, and you will get complaints that there are | |
19969 | # no rules to generate ltmain.sh. | |
19970 | if test -f "$ltmain"; then | |
19971 | # See if we are running on zsh, and set the options which allow our commands through | |
19972 | # without removal of \ escapes. | |
19973 | if test -n "${ZSH_VERSION+set}" ; then | |
19974 | setopt NO_GLOB_SUBST | |
19975 | fi | |
19976 | # Now quote all the things that may contain metacharacters while being | |
19977 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
19978 | # variables and quote the copies for generation of the libtool script. | |
19979 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
19980 | SED SHELL STRIP \ | |
19981 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
19982 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
19983 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
19984 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
19985 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19986 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
19987 | old_postinstall_cmds old_postuninstall_cmds \ | |
19988 | compiler_GCJ \ | |
19989 | CC_GCJ \ | |
19990 | LD_GCJ \ | |
19991 | lt_prog_compiler_wl_GCJ \ | |
19992 | lt_prog_compiler_pic_GCJ \ | |
19993 | lt_prog_compiler_static_GCJ \ | |
19994 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
19995 | export_dynamic_flag_spec_GCJ \ | |
19996 | thread_safe_flag_spec_GCJ \ | |
19997 | whole_archive_flag_spec_GCJ \ | |
19998 | enable_shared_with_static_runtimes_GCJ \ | |
19999 | old_archive_cmds_GCJ \ | |
20000 | old_archive_from_new_cmds_GCJ \ | |
20001 | predep_objects_GCJ \ | |
20002 | postdep_objects_GCJ \ | |
20003 | predeps_GCJ \ | |
20004 | postdeps_GCJ \ | |
20005 | compiler_lib_search_path_GCJ \ | |
b676ea3b | 20006 | compiler_lib_search_dirs_GCJ \ |
db137867 AC |
20007 | archive_cmds_GCJ \ |
20008 | archive_expsym_cmds_GCJ \ | |
20009 | postinstall_cmds_GCJ \ | |
20010 | postuninstall_cmds_GCJ \ | |
20011 | old_archive_from_expsyms_cmds_GCJ \ | |
20012 | allow_undefined_flag_GCJ \ | |
20013 | no_undefined_flag_GCJ \ | |
20014 | export_symbols_cmds_GCJ \ | |
20015 | hardcode_libdir_flag_spec_GCJ \ | |
20016 | hardcode_libdir_flag_spec_ld_GCJ \ | |
20017 | hardcode_libdir_separator_GCJ \ | |
20018 | hardcode_automatic_GCJ \ | |
20019 | module_cmds_GCJ \ | |
20020 | module_expsym_cmds_GCJ \ | |
20021 | lt_cv_prog_compiler_c_o_GCJ \ | |
20022 | fix_srcfile_path_GCJ \ | |
20023 | exclude_expsyms_GCJ \ | |
20024 | include_expsyms_GCJ; do | |
20025 | ||
20026 | case $var in | |
20027 | old_archive_cmds_GCJ | \ | |
20028 | old_archive_from_new_cmds_GCJ | \ | |
20029 | archive_cmds_GCJ | \ | |
20030 | archive_expsym_cmds_GCJ | \ | |
20031 | module_cmds_GCJ | \ | |
20032 | module_expsym_cmds_GCJ | \ | |
20033 | old_archive_from_expsyms_cmds_GCJ | \ | |
20034 | export_symbols_cmds_GCJ | \ | |
20035 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
20036 | postinstall_cmds | postuninstall_cmds | \ | |
20037 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
20038 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
20039 | # Double-quote double-evaled strings. | |
20040 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
20041 | ;; | |
20042 | *) | |
20043 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
20044 | ;; | |
20045 | esac | |
20046 | done | |
20047 | ||
20048 | case $lt_echo in | |
20049 | *'\$0 --fallback-echo"') | |
20050 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
20051 | ;; | |
20052 | esac | |
20053 | ||
20054 | cfgfile="$ofile" | |
20055 | ||
20056 | cat <<__EOF__ >> "$cfgfile" | |
20057 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
20058 | ||
20059 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20060 | ||
20061 | # Shell to use when invoking shell scripts. | |
20062 | SHELL=$lt_SHELL | |
20063 | ||
20064 | # Whether or not to build shared libraries. | |
20065 | build_libtool_libs=$enable_shared | |
20066 | ||
20067 | # Whether or not to build static libraries. | |
20068 | build_old_libs=$enable_static | |
20069 | ||
20070 | # Whether or not to add -lc for building shared libraries. | |
20071 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
20072 | ||
20073 | # Whether or not to disallow shared libs when runtime libs are static | |
20074 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
20075 | ||
20076 | # Whether or not to optimize for fast installation. | |
20077 | fast_install=$enable_fast_install | |
20078 | ||
20079 | # The host system. | |
20080 | host_alias=$host_alias | |
20081 | host=$host | |
20082 | host_os=$host_os | |
20083 | ||
20084 | # The build system. | |
20085 | build_alias=$build_alias | |
20086 | build=$build | |
20087 | build_os=$build_os | |
20088 | ||
20089 | # An echo program that does not interpret backslashes. | |
20090 | echo=$lt_echo | |
20091 | ||
20092 | # The archiver. | |
20093 | AR=$lt_AR | |
20094 | AR_FLAGS=$lt_AR_FLAGS | |
20095 | ||
20096 | # A C compiler. | |
20097 | LTCC=$lt_LTCC | |
20098 | ||
20099 | # LTCC compiler flags. | |
20100 | LTCFLAGS=$lt_LTCFLAGS | |
20101 | ||
20102 | # A language-specific compiler. | |
20103 | CC=$lt_compiler_GCJ | |
20104 | ||
20105 | # Is the compiler the GNU C compiler? | |
20106 | with_gcc=$GCC_GCJ | |
20107 | ||
20108 | # An ERE matcher. | |
20109 | EGREP=$lt_EGREP | |
20110 | ||
20111 | # The linker used to build libraries. | |
20112 | LD=$lt_LD_GCJ | |
20113 | ||
20114 | # Whether we need hard or soft links. | |
20115 | LN_S=$lt_LN_S | |
20116 | ||
20117 | # A BSD-compatible nm program. | |
20118 | NM=$lt_NM | |
20119 | ||
20120 | # A symbol stripping program | |
20121 | STRIP=$lt_STRIP | |
20122 | ||
20123 | # Used to examine libraries when file_magic_cmd begins "file" | |
20124 | MAGIC_CMD=$MAGIC_CMD | |
20125 | ||
20126 | # Used on cygwin: DLL creation program. | |
20127 | DLLTOOL="$DLLTOOL" | |
20128 | ||
20129 | # Used on cygwin: object dumper. | |
20130 | OBJDUMP="$OBJDUMP" | |
20131 | ||
20132 | # Used on cygwin: assembler. | |
20133 | AS="$AS" | |
20134 | ||
20135 | # The name of the directory that contains temporary libtool files. | |
20136 | objdir=$objdir | |
20137 | ||
20138 | # How to create reloadable object files. | |
20139 | reload_flag=$lt_reload_flag | |
20140 | reload_cmds=$lt_reload_cmds | |
20141 | ||
20142 | # How to pass a linker flag through the compiler. | |
20143 | wl=$lt_lt_prog_compiler_wl_GCJ | |
20144 | ||
20145 | # Object file suffix (normally "o"). | |
20146 | objext="$ac_objext" | |
20147 | ||
20148 | # Old archive suffix (normally "a"). | |
20149 | libext="$libext" | |
20150 | ||
20151 | # Shared library suffix (normally ".so"). | |
20152 | shrext_cmds='$shrext_cmds' | |
20153 | ||
20154 | # Executable file suffix (normally ""). | |
20155 | exeext="$exeext" | |
20156 | ||
20157 | # Additional compiler flags for building library objects. | |
20158 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
20159 | pic_mode=$pic_mode | |
20160 | ||
20161 | # What is the maximum length of a command? | |
20162 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
20163 | ||
20164 | # Does compiler simultaneously support -c and -o options? | |
20165 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
20166 | ||
20167 | # Must we lock files when doing compilation? | |
20168 | need_locks=$lt_need_locks | |
20169 | ||
20170 | # Do we need the lib prefix for modules? | |
20171 | need_lib_prefix=$need_lib_prefix | |
20172 | ||
20173 | # Do we need a version for libraries? | |
20174 | need_version=$need_version | |
20175 | ||
20176 | # Whether dlopen is supported. | |
20177 | dlopen_support=$enable_dlopen | |
20178 | ||
20179 | # Whether dlopen of programs is supported. | |
20180 | dlopen_self=$enable_dlopen_self | |
20181 | ||
20182 | # Whether dlopen of statically linked programs is supported. | |
20183 | dlopen_self_static=$enable_dlopen_self_static | |
20184 | ||
20185 | # Compiler flag to prevent dynamic linking. | |
20186 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
20187 | ||
20188 | # Compiler flag to turn off builtin functions. | |
20189 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
20190 | ||
20191 | # Compiler flag to allow reflexive dlopens. | |
20192 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
20193 | ||
20194 | # Compiler flag to generate shared objects directly from archives. | |
20195 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
20196 | ||
20197 | # Compiler flag to generate thread-safe objects. | |
20198 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
20199 | ||
20200 | # Library versioning type. | |
20201 | version_type=$version_type | |
20202 | ||
20203 | # Format of library name prefix. | |
20204 | libname_spec=$lt_libname_spec | |
20205 | ||
20206 | # List of archive names. First name is the real one, the rest are links. | |
20207 | # The last name is the one that the linker finds with -lNAME. | |
20208 | library_names_spec=$lt_library_names_spec | |
20209 | ||
20210 | # The coded name of the library, if different from the real name. | |
20211 | soname_spec=$lt_soname_spec | |
20212 | ||
20213 | # Commands used to build and install an old-style archive. | |
20214 | RANLIB=$lt_RANLIB | |
20215 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
20216 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20217 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20218 | ||
20219 | # Create an old-style archive from a shared archive. | |
20220 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
20221 | ||
20222 | # Create a temporary old-style archive to link instead of a shared archive. | |
20223 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
20224 | ||
20225 | # Commands used to build and install a shared archive. | |
20226 | archive_cmds=$lt_archive_cmds_GCJ | |
20227 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
20228 | postinstall_cmds=$lt_postinstall_cmds | |
20229 | postuninstall_cmds=$lt_postuninstall_cmds | |
20230 | ||
20231 | # Commands used to build a loadable module (assumed same as above if empty) | |
20232 | module_cmds=$lt_module_cmds_GCJ | |
20233 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
20234 | ||
20235 | # Commands to strip libraries. | |
20236 | old_striplib=$lt_old_striplib | |
20237 | striplib=$lt_striplib | |
20238 | ||
20239 | # Dependencies to place before the objects being linked to create a | |
20240 | # shared library. | |
20241 | predep_objects=$lt_predep_objects_GCJ | |
20242 | ||
20243 | # Dependencies to place after the objects being linked to create a | |
20244 | # shared library. | |
20245 | postdep_objects=$lt_postdep_objects_GCJ | |
20246 | ||
20247 | # Dependencies to place before the objects being linked to create a | |
20248 | # shared library. | |
20249 | predeps=$lt_predeps_GCJ | |
20250 | ||
20251 | # Dependencies to place after the objects being linked to create a | |
20252 | # shared library. | |
20253 | postdeps=$lt_postdeps_GCJ | |
20254 | ||
b676ea3b AC |
20255 | # The directories searched by this compiler when creating a shared |
20256 | # library | |
20257 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ | |
20258 | ||
db137867 AC |
20259 | # The library search path used internally by the compiler when linking |
20260 | # a shared library. | |
20261 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
20262 | ||
20263 | # Method to check whether dependent libraries are shared objects. | |
20264 | deplibs_check_method=$lt_deplibs_check_method | |
20265 | ||
20266 | # Command to use when deplibs_check_method == file_magic. | |
20267 | file_magic_cmd=$lt_file_magic_cmd | |
20268 | ||
20269 | # Flag that allows shared libraries with undefined symbols to be built. | |
20270 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
20271 | ||
20272 | # Flag that forces no undefined symbols. | |
20273 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
20274 | ||
20275 | # Commands used to finish a libtool library installation in a directory. | |
20276 | finish_cmds=$lt_finish_cmds | |
20277 | ||
20278 | # Same as above, but a single script fragment to be evaled but not shown. | |
20279 | finish_eval=$lt_finish_eval | |
20280 | ||
20281 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20282 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20283 | ||
20284 | # Transform the output of nm in a proper C declaration | |
20285 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20286 | ||
20287 | # Transform the output of nm in a C name address pair | |
20288 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20289 | ||
20290 | # This is the shared library runtime path variable. | |
20291 | runpath_var=$runpath_var | |
20292 | ||
20293 | # This is the shared library path variable. | |
20294 | shlibpath_var=$shlibpath_var | |
20295 | ||
20296 | # Is shlibpath searched before the hard-coded library search path? | |
20297 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20298 | ||
20299 | # How to hardcode a shared library path into an executable. | |
20300 | hardcode_action=$hardcode_action_GCJ | |
20301 | ||
20302 | # Whether we should hardcode library paths into libraries. | |
20303 | hardcode_into_libs=$hardcode_into_libs | |
20304 | ||
20305 | # Flag to hardcode \$libdir into a binary during linking. | |
20306 | # This must work even if \$libdir does not exist. | |
20307 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
20308 | ||
20309 | # If ld is used when linking, flag to hardcode \$libdir into | |
20310 | # a binary during linking. This must work even if \$libdir does | |
20311 | # not exist. | |
20312 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
20313 | ||
20314 | # Whether we need a single -rpath flag with a separated argument. | |
20315 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
20316 | ||
20317 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
20318 | # resulting binary. | |
20319 | hardcode_direct=$hardcode_direct_GCJ | |
20320 | ||
20321 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
20322 | # resulting binary. | |
20323 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
20324 | ||
20325 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
20326 | # the resulting binary. | |
20327 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
20328 | ||
20329 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
20330 | # and all subsequent libraries and executables linked against it. | |
20331 | hardcode_automatic=$hardcode_automatic_GCJ | |
20332 | ||
20333 | # Variables whose values should be saved in libtool wrapper scripts and | |
20334 | # restored at relink time. | |
20335 | variables_saved_for_relink="$variables_saved_for_relink" | |
20336 | ||
20337 | # Whether libtool must link a program against all its dependency libraries. | |
20338 | link_all_deplibs=$link_all_deplibs_GCJ | |
20339 | ||
20340 | # Compile-time system search path for libraries | |
20341 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20342 | ||
20343 | # Run-time system search path for libraries | |
20344 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
20345 | ||
20346 | # Fix the shell variable \$srcfile for the compiler. | |
20347 | fix_srcfile_path=$lt_fix_srcfile_path | |
20348 | ||
20349 | # Set to yes if exported symbols are required. | |
20350 | always_export_symbols=$always_export_symbols_GCJ | |
20351 | ||
20352 | # The commands to list exported symbols. | |
20353 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
20354 | ||
20355 | # The commands to extract the exported symbol list from a shared archive. | |
20356 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20357 | ||
20358 | # Symbols that should not be listed in the preloaded symbols. | |
20359 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
20360 | ||
20361 | # Symbols that must always be exported. | |
20362 | include_expsyms=$lt_include_expsyms_GCJ | |
20363 | ||
20364 | # ### END LIBTOOL TAG CONFIG: $tagname | |
20365 | ||
20366 | __EOF__ | |
20367 | ||
20368 | ||
20369 | else | |
20370 | # If there is no Makefile yet, we rely on a make rule to execute | |
20371 | # `config.status --recheck' to rerun these tests and create the | |
20372 | # libtool script then. | |
20373 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
20374 | if test -f "$ltmain_in"; then | |
20375 | test -f Makefile && make "$ltmain" | |
20376 | fi | |
20377 | fi | |
20378 | ||
20379 | ||
20380 | ac_ext=c | |
20381 | ac_cpp='$CPP $CPPFLAGS' | |
20382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20385 | ||
20386 | CC="$lt_save_CC" | |
20387 | ||
20388 | else | |
20389 | tagname="" | |
20390 | fi | |
20391 | ;; | |
20392 | ||
20393 | RC) | |
20394 | ||
20395 | ||
20396 | # Source file extension for RC test sources. | |
20397 | ac_ext=rc | |
20398 | ||
20399 | # Object file extension for compiled RC test sources. | |
20400 | objext=o | |
20401 | objext_RC=$objext | |
20402 | ||
20403 | # Code to be used in simple compile tests | |
20404 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
20405 | ||
20406 | # Code to be used in simple link tests | |
20407 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
20408 | ||
20409 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
20410 | ||
20411 | # If no C compiler was specified, use CC. | |
20412 | LTCC=${LTCC-"$CC"} | |
20413 | ||
20414 | # If no C compiler flags were specified, use CFLAGS. | |
20415 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
20416 | ||
20417 | # Allow CC to be a program name with arguments. | |
20418 | compiler=$CC | |
20419 | ||
20420 | ||
20421 | # save warnings/boilerplate of simple test code | |
20422 | ac_outfile=conftest.$ac_objext | |
20423 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
20424 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
20425 | _lt_compiler_boilerplate=`cat conftest.err` | |
20426 | $rm conftest* | |
20427 | ||
20428 | ac_outfile=conftest.$ac_objext | |
20429 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
20430 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
20431 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 20432 | $rm -r conftest* |
db137867 AC |
20433 | |
20434 | ||
20435 | # Allow CC to be a program name with arguments. | |
20436 | lt_save_CC="$CC" | |
20437 | CC=${RC-"windres"} | |
20438 | compiler=$CC | |
20439 | compiler_RC=$CC | |
20440 | for cc_temp in $compiler""; do | |
20441 | case $cc_temp in | |
20442 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
20443 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
20444 | \-*) ;; | |
20445 | *) break;; | |
20446 | esac | |
20447 | done | |
20448 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
20449 | ||
20450 | lt_cv_prog_compiler_c_o_RC=yes | |
20451 | ||
20452 | # The else clause should only fire when bootstrapping the | |
20453 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
20454 | # with your package, and you will get complaints that there are | |
20455 | # no rules to generate ltmain.sh. | |
20456 | if test -f "$ltmain"; then | |
20457 | # See if we are running on zsh, and set the options which allow our commands through | |
20458 | # without removal of \ escapes. | |
20459 | if test -n "${ZSH_VERSION+set}" ; then | |
20460 | setopt NO_GLOB_SUBST | |
20461 | fi | |
20462 | # Now quote all the things that may contain metacharacters while being | |
20463 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
20464 | # variables and quote the copies for generation of the libtool script. | |
20465 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
20466 | SED SHELL STRIP \ | |
20467 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
20468 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
20469 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
20470 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
20471 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20472 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
20473 | old_postinstall_cmds old_postuninstall_cmds \ | |
20474 | compiler_RC \ | |
20475 | CC_RC \ | |
20476 | LD_RC \ | |
20477 | lt_prog_compiler_wl_RC \ | |
20478 | lt_prog_compiler_pic_RC \ | |
20479 | lt_prog_compiler_static_RC \ | |
20480 | lt_prog_compiler_no_builtin_flag_RC \ | |
20481 | export_dynamic_flag_spec_RC \ | |
20482 | thread_safe_flag_spec_RC \ | |
20483 | whole_archive_flag_spec_RC \ | |
20484 | enable_shared_with_static_runtimes_RC \ | |
20485 | old_archive_cmds_RC \ | |
20486 | old_archive_from_new_cmds_RC \ | |
20487 | predep_objects_RC \ | |
20488 | postdep_objects_RC \ | |
20489 | predeps_RC \ | |
20490 | postdeps_RC \ | |
20491 | compiler_lib_search_path_RC \ | |
b676ea3b | 20492 | compiler_lib_search_dirs_RC \ |
db137867 AC |
20493 | archive_cmds_RC \ |
20494 | archive_expsym_cmds_RC \ | |
20495 | postinstall_cmds_RC \ | |
20496 | postuninstall_cmds_RC \ | |
20497 | old_archive_from_expsyms_cmds_RC \ | |
20498 | allow_undefined_flag_RC \ | |
20499 | no_undefined_flag_RC \ | |
20500 | export_symbols_cmds_RC \ | |
20501 | hardcode_libdir_flag_spec_RC \ | |
20502 | hardcode_libdir_flag_spec_ld_RC \ | |
20503 | hardcode_libdir_separator_RC \ | |
20504 | hardcode_automatic_RC \ | |
20505 | module_cmds_RC \ | |
20506 | module_expsym_cmds_RC \ | |
20507 | lt_cv_prog_compiler_c_o_RC \ | |
20508 | fix_srcfile_path_RC \ | |
20509 | exclude_expsyms_RC \ | |
20510 | include_expsyms_RC; do | |
20511 | ||
20512 | case $var in | |
20513 | old_archive_cmds_RC | \ | |
20514 | old_archive_from_new_cmds_RC | \ | |
20515 | archive_cmds_RC | \ | |
20516 | archive_expsym_cmds_RC | \ | |
20517 | module_cmds_RC | \ | |
20518 | module_expsym_cmds_RC | \ | |
20519 | old_archive_from_expsyms_cmds_RC | \ | |
20520 | export_symbols_cmds_RC | \ | |
20521 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
20522 | postinstall_cmds | postuninstall_cmds | \ | |
20523 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
20524 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
20525 | # Double-quote double-evaled strings. | |
20526 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
20527 | ;; | |
20528 | *) | |
20529 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
20530 | ;; | |
20531 | esac | |
20532 | done | |
20533 | ||
20534 | case $lt_echo in | |
20535 | *'\$0 --fallback-echo"') | |
20536 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
20537 | ;; | |
20538 | esac | |
20539 | ||
20540 | cfgfile="$ofile" | |
20541 | ||
20542 | cat <<__EOF__ >> "$cfgfile" | |
20543 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
20544 | ||
20545 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20546 | ||
20547 | # Shell to use when invoking shell scripts. | |
20548 | SHELL=$lt_SHELL | |
20549 | ||
20550 | # Whether or not to build shared libraries. | |
20551 | build_libtool_libs=$enable_shared | |
20552 | ||
20553 | # Whether or not to build static libraries. | |
20554 | build_old_libs=$enable_static | |
20555 | ||
20556 | # Whether or not to add -lc for building shared libraries. | |
20557 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
20558 | ||
20559 | # Whether or not to disallow shared libs when runtime libs are static | |
20560 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
20561 | ||
20562 | # Whether or not to optimize for fast installation. | |
20563 | fast_install=$enable_fast_install | |
20564 | ||
20565 | # The host system. | |
20566 | host_alias=$host_alias | |
20567 | host=$host | |
20568 | host_os=$host_os | |
20569 | ||
20570 | # The build system. | |
20571 | build_alias=$build_alias | |
20572 | build=$build | |
20573 | build_os=$build_os | |
20574 | ||
20575 | # An echo program that does not interpret backslashes. | |
20576 | echo=$lt_echo | |
20577 | ||
20578 | # The archiver. | |
20579 | AR=$lt_AR | |
20580 | AR_FLAGS=$lt_AR_FLAGS | |
20581 | ||
20582 | # A C compiler. | |
20583 | LTCC=$lt_LTCC | |
20584 | ||
20585 | # LTCC compiler flags. | |
20586 | LTCFLAGS=$lt_LTCFLAGS | |
20587 | ||
20588 | # A language-specific compiler. | |
20589 | CC=$lt_compiler_RC | |
20590 | ||
20591 | # Is the compiler the GNU C compiler? | |
20592 | with_gcc=$GCC_RC | |
20593 | ||
20594 | # An ERE matcher. | |
20595 | EGREP=$lt_EGREP | |
20596 | ||
20597 | # The linker used to build libraries. | |
20598 | LD=$lt_LD_RC | |
20599 | ||
20600 | # Whether we need hard or soft links. | |
20601 | LN_S=$lt_LN_S | |
20602 | ||
20603 | # A BSD-compatible nm program. | |
20604 | NM=$lt_NM | |
20605 | ||
20606 | # A symbol stripping program | |
20607 | STRIP=$lt_STRIP | |
20608 | ||
20609 | # Used to examine libraries when file_magic_cmd begins "file" | |
20610 | MAGIC_CMD=$MAGIC_CMD | |
20611 | ||
20612 | # Used on cygwin: DLL creation program. | |
20613 | DLLTOOL="$DLLTOOL" | |
20614 | ||
20615 | # Used on cygwin: object dumper. | |
20616 | OBJDUMP="$OBJDUMP" | |
20617 | ||
20618 | # Used on cygwin: assembler. | |
20619 | AS="$AS" | |
20620 | ||
20621 | # The name of the directory that contains temporary libtool files. | |
20622 | objdir=$objdir | |
20623 | ||
20624 | # How to create reloadable object files. | |
20625 | reload_flag=$lt_reload_flag | |
20626 | reload_cmds=$lt_reload_cmds | |
20627 | ||
20628 | # How to pass a linker flag through the compiler. | |
20629 | wl=$lt_lt_prog_compiler_wl_RC | |
20630 | ||
20631 | # Object file suffix (normally "o"). | |
20632 | objext="$ac_objext" | |
20633 | ||
20634 | # Old archive suffix (normally "a"). | |
20635 | libext="$libext" | |
20636 | ||
20637 | # Shared library suffix (normally ".so"). | |
20638 | shrext_cmds='$shrext_cmds' | |
20639 | ||
20640 | # Executable file suffix (normally ""). | |
20641 | exeext="$exeext" | |
20642 | ||
20643 | # Additional compiler flags for building library objects. | |
20644 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
20645 | pic_mode=$pic_mode | |
20646 | ||
20647 | # What is the maximum length of a command? | |
20648 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
20649 | ||
20650 | # Does compiler simultaneously support -c and -o options? | |
20651 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
20652 | ||
20653 | # Must we lock files when doing compilation? | |
20654 | need_locks=$lt_need_locks | |
20655 | ||
20656 | # Do we need the lib prefix for modules? | |
20657 | need_lib_prefix=$need_lib_prefix | |
20658 | ||
20659 | # Do we need a version for libraries? | |
20660 | need_version=$need_version | |
20661 | ||
20662 | # Whether dlopen is supported. | |
20663 | dlopen_support=$enable_dlopen | |
20664 | ||
20665 | # Whether dlopen of programs is supported. | |
20666 | dlopen_self=$enable_dlopen_self | |
20667 | ||
20668 | # Whether dlopen of statically linked programs is supported. | |
20669 | dlopen_self_static=$enable_dlopen_self_static | |
20670 | ||
20671 | # Compiler flag to prevent dynamic linking. | |
20672 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
20673 | ||
20674 | # Compiler flag to turn off builtin functions. | |
20675 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
20676 | ||
20677 | # Compiler flag to allow reflexive dlopens. | |
20678 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
20679 | ||
20680 | # Compiler flag to generate shared objects directly from archives. | |
20681 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
20682 | ||
20683 | # Compiler flag to generate thread-safe objects. | |
20684 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
20685 | ||
20686 | # Library versioning type. | |
20687 | version_type=$version_type | |
20688 | ||
20689 | # Format of library name prefix. | |
20690 | libname_spec=$lt_libname_spec | |
20691 | ||
20692 | # List of archive names. First name is the real one, the rest are links. | |
20693 | # The last name is the one that the linker finds with -lNAME. | |
20694 | library_names_spec=$lt_library_names_spec | |
20695 | ||
20696 | # The coded name of the library, if different from the real name. | |
20697 | soname_spec=$lt_soname_spec | |
20698 | ||
20699 | # Commands used to build and install an old-style archive. | |
20700 | RANLIB=$lt_RANLIB | |
20701 | old_archive_cmds=$lt_old_archive_cmds_RC | |
20702 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20703 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20704 | ||
20705 | # Create an old-style archive from a shared archive. | |
20706 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
20707 | ||
20708 | # Create a temporary old-style archive to link instead of a shared archive. | |
20709 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
20710 | ||
20711 | # Commands used to build and install a shared archive. | |
20712 | archive_cmds=$lt_archive_cmds_RC | |
20713 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
20714 | postinstall_cmds=$lt_postinstall_cmds | |
20715 | postuninstall_cmds=$lt_postuninstall_cmds | |
20716 | ||
20717 | # Commands used to build a loadable module (assumed same as above if empty) | |
20718 | module_cmds=$lt_module_cmds_RC | |
20719 | module_expsym_cmds=$lt_module_expsym_cmds_RC | |
20720 | ||
20721 | # Commands to strip libraries. | |
20722 | old_striplib=$lt_old_striplib | |
20723 | striplib=$lt_striplib | |
20724 | ||
20725 | # Dependencies to place before the objects being linked to create a | |
20726 | # shared library. | |
20727 | predep_objects=$lt_predep_objects_RC | |
20728 | ||
20729 | # Dependencies to place after the objects being linked to create a | |
20730 | # shared library. | |
20731 | postdep_objects=$lt_postdep_objects_RC | |
20732 | ||
20733 | # Dependencies to place before the objects being linked to create a | |
20734 | # shared library. | |
20735 | predeps=$lt_predeps_RC | |
20736 | ||
20737 | # Dependencies to place after the objects being linked to create a | |
20738 | # shared library. | |
20739 | postdeps=$lt_postdeps_RC | |
20740 | ||
b676ea3b AC |
20741 | # The directories searched by this compiler when creating a shared |
20742 | # library | |
20743 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC | |
20744 | ||
db137867 AC |
20745 | # The library search path used internally by the compiler when linking |
20746 | # a shared library. | |
20747 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
20748 | ||
20749 | # Method to check whether dependent libraries are shared objects. | |
20750 | deplibs_check_method=$lt_deplibs_check_method | |
20751 | ||
20752 | # Command to use when deplibs_check_method == file_magic. | |
20753 | file_magic_cmd=$lt_file_magic_cmd | |
20754 | ||
20755 | # Flag that allows shared libraries with undefined symbols to be built. | |
20756 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
20757 | ||
20758 | # Flag that forces no undefined symbols. | |
20759 | no_undefined_flag=$lt_no_undefined_flag_RC | |
20760 | ||
20761 | # Commands used to finish a libtool library installation in a directory. | |
20762 | finish_cmds=$lt_finish_cmds | |
20763 | ||
20764 | # Same as above, but a single script fragment to be evaled but not shown. | |
20765 | finish_eval=$lt_finish_eval | |
20766 | ||
20767 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20768 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20769 | ||
20770 | # Transform the output of nm in a proper C declaration | |
20771 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20772 | ||
20773 | # Transform the output of nm in a C name address pair | |
20774 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20775 | ||
20776 | # This is the shared library runtime path variable. | |
20777 | runpath_var=$runpath_var | |
20778 | ||
20779 | # This is the shared library path variable. | |
20780 | shlibpath_var=$shlibpath_var | |
20781 | ||
20782 | # Is shlibpath searched before the hard-coded library search path? | |
20783 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20784 | ||
20785 | # How to hardcode a shared library path into an executable. | |
20786 | hardcode_action=$hardcode_action_RC | |
20787 | ||
20788 | # Whether we should hardcode library paths into libraries. | |
20789 | hardcode_into_libs=$hardcode_into_libs | |
20790 | ||
20791 | # Flag to hardcode \$libdir into a binary during linking. | |
20792 | # This must work even if \$libdir does not exist. | |
20793 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
20794 | ||
20795 | # If ld is used when linking, flag to hardcode \$libdir into | |
20796 | # a binary during linking. This must work even if \$libdir does | |
20797 | # not exist. | |
20798 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
20799 | ||
20800 | # Whether we need a single -rpath flag with a separated argument. | |
20801 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
20802 | ||
20803 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
20804 | # resulting binary. | |
20805 | hardcode_direct=$hardcode_direct_RC | |
20806 | ||
20807 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
20808 | # resulting binary. | |
20809 | hardcode_minus_L=$hardcode_minus_L_RC | |
20810 | ||
20811 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
20812 | # the resulting binary. | |
20813 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
20814 | ||
20815 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
20816 | # and all subsequent libraries and executables linked against it. | |
20817 | hardcode_automatic=$hardcode_automatic_RC | |
20818 | ||
20819 | # Variables whose values should be saved in libtool wrapper scripts and | |
20820 | # restored at relink time. | |
20821 | variables_saved_for_relink="$variables_saved_for_relink" | |
20822 | ||
20823 | # Whether libtool must link a program against all its dependency libraries. | |
20824 | link_all_deplibs=$link_all_deplibs_RC | |
20825 | ||
20826 | # Compile-time system search path for libraries | |
20827 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20828 | ||
20829 | # Run-time system search path for libraries | |
20830 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
20831 | ||
20832 | # Fix the shell variable \$srcfile for the compiler. | |
20833 | fix_srcfile_path=$lt_fix_srcfile_path | |
20834 | ||
20835 | # Set to yes if exported symbols are required. | |
20836 | always_export_symbols=$always_export_symbols_RC | |
20837 | ||
20838 | # The commands to list exported symbols. | |
20839 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
20840 | ||
20841 | # The commands to extract the exported symbol list from a shared archive. | |
20842 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20843 | ||
20844 | # Symbols that should not be listed in the preloaded symbols. | |
20845 | exclude_expsyms=$lt_exclude_expsyms_RC | |
20846 | ||
20847 | # Symbols that must always be exported. | |
20848 | include_expsyms=$lt_include_expsyms_RC | |
20849 | ||
20850 | # ### END LIBTOOL TAG CONFIG: $tagname | |
20851 | ||
20852 | __EOF__ | |
20853 | ||
20854 | ||
20855 | else | |
20856 | # If there is no Makefile yet, we rely on a make rule to execute | |
20857 | # `config.status --recheck' to rerun these tests and create the | |
20858 | # libtool script then. | |
20859 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
20860 | if test -f "$ltmain_in"; then | |
20861 | test -f Makefile && make "$ltmain" | |
20862 | fi | |
20863 | fi | |
20864 | ||
20865 | ||
20866 | ac_ext=c | |
20867 | ac_cpp='$CPP $CPPFLAGS' | |
20868 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20869 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20870 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20871 | ||
20872 | CC="$lt_save_CC" | |
20873 | ||
20874 | ;; | |
20875 | ||
20876 | *) | |
20877 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
20878 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
20879 | { (exit 1); exit 1; }; } | |
20880 | ;; | |
20881 | esac | |
20882 | ||
20883 | # Append the new tag name to the list of available tags. | |
20884 | if test -n "$tagname" ; then | |
20885 | available_tags="$available_tags $tagname" | |
20886 | fi | |
20887 | fi | |
20888 | done | |
20889 | IFS="$lt_save_ifs" | |
20890 | ||
20891 | # Now substitute the updated list of available tags. | |
20892 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
20893 | mv "${ofile}T" "$ofile" | |
20894 | chmod +x "$ofile" | |
20895 | else | |
20896 | rm -f "${ofile}T" | |
20897 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
20898 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
20899 | { (exit 1); exit 1; }; } | |
20900 | fi | |
20901 | fi | |
20902 | ||
20903 | ||
20904 | ||
20905 | # This can be used to rebuild libtool when needed | |
20906 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
20907 | ||
20908 | # Always use our own libtool. | |
20909 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
20910 | ||
20911 | # Prevent multiple expansion | |
20912 | ||
20913 | ||
20914 | ||
20915 | ||
20916 | ||
20917 | ||
20918 | ||
20919 | ||
20920 | ||
20921 | ||
20922 | ||
20923 | ||
20924 | ||
20925 | ||
20926 | ||
20927 | ||
20928 | ||
20929 | ||
20930 | ||
20931 | ||
20932 | ||
20933 | LIBTOOL="$LIBTOOL --silent" | |
20934 | ||
db137867 AC |
20935 | case "$host_os" in |
20936 | *cygwin*) | |
20937 | ||
20938 | cat >>confdefs.h <<_ACEOF | |
20939 | #define CYGWIN 1 | |
20940 | _ACEOF | |
20941 | ||
20942 | ||
20943 | cat >>confdefs.h <<_ACEOF | |
20944 | #define WINDOWS 1 | |
20945 | _ACEOF | |
20946 | ||
20947 | ;; | |
20948 | *mingw*) | |
20949 | ||
20950 | cat >>confdefs.h <<_ACEOF | |
20951 | #define MINGW 1 | |
20952 | _ACEOF | |
20953 | ||
20954 | ||
20955 | cat >>confdefs.h <<_ACEOF | |
20956 | #define WINDOWS 1 | |
20957 | _ACEOF | |
20958 | ||
20959 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20960 | { echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20961 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; } | |
20962 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20964 | fi | |
20965 | { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
20966 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6; } | |
20967 | else | |
20968 | # Is the header compilable? | |
20969 | { echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
20970 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; } | |
20971 | cat >conftest.$ac_ext <<_ACEOF | |
20972 | /* confdefs.h. */ | |
20973 | _ACEOF | |
20974 | cat confdefs.h >>conftest.$ac_ext | |
20975 | cat >>conftest.$ac_ext <<_ACEOF | |
20976 | /* end confdefs.h. */ | |
20977 | $ac_includes_default | |
20978 | #include <windows.h> | |
20979 | _ACEOF | |
20980 | rm -f conftest.$ac_objext | |
20981 | if { (ac_try="$ac_compile" | |
20982 | case "(($ac_try" in | |
20983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20984 | *) ac_try_echo=$ac_try;; | |
20985 | esac | |
20986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20987 | (eval "$ac_compile") 2>conftest.er1 | |
20988 | ac_status=$? | |
20989 | grep -v '^ *+' conftest.er1 >conftest.err | |
20990 | rm -f conftest.er1 | |
20991 | cat conftest.err >&5 | |
20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20993 | (exit $ac_status); } && { | |
20994 | test -z "$ac_c_werror_flag" || | |
20995 | test ! -s conftest.err | |
20996 | } && test -s conftest.$ac_objext; then | |
20997 | ac_header_compiler=yes | |
20998 | else | |
20999 | echo "$as_me: failed program was:" >&5 | |
21000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21001 | ||
21002 | ac_header_compiler=no | |
21003 | fi | |
21004 | ||
21005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21006 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21007 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
21008 | ||
21009 | # Is the header present? | |
21010 | { echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
21011 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; } | |
21012 | cat >conftest.$ac_ext <<_ACEOF | |
21013 | /* confdefs.h. */ | |
21014 | _ACEOF | |
21015 | cat confdefs.h >>conftest.$ac_ext | |
21016 | cat >>conftest.$ac_ext <<_ACEOF | |
21017 | /* end confdefs.h. */ | |
21018 | #include <windows.h> | |
21019 | _ACEOF | |
21020 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21021 | case "(($ac_try" in | |
21022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21023 | *) ac_try_echo=$ac_try;; | |
21024 | esac | |
21025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21026 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
21027 | ac_status=$? | |
21028 | grep -v '^ *+' conftest.er1 >conftest.err | |
21029 | rm -f conftest.er1 | |
21030 | cat conftest.err >&5 | |
21031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21032 | (exit $ac_status); } >/dev/null && { | |
21033 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21034 | test ! -s conftest.err | |
21035 | }; then | |
21036 | ac_header_preproc=yes | |
21037 | else | |
21038 | echo "$as_me: failed program was:" >&5 | |
21039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21040 | ||
21041 | ac_header_preproc=no | |
21042 | fi | |
21043 | ||
21044 | rm -f conftest.err conftest.$ac_ext | |
21045 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21046 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
21047 | ||
21048 | # So? What about this header? | |
21049 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21050 | yes:no: ) | |
21051 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21052 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21053 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 | |
21054 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
21055 | ac_header_preproc=yes | |
21056 | ;; | |
21057 | no:yes:* ) | |
21058 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
21059 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
21060 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
21061 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
21062 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
21063 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
21064 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21065 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21066 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
21067 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
21068 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 | |
21069 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
21070 | ||
21071 | ;; | |
21072 | esac | |
21073 | { echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21074 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; } | |
21075 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21077 | else | |
21078 | ac_cv_header_windows_h=$ac_header_preproc | |
21079 | fi | |
21080 | { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
21081 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6; } | |
21082 | ||
21083 | fi | |
21084 | if test $ac_cv_header_windows_h = yes; then | |
21085 | : | |
21086 | else | |
21087 | { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5 | |
21088 | echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;} | |
21089 | { (exit 1); exit 1; }; } | |
21090 | fi | |
21091 | ||
21092 | ||
21093 | if test "${ac_cv_header_winsock2_h+set}" = set; then | |
21094 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 | |
21095 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } | |
21096 | if test "${ac_cv_header_winsock2_h+set}" = set; then | |
21097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21098 | fi | |
21099 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 | |
21100 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } | |
21101 | else | |
21102 | # Is the header compilable? | |
21103 | { echo "$as_me:$LINENO: checking winsock2.h usability" >&5 | |
21104 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } | |
21105 | cat >conftest.$ac_ext <<_ACEOF | |
21106 | /* confdefs.h. */ | |
21107 | _ACEOF | |
21108 | cat confdefs.h >>conftest.$ac_ext | |
21109 | cat >>conftest.$ac_ext <<_ACEOF | |
21110 | /* end confdefs.h. */ | |
21111 | $ac_includes_default | |
21112 | #include <winsock2.h> | |
21113 | _ACEOF | |
21114 | rm -f conftest.$ac_objext | |
21115 | if { (ac_try="$ac_compile" | |
21116 | case "(($ac_try" in | |
21117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21118 | *) ac_try_echo=$ac_try;; | |
21119 | esac | |
21120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21121 | (eval "$ac_compile") 2>conftest.er1 | |
21122 | ac_status=$? | |
21123 | grep -v '^ *+' conftest.er1 >conftest.err | |
21124 | rm -f conftest.er1 | |
21125 | cat conftest.err >&5 | |
21126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21127 | (exit $ac_status); } && { | |
21128 | test -z "$ac_c_werror_flag" || | |
21129 | test ! -s conftest.err | |
21130 | } && test -s conftest.$ac_objext; then | |
21131 | ac_header_compiler=yes | |
21132 | else | |
21133 | echo "$as_me: failed program was:" >&5 | |
21134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21135 | ||
21136 | ac_header_compiler=no | |
21137 | fi | |
21138 | ||
21139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21140 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21141 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
21142 | ||
21143 | # Is the header present? | |
21144 | { echo "$as_me:$LINENO: checking winsock2.h presence" >&5 | |
21145 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } | |
21146 | cat >conftest.$ac_ext <<_ACEOF | |
21147 | /* confdefs.h. */ | |
21148 | _ACEOF | |
21149 | cat confdefs.h >>conftest.$ac_ext | |
21150 | cat >>conftest.$ac_ext <<_ACEOF | |
21151 | /* end confdefs.h. */ | |
21152 | #include <winsock2.h> | |
21153 | _ACEOF | |
21154 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21155 | case "(($ac_try" in | |
21156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21157 | *) ac_try_echo=$ac_try;; | |
21158 | esac | |
21159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21160 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
21161 | ac_status=$? | |
21162 | grep -v '^ *+' conftest.er1 >conftest.err | |
21163 | rm -f conftest.er1 | |
21164 | cat conftest.err >&5 | |
21165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21166 | (exit $ac_status); } >/dev/null && { | |
21167 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21168 | test ! -s conftest.err | |
21169 | }; then | |
21170 | ac_header_preproc=yes | |
21171 | else | |
21172 | echo "$as_me: failed program was:" >&5 | |
21173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21174 | ||
21175 | ac_header_preproc=no | |
21176 | fi | |
21177 | ||
21178 | rm -f conftest.err conftest.$ac_ext | |
21179 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21180 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
21181 | ||
21182 | # So? What about this header? | |
21183 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21184 | yes:no: ) | |
21185 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21186 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21187 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 | |
21188 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} | |
21189 | ac_header_preproc=yes | |
21190 | ;; | |
21191 | no:yes:* ) | |
21192 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 | |
21193 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} | |
21194 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 | |
21195 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} | |
21196 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 | |
21197 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} | |
21198 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21199 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21200 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 | |
21201 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} | |
21202 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 | |
21203 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} | |
21204 | ||
21205 | ;; | |
21206 | esac | |
21207 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 | |
21208 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } | |
21209 | if test "${ac_cv_header_winsock2_h+set}" = set; then | |
21210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21211 | else | |
21212 | ac_cv_header_winsock2_h=$ac_header_preproc | |
21213 | fi | |
21214 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 | |
21215 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } | |
21216 | ||
21217 | fi | |
21218 | if test $ac_cv_header_winsock2_h = yes; then | |
21219 | : | |
21220 | else | |
21221 | { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5 | |
21222 | echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;} | |
21223 | { (exit 1); exit 1; }; } | |
21224 | fi | |
21225 | ||
21226 | ||
3202e249 VY |
21227 | |
21228 | cat >>confdefs.h <<_ACEOF | |
21229 | #define HAVE_WINSOCK2_H 1 | |
21230 | _ACEOF | |
21231 | ||
21232 | ||
21233 | cat >>confdefs.h <<_ACEOF | |
21234 | #define HAVE_WINSOCK_H 1 | |
21235 | _ACEOF | |
21236 | ||
db137867 AC |
21237 | LIBS="$LIBS -lws2_32 -liphlpapi" |
21238 | is_mingw="yes" | |
21239 | ;; | |
21240 | *interix*) | |
21241 | CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500" | |
21242 | ;; | |
e5334f35 | 21243 | *solaris*|*sunos*) |
5f4f06c8 | 21244 | CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -D__EXTENSIONS__" |
db137867 AC |
21245 | ;; |
21246 | *) | |
21247 | ;; | |
21248 | esac | |
21249 | ||
21250 | if test "$is_mingw" = "yes"; then | |
21251 | MINGW_TRUE= | |
21252 | MINGW_FALSE='#' | |
21253 | else | |
21254 | MINGW_TRUE='#' | |
21255 | MINGW_FALSE= | |
21256 | fi | |
21257 | ||
21258 | ||
21259 | ||
21260 | # backwards support for IRC_CFLAGS | |
3202e249 | 21261 | CFLAGS="$IRC_CFLAGS $CFLAGS -Wall" |
db137867 AC |
21262 | |
21263 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
21264 | test "$localstatedir" = '${prefix}/var'; then | |
21265 | libexecdir='${bindir}' | |
21266 | localstatedir='${prefix}' | |
21267 | fi | |
21268 | ||
db137867 AC |
21269 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
21270 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
21271 | if test "${ac_cv_type_pid_t+set}" = set; then | |
21272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21273 | else | |
21274 | cat >conftest.$ac_ext <<_ACEOF | |
21275 | /* confdefs.h. */ | |
21276 | _ACEOF | |
21277 | cat confdefs.h >>conftest.$ac_ext | |
21278 | cat >>conftest.$ac_ext <<_ACEOF | |
21279 | /* end confdefs.h. */ | |
21280 | $ac_includes_default | |
21281 | typedef pid_t ac__type_new_; | |
21282 | int | |
21283 | main () | |
21284 | { | |
21285 | if ((ac__type_new_ *) 0) | |
21286 | return 0; | |
21287 | if (sizeof (ac__type_new_)) | |
21288 | return 0; | |
21289 | ; | |
21290 | return 0; | |
21291 | } | |
21292 | _ACEOF | |
21293 | rm -f conftest.$ac_objext | |
21294 | if { (ac_try="$ac_compile" | |
21295 | case "(($ac_try" in | |
21296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21297 | *) ac_try_echo=$ac_try;; | |
21298 | esac | |
21299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21300 | (eval "$ac_compile") 2>conftest.er1 | |
21301 | ac_status=$? | |
21302 | grep -v '^ *+' conftest.er1 >conftest.err | |
21303 | rm -f conftest.er1 | |
21304 | cat conftest.err >&5 | |
21305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21306 | (exit $ac_status); } && { | |
21307 | test -z "$ac_c_werror_flag" || | |
21308 | test ! -s conftest.err | |
21309 | } && test -s conftest.$ac_objext; then | |
21310 | ac_cv_type_pid_t=yes | |
21311 | else | |
21312 | echo "$as_me: failed program was:" >&5 | |
21313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21314 | ||
21315 | ac_cv_type_pid_t=no | |
21316 | fi | |
21317 | ||
21318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21319 | fi | |
21320 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
21321 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
21322 | if test $ac_cv_type_pid_t = yes; then | |
21323 | : | |
21324 | else | |
21325 | ||
21326 | cat >>confdefs.h <<_ACEOF | |
21327 | #define pid_t int | |
21328 | _ACEOF | |
21329 | ||
21330 | fi | |
21331 | ||
21332 | { echo "$as_me:$LINENO: checking for size_t" >&5 | |
21333 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
21334 | if test "${ac_cv_type_size_t+set}" = set; then | |
21335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21336 | else | |
21337 | cat >conftest.$ac_ext <<_ACEOF | |
21338 | /* confdefs.h. */ | |
21339 | _ACEOF | |
21340 | cat confdefs.h >>conftest.$ac_ext | |
21341 | cat >>conftest.$ac_ext <<_ACEOF | |
21342 | /* end confdefs.h. */ | |
21343 | $ac_includes_default | |
21344 | typedef size_t ac__type_new_; | |
21345 | int | |
21346 | main () | |
21347 | { | |
21348 | if ((ac__type_new_ *) 0) | |
21349 | return 0; | |
21350 | if (sizeof (ac__type_new_)) | |
21351 | return 0; | |
21352 | ; | |
21353 | return 0; | |
21354 | } | |
21355 | _ACEOF | |
21356 | rm -f conftest.$ac_objext | |
21357 | if { (ac_try="$ac_compile" | |
21358 | case "(($ac_try" in | |
21359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21360 | *) ac_try_echo=$ac_try;; | |
21361 | esac | |
21362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21363 | (eval "$ac_compile") 2>conftest.er1 | |
21364 | ac_status=$? | |
21365 | grep -v '^ *+' conftest.er1 >conftest.err | |
21366 | rm -f conftest.er1 | |
21367 | cat conftest.err >&5 | |
21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21369 | (exit $ac_status); } && { | |
21370 | test -z "$ac_c_werror_flag" || | |
21371 | test ! -s conftest.err | |
21372 | } && test -s conftest.$ac_objext; then | |
21373 | ac_cv_type_size_t=yes | |
21374 | else | |
21375 | echo "$as_me: failed program was:" >&5 | |
21376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21377 | ||
21378 | ac_cv_type_size_t=no | |
21379 | fi | |
21380 | ||
21381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21382 | fi | |
21383 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
21384 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
21385 | if test $ac_cv_type_size_t = yes; then | |
21386 | : | |
21387 | else | |
21388 | ||
21389 | cat >>confdefs.h <<_ACEOF | |
21390 | #define size_t unsigned int | |
21391 | _ACEOF | |
21392 | ||
21393 | fi | |
21394 | ||
21395 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | |
21396 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | |
21397 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
21398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21399 | else | |
21400 | cat >conftest.$ac_ext <<_ACEOF | |
21401 | /* confdefs.h. */ | |
21402 | _ACEOF | |
21403 | cat confdefs.h >>conftest.$ac_ext | |
21404 | cat >>conftest.$ac_ext <<_ACEOF | |
21405 | /* end confdefs.h. */ | |
21406 | $ac_includes_default | |
21407 | typedef ssize_t ac__type_new_; | |
21408 | int | |
21409 | main () | |
21410 | { | |
21411 | if ((ac__type_new_ *) 0) | |
21412 | return 0; | |
21413 | if (sizeof (ac__type_new_)) | |
21414 | return 0; | |
21415 | ; | |
21416 | return 0; | |
21417 | } | |
21418 | _ACEOF | |
21419 | rm -f conftest.$ac_objext | |
21420 | if { (ac_try="$ac_compile" | |
21421 | case "(($ac_try" in | |
21422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21423 | *) ac_try_echo=$ac_try;; | |
21424 | esac | |
21425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21426 | (eval "$ac_compile") 2>conftest.er1 | |
21427 | ac_status=$? | |
21428 | grep -v '^ *+' conftest.er1 >conftest.err | |
21429 | rm -f conftest.er1 | |
21430 | cat conftest.err >&5 | |
21431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21432 | (exit $ac_status); } && { | |
21433 | test -z "$ac_c_werror_flag" || | |
21434 | test ! -s conftest.err | |
21435 | } && test -s conftest.$ac_objext; then | |
21436 | ac_cv_type_ssize_t=yes | |
21437 | else | |
21438 | echo "$as_me: failed program was:" >&5 | |
21439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21440 | ||
21441 | ac_cv_type_ssize_t=no | |
21442 | fi | |
21443 | ||
21444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21445 | fi | |
21446 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
21447 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } | |
21448 | if test $ac_cv_type_ssize_t = yes; then | |
21449 | : | |
21450 | else | |
21451 | ||
21452 | cat >>confdefs.h <<_ACEOF | |
21453 | #define ssize_t int | |
21454 | _ACEOF | |
21455 | ||
21456 | fi | |
21457 | ||
21458 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
21459 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } | |
21460 | if test "${ac_cv_type_uid_t+set}" = set; then | |
21461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21462 | else | |
21463 | cat >conftest.$ac_ext <<_ACEOF | |
21464 | /* confdefs.h. */ | |
21465 | _ACEOF | |
21466 | cat confdefs.h >>conftest.$ac_ext | |
21467 | cat >>conftest.$ac_ext <<_ACEOF | |
21468 | /* end confdefs.h. */ | |
21469 | #include <sys/types.h> | |
21470 | ||
21471 | _ACEOF | |
21472 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21473 | $EGREP "uid_t" >/dev/null 2>&1; then | |
21474 | ac_cv_type_uid_t=yes | |
21475 | else | |
21476 | ac_cv_type_uid_t=no | |
21477 | fi | |
21478 | rm -f conftest* | |
21479 | ||
21480 | fi | |
21481 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
21482 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } | |
21483 | if test $ac_cv_type_uid_t = no; then | |
21484 | ||
21485 | cat >>confdefs.h <<\_ACEOF | |
21486 | #define uid_t int | |
21487 | _ACEOF | |
21488 | ||
21489 | ||
21490 | cat >>confdefs.h <<\_ACEOF | |
21491 | #define gid_t int | |
21492 | _ACEOF | |
21493 | ||
21494 | fi | |
21495 | ||
21496 | ||
21497 | ||
21498 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
21499 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
21500 | if test "${ac_cv_header_stdc+set}" = set; then | |
21501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21502 | else | |
21503 | cat >conftest.$ac_ext <<_ACEOF | |
21504 | /* confdefs.h. */ | |
21505 | _ACEOF | |
21506 | cat confdefs.h >>conftest.$ac_ext | |
21507 | cat >>conftest.$ac_ext <<_ACEOF | |
21508 | /* end confdefs.h. */ | |
21509 | #include <stdlib.h> | |
21510 | #include <stdarg.h> | |
21511 | #include <string.h> | |
21512 | #include <float.h> | |
21513 | ||
21514 | int | |
21515 | main () | |
21516 | { | |
21517 | ||
21518 | ; | |
21519 | return 0; | |
21520 | } | |
21521 | _ACEOF | |
21522 | rm -f conftest.$ac_objext | |
21523 | if { (ac_try="$ac_compile" | |
21524 | case "(($ac_try" in | |
21525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21526 | *) ac_try_echo=$ac_try;; | |
21527 | esac | |
21528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21529 | (eval "$ac_compile") 2>conftest.er1 | |
21530 | ac_status=$? | |
21531 | grep -v '^ *+' conftest.er1 >conftest.err | |
21532 | rm -f conftest.er1 | |
21533 | cat conftest.err >&5 | |
21534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21535 | (exit $ac_status); } && { | |
21536 | test -z "$ac_c_werror_flag" || | |
21537 | test ! -s conftest.err | |
21538 | } && test -s conftest.$ac_objext; then | |
21539 | ac_cv_header_stdc=yes | |
21540 | else | |
21541 | echo "$as_me: failed program was:" >&5 | |
21542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21543 | ||
21544 | ac_cv_header_stdc=no | |
21545 | fi | |
21546 | ||
21547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21548 | ||
21549 | if test $ac_cv_header_stdc = yes; then | |
21550 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
21551 | cat >conftest.$ac_ext <<_ACEOF | |
21552 | /* confdefs.h. */ | |
21553 | _ACEOF | |
21554 | cat confdefs.h >>conftest.$ac_ext | |
21555 | cat >>conftest.$ac_ext <<_ACEOF | |
21556 | /* end confdefs.h. */ | |
21557 | #include <string.h> | |
21558 | ||
21559 | _ACEOF | |
21560 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21561 | $EGREP "memchr" >/dev/null 2>&1; then | |
21562 | : | |
21563 | else | |
21564 | ac_cv_header_stdc=no | |
21565 | fi | |
21566 | rm -f conftest* | |
21567 | ||
21568 | fi | |
21569 | ||
21570 | if test $ac_cv_header_stdc = yes; then | |
21571 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
21572 | cat >conftest.$ac_ext <<_ACEOF | |
21573 | /* confdefs.h. */ | |
21574 | _ACEOF | |
21575 | cat confdefs.h >>conftest.$ac_ext | |
21576 | cat >>conftest.$ac_ext <<_ACEOF | |
21577 | /* end confdefs.h. */ | |
21578 | #include <stdlib.h> | |
21579 | ||
21580 | _ACEOF | |
21581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21582 | $EGREP "free" >/dev/null 2>&1; then | |
21583 | : | |
21584 | else | |
21585 | ac_cv_header_stdc=no | |
21586 | fi | |
21587 | rm -f conftest* | |
21588 | ||
21589 | fi | |
21590 | ||
21591 | if test $ac_cv_header_stdc = yes; then | |
21592 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
21593 | if test "$cross_compiling" = yes; then | |
21594 | : | |
21595 | else | |
21596 | cat >conftest.$ac_ext <<_ACEOF | |
21597 | /* confdefs.h. */ | |
21598 | _ACEOF | |
21599 | cat confdefs.h >>conftest.$ac_ext | |
21600 | cat >>conftest.$ac_ext <<_ACEOF | |
21601 | /* end confdefs.h. */ | |
21602 | #include <ctype.h> | |
21603 | #include <stdlib.h> | |
21604 | #if ((' ' & 0x0FF) == 0x020) | |
21605 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
21606 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
21607 | #else | |
21608 | # define ISLOWER(c) \ | |
21609 | (('a' <= (c) && (c) <= 'i') \ | |
21610 | || ('j' <= (c) && (c) <= 'r') \ | |
21611 | || ('s' <= (c) && (c) <= 'z')) | |
21612 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
21613 | #endif | |
21614 | ||
21615 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
21616 | int | |
21617 | main () | |
21618 | { | |
21619 | int i; | |
21620 | for (i = 0; i < 256; i++) | |
21621 | if (XOR (islower (i), ISLOWER (i)) | |
21622 | || toupper (i) != TOUPPER (i)) | |
21623 | return 2; | |
21624 | return 0; | |
21625 | } | |
21626 | _ACEOF | |
21627 | rm -f conftest$ac_exeext | |
21628 | if { (ac_try="$ac_link" | |
21629 | case "(($ac_try" in | |
21630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21631 | *) ac_try_echo=$ac_try;; | |
21632 | esac | |
21633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21634 | (eval "$ac_link") 2>&5 | |
21635 | ac_status=$? | |
21636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21637 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21638 | { (case "(($ac_try" in | |
21639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21640 | *) ac_try_echo=$ac_try;; | |
21641 | esac | |
21642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21643 | (eval "$ac_try") 2>&5 | |
21644 | ac_status=$? | |
21645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21646 | (exit $ac_status); }; }; then | |
21647 | : | |
21648 | else | |
21649 | echo "$as_me: program exited with status $ac_status" >&5 | |
21650 | echo "$as_me: failed program was:" >&5 | |
21651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21652 | ||
21653 | ( exit $ac_status ) | |
21654 | ac_cv_header_stdc=no | |
21655 | fi | |
21656 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21657 | fi | |
21658 | ||
21659 | ||
21660 | fi | |
21661 | fi | |
21662 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
21663 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
21664 | if test $ac_cv_header_stdc = yes; then | |
21665 | ||
21666 | cat >>confdefs.h <<\_ACEOF | |
21667 | #define STDC_HEADERS 1 | |
21668 | _ACEOF | |
21669 | ||
21670 | fi | |
21671 | ||
21672 | ||
21673 | ||
21674 | ||
21675 | ||
21676 | ||
21677 | ||
21678 | ||
21679 | ||
21680 | ||
21681 | ||
21682 | ||
21683 | ||
21684 | ||
21685 | ||
21686 | ||
21687 | ||
21688 | ||
21689 | ||
21690 | ||
21691 | ||
3202e249 VY |
21692 | |
21693 | for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h | |
db137867 AC |
21694 | do |
21695 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21696 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
21697 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21699 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
21700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21701 | fi | |
21702 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
21703 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21704 | echo "${ECHO_T}$ac_res" >&6; } | |
21705 | else | |
21706 | # Is the header compilable? | |
21707 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21708 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
21709 | cat >conftest.$ac_ext <<_ACEOF | |
21710 | /* confdefs.h. */ | |
21711 | _ACEOF | |
21712 | cat confdefs.h >>conftest.$ac_ext | |
21713 | cat >>conftest.$ac_ext <<_ACEOF | |
21714 | /* end confdefs.h. */ | |
21715 | $ac_includes_default | |
21716 | #include <$ac_header> | |
21717 | _ACEOF | |
21718 | rm -f conftest.$ac_objext | |
21719 | if { (ac_try="$ac_compile" | |
21720 | case "(($ac_try" in | |
21721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21722 | *) ac_try_echo=$ac_try;; | |
21723 | esac | |
21724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21725 | (eval "$ac_compile") 2>conftest.er1 | |
21726 | ac_status=$? | |
21727 | grep -v '^ *+' conftest.er1 >conftest.err | |
21728 | rm -f conftest.er1 | |
21729 | cat conftest.err >&5 | |
21730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21731 | (exit $ac_status); } && { | |
21732 | test -z "$ac_c_werror_flag" || | |
21733 | test ! -s conftest.err | |
21734 | } && test -s conftest.$ac_objext; then | |
21735 | ac_header_compiler=yes | |
21736 | else | |
21737 | echo "$as_me: failed program was:" >&5 | |
21738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21739 | ||
21740 | ac_header_compiler=no | |
21741 | fi | |
21742 | ||
21743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21744 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21745 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
21746 | ||
21747 | # Is the header present? | |
21748 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21749 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
21750 | cat >conftest.$ac_ext <<_ACEOF | |
21751 | /* confdefs.h. */ | |
21752 | _ACEOF | |
21753 | cat confdefs.h >>conftest.$ac_ext | |
21754 | cat >>conftest.$ac_ext <<_ACEOF | |
21755 | /* end confdefs.h. */ | |
21756 | #include <$ac_header> | |
21757 | _ACEOF | |
21758 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21759 | case "(($ac_try" in | |
21760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21761 | *) ac_try_echo=$ac_try;; | |
21762 | esac | |
21763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
21765 | ac_status=$? | |
21766 | grep -v '^ *+' conftest.er1 >conftest.err | |
21767 | rm -f conftest.er1 | |
21768 | cat conftest.err >&5 | |
21769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21770 | (exit $ac_status); } >/dev/null && { | |
21771 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21772 | test ! -s conftest.err | |
21773 | }; then | |
21774 | ac_header_preproc=yes | |
21775 | else | |
21776 | echo "$as_me: failed program was:" >&5 | |
21777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21778 | ||
21779 | ac_header_preproc=no | |
21780 | fi | |
21781 | ||
21782 | rm -f conftest.err conftest.$ac_ext | |
21783 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21784 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
21785 | ||
21786 | # So? What about this header? | |
21787 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21788 | yes:no: ) | |
21789 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21790 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21791 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
21792 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21793 | ac_header_preproc=yes | |
21794 | ;; | |
21795 | no:yes:* ) | |
21796 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
21797 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
21798 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
21799 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21800 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21801 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21802 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21803 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
21804 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
21805 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
21806 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
21807 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
21808 | ||
21809 | ;; | |
21810 | esac | |
21811 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21813 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
21814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21815 | else | |
21816 | eval "$as_ac_Header=\$ac_header_preproc" | |
21817 | fi | |
21818 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
21819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21820 | echo "${ECHO_T}$ac_res" >&6; } | |
21821 | ||
21822 | fi | |
21823 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21824 | cat >>confdefs.h <<_ACEOF | |
21825 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21826 | _ACEOF | |
21827 | ||
21828 | fi | |
21829 | ||
21830 | done | |
21831 | ||
21832 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
21833 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
21834 | if test "${ac_cv_header_time+set}" = set; then | |
21835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21836 | else | |
21837 | cat >conftest.$ac_ext <<_ACEOF | |
21838 | /* confdefs.h. */ | |
21839 | _ACEOF | |
21840 | cat confdefs.h >>conftest.$ac_ext | |
21841 | cat >>conftest.$ac_ext <<_ACEOF | |
21842 | /* end confdefs.h. */ | |
21843 | #include <sys/types.h> | |
21844 | #include <sys/time.h> | |
21845 | #include <time.h> | |
21846 | ||
21847 | int | |
21848 | main () | |
21849 | { | |
21850 | if ((struct tm *) 0) | |
21851 | return 0; | |
21852 | ; | |
21853 | return 0; | |
21854 | } | |
21855 | _ACEOF | |
21856 | rm -f conftest.$ac_objext | |
21857 | if { (ac_try="$ac_compile" | |
21858 | case "(($ac_try" in | |
21859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21860 | *) ac_try_echo=$ac_try;; | |
21861 | esac | |
21862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21863 | (eval "$ac_compile") 2>conftest.er1 | |
21864 | ac_status=$? | |
21865 | grep -v '^ *+' conftest.er1 >conftest.err | |
21866 | rm -f conftest.er1 | |
21867 | cat conftest.err >&5 | |
21868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21869 | (exit $ac_status); } && { | |
21870 | test -z "$ac_c_werror_flag" || | |
21871 | test ! -s conftest.err | |
21872 | } && test -s conftest.$ac_objext; then | |
21873 | ac_cv_header_time=yes | |
21874 | else | |
21875 | echo "$as_me: failed program was:" >&5 | |
21876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21877 | ||
21878 | ac_cv_header_time=no | |
21879 | fi | |
21880 | ||
21881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21882 | fi | |
21883 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
21884 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
21885 | if test $ac_cv_header_time = yes; then | |
21886 | ||
21887 | cat >>confdefs.h <<\_ACEOF | |
21888 | #define TIME_WITH_SYS_TIME 1 | |
21889 | _ACEOF | |
21890 | ||
21891 | fi | |
21892 | ||
21893 | ||
21894 | ||
21895 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 | |
21896 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
21897 | if test "${ac_cv_search_socket+set}" = set; then | |
21898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21899 | else | |
21900 | ac_func_search_save_LIBS=$LIBS | |
21901 | cat >conftest.$ac_ext <<_ACEOF | |
21902 | /* confdefs.h. */ | |
21903 | _ACEOF | |
21904 | cat confdefs.h >>conftest.$ac_ext | |
21905 | cat >>conftest.$ac_ext <<_ACEOF | |
21906 | /* end confdefs.h. */ | |
21907 | ||
21908 | /* Override any GCC internal prototype to avoid an error. | |
21909 | Use char because int might match the return type of a GCC | |
21910 | builtin and then its argument prototype would still apply. */ | |
21911 | #ifdef __cplusplus | |
21912 | extern "C" | |
21913 | #endif | |
21914 | char socket (); | |
21915 | int | |
21916 | main () | |
21917 | { | |
21918 | return socket (); | |
21919 | ; | |
21920 | return 0; | |
21921 | } | |
21922 | _ACEOF | |
21923 | for ac_lib in '' socket; do | |
21924 | if test -z "$ac_lib"; then | |
21925 | ac_res="none required" | |
21926 | else | |
21927 | ac_res=-l$ac_lib | |
21928 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21929 | fi | |
21930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21931 | if { (ac_try="$ac_link" | |
21932 | case "(($ac_try" in | |
21933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21934 | *) ac_try_echo=$ac_try;; | |
21935 | esac | |
21936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21937 | (eval "$ac_link") 2>conftest.er1 | |
21938 | ac_status=$? | |
21939 | grep -v '^ *+' conftest.er1 >conftest.err | |
21940 | rm -f conftest.er1 | |
21941 | cat conftest.err >&5 | |
21942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21943 | (exit $ac_status); } && { | |
21944 | test -z "$ac_c_werror_flag" || | |
21945 | test ! -s conftest.err | |
21946 | } && test -s conftest$ac_exeext && | |
21947 | $as_test_x conftest$ac_exeext; then | |
21948 | ac_cv_search_socket=$ac_res | |
21949 | else | |
21950 | echo "$as_me: failed program was:" >&5 | |
21951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21952 | ||
21953 | ||
21954 | fi | |
21955 | ||
21956 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21957 | conftest$ac_exeext | |
21958 | if test "${ac_cv_search_socket+set}" = set; then | |
21959 | break | |
21960 | fi | |
21961 | done | |
21962 | if test "${ac_cv_search_socket+set}" = set; then | |
21963 | : | |
21964 | else | |
21965 | ac_cv_search_socket=no | |
21966 | fi | |
21967 | rm conftest.$ac_ext | |
21968 | LIBS=$ac_func_search_save_LIBS | |
21969 | fi | |
21970 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
21971 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
21972 | ac_res=$ac_cv_search_socket | |
21973 | if test "$ac_res" != no; then | |
21974 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21975 | ||
21976 | fi | |
21977 | ||
21978 | ||
21979 | ||
21980 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 | |
21981 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
21982 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then | |
21983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21984 | else | |
21985 | cat >conftest.$ac_ext <<_ACEOF | |
21986 | /* confdefs.h. */ | |
21987 | _ACEOF | |
21988 | cat confdefs.h >>conftest.$ac_ext | |
21989 | cat >>conftest.$ac_ext <<_ACEOF | |
21990 | /* end confdefs.h. */ | |
21991 | ||
21992 | #ifdef HAVE_SYS_TYPES_H | |
21993 | #include <sys/types.h> | |
21994 | #endif | |
21995 | #ifdef HAVE_SYS_SOCKET_H | |
21996 | #include <sys/socket.h> | |
21997 | #endif | |
21998 | #ifdef HAVE_WINSOCK2_H | |
21999 | #include <winsock2.h> | |
22000 | #endif | |
22001 | ||
22002 | ||
22003 | int | |
22004 | main () | |
22005 | { | |
22006 | static struct sockaddr ac_aggr; | |
22007 | if (ac_aggr.sa_len) | |
22008 | return 0; | |
22009 | ; | |
22010 | return 0; | |
22011 | } | |
22012 | _ACEOF | |
22013 | rm -f conftest.$ac_objext | |
22014 | if { (ac_try="$ac_compile" | |
22015 | case "(($ac_try" in | |
22016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22017 | *) ac_try_echo=$ac_try;; | |
22018 | esac | |
22019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22020 | (eval "$ac_compile") 2>conftest.er1 | |
22021 | ac_status=$? | |
22022 | grep -v '^ *+' conftest.er1 >conftest.err | |
22023 | rm -f conftest.er1 | |
22024 | cat conftest.err >&5 | |
22025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22026 | (exit $ac_status); } && { | |
22027 | test -z "$ac_c_werror_flag" || | |
22028 | test ! -s conftest.err | |
22029 | } && test -s conftest.$ac_objext; then | |
22030 | ac_cv_member_struct_sockaddr_sa_len=yes | |
22031 | else | |
22032 | echo "$as_me: failed program was:" >&5 | |
22033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22034 | ||
22035 | cat >conftest.$ac_ext <<_ACEOF | |
22036 | /* confdefs.h. */ | |
22037 | _ACEOF | |
22038 | cat confdefs.h >>conftest.$ac_ext | |
22039 | cat >>conftest.$ac_ext <<_ACEOF | |
22040 | /* end confdefs.h. */ | |
22041 | ||
22042 | #ifdef HAVE_SYS_TYPES_H | |
22043 | #include <sys/types.h> | |
22044 | #endif | |
22045 | #ifdef HAVE_SYS_SOCKET_H | |
22046 | #include <sys/socket.h> | |
22047 | #endif | |
22048 | #ifdef HAVE_WINSOCK2_H | |
22049 | #include <winsock2.h> | |
22050 | #endif | |
22051 | ||
22052 | ||
22053 | int | |
22054 | main () | |
22055 | { | |
22056 | static struct sockaddr ac_aggr; | |
22057 | if (sizeof ac_aggr.sa_len) | |
22058 | return 0; | |
22059 | ; | |
22060 | return 0; | |
22061 | } | |
22062 | _ACEOF | |
22063 | rm -f conftest.$ac_objext | |
22064 | if { (ac_try="$ac_compile" | |
22065 | case "(($ac_try" in | |
22066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22067 | *) ac_try_echo=$ac_try;; | |
22068 | esac | |
22069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22070 | (eval "$ac_compile") 2>conftest.er1 | |
22071 | ac_status=$? | |
22072 | grep -v '^ *+' conftest.er1 >conftest.err | |
22073 | rm -f conftest.er1 | |
22074 | cat conftest.err >&5 | |
22075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22076 | (exit $ac_status); } && { | |
22077 | test -z "$ac_c_werror_flag" || | |
22078 | test ! -s conftest.err | |
22079 | } && test -s conftest.$ac_objext; then | |
22080 | ac_cv_member_struct_sockaddr_sa_len=yes | |
22081 | else | |
22082 | echo "$as_me: failed program was:" >&5 | |
22083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22084 | ||
22085 | ac_cv_member_struct_sockaddr_sa_len=no | |
22086 | fi | |
22087 | ||
22088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22089 | fi | |
22090 | ||
22091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22092 | fi | |
22093 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 | |
22094 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
22095 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then | |
22096 | ||
22097 | cat >>confdefs.h <<\_ACEOF | |
22098 | #define SOCKADDR_IN_HAS_LEN 1 | |
22099 | _ACEOF | |
22100 | ||
22101 | fi | |
22102 | ||
22103 | ||
22104 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | |
22105 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
22106 | if test "${ac_cv_type_socklen_t+set}" = set; then | |
22107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22108 | else | |
22109 | cat >conftest.$ac_ext <<_ACEOF | |
22110 | /* confdefs.h. */ | |
22111 | _ACEOF | |
22112 | cat confdefs.h >>conftest.$ac_ext | |
22113 | cat >>conftest.$ac_ext <<_ACEOF | |
22114 | /* end confdefs.h. */ | |
db137867 | 22115 | #include <sys/types.h> |
db137867 | 22116 | #include <sys/socket.h> |
db137867 AC |
22117 | |
22118 | typedef socklen_t ac__type_new_; | |
22119 | int | |
22120 | main () | |
22121 | { | |
22122 | if ((ac__type_new_ *) 0) | |
22123 | return 0; | |
22124 | if (sizeof (ac__type_new_)) | |
22125 | return 0; | |
22126 | ; | |
22127 | return 0; | |
22128 | } | |
22129 | _ACEOF | |
22130 | rm -f conftest.$ac_objext | |
22131 | if { (ac_try="$ac_compile" | |
22132 | case "(($ac_try" in | |
22133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22134 | *) ac_try_echo=$ac_try;; | |
22135 | esac | |
22136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22137 | (eval "$ac_compile") 2>conftest.er1 | |
22138 | ac_status=$? | |
22139 | grep -v '^ *+' conftest.er1 >conftest.err | |
22140 | rm -f conftest.er1 | |
22141 | cat conftest.err >&5 | |
22142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22143 | (exit $ac_status); } && { | |
22144 | test -z "$ac_c_werror_flag" || | |
22145 | test ! -s conftest.err | |
22146 | } && test -s conftest.$ac_objext; then | |
22147 | ac_cv_type_socklen_t=yes | |
22148 | else | |
22149 | echo "$as_me: failed program was:" >&5 | |
22150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22151 | ||
22152 | ac_cv_type_socklen_t=no | |
22153 | fi | |
22154 | ||
22155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22156 | fi | |
22157 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
22158 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
22159 | if test $ac_cv_type_socklen_t = yes; then | |
a9fb3ed0 | 22160 | rb_socklen_t=socklen_t |
db137867 AC |
22161 | else |
22162 | ||
a9fb3ed0 VY |
22163 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 |
22164 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | |
22165 | if test "${rb_socklen_t+set}" = set; then | |
22166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22167 | else | |
22168 | ||
22169 | # Systems have either "struct sockaddr *" or | |
22170 | # "void *" as the second argument to getpeername | |
22171 | rb_socklen_t= | |
22172 | for arg2 in "struct sockaddr" void; do | |
22173 | for t in int size_t unsigned long "unsigned long"; do | |
22174 | cat >conftest.$ac_ext <<_ACEOF | |
22175 | /* confdefs.h. */ | |
22176 | _ACEOF | |
22177 | cat confdefs.h >>conftest.$ac_ext | |
22178 | cat >>conftest.$ac_ext <<_ACEOF | |
22179 | /* end confdefs.h. */ | |
22180 | ||
3202e249 | 22181 | #ifdef HAVE_SYS_TYPES_H |
a9fb3ed0 | 22182 | #include <sys/types.h> |
3202e249 VY |
22183 | #endif |
22184 | #ifdef HAVE_SYS_SOCKET_H | |
a9fb3ed0 | 22185 | #include <sys/socket.h> |
3202e249 VY |
22186 | #endif |
22187 | #ifdef HAVE_WINSOCK2_H | |
22188 | #include <winsock2.h> | |
22189 | #endif | |
a9fb3ed0 VY |
22190 | int getpeername (int, $arg2 *, $t *); |
22191 | ||
22192 | int | |
22193 | main () | |
22194 | { | |
22195 | ||
22196 | $t len; | |
22197 | getpeername(0,0,&len); | |
22198 | ||
22199 | ; | |
22200 | return 0; | |
22201 | } | |
db137867 | 22202 | _ACEOF |
a9fb3ed0 VY |
22203 | rm -f conftest.$ac_objext |
22204 | if { (ac_try="$ac_compile" | |
22205 | case "(($ac_try" in | |
22206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22207 | *) ac_try_echo=$ac_try;; | |
22208 | esac | |
22209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22210 | (eval "$ac_compile") 2>conftest.er1 | |
22211 | ac_status=$? | |
22212 | grep -v '^ *+' conftest.er1 >conftest.err | |
22213 | rm -f conftest.er1 | |
22214 | cat conftest.err >&5 | |
22215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22216 | (exit $ac_status); } && { | |
22217 | test -z "$ac_c_werror_flag" || | |
22218 | test ! -s conftest.err | |
22219 | } && test -s conftest.$ac_objext; then | |
22220 | ||
22221 | rb_socklen_t="$t" | |
22222 | break | |
22223 | ||
22224 | else | |
22225 | echo "$as_me: failed program was:" >&5 | |
22226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
db137867 | 22227 | |
a9fb3ed0 VY |
22228 | |
22229 | fi | |
22230 | ||
22231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22232 | done | |
22233 | done | |
22234 | ||
22235 | if test "x$rb_socklen_t" = x; then | |
3202e249 VY |
22236 | { echo "$as_me:$LINENO: WARNING: Cannot find a type to use in place of socklen_t using int" >&5 |
22237 | echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;} | |
22238 | rb_socklen_t=int | |
a9fb3ed0 VY |
22239 | fi |
22240 | ||
22241 | fi | |
22242 | ||
22243 | { echo "$as_me:$LINENO: result: $rb_socklen_t" >&5 | |
22244 | echo "${ECHO_T}$rb_socklen_t" >&6; } | |
db137867 AC |
22245 | fi |
22246 | ||
22247 | ||
a9fb3ed0 VY |
22248 | |
22249 | ||
22250 | ||
22251 | ||
db137867 AC |
22252 | # Check whether --enable-ipv6 was given. |
22253 | if test "${enable_ipv6+set}" = set; then | |
22254 | enableval=$enable_ipv6; ipv6=$enableval | |
22255 | else | |
22256 | ipv6=yes | |
22257 | fi | |
22258 | ||
22259 | ||
22260 | if test x$ipv6 != xyes; then | |
22261 | have_v6="no" | |
22262 | else | |
22263 | ||
22264 | have_v6=yes | |
22265 | ||
22266 | { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5 | |
22267 | echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; } | |
22268 | if test "${rb_cv_proto_inet6+set}" = set; then | |
22269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22270 | else | |
22271 | ||
22272 | cat >conftest.$ac_ext <<_ACEOF | |
22273 | /* confdefs.h. */ | |
22274 | _ACEOF | |
22275 | cat confdefs.h >>conftest.$ac_ext | |
22276 | cat >>conftest.$ac_ext <<_ACEOF | |
22277 | /* end confdefs.h. */ | |
22278 | ||
22279 | #include <sys/types.h> | |
22280 | #include <sys/socket.h> | |
22281 | ||
22282 | #ifndef PF_INET6 | |
22283 | #error Missing PF_INET6 | |
22284 | #endif | |
22285 | #ifndef AF_INET6 | |
22286 | #error Mlssing AF_INET6 | |
22287 | #endif | |
22288 | ||
22289 | _ACEOF | |
22290 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22291 | case "(($ac_try" in | |
22292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22293 | *) ac_try_echo=$ac_try;; | |
22294 | esac | |
22295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22296 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22297 | ac_status=$? | |
22298 | grep -v '^ *+' conftest.er1 >conftest.err | |
22299 | rm -f conftest.er1 | |
22300 | cat conftest.err >&5 | |
22301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22302 | (exit $ac_status); } >/dev/null && { | |
22303 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22304 | test ! -s conftest.err | |
22305 | }; then | |
22306 | ||
22307 | rb_cv_proto_inet6=yes | |
22308 | ||
22309 | else | |
22310 | echo "$as_me: failed program was:" >&5 | |
22311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22312 | ||
22313 | ||
22314 | rb_cv_proto_inet6=no | |
22315 | ||
22316 | fi | |
22317 | ||
22318 | rm -f conftest.err conftest.$ac_ext | |
22319 | ||
22320 | fi | |
22321 | { echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5 | |
22322 | echo "${ECHO_T}$rb_cv_proto_inet6" >&6; } | |
22323 | ||
22324 | if test "X$rb_cv_proto_inet6" = "Xyes"; then : | |
22325 | ||
22326 | else : | |
22327 | ||
22328 | { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5 | |
22329 | echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;} | |
22330 | have_v6=no | |
22331 | ||
22332 | fi | |
22333 | ||
22334 | ||
22335 | if test "X$have_v6" = "Xyes"; then | |
22336 | ||
22337 | rb_have_sockaddr_in6= | |
22338 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | |
22339 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | |
22340 | if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then | |
22341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22342 | else | |
22343 | cat >conftest.$ac_ext <<_ACEOF | |
22344 | /* confdefs.h. */ | |
22345 | _ACEOF | |
22346 | cat confdefs.h >>conftest.$ac_ext | |
22347 | cat >>conftest.$ac_ext <<_ACEOF | |
22348 | /* end confdefs.h. */ | |
22349 | ||
22350 | #include <sys/types.h> | |
22351 | #include <sys/socket.h> | |
22352 | #include <netinet/in.h> | |
22353 | ||
22354 | ||
22355 | typedef struct sockaddr_in6 ac__type_new_; | |
22356 | int | |
22357 | main () | |
22358 | { | |
22359 | if ((ac__type_new_ *) 0) | |
22360 | return 0; | |
22361 | if (sizeof (ac__type_new_)) | |
22362 | return 0; | |
22363 | ; | |
22364 | return 0; | |
22365 | } | |
22366 | _ACEOF | |
22367 | rm -f conftest.$ac_objext | |
22368 | if { (ac_try="$ac_compile" | |
22369 | case "(($ac_try" in | |
22370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22371 | *) ac_try_echo=$ac_try;; | |
22372 | esac | |
22373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22374 | (eval "$ac_compile") 2>conftest.er1 | |
22375 | ac_status=$? | |
22376 | grep -v '^ *+' conftest.er1 >conftest.err | |
22377 | rm -f conftest.er1 | |
22378 | cat conftest.err >&5 | |
22379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22380 | (exit $ac_status); } && { | |
22381 | test -z "$ac_c_werror_flag" || | |
22382 | test ! -s conftest.err | |
22383 | } && test -s conftest.$ac_objext; then | |
22384 | ac_cv_type_struct_sockaddr_in6=yes | |
22385 | else | |
22386 | echo "$as_me: failed program was:" >&5 | |
22387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22388 | ||
22389 | ac_cv_type_struct_sockaddr_in6=no | |
22390 | fi | |
22391 | ||
22392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22393 | fi | |
22394 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5 | |
22395 | echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; } | |
22396 | if test $ac_cv_type_struct_sockaddr_in6 = yes; then | |
22397 | ||
22398 | cat >>confdefs.h <<_ACEOF | |
22399 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | |
22400 | _ACEOF | |
22401 | ||
22402 | ||
22403 | rb_have_sockaddr_in6=yes | |
22404 | ||
22405 | else | |
22406 | ||
22407 | rb_have_sockaddr_in6=no | |
22408 | ||
22409 | fi | |
22410 | ||
22411 | ||
22412 | if test "X$rb_have_sockaddr_in6" = "Xyes"; then : | |
22413 | ||
22414 | else : | |
22415 | ||
22416 | { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5 | |
22417 | echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;} | |
22418 | have_v6=no | |
22419 | ||
22420 | fi | |
22421 | ||
22422 | fi | |
22423 | ||
22424 | fi | |
22425 | ||
22426 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | |
22427 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | |
22428 | if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then | |
22429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22430 | else | |
22431 | cat >conftest.$ac_ext <<_ACEOF | |
22432 | /* confdefs.h. */ | |
22433 | _ACEOF | |
22434 | cat confdefs.h >>conftest.$ac_ext | |
22435 | cat >>conftest.$ac_ext <<_ACEOF | |
22436 | /* end confdefs.h. */ | |
22437 | ||
22438 | #include <sys/types.h> | |
22439 | #include <sys/socket.h> | |
22440 | ||
22441 | ||
22442 | typedef struct sockaddr_storage ac__type_new_; | |
22443 | int | |
22444 | main () | |
22445 | { | |
22446 | if ((ac__type_new_ *) 0) | |
22447 | return 0; | |
22448 | if (sizeof (ac__type_new_)) | |
22449 | return 0; | |
22450 | ; | |
22451 | return 0; | |
22452 | } | |
22453 | _ACEOF | |
22454 | rm -f conftest.$ac_objext | |
22455 | if { (ac_try="$ac_compile" | |
22456 | case "(($ac_try" in | |
22457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22458 | *) ac_try_echo=$ac_try;; | |
22459 | esac | |
22460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22461 | (eval "$ac_compile") 2>conftest.er1 | |
22462 | ac_status=$? | |
22463 | grep -v '^ *+' conftest.er1 >conftest.err | |
22464 | rm -f conftest.er1 | |
22465 | cat conftest.err >&5 | |
22466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22467 | (exit $ac_status); } && { | |
22468 | test -z "$ac_c_werror_flag" || | |
22469 | test ! -s conftest.err | |
22470 | } && test -s conftest.$ac_objext; then | |
22471 | ac_cv_type_struct_sockaddr_storage=yes | |
22472 | else | |
22473 | echo "$as_me: failed program was:" >&5 | |
22474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22475 | ||
22476 | ac_cv_type_struct_sockaddr_storage=no | |
22477 | fi | |
22478 | ||
22479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22480 | fi | |
22481 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 | |
22482 | echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; } | |
22483 | if test $ac_cv_type_struct_sockaddr_storage = yes; then | |
22484 | ||
22485 | cat >>confdefs.h <<_ACEOF | |
22486 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | |
22487 | _ACEOF | |
22488 | ||
22489 | ||
22490 | rb_have_sockaddr_storage=yes | |
22491 | ||
22492 | fi | |
22493 | ||
22494 | ||
22495 | ||
22496 | save_LIBS=$LIBS | |
22497 | { echo "$as_me:$LINENO: checking for library containing crypt" >&5 | |
22498 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } | |
22499 | if test "${ac_cv_search_crypt+set}" = set; then | |
22500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22501 | else | |
22502 | ac_func_search_save_LIBS=$LIBS | |
22503 | cat >conftest.$ac_ext <<_ACEOF | |
22504 | /* confdefs.h. */ | |
22505 | _ACEOF | |
22506 | cat confdefs.h >>conftest.$ac_ext | |
22507 | cat >>conftest.$ac_ext <<_ACEOF | |
22508 | /* end confdefs.h. */ | |
22509 | ||
22510 | /* Override any GCC internal prototype to avoid an error. | |
22511 | Use char because int might match the return type of a GCC | |
22512 | builtin and then its argument prototype would still apply. */ | |
22513 | #ifdef __cplusplus | |
22514 | extern "C" | |
22515 | #endif | |
22516 | char crypt (); | |
22517 | int | |
22518 | main () | |
22519 | { | |
22520 | return crypt (); | |
22521 | ; | |
22522 | return 0; | |
22523 | } | |
22524 | _ACEOF | |
22525 | for ac_lib in '' crypt descrypt; do | |
22526 | if test -z "$ac_lib"; then | |
22527 | ac_res="none required" | |
22528 | else | |
22529 | ac_res=-l$ac_lib | |
22530 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22531 | fi | |
22532 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22533 | if { (ac_try="$ac_link" | |
22534 | case "(($ac_try" in | |
22535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22536 | *) ac_try_echo=$ac_try;; | |
22537 | esac | |
22538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22539 | (eval "$ac_link") 2>conftest.er1 | |
22540 | ac_status=$? | |
22541 | grep -v '^ *+' conftest.er1 >conftest.err | |
22542 | rm -f conftest.er1 | |
22543 | cat conftest.err >&5 | |
22544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22545 | (exit $ac_status); } && { | |
22546 | test -z "$ac_c_werror_flag" || | |
22547 | test ! -s conftest.err | |
22548 | } && test -s conftest$ac_exeext && | |
22549 | $as_test_x conftest$ac_exeext; then | |
22550 | ac_cv_search_crypt=$ac_res | |
22551 | else | |
22552 | echo "$as_me: failed program was:" >&5 | |
22553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22554 | ||
22555 | ||
22556 | fi | |
22557 | ||
22558 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22559 | conftest$ac_exeext | |
22560 | if test "${ac_cv_search_crypt+set}" = set; then | |
22561 | break | |
22562 | fi | |
22563 | done | |
22564 | if test "${ac_cv_search_crypt+set}" = set; then | |
22565 | : | |
22566 | else | |
22567 | ac_cv_search_crypt=no | |
22568 | fi | |
22569 | rm conftest.$ac_ext | |
22570 | LIBS=$ac_func_search_save_LIBS | |
22571 | fi | |
22572 | { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 | |
22573 | echo "${ECHO_T}$ac_cv_search_crypt" >&6; } | |
22574 | ac_res=$ac_cv_search_crypt | |
22575 | if test "$ac_res" != no; then | |
22576 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22577 | ||
22578 | fi | |
22579 | ||
22580 | LIBS=$save_LIBS | |
22581 | ||
22582 | CRYPT_LIB=$ac_cv_search_crypt | |
22583 | ||
22584 | if test "$CRYPT_LIB" = "none required"; then | |
22585 | unset CRYPT_LIB | |
22586 | elif test "$CRYPT_LIB" = no; then | |
22587 | need_crypt=yes; | |
22588 | ||
22589 | cat >>confdefs.h <<\_ACEOF | |
22590 | #define NEED_CRYPT 1 | |
22591 | _ACEOF | |
22592 | ||
22593 | unset CRYPT_LIB | |
22594 | fi | |
22595 | ||
b69b8b08 | 22596 | if test x"$need_crypt" = "xyes"; then |
db137867 AC |
22597 | NEED_CRYPT_TRUE= |
22598 | NEED_CRYPT_FALSE='#' | |
22599 | else | |
22600 | NEED_CRYPT_TRUE='#' | |
22601 | NEED_CRYPT_FALSE= | |
22602 | fi | |
22603 | ||
22604 | ||
22605 | ||
22606 | ||
22607 | ||
22608 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
22609 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 | |
22610 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
22611 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
22612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22613 | fi | |
22614 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 | |
22615 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
22616 | else | |
22617 | # Is the header compilable? | |
22618 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 | |
22619 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } | |
22620 | cat >conftest.$ac_ext <<_ACEOF | |
22621 | /* confdefs.h. */ | |
22622 | _ACEOF | |
22623 | cat confdefs.h >>conftest.$ac_ext | |
22624 | cat >>conftest.$ac_ext <<_ACEOF | |
22625 | /* end confdefs.h. */ | |
22626 | $ac_includes_default | |
22627 | #include <stdarg.h> | |
22628 | _ACEOF | |
22629 | rm -f conftest.$ac_objext | |
22630 | if { (ac_try="$ac_compile" | |
22631 | case "(($ac_try" in | |
22632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22633 | *) ac_try_echo=$ac_try;; | |
22634 | esac | |
22635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22636 | (eval "$ac_compile") 2>conftest.er1 | |
22637 | ac_status=$? | |
22638 | grep -v '^ *+' conftest.er1 >conftest.err | |
22639 | rm -f conftest.er1 | |
22640 | cat conftest.err >&5 | |
22641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22642 | (exit $ac_status); } && { | |
22643 | test -z "$ac_c_werror_flag" || | |
22644 | test ! -s conftest.err | |
22645 | } && test -s conftest.$ac_objext; then | |
22646 | ac_header_compiler=yes | |
22647 | else | |
22648 | echo "$as_me: failed program was:" >&5 | |
22649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22650 | ||
22651 | ac_header_compiler=no | |
22652 | fi | |
22653 | ||
22654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22655 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22656 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
22657 | ||
22658 | # Is the header present? | |
22659 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 | |
22660 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } | |
22661 | cat >conftest.$ac_ext <<_ACEOF | |
22662 | /* confdefs.h. */ | |
22663 | _ACEOF | |
22664 | cat confdefs.h >>conftest.$ac_ext | |
22665 | cat >>conftest.$ac_ext <<_ACEOF | |
22666 | /* end confdefs.h. */ | |
22667 | #include <stdarg.h> | |
22668 | _ACEOF | |
22669 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22670 | case "(($ac_try" in | |
22671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22672 | *) ac_try_echo=$ac_try;; | |
22673 | esac | |
22674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22675 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22676 | ac_status=$? | |
22677 | grep -v '^ *+' conftest.er1 >conftest.err | |
22678 | rm -f conftest.er1 | |
22679 | cat conftest.err >&5 | |
22680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22681 | (exit $ac_status); } >/dev/null && { | |
22682 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22683 | test ! -s conftest.err | |
22684 | }; then | |
22685 | ac_header_preproc=yes | |
22686 | else | |
22687 | echo "$as_me: failed program was:" >&5 | |
22688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22689 | ||
22690 | ac_header_preproc=no | |
22691 | fi | |
22692 | ||
22693 | rm -f conftest.err conftest.$ac_ext | |
22694 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22695 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
22696 | ||
22697 | # So? What about this header? | |
22698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22699 | yes:no: ) | |
22700 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22701 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22702 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
22703 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
22704 | ac_header_preproc=yes | |
22705 | ;; | |
22706 | no:yes:* ) | |
22707 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
22708 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
22709 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
22710 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
22711 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
22712 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
22713 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22714 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22715 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
22716 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
22717 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
22718 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
22719 | ||
22720 | ;; | |
22721 | esac | |
22722 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 | |
22723 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
22724 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
22725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22726 | else | |
22727 | ac_cv_header_stdarg_h=$ac_header_preproc | |
22728 | fi | |
22729 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 | |
22730 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
22731 | ||
22732 | fi | |
22733 | if test $ac_cv_header_stdarg_h = yes; then | |
22734 | : | |
22735 | else | |
22736 | { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5 | |
22737 | echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;} | |
22738 | { (exit 1); exit 1; }; } | |
22739 | fi | |
22740 | ||
22741 | ||
22742 | ||
22743 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | |
22744 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | |
22745 | if test "${ac_cv_type_sa_family_t+set}" = set; then | |
22746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22747 | else | |
22748 | cat >conftest.$ac_ext <<_ACEOF | |
22749 | /* confdefs.h. */ | |
22750 | _ACEOF | |
22751 | cat confdefs.h >>conftest.$ac_ext | |
22752 | cat >>conftest.$ac_ext <<_ACEOF | |
22753 | /* end confdefs.h. */ | |
22754 | #include <sys/types.h> | |
22755 | #include <sys/socket.h> | |
22756 | ||
22757 | typedef sa_family_t ac__type_new_; | |
22758 | int | |
22759 | main () | |
22760 | { | |
22761 | if ((ac__type_new_ *) 0) | |
22762 | return 0; | |
22763 | if (sizeof (ac__type_new_)) | |
22764 | return 0; | |
22765 | ; | |
22766 | return 0; | |
22767 | } | |
22768 | _ACEOF | |
22769 | rm -f conftest.$ac_objext | |
22770 | if { (ac_try="$ac_compile" | |
22771 | case "(($ac_try" in | |
22772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22773 | *) ac_try_echo=$ac_try;; | |
22774 | esac | |
22775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22776 | (eval "$ac_compile") 2>conftest.er1 | |
22777 | ac_status=$? | |
22778 | grep -v '^ *+' conftest.er1 >conftest.err | |
22779 | rm -f conftest.er1 | |
22780 | cat conftest.err >&5 | |
22781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22782 | (exit $ac_status); } && { | |
22783 | test -z "$ac_c_werror_flag" || | |
22784 | test ! -s conftest.err | |
22785 | } && test -s conftest.$ac_objext; then | |
22786 | ac_cv_type_sa_family_t=yes | |
22787 | else | |
22788 | echo "$as_me: failed program was:" >&5 | |
22789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22790 | ||
22791 | ac_cv_type_sa_family_t=no | |
22792 | fi | |
22793 | ||
22794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22795 | fi | |
22796 | { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 | |
22797 | echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } | |
22798 | if test $ac_cv_type_sa_family_t = yes; then | |
22799 | : | |
22800 | else | |
22801 | ||
22802 | cat >>confdefs.h <<\_ACEOF | |
22803 | #define sa_family_t u_int16_t | |
22804 | _ACEOF | |
22805 | ||
22806 | fi | |
22807 | ||
22808 | ||
22809 | ||
22810 | ||
22811 | ||
22812 | ||
22813 | ||
22814 | ||
22815 | ||
22816 | ||
22817 | ||
22818 | ||
22819 | ||
22820 | ||
22821 | ||
22822 | ||
22823 | ||
22824 | ||
22825 | ||
22826 | ||
22827 | ||
a9fb3ed0 VY |
22828 | |
22829 | ||
3202e249 VY |
22830 | |
22831 | for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create | |
db137867 AC |
22832 | do |
22833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22834 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22835 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
22836 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
22837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22838 | else | |
22839 | cat >conftest.$ac_ext <<_ACEOF | |
22840 | /* confdefs.h. */ | |
22841 | _ACEOF | |
22842 | cat confdefs.h >>conftest.$ac_ext | |
22843 | cat >>conftest.$ac_ext <<_ACEOF | |
22844 | /* end confdefs.h. */ | |
22845 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22847 | #define $ac_func innocuous_$ac_func | |
22848 | ||
22849 | /* System header to define __stub macros and hopefully few prototypes, | |
22850 | which can conflict with char $ac_func (); below. | |
22851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22852 | <limits.h> exists even on freestanding compilers. */ | |
22853 | ||
22854 | #ifdef __STDC__ | |
22855 | # include <limits.h> | |
22856 | #else | |
22857 | # include <assert.h> | |
22858 | #endif | |
22859 | ||
22860 | #undef $ac_func | |
22861 | ||
22862 | /* Override any GCC internal prototype to avoid an error. | |
22863 | Use char because int might match the return type of a GCC | |
22864 | builtin and then its argument prototype would still apply. */ | |
22865 | #ifdef __cplusplus | |
22866 | extern "C" | |
22867 | #endif | |
22868 | char $ac_func (); | |
22869 | /* The GNU C library defines this for functions which it implements | |
22870 | to always fail with ENOSYS. Some functions are actually named | |
22871 | something starting with __ and the normal name is an alias. */ | |
22872 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
22873 | choke me | |
22874 | #endif | |
22875 | ||
22876 | int | |
22877 | main () | |
22878 | { | |
22879 | return $ac_func (); | |
22880 | ; | |
22881 | return 0; | |
22882 | } | |
22883 | _ACEOF | |
22884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22885 | if { (ac_try="$ac_link" | |
22886 | case "(($ac_try" in | |
22887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22888 | *) ac_try_echo=$ac_try;; | |
22889 | esac | |
22890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22891 | (eval "$ac_link") 2>conftest.er1 | |
22892 | ac_status=$? | |
22893 | grep -v '^ *+' conftest.er1 >conftest.err | |
22894 | rm -f conftest.er1 | |
22895 | cat conftest.err >&5 | |
22896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22897 | (exit $ac_status); } && { | |
22898 | test -z "$ac_c_werror_flag" || | |
22899 | test ! -s conftest.err | |
22900 | } && test -s conftest$ac_exeext && | |
22901 | $as_test_x conftest$ac_exeext; then | |
22902 | eval "$as_ac_var=yes" | |
22903 | else | |
22904 | echo "$as_me: failed program was:" >&5 | |
22905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22906 | ||
22907 | eval "$as_ac_var=no" | |
22908 | fi | |
22909 | ||
22910 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22911 | conftest$ac_exeext conftest.$ac_ext | |
22912 | fi | |
22913 | ac_res=`eval echo '${'$as_ac_var'}'` | |
22914 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22915 | echo "${ECHO_T}$ac_res" >&6; } | |
22916 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22917 | cat >>confdefs.h <<_ACEOF | |
22918 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22919 | _ACEOF | |
22920 | ||
22921 | fi | |
22922 | done | |
22923 | ||
22924 | ||
22925 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | |
22926 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | |
22927 | if test "${ac_cv_search_nanosleep+set}" = set; then | |
22928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22929 | else | |
22930 | ac_func_search_save_LIBS=$LIBS | |
22931 | cat >conftest.$ac_ext <<_ACEOF | |
22932 | /* confdefs.h. */ | |
22933 | _ACEOF | |
22934 | cat confdefs.h >>conftest.$ac_ext | |
22935 | cat >>conftest.$ac_ext <<_ACEOF | |
22936 | /* end confdefs.h. */ | |
22937 | ||
22938 | /* Override any GCC internal prototype to avoid an error. | |
22939 | Use char because int might match the return type of a GCC | |
22940 | builtin and then its argument prototype would still apply. */ | |
22941 | #ifdef __cplusplus | |
22942 | extern "C" | |
22943 | #endif | |
22944 | char nanosleep (); | |
22945 | int | |
22946 | main () | |
22947 | { | |
22948 | return nanosleep (); | |
22949 | ; | |
22950 | return 0; | |
22951 | } | |
22952 | _ACEOF | |
22953 | for ac_lib in '' rt posix4; do | |
22954 | if test -z "$ac_lib"; then | |
22955 | ac_res="none required" | |
22956 | else | |
22957 | ac_res=-l$ac_lib | |
22958 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22959 | fi | |
22960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22961 | if { (ac_try="$ac_link" | |
22962 | case "(($ac_try" in | |
22963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22964 | *) ac_try_echo=$ac_try;; | |
22965 | esac | |
22966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22967 | (eval "$ac_link") 2>conftest.er1 | |
22968 | ac_status=$? | |
22969 | grep -v '^ *+' conftest.er1 >conftest.err | |
22970 | rm -f conftest.er1 | |
22971 | cat conftest.err >&5 | |
22972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22973 | (exit $ac_status); } && { | |
22974 | test -z "$ac_c_werror_flag" || | |
22975 | test ! -s conftest.err | |
22976 | } && test -s conftest$ac_exeext && | |
22977 | $as_test_x conftest$ac_exeext; then | |
22978 | ac_cv_search_nanosleep=$ac_res | |
22979 | else | |
22980 | echo "$as_me: failed program was:" >&5 | |
22981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22982 | ||
22983 | ||
22984 | fi | |
22985 | ||
22986 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22987 | conftest$ac_exeext | |
22988 | if test "${ac_cv_search_nanosleep+set}" = set; then | |
22989 | break | |
22990 | fi | |
22991 | done | |
22992 | if test "${ac_cv_search_nanosleep+set}" = set; then | |
22993 | : | |
22994 | else | |
22995 | ac_cv_search_nanosleep=no | |
22996 | fi | |
22997 | rm conftest.$ac_ext | |
22998 | LIBS=$ac_func_search_save_LIBS | |
22999 | fi | |
23000 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | |
23001 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | |
23002 | ac_res=$ac_cv_search_nanosleep | |
23003 | if test "$ac_res" != no; then | |
23004 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23005 | ||
23006 | cat >>confdefs.h <<\_ACEOF | |
23007 | #define HAVE_NANOSLEEP 1 | |
23008 | _ACEOF | |
23009 | ||
23010 | fi | |
23011 | ||
23012 | { echo "$as_me:$LINENO: checking for library containing timer_create" >&5 | |
23013 | echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; } | |
23014 | if test "${ac_cv_search_timer_create+set}" = set; then | |
23015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23016 | else | |
23017 | ac_func_search_save_LIBS=$LIBS | |
23018 | cat >conftest.$ac_ext <<_ACEOF | |
23019 | /* confdefs.h. */ | |
23020 | _ACEOF | |
23021 | cat confdefs.h >>conftest.$ac_ext | |
23022 | cat >>conftest.$ac_ext <<_ACEOF | |
23023 | /* end confdefs.h. */ | |
23024 | ||
23025 | /* Override any GCC internal prototype to avoid an error. | |
23026 | Use char because int might match the return type of a GCC | |
23027 | builtin and then its argument prototype would still apply. */ | |
23028 | #ifdef __cplusplus | |
23029 | extern "C" | |
23030 | #endif | |
23031 | char timer_create (); | |
23032 | int | |
23033 | main () | |
23034 | { | |
23035 | return timer_create (); | |
23036 | ; | |
23037 | return 0; | |
23038 | } | |
23039 | _ACEOF | |
23040 | for ac_lib in '' rt; do | |
23041 | if test -z "$ac_lib"; then | |
23042 | ac_res="none required" | |
23043 | else | |
23044 | ac_res=-l$ac_lib | |
23045 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23046 | fi | |
23047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23048 | if { (ac_try="$ac_link" | |
23049 | case "(($ac_try" in | |
23050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23051 | *) ac_try_echo=$ac_try;; | |
23052 | esac | |
23053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23054 | (eval "$ac_link") 2>conftest.er1 | |
23055 | ac_status=$? | |
23056 | grep -v '^ *+' conftest.er1 >conftest.err | |
23057 | rm -f conftest.er1 | |
23058 | cat conftest.err >&5 | |
23059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23060 | (exit $ac_status); } && { | |
23061 | test -z "$ac_c_werror_flag" || | |
23062 | test ! -s conftest.err | |
23063 | } && test -s conftest$ac_exeext && | |
23064 | $as_test_x conftest$ac_exeext; then | |
23065 | ac_cv_search_timer_create=$ac_res | |
23066 | else | |
23067 | echo "$as_me: failed program was:" >&5 | |
23068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23069 | ||
23070 | ||
23071 | fi | |
23072 | ||
23073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23074 | conftest$ac_exeext | |
23075 | if test "${ac_cv_search_timer_create+set}" = set; then | |
23076 | break | |
23077 | fi | |
23078 | done | |
23079 | if test "${ac_cv_search_timer_create+set}" = set; then | |
23080 | : | |
23081 | else | |
23082 | ac_cv_search_timer_create=no | |
23083 | fi | |
23084 | rm conftest.$ac_ext | |
23085 | LIBS=$ac_func_search_save_LIBS | |
23086 | fi | |
23087 | { echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5 | |
23088 | echo "${ECHO_T}$ac_cv_search_timer_create" >&6; } | |
23089 | ac_res=$ac_cv_search_timer_create | |
23090 | if test "$ac_res" != no; then | |
23091 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23092 | ||
23093 | cat >>confdefs.h <<\_ACEOF | |
23094 | #define HAVE_TIMER_CREATE 1 | |
23095 | _ACEOF | |
23096 | ||
23097 | fi | |
23098 | ||
23099 | { echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5 | |
23100 | echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; } | |
23101 | if test "${rb__cv_timer_create_works+set}" = set; then | |
23102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23103 | else | |
23104 | if test "$cross_compiling" = yes; then | |
23105 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
23106 | See \`config.log' for more details." >&5 | |
23107 | echo "$as_me: error: cannot run test program while cross compiling | |
23108 | See \`config.log' for more details." >&2;} | |
23109 | { (exit 1); exit 1; }; } | |
23110 | else | |
23111 | cat >conftest.$ac_ext <<_ACEOF | |
23112 | /* confdefs.h. */ | |
23113 | _ACEOF | |
23114 | cat confdefs.h >>conftest.$ac_ext | |
23115 | cat >>conftest.$ac_ext <<_ACEOF | |
23116 | /* end confdefs.h. */ | |
23117 | ||
23118 | #ifdef HAVE_TIME_H | |
23119 | #include <time.h> | |
23120 | #endif | |
23121 | #ifdef HAVE_SIGNAL_H | |
23122 | #include <signal.h> | |
23123 | #endif | |
23124 | #ifdef HAVE_UNISTD_H | |
23125 | #include <unistd.h> | |
23126 | #endif | |
23127 | int main(int argc, char *argv[]) | |
23128 | { | |
23129 | #if HAVE_TIMER_CREATE | |
23130 | struct sigevent ev; | |
23131 | timer_t timer; | |
23132 | ev.sigev_notify = SIGEV_SIGNAL; | |
23133 | ev.sigev_signo = SIGVTALRM; | |
23134 | if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) { | |
23135 | return 1; | |
23136 | } | |
23137 | #else | |
23138 | return 1; | |
23139 | #endif | |
23140 | return 0; | |
23141 | } | |
23142 | ||
23143 | _ACEOF | |
23144 | rm -f conftest$ac_exeext | |
23145 | if { (ac_try="$ac_link" | |
23146 | case "(($ac_try" in | |
23147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23148 | *) ac_try_echo=$ac_try;; | |
23149 | esac | |
23150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23151 | (eval "$ac_link") 2>&5 | |
23152 | ac_status=$? | |
23153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23155 | { (case "(($ac_try" in | |
23156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23157 | *) ac_try_echo=$ac_try;; | |
23158 | esac | |
23159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23160 | (eval "$ac_try") 2>&5 | |
23161 | ac_status=$? | |
23162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23163 | (exit $ac_status); }; }; then | |
23164 | rb__cv_timer_create_works=yes | |
23165 | else | |
23166 | echo "$as_me: program exited with status $ac_status" >&5 | |
23167 | echo "$as_me: failed program was:" >&5 | |
23168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23169 | ||
23170 | ( exit $ac_status ) | |
23171 | rb__cv_timer_create_works=no | |
23172 | fi | |
23173 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
23174 | fi | |
23175 | ||
23176 | ||
23177 | ||
23178 | fi | |
23179 | { echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5 | |
23180 | echo "${ECHO_T}$rb__cv_timer_create_works" >&6; } | |
23181 | case $rb__cv_timer_create_works in | |
23182 | yes) | |
23183 | cat >>confdefs.h <<\_ACEOF | |
23184 | #define USE_TIMER_CREATE 1 | |
23185 | _ACEOF | |
23186 | ;; | |
23187 | esac | |
23188 | ||
3202e249 VY |
23189 | { echo "$as_me:$LINENO: checking for a working timerfd_create(CLOCK_REALTIME)" >&5 |
23190 | echo $ECHO_N "checking for a working timerfd_create(CLOCK_REALTIME)... $ECHO_C" >&6; } | |
23191 | if test "${rb__cv_timerfd_create_works+set}" = set; then | |
23192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23193 | else | |
23194 | if test "$cross_compiling" = yes; then | |
23195 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
23196 | See \`config.log' for more details." >&5 | |
23197 | echo "$as_me: error: cannot run test program while cross compiling | |
23198 | See \`config.log' for more details." >&2;} | |
23199 | { (exit 1); exit 1; }; } | |
23200 | else | |
23201 | cat >conftest.$ac_ext <<_ACEOF | |
23202 | /* confdefs.h. */ | |
23203 | _ACEOF | |
23204 | cat confdefs.h >>conftest.$ac_ext | |
23205 | cat >>conftest.$ac_ext <<_ACEOF | |
23206 | /* end confdefs.h. */ | |
23207 | ||
23208 | #ifdef HAVE_TIME_H | |
23209 | #include <time.h> | |
23210 | #endif | |
23211 | #ifdef HAVE_SIGNAL_H | |
23212 | #include <signal.h> | |
23213 | #endif | |
23214 | #ifdef HAVE_UNISTD_H | |
23215 | #include <unistd.h> | |
23216 | #endif | |
23217 | #ifdef HAVE_SYS_TIMERFD_H | |
23218 | #include <sys/timerfd.h> | |
23219 | #endif | |
23220 | int main(int argc, char *argv[]) | |
23221 | { | |
23222 | #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H) | |
23223 | if (timerfd_create(CLOCK_REALTIME, 0) < 0) { | |
23224 | return 1; | |
23225 | } | |
23226 | #else | |
23227 | return 1; | |
23228 | #endif | |
23229 | return 0; | |
23230 | } | |
23231 | ||
23232 | _ACEOF | |
23233 | rm -f conftest$ac_exeext | |
23234 | if { (ac_try="$ac_link" | |
23235 | case "(($ac_try" in | |
23236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23237 | *) ac_try_echo=$ac_try;; | |
23238 | esac | |
23239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23240 | (eval "$ac_link") 2>&5 | |
23241 | ac_status=$? | |
23242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23243 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23244 | { (case "(($ac_try" in | |
23245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23246 | *) ac_try_echo=$ac_try;; | |
23247 | esac | |
23248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23249 | (eval "$ac_try") 2>&5 | |
23250 | ac_status=$? | |
23251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23252 | (exit $ac_status); }; }; then | |
23253 | rb__cv_timerfd_create_works=yes | |
23254 | else | |
23255 | echo "$as_me: program exited with status $ac_status" >&5 | |
23256 | echo "$as_me: failed program was:" >&5 | |
23257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23258 | ||
23259 | ( exit $ac_status ) | |
23260 | rb__cv_timerfd_create_works=no | |
23261 | fi | |
23262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
23263 | fi | |
23264 | ||
23265 | ||
23266 | ||
23267 | fi | |
23268 | { echo "$as_me:$LINENO: result: $rb__cv_timerfd_create_works" >&5 | |
23269 | echo "${ECHO_T}$rb__cv_timerfd_create_works" >&6; } | |
23270 | case $rb__cv_timerfd_create_works in | |
23271 | yes) | |
23272 | cat >>confdefs.h <<\_ACEOF | |
23273 | #define USE_TIMERFD_CREATE 1 | |
23274 | _ACEOF | |
23275 | ;; | |
23276 | esac | |
23277 | ||
db137867 AC |
23278 | |
23279 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
23280 | # for constant arguments. Useless! | |
23281 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
23282 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
23283 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
23284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23285 | else | |
23286 | cat >conftest.$ac_ext <<_ACEOF | |
23287 | /* confdefs.h. */ | |
23288 | _ACEOF | |
23289 | cat confdefs.h >>conftest.$ac_ext | |
23290 | cat >>conftest.$ac_ext <<_ACEOF | |
23291 | /* end confdefs.h. */ | |
23292 | #include <alloca.h> | |
23293 | int | |
23294 | main () | |
23295 | { | |
23296 | char *p = (char *) alloca (2 * sizeof (int)); | |
23297 | if (p) return 0; | |
23298 | ; | |
23299 | return 0; | |
23300 | } | |
23301 | _ACEOF | |
23302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23303 | if { (ac_try="$ac_link" | |
23304 | case "(($ac_try" in | |
23305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23306 | *) ac_try_echo=$ac_try;; | |
23307 | esac | |
23308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23309 | (eval "$ac_link") 2>conftest.er1 | |
23310 | ac_status=$? | |
23311 | grep -v '^ *+' conftest.er1 >conftest.err | |
23312 | rm -f conftest.er1 | |
23313 | cat conftest.err >&5 | |
23314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23315 | (exit $ac_status); } && { | |
23316 | test -z "$ac_c_werror_flag" || | |
23317 | test ! -s conftest.err | |
23318 | } && test -s conftest$ac_exeext && | |
23319 | $as_test_x conftest$ac_exeext; then | |
23320 | ac_cv_working_alloca_h=yes | |
23321 | else | |
23322 | echo "$as_me: failed program was:" >&5 | |
23323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23324 | ||
23325 | ac_cv_working_alloca_h=no | |
23326 | fi | |
23327 | ||
23328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23329 | conftest$ac_exeext conftest.$ac_ext | |
23330 | fi | |
23331 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
23332 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
23333 | if test $ac_cv_working_alloca_h = yes; then | |
23334 | ||
23335 | cat >>confdefs.h <<\_ACEOF | |
23336 | #define HAVE_ALLOCA_H 1 | |
23337 | _ACEOF | |
23338 | ||
23339 | fi | |
23340 | ||
23341 | { echo "$as_me:$LINENO: checking for alloca" >&5 | |
23342 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
23343 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
23344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23345 | else | |
23346 | cat >conftest.$ac_ext <<_ACEOF | |
23347 | /* confdefs.h. */ | |
23348 | _ACEOF | |
23349 | cat confdefs.h >>conftest.$ac_ext | |
23350 | cat >>conftest.$ac_ext <<_ACEOF | |
23351 | /* end confdefs.h. */ | |
23352 | #ifdef __GNUC__ | |
23353 | # define alloca __builtin_alloca | |
23354 | #else | |
23355 | # ifdef _MSC_VER | |
23356 | # include <malloc.h> | |
23357 | # define alloca _alloca | |
23358 | # else | |
23359 | # ifdef HAVE_ALLOCA_H | |
23360 | # include <alloca.h> | |
23361 | # else | |
23362 | # ifdef _AIX | |
23363 | #pragma alloca | |
23364 | # else | |
23365 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
23366 | char *alloca (); | |
23367 | # endif | |
23368 | # endif | |
23369 | # endif | |
23370 | # endif | |
23371 | #endif | |
23372 | ||
23373 | int | |
23374 | main () | |
23375 | { | |
23376 | char *p = (char *) alloca (1); | |
23377 | if (p) return 0; | |
23378 | ; | |
23379 | return 0; | |
23380 | } | |
23381 | _ACEOF | |
23382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23383 | if { (ac_try="$ac_link" | |
23384 | case "(($ac_try" in | |
23385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23386 | *) ac_try_echo=$ac_try;; | |
23387 | esac | |
23388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23389 | (eval "$ac_link") 2>conftest.er1 | |
23390 | ac_status=$? | |
23391 | grep -v '^ *+' conftest.er1 >conftest.err | |
23392 | rm -f conftest.er1 | |
23393 | cat conftest.err >&5 | |
23394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23395 | (exit $ac_status); } && { | |
23396 | test -z "$ac_c_werror_flag" || | |
23397 | test ! -s conftest.err | |
23398 | } && test -s conftest$ac_exeext && | |
23399 | $as_test_x conftest$ac_exeext; then | |
23400 | ac_cv_func_alloca_works=yes | |
23401 | else | |
23402 | echo "$as_me: failed program was:" >&5 | |
23403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23404 | ||
23405 | ac_cv_func_alloca_works=no | |
23406 | fi | |
23407 | ||
23408 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23409 | conftest$ac_exeext conftest.$ac_ext | |
23410 | fi | |
23411 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
23412 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
23413 | ||
23414 | if test $ac_cv_func_alloca_works = yes; then | |
23415 | ||
23416 | cat >>confdefs.h <<\_ACEOF | |
23417 | #define HAVE_ALLOCA 1 | |
23418 | _ACEOF | |
23419 | ||
23420 | else | |
23421 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
23422 | # that cause trouble. Some versions do not even contain alloca or | |
23423 | # contain a buggy version. If you still want to use their alloca, | |
23424 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
23425 | ||
23426 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
23427 | ||
23428 | cat >>confdefs.h <<\_ACEOF | |
23429 | #define C_ALLOCA 1 | |
23430 | _ACEOF | |
23431 | ||
23432 | ||
23433 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
23434 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
23435 | if test "${ac_cv_os_cray+set}" = set; then | |
23436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23437 | else | |
23438 | cat >conftest.$ac_ext <<_ACEOF | |
23439 | /* confdefs.h. */ | |
23440 | _ACEOF | |
23441 | cat confdefs.h >>conftest.$ac_ext | |
23442 | cat >>conftest.$ac_ext <<_ACEOF | |
23443 | /* end confdefs.h. */ | |
23444 | #if defined CRAY && ! defined CRAY2 | |
23445 | webecray | |
23446 | #else | |
23447 | wenotbecray | |
23448 | #endif | |
23449 | ||
23450 | _ACEOF | |
23451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
23452 | $EGREP "webecray" >/dev/null 2>&1; then | |
23453 | ac_cv_os_cray=yes | |
23454 | else | |
23455 | ac_cv_os_cray=no | |
23456 | fi | |
23457 | rm -f conftest* | |
23458 | ||
23459 | fi | |
23460 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
23461 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
23462 | if test $ac_cv_os_cray = yes; then | |
23463 | for ac_func in _getb67 GETB67 getb67; do | |
23464 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23465 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23466 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
23467 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
23468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23469 | else | |
23470 | cat >conftest.$ac_ext <<_ACEOF | |
23471 | /* confdefs.h. */ | |
23472 | _ACEOF | |
23473 | cat confdefs.h >>conftest.$ac_ext | |
23474 | cat >>conftest.$ac_ext <<_ACEOF | |
23475 | /* end confdefs.h. */ | |
23476 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23477 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23478 | #define $ac_func innocuous_$ac_func | |
23479 | ||
23480 | /* System header to define __stub macros and hopefully few prototypes, | |
23481 | which can conflict with char $ac_func (); below. | |
23482 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23483 | <limits.h> exists even on freestanding compilers. */ | |
23484 | ||
23485 | #ifdef __STDC__ | |
23486 | # include <limits.h> | |
23487 | #else | |
23488 | # include <assert.h> | |
23489 | #endif | |
23490 | ||
23491 | #undef $ac_func | |
23492 | ||
23493 | /* Override any GCC internal prototype to avoid an error. | |
23494 | Use char because int might match the return type of a GCC | |
23495 | builtin and then its argument prototype would still apply. */ | |
23496 | #ifdef __cplusplus | |
23497 | extern "C" | |
23498 | #endif | |
23499 | char $ac_func (); | |
23500 | /* The GNU C library defines this for functions which it implements | |
23501 | to always fail with ENOSYS. Some functions are actually named | |
23502 | something starting with __ and the normal name is an alias. */ | |
23503 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
23504 | choke me | |
23505 | #endif | |
23506 | ||
23507 | int | |
23508 | main () | |
23509 | { | |
23510 | return $ac_func (); | |
23511 | ; | |
23512 | return 0; | |
23513 | } | |
23514 | _ACEOF | |
23515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23516 | if { (ac_try="$ac_link" | |
23517 | case "(($ac_try" in | |
23518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23519 | *) ac_try_echo=$ac_try;; | |
23520 | esac | |
23521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23522 | (eval "$ac_link") 2>conftest.er1 | |
23523 | ac_status=$? | |
23524 | grep -v '^ *+' conftest.er1 >conftest.err | |
23525 | rm -f conftest.er1 | |
23526 | cat conftest.err >&5 | |
23527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23528 | (exit $ac_status); } && { | |
23529 | test -z "$ac_c_werror_flag" || | |
23530 | test ! -s conftest.err | |
23531 | } && test -s conftest$ac_exeext && | |
23532 | $as_test_x conftest$ac_exeext; then | |
23533 | eval "$as_ac_var=yes" | |
23534 | else | |
23535 | echo "$as_me: failed program was:" >&5 | |
23536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23537 | ||
23538 | eval "$as_ac_var=no" | |
23539 | fi | |
23540 | ||
23541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23542 | conftest$ac_exeext conftest.$ac_ext | |
23543 | fi | |
23544 | ac_res=`eval echo '${'$as_ac_var'}'` | |
23545 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23546 | echo "${ECHO_T}$ac_res" >&6; } | |
23547 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23548 | ||
23549 | cat >>confdefs.h <<_ACEOF | |
23550 | #define CRAY_STACKSEG_END $ac_func | |
23551 | _ACEOF | |
23552 | ||
23553 | break | |
23554 | fi | |
23555 | ||
23556 | done | |
23557 | fi | |
23558 | ||
23559 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
23560 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
23561 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
23562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23563 | else | |
23564 | if test "$cross_compiling" = yes; then | |
23565 | ac_cv_c_stack_direction=0 | |
23566 | else | |
23567 | cat >conftest.$ac_ext <<_ACEOF | |
23568 | /* confdefs.h. */ | |
23569 | _ACEOF | |
23570 | cat confdefs.h >>conftest.$ac_ext | |
23571 | cat >>conftest.$ac_ext <<_ACEOF | |
23572 | /* end confdefs.h. */ | |
23573 | $ac_includes_default | |
23574 | int | |
23575 | find_stack_direction () | |
23576 | { | |
23577 | static char *addr = 0; | |
23578 | auto char dummy; | |
23579 | if (addr == 0) | |
23580 | { | |
23581 | addr = &dummy; | |
23582 | return find_stack_direction (); | |
23583 | } | |
23584 | else | |
23585 | return (&dummy > addr) ? 1 : -1; | |
23586 | } | |
23587 | ||
23588 | int | |
23589 | main () | |
23590 | { | |
23591 | return find_stack_direction () < 0; | |
23592 | } | |
23593 | _ACEOF | |
23594 | rm -f conftest$ac_exeext | |
23595 | if { (ac_try="$ac_link" | |
23596 | case "(($ac_try" in | |
23597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23598 | *) ac_try_echo=$ac_try;; | |
23599 | esac | |
23600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23601 | (eval "$ac_link") 2>&5 | |
23602 | ac_status=$? | |
23603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23605 | { (case "(($ac_try" in | |
23606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23607 | *) ac_try_echo=$ac_try;; | |
23608 | esac | |
23609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23610 | (eval "$ac_try") 2>&5 | |
23611 | ac_status=$? | |
23612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23613 | (exit $ac_status); }; }; then | |
23614 | ac_cv_c_stack_direction=1 | |
23615 | else | |
23616 | echo "$as_me: program exited with status $ac_status" >&5 | |
23617 | echo "$as_me: failed program was:" >&5 | |
23618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23619 | ||
23620 | ( exit $ac_status ) | |
23621 | ac_cv_c_stack_direction=-1 | |
23622 | fi | |
23623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
23624 | fi | |
23625 | ||
23626 | ||
23627 | fi | |
23628 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
23629 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
23630 | ||
23631 | cat >>confdefs.h <<_ACEOF | |
23632 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
23633 | _ACEOF | |
23634 | ||
23635 | ||
23636 | fi | |
23637 | ||
23638 | ||
23639 | for ac_header in vfork.h | |
23640 | do | |
23641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23643 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
23645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23647 | fi | |
23648 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
23649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23650 | echo "${ECHO_T}$ac_res" >&6; } | |
23651 | else | |
23652 | # Is the header compilable? | |
23653 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
23655 | cat >conftest.$ac_ext <<_ACEOF | |
23656 | /* confdefs.h. */ | |
23657 | _ACEOF | |
23658 | cat confdefs.h >>conftest.$ac_ext | |
23659 | cat >>conftest.$ac_ext <<_ACEOF | |
23660 | /* end confdefs.h. */ | |
23661 | $ac_includes_default | |
23662 | #include <$ac_header> | |
23663 | _ACEOF | |
23664 | rm -f conftest.$ac_objext | |
23665 | if { (ac_try="$ac_compile" | |
23666 | case "(($ac_try" in | |
23667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23668 | *) ac_try_echo=$ac_try;; | |
23669 | esac | |
23670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23671 | (eval "$ac_compile") 2>conftest.er1 | |
23672 | ac_status=$? | |
23673 | grep -v '^ *+' conftest.er1 >conftest.err | |
23674 | rm -f conftest.er1 | |
23675 | cat conftest.err >&5 | |
23676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23677 | (exit $ac_status); } && { | |
23678 | test -z "$ac_c_werror_flag" || | |
23679 | test ! -s conftest.err | |
23680 | } && test -s conftest.$ac_objext; then | |
23681 | ac_header_compiler=yes | |
23682 | else | |
23683 | echo "$as_me: failed program was:" >&5 | |
23684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23685 | ||
23686 | ac_header_compiler=no | |
23687 | fi | |
23688 | ||
23689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23690 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23691 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
23692 | ||
23693 | # Is the header present? | |
23694 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23695 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
23696 | cat >conftest.$ac_ext <<_ACEOF | |
23697 | /* confdefs.h. */ | |
23698 | _ACEOF | |
23699 | cat confdefs.h >>conftest.$ac_ext | |
23700 | cat >>conftest.$ac_ext <<_ACEOF | |
23701 | /* end confdefs.h. */ | |
23702 | #include <$ac_header> | |
23703 | _ACEOF | |
23704 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23705 | case "(($ac_try" in | |
23706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23707 | *) ac_try_echo=$ac_try;; | |
23708 | esac | |
23709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23710 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23711 | ac_status=$? | |
23712 | grep -v '^ *+' conftest.er1 >conftest.err | |
23713 | rm -f conftest.er1 | |
23714 | cat conftest.err >&5 | |
23715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23716 | (exit $ac_status); } >/dev/null && { | |
23717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23718 | test ! -s conftest.err | |
23719 | }; then | |
23720 | ac_header_preproc=yes | |
23721 | else | |
23722 | echo "$as_me: failed program was:" >&5 | |
23723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23724 | ||
23725 | ac_header_preproc=no | |
23726 | fi | |
23727 | ||
23728 | rm -f conftest.err conftest.$ac_ext | |
23729 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23730 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
23731 | ||
23732 | # So? What about this header? | |
23733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23734 | yes:no: ) | |
23735 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23736 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23738 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23739 | ac_header_preproc=yes | |
23740 | ;; | |
23741 | no:yes:* ) | |
23742 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23743 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23744 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23745 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23746 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23747 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23748 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23749 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23751 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23752 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23753 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23754 | ||
23755 | ;; | |
23756 | esac | |
23757 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23758 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
23759 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23761 | else | |
23762 | eval "$as_ac_Header=\$ac_header_preproc" | |
23763 | fi | |
23764 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
23765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23766 | echo "${ECHO_T}$ac_res" >&6; } | |
23767 | ||
23768 | fi | |
23769 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23770 | cat >>confdefs.h <<_ACEOF | |
23771 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23772 | _ACEOF | |
23773 | ||
23774 | fi | |
23775 | ||
23776 | done | |
23777 | ||
23778 | ||
23779 | ||
23780 | for ac_func in fork vfork | |
23781 | do | |
23782 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23783 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23784 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
23785 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
23786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23787 | else | |
23788 | cat >conftest.$ac_ext <<_ACEOF | |
23789 | /* confdefs.h. */ | |
23790 | _ACEOF | |
23791 | cat confdefs.h >>conftest.$ac_ext | |
23792 | cat >>conftest.$ac_ext <<_ACEOF | |
23793 | /* end confdefs.h. */ | |
23794 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23795 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23796 | #define $ac_func innocuous_$ac_func | |
23797 | ||
23798 | /* System header to define __stub macros and hopefully few prototypes, | |
23799 | which can conflict with char $ac_func (); below. | |
23800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23801 | <limits.h> exists even on freestanding compilers. */ | |
23802 | ||
23803 | #ifdef __STDC__ | |
23804 | # include <limits.h> | |
23805 | #else | |
23806 | # include <assert.h> | |
23807 | #endif | |
23808 | ||
23809 | #undef $ac_func | |
23810 | ||
23811 | /* Override any GCC internal prototype to avoid an error. | |
23812 | Use char because int might match the return type of a GCC | |
23813 | builtin and then its argument prototype would still apply. */ | |
23814 | #ifdef __cplusplus | |
23815 | extern "C" | |
23816 | #endif | |
23817 | char $ac_func (); | |
23818 | /* The GNU C library defines this for functions which it implements | |
23819 | to always fail with ENOSYS. Some functions are actually named | |
23820 | something starting with __ and the normal name is an alias. */ | |
23821 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
23822 | choke me | |
23823 | #endif | |
23824 | ||
23825 | int | |
23826 | main () | |
23827 | { | |
23828 | return $ac_func (); | |
23829 | ; | |
23830 | return 0; | |
23831 | } | |
23832 | _ACEOF | |
23833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23834 | if { (ac_try="$ac_link" | |
23835 | case "(($ac_try" in | |
23836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23837 | *) ac_try_echo=$ac_try;; | |
23838 | esac | |
23839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23840 | (eval "$ac_link") 2>conftest.er1 | |
23841 | ac_status=$? | |
23842 | grep -v '^ *+' conftest.er1 >conftest.err | |
23843 | rm -f conftest.er1 | |
23844 | cat conftest.err >&5 | |
23845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23846 | (exit $ac_status); } && { | |
23847 | test -z "$ac_c_werror_flag" || | |
23848 | test ! -s conftest.err | |
23849 | } && test -s conftest$ac_exeext && | |
23850 | $as_test_x conftest$ac_exeext; then | |
23851 | eval "$as_ac_var=yes" | |
23852 | else | |
23853 | echo "$as_me: failed program was:" >&5 | |
23854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23855 | ||
23856 | eval "$as_ac_var=no" | |
23857 | fi | |
23858 | ||
23859 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23860 | conftest$ac_exeext conftest.$ac_ext | |
23861 | fi | |
23862 | ac_res=`eval echo '${'$as_ac_var'}'` | |
23863 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23864 | echo "${ECHO_T}$ac_res" >&6; } | |
23865 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23866 | cat >>confdefs.h <<_ACEOF | |
23867 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23868 | _ACEOF | |
23869 | ||
23870 | fi | |
23871 | done | |
23872 | ||
23873 | if test "x$ac_cv_func_fork" = xyes; then | |
23874 | { echo "$as_me:$LINENO: checking for working fork" >&5 | |
23875 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
23876 | if test "${ac_cv_func_fork_works+set}" = set; then | |
23877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23878 | else | |
23879 | if test "$cross_compiling" = yes; then | |
23880 | ac_cv_func_fork_works=cross | |
23881 | else | |
23882 | cat >conftest.$ac_ext <<_ACEOF | |
23883 | /* confdefs.h. */ | |
23884 | _ACEOF | |
23885 | cat confdefs.h >>conftest.$ac_ext | |
23886 | cat >>conftest.$ac_ext <<_ACEOF | |
23887 | /* end confdefs.h. */ | |
23888 | $ac_includes_default | |
23889 | int | |
23890 | main () | |
23891 | { | |
23892 | ||
23893 | /* By Ruediger Kuhlmann. */ | |
23894 | return fork () < 0; | |
23895 | ||
23896 | ; | |
23897 | return 0; | |
23898 | } | |
23899 | _ACEOF | |
23900 | rm -f conftest$ac_exeext | |
23901 | if { (ac_try="$ac_link" | |
23902 | case "(($ac_try" in | |
23903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23904 | *) ac_try_echo=$ac_try;; | |
23905 | esac | |
23906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23907 | (eval "$ac_link") 2>&5 | |
23908 | ac_status=$? | |
23909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23910 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23911 | { (case "(($ac_try" in | |
23912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23913 | *) ac_try_echo=$ac_try;; | |
23914 | esac | |
23915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23916 | (eval "$ac_try") 2>&5 | |
23917 | ac_status=$? | |
23918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23919 | (exit $ac_status); }; }; then | |
23920 | ac_cv_func_fork_works=yes | |
23921 | else | |
23922 | echo "$as_me: program exited with status $ac_status" >&5 | |
23923 | echo "$as_me: failed program was:" >&5 | |
23924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23925 | ||
23926 | ( exit $ac_status ) | |
23927 | ac_cv_func_fork_works=no | |
23928 | fi | |
23929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
23930 | fi | |
23931 | ||
23932 | ||
23933 | fi | |
23934 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
23935 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
23936 | ||
23937 | else | |
23938 | ac_cv_func_fork_works=$ac_cv_func_fork | |
23939 | fi | |
23940 | if test "x$ac_cv_func_fork_works" = xcross; then | |
23941 | case $host in | |
23942 | *-*-amigaos* | *-*-msdosdjgpp*) | |
23943 | # Override, as these systems have only a dummy fork() stub | |
23944 | ac_cv_func_fork_works=no | |
23945 | ;; | |
23946 | *) | |
23947 | ac_cv_func_fork_works=yes | |
23948 | ;; | |
23949 | esac | |
23950 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
23951 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
23952 | fi | |
23953 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
23954 | if test "x$ac_cv_func_vfork" = xyes; then | |
23955 | { echo "$as_me:$LINENO: checking for working vfork" >&5 | |
23956 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
23957 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
23958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23959 | else | |
23960 | if test "$cross_compiling" = yes; then | |
23961 | ac_cv_func_vfork_works=cross | |
23962 | else | |
23963 | cat >conftest.$ac_ext <<_ACEOF | |
23964 | /* confdefs.h. */ | |
23965 | _ACEOF | |
23966 | cat confdefs.h >>conftest.$ac_ext | |
23967 | cat >>conftest.$ac_ext <<_ACEOF | |
23968 | /* end confdefs.h. */ | |
23969 | /* Thanks to Paul Eggert for this test. */ | |
23970 | $ac_includes_default | |
23971 | #include <sys/wait.h> | |
23972 | #ifdef HAVE_VFORK_H | |
23973 | # include <vfork.h> | |
23974 | #endif | |
23975 | /* On some sparc systems, changes by the child to local and incoming | |
23976 | argument registers are propagated back to the parent. The compiler | |
23977 | is told about this with #include <vfork.h>, but some compilers | |
23978 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
23979 | static variable whose address is put into a register that is | |
23980 | clobbered by the vfork. */ | |
23981 | static void | |
23982 | #ifdef __cplusplus | |
23983 | sparc_address_test (int arg) | |
23984 | # else | |
23985 | sparc_address_test (arg) int arg; | |
23986 | #endif | |
23987 | { | |
23988 | static pid_t child; | |
23989 | if (!child) { | |
23990 | child = vfork (); | |
23991 | if (child < 0) { | |
23992 | perror ("vfork"); | |
23993 | _exit(2); | |
23994 | } | |
23995 | if (!child) { | |
23996 | arg = getpid(); | |
23997 | write(-1, "", 0); | |
23998 | _exit (arg); | |
23999 | } | |
24000 | } | |
24001 | } | |
24002 | ||
24003 | int | |
24004 | main () | |
24005 | { | |
24006 | pid_t parent = getpid (); | |
24007 | pid_t child; | |
24008 | ||
24009 | sparc_address_test (0); | |
24010 | ||
24011 | child = vfork (); | |
24012 | ||
24013 | if (child == 0) { | |
24014 | /* Here is another test for sparc vfork register problems. This | |
24015 | test uses lots of local variables, at least as many local | |
24016 | variables as main has allocated so far including compiler | |
24017 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
24018 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
24019 | reuse the register of parent for one of the local variables, | |
24020 | since it will think that parent can't possibly be used any more | |
24021 | in this routine. Assigning to the local variable will thus | |
24022 | munge parent in the parent process. */ | |
24023 | pid_t | |
24024 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
24025 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
24026 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
24027 | use the same hardware register for all 8 local variables. */ | |
24028 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
24029 | || p != p5 || p != p6 || p != p7) | |
24030 | _exit(1); | |
24031 | ||
24032 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
24033 | from child file descriptors. If the child closes a descriptor | |
24034 | before it execs or exits, this munges the parent's descriptor | |
24035 | as well. Test for this by closing stdout in the child. */ | |
24036 | _exit(close(fileno(stdout)) != 0); | |
24037 | } else { | |
24038 | int status; | |
24039 | struct stat st; | |
24040 | ||
24041 | while (wait(&status) != child) | |
24042 | ; | |
24043 | return ( | |
24044 | /* Was there some problem with vforking? */ | |
24045 | child < 0 | |
24046 | ||
24047 | /* Did the child fail? (This shouldn't happen.) */ | |
24048 | || status | |
24049 | ||
24050 | /* Did the vfork/compiler bug occur? */ | |
24051 | || parent != getpid() | |
24052 | ||
24053 | /* Did the file descriptor bug occur? */ | |
24054 | || fstat(fileno(stdout), &st) != 0 | |
24055 | ); | |
24056 | } | |
24057 | } | |
24058 | _ACEOF | |
24059 | rm -f conftest$ac_exeext | |
24060 | if { (ac_try="$ac_link" | |
24061 | case "(($ac_try" in | |
24062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24063 | *) ac_try_echo=$ac_try;; | |
24064 | esac | |
24065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24066 | (eval "$ac_link") 2>&5 | |
24067 | ac_status=$? | |
24068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24070 | { (case "(($ac_try" in | |
24071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24072 | *) ac_try_echo=$ac_try;; | |
24073 | esac | |
24074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24075 | (eval "$ac_try") 2>&5 | |
24076 | ac_status=$? | |
24077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24078 | (exit $ac_status); }; }; then | |
24079 | ac_cv_func_vfork_works=yes | |
24080 | else | |
24081 | echo "$as_me: program exited with status $ac_status" >&5 | |
24082 | echo "$as_me: failed program was:" >&5 | |
24083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24084 | ||
24085 | ( exit $ac_status ) | |
24086 | ac_cv_func_vfork_works=no | |
24087 | fi | |
24088 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
24089 | fi | |
24090 | ||
24091 | ||
24092 | fi | |
24093 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
24094 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
24095 | ||
24096 | fi; | |
24097 | if test "x$ac_cv_func_fork_works" = xcross; then | |
24098 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
24099 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
24100 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
24101 | fi | |
24102 | ||
24103 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
24104 | ||
24105 | cat >>confdefs.h <<\_ACEOF | |
24106 | #define HAVE_WORKING_VFORK 1 | |
24107 | _ACEOF | |
24108 | ||
24109 | else | |
24110 | ||
24111 | cat >>confdefs.h <<\_ACEOF | |
24112 | #define vfork fork | |
24113 | _ACEOF | |
24114 | ||
24115 | fi | |
24116 | if test "x$ac_cv_func_fork_works" = xyes; then | |
24117 | ||
24118 | cat >>confdefs.h <<\_ACEOF | |
24119 | #define HAVE_WORKING_FORK 1 | |
24120 | _ACEOF | |
24121 | ||
24122 | fi | |
24123 | ||
24124 | ||
24125 | ||
24126 | for ac_header in stdlib.h unistd.h | |
24127 | do | |
24128 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
24132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24134 | fi | |
24135 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
24136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24137 | echo "${ECHO_T}$ac_res" >&6; } | |
24138 | else | |
24139 | # Is the header compilable? | |
24140 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
24142 | cat >conftest.$ac_ext <<_ACEOF | |
24143 | /* confdefs.h. */ | |
24144 | _ACEOF | |
24145 | cat confdefs.h >>conftest.$ac_ext | |
24146 | cat >>conftest.$ac_ext <<_ACEOF | |
24147 | /* end confdefs.h. */ | |
24148 | $ac_includes_default | |
24149 | #include <$ac_header> | |
24150 | _ACEOF | |
24151 | rm -f conftest.$ac_objext | |
24152 | if { (ac_try="$ac_compile" | |
24153 | case "(($ac_try" in | |
24154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24155 | *) ac_try_echo=$ac_try;; | |
24156 | esac | |
24157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24158 | (eval "$ac_compile") 2>conftest.er1 | |
24159 | ac_status=$? | |
24160 | grep -v '^ *+' conftest.er1 >conftest.err | |
24161 | rm -f conftest.er1 | |
24162 | cat conftest.err >&5 | |
24163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24164 | (exit $ac_status); } && { | |
24165 | test -z "$ac_c_werror_flag" || | |
24166 | test ! -s conftest.err | |
24167 | } && test -s conftest.$ac_objext; then | |
24168 | ac_header_compiler=yes | |
24169 | else | |
24170 | echo "$as_me: failed program was:" >&5 | |
24171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24172 | ||
24173 | ac_header_compiler=no | |
24174 | fi | |
24175 | ||
24176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24177 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24178 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
24179 | ||
24180 | # Is the header present? | |
24181 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24182 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
24183 | cat >conftest.$ac_ext <<_ACEOF | |
24184 | /* confdefs.h. */ | |
24185 | _ACEOF | |
24186 | cat confdefs.h >>conftest.$ac_ext | |
24187 | cat >>conftest.$ac_ext <<_ACEOF | |
24188 | /* end confdefs.h. */ | |
24189 | #include <$ac_header> | |
24190 | _ACEOF | |
24191 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24192 | case "(($ac_try" in | |
24193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24194 | *) ac_try_echo=$ac_try;; | |
24195 | esac | |
24196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24197 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24198 | ac_status=$? | |
24199 | grep -v '^ *+' conftest.er1 >conftest.err | |
24200 | rm -f conftest.er1 | |
24201 | cat conftest.err >&5 | |
24202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24203 | (exit $ac_status); } >/dev/null && { | |
24204 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24205 | test ! -s conftest.err | |
24206 | }; then | |
24207 | ac_header_preproc=yes | |
24208 | else | |
24209 | echo "$as_me: failed program was:" >&5 | |
24210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24211 | ||
24212 | ac_header_preproc=no | |
24213 | fi | |
24214 | ||
24215 | rm -f conftest.err conftest.$ac_ext | |
24216 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24217 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
24218 | ||
24219 | # So? What about this header? | |
24220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24221 | yes:no: ) | |
24222 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24223 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24225 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24226 | ac_header_preproc=yes | |
24227 | ;; | |
24228 | no:yes:* ) | |
24229 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24230 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24231 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24232 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24233 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24234 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24235 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24236 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24238 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24239 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24240 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24241 | ||
24242 | ;; | |
24243 | esac | |
24244 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
24246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24248 | else | |
24249 | eval "$as_ac_Header=\$ac_header_preproc" | |
24250 | fi | |
24251 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
24252 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24253 | echo "${ECHO_T}$ac_res" >&6; } | |
24254 | ||
24255 | fi | |
24256 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24257 | cat >>confdefs.h <<_ACEOF | |
24258 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24259 | _ACEOF | |
24260 | ||
24261 | fi | |
24262 | ||
24263 | done | |
24264 | ||
24265 | ||
24266 | for ac_func in getpagesize | |
24267 | do | |
24268 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24269 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24270 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
24271 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
24272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24273 | else | |
24274 | cat >conftest.$ac_ext <<_ACEOF | |
24275 | /* confdefs.h. */ | |
24276 | _ACEOF | |
24277 | cat confdefs.h >>conftest.$ac_ext | |
24278 | cat >>conftest.$ac_ext <<_ACEOF | |
24279 | /* end confdefs.h. */ | |
24280 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24281 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24282 | #define $ac_func innocuous_$ac_func | |
24283 | ||
24284 | /* System header to define __stub macros and hopefully few prototypes, | |
24285 | which can conflict with char $ac_func (); below. | |
24286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24287 | <limits.h> exists even on freestanding compilers. */ | |
24288 | ||
24289 | #ifdef __STDC__ | |
24290 | # include <limits.h> | |
24291 | #else | |
24292 | # include <assert.h> | |
24293 | #endif | |
24294 | ||
24295 | #undef $ac_func | |
24296 | ||
24297 | /* Override any GCC internal prototype to avoid an error. | |
24298 | Use char because int might match the return type of a GCC | |
24299 | builtin and then its argument prototype would still apply. */ | |
24300 | #ifdef __cplusplus | |
24301 | extern "C" | |
24302 | #endif | |
24303 | char $ac_func (); | |
24304 | /* The GNU C library defines this for functions which it implements | |
24305 | to always fail with ENOSYS. Some functions are actually named | |
24306 | something starting with __ and the normal name is an alias. */ | |
24307 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
24308 | choke me | |
24309 | #endif | |
24310 | ||
24311 | int | |
24312 | main () | |
24313 | { | |
24314 | return $ac_func (); | |
24315 | ; | |
24316 | return 0; | |
24317 | } | |
24318 | _ACEOF | |
24319 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24320 | if { (ac_try="$ac_link" | |
24321 | case "(($ac_try" in | |
24322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24323 | *) ac_try_echo=$ac_try;; | |
24324 | esac | |
24325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24326 | (eval "$ac_link") 2>conftest.er1 | |
24327 | ac_status=$? | |
24328 | grep -v '^ *+' conftest.er1 >conftest.err | |
24329 | rm -f conftest.er1 | |
24330 | cat conftest.err >&5 | |
24331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24332 | (exit $ac_status); } && { | |
24333 | test -z "$ac_c_werror_flag" || | |
24334 | test ! -s conftest.err | |
24335 | } && test -s conftest$ac_exeext && | |
24336 | $as_test_x conftest$ac_exeext; then | |
24337 | eval "$as_ac_var=yes" | |
24338 | else | |
24339 | echo "$as_me: failed program was:" >&5 | |
24340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24341 | ||
24342 | eval "$as_ac_var=no" | |
24343 | fi | |
24344 | ||
24345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24346 | conftest$ac_exeext conftest.$ac_ext | |
24347 | fi | |
24348 | ac_res=`eval echo '${'$as_ac_var'}'` | |
24349 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24350 | echo "${ECHO_T}$ac_res" >&6; } | |
24351 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24352 | cat >>confdefs.h <<_ACEOF | |
24353 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24354 | _ACEOF | |
24355 | ||
24356 | fi | |
24357 | done | |
24358 | ||
24359 | { echo "$as_me:$LINENO: checking for working mmap" >&5 | |
24360 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
24361 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
24362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24363 | else | |
24364 | if test "$cross_compiling" = yes; then | |
24365 | ac_cv_func_mmap_fixed_mapped=no | |
24366 | else | |
24367 | cat >conftest.$ac_ext <<_ACEOF | |
24368 | /* confdefs.h. */ | |
24369 | _ACEOF | |
24370 | cat confdefs.h >>conftest.$ac_ext | |
24371 | cat >>conftest.$ac_ext <<_ACEOF | |
24372 | /* end confdefs.h. */ | |
24373 | $ac_includes_default | |
24374 | /* malloc might have been renamed as rpl_malloc. */ | |
24375 | #undef malloc | |
24376 | ||
24377 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
24378 | Here is a matrix of mmap possibilities: | |
24379 | mmap private not fixed | |
24380 | mmap private fixed at somewhere currently unmapped | |
24381 | mmap private fixed at somewhere already mapped | |
24382 | mmap shared not fixed | |
24383 | mmap shared fixed at somewhere currently unmapped | |
24384 | mmap shared fixed at somewhere already mapped | |
24385 | For private mappings, we should verify that changes cannot be read() | |
24386 | back from the file, nor mmap's back from the file at a different | |
24387 | address. (There have been systems where private was not correctly | |
24388 | implemented like the infamous i386 svr4.0, and systems where the | |
24389 | VM page cache was not coherent with the file system buffer cache | |
24390 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
24391 | For shared mappings, we should conversely verify that changes get | |
24392 | propagated back to all the places they're supposed to be. | |
24393 | ||
24394 | Grep wants private fixed already mapped. | |
24395 | The main things grep needs to know about mmap are: | |
24396 | * does it exist and is it safe to write into the mmap'd area | |
24397 | * how to use it (BSD variants) */ | |
24398 | ||
24399 | #include <fcntl.h> | |
24400 | #include <sys/mman.h> | |
24401 | ||
24402 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
24403 | char *malloc (); | |
24404 | #endif | |
24405 | ||
24406 | /* This mess was copied from the GNU getpagesize.h. */ | |
24407 | #ifndef HAVE_GETPAGESIZE | |
24408 | /* Assume that all systems that can run configure have sys/param.h. */ | |
24409 | # ifndef HAVE_SYS_PARAM_H | |
24410 | # define HAVE_SYS_PARAM_H 1 | |
24411 | # endif | |
24412 | ||
24413 | # ifdef _SC_PAGESIZE | |
24414 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
24415 | # else /* no _SC_PAGESIZE */ | |
24416 | # ifdef HAVE_SYS_PARAM_H | |
24417 | # include <sys/param.h> | |
24418 | # ifdef EXEC_PAGESIZE | |
24419 | # define getpagesize() EXEC_PAGESIZE | |
24420 | # else /* no EXEC_PAGESIZE */ | |
24421 | # ifdef NBPG | |
24422 | # define getpagesize() NBPG * CLSIZE | |
24423 | # ifndef CLSIZE | |
24424 | # define CLSIZE 1 | |
24425 | # endif /* no CLSIZE */ | |
24426 | # else /* no NBPG */ | |
24427 | # ifdef NBPC | |
24428 | # define getpagesize() NBPC | |
24429 | # else /* no NBPC */ | |
24430 | # ifdef PAGESIZE | |
24431 | # define getpagesize() PAGESIZE | |
24432 | # endif /* PAGESIZE */ | |
24433 | # endif /* no NBPC */ | |
24434 | # endif /* no NBPG */ | |
24435 | # endif /* no EXEC_PAGESIZE */ | |
24436 | # else /* no HAVE_SYS_PARAM_H */ | |
24437 | # define getpagesize() 8192 /* punt totally */ | |
24438 | # endif /* no HAVE_SYS_PARAM_H */ | |
24439 | # endif /* no _SC_PAGESIZE */ | |
24440 | ||
24441 | #endif /* no HAVE_GETPAGESIZE */ | |
24442 | ||
24443 | int | |
24444 | main () | |
24445 | { | |
24446 | char *data, *data2, *data3; | |
24447 | int i, pagesize; | |
24448 | int fd; | |
24449 | ||
24450 | pagesize = getpagesize (); | |
24451 | ||
24452 | /* First, make a file with some known garbage in it. */ | |
24453 | data = (char *) malloc (pagesize); | |
24454 | if (!data) | |
24455 | return 1; | |
24456 | for (i = 0; i < pagesize; ++i) | |
24457 | *(data + i) = rand (); | |
24458 | umask (0); | |
24459 | fd = creat ("conftest.mmap", 0600); | |
24460 | if (fd < 0) | |
24461 | return 1; | |
24462 | if (write (fd, data, pagesize) != pagesize) | |
24463 | return 1; | |
24464 | close (fd); | |
24465 | ||
24466 | /* Next, try to mmap the file at a fixed address which already has | |
24467 | something else allocated at it. If we can, also make sure that | |
24468 | we see the same garbage. */ | |
24469 | fd = open ("conftest.mmap", O_RDWR); | |
24470 | if (fd < 0) | |
24471 | return 1; | |
24472 | data2 = (char *) malloc (2 * pagesize); | |
24473 | if (!data2) | |
24474 | return 1; | |
24475 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
24476 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
24477 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
24478 | return 1; | |
24479 | for (i = 0; i < pagesize; ++i) | |
24480 | if (*(data + i) != *(data2 + i)) | |
24481 | return 1; | |
24482 | ||
24483 | /* Finally, make sure that changes to the mapped area do not | |
24484 | percolate back to the file as seen by read(). (This is a bug on | |
24485 | some variants of i386 svr4.0.) */ | |
24486 | for (i = 0; i < pagesize; ++i) | |
24487 | *(data2 + i) = *(data2 + i) + 1; | |
24488 | data3 = (char *) malloc (pagesize); | |
24489 | if (!data3) | |
24490 | return 1; | |
24491 | if (read (fd, data3, pagesize) != pagesize) | |
24492 | return 1; | |
24493 | for (i = 0; i < pagesize; ++i) | |
24494 | if (*(data + i) != *(data3 + i)) | |
24495 | return 1; | |
24496 | close (fd); | |
24497 | return 0; | |
24498 | } | |
24499 | _ACEOF | |
24500 | rm -f conftest$ac_exeext | |
24501 | if { (ac_try="$ac_link" | |
24502 | case "(($ac_try" in | |
24503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24504 | *) ac_try_echo=$ac_try;; | |
24505 | esac | |
24506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24507 | (eval "$ac_link") 2>&5 | |
24508 | ac_status=$? | |
24509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24510 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24511 | { (case "(($ac_try" in | |
24512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24513 | *) ac_try_echo=$ac_try;; | |
24514 | esac | |
24515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24516 | (eval "$ac_try") 2>&5 | |
24517 | ac_status=$? | |
24518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24519 | (exit $ac_status); }; }; then | |
24520 | ac_cv_func_mmap_fixed_mapped=yes | |
24521 | else | |
24522 | echo "$as_me: program exited with status $ac_status" >&5 | |
24523 | echo "$as_me: failed program was:" >&5 | |
24524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24525 | ||
24526 | ( exit $ac_status ) | |
24527 | ac_cv_func_mmap_fixed_mapped=no | |
24528 | fi | |
24529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
24530 | fi | |
24531 | ||
24532 | ||
24533 | fi | |
24534 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
24535 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
24536 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
24537 | ||
24538 | cat >>confdefs.h <<\_ACEOF | |
24539 | #define HAVE_MMAP 1 | |
24540 | _ACEOF | |
24541 | ||
24542 | fi | |
24543 | rm -f conftest.mmap | |
24544 | ||
24545 | ||
24546 | { echo "$as_me:$LINENO: checking for /dev/poll" >&5 | |
24547 | echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; } | |
24548 | if test -c "/dev/poll"; then | |
24549 | { echo "$as_me:$LINENO: result: yes" >&5 | |
24550 | echo "${ECHO_T}yes" >&6; } | |
24551 | ||
24552 | cat >>confdefs.h <<\_ACEOF | |
24553 | #define HAVE_DEVPOLL 1 | |
24554 | _ACEOF | |
24555 | ||
24556 | else | |
24557 | { echo "$as_me:$LINENO: result: no" >&5 | |
24558 | echo "${ECHO_T}no" >&6; } | |
24559 | fi | |
24560 | ||
24561 | ||
24562 | if test "$is_mingw" = "yes"; then | |
24563 | ||
24564 | cat >>confdefs.h <<\_ACEOF | |
24565 | #define HAVE_WIN32 1 | |
24566 | _ACEOF | |
24567 | ||
24568 | fi | |
24569 | ||
24570 | ||
24571 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 | |
24572 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
24573 | # Check whether --enable-openssl was given. | |
24574 | if test "${enable_openssl+set}" = set; then | |
24575 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
24576 | else | |
24577 | cf_enable_openssl="auto" | |
24578 | fi | |
24579 | ||
24580 | ||
24581 | if test "$cf_enable_openssl" != "no" ; then | |
24582 | cf_openssl_basedir="" | |
24583 | if test "$cf_enable_openssl" != "auto" && | |
24584 | test "$cf_enable_openssl" != "yes" ; then | |
24585 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
24586 | else | |
24587 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
24588 | /usr/local/openssl ; do | |
24589 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
24590 | cf_openssl_basedir="${dirs}" | |
24591 | break | |
24592 | fi | |
24593 | done | |
24594 | unset dirs | |
24595 | fi | |
24596 | if test ! -z "$cf_openssl_basedir"; then | |
24597 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
c2ac22cc | 24598 | SSL_CFLAGS="-I${cf_openssl_basedir}/include" |
db137867 AC |
24599 | SSL_LIBS="-L${cf_openssl_basedir}/lib" |
24600 | else | |
24601 | cf_openssl_basedir="" | |
24602 | fi | |
24603 | else | |
24604 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
24605 | cf_openssl_basedir="/usr" | |
24606 | fi | |
24607 | fi | |
24608 | ||
24609 | if test ! -z "$cf_openssl_basedir"; then | |
24610 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 | |
24611 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
24612 | cf_enable_openssl="yes" | |
24613 | else | |
24614 | { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 | |
24615 | echo "${ECHO_T}not found. Specify a correct path?" >&6; } | |
24616 | cf_enable_openssl="no" | |
24617 | fi | |
24618 | unset cf_openssl_basedir | |
24619 | else | |
24620 | { echo "$as_me:$LINENO: result: disabled" >&5 | |
24621 | echo "${ECHO_T}disabled" >&6; } | |
24622 | fi | |
24623 | ||
24624 | save_CPPFLAGS="$CPPFLAGS" | |
c2ac22cc | 24625 | CPPFLAGS="$CPPFLAGS $SSL_CFLAGS" |
db137867 AC |
24626 | save_LIBS="$LIBS" |
24627 | LIBS="$LIBS $SSL_LIBS" | |
24628 | if test "$cf_enable_openssl" != no; then | |
24629 | { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5 | |
24630 | echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; } | |
24631 | if test "$cross_compiling" = yes; then | |
24632 | cf_enable_openssl=no | |
24633 | else | |
24634 | cat >conftest.$ac_ext <<_ACEOF | |
24635 | /* confdefs.h. */ | |
24636 | _ACEOF | |
24637 | cat confdefs.h >>conftest.$ac_ext | |
24638 | cat >>conftest.$ac_ext <<_ACEOF | |
24639 | /* end confdefs.h. */ | |
24640 | #include <openssl/opensslv.h> | |
24641 | #include <stdlib.h> | |
24642 | int | |
24643 | main () | |
24644 | { | |
24645 | if (OPENSSL_VERSION_NUMBER >= 0x00907000) | |
24646 | exit(0); else exit(1); | |
24647 | ; | |
24648 | return 0; | |
24649 | } | |
24650 | _ACEOF | |
24651 | rm -f conftest$ac_exeext | |
24652 | if { (ac_try="$ac_link" | |
24653 | case "(($ac_try" in | |
24654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24655 | *) ac_try_echo=$ac_try;; | |
24656 | esac | |
24657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24658 | (eval "$ac_link") 2>&5 | |
24659 | ac_status=$? | |
24660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24662 | { (case "(($ac_try" in | |
24663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24664 | *) ac_try_echo=$ac_try;; | |
24665 | esac | |
24666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24667 | (eval "$ac_try") 2>&5 | |
24668 | ac_status=$? | |
24669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24670 | (exit $ac_status); }; }; then | |
24671 | cf_enable_openssl=yes | |
24672 | else | |
24673 | echo "$as_me: program exited with status $ac_status" >&5 | |
24674 | echo "$as_me: failed program was:" >&5 | |
24675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24676 | ||
24677 | ( exit $ac_status ) | |
24678 | cf_enable_openssl=no | |
24679 | fi | |
24680 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
24681 | fi | |
24682 | ||
24683 | ||
24684 | ||
24685 | if test "$cf_enable_openssl" != no; then | |
24686 | { echo "$as_me:$LINENO: result: found" >&5 | |
24687 | echo "${ECHO_T}found" >&6; } | |
24688 | else | |
24689 | { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 | |
24690 | echo "${ECHO_T}no - OpenSSL support disabled" >&6; } | |
24691 | fi | |
24692 | ||
24693 | fi | |
24694 | ||
24695 | ||
24696 | if test "$cf_enable_openssl" != no; then | |
24697 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
24698 | { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5 | |
24699 | echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; } | |
24700 | if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then | |
24701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24702 | else | |
24703 | ac_check_lib_save_LIBS=$LIBS | |
24704 | LIBS="-lcrypto $LIBS" | |
24705 | cat >conftest.$ac_ext <<_ACEOF | |
24706 | /* confdefs.h. */ | |
24707 | _ACEOF | |
24708 | cat confdefs.h >>conftest.$ac_ext | |
24709 | cat >>conftest.$ac_ext <<_ACEOF | |
24710 | /* end confdefs.h. */ | |
24711 | ||
24712 | /* Override any GCC internal prototype to avoid an error. | |
24713 | Use char because int might match the return type of a GCC | |
24714 | builtin and then its argument prototype would still apply. */ | |
24715 | #ifdef __cplusplus | |
24716 | extern "C" | |
24717 | #endif | |
24718 | char RAND_status (); | |
24719 | int | |
24720 | main () | |
24721 | { | |
24722 | return RAND_status (); | |
24723 | ; | |
24724 | return 0; | |
24725 | } | |
24726 | _ACEOF | |
24727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24728 | if { (ac_try="$ac_link" | |
24729 | case "(($ac_try" in | |
24730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24731 | *) ac_try_echo=$ac_try;; | |
24732 | esac | |
24733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24734 | (eval "$ac_link") 2>conftest.er1 | |
24735 | ac_status=$? | |
24736 | grep -v '^ *+' conftest.er1 >conftest.err | |
24737 | rm -f conftest.er1 | |
24738 | cat conftest.err >&5 | |
24739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24740 | (exit $ac_status); } && { | |
24741 | test -z "$ac_c_werror_flag" || | |
24742 | test ! -s conftest.err | |
24743 | } && test -s conftest$ac_exeext && | |
24744 | $as_test_x conftest$ac_exeext; then | |
24745 | ac_cv_lib_crypto_RAND_status=yes | |
24746 | else | |
24747 | echo "$as_me: failed program was:" >&5 | |
24748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24749 | ||
24750 | ac_cv_lib_crypto_RAND_status=no | |
24751 | fi | |
24752 | ||
24753 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24754 | conftest$ac_exeext conftest.$ac_ext | |
24755 | LIBS=$ac_check_lib_save_LIBS | |
24756 | fi | |
24757 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5 | |
24758 | echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; } | |
24759 | if test $ac_cv_lib_crypto_RAND_status = yes; then | |
24760 | cf_enable_openssl=yes | |
24761 | else | |
24762 | cf_enable_openssl=no | |
24763 | fi | |
24764 | ||
24765 | fi | |
24766 | ||
db137867 AC |
24767 | if test "$cf_enable_openssl" != no; then |
24768 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
24769 | { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5 | |
24770 | echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; } | |
24771 | if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then | |
24772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24773 | else | |
24774 | ac_check_lib_save_LIBS=$LIBS | |
24775 | LIBS="-lssl -lcrypto $LIBS" | |
24776 | cat >conftest.$ac_ext <<_ACEOF | |
24777 | /* confdefs.h. */ | |
24778 | _ACEOF | |
24779 | cat confdefs.h >>conftest.$ac_ext | |
24780 | cat >>conftest.$ac_ext <<_ACEOF | |
24781 | /* end confdefs.h. */ | |
24782 | ||
24783 | /* Override any GCC internal prototype to avoid an error. | |
24784 | Use char because int might match the return type of a GCC | |
24785 | builtin and then its argument prototype would still apply. */ | |
24786 | #ifdef __cplusplus | |
24787 | extern "C" | |
24788 | #endif | |
24789 | char SSL_read (); | |
24790 | int | |
24791 | main () | |
24792 | { | |
24793 | return SSL_read (); | |
24794 | ; | |
24795 | return 0; | |
24796 | } | |
24797 | _ACEOF | |
24798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24799 | if { (ac_try="$ac_link" | |
24800 | case "(($ac_try" in | |
24801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24802 | *) ac_try_echo=$ac_try;; | |
24803 | esac | |
24804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24805 | (eval "$ac_link") 2>conftest.er1 | |
24806 | ac_status=$? | |
24807 | grep -v '^ *+' conftest.er1 >conftest.err | |
24808 | rm -f conftest.er1 | |
24809 | cat conftest.err >&5 | |
24810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24811 | (exit $ac_status); } && { | |
24812 | test -z "$ac_c_werror_flag" || | |
24813 | test ! -s conftest.err | |
24814 | } && test -s conftest$ac_exeext && | |
24815 | $as_test_x conftest$ac_exeext; then | |
24816 | ac_cv_lib_ssl_SSL_read=yes | |
24817 | else | |
24818 | echo "$as_me: failed program was:" >&5 | |
24819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24820 | ||
24821 | ac_cv_lib_ssl_SSL_read=no | |
24822 | fi | |
24823 | ||
24824 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24825 | conftest$ac_exeext conftest.$ac_ext | |
24826 | LIBS=$ac_check_lib_save_LIBS | |
24827 | fi | |
24828 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5 | |
24829 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; } | |
24830 | if test $ac_cv_lib_ssl_SSL_read = yes; then | |
3202e249 | 24831 | SSL_LIBS="$SSL_LIBS -lssl -lcrypto" |
db137867 AC |
24832 | else |
24833 | cf_enable_openssl=no | |
24834 | fi | |
24835 | ||
24836 | fi | |
24837 | ||
c2ac22cc VY |
24838 | |
24839 | ||
24840 | { echo "$as_me:$LINENO: checking for GnuTLS" >&5 | |
24841 | echo $ECHO_N "checking for GnuTLS... $ECHO_C" >&6; } | |
24842 | # Check whether --enable-gnutls was given. | |
24843 | if test "${enable_gnutls+set}" = set; then | |
24844 | enableval=$enable_gnutls; cf_enable_gnutls=$enableval | |
24845 | else | |
24846 | cf_enable_gnutls="auto" | |
24847 | fi | |
24848 | ||
24849 | ||
24850 | if test "$cf_enable_gnutls" != no; then | |
24851 | ||
24852 | ||
24853 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
24854 | if test -n "$ac_tool_prefix"; then | |
24855 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
24856 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
24857 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
24859 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24861 | else | |
24862 | case $PKG_CONFIG in | |
24863 | [\\/]* | ?:[\\/]*) | |
24864 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
24865 | ;; | |
24866 | *) | |
24867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24868 | for as_dir in $PATH | |
24869 | do | |
24870 | IFS=$as_save_IFS | |
24871 | test -z "$as_dir" && as_dir=. | |
24872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
24874 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24876 | break 2 | |
24877 | fi | |
24878 | done | |
24879 | done | |
24880 | IFS=$as_save_IFS | |
24881 | ||
24882 | ;; | |
24883 | esac | |
24884 | fi | |
24885 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
24886 | if test -n "$PKG_CONFIG"; then | |
24887 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
24888 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
24889 | else | |
24890 | { echo "$as_me:$LINENO: result: no" >&5 | |
24891 | echo "${ECHO_T}no" >&6; } | |
24892 | fi | |
24893 | ||
24894 | ||
24895 | fi | |
24896 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
24897 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
24898 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24899 | set dummy pkg-config; ac_word=$2 | |
24900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
24902 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
24903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24904 | else | |
24905 | case $ac_pt_PKG_CONFIG in | |
24906 | [\\/]* | ?:[\\/]*) | |
24907 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
24908 | ;; | |
24909 | *) | |
24910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24911 | for as_dir in $PATH | |
24912 | do | |
24913 | IFS=$as_save_IFS | |
24914 | test -z "$as_dir" && as_dir=. | |
24915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
24917 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24919 | break 2 | |
24920 | fi | |
24921 | done | |
24922 | done | |
24923 | IFS=$as_save_IFS | |
24924 | ||
24925 | ;; | |
24926 | esac | |
24927 | fi | |
24928 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
24929 | if test -n "$ac_pt_PKG_CONFIG"; then | |
24930 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
24931 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | |
24932 | else | |
24933 | { echo "$as_me:$LINENO: result: no" >&5 | |
24934 | echo "${ECHO_T}no" >&6; } | |
24935 | fi | |
24936 | ||
24937 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
24938 | PKG_CONFIG="" | |
24939 | else | |
24940 | case $cross_compiling:$ac_tool_warned in | |
24941 | yes:) | |
24942 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
24943 | whose name does not start with the host triplet. If you think this | |
24944 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
24945 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
24946 | whose name does not start with the host triplet. If you think this | |
24947 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
24948 | ac_tool_warned=yes ;; | |
24949 | esac | |
24950 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
24951 | fi | |
24952 | else | |
24953 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
24954 | fi | |
24955 | ||
24956 | fi | |
24957 | if test -n "$PKG_CONFIG"; then | |
24958 | _pkg_min_version=0.9.0 | |
24959 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
24960 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | |
24961 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
24962 | { echo "$as_me:$LINENO: result: yes" >&5 | |
24963 | echo "${ECHO_T}yes" >&6; } | |
24964 | else | |
24965 | { echo "$as_me:$LINENO: result: no" >&5 | |
24966 | echo "${ECHO_T}no" >&6; } | |
24967 | PKG_CONFIG="" | |
24968 | fi | |
24969 | ||
24970 | fi | |
24971 | ||
24972 | pkg_failed=no | |
24973 | { echo "$as_me:$LINENO: checking for GNUTLS" >&5 | |
24974 | echo $ECHO_N "checking for GNUTLS... $ECHO_C" >&6; } | |
24975 | ||
24976 | if test -n "$PKG_CONFIG"; then | |
24977 | if test -n "$GNUTLS_CFLAGS"; then | |
24978 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" | |
24979 | else | |
24980 | if test -n "$PKG_CONFIG" && \ | |
24981 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5 | |
24982 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
24983 | ac_status=$? | |
24984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24985 | (exit $ac_status); }; then | |
24986 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` | |
24987 | else | |
24988 | pkg_failed=yes | |
24989 | fi | |
24990 | fi | |
24991 | else | |
24992 | pkg_failed=untried | |
24993 | fi | |
24994 | if test -n "$PKG_CONFIG"; then | |
24995 | if test -n "$GNUTLS_LIBS"; then | |
24996 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" | |
24997 | else | |
24998 | if test -n "$PKG_CONFIG" && \ | |
24999 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5 | |
25000 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
25001 | ac_status=$? | |
25002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25003 | (exit $ac_status); }; then | |
25004 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` | |
25005 | else | |
25006 | pkg_failed=yes | |
25007 | fi | |
25008 | fi | |
25009 | else | |
25010 | pkg_failed=untried | |
25011 | fi | |
25012 | ||
25013 | ||
25014 | ||
25015 | if test $pkg_failed = yes; then | |
25016 | ||
25017 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25018 | _pkg_short_errors_supported=yes | |
25019 | else | |
25020 | _pkg_short_errors_supported=no | |
25021 | fi | |
25022 | if test $_pkg_short_errors_supported = yes; then | |
25023 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"` | |
25024 | else | |
25025 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"` | |
25026 | fi | |
25027 | # Put the nasty error message in config.log where it belongs | |
25028 | echo "$GNUTLS_PKG_ERRORS" >&5 | |
25029 | ||
25030 | { echo "$as_me:$LINENO: result: no" >&5 | |
25031 | echo "${ECHO_T}no" >&6; } | |
25032 | cf_enable_gnutls="no" | |
25033 | elif test $pkg_failed = untried; then | |
25034 | cf_enable_gnutls="no" | |
25035 | else | |
25036 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS | |
25037 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS | |
25038 | { echo "$as_me:$LINENO: result: yes" >&5 | |
25039 | echo "${ECHO_T}yes" >&6; } | |
25040 | ||
25041 | cf_enable_gnutls="yes" | |
25042 | ||
25043 | fi | |
25044 | fi | |
25045 | ||
25046 | if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then | |
25047 | cf_enable_gnutls="no" | |
25048 | fi | |
25049 | ||
25050 | if test x"$cf_enable_openssl" != xno; then | |
db137867 AC |
25051 | |
25052 | cat >>confdefs.h <<\_ACEOF | |
25053 | #define HAVE_OPENSSL 1 | |
25054 | _ACEOF | |
25055 | ||
c2ac22cc VY |
25056 | GNUTLS_CFLAGS="" |
25057 | GNUTLS_LIBS="" | |
25058 | SSL_TYPE="openssl" | |
25059 | elif test x"$cf_enable_gnutls" != xno; then | |
25060 | ||
25061 | cat >>confdefs.h <<\_ACEOF | |
25062 | #define HAVE_GNUTLS 1 | |
25063 | _ACEOF | |
25064 | ||
25065 | SSL_LIBS="" | |
25066 | SSL_CFLAGS="" | |
25067 | SSL_TYPE="gnutls" | |
db137867 AC |
25068 | fi |
25069 | ||
25070 | ||
c2ac22cc VY |
25071 | |
25072 | ||
db137867 AC |
25073 | CPPFLAGS="$save_CPPFLAGS" |
25074 | LIBS="$save_LIBS" | |
25075 | ||
25076 | ||
25077 | ||
25078 | ||
25079 | ||
25080 | ||
25081 | # Check whether --enable-assert was given. | |
25082 | if test "${enable_assert+set}" = set; then | |
25083 | enableval=$enable_assert; assert=$enableval | |
25084 | else | |
25085 | assert=no | |
25086 | fi | |
25087 | ||
25088 | ||
25089 | if test "$assert" = no; then | |
25090 | ||
25091 | cat >>confdefs.h <<\_ACEOF | |
25092 | #define NDEBUG 1 | |
25093 | _ACEOF | |
25094 | ||
25095 | elif test "$assert" = soft; then | |
25096 | ||
25097 | cat >>confdefs.h <<\_ACEOF | |
25098 | #define SOFT_ASSERT 1 | |
25099 | _ACEOF | |
25100 | ||
25101 | ||
25102 | cat >>confdefs.h <<\_ACEOF | |
25103 | #define NDEBUG 1 | |
25104 | _ACEOF | |
25105 | ||
25106 | elif test "$assert" = yes; then | |
25107 | assert = "hard"; | |
25108 | fi | |
25109 | ||
25110 | { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 | |
25111 | echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } | |
25112 | # Check whether --enable-profile was given. | |
25113 | if test "${enable_profile+set}" = set; then | |
25114 | enableval=$enable_profile; profile=$enableval | |
25115 | else | |
25116 | profile=no | |
25117 | fi | |
25118 | ||
25119 | ||
25120 | if test "$profile" = yes; then | |
25121 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
25122 | CFLAGS="$CFLAGS -pg -static" | |
25123 | { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5 | |
25124 | echo "${ECHO_T}yes, adding -pg -static" >&6; } | |
25125 | ||
25126 | cat >>confdefs.h <<\_ACEOF | |
25127 | #define RATBOX_PROFILE 1 | |
25128 | _ACEOF | |
25129 | ||
25130 | else | |
25131 | { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 | |
25132 | echo "${ECHO_T}no, profile builds only work with gcc" >&6; } | |
25133 | fi | |
25134 | else | |
25135 | { echo "$as_me:$LINENO: result: no" >&5 | |
25136 | echo "${ECHO_T}no" >&6; } | |
25137 | fi | |
25138 | ||
25139 | # Check whether --enable-balloc was given. | |
25140 | if test "${enable_balloc+set}" = set; then | |
25141 | enableval=$enable_balloc; balloc=$enableval | |
25142 | else | |
25143 | balloc=yes | |
25144 | fi | |
25145 | ||
25146 | ||
25147 | if test "$balloc" = no; then | |
25148 | ||
25149 | cat >>confdefs.h <<\_ACEOF | |
25150 | #define NOBALLOC 1 | |
25151 | _ACEOF | |
25152 | ||
25153 | fi | |
25154 | ||
25155 | # Check whether --enable-warnings was given. | |
25156 | if test "${enable_warnings+set}" = set; then | |
25157 | enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable" | |
25158 | fi | |
25159 | ||
25160 | ||
25161 | ||
25162 | ||
25163 | ||
25164 | ||
25165 | ||
25166 | ||
25167 | ||
25168 | ||
c2ac22cc | 25169 | |
db137867 AC |
25170 | if test "$prefix" = "NONE"; then |
25171 | ||
25172 | cat >>confdefs.h <<_ACEOF | |
25173 | #define RB_PREFIX "$ac_default_prefix" | |
25174 | _ACEOF | |
25175 | ||
25176 | ||
25177 | else | |
25178 | ||
25179 | ||
25180 | prefix=`echo $prefix | sed 's/\/$//'` | |
25181 | ||
25182 | cat >>confdefs.h <<_ACEOF | |
25183 | #define RB_PREFIX "$prefix" | |
25184 | _ACEOF | |
25185 | ||
25186 | ||
25187 | fi | |
25188 | ||
25189 | ||
25190 | ||
db137867 AC |
25191 | ac_config_commands="$ac_config_commands include/librb-config.h" |
25192 | ||
25193 | ||
c2ac22cc | 25194 | |
b69b8b08 | 25195 | ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc" |
db137867 AC |
25196 | |
25197 | ||
25198 | cat >confcache <<\_ACEOF | |
25199 | # This file is a shell script that caches the results of configure | |
25200 | # tests run on this system so they can be shared between configure | |
25201 | # scripts and configure runs, see configure's option --config-cache. | |
25202 | # It is not useful on other systems. If it contains results you don't | |
25203 | # want to keep, you may remove or edit it. | |
25204 | # | |
25205 | # config.status only pays attention to the cache file if you give it | |
25206 | # the --recheck option to rerun configure. | |
25207 | # | |
25208 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
25209 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25210 | # following values. | |
25211 | ||
25212 | _ACEOF | |
25213 | ||
25214 | # The following way of writing the cache mishandles newlines in values, | |
25215 | # but we know of no workaround that is simple, portable, and efficient. | |
25216 | # So, we kill variables containing newlines. | |
25217 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
25218 | # and sets the high bit in the cache file unless we assign to the vars. | |
25219 | ( | |
25220 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
25221 | eval ac_val=\$$ac_var | |
25222 | case $ac_val in #( | |
25223 | *${as_nl}*) | |
25224 | case $ac_var in #( | |
25225 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
25226 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
25227 | esac | |
25228 | case $ac_var in #( | |
25229 | _ | IFS | as_nl) ;; #( | |
25230 | *) $as_unset $ac_var ;; | |
25231 | esac ;; | |
25232 | esac | |
25233 | done | |
25234 | ||
25235 | (set) 2>&1 | | |
25236 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
25237 | *${as_nl}ac_space=\ *) | |
25238 | # `set' does not quote correctly, so add quotes (double-quote | |
25239 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25240 | sed -n \ | |
25241 | "s/'/'\\\\''/g; | |
25242 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
25243 | ;; #( | |
25244 | *) | |
25245 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
25246 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
25247 | ;; | |
25248 | esac | | |
25249 | sort | |
25250 | ) | | |
25251 | sed ' | |
25252 | /^ac_cv_env_/b end | |
25253 | t clear | |
25254 | :clear | |
25255 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
25256 | t end | |
25257 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
25258 | :end' >>confcache | |
25259 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
25260 | if test -w "$cache_file"; then | |
25261 | test "x$cache_file" != "x/dev/null" && | |
25262 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
25263 | echo "$as_me: updating cache $cache_file" >&6;} | |
25264 | cat confcache >$cache_file | |
25265 | else | |
25266 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
25267 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
25268 | fi | |
25269 | fi | |
25270 | rm -f confcache | |
25271 | ||
25272 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
25273 | # Let make expand exec_prefix. | |
25274 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
25275 | ||
25276 | DEFS=-DHAVE_CONFIG_H | |
25277 | ||
25278 | ac_libobjs= | |
25279 | ac_ltlibobjs= | |
25280 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
25281 | # 1. Remove the extension, and $U if already installed. | |
25282 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
25283 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
25284 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
25285 | # will be set to the directory where LIBOBJS objects are built. | |
25286 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
25287 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
25288 | done | |
25289 | LIBOBJS=$ac_libobjs | |
25290 | ||
25291 | LTLIBOBJS=$ac_ltlibobjs | |
25292 | ||
25293 | ||
25294 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
25295 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
25296 | Usually this means the macro was only invoked conditionally." >&5 | |
25297 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
25298 | Usually this means the macro was only invoked conditionally." >&2;} | |
25299 | { (exit 1); exit 1; }; } | |
25300 | fi | |
25301 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
25302 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
25303 | Usually this means the macro was only invoked conditionally." >&5 | |
25304 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
25305 | Usually this means the macro was only invoked conditionally." >&2;} | |
25306 | { (exit 1); exit 1; }; } | |
25307 | fi | |
25308 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
25309 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25310 | Usually this means the macro was only invoked conditionally." >&5 | |
25311 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25312 | Usually this means the macro was only invoked conditionally." >&2;} | |
25313 | { (exit 1); exit 1; }; } | |
25314 | fi | |
25315 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
25316 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
25317 | Usually this means the macro was only invoked conditionally." >&5 | |
25318 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
25319 | Usually this means the macro was only invoked conditionally." >&2;} | |
25320 | { (exit 1); exit 1; }; } | |
25321 | fi | |
25322 | if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then | |
25323 | { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined. | |
25324 | Usually this means the macro was only invoked conditionally." >&5 | |
25325 | echo "$as_me: error: conditional \"MINGW\" was never defined. | |
25326 | Usually this means the macro was only invoked conditionally." >&2;} | |
25327 | { (exit 1); exit 1; }; } | |
25328 | fi | |
25329 | if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then | |
25330 | { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined. | |
25331 | Usually this means the macro was only invoked conditionally." >&5 | |
25332 | echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined. | |
25333 | Usually this means the macro was only invoked conditionally." >&2;} | |
25334 | { (exit 1); exit 1; }; } | |
25335 | fi | |
25336 | ||
25337 | : ${CONFIG_STATUS=./config.status} | |
25338 | ac_clean_files_save=$ac_clean_files | |
25339 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
25340 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
25341 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
25342 | cat >$CONFIG_STATUS <<_ACEOF | |
25343 | #! $SHELL | |
25344 | # Generated by $as_me. | |
25345 | # Run this file to recreate the current configuration. | |
25346 | # Compiler output produced by configure, useful for debugging | |
25347 | # configure, is in config.log if it exists. | |
25348 | ||
25349 | debug=false | |
25350 | ac_cs_recheck=false | |
25351 | ac_cs_silent=false | |
25352 | SHELL=\${CONFIG_SHELL-$SHELL} | |
25353 | _ACEOF | |
25354 | ||
25355 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25356 | ## --------------------- ## | |
25357 | ## M4sh Initialization. ## | |
25358 | ## --------------------- ## | |
25359 | ||
25360 | # Be more Bourne compatible | |
25361 | DUALCASE=1; export DUALCASE # for MKS sh | |
25362 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25363 | emulate sh | |
25364 | NULLCMD=: | |
25365 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
25366 | # is contrary to our usage. Disable this feature. | |
25367 | alias -g '${1+"$@"}'='"$@"' | |
25368 | setopt NO_GLOB_SUBST | |
25369 | else | |
25370 | case `(set -o) 2>/dev/null` in | |
25371 | *posix*) set -o posix ;; | |
25372 | esac | |
25373 | ||
25374 | fi | |
25375 | ||
25376 | ||
25377 | ||
25378 | ||
25379 | # PATH needs CR | |
25380 | # Avoid depending upon Character Ranges. | |
25381 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
25382 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
25383 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
25384 | as_cr_digits='0123456789' | |
25385 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
25386 | ||
25387 | # The user is always right. | |
25388 | if test "${PATH_SEPARATOR+set}" != set; then | |
25389 | echo "#! /bin/sh" >conf$$.sh | |
25390 | echo "exit 0" >>conf$$.sh | |
25391 | chmod +x conf$$.sh | |
25392 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
25393 | PATH_SEPARATOR=';' | |
25394 | else | |
25395 | PATH_SEPARATOR=: | |
25396 | fi | |
25397 | rm -f conf$$.sh | |
25398 | fi | |
25399 | ||
25400 | # Support unset when possible. | |
25401 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
25402 | as_unset=unset | |
25403 | else | |
25404 | as_unset=false | |
25405 | fi | |
25406 | ||
25407 | ||
25408 | # IFS | |
25409 | # We need space, tab and new line, in precisely that order. Quoting is | |
25410 | # there to prevent editors from complaining about space-tab. | |
25411 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
25412 | # splitting by setting IFS to empty value.) | |
25413 | as_nl=' | |
25414 | ' | |
25415 | IFS=" "" $as_nl" | |
25416 | ||
25417 | # Find who we are. Look in the path if we contain no directory separator. | |
25418 | case $0 in | |
25419 | *[\\/]* ) as_myself=$0 ;; | |
25420 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25421 | for as_dir in $PATH | |
25422 | do | |
25423 | IFS=$as_save_IFS | |
25424 | test -z "$as_dir" && as_dir=. | |
25425 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
25426 | done | |
25427 | IFS=$as_save_IFS | |
25428 | ||
25429 | ;; | |
25430 | esac | |
25431 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
25432 | # in which case we are not to be found in the path. | |
25433 | if test "x$as_myself" = x; then | |
25434 | as_myself=$0 | |
25435 | fi | |
25436 | if test ! -f "$as_myself"; then | |
25437 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
25438 | { (exit 1); exit 1; } | |
25439 | fi | |
25440 | ||
25441 | # Work around bugs in pre-3.0 UWIN ksh. | |
25442 | for as_var in ENV MAIL MAILPATH | |
25443 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
25444 | done | |
25445 | PS1='$ ' | |
25446 | PS2='> ' | |
25447 | PS4='+ ' | |
25448 | ||
25449 | # NLS nuisances. | |
25450 | for as_var in \ | |
25451 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
25452 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
25453 | LC_TELEPHONE LC_TIME | |
25454 | do | |
25455 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
25456 | eval $as_var=C; export $as_var | |
25457 | else | |
25458 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
25459 | fi | |
25460 | done | |
25461 | ||
25462 | # Required to use basename. | |
25463 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
25464 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25465 | as_expr=expr | |
25466 | else | |
25467 | as_expr=false | |
25468 | fi | |
25469 | ||
25470 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
25471 | as_basename=basename | |
25472 | else | |
25473 | as_basename=false | |
25474 | fi | |
25475 | ||
25476 | ||
25477 | # Name of the executable. | |
25478 | as_me=`$as_basename -- "$0" || | |
25479 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
25480 | X"$0" : 'X\(//\)$' \| \ | |
25481 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
25482 | echo X/"$0" | | |
25483 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
25484 | s//\1/ | |
25485 | q | |
25486 | } | |
25487 | /^X\/\(\/\/\)$/{ | |
25488 | s//\1/ | |
25489 | q | |
25490 | } | |
25491 | /^X\/\(\/\).*/{ | |
25492 | s//\1/ | |
25493 | q | |
25494 | } | |
25495 | s/.*/./; q'` | |
25496 | ||
25497 | # CDPATH. | |
25498 | $as_unset CDPATH | |
25499 | ||
25500 | ||
25501 | ||
25502 | as_lineno_1=$LINENO | |
25503 | as_lineno_2=$LINENO | |
25504 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
25505 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
25506 | ||
25507 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
25508 | # uniformly replaced by the line number. The first 'sed' inserts a | |
25509 | # line-number line after each line using $LINENO; the second 'sed' | |
25510 | # does the real work. The second script uses 'N' to pair each | |
25511 | # line-number line with the line containing $LINENO, and appends | |
25512 | # trailing '-' during substitution so that $LINENO is not a special | |
25513 | # case at line end. | |
25514 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
25515 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
25516 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
25517 | sed -n ' | |
25518 | p | |
25519 | /[$]LINENO/= | |
25520 | ' <$as_myself | | |
25521 | sed ' | |
25522 | s/[$]LINENO.*/&-/ | |
25523 | t lineno | |
25524 | b | |
25525 | :lineno | |
25526 | N | |
25527 | :loop | |
25528 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
25529 | t loop | |
25530 | s/-\n.*// | |
25531 | ' >$as_me.lineno && | |
25532 | chmod +x "$as_me.lineno" || | |
25533 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
25534 | { (exit 1); exit 1; }; } | |
25535 | ||
25536 | # Don't try to exec as it changes $[0], causing all sort of problems | |
25537 | # (the dirname of $[0] is not the place where we might find the | |
25538 | # original and so on. Autoconf is especially sensitive to this). | |
25539 | . "./$as_me.lineno" | |
25540 | # Exit status is that of the last command. | |
25541 | exit | |
25542 | } | |
25543 | ||
25544 | ||
25545 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
25546 | as_dirname=dirname | |
25547 | else | |
25548 | as_dirname=false | |
25549 | fi | |
25550 | ||
25551 | ECHO_C= ECHO_N= ECHO_T= | |
25552 | case `echo -n x` in | |
25553 | -n*) | |
25554 | case `echo 'x\c'` in | |
25555 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
25556 | *) ECHO_C='\c';; | |
25557 | esac;; | |
25558 | *) | |
25559 | ECHO_N='-n';; | |
25560 | esac | |
25561 | ||
25562 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
25563 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25564 | as_expr=expr | |
25565 | else | |
25566 | as_expr=false | |
25567 | fi | |
25568 | ||
25569 | rm -f conf$$ conf$$.exe conf$$.file | |
25570 | if test -d conf$$.dir; then | |
25571 | rm -f conf$$.dir/conf$$.file | |
25572 | else | |
25573 | rm -f conf$$.dir | |
25574 | mkdir conf$$.dir | |
25575 | fi | |
25576 | echo >conf$$.file | |
25577 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
25578 | as_ln_s='ln -s' | |
25579 | # ... but there are two gotchas: | |
25580 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
25581 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
25582 | # In both cases, we have to default to `cp -p'. | |
25583 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
25584 | as_ln_s='cp -p' | |
25585 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
25586 | as_ln_s=ln | |
25587 | else | |
25588 | as_ln_s='cp -p' | |
25589 | fi | |
25590 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
25591 | rmdir conf$$.dir 2>/dev/null | |
25592 | ||
25593 | if mkdir -p . 2>/dev/null; then | |
25594 | as_mkdir_p=: | |
25595 | else | |
25596 | test -d ./-p && rmdir ./-p | |
25597 | as_mkdir_p=false | |
25598 | fi | |
25599 | ||
25600 | if test -x / >/dev/null 2>&1; then | |
25601 | as_test_x='test -x' | |
25602 | else | |
25603 | if ls -dL / >/dev/null 2>&1; then | |
25604 | as_ls_L_option=L | |
25605 | else | |
25606 | as_ls_L_option= | |
25607 | fi | |
25608 | as_test_x=' | |
25609 | eval sh -c '\'' | |
25610 | if test -d "$1"; then | |
25611 | test -d "$1/."; | |
25612 | else | |
25613 | case $1 in | |
25614 | -*)set "./$1";; | |
25615 | esac; | |
25616 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
25617 | ???[sx]*):;;*)false;;esac;fi | |
25618 | '\'' sh | |
25619 | ' | |
25620 | fi | |
25621 | as_executable_p=$as_test_x | |
25622 | ||
25623 | # Sed expression to map a string onto a valid CPP name. | |
25624 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
25625 | ||
25626 | # Sed expression to map a string onto a valid variable name. | |
25627 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
25628 | ||
25629 | ||
25630 | exec 6>&1 | |
25631 | ||
25632 | # Save the log message, to keep $[0] and so on meaningful, and to | |
25633 | # report actual input values of CONFIG_FILES etc. instead of their | |
25634 | # values after options handling. | |
25635 | ac_log=" | |
25636 | This file was extended by libratbox $as_me devel, which was | |
25637 | generated by GNU Autoconf 2.61. Invocation command line was | |
25638 | ||
25639 | CONFIG_FILES = $CONFIG_FILES | |
25640 | CONFIG_HEADERS = $CONFIG_HEADERS | |
25641 | CONFIG_LINKS = $CONFIG_LINKS | |
25642 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
25643 | $ $0 $@ | |
25644 | ||
25645 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
25646 | " | |
25647 | ||
25648 | _ACEOF | |
25649 | ||
25650 | cat >>$CONFIG_STATUS <<_ACEOF | |
25651 | # Files that config.status was made for. | |
25652 | config_files="$ac_config_files" | |
25653 | config_headers="$ac_config_headers" | |
25654 | config_commands="$ac_config_commands" | |
25655 | ||
25656 | _ACEOF | |
25657 | ||
25658 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25659 | ac_cs_usage="\ | |
25660 | \`$as_me' instantiates files from templates according to the | |
25661 | current configuration. | |
25662 | ||
25663 | Usage: $0 [OPTIONS] [FILE]... | |
25664 | ||
25665 | -h, --help print this help, then exit | |
25666 | -V, --version print version number and configuration settings, then exit | |
25667 | -q, --quiet do not print progress messages | |
25668 | -d, --debug don't remove temporary files | |
25669 | --recheck update $as_me by reconfiguring in the same conditions | |
25670 | --file=FILE[:TEMPLATE] | |
25671 | instantiate the configuration file FILE | |
25672 | --header=FILE[:TEMPLATE] | |
25673 | instantiate the configuration header FILE | |
25674 | ||
25675 | Configuration files: | |
25676 | $config_files | |
25677 | ||
25678 | Configuration headers: | |
25679 | $config_headers | |
25680 | ||
25681 | Configuration commands: | |
25682 | $config_commands | |
25683 | ||
25684 | Report bugs to <bug-autoconf@gnu.org>." | |
25685 | ||
25686 | _ACEOF | |
25687 | cat >>$CONFIG_STATUS <<_ACEOF | |
25688 | ac_cs_version="\\ | |
25689 | libratbox config.status devel | |
25690 | configured by $0, generated by GNU Autoconf 2.61, | |
25691 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
25692 | ||
25693 | Copyright (C) 2006 Free Software Foundation, Inc. | |
25694 | This config.status script is free software; the Free Software Foundation | |
25695 | gives unlimited permission to copy, distribute and modify it." | |
25696 | ||
25697 | ac_pwd='$ac_pwd' | |
25698 | srcdir='$srcdir' | |
25699 | INSTALL='$INSTALL' | |
25700 | MKDIR_P='$MKDIR_P' | |
25701 | _ACEOF | |
25702 | ||
25703 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25704 | # If no file are specified by the user, then we need to provide default | |
25705 | # value. By we need to know if files were specified by the user. | |
25706 | ac_need_defaults=: | |
25707 | while test $# != 0 | |
25708 | do | |
25709 | case $1 in | |
25710 | --*=*) | |
25711 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
25712 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
25713 | ac_shift=: | |
25714 | ;; | |
25715 | *) | |
25716 | ac_option=$1 | |
25717 | ac_optarg=$2 | |
25718 | ac_shift=shift | |
25719 | ;; | |
25720 | esac | |
25721 | ||
25722 | case $ac_option in | |
25723 | # Handling of the options. | |
25724 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
25725 | ac_cs_recheck=: ;; | |
25726 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
25727 | echo "$ac_cs_version"; exit ;; | |
25728 | --debug | --debu | --deb | --de | --d | -d ) | |
25729 | debug=: ;; | |
25730 | --file | --fil | --fi | --f ) | |
25731 | $ac_shift | |
25732 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
25733 | ac_need_defaults=false;; | |
25734 | --header | --heade | --head | --hea ) | |
25735 | $ac_shift | |
25736 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
25737 | ac_need_defaults=false;; | |
25738 | --he | --h) | |
25739 | # Conflict between --help and --header | |
25740 | { echo "$as_me: error: ambiguous option: $1 | |
25741 | Try \`$0 --help' for more information." >&2 | |
25742 | { (exit 1); exit 1; }; };; | |
25743 | --help | --hel | -h ) | |
25744 | echo "$ac_cs_usage"; exit ;; | |
25745 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
25746 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
25747 | ac_cs_silent=: ;; | |
25748 | ||
25749 | # This is an error. | |
25750 | -*) { echo "$as_me: error: unrecognized option: $1 | |
25751 | Try \`$0 --help' for more information." >&2 | |
25752 | { (exit 1); exit 1; }; } ;; | |
25753 | ||
25754 | *) ac_config_targets="$ac_config_targets $1" | |
25755 | ac_need_defaults=false ;; | |
25756 | ||
25757 | esac | |
25758 | shift | |
25759 | done | |
25760 | ||
25761 | ac_configure_extra_args= | |
25762 | ||
25763 | if $ac_cs_silent; then | |
25764 | exec 6>/dev/null | |
25765 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
25766 | fi | |
25767 | ||
25768 | _ACEOF | |
25769 | cat >>$CONFIG_STATUS <<_ACEOF | |
25770 | if \$ac_cs_recheck; then | |
25771 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
25772 | CONFIG_SHELL=$SHELL | |
25773 | export CONFIG_SHELL | |
25774 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
25775 | fi | |
25776 | ||
25777 | _ACEOF | |
25778 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25779 | exec 5>>config.log | |
25780 | { | |
25781 | echo | |
25782 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
25783 | ## Running $as_me. ## | |
25784 | _ASBOX | |
25785 | echo "$ac_log" | |
25786 | } >&5 | |
25787 | ||
25788 | _ACEOF | |
25789 | cat >>$CONFIG_STATUS <<_ACEOF | |
25790 | # | |
25791 | # INIT-COMMANDS | |
25792 | # | |
25793 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
25794 | ||
db137867 AC |
25795 | if test x$ac_cv_header_stdc = xyes; then |
25796 | rb_header_stdc=yes | |
25797 | fi | |
25798 | if test x$ac_cv_header_stdlib_h = xyes; then | |
25799 | rb_header_stdlib_h=yes | |
25800 | fi | |
25801 | if test x$ac_cv_header_string_h = xyes; then | |
25802 | rb_header_string_h=yes | |
25803 | fi | |
25804 | if test x$ac_cv_header_memory_h = xyes; then | |
25805 | rb_header_memory_h=yes | |
25806 | fi | |
25807 | if test "x${ac_cv_working_alloca_h+set}" = xset ; then | |
25808 | rb_alloca_h="$ac_cv_working_alloca_h" | |
25809 | else | |
25810 | rb_alloc_h="$ac_cv_header_alloca_h" | |
25811 | fi | |
25812 | if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then | |
25813 | rb_sockaddr_sa_len=yes | |
25814 | fi | |
25815 | if test x$ac_cv_header_sys_socket_h = xyes; then | |
25816 | rb_sys_socket_h=yes | |
25817 | fi | |
25818 | if test x$ac_cv_header_sys_types_h = xyes; then | |
25819 | rb_sys_types_h=yes | |
25820 | fi | |
25821 | if test x$ac_cv_header_sys_stat_h = xyes; then | |
25822 | rb_sys_stat_h=yes | |
25823 | fi | |
25824 | if test x$ac_cv_header_sys_time_h = xyes; then | |
25825 | rb_sys_time_h=yes | |
25826 | fi | |
25827 | if test x$ac_cv_header_time = xyes; then | |
25828 | rb_time_h=yes | |
25829 | fi | |
25830 | ||
25831 | if test x$ac_cv_header_stdint_h = xyes; then | |
25832 | rb_stdint_h=yes | |
25833 | fi | |
25834 | if test x$ac_cv_header_inttypes_h = xyes; then | |
25835 | rb_inttypes_h=yes | |
25836 | fi | |
25837 | if test x$ac_cv_header_netinet_in_h = xyes; then | |
25838 | rb_netinet_in_h=yes | |
25839 | fi | |
25840 | ||
25841 | if test x$ac_cv_header_crypt_h = xyes; then | |
25842 | rb_crypt_h=yes | |
25843 | fi | |
25844 | if test x$ac_cv_header_errno_h = xyes; then | |
25845 | rb_errno_h=yes | |
25846 | fi | |
25847 | if test x$ac_cv_header_unistd_h = xyes; then | |
25848 | rb_unistd_h=yes | |
25849 | fi | |
25850 | if test x$ac_cv_header_windows_h = xyes; then | |
25851 | rb_windows_h=yes | |
25852 | fi | |
25853 | if test x$ac_cv_header_winsock2_h = xyes; then | |
25854 | rb_winsock2_h=yes | |
25855 | fi | |
a9fb3ed0 VY |
25856 | |
25857 | rb_socklen_t=$rb_socklen_t | |
25858 | ||
db137867 AC |
25859 | if test "x$rb_have_sockaddr_storage" = "xyes"; then |
25860 | rb_sockaddr_storage="yes" | |
25861 | else | |
25862 | rb_sockaddr_storage="no" | |
25863 | fi | |
25864 | ||
25865 | rb_have_ipv6="$have_v6" | |
25866 | ||
25867 | rb_mv="$MV" | |
25868 | rb_rm="$RM" | |
25869 | ||
25870 | ||
25871 | ||
25872 | ||
25873 | ||
25874 | ||
25875 | _ACEOF | |
25876 | ||
25877 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25878 | ||
25879 | # Handling of arguments. | |
25880 | for ac_config_target in $ac_config_targets | |
25881 | do | |
25882 | case $ac_config_target in | |
25883 | "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;; | |
25884 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
25885 | "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;; | |
25886 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
25887 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
b69b8b08 | 25888 | "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;; |
db137867 AC |
25889 | |
25890 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
25891 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
25892 | { (exit 1); exit 1; }; };; | |
25893 | esac | |
25894 | done | |
25895 | ||
25896 | ||
25897 | # If the user did not use the arguments to specify the items to instantiate, | |
25898 | # then the envvar interface is used. Set only those that are not. | |
25899 | # We use the long form for the default assignment because of an extremely | |
25900 | # bizarre bug on SunOS 4.1.3. | |
25901 | if $ac_need_defaults; then | |
25902 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
25903 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
25904 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
25905 | fi | |
25906 | ||
25907 | # Have a temporary directory for convenience. Make it in the build tree | |
25908 | # simply because there is no reason against having it here, and in addition, | |
25909 | # creating and moving files from /tmp can sometimes cause problems. | |
25910 | # Hook for its removal unless debugging. | |
25911 | # Note that there is a small window in which the directory will not be cleaned: | |
25912 | # after its creation but before its name has been assigned to `$tmp'. | |
25913 | $debug || | |
25914 | { | |
25915 | tmp= | |
25916 | trap 'exit_status=$? | |
25917 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
25918 | ' 0 | |
25919 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
25920 | } | |
25921 | # Create a (secure) tmp directory for tmp files. | |
25922 | ||
25923 | { | |
25924 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
25925 | test -n "$tmp" && test -d "$tmp" | |
25926 | } || | |
25927 | { | |
25928 | tmp=./conf$$-$RANDOM | |
25929 | (umask 077 && mkdir "$tmp") | |
25930 | } || | |
25931 | { | |
25932 | echo "$me: cannot create a temporary directory in ." >&2 | |
25933 | { (exit 1); exit 1; } | |
25934 | } | |
25935 | ||
25936 | # | |
25937 | # Set up the sed scripts for CONFIG_FILES section. | |
25938 | # | |
25939 | ||
25940 | # No need to generate the scripts if there are no CONFIG_FILES. | |
25941 | # This happens for instance when ./config.status config.h | |
25942 | if test -n "$CONFIG_FILES"; then | |
25943 | ||
25944 | _ACEOF | |
25945 | ||
25946 | ||
25947 | ||
25948 | ac_delim='%!_!# ' | |
25949 | for ac_last_try in false false false false false :; do | |
25950 | cat >conf$$subs.sed <<_ACEOF | |
25951 | SHELL!$SHELL$ac_delim | |
25952 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
25953 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
25954 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
25955 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
25956 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
25957 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
25958 | exec_prefix!$exec_prefix$ac_delim | |
25959 | prefix!$prefix$ac_delim | |
25960 | program_transform_name!$program_transform_name$ac_delim | |
25961 | bindir!$bindir$ac_delim | |
25962 | sbindir!$sbindir$ac_delim | |
25963 | libexecdir!$libexecdir$ac_delim | |
25964 | datarootdir!$datarootdir$ac_delim | |
25965 | datadir!$datadir$ac_delim | |
25966 | sysconfdir!$sysconfdir$ac_delim | |
25967 | sharedstatedir!$sharedstatedir$ac_delim | |
25968 | localstatedir!$localstatedir$ac_delim | |
25969 | includedir!$includedir$ac_delim | |
25970 | oldincludedir!$oldincludedir$ac_delim | |
25971 | docdir!$docdir$ac_delim | |
25972 | infodir!$infodir$ac_delim | |
25973 | htmldir!$htmldir$ac_delim | |
25974 | dvidir!$dvidir$ac_delim | |
25975 | pdfdir!$pdfdir$ac_delim | |
25976 | psdir!$psdir$ac_delim | |
25977 | libdir!$libdir$ac_delim | |
25978 | localedir!$localedir$ac_delim | |
25979 | mandir!$mandir$ac_delim | |
25980 | DEFS!$DEFS$ac_delim | |
25981 | ECHO_C!$ECHO_C$ac_delim | |
25982 | ECHO_N!$ECHO_N$ac_delim | |
25983 | ECHO_T!$ECHO_T$ac_delim | |
25984 | LIBS!$LIBS$ac_delim | |
25985 | build_alias!$build_alias$ac_delim | |
25986 | host_alias!$host_alias$ac_delim | |
25987 | target_alias!$target_alias$ac_delim | |
25988 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
25989 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
25990 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
25991 | am__isrc!$am__isrc$ac_delim | |
25992 | CYGPATH_W!$CYGPATH_W$ac_delim | |
25993 | PACKAGE!$PACKAGE$ac_delim | |
25994 | VERSION!$VERSION$ac_delim | |
25995 | ACLOCAL!$ACLOCAL$ac_delim | |
25996 | AUTOCONF!$AUTOCONF$ac_delim | |
25997 | AUTOMAKE!$AUTOMAKE$ac_delim | |
25998 | AUTOHEADER!$AUTOHEADER$ac_delim | |
25999 | MAKEINFO!$MAKEINFO$ac_delim | |
26000 | install_sh!$install_sh$ac_delim | |
26001 | STRIP!$STRIP$ac_delim | |
26002 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
26003 | mkdir_p!$mkdir_p$ac_delim | |
26004 | AWK!$AWK$ac_delim | |
26005 | SET_MAKE!$SET_MAKE$ac_delim | |
26006 | am__leading_dot!$am__leading_dot$ac_delim | |
26007 | AMTAR!$AMTAR$ac_delim | |
26008 | am__tar!$am__tar$ac_delim | |
26009 | am__untar!$am__untar$ac_delim | |
26010 | CC!$CC$ac_delim | |
26011 | CFLAGS!$CFLAGS$ac_delim | |
26012 | LDFLAGS!$LDFLAGS$ac_delim | |
26013 | CPPFLAGS!$CPPFLAGS$ac_delim | |
26014 | ac_ct_CC!$ac_ct_CC$ac_delim | |
26015 | EXEEXT!$EXEEXT$ac_delim | |
26016 | OBJEXT!$OBJEXT$ac_delim | |
26017 | DEPDIR!$DEPDIR$ac_delim | |
26018 | am__include!$am__include$ac_delim | |
26019 | am__quote!$am__quote$ac_delim | |
26020 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
26021 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
26022 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
26023 | CCDEPMODE!$CCDEPMODE$ac_delim | |
26024 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
26025 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
26026 | GREP!$GREP$ac_delim | |
26027 | EGREP!$EGREP$ac_delim | |
26028 | SED!$SED$ac_delim | |
26029 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
26030 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
26031 | MAINT!$MAINT$ac_delim | |
26032 | AS!$AS$ac_delim | |
26033 | RM!$RM$ac_delim | |
26034 | CP!$CP$ac_delim | |
26035 | MV!$MV$ac_delim | |
26036 | LN!$LN$ac_delim | |
db137867 AC |
26037 | TOUCH!$TOUCH$ac_delim |
26038 | build!$build$ac_delim | |
26039 | build_cpu!$build_cpu$ac_delim | |
26040 | build_vendor!$build_vendor$ac_delim | |
26041 | build_os!$build_os$ac_delim | |
26042 | host!$host$ac_delim | |
26043 | host_cpu!$host_cpu$ac_delim | |
26044 | host_vendor!$host_vendor$ac_delim | |
3202e249 VY |
26045 | host_os!$host_os$ac_delim |
26046 | LN_S!$LN_S$ac_delim | |
26047 | ECHO!$ECHO$ac_delim | |
db137867 AC |
26048 | _ACEOF |
26049 | ||
26050 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
26051 | break | |
26052 | elif $ac_last_try; then | |
26053 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
26054 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26055 | { (exit 1); exit 1; }; } | |
26056 | else | |
26057 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
26058 | fi | |
26059 | done | |
26060 | ||
26061 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
26062 | if test -n "$ac_eof"; then | |
26063 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
26064 | ac_eof=`expr $ac_eof + 1` | |
26065 | fi | |
26066 | ||
26067 | cat >>$CONFIG_STATUS <<_ACEOF | |
26068 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
26069 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
26070 | _ACEOF | |
26071 | sed ' | |
26072 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
26073 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
26074 | :n | |
26075 | t n | |
26076 | s/'"$ac_delim"'$/,g/; t | |
26077 | s/$/\\/; p | |
26078 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
26079 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
26080 | rm -f conf$$subs.sed | |
26081 | cat >>$CONFIG_STATUS <<_ACEOF | |
26082 | CEOF$ac_eof | |
26083 | _ACEOF | |
26084 | ||
26085 | ||
26086 | ac_delim='%!_!# ' | |
26087 | for ac_last_try in false false false false false :; do | |
26088 | cat >conf$$subs.sed <<_ACEOF | |
3202e249 VY |
26089 | AR!$AR$ac_delim |
26090 | RANLIB!$RANLIB$ac_delim | |
b676ea3b AC |
26091 | DSYMUTIL!$DSYMUTIL$ac_delim |
26092 | NMEDIT!$NMEDIT$ac_delim | |
db137867 AC |
26093 | CPP!$CPP$ac_delim |
26094 | CXX!$CXX$ac_delim | |
26095 | CXXFLAGS!$CXXFLAGS$ac_delim | |
26096 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
26097 | CXXDEPMODE!$CXXDEPMODE$ac_delim | |
26098 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | |
26099 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | |
26100 | CXXCPP!$CXXCPP$ac_delim | |
26101 | F77!$F77$ac_delim | |
26102 | FFLAGS!$FFLAGS$ac_delim | |
26103 | ac_ct_F77!$ac_ct_F77$ac_delim | |
26104 | LIBTOOL!$LIBTOOL$ac_delim | |
db137867 AC |
26105 | MINGW_TRUE!$MINGW_TRUE$ac_delim |
26106 | MINGW_FALSE!$MINGW_FALSE$ac_delim | |
26107 | NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim | |
26108 | NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim | |
26109 | CRYPT_LIB!$CRYPT_LIB$ac_delim | |
26110 | ALLOCA!$ALLOCA$ac_delim | |
709c1951 AC |
26111 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
26112 | GNUTLS_CFLAGS!$GNUTLS_CFLAGS$ac_delim | |
26113 | GNUTLS_LIBS!$GNUTLS_LIBS$ac_delim | |
db137867 AC |
26114 | PICFLAGS!$PICFLAGS$ac_delim |
26115 | SEDOBJ!$SEDOBJ$ac_delim | |
c2ac22cc | 26116 | SSL_CFLAGS!$SSL_CFLAGS$ac_delim |
db137867 AC |
26117 | SSL_LIBS!$SSL_LIBS$ac_delim |
26118 | RB_PREFIX!$RB_PREFIX$ac_delim | |
26119 | LIBOBJS!$LIBOBJS$ac_delim | |
26120 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
26121 | _ACEOF | |
26122 | ||
3202e249 | 26123 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then |
db137867 AC |
26124 | break |
26125 | elif $ac_last_try; then | |
26126 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
26127 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26128 | { (exit 1); exit 1; }; } | |
26129 | else | |
26130 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
26131 | fi | |
26132 | done | |
26133 | ||
26134 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
26135 | if test -n "$ac_eof"; then | |
26136 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
26137 | ac_eof=`expr $ac_eof + 1` | |
26138 | fi | |
26139 | ||
26140 | cat >>$CONFIG_STATUS <<_ACEOF | |
26141 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
26142 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
26143 | _ACEOF | |
26144 | sed ' | |
26145 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
26146 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
26147 | :n | |
26148 | t n | |
26149 | s/'"$ac_delim"'$/,g/; t | |
26150 | s/$/\\/; p | |
26151 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
26152 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
26153 | rm -f conf$$subs.sed | |
26154 | cat >>$CONFIG_STATUS <<_ACEOF | |
26155 | :end | |
26156 | s/|#_!!_#|//g | |
26157 | CEOF$ac_eof | |
26158 | _ACEOF | |
26159 | ||
26160 | ||
26161 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
26162 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
26163 | # trailing colons and then remove the whole line if VPATH becomes empty | |
26164 | # (actually we leave an empty line to preserve line numbers). | |
26165 | if test "x$srcdir" = x.; then | |
26166 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
26167 | s/:*\$(srcdir):*/:/ | |
26168 | s/:*\${srcdir}:*/:/ | |
26169 | s/:*@srcdir@:*/:/ | |
26170 | s/^\([^=]*=[ ]*\):*/\1/ | |
26171 | s/:*$// | |
26172 | s/^[^=]*=[ ]*$// | |
26173 | }' | |
26174 | fi | |
26175 | ||
26176 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26177 | fi # test -n "$CONFIG_FILES" | |
26178 | ||
26179 | ||
26180 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
26181 | do | |
26182 | case $ac_tag in | |
26183 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
26184 | esac | |
26185 | case $ac_mode$ac_tag in | |
26186 | :[FHL]*:*);; | |
26187 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
26188 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
26189 | { (exit 1); exit 1; }; };; | |
26190 | :[FH]-) ac_tag=-:-;; | |
26191 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
26192 | esac | |
26193 | ac_save_IFS=$IFS | |
26194 | IFS=: | |
26195 | set x $ac_tag | |
26196 | IFS=$ac_save_IFS | |
26197 | shift | |
26198 | ac_file=$1 | |
26199 | shift | |
26200 | ||
26201 | case $ac_mode in | |
26202 | :L) ac_source=$1;; | |
26203 | :[FH]) | |
26204 | ac_file_inputs= | |
26205 | for ac_f | |
26206 | do | |
26207 | case $ac_f in | |
26208 | -) ac_f="$tmp/stdin";; | |
26209 | *) # Look for the file first in the build tree, then in the source tree | |
26210 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
26211 | # because $ac_f cannot contain `:'. | |
26212 | test -f "$ac_f" || | |
26213 | case $ac_f in | |
26214 | [\\/$]*) false;; | |
26215 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
26216 | esac || | |
26217 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
26218 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
26219 | { (exit 1); exit 1; }; };; | |
26220 | esac | |
26221 | ac_file_inputs="$ac_file_inputs $ac_f" | |
26222 | done | |
26223 | ||
26224 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
26225 | # use $as_me), people would be surprised to read: | |
26226 | # /* config.h. Generated by config.status. */ | |
26227 | configure_input="Generated from "`IFS=: | |
26228 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
26229 | if test x"$ac_file" != x-; then | |
26230 | configure_input="$ac_file. $configure_input" | |
26231 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
26232 | echo "$as_me: creating $ac_file" >&6;} | |
26233 | fi | |
26234 | ||
26235 | case $ac_tag in | |
26236 | *:-:* | *:-) cat >"$tmp/stdin";; | |
26237 | esac | |
26238 | ;; | |
26239 | esac | |
26240 | ||
26241 | ac_dir=`$as_dirname -- "$ac_file" || | |
26242 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26243 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26244 | X"$ac_file" : 'X\(//\)$' \| \ | |
26245 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
26246 | echo X"$ac_file" | | |
26247 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26248 | s//\1/ | |
26249 | q | |
26250 | } | |
26251 | /^X\(\/\/\)[^/].*/{ | |
26252 | s//\1/ | |
26253 | q | |
26254 | } | |
26255 | /^X\(\/\/\)$/{ | |
26256 | s//\1/ | |
26257 | q | |
26258 | } | |
26259 | /^X\(\/\).*/{ | |
26260 | s//\1/ | |
26261 | q | |
26262 | } | |
26263 | s/.*/./; q'` | |
26264 | { as_dir="$ac_dir" | |
26265 | case $as_dir in #( | |
26266 | -*) as_dir=./$as_dir;; | |
26267 | esac | |
26268 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
26269 | as_dirs= | |
26270 | while :; do | |
26271 | case $as_dir in #( | |
26272 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
26273 | *) as_qdir=$as_dir;; | |
26274 | esac | |
26275 | as_dirs="'$as_qdir' $as_dirs" | |
26276 | as_dir=`$as_dirname -- "$as_dir" || | |
26277 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26278 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26279 | X"$as_dir" : 'X\(//\)$' \| \ | |
26280 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
26281 | echo X"$as_dir" | | |
26282 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26283 | s//\1/ | |
26284 | q | |
26285 | } | |
26286 | /^X\(\/\/\)[^/].*/{ | |
26287 | s//\1/ | |
26288 | q | |
26289 | } | |
26290 | /^X\(\/\/\)$/{ | |
26291 | s//\1/ | |
26292 | q | |
26293 | } | |
26294 | /^X\(\/\).*/{ | |
26295 | s//\1/ | |
26296 | q | |
26297 | } | |
26298 | s/.*/./; q'` | |
26299 | test -d "$as_dir" && break | |
26300 | done | |
26301 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
26302 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
26303 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
26304 | { (exit 1); exit 1; }; }; } | |
26305 | ac_builddir=. | |
26306 | ||
26307 | case "$ac_dir" in | |
26308 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26309 | *) | |
26310 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
26311 | # A ".." for each directory in $ac_dir_suffix. | |
26312 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
26313 | case $ac_top_builddir_sub in | |
26314 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26315 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
26316 | esac ;; | |
26317 | esac | |
26318 | ac_abs_top_builddir=$ac_pwd | |
26319 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
26320 | # for backward compatibility: | |
26321 | ac_top_builddir=$ac_top_build_prefix | |
26322 | ||
26323 | case $srcdir in | |
26324 | .) # We are building in place. | |
26325 | ac_srcdir=. | |
26326 | ac_top_srcdir=$ac_top_builddir_sub | |
26327 | ac_abs_top_srcdir=$ac_pwd ;; | |
26328 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
26329 | ac_srcdir=$srcdir$ac_dir_suffix; | |
26330 | ac_top_srcdir=$srcdir | |
26331 | ac_abs_top_srcdir=$srcdir ;; | |
26332 | *) # Relative name. | |
26333 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
26334 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
26335 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
26336 | esac | |
26337 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
26338 | ||
26339 | ||
26340 | case $ac_mode in | |
26341 | :F) | |
26342 | # | |
26343 | # CONFIG_FILE | |
26344 | # | |
26345 | ||
26346 | case $INSTALL in | |
26347 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
26348 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
26349 | esac | |
26350 | ac_MKDIR_P=$MKDIR_P | |
26351 | case $MKDIR_P in | |
26352 | [\\/$]* | ?:[\\/]* ) ;; | |
26353 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
26354 | esac | |
26355 | _ACEOF | |
26356 | ||
26357 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26358 | # If the template does not know about datarootdir, expand it. | |
26359 | # FIXME: This hack should be removed a few years after 2.60. | |
26360 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
26361 | ||
26362 | case `sed -n '/datarootdir/ { | |
26363 | p | |
26364 | q | |
26365 | } | |
26366 | /@datadir@/p | |
26367 | /@docdir@/p | |
26368 | /@infodir@/p | |
26369 | /@localedir@/p | |
26370 | /@mandir@/p | |
26371 | ' $ac_file_inputs` in | |
26372 | *datarootdir*) ac_datarootdir_seen=yes;; | |
26373 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
26374 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
26375 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
26376 | _ACEOF | |
26377 | cat >>$CONFIG_STATUS <<_ACEOF | |
26378 | ac_datarootdir_hack=' | |
26379 | s&@datadir@&$datadir&g | |
26380 | s&@docdir@&$docdir&g | |
26381 | s&@infodir@&$infodir&g | |
26382 | s&@localedir@&$localedir&g | |
26383 | s&@mandir@&$mandir&g | |
26384 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
26385 | esac | |
26386 | _ACEOF | |
26387 | ||
26388 | # Neutralize VPATH when `$srcdir' = `.'. | |
26389 | # Shell code in configure.ac might set extrasub. | |
26390 | # FIXME: do we really want to maintain this feature? | |
26391 | cat >>$CONFIG_STATUS <<_ACEOF | |
26392 | sed "$ac_vpsub | |
26393 | $extrasub | |
26394 | _ACEOF | |
26395 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26396 | :t | |
26397 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
26398 | s&@configure_input@&$configure_input&;t t | |
26399 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
26400 | s&@srcdir@&$ac_srcdir&;t t | |
26401 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
26402 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
26403 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
26404 | s&@builddir@&$ac_builddir&;t t | |
26405 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
26406 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
26407 | s&@INSTALL@&$ac_INSTALL&;t t | |
26408 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
26409 | $ac_datarootdir_hack | |
26410 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
26411 | ||
26412 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
26413 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
26414 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
26415 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
26416 | which seems to be undefined. Please make sure it is defined." >&5 | |
26417 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
26418 | which seems to be undefined. Please make sure it is defined." >&2;} | |
26419 | ||
26420 | rm -f "$tmp/stdin" | |
26421 | case $ac_file in | |
26422 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
26423 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
26424 | esac | |
26425 | ;; | |
26426 | :H) | |
26427 | # | |
26428 | # CONFIG_HEADER | |
26429 | # | |
26430 | _ACEOF | |
26431 | ||
26432 | # Transform confdefs.h into a sed script `conftest.defines', that | |
26433 | # substitutes the proper values into config.h.in to produce config.h. | |
26434 | rm -f conftest.defines conftest.tail | |
26435 | # First, append a space to every undef/define line, to ease matching. | |
26436 | echo 's/$/ /' >conftest.defines | |
26437 | # Then, protect against being on the right side of a sed subst, or in | |
26438 | # an unquoted here document, in config.status. If some macros were | |
26439 | # called several times there might be several #defines for the same | |
26440 | # symbol, which is useless. But do not sort them, since the last | |
26441 | # AC_DEFINE must be honored. | |
26442 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
26443 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
26444 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
26445 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
26446 | # just an empty string. | |
26447 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
26448 | ac_dB='\\)[ (].*,\\1define\\2' | |
26449 | ac_dC=' ' | |
26450 | ac_dD=' ,' | |
26451 | ||
26452 | uniq confdefs.h | | |
26453 | sed -n ' | |
26454 | t rset | |
26455 | :rset | |
26456 | s/^[ ]*#[ ]*define[ ][ ]*// | |
26457 | t ok | |
26458 | d | |
26459 | :ok | |
26460 | s/[\\&,]/\\&/g | |
26461 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
26462 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
26463 | ' >>conftest.defines | |
26464 | ||
26465 | # Remove the space that was appended to ease matching. | |
26466 | # Then replace #undef with comments. This is necessary, for | |
26467 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
26468 | # on some systems where configure will not decide to define it. | |
26469 | # (The regexp can be short, since the line contains either #define or #undef.) | |
26470 | echo 's/ $// | |
26471 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
26472 | ||
26473 | # Break up conftest.defines: | |
26474 | ac_max_sed_lines=50 | |
26475 | ||
26476 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
26477 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
26478 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
26479 | # et cetera. | |
26480 | ac_in='$ac_file_inputs' | |
26481 | ac_out='"$tmp/out1"' | |
26482 | ac_nxt='"$tmp/out2"' | |
26483 | ||
26484 | while : | |
26485 | do | |
26486 | # Write a here document: | |
26487 | cat >>$CONFIG_STATUS <<_ACEOF | |
26488 | # First, check the format of the line: | |
26489 | cat >"\$tmp/defines.sed" <<\\CEOF | |
26490 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
26491 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
26492 | b | |
26493 | :def | |
26494 | _ACEOF | |
26495 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
26496 | echo 'CEOF | |
26497 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
26498 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
26499 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
26500 | grep . conftest.tail >/dev/null || break | |
26501 | rm -f conftest.defines | |
26502 | mv conftest.tail conftest.defines | |
26503 | done | |
26504 | rm -f conftest.defines conftest.tail | |
26505 | ||
26506 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
26507 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26508 | if test x"$ac_file" != x-; then | |
26509 | echo "/* $configure_input */" >"$tmp/config.h" | |
26510 | cat "$ac_result" >>"$tmp/config.h" | |
26511 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
26512 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
26513 | echo "$as_me: $ac_file is unchanged" >&6;} | |
26514 | else | |
26515 | rm -f $ac_file | |
26516 | mv "$tmp/config.h" $ac_file | |
26517 | fi | |
26518 | else | |
26519 | echo "/* $configure_input */" | |
26520 | cat "$ac_result" | |
26521 | fi | |
26522 | rm -f "$tmp/out12" | |
26523 | # Compute $ac_file's index in $config_headers. | |
b676ea3b | 26524 | _am_arg=$ac_file |
db137867 AC |
26525 | _am_stamp_count=1 |
26526 | for _am_header in $config_headers :; do | |
26527 | case $_am_header in | |
b676ea3b | 26528 | $_am_arg | $_am_arg:* ) |
db137867 AC |
26529 | break ;; |
26530 | * ) | |
26531 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
26532 | esac | |
26533 | done | |
b676ea3b AC |
26534 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
26535 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26536 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
26537 | X"$_am_arg" : 'X\(//\)$' \| \ | |
26538 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
26539 | echo X"$_am_arg" | | |
db137867 AC |
26540 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26541 | s//\1/ | |
26542 | q | |
26543 | } | |
26544 | /^X\(\/\/\)[^/].*/{ | |
26545 | s//\1/ | |
26546 | q | |
26547 | } | |
26548 | /^X\(\/\/\)$/{ | |
26549 | s//\1/ | |
26550 | q | |
26551 | } | |
26552 | /^X\(\/\).*/{ | |
26553 | s//\1/ | |
26554 | q | |
26555 | } | |
26556 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
26557 | ;; | |
26558 | ||
26559 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
26560 | echo "$as_me: executing $ac_file commands" >&6;} | |
26561 | ;; | |
26562 | esac | |
26563 | ||
26564 | ||
26565 | case $ac_file$ac_mode in | |
26566 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
26567 | # Strip MF so we end up with the name of the file. | |
26568 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
26569 | # Check whether this is an Automake generated Makefile or not. | |
26570 | # We used to match only the files named `Makefile.in', but | |
26571 | # some people rename them; so instead we look at the file content. | |
26572 | # Grep'ing the first line is not enough: some people post-process | |
26573 | # each Makefile.in and add a new line on top of each file to say so. | |
26574 | # Grep'ing the whole file is not good either: AIX grep has a line | |
26575 | # limit of 2048, but all sed's we know have understand at least 4000. | |
b676ea3b | 26576 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
db137867 AC |
26577 | dirpart=`$as_dirname -- "$mf" || |
26578 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26579 | X"$mf" : 'X\(//\)[^/]' \| \ | |
26580 | X"$mf" : 'X\(//\)$' \| \ | |
26581 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
26582 | echo X"$mf" | | |
26583 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26584 | s//\1/ | |
26585 | q | |
26586 | } | |
26587 | /^X\(\/\/\)[^/].*/{ | |
26588 | s//\1/ | |
26589 | q | |
26590 | } | |
26591 | /^X\(\/\/\)$/{ | |
26592 | s//\1/ | |
26593 | q | |
26594 | } | |
26595 | /^X\(\/\).*/{ | |
26596 | s//\1/ | |
26597 | q | |
26598 | } | |
26599 | s/.*/./; q'` | |
26600 | else | |
26601 | continue | |
26602 | fi | |
26603 | # Extract the definition of DEPDIR, am__include, and am__quote | |
26604 | # from the Makefile without running `make'. | |
26605 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
26606 | test -z "$DEPDIR" && continue | |
26607 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
26608 | test -z "am__include" && continue | |
26609 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
26610 | # When using ansi2knr, U may be empty or an underscore; expand it | |
26611 | U=`sed -n 's/^U = //p' < "$mf"` | |
26612 | # Find all dependency output files, they are included files with | |
26613 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
26614 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
26615 | # expansion. | |
26616 | for file in `sed -n " | |
26617 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
26618 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
26619 | # Make sure the directory exists. | |
26620 | test -f "$dirpart/$file" && continue | |
26621 | fdir=`$as_dirname -- "$file" || | |
26622 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26623 | X"$file" : 'X\(//\)[^/]' \| \ | |
26624 | X"$file" : 'X\(//\)$' \| \ | |
26625 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
26626 | echo X"$file" | | |
26627 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26628 | s//\1/ | |
26629 | q | |
26630 | } | |
26631 | /^X\(\/\/\)[^/].*/{ | |
26632 | s//\1/ | |
26633 | q | |
26634 | } | |
26635 | /^X\(\/\/\)$/{ | |
26636 | s//\1/ | |
26637 | q | |
26638 | } | |
26639 | /^X\(\/\).*/{ | |
26640 | s//\1/ | |
26641 | q | |
26642 | } | |
26643 | s/.*/./; q'` | |
26644 | { as_dir=$dirpart/$fdir | |
26645 | case $as_dir in #( | |
26646 | -*) as_dir=./$as_dir;; | |
26647 | esac | |
26648 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
26649 | as_dirs= | |
26650 | while :; do | |
26651 | case $as_dir in #( | |
26652 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
26653 | *) as_qdir=$as_dir;; | |
26654 | esac | |
26655 | as_dirs="'$as_qdir' $as_dirs" | |
26656 | as_dir=`$as_dirname -- "$as_dir" || | |
26657 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26658 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26659 | X"$as_dir" : 'X\(//\)$' \| \ | |
26660 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
26661 | echo X"$as_dir" | | |
26662 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26663 | s//\1/ | |
26664 | q | |
26665 | } | |
26666 | /^X\(\/\/\)[^/].*/{ | |
26667 | s//\1/ | |
26668 | q | |
26669 | } | |
26670 | /^X\(\/\/\)$/{ | |
26671 | s//\1/ | |
26672 | q | |
26673 | } | |
26674 | /^X\(\/\).*/{ | |
26675 | s//\1/ | |
26676 | q | |
26677 | } | |
26678 | s/.*/./; q'` | |
26679 | test -d "$as_dir" && break | |
26680 | done | |
26681 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
26682 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
26683 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
26684 | { (exit 1); exit 1; }; }; } | |
26685 | # echo "creating $dirpart/$file" | |
26686 | echo '# dummy' > "$dirpart/$file" | |
26687 | done | |
26688 | done | |
26689 | ;; | |
26690 | "include/librb-config.h":C) | |
26691 | outfile=include/librb-config.h.tmp | |
26692 | cat > $outfile <<\_______EOF | |
26693 | /* | |
26694 | * librb-config.h: libratbox config file. Please modify configure.ac | |
26695 | */ | |
26696 | ||
26697 | #ifndef __LIBRB_CONFIG_H | |
26698 | #define __LIBRB_CONFIG_H | |
26699 | ||
26700 | _______EOF | |
26701 | ||
26702 | if test "x$rb_have_ipv6" = "xyes"; then | |
26703 | echo "#define RB_IPV6 1" >> $outfile | |
26704 | fi | |
26705 | ||
26706 | if test "x$rb_windows_h" = "xyes"; then | |
26707 | echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile | |
26708 | echo '#include <windows.h>' >> $outfile | |
26709 | echo '#include <winsock2.h>' >> $outfile | |
26710 | echo '#include <iphlpapi.h>' >> $outfile | |
26711 | fi | |
26712 | ||
26713 | if test "x$rb_alloca_h" = "xyes"; then | |
26714 | echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile | |
26715 | fi | |
26716 | ||
26717 | if test "x$rb_header_stdc" = "xyes"; then | |
26718 | echo '#include <stdlib.h>' >> $outfile | |
26719 | echo '#include <stddef.h>' >> $outfile | |
26720 | elif test "x$rb_header_stdlib" = "xyes"; then | |
26721 | echo '#include <stdlib.h>' >> $outfile | |
26722 | fi | |
26723 | ||
26724 | if test "x$rb_header_string_h" = "xyes"; then | |
26725 | echo '#include <string.h>' >> $outfile | |
26726 | fi | |
26727 | ||
26728 | if test "x$rb_stdint_h" = "xyes"; then | |
26729 | echo '#include <stdint.h>' >> $outfile | |
26730 | fi | |
26731 | ||
26732 | if test "x$rb_inttypes_h" = "xyes"; then | |
26733 | echo '#include <inttypes.h>' >> $outfile | |
26734 | fi | |
26735 | ||
26736 | if test "x$rb_sys_types_h" = "xyes"; then | |
26737 | echo '#include <sys/types.h>' >> $outfile | |
26738 | fi | |
26739 | if test "x$rb_sys_time_h" = "xyes"; then | |
26740 | echo '#include <sys/time.h>' >> $outfile | |
26741 | fi | |
26742 | if test "x$rb_sys_stat_h" = "xyes"; then | |
26743 | echo '#include <sys/stat.h>' >> $outfile | |
26744 | fi | |
26745 | if test "x$rb_time_h" = "xyes"; then | |
26746 | echo '#include <time.h>' >> $outfile | |
26747 | fi | |
26748 | ||
26749 | if test "x$rb_sys_socket_h" = "xyes"; then | |
26750 | echo '#include <sys/socket.h>' >> $outfile | |
26751 | fi | |
26752 | ||
26753 | if test "x$rb_netinet_in_h" = "xyes"; then | |
26754 | echo '#include <netinet/in.h>' >> $outfile | |
26755 | fi | |
26756 | ||
26757 | if test "x$rb_arpa_inet_h" = "xyes"; then | |
26758 | echo '#include <arpa/inet.h>' >> $outfile | |
26759 | fi | |
26760 | ||
26761 | if test "x$rb_unistd_h" = "xyes"; then | |
26762 | echo '#include <unistd.h>' >> $outfile | |
26763 | fi | |
26764 | ||
26765 | if test "x$rb_crypt_h" = "xyes"; then | |
26766 | echo '#include <crypt.h>' >> $outfile | |
26767 | fi | |
26768 | ||
26769 | if test "x$rb_errno_h" = "xyes"; then | |
26770 | echo '#include <errno.h>' >> $outfile | |
26771 | fi | |
26772 | ||
a9fb3ed0 VY |
26773 | echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile |
26774 | ||
26775 | ||
db137867 AC |
26776 | if test "x$rb_sockaddr_sa_len" = "xyes"; then |
26777 | echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile | |
26778 | fi | |
26779 | ||
db137867 AC |
26780 | if test "x$rb_sockaddr_storage" = "xyes"; then |
26781 | echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile | |
26782 | else | |
3202e249 | 26783 | echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile |
db137867 AC |
26784 | fi |
26785 | ||
26786 | cat >> $outfile <<\_______EOF | |
26787 | #endif /* __LIBRB_CONFIG_H */ | |
26788 | _______EOF | |
26789 | ||
26790 | if cmp -s $outfile include/librb-config.h; then | |
26791 | { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5 | |
26792 | echo "$as_me: include/librb-config.h is unchanged" >&6;} | |
26793 | ${rb_rm} -f $outfile | |
26794 | else | |
26795 | ${rb_mv} $outfile include/librb-config.h | |
26796 | fi | |
26797 | ||
26798 | ;; | |
26799 | ||
26800 | esac | |
26801 | done # for ac_tag | |
26802 | ||
26803 | ||
26804 | { (exit 0); exit 0; } | |
26805 | _ACEOF | |
26806 | chmod +x $CONFIG_STATUS | |
26807 | ac_clean_files=$ac_clean_files_save | |
26808 | ||
26809 | ||
26810 | # configure is writing to config.log, and then calls config.status. | |
26811 | # config.status does its own redirection, appending to config.log. | |
26812 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26813 | # by configure, so config.status won't be able to write to it; its | |
26814 | # output is simply discarded. So we exec the FD to /dev/null, | |
26815 | # effectively closing config.log, so it can be properly (re)opened and | |
26816 | # appended to by config.status. When coming back to configure, we | |
26817 | # need to make the FD available again. | |
26818 | if test "$no_create" != yes; then | |
26819 | ac_cs_success=: | |
26820 | ac_config_status_args= | |
26821 | test "$silent" = yes && | |
26822 | ac_config_status_args="$ac_config_status_args --quiet" | |
26823 | exec 5>/dev/null | |
26824 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
26825 | exec 5>>config.log | |
26826 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26827 | # would make configure fail if this is the last instruction. | |
26828 | $ac_cs_success || { (exit 1); exit 1; } | |
26829 | fi | |
26830 | ||
db137867 AC |
26831 | |
26832 | ||
26833 | echo | |
26834 | echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" | |
26835 | echo | |
26836 | ||
26837 | echo "Installing into: $prefix" | |
26838 | ||
26839 | echo "IPv6 support ................... $have_v6" | |
26840 | echo "Assert debugging ............... $assert" | |
26841 | echo "Block allocator ................ $balloc" | |
c2ac22cc | 26842 | echo "SSL Type........................ $SSL_TYPE" |
db137867 AC |
26843 | echo |
26844 |