d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
64ff59ba |
3 | # Generated by GNU Autoconf 2.61 for libltdl 1.2. |
d9898ee8 |
4 | # |
5 | # Report bugs to <bug-libtool@gnu.org>. |
6 | # |
64ff59ba |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
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 | |
64ff59ba |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
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+"$@"}'='"$@"' |
64ff59ba |
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 |
d9898ee8 |
53 | fi |
d9898ee8 |
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 | |
64ff59ba |
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 | |
d9898ee8 |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
64ff59ba |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 | done |
d9898ee8 |
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 |
64ff59ba |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
64ff59ba |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
120 | as_expr=expr |
121 | else |
122 | as_expr=false |
123 | fi |
124 | |
64ff59ba |
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
126 | as_basename=basename |
127 | else |
128 | as_basename=false |
129 | fi |
130 | |
131 | |
132 | # Name of the executable. |
64ff59ba |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
64ff59ba |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
64ff59ba |
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'` |
d9898ee8 |
151 | |
64ff59ba |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
64ff59ba |
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 |
d9898ee8 |
161 | fi |
162 | |
64ff59ba |
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 | } |
d9898ee8 |
179 | |
64ff59ba |
180 | exitcode=0 |
181 | if as_func_success; then |
182 | : |
183 | else |
184 | exitcode=1 |
185 | echo as_func_success failed. |
186 | fi |
d9898ee8 |
187 | |
64ff59ba |
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= |
d9898ee8 |
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=. |
64ff59ba |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
64ff59ba |
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 | ( |
d9898ee8 |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO |
d9898ee8 |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
64ff59ba |
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" || { |
d9898ee8 |
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 |
64ff59ba |
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. |
d9898ee8 |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
64ff59ba |
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 | |
d9898ee8 |
444 | sed ' |
64ff59ba |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
64ff59ba |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
64ff59ba |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
64ff59ba |
455 | chmod +x "$as_me.lineno" || |
d9898ee8 |
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 |
64ff59ba |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" |
d9898ee8 |
463 | # Exit status is that of the last command. |
464 | exit |
465 | } |
466 | |
467 | |
64ff59ba |
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';; |
d9898ee8 |
483 | esac |
484 | |
64ff59ba |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
487 | as_expr=expr |
488 | else |
489 | as_expr=false |
490 | fi |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file |
64ff59ba |
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 |
d9898ee8 |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
64ff59ba |
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 || |
d9898ee8 |
507 | as_ln_s='cp -p' |
d9898ee8 |
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 |
64ff59ba |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
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 | |
64ff59ba |
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 |
d9898ee8 |
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 | |
d9898ee8 |
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 | |
64ff59ba |
708 | exec 7<&0 </dev/null 6>&1 |
709 | |
d9898ee8 |
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 | |
d9898ee8 |
715 | # |
716 | # Initializations. |
717 | # |
718 | ac_default_prefix=/usr/local |
64ff59ba |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
64ff59ba |
721 | LIBOBJS= |
d9898ee8 |
722 | cross_compiling=no |
723 | subdirs= |
724 | MFLAGS= |
725 | MAKEFLAGS= |
726 | SHELL=${CONFIG_SHELL-/bin/sh} |
727 | |
d9898ee8 |
728 | # Identity of this package. |
729 | PACKAGE_NAME='libltdl' |
730 | PACKAGE_TARNAME='libltdl' |
731 | PACKAGE_VERSION='1.2' |
732 | PACKAGE_STRING='libltdl 1.2' |
733 | PACKAGE_BUGREPORT='bug-libtool@gnu.org' |
734 | |
735 | ac_unique_file="ltdl.c" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
64ff59ba |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
64ff59ba |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
64ff59ba |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
64ff59ba |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
64ff59ba |
753 | #ifdef HAVE_STRING_H |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
d9898ee8 |
755 | # include <memory.h> |
756 | # endif |
757 | # include <string.h> |
758 | #endif |
64ff59ba |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
64ff59ba |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
64ff59ba |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
64ff59ba |
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 | build |
848 | build_cpu |
849 | build_vendor |
850 | build_os |
851 | host |
852 | host_cpu |
853 | host_vendor |
854 | host_os |
855 | SED |
856 | GREP |
857 | EGREP |
858 | LN_S |
859 | ECHO |
860 | AR |
861 | RANLIB |
862 | DLLTOOL |
863 | AS |
864 | OBJDUMP |
865 | CPP |
866 | CXX |
867 | CXXFLAGS |
868 | ac_ct_CXX |
869 | CXXDEPMODE |
870 | am__fastdepCXX_TRUE |
871 | am__fastdepCXX_FALSE |
872 | CXXCPP |
873 | F77 |
874 | FFLAGS |
875 | ac_ct_F77 |
876 | LIBTOOL |
877 | LIBTOOL_DEPS |
878 | INSTALL_LTDL_TRUE |
879 | INSTALL_LTDL_FALSE |
880 | CONVENIENCE_LTDL_TRUE |
881 | CONVENIENCE_LTDL_FALSE |
882 | LIBADD_DL |
883 | LIBOBJS |
884 | LTLIBOBJS' |
d9898ee8 |
885 | ac_subst_files='' |
64ff59ba |
886 | ac_precious_vars='build_alias |
887 | host_alias |
888 | target_alias |
889 | CC |
890 | CFLAGS |
891 | LDFLAGS |
892 | LIBS |
893 | CPPFLAGS |
894 | CPP |
895 | CXX |
896 | CXXFLAGS |
897 | CCC |
898 | CXXCPP |
899 | F77 |
900 | FFLAGS' |
901 | |
d9898ee8 |
902 | |
903 | # Initialize some variables set by options. |
904 | ac_init_help= |
905 | ac_init_version=false |
906 | # The variables have the same names as the options, with |
907 | # dashes changed to underlines. |
908 | cache_file=/dev/null |
909 | exec_prefix=NONE |
910 | no_create= |
911 | no_recursion= |
912 | prefix=NONE |
913 | program_prefix=NONE |
914 | program_suffix=NONE |
915 | program_transform_name=s,x,x, |
916 | silent= |
917 | site= |
918 | srcdir= |
919 | verbose= |
920 | x_includes=NONE |
921 | x_libraries=NONE |
922 | |
923 | # Installation directory options. |
924 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
925 | # and all the variables that are supposed to be based on exec_prefix |
926 | # by default will actually change. |
927 | # Use braces instead of parens because sh, perl, etc. also accept them. |
64ff59ba |
928 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
929 | bindir='${exec_prefix}/bin' |
930 | sbindir='${exec_prefix}/sbin' |
931 | libexecdir='${exec_prefix}/libexec' |
64ff59ba |
932 | datarootdir='${prefix}/share' |
933 | datadir='${datarootdir}' |
d9898ee8 |
934 | sysconfdir='${prefix}/etc' |
935 | sharedstatedir='${prefix}/com' |
936 | localstatedir='${prefix}/var' |
d9898ee8 |
937 | includedir='${prefix}/include' |
938 | oldincludedir='/usr/include' |
64ff59ba |
939 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
940 | infodir='${datarootdir}/info' |
941 | htmldir='${docdir}' |
942 | dvidir='${docdir}' |
943 | pdfdir='${docdir}' |
944 | psdir='${docdir}' |
945 | libdir='${exec_prefix}/lib' |
946 | localedir='${datarootdir}/locale' |
947 | mandir='${datarootdir}/man' |
d9898ee8 |
948 | |
949 | ac_prev= |
64ff59ba |
950 | ac_dashdash= |
d9898ee8 |
951 | for ac_option |
952 | do |
953 | # If the previous option needs an argument, assign it. |
954 | if test -n "$ac_prev"; then |
64ff59ba |
955 | eval $ac_prev=\$ac_option |
d9898ee8 |
956 | ac_prev= |
957 | continue |
958 | fi |
959 | |
64ff59ba |
960 | case $ac_option in |
961 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
962 | *) ac_optarg=yes ;; |
963 | esac |
d9898ee8 |
964 | |
965 | # Accept the important Cygnus configure options, so we can diagnose typos. |
966 | |
64ff59ba |
967 | case $ac_dashdash$ac_option in |
968 | --) |
969 | ac_dashdash=yes ;; |
d9898ee8 |
970 | |
971 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
972 | ac_prev=bindir ;; |
973 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
974 | bindir=$ac_optarg ;; |
975 | |
976 | -build | --build | --buil | --bui | --bu) |
977 | ac_prev=build_alias ;; |
978 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
979 | build_alias=$ac_optarg ;; |
980 | |
981 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
982 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
983 | ac_prev=cache_file ;; |
984 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
985 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
986 | cache_file=$ac_optarg ;; |
987 | |
988 | --config-cache | -C) |
989 | cache_file=config.cache ;; |
990 | |
64ff59ba |
991 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
992 | ac_prev=datadir ;; |
64ff59ba |
993 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
994 | datadir=$ac_optarg ;; |
995 | |
64ff59ba |
996 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
997 | | --dataroo | --dataro | --datar) |
998 | ac_prev=datarootdir ;; |
999 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
1000 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
1001 | datarootdir=$ac_optarg ;; |
1002 | |
d9898ee8 |
1003 | -disable-* | --disable-*) |
1004 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1005 | # Reject names that are not valid shell variable names. |
64ff59ba |
1006 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1007 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1008 | { (exit 1); exit 1; }; } |
64ff59ba |
1009 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1010 | eval enable_$ac_feature=no ;; |
1011 | |
1012 | -docdir | --docdir | --docdi | --doc | --do) |
1013 | ac_prev=docdir ;; |
1014 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1015 | docdir=$ac_optarg ;; |
1016 | |
1017 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1018 | ac_prev=dvidir ;; |
1019 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1020 | dvidir=$ac_optarg ;; |
d9898ee8 |
1021 | |
1022 | -enable-* | --enable-*) |
1023 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1024 | # Reject names that are not valid shell variable names. |
64ff59ba |
1025 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1026 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1027 | { (exit 1); exit 1; }; } |
64ff59ba |
1028 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1029 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1030 | |
1031 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1032 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1033 | | --exec | --exe | --ex) |
1034 | ac_prev=exec_prefix ;; |
1035 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1036 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1037 | | --exec=* | --exe=* | --ex=*) |
1038 | exec_prefix=$ac_optarg ;; |
1039 | |
1040 | -gas | --gas | --ga | --g) |
1041 | # Obsolete; use --with-gas. |
1042 | with_gas=yes ;; |
1043 | |
1044 | -help | --help | --hel | --he | -h) |
1045 | ac_init_help=long ;; |
1046 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1047 | ac_init_help=recursive ;; |
1048 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1049 | ac_init_help=short ;; |
1050 | |
1051 | -host | --host | --hos | --ho) |
1052 | ac_prev=host_alias ;; |
1053 | -host=* | --host=* | --hos=* | --ho=*) |
1054 | host_alias=$ac_optarg ;; |
1055 | |
64ff59ba |
1056 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1057 | ac_prev=htmldir ;; |
1058 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1059 | | --ht=*) |
1060 | htmldir=$ac_optarg ;; |
1061 | |
d9898ee8 |
1062 | -includedir | --includedir | --includedi | --included | --include \ |
1063 | | --includ | --inclu | --incl | --inc) |
1064 | ac_prev=includedir ;; |
1065 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1066 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1067 | includedir=$ac_optarg ;; |
1068 | |
1069 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1070 | ac_prev=infodir ;; |
1071 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1072 | infodir=$ac_optarg ;; |
1073 | |
1074 | -libdir | --libdir | --libdi | --libd) |
1075 | ac_prev=libdir ;; |
1076 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1077 | libdir=$ac_optarg ;; |
1078 | |
1079 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1080 | | --libexe | --libex | --libe) |
1081 | ac_prev=libexecdir ;; |
1082 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1083 | | --libexe=* | --libex=* | --libe=*) |
1084 | libexecdir=$ac_optarg ;; |
1085 | |
64ff59ba |
1086 | -localedir | --localedir | --localedi | --localed | --locale) |
1087 | ac_prev=localedir ;; |
1088 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1089 | localedir=$ac_optarg ;; |
1090 | |
d9898ee8 |
1091 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
64ff59ba |
1092 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1093 | ac_prev=localstatedir ;; |
1094 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
64ff59ba |
1095 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1096 | localstatedir=$ac_optarg ;; |
1097 | |
1098 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1099 | ac_prev=mandir ;; |
1100 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1101 | mandir=$ac_optarg ;; |
1102 | |
1103 | -nfp | --nfp | --nf) |
1104 | # Obsolete; use --without-fp. |
1105 | with_fp=no ;; |
1106 | |
1107 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1108 | | --no-cr | --no-c | -n) |
1109 | no_create=yes ;; |
1110 | |
1111 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1112 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1113 | no_recursion=yes ;; |
1114 | |
1115 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1116 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1117 | | --oldin | --oldi | --old | --ol | --o) |
1118 | ac_prev=oldincludedir ;; |
1119 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1120 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1121 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1122 | oldincludedir=$ac_optarg ;; |
1123 | |
1124 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1125 | ac_prev=prefix ;; |
1126 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1127 | prefix=$ac_optarg ;; |
1128 | |
1129 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1130 | | --program-pre | --program-pr | --program-p) |
1131 | ac_prev=program_prefix ;; |
1132 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1133 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1134 | program_prefix=$ac_optarg ;; |
1135 | |
1136 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1137 | | --program-suf | --program-su | --program-s) |
1138 | ac_prev=program_suffix ;; |
1139 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1140 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1141 | program_suffix=$ac_optarg ;; |
1142 | |
1143 | -program-transform-name | --program-transform-name \ |
1144 | | --program-transform-nam | --program-transform-na \ |
1145 | | --program-transform-n | --program-transform- \ |
1146 | | --program-transform | --program-transfor \ |
1147 | | --program-transfo | --program-transf \ |
1148 | | --program-trans | --program-tran \ |
1149 | | --progr-tra | --program-tr | --program-t) |
1150 | ac_prev=program_transform_name ;; |
1151 | -program-transform-name=* | --program-transform-name=* \ |
1152 | | --program-transform-nam=* | --program-transform-na=* \ |
1153 | | --program-transform-n=* | --program-transform-=* \ |
1154 | | --program-transform=* | --program-transfor=* \ |
1155 | | --program-transfo=* | --program-transf=* \ |
1156 | | --program-trans=* | --program-tran=* \ |
1157 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1158 | program_transform_name=$ac_optarg ;; |
1159 | |
64ff59ba |
1160 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1161 | ac_prev=pdfdir ;; |
1162 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1163 | pdfdir=$ac_optarg ;; |
1164 | |
1165 | -psdir | --psdir | --psdi | --psd | --ps) |
1166 | ac_prev=psdir ;; |
1167 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1168 | psdir=$ac_optarg ;; |
1169 | |
d9898ee8 |
1170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1171 | | -silent | --silent | --silen | --sile | --sil) |
1172 | silent=yes ;; |
1173 | |
1174 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1175 | ac_prev=sbindir ;; |
1176 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1177 | | --sbi=* | --sb=*) |
1178 | sbindir=$ac_optarg ;; |
1179 | |
1180 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1181 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1182 | | --sharedst | --shareds | --shared | --share | --shar \ |
1183 | | --sha | --sh) |
1184 | ac_prev=sharedstatedir ;; |
1185 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1186 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1187 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1188 | | --sha=* | --sh=*) |
1189 | sharedstatedir=$ac_optarg ;; |
1190 | |
1191 | -site | --site | --sit) |
1192 | ac_prev=site ;; |
1193 | -site=* | --site=* | --sit=*) |
1194 | site=$ac_optarg ;; |
1195 | |
1196 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1197 | ac_prev=srcdir ;; |
1198 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1199 | srcdir=$ac_optarg ;; |
1200 | |
1201 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1202 | | --syscon | --sysco | --sysc | --sys | --sy) |
1203 | ac_prev=sysconfdir ;; |
1204 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1205 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1206 | sysconfdir=$ac_optarg ;; |
1207 | |
1208 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1209 | ac_prev=target_alias ;; |
1210 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1211 | target_alias=$ac_optarg ;; |
1212 | |
1213 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1214 | verbose=yes ;; |
1215 | |
1216 | -version | --version | --versio | --versi | --vers | -V) |
1217 | ac_init_version=: ;; |
1218 | |
1219 | -with-* | --with-*) |
1220 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1221 | # Reject names that are not valid shell variable names. |
64ff59ba |
1222 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1223 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1224 | { (exit 1); exit 1; }; } |
64ff59ba |
1225 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1226 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1227 | |
1228 | -without-* | --without-*) |
1229 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1230 | # Reject names that are not valid shell variable names. |
64ff59ba |
1231 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1232 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1233 | { (exit 1); exit 1; }; } |
64ff59ba |
1234 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1235 | eval with_$ac_package=no ;; |
d9898ee8 |
1236 | |
1237 | --x) |
1238 | # Obsolete; use --with-x. |
1239 | with_x=yes ;; |
1240 | |
1241 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1242 | | --x-incl | --x-inc | --x-in | --x-i) |
1243 | ac_prev=x_includes ;; |
1244 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1245 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1246 | x_includes=$ac_optarg ;; |
1247 | |
1248 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1249 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1250 | ac_prev=x_libraries ;; |
1251 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1252 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1253 | x_libraries=$ac_optarg ;; |
1254 | |
1255 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1256 | Try \`$0 --help' for more information." >&2 |
1257 | { (exit 1); exit 1; }; } |
1258 | ;; |
1259 | |
1260 | *=*) |
1261 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1262 | # Reject names that are not valid shell variable names. |
1263 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1264 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1265 | { (exit 1); exit 1; }; } |
64ff59ba |
1266 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1267 | export $ac_envvar ;; |
1268 | |
1269 | *) |
1270 | # FIXME: should be removed in autoconf 3.0. |
1271 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1272 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1273 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1274 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1275 | ;; |
1276 | |
1277 | esac |
1278 | done |
1279 | |
1280 | if test -n "$ac_prev"; then |
1281 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1282 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1283 | { (exit 1); exit 1; }; } |
1284 | fi |
1285 | |
64ff59ba |
1286 | # Be sure to have absolute directory names. |
1287 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1288 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1289 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1290 | libdir localedir mandir |
d9898ee8 |
1291 | do |
64ff59ba |
1292 | eval ac_val=\$$ac_var |
d9898ee8 |
1293 | case $ac_val in |
64ff59ba |
1294 | [\\/$]* | ?:[\\/]* ) continue;; |
1295 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1296 | esac |
64ff59ba |
1297 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1298 | { (exit 1); exit 1; }; } |
d9898ee8 |
1299 | done |
1300 | |
1301 | # There might be people who depend on the old broken behavior: `$host' |
1302 | # used to hold the argument of --host etc. |
1303 | # FIXME: To remove some day. |
1304 | build=$build_alias |
1305 | host=$host_alias |
1306 | target=$target_alias |
1307 | |
1308 | # FIXME: To remove some day. |
1309 | if test "x$host_alias" != x; then |
1310 | if test "x$build_alias" = x; then |
1311 | cross_compiling=maybe |
1312 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1313 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1314 | elif test "x$build_alias" != "x$host_alias"; then |
1315 | cross_compiling=yes |
1316 | fi |
1317 | fi |
1318 | |
1319 | ac_tool_prefix= |
1320 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1321 | |
1322 | test "$silent" = yes && exec 6>/dev/null |
1323 | |
1324 | |
64ff59ba |
1325 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1326 | ac_ls_di=`ls -di .` && |
1327 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1328 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1329 | { (exit 1); exit 1; }; } |
1330 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1331 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1332 | { (exit 1); exit 1; }; } |
1333 | |
1334 | |
d9898ee8 |
1335 | # Find the source files, if location was not specified. |
1336 | if test -z "$srcdir"; then |
1337 | ac_srcdir_defaulted=yes |
64ff59ba |
1338 | # Try the directory containing this script, then the parent directory. |
1339 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1340 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1341 | X"$0" : 'X\(//\)[^/]' \| \ |
1342 | X"$0" : 'X\(//\)$' \| \ |
64ff59ba |
1343 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1344 | echo X"$0" | |
64ff59ba |
1345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1346 | s//\1/ |
1347 | q |
1348 | } |
1349 | /^X\(\/\/\)[^/].*/{ |
1350 | s//\1/ |
1351 | q |
1352 | } |
1353 | /^X\(\/\/\)$/{ |
1354 | s//\1/ |
1355 | q |
1356 | } |
1357 | /^X\(\/\).*/{ |
1358 | s//\1/ |
1359 | q |
1360 | } |
1361 | s/.*/./; q'` |
d9898ee8 |
1362 | srcdir=$ac_confdir |
64ff59ba |
1363 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1364 | srcdir=.. |
1365 | fi |
1366 | else |
1367 | ac_srcdir_defaulted=no |
1368 | fi |
64ff59ba |
1369 | if test ! -r "$srcdir/$ac_unique_file"; then |
1370 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1371 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1372 | { (exit 1); exit 1; }; } |
d9898ee8 |
1373 | fi |
64ff59ba |
1374 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1375 | ac_abs_confdir=`( |
1376 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1377 | { (exit 1); exit 1; }; } |
64ff59ba |
1378 | pwd)` |
1379 | # When building in place, set srcdir=. |
1380 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1381 | srcdir=. |
1382 | fi |
1383 | # Remove unnecessary trailing slashes from srcdir. |
1384 | # Double slashes in file names in object file debugging info |
1385 | # mess up M-x gdb in Emacs. |
1386 | case $srcdir in |
1387 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1388 | esac |
1389 | for ac_var in $ac_precious_vars; do |
1390 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1391 | eval ac_env_${ac_var}_value=\$${ac_var} |
1392 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1393 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1394 | done |
d9898ee8 |
1395 | |
1396 | # |
1397 | # Report the --help message. |
1398 | # |
1399 | if test "$ac_init_help" = "long"; then |
1400 | # Omit some internal or obsolete options to make the list less imposing. |
1401 | # This message is too long to be a string in the A/UX 3.1 sh. |
1402 | cat <<_ACEOF |
1403 | \`configure' configures libltdl 1.2 to adapt to many kinds of systems. |
1404 | |
1405 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1406 | |
1407 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1408 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1409 | |
1410 | Defaults for the options are specified in brackets. |
1411 | |
1412 | Configuration: |
1413 | -h, --help display this help and exit |
1414 | --help=short display options specific to this package |
1415 | --help=recursive display the short help of all the included packages |
1416 | -V, --version display version information and exit |
1417 | -q, --quiet, --silent do not print \`checking...' messages |
1418 | --cache-file=FILE cache test results in FILE [disabled] |
1419 | -C, --config-cache alias for \`--cache-file=config.cache' |
1420 | -n, --no-create do not create output files |
1421 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1422 | |
d9898ee8 |
1423 | Installation directories: |
1424 | --prefix=PREFIX install architecture-independent files in PREFIX |
1425 | [$ac_default_prefix] |
1426 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1427 | [PREFIX] |
1428 | |
1429 | By default, \`make install' will install all the files in |
1430 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1431 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1432 | for instance \`--prefix=\$HOME'. |
1433 | |
1434 | For better control, use the options below. |
1435 | |
1436 | Fine tuning of the installation directories: |
1437 | --bindir=DIR user executables [EPREFIX/bin] |
1438 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1439 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1440 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1441 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1442 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1443 | --libdir=DIR object code libraries [EPREFIX/lib] |
1444 | --includedir=DIR C header files [PREFIX/include] |
1445 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
64ff59ba |
1446 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1447 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1448 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1449 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1450 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1451 | --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl] |
1452 | --htmldir=DIR html documentation [DOCDIR] |
1453 | --dvidir=DIR dvi documentation [DOCDIR] |
1454 | --pdfdir=DIR pdf documentation [DOCDIR] |
1455 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1456 | _ACEOF |
1457 | |
1458 | cat <<\_ACEOF |
1459 | |
1460 | Program names: |
1461 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1462 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1463 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1464 | |
1465 | System types: |
1466 | --build=BUILD configure for building on BUILD [guessed] |
1467 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1468 | _ACEOF |
1469 | fi |
1470 | |
1471 | if test -n "$ac_init_help"; then |
1472 | case $ac_init_help in |
1473 | short | recursive ) echo "Configuration of libltdl 1.2:";; |
1474 | esac |
1475 | cat <<\_ACEOF |
1476 | |
1477 | Optional Features: |
1478 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1479 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1480 | --disable-dependency-tracking speeds up one-time build |
1481 | --enable-dependency-tracking do not reject slow dependency extractors |
64ff59ba |
1482 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1483 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1484 | --enable-fast-install[=PKGS] |
1485 | optimize for fast installation [default=yes] |
1486 | --disable-libtool-lock avoid locking (might break parallel builds) |
1487 | --enable-ltdl-install install libltdl |
1488 | |
1489 | Optional Packages: |
1490 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1491 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1492 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1493 | --with-pic try to use only PIC/non-PIC objects [default=use |
1494 | both] |
64ff59ba |
1495 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1496 | |
1497 | Some influential environment variables: |
1498 | CC C compiler command |
1499 | CFLAGS C compiler flags |
1500 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1501 | nonstandard directory <lib dir> |
64ff59ba |
1502 | LIBS libraries to pass to the linker, e.g. -l<library> |
1503 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1504 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1505 | CPP C preprocessor |
1506 | CXX C++ compiler command |
1507 | CXXFLAGS C++ compiler flags |
1508 | CXXCPP C++ preprocessor |
1509 | F77 Fortran 77 compiler command |
1510 | FFLAGS Fortran 77 compiler flags |
1511 | |
1512 | Use these variables to override the choices made by `configure' or to help |
1513 | it to find libraries and programs with nonstandard names/locations. |
1514 | |
1515 | Report bugs to <bug-libtool@gnu.org>. |
1516 | _ACEOF |
64ff59ba |
1517 | ac_status=$? |
d9898ee8 |
1518 | fi |
1519 | |
1520 | if test "$ac_init_help" = "recursive"; then |
1521 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1522 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
64ff59ba |
1523 | test -d "$ac_dir" || continue |
d9898ee8 |
1524 | ac_builddir=. |
1525 | |
64ff59ba |
1526 | case "$ac_dir" in |
1527 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1528 | *) |
d9898ee8 |
1529 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
64ff59ba |
1530 | # A ".." for each directory in $ac_dir_suffix. |
1531 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1532 | case $ac_top_builddir_sub in |
1533 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1534 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1535 | esac ;; |
1536 | esac |
1537 | ac_abs_top_builddir=$ac_pwd |
1538 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1539 | # for backward compatibility: |
1540 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1541 | |
1542 | case $srcdir in |
64ff59ba |
1543 | .) # We are building in place. |
d9898ee8 |
1544 | ac_srcdir=. |
64ff59ba |
1545 | ac_top_srcdir=$ac_top_builddir_sub |
1546 | ac_abs_top_srcdir=$ac_pwd ;; |
1547 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1548 | ac_srcdir=$srcdir$ac_dir_suffix; |
64ff59ba |
1549 | ac_top_srcdir=$srcdir |
1550 | ac_abs_top_srcdir=$srcdir ;; |
1551 | *) # Relative name. |
1552 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1553 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1554 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1555 | esac |
64ff59ba |
1556 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1557 | |
1558 | cd "$ac_dir" || { ac_status=$?; continue; } |
1559 | # Check for guested configure. |
1560 | if test -f "$ac_srcdir/configure.gnu"; then |
1561 | echo && |
1562 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1563 | elif test -f "$ac_srcdir/configure"; then |
1564 | echo && |
1565 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1566 | else |
1567 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
64ff59ba |
1568 | fi || ac_status=$? |
1569 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1570 | done |
1571 | fi |
1572 | |
64ff59ba |
1573 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1574 | if $ac_init_version; then |
1575 | cat <<\_ACEOF |
1576 | libltdl configure 1.2 |
64ff59ba |
1577 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1578 | |
64ff59ba |
1579 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1580 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1581 | This configure script is free software; the Free Software Foundation |
1582 | gives unlimited permission to copy, distribute and modify it. |
1583 | _ACEOF |
64ff59ba |
1584 | exit |
d9898ee8 |
1585 | fi |
64ff59ba |
1586 | cat >config.log <<_ACEOF |
d9898ee8 |
1587 | This file contains any messages produced by compilers while |
1588 | running configure, to aid debugging if configure makes a mistake. |
1589 | |
1590 | It was created by libltdl $as_me 1.2, which was |
64ff59ba |
1591 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1592 | |
1593 | $ $0 $@ |
1594 | |
1595 | _ACEOF |
64ff59ba |
1596 | exec 5>>config.log |
d9898ee8 |
1597 | { |
1598 | cat <<_ASUNAME |
1599 | ## --------- ## |
1600 | ## Platform. ## |
1601 | ## --------- ## |
1602 | |
1603 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1604 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1605 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1606 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1607 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1608 | |
1609 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1610 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1611 | |
1612 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1613 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1614 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
64ff59ba |
1615 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1616 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1617 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1618 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1619 | |
1620 | _ASUNAME |
1621 | |
1622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1623 | for as_dir in $PATH |
1624 | do |
1625 | IFS=$as_save_IFS |
1626 | test -z "$as_dir" && as_dir=. |
1627 | echo "PATH: $as_dir" |
1628 | done |
64ff59ba |
1629 | IFS=$as_save_IFS |
d9898ee8 |
1630 | |
1631 | } >&5 |
1632 | |
1633 | cat >&5 <<_ACEOF |
1634 | |
1635 | |
1636 | ## ----------- ## |
1637 | ## Core tests. ## |
1638 | ## ----------- ## |
1639 | |
1640 | _ACEOF |
1641 | |
1642 | |
1643 | # Keep a trace of the command line. |
1644 | # Strip out --no-create and --no-recursion so they do not pile up. |
1645 | # Strip out --silent because we don't want to record it for future runs. |
1646 | # Also quote any args containing shell meta-characters. |
1647 | # Make two passes to allow for proper duplicate-argument suppression. |
1648 | ac_configure_args= |
1649 | ac_configure_args0= |
1650 | ac_configure_args1= |
d9898ee8 |
1651 | ac_must_keep_next=false |
1652 | for ac_pass in 1 2 |
1653 | do |
1654 | for ac_arg |
1655 | do |
1656 | case $ac_arg in |
1657 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1658 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1659 | | -silent | --silent | --silen | --sile | --sil) |
1660 | continue ;; |
64ff59ba |
1661 | *\'*) |
d9898ee8 |
1662 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1663 | esac |
1664 | case $ac_pass in |
1665 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1666 | 2) |
1667 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1668 | if test $ac_must_keep_next = true; then |
1669 | ac_must_keep_next=false # Got value, back to normal. |
1670 | else |
1671 | case $ac_arg in |
1672 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1673 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1674 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1675 | | -with-* | --with-* | -without-* | --without-* | --x) |
1676 | case "$ac_configure_args0 " in |
1677 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1678 | esac |
1679 | ;; |
1680 | -* ) ac_must_keep_next=true ;; |
1681 | esac |
1682 | fi |
64ff59ba |
1683 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1684 | ;; |
1685 | esac |
1686 | done |
1687 | done |
1688 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1689 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1690 | |
1691 | # When interrupted or exit'd, cleanup temporary files, and complete |
1692 | # config.log. We remove comments because anyway the quotes in there |
1693 | # would cause problems or look ugly. |
64ff59ba |
1694 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1695 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1696 | trap 'exit_status=$? |
1697 | # Save into config.log some information that might help in debugging. |
1698 | { |
1699 | echo |
1700 | |
1701 | cat <<\_ASBOX |
1702 | ## ---------------- ## |
1703 | ## Cache variables. ## |
1704 | ## ---------------- ## |
1705 | _ASBOX |
1706 | echo |
1707 | # The following way of writing the cache mishandles newlines in values, |
64ff59ba |
1708 | ( |
1709 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1710 | eval ac_val=\$$ac_var |
1711 | case $ac_val in #( |
1712 | *${as_nl}*) |
1713 | case $ac_var in #( |
1714 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1715 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1716 | esac |
1717 | case $ac_var in #( |
1718 | _ | IFS | as_nl) ;; #( |
1719 | *) $as_unset $ac_var ;; |
1720 | esac ;; |
1721 | esac |
1722 | done |
d9898ee8 |
1723 | (set) 2>&1 | |
64ff59ba |
1724 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1725 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1726 | sed -n \ |
64ff59ba |
1727 | "s/'\''/'\''\\\\'\'''\''/g; |
1728 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1729 | ;; #( |
d9898ee8 |
1730 | *) |
64ff59ba |
1731 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1732 | ;; |
64ff59ba |
1733 | esac | |
1734 | sort |
1735 | ) |
d9898ee8 |
1736 | echo |
1737 | |
1738 | cat <<\_ASBOX |
1739 | ## ----------------- ## |
1740 | ## Output variables. ## |
1741 | ## ----------------- ## |
1742 | _ASBOX |
1743 | echo |
1744 | for ac_var in $ac_subst_vars |
1745 | do |
64ff59ba |
1746 | eval ac_val=\$$ac_var |
1747 | case $ac_val in |
1748 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1749 | esac |
1750 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1751 | done | sort |
1752 | echo |
1753 | |
1754 | if test -n "$ac_subst_files"; then |
1755 | cat <<\_ASBOX |
64ff59ba |
1756 | ## ------------------- ## |
1757 | ## File substitutions. ## |
1758 | ## ------------------- ## |
d9898ee8 |
1759 | _ASBOX |
1760 | echo |
1761 | for ac_var in $ac_subst_files |
1762 | do |
64ff59ba |
1763 | eval ac_val=\$$ac_var |
1764 | case $ac_val in |
1765 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1766 | esac |
1767 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1768 | done | sort |
1769 | echo |
1770 | fi |
1771 | |
1772 | if test -s confdefs.h; then |
1773 | cat <<\_ASBOX |
1774 | ## ----------- ## |
1775 | ## confdefs.h. ## |
1776 | ## ----------- ## |
1777 | _ASBOX |
1778 | echo |
64ff59ba |
1779 | cat confdefs.h |
d9898ee8 |
1780 | echo |
1781 | fi |
1782 | test "$ac_signal" != 0 && |
1783 | echo "$as_me: caught signal $ac_signal" |
1784 | echo "$as_me: exit $exit_status" |
1785 | } >&5 |
64ff59ba |
1786 | rm -f core *.core core.conftest.* && |
1787 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1788 | exit $exit_status |
64ff59ba |
1789 | ' 0 |
d9898ee8 |
1790 | for ac_signal in 1 2 13 15; do |
1791 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1792 | done |
1793 | ac_signal=0 |
1794 | |
1795 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
64ff59ba |
1796 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1797 | |
1798 | # Predefined preprocessor variables. |
1799 | |
1800 | cat >>confdefs.h <<_ACEOF |
1801 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1802 | _ACEOF |
1803 | |
1804 | |
1805 | cat >>confdefs.h <<_ACEOF |
1806 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1807 | _ACEOF |
1808 | |
1809 | |
1810 | cat >>confdefs.h <<_ACEOF |
1811 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1812 | _ACEOF |
1813 | |
1814 | |
1815 | cat >>confdefs.h <<_ACEOF |
1816 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1817 | _ACEOF |
1818 | |
1819 | |
1820 | cat >>confdefs.h <<_ACEOF |
1821 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1822 | _ACEOF |
1823 | |
1824 | |
1825 | # Let the site file select an alternate cache file if it wants to. |
1826 | # Prefer explicitly selected file to automatically selected ones. |
64ff59ba |
1827 | if test -n "$CONFIG_SITE"; then |
1828 | set x "$CONFIG_SITE" |
1829 | elif test "x$prefix" != xNONE; then |
1830 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1831 | else |
1832 | set x "$ac_default_prefix/share/config.site" \ |
1833 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1834 | fi |
64ff59ba |
1835 | shift |
1836 | for ac_site_file |
1837 | do |
d9898ee8 |
1838 | if test -r "$ac_site_file"; then |
1839 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1840 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1841 | sed 's/^/| /' "$ac_site_file" >&5 |
1842 | . "$ac_site_file" |
1843 | fi |
1844 | done |
1845 | |
1846 | if test -r "$cache_file"; then |
1847 | # Some versions of bash will fail to source /dev/null (special |
1848 | # files actually), so we avoid doing that. |
1849 | if test -f "$cache_file"; then |
1850 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1851 | echo "$as_me: loading cache $cache_file" >&6;} |
1852 | case $cache_file in |
64ff59ba |
1853 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1854 | *) . "./$cache_file";; |
d9898ee8 |
1855 | esac |
1856 | fi |
1857 | else |
1858 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1859 | echo "$as_me: creating cache $cache_file" >&6;} |
1860 | >$cache_file |
1861 | fi |
1862 | |
1863 | # Check that the precious variables saved in the cache have kept the same |
1864 | # value. |
1865 | ac_cache_corrupted=false |
64ff59ba |
1866 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1867 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1868 | eval ac_new_set=\$ac_env_${ac_var}_set |
64ff59ba |
1869 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1870 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1871 | case $ac_old_set,$ac_new_set in |
1872 | set,) |
1873 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1874 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1875 | ac_cache_corrupted=: ;; |
1876 | ,set) |
1877 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1878 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1879 | ac_cache_corrupted=: ;; |
1880 | ,);; |
1881 | *) |
1882 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1883 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1884 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1885 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1886 | echo "$as_me: former value: $ac_old_val" >&2;} |
1887 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1888 | echo "$as_me: current value: $ac_new_val" >&2;} |
1889 | ac_cache_corrupted=: |
1890 | fi;; |
1891 | esac |
1892 | # Pass precious variables to config.status. |
1893 | if test "$ac_new_set" = set; then |
1894 | case $ac_new_val in |
64ff59ba |
1895 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1896 | *) ac_arg=$ac_var=$ac_new_val ;; |
1897 | esac |
1898 | case " $ac_configure_args " in |
1899 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1900 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1901 | esac |
1902 | fi |
1903 | done |
1904 | if $ac_cache_corrupted; then |
1905 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1906 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1907 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1908 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1909 | { (exit 1); exit 1; }; } |
1910 | fi |
1911 | |
d9898ee8 |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
1929 | |
1930 | |
1931 | |
1932 | |
1933 | |
1934 | |
1935 | |
64ff59ba |
1936 | ac_ext=c |
1937 | ac_cpp='$CPP $CPPFLAGS' |
1938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1941 | |
1942 | |
1943 | |
1944 | |
1945 | |
1946 | ## ------------------------------- ## |
1947 | ## Libltdl specific configuration. ## |
1948 | ## ------------------------------- ## |
1949 | |
1950 | ac_aux_dir= |
64ff59ba |
1951 | for ac_dir in . "$srcdir"/.; do |
1952 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1953 | ac_aux_dir=$ac_dir |
1954 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1955 | break |
64ff59ba |
1956 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1957 | ac_aux_dir=$ac_dir |
1958 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1959 | break |
64ff59ba |
1960 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1961 | ac_aux_dir=$ac_dir |
1962 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1963 | break |
1964 | fi |
1965 | done |
1966 | if test -z "$ac_aux_dir"; then |
64ff59ba |
1967 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 |
1968 | echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} |
d9898ee8 |
1969 | { (exit 1); exit 1; }; } |
1970 | fi |
64ff59ba |
1971 | |
1972 | # These three variables are undocumented and unsupported, |
1973 | # and are intended to be withdrawn in a future Autoconf release. |
1974 | # They can cause serious problems if a builder's source tree is in a directory |
1975 | # whose full name contains unusual characters. |
1976 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1977 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1978 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1979 | |
d9898ee8 |
1980 | |
1981 | |
1982 | if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then |
1983 | if test -f ${srcdir}/ltmain.sh; then |
1984 | # if libltdl is libtoolized, it is assumed to be stand-alone and |
1985 | # installed unless the command line overrides it (tested above) |
1986 | enable_ltdl_install=yes |
1987 | else |
1988 | { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5 |
1989 | echo "$as_me: WARNING: *** The top-level configure must select either" >&2;} |
1990 | { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5 |
1991 | echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;} |
1992 | { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5 |
1993 | echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;} |
1994 | { (exit 1); exit 1; }; } |
1995 | fi |
1996 | fi |
1997 | |
1998 | |
1999 | ## ------------------------ ## |
2000 | ## Automake Initialisation. ## |
2001 | ## ------------------------ ## |
64ff59ba |
2002 | am__api_version='1.10' |
2003 | |
d9898ee8 |
2004 | # Find a good install program. We prefer a C program (faster), |
2005 | # so one script is as good as another. But avoid the broken or |
2006 | # incompatible versions: |
2007 | # SysV /etc/install, /usr/sbin/install |
2008 | # SunOS /usr/etc/install |
2009 | # IRIX /sbin/install |
2010 | # AIX /bin/install |
2011 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
2012 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2013 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2014 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2015 | # OS/2's system install, which has a completely different semantic |
2016 | # ./install, which can be erroneously created by make from ./install.sh. |
64ff59ba |
2017 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2018 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
2019 | if test -z "$INSTALL"; then |
2020 | if test "${ac_cv_path_install+set}" = set; then |
2021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2022 | else |
2023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2024 | for as_dir in $PATH |
2025 | do |
2026 | IFS=$as_save_IFS |
2027 | test -z "$as_dir" && as_dir=. |
2028 | # Account for people who put trailing slashes in PATH elements. |
2029 | case $as_dir/ in |
2030 | ./ | .// | /cC/* | \ |
2031 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2032 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2033 | /usr/ucb/* ) ;; |
2034 | *) |
2035 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2036 | # Don't use installbsd from OSF since it installs stuff as root |
2037 | # by default. |
2038 | for ac_prog in ginstall scoinst install; do |
2039 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2040 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2041 | if test $ac_prog = install && |
2042 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2043 | # AIX install. It has an incompatible calling convention. |
2044 | : |
2045 | elif test $ac_prog = install && |
2046 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2047 | # program-specific install script used by HP pwplus--don't use. |
2048 | : |
2049 | else |
2050 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2051 | break 3 |
2052 | fi |
2053 | fi |
2054 | done |
2055 | done |
2056 | ;; |
2057 | esac |
2058 | done |
64ff59ba |
2059 | IFS=$as_save_IFS |
d9898ee8 |
2060 | |
2061 | |
2062 | fi |
2063 | if test "${ac_cv_path_install+set}" = set; then |
2064 | INSTALL=$ac_cv_path_install |
2065 | else |
64ff59ba |
2066 | # As a last resort, use the slow shell script. Don't cache a |
2067 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2068 | # break other packages using the cache if that directory is |
64ff59ba |
2069 | # removed, or if the value is a relative name. |
d9898ee8 |
2070 | INSTALL=$ac_install_sh |
2071 | fi |
2072 | fi |
64ff59ba |
2073 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2074 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2075 | |
2076 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2077 | # It thinks the first close brace ends the variable substitution. |
2078 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2079 | |
2080 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2081 | |
2082 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2083 | |
64ff59ba |
2084 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2085 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2086 | # Just in case |
2087 | sleep 1 |
2088 | echo timestamp > conftest.file |
2089 | # Do `set' in a subshell so we don't clobber the current shell's |
2090 | # arguments. Must try -L first in case configure is actually a |
2091 | # symlink; some systems play weird games with the mod time of symlinks |
2092 | # (eg FreeBSD returns the mod time of the symlink's containing |
2093 | # directory). |
2094 | if ( |
2095 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2096 | if test "$*" = "X"; then |
2097 | # -L didn't work. |
2098 | set X `ls -t $srcdir/configure conftest.file` |
2099 | fi |
2100 | rm -f conftest.file |
2101 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2102 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2103 | |
2104 | # If neither matched, then we have a broken ls. This can happen |
2105 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2106 | # broken ls alias from the environment. This has actually |
2107 | # happened. Such a system could not be considered "sane". |
2108 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2109 | alias in your environment" >&5 |
2110 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2111 | alias in your environment" >&2;} |
2112 | { (exit 1); exit 1; }; } |
2113 | fi |
2114 | |
2115 | test "$2" = conftest.file |
2116 | ) |
2117 | then |
2118 | # Ok. |
2119 | : |
2120 | else |
2121 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2122 | Check your system clock" >&5 |
2123 | echo "$as_me: error: newly created file is older than distributed files! |
2124 | Check your system clock" >&2;} |
2125 | { (exit 1); exit 1; }; } |
2126 | fi |
64ff59ba |
2127 | { echo "$as_me:$LINENO: result: yes" >&5 |
2128 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2129 | test "$program_prefix" != NONE && |
64ff59ba |
2130 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2131 | # Use a double $ so make ignores it. |
2132 | test "$program_suffix" != NONE && |
64ff59ba |
2133 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2134 | # Double any \ or $. echo might interpret backslashes. |
2135 | # By default was `s,x,x', remove it if useless. |
2136 | cat <<\_ACEOF >conftest.sed |
2137 | s/[\\$]/&&/g;s/;s,x,x,$// |
2138 | _ACEOF |
2139 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
64ff59ba |
2140 | rm -f conftest.sed |
d9898ee8 |
2141 | |
2142 | # expand $ac_aux_dir to an absolute path |
2143 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2144 | |
2145 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2146 | # Use eval to expand $SHELL |
2147 | if eval "$MISSING --run true"; then |
2148 | am_missing_run="$MISSING --run " |
2149 | else |
2150 | am_missing_run= |
2151 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2152 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2153 | fi |
2154 | |
64ff59ba |
2155 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2156 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2157 | if test -z "$MKDIR_P"; then |
2158 | if test "${ac_cv_path_mkdir+set}" = set; then |
2159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2160 | else |
2161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2162 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2163 | do |
2164 | IFS=$as_save_IFS |
2165 | test -z "$as_dir" && as_dir=. |
2166 | for ac_prog in mkdir gmkdir; do |
2167 | for ac_exec_ext in '' $ac_executable_extensions; do |
2168 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2169 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2170 | 'mkdir (GNU coreutils) '* | \ |
2171 | 'mkdir (coreutils) '* | \ |
2172 | 'mkdir (fileutils) '4.1*) |
2173 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2174 | break 3;; |
2175 | esac |
2176 | done |
2177 | done |
2178 | done |
2179 | IFS=$as_save_IFS |
2180 | |
2181 | fi |
2182 | |
2183 | if test "${ac_cv_path_mkdir+set}" = set; then |
2184 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2185 | else |
64ff59ba |
2186 | # As a last resort, use the slow shell script. Don't cache a |
2187 | # value for MKDIR_P within a source directory, because that will |
2188 | # break other packages using the cache if that directory is |
2189 | # removed, or if the value is a relative name. |
2190 | test -d ./--version && rmdir ./--version |
2191 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2192 | fi |
2193 | fi |
64ff59ba |
2194 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2195 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2196 | |
2197 | mkdir_p="$MKDIR_P" |
2198 | case $mkdir_p in |
2199 | [\\/$]* | ?:[\\/]*) ;; |
2200 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2201 | esac |
d9898ee8 |
2202 | |
2203 | for ac_prog in gawk mawk nawk awk |
2204 | do |
2205 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2206 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
2207 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2208 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2209 | if test "${ac_cv_prog_AWK+set}" = set; then |
2210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2211 | else |
2212 | if test -n "$AWK"; then |
2213 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2214 | else |
2215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2216 | for as_dir in $PATH |
2217 | do |
2218 | IFS=$as_save_IFS |
2219 | test -z "$as_dir" && as_dir=. |
2220 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2221 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2222 | ac_cv_prog_AWK="$ac_prog" |
2223 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2224 | break 2 |
2225 | fi |
2226 | done |
2227 | done |
64ff59ba |
2228 | IFS=$as_save_IFS |
d9898ee8 |
2229 | |
2230 | fi |
2231 | fi |
2232 | AWK=$ac_cv_prog_AWK |
2233 | if test -n "$AWK"; then |
64ff59ba |
2234 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2235 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2236 | else |
64ff59ba |
2237 | { echo "$as_me:$LINENO: result: no" >&5 |
2238 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2239 | fi |
2240 | |
64ff59ba |
2241 | |
d9898ee8 |
2242 | test -n "$AWK" && break |
2243 | done |
2244 | |
64ff59ba |
2245 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2246 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2247 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2248 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2250 | else |
2251 | cat >conftest.make <<\_ACEOF |
64ff59ba |
2252 | SHELL = /bin/sh |
d9898ee8 |
2253 | all: |
64ff59ba |
2254 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2255 | _ACEOF |
2256 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
64ff59ba |
2257 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2258 | *@@@%%%=?*=@@@%%%*) |
2259 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2260 | *) |
2261 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2262 | esac |
d9898ee8 |
2263 | rm -f conftest.make |
2264 | fi |
64ff59ba |
2265 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2266 | { echo "$as_me:$LINENO: result: yes" >&5 |
2267 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2268 | SET_MAKE= |
2269 | else |
64ff59ba |
2270 | { echo "$as_me:$LINENO: result: no" >&5 |
2271 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2272 | SET_MAKE="MAKE=${MAKE-make}" |
2273 | fi |
2274 | |
2275 | rm -rf .tst 2>/dev/null |
2276 | mkdir .tst 2>/dev/null |
2277 | if test -d .tst; then |
2278 | am__leading_dot=. |
2279 | else |
2280 | am__leading_dot=_ |
2281 | fi |
2282 | rmdir .tst 2>/dev/null |
2283 | |
64ff59ba |
2284 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2285 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2286 | # is not polluted with repeated "-I." |
2287 | am__isrc=' -I$(srcdir)' |
2288 | # test to see if srcdir already configured |
2289 | if test -f $srcdir/config.status; then |
2290 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2291 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2292 | { (exit 1); exit 1; }; } |
64ff59ba |
2293 | fi |
d9898ee8 |
2294 | fi |
2295 | |
2296 | # test whether we have cygpath |
2297 | if test -z "$CYGPATH_W"; then |
2298 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2299 | CYGPATH_W='cygpath -w' |
2300 | else |
2301 | CYGPATH_W=echo |
2302 | fi |
2303 | fi |
2304 | |
2305 | |
2306 | # Define the identity of the package. |
2307 | PACKAGE=libltdl |
2308 | VERSION=1.2 |
2309 | |
2310 | |
2311 | # Some tools Automake needs. |
2312 | |
2313 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2314 | |
2315 | |
2316 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2317 | |
2318 | |
2319 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2320 | |
2321 | |
2322 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2323 | |
2324 | |
2325 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2326 | |
64ff59ba |
2327 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2328 | |
2329 | # Installed binaries are usually stripped using `strip' when the user |
2330 | # run `make install-strip'. However `strip' might not be the right |
2331 | # tool to use in cross-compilation environments, therefore Automake |
2332 | # will honor the `STRIP' environment variable to overrule this program. |
2333 | if test "$cross_compiling" != no; then |
2334 | if test -n "$ac_tool_prefix"; then |
2335 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2336 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
64ff59ba |
2337 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2339 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2341 | else |
2342 | if test -n "$STRIP"; then |
2343 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2344 | else |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2346 | for as_dir in $PATH |
2347 | do |
2348 | IFS=$as_save_IFS |
2349 | test -z "$as_dir" && as_dir=. |
2350 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2352 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2354 | break 2 |
2355 | fi |
2356 | done |
2357 | done |
64ff59ba |
2358 | IFS=$as_save_IFS |
d9898ee8 |
2359 | |
2360 | fi |
2361 | fi |
2362 | STRIP=$ac_cv_prog_STRIP |
2363 | if test -n "$STRIP"; then |
64ff59ba |
2364 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2365 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2366 | else |
64ff59ba |
2367 | { echo "$as_me:$LINENO: result: no" >&5 |
2368 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2369 | fi |
2370 | |
64ff59ba |
2371 | |
d9898ee8 |
2372 | fi |
2373 | if test -z "$ac_cv_prog_STRIP"; then |
2374 | ac_ct_STRIP=$STRIP |
2375 | # Extract the first word of "strip", so it can be a program name with args. |
2376 | set dummy strip; ac_word=$2 |
64ff59ba |
2377 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2379 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2381 | else |
2382 | if test -n "$ac_ct_STRIP"; then |
2383 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2384 | else |
2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2386 | for as_dir in $PATH |
2387 | do |
2388 | IFS=$as_save_IFS |
2389 | test -z "$as_dir" && as_dir=. |
2390 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2392 | ac_cv_prog_ac_ct_STRIP="strip" |
2393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2394 | break 2 |
2395 | fi |
2396 | done |
2397 | done |
64ff59ba |
2398 | IFS=$as_save_IFS |
d9898ee8 |
2399 | |
d9898ee8 |
2400 | fi |
2401 | fi |
2402 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2403 | if test -n "$ac_ct_STRIP"; then |
64ff59ba |
2404 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2405 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2406 | else |
64ff59ba |
2407 | { echo "$as_me:$LINENO: result: no" >&5 |
2408 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2409 | fi |
2410 | |
64ff59ba |
2411 | if test "x$ac_ct_STRIP" = x; then |
2412 | STRIP=":" |
2413 | else |
2414 | case $cross_compiling:$ac_tool_warned in |
2415 | yes:) |
2416 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2417 | whose name does not start with the host triplet. If you think this |
2418 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2419 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2420 | whose name does not start with the host triplet. If you think this |
2421 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2422 | ac_tool_warned=yes ;; |
2423 | esac |
2424 | STRIP=$ac_ct_STRIP |
2425 | fi |
d9898ee8 |
2426 | else |
2427 | STRIP="$ac_cv_prog_STRIP" |
2428 | fi |
2429 | |
2430 | fi |
64ff59ba |
2431 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2432 | |
2433 | # We need awk for the "check" target. The system "awk" is bad on |
2434 | # some platforms. |
2435 | # Always define AMTAR for backward compatibility. |
2436 | |
2437 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2438 | |
2439 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2440 | |
2441 | |
2442 | |
2443 | |
2444 | |
64ff59ba |
2445 | ac_config_headers="$ac_config_headers config.h:config-h.in" |
d9898ee8 |
2446 | |
2447 | |
2448 | |
2449 | ## ------------------ ## |
2450 | ## C compiler checks. ## |
2451 | ## ------------------ ## |
2452 | ac_ext=c |
2453 | ac_cpp='$CPP $CPPFLAGS' |
2454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2457 | if test -n "$ac_tool_prefix"; then |
2458 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2459 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
64ff59ba |
2460 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2462 | if test "${ac_cv_prog_CC+set}" = set; then |
2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2464 | else |
2465 | if test -n "$CC"; then |
2466 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2467 | else |
2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2469 | for as_dir in $PATH |
2470 | do |
2471 | IFS=$as_save_IFS |
2472 | test -z "$as_dir" && as_dir=. |
2473 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2475 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2477 | break 2 |
2478 | fi |
2479 | done |
2480 | done |
64ff59ba |
2481 | IFS=$as_save_IFS |
d9898ee8 |
2482 | |
2483 | fi |
2484 | fi |
2485 | CC=$ac_cv_prog_CC |
2486 | if test -n "$CC"; then |
64ff59ba |
2487 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2488 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2489 | else |
64ff59ba |
2490 | { echo "$as_me:$LINENO: result: no" >&5 |
2491 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2492 | fi |
2493 | |
64ff59ba |
2494 | |
d9898ee8 |
2495 | fi |
2496 | if test -z "$ac_cv_prog_CC"; then |
2497 | ac_ct_CC=$CC |
2498 | # Extract the first word of "gcc", so it can be a program name with args. |
2499 | set dummy gcc; ac_word=$2 |
64ff59ba |
2500 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2502 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2504 | else |
2505 | if test -n "$ac_ct_CC"; then |
2506 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2507 | else |
2508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2509 | for as_dir in $PATH |
2510 | do |
2511 | IFS=$as_save_IFS |
2512 | test -z "$as_dir" && as_dir=. |
2513 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2515 | ac_cv_prog_ac_ct_CC="gcc" |
2516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2517 | break 2 |
2518 | fi |
2519 | done |
2520 | done |
64ff59ba |
2521 | IFS=$as_save_IFS |
d9898ee8 |
2522 | |
2523 | fi |
2524 | fi |
2525 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2526 | if test -n "$ac_ct_CC"; then |
64ff59ba |
2527 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2528 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2529 | else |
64ff59ba |
2530 | { echo "$as_me:$LINENO: result: no" >&5 |
2531 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2532 | fi |
2533 | |
64ff59ba |
2534 | if test "x$ac_ct_CC" = x; then |
2535 | CC="" |
2536 | else |
2537 | case $cross_compiling:$ac_tool_warned in |
2538 | yes:) |
2539 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2540 | whose name does not start with the host triplet. If you think this |
2541 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2542 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2543 | whose name does not start with the host triplet. If you think this |
2544 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2545 | ac_tool_warned=yes ;; |
2546 | esac |
2547 | CC=$ac_ct_CC |
2548 | fi |
d9898ee8 |
2549 | else |
2550 | CC="$ac_cv_prog_CC" |
2551 | fi |
2552 | |
2553 | if test -z "$CC"; then |
64ff59ba |
2554 | if test -n "$ac_tool_prefix"; then |
2555 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2556 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
64ff59ba |
2557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2559 | if test "${ac_cv_prog_CC+set}" = set; then |
2560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2561 | else |
2562 | if test -n "$CC"; then |
2563 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2564 | else |
2565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2566 | for as_dir in $PATH |
2567 | do |
2568 | IFS=$as_save_IFS |
2569 | test -z "$as_dir" && as_dir=. |
2570 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2572 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2574 | break 2 |
2575 | fi |
2576 | done |
2577 | done |
64ff59ba |
2578 | IFS=$as_save_IFS |
d9898ee8 |
2579 | |
2580 | fi |
2581 | fi |
2582 | CC=$ac_cv_prog_CC |
2583 | if test -n "$CC"; then |
64ff59ba |
2584 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2585 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2586 | else |
64ff59ba |
2587 | { echo "$as_me:$LINENO: result: no" >&5 |
2588 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2589 | fi |
2590 | |
d9898ee8 |
2591 | |
64ff59ba |
2592 | fi |
d9898ee8 |
2593 | fi |
2594 | if test -z "$CC"; then |
2595 | # Extract the first word of "cc", so it can be a program name with args. |
2596 | set dummy cc; ac_word=$2 |
64ff59ba |
2597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2599 | if test "${ac_cv_prog_CC+set}" = set; then |
2600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2601 | else |
2602 | if test -n "$CC"; then |
2603 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2604 | else |
2605 | ac_prog_rejected=no |
2606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2607 | for as_dir in $PATH |
2608 | do |
2609 | IFS=$as_save_IFS |
2610 | test -z "$as_dir" && as_dir=. |
2611 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2613 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2614 | ac_prog_rejected=yes |
2615 | continue |
2616 | fi |
2617 | ac_cv_prog_CC="cc" |
2618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2619 | break 2 |
2620 | fi |
2621 | done |
2622 | done |
64ff59ba |
2623 | IFS=$as_save_IFS |
d9898ee8 |
2624 | |
2625 | if test $ac_prog_rejected = yes; then |
2626 | # We found a bogon in the path, so make sure we never use it. |
2627 | set dummy $ac_cv_prog_CC |
2628 | shift |
2629 | if test $# != 0; then |
2630 | # We chose a different compiler from the bogus one. |
2631 | # However, it has the same basename, so the bogon will be chosen |
2632 | # first if we set CC to just the basename; use the full file name. |
2633 | shift |
2634 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2635 | fi |
2636 | fi |
2637 | fi |
2638 | fi |
2639 | CC=$ac_cv_prog_CC |
2640 | if test -n "$CC"; then |
64ff59ba |
2641 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2642 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2643 | else |
64ff59ba |
2644 | { echo "$as_me:$LINENO: result: no" >&5 |
2645 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2646 | fi |
2647 | |
64ff59ba |
2648 | |
d9898ee8 |
2649 | fi |
2650 | if test -z "$CC"; then |
2651 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
2652 | for ac_prog in cl.exe |
d9898ee8 |
2653 | do |
2654 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2655 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
2656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2658 | if test "${ac_cv_prog_CC+set}" = set; then |
2659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2660 | else |
2661 | if test -n "$CC"; then |
2662 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2663 | else |
2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2665 | for as_dir in $PATH |
2666 | do |
2667 | IFS=$as_save_IFS |
2668 | test -z "$as_dir" && as_dir=. |
2669 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2671 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2673 | break 2 |
2674 | fi |
2675 | done |
2676 | done |
64ff59ba |
2677 | IFS=$as_save_IFS |
d9898ee8 |
2678 | |
2679 | fi |
2680 | fi |
2681 | CC=$ac_cv_prog_CC |
2682 | if test -n "$CC"; then |
64ff59ba |
2683 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2684 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2685 | else |
64ff59ba |
2686 | { echo "$as_me:$LINENO: result: no" >&5 |
2687 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2688 | fi |
2689 | |
64ff59ba |
2690 | |
d9898ee8 |
2691 | test -n "$CC" && break |
2692 | done |
2693 | fi |
2694 | if test -z "$CC"; then |
2695 | ac_ct_CC=$CC |
64ff59ba |
2696 | for ac_prog in cl.exe |
d9898ee8 |
2697 | do |
2698 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2699 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
2700 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2702 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2704 | else |
2705 | if test -n "$ac_ct_CC"; then |
2706 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2707 | else |
2708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2709 | for as_dir in $PATH |
2710 | do |
2711 | IFS=$as_save_IFS |
2712 | test -z "$as_dir" && as_dir=. |
2713 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
2714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2715 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2717 | break 2 |
2718 | fi |
2719 | done |
2720 | done |
64ff59ba |
2721 | IFS=$as_save_IFS |
d9898ee8 |
2722 | |
2723 | fi |
2724 | fi |
2725 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2726 | if test -n "$ac_ct_CC"; then |
64ff59ba |
2727 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2728 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2729 | else |
64ff59ba |
2730 | { echo "$as_me:$LINENO: result: no" >&5 |
2731 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2732 | fi |
2733 | |
64ff59ba |
2734 | |
d9898ee8 |
2735 | test -n "$ac_ct_CC" && break |
2736 | done |
2737 | |
64ff59ba |
2738 | if test "x$ac_ct_CC" = x; then |
2739 | CC="" |
2740 | else |
2741 | case $cross_compiling:$ac_tool_warned in |
2742 | yes:) |
2743 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2744 | whose name does not start with the host triplet. If you think this |
2745 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2746 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2747 | whose name does not start with the host triplet. If you think this |
2748 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2749 | ac_tool_warned=yes ;; |
2750 | esac |
2751 | CC=$ac_ct_CC |
2752 | fi |
d9898ee8 |
2753 | fi |
2754 | |
2755 | fi |
2756 | |
2757 | |
2758 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2759 | See \`config.log' for more details." >&5 |
2760 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2761 | See \`config.log' for more details." >&2;} |
2762 | { (exit 1); exit 1; }; } |
2763 | |
2764 | # Provide some information about the compiler. |
64ff59ba |
2765 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2766 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
2767 | { (ac_try="$ac_compiler --version >&5" |
2768 | case "(($ac_try" in |
2769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2770 | *) ac_try_echo=$ac_try;; |
2771 | esac |
2772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2773 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2774 | ac_status=$? |
2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2776 | (exit $ac_status); } |
64ff59ba |
2777 | { (ac_try="$ac_compiler -v >&5" |
2778 | case "(($ac_try" in |
2779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2780 | *) ac_try_echo=$ac_try;; |
2781 | esac |
2782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2783 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2784 | ac_status=$? |
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2786 | (exit $ac_status); } |
64ff59ba |
2787 | { (ac_try="$ac_compiler -V >&5" |
2788 | case "(($ac_try" in |
2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2790 | *) ac_try_echo=$ac_try;; |
2791 | esac |
2792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2793 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2794 | ac_status=$? |
2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2796 | (exit $ac_status); } |
2797 | |
2798 | cat >conftest.$ac_ext <<_ACEOF |
2799 | /* confdefs.h. */ |
2800 | _ACEOF |
2801 | cat confdefs.h >>conftest.$ac_ext |
2802 | cat >>conftest.$ac_ext <<_ACEOF |
2803 | /* end confdefs.h. */ |
2804 | |
2805 | int |
2806 | main () |
2807 | { |
2808 | |
2809 | ; |
2810 | return 0; |
2811 | } |
2812 | _ACEOF |
2813 | ac_clean_files_save=$ac_clean_files |
2814 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2815 | # Try to create an executable without -o first, disregard a.out. |
2816 | # It will help us diagnose broken compilers, and finding out an intuition |
2817 | # of exeext. |
64ff59ba |
2818 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2819 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2820 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
64ff59ba |
2821 | # |
2822 | # List of possible output files, starting from the most likely. |
2823 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2824 | # only as a last resort. b.out is created by i960 compilers. |
2825 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2826 | # |
2827 | # The IRIX 6 linker writes into existing files which may not be |
2828 | # executable, retaining their permissions. Remove them first so a |
2829 | # subsequent execution test works. |
2830 | ac_rmfiles= |
2831 | for ac_file in $ac_files |
2832 | do |
2833 | case $ac_file in |
2834 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2835 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2836 | esac |
2837 | done |
2838 | rm -f $ac_rmfiles |
2839 | |
2840 | if { (ac_try="$ac_link_default" |
2841 | case "(($ac_try" in |
2842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2843 | *) ac_try_echo=$ac_try;; |
2844 | esac |
2845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2846 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2847 | ac_status=$? |
2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2849 | (exit $ac_status); }; then |
64ff59ba |
2850 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2851 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2852 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2853 | # so that the user can short-circuit this test for compilers unknown to |
2854 | # Autoconf. |
2855 | for ac_file in $ac_files '' |
d9898ee8 |
2856 | do |
2857 | test -f "$ac_file" || continue |
2858 | case $ac_file in |
64ff59ba |
2859 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2860 | ;; |
2861 | [ab].out ) |
2862 | # We found the default executable, but exeext='' is most |
2863 | # certainly right. |
2864 | break;; |
2865 | *.* ) |
64ff59ba |
2866 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2867 | then :; else |
2868 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2869 | fi |
2870 | # We set ac_cv_exeext here because the later test for it is not |
2871 | # safe: cross compilers may not add the suffix if given an `-o' |
2872 | # argument, so we may need to know it at that point already. |
2873 | # Even if this section looks crufty: it has the advantage of |
2874 | # actually working. |
d9898ee8 |
2875 | break;; |
2876 | * ) |
2877 | break;; |
2878 | esac |
2879 | done |
64ff59ba |
2880 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2881 | |
d9898ee8 |
2882 | else |
64ff59ba |
2883 | ac_file='' |
2884 | fi |
2885 | |
2886 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2887 | echo "${ECHO_T}$ac_file" >&6; } |
2888 | if test -z "$ac_file"; then |
d9898ee8 |
2889 | echo "$as_me: failed program was:" >&5 |
2890 | sed 's/^/| /' conftest.$ac_ext >&5 |
2891 | |
2892 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2893 | See \`config.log' for more details." >&5 |
2894 | echo "$as_me: error: C compiler cannot create executables |
2895 | See \`config.log' for more details." >&2;} |
2896 | { (exit 77); exit 77; }; } |
2897 | fi |
2898 | |
2899 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2900 | |
64ff59ba |
2901 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2902 | # the compiler is broken, or we cross compile. |
64ff59ba |
2903 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2904 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2905 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2906 | # If not cross compiling, check that we can run a simple program. |
2907 | if test "$cross_compiling" != yes; then |
2908 | if { ac_try='./$ac_file' |
64ff59ba |
2909 | { (case "(($ac_try" in |
2910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2911 | *) ac_try_echo=$ac_try;; |
2912 | esac |
2913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2914 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2915 | ac_status=$? |
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2917 | (exit $ac_status); }; }; then |
2918 | cross_compiling=no |
2919 | else |
2920 | if test "$cross_compiling" = maybe; then |
2921 | cross_compiling=yes |
2922 | else |
2923 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2924 | If you meant to cross compile, use \`--host'. |
2925 | See \`config.log' for more details." >&5 |
2926 | echo "$as_me: error: cannot run C compiled programs. |
2927 | If you meant to cross compile, use \`--host'. |
2928 | See \`config.log' for more details." >&2;} |
2929 | { (exit 1); exit 1; }; } |
2930 | fi |
2931 | fi |
2932 | fi |
64ff59ba |
2933 | { echo "$as_me:$LINENO: result: yes" >&5 |
2934 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2935 | |
2936 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2937 | ac_clean_files=$ac_clean_files_save |
64ff59ba |
2938 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2939 | # the compiler is broken, or we cross compile. |
64ff59ba |
2940 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2941 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2942 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2943 | echo "${ECHO_T}$cross_compiling" >&6; } |
2944 | |
2945 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2946 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2947 | if { (ac_try="$ac_link" |
2948 | case "(($ac_try" in |
2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2950 | *) ac_try_echo=$ac_try;; |
2951 | esac |
2952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2953 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2954 | ac_status=$? |
2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2956 | (exit $ac_status); }; then |
2957 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2958 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2959 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2960 | # `rm'. |
2961 | for ac_file in conftest.exe conftest conftest.*; do |
2962 | test -f "$ac_file" || continue |
2963 | case $ac_file in |
64ff59ba |
2964 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2965 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2966 | break;; |
2967 | * ) break;; |
2968 | esac |
2969 | done |
2970 | else |
2971 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2972 | See \`config.log' for more details." >&5 |
2973 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2974 | See \`config.log' for more details." >&2;} |
2975 | { (exit 1); exit 1; }; } |
2976 | fi |
2977 | |
2978 | rm -f conftest$ac_cv_exeext |
64ff59ba |
2979 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2980 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
2981 | |
2982 | rm -f conftest.$ac_ext |
2983 | EXEEXT=$ac_cv_exeext |
2984 | ac_exeext=$EXEEXT |
64ff59ba |
2985 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2986 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
2987 | if test "${ac_cv_objext+set}" = set; then |
2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2989 | else |
2990 | cat >conftest.$ac_ext <<_ACEOF |
2991 | /* confdefs.h. */ |
2992 | _ACEOF |
2993 | cat confdefs.h >>conftest.$ac_ext |
2994 | cat >>conftest.$ac_ext <<_ACEOF |
2995 | /* end confdefs.h. */ |
2996 | |
2997 | int |
2998 | main () |
2999 | { |
3000 | |
3001 | ; |
3002 | return 0; |
3003 | } |
3004 | _ACEOF |
3005 | rm -f conftest.o conftest.obj |
64ff59ba |
3006 | if { (ac_try="$ac_compile" |
3007 | case "(($ac_try" in |
3008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3009 | *) ac_try_echo=$ac_try;; |
3010 | esac |
3011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3012 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
3013 | ac_status=$? |
3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3015 | (exit $ac_status); }; then |
64ff59ba |
3016 | for ac_file in conftest.o conftest.obj conftest.*; do |
3017 | test -f "$ac_file" || continue; |
d9898ee8 |
3018 | case $ac_file in |
64ff59ba |
3019 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
3020 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3021 | break;; |
3022 | esac |
3023 | done |
3024 | else |
3025 | echo "$as_me: failed program was:" >&5 |
3026 | sed 's/^/| /' conftest.$ac_ext >&5 |
3027 | |
3028 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3029 | See \`config.log' for more details." >&5 |
3030 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3031 | See \`config.log' for more details." >&2;} |
3032 | { (exit 1); exit 1; }; } |
3033 | fi |
3034 | |
3035 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3036 | fi |
64ff59ba |
3037 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3038 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3039 | OBJEXT=$ac_cv_objext |
3040 | ac_objext=$OBJEXT |
64ff59ba |
3041 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3042 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3043 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3045 | else |
3046 | cat >conftest.$ac_ext <<_ACEOF |
3047 | /* confdefs.h. */ |
3048 | _ACEOF |
3049 | cat confdefs.h >>conftest.$ac_ext |
3050 | cat >>conftest.$ac_ext <<_ACEOF |
3051 | /* end confdefs.h. */ |
3052 | |
3053 | int |
3054 | main () |
3055 | { |
3056 | #ifndef __GNUC__ |
3057 | choke me |
3058 | #endif |
3059 | |
3060 | ; |
3061 | return 0; |
3062 | } |
3063 | _ACEOF |
3064 | rm -f conftest.$ac_objext |
64ff59ba |
3065 | if { (ac_try="$ac_compile" |
3066 | case "(($ac_try" in |
3067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3068 | *) ac_try_echo=$ac_try;; |
3069 | esac |
3070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3071 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3072 | ac_status=$? |
3073 | grep -v '^ *+' conftest.er1 >conftest.err |
3074 | rm -f conftest.er1 |
3075 | cat conftest.err >&5 |
3076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3077 | (exit $ac_status); } && { |
3078 | test -z "$ac_c_werror_flag" || |
3079 | test ! -s conftest.err |
3080 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3081 | ac_compiler_gnu=yes |
3082 | else |
3083 | echo "$as_me: failed program was:" >&5 |
3084 | sed 's/^/| /' conftest.$ac_ext >&5 |
3085 | |
64ff59ba |
3086 | ac_compiler_gnu=no |
d9898ee8 |
3087 | fi |
64ff59ba |
3088 | |
3089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3090 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3091 | |
3092 | fi |
64ff59ba |
3093 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3094 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3095 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3096 | ac_test_CFLAGS=${CFLAGS+set} |
3097 | ac_save_CFLAGS=$CFLAGS |
64ff59ba |
3098 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3099 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3100 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3102 | else |
64ff59ba |
3103 | ac_save_c_werror_flag=$ac_c_werror_flag |
3104 | ac_c_werror_flag=yes |
3105 | ac_cv_prog_cc_g=no |
3106 | CFLAGS="-g" |
3107 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3108 | /* confdefs.h. */ |
3109 | _ACEOF |
3110 | cat confdefs.h >>conftest.$ac_ext |
3111 | cat >>conftest.$ac_ext <<_ACEOF |
3112 | /* end confdefs.h. */ |
3113 | |
3114 | int |
3115 | main () |
3116 | { |
3117 | |
3118 | ; |
3119 | return 0; |
3120 | } |
3121 | _ACEOF |
3122 | rm -f conftest.$ac_objext |
64ff59ba |
3123 | if { (ac_try="$ac_compile" |
3124 | case "(($ac_try" in |
3125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3126 | *) ac_try_echo=$ac_try;; |
3127 | esac |
3128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3129 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3130 | ac_status=$? |
3131 | grep -v '^ *+' conftest.er1 >conftest.err |
3132 | rm -f conftest.er1 |
3133 | cat conftest.err >&5 |
3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3135 | (exit $ac_status); } && { |
3136 | test -z "$ac_c_werror_flag" || |
3137 | test ! -s conftest.err |
3138 | } && test -s conftest.$ac_objext; then |
3139 | ac_cv_prog_cc_g=yes |
3140 | else |
3141 | echo "$as_me: failed program was:" >&5 |
3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
3143 | |
3144 | CFLAGS="" |
3145 | cat >conftest.$ac_ext <<_ACEOF |
3146 | /* confdefs.h. */ |
3147 | _ACEOF |
3148 | cat confdefs.h >>conftest.$ac_ext |
3149 | cat >>conftest.$ac_ext <<_ACEOF |
3150 | /* end confdefs.h. */ |
3151 | |
3152 | int |
3153 | main () |
3154 | { |
3155 | |
3156 | ; |
3157 | return 0; |
3158 | } |
3159 | _ACEOF |
3160 | rm -f conftest.$ac_objext |
3161 | if { (ac_try="$ac_compile" |
3162 | case "(($ac_try" in |
3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3164 | *) ac_try_echo=$ac_try;; |
3165 | esac |
3166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3167 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3168 | ac_status=$? |
64ff59ba |
3169 | grep -v '^ *+' conftest.er1 >conftest.err |
3170 | rm -f conftest.er1 |
3171 | cat conftest.err >&5 |
d9898ee8 |
3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3173 | (exit $ac_status); } && { |
3174 | test -z "$ac_c_werror_flag" || |
3175 | test ! -s conftest.err |
3176 | } && test -s conftest.$ac_objext; then |
3177 | : |
3178 | else |
3179 | echo "$as_me: failed program was:" >&5 |
3180 | sed 's/^/| /' conftest.$ac_ext >&5 |
3181 | |
3182 | ac_c_werror_flag=$ac_save_c_werror_flag |
3183 | CFLAGS="-g" |
3184 | cat >conftest.$ac_ext <<_ACEOF |
3185 | /* confdefs.h. */ |
3186 | _ACEOF |
3187 | cat confdefs.h >>conftest.$ac_ext |
3188 | cat >>conftest.$ac_ext <<_ACEOF |
3189 | /* end confdefs.h. */ |
3190 | |
3191 | int |
3192 | main () |
3193 | { |
3194 | |
3195 | ; |
3196 | return 0; |
3197 | } |
3198 | _ACEOF |
3199 | rm -f conftest.$ac_objext |
3200 | if { (ac_try="$ac_compile" |
3201 | case "(($ac_try" in |
3202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3203 | *) ac_try_echo=$ac_try;; |
3204 | esac |
3205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3206 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3207 | ac_status=$? |
64ff59ba |
3208 | grep -v '^ *+' conftest.er1 >conftest.err |
3209 | rm -f conftest.er1 |
3210 | cat conftest.err >&5 |
d9898ee8 |
3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3212 | (exit $ac_status); } && { |
3213 | test -z "$ac_c_werror_flag" || |
3214 | test ! -s conftest.err |
3215 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3216 | ac_cv_prog_cc_g=yes |
3217 | else |
3218 | echo "$as_me: failed program was:" >&5 |
3219 | sed 's/^/| /' conftest.$ac_ext >&5 |
3220 | |
64ff59ba |
3221 | |
3222 | fi |
3223 | |
3224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3225 | fi |
3226 | |
3227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3228 | fi |
64ff59ba |
3229 | |
3230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3231 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3232 | fi |
64ff59ba |
3233 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3234 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3235 | if test "$ac_test_CFLAGS" = set; then |
3236 | CFLAGS=$ac_save_CFLAGS |
3237 | elif test $ac_cv_prog_cc_g = yes; then |
3238 | if test "$GCC" = yes; then |
3239 | CFLAGS="-g -O2" |
3240 | else |
3241 | CFLAGS="-g" |
3242 | fi |
3243 | else |
3244 | if test "$GCC" = yes; then |
3245 | CFLAGS="-O2" |
3246 | else |
3247 | CFLAGS= |
3248 | fi |
3249 | fi |
64ff59ba |
3250 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3251 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3252 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3254 | else |
64ff59ba |
3255 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3256 | ac_save_CC=$CC |
3257 | cat >conftest.$ac_ext <<_ACEOF |
3258 | /* confdefs.h. */ |
3259 | _ACEOF |
3260 | cat confdefs.h >>conftest.$ac_ext |
3261 | cat >>conftest.$ac_ext <<_ACEOF |
3262 | /* end confdefs.h. */ |
3263 | #include <stdarg.h> |
3264 | #include <stdio.h> |
3265 | #include <sys/types.h> |
3266 | #include <sys/stat.h> |
3267 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3268 | struct buf { int x; }; |
3269 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3270 | static char *e (p, i) |
3271 | char **p; |
3272 | int i; |
3273 | { |
3274 | return p[i]; |
3275 | } |
3276 | static char *f (char * (*g) (char **, int), char **p, ...) |
3277 | { |
3278 | char *s; |
3279 | va_list v; |
3280 | va_start (v,p); |
3281 | s = g (p, va_arg (v,int)); |
3282 | va_end (v); |
3283 | return s; |
3284 | } |
3285 | |
3286 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3287 | function prototypes and stuff, but not '\xHH' hex character constants. |
3288 | These don't provoke an error unfortunately, instead are silently treated |
64ff59ba |
3289 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3290 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3291 | array size at least. It's necessary to write '\x00'==0 to get something |
64ff59ba |
3292 | that's true only with -std. */ |
d9898ee8 |
3293 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3294 | |
64ff59ba |
3295 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3296 | inside strings and character constants. */ |
3297 | #define FOO(x) 'x' |
3298 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3299 | |
d9898ee8 |
3300 | int test (int i, double x); |
3301 | struct s1 {int (*f) (int a);}; |
3302 | struct s2 {int (*f) (double a);}; |
3303 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3304 | int argc; |
3305 | char **argv; |
3306 | int |
3307 | main () |
3308 | { |
3309 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3310 | ; |
3311 | return 0; |
3312 | } |
3313 | _ACEOF |
64ff59ba |
3314 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3315 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3316 | do |
3317 | CC="$ac_save_CC $ac_arg" |
3318 | rm -f conftest.$ac_objext |
64ff59ba |
3319 | if { (ac_try="$ac_compile" |
3320 | case "(($ac_try" in |
3321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3322 | *) ac_try_echo=$ac_try;; |
3323 | esac |
3324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3325 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3326 | ac_status=$? |
3327 | grep -v '^ *+' conftest.er1 >conftest.err |
3328 | rm -f conftest.er1 |
3329 | cat conftest.err >&5 |
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3331 | (exit $ac_status); } && { |
3332 | test -z "$ac_c_werror_flag" || |
3333 | test ! -s conftest.err |
3334 | } && test -s conftest.$ac_objext; then |
3335 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3336 | else |
3337 | echo "$as_me: failed program was:" >&5 |
3338 | sed 's/^/| /' conftest.$ac_ext >&5 |
3339 | |
64ff59ba |
3340 | |
d9898ee8 |
3341 | fi |
64ff59ba |
3342 | |
3343 | rm -f core conftest.err conftest.$ac_objext |
3344 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3345 | done |
64ff59ba |
3346 | rm -f conftest.$ac_ext |
d9898ee8 |
3347 | CC=$ac_save_CC |
3348 | |
3349 | fi |
64ff59ba |
3350 | # AC_CACHE_VAL |
3351 | case "x$ac_cv_prog_cc_c89" in |
3352 | x) |
3353 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3354 | echo "${ECHO_T}none needed" >&6; } ;; |
3355 | xno) |
3356 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3357 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3358 | *) |
64ff59ba |
3359 | CC="$CC $ac_cv_prog_cc_c89" |
3360 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3361 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3362 | esac |
3363 | |
d9898ee8 |
3364 | |
d9898ee8 |
3365 | ac_ext=c |
3366 | ac_cpp='$CPP $CPPFLAGS' |
3367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3370 | DEPDIR="${am__leading_dot}deps" |
3371 | |
64ff59ba |
3372 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3373 | |
3374 | |
3375 | am_make=${MAKE-make} |
3376 | cat > confinc << 'END' |
3377 | am__doit: |
3378 | @echo done |
3379 | .PHONY: am__doit |
3380 | END |
3381 | # If we don't find an include directive, just comment out the code. |
64ff59ba |
3382 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3383 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3384 | am__include="#" |
3385 | am__quote= |
3386 | _am_result=none |
3387 | # First try GNU make style include. |
3388 | echo "include confinc" > confmf |
3389 | # We grep out `Entering directory' and `Leaving directory' |
3390 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3391 | # In particular we don't look at `^make:' because GNU make might |
3392 | # be invoked under some other name (usually "gmake"), in which |
3393 | # case it prints its new name instead of `make'. |
3394 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3395 | am__include=include |
3396 | am__quote= |
3397 | _am_result=GNU |
3398 | fi |
3399 | # Now try BSD make style include. |
3400 | if test "$am__include" = "#"; then |
3401 | echo '.include "confinc"' > confmf |
3402 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3403 | am__include=.include |
3404 | am__quote="\"" |
3405 | _am_result=BSD |
3406 | fi |
3407 | fi |
3408 | |
3409 | |
64ff59ba |
3410 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3411 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3412 | rm -f confinc confmf |
3413 | |
64ff59ba |
3414 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3415 | if test "${enable_dependency_tracking+set}" = set; then |
64ff59ba |
3416 | enableval=$enable_dependency_tracking; |
3417 | fi |
d9898ee8 |
3418 | |
d9898ee8 |
3419 | if test "x$enable_dependency_tracking" != xno; then |
3420 | am_depcomp="$ac_aux_dir/depcomp" |
3421 | AMDEPBACKSLASH='\' |
3422 | fi |
64ff59ba |
3423 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3424 | AMDEP_TRUE= |
3425 | AMDEP_FALSE='#' |
3426 | else |
3427 | AMDEP_TRUE='#' |
3428 | AMDEP_FALSE= |
3429 | fi |
3430 | |
3431 | |
3432 | |
d9898ee8 |
3433 | depcc="$CC" am_compiler_list= |
3434 | |
64ff59ba |
3435 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3436 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3437 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3439 | else |
3440 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3441 | # We make a subdir and do the tests there. Otherwise we can end up |
3442 | # making bogus files that we don't know about and never remove. For |
3443 | # instance it was reported that on HP-UX the gcc test will end up |
3444 | # making a dummy file named `D' -- because `-MD' means `put the output |
3445 | # in D'. |
3446 | mkdir conftest.dir |
3447 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3448 | # using a relative directory. |
3449 | cp "$am_depcomp" conftest.dir |
3450 | cd conftest.dir |
3451 | # We will build objects and dependencies in a subdirectory because |
3452 | # it helps to detect inapplicable dependency modes. For instance |
3453 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3454 | # side effect of compilation, but ICC will put the dependencies in |
3455 | # the current directory while Tru64 will put them in the object |
3456 | # directory. |
3457 | mkdir sub |
3458 | |
3459 | am_cv_CC_dependencies_compiler_type=none |
3460 | if test "$am_compiler_list" = ""; then |
3461 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3462 | fi |
3463 | for depmode in $am_compiler_list; do |
3464 | # Setup a source with many dependencies, because some compilers |
3465 | # like to wrap large dependency lists on column 80 (with \), and |
3466 | # we should not choose a depcomp mode which is confused by this. |
3467 | # |
3468 | # We need to recreate these files for each test, as the compiler may |
3469 | # overwrite some of them when testing with obscure command lines. |
3470 | # This happens at least with the AIX C compiler. |
3471 | : > sub/conftest.c |
3472 | for i in 1 2 3 4 5 6; do |
3473 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3474 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3475 | # Solaris 8's {/usr,}/bin/sh. |
3476 | touch sub/conftst$i.h |
3477 | done |
3478 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3479 | |
3480 | case $depmode in |
3481 | nosideeffect) |
3482 | # after this tag, mechanisms are not by side-effect, so they'll |
3483 | # only be used when explicitly requested |
3484 | if test "x$enable_dependency_tracking" = xyes; then |
3485 | continue |
3486 | else |
3487 | break |
3488 | fi |
3489 | ;; |
3490 | none) break ;; |
3491 | esac |
3492 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3493 | # mode. It turns out that the SunPro C++ compiler does not properly |
3494 | # handle `-M -o', and we need to detect this. |
3495 | if depmode=$depmode \ |
3496 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3497 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3498 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3499 | >/dev/null 2>conftest.err && |
64ff59ba |
3500 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3501 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3502 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3503 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3504 | # icc doesn't choke on unknown options, it will just issue warnings |
3505 | # or remarks (even with -Werror). So we grep stderr for any message |
3506 | # that says an option was ignored or not supported. |
3507 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3508 | # icc: Command line warning: ignoring option '-M'; no argument required |
3509 | # The diagnosis changed in icc 8.0: |
3510 | # icc: Command line remark: option '-MP' not supported |
3511 | if (grep 'ignoring option' conftest.err || |
3512 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3513 | am_cv_CC_dependencies_compiler_type=$depmode |
3514 | break |
3515 | fi |
3516 | fi |
3517 | done |
3518 | |
3519 | cd .. |
3520 | rm -rf conftest.dir |
3521 | else |
3522 | am_cv_CC_dependencies_compiler_type=none |
3523 | fi |
3524 | |
3525 | fi |
64ff59ba |
3526 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3527 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3528 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3529 | |
64ff59ba |
3530 | if |
d9898ee8 |
3531 | test "x$enable_dependency_tracking" != xno \ |
3532 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3533 | am__fastdepCC_TRUE= |
3534 | am__fastdepCC_FALSE='#' |
3535 | else |
3536 | am__fastdepCC_TRUE='#' |
3537 | am__fastdepCC_FALSE= |
3538 | fi |
3539 | |
3540 | |
3541 | |
64ff59ba |
3542 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3543 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
d9898ee8 |
3544 | if test "${ac_cv_c_const+set}" = set; then |
3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3546 | else |
3547 | cat >conftest.$ac_ext <<_ACEOF |
3548 | /* confdefs.h. */ |
3549 | _ACEOF |
3550 | cat confdefs.h >>conftest.$ac_ext |
3551 | cat >>conftest.$ac_ext <<_ACEOF |
3552 | /* end confdefs.h. */ |
3553 | |
3554 | int |
3555 | main () |
3556 | { |
3557 | /* FIXME: Include the comments suggested by Paul. */ |
3558 | #ifndef __cplusplus |
3559 | /* Ultrix mips cc rejects this. */ |
3560 | typedef int charset[2]; |
64ff59ba |
3561 | const charset cs; |
d9898ee8 |
3562 | /* SunOS 4.1.1 cc rejects this. */ |
64ff59ba |
3563 | char const *const *pcpcc; |
3564 | char **ppc; |
d9898ee8 |
3565 | /* NEC SVR4.0.2 mips cc rejects this. */ |
3566 | struct point {int x, y;}; |
3567 | static struct point const zero = {0,0}; |
3568 | /* AIX XL C 1.02.0.0 rejects this. |
3569 | It does not let you subtract one const X* pointer from another in |
3570 | an arm of an if-expression whose if-part is not a constant |
3571 | expression */ |
3572 | const char *g = "string"; |
64ff59ba |
3573 | pcpcc = &g + (g ? g-g : 0); |
d9898ee8 |
3574 | /* HPUX 7.0 cc rejects these. */ |
64ff59ba |
3575 | ++pcpcc; |
3576 | ppc = (char**) pcpcc; |
3577 | pcpcc = (char const *const *) ppc; |
d9898ee8 |
3578 | { /* SCO 3.2v4 cc rejects this. */ |
3579 | char *t; |
3580 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
3581 | |
3582 | *t++ = 0; |
64ff59ba |
3583 | if (s) return 0; |
d9898ee8 |
3584 | } |
3585 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
3586 | int x[] = {25, 17}; |
3587 | const int *foo = &x[0]; |
3588 | ++foo; |
3589 | } |
3590 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
3591 | typedef const int *iptr; |
3592 | iptr p = 0; |
3593 | ++p; |
3594 | } |
3595 | { /* AIX XL C 1.02.0.0 rejects this saying |
3596 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
3597 | struct s { int j; const int *ap[3]; }; |
3598 | struct s *b; b->j = 5; |
3599 | } |
3600 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
3601 | const int foo = 10; |
64ff59ba |
3602 | if (!foo) return 0; |
d9898ee8 |
3603 | } |
64ff59ba |
3604 | return !cs[0] && !zero.x; |
d9898ee8 |
3605 | #endif |
3606 | |
3607 | ; |
3608 | return 0; |
3609 | } |
3610 | _ACEOF |
3611 | rm -f conftest.$ac_objext |
64ff59ba |
3612 | if { (ac_try="$ac_compile" |
3613 | case "(($ac_try" in |
3614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3615 | *) ac_try_echo=$ac_try;; |
3616 | esac |
3617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3618 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3619 | ac_status=$? |
3620 | grep -v '^ *+' conftest.er1 >conftest.err |
3621 | rm -f conftest.er1 |
3622 | cat conftest.err >&5 |
3623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3624 | (exit $ac_status); } && { |
3625 | test -z "$ac_c_werror_flag" || |
3626 | test ! -s conftest.err |
3627 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3628 | ac_cv_c_const=yes |
3629 | else |
3630 | echo "$as_me: failed program was:" >&5 |
3631 | sed 's/^/| /' conftest.$ac_ext >&5 |
3632 | |
64ff59ba |
3633 | ac_cv_c_const=no |
d9898ee8 |
3634 | fi |
64ff59ba |
3635 | |
3636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3637 | fi |
64ff59ba |
3638 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3639 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
d9898ee8 |
3640 | if test $ac_cv_c_const = no; then |
3641 | |
3642 | cat >>confdefs.h <<\_ACEOF |
3643 | #define const |
3644 | _ACEOF |
3645 | |
3646 | fi |
3647 | |
64ff59ba |
3648 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3649 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
d9898ee8 |
3650 | if test "${ac_cv_c_inline+set}" = set; then |
3651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3652 | else |
3653 | ac_cv_c_inline=no |
3654 | for ac_kw in inline __inline__ __inline; do |
3655 | cat >conftest.$ac_ext <<_ACEOF |
3656 | /* confdefs.h. */ |
3657 | _ACEOF |
3658 | cat confdefs.h >>conftest.$ac_ext |
3659 | cat >>conftest.$ac_ext <<_ACEOF |
3660 | /* end confdefs.h. */ |
3661 | #ifndef __cplusplus |
3662 | typedef int foo_t; |
3663 | static $ac_kw foo_t static_foo () {return 0; } |
3664 | $ac_kw foo_t foo () {return 0; } |
3665 | #endif |
3666 | |
3667 | _ACEOF |
3668 | rm -f conftest.$ac_objext |
64ff59ba |
3669 | if { (ac_try="$ac_compile" |
3670 | case "(($ac_try" in |
3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3672 | *) ac_try_echo=$ac_try;; |
3673 | esac |
3674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3675 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3676 | ac_status=$? |
3677 | grep -v '^ *+' conftest.er1 >conftest.err |
3678 | rm -f conftest.er1 |
3679 | cat conftest.err >&5 |
3680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
3681 | (exit $ac_status); } && { |
3682 | test -z "$ac_c_werror_flag" || |
3683 | test ! -s conftest.err |
3684 | } && test -s conftest.$ac_objext; then |
3685 | ac_cv_c_inline=$ac_kw |
d9898ee8 |
3686 | else |
3687 | echo "$as_me: failed program was:" >&5 |
3688 | sed 's/^/| /' conftest.$ac_ext >&5 |
3689 | |
64ff59ba |
3690 | |
d9898ee8 |
3691 | fi |
64ff59ba |
3692 | |
3693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3694 | test "$ac_cv_c_inline" != no && break |
d9898ee8 |
3695 | done |
3696 | |
3697 | fi |
64ff59ba |
3698 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3699 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
d9898ee8 |
3700 | |
3701 | |
3702 | case $ac_cv_c_inline in |
3703 | inline | yes) ;; |
3704 | *) |
3705 | case $ac_cv_c_inline in |
3706 | no) ac_val=;; |
3707 | *) ac_val=$ac_cv_c_inline;; |
3708 | esac |
3709 | cat >>confdefs.h <<_ACEOF |
3710 | #ifndef __cplusplus |
3711 | #define inline $ac_val |
3712 | #endif |
3713 | _ACEOF |
3714 | ;; |
3715 | esac |
3716 | |
3717 | |
3718 | |
3719 | ## ----------------------- ## |
3720 | ## Libtool initialisation. ## |
3721 | ## ----------------------- ## |
3722 | |
3723 | |
64ff59ba |
3724 | # Check whether --enable-shared was given. |
d9898ee8 |
3725 | if test "${enable_shared+set}" = set; then |
64ff59ba |
3726 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
3727 | case $enableval in |
3728 | yes) enable_shared=yes ;; |
3729 | no) enable_shared=no ;; |
3730 | *) |
3731 | enable_shared=no |
3732 | # Look at the argument we got. We use all the common list separators. |
3733 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3734 | for pkg in $enableval; do |
3735 | IFS="$lt_save_ifs" |
3736 | if test "X$pkg" = "X$p"; then |
3737 | enable_shared=yes |
3738 | fi |
3739 | done |
3740 | IFS="$lt_save_ifs" |
3741 | ;; |
3742 | esac |
3743 | else |
3744 | enable_shared=yes |
64ff59ba |
3745 | fi |
3746 | |
d9898ee8 |
3747 | |
64ff59ba |
3748 | # Check whether --enable-static was given. |
d9898ee8 |
3749 | if test "${enable_static+set}" = set; then |
64ff59ba |
3750 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
3751 | case $enableval in |
3752 | yes) enable_static=yes ;; |
3753 | no) enable_static=no ;; |
3754 | *) |
3755 | enable_static=no |
3756 | # Look at the argument we got. We use all the common list separators. |
3757 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3758 | for pkg in $enableval; do |
3759 | IFS="$lt_save_ifs" |
3760 | if test "X$pkg" = "X$p"; then |
3761 | enable_static=yes |
3762 | fi |
3763 | done |
3764 | IFS="$lt_save_ifs" |
3765 | ;; |
3766 | esac |
3767 | else |
3768 | enable_static=yes |
64ff59ba |
3769 | fi |
3770 | |
d9898ee8 |
3771 | |
64ff59ba |
3772 | # Check whether --enable-fast-install was given. |
d9898ee8 |
3773 | if test "${enable_fast_install+set}" = set; then |
64ff59ba |
3774 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
3775 | case $enableval in |
3776 | yes) enable_fast_install=yes ;; |
3777 | no) enable_fast_install=no ;; |
3778 | *) |
3779 | enable_fast_install=no |
3780 | # Look at the argument we got. We use all the common list separators. |
3781 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3782 | for pkg in $enableval; do |
3783 | IFS="$lt_save_ifs" |
3784 | if test "X$pkg" = "X$p"; then |
3785 | enable_fast_install=yes |
3786 | fi |
3787 | done |
3788 | IFS="$lt_save_ifs" |
3789 | ;; |
3790 | esac |
3791 | else |
3792 | enable_fast_install=yes |
64ff59ba |
3793 | fi |
3794 | |
d9898ee8 |
3795 | |
3796 | # Make sure we can run config.sub. |
64ff59ba |
3797 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3798 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3799 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
3800 | { (exit 1); exit 1; }; } |
3801 | |
64ff59ba |
3802 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3803 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
3804 | if test "${ac_cv_build+set}" = set; then |
3805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3806 | else |
64ff59ba |
3807 | ac_build_alias=$build_alias |
3808 | test "x$ac_build_alias" = x && |
3809 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3810 | test "x$ac_build_alias" = x && |
d9898ee8 |
3811 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3812 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3813 | { (exit 1); exit 1; }; } |
64ff59ba |
3814 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3815 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3816 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
3817 | { (exit 1); exit 1; }; } |
3818 | |
3819 | fi |
64ff59ba |
3820 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3821 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3822 | case $ac_cv_build in |
3823 | *-*-*) ;; |
3824 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3825 | echo "$as_me: error: invalid value of canonical build" >&2;} |
3826 | { (exit 1); exit 1; }; };; |
3827 | esac |
d9898ee8 |
3828 | build=$ac_cv_build |
64ff59ba |
3829 | ac_save_IFS=$IFS; IFS='-' |
3830 | set x $ac_cv_build |
3831 | shift |
3832 | build_cpu=$1 |
3833 | build_vendor=$2 |
3834 | shift; shift |
3835 | # Remember, the first character of IFS is used to create $*, |
3836 | # except with old shells: |
3837 | build_os=$* |
3838 | IFS=$ac_save_IFS |
3839 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3840 | |
3841 | |
3842 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3843 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
3844 | if test "${ac_cv_host+set}" = set; then |
3845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3846 | else |
64ff59ba |
3847 | if test "x$host_alias" = x; then |
3848 | ac_cv_host=$ac_cv_build |
3849 | else |
3850 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3851 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3852 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
3853 | { (exit 1); exit 1; }; } |
64ff59ba |
3854 | fi |
d9898ee8 |
3855 | |
3856 | fi |
64ff59ba |
3857 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3858 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3859 | case $ac_cv_host in |
3860 | *-*-*) ;; |
3861 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3862 | echo "$as_me: error: invalid value of canonical host" >&2;} |
3863 | { (exit 1); exit 1; }; };; |
3864 | esac |
d9898ee8 |
3865 | host=$ac_cv_host |
64ff59ba |
3866 | ac_save_IFS=$IFS; IFS='-' |
3867 | set x $ac_cv_host |
3868 | shift |
3869 | host_cpu=$1 |
3870 | host_vendor=$2 |
3871 | shift; shift |
3872 | # Remember, the first character of IFS is used to create $*, |
3873 | # except with old shells: |
3874 | host_os=$* |
3875 | IFS=$ac_save_IFS |
3876 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3877 | |
3878 | |
3879 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3880 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
3881 | if test "${lt_cv_path_SED+set}" = set; then |
3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3883 | else |
3884 | # Loop through the user's path and test for sed and gsed. |
3885 | # Then use that list of sed's as ones to test for truncation. |
3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3887 | for as_dir in $PATH |
3888 | do |
3889 | IFS=$as_save_IFS |
3890 | test -z "$as_dir" && as_dir=. |
3891 | for lt_ac_prog in sed gsed; do |
3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
0fde1ce3 |
3893 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3894 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3895 | fi |
3896 | done |
3897 | done |
3898 | done |
3899 | IFS=$as_save_IFS |
3900 | lt_ac_max=0 |
3901 | lt_ac_count=0 |
3902 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3903 | # along with /bin/sed that truncates output. |
3904 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3905 | test ! -f $lt_ac_sed && continue |
3906 | cat /dev/null > conftest.in |
3907 | lt_ac_count=0 |
3908 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3909 | # Check for GNU sed and select it if it is found. |
3910 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3911 | lt_cv_path_SED=$lt_ac_sed |
3912 | break |
3913 | fi |
3914 | while true; do |
3915 | cat conftest.in conftest.in >conftest.tmp |
3916 | mv conftest.tmp conftest.in |
3917 | cp conftest.in conftest.nl |
3918 | echo >>conftest.nl |
3919 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3920 | cmp -s conftest.out conftest.nl || break |
3921 | # 10000 chars as input seems more than enough |
3922 | test $lt_ac_count -gt 10 && break |
3923 | lt_ac_count=`expr $lt_ac_count + 1` |
3924 | if test $lt_ac_count -gt $lt_ac_max; then |
3925 | lt_ac_max=$lt_ac_count |
3926 | lt_cv_path_SED=$lt_ac_sed |
3927 | fi |
3928 | done |
3929 | done |
3930 | |
3931 | fi |
3932 | |
3933 | SED=$lt_cv_path_SED |
3934 | |
64ff59ba |
3935 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3936 | echo "${ECHO_T}$SED" >&6; } |
3937 | |
3938 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3939 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3940 | if test "${ac_cv_path_GREP+set}" = set; then |
3941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3942 | else |
3943 | # Extract the first word of "grep ggrep" to use in msg output |
3944 | if test -z "$GREP"; then |
3945 | set dummy grep ggrep; ac_prog_name=$2 |
3946 | if test "${ac_cv_path_GREP+set}" = set; then |
3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3948 | else |
3949 | ac_path_GREP_found=false |
3950 | # Loop through the user's path and test for each of PROGNAME-LIST |
3951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3952 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3953 | do |
3954 | IFS=$as_save_IFS |
3955 | test -z "$as_dir" && as_dir=. |
3956 | for ac_prog in grep ggrep; do |
3957 | for ac_exec_ext in '' $ac_executable_extensions; do |
3958 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3959 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3960 | # Check for GNU ac_path_GREP and select it if it is found. |
3961 | # Check for GNU $ac_path_GREP |
3962 | case `"$ac_path_GREP" --version 2>&1` in |
3963 | *GNU*) |
3964 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3965 | *) |
3966 | ac_count=0 |
3967 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3968 | while : |
3969 | do |
3970 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3971 | mv "conftest.tmp" "conftest.in" |
3972 | cp "conftest.in" "conftest.nl" |
3973 | echo 'GREP' >> "conftest.nl" |
3974 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3975 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3976 | ac_count=`expr $ac_count + 1` |
3977 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3978 | # Best one so far, save it but keep looking for a better one |
3979 | ac_cv_path_GREP="$ac_path_GREP" |
3980 | ac_path_GREP_max=$ac_count |
3981 | fi |
3982 | # 10*(2^10) chars as input seems more than enough |
3983 | test $ac_count -gt 10 && break |
3984 | done |
3985 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3986 | esac |
3987 | |
3988 | |
3989 | $ac_path_GREP_found && break 3 |
3990 | done |
3991 | done |
3992 | |
3993 | done |
3994 | IFS=$as_save_IFS |
3995 | |
3996 | |
3997 | fi |
3998 | |
3999 | GREP="$ac_cv_path_GREP" |
4000 | if test -z "$GREP"; then |
4001 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4002 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4003 | { (exit 1); exit 1; }; } |
4004 | fi |
4005 | |
4006 | else |
4007 | ac_cv_path_GREP=$GREP |
4008 | fi |
4009 | |
4010 | |
4011 | fi |
4012 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4013 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
4014 | GREP="$ac_cv_path_GREP" |
4015 | |
d9898ee8 |
4016 | |
64ff59ba |
4017 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
4018 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
4019 | if test "${ac_cv_path_EGREP+set}" = set; then |
4020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4021 | else |
4022 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4023 | then ac_cv_path_EGREP="$GREP -E" |
4024 | else |
4025 | # Extract the first word of "egrep" to use in msg output |
4026 | if test -z "$EGREP"; then |
4027 | set dummy egrep; ac_prog_name=$2 |
4028 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
4029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4030 | else |
64ff59ba |
4031 | ac_path_EGREP_found=false |
4032 | # Loop through the user's path and test for each of PROGNAME-LIST |
4033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4034 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4035 | do |
4036 | IFS=$as_save_IFS |
4037 | test -z "$as_dir" && as_dir=. |
4038 | for ac_prog in egrep; do |
4039 | for ac_exec_ext in '' $ac_executable_extensions; do |
4040 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4041 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4042 | # Check for GNU ac_path_EGREP and select it if it is found. |
4043 | # Check for GNU $ac_path_EGREP |
4044 | case `"$ac_path_EGREP" --version 2>&1` in |
4045 | *GNU*) |
4046 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4047 | *) |
4048 | ac_count=0 |
4049 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
4050 | while : |
4051 | do |
4052 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4053 | mv "conftest.tmp" "conftest.in" |
4054 | cp "conftest.in" "conftest.nl" |
4055 | echo 'EGREP' >> "conftest.nl" |
4056 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4057 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4058 | ac_count=`expr $ac_count + 1` |
4059 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4060 | # Best one so far, save it but keep looking for a better one |
4061 | ac_cv_path_EGREP="$ac_path_EGREP" |
4062 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
4063 | fi |
64ff59ba |
4064 | # 10*(2^10) chars as input seems more than enough |
4065 | test $ac_count -gt 10 && break |
4066 | done |
4067 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4068 | esac |
4069 | |
4070 | |
4071 | $ac_path_EGREP_found && break 3 |
4072 | done |
4073 | done |
4074 | |
4075 | done |
4076 | IFS=$as_save_IFS |
4077 | |
4078 | |
4079 | fi |
4080 | |
4081 | EGREP="$ac_cv_path_EGREP" |
4082 | if test -z "$EGREP"; then |
4083 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4084 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4085 | { (exit 1); exit 1; }; } |
4086 | fi |
4087 | |
4088 | else |
4089 | ac_cv_path_EGREP=$EGREP |
d9898ee8 |
4090 | fi |
64ff59ba |
4091 | |
4092 | |
4093 | fi |
4094 | fi |
4095 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4096 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4097 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
4098 | |
4099 | |
4100 | |
64ff59ba |
4101 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4102 | if test "${with_gnu_ld+set}" = set; then |
64ff59ba |
4103 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4104 | else |
4105 | with_gnu_ld=no |
64ff59ba |
4106 | fi |
4107 | |
d9898ee8 |
4108 | ac_prog=ld |
4109 | if test "$GCC" = yes; then |
4110 | # Check if gcc -print-prog-name=ld gives a path. |
64ff59ba |
4111 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4112 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4113 | case $host in |
4114 | *-*-mingw*) |
4115 | # gcc leaves a trailing carriage return which upsets mingw |
4116 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4117 | *) |
4118 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4119 | esac |
4120 | case $ac_prog in |
4121 | # Accept absolute paths. |
4122 | [\\/]* | ?:[\\/]*) |
4123 | re_direlt='/[^/][^/]*/\.\./' |
4124 | # Canonicalize the pathname of ld |
4125 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4126 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4127 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4128 | done |
4129 | test -z "$LD" && LD="$ac_prog" |
4130 | ;; |
4131 | "") |
4132 | # If it fails, then pretend we aren't using GCC. |
4133 | ac_prog=ld |
4134 | ;; |
4135 | *) |
4136 | # If it is relative, then search for the first ld in PATH. |
4137 | with_gnu_ld=unknown |
4138 | ;; |
4139 | esac |
4140 | elif test "$with_gnu_ld" = yes; then |
64ff59ba |
4141 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4142 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4143 | else |
64ff59ba |
4144 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4145 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4146 | fi |
4147 | if test "${lt_cv_path_LD+set}" = set; then |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4149 | else |
4150 | if test -z "$LD"; then |
4151 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4152 | for ac_dir in $PATH; do |
4153 | IFS="$lt_save_ifs" |
4154 | test -z "$ac_dir" && ac_dir=. |
4155 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4156 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4157 | # Check to see if the program is GNU ld. I'd rather use --version, |
4158 | # but apparently some variants of GNU ld only accept -v. |
4159 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4160 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4161 | *GNU* | *'with BFD'*) |
4162 | test "$with_gnu_ld" != no && break |
4163 | ;; |
4164 | *) |
4165 | test "$with_gnu_ld" != yes && break |
4166 | ;; |
4167 | esac |
4168 | fi |
4169 | done |
4170 | IFS="$lt_save_ifs" |
4171 | else |
4172 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4173 | fi |
4174 | fi |
4175 | |
4176 | LD="$lt_cv_path_LD" |
4177 | if test -n "$LD"; then |
64ff59ba |
4178 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4179 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4180 | else |
64ff59ba |
4181 | { echo "$as_me:$LINENO: result: no" >&5 |
4182 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4183 | fi |
4184 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4185 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4186 | { (exit 1); exit 1; }; } |
64ff59ba |
4187 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4188 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4189 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4191 | else |
4192 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4193 | case `$LD -v 2>&1 </dev/null` in |
4194 | *GNU* | *'with BFD'*) |
4195 | lt_cv_prog_gnu_ld=yes |
4196 | ;; |
4197 | *) |
4198 | lt_cv_prog_gnu_ld=no |
4199 | ;; |
4200 | esac |
4201 | fi |
64ff59ba |
4202 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4203 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4204 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4205 | |
4206 | |
64ff59ba |
4207 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4208 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4209 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4211 | else |
4212 | lt_cv_ld_reload_flag='-r' |
4213 | fi |
64ff59ba |
4214 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4215 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4216 | reload_flag=$lt_cv_ld_reload_flag |
4217 | case $reload_flag in |
4218 | "" | " "*) ;; |
4219 | *) reload_flag=" $reload_flag" ;; |
4220 | esac |
4221 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4222 | case $host_os in |
4223 | darwin*) |
4224 | if test "$GCC" = yes; then |
4225 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4226 | else |
4227 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4228 | fi |
4229 | ;; |
4230 | esac |
4231 | |
64ff59ba |
4232 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4233 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4234 | if test "${lt_cv_path_NM+set}" = set; then |
4235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4236 | else |
4237 | if test -n "$NM"; then |
4238 | # Let the user override the test. |
4239 | lt_cv_path_NM="$NM" |
4240 | else |
4241 | lt_nm_to_check="${ac_tool_prefix}nm" |
4242 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4243 | lt_nm_to_check="$lt_nm_to_check nm" |
4244 | fi |
4245 | for lt_tmp_nm in $lt_nm_to_check; do |
4246 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4247 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4248 | IFS="$lt_save_ifs" |
4249 | test -z "$ac_dir" && ac_dir=. |
4250 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4251 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4252 | # Check to see if the nm accepts a BSD-compat flag. |
4253 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4254 | # nm: unknown option "B" ignored |
4255 | # Tru64's nm complains that /dev/null is an invalid object file |
4256 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4257 | */dev/null* | *'Invalid file or object type'*) |
4258 | lt_cv_path_NM="$tmp_nm -B" |
4259 | break |
4260 | ;; |
4261 | *) |
4262 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4263 | */dev/null*) |
4264 | lt_cv_path_NM="$tmp_nm -p" |
4265 | break |
4266 | ;; |
4267 | *) |
4268 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4269 | continue # so that we can try to find one that supports BSD flags |
4270 | ;; |
4271 | esac |
4272 | ;; |
4273 | esac |
4274 | fi |
4275 | done |
4276 | IFS="$lt_save_ifs" |
4277 | done |
4278 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4279 | fi |
4280 | fi |
64ff59ba |
4281 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4282 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4283 | NM="$lt_cv_path_NM" |
4284 | |
64ff59ba |
4285 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4286 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
4287 | LN_S=$as_ln_s |
4288 | if test "$LN_S" = "ln -s"; then |
64ff59ba |
4289 | { echo "$as_me:$LINENO: result: yes" >&5 |
4290 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
4291 | else |
64ff59ba |
4292 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4293 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
4294 | fi |
4295 | |
0fde1ce3 |
4296 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
4297 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4298 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4300 | else |
4301 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4302 | lt_cv_file_magic_test_file= |
4303 | lt_cv_deplibs_check_method='unknown' |
4304 | # Need to set the preceding variable on all platforms that support |
4305 | # interlibrary dependencies. |
4306 | # 'none' -- dependencies not supported. |
4307 | # `unknown' -- same as none, but documents that we really don't know. |
4308 | # 'pass_all' -- all dependencies passed with no checks. |
4309 | # 'test_compile' -- check by making test program. |
4310 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4311 | # which responds to the $file_magic_cmd with a given extended regex. |
4312 | # If you have `file' or equivalent on your system and you're not sure |
4313 | # whether `pass_all' will *always* work, you probably want this one. |
4314 | |
4315 | case $host_os in |
4316 | aix4* | aix5*) |
4317 | lt_cv_deplibs_check_method=pass_all |
4318 | ;; |
4319 | |
4320 | beos*) |
4321 | lt_cv_deplibs_check_method=pass_all |
4322 | ;; |
4323 | |
4324 | bsdi[45]*) |
4325 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4326 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4327 | lt_cv_file_magic_test_file=/shlib/libc.so |
4328 | ;; |
4329 | |
4330 | cygwin*) |
4331 | # func_win32_libid is a shell function defined in ltmain.sh |
4332 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4333 | lt_cv_file_magic_cmd='func_win32_libid' |
4334 | ;; |
4335 | |
4336 | mingw* | pw32*) |
4337 | # Base MSYS/MinGW do not provide the 'file' command needed by |
0fde1ce3 |
4338 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4339 | # unless we find 'file', for example because we are cross-compiling. |
4340 | if ( file / ) >/dev/null 2>&1; then |
4341 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4342 | lt_cv_file_magic_cmd='func_win32_libid' |
4343 | else |
4344 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4345 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4346 | fi |
d9898ee8 |
4347 | ;; |
4348 | |
4349 | darwin* | rhapsody*) |
4350 | lt_cv_deplibs_check_method=pass_all |
4351 | ;; |
4352 | |
0fde1ce3 |
4353 | freebsd* | dragonfly*) |
d9898ee8 |
4354 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4355 | case $host_cpu in |
4356 | i*86 ) |
4357 | # Not sure whether the presence of OpenBSD here was a mistake. |
4358 | # Let's accept both of them until this is cleared up. |
4359 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4360 | lt_cv_file_magic_cmd=/usr/bin/file |
4361 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4362 | ;; |
4363 | esac |
4364 | else |
4365 | lt_cv_deplibs_check_method=pass_all |
4366 | fi |
4367 | ;; |
4368 | |
4369 | gnu*) |
4370 | lt_cv_deplibs_check_method=pass_all |
4371 | ;; |
4372 | |
4373 | hpux10.20* | hpux11*) |
4374 | lt_cv_file_magic_cmd=/usr/bin/file |
4375 | case $host_cpu in |
4376 | ia64*) |
4377 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4378 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4379 | ;; |
4380 | hppa*64*) |
4381 | 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]' |
4382 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4383 | ;; |
4384 | *) |
4385 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4386 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4387 | ;; |
4388 | esac |
4389 | ;; |
4390 | |
0fde1ce3 |
4391 | interix[3-9]*) |
d9898ee8 |
4392 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4393 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4394 | ;; |
4395 | |
4396 | irix5* | irix6* | nonstopux*) |
4397 | case $LD in |
4398 | *-32|*"-32 ") libmagic=32-bit;; |
4399 | *-n32|*"-n32 ") libmagic=N32;; |
4400 | *-64|*"-64 ") libmagic=64-bit;; |
4401 | *) libmagic=never-match;; |
4402 | esac |
4403 | lt_cv_deplibs_check_method=pass_all |
4404 | ;; |
4405 | |
4406 | # This must be Linux ELF. |
0fde1ce3 |
4407 | linux* | k*bsd*-gnu) |
d9898ee8 |
4408 | lt_cv_deplibs_check_method=pass_all |
4409 | ;; |
4410 | |
4411 | netbsd*) |
4412 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4413 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4414 | else |
4415 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4416 | fi |
4417 | ;; |
4418 | |
4419 | newos6*) |
4420 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4421 | lt_cv_file_magic_cmd=/usr/bin/file |
4422 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4423 | ;; |
4424 | |
4425 | nto-qnx*) |
4426 | lt_cv_deplibs_check_method=unknown |
4427 | ;; |
4428 | |
4429 | openbsd*) |
4430 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4431 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4432 | else |
4433 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4434 | fi |
4435 | ;; |
4436 | |
4437 | osf3* | osf4* | osf5*) |
4438 | lt_cv_deplibs_check_method=pass_all |
4439 | ;; |
4440 | |
0fde1ce3 |
4441 | rdos*) |
4442 | lt_cv_deplibs_check_method=pass_all |
4443 | ;; |
4444 | |
d9898ee8 |
4445 | solaris*) |
4446 | lt_cv_deplibs_check_method=pass_all |
4447 | ;; |
4448 | |
4449 | sysv4 | sysv4.3*) |
4450 | case $host_vendor in |
4451 | motorola) |
4452 | 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]' |
4453 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4454 | ;; |
4455 | ncr) |
4456 | lt_cv_deplibs_check_method=pass_all |
4457 | ;; |
4458 | sequent) |
4459 | lt_cv_file_magic_cmd='/bin/file' |
4460 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4461 | ;; |
4462 | sni) |
4463 | lt_cv_file_magic_cmd='/bin/file' |
4464 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4465 | lt_cv_file_magic_test_file=/lib/libc.so |
4466 | ;; |
4467 | siemens) |
4468 | lt_cv_deplibs_check_method=pass_all |
4469 | ;; |
4470 | pc) |
4471 | lt_cv_deplibs_check_method=pass_all |
4472 | ;; |
4473 | esac |
4474 | ;; |
4475 | |
4476 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4477 | lt_cv_deplibs_check_method=pass_all |
4478 | ;; |
4479 | esac |
4480 | |
4481 | fi |
64ff59ba |
4482 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4483 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4484 | file_magic_cmd=$lt_cv_file_magic_cmd |
4485 | deplibs_check_method=$lt_cv_deplibs_check_method |
4486 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4487 | |
4488 | |
4489 | |
4490 | |
4491 | # If no C compiler was specified, use CC. |
4492 | LTCC=${LTCC-"$CC"} |
4493 | |
4494 | # If no C compiler flags were specified, use CFLAGS. |
4495 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4496 | |
4497 | # Allow CC to be a program name with arguments. |
4498 | compiler=$CC |
4499 | |
64ff59ba |
4500 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4501 | if test "${enable_libtool_lock+set}" = set; then |
64ff59ba |
4502 | enableval=$enable_libtool_lock; |
4503 | fi |
d9898ee8 |
4504 | |
d9898ee8 |
4505 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4506 | |
4507 | # Some flags need to be propagated to the compiler or linker for good |
4508 | # libtool support. |
4509 | case $host in |
4510 | ia64-*-hpux*) |
4511 | # Find out which ABI we are using. |
4512 | echo 'int i;' > conftest.$ac_ext |
4513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4514 | (eval $ac_compile) 2>&5 |
4515 | ac_status=$? |
4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4517 | (exit $ac_status); }; then |
4518 | case `/usr/bin/file conftest.$ac_objext` in |
4519 | *ELF-32*) |
4520 | HPUX_IA64_MODE="32" |
4521 | ;; |
4522 | *ELF-64*) |
4523 | HPUX_IA64_MODE="64" |
4524 | ;; |
4525 | esac |
4526 | fi |
4527 | rm -rf conftest* |
4528 | ;; |
4529 | *-*-irix6*) |
4530 | # Find out which ABI we are using. |
0fde1ce3 |
4531 | echo '#line 4531 "configure"' > conftest.$ac_ext |
d9898ee8 |
4532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4533 | (eval $ac_compile) 2>&5 |
4534 | ac_status=$? |
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4536 | (exit $ac_status); }; then |
4537 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4538 | case `/usr/bin/file conftest.$ac_objext` in |
4539 | *32-bit*) |
4540 | LD="${LD-ld} -melf32bsmip" |
4541 | ;; |
4542 | *N32*) |
4543 | LD="${LD-ld} -melf32bmipn32" |
4544 | ;; |
4545 | *64-bit*) |
4546 | LD="${LD-ld} -melf64bmip" |
4547 | ;; |
4548 | esac |
4549 | else |
4550 | case `/usr/bin/file conftest.$ac_objext` in |
4551 | *32-bit*) |
4552 | LD="${LD-ld} -32" |
4553 | ;; |
4554 | *N32*) |
4555 | LD="${LD-ld} -n32" |
4556 | ;; |
4557 | *64-bit*) |
4558 | LD="${LD-ld} -64" |
4559 | ;; |
4560 | esac |
4561 | fi |
4562 | fi |
4563 | rm -rf conftest* |
4564 | ;; |
4565 | |
0fde1ce3 |
4566 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
4567 | s390*-*linux*|sparc*-*linux*) |
d9898ee8 |
4568 | # Find out which ABI we are using. |
4569 | echo 'int i;' > conftest.$ac_ext |
4570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4571 | (eval $ac_compile) 2>&5 |
4572 | ac_status=$? |
4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4574 | (exit $ac_status); }; then |
4575 | case `/usr/bin/file conftest.o` in |
4576 | *32-bit*) |
4577 | case $host in |
0fde1ce3 |
4578 | x86_64-*kfreebsd*-gnu) |
4579 | LD="${LD-ld} -m elf_i386_fbsd" |
4580 | ;; |
d9898ee8 |
4581 | x86_64-*linux*) |
4582 | LD="${LD-ld} -m elf_i386" |
4583 | ;; |
4584 | ppc64-*linux*|powerpc64-*linux*) |
4585 | LD="${LD-ld} -m elf32ppclinux" |
4586 | ;; |
4587 | s390x-*linux*) |
4588 | LD="${LD-ld} -m elf_s390" |
4589 | ;; |
4590 | sparc64-*linux*) |
4591 | LD="${LD-ld} -m elf32_sparc" |
4592 | ;; |
4593 | esac |
4594 | ;; |
4595 | *64-bit*) |
0fde1ce3 |
4596 | libsuff=64 |
d9898ee8 |
4597 | case $host in |
0fde1ce3 |
4598 | x86_64-*kfreebsd*-gnu) |
4599 | LD="${LD-ld} -m elf_x86_64_fbsd" |
4600 | ;; |
d9898ee8 |
4601 | x86_64-*linux*) |
4602 | LD="${LD-ld} -m elf_x86_64" |
4603 | ;; |
4604 | ppc*-*linux*|powerpc*-*linux*) |
4605 | LD="${LD-ld} -m elf64ppc" |
4606 | ;; |
4607 | s390*-*linux*) |
4608 | LD="${LD-ld} -m elf64_s390" |
4609 | ;; |
4610 | sparc*-*linux*) |
4611 | LD="${LD-ld} -m elf64_sparc" |
4612 | ;; |
4613 | esac |
4614 | ;; |
4615 | esac |
4616 | fi |
4617 | rm -rf conftest* |
4618 | ;; |
4619 | |
4620 | *-*-sco3.2v5*) |
4621 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4622 | SAVE_CFLAGS="$CFLAGS" |
4623 | CFLAGS="$CFLAGS -belf" |
64ff59ba |
4624 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4625 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
4626 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4628 | else |
4629 | ac_ext=c |
4630 | ac_cpp='$CPP $CPPFLAGS' |
4631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4634 | |
4635 | cat >conftest.$ac_ext <<_ACEOF |
4636 | /* confdefs.h. */ |
4637 | _ACEOF |
4638 | cat confdefs.h >>conftest.$ac_ext |
4639 | cat >>conftest.$ac_ext <<_ACEOF |
4640 | /* end confdefs.h. */ |
4641 | |
4642 | int |
4643 | main () |
4644 | { |
4645 | |
4646 | ; |
4647 | return 0; |
4648 | } |
4649 | _ACEOF |
4650 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
4651 | if { (ac_try="$ac_link" |
4652 | case "(($ac_try" in |
4653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4654 | *) ac_try_echo=$ac_try;; |
4655 | esac |
4656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4657 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4658 | ac_status=$? |
4659 | grep -v '^ *+' conftest.er1 >conftest.err |
4660 | rm -f conftest.er1 |
4661 | cat conftest.err >&5 |
4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
4663 | (exit $ac_status); } && { |
4664 | test -z "$ac_c_werror_flag" || |
4665 | test ! -s conftest.err |
4666 | } && test -s conftest$ac_exeext && |
4667 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4668 | lt_cv_cc_needs_belf=yes |
4669 | else |
4670 | echo "$as_me: failed program was:" >&5 |
4671 | sed 's/^/| /' conftest.$ac_ext >&5 |
4672 | |
64ff59ba |
4673 | lt_cv_cc_needs_belf=no |
d9898ee8 |
4674 | fi |
64ff59ba |
4675 | |
4676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4677 | conftest$ac_exeext conftest.$ac_ext |
4678 | ac_ext=c |
4679 | ac_cpp='$CPP $CPPFLAGS' |
4680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4683 | |
4684 | fi |
64ff59ba |
4685 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4686 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
4687 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4688 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4689 | CFLAGS="$SAVE_CFLAGS" |
4690 | fi |
4691 | ;; |
4692 | sparc*-*solaris*) |
4693 | # Find out which ABI we are using. |
4694 | echo 'int i;' > conftest.$ac_ext |
4695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4696 | (eval $ac_compile) 2>&5 |
4697 | ac_status=$? |
4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4699 | (exit $ac_status); }; then |
4700 | case `/usr/bin/file conftest.o` in |
4701 | *64-bit*) |
4702 | case $lt_cv_prog_gnu_ld in |
4703 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4704 | *) LD="${LD-ld} -64" ;; |
4705 | esac |
4706 | ;; |
4707 | esac |
4708 | fi |
4709 | rm -rf conftest* |
4710 | ;; |
4711 | |
4712 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
4713 | if test -n "$ac_tool_prefix"; then |
4714 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
4715 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
64ff59ba |
4716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4718 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
4719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4720 | else |
4721 | if test -n "$DLLTOOL"; then |
4722 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
4723 | else |
4724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4725 | for as_dir in $PATH |
4726 | do |
4727 | IFS=$as_save_IFS |
4728 | test -z "$as_dir" && as_dir=. |
4729 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
4730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4731 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
4732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4733 | break 2 |
4734 | fi |
4735 | done |
4736 | done |
64ff59ba |
4737 | IFS=$as_save_IFS |
d9898ee8 |
4738 | |
4739 | fi |
4740 | fi |
4741 | DLLTOOL=$ac_cv_prog_DLLTOOL |
4742 | if test -n "$DLLTOOL"; then |
64ff59ba |
4743 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
4744 | echo "${ECHO_T}$DLLTOOL" >&6; } |
d9898ee8 |
4745 | else |
64ff59ba |
4746 | { echo "$as_me:$LINENO: result: no" >&5 |
4747 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4748 | fi |
4749 | |
64ff59ba |
4750 | |
d9898ee8 |
4751 | fi |
4752 | if test -z "$ac_cv_prog_DLLTOOL"; then |
4753 | ac_ct_DLLTOOL=$DLLTOOL |
4754 | # Extract the first word of "dlltool", so it can be a program name with args. |
4755 | set dummy dlltool; ac_word=$2 |
64ff59ba |
4756 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4758 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
4759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4760 | else |
4761 | if test -n "$ac_ct_DLLTOOL"; then |
4762 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
4763 | else |
4764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4765 | for as_dir in $PATH |
4766 | do |
4767 | IFS=$as_save_IFS |
4768 | test -z "$as_dir" && as_dir=. |
4769 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
4770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4771 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
4772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4773 | break 2 |
4774 | fi |
4775 | done |
4776 | done |
64ff59ba |
4777 | IFS=$as_save_IFS |
d9898ee8 |
4778 | |
d9898ee8 |
4779 | fi |
4780 | fi |
4781 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
4782 | if test -n "$ac_ct_DLLTOOL"; then |
64ff59ba |
4783 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
4784 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
d9898ee8 |
4785 | else |
64ff59ba |
4786 | { echo "$as_me:$LINENO: result: no" >&5 |
4787 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4788 | fi |
4789 | |
64ff59ba |
4790 | if test "x$ac_ct_DLLTOOL" = x; then |
4791 | DLLTOOL="false" |
4792 | else |
4793 | case $cross_compiling:$ac_tool_warned in |
4794 | yes:) |
4795 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4796 | whose name does not start with the host triplet. If you think this |
4797 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
4798 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
4799 | whose name does not start with the host triplet. If you think this |
4800 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
4801 | ac_tool_warned=yes ;; |
4802 | esac |
4803 | DLLTOOL=$ac_ct_DLLTOOL |
4804 | fi |
d9898ee8 |
4805 | else |
4806 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
4807 | fi |
4808 | |
4809 | if test -n "$ac_tool_prefix"; then |
4810 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
4811 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
64ff59ba |
4812 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4814 | if test "${ac_cv_prog_AS+set}" = set; then |
4815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4816 | else |
4817 | if test -n "$AS"; then |
4818 | ac_cv_prog_AS="$AS" # Let the user override the test. |
4819 | else |
4820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4821 | for as_dir in $PATH |
4822 | do |
4823 | IFS=$as_save_IFS |
4824 | test -z "$as_dir" && as_dir=. |
4825 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
4826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4827 | ac_cv_prog_AS="${ac_tool_prefix}as" |
4828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4829 | break 2 |
4830 | fi |
4831 | done |
4832 | done |
64ff59ba |
4833 | IFS=$as_save_IFS |
d9898ee8 |
4834 | |
4835 | fi |
4836 | fi |
4837 | AS=$ac_cv_prog_AS |
4838 | if test -n "$AS"; then |
64ff59ba |
4839 | { echo "$as_me:$LINENO: result: $AS" >&5 |
4840 | echo "${ECHO_T}$AS" >&6; } |
d9898ee8 |
4841 | else |
64ff59ba |
4842 | { echo "$as_me:$LINENO: result: no" >&5 |
4843 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4844 | fi |
4845 | |
64ff59ba |
4846 | |
d9898ee8 |
4847 | fi |
4848 | if test -z "$ac_cv_prog_AS"; then |
4849 | ac_ct_AS=$AS |
4850 | # Extract the first word of "as", so it can be a program name with args. |
4851 | set dummy as; ac_word=$2 |
64ff59ba |
4852 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4854 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
4855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4856 | else |
4857 | if test -n "$ac_ct_AS"; then |
4858 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
4859 | else |
4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4861 | for as_dir in $PATH |
4862 | do |
4863 | IFS=$as_save_IFS |
4864 | test -z "$as_dir" && as_dir=. |
4865 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
4866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4867 | ac_cv_prog_ac_ct_AS="as" |
4868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4869 | break 2 |
4870 | fi |
4871 | done |
4872 | done |
64ff59ba |
4873 | IFS=$as_save_IFS |
d9898ee8 |
4874 | |
d9898ee8 |
4875 | fi |
4876 | fi |
4877 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
4878 | if test -n "$ac_ct_AS"; then |
64ff59ba |
4879 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
4880 | echo "${ECHO_T}$ac_ct_AS" >&6; } |
d9898ee8 |
4881 | else |
64ff59ba |
4882 | { echo "$as_me:$LINENO: result: no" >&5 |
4883 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4884 | fi |
4885 | |
64ff59ba |
4886 | if test "x$ac_ct_AS" = x; then |
4887 | AS="false" |
4888 | else |
4889 | case $cross_compiling:$ac_tool_warned in |
4890 | yes:) |
4891 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4892 | whose name does not start with the host triplet. If you think this |
4893 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
4894 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
4895 | whose name does not start with the host triplet. If you think this |
4896 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
4897 | ac_tool_warned=yes ;; |
4898 | esac |
4899 | AS=$ac_ct_AS |
4900 | fi |
d9898ee8 |
4901 | else |
4902 | AS="$ac_cv_prog_AS" |
4903 | fi |
4904 | |
4905 | if test -n "$ac_tool_prefix"; then |
4906 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
4907 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
64ff59ba |
4908 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4910 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
4911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4912 | else |
4913 | if test -n "$OBJDUMP"; then |
4914 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
4915 | else |
4916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4917 | for as_dir in $PATH |
4918 | do |
4919 | IFS=$as_save_IFS |
4920 | test -z "$as_dir" && as_dir=. |
4921 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
4922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4923 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
4924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4925 | break 2 |
4926 | fi |
4927 | done |
4928 | done |
64ff59ba |
4929 | IFS=$as_save_IFS |
d9898ee8 |
4930 | |
4931 | fi |
4932 | fi |
4933 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4934 | if test -n "$OBJDUMP"; then |
64ff59ba |
4935 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
4936 | echo "${ECHO_T}$OBJDUMP" >&6; } |
d9898ee8 |
4937 | else |
64ff59ba |
4938 | { echo "$as_me:$LINENO: result: no" >&5 |
4939 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4940 | fi |
4941 | |
64ff59ba |
4942 | |
d9898ee8 |
4943 | fi |
4944 | if test -z "$ac_cv_prog_OBJDUMP"; then |
4945 | ac_ct_OBJDUMP=$OBJDUMP |
4946 | # Extract the first word of "objdump", so it can be a program name with args. |
4947 | set dummy objdump; ac_word=$2 |
64ff59ba |
4948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
4950 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
4951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4952 | else |
4953 | if test -n "$ac_ct_OBJDUMP"; then |
4954 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
4955 | else |
4956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4957 | for as_dir in $PATH |
4958 | do |
4959 | IFS=$as_save_IFS |
4960 | test -z "$as_dir" && as_dir=. |
4961 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
4962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4963 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
4964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4965 | break 2 |
4966 | fi |
4967 | done |
4968 | done |
64ff59ba |
4969 | IFS=$as_save_IFS |
d9898ee8 |
4970 | |
d9898ee8 |
4971 | fi |
4972 | fi |
4973 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4974 | if test -n "$ac_ct_OBJDUMP"; then |
64ff59ba |
4975 | { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
4976 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } |
d9898ee8 |
4977 | else |
64ff59ba |
4978 | { echo "$as_me:$LINENO: result: no" >&5 |
4979 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4980 | fi |
4981 | |
64ff59ba |
4982 | if test "x$ac_ct_OBJDUMP" = x; then |
4983 | OBJDUMP="false" |
4984 | else |
4985 | case $cross_compiling:$ac_tool_warned in |
4986 | yes:) |
4987 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4988 | whose name does not start with the host triplet. If you think this |
4989 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
4990 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
4991 | whose name does not start with the host triplet. If you think this |
4992 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
4993 | ac_tool_warned=yes ;; |
4994 | esac |
4995 | OBJDUMP=$ac_ct_OBJDUMP |
4996 | fi |
d9898ee8 |
4997 | else |
4998 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
4999 | fi |
5000 | |
5001 | ;; |
5002 | |
5003 | esac |
5004 | |
5005 | need_locks="$enable_libtool_lock" |
5006 | |
5007 | |
5008 | ac_ext=c |
5009 | ac_cpp='$CPP $CPPFLAGS' |
5010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
64ff59ba |
5013 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
5014 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5015 | # On Suns, sometimes $CPP names a directory. |
5016 | if test -n "$CPP" && test -d "$CPP"; then |
5017 | CPP= |
5018 | fi |
5019 | if test -z "$CPP"; then |
5020 | if test "${ac_cv_prog_CPP+set}" = set; then |
5021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5022 | else |
5023 | # Double quotes because CPP needs to be expanded |
5024 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
5025 | do |
5026 | ac_preproc_ok=false |
5027 | for ac_c_preproc_warn_flag in '' yes |
5028 | do |
5029 | # Use a header file that comes with gcc, so configuring glibc |
5030 | # with a fresh cross-compiler works. |
5031 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5032 | # <limits.h> exists even on freestanding compilers. |
5033 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5034 | # not just through cpp. "Syntax error" is here to catch this case. |
5035 | cat >conftest.$ac_ext <<_ACEOF |
5036 | /* confdefs.h. */ |
5037 | _ACEOF |
5038 | cat confdefs.h >>conftest.$ac_ext |
5039 | cat >>conftest.$ac_ext <<_ACEOF |
5040 | /* end confdefs.h. */ |
5041 | #ifdef __STDC__ |
5042 | # include <limits.h> |
5043 | #else |
5044 | # include <assert.h> |
5045 | #endif |
5046 | Syntax error |
5047 | _ACEOF |
64ff59ba |
5048 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5049 | case "(($ac_try" in |
5050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5051 | *) ac_try_echo=$ac_try;; |
5052 | esac |
5053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5054 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5055 | ac_status=$? |
5056 | grep -v '^ *+' conftest.er1 >conftest.err |
5057 | rm -f conftest.er1 |
5058 | cat conftest.err >&5 |
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5060 | (exit $ac_status); } >/dev/null && { |
5061 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5062 | test ! -s conftest.err |
5063 | }; then |
d9898ee8 |
5064 | : |
5065 | else |
5066 | echo "$as_me: failed program was:" >&5 |
5067 | sed 's/^/| /' conftest.$ac_ext >&5 |
5068 | |
5069 | # Broken: fails on valid input. |
5070 | continue |
5071 | fi |
64ff59ba |
5072 | |
d9898ee8 |
5073 | rm -f conftest.err conftest.$ac_ext |
5074 | |
64ff59ba |
5075 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5076 | # can be detected and how. |
5077 | cat >conftest.$ac_ext <<_ACEOF |
5078 | /* confdefs.h. */ |
5079 | _ACEOF |
5080 | cat confdefs.h >>conftest.$ac_ext |
5081 | cat >>conftest.$ac_ext <<_ACEOF |
5082 | /* end confdefs.h. */ |
5083 | #include <ac_nonexistent.h> |
5084 | _ACEOF |
64ff59ba |
5085 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5086 | case "(($ac_try" in |
5087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5088 | *) ac_try_echo=$ac_try;; |
5089 | esac |
5090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5091 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5092 | ac_status=$? |
5093 | grep -v '^ *+' conftest.er1 >conftest.err |
5094 | rm -f conftest.er1 |
5095 | cat conftest.err >&5 |
5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5097 | (exit $ac_status); } >/dev/null && { |
5098 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5099 | test ! -s conftest.err |
5100 | }; then |
d9898ee8 |
5101 | # Broken: success on invalid input. |
5102 | continue |
5103 | else |
5104 | echo "$as_me: failed program was:" >&5 |
5105 | sed 's/^/| /' conftest.$ac_ext >&5 |
5106 | |
5107 | # Passes both tests. |
5108 | ac_preproc_ok=: |
5109 | break |
5110 | fi |
64ff59ba |
5111 | |
d9898ee8 |
5112 | rm -f conftest.err conftest.$ac_ext |
5113 | |
5114 | done |
5115 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5116 | rm -f conftest.err conftest.$ac_ext |
5117 | if $ac_preproc_ok; then |
5118 | break |
5119 | fi |
5120 | |
5121 | done |
5122 | ac_cv_prog_CPP=$CPP |
5123 | |
5124 | fi |
5125 | CPP=$ac_cv_prog_CPP |
5126 | else |
5127 | ac_cv_prog_CPP=$CPP |
5128 | fi |
64ff59ba |
5129 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
5130 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
5131 | ac_preproc_ok=false |
5132 | for ac_c_preproc_warn_flag in '' yes |
5133 | do |
5134 | # Use a header file that comes with gcc, so configuring glibc |
5135 | # with a fresh cross-compiler works. |
5136 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5137 | # <limits.h> exists even on freestanding compilers. |
5138 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5139 | # not just through cpp. "Syntax error" is here to catch this case. |
5140 | cat >conftest.$ac_ext <<_ACEOF |
5141 | /* confdefs.h. */ |
5142 | _ACEOF |
5143 | cat confdefs.h >>conftest.$ac_ext |
5144 | cat >>conftest.$ac_ext <<_ACEOF |
5145 | /* end confdefs.h. */ |
5146 | #ifdef __STDC__ |
5147 | # include <limits.h> |
5148 | #else |
5149 | # include <assert.h> |
5150 | #endif |
5151 | Syntax error |
5152 | _ACEOF |
64ff59ba |
5153 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5154 | case "(($ac_try" in |
5155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5156 | *) ac_try_echo=$ac_try;; |
5157 | esac |
5158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5159 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5160 | ac_status=$? |
5161 | grep -v '^ *+' conftest.er1 >conftest.err |
5162 | rm -f conftest.er1 |
5163 | cat conftest.err >&5 |
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5165 | (exit $ac_status); } >/dev/null && { |
5166 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5167 | test ! -s conftest.err |
5168 | }; then |
d9898ee8 |
5169 | : |
5170 | else |
5171 | echo "$as_me: failed program was:" >&5 |
5172 | sed 's/^/| /' conftest.$ac_ext >&5 |
5173 | |
5174 | # Broken: fails on valid input. |
5175 | continue |
5176 | fi |
64ff59ba |
5177 | |
d9898ee8 |
5178 | rm -f conftest.err conftest.$ac_ext |
5179 | |
64ff59ba |
5180 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5181 | # can be detected and how. |
5182 | cat >conftest.$ac_ext <<_ACEOF |
5183 | /* confdefs.h. */ |
5184 | _ACEOF |
5185 | cat confdefs.h >>conftest.$ac_ext |
5186 | cat >>conftest.$ac_ext <<_ACEOF |
5187 | /* end confdefs.h. */ |
5188 | #include <ac_nonexistent.h> |
5189 | _ACEOF |
64ff59ba |
5190 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5191 | case "(($ac_try" in |
5192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5193 | *) ac_try_echo=$ac_try;; |
5194 | esac |
5195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5196 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5197 | ac_status=$? |
5198 | grep -v '^ *+' conftest.er1 >conftest.err |
5199 | rm -f conftest.er1 |
5200 | cat conftest.err >&5 |
5201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5202 | (exit $ac_status); } >/dev/null && { |
5203 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5204 | test ! -s conftest.err |
5205 | }; then |
d9898ee8 |
5206 | # Broken: success on invalid input. |
5207 | continue |
5208 | else |
5209 | echo "$as_me: failed program was:" >&5 |
5210 | sed 's/^/| /' conftest.$ac_ext >&5 |
5211 | |
5212 | # Passes both tests. |
5213 | ac_preproc_ok=: |
5214 | break |
5215 | fi |
64ff59ba |
5216 | |
d9898ee8 |
5217 | rm -f conftest.err conftest.$ac_ext |
5218 | |
5219 | done |
5220 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5221 | rm -f conftest.err conftest.$ac_ext |
5222 | if $ac_preproc_ok; then |
5223 | : |
5224 | else |
5225 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5226 | See \`config.log' for more details." >&5 |
5227 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
5228 | See \`config.log' for more details." >&2;} |
5229 | { (exit 1); exit 1; }; } |
5230 | fi |
5231 | |
5232 | ac_ext=c |
5233 | ac_cpp='$CPP $CPPFLAGS' |
5234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5237 | |
5238 | |
64ff59ba |
5239 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5240 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
5241 | if test "${ac_cv_header_stdc+set}" = set; then |
5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5243 | else |
5244 | cat >conftest.$ac_ext <<_ACEOF |
5245 | /* confdefs.h. */ |
5246 | _ACEOF |
5247 | cat confdefs.h >>conftest.$ac_ext |
5248 | cat >>conftest.$ac_ext <<_ACEOF |
5249 | /* end confdefs.h. */ |
5250 | #include <stdlib.h> |
5251 | #include <stdarg.h> |
5252 | #include <string.h> |
5253 | #include <float.h> |
5254 | |
5255 | int |
5256 | main () |
5257 | { |
5258 | |
5259 | ; |
5260 | return 0; |
5261 | } |
5262 | _ACEOF |
5263 | rm -f conftest.$ac_objext |
64ff59ba |
5264 | if { (ac_try="$ac_compile" |
5265 | case "(($ac_try" in |
5266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5267 | *) ac_try_echo=$ac_try;; |
5268 | esac |
5269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5270 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5271 | ac_status=$? |
5272 | grep -v '^ *+' conftest.er1 >conftest.err |
5273 | rm -f conftest.er1 |
5274 | cat conftest.err >&5 |
5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5276 | (exit $ac_status); } && { |
5277 | test -z "$ac_c_werror_flag" || |
5278 | test ! -s conftest.err |
5279 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5280 | ac_cv_header_stdc=yes |
5281 | else |
5282 | echo "$as_me: failed program was:" >&5 |
5283 | sed 's/^/| /' conftest.$ac_ext >&5 |
5284 | |
64ff59ba |
5285 | ac_cv_header_stdc=no |
d9898ee8 |
5286 | fi |
64ff59ba |
5287 | |
5288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5289 | |
5290 | if test $ac_cv_header_stdc = yes; then |
5291 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
5292 | cat >conftest.$ac_ext <<_ACEOF |
5293 | /* confdefs.h. */ |
5294 | _ACEOF |
5295 | cat confdefs.h >>conftest.$ac_ext |
5296 | cat >>conftest.$ac_ext <<_ACEOF |
5297 | /* end confdefs.h. */ |
5298 | #include <string.h> |
5299 | |
5300 | _ACEOF |
5301 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5302 | $EGREP "memchr" >/dev/null 2>&1; then |
5303 | : |
5304 | else |
5305 | ac_cv_header_stdc=no |
5306 | fi |
5307 | rm -f conftest* |
5308 | |
5309 | fi |
5310 | |
5311 | if test $ac_cv_header_stdc = yes; then |
5312 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
5313 | cat >conftest.$ac_ext <<_ACEOF |
5314 | /* confdefs.h. */ |
5315 | _ACEOF |
5316 | cat confdefs.h >>conftest.$ac_ext |
5317 | cat >>conftest.$ac_ext <<_ACEOF |
5318 | /* end confdefs.h. */ |
5319 | #include <stdlib.h> |
5320 | |
5321 | _ACEOF |
5322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5323 | $EGREP "free" >/dev/null 2>&1; then |
5324 | : |
5325 | else |
5326 | ac_cv_header_stdc=no |
5327 | fi |
5328 | rm -f conftest* |
5329 | |
5330 | fi |
5331 | |
5332 | if test $ac_cv_header_stdc = yes; then |
5333 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
5334 | if test "$cross_compiling" = yes; then |
5335 | : |
5336 | else |
5337 | cat >conftest.$ac_ext <<_ACEOF |
5338 | /* confdefs.h. */ |
5339 | _ACEOF |
5340 | cat confdefs.h >>conftest.$ac_ext |
5341 | cat >>conftest.$ac_ext <<_ACEOF |
5342 | /* end confdefs.h. */ |
5343 | #include <ctype.h> |
64ff59ba |
5344 | #include <stdlib.h> |
d9898ee8 |
5345 | #if ((' ' & 0x0FF) == 0x020) |
5346 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
5347 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
5348 | #else |
5349 | # define ISLOWER(c) \ |
5350 | (('a' <= (c) && (c) <= 'i') \ |
5351 | || ('j' <= (c) && (c) <= 'r') \ |
5352 | || ('s' <= (c) && (c) <= 'z')) |
5353 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5354 | #endif |
5355 | |
5356 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5357 | int |
5358 | main () |
5359 | { |
5360 | int i; |
5361 | for (i = 0; i < 256; i++) |
5362 | if (XOR (islower (i), ISLOWER (i)) |
5363 | || toupper (i) != TOUPPER (i)) |
64ff59ba |
5364 | return 2; |
5365 | return 0; |
d9898ee8 |
5366 | } |
5367 | _ACEOF |
5368 | rm -f conftest$ac_exeext |
64ff59ba |
5369 | if { (ac_try="$ac_link" |
5370 | case "(($ac_try" in |
5371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5372 | *) ac_try_echo=$ac_try;; |
5373 | esac |
5374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5375 | (eval "$ac_link") 2>&5 |
d9898ee8 |
5376 | ac_status=$? |
5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5378 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
64ff59ba |
5379 | { (case "(($ac_try" in |
5380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5381 | *) ac_try_echo=$ac_try;; |
5382 | esac |
5383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5384 | (eval "$ac_try") 2>&5 |
d9898ee8 |
5385 | ac_status=$? |
5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5387 | (exit $ac_status); }; }; then |
5388 | : |
5389 | else |
5390 | echo "$as_me: program exited with status $ac_status" >&5 |
5391 | echo "$as_me: failed program was:" >&5 |
5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
5393 | |
5394 | ( exit $ac_status ) |
5395 | ac_cv_header_stdc=no |
5396 | fi |
64ff59ba |
5397 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5398 | fi |
64ff59ba |
5399 | |
5400 | |
d9898ee8 |
5401 | fi |
5402 | fi |
64ff59ba |
5403 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5404 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
5405 | if test $ac_cv_header_stdc = yes; then |
5406 | |
5407 | cat >>confdefs.h <<\_ACEOF |
5408 | #define STDC_HEADERS 1 |
5409 | _ACEOF |
5410 | |
5411 | fi |
5412 | |
5413 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5414 | |
5415 | |
5416 | |
5417 | |
5418 | |
5419 | |
5420 | |
5421 | |
5422 | |
5423 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5424 | inttypes.h stdint.h unistd.h |
5425 | do |
5426 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
5427 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5428 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5429 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5431 | else |
5432 | cat >conftest.$ac_ext <<_ACEOF |
5433 | /* confdefs.h. */ |
5434 | _ACEOF |
5435 | cat confdefs.h >>conftest.$ac_ext |
5436 | cat >>conftest.$ac_ext <<_ACEOF |
5437 | /* end confdefs.h. */ |
5438 | $ac_includes_default |
5439 | |
5440 | #include <$ac_header> |
5441 | _ACEOF |
5442 | rm -f conftest.$ac_objext |
64ff59ba |
5443 | if { (ac_try="$ac_compile" |
5444 | case "(($ac_try" in |
5445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5446 | *) ac_try_echo=$ac_try;; |
5447 | esac |
5448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5449 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5450 | ac_status=$? |
5451 | grep -v '^ *+' conftest.er1 >conftest.err |
5452 | rm -f conftest.er1 |
5453 | cat conftest.err >&5 |
5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5455 | (exit $ac_status); } && { |
5456 | test -z "$ac_c_werror_flag" || |
5457 | test ! -s conftest.err |
5458 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5459 | eval "$as_ac_Header=yes" |
5460 | else |
5461 | echo "$as_me: failed program was:" >&5 |
5462 | sed 's/^/| /' conftest.$ac_ext >&5 |
5463 | |
64ff59ba |
5464 | eval "$as_ac_Header=no" |
d9898ee8 |
5465 | fi |
64ff59ba |
5466 | |
5467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5468 | fi |
64ff59ba |
5469 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5470 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5471 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5472 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5473 | cat >>confdefs.h <<_ACEOF |
5474 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5475 | _ACEOF |
5476 | |
5477 | fi |
5478 | |
5479 | done |
5480 | |
5481 | |
5482 | |
5483 | for ac_header in dlfcn.h |
5484 | do |
5485 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
5486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5487 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5491 | fi |
64ff59ba |
5492 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5493 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5494 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5495 | else |
5496 | # Is the header compilable? |
64ff59ba |
5497 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5498 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5499 | cat >conftest.$ac_ext <<_ACEOF |
5500 | /* confdefs.h. */ |
5501 | _ACEOF |
5502 | cat confdefs.h >>conftest.$ac_ext |
5503 | cat >>conftest.$ac_ext <<_ACEOF |
5504 | /* end confdefs.h. */ |
5505 | $ac_includes_default |
5506 | #include <$ac_header> |
5507 | _ACEOF |
5508 | rm -f conftest.$ac_objext |
64ff59ba |
5509 | if { (ac_try="$ac_compile" |
5510 | case "(($ac_try" in |
5511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5512 | *) ac_try_echo=$ac_try;; |
5513 | esac |
5514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5515 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5516 | ac_status=$? |
5517 | grep -v '^ *+' conftest.er1 >conftest.err |
5518 | rm -f conftest.er1 |
5519 | cat conftest.err >&5 |
5520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5521 | (exit $ac_status); } && { |
5522 | test -z "$ac_c_werror_flag" || |
5523 | test ! -s conftest.err |
5524 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5525 | ac_header_compiler=yes |
5526 | else |
5527 | echo "$as_me: failed program was:" >&5 |
5528 | sed 's/^/| /' conftest.$ac_ext >&5 |
5529 | |
64ff59ba |
5530 | ac_header_compiler=no |
d9898ee8 |
5531 | fi |
64ff59ba |
5532 | |
5533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5534 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5535 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5536 | |
5537 | # Is the header present? |
64ff59ba |
5538 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5539 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5540 | cat >conftest.$ac_ext <<_ACEOF |
5541 | /* confdefs.h. */ |
5542 | _ACEOF |
5543 | cat confdefs.h >>conftest.$ac_ext |
5544 | cat >>conftest.$ac_ext <<_ACEOF |
5545 | /* end confdefs.h. */ |
5546 | #include <$ac_header> |
5547 | _ACEOF |
64ff59ba |
5548 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5549 | case "(($ac_try" in |
5550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5551 | *) ac_try_echo=$ac_try;; |
5552 | esac |
5553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5554 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5555 | ac_status=$? |
5556 | grep -v '^ *+' conftest.er1 >conftest.err |
5557 | rm -f conftest.er1 |
5558 | cat conftest.err >&5 |
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5560 | (exit $ac_status); } >/dev/null && { |
5561 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5562 | test ! -s conftest.err |
5563 | }; then |
d9898ee8 |
5564 | ac_header_preproc=yes |
5565 | else |
5566 | echo "$as_me: failed program was:" >&5 |
5567 | sed 's/^/| /' conftest.$ac_ext >&5 |
5568 | |
5569 | ac_header_preproc=no |
5570 | fi |
64ff59ba |
5571 | |
d9898ee8 |
5572 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
5573 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5574 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5575 | |
5576 | # So? What about this header? |
5577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5578 | yes:no: ) |
5579 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5580 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5582 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5583 | ac_header_preproc=yes |
5584 | ;; |
5585 | no:yes:* ) |
5586 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5587 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5588 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5589 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5590 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5591 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5592 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5593 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5594 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5595 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5596 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5597 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
5598 | ( cat <<\_ASBOX |
d9898ee8 |
5599 | ## ---------------------------------- ## |
5600 | ## Report this to bug-libtool@gnu.org ## |
5601 | ## ---------------------------------- ## |
5602 | _ASBOX |
64ff59ba |
5603 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5604 | ;; |
5605 | esac |
64ff59ba |
5606 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5608 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5610 | else |
5611 | eval "$as_ac_Header=\$ac_header_preproc" |
5612 | fi |
64ff59ba |
5613 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5614 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5615 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5616 | |
5617 | fi |
5618 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5619 | cat >>confdefs.h <<_ACEOF |
5620 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5621 | _ACEOF |
5622 | |
5623 | fi |
5624 | |
5625 | done |
5626 | |
64ff59ba |
5627 | ac_ext=cpp |
d9898ee8 |
5628 | ac_cpp='$CXXCPP $CPPFLAGS' |
5629 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5630 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5631 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
64ff59ba |
5632 | if test -z "$CXX"; then |
5633 | if test -n "$CCC"; then |
5634 | CXX=$CCC |
5635 | else |
5636 | if test -n "$ac_tool_prefix"; then |
5637 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5638 | do |
5639 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5640 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
5641 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5643 | if test "${ac_cv_prog_CXX+set}" = set; then |
5644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5645 | else |
5646 | if test -n "$CXX"; then |
5647 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5648 | else |
5649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5650 | for as_dir in $PATH |
5651 | do |
5652 | IFS=$as_save_IFS |
5653 | test -z "$as_dir" && as_dir=. |
5654 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
5655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5656 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5658 | break 2 |
5659 | fi |
5660 | done |
5661 | done |
64ff59ba |
5662 | IFS=$as_save_IFS |
d9898ee8 |
5663 | |
5664 | fi |
5665 | fi |
5666 | CXX=$ac_cv_prog_CXX |
5667 | if test -n "$CXX"; then |
64ff59ba |
5668 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5669 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5670 | else |
64ff59ba |
5671 | { echo "$as_me:$LINENO: result: no" >&5 |
5672 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5673 | fi |
5674 | |
64ff59ba |
5675 | |
d9898ee8 |
5676 | test -n "$CXX" && break |
5677 | done |
5678 | fi |
5679 | if test -z "$CXX"; then |
5680 | ac_ct_CXX=$CXX |
64ff59ba |
5681 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5682 | do |
5683 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5684 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
5685 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5687 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5689 | else |
5690 | if test -n "$ac_ct_CXX"; then |
5691 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5692 | else |
5693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5694 | for as_dir in $PATH |
5695 | do |
5696 | IFS=$as_save_IFS |
5697 | test -z "$as_dir" && as_dir=. |
5698 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
5699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5700 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5702 | break 2 |
5703 | fi |
5704 | done |
5705 | done |
64ff59ba |
5706 | IFS=$as_save_IFS |
d9898ee8 |
5707 | |
5708 | fi |
5709 | fi |
5710 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5711 | if test -n "$ac_ct_CXX"; then |
64ff59ba |
5712 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5713 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5714 | else |
64ff59ba |
5715 | { echo "$as_me:$LINENO: result: no" >&5 |
5716 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5717 | fi |
5718 | |
64ff59ba |
5719 | |
d9898ee8 |
5720 | test -n "$ac_ct_CXX" && break |
5721 | done |
d9898ee8 |
5722 | |
64ff59ba |
5723 | if test "x$ac_ct_CXX" = x; then |
5724 | CXX="g++" |
5725 | else |
5726 | case $cross_compiling:$ac_tool_warned in |
5727 | yes:) |
5728 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5729 | whose name does not start with the host triplet. If you think this |
5730 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5731 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5732 | whose name does not start with the host triplet. If you think this |
5733 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5734 | ac_tool_warned=yes ;; |
5735 | esac |
5736 | CXX=$ac_ct_CXX |
5737 | fi |
d9898ee8 |
5738 | fi |
5739 | |
64ff59ba |
5740 | fi |
5741 | fi |
d9898ee8 |
5742 | # Provide some information about the compiler. |
64ff59ba |
5743 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5744 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
5745 | { (ac_try="$ac_compiler --version >&5" |
5746 | case "(($ac_try" in |
5747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5748 | *) ac_try_echo=$ac_try;; |
5749 | esac |
5750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5751 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5752 | ac_status=$? |
5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5754 | (exit $ac_status); } |
64ff59ba |
5755 | { (ac_try="$ac_compiler -v >&5" |
5756 | case "(($ac_try" in |
5757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5758 | *) ac_try_echo=$ac_try;; |
5759 | esac |
5760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5761 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5762 | ac_status=$? |
5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5764 | (exit $ac_status); } |
64ff59ba |
5765 | { (ac_try="$ac_compiler -V >&5" |
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_compiler -V >&5") 2>&5 |
d9898ee8 |
5772 | ac_status=$? |
5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5774 | (exit $ac_status); } |
5775 | |
64ff59ba |
5776 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5777 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5778 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5780 | else |
5781 | cat >conftest.$ac_ext <<_ACEOF |
5782 | /* confdefs.h. */ |
5783 | _ACEOF |
5784 | cat confdefs.h >>conftest.$ac_ext |
5785 | cat >>conftest.$ac_ext <<_ACEOF |
5786 | /* end confdefs.h. */ |
5787 | |
5788 | int |
5789 | main () |
5790 | { |
5791 | #ifndef __GNUC__ |
5792 | choke me |
5793 | #endif |
5794 | |
5795 | ; |
5796 | return 0; |
5797 | } |
5798 | _ACEOF |
5799 | rm -f conftest.$ac_objext |
64ff59ba |
5800 | if { (ac_try="$ac_compile" |
5801 | case "(($ac_try" in |
5802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5803 | *) ac_try_echo=$ac_try;; |
5804 | esac |
5805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5806 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5807 | ac_status=$? |
5808 | grep -v '^ *+' conftest.er1 >conftest.err |
5809 | rm -f conftest.er1 |
5810 | cat conftest.err >&5 |
5811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5812 | (exit $ac_status); } && { |
5813 | test -z "$ac_cxx_werror_flag" || |
5814 | test ! -s conftest.err |
5815 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5816 | ac_compiler_gnu=yes |
5817 | else |
5818 | echo "$as_me: failed program was:" >&5 |
5819 | sed 's/^/| /' conftest.$ac_ext >&5 |
5820 | |
64ff59ba |
5821 | ac_compiler_gnu=no |
d9898ee8 |
5822 | fi |
64ff59ba |
5823 | |
5824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5825 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5826 | |
5827 | fi |
64ff59ba |
5828 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5829 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5830 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5831 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5832 | ac_save_CXXFLAGS=$CXXFLAGS |
64ff59ba |
5833 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5834 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5835 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5837 | else |
64ff59ba |
5838 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5839 | ac_cxx_werror_flag=yes |
5840 | ac_cv_prog_cxx_g=no |
5841 | CXXFLAGS="-g" |
5842 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5843 | /* confdefs.h. */ |
5844 | _ACEOF |
5845 | cat confdefs.h >>conftest.$ac_ext |
5846 | cat >>conftest.$ac_ext <<_ACEOF |
5847 | /* end confdefs.h. */ |
5848 | |
5849 | int |
5850 | main () |
5851 | { |
5852 | |
5853 | ; |
5854 | return 0; |
5855 | } |
5856 | _ACEOF |
5857 | rm -f conftest.$ac_objext |
64ff59ba |
5858 | if { (ac_try="$ac_compile" |
5859 | case "(($ac_try" in |
5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5861 | *) ac_try_echo=$ac_try;; |
5862 | esac |
5863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5864 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5865 | ac_status=$? |
5866 | grep -v '^ *+' conftest.er1 >conftest.err |
5867 | rm -f conftest.er1 |
5868 | cat conftest.err >&5 |
5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5870 | (exit $ac_status); } && { |
5871 | test -z "$ac_cxx_werror_flag" || |
5872 | test ! -s conftest.err |
5873 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5874 | ac_cv_prog_cxx_g=yes |
5875 | else |
5876 | echo "$as_me: failed program was:" >&5 |
5877 | sed 's/^/| /' conftest.$ac_ext >&5 |
5878 | |
64ff59ba |
5879 | CXXFLAGS="" |
5880 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5881 | /* confdefs.h. */ |
5882 | _ACEOF |
5883 | cat confdefs.h >>conftest.$ac_ext |
5884 | cat >>conftest.$ac_ext <<_ACEOF |
5885 | /* end confdefs.h. */ |
64ff59ba |
5886 | |
d9898ee8 |
5887 | int |
5888 | main () |
5889 | { |
64ff59ba |
5890 | |
d9898ee8 |
5891 | ; |
5892 | return 0; |
5893 | } |
5894 | _ACEOF |
5895 | rm -f conftest.$ac_objext |
64ff59ba |
5896 | if { (ac_try="$ac_compile" |
5897 | case "(($ac_try" in |
5898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5899 | *) ac_try_echo=$ac_try;; |
5900 | esac |
5901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5902 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5903 | ac_status=$? |
5904 | grep -v '^ *+' conftest.er1 >conftest.err |
5905 | rm -f conftest.er1 |
5906 | cat conftest.err >&5 |
5907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5908 | (exit $ac_status); } && { |
5909 | test -z "$ac_cxx_werror_flag" || |
5910 | test ! -s conftest.err |
5911 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5912 | : |
5913 | else |
5914 | echo "$as_me: failed program was:" >&5 |
5915 | sed 's/^/| /' conftest.$ac_ext >&5 |
5916 | |
64ff59ba |
5917 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5918 | CXXFLAGS="-g" |
5919 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5920 | /* confdefs.h. */ |
5921 | _ACEOF |
5922 | cat confdefs.h >>conftest.$ac_ext |
5923 | cat >>conftest.$ac_ext <<_ACEOF |
5924 | /* end confdefs.h. */ |
64ff59ba |
5925 | |
d9898ee8 |
5926 | int |
5927 | main () |
5928 | { |
64ff59ba |
5929 | |
d9898ee8 |
5930 | ; |
5931 | return 0; |
5932 | } |
5933 | _ACEOF |
5934 | rm -f conftest.$ac_objext |
64ff59ba |
5935 | if { (ac_try="$ac_compile" |
5936 | case "(($ac_try" in |
5937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5938 | *) ac_try_echo=$ac_try;; |
5939 | esac |
5940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5941 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5942 | ac_status=$? |
5943 | grep -v '^ *+' conftest.er1 >conftest.err |
5944 | rm -f conftest.er1 |
5945 | cat conftest.err >&5 |
5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
5947 | (exit $ac_status); } && { |
5948 | test -z "$ac_cxx_werror_flag" || |
5949 | test ! -s conftest.err |
5950 | } && test -s conftest.$ac_objext; then |
5951 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5952 | else |
5953 | echo "$as_me: failed program was:" >&5 |
5954 | sed 's/^/| /' conftest.$ac_ext >&5 |
5955 | |
64ff59ba |
5956 | |
d9898ee8 |
5957 | fi |
64ff59ba |
5958 | |
5959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5960 | fi |
5961 | |
5962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5963 | fi |
5964 | |
64ff59ba |
5965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5966 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5967 | fi |
5968 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5969 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5970 | if test "$ac_test_CXXFLAGS" = set; then |
5971 | CXXFLAGS=$ac_save_CXXFLAGS |
5972 | elif test $ac_cv_prog_cxx_g = yes; then |
5973 | if test "$GXX" = yes; then |
5974 | CXXFLAGS="-g -O2" |
5975 | else |
5976 | CXXFLAGS="-g" |
5977 | fi |
5978 | else |
5979 | if test "$GXX" = yes; then |
5980 | CXXFLAGS="-O2" |
5981 | else |
5982 | CXXFLAGS= |
5983 | fi |
5984 | fi |
5985 | ac_ext=cpp |
d9898ee8 |
5986 | ac_cpp='$CXXCPP $CPPFLAGS' |
5987 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5988 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5989 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5990 | |
5991 | depcc="$CXX" am_compiler_list= |
5992 | |
64ff59ba |
5993 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5994 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5995 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5997 | else |
5998 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5999 | # We make a subdir and do the tests there. Otherwise we can end up |
6000 | # making bogus files that we don't know about and never remove. For |
6001 | # instance it was reported that on HP-UX the gcc test will end up |
6002 | # making a dummy file named `D' -- because `-MD' means `put the output |
6003 | # in D'. |
6004 | mkdir conftest.dir |
6005 | # Copy depcomp to subdir because otherwise we won't find it if we're |
6006 | # using a relative directory. |
6007 | cp "$am_depcomp" conftest.dir |
6008 | cd conftest.dir |
6009 | # We will build objects and dependencies in a subdirectory because |
6010 | # it helps to detect inapplicable dependency modes. For instance |
6011 | # both Tru64's cc and ICC support -MD to output dependencies as a |
6012 | # side effect of compilation, but ICC will put the dependencies in |
6013 | # the current directory while Tru64 will put them in the object |
6014 | # directory. |
6015 | mkdir sub |
6016 | |
6017 | am_cv_CXX_dependencies_compiler_type=none |
6018 | if test "$am_compiler_list" = ""; then |
6019 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
6020 | fi |
6021 | for depmode in $am_compiler_list; do |
6022 | # Setup a source with many dependencies, because some compilers |
6023 | # like to wrap large dependency lists on column 80 (with \), and |
6024 | # we should not choose a depcomp mode which is confused by this. |
6025 | # |
6026 | # We need to recreate these files for each test, as the compiler may |
6027 | # overwrite some of them when testing with obscure command lines. |
6028 | # This happens at least with the AIX C compiler. |
6029 | : > sub/conftest.c |
6030 | for i in 1 2 3 4 5 6; do |
6031 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
6032 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
6033 | # Solaris 8's {/usr,}/bin/sh. |
6034 | touch sub/conftst$i.h |
6035 | done |
6036 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
6037 | |
6038 | case $depmode in |
6039 | nosideeffect) |
6040 | # after this tag, mechanisms are not by side-effect, so they'll |
6041 | # only be used when explicitly requested |
6042 | if test "x$enable_dependency_tracking" = xyes; then |
6043 | continue |
6044 | else |
6045 | break |
6046 | fi |
6047 | ;; |
6048 | none) break ;; |
6049 | esac |
6050 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
6051 | # mode. It turns out that the SunPro C++ compiler does not properly |
6052 | # handle `-M -o', and we need to detect this. |
6053 | if depmode=$depmode \ |
6054 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
6055 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
6056 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
6057 | >/dev/null 2>conftest.err && |
64ff59ba |
6058 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
6059 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
6060 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
6061 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
6062 | # icc doesn't choke on unknown options, it will just issue warnings |
6063 | # or remarks (even with -Werror). So we grep stderr for any message |
6064 | # that says an option was ignored or not supported. |
6065 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
6066 | # icc: Command line warning: ignoring option '-M'; no argument required |
6067 | # The diagnosis changed in icc 8.0: |
6068 | # icc: Command line remark: option '-MP' not supported |
6069 | if (grep 'ignoring option' conftest.err || |
6070 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
6071 | am_cv_CXX_dependencies_compiler_type=$depmode |
6072 | break |
6073 | fi |
6074 | fi |
6075 | done |
6076 | |
6077 | cd .. |
6078 | rm -rf conftest.dir |
6079 | else |
6080 | am_cv_CXX_dependencies_compiler_type=none |
6081 | fi |
6082 | |
6083 | fi |
64ff59ba |
6084 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
6085 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
6086 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
6087 | |
64ff59ba |
6088 | if |
d9898ee8 |
6089 | test "x$enable_dependency_tracking" != xno \ |
6090 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
6091 | am__fastdepCXX_TRUE= |
6092 | am__fastdepCXX_FALSE='#' |
6093 | else |
6094 | am__fastdepCXX_TRUE='#' |
6095 | am__fastdepCXX_FALSE= |
6096 | fi |
6097 | |
6098 | |
6099 | |
6100 | |
6101 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
6102 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
6103 | (test "X$CXX" != "Xg++"))) ; then |
64ff59ba |
6104 | ac_ext=cpp |
d9898ee8 |
6105 | ac_cpp='$CXXCPP $CPPFLAGS' |
6106 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6107 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6108 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
64ff59ba |
6109 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
6110 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
6111 | if test -z "$CXXCPP"; then |
6112 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6114 | else |
6115 | # Double quotes because CXXCPP needs to be expanded |
6116 | for CXXCPP in "$CXX -E" "/lib/cpp" |
6117 | do |
6118 | ac_preproc_ok=false |
6119 | for ac_cxx_preproc_warn_flag in '' yes |
6120 | do |
6121 | # Use a header file that comes with gcc, so configuring glibc |
6122 | # with a fresh cross-compiler works. |
6123 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6124 | # <limits.h> exists even on freestanding compilers. |
6125 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6126 | # not just through cpp. "Syntax error" is here to catch this case. |
6127 | cat >conftest.$ac_ext <<_ACEOF |
6128 | /* confdefs.h. */ |
6129 | _ACEOF |
6130 | cat confdefs.h >>conftest.$ac_ext |
6131 | cat >>conftest.$ac_ext <<_ACEOF |
6132 | /* end confdefs.h. */ |
6133 | #ifdef __STDC__ |
6134 | # include <limits.h> |
6135 | #else |
6136 | # include <assert.h> |
6137 | #endif |
6138 | Syntax error |
6139 | _ACEOF |
64ff59ba |
6140 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6141 | case "(($ac_try" in |
6142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6143 | *) ac_try_echo=$ac_try;; |
6144 | esac |
6145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6146 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6147 | ac_status=$? |
6148 | grep -v '^ *+' conftest.er1 >conftest.err |
6149 | rm -f conftest.er1 |
6150 | cat conftest.err >&5 |
6151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6152 | (exit $ac_status); } >/dev/null && { |
6153 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6154 | test ! -s conftest.err |
6155 | }; then |
d9898ee8 |
6156 | : |
6157 | else |
6158 | echo "$as_me: failed program was:" >&5 |
6159 | sed 's/^/| /' conftest.$ac_ext >&5 |
6160 | |
6161 | # Broken: fails on valid input. |
6162 | continue |
6163 | fi |
64ff59ba |
6164 | |
d9898ee8 |
6165 | rm -f conftest.err conftest.$ac_ext |
6166 | |
64ff59ba |
6167 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
6168 | # can be detected and how. |
6169 | cat >conftest.$ac_ext <<_ACEOF |
6170 | /* confdefs.h. */ |
6171 | _ACEOF |
6172 | cat confdefs.h >>conftest.$ac_ext |
6173 | cat >>conftest.$ac_ext <<_ACEOF |
6174 | /* end confdefs.h. */ |
6175 | #include <ac_nonexistent.h> |
6176 | _ACEOF |
64ff59ba |
6177 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6178 | case "(($ac_try" in |
6179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6180 | *) ac_try_echo=$ac_try;; |
6181 | esac |
6182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6183 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6184 | ac_status=$? |
6185 | grep -v '^ *+' conftest.er1 >conftest.err |
6186 | rm -f conftest.er1 |
6187 | cat conftest.err >&5 |
6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6189 | (exit $ac_status); } >/dev/null && { |
6190 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6191 | test ! -s conftest.err |
6192 | }; then |
d9898ee8 |
6193 | # Broken: success on invalid input. |
6194 | continue |
6195 | else |
6196 | echo "$as_me: failed program was:" >&5 |
6197 | sed 's/^/| /' conftest.$ac_ext >&5 |
6198 | |
6199 | # Passes both tests. |
6200 | ac_preproc_ok=: |
6201 | break |
6202 | fi |
64ff59ba |
6203 | |
d9898ee8 |
6204 | rm -f conftest.err conftest.$ac_ext |
6205 | |
6206 | done |
6207 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6208 | rm -f conftest.err conftest.$ac_ext |
6209 | if $ac_preproc_ok; then |
6210 | break |
6211 | fi |
6212 | |
6213 | done |
6214 | ac_cv_prog_CXXCPP=$CXXCPP |
6215 | |
6216 | fi |
6217 | CXXCPP=$ac_cv_prog_CXXCPP |
6218 | else |
6219 | ac_cv_prog_CXXCPP=$CXXCPP |
6220 | fi |
64ff59ba |
6221 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
6222 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
6223 | ac_preproc_ok=false |
6224 | for ac_cxx_preproc_warn_flag in '' yes |
6225 | do |
6226 | # Use a header file that comes with gcc, so configuring glibc |
6227 | # with a fresh cross-compiler works. |
6228 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6229 | # <limits.h> exists even on freestanding compilers. |
6230 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6231 | # not just through cpp. "Syntax error" is here to catch this case. |
6232 | cat >conftest.$ac_ext <<_ACEOF |
6233 | /* confdefs.h. */ |
6234 | _ACEOF |
6235 | cat confdefs.h >>conftest.$ac_ext |
6236 | cat >>conftest.$ac_ext <<_ACEOF |
6237 | /* end confdefs.h. */ |
6238 | #ifdef __STDC__ |
6239 | # include <limits.h> |
6240 | #else |
6241 | # include <assert.h> |
6242 | #endif |
6243 | Syntax error |
6244 | _ACEOF |
64ff59ba |
6245 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6246 | case "(($ac_try" in |
6247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6248 | *) ac_try_echo=$ac_try;; |
6249 | esac |
6250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6251 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6252 | ac_status=$? |
6253 | grep -v '^ *+' conftest.er1 >conftest.err |
6254 | rm -f conftest.er1 |
6255 | cat conftest.err >&5 |
6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6257 | (exit $ac_status); } >/dev/null && { |
6258 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6259 | test ! -s conftest.err |
6260 | }; then |
d9898ee8 |
6261 | : |
6262 | else |
6263 | echo "$as_me: failed program was:" >&5 |
6264 | sed 's/^/| /' conftest.$ac_ext >&5 |
6265 | |
6266 | # Broken: fails on valid input. |
6267 | continue |
6268 | fi |
64ff59ba |
6269 | |
d9898ee8 |
6270 | rm -f conftest.err conftest.$ac_ext |
6271 | |
64ff59ba |
6272 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
6273 | # can be detected and how. |
6274 | cat >conftest.$ac_ext <<_ACEOF |
6275 | /* confdefs.h. */ |
6276 | _ACEOF |
6277 | cat confdefs.h >>conftest.$ac_ext |
6278 | cat >>conftest.$ac_ext <<_ACEOF |
6279 | /* end confdefs.h. */ |
6280 | #include <ac_nonexistent.h> |
6281 | _ACEOF |
64ff59ba |
6282 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6283 | case "(($ac_try" in |
6284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6285 | *) ac_try_echo=$ac_try;; |
6286 | esac |
6287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6288 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6289 | ac_status=$? |
6290 | grep -v '^ *+' conftest.er1 >conftest.err |
6291 | rm -f conftest.er1 |
6292 | cat conftest.err >&5 |
6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6294 | (exit $ac_status); } >/dev/null && { |
6295 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6296 | test ! -s conftest.err |
6297 | }; then |
d9898ee8 |
6298 | # Broken: success on invalid input. |
6299 | continue |
6300 | else |
6301 | echo "$as_me: failed program was:" >&5 |
6302 | sed 's/^/| /' conftest.$ac_ext >&5 |
6303 | |
6304 | # Passes both tests. |
6305 | ac_preproc_ok=: |
6306 | break |
6307 | fi |
64ff59ba |
6308 | |
d9898ee8 |
6309 | rm -f conftest.err conftest.$ac_ext |
6310 | |
6311 | done |
6312 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6313 | rm -f conftest.err conftest.$ac_ext |
6314 | if $ac_preproc_ok; then |
6315 | : |
6316 | else |
6317 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6318 | See \`config.log' for more details." >&5 |
6319 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6320 | See \`config.log' for more details." >&2;} |
6321 | { (exit 1); exit 1; }; } |
6322 | fi |
6323 | |
64ff59ba |
6324 | ac_ext=cpp |
d9898ee8 |
6325 | ac_cpp='$CXXCPP $CPPFLAGS' |
6326 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6327 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6328 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6329 | |
6330 | fi |
6331 | |
6332 | |
6333 | ac_ext=f |
6334 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
6335 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6336 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
6337 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
6338 | 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 |
d9898ee8 |
6339 | do |
6340 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6341 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
64ff59ba |
6342 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6344 | if test "${ac_cv_prog_F77+set}" = set; then |
6345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6346 | else |
6347 | if test -n "$F77"; then |
6348 | ac_cv_prog_F77="$F77" # Let the user override the test. |
6349 | else |
6350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6351 | for as_dir in $PATH |
6352 | do |
6353 | IFS=$as_save_IFS |
6354 | test -z "$as_dir" && as_dir=. |
6355 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6357 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
6358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6359 | break 2 |
6360 | fi |
6361 | done |
6362 | done |
64ff59ba |
6363 | IFS=$as_save_IFS |
d9898ee8 |
6364 | |
6365 | fi |
6366 | fi |
6367 | F77=$ac_cv_prog_F77 |
6368 | if test -n "$F77"; then |
64ff59ba |
6369 | { echo "$as_me:$LINENO: result: $F77" >&5 |
6370 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
6371 | else |
64ff59ba |
6372 | { echo "$as_me:$LINENO: result: no" >&5 |
6373 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6374 | fi |
6375 | |
64ff59ba |
6376 | |
d9898ee8 |
6377 | test -n "$F77" && break |
6378 | done |
6379 | fi |
6380 | if test -z "$F77"; then |
6381 | ac_ct_F77=$F77 |
64ff59ba |
6382 | 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 |
d9898ee8 |
6383 | do |
6384 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6385 | set dummy $ac_prog; ac_word=$2 |
64ff59ba |
6386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6388 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6390 | else |
6391 | if test -n "$ac_ct_F77"; then |
6392 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6393 | else |
6394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6395 | for as_dir in $PATH |
6396 | do |
6397 | IFS=$as_save_IFS |
6398 | test -z "$as_dir" && as_dir=. |
6399 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
6400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6401 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6403 | break 2 |
6404 | fi |
6405 | done |
6406 | done |
64ff59ba |
6407 | IFS=$as_save_IFS |
d9898ee8 |
6408 | |
6409 | fi |
6410 | fi |
6411 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6412 | if test -n "$ac_ct_F77"; then |
64ff59ba |
6413 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6414 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6415 | else |
64ff59ba |
6416 | { echo "$as_me:$LINENO: result: no" >&5 |
6417 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6418 | fi |
6419 | |
64ff59ba |
6420 | |
d9898ee8 |
6421 | test -n "$ac_ct_F77" && break |
6422 | done |
6423 | |
64ff59ba |
6424 | if test "x$ac_ct_F77" = x; then |
6425 | F77="" |
6426 | else |
6427 | case $cross_compiling:$ac_tool_warned in |
6428 | yes:) |
6429 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6430 | whose name does not start with the host triplet. If you think this |
6431 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6432 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6433 | whose name does not start with the host triplet. If you think this |
6434 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6435 | ac_tool_warned=yes ;; |
6436 | esac |
6437 | F77=$ac_ct_F77 |
6438 | fi |
d9898ee8 |
6439 | fi |
6440 | |
6441 | |
6442 | # Provide some information about the compiler. |
64ff59ba |
6443 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6444 | ac_compiler=`set X $ac_compile; echo $2` |
64ff59ba |
6445 | { (ac_try="$ac_compiler --version >&5" |
6446 | case "(($ac_try" in |
6447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6448 | *) ac_try_echo=$ac_try;; |
6449 | esac |
6450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6451 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6452 | ac_status=$? |
6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6454 | (exit $ac_status); } |
64ff59ba |
6455 | { (ac_try="$ac_compiler -v >&5" |
6456 | case "(($ac_try" in |
6457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6458 | *) ac_try_echo=$ac_try;; |
6459 | esac |
6460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6461 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6462 | ac_status=$? |
6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6464 | (exit $ac_status); } |
64ff59ba |
6465 | { (ac_try="$ac_compiler -V >&5" |
6466 | case "(($ac_try" in |
6467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6468 | *) ac_try_echo=$ac_try;; |
6469 | esac |
6470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6471 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6472 | ac_status=$? |
6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6474 | (exit $ac_status); } |
6475 | rm -f a.out |
6476 | |
6477 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6478 | # input file. (Note that this only needs to work for GNU compilers.) |
6479 | ac_save_ext=$ac_ext |
6480 | ac_ext=F |
64ff59ba |
6481 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6482 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6483 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6485 | else |
6486 | cat >conftest.$ac_ext <<_ACEOF |
6487 | program main |
6488 | #ifndef __GNUC__ |
6489 | choke me |
6490 | #endif |
6491 | |
6492 | end |
6493 | _ACEOF |
6494 | rm -f conftest.$ac_objext |
64ff59ba |
6495 | if { (ac_try="$ac_compile" |
6496 | case "(($ac_try" in |
6497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6498 | *) ac_try_echo=$ac_try;; |
6499 | esac |
6500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6501 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6502 | ac_status=$? |
6503 | grep -v '^ *+' conftest.er1 >conftest.err |
6504 | rm -f conftest.er1 |
6505 | cat conftest.err >&5 |
6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6507 | (exit $ac_status); } && { |
6508 | test -z "$ac_f77_werror_flag" || |
6509 | test ! -s conftest.err |
6510 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6511 | ac_compiler_gnu=yes |
6512 | else |
6513 | echo "$as_me: failed program was:" >&5 |
6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
6515 | |
64ff59ba |
6516 | ac_compiler_gnu=no |
d9898ee8 |
6517 | fi |
64ff59ba |
6518 | |
6519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6520 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6521 | |
6522 | fi |
64ff59ba |
6523 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6524 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6525 | ac_ext=$ac_save_ext |
6526 | ac_test_FFLAGS=${FFLAGS+set} |
6527 | ac_save_FFLAGS=$FFLAGS |
6528 | FFLAGS= |
64ff59ba |
6529 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6530 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6531 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6533 | else |
6534 | FFLAGS=-g |
6535 | cat >conftest.$ac_ext <<_ACEOF |
6536 | program main |
6537 | |
6538 | end |
6539 | _ACEOF |
6540 | rm -f conftest.$ac_objext |
64ff59ba |
6541 | if { (ac_try="$ac_compile" |
6542 | case "(($ac_try" in |
6543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6544 | *) ac_try_echo=$ac_try;; |
6545 | esac |
6546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6547 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6548 | ac_status=$? |
6549 | grep -v '^ *+' conftest.er1 >conftest.err |
6550 | rm -f conftest.er1 |
6551 | cat conftest.err >&5 |
6552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
6553 | (exit $ac_status); } && { |
6554 | test -z "$ac_f77_werror_flag" || |
6555 | test ! -s conftest.err |
6556 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6557 | ac_cv_prog_f77_g=yes |
6558 | else |
6559 | echo "$as_me: failed program was:" >&5 |
6560 | sed 's/^/| /' conftest.$ac_ext >&5 |
6561 | |
64ff59ba |
6562 | ac_cv_prog_f77_g=no |
d9898ee8 |
6563 | fi |
64ff59ba |
6564 | |
6565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6566 | |
6567 | fi |
64ff59ba |
6568 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6569 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6570 | if test "$ac_test_FFLAGS" = set; then |
6571 | FFLAGS=$ac_save_FFLAGS |
6572 | elif test $ac_cv_prog_f77_g = yes; then |
6573 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6574 | FFLAGS="-g -O2" |
6575 | else |
6576 | FFLAGS="-g" |
6577 | fi |
6578 | else |
6579 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6580 | FFLAGS="-O2" |
6581 | else |
6582 | FFLAGS= |
6583 | fi |
6584 | fi |
6585 | |
6586 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6587 | ac_ext=c |
6588 | ac_cpp='$CPP $CPPFLAGS' |
6589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6592 | |
6593 | |
6594 | |
6595 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6596 | |
6597 | # find the maximum length of command line arguments |
64ff59ba |
6598 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6599 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6600 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6602 | else |
6603 | i=0 |
6604 | teststring="ABCD" |
6605 | |
6606 | case $build_os in |
6607 | msdosdjgpp*) |
6608 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6609 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6610 | # during glob expansion). Even if it were fixed, the result of this |
6611 | # check would be larger than it should be. |
6612 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6613 | ;; |
6614 | |
6615 | gnu*) |
6616 | # Under GNU Hurd, this test is not required because there is |
6617 | # no limit to the length of command line arguments. |
6618 | # Libtool will interpret -1 as no limit whatsoever |
6619 | lt_cv_sys_max_cmd_len=-1; |
6620 | ;; |
6621 | |
6622 | cygwin* | mingw*) |
6623 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6624 | # about 5 minutes as the teststring grows exponentially. |
6625 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6626 | # you end up with a "frozen" computer, even though with patience |
6627 | # the test eventually succeeds (with a max line length of 256k). |
6628 | # Instead, let's just punt: use the minimum linelength reported by |
6629 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6630 | lt_cv_sys_max_cmd_len=8192; |
6631 | ;; |
6632 | |
6633 | amigaos*) |
6634 | # On AmigaOS with pdksh, this test takes hours, literally. |
6635 | # So we just punt and use a minimum line length of 8192. |
6636 | lt_cv_sys_max_cmd_len=8192; |
6637 | ;; |
6638 | |
6639 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6640 | # This has been around since 386BSD, at least. Likely further. |
6641 | if test -x /sbin/sysctl; then |
6642 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6643 | elif test -x /usr/sbin/sysctl; then |
6644 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6645 | else |
6646 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6647 | fi |
6648 | # And add a safety zone |
6649 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6650 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6651 | ;; |
6652 | |
6653 | interix*) |
6654 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6655 | lt_cv_sys_max_cmd_len=196608 |
6656 | ;; |
6657 | |
6658 | osf*) |
6659 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6660 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6661 | # nice to cause kernel panics so lets avoid the loop below. |
6662 | # First set a reasonable default. |
6663 | lt_cv_sys_max_cmd_len=16384 |
6664 | # |
6665 | if test -x /sbin/sysconfig; then |
6666 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6667 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6668 | esac |
6669 | fi |
6670 | ;; |
6671 | sco3.2v5*) |
6672 | lt_cv_sys_max_cmd_len=102400 |
6673 | ;; |
6674 | sysv5* | sco5v6* | sysv4.2uw2*) |
6675 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6676 | if test -n "$kargmax"; then |
6677 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6678 | else |
6679 | lt_cv_sys_max_cmd_len=32768 |
6680 | fi |
6681 | ;; |
6682 | *) |
0fde1ce3 |
6683 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6684 | if test -n "$lt_cv_sys_max_cmd_len"; then |
6685 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6686 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6687 | else |
6688 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6689 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
d9898ee8 |
6690 | = "XX$teststring") >/dev/null 2>&1 && |
0fde1ce3 |
6691 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6692 | lt_cv_sys_max_cmd_len=$new_result && |
6693 | test $i != 17 # 1/2 MB should be enough |
6694 | do |
6695 | i=`expr $i + 1` |
6696 | teststring=$teststring$teststring |
6697 | done |
6698 | teststring= |
6699 | # Add a significant safety factor because C++ compilers can tack on massive |
6700 | # amounts of additional arguments before passing them to the linker. |
6701 | # It appears as though 1/2 is a usable value. |
6702 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6703 | fi |
d9898ee8 |
6704 | ;; |
6705 | esac |
6706 | |
6707 | fi |
6708 | |
6709 | if test -n $lt_cv_sys_max_cmd_len ; then |
64ff59ba |
6710 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6711 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6712 | else |
64ff59ba |
6713 | { echo "$as_me:$LINENO: result: none" >&5 |
6714 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6715 | fi |
6716 | |
6717 | |
6718 | |
6719 | |
0fde1ce3 |
6720 | |
d9898ee8 |
6721 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
64ff59ba |
6722 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6723 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6724 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726 | else |
6727 | |
6728 | # These are sane defaults that work on at least a few old systems. |
6729 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6730 | |
6731 | # Character class describing NM global symbol codes. |
6732 | symcode='[BCDEGRST]' |
6733 | |
6734 | # Regexp to match symbols that can be accessed directly from C. |
6735 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6736 | |
6737 | # Transform an extracted symbol line into a proper C declaration |
6738 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6739 | |
6740 | # Transform an extracted symbol line into symbol name and symbol address |
6741 | 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'" |
6742 | |
6743 | # Define system-specific variables. |
6744 | case $host_os in |
6745 | aix*) |
6746 | symcode='[BCDT]' |
6747 | ;; |
6748 | cygwin* | mingw* | pw32*) |
6749 | symcode='[ABCDGISTW]' |
6750 | ;; |
6751 | hpux*) # Its linker distinguishes data from code symbols |
6752 | if test "$host_cpu" = ia64; then |
6753 | symcode='[ABCDEGRST]' |
6754 | fi |
6755 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6756 | 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'" |
6757 | ;; |
0fde1ce3 |
6758 | linux* | k*bsd*-gnu) |
d9898ee8 |
6759 | if test "$host_cpu" = ia64; then |
6760 | symcode='[ABCDGIRSTW]' |
6761 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6762 | 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'" |
6763 | fi |
6764 | ;; |
6765 | irix* | nonstopux*) |
6766 | symcode='[BCDEGRST]' |
6767 | ;; |
6768 | osf*) |
6769 | symcode='[BCDEGQRST]' |
6770 | ;; |
6771 | solaris*) |
6772 | symcode='[BDRT]' |
6773 | ;; |
6774 | sco3.2v5*) |
6775 | symcode='[DT]' |
6776 | ;; |
6777 | sysv4.2uw2*) |
6778 | symcode='[DT]' |
6779 | ;; |
6780 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6781 | symcode='[ABDT]' |
6782 | ;; |
6783 | sysv4) |
6784 | symcode='[DFNSTU]' |
6785 | ;; |
6786 | esac |
6787 | |
6788 | # Handle CRLF in mingw tool chain |
6789 | opt_cr= |
6790 | case $build_os in |
6791 | mingw*) |
6792 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6793 | ;; |
6794 | esac |
6795 | |
6796 | # If we're using GNU nm, then use its standard symbol codes. |
6797 | case `$NM -V 2>&1` in |
6798 | *GNU* | *'with BFD'*) |
6799 | symcode='[ABCDGIRSTW]' ;; |
6800 | esac |
6801 | |
6802 | # Try without a prefix undercore, then with it. |
6803 | for ac_symprfx in "" "_"; do |
6804 | |
6805 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6806 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6807 | |
6808 | # Write the raw and C identifiers. |
6809 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6810 | |
6811 | # Check to see that the pipe works correctly. |
6812 | pipe_works=no |
6813 | |
6814 | rm -f conftest* |
6815 | cat > conftest.$ac_ext <<EOF |
6816 | #ifdef __cplusplus |
6817 | extern "C" { |
6818 | #endif |
6819 | char nm_test_var; |
6820 | void nm_test_func(){} |
6821 | #ifdef __cplusplus |
6822 | } |
6823 | #endif |
6824 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6825 | EOF |
6826 | |
6827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6828 | (eval $ac_compile) 2>&5 |
6829 | ac_status=$? |
6830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6831 | (exit $ac_status); }; then |
6832 | # Now try to grab the symbols. |
6833 | nlist=conftest.nm |
6834 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6835 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6836 | ac_status=$? |
6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6838 | (exit $ac_status); } && test -s "$nlist"; then |
6839 | # Try sorting and uniquifying the output. |
6840 | if sort "$nlist" | uniq > "$nlist"T; then |
6841 | mv -f "$nlist"T "$nlist" |
6842 | else |
6843 | rm -f "$nlist"T |
6844 | fi |
6845 | |
6846 | # Make sure that we snagged all the symbols we need. |
6847 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6848 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6849 | cat <<EOF > conftest.$ac_ext |
6850 | #ifdef __cplusplus |
6851 | extern "C" { |
6852 | #endif |
6853 | |
6854 | EOF |
6855 | # Now generate the symbol file. |
6856 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6857 | |
6858 | cat <<EOF >> conftest.$ac_ext |
6859 | #if defined (__STDC__) && __STDC__ |
6860 | # define lt_ptr_t void * |
6861 | #else |
6862 | # define lt_ptr_t char * |
6863 | # define const |
6864 | #endif |
6865 | |
6866 | /* The mapping between symbol names and symbols. */ |
6867 | const struct { |
6868 | const char *name; |
6869 | lt_ptr_t address; |
6870 | } |
6871 | lt_preloaded_symbols[] = |
6872 | { |
6873 | EOF |
6874 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6875 | cat <<\EOF >> conftest.$ac_ext |
6876 | {0, (lt_ptr_t) 0} |
6877 | }; |
6878 | |
6879 | #ifdef __cplusplus |
6880 | } |
6881 | #endif |
6882 | EOF |
6883 | # Now try linking the two files. |
6884 | mv conftest.$ac_objext conftstm.$ac_objext |
6885 | lt_save_LIBS="$LIBS" |
6886 | lt_save_CFLAGS="$CFLAGS" |
6887 | LIBS="conftstm.$ac_objext" |
6888 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6890 | (eval $ac_link) 2>&5 |
6891 | ac_status=$? |
6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6893 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6894 | pipe_works=yes |
6895 | fi |
6896 | LIBS="$lt_save_LIBS" |
6897 | CFLAGS="$lt_save_CFLAGS" |
6898 | else |
6899 | echo "cannot find nm_test_func in $nlist" >&5 |
6900 | fi |
6901 | else |
6902 | echo "cannot find nm_test_var in $nlist" >&5 |
6903 | fi |
6904 | else |
6905 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6906 | fi |
6907 | else |
6908 | echo "$progname: failed program was:" >&5 |
6909 | cat conftest.$ac_ext >&5 |
6910 | fi |
6911 | rm -f conftest* conftst* |
6912 | |
6913 | # Do not use the global_symbol_pipe unless it works. |
6914 | if test "$pipe_works" = yes; then |
6915 | break |
6916 | else |
6917 | lt_cv_sys_global_symbol_pipe= |
6918 | fi |
6919 | done |
6920 | |
6921 | fi |
6922 | |
6923 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6924 | lt_cv_sys_global_symbol_to_cdecl= |
6925 | fi |
6926 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
64ff59ba |
6927 | { echo "$as_me:$LINENO: result: failed" >&5 |
6928 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6929 | else |
64ff59ba |
6930 | { echo "$as_me:$LINENO: result: ok" >&5 |
6931 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6932 | fi |
6933 | |
64ff59ba |
6934 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6935 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6936 | if test "${lt_cv_objdir+set}" = set; then |
6937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6938 | else |
6939 | rm -f .libs 2>/dev/null |
6940 | mkdir .libs 2>/dev/null |
6941 | if test -d .libs; then |
6942 | lt_cv_objdir=.libs |
6943 | else |
6944 | # MS-DOS does not allow filenames that begin with a dot. |
6945 | lt_cv_objdir=_libs |
6946 | fi |
6947 | rmdir .libs 2>/dev/null |
6948 | fi |
64ff59ba |
6949 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6950 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6951 | objdir=$lt_cv_objdir |
6952 | |
6953 | |
6954 | |
6955 | |
6956 | |
6957 | case $host_os in |
6958 | aix3*) |
6959 | # AIX sometimes has problems with the GCC collect2 program. For some |
6960 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6961 | # vanish in a puff of smoke. |
6962 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6963 | COLLECT_NAMES= |
6964 | export COLLECT_NAMES |
6965 | fi |
6966 | ;; |
6967 | esac |
6968 | |
6969 | # Sed substitution that helps us do robust quoting. It backslashifies |
6970 | # metacharacters that are still active within double-quoted strings. |
6971 | Xsed='sed -e 1s/^X//' |
6972 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6973 | |
6974 | # Same as above, but do not quote variable references. |
6975 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6976 | |
6977 | # Sed substitution to delay expansion of an escaped shell variable in a |
6978 | # double_quote_subst'ed string. |
6979 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6980 | |
6981 | # Sed substitution to avoid accidental globbing in evaled expressions |
6982 | no_glob_subst='s/\*/\\\*/g' |
6983 | |
6984 | # Constants: |
6985 | rm="rm -f" |
6986 | |
6987 | # Global variables: |
6988 | default_ofile=libtool |
6989 | can_build_shared=yes |
6990 | |
6991 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6992 | # which needs '.lib'). |
6993 | libext=a |
6994 | ltmain="$ac_aux_dir/ltmain.sh" |
6995 | ofile="$default_ofile" |
6996 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6997 | |
6998 | if test -n "$ac_tool_prefix"; then |
6999 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7000 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
64ff59ba |
7001 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7003 | if test "${ac_cv_prog_AR+set}" = set; then |
7004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7005 | else |
7006 | if test -n "$AR"; then |
7007 | ac_cv_prog_AR="$AR" # Let the user override the test. |
7008 | else |
7009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7010 | for as_dir in $PATH |
7011 | do |
7012 | IFS=$as_save_IFS |
7013 | test -z "$as_dir" && as_dir=. |
7014 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
7015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7016 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
7017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7018 | break 2 |
7019 | fi |
7020 | done |
7021 | done |
64ff59ba |
7022 | IFS=$as_save_IFS |
d9898ee8 |
7023 | |
7024 | fi |
7025 | fi |
7026 | AR=$ac_cv_prog_AR |
7027 | if test -n "$AR"; then |
64ff59ba |
7028 | { echo "$as_me:$LINENO: result: $AR" >&5 |
7029 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
7030 | else |
64ff59ba |
7031 | { echo "$as_me:$LINENO: result: no" >&5 |
7032 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7033 | fi |
7034 | |
64ff59ba |
7035 | |
d9898ee8 |
7036 | fi |
7037 | if test -z "$ac_cv_prog_AR"; then |
7038 | ac_ct_AR=$AR |
7039 | # Extract the first word of "ar", so it can be a program name with args. |
7040 | set dummy ar; ac_word=$2 |
64ff59ba |
7041 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7043 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
7044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7045 | else |
7046 | if test -n "$ac_ct_AR"; then |
7047 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
7048 | else |
7049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7050 | for as_dir in $PATH |
7051 | do |
7052 | IFS=$as_save_IFS |
7053 | test -z "$as_dir" && as_dir=. |
7054 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
7055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7056 | ac_cv_prog_ac_ct_AR="ar" |
7057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7058 | break 2 |
7059 | fi |
7060 | done |
7061 | done |
64ff59ba |
7062 | IFS=$as_save_IFS |
d9898ee8 |
7063 | |
d9898ee8 |
7064 | fi |
7065 | fi |
7066 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7067 | if test -n "$ac_ct_AR"; then |
64ff59ba |
7068 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
7069 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
7070 | else |
64ff59ba |
7071 | { echo "$as_me:$LINENO: result: no" >&5 |
7072 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7073 | fi |
7074 | |
64ff59ba |
7075 | if test "x$ac_ct_AR" = x; then |
7076 | AR="false" |
7077 | else |
7078 | case $cross_compiling:$ac_tool_warned in |
7079 | yes:) |
7080 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7081 | whose name does not start with the host triplet. If you think this |
7082 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7083 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7084 | whose name does not start with the host triplet. If you think this |
7085 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7086 | ac_tool_warned=yes ;; |
7087 | esac |
7088 | AR=$ac_ct_AR |
7089 | fi |
d9898ee8 |
7090 | else |
7091 | AR="$ac_cv_prog_AR" |
7092 | fi |
7093 | |
7094 | if test -n "$ac_tool_prefix"; then |
7095 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
7096 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
64ff59ba |
7097 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7099 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7101 | else |
7102 | if test -n "$RANLIB"; then |
7103 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
7104 | else |
7105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7106 | for as_dir in $PATH |
7107 | do |
7108 | IFS=$as_save_IFS |
7109 | test -z "$as_dir" && as_dir=. |
7110 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
7111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7112 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7114 | break 2 |
7115 | fi |
7116 | done |
7117 | done |
64ff59ba |
7118 | IFS=$as_save_IFS |
d9898ee8 |
7119 | |
7120 | fi |
7121 | fi |
7122 | RANLIB=$ac_cv_prog_RANLIB |
7123 | if test -n "$RANLIB"; then |
64ff59ba |
7124 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7125 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
7126 | else |
64ff59ba |
7127 | { echo "$as_me:$LINENO: result: no" >&5 |
7128 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7129 | fi |
7130 | |
64ff59ba |
7131 | |
d9898ee8 |
7132 | fi |
7133 | if test -z "$ac_cv_prog_RANLIB"; then |
7134 | ac_ct_RANLIB=$RANLIB |
7135 | # Extract the first word of "ranlib", so it can be a program name with args. |
7136 | set dummy ranlib; ac_word=$2 |
64ff59ba |
7137 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7139 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
7140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7141 | else |
7142 | if test -n "$ac_ct_RANLIB"; then |
7143 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
7144 | else |
7145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7146 | for as_dir in $PATH |
7147 | do |
7148 | IFS=$as_save_IFS |
7149 | test -z "$as_dir" && as_dir=. |
7150 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
7151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7152 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7154 | break 2 |
7155 | fi |
7156 | done |
7157 | done |
64ff59ba |
7158 | IFS=$as_save_IFS |
d9898ee8 |
7159 | |
d9898ee8 |
7160 | fi |
7161 | fi |
7162 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7163 | if test -n "$ac_ct_RANLIB"; then |
64ff59ba |
7164 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
7165 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
7166 | else |
64ff59ba |
7167 | { echo "$as_me:$LINENO: result: no" >&5 |
7168 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7169 | fi |
7170 | |
64ff59ba |
7171 | if test "x$ac_ct_RANLIB" = x; then |
7172 | RANLIB=":" |
7173 | else |
7174 | case $cross_compiling:$ac_tool_warned in |
7175 | yes:) |
7176 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7177 | whose name does not start with the host triplet. If you think this |
7178 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7179 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7180 | whose name does not start with the host triplet. If you think this |
7181 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7182 | ac_tool_warned=yes ;; |
7183 | esac |
7184 | RANLIB=$ac_ct_RANLIB |
7185 | fi |
d9898ee8 |
7186 | else |
7187 | RANLIB="$ac_cv_prog_RANLIB" |
7188 | fi |
7189 | |
7190 | if test -n "$ac_tool_prefix"; then |
7191 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
7192 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
64ff59ba |
7193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7195 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7197 | else |
7198 | if test -n "$STRIP"; then |
7199 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
7200 | else |
7201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7202 | for as_dir in $PATH |
7203 | do |
7204 | IFS=$as_save_IFS |
7205 | test -z "$as_dir" && as_dir=. |
7206 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
7207 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7208 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
7209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7210 | break 2 |
7211 | fi |
7212 | done |
7213 | done |
64ff59ba |
7214 | IFS=$as_save_IFS |
d9898ee8 |
7215 | |
7216 | fi |
7217 | fi |
7218 | STRIP=$ac_cv_prog_STRIP |
7219 | if test -n "$STRIP"; then |
64ff59ba |
7220 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
7221 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
7222 | else |
64ff59ba |
7223 | { echo "$as_me:$LINENO: result: no" >&5 |
7224 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7225 | fi |
7226 | |
64ff59ba |
7227 | |
d9898ee8 |
7228 | fi |
7229 | if test -z "$ac_cv_prog_STRIP"; then |
7230 | ac_ct_STRIP=$STRIP |
7231 | # Extract the first word of "strip", so it can be a program name with args. |
7232 | set dummy strip; ac_word=$2 |
64ff59ba |
7233 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7235 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
7236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7237 | else |
7238 | if test -n "$ac_ct_STRIP"; then |
7239 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
7240 | else |
7241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7242 | for as_dir in $PATH |
7243 | do |
7244 | IFS=$as_save_IFS |
7245 | test -z "$as_dir" && as_dir=. |
7246 | for ac_exec_ext in '' $ac_executable_extensions; do |
64ff59ba |
7247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7248 | ac_cv_prog_ac_ct_STRIP="strip" |
7249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7250 | break 2 |
7251 | fi |
7252 | done |
7253 | done |
64ff59ba |
7254 | IFS=$as_save_IFS |
d9898ee8 |
7255 | |
d9898ee8 |
7256 | fi |
7257 | fi |
7258 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7259 | if test -n "$ac_ct_STRIP"; then |
64ff59ba |
7260 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
7261 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
7262 | else |
64ff59ba |
7263 | { echo "$as_me:$LINENO: result: no" >&5 |
7264 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7265 | fi |
7266 | |
64ff59ba |
7267 | if test "x$ac_ct_STRIP" = x; then |
7268 | STRIP=":" |
7269 | else |
7270 | case $cross_compiling:$ac_tool_warned in |
7271 | yes:) |
7272 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7273 | whose name does not start with the host triplet. If you think this |
7274 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7275 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7276 | whose name does not start with the host triplet. If you think this |
7277 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7278 | ac_tool_warned=yes ;; |
7279 | esac |
7280 | STRIP=$ac_ct_STRIP |
7281 | fi |
d9898ee8 |
7282 | else |
7283 | STRIP="$ac_cv_prog_STRIP" |
7284 | fi |
7285 | |
7286 | |
7287 | old_CC="$CC" |
7288 | old_CFLAGS="$CFLAGS" |
7289 | |
7290 | # Set sane defaults for various variables |
7291 | test -z "$AR" && AR=ar |
7292 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
7293 | test -z "$AS" && AS=as |
7294 | test -z "$CC" && CC=cc |
7295 | test -z "$LTCC" && LTCC=$CC |
7296 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
7297 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7298 | test -z "$LD" && LD=ld |
7299 | test -z "$LN_S" && LN_S="ln -s" |
7300 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
7301 | test -z "$NM" && NM=nm |
7302 | test -z "$SED" && SED=sed |
7303 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7304 | test -z "$RANLIB" && RANLIB=: |
7305 | test -z "$STRIP" && STRIP=: |
7306 | test -z "$ac_objext" && ac_objext=o |
7307 | |
7308 | # Determine commands to create old-style static archives. |
0fde1ce3 |
7309 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d9898ee8 |
7310 | old_postinstall_cmds='chmod 644 $oldlib' |
7311 | old_postuninstall_cmds= |
7312 | |
7313 | if test -n "$RANLIB"; then |
7314 | case $host_os in |
7315 | openbsd*) |
7316 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
7317 | ;; |
7318 | *) |
7319 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
7320 | ;; |
7321 | esac |
7322 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
7323 | fi |
7324 | |
7325 | for cc_temp in $compiler""; do |
7326 | case $cc_temp in |
7327 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7328 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7329 | \-*) ;; |
7330 | *) break;; |
7331 | esac |
7332 | done |
7333 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7334 | |
7335 | |
7336 | # Only perform the check for file, if the check method requires it |
7337 | case $deplibs_check_method in |
7338 | file_magic*) |
7339 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
64ff59ba |
7340 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7341 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
7342 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7344 | else |
7345 | case $MAGIC_CMD in |
7346 | [\\/*] | ?:[\\/]*) |
7347 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7348 | ;; |
7349 | *) |
7350 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7351 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7352 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7353 | for ac_dir in $ac_dummy; do |
7354 | IFS="$lt_save_ifs" |
7355 | test -z "$ac_dir" && ac_dir=. |
7356 | if test -f $ac_dir/${ac_tool_prefix}file; then |
7357 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
7358 | if test -n "$file_magic_test_file"; then |
7359 | case $deplibs_check_method in |
7360 | "file_magic "*) |
7361 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7362 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7363 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7364 | $EGREP "$file_magic_regex" > /dev/null; then |
7365 | : |
7366 | else |
7367 | cat <<EOF 1>&2 |
7368 | |
7369 | *** Warning: the command libtool uses to detect shared libraries, |
7370 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7371 | *** The result is that libtool may fail to recognize shared libraries |
7372 | *** as such. This will affect the creation of libtool libraries that |
7373 | *** depend on shared libraries, but programs linked with such libtool |
7374 | *** libraries will work regardless of this problem. Nevertheless, you |
7375 | *** may want to report the problem to your system manager and/or to |
7376 | *** bug-libtool@gnu.org |
7377 | |
7378 | EOF |
7379 | fi ;; |
7380 | esac |
7381 | fi |
7382 | break |
7383 | fi |
7384 | done |
7385 | IFS="$lt_save_ifs" |
7386 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7387 | ;; |
7388 | esac |
7389 | fi |
7390 | |
7391 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7392 | if test -n "$MAGIC_CMD"; then |
64ff59ba |
7393 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7394 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7395 | else |
64ff59ba |
7396 | { echo "$as_me:$LINENO: result: no" >&5 |
7397 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7398 | fi |
7399 | |
7400 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7401 | if test -n "$ac_tool_prefix"; then |
64ff59ba |
7402 | { echo "$as_me:$LINENO: checking for file" >&5 |
7403 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7404 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7406 | else |
7407 | case $MAGIC_CMD in |
7408 | [\\/*] | ?:[\\/]*) |
7409 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7410 | ;; |
7411 | *) |
7412 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7413 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7414 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7415 | for ac_dir in $ac_dummy; do |
7416 | IFS="$lt_save_ifs" |
7417 | test -z "$ac_dir" && ac_dir=. |
7418 | if test -f $ac_dir/file; then |
7419 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7420 | if test -n "$file_magic_test_file"; then |
7421 | case $deplibs_check_method in |
7422 | "file_magic "*) |
7423 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7424 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7425 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7426 | $EGREP "$file_magic_regex" > /dev/null; then |
7427 | : |
7428 | else |
7429 | cat <<EOF 1>&2 |
7430 | |
7431 | *** Warning: the command libtool uses to detect shared libraries, |
7432 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7433 | *** The result is that libtool may fail to recognize shared libraries |
7434 | *** as such. This will affect the creation of libtool libraries that |
7435 | *** depend on shared libraries, but programs linked with such libtool |
7436 | *** libraries will work regardless of this problem. Nevertheless, you |
7437 | *** may want to report the problem to your system manager and/or to |
7438 | *** bug-libtool@gnu.org |
7439 | |
7440 | EOF |
7441 | fi ;; |
7442 | esac |
7443 | fi |
7444 | break |
7445 | fi |
7446 | done |
7447 | IFS="$lt_save_ifs" |
7448 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7449 | ;; |
7450 | esac |
7451 | fi |
7452 | |
7453 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7454 | if test -n "$MAGIC_CMD"; then |
64ff59ba |
7455 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7456 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7457 | else |
64ff59ba |
7458 | { echo "$as_me:$LINENO: result: no" >&5 |
7459 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7460 | fi |
7461 | |
7462 | else |
7463 | MAGIC_CMD=: |
7464 | fi |
7465 | fi |
7466 | |
7467 | fi |
7468 | ;; |
7469 | esac |
7470 | |
7471 | enable_dlopen=no |
7472 | enable_win32_dll=yes |
7473 | |
64ff59ba |
7474 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7475 | if test "${enable_libtool_lock+set}" = set; then |
64ff59ba |
7476 | enableval=$enable_libtool_lock; |
7477 | fi |
d9898ee8 |
7478 | |
d9898ee8 |
7479 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7480 | |
7481 | |
64ff59ba |
7482 | # Check whether --with-pic was given. |
d9898ee8 |
7483 | if test "${with_pic+set}" = set; then |
64ff59ba |
7484 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7485 | else |
7486 | pic_mode=default |
64ff59ba |
7487 | fi |
7488 | |
d9898ee8 |
7489 | test -z "$pic_mode" && pic_mode=default |
7490 | |
7491 | # Use C for the default configuration in the libtool script |
7492 | tagname= |
7493 | lt_save_CC="$CC" |
7494 | ac_ext=c |
7495 | ac_cpp='$CPP $CPPFLAGS' |
7496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7499 | |
7500 | |
7501 | # Source file extension for C test sources. |
7502 | ac_ext=c |
7503 | |
7504 | # Object file extension for compiled C test sources. |
7505 | objext=o |
7506 | objext=$objext |
7507 | |
7508 | # Code to be used in simple compile tests |
0fde1ce3 |
7509 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 |
7510 | |
7511 | # Code to be used in simple link tests |
0fde1ce3 |
7512 | lt_simple_link_test_code='int main(){return(0);}' |
d9898ee8 |
7513 | |
7514 | |
7515 | # If no C compiler was specified, use CC. |
7516 | LTCC=${LTCC-"$CC"} |
7517 | |
7518 | # If no C compiler flags were specified, use CFLAGS. |
7519 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7520 | |
7521 | # Allow CC to be a program name with arguments. |
7522 | compiler=$CC |
7523 | |
7524 | |
7525 | # save warnings/boilerplate of simple test code |
7526 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
7527 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
7528 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7529 | _lt_compiler_boilerplate=`cat conftest.err` |
7530 | $rm conftest* |
7531 | |
7532 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
7533 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
7534 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7535 | _lt_linker_boilerplate=`cat conftest.err` |
7536 | $rm conftest* |
7537 | |
7538 | |
7539 | ## CAVEAT EMPTOR: |
7540 | ## There is no encapsulation within the following macros, do not change |
7541 | ## the running order or otherwise move them around unless you know exactly |
7542 | ## what you are doing... |
7543 | |
7544 | lt_prog_compiler_no_builtin_flag= |
7545 | |
7546 | if test "$GCC" = yes; then |
7547 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7548 | |
7549 | |
64ff59ba |
7550 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7551 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7552 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7554 | else |
7555 | lt_cv_prog_compiler_rtti_exceptions=no |
7556 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
7557 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7558 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7559 | # Insert the option either (1) after the last *FLAGS variable, or |
7560 | # (2) before a word containing "conftest.", or (3) at the end. |
7561 | # Note that $ac_compile itself does not contain backslashes and begins |
7562 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7563 | # The option is referenced via a variable to avoid confusing sed. |
7564 | lt_compile=`echo "$ac_compile" | $SED \ |
7565 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7566 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7567 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
7568 | (eval echo "\"\$as_me:7568: $lt_compile\"" >&5) |
d9898ee8 |
7569 | (eval "$lt_compile" 2>conftest.err) |
7570 | ac_status=$? |
7571 | cat conftest.err >&5 |
0fde1ce3 |
7572 | echo "$as_me:7572: \$? = $ac_status" >&5 |
d9898ee8 |
7573 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7574 | # The compiler can only warn and ignore the option if not recognized |
7575 | # So say no if there are warnings other than the usual output. |
7576 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7577 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7578 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7579 | lt_cv_prog_compiler_rtti_exceptions=yes |
7580 | fi |
7581 | fi |
7582 | $rm conftest* |
7583 | |
7584 | fi |
64ff59ba |
7585 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7586 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7587 | |
7588 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7589 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7590 | else |
7591 | : |
7592 | fi |
7593 | |
7594 | fi |
7595 | |
7596 | lt_prog_compiler_wl= |
7597 | lt_prog_compiler_pic= |
7598 | lt_prog_compiler_static= |
7599 | |
64ff59ba |
7600 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7601 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7602 | |
7603 | if test "$GCC" = yes; then |
7604 | lt_prog_compiler_wl='-Wl,' |
7605 | lt_prog_compiler_static='-static' |
7606 | |
7607 | case $host_os in |
7608 | aix*) |
7609 | # All AIX code is PIC. |
7610 | if test "$host_cpu" = ia64; then |
7611 | # AIX 5 now supports IA64 processor |
7612 | lt_prog_compiler_static='-Bstatic' |
7613 | fi |
7614 | ;; |
7615 | |
7616 | amigaos*) |
7617 | # FIXME: we need at least 68020 code to build shared libraries, but |
7618 | # adding the `-m68020' flag to GCC prevents building anything better, |
7619 | # like `-m68040'. |
7620 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7621 | ;; |
7622 | |
0fde1ce3 |
7623 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
7624 | # PIC is the default for these OSes. |
7625 | ;; |
7626 | |
0fde1ce3 |
7627 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
7628 | # This hack is so that the source file can tell whether it is being |
7629 | # built for inclusion in a dll (and should export symbols for example). |
0fde1ce3 |
7630 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7631 | # (--disable-auto-import) libraries |
d9898ee8 |
7632 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7633 | ;; |
7634 | |
7635 | darwin* | rhapsody*) |
7636 | # PIC is the default on this platform |
7637 | # Common symbols not allowed in MH_DYLIB files |
7638 | lt_prog_compiler_pic='-fno-common' |
7639 | ;; |
7640 | |
0fde1ce3 |
7641 | interix[3-9]*) |
d9898ee8 |
7642 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7643 | # Instead, we relocate shared libraries at runtime. |
7644 | ;; |
7645 | |
7646 | msdosdjgpp*) |
7647 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7648 | # on systems that don't support them. |
7649 | lt_prog_compiler_can_build_shared=no |
7650 | enable_shared=no |
7651 | ;; |
7652 | |
7653 | sysv4*MP*) |
7654 | if test -d /usr/nec; then |
7655 | lt_prog_compiler_pic=-Kconform_pic |
7656 | fi |
7657 | ;; |
7658 | |
7659 | hpux*) |
7660 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7661 | # not for PA HP-UX. |
7662 | case $host_cpu in |
7663 | hppa*64*|ia64*) |
7664 | # +Z the default |
7665 | ;; |
7666 | *) |
7667 | lt_prog_compiler_pic='-fPIC' |
7668 | ;; |
7669 | esac |
7670 | ;; |
7671 | |
7672 | *) |
7673 | lt_prog_compiler_pic='-fPIC' |
7674 | ;; |
7675 | esac |
7676 | else |
7677 | # PORTME Check for flag to pass linker flags through the system compiler. |
7678 | case $host_os in |
7679 | aix*) |
7680 | lt_prog_compiler_wl='-Wl,' |
7681 | if test "$host_cpu" = ia64; then |
7682 | # AIX 5 now supports IA64 processor |
7683 | lt_prog_compiler_static='-Bstatic' |
7684 | else |
7685 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7686 | fi |
7687 | ;; |
7688 | darwin*) |
7689 | # PIC is the default on this platform |
7690 | # Common symbols not allowed in MH_DYLIB files |
7691 | case $cc_basename in |
7692 | xlc*) |
7693 | lt_prog_compiler_pic='-qnocommon' |
7694 | lt_prog_compiler_wl='-Wl,' |
7695 | ;; |
7696 | esac |
7697 | ;; |
7698 | |
0fde1ce3 |
7699 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
7700 | # This hack is so that the source file can tell whether it is being |
7701 | # built for inclusion in a dll (and should export symbols for example). |
7702 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7703 | ;; |
7704 | |
7705 | hpux9* | hpux10* | hpux11*) |
7706 | lt_prog_compiler_wl='-Wl,' |
7707 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7708 | # not for PA HP-UX. |
7709 | case $host_cpu in |
7710 | hppa*64*|ia64*) |
7711 | # +Z the default |
7712 | ;; |
7713 | *) |
7714 | lt_prog_compiler_pic='+Z' |
7715 | ;; |
7716 | esac |
7717 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7718 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7719 | ;; |
7720 | |
7721 | irix5* | irix6* | nonstopux*) |
7722 | lt_prog_compiler_wl='-Wl,' |
7723 | # PIC (with -KPIC) is the default. |
7724 | lt_prog_compiler_static='-non_shared' |
7725 | ;; |
7726 | |
7727 | newsos6) |
7728 | lt_prog_compiler_pic='-KPIC' |
7729 | lt_prog_compiler_static='-Bstatic' |
7730 | ;; |
7731 | |
0fde1ce3 |
7732 | linux* | k*bsd*-gnu) |
d9898ee8 |
7733 | case $cc_basename in |
7734 | icc* | ecc*) |
7735 | lt_prog_compiler_wl='-Wl,' |
7736 | lt_prog_compiler_pic='-KPIC' |
7737 | lt_prog_compiler_static='-static' |
7738 | ;; |
7739 | pgcc* | pgf77* | pgf90* | pgf95*) |
7740 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7741 | # which looks to be a dead project) |
7742 | lt_prog_compiler_wl='-Wl,' |
7743 | lt_prog_compiler_pic='-fpic' |
7744 | lt_prog_compiler_static='-Bstatic' |
7745 | ;; |
7746 | ccc*) |
7747 | lt_prog_compiler_wl='-Wl,' |
7748 | # All Alpha code is PIC. |
7749 | lt_prog_compiler_static='-non_shared' |
7750 | ;; |
0fde1ce3 |
7751 | *) |
7752 | case `$CC -V 2>&1 | sed 5q` in |
7753 | *Sun\ C*) |
7754 | # Sun C 5.9 |
7755 | lt_prog_compiler_pic='-KPIC' |
7756 | lt_prog_compiler_static='-Bstatic' |
7757 | lt_prog_compiler_wl='-Wl,' |
7758 | ;; |
7759 | *Sun\ F*) |
7760 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
7761 | lt_prog_compiler_pic='-KPIC' |
7762 | lt_prog_compiler_static='-Bstatic' |
7763 | lt_prog_compiler_wl='' |
7764 | ;; |
7765 | esac |
7766 | ;; |
d9898ee8 |
7767 | esac |
7768 | ;; |
7769 | |
7770 | osf3* | osf4* | osf5*) |
7771 | lt_prog_compiler_wl='-Wl,' |
7772 | # All OSF/1 code is PIC. |
7773 | lt_prog_compiler_static='-non_shared' |
7774 | ;; |
7775 | |
0fde1ce3 |
7776 | rdos*) |
7777 | lt_prog_compiler_static='-non_shared' |
7778 | ;; |
7779 | |
d9898ee8 |
7780 | solaris*) |
7781 | lt_prog_compiler_pic='-KPIC' |
7782 | lt_prog_compiler_static='-Bstatic' |
7783 | case $cc_basename in |
7784 | f77* | f90* | f95*) |
7785 | lt_prog_compiler_wl='-Qoption ld ';; |
7786 | *) |
7787 | lt_prog_compiler_wl='-Wl,';; |
7788 | esac |
7789 | ;; |
7790 | |
7791 | sunos4*) |
7792 | lt_prog_compiler_wl='-Qoption ld ' |
7793 | lt_prog_compiler_pic='-PIC' |
7794 | lt_prog_compiler_static='-Bstatic' |
7795 | ;; |
7796 | |
7797 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7798 | lt_prog_compiler_wl='-Wl,' |
7799 | lt_prog_compiler_pic='-KPIC' |
7800 | lt_prog_compiler_static='-Bstatic' |
7801 | ;; |
7802 | |
7803 | sysv4*MP*) |
7804 | if test -d /usr/nec ;then |
7805 | lt_prog_compiler_pic='-Kconform_pic' |
7806 | lt_prog_compiler_static='-Bstatic' |
7807 | fi |
7808 | ;; |
7809 | |
7810 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7811 | lt_prog_compiler_wl='-Wl,' |
7812 | lt_prog_compiler_pic='-KPIC' |
7813 | lt_prog_compiler_static='-Bstatic' |
7814 | ;; |
7815 | |
7816 | unicos*) |
7817 | lt_prog_compiler_wl='-Wl,' |
7818 | lt_prog_compiler_can_build_shared=no |
7819 | ;; |
7820 | |
7821 | uts4*) |
7822 | lt_prog_compiler_pic='-pic' |
7823 | lt_prog_compiler_static='-Bstatic' |
7824 | ;; |
7825 | |
7826 | *) |
7827 | lt_prog_compiler_can_build_shared=no |
7828 | ;; |
7829 | esac |
7830 | fi |
7831 | |
64ff59ba |
7832 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7833 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7834 | |
7835 | # |
7836 | # Check to make sure the PIC flag actually works. |
7837 | # |
7838 | if test -n "$lt_prog_compiler_pic"; then |
7839 | |
64ff59ba |
7840 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7841 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7842 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7844 | else |
7845 | lt_prog_compiler_pic_works=no |
7846 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
7847 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7848 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7849 | # Insert the option either (1) after the last *FLAGS variable, or |
7850 | # (2) before a word containing "conftest.", or (3) at the end. |
7851 | # Note that $ac_compile itself does not contain backslashes and begins |
7852 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7853 | # The option is referenced via a variable to avoid confusing sed. |
7854 | lt_compile=`echo "$ac_compile" | $SED \ |
7855 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7856 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7857 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
7858 | (eval echo "\"\$as_me:7858: $lt_compile\"" >&5) |
d9898ee8 |
7859 | (eval "$lt_compile" 2>conftest.err) |
7860 | ac_status=$? |
7861 | cat conftest.err >&5 |
0fde1ce3 |
7862 | echo "$as_me:7862: \$? = $ac_status" >&5 |
d9898ee8 |
7863 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7864 | # The compiler can only warn and ignore the option if not recognized |
7865 | # So say no if there are warnings other than the usual output. |
7866 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7867 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7868 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7869 | lt_prog_compiler_pic_works=yes |
7870 | fi |
7871 | fi |
7872 | $rm conftest* |
7873 | |
7874 | fi |
64ff59ba |
7875 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7876 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7877 | |
7878 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7879 | case $lt_prog_compiler_pic in |
7880 | "" | " "*) ;; |
7881 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7882 | esac |
7883 | else |
7884 | lt_prog_compiler_pic= |
7885 | lt_prog_compiler_can_build_shared=no |
7886 | fi |
7887 | |
7888 | fi |
7889 | case $host_os in |
7890 | # For platforms which do not support PIC, -DPIC is meaningless: |
7891 | *djgpp*) |
7892 | lt_prog_compiler_pic= |
7893 | ;; |
7894 | *) |
7895 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7896 | ;; |
7897 | esac |
7898 | |
7899 | # |
7900 | # Check to make sure the static flag actually works. |
7901 | # |
7902 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
64ff59ba |
7903 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7904 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7905 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7907 | else |
7908 | lt_prog_compiler_static_works=no |
7909 | save_LDFLAGS="$LDFLAGS" |
7910 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
0fde1ce3 |
7911 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
7912 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7913 | # The linker can only warn and ignore the option if not recognized |
7914 | # So say no if there are warnings |
7915 | if test -s conftest.err; then |
7916 | # Append any errors to the config.log. |
7917 | cat conftest.err 1>&5 |
7918 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7919 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7920 | if diff conftest.exp conftest.er2 >/dev/null; then |
7921 | lt_prog_compiler_static_works=yes |
7922 | fi |
7923 | else |
7924 | lt_prog_compiler_static_works=yes |
7925 | fi |
7926 | fi |
7927 | $rm conftest* |
7928 | LDFLAGS="$save_LDFLAGS" |
7929 | |
7930 | fi |
64ff59ba |
7931 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7932 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7933 | |
7934 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7935 | : |
7936 | else |
7937 | lt_prog_compiler_static= |
7938 | fi |
7939 | |
7940 | |
64ff59ba |
7941 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7942 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7943 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7945 | else |
7946 | lt_cv_prog_compiler_c_o=no |
7947 | $rm -r conftest 2>/dev/null |
7948 | mkdir conftest |
7949 | cd conftest |
7950 | mkdir out |
0fde1ce3 |
7951 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7952 | |
7953 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7954 | # Insert the option either (1) after the last *FLAGS variable, or |
7955 | # (2) before a word containing "conftest.", or (3) at the end. |
7956 | # Note that $ac_compile itself does not contain backslashes and begins |
7957 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7958 | lt_compile=`echo "$ac_compile" | $SED \ |
7959 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7960 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7961 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
7962 | (eval echo "\"\$as_me:7962: $lt_compile\"" >&5) |
d9898ee8 |
7963 | (eval "$lt_compile" 2>out/conftest.err) |
7964 | ac_status=$? |
7965 | cat out/conftest.err >&5 |
0fde1ce3 |
7966 | echo "$as_me:7966: \$? = $ac_status" >&5 |
d9898ee8 |
7967 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7968 | then |
7969 | # The compiler can only warn and ignore the option if not recognized |
7970 | # So say no if there are warnings |
7971 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7972 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7973 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7974 | lt_cv_prog_compiler_c_o=yes |
7975 | fi |
7976 | fi |
7977 | chmod u+w . 2>&5 |
7978 | $rm conftest* |
7979 | # SGI C++ compiler will create directory out/ii_files/ for |
7980 | # template instantiation |
7981 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7982 | $rm out/* && rmdir out |
7983 | cd .. |
7984 | rmdir conftest |
7985 | $rm conftest* |
7986 | |
7987 | fi |
64ff59ba |
7988 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7989 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7990 | |
7991 | |
7992 | hard_links="nottested" |
7993 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7994 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
7995 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7996 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7997 | hard_links=yes |
7998 | $rm conftest* |
7999 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8000 | touch conftest.a |
8001 | ln conftest.a conftest.b 2>&5 || hard_links=no |
8002 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
8003 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
8004 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
8005 | if test "$hard_links" = no; then |
8006 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8007 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
8008 | need_locks=warn |
8009 | fi |
8010 | else |
8011 | need_locks=no |
8012 | fi |
8013 | |
64ff59ba |
8014 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8015 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
8016 | |
8017 | runpath_var= |
8018 | allow_undefined_flag= |
8019 | enable_shared_with_static_runtimes=no |
8020 | archive_cmds= |
8021 | archive_expsym_cmds= |
8022 | old_archive_From_new_cmds= |
8023 | old_archive_from_expsyms_cmds= |
8024 | export_dynamic_flag_spec= |
8025 | whole_archive_flag_spec= |
8026 | thread_safe_flag_spec= |
8027 | hardcode_libdir_flag_spec= |
8028 | hardcode_libdir_flag_spec_ld= |
8029 | hardcode_libdir_separator= |
8030 | hardcode_direct=no |
8031 | hardcode_minus_L=no |
8032 | hardcode_shlibpath_var=unsupported |
8033 | link_all_deplibs=unknown |
8034 | hardcode_automatic=no |
8035 | module_cmds= |
8036 | module_expsym_cmds= |
8037 | always_export_symbols=no |
8038 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
8039 | # include_expsyms should be a list of space-separated symbols to be *always* |
8040 | # included in the symbol list |
8041 | include_expsyms= |
8042 | # exclude_expsyms can be an extended regexp of symbols to exclude |
8043 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
8044 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
8045 | # as well as any symbol that contains `d'. |
8046 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
8047 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8048 | # platforms (ab)use it in PIC code, but their linkers get confused if |
8049 | # the symbol is explicitly referenced. Since portable code cannot |
8050 | # rely on this symbol name, it's probably fine to never include it in |
8051 | # preloaded symbol tables. |
8052 | extract_expsyms_cmds= |
8053 | # Just being paranoid about ensuring that cc_basename is set. |
8054 | for cc_temp in $compiler""; do |
8055 | case $cc_temp in |
8056 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8057 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8058 | \-*) ;; |
8059 | *) break;; |
8060 | esac |
8061 | done |
8062 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
8063 | |
8064 | case $host_os in |
8065 | cygwin* | mingw* | pw32*) |
8066 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8067 | # When not using gcc, we currently assume that we are using |
8068 | # Microsoft Visual C++. |
8069 | if test "$GCC" != yes; then |
8070 | with_gnu_ld=no |
8071 | fi |
8072 | ;; |
8073 | interix*) |
8074 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
8075 | with_gnu_ld=yes |
8076 | ;; |
8077 | openbsd*) |
8078 | with_gnu_ld=no |
8079 | ;; |
8080 | esac |
8081 | |
8082 | ld_shlibs=yes |
8083 | if test "$with_gnu_ld" = yes; then |
8084 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8085 | wlarc='${wl}' |
8086 | |
8087 | # Set some defaults for GNU ld with shared library support. These |
8088 | # are reset later if shared libraries are not supported. Putting them |
8089 | # here allows them to be overridden if necessary. |
8090 | runpath_var=LD_RUN_PATH |
8091 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
8092 | export_dynamic_flag_spec='${wl}--export-dynamic' |
8093 | # ancient GNU ld didn't support --whole-archive et. al. |
8094 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
8095 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
8096 | else |
8097 | whole_archive_flag_spec= |
8098 | fi |
8099 | supports_anon_versioning=no |
8100 | case `$LD -v 2>/dev/null` in |
8101 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8102 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
8103 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
8104 | *\ 2.11.*) ;; # other 2.11 versions |
8105 | *) supports_anon_versioning=yes ;; |
8106 | esac |
8107 | |
8108 | # See if GNU ld supports shared libraries. |
8109 | case $host_os in |
8110 | aix3* | aix4* | aix5*) |
8111 | # On AIX/PPC, the GNU linker is very broken |
8112 | if test "$host_cpu" != ia64; then |
8113 | ld_shlibs=no |
8114 | cat <<EOF 1>&2 |
8115 | |
8116 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8117 | *** to be unable to reliably create shared libraries on AIX. |
8118 | *** Therefore, libtool is disabling shared libraries support. If you |
8119 | *** really care for shared libraries, you may want to modify your PATH |
8120 | *** so that a non-GNU linker is found, and then restart. |
8121 | |
8122 | EOF |
8123 | fi |
8124 | ;; |
8125 | |
8126 | amigaos*) |
8127 | 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)' |
8128 | hardcode_libdir_flag_spec='-L$libdir' |
8129 | hardcode_minus_L=yes |
8130 | |
8131 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
8132 | # that the semantics of dynamic libraries on AmigaOS, at least up |
8133 | # to version 4, is to share data among multiple programs linked |
8134 | # with the same dynamic library. Since this doesn't match the |
8135 | # behavior of shared libraries on other platforms, we can't use |
8136 | # them. |
8137 | ld_shlibs=no |
8138 | ;; |
8139 | |
8140 | beos*) |
8141 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8142 | allow_undefined_flag=unsupported |
8143 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
8144 | # support --undefined. This deserves some investigation. FIXME |
8145 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8146 | else |
8147 | ld_shlibs=no |
8148 | fi |
8149 | ;; |
8150 | |
8151 | cygwin* | mingw* | pw32*) |
8152 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8153 | # as there is no search path for DLLs. |
8154 | hardcode_libdir_flag_spec='-L$libdir' |
8155 | allow_undefined_flag=unsupported |
8156 | always_export_symbols=no |
8157 | enable_shared_with_static_runtimes=yes |
0fde1ce3 |
8158 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
8159 | |
8160 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
8161 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
8162 | # If the export-symbols file already is a .def file (1st line |
8163 | # is EXPORTS), use it as is; otherwise, prepend... |
8164 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
8165 | cp $export_symbols $output_objdir/$soname.def; |
8166 | else |
8167 | echo EXPORTS > $output_objdir/$soname.def; |
8168 | cat $export_symbols >> $output_objdir/$soname.def; |
8169 | fi~ |
8170 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
8171 | else |
8172 | ld_shlibs=no |
8173 | fi |
8174 | ;; |
8175 | |
0fde1ce3 |
8176 | interix[3-9]*) |
d9898ee8 |
8177 | hardcode_direct=no |
8178 | hardcode_shlibpath_var=no |
8179 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8180 | export_dynamic_flag_spec='${wl}-E' |
8181 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
8182 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
8183 | # default) and relocated if they conflict, which is a slow very memory |
8184 | # consuming and fragmenting process. To avoid this, we pick a random, |
8185 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
8186 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
8187 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
8188 | 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' |
8189 | ;; |
8190 | |
0fde1ce3 |
8191 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
8192 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8193 | tmp_addflag= |
8194 | case $cc_basename,$host_cpu in |
8195 | pgcc*) # Portland Group C compiler |
8196 | 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' |
8197 | tmp_addflag=' $pic_flag' |
8198 | ;; |
8199 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
8200 | 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' |
8201 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8202 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
8203 | tmp_addflag=' -i_dynamic' ;; |
8204 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
8205 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
8206 | ifc* | ifort*) # Intel Fortran compiler |
8207 | tmp_addflag=' -nofor_main' ;; |
8208 | esac |
0fde1ce3 |
8209 | case `$CC -V 2>&1 | sed 5q` in |
8210 | *Sun\ C*) # Sun C 5.9 |
8211 | 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' |
8212 | tmp_sharedflag='-G' ;; |
8213 | *Sun\ F*) # Sun Fortran 8.3 |
8214 | tmp_sharedflag='-G' ;; |
8215 | *) |
8216 | tmp_sharedflag='-shared' ;; |
8217 | esac |
8218 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
8219 | |
8220 | if test $supports_anon_versioning = yes; then |
8221 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
8222 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
8223 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
0fde1ce3 |
8224 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
8225 | fi |
8226 | else |
8227 | ld_shlibs=no |
8228 | fi |
8229 | ;; |
8230 | |
8231 | netbsd*) |
8232 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8233 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
8234 | wlarc= |
8235 | else |
8236 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8237 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8238 | fi |
8239 | ;; |
8240 | |
8241 | solaris*) |
8242 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
8243 | ld_shlibs=no |
8244 | cat <<EOF 1>&2 |
8245 | |
8246 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8247 | *** create shared libraries on Solaris systems. Therefore, libtool |
8248 | *** is disabling shared libraries support. We urge you to upgrade GNU |
8249 | *** binutils to release 2.9.1 or newer. Another option is to modify |
8250 | *** your PATH or compiler configuration so that the native linker is |
8251 | *** used, and then restart. |
8252 | |
8253 | EOF |
8254 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8255 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8256 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8257 | else |
8258 | ld_shlibs=no |
8259 | fi |
8260 | ;; |
8261 | |
8262 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8263 | case `$LD -v 2>&1` in |
8264 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
8265 | ld_shlibs=no |
8266 | cat <<_LT_EOF 1>&2 |
8267 | |
8268 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8269 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
8270 | *** is disabling shared libraries support. We urge you to upgrade GNU |
8271 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
8272 | *** your PATH or compiler configuration so that the native linker is |
8273 | *** used, and then restart. |
8274 | |
8275 | _LT_EOF |
8276 | ;; |
8277 | *) |
8278 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8279 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
8280 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
8281 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
8282 | else |
8283 | ld_shlibs=no |
8284 | fi |
8285 | ;; |
8286 | esac |
8287 | ;; |
8288 | |
8289 | sunos4*) |
8290 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8291 | wlarc= |
8292 | hardcode_direct=yes |
8293 | hardcode_shlibpath_var=no |
8294 | ;; |
8295 | |
8296 | *) |
8297 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8298 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8299 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8300 | else |
8301 | ld_shlibs=no |
8302 | fi |
8303 | ;; |
8304 | esac |
8305 | |
8306 | if test "$ld_shlibs" = no; then |
8307 | runpath_var= |
8308 | hardcode_libdir_flag_spec= |
8309 | export_dynamic_flag_spec= |
8310 | whole_archive_flag_spec= |
8311 | fi |
8312 | else |
8313 | # PORTME fill in a description of your system's linker (not GNU ld) |
8314 | case $host_os in |
8315 | aix3*) |
8316 | allow_undefined_flag=unsupported |
8317 | always_export_symbols=yes |
8318 | 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' |
8319 | # Note: this linker hardcodes the directories in LIBPATH if there |
8320 | # are no directories specified by -L. |
8321 | hardcode_minus_L=yes |
8322 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8323 | # Neither direct hardcoding nor static linking is supported with a |
8324 | # broken collect2. |
8325 | hardcode_direct=unsupported |
8326 | fi |
8327 | ;; |
8328 | |
8329 | aix4* | aix5*) |
8330 | if test "$host_cpu" = ia64; then |
8331 | # On IA64, the linker does run time linking by default, so we don't |
8332 | # have to do anything special. |
8333 | aix_use_runtimelinking=no |
8334 | exp_sym_flag='-Bexport' |
8335 | no_entry_flag="" |
8336 | else |
8337 | # If we're using GNU nm, then we don't want the "-C" option. |
8338 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
8339 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
8340 | 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' |
8341 | else |
8342 | 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' |
8343 | fi |
8344 | aix_use_runtimelinking=no |
8345 | |
8346 | # Test if we are trying to use run time linking or normal |
8347 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
8348 | # need to do runtime linking. |
8349 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
8350 | for ld_flag in $LDFLAGS; do |
8351 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8352 | aix_use_runtimelinking=yes |
8353 | break |
8354 | fi |
8355 | done |
8356 | ;; |
8357 | esac |
8358 | |
8359 | exp_sym_flag='-bexport' |
8360 | no_entry_flag='-bnoentry' |
8361 | fi |
8362 | |
8363 | # When large executables or shared objects are built, AIX ld can |
8364 | # have problems creating the table of contents. If linking a library |
8365 | # or program results in "error TOC overflow" add -mminimal-toc to |
8366 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
8367 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
8368 | |
8369 | archive_cmds='' |
8370 | hardcode_direct=yes |
8371 | hardcode_libdir_separator=':' |
8372 | link_all_deplibs=yes |
8373 | |
8374 | if test "$GCC" = yes; then |
8375 | case $host_os in aix4.[012]|aix4.[012].*) |
8376 | # We only want to do this on AIX 4.2 and lower, the check |
8377 | # below for broken collect2 doesn't work under 4.3+ |
8378 | collect2name=`${CC} -print-prog-name=collect2` |
8379 | if test -f "$collect2name" && \ |
8380 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8381 | then |
8382 | # We have reworked collect2 |
0fde1ce3 |
8383 | : |
d9898ee8 |
8384 | else |
8385 | # We have old collect2 |
8386 | hardcode_direct=unsupported |
8387 | # It fails to find uninstalled libraries when the uninstalled |
8388 | # path is not listed in the libpath. Setting hardcode_minus_L |
8389 | # to unsupported forces relinking |
8390 | hardcode_minus_L=yes |
8391 | hardcode_libdir_flag_spec='-L$libdir' |
8392 | hardcode_libdir_separator= |
8393 | fi |
8394 | ;; |
8395 | esac |
8396 | shared_flag='-shared' |
8397 | if test "$aix_use_runtimelinking" = yes; then |
8398 | shared_flag="$shared_flag "'${wl}-G' |
8399 | fi |
8400 | else |
8401 | # not using gcc |
8402 | if test "$host_cpu" = ia64; then |
8403 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8404 | # chokes on -Wl,-G. The following line is correct: |
8405 | shared_flag='-G' |
8406 | else |
8407 | if test "$aix_use_runtimelinking" = yes; then |
8408 | shared_flag='${wl}-G' |
8409 | else |
8410 | shared_flag='${wl}-bM:SRE' |
8411 | fi |
8412 | fi |
8413 | fi |
8414 | |
8415 | # It seems that -bexpall does not export symbols beginning with |
8416 | # underscore (_), so it is better to generate a list of symbols to export. |
8417 | always_export_symbols=yes |
8418 | if test "$aix_use_runtimelinking" = yes; then |
8419 | # Warning - without using the other runtime loading flags (-brtl), |
8420 | # -berok will link without error, but may produce a broken library. |
8421 | allow_undefined_flag='-berok' |
8422 | # Determine the default libpath from the value encoded in an empty executable. |
8423 | cat >conftest.$ac_ext <<_ACEOF |
8424 | /* confdefs.h. */ |
8425 | _ACEOF |
8426 | cat confdefs.h >>conftest.$ac_ext |
8427 | cat >>conftest.$ac_ext <<_ACEOF |
8428 | /* end confdefs.h. */ |
8429 | |
8430 | int |
8431 | main () |
8432 | { |
8433 | |
8434 | ; |
8435 | return 0; |
8436 | } |
8437 | _ACEOF |
8438 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
8439 | if { (ac_try="$ac_link" |
8440 | case "(($ac_try" in |
8441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8442 | *) ac_try_echo=$ac_try;; |
8443 | esac |
8444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8445 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8446 | ac_status=$? |
8447 | grep -v '^ *+' conftest.er1 >conftest.err |
8448 | rm -f conftest.er1 |
8449 | cat conftest.err >&5 |
8450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
8451 | (exit $ac_status); } && { |
8452 | test -z "$ac_c_werror_flag" || |
8453 | test ! -s conftest.err |
8454 | } && test -s conftest$ac_exeext && |
8455 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8456 | |
0fde1ce3 |
8457 | lt_aix_libpath_sed=' |
8458 | /Import File Strings/,/^$/ { |
8459 | /^0/ { |
8460 | s/^0 *\(.*\)$/\1/ |
8461 | p |
8462 | } |
8463 | }' |
8464 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
8465 | # Check for a 64-bit object if we didn't find anything. |
0fde1ce3 |
8466 | if test -z "$aix_libpath"; then |
8467 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8468 | fi |
d9898ee8 |
8469 | else |
8470 | echo "$as_me: failed program was:" >&5 |
8471 | sed 's/^/| /' conftest.$ac_ext >&5 |
8472 | |
64ff59ba |
8473 | |
d9898ee8 |
8474 | fi |
64ff59ba |
8475 | |
8476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8477 | conftest$ac_exeext conftest.$ac_ext |
8478 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8479 | |
8480 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8481 | 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" |
8482 | else |
8483 | if test "$host_cpu" = ia64; then |
8484 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8485 | allow_undefined_flag="-z nodefs" |
8486 | 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" |
8487 | else |
8488 | # Determine the default libpath from the value encoded in an empty executable. |
8489 | cat >conftest.$ac_ext <<_ACEOF |
8490 | /* confdefs.h. */ |
8491 | _ACEOF |
8492 | cat confdefs.h >>conftest.$ac_ext |
8493 | cat >>conftest.$ac_ext <<_ACEOF |
8494 | /* end confdefs.h. */ |
8495 | |
8496 | int |
8497 | main () |
8498 | { |
8499 | |
8500 | ; |
8501 | return 0; |
8502 | } |
8503 | _ACEOF |
8504 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
8505 | if { (ac_try="$ac_link" |
8506 | case "(($ac_try" in |
8507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8508 | *) ac_try_echo=$ac_try;; |
8509 | esac |
8510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8511 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8512 | ac_status=$? |
8513 | grep -v '^ *+' conftest.er1 >conftest.err |
8514 | rm -f conftest.er1 |
8515 | cat conftest.err >&5 |
8516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
8517 | (exit $ac_status); } && { |
8518 | test -z "$ac_c_werror_flag" || |
8519 | test ! -s conftest.err |
8520 | } && test -s conftest$ac_exeext && |
8521 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8522 | |
0fde1ce3 |
8523 | lt_aix_libpath_sed=' |
8524 | /Import File Strings/,/^$/ { |
8525 | /^0/ { |
8526 | s/^0 *\(.*\)$/\1/ |
8527 | p |
8528 | } |
8529 | }' |
8530 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
8531 | # Check for a 64-bit object if we didn't find anything. |
0fde1ce3 |
8532 | if test -z "$aix_libpath"; then |
8533 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8534 | fi |
d9898ee8 |
8535 | else |
8536 | echo "$as_me: failed program was:" >&5 |
8537 | sed 's/^/| /' conftest.$ac_ext >&5 |
8538 | |
64ff59ba |
8539 | |
d9898ee8 |
8540 | fi |
64ff59ba |
8541 | |
8542 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8543 | conftest$ac_exeext conftest.$ac_ext |
8544 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8545 | |
8546 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8547 | # Warning - without using the other run time loading flags, |
8548 | # -berok will link without error, but may produce a broken library. |
8549 | no_undefined_flag=' ${wl}-bernotok' |
8550 | allow_undefined_flag=' ${wl}-berok' |
8551 | # Exported symbols can be pulled into shared objects from archives |
8552 | whole_archive_flag_spec='$convenience' |
8553 | archive_cmds_need_lc=yes |
8554 | # This is similar to how AIX traditionally builds its shared libraries. |
8555 | 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' |
8556 | fi |
8557 | fi |
8558 | ;; |
8559 | |
8560 | amigaos*) |
8561 | 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)' |
8562 | hardcode_libdir_flag_spec='-L$libdir' |
8563 | hardcode_minus_L=yes |
8564 | # see comment about different semantics on the GNU ld section |
8565 | ld_shlibs=no |
8566 | ;; |
8567 | |
8568 | bsdi[45]*) |
8569 | export_dynamic_flag_spec=-rdynamic |
8570 | ;; |
8571 | |
8572 | cygwin* | mingw* | pw32*) |
8573 | # When not using gcc, we currently assume that we are using |
8574 | # Microsoft Visual C++. |
8575 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8576 | # no search path for DLLs. |
8577 | hardcode_libdir_flag_spec=' ' |
8578 | allow_undefined_flag=unsupported |
8579 | # Tell ltmain to make .lib files, not .a files. |
8580 | libext=lib |
8581 | # Tell ltmain to make .dll files, not .so files. |
8582 | shrext_cmds=".dll" |
8583 | # FIXME: Setting linknames here is a bad hack. |
8584 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8585 | # The linker will automatically build a .lib file if we build a DLL. |
8586 | old_archive_From_new_cmds='true' |
8587 | # FIXME: Should let the user specify the lib program. |
0fde1ce3 |
8588 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
8589 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8590 | enable_shared_with_static_runtimes=yes |
8591 | ;; |
8592 | |
8593 | darwin* | rhapsody*) |
8594 | case $host_os in |
8595 | rhapsody* | darwin1.[012]) |
8596 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8597 | ;; |
8598 | *) # Darwin 1.3 on |
8599 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8600 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8601 | else |
8602 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8603 | 10.[012]) |
8604 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8605 | ;; |
8606 | 10.*) |
8607 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8608 | ;; |
8609 | esac |
8610 | fi |
8611 | ;; |
8612 | esac |
8613 | archive_cmds_need_lc=no |
8614 | hardcode_direct=no |
8615 | hardcode_automatic=yes |
8616 | hardcode_shlibpath_var=unsupported |
8617 | whole_archive_flag_spec='' |
8618 | link_all_deplibs=yes |
8619 | if test "$GCC" = yes ; then |
8620 | output_verbose_link_cmd='echo' |
8621 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8622 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8623 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8624 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8625 | 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}' |
8626 | else |
8627 | case $cc_basename in |
8628 | xlc*) |
8629 | output_verbose_link_cmd='echo' |
0fde1ce3 |
8630 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
8631 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8632 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
0fde1ce3 |
8633 | 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}' |
d9898ee8 |
8634 | 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}' |
8635 | ;; |
8636 | *) |
8637 | ld_shlibs=no |
8638 | ;; |
8639 | esac |
8640 | fi |
8641 | ;; |
8642 | |
8643 | dgux*) |
8644 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8645 | hardcode_libdir_flag_spec='-L$libdir' |
8646 | hardcode_shlibpath_var=no |
8647 | ;; |
8648 | |
8649 | freebsd1*) |
8650 | ld_shlibs=no |
8651 | ;; |
8652 | |
8653 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8654 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8655 | # does not break anything, and helps significantly (at the cost of a little |
8656 | # extra space). |
8657 | freebsd2.2*) |
8658 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8659 | hardcode_libdir_flag_spec='-R$libdir' |
8660 | hardcode_direct=yes |
8661 | hardcode_shlibpath_var=no |
8662 | ;; |
8663 | |
8664 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8665 | freebsd2*) |
8666 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8667 | hardcode_direct=yes |
8668 | hardcode_minus_L=yes |
8669 | hardcode_shlibpath_var=no |
8670 | ;; |
8671 | |
8672 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
0fde1ce3 |
8673 | freebsd* | dragonfly*) |
d9898ee8 |
8674 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8675 | hardcode_libdir_flag_spec='-R$libdir' |
8676 | hardcode_direct=yes |
8677 | hardcode_shlibpath_var=no |
8678 | ;; |
8679 | |
8680 | hpux9*) |
8681 | if test "$GCC" = yes; then |
8682 | 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' |
8683 | else |
8684 | 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' |
8685 | fi |
8686 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8687 | hardcode_libdir_separator=: |
8688 | hardcode_direct=yes |
8689 | |
8690 | # hardcode_minus_L: Not really in the search PATH, |
8691 | # but as the default location of the library. |
8692 | hardcode_minus_L=yes |
8693 | export_dynamic_flag_spec='${wl}-E' |
8694 | ;; |
8695 | |
8696 | hpux10*) |
8697 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8698 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8699 | else |
8700 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8701 | fi |
8702 | if test "$with_gnu_ld" = no; then |
8703 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8704 | hardcode_libdir_separator=: |
8705 | |
8706 | hardcode_direct=yes |
8707 | export_dynamic_flag_spec='${wl}-E' |
8708 | |
8709 | # hardcode_minus_L: Not really in the search PATH, |
8710 | # but as the default location of the library. |
8711 | hardcode_minus_L=yes |
8712 | fi |
8713 | ;; |
8714 | |
8715 | hpux11*) |
8716 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8717 | case $host_cpu in |
8718 | hppa*64*) |
8719 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8720 | ;; |
8721 | ia64*) |
8722 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8723 | ;; |
8724 | *) |
8725 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8726 | ;; |
8727 | esac |
8728 | else |
8729 | case $host_cpu in |
8730 | hppa*64*) |
8731 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8732 | ;; |
8733 | ia64*) |
8734 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8735 | ;; |
8736 | *) |
8737 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8738 | ;; |
8739 | esac |
8740 | fi |
8741 | if test "$with_gnu_ld" = no; then |
8742 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8743 | hardcode_libdir_separator=: |
8744 | |
8745 | case $host_cpu in |
8746 | hppa*64*|ia64*) |
8747 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8748 | hardcode_direct=no |
8749 | hardcode_shlibpath_var=no |
8750 | ;; |
8751 | *) |
8752 | hardcode_direct=yes |
8753 | export_dynamic_flag_spec='${wl}-E' |
8754 | |
8755 | # hardcode_minus_L: Not really in the search PATH, |
8756 | # but as the default location of the library. |
8757 | hardcode_minus_L=yes |
8758 | ;; |
8759 | esac |
8760 | fi |
8761 | ;; |
8762 | |
8763 | irix5* | irix6* | nonstopux*) |
8764 | if test "$GCC" = yes; then |
8765 | 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' |
8766 | else |
8767 | 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' |
8768 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8769 | fi |
8770 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8771 | hardcode_libdir_separator=: |
8772 | link_all_deplibs=yes |
8773 | ;; |
8774 | |
8775 | netbsd*) |
8776 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8777 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8778 | else |
8779 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8780 | fi |
8781 | hardcode_libdir_flag_spec='-R$libdir' |
8782 | hardcode_direct=yes |
8783 | hardcode_shlibpath_var=no |
8784 | ;; |
8785 | |
8786 | newsos6) |
8787 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8788 | hardcode_direct=yes |
8789 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8790 | hardcode_libdir_separator=: |
8791 | hardcode_shlibpath_var=no |
8792 | ;; |
8793 | |
8794 | openbsd*) |
0fde1ce3 |
8795 | if test -f /usr/libexec/ld.so; then |
8796 | hardcode_direct=yes |
8797 | hardcode_shlibpath_var=no |
8798 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8799 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8800 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8801 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8802 | export_dynamic_flag_spec='${wl}-E' |
8803 | else |
8804 | case $host_os in |
8805 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8806 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8807 | hardcode_libdir_flag_spec='-R$libdir' |
8808 | ;; |
8809 | *) |
8810 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8811 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8812 | ;; |
8813 | esac |
8814 | fi |
d9898ee8 |
8815 | else |
0fde1ce3 |
8816 | ld_shlibs=no |
d9898ee8 |
8817 | fi |
8818 | ;; |
8819 | |
8820 | os2*) |
8821 | hardcode_libdir_flag_spec='-L$libdir' |
8822 | hardcode_minus_L=yes |
8823 | allow_undefined_flag=unsupported |
8824 | 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' |
8825 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8826 | ;; |
8827 | |
8828 | osf3*) |
8829 | if test "$GCC" = yes; then |
8830 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8831 | 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' |
8832 | else |
8833 | allow_undefined_flag=' -expect_unresolved \*' |
8834 | 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' |
8835 | fi |
8836 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8837 | hardcode_libdir_separator=: |
8838 | ;; |
8839 | |
8840 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8841 | if test "$GCC" = yes; then |
8842 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8843 | 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' |
8844 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8845 | else |
8846 | allow_undefined_flag=' -expect_unresolved \*' |
8847 | 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' |
8848 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8849 | $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' |
8850 | |
8851 | # Both c and cxx compiler support -rpath directly |
8852 | hardcode_libdir_flag_spec='-rpath $libdir' |
8853 | fi |
8854 | hardcode_libdir_separator=: |
8855 | ;; |
8856 | |
8857 | solaris*) |
8858 | no_undefined_flag=' -z text' |
8859 | if test "$GCC" = yes; then |
8860 | wlarc='${wl}' |
8861 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8862 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8863 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8864 | else |
8865 | wlarc='' |
8866 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8867 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8868 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8869 | fi |
8870 | hardcode_libdir_flag_spec='-R$libdir' |
8871 | hardcode_shlibpath_var=no |
8872 | case $host_os in |
8873 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8874 | *) |
0fde1ce3 |
8875 | # The compiler driver will combine and reorder linker options, |
8876 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
8877 | # but is careful enough not to reorder. |
d9898ee8 |
8878 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
0fde1ce3 |
8879 | if test "$GCC" = yes; then |
8880 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
8881 | else |
8882 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
8883 | fi |
8884 | ;; |
d9898ee8 |
8885 | esac |
8886 | link_all_deplibs=yes |
8887 | ;; |
8888 | |
8889 | sunos4*) |
8890 | if test "x$host_vendor" = xsequent; then |
8891 | # Use $CC to link under sequent, because it throws in some extra .o |
8892 | # files that make .init and .fini sections work. |
8893 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8894 | else |
8895 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8896 | fi |
8897 | hardcode_libdir_flag_spec='-L$libdir' |
8898 | hardcode_direct=yes |
8899 | hardcode_minus_L=yes |
8900 | hardcode_shlibpath_var=no |
8901 | ;; |
8902 | |
8903 | sysv4) |
8904 | case $host_vendor in |
8905 | sni) |
8906 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8907 | hardcode_direct=yes # is this really true??? |
8908 | ;; |
8909 | siemens) |
8910 | ## LD is ld it makes a PLAMLIB |
8911 | ## CC just makes a GrossModule. |
8912 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8913 | reload_cmds='$CC -r -o $output$reload_objs' |
8914 | hardcode_direct=no |
8915 | ;; |
8916 | motorola) |
8917 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8918 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8919 | ;; |
8920 | esac |
8921 | runpath_var='LD_RUN_PATH' |
8922 | hardcode_shlibpath_var=no |
8923 | ;; |
8924 | |
8925 | sysv4.3*) |
8926 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8927 | hardcode_shlibpath_var=no |
8928 | export_dynamic_flag_spec='-Bexport' |
8929 | ;; |
8930 | |
8931 | sysv4*MP*) |
8932 | if test -d /usr/nec; then |
8933 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8934 | hardcode_shlibpath_var=no |
8935 | runpath_var=LD_RUN_PATH |
8936 | hardcode_runpath_var=yes |
8937 | ld_shlibs=yes |
8938 | fi |
8939 | ;; |
8940 | |
0fde1ce3 |
8941 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
8942 | no_undefined_flag='${wl}-z,text' |
8943 | archive_cmds_need_lc=no |
8944 | hardcode_shlibpath_var=no |
8945 | runpath_var='LD_RUN_PATH' |
8946 | |
8947 | if test "$GCC" = yes; then |
8948 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8949 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8950 | else |
8951 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8952 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8953 | fi |
8954 | ;; |
8955 | |
8956 | sysv5* | sco3.2v5* | sco5v6*) |
8957 | # Note: We can NOT use -z defs as we might desire, because we do not |
8958 | # link with -lc, and that would cause any symbols used from libc to |
8959 | # always be unresolved, which means just about no library would |
8960 | # ever link correctly. If we're not using GNU ld we use -z text |
8961 | # though, which does catch some bad symbols but isn't as heavy-handed |
8962 | # as -z defs. |
8963 | no_undefined_flag='${wl}-z,text' |
8964 | allow_undefined_flag='${wl}-z,nodefs' |
8965 | archive_cmds_need_lc=no |
8966 | hardcode_shlibpath_var=no |
8967 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8968 | hardcode_libdir_separator=':' |
8969 | link_all_deplibs=yes |
8970 | export_dynamic_flag_spec='${wl}-Bexport' |
8971 | runpath_var='LD_RUN_PATH' |
8972 | |
8973 | if test "$GCC" = yes; then |
8974 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8975 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8976 | else |
8977 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8978 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8979 | fi |
8980 | ;; |
8981 | |
8982 | uts4*) |
8983 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8984 | hardcode_libdir_flag_spec='-L$libdir' |
8985 | hardcode_shlibpath_var=no |
8986 | ;; |
8987 | |
8988 | *) |
8989 | ld_shlibs=no |
8990 | ;; |
8991 | esac |
8992 | fi |
8993 | |
64ff59ba |
8994 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8995 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8996 | test "$ld_shlibs" = no && can_build_shared=no |
8997 | |
8998 | # |
8999 | # Do we need to explicitly link libc? |
9000 | # |
9001 | case "x$archive_cmds_need_lc" in |
9002 | x|xyes) |
9003 | # Assume -lc should be added |
9004 | archive_cmds_need_lc=yes |
9005 | |
9006 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9007 | case $archive_cmds in |
9008 | *'~'*) |
9009 | # FIXME: we may have to deal with multi-command sequences. |
9010 | ;; |
9011 | '$CC '*) |
9012 | # Test whether the compiler implicitly links with -lc since on some |
9013 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
9014 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
9015 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
9016 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
9017 | $rm conftest* |
0fde1ce3 |
9018 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
9019 | |
9020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9021 | (eval $ac_compile) 2>&5 |
9022 | ac_status=$? |
9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9024 | (exit $ac_status); } 2>conftest.err; then |
9025 | soname=conftest |
9026 | lib=conftest |
9027 | libobjs=conftest.$ac_objext |
9028 | deplibs= |
9029 | wl=$lt_prog_compiler_wl |
9030 | pic_flag=$lt_prog_compiler_pic |
9031 | compiler_flags=-v |
9032 | linker_flags=-v |
9033 | verstring= |
9034 | output_objdir=. |
9035 | libname=conftest |
9036 | lt_save_allow_undefined_flag=$allow_undefined_flag |
9037 | allow_undefined_flag= |
9038 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
9039 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9040 | ac_status=$? |
9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9042 | (exit $ac_status); } |
9043 | then |
9044 | archive_cmds_need_lc=no |
9045 | else |
9046 | archive_cmds_need_lc=yes |
9047 | fi |
9048 | allow_undefined_flag=$lt_save_allow_undefined_flag |
9049 | else |
9050 | cat conftest.err 1>&5 |
9051 | fi |
9052 | $rm conftest* |
64ff59ba |
9053 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
9054 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
9055 | ;; |
9056 | esac |
9057 | fi |
9058 | ;; |
9059 | esac |
9060 | |
64ff59ba |
9061 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
9062 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
9063 | library_names_spec= |
9064 | libname_spec='lib$name' |
9065 | soname_spec= |
9066 | shrext_cmds=".so" |
9067 | postinstall_cmds= |
9068 | postuninstall_cmds= |
9069 | finish_cmds= |
9070 | finish_eval= |
9071 | shlibpath_var= |
9072 | shlibpath_overrides_runpath=unknown |
9073 | version_type=none |
9074 | dynamic_linker="$host_os ld.so" |
9075 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
0fde1ce3 |
9076 | |
d9898ee8 |
9077 | if test "$GCC" = yes; then |
0fde1ce3 |
9078 | case $host_os in |
9079 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
9080 | *) lt_awk_arg="/^libraries:/" ;; |
9081 | esac |
9082 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9083 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
d9898ee8 |
9084 | # if the path contains ";" then we assume it to be the separator |
9085 | # otherwise default to the standard path separator (i.e. ":") - it is |
9086 | # assumed that no part of a normal pathname contains ";" but that should |
9087 | # okay in the real world where ";" in dirpaths is itself problematic. |
0fde1ce3 |
9088 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 |
9089 | else |
0fde1ce3 |
9090 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 |
9091 | fi |
0fde1ce3 |
9092 | # Ok, now we have the path, separated by spaces, we can step through it |
9093 | # and add multilib dir if necessary. |
9094 | lt_tmp_lt_search_path_spec= |
9095 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
9096 | for lt_sys_path in $lt_search_path_spec; do |
9097 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
9098 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
9099 | else |
9100 | test -d "$lt_sys_path" && \ |
9101 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
9102 | fi |
9103 | done |
9104 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
9105 | BEGIN {RS=" "; FS="/|\n";} { |
9106 | lt_foo=""; |
9107 | lt_count=0; |
9108 | for (lt_i = NF; lt_i > 0; lt_i--) { |
9109 | if ($lt_i != "" && $lt_i != ".") { |
9110 | if ($lt_i == "..") { |
9111 | lt_count++; |
9112 | } else { |
9113 | if (lt_count == 0) { |
9114 | lt_foo="/" $lt_i lt_foo; |
9115 | } else { |
9116 | lt_count--; |
9117 | } |
9118 | } |
9119 | } |
9120 | } |
9121 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
9122 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
9123 | }'` |
9124 | sys_lib_search_path_spec=`echo $lt_search_path_spec` |
d9898ee8 |
9125 | else |
9126 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9127 | fi |
9128 | need_lib_prefix=unknown |
9129 | hardcode_into_libs=no |
9130 | |
9131 | # when you set need_version to no, make sure it does not cause -set_version |
9132 | # flags to be left without arguments |
9133 | need_version=unknown |
9134 | |
9135 | case $host_os in |
9136 | aix3*) |
9137 | version_type=linux |
9138 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
9139 | shlibpath_var=LIBPATH |
9140 | |
9141 | # AIX 3 has no versioning support, so we append a major version to the name. |
9142 | soname_spec='${libname}${release}${shared_ext}$major' |
9143 | ;; |
9144 | |
9145 | aix4* | aix5*) |
9146 | version_type=linux |
9147 | need_lib_prefix=no |
9148 | need_version=no |
9149 | hardcode_into_libs=yes |
9150 | if test "$host_cpu" = ia64; then |
9151 | # AIX 5 supports IA64 |
9152 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
9153 | shlibpath_var=LD_LIBRARY_PATH |
9154 | else |
9155 | # With GCC up to 2.95.x, collect2 would create an import file |
9156 | # for dependence libraries. The import file would start with |
9157 | # the line `#! .'. This would cause the generated library to |
9158 | # depend on `.', always an invalid library. This was fixed in |
9159 | # development snapshots of GCC prior to 3.0. |
9160 | case $host_os in |
9161 | aix4 | aix4.[01] | aix4.[01].*) |
9162 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
9163 | echo ' yes ' |
9164 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
9165 | : |
9166 | else |
9167 | can_build_shared=no |
9168 | fi |
9169 | ;; |
9170 | esac |
9171 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
9172 | # soname into executable. Probably we can add versioning support to |
9173 | # collect2, so additional links can be useful in future. |
9174 | if test "$aix_use_runtimelinking" = yes; then |
9175 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
9176 | # instead of lib<name>.a to let people know that these are not |
9177 | # typical AIX shared libraries. |
9178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9179 | else |
9180 | # We preserve .a as extension for shared libraries through AIX4.2 |
9181 | # and later when we are not doing run time linking. |
9182 | library_names_spec='${libname}${release}.a $libname.a' |
9183 | soname_spec='${libname}${release}${shared_ext}$major' |
9184 | fi |
9185 | shlibpath_var=LIBPATH |
9186 | fi |
9187 | ;; |
9188 | |
9189 | amigaos*) |
9190 | library_names_spec='$libname.ixlibrary $libname.a' |
9191 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
9192 | 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' |
9193 | ;; |
9194 | |
9195 | beos*) |
9196 | library_names_spec='${libname}${shared_ext}' |
9197 | dynamic_linker="$host_os ld.so" |
9198 | shlibpath_var=LIBRARY_PATH |
9199 | ;; |
9200 | |
9201 | bsdi[45]*) |
9202 | version_type=linux |
9203 | need_version=no |
9204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9205 | soname_spec='${libname}${release}${shared_ext}$major' |
9206 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
9207 | shlibpath_var=LD_LIBRARY_PATH |
9208 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
9209 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
9210 | # the default ld.so.conf also contains /usr/contrib/lib and |
9211 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
9212 | # libtool to hard-code these into programs |
9213 | ;; |
9214 | |
9215 | cygwin* | mingw* | pw32*) |
9216 | version_type=windows |
9217 | shrext_cmds=".dll" |
9218 | need_version=no |
9219 | need_lib_prefix=no |
9220 | |
9221 | case $GCC,$host_os in |
9222 | yes,cygwin* | yes,mingw* | yes,pw32*) |
9223 | library_names_spec='$libname.dll.a' |
9224 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
9225 | postinstall_cmds='base_file=`basename \${file}`~ |
9226 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
9227 | dldir=$destdir/`dirname \$dlpath`~ |
9228 | test -d \$dldir || mkdir -p \$dldir~ |
9229 | $install_prog $dir/$dlname \$dldir/$dlname~ |
9230 | chmod a+x \$dldir/$dlname' |
9231 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9232 | dlpath=$dir/\$dldll~ |
9233 | $rm \$dlpath' |
9234 | shlibpath_overrides_runpath=yes |
9235 | |
9236 | case $host_os in |
9237 | cygwin*) |
9238 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
9239 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9240 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
9241 | ;; |
9242 | mingw*) |
9243 | # MinGW DLLs use traditional 'lib' prefix |
9244 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9245 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9246 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
9247 | # It is most probably a Windows format PATH printed by |
9248 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
9249 | # path with ; separators, and with drive letters. We can handle the |
9250 | # drive letters (cygwin fileutils understands them), so leave them, |
9251 | # especially as we might pass files found there to a mingw objdump, |
9252 | # which wouldn't understand a cygwinified path. Ahh. |
9253 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
9254 | else |
9255 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
9256 | fi |
9257 | ;; |
9258 | pw32*) |
9259 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
9260 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9261 | ;; |
9262 | esac |
9263 | ;; |
9264 | |
9265 | *) |
9266 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
9267 | ;; |
9268 | esac |
9269 | dynamic_linker='Win32 ld.exe' |
9270 | # FIXME: first we should search . and the directory the executable is in |
9271 | shlibpath_var=PATH |
9272 | ;; |
9273 | |
9274 | darwin* | rhapsody*) |
9275 | dynamic_linker="$host_os dyld" |
9276 | version_type=darwin |
9277 | need_lib_prefix=no |
9278 | need_version=no |
9279 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
9280 | soname_spec='${libname}${release}${major}$shared_ext' |
9281 | shlibpath_overrides_runpath=yes |
9282 | shlibpath_var=DYLD_LIBRARY_PATH |
9283 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
0fde1ce3 |
9284 | |
9285 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 |
9286 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9287 | ;; |
9288 | |
9289 | dgux*) |
9290 | version_type=linux |
9291 | need_lib_prefix=no |
9292 | need_version=no |
9293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
9294 | soname_spec='${libname}${release}${shared_ext}$major' |
9295 | shlibpath_var=LD_LIBRARY_PATH |
9296 | ;; |
9297 | |
9298 | freebsd1*) |
9299 | dynamic_linker=no |
9300 | ;; |
9301 | |
d9898ee8 |
9302 | freebsd* | dragonfly*) |
9303 | # DragonFly does not have aout. When/if they implement a new |
9304 | # versioning mechanism, adjust this. |
9305 | if test -x /usr/bin/objformat; then |
9306 | objformat=`/usr/bin/objformat` |
9307 | else |
9308 | case $host_os in |
9309 | freebsd[123]*) objformat=aout ;; |
9310 | *) objformat=elf ;; |
9311 | esac |
9312 | fi |
9313 | version_type=freebsd-$objformat |
9314 | case $version_type in |
9315 | freebsd-elf*) |
9316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9317 | need_version=no |
9318 | need_lib_prefix=no |
9319 | ;; |
9320 | freebsd-*) |
9321 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
9322 | need_version=yes |
9323 | ;; |
9324 | esac |
9325 | shlibpath_var=LD_LIBRARY_PATH |
9326 | case $host_os in |
9327 | freebsd2*) |
9328 | shlibpath_overrides_runpath=yes |
9329 | ;; |
9330 | freebsd3.[01]* | freebsdelf3.[01]*) |
9331 | shlibpath_overrides_runpath=yes |
9332 | hardcode_into_libs=yes |
9333 | ;; |
9334 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
9335 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
9336 | shlibpath_overrides_runpath=no |
9337 | hardcode_into_libs=yes |
9338 | ;; |
0fde1ce3 |
9339 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
9340 | shlibpath_overrides_runpath=yes |
9341 | hardcode_into_libs=yes |
9342 | ;; |
9343 | esac |
9344 | ;; |
9345 | |
9346 | gnu*) |
9347 | version_type=linux |
9348 | need_lib_prefix=no |
9349 | need_version=no |
9350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
9351 | soname_spec='${libname}${release}${shared_ext}$major' |
9352 | shlibpath_var=LD_LIBRARY_PATH |
9353 | hardcode_into_libs=yes |
9354 | ;; |
9355 | |
9356 | hpux9* | hpux10* | hpux11*) |
9357 | # Give a soname corresponding to the major version so that dld.sl refuses to |
9358 | # link against other versions. |
9359 | version_type=sunos |
9360 | need_lib_prefix=no |
9361 | need_version=no |
9362 | case $host_cpu in |
9363 | ia64*) |
9364 | shrext_cmds='.so' |
9365 | hardcode_into_libs=yes |
9366 | dynamic_linker="$host_os dld.so" |
9367 | shlibpath_var=LD_LIBRARY_PATH |
9368 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9370 | soname_spec='${libname}${release}${shared_ext}$major' |
9371 | if test "X$HPUX_IA64_MODE" = X32; then |
9372 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9373 | else |
9374 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
9375 | fi |
9376 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9377 | ;; |
9378 | hppa*64*) |
9379 | shrext_cmds='.sl' |
9380 | hardcode_into_libs=yes |
9381 | dynamic_linker="$host_os dld.sl" |
9382 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9383 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9385 | soname_spec='${libname}${release}${shared_ext}$major' |
9386 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9387 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9388 | ;; |
9389 | *) |
9390 | shrext_cmds='.sl' |
9391 | dynamic_linker="$host_os dld.sl" |
9392 | shlibpath_var=SHLIB_PATH |
9393 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9395 | soname_spec='${libname}${release}${shared_ext}$major' |
9396 | ;; |
9397 | esac |
9398 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9399 | postinstall_cmds='chmod 555 $lib' |
9400 | ;; |
9401 | |
0fde1ce3 |
9402 | interix[3-9]*) |
d9898ee8 |
9403 | version_type=linux |
9404 | need_lib_prefix=no |
9405 | need_version=no |
9406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9407 | soname_spec='${libname}${release}${shared_ext}$major' |
9408 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
9409 | shlibpath_var=LD_LIBRARY_PATH |
9410 | shlibpath_overrides_runpath=no |
9411 | hardcode_into_libs=yes |
9412 | ;; |
9413 | |
9414 | irix5* | irix6* | nonstopux*) |
9415 | case $host_os in |
9416 | nonstopux*) version_type=nonstopux ;; |
9417 | *) |
9418 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9419 | version_type=linux |
9420 | else |
9421 | version_type=irix |
9422 | fi ;; |
9423 | esac |
9424 | need_lib_prefix=no |
9425 | need_version=no |
9426 | soname_spec='${libname}${release}${shared_ext}$major' |
9427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9428 | case $host_os in |
9429 | irix5* | nonstopux*) |
9430 | libsuff= shlibsuff= |
9431 | ;; |
9432 | *) |
9433 | case $LD in # libtool.m4 will add one of these switches to LD |
9434 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9435 | libsuff= shlibsuff= libmagic=32-bit;; |
9436 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9437 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9438 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9439 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9440 | *) libsuff= shlibsuff= libmagic=never-match;; |
9441 | esac |
9442 | ;; |
9443 | esac |
9444 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9445 | shlibpath_overrides_runpath=no |
9446 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9447 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9448 | hardcode_into_libs=yes |
9449 | ;; |
9450 | |
9451 | # No shared lib support for Linux oldld, aout, or coff. |
9452 | linux*oldld* | linux*aout* | linux*coff*) |
9453 | dynamic_linker=no |
9454 | ;; |
9455 | |
9456 | # This must be Linux ELF. |
0fde1ce3 |
9457 | linux* | k*bsd*-gnu) |
d9898ee8 |
9458 | version_type=linux |
9459 | need_lib_prefix=no |
9460 | need_version=no |
9461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9462 | soname_spec='${libname}${release}${shared_ext}$major' |
9463 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9464 | shlibpath_var=LD_LIBRARY_PATH |
9465 | shlibpath_overrides_runpath=no |
9466 | # This implies no fast_install, which is unacceptable. |
9467 | # Some rework will be needed to allow for fast_install |
9468 | # before this can be enabled. |
9469 | hardcode_into_libs=yes |
0fde1ce3 |
9470 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9471 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
9472 | |
9473 | # Append ld.so.conf contents to the search path |
9474 | if test -f /etc/ld.so.conf; then |
0fde1ce3 |
9475 | 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' ' '` |
9476 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
9477 | fi |
9478 | |
9479 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9480 | # powerpc, because MkLinux only supported shared libraries with the |
9481 | # GNU dynamic linker. Since this was broken with cross compilers, |
9482 | # most powerpc-linux boxes support dynamic linking these days and |
9483 | # people can always --disable-shared, the test was removed, and we |
9484 | # assume the GNU/Linux dynamic linker is in use. |
9485 | dynamic_linker='GNU/Linux ld.so' |
9486 | ;; |
9487 | |
d9898ee8 |
9488 | netbsd*) |
9489 | version_type=sunos |
9490 | need_lib_prefix=no |
9491 | need_version=no |
9492 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9493 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9494 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9495 | dynamic_linker='NetBSD (a.out) ld.so' |
9496 | else |
9497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9498 | soname_spec='${libname}${release}${shared_ext}$major' |
9499 | dynamic_linker='NetBSD ld.elf_so' |
9500 | fi |
9501 | shlibpath_var=LD_LIBRARY_PATH |
9502 | shlibpath_overrides_runpath=yes |
9503 | hardcode_into_libs=yes |
9504 | ;; |
9505 | |
9506 | newsos6) |
9507 | version_type=linux |
9508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9509 | shlibpath_var=LD_LIBRARY_PATH |
9510 | shlibpath_overrides_runpath=yes |
9511 | ;; |
9512 | |
9513 | nto-qnx*) |
9514 | version_type=linux |
9515 | need_lib_prefix=no |
9516 | need_version=no |
9517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9518 | soname_spec='${libname}${release}${shared_ext}$major' |
9519 | shlibpath_var=LD_LIBRARY_PATH |
9520 | shlibpath_overrides_runpath=yes |
9521 | ;; |
9522 | |
9523 | openbsd*) |
9524 | version_type=sunos |
9525 | sys_lib_dlsearch_path_spec="/usr/lib" |
9526 | need_lib_prefix=no |
9527 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9528 | case $host_os in |
9529 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9530 | *) need_version=no ;; |
9531 | esac |
9532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9533 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9534 | shlibpath_var=LD_LIBRARY_PATH |
9535 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9536 | case $host_os in |
9537 | openbsd2.[89] | openbsd2.[89].*) |
9538 | shlibpath_overrides_runpath=no |
9539 | ;; |
9540 | *) |
9541 | shlibpath_overrides_runpath=yes |
9542 | ;; |
9543 | esac |
9544 | else |
9545 | shlibpath_overrides_runpath=yes |
9546 | fi |
9547 | ;; |
9548 | |
9549 | os2*) |
9550 | libname_spec='$name' |
9551 | shrext_cmds=".dll" |
9552 | need_lib_prefix=no |
9553 | library_names_spec='$libname${shared_ext} $libname.a' |
9554 | dynamic_linker='OS/2 ld.exe' |
9555 | shlibpath_var=LIBPATH |
9556 | ;; |
9557 | |
9558 | osf3* | osf4* | osf5*) |
9559 | version_type=osf |
9560 | need_lib_prefix=no |
9561 | need_version=no |
9562 | soname_spec='${libname}${release}${shared_ext}$major' |
9563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9564 | shlibpath_var=LD_LIBRARY_PATH |
9565 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9566 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9567 | ;; |
9568 | |
0fde1ce3 |
9569 | rdos*) |
9570 | dynamic_linker=no |
9571 | ;; |
9572 | |
d9898ee8 |
9573 | solaris*) |
9574 | version_type=linux |
9575 | need_lib_prefix=no |
9576 | need_version=no |
9577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9578 | soname_spec='${libname}${release}${shared_ext}$major' |
9579 | shlibpath_var=LD_LIBRARY_PATH |
9580 | shlibpath_overrides_runpath=yes |
9581 | hardcode_into_libs=yes |
9582 | # ldd complains unless libraries are executable |
9583 | postinstall_cmds='chmod +x $lib' |
9584 | ;; |
9585 | |
9586 | sunos4*) |
9587 | version_type=sunos |
9588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9589 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9590 | shlibpath_var=LD_LIBRARY_PATH |
9591 | shlibpath_overrides_runpath=yes |
9592 | if test "$with_gnu_ld" = yes; then |
9593 | need_lib_prefix=no |
9594 | fi |
9595 | need_version=yes |
9596 | ;; |
9597 | |
9598 | sysv4 | sysv4.3*) |
9599 | version_type=linux |
9600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9601 | soname_spec='${libname}${release}${shared_ext}$major' |
9602 | shlibpath_var=LD_LIBRARY_PATH |
9603 | case $host_vendor in |
9604 | sni) |
9605 | shlibpath_overrides_runpath=no |
9606 | need_lib_prefix=no |
9607 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9608 | runpath_var=LD_RUN_PATH |
9609 | ;; |
9610 | siemens) |
9611 | need_lib_prefix=no |
9612 | ;; |
9613 | motorola) |
9614 | need_lib_prefix=no |
9615 | need_version=no |
9616 | shlibpath_overrides_runpath=no |
9617 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9618 | ;; |
9619 | esac |
9620 | ;; |
9621 | |
9622 | sysv4*MP*) |
9623 | if test -d /usr/nec ;then |
9624 | version_type=linux |
9625 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9626 | soname_spec='$libname${shared_ext}.$major' |
9627 | shlibpath_var=LD_LIBRARY_PATH |
9628 | fi |
9629 | ;; |
9630 | |
9631 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9632 | version_type=freebsd-elf |
9633 | need_lib_prefix=no |
9634 | need_version=no |
9635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9636 | soname_spec='${libname}${release}${shared_ext}$major' |
9637 | shlibpath_var=LD_LIBRARY_PATH |
9638 | hardcode_into_libs=yes |
9639 | if test "$with_gnu_ld" = yes; then |
9640 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9641 | shlibpath_overrides_runpath=no |
9642 | else |
9643 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9644 | shlibpath_overrides_runpath=yes |
9645 | case $host_os in |
9646 | sco3.2v5*) |
9647 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9648 | ;; |
9649 | esac |
9650 | fi |
9651 | sys_lib_dlsearch_path_spec='/usr/lib' |
9652 | ;; |
9653 | |
9654 | uts4*) |
9655 | version_type=linux |
9656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9657 | soname_spec='${libname}${release}${shared_ext}$major' |
9658 | shlibpath_var=LD_LIBRARY_PATH |
9659 | ;; |
9660 | |
9661 | *) |
9662 | dynamic_linker=no |
9663 | ;; |
9664 | esac |
64ff59ba |
9665 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9666 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9667 | test "$dynamic_linker" = no && can_build_shared=no |
9668 | |
9669 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9670 | if test "$GCC" = yes; then |
9671 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9672 | fi |
9673 | |
64ff59ba |
9674 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9675 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9676 | hardcode_action= |
9677 | if test -n "$hardcode_libdir_flag_spec" || \ |
9678 | test -n "$runpath_var" || \ |
9679 | test "X$hardcode_automatic" = "Xyes" ; then |
9680 | |
9681 | # We can hardcode non-existant directories. |
9682 | if test "$hardcode_direct" != no && |
9683 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9684 | # have to relink, otherwise we might link with an installed library |
9685 | # when we should be linking with a yet-to-be-installed one |
9686 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9687 | test "$hardcode_minus_L" != no; then |
9688 | # Linking always hardcodes the temporary library directory. |
9689 | hardcode_action=relink |
9690 | else |
9691 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9692 | hardcode_action=immediate |
9693 | fi |
9694 | else |
9695 | # We cannot hardcode anything, or else we can only hardcode existing |
9696 | # directories. |
9697 | hardcode_action=unsupported |
9698 | fi |
64ff59ba |
9699 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9700 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9701 | |
9702 | if test "$hardcode_action" = relink; then |
9703 | # Fast installation is not supported |
9704 | enable_fast_install=no |
9705 | elif test "$shlibpath_overrides_runpath" = yes || |
9706 | test "$enable_shared" = no; then |
9707 | # Fast installation is not necessary |
9708 | enable_fast_install=needless |
9709 | fi |
9710 | |
9711 | striplib= |
9712 | old_striplib= |
64ff59ba |
9713 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9714 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9715 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9716 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9717 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
64ff59ba |
9718 | { echo "$as_me:$LINENO: result: yes" >&5 |
9719 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9720 | else |
9721 | # FIXME - insert some real tests, host_os isn't really good enough |
9722 | case $host_os in |
9723 | darwin*) |
9724 | if test -n "$STRIP" ; then |
9725 | striplib="$STRIP -x" |
0fde1ce3 |
9726 | old_striplib="$STRIP -S" |
64ff59ba |
9727 | { echo "$as_me:$LINENO: result: yes" >&5 |
9728 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9729 | else |
64ff59ba |
9730 | { echo "$as_me:$LINENO: result: no" >&5 |
9731 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9732 | fi |
9733 | ;; |
9734 | *) |
64ff59ba |
9735 | { echo "$as_me:$LINENO: result: no" >&5 |
9736 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9737 | ;; |
9738 | esac |
9739 | fi |
9740 | |
9741 | if test "x$enable_dlopen" != xyes; then |
9742 | enable_dlopen=unknown |
9743 | enable_dlopen_self=unknown |
9744 | enable_dlopen_self_static=unknown |
9745 | else |
9746 | lt_cv_dlopen=no |
9747 | lt_cv_dlopen_libs= |
9748 | |
9749 | case $host_os in |
9750 | beos*) |
9751 | lt_cv_dlopen="load_add_on" |
9752 | lt_cv_dlopen_libs= |
9753 | lt_cv_dlopen_self=yes |
9754 | ;; |
9755 | |
9756 | mingw* | pw32*) |
9757 | lt_cv_dlopen="LoadLibrary" |
9758 | lt_cv_dlopen_libs= |
9759 | ;; |
9760 | |
9761 | cygwin*) |
9762 | lt_cv_dlopen="dlopen" |
9763 | lt_cv_dlopen_libs= |
9764 | ;; |
9765 | |
9766 | darwin*) |
9767 | # if libdl is installed we need to link against it |
64ff59ba |
9768 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9769 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9770 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9772 | else |
9773 | ac_check_lib_save_LIBS=$LIBS |
9774 | LIBS="-ldl $LIBS" |
9775 | cat >conftest.$ac_ext <<_ACEOF |
9776 | /* confdefs.h. */ |
9777 | _ACEOF |
9778 | cat confdefs.h >>conftest.$ac_ext |
9779 | cat >>conftest.$ac_ext <<_ACEOF |
9780 | /* end confdefs.h. */ |
9781 | |
64ff59ba |
9782 | /* Override any GCC internal prototype to avoid an error. |
9783 | Use char because int might match the return type of a GCC |
9784 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9785 | #ifdef __cplusplus |
9786 | extern "C" |
9787 | #endif |
d9898ee8 |
9788 | char dlopen (); |
9789 | int |
9790 | main () |
9791 | { |
64ff59ba |
9792 | return dlopen (); |
d9898ee8 |
9793 | ; |
9794 | return 0; |
9795 | } |
9796 | _ACEOF |
9797 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9798 | if { (ac_try="$ac_link" |
9799 | case "(($ac_try" in |
9800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9801 | *) ac_try_echo=$ac_try;; |
9802 | esac |
9803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9804 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9805 | ac_status=$? |
9806 | grep -v '^ *+' conftest.er1 >conftest.err |
9807 | rm -f conftest.er1 |
9808 | cat conftest.err >&5 |
9809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9810 | (exit $ac_status); } && { |
9811 | test -z "$ac_c_werror_flag" || |
9812 | test ! -s conftest.err |
9813 | } && test -s conftest$ac_exeext && |
9814 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9815 | ac_cv_lib_dl_dlopen=yes |
9816 | else |
9817 | echo "$as_me: failed program was:" >&5 |
9818 | sed 's/^/| /' conftest.$ac_ext >&5 |
9819 | |
64ff59ba |
9820 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9821 | fi |
64ff59ba |
9822 | |
9823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9824 | conftest$ac_exeext conftest.$ac_ext |
9825 | LIBS=$ac_check_lib_save_LIBS |
9826 | fi |
64ff59ba |
9827 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9828 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9829 | if test $ac_cv_lib_dl_dlopen = yes; then |
9830 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9831 | else |
9832 | |
9833 | lt_cv_dlopen="dyld" |
9834 | lt_cv_dlopen_libs= |
9835 | lt_cv_dlopen_self=yes |
9836 | |
9837 | fi |
9838 | |
9839 | ;; |
9840 | |
9841 | *) |
64ff59ba |
9842 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9843 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9844 | if test "${ac_cv_func_shl_load+set}" = set; then |
9845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9846 | else |
9847 | cat >conftest.$ac_ext <<_ACEOF |
9848 | /* confdefs.h. */ |
9849 | _ACEOF |
9850 | cat confdefs.h >>conftest.$ac_ext |
9851 | cat >>conftest.$ac_ext <<_ACEOF |
9852 | /* end confdefs.h. */ |
9853 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9855 | #define shl_load innocuous_shl_load |
9856 | |
9857 | /* System header to define __stub macros and hopefully few prototypes, |
9858 | which can conflict with char shl_load (); below. |
9859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9860 | <limits.h> exists even on freestanding compilers. */ |
9861 | |
9862 | #ifdef __STDC__ |
9863 | # include <limits.h> |
9864 | #else |
9865 | # include <assert.h> |
9866 | #endif |
9867 | |
9868 | #undef shl_load |
9869 | |
64ff59ba |
9870 | /* Override any GCC internal prototype to avoid an error. |
9871 | Use char because int might match the return type of a GCC |
9872 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9873 | #ifdef __cplusplus |
9874 | extern "C" |
d9898ee8 |
9875 | #endif |
d9898ee8 |
9876 | char shl_load (); |
9877 | /* The GNU C library defines this for functions which it implements |
9878 | to always fail with ENOSYS. Some functions are actually named |
9879 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
9880 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9881 | choke me |
d9898ee8 |
9882 | #endif |
9883 | |
9884 | int |
9885 | main () |
9886 | { |
64ff59ba |
9887 | return shl_load (); |
d9898ee8 |
9888 | ; |
9889 | return 0; |
9890 | } |
9891 | _ACEOF |
9892 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9893 | if { (ac_try="$ac_link" |
9894 | case "(($ac_try" in |
9895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9896 | *) ac_try_echo=$ac_try;; |
9897 | esac |
9898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9899 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9900 | ac_status=$? |
9901 | grep -v '^ *+' conftest.er1 >conftest.err |
9902 | rm -f conftest.er1 |
9903 | cat conftest.err >&5 |
9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9905 | (exit $ac_status); } && { |
9906 | test -z "$ac_c_werror_flag" || |
9907 | test ! -s conftest.err |
9908 | } && test -s conftest$ac_exeext && |
9909 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9910 | ac_cv_func_shl_load=yes |
9911 | else |
9912 | echo "$as_me: failed program was:" >&5 |
9913 | sed 's/^/| /' conftest.$ac_ext >&5 |
9914 | |
64ff59ba |
9915 | ac_cv_func_shl_load=no |
d9898ee8 |
9916 | fi |
64ff59ba |
9917 | |
9918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9919 | conftest$ac_exeext conftest.$ac_ext |
9920 | fi |
64ff59ba |
9921 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9922 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9923 | if test $ac_cv_func_shl_load = yes; then |
9924 | lt_cv_dlopen="shl_load" |
9925 | else |
64ff59ba |
9926 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9927 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9928 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9930 | else |
9931 | ac_check_lib_save_LIBS=$LIBS |
9932 | LIBS="-ldld $LIBS" |
9933 | cat >conftest.$ac_ext <<_ACEOF |
9934 | /* confdefs.h. */ |
9935 | _ACEOF |
9936 | cat confdefs.h >>conftest.$ac_ext |
9937 | cat >>conftest.$ac_ext <<_ACEOF |
9938 | /* end confdefs.h. */ |
9939 | |
64ff59ba |
9940 | /* Override any GCC internal prototype to avoid an error. |
9941 | Use char because int might match the return type of a GCC |
9942 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9943 | #ifdef __cplusplus |
9944 | extern "C" |
9945 | #endif |
d9898ee8 |
9946 | char shl_load (); |
9947 | int |
9948 | main () |
9949 | { |
64ff59ba |
9950 | return shl_load (); |
d9898ee8 |
9951 | ; |
9952 | return 0; |
9953 | } |
9954 | _ACEOF |
9955 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
9956 | if { (ac_try="$ac_link" |
9957 | case "(($ac_try" in |
9958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9959 | *) ac_try_echo=$ac_try;; |
9960 | esac |
9961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9962 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9963 | ac_status=$? |
9964 | grep -v '^ *+' conftest.er1 >conftest.err |
9965 | rm -f conftest.er1 |
9966 | cat conftest.err >&5 |
9967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
9968 | (exit $ac_status); } && { |
9969 | test -z "$ac_c_werror_flag" || |
9970 | test ! -s conftest.err |
9971 | } && test -s conftest$ac_exeext && |
9972 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9973 | ac_cv_lib_dld_shl_load=yes |
9974 | else |
9975 | echo "$as_me: failed program was:" >&5 |
9976 | sed 's/^/| /' conftest.$ac_ext >&5 |
9977 | |
64ff59ba |
9978 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9979 | fi |
64ff59ba |
9980 | |
9981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9982 | conftest$ac_exeext conftest.$ac_ext |
9983 | LIBS=$ac_check_lib_save_LIBS |
9984 | fi |
64ff59ba |
9985 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9986 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9987 | if test $ac_cv_lib_dld_shl_load = yes; then |
9988 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9989 | else |
64ff59ba |
9990 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9991 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9992 | if test "${ac_cv_func_dlopen+set}" = set; then |
9993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9994 | else |
9995 | cat >conftest.$ac_ext <<_ACEOF |
9996 | /* confdefs.h. */ |
9997 | _ACEOF |
9998 | cat confdefs.h >>conftest.$ac_ext |
9999 | cat >>conftest.$ac_ext <<_ACEOF |
10000 | /* end confdefs.h. */ |
10001 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
10002 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10003 | #define dlopen innocuous_dlopen |
10004 | |
10005 | /* System header to define __stub macros and hopefully few prototypes, |
10006 | which can conflict with char dlopen (); below. |
10007 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10008 | <limits.h> exists even on freestanding compilers. */ |
10009 | |
10010 | #ifdef __STDC__ |
10011 | # include <limits.h> |
10012 | #else |
10013 | # include <assert.h> |
10014 | #endif |
10015 | |
10016 | #undef dlopen |
10017 | |
64ff59ba |
10018 | /* Override any GCC internal prototype to avoid an error. |
10019 | Use char because int might match the return type of a GCC |
10020 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
10021 | #ifdef __cplusplus |
10022 | extern "C" |
d9898ee8 |
10023 | #endif |
d9898ee8 |
10024 | char dlopen (); |
10025 | /* The GNU C library defines this for functions which it implements |
10026 | to always fail with ENOSYS. Some functions are actually named |
10027 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
10028 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
10029 | choke me |
d9898ee8 |
10030 | #endif |
10031 | |
10032 | int |
10033 | main () |
10034 | { |
64ff59ba |
10035 | return dlopen (); |
d9898ee8 |
10036 | ; |
10037 | return 0; |
10038 | } |
10039 | _ACEOF |
10040 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
10041 | if { (ac_try="$ac_link" |
10042 | case "(($ac_try" in |
10043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10044 | *) ac_try_echo=$ac_try;; |
10045 | esac |
10046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10047 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
10048 | ac_status=$? |
10049 | grep -v '^ *+' conftest.er1 >conftest.err |
10050 | rm -f conftest.er1 |
10051 | cat conftest.err >&5 |
10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
10053 | (exit $ac_status); } && { |
10054 | test -z "$ac_c_werror_flag" || |
10055 | test ! -s conftest.err |
10056 | } && test -s conftest$ac_exeext && |
10057 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
10058 | ac_cv_func_dlopen=yes |
10059 | else |
10060 | echo "$as_me: failed program was:" >&5 |
10061 | sed 's/^/| /' conftest.$ac_ext >&5 |
10062 | |
64ff59ba |
10063 | ac_cv_func_dlopen=no |
d9898ee8 |
10064 | fi |
64ff59ba |
10065 | |
10066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
10067 | conftest$ac_exeext conftest.$ac_ext |
10068 | fi |
64ff59ba |
10069 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
10070 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
10071 | if test $ac_cv_func_dlopen = yes; then |
10072 | lt_cv_dlopen="dlopen" |
10073 | else |
64ff59ba |
10074 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10075 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
10076 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
10077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10078 | else |
10079 | ac_check_lib_save_LIBS=$LIBS |
10080 | LIBS="-ldl $LIBS" |
10081 | cat >conftest.$ac_ext <<_ACEOF |
10082 | /* confdefs.h. */ |
10083 | _ACEOF |
10084 | cat confdefs.h >>conftest.$ac_ext |
10085 | cat >>conftest.$ac_ext <<_ACEOF |
10086 | /* end confdefs.h. */ |
10087 | |
64ff59ba |
10088 | /* Override any GCC internal prototype to avoid an error. |
10089 | Use char because int might match the return type of a GCC |
10090 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
10091 | #ifdef __cplusplus |
10092 | extern "C" |
10093 | #endif |
d9898ee8 |
10094 | char dlopen (); |
10095 | int |
10096 | main () |
10097 | { |
64ff59ba |
10098 | return dlopen (); |
d9898ee8 |
10099 | ; |
10100 | return 0; |
10101 | } |
10102 | _ACEOF |
10103 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
10104 | if { (ac_try="$ac_link" |
10105 | case "(($ac_try" in |
10106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10107 | *) ac_try_echo=$ac_try;; |
10108 | esac |
10109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10110 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
10111 | ac_status=$? |
10112 | grep -v '^ *+' conftest.er1 >conftest.err |
10113 | rm -f conftest.er1 |
10114 | cat conftest.err >&5 |
10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
10116 | (exit $ac_status); } && { |
10117 | test -z "$ac_c_werror_flag" || |
10118 | test ! -s conftest.err |
10119 | } && test -s conftest$ac_exeext && |
10120 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
10121 | ac_cv_lib_dl_dlopen=yes |
10122 | else |
10123 | echo "$as_me: failed program was:" >&5 |
10124 | sed 's/^/| /' conftest.$ac_ext >&5 |
10125 | |
64ff59ba |
10126 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
10127 | fi |
64ff59ba |
10128 | |
10129 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
10130 | conftest$ac_exeext conftest.$ac_ext |
10131 | LIBS=$ac_check_lib_save_LIBS |
10132 | fi |
64ff59ba |
10133 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10134 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
10135 | if test $ac_cv_lib_dl_dlopen = yes; then |
10136 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10137 | else |
64ff59ba |
10138 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
10139 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
10140 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
10141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10142 | else |
10143 | ac_check_lib_save_LIBS=$LIBS |
10144 | LIBS="-lsvld $LIBS" |
10145 | cat >conftest.$ac_ext <<_ACEOF |
10146 | /* confdefs.h. */ |
10147 | _ACEOF |
10148 | cat confdefs.h >>conftest.$ac_ext |
10149 | cat >>conftest.$ac_ext <<_ACEOF |
10150 | /* end confdefs.h. */ |
10151 | |
64ff59ba |
10152 | /* Override any GCC internal prototype to avoid an error. |
10153 | Use char because int might match the return type of a GCC |
10154 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
10155 | #ifdef __cplusplus |
10156 | extern "C" |
10157 | #endif |
d9898ee8 |
10158 | char dlopen (); |
10159 | int |
10160 | main () |
10161 | { |
64ff59ba |
10162 | return dlopen (); |
d9898ee8 |
10163 | ; |
10164 | return 0; |
10165 | } |
10166 | _ACEOF |
10167 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
10168 | if { (ac_try="$ac_link" |
10169 | case "(($ac_try" in |
10170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10171 | *) ac_try_echo=$ac_try;; |
10172 | esac |
10173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10174 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
10175 | ac_status=$? |
10176 | grep -v '^ *+' conftest.er1 >conftest.err |
10177 | rm -f conftest.er1 |
10178 | cat conftest.err >&5 |
10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
10180 | (exit $ac_status); } && { |
10181 | test -z "$ac_c_werror_flag" || |
10182 | test ! -s conftest.err |
10183 | } && test -s conftest$ac_exeext && |
10184 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
10185 | ac_cv_lib_svld_dlopen=yes |
10186 | else |
10187 | echo "$as_me: failed program was:" >&5 |
10188 | sed 's/^/| /' conftest.$ac_ext >&5 |
10189 | |
64ff59ba |
10190 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
10191 | fi |
64ff59ba |
10192 | |
10193 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
10194 | conftest$ac_exeext conftest.$ac_ext |
10195 | LIBS=$ac_check_lib_save_LIBS |
10196 | fi |
64ff59ba |
10197 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
10198 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
10199 | if test $ac_cv_lib_svld_dlopen = yes; then |
10200 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10201 | else |
64ff59ba |
10202 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
10203 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
10204 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
10205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10206 | else |
10207 | ac_check_lib_save_LIBS=$LIBS |
10208 | LIBS="-ldld $LIBS" |
10209 | cat >conftest.$ac_ext <<_ACEOF |
10210 | /* confdefs.h. */ |
10211 | _ACEOF |
10212 | cat confdefs.h >>conftest.$ac_ext |
10213 | cat >>conftest.$ac_ext <<_ACEOF |
10214 | /* end confdefs.h. */ |
10215 | |
64ff59ba |
10216 | /* Override any GCC internal prototype to avoid an error. |
10217 | Use char because int might match the return type of a GCC |
10218 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
10219 | #ifdef __cplusplus |
10220 | extern "C" |
10221 | #endif |
d9898ee8 |
10222 | char dld_link (); |
10223 | int |
10224 | main () |
10225 | { |
64ff59ba |
10226 | return dld_link (); |
d9898ee8 |
10227 | ; |
10228 | return 0; |
10229 | } |
10230 | _ACEOF |
10231 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
10232 | if { (ac_try="$ac_link" |
10233 | case "(($ac_try" in |
10234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10235 | *) ac_try_echo=$ac_try;; |
10236 | esac |
10237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10238 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
10239 | ac_status=$? |
10240 | grep -v '^ *+' conftest.er1 >conftest.err |
10241 | rm -f conftest.er1 |
10242 | cat conftest.err >&5 |
10243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
10244 | (exit $ac_status); } && { |
10245 | test -z "$ac_c_werror_flag" || |
10246 | test ! -s conftest.err |
10247 | } && test -s conftest$ac_exeext && |
10248 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
10249 | ac_cv_lib_dld_dld_link=yes |
10250 | else |
10251 | echo "$as_me: failed program was:" >&5 |
10252 | sed 's/^/| /' conftest.$ac_ext >&5 |
10253 | |
64ff59ba |
10254 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
10255 | fi |
64ff59ba |
10256 | |
10257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
10258 | conftest$ac_exeext conftest.$ac_ext |
10259 | LIBS=$ac_check_lib_save_LIBS |
10260 | fi |
64ff59ba |
10261 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
10262 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
10263 | if test $ac_cv_lib_dld_dld_link = yes; then |
10264 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
10265 | fi |
10266 | |
10267 | |
10268 | fi |
10269 | |
10270 | |
10271 | fi |
10272 | |
10273 | |
10274 | fi |
10275 | |
10276 | |
10277 | fi |
10278 | |
10279 | |
10280 | fi |
10281 | |
10282 | ;; |
10283 | esac |
10284 | |
10285 | if test "x$lt_cv_dlopen" != xno; then |
10286 | enable_dlopen=yes |
10287 | else |
10288 | enable_dlopen=no |
10289 | fi |
10290 | |
10291 | case $lt_cv_dlopen in |
10292 | dlopen) |
10293 | save_CPPFLAGS="$CPPFLAGS" |
10294 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
10295 | |
10296 | save_LDFLAGS="$LDFLAGS" |
10297 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
10298 | |
10299 | save_LIBS="$LIBS" |
10300 | LIBS="$lt_cv_dlopen_libs $LIBS" |
10301 | |
64ff59ba |
10302 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10303 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10304 | if test "${lt_cv_dlopen_self+set}" = set; then |
10305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10306 | else |
10307 | if test "$cross_compiling" = yes; then : |
10308 | lt_cv_dlopen_self=cross |
10309 | else |
10310 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10311 | lt_status=$lt_dlunknown |
10312 | cat > conftest.$ac_ext <<EOF |
0fde1ce3 |
10313 | #line 10313 "configure" |
d9898ee8 |
10314 | #include "confdefs.h" |
10315 | |
10316 | #if HAVE_DLFCN_H |
10317 | #include <dlfcn.h> |
10318 | #endif |
10319 | |
10320 | #include <stdio.h> |
10321 | |
10322 | #ifdef RTLD_GLOBAL |
10323 | # define LT_DLGLOBAL RTLD_GLOBAL |
10324 | #else |
10325 | # ifdef DL_GLOBAL |
10326 | # define LT_DLGLOBAL DL_GLOBAL |
10327 | # else |
10328 | # define LT_DLGLOBAL 0 |
10329 | # endif |
10330 | #endif |
10331 | |
10332 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10333 | find out it does not work in some platform. */ |
10334 | #ifndef LT_DLLAZY_OR_NOW |
10335 | # ifdef RTLD_LAZY |
10336 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10337 | # else |
10338 | # ifdef DL_LAZY |
10339 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10340 | # else |
10341 | # ifdef RTLD_NOW |
10342 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10343 | # else |
10344 | # ifdef DL_NOW |
10345 | # define LT_DLLAZY_OR_NOW DL_NOW |
10346 | # else |
10347 | # define LT_DLLAZY_OR_NOW 0 |
10348 | # endif |
10349 | # endif |
10350 | # endif |
10351 | # endif |
10352 | #endif |
10353 | |
10354 | #ifdef __cplusplus |
10355 | extern "C" void exit (int); |
10356 | #endif |
10357 | |
10358 | void fnord() { int i=42;} |
10359 | int main () |
10360 | { |
10361 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10362 | int status = $lt_dlunknown; |
10363 | |
10364 | if (self) |
10365 | { |
10366 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10367 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10368 | /* dlclose (self); */ |
10369 | } |
10370 | else |
10371 | puts (dlerror ()); |
10372 | |
10373 | exit (status); |
10374 | } |
10375 | EOF |
10376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10377 | (eval $ac_link) 2>&5 |
10378 | ac_status=$? |
10379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10380 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10381 | (./conftest; exit; ) >&5 2>/dev/null |
10382 | lt_status=$? |
10383 | case x$lt_status in |
10384 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
10385 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
10386 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
10387 | esac |
10388 | else : |
10389 | # compilation failed |
10390 | lt_cv_dlopen_self=no |
10391 | fi |
10392 | fi |
10393 | rm -fr conftest* |
10394 | |
10395 | |
10396 | fi |
64ff59ba |
10397 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10398 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
10399 | |
10400 | if test "x$lt_cv_dlopen_self" = xyes; then |
10401 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
64ff59ba |
10402 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10403 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10404 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10406 | else |
10407 | if test "$cross_compiling" = yes; then : |
10408 | lt_cv_dlopen_self_static=cross |
10409 | else |
10410 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10411 | lt_status=$lt_dlunknown |
10412 | cat > conftest.$ac_ext <<EOF |
0fde1ce3 |
10413 | #line 10413 "configure" |
d9898ee8 |
10414 | #include "confdefs.h" |
10415 | |
10416 | #if HAVE_DLFCN_H |
10417 | #include <dlfcn.h> |
10418 | #endif |
10419 | |
10420 | #include <stdio.h> |
10421 | |
10422 | #ifdef RTLD_GLOBAL |
10423 | # define LT_DLGLOBAL RTLD_GLOBAL |
10424 | #else |
10425 | # ifdef DL_GLOBAL |
10426 | # define LT_DLGLOBAL DL_GLOBAL |
10427 | # else |
10428 | # define LT_DLGLOBAL 0 |
10429 | # endif |
10430 | #endif |
10431 | |
10432 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10433 | find out it does not work in some platform. */ |
10434 | #ifndef LT_DLLAZY_OR_NOW |
10435 | # ifdef RTLD_LAZY |
10436 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10437 | # else |
10438 | # ifdef DL_LAZY |
10439 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10440 | # else |
10441 | # ifdef RTLD_NOW |
10442 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10443 | # else |
10444 | # ifdef DL_NOW |
10445 | # define LT_DLLAZY_OR_NOW DL_NOW |
10446 | # else |
10447 | # define LT_DLLAZY_OR_NOW 0 |
10448 | # endif |
10449 | # endif |
10450 | # endif |
10451 | # endif |
10452 | #endif |
10453 | |
10454 | #ifdef __cplusplus |
10455 | extern "C" void exit (int); |
10456 | #endif |
10457 | |
10458 | void fnord() { int i=42;} |
10459 | int main () |
10460 | { |
10461 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10462 | int status = $lt_dlunknown; |
10463 | |
10464 | if (self) |
10465 | { |
10466 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10467 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10468 | /* dlclose (self); */ |
10469 | } |
10470 | else |
10471 | puts (dlerror ()); |
10472 | |
10473 | exit (status); |
10474 | } |
10475 | EOF |
10476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10477 | (eval $ac_link) 2>&5 |
10478 | ac_status=$? |
10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10480 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10481 | (./conftest; exit; ) >&5 2>/dev/null |
10482 | lt_status=$? |
10483 | case x$lt_status in |
10484 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10485 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10486 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10487 | esac |
10488 | else : |
10489 | # compilation failed |
10490 | lt_cv_dlopen_self_static=no |
10491 | fi |
10492 | fi |
10493 | rm -fr conftest* |
10494 | |
10495 | |
10496 | fi |
64ff59ba |
10497 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10498 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10499 | fi |
10500 | |
10501 | CPPFLAGS="$save_CPPFLAGS" |
10502 | LDFLAGS="$save_LDFLAGS" |
10503 | LIBS="$save_LIBS" |
10504 | ;; |
10505 | esac |
10506 | |
10507 | case $lt_cv_dlopen_self in |
10508 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10509 | *) enable_dlopen_self=unknown ;; |
10510 | esac |
10511 | |
10512 | case $lt_cv_dlopen_self_static in |
10513 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10514 | *) enable_dlopen_self_static=unknown ;; |
10515 | esac |
10516 | fi |
10517 | |
10518 | |
10519 | # Report which library types will actually be built |
64ff59ba |
10520 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10521 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10522 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10523 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10524 | |
64ff59ba |
10525 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10526 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10527 | test "$can_build_shared" = "no" && enable_shared=no |
10528 | |
10529 | # On AIX, shared libraries and static libraries use the same namespace, and |
10530 | # are all built from PIC. |
10531 | case $host_os in |
10532 | aix3*) |
10533 | test "$enable_shared" = yes && enable_static=no |
10534 | if test -n "$RANLIB"; then |
10535 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10536 | postinstall_cmds='$RANLIB $lib' |
10537 | fi |
10538 | ;; |
10539 | |
10540 | aix4* | aix5*) |
10541 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10542 | test "$enable_shared" = yes && enable_static=no |
10543 | fi |
10544 | ;; |
10545 | esac |
64ff59ba |
10546 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10547 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10548 | |
64ff59ba |
10549 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10550 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10551 | # Make sure either enable_shared or enable_static is yes. |
10552 | test "$enable_shared" = yes || enable_static=yes |
64ff59ba |
10553 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10554 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10555 | |
10556 | # The else clause should only fire when bootstrapping the |
10557 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10558 | # with your package, and you will get complaints that there are |
10559 | # no rules to generate ltmain.sh. |
10560 | if test -f "$ltmain"; then |
10561 | # See if we are running on zsh, and set the options which allow our commands through |
10562 | # without removal of \ escapes. |
10563 | if test -n "${ZSH_VERSION+set}" ; then |
10564 | setopt NO_GLOB_SUBST |
10565 | fi |
10566 | # Now quote all the things that may contain metacharacters while being |
10567 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10568 | # variables and quote the copies for generation of the libtool script. |
10569 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10570 | SED SHELL STRIP \ |
10571 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10572 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10573 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10574 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10575 | lt_cv_sys_global_symbol_to_c_name_address \ |
10576 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10577 | old_postinstall_cmds old_postuninstall_cmds \ |
10578 | compiler \ |
10579 | CC \ |
10580 | LD \ |
10581 | lt_prog_compiler_wl \ |
10582 | lt_prog_compiler_pic \ |
10583 | lt_prog_compiler_static \ |
10584 | lt_prog_compiler_no_builtin_flag \ |
10585 | export_dynamic_flag_spec \ |
10586 | thread_safe_flag_spec \ |
10587 | whole_archive_flag_spec \ |
10588 | enable_shared_with_static_runtimes \ |
10589 | old_archive_cmds \ |
10590 | old_archive_from_new_cmds \ |
10591 | predep_objects \ |
10592 | postdep_objects \ |
10593 | predeps \ |
10594 | postdeps \ |
10595 | compiler_lib_search_path \ |
10596 | archive_cmds \ |
10597 | archive_expsym_cmds \ |
10598 | postinstall_cmds \ |
10599 | postuninstall_cmds \ |
10600 | old_archive_from_expsyms_cmds \ |
10601 | allow_undefined_flag \ |
10602 | no_undefined_flag \ |
10603 | export_symbols_cmds \ |
10604 | hardcode_libdir_flag_spec \ |
10605 | hardcode_libdir_flag_spec_ld \ |
10606 | hardcode_libdir_separator \ |
10607 | hardcode_automatic \ |
10608 | module_cmds \ |
10609 | module_expsym_cmds \ |
10610 | lt_cv_prog_compiler_c_o \ |
0fde1ce3 |
10611 | fix_srcfile_path \ |
d9898ee8 |
10612 | exclude_expsyms \ |
10613 | include_expsyms; do |
10614 | |
10615 | case $var in |
10616 | old_archive_cmds | \ |
10617 | old_archive_from_new_cmds | \ |
10618 | archive_cmds | \ |
10619 | archive_expsym_cmds | \ |
10620 | module_cmds | \ |
10621 | module_expsym_cmds | \ |
10622 | old_archive_from_expsyms_cmds | \ |
10623 | export_symbols_cmds | \ |
10624 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10625 | postinstall_cmds | postuninstall_cmds | \ |
10626 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10627 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10628 | # Double-quote double-evaled strings. |
10629 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10630 | ;; |
10631 | *) |
10632 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10633 | ;; |
10634 | esac |
10635 | done |
10636 | |
10637 | case $lt_echo in |
10638 | *'\$0 --fallback-echo"') |
10639 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10640 | ;; |
10641 | esac |
10642 | |
10643 | cfgfile="${ofile}T" |
10644 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10645 | $rm -f "$cfgfile" |
10646 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10647 | echo "$as_me: creating $ofile" >&6;} |
10648 | |
10649 | cat <<__EOF__ >> "$cfgfile" |
10650 | #! $SHELL |
10651 | |
10652 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10653 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10654 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10655 | # |
0fde1ce3 |
10656 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
d9898ee8 |
10657 | # Free Software Foundation, Inc. |
10658 | # |
10659 | # This file is part of GNU Libtool: |
10660 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10661 | # |
10662 | # This program is free software; you can redistribute it and/or modify |
10663 | # it under the terms of the GNU General Public License as published by |
10664 | # the Free Software Foundation; either version 2 of the License, or |
10665 | # (at your option) any later version. |
10666 | # |
10667 | # This program is distributed in the hope that it will be useful, but |
10668 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10669 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10670 | # General Public License for more details. |
10671 | # |
10672 | # You should have received a copy of the GNU General Public License |
10673 | # along with this program; if not, write to the Free Software |
10674 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10675 | # |
10676 | # As a special exception to the GNU General Public License, if you |
10677 | # distribute this file as part of a program that contains a |
10678 | # configuration script generated by Autoconf, you may include it under |
10679 | # the same distribution terms that you use for the rest of that program. |
10680 | |
10681 | # A sed program that does not truncate output. |
10682 | SED=$lt_SED |
10683 | |
10684 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10685 | Xsed="$SED -e 1s/^X//" |
10686 | |
10687 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10688 | # if CDPATH is set. |
10689 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10690 | |
10691 | # The names of the tagged configurations supported by this script. |
10692 | available_tags= |
10693 | |
10694 | # ### BEGIN LIBTOOL CONFIG |
10695 | |
10696 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10697 | |
10698 | # Shell to use when invoking shell scripts. |
10699 | SHELL=$lt_SHELL |
10700 | |
10701 | # Whether or not to build shared libraries. |
10702 | build_libtool_libs=$enable_shared |
10703 | |
10704 | # Whether or not to build static libraries. |
10705 | build_old_libs=$enable_static |
10706 | |
10707 | # Whether or not to add -lc for building shared libraries. |
10708 | build_libtool_need_lc=$archive_cmds_need_lc |
10709 | |
10710 | # Whether or not to disallow shared libs when runtime libs are static |
10711 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10712 | |
10713 | # Whether or not to optimize for fast installation. |
10714 | fast_install=$enable_fast_install |
10715 | |
10716 | # The host system. |
10717 | host_alias=$host_alias |
10718 | host=$host |
10719 | host_os=$host_os |
10720 | |
10721 | # The build system. |
10722 | build_alias=$build_alias |
10723 | build=$build |
10724 | build_os=$build_os |
10725 | |
10726 | # An echo program that does not interpret backslashes. |
10727 | echo=$lt_echo |
10728 | |
10729 | # The archiver. |
10730 | AR=$lt_AR |
10731 | AR_FLAGS=$lt_AR_FLAGS |
10732 | |
10733 | # A C compiler. |
10734 | LTCC=$lt_LTCC |
10735 | |
10736 | # LTCC compiler flags. |
10737 | LTCFLAGS=$lt_LTCFLAGS |
10738 | |
10739 | # A language-specific compiler. |
10740 | CC=$lt_compiler |
10741 | |
10742 | # Is the compiler the GNU C compiler? |
10743 | with_gcc=$GCC |
10744 | |
d9898ee8 |
10745 | # An ERE matcher. |
10746 | EGREP=$lt_EGREP |
10747 | |
10748 | # The linker used to build libraries. |
10749 | LD=$lt_LD |
10750 | |
10751 | # Whether we need hard or soft links. |
10752 | LN_S=$lt_LN_S |
10753 | |
10754 | # A BSD-compatible nm program. |
10755 | NM=$lt_NM |
10756 | |
10757 | # A symbol stripping program |
10758 | STRIP=$lt_STRIP |
10759 | |
10760 | # Used to examine libraries when file_magic_cmd begins "file" |
10761 | MAGIC_CMD=$MAGIC_CMD |
10762 | |
10763 | # Used on cygwin: DLL creation program. |
10764 | DLLTOOL="$DLLTOOL" |
10765 | |
10766 | # Used on cygwin: object dumper. |
10767 | OBJDUMP="$OBJDUMP" |
10768 | |
10769 | # Used on cygwin: assembler. |
10770 | AS="$AS" |
10771 | |
10772 | # The name of the directory that contains temporary libtool files. |
10773 | objdir=$objdir |
10774 | |
10775 | # How to create reloadable object files. |
10776 | reload_flag=$lt_reload_flag |
10777 | reload_cmds=$lt_reload_cmds |
10778 | |
10779 | # How to pass a linker flag through the compiler. |
10780 | wl=$lt_lt_prog_compiler_wl |
10781 | |
10782 | # Object file suffix (normally "o"). |
10783 | objext="$ac_objext" |
10784 | |
10785 | # Old archive suffix (normally "a"). |
10786 | libext="$libext" |
10787 | |
10788 | # Shared library suffix (normally ".so"). |
10789 | shrext_cmds='$shrext_cmds' |
10790 | |
10791 | # Executable file suffix (normally ""). |
10792 | exeext="$exeext" |
10793 | |
10794 | # Additional compiler flags for building library objects. |
10795 | pic_flag=$lt_lt_prog_compiler_pic |
10796 | pic_mode=$pic_mode |
10797 | |
10798 | # What is the maximum length of a command? |
10799 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10800 | |
10801 | # Does compiler simultaneously support -c and -o options? |
10802 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10803 | |
10804 | # Must we lock files when doing compilation? |
10805 | need_locks=$lt_need_locks |
10806 | |
10807 | # Do we need the lib prefix for modules? |
10808 | need_lib_prefix=$need_lib_prefix |
10809 | |
10810 | # Do we need a version for libraries? |
10811 | need_version=$need_version |
10812 | |
10813 | # Whether dlopen is supported. |
10814 | dlopen_support=$enable_dlopen |
10815 | |
10816 | # Whether dlopen of programs is supported. |
10817 | dlopen_self=$enable_dlopen_self |
10818 | |
10819 | # Whether dlopen of statically linked programs is supported. |
10820 | dlopen_self_static=$enable_dlopen_self_static |
10821 | |
10822 | # Compiler flag to prevent dynamic linking. |
10823 | link_static_flag=$lt_lt_prog_compiler_static |
10824 | |
10825 | # Compiler flag to turn off builtin functions. |
10826 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10827 | |
10828 | # Compiler flag to allow reflexive dlopens. |
10829 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10830 | |
10831 | # Compiler flag to generate shared objects directly from archives. |
10832 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10833 | |
10834 | # Compiler flag to generate thread-safe objects. |
10835 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10836 | |
10837 | # Library versioning type. |
10838 | version_type=$version_type |
10839 | |
10840 | # Format of library name prefix. |
10841 | libname_spec=$lt_libname_spec |
10842 | |
10843 | # List of archive names. First name is the real one, the rest are links. |
10844 | # The last name is the one that the linker finds with -lNAME. |
10845 | library_names_spec=$lt_library_names_spec |
10846 | |
10847 | # The coded name of the library, if different from the real name. |
10848 | soname_spec=$lt_soname_spec |
10849 | |
10850 | # Commands used to build and install an old-style archive. |
10851 | RANLIB=$lt_RANLIB |
10852 | old_archive_cmds=$lt_old_archive_cmds |
10853 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10854 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10855 | |
10856 | # Create an old-style archive from a shared archive. |
10857 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10858 | |
10859 | # Create a temporary old-style archive to link instead of a shared archive. |
10860 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10861 | |
10862 | # Commands used to build and install a shared archive. |
10863 | archive_cmds=$lt_archive_cmds |
10864 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10865 | postinstall_cmds=$lt_postinstall_cmds |
10866 | postuninstall_cmds=$lt_postuninstall_cmds |
10867 | |
10868 | # Commands used to build a loadable module (assumed same as above if empty) |
10869 | module_cmds=$lt_module_cmds |
10870 | module_expsym_cmds=$lt_module_expsym_cmds |
10871 | |
10872 | # Commands to strip libraries. |
10873 | old_striplib=$lt_old_striplib |
10874 | striplib=$lt_striplib |
10875 | |
10876 | # Dependencies to place before the objects being linked to create a |
10877 | # shared library. |
64ff59ba |
10878 | predep_objects=$lt_predep_objects |
d9898ee8 |
10879 | |
10880 | # Dependencies to place after the objects being linked to create a |
10881 | # shared library. |
64ff59ba |
10882 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10883 | |
10884 | # Dependencies to place before the objects being linked to create a |
10885 | # shared library. |
10886 | predeps=$lt_predeps |
10887 | |
10888 | # Dependencies to place after the objects being linked to create a |
10889 | # shared library. |
10890 | postdeps=$lt_postdeps |
10891 | |
10892 | # The library search path used internally by the compiler when linking |
10893 | # a shared library. |
64ff59ba |
10894 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10895 | |
10896 | # Method to check whether dependent libraries are shared objects. |
10897 | deplibs_check_method=$lt_deplibs_check_method |
10898 | |
10899 | # Command to use when deplibs_check_method == file_magic. |
10900 | file_magic_cmd=$lt_file_magic_cmd |
10901 | |
10902 | # Flag that allows shared libraries with undefined symbols to be built. |
10903 | allow_undefined_flag=$lt_allow_undefined_flag |
10904 | |
10905 | # Flag that forces no undefined symbols. |
10906 | no_undefined_flag=$lt_no_undefined_flag |
10907 | |
10908 | # Commands used to finish a libtool library installation in a directory. |
10909 | finish_cmds=$lt_finish_cmds |
10910 | |
10911 | # Same as above, but a single script fragment to be evaled but not shown. |
10912 | finish_eval=$lt_finish_eval |
10913 | |
10914 | # Take the output of nm and produce a listing of raw symbols and C names. |
10915 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10916 | |
10917 | # Transform the output of nm in a proper C declaration |
10918 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10919 | |
10920 | # Transform the output of nm in a C name address pair |
10921 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10922 | |
10923 | # This is the shared library runtime path variable. |
10924 | runpath_var=$runpath_var |
10925 | |
10926 | # This is the shared library path variable. |
10927 | shlibpath_var=$shlibpath_var |
10928 | |
10929 | # Is shlibpath searched before the hard-coded library search path? |
10930 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10931 | |
10932 | # How to hardcode a shared library path into an executable. |
10933 | hardcode_action=$hardcode_action |
10934 | |
10935 | # Whether we should hardcode library paths into libraries. |
10936 | hardcode_into_libs=$hardcode_into_libs |
10937 | |
10938 | # Flag to hardcode \$libdir into a binary during linking. |
10939 | # This must work even if \$libdir does not exist. |
10940 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10941 | |
10942 | # If ld is used when linking, flag to hardcode \$libdir into |
10943 | # a binary during linking. This must work even if \$libdir does |
10944 | # not exist. |
10945 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10946 | |
10947 | # Whether we need a single -rpath flag with a separated argument. |
10948 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10949 | |
10950 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10951 | # resulting binary. |
10952 | hardcode_direct=$hardcode_direct |
10953 | |
10954 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10955 | # resulting binary. |
10956 | hardcode_minus_L=$hardcode_minus_L |
10957 | |
10958 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10959 | # the resulting binary. |
10960 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10961 | |
10962 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10963 | # and all subsequent libraries and executables linked against it. |
10964 | hardcode_automatic=$hardcode_automatic |
10965 | |
10966 | # Variables whose values should be saved in libtool wrapper scripts and |
10967 | # restored at relink time. |
10968 | variables_saved_for_relink="$variables_saved_for_relink" |
10969 | |
10970 | # Whether libtool must link a program against all its dependency libraries. |
10971 | link_all_deplibs=$link_all_deplibs |
10972 | |
10973 | # Compile-time system search path for libraries |
64ff59ba |
10974 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10975 | |
10976 | # Run-time system search path for libraries |
10977 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10978 | |
10979 | # Fix the shell variable \$srcfile for the compiler. |
0fde1ce3 |
10980 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
10981 | |
10982 | # Set to yes if exported symbols are required. |
10983 | always_export_symbols=$always_export_symbols |
10984 | |
10985 | # The commands to list exported symbols. |
10986 | export_symbols_cmds=$lt_export_symbols_cmds |
10987 | |
10988 | # The commands to extract the exported symbol list from a shared archive. |
10989 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10990 | |
10991 | # Symbols that should not be listed in the preloaded symbols. |
10992 | exclude_expsyms=$lt_exclude_expsyms |
10993 | |
10994 | # Symbols that must always be exported. |
10995 | include_expsyms=$lt_include_expsyms |
10996 | |
10997 | # ### END LIBTOOL CONFIG |
10998 | |
10999 | __EOF__ |
11000 | |
11001 | |
11002 | case $host_os in |
11003 | aix3*) |
11004 | cat <<\EOF >> "$cfgfile" |
11005 | |
11006 | # AIX sometimes has problems with the GCC collect2 program. For some |
11007 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
11008 | # vanish in a puff of smoke. |
11009 | if test "X${COLLECT_NAMES+set}" != Xset; then |
11010 | COLLECT_NAMES= |
11011 | export COLLECT_NAMES |
11012 | fi |
11013 | EOF |
11014 | ;; |
11015 | esac |
11016 | |
11017 | # We use sed instead of cat because bash on DJGPP gets confused if |
11018 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
11019 | # text mode, it properly converts lines to CR/LF. This bash problem |
11020 | # is reportedly fixed, but why not run on old versions too? |
11021 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
11022 | |
11023 | mv -f "$cfgfile" "$ofile" || \ |
11024 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
11025 | chmod +x "$ofile" |
11026 | |
11027 | else |
11028 | # If there is no Makefile yet, we rely on a make rule to execute |
11029 | # `config.status --recheck' to rerun these tests and create the |
11030 | # libtool script then. |
11031 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
11032 | if test -f "$ltmain_in"; then |
11033 | test -f Makefile && make "$ltmain" |
11034 | fi |
11035 | fi |
11036 | |
11037 | |
11038 | ac_ext=c |
11039 | ac_cpp='$CPP $CPPFLAGS' |
11040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11043 | |
11044 | CC="$lt_save_CC" |
11045 | |
11046 | |
64ff59ba |
11047 | # Check whether --with-tags was given. |
d9898ee8 |
11048 | if test "${with_tags+set}" = set; then |
64ff59ba |
11049 | withval=$with_tags; tagnames="$withval" |
11050 | fi |
11051 | |
d9898ee8 |
11052 | |
11053 | if test -f "$ltmain" && test -n "$tagnames"; then |
11054 | if test ! -f "${ofile}"; then |
11055 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
11056 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
11057 | fi |
11058 | |
11059 | if test -z "$LTCC"; then |
11060 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
11061 | if test -z "$LTCC"; then |
11062 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
11063 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
11064 | else |
11065 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
11066 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
11067 | fi |
11068 | fi |
11069 | if test -z "$LTCFLAGS"; then |
11070 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
11071 | fi |
11072 | |
11073 | # Extract list of available tagged configurations in $ofile. |
11074 | # Note that this assumes the entire list is on one line. |
11075 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
11076 | |
11077 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
11078 | for tagname in $tagnames; do |
11079 | IFS="$lt_save_ifs" |
11080 | # Check whether tagname contains only valid characters |
11081 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
11082 | "") ;; |
11083 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
11084 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
11085 | { (exit 1); exit 1; }; } |
11086 | ;; |
11087 | esac |
11088 | |
11089 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
11090 | then |
11091 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
11092 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
11093 | { (exit 1); exit 1; }; } |
11094 | fi |
11095 | |
11096 | # Update the list of available tags. |
11097 | if test -n "$tagname"; then |
11098 | echo appending configuration tag \"$tagname\" to $ofile |
11099 | |
11100 | case $tagname in |
11101 | CXX) |
11102 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
11103 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
11104 | (test "X$CXX" != "Xg++"))) ; then |
64ff59ba |
11105 | ac_ext=cpp |
d9898ee8 |
11106 | ac_cpp='$CXXCPP $CPPFLAGS' |
11107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11110 | |
11111 | |
11112 | |
11113 | |
11114 | archive_cmds_need_lc_CXX=no |
11115 | allow_undefined_flag_CXX= |
11116 | always_export_symbols_CXX=no |
11117 | archive_expsym_cmds_CXX= |
11118 | export_dynamic_flag_spec_CXX= |
11119 | hardcode_direct_CXX=no |
11120 | hardcode_libdir_flag_spec_CXX= |
11121 | hardcode_libdir_flag_spec_ld_CXX= |
11122 | hardcode_libdir_separator_CXX= |
11123 | hardcode_minus_L_CXX=no |
11124 | hardcode_shlibpath_var_CXX=unsupported |
11125 | hardcode_automatic_CXX=no |
11126 | module_cmds_CXX= |
11127 | module_expsym_cmds_CXX= |
11128 | link_all_deplibs_CXX=unknown |
11129 | old_archive_cmds_CXX=$old_archive_cmds |
11130 | no_undefined_flag_CXX= |
11131 | whole_archive_flag_spec_CXX= |
11132 | enable_shared_with_static_runtimes_CXX=no |
11133 | |
11134 | # Dependencies to place before and after the object being linked: |
11135 | predep_objects_CXX= |
11136 | postdep_objects_CXX= |
11137 | predeps_CXX= |
11138 | postdeps_CXX= |
11139 | compiler_lib_search_path_CXX= |
11140 | |
11141 | # Source file extension for C++ test sources. |
11142 | ac_ext=cpp |
11143 | |
11144 | # Object file extension for compiled C++ test sources. |
11145 | objext=o |
11146 | objext_CXX=$objext |
11147 | |
11148 | # Code to be used in simple compile tests |
0fde1ce3 |
11149 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 |
11150 | |
11151 | # Code to be used in simple link tests |
0fde1ce3 |
11152 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
d9898ee8 |
11153 | |
11154 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
11155 | |
11156 | # If no C compiler was specified, use CC. |
11157 | LTCC=${LTCC-"$CC"} |
11158 | |
11159 | # If no C compiler flags were specified, use CFLAGS. |
11160 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
11161 | |
11162 | # Allow CC to be a program name with arguments. |
11163 | compiler=$CC |
11164 | |
11165 | |
11166 | # save warnings/boilerplate of simple test code |
11167 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
11168 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
11169 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
11170 | _lt_compiler_boilerplate=`cat conftest.err` |
11171 | $rm conftest* |
11172 | |
11173 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
11174 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
11175 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
11176 | _lt_linker_boilerplate=`cat conftest.err` |
11177 | $rm conftest* |
11178 | |
11179 | |
11180 | # Allow CC to be a program name with arguments. |
11181 | lt_save_CC=$CC |
11182 | lt_save_LD=$LD |
11183 | lt_save_GCC=$GCC |
11184 | GCC=$GXX |
11185 | lt_save_with_gnu_ld=$with_gnu_ld |
11186 | lt_save_path_LD=$lt_cv_path_LD |
11187 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
11188 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
11189 | else |
11190 | $as_unset lt_cv_prog_gnu_ld |
11191 | fi |
11192 | if test -n "${lt_cv_path_LDCXX+set}"; then |
11193 | lt_cv_path_LD=$lt_cv_path_LDCXX |
11194 | else |
11195 | $as_unset lt_cv_path_LD |
11196 | fi |
11197 | test -z "${LDCXX+set}" || LD=$LDCXX |
11198 | CC=${CXX-"c++"} |
11199 | compiler=$CC |
11200 | compiler_CXX=$CC |
11201 | for cc_temp in $compiler""; do |
11202 | case $cc_temp in |
11203 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
11204 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
11205 | \-*) ;; |
11206 | *) break;; |
11207 | esac |
11208 | done |
11209 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
11210 | |
11211 | |
11212 | # We don't want -fno-exception wen compiling C++ code, so set the |
11213 | # no_builtin_flag separately |
11214 | if test "$GXX" = yes; then |
11215 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
11216 | else |
11217 | lt_prog_compiler_no_builtin_flag_CXX= |
11218 | fi |
11219 | |
11220 | if test "$GXX" = yes; then |
11221 | # Set up default GNU C++ configuration |
11222 | |
11223 | |
64ff59ba |
11224 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
11225 | if test "${with_gnu_ld+set}" = set; then |
64ff59ba |
11226 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
11227 | else |
11228 | with_gnu_ld=no |
64ff59ba |
11229 | fi |
11230 | |
d9898ee8 |
11231 | ac_prog=ld |
11232 | if test "$GCC" = yes; then |
11233 | # Check if gcc -print-prog-name=ld gives a path. |
64ff59ba |
11234 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
11235 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
11236 | case $host in |
11237 | *-*-mingw*) |
11238 | # gcc leaves a trailing carriage return which upsets mingw |
11239 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
11240 | *) |
11241 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
11242 | esac |
11243 | case $ac_prog in |
11244 | # Accept absolute paths. |
11245 | [\\/]* | ?:[\\/]*) |
11246 | re_direlt='/[^/][^/]*/\.\./' |
11247 | # Canonicalize the pathname of ld |
11248 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
11249 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
11250 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
11251 | done |
11252 | test -z "$LD" && LD="$ac_prog" |
11253 | ;; |
11254 | "") |
11255 | # If it fails, then pretend we aren't using GCC. |
11256 | ac_prog=ld |
11257 | ;; |
11258 | *) |
11259 | # If it is relative, then search for the first ld in PATH. |
11260 | with_gnu_ld=unknown |
11261 | ;; |
11262 | esac |
11263 | elif test "$with_gnu_ld" = yes; then |
64ff59ba |
11264 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
11265 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11266 | else |
64ff59ba |
11267 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
11268 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11269 | fi |
11270 | if test "${lt_cv_path_LD+set}" = set; then |
11271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11272 | else |
11273 | if test -z "$LD"; then |
11274 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
11275 | for ac_dir in $PATH; do |
11276 | IFS="$lt_save_ifs" |
11277 | test -z "$ac_dir" && ac_dir=. |
11278 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
11279 | lt_cv_path_LD="$ac_dir/$ac_prog" |
11280 | # Check to see if the program is GNU ld. I'd rather use --version, |
11281 | # but apparently some variants of GNU ld only accept -v. |
11282 | # Break only if it was the GNU/non-GNU ld that we prefer. |
11283 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
11284 | *GNU* | *'with BFD'*) |
11285 | test "$with_gnu_ld" != no && break |
11286 | ;; |
11287 | *) |
11288 | test "$with_gnu_ld" != yes && break |
11289 | ;; |
11290 | esac |
11291 | fi |
11292 | done |
11293 | IFS="$lt_save_ifs" |
11294 | else |
11295 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
11296 | fi |
11297 | fi |
11298 | |
11299 | LD="$lt_cv_path_LD" |
11300 | if test -n "$LD"; then |
64ff59ba |
11301 | { echo "$as_me:$LINENO: result: $LD" >&5 |
11302 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
11303 | else |
64ff59ba |
11304 | { echo "$as_me:$LINENO: result: no" >&5 |
11305 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
11306 | fi |
11307 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
11308 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
11309 | { (exit 1); exit 1; }; } |
64ff59ba |
11310 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
11311 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11312 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
11313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11314 | else |
11315 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
11316 | case `$LD -v 2>&1 </dev/null` in |
11317 | *GNU* | *'with BFD'*) |
11318 | lt_cv_prog_gnu_ld=yes |
11319 | ;; |
11320 | *) |
11321 | lt_cv_prog_gnu_ld=no |
11322 | ;; |
11323 | esac |
11324 | fi |
64ff59ba |
11325 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
11326 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
11327 | with_gnu_ld=$lt_cv_prog_gnu_ld |
11328 | |
11329 | |
11330 | |
11331 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11332 | # archiving commands below assume that GNU ld is being used. |
11333 | if test "$with_gnu_ld" = yes; then |
11334 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11335 | 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' |
11336 | |
11337 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11338 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11339 | |
11340 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11341 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
11342 | # investigate it a little bit more. (MM) |
11343 | wlarc='${wl}' |
11344 | |
11345 | # ancient GNU ld didn't support --whole-archive et. al. |
11346 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
11347 | grep 'no-whole-archive' > /dev/null; then |
11348 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11349 | else |
11350 | whole_archive_flag_spec_CXX= |
11351 | fi |
11352 | else |
11353 | with_gnu_ld=no |
11354 | wlarc= |
11355 | |
11356 | # A generic and very simple default shared library creation |
11357 | # command for GNU C++ for the case where it uses the native |
11358 | # linker, instead of GNU ld. If possible, this setting should |
11359 | # overridden to take advantage of the native linker features on |
11360 | # the platform it is being used on. |
11361 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11362 | fi |
11363 | |
11364 | # Commands to make compiler produce verbose output that lists |
11365 | # what "hidden" libraries, object files and flags are used when |
11366 | # linking a shared library. |
11367 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11368 | |
11369 | else |
11370 | GXX=no |
11371 | with_gnu_ld=no |
11372 | wlarc= |
11373 | fi |
11374 | |
11375 | # PORTME: fill in a description of your system's C++ link characteristics |
64ff59ba |
11376 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11377 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
11378 | ld_shlibs_CXX=yes |
11379 | case $host_os in |
11380 | aix3*) |
11381 | # FIXME: insert proper C++ library support |
11382 | ld_shlibs_CXX=no |
11383 | ;; |
11384 | aix4* | aix5*) |
11385 | if test "$host_cpu" = ia64; then |
11386 | # On IA64, the linker does run time linking by default, so we don't |
11387 | # have to do anything special. |
11388 | aix_use_runtimelinking=no |
11389 | exp_sym_flag='-Bexport' |
11390 | no_entry_flag="" |
11391 | else |
11392 | aix_use_runtimelinking=no |
11393 | |
11394 | # Test if we are trying to use run time linking or normal |
11395 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11396 | # need to do runtime linking. |
11397 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
11398 | for ld_flag in $LDFLAGS; do |
11399 | case $ld_flag in |
11400 | *-brtl*) |
11401 | aix_use_runtimelinking=yes |
11402 | break |
11403 | ;; |
11404 | esac |
11405 | done |
11406 | ;; |
11407 | esac |
11408 | |
11409 | exp_sym_flag='-bexport' |
11410 | no_entry_flag='-bnoentry' |
11411 | fi |
11412 | |
11413 | # When large executables or shared objects are built, AIX ld can |
11414 | # have problems creating the table of contents. If linking a library |
11415 | # or program results in "error TOC overflow" add -mminimal-toc to |
11416 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11417 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11418 | |
11419 | archive_cmds_CXX='' |
11420 | hardcode_direct_CXX=yes |
11421 | hardcode_libdir_separator_CXX=':' |
11422 | link_all_deplibs_CXX=yes |
11423 | |
11424 | if test "$GXX" = yes; then |
11425 | case $host_os in aix4.[012]|aix4.[012].*) |
11426 | # We only want to do this on AIX 4.2 and lower, the check |
11427 | # below for broken collect2 doesn't work under 4.3+ |
11428 | collect2name=`${CC} -print-prog-name=collect2` |
11429 | if test -f "$collect2name" && \ |
11430 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11431 | then |
11432 | # We have reworked collect2 |
0fde1ce3 |
11433 | : |
d9898ee8 |
11434 | else |
11435 | # We have old collect2 |
11436 | hardcode_direct_CXX=unsupported |
11437 | # It fails to find uninstalled libraries when the uninstalled |
11438 | # path is not listed in the libpath. Setting hardcode_minus_L |
11439 | # to unsupported forces relinking |
11440 | hardcode_minus_L_CXX=yes |
11441 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11442 | hardcode_libdir_separator_CXX= |
11443 | fi |
11444 | ;; |
11445 | esac |
11446 | shared_flag='-shared' |
11447 | if test "$aix_use_runtimelinking" = yes; then |
11448 | shared_flag="$shared_flag "'${wl}-G' |
11449 | fi |
11450 | else |
11451 | # not using gcc |
11452 | if test "$host_cpu" = ia64; then |
11453 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11454 | # chokes on -Wl,-G. The following line is correct: |
11455 | shared_flag='-G' |
11456 | else |
11457 | if test "$aix_use_runtimelinking" = yes; then |
11458 | shared_flag='${wl}-G' |
11459 | else |
11460 | shared_flag='${wl}-bM:SRE' |
11461 | fi |
11462 | fi |
11463 | fi |
11464 | |
11465 | # It seems that -bexpall does not export symbols beginning with |
11466 | # underscore (_), so it is better to generate a list of symbols to export. |
11467 | always_export_symbols_CXX=yes |
11468 | if test "$aix_use_runtimelinking" = yes; then |
11469 | # Warning - without using the other runtime loading flags (-brtl), |
11470 | # -berok will link without error, but may produce a broken library. |
11471 | allow_undefined_flag_CXX='-berok' |
11472 | # Determine the default libpath from the value encoded in an empty executable. |
11473 | cat >conftest.$ac_ext <<_ACEOF |
11474 | /* confdefs.h. */ |
11475 | _ACEOF |
11476 | cat confdefs.h >>conftest.$ac_ext |
11477 | cat >>conftest.$ac_ext <<_ACEOF |
11478 | /* end confdefs.h. */ |
11479 | |
11480 | int |
11481 | main () |
11482 | { |
11483 | |
11484 | ; |
11485 | return 0; |
11486 | } |
11487 | _ACEOF |
11488 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
11489 | if { (ac_try="$ac_link" |
11490 | case "(($ac_try" in |
11491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11492 | *) ac_try_echo=$ac_try;; |
11493 | esac |
11494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11495 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11496 | ac_status=$? |
11497 | grep -v '^ *+' conftest.er1 >conftest.err |
11498 | rm -f conftest.er1 |
11499 | cat conftest.err >&5 |
11500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
11501 | (exit $ac_status); } && { |
11502 | test -z "$ac_cxx_werror_flag" || |
11503 | test ! -s conftest.err |
11504 | } && test -s conftest$ac_exeext && |
11505 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11506 | |
0fde1ce3 |
11507 | lt_aix_libpath_sed=' |
11508 | /Import File Strings/,/^$/ { |
11509 | /^0/ { |
11510 | s/^0 *\(.*\)$/\1/ |
11511 | p |
11512 | } |
11513 | }' |
11514 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
11515 | # Check for a 64-bit object if we didn't find anything. |
0fde1ce3 |
11516 | if test -z "$aix_libpath"; then |
11517 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11518 | fi |
d9898ee8 |
11519 | else |
11520 | echo "$as_me: failed program was:" >&5 |
11521 | sed 's/^/| /' conftest.$ac_ext >&5 |
11522 | |
64ff59ba |
11523 | |
d9898ee8 |
11524 | fi |
64ff59ba |
11525 | |
11526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11527 | conftest$ac_exeext conftest.$ac_ext |
11528 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11529 | |
11530 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11531 | |
11532 | 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" |
11533 | else |
11534 | if test "$host_cpu" = ia64; then |
11535 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11536 | allow_undefined_flag_CXX="-z nodefs" |
11537 | 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" |
11538 | else |
11539 | # Determine the default libpath from the value encoded in an empty executable. |
11540 | cat >conftest.$ac_ext <<_ACEOF |
11541 | /* confdefs.h. */ |
11542 | _ACEOF |
11543 | cat confdefs.h >>conftest.$ac_ext |
11544 | cat >>conftest.$ac_ext <<_ACEOF |
11545 | /* end confdefs.h. */ |
11546 | |
11547 | int |
11548 | main () |
11549 | { |
11550 | |
11551 | ; |
11552 | return 0; |
11553 | } |
11554 | _ACEOF |
11555 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
11556 | if { (ac_try="$ac_link" |
11557 | case "(($ac_try" in |
11558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11559 | *) ac_try_echo=$ac_try;; |
11560 | esac |
11561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11562 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11563 | ac_status=$? |
11564 | grep -v '^ *+' conftest.er1 >conftest.err |
11565 | rm -f conftest.er1 |
11566 | cat conftest.err >&5 |
11567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
11568 | (exit $ac_status); } && { |
11569 | test -z "$ac_cxx_werror_flag" || |
11570 | test ! -s conftest.err |
11571 | } && test -s conftest$ac_exeext && |
11572 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11573 | |
0fde1ce3 |
11574 | lt_aix_libpath_sed=' |
11575 | /Import File Strings/,/^$/ { |
11576 | /^0/ { |
11577 | s/^0 *\(.*\)$/\1/ |
11578 | p |
11579 | } |
11580 | }' |
11581 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
11582 | # Check for a 64-bit object if we didn't find anything. |
0fde1ce3 |
11583 | if test -z "$aix_libpath"; then |
11584 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11585 | fi |
d9898ee8 |
11586 | else |
11587 | echo "$as_me: failed program was:" >&5 |
11588 | sed 's/^/| /' conftest.$ac_ext >&5 |
11589 | |
64ff59ba |
11590 | |
d9898ee8 |
11591 | fi |
64ff59ba |
11592 | |
11593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11594 | conftest$ac_exeext conftest.$ac_ext |
11595 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11596 | |
11597 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11598 | # Warning - without using the other run time loading flags, |
11599 | # -berok will link without error, but may produce a broken library. |
11600 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11601 | allow_undefined_flag_CXX=' ${wl}-berok' |
11602 | # Exported symbols can be pulled into shared objects from archives |
11603 | whole_archive_flag_spec_CXX='$convenience' |
11604 | archive_cmds_need_lc_CXX=yes |
11605 | # This is similar to how AIX traditionally builds its shared libraries. |
11606 | 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' |
11607 | fi |
11608 | fi |
11609 | ;; |
11610 | |
11611 | beos*) |
11612 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11613 | allow_undefined_flag_CXX=unsupported |
11614 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11615 | # support --undefined. This deserves some investigation. FIXME |
11616 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11617 | else |
11618 | ld_shlibs_CXX=no |
11619 | fi |
11620 | ;; |
11621 | |
11622 | chorus*) |
11623 | case $cc_basename in |
11624 | *) |
11625 | # FIXME: insert proper C++ library support |
11626 | ld_shlibs_CXX=no |
11627 | ;; |
11628 | esac |
11629 | ;; |
11630 | |
11631 | cygwin* | mingw* | pw32*) |
11632 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11633 | # as there is no search path for DLLs. |
11634 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11635 | allow_undefined_flag_CXX=unsupported |
11636 | always_export_symbols_CXX=no |
11637 | enable_shared_with_static_runtimes_CXX=yes |
11638 | |
11639 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11640 | 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' |
11641 | # If the export-symbols file already is a .def file (1st line |
11642 | # is EXPORTS), use it as is; otherwise, prepend... |
11643 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11644 | cp $export_symbols $output_objdir/$soname.def; |
11645 | else |
11646 | echo EXPORTS > $output_objdir/$soname.def; |
11647 | cat $export_symbols >> $output_objdir/$soname.def; |
11648 | fi~ |
11649 | $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' |
11650 | else |
11651 | ld_shlibs_CXX=no |
11652 | fi |
11653 | ;; |
11654 | darwin* | rhapsody*) |
11655 | case $host_os in |
11656 | rhapsody* | darwin1.[012]) |
11657 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11658 | ;; |
11659 | *) # Darwin 1.3 on |
11660 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11661 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11662 | else |
11663 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11664 | 10.[012]) |
11665 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11666 | ;; |
11667 | 10.*) |
11668 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11669 | ;; |
11670 | esac |
11671 | fi |
11672 | ;; |
11673 | esac |
11674 | archive_cmds_need_lc_CXX=no |
11675 | hardcode_direct_CXX=no |
11676 | hardcode_automatic_CXX=yes |
11677 | hardcode_shlibpath_var_CXX=unsupported |
11678 | whole_archive_flag_spec_CXX='' |
11679 | link_all_deplibs_CXX=yes |
11680 | |
11681 | if test "$GXX" = yes ; then |
11682 | lt_int_apple_cc_single_mod=no |
11683 | output_verbose_link_cmd='echo' |
11684 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11685 | lt_int_apple_cc_single_mod=yes |
11686 | fi |
11687 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11688 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11689 | else |
11690 | 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' |
11691 | fi |
11692 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11693 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11694 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11695 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11696 | else |
11697 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11698 | fi |
11699 | 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}' |
11700 | else |
11701 | case $cc_basename in |
11702 | xlc*) |
11703 | output_verbose_link_cmd='echo' |
0fde1ce3 |
11704 | 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' |
d9898ee8 |
11705 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11706 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
0fde1ce3 |
11707 | 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}' |
d9898ee8 |
11708 | 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}' |
11709 | ;; |
11710 | *) |
11711 | ld_shlibs_CXX=no |
11712 | ;; |
11713 | esac |
11714 | fi |
11715 | ;; |
11716 | |
11717 | dgux*) |
11718 | case $cc_basename in |
11719 | ec++*) |
11720 | # FIXME: insert proper C++ library support |
11721 | ld_shlibs_CXX=no |
11722 | ;; |
11723 | ghcx*) |
11724 | # Green Hills C++ Compiler |
11725 | # FIXME: insert proper C++ library support |
11726 | ld_shlibs_CXX=no |
11727 | ;; |
11728 | *) |
11729 | # FIXME: insert proper C++ library support |
11730 | ld_shlibs_CXX=no |
11731 | ;; |
11732 | esac |
11733 | ;; |
11734 | freebsd[12]*) |
11735 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11736 | ld_shlibs_CXX=no |
11737 | ;; |
11738 | freebsd-elf*) |
11739 | archive_cmds_need_lc_CXX=no |
11740 | ;; |
0fde1ce3 |
11741 | freebsd* | dragonfly*) |
d9898ee8 |
11742 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11743 | # conventions |
11744 | ld_shlibs_CXX=yes |
11745 | ;; |
11746 | gnu*) |
11747 | ;; |
11748 | hpux9*) |
11749 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11750 | hardcode_libdir_separator_CXX=: |
11751 | export_dynamic_flag_spec_CXX='${wl}-E' |
11752 | hardcode_direct_CXX=yes |
11753 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11754 | # but as the default |
11755 | # location of the library. |
11756 | |
11757 | case $cc_basename in |
11758 | CC*) |
11759 | # FIXME: insert proper C++ library support |
11760 | ld_shlibs_CXX=no |
11761 | ;; |
11762 | aCC*) |
11763 | 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' |
11764 | # Commands to make compiler produce verbose output that lists |
11765 | # what "hidden" libraries, object files and flags are used when |
11766 | # linking a shared library. |
11767 | # |
11768 | # There doesn't appear to be a way to prevent this compiler from |
11769 | # explicitly linking system object files so we need to strip them |
11770 | # from the output so that they don't get included in the library |
11771 | # dependencies. |
11772 | 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' |
11773 | ;; |
11774 | *) |
11775 | if test "$GXX" = yes; then |
11776 | 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' |
11777 | else |
11778 | # FIXME: insert proper C++ library support |
11779 | ld_shlibs_CXX=no |
11780 | fi |
11781 | ;; |
11782 | esac |
11783 | ;; |
11784 | hpux10*|hpux11*) |
11785 | if test $with_gnu_ld = no; then |
11786 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11787 | hardcode_libdir_separator_CXX=: |
11788 | |
11789 | case $host_cpu in |
0fde1ce3 |
11790 | hppa*64*|ia64*) ;; |
d9898ee8 |
11791 | *) |
11792 | export_dynamic_flag_spec_CXX='${wl}-E' |
11793 | ;; |
11794 | esac |
11795 | fi |
11796 | case $host_cpu in |
11797 | hppa*64*|ia64*) |
11798 | hardcode_direct_CXX=no |
11799 | hardcode_shlibpath_var_CXX=no |
11800 | ;; |
11801 | *) |
11802 | hardcode_direct_CXX=yes |
11803 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11804 | # but as the default |
11805 | # location of the library. |
11806 | ;; |
11807 | esac |
11808 | |
11809 | case $cc_basename in |
11810 | CC*) |
11811 | # FIXME: insert proper C++ library support |
11812 | ld_shlibs_CXX=no |
11813 | ;; |
11814 | aCC*) |
11815 | case $host_cpu in |
11816 | hppa*64*) |
11817 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11818 | ;; |
11819 | ia64*) |
11820 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11821 | ;; |
11822 | *) |
11823 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11824 | ;; |
11825 | esac |
11826 | # Commands to make compiler produce verbose output that lists |
11827 | # what "hidden" libraries, object files and flags are used when |
11828 | # linking a shared library. |
11829 | # |
11830 | # There doesn't appear to be a way to prevent this compiler from |
11831 | # explicitly linking system object files so we need to strip them |
11832 | # from the output so that they don't get included in the library |
11833 | # dependencies. |
11834 | 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' |
11835 | ;; |
11836 | *) |
11837 | if test "$GXX" = yes; then |
11838 | if test $with_gnu_ld = no; then |
11839 | case $host_cpu in |
11840 | hppa*64*) |
11841 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11842 | ;; |
11843 | ia64*) |
11844 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11845 | ;; |
11846 | *) |
11847 | 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' |
11848 | ;; |
11849 | esac |
11850 | fi |
11851 | else |
11852 | # FIXME: insert proper C++ library support |
11853 | ld_shlibs_CXX=no |
11854 | fi |
11855 | ;; |
11856 | esac |
11857 | ;; |
0fde1ce3 |
11858 | interix[3-9]*) |
d9898ee8 |
11859 | hardcode_direct_CXX=no |
11860 | hardcode_shlibpath_var_CXX=no |
11861 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11862 | export_dynamic_flag_spec_CXX='${wl}-E' |
11863 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11864 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11865 | # default) and relocated if they conflict, which is a slow very memory |
11866 | # consuming and fragmenting process. To avoid this, we pick a random, |
11867 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11868 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11869 | 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' |
11870 | 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' |
11871 | ;; |
11872 | irix5* | irix6*) |
11873 | case $cc_basename in |
11874 | CC*) |
11875 | # SGI C++ |
11876 | 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' |
11877 | |
11878 | # Archives containing C++ object files must be created using |
11879 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11880 | # necessary to make sure instantiated templates are included |
11881 | # in the archive. |
11882 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11883 | ;; |
11884 | *) |
11885 | if test "$GXX" = yes; then |
11886 | if test "$with_gnu_ld" = no; then |
11887 | 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' |
11888 | else |
11889 | 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' |
11890 | fi |
11891 | fi |
11892 | link_all_deplibs_CXX=yes |
11893 | ;; |
11894 | esac |
11895 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11896 | hardcode_libdir_separator_CXX=: |
11897 | ;; |
0fde1ce3 |
11898 | linux* | k*bsd*-gnu) |
d9898ee8 |
11899 | case $cc_basename in |
11900 | KCC*) |
11901 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11902 | |
11903 | # KCC will only create a shared library if the output file |
11904 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11905 | # to its proper name (with version) after linking. |
11906 | 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' |
11907 | 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' |
11908 | # Commands to make compiler produce verbose output that lists |
11909 | # what "hidden" libraries, object files and flags are used when |
11910 | # linking a shared library. |
11911 | # |
11912 | # There doesn't appear to be a way to prevent this compiler from |
11913 | # explicitly linking system object files so we need to strip them |
11914 | # from the output so that they don't get included in the library |
11915 | # dependencies. |
11916 | 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' |
11917 | |
11918 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11919 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11920 | |
11921 | # Archives containing C++ object files must be created using |
11922 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11923 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11924 | ;; |
11925 | icpc*) |
11926 | # Intel C++ |
11927 | with_gnu_ld=yes |
11928 | # version 8.0 and above of icpc choke on multiply defined symbols |
11929 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11930 | # earlier do not add the objects themselves. |
11931 | case `$CC -V 2>&1` in |
11932 | *"Version 7."*) |
11933 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11934 | 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' |
11935 | ;; |
11936 | *) # Version 8.0 or newer |
11937 | tmp_idyn= |
11938 | case $host_cpu in |
11939 | ia64*) tmp_idyn=' -i_dynamic';; |
11940 | esac |
11941 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11942 | 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' |
11943 | ;; |
11944 | esac |
11945 | archive_cmds_need_lc_CXX=no |
11946 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11947 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11948 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11949 | ;; |
11950 | pgCC*) |
11951 | # Portland Group C++ compiler |
11952 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11953 | 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' |
11954 | |
11955 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11956 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11957 | 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' |
11958 | ;; |
11959 | cxx*) |
11960 | # Compaq C++ |
11961 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11962 | 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' |
11963 | |
11964 | runpath_var=LD_RUN_PATH |
11965 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11966 | hardcode_libdir_separator_CXX=: |
11967 | |
11968 | # Commands to make compiler produce verbose output that lists |
11969 | # what "hidden" libraries, object files and flags are used when |
11970 | # linking a shared library. |
11971 | # |
11972 | # There doesn't appear to be a way to prevent this compiler from |
11973 | # explicitly linking system object files so we need to strip them |
11974 | # from the output so that they don't get included in the library |
11975 | # dependencies. |
11976 | 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' |
11977 | ;; |
0fde1ce3 |
11978 | *) |
11979 | case `$CC -V 2>&1 | sed 5q` in |
11980 | *Sun\ C*) |
11981 | # Sun C++ 5.9 |
11982 | no_undefined_flag_CXX=' -zdefs' |
11983 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11984 | 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' |
11985 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11986 | 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' |
11987 | |
11988 | # Not sure whether something based on |
11989 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
11990 | # would be better. |
11991 | output_verbose_link_cmd='echo' |
11992 | |
11993 | # Archives containing C++ object files must be created using |
11994 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11995 | # necessary to make sure instantiated templates are included |
11996 | # in the archive. |
11997 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11998 | ;; |
11999 | esac |
12000 | ;; |
d9898ee8 |
12001 | esac |
12002 | ;; |
12003 | lynxos*) |
12004 | # FIXME: insert proper C++ library support |
12005 | ld_shlibs_CXX=no |
12006 | ;; |
12007 | m88k*) |
12008 | # FIXME: insert proper C++ library support |
12009 | ld_shlibs_CXX=no |
12010 | ;; |
12011 | mvs*) |
12012 | case $cc_basename in |
12013 | cxx*) |
12014 | # FIXME: insert proper C++ library support |
12015 | ld_shlibs_CXX=no |
12016 | ;; |
12017 | *) |
12018 | # FIXME: insert proper C++ library support |
12019 | ld_shlibs_CXX=no |
12020 | ;; |
12021 | esac |
12022 | ;; |
12023 | netbsd*) |
12024 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12025 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
12026 | wlarc= |
12027 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12028 | hardcode_direct_CXX=yes |
12029 | hardcode_shlibpath_var_CXX=no |
12030 | fi |
12031 | # Workaround some broken pre-1.5 toolchains |
12032 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
12033 | ;; |
12034 | openbsd2*) |
12035 | # C++ shared libraries are fairly broken |
12036 | ld_shlibs_CXX=no |
12037 | ;; |
12038 | openbsd*) |
0fde1ce3 |
12039 | if test -f /usr/libexec/ld.so; then |
12040 | hardcode_direct_CXX=yes |
12041 | hardcode_shlibpath_var_CXX=no |
12042 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
12043 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12044 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12045 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
12046 | export_dynamic_flag_spec_CXX='${wl}-E' |
12047 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
12048 | fi |
12049 | output_verbose_link_cmd='echo' |
12050 | else |
12051 | ld_shlibs_CXX=no |
d9898ee8 |
12052 | fi |
d9898ee8 |
12053 | ;; |
12054 | osf3*) |
12055 | case $cc_basename in |
12056 | KCC*) |
12057 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
12058 | |
12059 | # KCC will only create a shared library if the output file |
12060 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
12061 | # to its proper name (with version) after linking. |
12062 | 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' |
12063 | |
12064 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12065 | hardcode_libdir_separator_CXX=: |
12066 | |
12067 | # Archives containing C++ object files must be created using |
12068 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
12069 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
12070 | |
12071 | ;; |
12072 | RCC*) |
12073 | # Rational C++ 2.4.1 |
12074 | # FIXME: insert proper C++ library support |
12075 | ld_shlibs_CXX=no |
12076 | ;; |
12077 | cxx*) |
12078 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
12079 | 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' |
12080 | |
12081 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12082 | hardcode_libdir_separator_CXX=: |
12083 | |
12084 | # Commands to make compiler produce verbose output that lists |
12085 | # what "hidden" libraries, object files and flags are used when |
12086 | # linking a shared library. |
12087 | # |
12088 | # There doesn't appear to be a way to prevent this compiler from |
12089 | # explicitly linking system object files so we need to strip them |
12090 | # from the output so that they don't get included in the library |
12091 | # dependencies. |
12092 | 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' |
12093 | ;; |
12094 | *) |
12095 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12096 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
12097 | 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' |
12098 | |
12099 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12100 | hardcode_libdir_separator_CXX=: |
12101 | |
12102 | # Commands to make compiler produce verbose output that lists |
12103 | # what "hidden" libraries, object files and flags are used when |
12104 | # linking a shared library. |
12105 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
12106 | |
12107 | else |
12108 | # FIXME: insert proper C++ library support |
12109 | ld_shlibs_CXX=no |
12110 | fi |
12111 | ;; |
12112 | esac |
12113 | ;; |
12114 | osf4* | osf5*) |
12115 | case $cc_basename in |
12116 | KCC*) |
12117 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
12118 | |
12119 | # KCC will only create a shared library if the output file |
12120 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
12121 | # to its proper name (with version) after linking. |
12122 | 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' |
12123 | |
12124 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12125 | hardcode_libdir_separator_CXX=: |
12126 | |
12127 | # Archives containing C++ object files must be created using |
12128 | # the KAI C++ compiler. |
12129 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
12130 | ;; |
12131 | RCC*) |
12132 | # Rational C++ 2.4.1 |
12133 | # FIXME: insert proper C++ library support |
12134 | ld_shlibs_CXX=no |
12135 | ;; |
12136 | cxx*) |
12137 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
12138 | 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' |
12139 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
12140 | echo "-hidden">> $lib.exp~ |
12141 | $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~ |
12142 | $rm $lib.exp' |
12143 | |
12144 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
12145 | hardcode_libdir_separator_CXX=: |
12146 | |
12147 | # Commands to make compiler produce verbose output that lists |
12148 | # what "hidden" libraries, object files and flags are used when |
12149 | # linking a shared library. |
12150 | # |
12151 | # There doesn't appear to be a way to prevent this compiler from |
12152 | # explicitly linking system object files so we need to strip them |
12153 | # from the output so that they don't get included in the library |
12154 | # dependencies. |
12155 | 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' |
12156 | ;; |
12157 | *) |
12158 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12159 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
12160 | 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' |
12161 | |
12162 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12163 | hardcode_libdir_separator_CXX=: |
12164 | |
12165 | # Commands to make compiler produce verbose output that lists |
12166 | # what "hidden" libraries, object files and flags are used when |
12167 | # linking a shared library. |
12168 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
12169 | |
12170 | else |
12171 | # FIXME: insert proper C++ library support |
12172 | ld_shlibs_CXX=no |
12173 | fi |
12174 | ;; |
12175 | esac |
12176 | ;; |
12177 | psos*) |
12178 | # FIXME: insert proper C++ library support |
12179 | ld_shlibs_CXX=no |
12180 | ;; |
12181 | sunos4*) |
12182 | case $cc_basename in |
12183 | CC*) |
12184 | # Sun C++ 4.x |
12185 | # FIXME: insert proper C++ library support |
12186 | ld_shlibs_CXX=no |
12187 | ;; |
12188 | lcc*) |
12189 | # Lucid |
12190 | # FIXME: insert proper C++ library support |
12191 | ld_shlibs_CXX=no |
12192 | ;; |
12193 | *) |
12194 | # FIXME: insert proper C++ library support |
12195 | ld_shlibs_CXX=no |
12196 | ;; |
12197 | esac |
12198 | ;; |
12199 | solaris*) |
12200 | case $cc_basename in |
12201 | CC*) |
12202 | # Sun C++ 4.2, 5.x and Centerline C++ |
12203 | archive_cmds_need_lc_CXX=yes |
12204 | no_undefined_flag_CXX=' -zdefs' |
12205 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
12206 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12207 | $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' |
12208 | |
12209 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12210 | hardcode_shlibpath_var_CXX=no |
12211 | case $host_os in |
12212 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
12213 | *) |
0fde1ce3 |
12214 | # The compiler driver will combine and reorder linker options, |
12215 | # but understands `-z linker_flag'. |
d9898ee8 |
12216 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
0fde1ce3 |
12217 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
d9898ee8 |
12218 | ;; |
12219 | esac |
12220 | link_all_deplibs_CXX=yes |
12221 | |
12222 | output_verbose_link_cmd='echo' |
12223 | |
12224 | # Archives containing C++ object files must be created using |
12225 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
12226 | # necessary to make sure instantiated templates are included |
12227 | # in the archive. |
12228 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
12229 | ;; |
12230 | gcx*) |
12231 | # Green Hills C++ Compiler |
12232 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12233 | |
12234 | # The C++ compiler must be used to create the archive. |
12235 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
12236 | ;; |
12237 | *) |
12238 | # GNU C++ compiler with Solaris linker |
12239 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12240 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
12241 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
12242 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12243 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12244 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12245 | |
12246 | # Commands to make compiler produce verbose output that lists |
12247 | # what "hidden" libraries, object files and flags are used when |
12248 | # linking a shared library. |
12249 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12250 | else |
12251 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
12252 | # platform. |
12253 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12254 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12255 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12256 | |
12257 | # Commands to make compiler produce verbose output that lists |
12258 | # what "hidden" libraries, object files and flags are used when |
12259 | # linking a shared library. |
12260 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12261 | fi |
12262 | |
12263 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
0fde1ce3 |
12264 | case $host_os in |
12265 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
12266 | *) |
12267 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
12268 | ;; |
12269 | esac |
d9898ee8 |
12270 | fi |
12271 | ;; |
12272 | esac |
12273 | ;; |
12274 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
12275 | no_undefined_flag_CXX='${wl}-z,text' |
12276 | archive_cmds_need_lc_CXX=no |
12277 | hardcode_shlibpath_var_CXX=no |
12278 | runpath_var='LD_RUN_PATH' |
12279 | |
12280 | case $cc_basename in |
12281 | CC*) |
12282 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12283 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12284 | ;; |
12285 | *) |
12286 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12287 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12288 | ;; |
12289 | esac |
12290 | ;; |
12291 | sysv5* | sco3.2v5* | sco5v6*) |
12292 | # Note: We can NOT use -z defs as we might desire, because we do not |
12293 | # link with -lc, and that would cause any symbols used from libc to |
12294 | # always be unresolved, which means just about no library would |
12295 | # ever link correctly. If we're not using GNU ld we use -z text |
12296 | # though, which does catch some bad symbols but isn't as heavy-handed |
12297 | # as -z defs. |
12298 | # For security reasons, it is highly recommended that you always |
12299 | # use absolute paths for naming shared libraries, and exclude the |
12300 | # DT_RUNPATH tag from executables and libraries. But doing so |
12301 | # requires that you compile everything twice, which is a pain. |
12302 | # So that behaviour is only enabled if SCOABSPATH is set to a |
12303 | # non-empty value in the environment. Most likely only useful for |
12304 | # creating official distributions of packages. |
12305 | # This is a hack until libtool officially supports absolute path |
12306 | # names for shared libraries. |
12307 | no_undefined_flag_CXX='${wl}-z,text' |
12308 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
12309 | archive_cmds_need_lc_CXX=no |
12310 | hardcode_shlibpath_var_CXX=no |
12311 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
12312 | hardcode_libdir_separator_CXX=':' |
12313 | link_all_deplibs_CXX=yes |
12314 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
12315 | runpath_var='LD_RUN_PATH' |
12316 | |
12317 | case $cc_basename in |
12318 | CC*) |
12319 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12320 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12321 | ;; |
12322 | *) |
12323 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12324 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12325 | ;; |
12326 | esac |
12327 | ;; |
12328 | tandem*) |
12329 | case $cc_basename in |
12330 | NCC*) |
12331 | # NonStop-UX NCC 3.20 |
12332 | # FIXME: insert proper C++ library support |
12333 | ld_shlibs_CXX=no |
12334 | ;; |
12335 | *) |
12336 | # FIXME: insert proper C++ library support |
12337 | ld_shlibs_CXX=no |
12338 | ;; |
12339 | esac |
12340 | ;; |
12341 | vxworks*) |
12342 | # FIXME: insert proper C++ library support |
12343 | ld_shlibs_CXX=no |
12344 | ;; |
12345 | *) |
12346 | # FIXME: insert proper C++ library support |
12347 | ld_shlibs_CXX=no |
12348 | ;; |
12349 | esac |
64ff59ba |
12350 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12351 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12352 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12353 | |
12354 | GCC_CXX="$GXX" |
12355 | LD_CXX="$LD" |
12356 | |
12357 | ## CAVEAT EMPTOR: |
12358 | ## There is no encapsulation within the following macros, do not change |
12359 | ## the running order or otherwise move them around unless you know exactly |
12360 | ## what you are doing... |
12361 | |
12362 | cat > conftest.$ac_ext <<EOF |
12363 | class Foo |
12364 | { |
12365 | public: |
12366 | Foo (void) { a = 0; } |
12367 | private: |
12368 | int a; |
12369 | }; |
12370 | EOF |
12371 | |
12372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12373 | (eval $ac_compile) 2>&5 |
12374 | ac_status=$? |
12375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12376 | (exit $ac_status); }; then |
12377 | # Parse the compiler output and extract the necessary |
12378 | # objects, libraries and library flags. |
12379 | |
12380 | # Sentinel used to keep track of whether or not we are before |
12381 | # the conftest object file. |
12382 | pre_test_object_deps_done=no |
12383 | |
12384 | # The `*' in the case matches for architectures that use `case' in |
12385 | # $output_verbose_cmd can trigger glob expansion during the loop |
12386 | # eval without this substitution. |
12387 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
12388 | |
12389 | for p in `eval $output_verbose_link_cmd`; do |
12390 | case $p in |
12391 | |
12392 | -L* | -R* | -l*) |
12393 | # Some compilers place space between "-{L,R}" and the path. |
12394 | # Remove the space. |
12395 | if test $p = "-L" \ |
12396 | || test $p = "-R"; then |
12397 | prev=$p |
12398 | continue |
12399 | else |
12400 | prev= |
12401 | fi |
12402 | |
12403 | if test "$pre_test_object_deps_done" = no; then |
12404 | case $p in |
12405 | -L* | -R*) |
12406 | # Internal compiler library paths should come after those |
12407 | # provided the user. The postdeps already come after the |
12408 | # user supplied libs so there is no need to process them. |
12409 | if test -z "$compiler_lib_search_path_CXX"; then |
12410 | compiler_lib_search_path_CXX="${prev}${p}" |
12411 | else |
12412 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12413 | fi |
12414 | ;; |
12415 | # The "-l" case would never come before the object being |
12416 | # linked, so don't bother handling this case. |
12417 | esac |
12418 | else |
12419 | if test -z "$postdeps_CXX"; then |
12420 | postdeps_CXX="${prev}${p}" |
12421 | else |
12422 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12423 | fi |
12424 | fi |
12425 | ;; |
12426 | |
12427 | *.$objext) |
12428 | # This assumes that the test object file only shows up |
12429 | # once in the compiler output. |
12430 | if test "$p" = "conftest.$objext"; then |
12431 | pre_test_object_deps_done=yes |
12432 | continue |
12433 | fi |
12434 | |
12435 | if test "$pre_test_object_deps_done" = no; then |
12436 | if test -z "$predep_objects_CXX"; then |
12437 | predep_objects_CXX="$p" |
12438 | else |
12439 | predep_objects_CXX="$predep_objects_CXX $p" |
12440 | fi |
12441 | else |
12442 | if test -z "$postdep_objects_CXX"; then |
12443 | postdep_objects_CXX="$p" |
12444 | else |
12445 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12446 | fi |
12447 | fi |
12448 | ;; |
12449 | |
12450 | *) ;; # Ignore the rest. |
12451 | |
12452 | esac |
12453 | done |
12454 | |
12455 | # Clean up. |
12456 | rm -f a.out a.exe |
12457 | else |
12458 | echo "libtool.m4: error: problem compiling CXX test program" |
12459 | fi |
12460 | |
12461 | $rm -f confest.$objext |
12462 | |
12463 | # PORTME: override above test on systems where it is broken |
12464 | case $host_os in |
0fde1ce3 |
12465 | interix[3-9]*) |
d9898ee8 |
12466 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12467 | # hack all around it, let's just trust "g++" to DTRT. |
12468 | predep_objects_CXX= |
12469 | postdep_objects_CXX= |
12470 | postdeps_CXX= |
12471 | ;; |
12472 | |
0fde1ce3 |
12473 | linux*) |
12474 | case `$CC -V 2>&1 | sed 5q` in |
12475 | *Sun\ C*) |
12476 | # Sun C++ 5.9 |
12477 | # |
12478 | # The more standards-conforming stlport4 library is |
12479 | # incompatible with the Cstd library. Avoid specifying |
12480 | # it if it's in CXXFLAGS. Ignore libCrun as |
12481 | # -library=stlport4 depends on it. |
12482 | case " $CXX $CXXFLAGS " in |
12483 | *" -library=stlport4 "*) |
12484 | solaris_use_stlport4=yes |
12485 | ;; |
12486 | esac |
12487 | if test "$solaris_use_stlport4" != yes; then |
12488 | postdeps_CXX='-library=Cstd -library=Crun' |
12489 | fi |
12490 | ;; |
12491 | esac |
12492 | ;; |
12493 | |
d9898ee8 |
12494 | solaris*) |
12495 | case $cc_basename in |
12496 | CC*) |
0fde1ce3 |
12497 | # The more standards-conforming stlport4 library is |
12498 | # incompatible with the Cstd library. Avoid specifying |
12499 | # it if it's in CXXFLAGS. Ignore libCrun as |
12500 | # -library=stlport4 depends on it. |
12501 | case " $CXX $CXXFLAGS " in |
12502 | *" -library=stlport4 "*) |
12503 | solaris_use_stlport4=yes |
12504 | ;; |
12505 | esac |
12506 | |
d9898ee8 |
12507 | # Adding this requires a known-good setup of shared libraries for |
12508 | # Sun compiler versions before 5.6, else PIC objects from an old |
12509 | # archive will be linked into the output, leading to subtle bugs. |
0fde1ce3 |
12510 | if test "$solaris_use_stlport4" != yes; then |
12511 | postdeps_CXX='-library=Cstd -library=Crun' |
12512 | fi |
d9898ee8 |
12513 | ;; |
12514 | esac |
12515 | ;; |
12516 | esac |
12517 | |
12518 | |
12519 | case " $postdeps_CXX " in |
12520 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12521 | esac |
12522 | |
12523 | lt_prog_compiler_wl_CXX= |
12524 | lt_prog_compiler_pic_CXX= |
12525 | lt_prog_compiler_static_CXX= |
12526 | |
64ff59ba |
12527 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12528 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12529 | |
12530 | # C++ specific cases for pic, static, wl, etc. |
12531 | if test "$GXX" = yes; then |
12532 | lt_prog_compiler_wl_CXX='-Wl,' |
12533 | lt_prog_compiler_static_CXX='-static' |
12534 | |
12535 | case $host_os in |
12536 | aix*) |
12537 | # All AIX code is PIC. |
12538 | if test "$host_cpu" = ia64; then |
12539 | # AIX 5 now supports IA64 processor |
12540 | lt_prog_compiler_static_CXX='-Bstatic' |
12541 | fi |
12542 | ;; |
12543 | amigaos*) |
12544 | # FIXME: we need at least 68020 code to build shared libraries, but |
12545 | # adding the `-m68020' flag to GCC prevents building anything better, |
12546 | # like `-m68040'. |
12547 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12548 | ;; |
0fde1ce3 |
12549 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
12550 | # PIC is the default for these OSes. |
12551 | ;; |
0fde1ce3 |
12552 | mingw* | cygwin* | os2* | pw32*) |
d9898ee8 |
12553 | # This hack is so that the source file can tell whether it is being |
12554 | # built for inclusion in a dll (and should export symbols for example). |
0fde1ce3 |
12555 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
12556 | # (--disable-auto-import) libraries |
d9898ee8 |
12557 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12558 | ;; |
12559 | darwin* | rhapsody*) |
12560 | # PIC is the default on this platform |
12561 | # Common symbols not allowed in MH_DYLIB files |
12562 | lt_prog_compiler_pic_CXX='-fno-common' |
12563 | ;; |
12564 | *djgpp*) |
12565 | # DJGPP does not support shared libraries at all |
12566 | lt_prog_compiler_pic_CXX= |
12567 | ;; |
0fde1ce3 |
12568 | interix[3-9]*) |
d9898ee8 |
12569 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12570 | # Instead, we relocate shared libraries at runtime. |
12571 | ;; |
12572 | sysv4*MP*) |
12573 | if test -d /usr/nec; then |
12574 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12575 | fi |
12576 | ;; |
12577 | hpux*) |
12578 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12579 | # not for PA HP-UX. |
12580 | case $host_cpu in |
12581 | hppa*64*|ia64*) |
12582 | ;; |
12583 | *) |
12584 | lt_prog_compiler_pic_CXX='-fPIC' |
12585 | ;; |
12586 | esac |
12587 | ;; |
12588 | *) |
12589 | lt_prog_compiler_pic_CXX='-fPIC' |
12590 | ;; |
12591 | esac |
12592 | else |
12593 | case $host_os in |
12594 | aix4* | aix5*) |
12595 | # All AIX code is PIC. |
12596 | if test "$host_cpu" = ia64; then |
12597 | # AIX 5 now supports IA64 processor |
12598 | lt_prog_compiler_static_CXX='-Bstatic' |
12599 | else |
12600 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12601 | fi |
12602 | ;; |
12603 | chorus*) |
12604 | case $cc_basename in |
12605 | cxch68*) |
12606 | # Green Hills C++ Compiler |
12607 | # _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" |
12608 | ;; |
12609 | esac |
12610 | ;; |
12611 | darwin*) |
12612 | # PIC is the default on this platform |
12613 | # Common symbols not allowed in MH_DYLIB files |
12614 | case $cc_basename in |
12615 | xlc*) |
12616 | lt_prog_compiler_pic_CXX='-qnocommon' |
12617 | lt_prog_compiler_wl_CXX='-Wl,' |
12618 | ;; |
12619 | esac |
12620 | ;; |
12621 | dgux*) |
12622 | case $cc_basename in |
12623 | ec++*) |
12624 | lt_prog_compiler_pic_CXX='-KPIC' |
12625 | ;; |
12626 | ghcx*) |
12627 | # Green Hills C++ Compiler |
12628 | lt_prog_compiler_pic_CXX='-pic' |
12629 | ;; |
12630 | *) |
12631 | ;; |
12632 | esac |
12633 | ;; |
0fde1ce3 |
12634 | freebsd* | dragonfly*) |
d9898ee8 |
12635 | # FreeBSD uses GNU C++ |
12636 | ;; |
12637 | hpux9* | hpux10* | hpux11*) |
12638 | case $cc_basename in |
12639 | CC*) |
12640 | lt_prog_compiler_wl_CXX='-Wl,' |
12641 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12642 | if test "$host_cpu" != ia64; then |
12643 | lt_prog_compiler_pic_CXX='+Z' |
12644 | fi |
12645 | ;; |
12646 | aCC*) |
12647 | lt_prog_compiler_wl_CXX='-Wl,' |
12648 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12649 | case $host_cpu in |
12650 | hppa*64*|ia64*) |
12651 | # +Z the default |
12652 | ;; |
12653 | *) |
12654 | lt_prog_compiler_pic_CXX='+Z' |
12655 | ;; |
12656 | esac |
12657 | ;; |
12658 | *) |
12659 | ;; |
12660 | esac |
12661 | ;; |
12662 | interix*) |
12663 | # This is c89, which is MS Visual C++ (no shared libs) |
12664 | # Anyone wants to do a port? |
12665 | ;; |
12666 | irix5* | irix6* | nonstopux*) |
12667 | case $cc_basename in |
12668 | CC*) |
12669 | lt_prog_compiler_wl_CXX='-Wl,' |
12670 | lt_prog_compiler_static_CXX='-non_shared' |
12671 | # CC pic flag -KPIC is the default. |
12672 | ;; |
12673 | *) |
12674 | ;; |
12675 | esac |
12676 | ;; |
0fde1ce3 |
12677 | linux* | k*bsd*-gnu) |
d9898ee8 |
12678 | case $cc_basename in |
12679 | KCC*) |
12680 | # KAI C++ Compiler |
12681 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12682 | lt_prog_compiler_pic_CXX='-fPIC' |
12683 | ;; |
12684 | icpc* | ecpc*) |
12685 | # Intel C++ |
12686 | lt_prog_compiler_wl_CXX='-Wl,' |
12687 | lt_prog_compiler_pic_CXX='-KPIC' |
12688 | lt_prog_compiler_static_CXX='-static' |
12689 | ;; |
12690 | pgCC*) |
12691 | # Portland Group C++ compiler. |
12692 | lt_prog_compiler_wl_CXX='-Wl,' |
12693 | lt_prog_compiler_pic_CXX='-fpic' |
12694 | lt_prog_compiler_static_CXX='-Bstatic' |
12695 | ;; |
12696 | cxx*) |
12697 | # Compaq C++ |
12698 | # Make sure the PIC flag is empty. It appears that all Alpha |
12699 | # Linux and Compaq Tru64 Unix objects are PIC. |
12700 | lt_prog_compiler_pic_CXX= |
12701 | lt_prog_compiler_static_CXX='-non_shared' |
12702 | ;; |
12703 | *) |
0fde1ce3 |
12704 | case `$CC -V 2>&1 | sed 5q` in |
12705 | *Sun\ C*) |
12706 | # Sun C++ 5.9 |
12707 | lt_prog_compiler_pic_CXX='-KPIC' |
12708 | lt_prog_compiler_static_CXX='-Bstatic' |
12709 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12710 | ;; |
12711 | esac |
d9898ee8 |
12712 | ;; |
12713 | esac |
12714 | ;; |
12715 | lynxos*) |
12716 | ;; |
12717 | m88k*) |
12718 | ;; |
12719 | mvs*) |
12720 | case $cc_basename in |
12721 | cxx*) |
12722 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12723 | ;; |
12724 | *) |
12725 | ;; |
12726 | esac |
12727 | ;; |
12728 | netbsd*) |
12729 | ;; |
12730 | osf3* | osf4* | osf5*) |
12731 | case $cc_basename in |
12732 | KCC*) |
12733 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12734 | ;; |
12735 | RCC*) |
12736 | # Rational C++ 2.4.1 |
12737 | lt_prog_compiler_pic_CXX='-pic' |
12738 | ;; |
12739 | cxx*) |
12740 | # Digital/Compaq C++ |
12741 | lt_prog_compiler_wl_CXX='-Wl,' |
12742 | # Make sure the PIC flag is empty. It appears that all Alpha |
12743 | # Linux and Compaq Tru64 Unix objects are PIC. |
12744 | lt_prog_compiler_pic_CXX= |
12745 | lt_prog_compiler_static_CXX='-non_shared' |
12746 | ;; |
12747 | *) |
12748 | ;; |
12749 | esac |
12750 | ;; |
12751 | psos*) |
12752 | ;; |
12753 | solaris*) |
12754 | case $cc_basename in |
12755 | CC*) |
12756 | # Sun C++ 4.2, 5.x and Centerline C++ |
12757 | lt_prog_compiler_pic_CXX='-KPIC' |
12758 | lt_prog_compiler_static_CXX='-Bstatic' |
12759 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12760 | ;; |
12761 | gcx*) |
12762 | # Green Hills C++ Compiler |
12763 | lt_prog_compiler_pic_CXX='-PIC' |
12764 | ;; |
12765 | *) |
12766 | ;; |
12767 | esac |
12768 | ;; |
12769 | sunos4*) |
12770 | case $cc_basename in |
12771 | CC*) |
12772 | # Sun C++ 4.x |
12773 | lt_prog_compiler_pic_CXX='-pic' |
12774 | lt_prog_compiler_static_CXX='-Bstatic' |
12775 | ;; |
12776 | lcc*) |
12777 | # Lucid |
12778 | lt_prog_compiler_pic_CXX='-pic' |
12779 | ;; |
12780 | *) |
12781 | ;; |
12782 | esac |
12783 | ;; |
12784 | tandem*) |
12785 | case $cc_basename in |
12786 | NCC*) |
12787 | # NonStop-UX NCC 3.20 |
12788 | lt_prog_compiler_pic_CXX='-KPIC' |
12789 | ;; |
12790 | *) |
12791 | ;; |
12792 | esac |
12793 | ;; |
12794 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12795 | case $cc_basename in |
12796 | CC*) |
12797 | lt_prog_compiler_wl_CXX='-Wl,' |
12798 | lt_prog_compiler_pic_CXX='-KPIC' |
12799 | lt_prog_compiler_static_CXX='-Bstatic' |
12800 | ;; |
12801 | esac |
12802 | ;; |
12803 | vxworks*) |
12804 | ;; |
12805 | *) |
12806 | lt_prog_compiler_can_build_shared_CXX=no |
12807 | ;; |
12808 | esac |
12809 | fi |
12810 | |
64ff59ba |
12811 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12812 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12813 | |
12814 | # |
12815 | # Check to make sure the PIC flag actually works. |
12816 | # |
12817 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12818 | |
64ff59ba |
12819 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12820 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12821 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12823 | else |
12824 | lt_prog_compiler_pic_works_CXX=no |
12825 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
12826 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12827 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12828 | # Insert the option either (1) after the last *FLAGS variable, or |
12829 | # (2) before a word containing "conftest.", or (3) at the end. |
12830 | # Note that $ac_compile itself does not contain backslashes and begins |
12831 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12832 | # The option is referenced via a variable to avoid confusing sed. |
12833 | lt_compile=`echo "$ac_compile" | $SED \ |
12834 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12835 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12836 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
12837 | (eval echo "\"\$as_me:12837: $lt_compile\"" >&5) |
d9898ee8 |
12838 | (eval "$lt_compile" 2>conftest.err) |
12839 | ac_status=$? |
12840 | cat conftest.err >&5 |
0fde1ce3 |
12841 | echo "$as_me:12841: \$? = $ac_status" >&5 |
d9898ee8 |
12842 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12843 | # The compiler can only warn and ignore the option if not recognized |
12844 | # So say no if there are warnings other than the usual output. |
12845 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12846 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12847 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12848 | lt_prog_compiler_pic_works_CXX=yes |
12849 | fi |
12850 | fi |
12851 | $rm conftest* |
12852 | |
12853 | fi |
64ff59ba |
12854 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12855 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12856 | |
12857 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12858 | case $lt_prog_compiler_pic_CXX in |
12859 | "" | " "*) ;; |
12860 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12861 | esac |
12862 | else |
12863 | lt_prog_compiler_pic_CXX= |
12864 | lt_prog_compiler_can_build_shared_CXX=no |
12865 | fi |
12866 | |
12867 | fi |
12868 | case $host_os in |
12869 | # For platforms which do not support PIC, -DPIC is meaningless: |
12870 | *djgpp*) |
12871 | lt_prog_compiler_pic_CXX= |
12872 | ;; |
12873 | *) |
12874 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12875 | ;; |
12876 | esac |
12877 | |
12878 | # |
12879 | # Check to make sure the static flag actually works. |
12880 | # |
12881 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
64ff59ba |
12882 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12883 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12884 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12886 | else |
12887 | lt_prog_compiler_static_works_CXX=no |
12888 | save_LDFLAGS="$LDFLAGS" |
12889 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
0fde1ce3 |
12890 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
12891 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12892 | # The linker can only warn and ignore the option if not recognized |
12893 | # So say no if there are warnings |
12894 | if test -s conftest.err; then |
12895 | # Append any errors to the config.log. |
12896 | cat conftest.err 1>&5 |
12897 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12898 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12899 | if diff conftest.exp conftest.er2 >/dev/null; then |
12900 | lt_prog_compiler_static_works_CXX=yes |
12901 | fi |
12902 | else |
12903 | lt_prog_compiler_static_works_CXX=yes |
12904 | fi |
12905 | fi |
12906 | $rm conftest* |
12907 | LDFLAGS="$save_LDFLAGS" |
12908 | |
12909 | fi |
64ff59ba |
12910 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12911 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12912 | |
12913 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12914 | : |
12915 | else |
12916 | lt_prog_compiler_static_CXX= |
12917 | fi |
12918 | |
12919 | |
64ff59ba |
12920 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12921 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12922 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12924 | else |
12925 | lt_cv_prog_compiler_c_o_CXX=no |
12926 | $rm -r conftest 2>/dev/null |
12927 | mkdir conftest |
12928 | cd conftest |
12929 | mkdir out |
0fde1ce3 |
12930 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12931 | |
12932 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12933 | # Insert the option either (1) after the last *FLAGS variable, or |
12934 | # (2) before a word containing "conftest.", or (3) at the end. |
12935 | # Note that $ac_compile itself does not contain backslashes and begins |
12936 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12937 | lt_compile=`echo "$ac_compile" | $SED \ |
12938 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12939 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12940 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
12941 | (eval echo "\"\$as_me:12941: $lt_compile\"" >&5) |
d9898ee8 |
12942 | (eval "$lt_compile" 2>out/conftest.err) |
12943 | ac_status=$? |
12944 | cat out/conftest.err >&5 |
0fde1ce3 |
12945 | echo "$as_me:12945: \$? = $ac_status" >&5 |
d9898ee8 |
12946 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12947 | then |
12948 | # The compiler can only warn and ignore the option if not recognized |
12949 | # So say no if there are warnings |
12950 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12951 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12952 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12953 | lt_cv_prog_compiler_c_o_CXX=yes |
12954 | fi |
12955 | fi |
12956 | chmod u+w . 2>&5 |
12957 | $rm conftest* |
12958 | # SGI C++ compiler will create directory out/ii_files/ for |
12959 | # template instantiation |
12960 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12961 | $rm out/* && rmdir out |
12962 | cd .. |
12963 | rmdir conftest |
12964 | $rm conftest* |
12965 | |
12966 | fi |
64ff59ba |
12967 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12968 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12969 | |
12970 | |
12971 | hard_links="nottested" |
12972 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12973 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
12974 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12975 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12976 | hard_links=yes |
12977 | $rm conftest* |
12978 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12979 | touch conftest.a |
12980 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12981 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
12982 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12983 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12984 | if test "$hard_links" = no; then |
12985 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12986 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12987 | need_locks=warn |
12988 | fi |
12989 | else |
12990 | need_locks=no |
12991 | fi |
12992 | |
64ff59ba |
12993 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12994 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12995 | |
12996 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12997 | case $host_os in |
12998 | aix4* | aix5*) |
12999 | # If we're using GNU nm, then we don't want the "-C" option. |
13000 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
13001 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13002 | 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' |
13003 | else |
13004 | 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' |
13005 | fi |
13006 | ;; |
13007 | pw32*) |
13008 | export_symbols_cmds_CXX="$ltdll_cmds" |
13009 | ;; |
13010 | cygwin* | mingw*) |
0fde1ce3 |
13011 | 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' |
d9898ee8 |
13012 | ;; |
13013 | *) |
13014 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13015 | ;; |
13016 | esac |
13017 | |
64ff59ba |
13018 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
13019 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
13020 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
13021 | |
13022 | # |
13023 | # Do we need to explicitly link libc? |
13024 | # |
13025 | case "x$archive_cmds_need_lc_CXX" in |
13026 | x|xyes) |
13027 | # Assume -lc should be added |
13028 | archive_cmds_need_lc_CXX=yes |
13029 | |
13030 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
13031 | case $archive_cmds_CXX in |
13032 | *'~'*) |
13033 | # FIXME: we may have to deal with multi-command sequences. |
13034 | ;; |
13035 | '$CC '*) |
13036 | # Test whether the compiler implicitly links with -lc since on some |
13037 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
13038 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
13039 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
13040 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
13041 | $rm conftest* |
0fde1ce3 |
13042 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
13043 | |
13044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13045 | (eval $ac_compile) 2>&5 |
13046 | ac_status=$? |
13047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13048 | (exit $ac_status); } 2>conftest.err; then |
13049 | soname=conftest |
13050 | lib=conftest |
13051 | libobjs=conftest.$ac_objext |
13052 | deplibs= |
13053 | wl=$lt_prog_compiler_wl_CXX |
13054 | pic_flag=$lt_prog_compiler_pic_CXX |
13055 | compiler_flags=-v |
13056 | linker_flags=-v |
13057 | verstring= |
13058 | output_objdir=. |
13059 | libname=conftest |
13060 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
13061 | allow_undefined_flag_CXX= |
13062 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
13063 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
13064 | ac_status=$? |
13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13066 | (exit $ac_status); } |
13067 | then |
13068 | archive_cmds_need_lc_CXX=no |
13069 | else |
13070 | archive_cmds_need_lc_CXX=yes |
13071 | fi |
13072 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
13073 | else |
13074 | cat conftest.err 1>&5 |
13075 | fi |
13076 | $rm conftest* |
64ff59ba |
13077 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
13078 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
13079 | ;; |
13080 | esac |
13081 | fi |
13082 | ;; |
13083 | esac |
13084 | |
64ff59ba |
13085 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
13086 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
13087 | library_names_spec= |
13088 | libname_spec='lib$name' |
13089 | soname_spec= |
13090 | shrext_cmds=".so" |
13091 | postinstall_cmds= |
13092 | postuninstall_cmds= |
13093 | finish_cmds= |
13094 | finish_eval= |
13095 | shlibpath_var= |
13096 | shlibpath_overrides_runpath=unknown |
13097 | version_type=none |
13098 | dynamic_linker="$host_os ld.so" |
13099 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
0fde1ce3 |
13100 | |
d9898ee8 |
13101 | need_lib_prefix=unknown |
13102 | hardcode_into_libs=no |
13103 | |
13104 | # when you set need_version to no, make sure it does not cause -set_version |
13105 | # flags to be left without arguments |
13106 | need_version=unknown |
13107 | |
13108 | case $host_os in |
13109 | aix3*) |
13110 | version_type=linux |
13111 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
13112 | shlibpath_var=LIBPATH |
13113 | |
13114 | # AIX 3 has no versioning support, so we append a major version to the name. |
13115 | soname_spec='${libname}${release}${shared_ext}$major' |
13116 | ;; |
13117 | |
13118 | aix4* | aix5*) |
13119 | version_type=linux |
13120 | need_lib_prefix=no |
13121 | need_version=no |
13122 | hardcode_into_libs=yes |
13123 | if test "$host_cpu" = ia64; then |
13124 | # AIX 5 supports IA64 |
13125 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
13126 | shlibpath_var=LD_LIBRARY_PATH |
13127 | else |
13128 | # With GCC up to 2.95.x, collect2 would create an import file |
13129 | # for dependence libraries. The import file would start with |
13130 | # the line `#! .'. This would cause the generated library to |
13131 | # depend on `.', always an invalid library. This was fixed in |
13132 | # development snapshots of GCC prior to 3.0. |
13133 | case $host_os in |
13134 | aix4 | aix4.[01] | aix4.[01].*) |
13135 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
13136 | echo ' yes ' |
13137 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
13138 | : |
13139 | else |
13140 | can_build_shared=no |
13141 | fi |
13142 | ;; |
13143 | esac |
13144 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
13145 | # soname into executable. Probably we can add versioning support to |
13146 | # collect2, so additional links can be useful in future. |
13147 | if test "$aix_use_runtimelinking" = yes; then |
13148 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
13149 | # instead of lib<name>.a to let people know that these are not |
13150 | # typical AIX shared libraries. |
13151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13152 | else |
13153 | # We preserve .a as extension for shared libraries through AIX4.2 |
13154 | # and later when we are not doing run time linking. |
13155 | library_names_spec='${libname}${release}.a $libname.a' |
13156 | soname_spec='${libname}${release}${shared_ext}$major' |
13157 | fi |
13158 | shlibpath_var=LIBPATH |
13159 | fi |
13160 | ;; |
13161 | |
13162 | amigaos*) |
13163 | library_names_spec='$libname.ixlibrary $libname.a' |
13164 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
13165 | 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' |
13166 | ;; |
13167 | |
13168 | beos*) |
13169 | library_names_spec='${libname}${shared_ext}' |
13170 | dynamic_linker="$host_os ld.so" |
13171 | shlibpath_var=LIBRARY_PATH |
13172 | ;; |
13173 | |
13174 | bsdi[45]*) |
13175 | version_type=linux |
13176 | need_version=no |
13177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13178 | soname_spec='${libname}${release}${shared_ext}$major' |
13179 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
13180 | shlibpath_var=LD_LIBRARY_PATH |
13181 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
13182 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
13183 | # the default ld.so.conf also contains /usr/contrib/lib and |
13184 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
13185 | # libtool to hard-code these into programs |
13186 | ;; |
13187 | |
13188 | cygwin* | mingw* | pw32*) |
13189 | version_type=windows |
13190 | shrext_cmds=".dll" |
13191 | need_version=no |
13192 | need_lib_prefix=no |
13193 | |
13194 | case $GCC,$host_os in |
13195 | yes,cygwin* | yes,mingw* | yes,pw32*) |
13196 | library_names_spec='$libname.dll.a' |
13197 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
13198 | postinstall_cmds='base_file=`basename \${file}`~ |
13199 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
13200 | dldir=$destdir/`dirname \$dlpath`~ |
13201 | test -d \$dldir || mkdir -p \$dldir~ |
13202 | $install_prog $dir/$dlname \$dldir/$dlname~ |
13203 | chmod a+x \$dldir/$dlname' |
13204 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
13205 | dlpath=$dir/\$dldll~ |
13206 | $rm \$dlpath' |
13207 | shlibpath_overrides_runpath=yes |
13208 | |
13209 | case $host_os in |
13210 | cygwin*) |
13211 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
13212 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
13213 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
13214 | ;; |
13215 | mingw*) |
13216 | # MinGW DLLs use traditional 'lib' prefix |
13217 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
13218 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
13219 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
13220 | # It is most probably a Windows format PATH printed by |
13221 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
13222 | # path with ; separators, and with drive letters. We can handle the |
13223 | # drive letters (cygwin fileutils understands them), so leave them, |
13224 | # especially as we might pass files found there to a mingw objdump, |
13225 | # which wouldn't understand a cygwinified path. Ahh. |
13226 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
13227 | else |
13228 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
13229 | fi |
13230 | ;; |
13231 | pw32*) |
13232 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
13233 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
13234 | ;; |
13235 | esac |
13236 | ;; |
13237 | |
13238 | *) |
13239 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
13240 | ;; |
13241 | esac |
13242 | dynamic_linker='Win32 ld.exe' |
13243 | # FIXME: first we should search . and the directory the executable is in |
13244 | shlibpath_var=PATH |
13245 | ;; |
13246 | |
13247 | darwin* | rhapsody*) |
13248 | dynamic_linker="$host_os dyld" |
13249 | version_type=darwin |
13250 | need_lib_prefix=no |
13251 | need_version=no |
13252 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
13253 | soname_spec='${libname}${release}${major}$shared_ext' |
13254 | shlibpath_overrides_runpath=yes |
13255 | shlibpath_var=DYLD_LIBRARY_PATH |
13256 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
0fde1ce3 |
13257 | |
d9898ee8 |
13258 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13259 | ;; |
13260 | |
13261 | dgux*) |
13262 | version_type=linux |
13263 | need_lib_prefix=no |
13264 | need_version=no |
13265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
13266 | soname_spec='${libname}${release}${shared_ext}$major' |
13267 | shlibpath_var=LD_LIBRARY_PATH |
13268 | ;; |
13269 | |
13270 | freebsd1*) |
13271 | dynamic_linker=no |
13272 | ;; |
13273 | |
d9898ee8 |
13274 | freebsd* | dragonfly*) |
13275 | # DragonFly does not have aout. When/if they implement a new |
13276 | # versioning mechanism, adjust this. |
13277 | if test -x /usr/bin/objformat; then |
13278 | objformat=`/usr/bin/objformat` |
13279 | else |
13280 | case $host_os in |
13281 | freebsd[123]*) objformat=aout ;; |
13282 | *) objformat=elf ;; |
13283 | esac |
13284 | fi |
13285 | version_type=freebsd-$objformat |
13286 | case $version_type in |
13287 | freebsd-elf*) |
13288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13289 | need_version=no |
13290 | need_lib_prefix=no |
13291 | ;; |
13292 | freebsd-*) |
13293 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
13294 | need_version=yes |
13295 | ;; |
13296 | esac |
13297 | shlibpath_var=LD_LIBRARY_PATH |
13298 | case $host_os in |
13299 | freebsd2*) |
13300 | shlibpath_overrides_runpath=yes |
13301 | ;; |
13302 | freebsd3.[01]* | freebsdelf3.[01]*) |
13303 | shlibpath_overrides_runpath=yes |
13304 | hardcode_into_libs=yes |
13305 | ;; |
13306 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
13307 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
13308 | shlibpath_overrides_runpath=no |
13309 | hardcode_into_libs=yes |
13310 | ;; |
0fde1ce3 |
13311 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
13312 | shlibpath_overrides_runpath=yes |
13313 | hardcode_into_libs=yes |
13314 | ;; |
13315 | esac |
13316 | ;; |
13317 | |
13318 | gnu*) |
13319 | version_type=linux |
13320 | need_lib_prefix=no |
13321 | need_version=no |
13322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
13323 | soname_spec='${libname}${release}${shared_ext}$major' |
13324 | shlibpath_var=LD_LIBRARY_PATH |
13325 | hardcode_into_libs=yes |
13326 | ;; |
13327 | |
13328 | hpux9* | hpux10* | hpux11*) |
13329 | # Give a soname corresponding to the major version so that dld.sl refuses to |
13330 | # link against other versions. |
13331 | version_type=sunos |
13332 | need_lib_prefix=no |
13333 | need_version=no |
13334 | case $host_cpu in |
13335 | ia64*) |
13336 | shrext_cmds='.so' |
13337 | hardcode_into_libs=yes |
13338 | dynamic_linker="$host_os dld.so" |
13339 | shlibpath_var=LD_LIBRARY_PATH |
13340 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13342 | soname_spec='${libname}${release}${shared_ext}$major' |
13343 | if test "X$HPUX_IA64_MODE" = X32; then |
13344 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
13345 | else |
13346 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
13347 | fi |
13348 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13349 | ;; |
13350 | hppa*64*) |
13351 | shrext_cmds='.sl' |
13352 | hardcode_into_libs=yes |
13353 | dynamic_linker="$host_os dld.sl" |
13354 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
13355 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13357 | soname_spec='${libname}${release}${shared_ext}$major' |
13358 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
13359 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13360 | ;; |
13361 | *) |
13362 | shrext_cmds='.sl' |
13363 | dynamic_linker="$host_os dld.sl" |
13364 | shlibpath_var=SHLIB_PATH |
13365 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
13366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13367 | soname_spec='${libname}${release}${shared_ext}$major' |
13368 | ;; |
13369 | esac |
13370 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
13371 | postinstall_cmds='chmod 555 $lib' |
13372 | ;; |
13373 | |
0fde1ce3 |
13374 | interix[3-9]*) |
d9898ee8 |
13375 | version_type=linux |
13376 | need_lib_prefix=no |
13377 | need_version=no |
13378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13379 | soname_spec='${libname}${release}${shared_ext}$major' |
13380 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
13381 | shlibpath_var=LD_LIBRARY_PATH |
13382 | shlibpath_overrides_runpath=no |
13383 | hardcode_into_libs=yes |
13384 | ;; |
13385 | |
13386 | irix5* | irix6* | nonstopux*) |
13387 | case $host_os in |
13388 | nonstopux*) version_type=nonstopux ;; |
13389 | *) |
13390 | if test "$lt_cv_prog_gnu_ld" = yes; then |
13391 | version_type=linux |
13392 | else |
13393 | version_type=irix |
13394 | fi ;; |
13395 | esac |
13396 | need_lib_prefix=no |
13397 | need_version=no |
13398 | soname_spec='${libname}${release}${shared_ext}$major' |
13399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13400 | case $host_os in |
13401 | irix5* | nonstopux*) |
13402 | libsuff= shlibsuff= |
13403 | ;; |
13404 | *) |
13405 | case $LD in # libtool.m4 will add one of these switches to LD |
13406 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13407 | libsuff= shlibsuff= libmagic=32-bit;; |
13408 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13409 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13410 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13411 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13412 | *) libsuff= shlibsuff= libmagic=never-match;; |
13413 | esac |
13414 | ;; |
13415 | esac |
13416 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13417 | shlibpath_overrides_runpath=no |
13418 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13419 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13420 | hardcode_into_libs=yes |
13421 | ;; |
13422 | |
13423 | # No shared lib support for Linux oldld, aout, or coff. |
13424 | linux*oldld* | linux*aout* | linux*coff*) |
13425 | dynamic_linker=no |
13426 | ;; |
13427 | |
13428 | # This must be Linux ELF. |
0fde1ce3 |
13429 | linux* | k*bsd*-gnu) |
d9898ee8 |
13430 | version_type=linux |
13431 | need_lib_prefix=no |
13432 | need_version=no |
13433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13434 | soname_spec='${libname}${release}${shared_ext}$major' |
13435 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13436 | shlibpath_var=LD_LIBRARY_PATH |
13437 | shlibpath_overrides_runpath=no |
13438 | # This implies no fast_install, which is unacceptable. |
13439 | # Some rework will be needed to allow for fast_install |
13440 | # before this can be enabled. |
13441 | hardcode_into_libs=yes |
0fde1ce3 |
13442 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13443 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
13444 | |
13445 | # Append ld.so.conf contents to the search path |
13446 | if test -f /etc/ld.so.conf; then |
0fde1ce3 |
13447 | 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' ' '` |
13448 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
13449 | fi |
13450 | |
13451 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13452 | # powerpc, because MkLinux only supported shared libraries with the |
13453 | # GNU dynamic linker. Since this was broken with cross compilers, |
13454 | # most powerpc-linux boxes support dynamic linking these days and |
13455 | # people can always --disable-shared, the test was removed, and we |
13456 | # assume the GNU/Linux dynamic linker is in use. |
13457 | dynamic_linker='GNU/Linux ld.so' |
13458 | ;; |
13459 | |
d9898ee8 |
13460 | netbsd*) |
13461 | version_type=sunos |
13462 | need_lib_prefix=no |
13463 | need_version=no |
13464 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13466 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13467 | dynamic_linker='NetBSD (a.out) ld.so' |
13468 | else |
13469 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13470 | soname_spec='${libname}${release}${shared_ext}$major' |
13471 | dynamic_linker='NetBSD ld.elf_so' |
13472 | fi |
13473 | shlibpath_var=LD_LIBRARY_PATH |
13474 | shlibpath_overrides_runpath=yes |
13475 | hardcode_into_libs=yes |
13476 | ;; |
13477 | |
13478 | newsos6) |
13479 | version_type=linux |
13480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13481 | shlibpath_var=LD_LIBRARY_PATH |
13482 | shlibpath_overrides_runpath=yes |
13483 | ;; |
13484 | |
13485 | nto-qnx*) |
13486 | version_type=linux |
13487 | need_lib_prefix=no |
13488 | need_version=no |
13489 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13490 | soname_spec='${libname}${release}${shared_ext}$major' |
13491 | shlibpath_var=LD_LIBRARY_PATH |
13492 | shlibpath_overrides_runpath=yes |
13493 | ;; |
13494 | |
13495 | openbsd*) |
13496 | version_type=sunos |
13497 | sys_lib_dlsearch_path_spec="/usr/lib" |
13498 | need_lib_prefix=no |
13499 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13500 | case $host_os in |
13501 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13502 | *) need_version=no ;; |
13503 | esac |
13504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13505 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13506 | shlibpath_var=LD_LIBRARY_PATH |
13507 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13508 | case $host_os in |
13509 | openbsd2.[89] | openbsd2.[89].*) |
13510 | shlibpath_overrides_runpath=no |
13511 | ;; |
13512 | *) |
13513 | shlibpath_overrides_runpath=yes |
13514 | ;; |
13515 | esac |
13516 | else |
13517 | shlibpath_overrides_runpath=yes |
13518 | fi |
13519 | ;; |
13520 | |
13521 | os2*) |
13522 | libname_spec='$name' |
13523 | shrext_cmds=".dll" |
13524 | need_lib_prefix=no |
13525 | library_names_spec='$libname${shared_ext} $libname.a' |
13526 | dynamic_linker='OS/2 ld.exe' |
13527 | shlibpath_var=LIBPATH |
13528 | ;; |
13529 | |
13530 | osf3* | osf4* | osf5*) |
13531 | version_type=osf |
13532 | need_lib_prefix=no |
13533 | need_version=no |
13534 | soname_spec='${libname}${release}${shared_ext}$major' |
13535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13536 | shlibpath_var=LD_LIBRARY_PATH |
13537 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13538 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13539 | ;; |
13540 | |
0fde1ce3 |
13541 | rdos*) |
13542 | dynamic_linker=no |
13543 | ;; |
13544 | |
d9898ee8 |
13545 | solaris*) |
13546 | version_type=linux |
13547 | need_lib_prefix=no |
13548 | need_version=no |
13549 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13550 | soname_spec='${libname}${release}${shared_ext}$major' |
13551 | shlibpath_var=LD_LIBRARY_PATH |
13552 | shlibpath_overrides_runpath=yes |
13553 | hardcode_into_libs=yes |
13554 | # ldd complains unless libraries are executable |
13555 | postinstall_cmds='chmod +x $lib' |
13556 | ;; |
13557 | |
13558 | sunos4*) |
13559 | version_type=sunos |
13560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13561 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13562 | shlibpath_var=LD_LIBRARY_PATH |
13563 | shlibpath_overrides_runpath=yes |
13564 | if test "$with_gnu_ld" = yes; then |
13565 | need_lib_prefix=no |
13566 | fi |
13567 | need_version=yes |
13568 | ;; |
13569 | |
13570 | sysv4 | sysv4.3*) |
13571 | version_type=linux |
13572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13573 | soname_spec='${libname}${release}${shared_ext}$major' |
13574 | shlibpath_var=LD_LIBRARY_PATH |
13575 | case $host_vendor in |
13576 | sni) |
13577 | shlibpath_overrides_runpath=no |
13578 | need_lib_prefix=no |
13579 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13580 | runpath_var=LD_RUN_PATH |
13581 | ;; |
13582 | siemens) |
13583 | need_lib_prefix=no |
13584 | ;; |
13585 | motorola) |
13586 | need_lib_prefix=no |
13587 | need_version=no |
13588 | shlibpath_overrides_runpath=no |
13589 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13590 | ;; |
13591 | esac |
13592 | ;; |
13593 | |
13594 | sysv4*MP*) |
13595 | if test -d /usr/nec ;then |
13596 | version_type=linux |
13597 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13598 | soname_spec='$libname${shared_ext}.$major' |
13599 | shlibpath_var=LD_LIBRARY_PATH |
13600 | fi |
13601 | ;; |
13602 | |
13603 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13604 | version_type=freebsd-elf |
13605 | need_lib_prefix=no |
13606 | need_version=no |
13607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13608 | soname_spec='${libname}${release}${shared_ext}$major' |
13609 | shlibpath_var=LD_LIBRARY_PATH |
13610 | hardcode_into_libs=yes |
13611 | if test "$with_gnu_ld" = yes; then |
13612 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13613 | shlibpath_overrides_runpath=no |
13614 | else |
13615 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13616 | shlibpath_overrides_runpath=yes |
13617 | case $host_os in |
13618 | sco3.2v5*) |
13619 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13620 | ;; |
13621 | esac |
13622 | fi |
13623 | sys_lib_dlsearch_path_spec='/usr/lib' |
13624 | ;; |
13625 | |
13626 | uts4*) |
13627 | version_type=linux |
13628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13629 | soname_spec='${libname}${release}${shared_ext}$major' |
13630 | shlibpath_var=LD_LIBRARY_PATH |
13631 | ;; |
13632 | |
13633 | *) |
13634 | dynamic_linker=no |
13635 | ;; |
13636 | esac |
64ff59ba |
13637 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13638 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13639 | test "$dynamic_linker" = no && can_build_shared=no |
13640 | |
13641 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13642 | if test "$GCC" = yes; then |
13643 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13644 | fi |
13645 | |
64ff59ba |
13646 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13647 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13648 | hardcode_action_CXX= |
13649 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13650 | test -n "$runpath_var_CXX" || \ |
13651 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13652 | |
13653 | # We can hardcode non-existant directories. |
13654 | if test "$hardcode_direct_CXX" != no && |
13655 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13656 | # have to relink, otherwise we might link with an installed library |
13657 | # when we should be linking with a yet-to-be-installed one |
13658 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13659 | test "$hardcode_minus_L_CXX" != no; then |
13660 | # Linking always hardcodes the temporary library directory. |
13661 | hardcode_action_CXX=relink |
13662 | else |
13663 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13664 | hardcode_action_CXX=immediate |
13665 | fi |
13666 | else |
13667 | # We cannot hardcode anything, or else we can only hardcode existing |
13668 | # directories. |
13669 | hardcode_action_CXX=unsupported |
13670 | fi |
64ff59ba |
13671 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13672 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13673 | |
13674 | if test "$hardcode_action_CXX" = relink; then |
13675 | # Fast installation is not supported |
13676 | enable_fast_install=no |
13677 | elif test "$shlibpath_overrides_runpath" = yes || |
13678 | test "$enable_shared" = no; then |
13679 | # Fast installation is not necessary |
13680 | enable_fast_install=needless |
13681 | fi |
13682 | |
13683 | |
13684 | # The else clause should only fire when bootstrapping the |
13685 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13686 | # with your package, and you will get complaints that there are |
13687 | # no rules to generate ltmain.sh. |
13688 | if test -f "$ltmain"; then |
13689 | # See if we are running on zsh, and set the options which allow our commands through |
13690 | # without removal of \ escapes. |
13691 | if test -n "${ZSH_VERSION+set}" ; then |
13692 | setopt NO_GLOB_SUBST |
13693 | fi |
13694 | # Now quote all the things that may contain metacharacters while being |
13695 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13696 | # variables and quote the copies for generation of the libtool script. |
13697 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13698 | SED SHELL STRIP \ |
13699 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13700 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13701 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13702 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13703 | lt_cv_sys_global_symbol_to_c_name_address \ |
13704 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13705 | old_postinstall_cmds old_postuninstall_cmds \ |
13706 | compiler_CXX \ |
13707 | CC_CXX \ |
13708 | LD_CXX \ |
13709 | lt_prog_compiler_wl_CXX \ |
13710 | lt_prog_compiler_pic_CXX \ |
13711 | lt_prog_compiler_static_CXX \ |
13712 | lt_prog_compiler_no_builtin_flag_CXX \ |
13713 | export_dynamic_flag_spec_CXX \ |
13714 | thread_safe_flag_spec_CXX \ |
13715 | whole_archive_flag_spec_CXX \ |
13716 | enable_shared_with_static_runtimes_CXX \ |
13717 | old_archive_cmds_CXX \ |
13718 | old_archive_from_new_cmds_CXX \ |
13719 | predep_objects_CXX \ |
13720 | postdep_objects_CXX \ |
13721 | predeps_CXX \ |
13722 | postdeps_CXX \ |
13723 | compiler_lib_search_path_CXX \ |
13724 | archive_cmds_CXX \ |
13725 | archive_expsym_cmds_CXX \ |
13726 | postinstall_cmds_CXX \ |
13727 | postuninstall_cmds_CXX \ |
13728 | old_archive_from_expsyms_cmds_CXX \ |
13729 | allow_undefined_flag_CXX \ |
13730 | no_undefined_flag_CXX \ |
13731 | export_symbols_cmds_CXX \ |
13732 | hardcode_libdir_flag_spec_CXX \ |
13733 | hardcode_libdir_flag_spec_ld_CXX \ |
13734 | hardcode_libdir_separator_CXX \ |
13735 | hardcode_automatic_CXX \ |
13736 | module_cmds_CXX \ |
13737 | module_expsym_cmds_CXX \ |
13738 | lt_cv_prog_compiler_c_o_CXX \ |
0fde1ce3 |
13739 | fix_srcfile_path_CXX \ |
d9898ee8 |
13740 | exclude_expsyms_CXX \ |
13741 | include_expsyms_CXX; do |
13742 | |
13743 | case $var in |
13744 | old_archive_cmds_CXX | \ |
13745 | old_archive_from_new_cmds_CXX | \ |
13746 | archive_cmds_CXX | \ |
13747 | archive_expsym_cmds_CXX | \ |
13748 | module_cmds_CXX | \ |
13749 | module_expsym_cmds_CXX | \ |
13750 | old_archive_from_expsyms_cmds_CXX | \ |
13751 | export_symbols_cmds_CXX | \ |
13752 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13753 | postinstall_cmds | postuninstall_cmds | \ |
13754 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13755 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13756 | # Double-quote double-evaled strings. |
13757 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13758 | ;; |
13759 | *) |
13760 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13761 | ;; |
13762 | esac |
13763 | done |
13764 | |
13765 | case $lt_echo in |
13766 | *'\$0 --fallback-echo"') |
13767 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13768 | ;; |
13769 | esac |
13770 | |
13771 | cfgfile="$ofile" |
13772 | |
13773 | cat <<__EOF__ >> "$cfgfile" |
13774 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13775 | |
13776 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13777 | |
13778 | # Shell to use when invoking shell scripts. |
13779 | SHELL=$lt_SHELL |
13780 | |
13781 | # Whether or not to build shared libraries. |
13782 | build_libtool_libs=$enable_shared |
13783 | |
13784 | # Whether or not to build static libraries. |
13785 | build_old_libs=$enable_static |
13786 | |
13787 | # Whether or not to add -lc for building shared libraries. |
13788 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13789 | |
13790 | # Whether or not to disallow shared libs when runtime libs are static |
13791 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13792 | |
13793 | # Whether or not to optimize for fast installation. |
13794 | fast_install=$enable_fast_install |
13795 | |
13796 | # The host system. |
13797 | host_alias=$host_alias |
13798 | host=$host |
13799 | host_os=$host_os |
13800 | |
13801 | # The build system. |
13802 | build_alias=$build_alias |
13803 | build=$build |
13804 | build_os=$build_os |
13805 | |
13806 | # An echo program that does not interpret backslashes. |
13807 | echo=$lt_echo |
13808 | |
13809 | # The archiver. |
13810 | AR=$lt_AR |
13811 | AR_FLAGS=$lt_AR_FLAGS |
13812 | |
13813 | # A C compiler. |
13814 | LTCC=$lt_LTCC |
13815 | |
13816 | # LTCC compiler flags. |
13817 | LTCFLAGS=$lt_LTCFLAGS |
13818 | |
13819 | # A language-specific compiler. |
13820 | CC=$lt_compiler_CXX |
13821 | |
13822 | # Is the compiler the GNU C compiler? |
13823 | with_gcc=$GCC_CXX |
13824 | |
d9898ee8 |
13825 | # An ERE matcher. |
13826 | EGREP=$lt_EGREP |
13827 | |
13828 | # The linker used to build libraries. |
13829 | LD=$lt_LD_CXX |
13830 | |
13831 | # Whether we need hard or soft links. |
13832 | LN_S=$lt_LN_S |
13833 | |
13834 | # A BSD-compatible nm program. |
13835 | NM=$lt_NM |
13836 | |
13837 | # A symbol stripping program |
13838 | STRIP=$lt_STRIP |
13839 | |
13840 | # Used to examine libraries when file_magic_cmd begins "file" |
13841 | MAGIC_CMD=$MAGIC_CMD |
13842 | |
13843 | # Used on cygwin: DLL creation program. |
13844 | DLLTOOL="$DLLTOOL" |
13845 | |
13846 | # Used on cygwin: object dumper. |
13847 | OBJDUMP="$OBJDUMP" |
13848 | |
13849 | # Used on cygwin: assembler. |
13850 | AS="$AS" |
13851 | |
13852 | # The name of the directory that contains temporary libtool files. |
13853 | objdir=$objdir |
13854 | |
13855 | # How to create reloadable object files. |
13856 | reload_flag=$lt_reload_flag |
13857 | reload_cmds=$lt_reload_cmds |
13858 | |
13859 | # How to pass a linker flag through the compiler. |
13860 | wl=$lt_lt_prog_compiler_wl_CXX |
13861 | |
13862 | # Object file suffix (normally "o"). |
13863 | objext="$ac_objext" |
13864 | |
13865 | # Old archive suffix (normally "a"). |
13866 | libext="$libext" |
13867 | |
13868 | # Shared library suffix (normally ".so"). |
13869 | shrext_cmds='$shrext_cmds' |
13870 | |
13871 | # Executable file suffix (normally ""). |
13872 | exeext="$exeext" |
13873 | |
13874 | # Additional compiler flags for building library objects. |
13875 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13876 | pic_mode=$pic_mode |
13877 | |
13878 | # What is the maximum length of a command? |
13879 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13880 | |
13881 | # Does compiler simultaneously support -c and -o options? |
13882 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13883 | |
13884 | # Must we lock files when doing compilation? |
13885 | need_locks=$lt_need_locks |
13886 | |
13887 | # Do we need the lib prefix for modules? |
13888 | need_lib_prefix=$need_lib_prefix |
13889 | |
13890 | # Do we need a version for libraries? |
13891 | need_version=$need_version |
13892 | |
13893 | # Whether dlopen is supported. |
13894 | dlopen_support=$enable_dlopen |
13895 | |
13896 | # Whether dlopen of programs is supported. |
13897 | dlopen_self=$enable_dlopen_self |
13898 | |
13899 | # Whether dlopen of statically linked programs is supported. |
13900 | dlopen_self_static=$enable_dlopen_self_static |
13901 | |
13902 | # Compiler flag to prevent dynamic linking. |
13903 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13904 | |
13905 | # Compiler flag to turn off builtin functions. |
13906 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13907 | |
13908 | # Compiler flag to allow reflexive dlopens. |
13909 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13910 | |
13911 | # Compiler flag to generate shared objects directly from archives. |
13912 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13913 | |
13914 | # Compiler flag to generate thread-safe objects. |
13915 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13916 | |
13917 | # Library versioning type. |
13918 | version_type=$version_type |
13919 | |
13920 | # Format of library name prefix. |
13921 | libname_spec=$lt_libname_spec |
13922 | |
13923 | # List of archive names. First name is the real one, the rest are links. |
13924 | # The last name is the one that the linker finds with -lNAME. |
13925 | library_names_spec=$lt_library_names_spec |
13926 | |
13927 | # The coded name of the library, if different from the real name. |
13928 | soname_spec=$lt_soname_spec |
13929 | |
13930 | # Commands used to build and install an old-style archive. |
13931 | RANLIB=$lt_RANLIB |
13932 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13933 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13934 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13935 | |
13936 | # Create an old-style archive from a shared archive. |
13937 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13938 | |
13939 | # Create a temporary old-style archive to link instead of a shared archive. |
13940 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13941 | |
13942 | # Commands used to build and install a shared archive. |
13943 | archive_cmds=$lt_archive_cmds_CXX |
13944 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13945 | postinstall_cmds=$lt_postinstall_cmds |
13946 | postuninstall_cmds=$lt_postuninstall_cmds |
13947 | |
13948 | # Commands used to build a loadable module (assumed same as above if empty) |
13949 | module_cmds=$lt_module_cmds_CXX |
13950 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13951 | |
13952 | # Commands to strip libraries. |
13953 | old_striplib=$lt_old_striplib |
13954 | striplib=$lt_striplib |
13955 | |
13956 | # Dependencies to place before the objects being linked to create a |
13957 | # shared library. |
64ff59ba |
13958 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13959 | |
13960 | # Dependencies to place after the objects being linked to create a |
13961 | # shared library. |
64ff59ba |
13962 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13963 | |
13964 | # Dependencies to place before the objects being linked to create a |
13965 | # shared library. |
13966 | predeps=$lt_predeps_CXX |
13967 | |
13968 | # Dependencies to place after the objects being linked to create a |
13969 | # shared library. |
13970 | postdeps=$lt_postdeps_CXX |
13971 | |
13972 | # The library search path used internally by the compiler when linking |
13973 | # a shared library. |
64ff59ba |
13974 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13975 | |
13976 | # Method to check whether dependent libraries are shared objects. |
13977 | deplibs_check_method=$lt_deplibs_check_method |
13978 | |
13979 | # Command to use when deplibs_check_method == file_magic. |
13980 | file_magic_cmd=$lt_file_magic_cmd |
13981 | |
13982 | # Flag that allows shared libraries with undefined symbols to be built. |
13983 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13984 | |
13985 | # Flag that forces no undefined symbols. |
13986 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13987 | |
13988 | # Commands used to finish a libtool library installation in a directory. |
13989 | finish_cmds=$lt_finish_cmds |
13990 | |
13991 | # Same as above, but a single script fragment to be evaled but not shown. |
13992 | finish_eval=$lt_finish_eval |
13993 | |
13994 | # Take the output of nm and produce a listing of raw symbols and C names. |
13995 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13996 | |
13997 | # Transform the output of nm in a proper C declaration |
13998 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13999 | |
14000 | # Transform the output of nm in a C name address pair |
14001 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
14002 | |
14003 | # This is the shared library runtime path variable. |
14004 | runpath_var=$runpath_var |
14005 | |
14006 | # This is the shared library path variable. |
14007 | shlibpath_var=$shlibpath_var |
14008 | |
14009 | # Is shlibpath searched before the hard-coded library search path? |
14010 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
14011 | |
14012 | # How to hardcode a shared library path into an executable. |
14013 | hardcode_action=$hardcode_action_CXX |
14014 | |
14015 | # Whether we should hardcode library paths into libraries. |
14016 | hardcode_into_libs=$hardcode_into_libs |
14017 | |
14018 | # Flag to hardcode \$libdir into a binary during linking. |
14019 | # This must work even if \$libdir does not exist. |
14020 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
14021 | |
14022 | # If ld is used when linking, flag to hardcode \$libdir into |
14023 | # a binary during linking. This must work even if \$libdir does |
14024 | # not exist. |
14025 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
14026 | |
14027 | # Whether we need a single -rpath flag with a separated argument. |
14028 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
14029 | |
14030 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
14031 | # resulting binary. |
14032 | hardcode_direct=$hardcode_direct_CXX |
14033 | |
14034 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
14035 | # resulting binary. |
14036 | hardcode_minus_L=$hardcode_minus_L_CXX |
14037 | |
14038 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
14039 | # the resulting binary. |
14040 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
14041 | |
14042 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
14043 | # and all subsequent libraries and executables linked against it. |
14044 | hardcode_automatic=$hardcode_automatic_CXX |
14045 | |
14046 | # Variables whose values should be saved in libtool wrapper scripts and |
14047 | # restored at relink time. |
14048 | variables_saved_for_relink="$variables_saved_for_relink" |
14049 | |
14050 | # Whether libtool must link a program against all its dependency libraries. |
14051 | link_all_deplibs=$link_all_deplibs_CXX |
14052 | |
14053 | # Compile-time system search path for libraries |
64ff59ba |
14054 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
14055 | |
14056 | # Run-time system search path for libraries |
14057 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
14058 | |
14059 | # Fix the shell variable \$srcfile for the compiler. |
0fde1ce3 |
14060 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
14061 | |
14062 | # Set to yes if exported symbols are required. |
14063 | always_export_symbols=$always_export_symbols_CXX |
14064 | |
14065 | # The commands to list exported symbols. |
14066 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
14067 | |
14068 | # The commands to extract the exported symbol list from a shared archive. |
14069 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
14070 | |
14071 | # Symbols that should not be listed in the preloaded symbols. |
14072 | exclude_expsyms=$lt_exclude_expsyms_CXX |
14073 | |
14074 | # Symbols that must always be exported. |
14075 | include_expsyms=$lt_include_expsyms_CXX |
14076 | |
14077 | # ### END LIBTOOL TAG CONFIG: $tagname |
14078 | |
14079 | __EOF__ |
14080 | |
14081 | |
14082 | else |
14083 | # If there is no Makefile yet, we rely on a make rule to execute |
14084 | # `config.status --recheck' to rerun these tests and create the |
14085 | # libtool script then. |
14086 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
14087 | if test -f "$ltmain_in"; then |
14088 | test -f Makefile && make "$ltmain" |
14089 | fi |
14090 | fi |
14091 | |
14092 | |
14093 | ac_ext=c |
14094 | ac_cpp='$CPP $CPPFLAGS' |
14095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
14098 | |
14099 | CC=$lt_save_CC |
14100 | LDCXX=$LD |
14101 | LD=$lt_save_LD |
14102 | GCC=$lt_save_GCC |
14103 | with_gnu_ldcxx=$with_gnu_ld |
14104 | with_gnu_ld=$lt_save_with_gnu_ld |
14105 | lt_cv_path_LDCXX=$lt_cv_path_LD |
14106 | lt_cv_path_LD=$lt_save_path_LD |
14107 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
14108 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
14109 | |
14110 | else |
14111 | tagname="" |
14112 | fi |
14113 | ;; |
14114 | |
14115 | F77) |
14116 | if test -n "$F77" && test "X$F77" != "Xno"; then |
14117 | |
14118 | ac_ext=f |
14119 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
14120 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14121 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
14122 | |
14123 | |
14124 | archive_cmds_need_lc_F77=no |
14125 | allow_undefined_flag_F77= |
14126 | always_export_symbols_F77=no |
14127 | archive_expsym_cmds_F77= |
14128 | export_dynamic_flag_spec_F77= |
14129 | hardcode_direct_F77=no |
14130 | hardcode_libdir_flag_spec_F77= |
14131 | hardcode_libdir_flag_spec_ld_F77= |
14132 | hardcode_libdir_separator_F77= |
14133 | hardcode_minus_L_F77=no |
14134 | hardcode_automatic_F77=no |
14135 | module_cmds_F77= |
14136 | module_expsym_cmds_F77= |
14137 | link_all_deplibs_F77=unknown |
14138 | old_archive_cmds_F77=$old_archive_cmds |
14139 | no_undefined_flag_F77= |
14140 | whole_archive_flag_spec_F77= |
14141 | enable_shared_with_static_runtimes_F77=no |
14142 | |
14143 | # Source file extension for f77 test sources. |
14144 | ac_ext=f |
14145 | |
14146 | # Object file extension for compiled f77 test sources. |
14147 | objext=o |
14148 | objext_F77=$objext |
14149 | |
14150 | # Code to be used in simple compile tests |
0fde1ce3 |
14151 | lt_simple_compile_test_code="\ |
14152 | subroutine t |
14153 | return |
14154 | end |
14155 | " |
d9898ee8 |
14156 | |
14157 | # Code to be used in simple link tests |
0fde1ce3 |
14158 | lt_simple_link_test_code="\ |
14159 | program t |
14160 | end |
14161 | " |
d9898ee8 |
14162 | |
14163 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
14164 | |
14165 | # If no C compiler was specified, use CC. |
14166 | LTCC=${LTCC-"$CC"} |
14167 | |
14168 | # If no C compiler flags were specified, use CFLAGS. |
14169 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
14170 | |
14171 | # Allow CC to be a program name with arguments. |
14172 | compiler=$CC |
14173 | |
14174 | |
14175 | # save warnings/boilerplate of simple test code |
14176 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
14177 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
14178 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
14179 | _lt_compiler_boilerplate=`cat conftest.err` |
14180 | $rm conftest* |
14181 | |
14182 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
14183 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
14184 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
14185 | _lt_linker_boilerplate=`cat conftest.err` |
14186 | $rm conftest* |
14187 | |
14188 | |
14189 | # Allow CC to be a program name with arguments. |
14190 | lt_save_CC="$CC" |
14191 | CC=${F77-"f77"} |
14192 | compiler=$CC |
14193 | compiler_F77=$CC |
14194 | for cc_temp in $compiler""; do |
14195 | case $cc_temp in |
14196 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14197 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14198 | \-*) ;; |
14199 | *) break;; |
14200 | esac |
14201 | done |
14202 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14203 | |
14204 | |
64ff59ba |
14205 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
14206 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
14207 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
14208 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
14209 | |
64ff59ba |
14210 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
14211 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14212 | test "$can_build_shared" = "no" && enable_shared=no |
14213 | |
14214 | # On AIX, shared libraries and static libraries use the same namespace, and |
14215 | # are all built from PIC. |
14216 | case $host_os in |
14217 | aix3*) |
14218 | test "$enable_shared" = yes && enable_static=no |
14219 | if test -n "$RANLIB"; then |
14220 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
14221 | postinstall_cmds='$RANLIB $lib' |
14222 | fi |
14223 | ;; |
14224 | aix4* | aix5*) |
14225 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
14226 | test "$enable_shared" = yes && enable_static=no |
14227 | fi |
14228 | ;; |
14229 | esac |
64ff59ba |
14230 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
14231 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
14232 | |
64ff59ba |
14233 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
14234 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
14235 | # Make sure either enable_shared or enable_static is yes. |
14236 | test "$enable_shared" = yes || enable_static=yes |
64ff59ba |
14237 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
14238 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
14239 | |
14240 | GCC_F77="$G77" |
14241 | LD_F77="$LD" |
14242 | |
14243 | lt_prog_compiler_wl_F77= |
14244 | lt_prog_compiler_pic_F77= |
14245 | lt_prog_compiler_static_F77= |
14246 | |
64ff59ba |
14247 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
14248 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
14249 | |
14250 | if test "$GCC" = yes; then |
14251 | lt_prog_compiler_wl_F77='-Wl,' |
14252 | lt_prog_compiler_static_F77='-static' |
14253 | |
14254 | case $host_os in |
14255 | aix*) |
14256 | # All AIX code is PIC. |
14257 | if test "$host_cpu" = ia64; then |
14258 | # AIX 5 now supports IA64 processor |
14259 | lt_prog_compiler_static_F77='-Bstatic' |
14260 | fi |
14261 | ;; |
14262 | |
14263 | amigaos*) |
14264 | # FIXME: we need at least 68020 code to build shared libraries, but |
14265 | # adding the `-m68020' flag to GCC prevents building anything better, |
14266 | # like `-m68040'. |
14267 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
14268 | ;; |
14269 | |
0fde1ce3 |
14270 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
14271 | # PIC is the default for these OSes. |
14272 | ;; |
14273 | |
0fde1ce3 |
14274 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
14275 | # This hack is so that the source file can tell whether it is being |
14276 | # built for inclusion in a dll (and should export symbols for example). |
0fde1ce3 |
14277 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
14278 | # (--disable-auto-import) libraries |
d9898ee8 |
14279 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14280 | ;; |
14281 | |
14282 | darwin* | rhapsody*) |
14283 | # PIC is the default on this platform |
14284 | # Common symbols not allowed in MH_DYLIB files |
14285 | lt_prog_compiler_pic_F77='-fno-common' |
14286 | ;; |
14287 | |
0fde1ce3 |
14288 | interix[3-9]*) |
d9898ee8 |
14289 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
14290 | # Instead, we relocate shared libraries at runtime. |
14291 | ;; |
14292 | |
14293 | msdosdjgpp*) |
14294 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
14295 | # on systems that don't support them. |
14296 | lt_prog_compiler_can_build_shared_F77=no |
14297 | enable_shared=no |
14298 | ;; |
14299 | |
14300 | sysv4*MP*) |
14301 | if test -d /usr/nec; then |
14302 | lt_prog_compiler_pic_F77=-Kconform_pic |
14303 | fi |
14304 | ;; |
14305 | |
14306 | hpux*) |
14307 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14308 | # not for PA HP-UX. |
14309 | case $host_cpu in |
14310 | hppa*64*|ia64*) |
14311 | # +Z the default |
14312 | ;; |
14313 | *) |
14314 | lt_prog_compiler_pic_F77='-fPIC' |
14315 | ;; |
14316 | esac |
14317 | ;; |
14318 | |
14319 | *) |
14320 | lt_prog_compiler_pic_F77='-fPIC' |
14321 | ;; |
14322 | esac |
14323 | else |
14324 | # PORTME Check for flag to pass linker flags through the system compiler. |
14325 | case $host_os in |
14326 | aix*) |
14327 | lt_prog_compiler_wl_F77='-Wl,' |
14328 | if test "$host_cpu" = ia64; then |
14329 | # AIX 5 now supports IA64 processor |
14330 | lt_prog_compiler_static_F77='-Bstatic' |
14331 | else |
14332 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
14333 | fi |
14334 | ;; |
14335 | darwin*) |
14336 | # PIC is the default on this platform |
14337 | # Common symbols not allowed in MH_DYLIB files |
14338 | case $cc_basename in |
14339 | xlc*) |
14340 | lt_prog_compiler_pic_F77='-qnocommon' |
14341 | lt_prog_compiler_wl_F77='-Wl,' |
14342 | ;; |
14343 | esac |
14344 | ;; |
14345 | |
0fde1ce3 |
14346 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
14347 | # This hack is so that the source file can tell whether it is being |
14348 | # built for inclusion in a dll (and should export symbols for example). |
14349 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14350 | ;; |
14351 | |
14352 | hpux9* | hpux10* | hpux11*) |
14353 | lt_prog_compiler_wl_F77='-Wl,' |
14354 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14355 | # not for PA HP-UX. |
14356 | case $host_cpu in |
14357 | hppa*64*|ia64*) |
14358 | # +Z the default |
14359 | ;; |
14360 | *) |
14361 | lt_prog_compiler_pic_F77='+Z' |
14362 | ;; |
14363 | esac |
14364 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
14365 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
14366 | ;; |
14367 | |
14368 | irix5* | irix6* | nonstopux*) |
14369 | lt_prog_compiler_wl_F77='-Wl,' |
14370 | # PIC (with -KPIC) is the default. |
14371 | lt_prog_compiler_static_F77='-non_shared' |
14372 | ;; |
14373 | |
14374 | newsos6) |
14375 | lt_prog_compiler_pic_F77='-KPIC' |
14376 | lt_prog_compiler_static_F77='-Bstatic' |
14377 | ;; |
14378 | |
0fde1ce3 |
14379 | linux* | k*bsd*-gnu) |
d9898ee8 |
14380 | case $cc_basename in |
14381 | icc* | ecc*) |
14382 | lt_prog_compiler_wl_F77='-Wl,' |
14383 | lt_prog_compiler_pic_F77='-KPIC' |
14384 | lt_prog_compiler_static_F77='-static' |
14385 | ;; |
14386 | pgcc* | pgf77* | pgf90* | pgf95*) |
14387 | # Portland Group compilers (*not* the Pentium gcc compiler, |
14388 | # which looks to be a dead project) |
14389 | lt_prog_compiler_wl_F77='-Wl,' |
14390 | lt_prog_compiler_pic_F77='-fpic' |
14391 | lt_prog_compiler_static_F77='-Bstatic' |
14392 | ;; |
14393 | ccc*) |
14394 | lt_prog_compiler_wl_F77='-Wl,' |
14395 | # All Alpha code is PIC. |
14396 | lt_prog_compiler_static_F77='-non_shared' |
14397 | ;; |
0fde1ce3 |
14398 | *) |
14399 | case `$CC -V 2>&1 | sed 5q` in |
14400 | *Sun\ C*) |
14401 | # Sun C 5.9 |
14402 | lt_prog_compiler_pic_F77='-KPIC' |
14403 | lt_prog_compiler_static_F77='-Bstatic' |
14404 | lt_prog_compiler_wl_F77='-Wl,' |
14405 | ;; |
14406 | *Sun\ F*) |
14407 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
14408 | lt_prog_compiler_pic_F77='-KPIC' |
14409 | lt_prog_compiler_static_F77='-Bstatic' |
14410 | lt_prog_compiler_wl_F77='' |
14411 | ;; |
14412 | esac |
14413 | ;; |
d9898ee8 |
14414 | esac |
14415 | ;; |
14416 | |
14417 | osf3* | osf4* | osf5*) |
14418 | lt_prog_compiler_wl_F77='-Wl,' |
14419 | # All OSF/1 code is PIC. |
14420 | lt_prog_compiler_static_F77='-non_shared' |
14421 | ;; |
14422 | |
0fde1ce3 |
14423 | rdos*) |
14424 | lt_prog_compiler_static_F77='-non_shared' |
14425 | ;; |
14426 | |
d9898ee8 |
14427 | solaris*) |
14428 | lt_prog_compiler_pic_F77='-KPIC' |
14429 | lt_prog_compiler_static_F77='-Bstatic' |
14430 | case $cc_basename in |
14431 | f77* | f90* | f95*) |
14432 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14433 | *) |
14434 | lt_prog_compiler_wl_F77='-Wl,';; |
14435 | esac |
14436 | ;; |
14437 | |
14438 | sunos4*) |
14439 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14440 | lt_prog_compiler_pic_F77='-PIC' |
14441 | lt_prog_compiler_static_F77='-Bstatic' |
14442 | ;; |
14443 | |
14444 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14445 | lt_prog_compiler_wl_F77='-Wl,' |
14446 | lt_prog_compiler_pic_F77='-KPIC' |
14447 | lt_prog_compiler_static_F77='-Bstatic' |
14448 | ;; |
14449 | |
14450 | sysv4*MP*) |
14451 | if test -d /usr/nec ;then |
14452 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14453 | lt_prog_compiler_static_F77='-Bstatic' |
14454 | fi |
14455 | ;; |
14456 | |
14457 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14458 | lt_prog_compiler_wl_F77='-Wl,' |
14459 | lt_prog_compiler_pic_F77='-KPIC' |
14460 | lt_prog_compiler_static_F77='-Bstatic' |
14461 | ;; |
14462 | |
14463 | unicos*) |
14464 | lt_prog_compiler_wl_F77='-Wl,' |
14465 | lt_prog_compiler_can_build_shared_F77=no |
14466 | ;; |
14467 | |
14468 | uts4*) |
14469 | lt_prog_compiler_pic_F77='-pic' |
14470 | lt_prog_compiler_static_F77='-Bstatic' |
14471 | ;; |
14472 | |
14473 | *) |
14474 | lt_prog_compiler_can_build_shared_F77=no |
14475 | ;; |
14476 | esac |
14477 | fi |
14478 | |
64ff59ba |
14479 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14480 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
14481 | |
14482 | # |
14483 | # Check to make sure the PIC flag actually works. |
14484 | # |
14485 | if test -n "$lt_prog_compiler_pic_F77"; then |
14486 | |
64ff59ba |
14487 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14488 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
14489 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14491 | else |
14492 | lt_prog_compiler_pic_works_F77=no |
14493 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
14494 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
14495 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14496 | # Insert the option either (1) after the last *FLAGS variable, or |
14497 | # (2) before a word containing "conftest.", or (3) at the end. |
14498 | # Note that $ac_compile itself does not contain backslashes and begins |
14499 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14500 | # The option is referenced via a variable to avoid confusing sed. |
14501 | lt_compile=`echo "$ac_compile" | $SED \ |
14502 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14503 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14504 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
14505 | (eval echo "\"\$as_me:14505: $lt_compile\"" >&5) |
d9898ee8 |
14506 | (eval "$lt_compile" 2>conftest.err) |
14507 | ac_status=$? |
14508 | cat conftest.err >&5 |
0fde1ce3 |
14509 | echo "$as_me:14509: \$? = $ac_status" >&5 |
d9898ee8 |
14510 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14511 | # The compiler can only warn and ignore the option if not recognized |
14512 | # So say no if there are warnings other than the usual output. |
14513 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14514 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14515 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14516 | lt_prog_compiler_pic_works_F77=yes |
14517 | fi |
14518 | fi |
14519 | $rm conftest* |
14520 | |
14521 | fi |
64ff59ba |
14522 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14523 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14524 | |
14525 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14526 | case $lt_prog_compiler_pic_F77 in |
14527 | "" | " "*) ;; |
14528 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14529 | esac |
14530 | else |
14531 | lt_prog_compiler_pic_F77= |
14532 | lt_prog_compiler_can_build_shared_F77=no |
14533 | fi |
14534 | |
14535 | fi |
14536 | case $host_os in |
14537 | # For platforms which do not support PIC, -DPIC is meaningless: |
14538 | *djgpp*) |
14539 | lt_prog_compiler_pic_F77= |
14540 | ;; |
14541 | *) |
14542 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14543 | ;; |
14544 | esac |
14545 | |
14546 | # |
14547 | # Check to make sure the static flag actually works. |
14548 | # |
14549 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
64ff59ba |
14550 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14551 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14552 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14554 | else |
14555 | lt_prog_compiler_static_works_F77=no |
14556 | save_LDFLAGS="$LDFLAGS" |
14557 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
0fde1ce3 |
14558 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
14559 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14560 | # The linker can only warn and ignore the option if not recognized |
14561 | # So say no if there are warnings |
14562 | if test -s conftest.err; then |
14563 | # Append any errors to the config.log. |
14564 | cat conftest.err 1>&5 |
14565 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14566 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14567 | if diff conftest.exp conftest.er2 >/dev/null; then |
14568 | lt_prog_compiler_static_works_F77=yes |
14569 | fi |
14570 | else |
14571 | lt_prog_compiler_static_works_F77=yes |
14572 | fi |
14573 | fi |
14574 | $rm conftest* |
14575 | LDFLAGS="$save_LDFLAGS" |
14576 | |
14577 | fi |
64ff59ba |
14578 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14579 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14580 | |
14581 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14582 | : |
14583 | else |
14584 | lt_prog_compiler_static_F77= |
14585 | fi |
14586 | |
14587 | |
64ff59ba |
14588 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14589 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14590 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14592 | else |
14593 | lt_cv_prog_compiler_c_o_F77=no |
14594 | $rm -r conftest 2>/dev/null |
14595 | mkdir conftest |
14596 | cd conftest |
14597 | mkdir out |
0fde1ce3 |
14598 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
14599 | |
14600 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14601 | # Insert the option either (1) after the last *FLAGS variable, or |
14602 | # (2) before a word containing "conftest.", or (3) at the end. |
14603 | # Note that $ac_compile itself does not contain backslashes and begins |
14604 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14605 | lt_compile=`echo "$ac_compile" | $SED \ |
14606 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14607 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14608 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
14609 | (eval echo "\"\$as_me:14609: $lt_compile\"" >&5) |
d9898ee8 |
14610 | (eval "$lt_compile" 2>out/conftest.err) |
14611 | ac_status=$? |
14612 | cat out/conftest.err >&5 |
0fde1ce3 |
14613 | echo "$as_me:14613: \$? = $ac_status" >&5 |
d9898ee8 |
14614 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14615 | then |
14616 | # The compiler can only warn and ignore the option if not recognized |
14617 | # So say no if there are warnings |
14618 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14619 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14620 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14621 | lt_cv_prog_compiler_c_o_F77=yes |
14622 | fi |
14623 | fi |
14624 | chmod u+w . 2>&5 |
14625 | $rm conftest* |
14626 | # SGI C++ compiler will create directory out/ii_files/ for |
14627 | # template instantiation |
14628 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14629 | $rm out/* && rmdir out |
14630 | cd .. |
14631 | rmdir conftest |
14632 | $rm conftest* |
14633 | |
14634 | fi |
64ff59ba |
14635 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14636 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14637 | |
14638 | |
14639 | hard_links="nottested" |
14640 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14641 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
14642 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14643 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14644 | hard_links=yes |
14645 | $rm conftest* |
14646 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14647 | touch conftest.a |
14648 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14649 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
14650 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14651 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14652 | if test "$hard_links" = no; then |
14653 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14654 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14655 | need_locks=warn |
14656 | fi |
14657 | else |
14658 | need_locks=no |
14659 | fi |
14660 | |
64ff59ba |
14661 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14662 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14663 | |
14664 | runpath_var= |
14665 | allow_undefined_flag_F77= |
14666 | enable_shared_with_static_runtimes_F77=no |
14667 | archive_cmds_F77= |
14668 | archive_expsym_cmds_F77= |
14669 | old_archive_From_new_cmds_F77= |
14670 | old_archive_from_expsyms_cmds_F77= |
14671 | export_dynamic_flag_spec_F77= |
14672 | whole_archive_flag_spec_F77= |
14673 | thread_safe_flag_spec_F77= |
14674 | hardcode_libdir_flag_spec_F77= |
14675 | hardcode_libdir_flag_spec_ld_F77= |
14676 | hardcode_libdir_separator_F77= |
14677 | hardcode_direct_F77=no |
14678 | hardcode_minus_L_F77=no |
14679 | hardcode_shlibpath_var_F77=unsupported |
14680 | link_all_deplibs_F77=unknown |
14681 | hardcode_automatic_F77=no |
14682 | module_cmds_F77= |
14683 | module_expsym_cmds_F77= |
14684 | always_export_symbols_F77=no |
14685 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14686 | # include_expsyms should be a list of space-separated symbols to be *always* |
14687 | # included in the symbol list |
14688 | include_expsyms_F77= |
14689 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14690 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14691 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14692 | # as well as any symbol that contains `d'. |
14693 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14694 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14695 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14696 | # the symbol is explicitly referenced. Since portable code cannot |
14697 | # rely on this symbol name, it's probably fine to never include it in |
14698 | # preloaded symbol tables. |
14699 | extract_expsyms_cmds= |
14700 | # Just being paranoid about ensuring that cc_basename is set. |
14701 | for cc_temp in $compiler""; do |
14702 | case $cc_temp in |
14703 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14704 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14705 | \-*) ;; |
14706 | *) break;; |
14707 | esac |
14708 | done |
14709 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14710 | |
14711 | case $host_os in |
14712 | cygwin* | mingw* | pw32*) |
14713 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14714 | # When not using gcc, we currently assume that we are using |
14715 | # Microsoft Visual C++. |
14716 | if test "$GCC" != yes; then |
14717 | with_gnu_ld=no |
14718 | fi |
14719 | ;; |
14720 | interix*) |
14721 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14722 | with_gnu_ld=yes |
14723 | ;; |
14724 | openbsd*) |
14725 | with_gnu_ld=no |
14726 | ;; |
14727 | esac |
14728 | |
14729 | ld_shlibs_F77=yes |
14730 | if test "$with_gnu_ld" = yes; then |
14731 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14732 | wlarc='${wl}' |
14733 | |
14734 | # Set some defaults for GNU ld with shared library support. These |
14735 | # are reset later if shared libraries are not supported. Putting them |
14736 | # here allows them to be overridden if necessary. |
14737 | runpath_var=LD_RUN_PATH |
14738 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14739 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14740 | # ancient GNU ld didn't support --whole-archive et. al. |
14741 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14742 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14743 | else |
14744 | whole_archive_flag_spec_F77= |
14745 | fi |
14746 | supports_anon_versioning=no |
14747 | case `$LD -v 2>/dev/null` in |
14748 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14749 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14750 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14751 | *\ 2.11.*) ;; # other 2.11 versions |
14752 | *) supports_anon_versioning=yes ;; |
14753 | esac |
14754 | |
14755 | # See if GNU ld supports shared libraries. |
14756 | case $host_os in |
14757 | aix3* | aix4* | aix5*) |
14758 | # On AIX/PPC, the GNU linker is very broken |
14759 | if test "$host_cpu" != ia64; then |
14760 | ld_shlibs_F77=no |
14761 | cat <<EOF 1>&2 |
14762 | |
14763 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14764 | *** to be unable to reliably create shared libraries on AIX. |
14765 | *** Therefore, libtool is disabling shared libraries support. If you |
14766 | *** really care for shared libraries, you may want to modify your PATH |
14767 | *** so that a non-GNU linker is found, and then restart. |
14768 | |
14769 | EOF |
14770 | fi |
14771 | ;; |
14772 | |
14773 | amigaos*) |
14774 | 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)' |
14775 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14776 | hardcode_minus_L_F77=yes |
14777 | |
14778 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14779 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14780 | # to version 4, is to share data among multiple programs linked |
14781 | # with the same dynamic library. Since this doesn't match the |
14782 | # behavior of shared libraries on other platforms, we can't use |
14783 | # them. |
14784 | ld_shlibs_F77=no |
14785 | ;; |
14786 | |
14787 | beos*) |
14788 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14789 | allow_undefined_flag_F77=unsupported |
14790 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14791 | # support --undefined. This deserves some investigation. FIXME |
14792 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14793 | else |
14794 | ld_shlibs_F77=no |
14795 | fi |
14796 | ;; |
14797 | |
14798 | cygwin* | mingw* | pw32*) |
14799 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14800 | # as there is no search path for DLLs. |
14801 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14802 | allow_undefined_flag_F77=unsupported |
14803 | always_export_symbols_F77=no |
14804 | enable_shared_with_static_runtimes_F77=yes |
0fde1ce3 |
14805 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
14806 | |
14807 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14808 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14809 | # If the export-symbols file already is a .def file (1st line |
14810 | # is EXPORTS), use it as is; otherwise, prepend... |
14811 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14812 | cp $export_symbols $output_objdir/$soname.def; |
14813 | else |
14814 | echo EXPORTS > $output_objdir/$soname.def; |
14815 | cat $export_symbols >> $output_objdir/$soname.def; |
14816 | fi~ |
14817 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14818 | else |
14819 | ld_shlibs_F77=no |
14820 | fi |
14821 | ;; |
14822 | |
0fde1ce3 |
14823 | interix[3-9]*) |
d9898ee8 |
14824 | hardcode_direct_F77=no |
14825 | hardcode_shlibpath_var_F77=no |
14826 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14827 | export_dynamic_flag_spec_F77='${wl}-E' |
14828 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14829 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14830 | # default) and relocated if they conflict, which is a slow very memory |
14831 | # consuming and fragmenting process. To avoid this, we pick a random, |
14832 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14833 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14834 | 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' |
14835 | 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' |
14836 | ;; |
14837 | |
0fde1ce3 |
14838 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
14839 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14840 | tmp_addflag= |
14841 | case $cc_basename,$host_cpu in |
14842 | pgcc*) # Portland Group C compiler |
14843 | 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' |
14844 | tmp_addflag=' $pic_flag' |
14845 | ;; |
14846 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14847 | 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' |
14848 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14849 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14850 | tmp_addflag=' -i_dynamic' ;; |
14851 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14852 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14853 | ifc* | ifort*) # Intel Fortran compiler |
14854 | tmp_addflag=' -nofor_main' ;; |
14855 | esac |
0fde1ce3 |
14856 | case `$CC -V 2>&1 | sed 5q` in |
14857 | *Sun\ C*) # Sun C 5.9 |
14858 | 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' |
14859 | tmp_sharedflag='-G' ;; |
14860 | *Sun\ F*) # Sun Fortran 8.3 |
14861 | tmp_sharedflag='-G' ;; |
14862 | *) |
14863 | tmp_sharedflag='-shared' ;; |
14864 | esac |
14865 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
14866 | |
14867 | if test $supports_anon_versioning = yes; then |
14868 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14869 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14870 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
0fde1ce3 |
14871 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
14872 | fi |
14873 | else |
14874 | ld_shlibs_F77=no |
14875 | fi |
14876 | ;; |
14877 | |
14878 | netbsd*) |
14879 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14880 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14881 | wlarc= |
14882 | else |
14883 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14884 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14885 | fi |
14886 | ;; |
14887 | |
14888 | solaris*) |
14889 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14890 | ld_shlibs_F77=no |
14891 | cat <<EOF 1>&2 |
14892 | |
14893 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14894 | *** create shared libraries on Solaris systems. Therefore, libtool |
14895 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14896 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14897 | *** your PATH or compiler configuration so that the native linker is |
14898 | *** used, and then restart. |
14899 | |
14900 | EOF |
14901 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14902 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14903 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14904 | else |
14905 | ld_shlibs_F77=no |
14906 | fi |
14907 | ;; |
14908 | |
14909 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14910 | case `$LD -v 2>&1` in |
14911 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14912 | ld_shlibs_F77=no |
14913 | cat <<_LT_EOF 1>&2 |
14914 | |
14915 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14916 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14917 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14918 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14919 | *** your PATH or compiler configuration so that the native linker is |
14920 | *** used, and then restart. |
14921 | |
14922 | _LT_EOF |
14923 | ;; |
14924 | *) |
14925 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14926 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14927 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14928 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14929 | else |
14930 | ld_shlibs_F77=no |
14931 | fi |
14932 | ;; |
14933 | esac |
14934 | ;; |
14935 | |
14936 | sunos4*) |
14937 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14938 | wlarc= |
14939 | hardcode_direct_F77=yes |
14940 | hardcode_shlibpath_var_F77=no |
14941 | ;; |
14942 | |
14943 | *) |
14944 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14945 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14946 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14947 | else |
14948 | ld_shlibs_F77=no |
14949 | fi |
14950 | ;; |
14951 | esac |
14952 | |
14953 | if test "$ld_shlibs_F77" = no; then |
14954 | runpath_var= |
14955 | hardcode_libdir_flag_spec_F77= |
14956 | export_dynamic_flag_spec_F77= |
14957 | whole_archive_flag_spec_F77= |
14958 | fi |
14959 | else |
14960 | # PORTME fill in a description of your system's linker (not GNU ld) |
14961 | case $host_os in |
14962 | aix3*) |
14963 | allow_undefined_flag_F77=unsupported |
14964 | always_export_symbols_F77=yes |
14965 | 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' |
14966 | # Note: this linker hardcodes the directories in LIBPATH if there |
14967 | # are no directories specified by -L. |
14968 | hardcode_minus_L_F77=yes |
14969 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14970 | # Neither direct hardcoding nor static linking is supported with a |
14971 | # broken collect2. |
14972 | hardcode_direct_F77=unsupported |
14973 | fi |
14974 | ;; |
14975 | |
14976 | aix4* | aix5*) |
14977 | if test "$host_cpu" = ia64; then |
14978 | # On IA64, the linker does run time linking by default, so we don't |
14979 | # have to do anything special. |
14980 | aix_use_runtimelinking=no |
14981 | exp_sym_flag='-Bexport' |
14982 | no_entry_flag="" |
14983 | else |
14984 | # If we're using GNU nm, then we don't want the "-C" option. |
14985 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14986 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14987 | 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' |
14988 | else |
14989 | 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' |
14990 | fi |
14991 | aix_use_runtimelinking=no |
14992 | |
14993 | # Test if we are trying to use run time linking or normal |
14994 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14995 | # need to do runtime linking. |
14996 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14997 | for ld_flag in $LDFLAGS; do |
14998 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14999 | aix_use_runtimelinking=yes |
15000 | break |
15001 | fi |
15002 | done |
15003 | ;; |
15004 | esac |
15005 | |
15006 | exp_sym_flag='-bexport' |
15007 | no_entry_flag='-bnoentry' |
15008 | fi |
15009 | |
15010 | # When large executables or shared objects are built, AIX ld can |
15011 | # have problems creating the table of contents. If linking a library |
15012 | # or program results in "error TOC overflow" add -mminimal-toc to |
15013 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
15014 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
15015 | |
15016 | archive_cmds_F77='' |
15017 | hardcode_direct_F77=yes |
15018 | hardcode_libdir_separator_F77=':' |
15019 | link_all_deplibs_F77=yes |
15020 | |
15021 | if test "$GCC" = yes; then |
15022 | case $host_os in aix4.[012]|aix4.[012].*) |
15023 | # We only want to do this on AIX 4.2 and lower, the check |
15024 | # below for broken collect2 doesn't work under 4.3+ |
15025 | collect2name=`${CC} -print-prog-name=collect2` |
15026 | if test -f "$collect2name" && \ |
15027 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
15028 | then |
15029 | # We have reworked collect2 |
0fde1ce3 |
15030 | : |
d9898ee8 |
15031 | else |
15032 | # We have old collect2 |
15033 | hardcode_direct_F77=unsupported |
15034 | # It fails to find uninstalled libraries when the uninstalled |
15035 | # path is not listed in the libpath. Setting hardcode_minus_L |
15036 | # to unsupported forces relinking |
15037 | hardcode_minus_L_F77=yes |
15038 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15039 | hardcode_libdir_separator_F77= |
15040 | fi |
15041 | ;; |
15042 | esac |
15043 | shared_flag='-shared' |
15044 | if test "$aix_use_runtimelinking" = yes; then |
15045 | shared_flag="$shared_flag "'${wl}-G' |
15046 | fi |
15047 | else |
15048 | # not using gcc |
15049 | if test "$host_cpu" = ia64; then |
15050 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
15051 | # chokes on -Wl,-G. The following line is correct: |
15052 | shared_flag='-G' |
15053 | else |
15054 | if test "$aix_use_runtimelinking" = yes; then |
15055 | shared_flag='${wl}-G' |
15056 | else |
15057 | shared_flag='${wl}-bM:SRE' |
15058 | fi |
15059 | fi |
15060 | fi |
15061 | |
15062 | # It seems that -bexpall does not export symbols beginning with |
15063 | # underscore (_), so it is better to generate a list of symbols to export. |
15064 | always_export_symbols_F77=yes |
15065 | if test "$aix_use_runtimelinking" = yes; then |
15066 | # Warning - without using the other runtime loading flags (-brtl), |
15067 | # -berok will link without error, but may produce a broken library. |
15068 | allow_undefined_flag_F77='-berok' |
15069 | # Determine the default libpath from the value encoded in an empty executable. |
15070 | cat >conftest.$ac_ext <<_ACEOF |
15071 | program main |
15072 | |
15073 | end |
15074 | _ACEOF |
15075 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
15076 | if { (ac_try="$ac_link" |
15077 | case "(($ac_try" in |
15078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
15079 | *) ac_try_echo=$ac_try;; |
15080 | esac |
15081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
15082 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
15083 | ac_status=$? |
15084 | grep -v '^ *+' conftest.er1 >conftest.err |
15085 | rm -f conftest.er1 |
15086 | cat conftest.err >&5 |
15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
15088 | (exit $ac_status); } && { |
15089 | test -z "$ac_f77_werror_flag" || |
15090 | test ! -s conftest.err |
15091 | } && test -s conftest$ac_exeext && |
15092 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
15093 | |
0fde1ce3 |
15094 | lt_aix_libpath_sed=' |
15095 | /Import File Strings/,/^$/ { |
15096 | /^0/ { |
15097 | s/^0 *\(.*\)$/\1/ |
15098 | p |
15099 | } |
15100 | }' |
15101 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
15102 | # Check for a 64-bit object if we didn't find anything. |
0fde1ce3 |
15103 | if test -z "$aix_libpath"; then |
15104 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
15105 | fi |
d9898ee8 |
15106 | else |
15107 | echo "$as_me: failed program was:" >&5 |
15108 | sed 's/^/| /' conftest.$ac_ext >&5 |
15109 | |
64ff59ba |
15110 | |
d9898ee8 |
15111 | fi |
64ff59ba |
15112 | |
15113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
15114 | conftest$ac_exeext conftest.$ac_ext |
15115 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
15116 | |
15117 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
15118 | 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" |
15119 | else |
15120 | if test "$host_cpu" = ia64; then |
15121 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
15122 | allow_undefined_flag_F77="-z nodefs" |
15123 | 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" |
15124 | else |
15125 | # Determine the default libpath from the value encoded in an empty executable. |
15126 | cat >conftest.$ac_ext <<_ACEOF |
15127 | program main |
15128 | |
15129 | end |
15130 | _ACEOF |
15131 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
15132 | if { (ac_try="$ac_link" |
15133 | case "(($ac_try" in |
15134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
15135 | *) ac_try_echo=$ac_try;; |
15136 | esac |
15137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
15138 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
15139 | ac_status=$? |
15140 | grep -v '^ *+' conftest.er1 >conftest.err |
15141 | rm -f conftest.er1 |
15142 | cat conftest.err >&5 |
15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
15144 | (exit $ac_status); } && { |
15145 | test -z "$ac_f77_werror_flag" || |
15146 | test ! -s conftest.err |
15147 | } && test -s conftest$ac_exeext && |
15148 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
15149 | |
0fde1ce3 |
15150 | lt_aix_libpath_sed=' |
15151 | /Import File Strings/,/^$/ { |
15152 | /^0/ { |
15153 | s/^0 *\(.*\)$/\1/ |
15154 | p |
15155 | } |
15156 | }' |
15157 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
15158 | # Check for a 64-bit object if we didn't find anything. |
0fde1ce3 |
15159 | if test -z "$aix_libpath"; then |
15160 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
15161 | fi |
d9898ee8 |
15162 | else |
15163 | echo "$as_me: failed program was:" >&5 |
15164 | sed 's/^/| /' conftest.$ac_ext >&5 |
15165 | |
64ff59ba |
15166 | |
d9898ee8 |
15167 | fi |
64ff59ba |
15168 | |
15169 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
15170 | conftest$ac_exeext conftest.$ac_ext |
15171 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
15172 | |
15173 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
15174 | # Warning - without using the other run time loading flags, |
15175 | # -berok will link without error, but may produce a broken library. |
15176 | no_undefined_flag_F77=' ${wl}-bernotok' |
15177 | allow_undefined_flag_F77=' ${wl}-berok' |
15178 | # Exported symbols can be pulled into shared objects from archives |
15179 | whole_archive_flag_spec_F77='$convenience' |
15180 | archive_cmds_need_lc_F77=yes |
15181 | # This is similar to how AIX traditionally builds its shared libraries. |
15182 | 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' |
15183 | fi |
15184 | fi |
15185 | ;; |
15186 | |
15187 | amigaos*) |
15188 | 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)' |
15189 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15190 | hardcode_minus_L_F77=yes |
15191 | # see comment about different semantics on the GNU ld section |
15192 | ld_shlibs_F77=no |
15193 | ;; |
15194 | |
15195 | bsdi[45]*) |
15196 | export_dynamic_flag_spec_F77=-rdynamic |
15197 | ;; |
15198 | |
15199 | cygwin* | mingw* | pw32*) |
15200 | # When not using gcc, we currently assume that we are using |
15201 | # Microsoft Visual C++. |
15202 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
15203 | # no search path for DLLs. |
15204 | hardcode_libdir_flag_spec_F77=' ' |
15205 | allow_undefined_flag_F77=unsupported |
15206 | # Tell ltmain to make .lib files, not .a files. |
15207 | libext=lib |
15208 | # Tell ltmain to make .dll files, not .so files. |
15209 | shrext_cmds=".dll" |
15210 | # FIXME: Setting linknames here is a bad hack. |
15211 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
15212 | # The linker will automatically build a .lib file if we build a DLL. |
15213 | old_archive_From_new_cmds_F77='true' |
15214 | # FIXME: Should let the user specify the lib program. |
0fde1ce3 |
15215 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
15216 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
15217 | enable_shared_with_static_runtimes_F77=yes |
15218 | ;; |
15219 | |
15220 | darwin* | rhapsody*) |
15221 | case $host_os in |
15222 | rhapsody* | darwin1.[012]) |
15223 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
15224 | ;; |
15225 | *) # Darwin 1.3 on |
15226 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
15227 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
15228 | else |
15229 | case ${MACOSX_DEPLOYMENT_TARGET} in |
15230 | 10.[012]) |
15231 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
15232 | ;; |
15233 | 10.*) |
15234 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
15235 | ;; |
15236 | esac |
15237 | fi |
15238 | ;; |
15239 | esac |
15240 | archive_cmds_need_lc_F77=no |
15241 | hardcode_direct_F77=no |
15242 | hardcode_automatic_F77=yes |
15243 | hardcode_shlibpath_var_F77=unsupported |
15244 | whole_archive_flag_spec_F77='' |
15245 | link_all_deplibs_F77=yes |
15246 | if test "$GCC" = yes ; then |
15247 | output_verbose_link_cmd='echo' |
15248 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
15249 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
15250 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
15251 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
15252 | 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}' |
15253 | else |
15254 | case $cc_basename in |
15255 | xlc*) |
15256 | output_verbose_link_cmd='echo' |
0fde1ce3 |
15257 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
15258 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
15259 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
0fde1ce3 |
15260 | 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}' |
d9898ee8 |
15261 | 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}' |
15262 | ;; |
15263 | *) |
15264 | ld_shlibs_F77=no |
15265 | ;; |
15266 | esac |
15267 | fi |
15268 | ;; |
15269 | |
15270 | dgux*) |
15271 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15272 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15273 | hardcode_shlibpath_var_F77=no |
15274 | ;; |
15275 | |
15276 | freebsd1*) |
15277 | ld_shlibs_F77=no |
15278 | ;; |
15279 | |
15280 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
15281 | # support. Future versions do this automatically, but an explicit c++rt0.o |
15282 | # does not break anything, and helps significantly (at the cost of a little |
15283 | # extra space). |
15284 | freebsd2.2*) |
15285 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
15286 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15287 | hardcode_direct_F77=yes |
15288 | hardcode_shlibpath_var_F77=no |
15289 | ;; |
15290 | |
15291 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
15292 | freebsd2*) |
15293 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15294 | hardcode_direct_F77=yes |
15295 | hardcode_minus_L_F77=yes |
15296 | hardcode_shlibpath_var_F77=no |
15297 | ;; |
15298 | |
15299 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
0fde1ce3 |
15300 | freebsd* | dragonfly*) |
d9898ee8 |
15301 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
15302 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15303 | hardcode_direct_F77=yes |
15304 | hardcode_shlibpath_var_F77=no |
15305 | ;; |
15306 | |
15307 | hpux9*) |
15308 | if test "$GCC" = yes; then |
15309 | 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' |
15310 | else |
15311 | 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' |
15312 | fi |
15313 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15314 | hardcode_libdir_separator_F77=: |
15315 | hardcode_direct_F77=yes |
15316 | |
15317 | # hardcode_minus_L: Not really in the search PATH, |
15318 | # but as the default location of the library. |
15319 | hardcode_minus_L_F77=yes |
15320 | export_dynamic_flag_spec_F77='${wl}-E' |
15321 | ;; |
15322 | |
15323 | hpux10*) |
15324 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15325 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15326 | else |
15327 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
15328 | fi |
15329 | if test "$with_gnu_ld" = no; then |
15330 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15331 | hardcode_libdir_separator_F77=: |
15332 | |
15333 | hardcode_direct_F77=yes |
15334 | export_dynamic_flag_spec_F77='${wl}-E' |
15335 | |
15336 | # hardcode_minus_L: Not really in the search PATH, |
15337 | # but as the default location of the library. |
15338 | hardcode_minus_L_F77=yes |
15339 | fi |
15340 | ;; |
15341 | |
15342 | hpux11*) |
15343 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15344 | case $host_cpu in |
15345 | hppa*64*) |
15346 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15347 | ;; |
15348 | ia64*) |
15349 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15350 | ;; |
15351 | *) |
15352 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15353 | ;; |
15354 | esac |
15355 | else |
15356 | case $host_cpu in |
15357 | hppa*64*) |
15358 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15359 | ;; |
15360 | ia64*) |
15361 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15362 | ;; |
15363 | *) |
15364 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15365 | ;; |
15366 | esac |
15367 | fi |
15368 | if test "$with_gnu_ld" = no; then |
15369 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15370 | hardcode_libdir_separator_F77=: |
15371 | |
15372 | case $host_cpu in |
15373 | hppa*64*|ia64*) |
15374 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
15375 | hardcode_direct_F77=no |
15376 | hardcode_shlibpath_var_F77=no |
15377 | ;; |
15378 | *) |
15379 | hardcode_direct_F77=yes |
15380 | export_dynamic_flag_spec_F77='${wl}-E' |
15381 | |
15382 | # hardcode_minus_L: Not really in the search PATH, |
15383 | # but as the default location of the library. |
15384 | hardcode_minus_L_F77=yes |
15385 | ;; |
15386 | esac |
15387 | fi |
15388 | ;; |
15389 | |
15390 | irix5* | irix6* | nonstopux*) |
15391 | if test "$GCC" = yes; then |
15392 | 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' |
15393 | else |
15394 | 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' |
15395 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15396 | fi |
15397 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15398 | hardcode_libdir_separator_F77=: |
15399 | link_all_deplibs_F77=yes |
15400 | ;; |
15401 | |
15402 | netbsd*) |
15403 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15404 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15405 | else |
15406 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15407 | fi |
15408 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15409 | hardcode_direct_F77=yes |
15410 | hardcode_shlibpath_var_F77=no |
15411 | ;; |
15412 | |
15413 | newsos6) |
15414 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15415 | hardcode_direct_F77=yes |
15416 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15417 | hardcode_libdir_separator_F77=: |
15418 | hardcode_shlibpath_var_F77=no |
15419 | ;; |
15420 | |
15421 | openbsd*) |
0fde1ce3 |
15422 | if test -f /usr/libexec/ld.so; then |
15423 | hardcode_direct_F77=yes |
15424 | hardcode_shlibpath_var_F77=no |
15425 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15426 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15427 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15428 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15429 | export_dynamic_flag_spec_F77='${wl}-E' |
15430 | else |
15431 | case $host_os in |
15432 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15433 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15434 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15435 | ;; |
15436 | *) |
15437 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15438 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15439 | ;; |
15440 | esac |
15441 | fi |
d9898ee8 |
15442 | else |
0fde1ce3 |
15443 | ld_shlibs_F77=no |
d9898ee8 |
15444 | fi |
15445 | ;; |
15446 | |
15447 | os2*) |
15448 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15449 | hardcode_minus_L_F77=yes |
15450 | allow_undefined_flag_F77=unsupported |
15451 | 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' |
15452 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15453 | ;; |
15454 | |
15455 | osf3*) |
15456 | if test "$GCC" = yes; then |
15457 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15458 | 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' |
15459 | else |
15460 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15461 | 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' |
15462 | fi |
15463 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15464 | hardcode_libdir_separator_F77=: |
15465 | ;; |
15466 | |
15467 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15468 | if test "$GCC" = yes; then |
15469 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15470 | 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' |
15471 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15472 | else |
15473 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15474 | 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' |
15475 | 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~ |
15476 | $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' |
15477 | |
15478 | # Both c and cxx compiler support -rpath directly |
15479 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15480 | fi |
15481 | hardcode_libdir_separator_F77=: |
15482 | ;; |
15483 | |
15484 | solaris*) |
15485 | no_undefined_flag_F77=' -z text' |
15486 | if test "$GCC" = yes; then |
15487 | wlarc='${wl}' |
15488 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15489 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15490 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15491 | else |
15492 | wlarc='' |
15493 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15494 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15495 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15496 | fi |
15497 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15498 | hardcode_shlibpath_var_F77=no |
15499 | case $host_os in |
15500 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15501 | *) |
0fde1ce3 |
15502 | # The compiler driver will combine and reorder linker options, |
15503 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
15504 | # but is careful enough not to reorder. |
d9898ee8 |
15505 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
0fde1ce3 |
15506 | if test "$GCC" = yes; then |
15507 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
15508 | else |
15509 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' |
15510 | fi |
15511 | ;; |
d9898ee8 |
15512 | esac |
15513 | link_all_deplibs_F77=yes |
15514 | ;; |
15515 | |
15516 | sunos4*) |
15517 | if test "x$host_vendor" = xsequent; then |
15518 | # Use $CC to link under sequent, because it throws in some extra .o |
15519 | # files that make .init and .fini sections work. |
15520 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15521 | else |
15522 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15523 | fi |
15524 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15525 | hardcode_direct_F77=yes |
15526 | hardcode_minus_L_F77=yes |
15527 | hardcode_shlibpath_var_F77=no |
15528 | ;; |
15529 | |
15530 | sysv4) |
15531 | case $host_vendor in |
15532 | sni) |
15533 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15534 | hardcode_direct_F77=yes # is this really true??? |
15535 | ;; |
15536 | siemens) |
15537 | ## LD is ld it makes a PLAMLIB |
15538 | ## CC just makes a GrossModule. |
15539 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15540 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15541 | hardcode_direct_F77=no |
15542 | ;; |
15543 | motorola) |
15544 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15545 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15546 | ;; |
15547 | esac |
15548 | runpath_var='LD_RUN_PATH' |
15549 | hardcode_shlibpath_var_F77=no |
15550 | ;; |
15551 | |
15552 | sysv4.3*) |
15553 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15554 | hardcode_shlibpath_var_F77=no |
15555 | export_dynamic_flag_spec_F77='-Bexport' |
15556 | ;; |
15557 | |
15558 | sysv4*MP*) |
15559 | if test -d /usr/nec; then |
15560 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15561 | hardcode_shlibpath_var_F77=no |
15562 | runpath_var=LD_RUN_PATH |
15563 | hardcode_runpath_var=yes |
15564 | ld_shlibs_F77=yes |
15565 | fi |
15566 | ;; |
15567 | |
0fde1ce3 |
15568 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
15569 | no_undefined_flag_F77='${wl}-z,text' |
15570 | archive_cmds_need_lc_F77=no |
15571 | hardcode_shlibpath_var_F77=no |
15572 | runpath_var='LD_RUN_PATH' |
15573 | |
15574 | if test "$GCC" = yes; then |
15575 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15576 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15577 | else |
15578 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15579 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15580 | fi |
15581 | ;; |
15582 | |
15583 | sysv5* | sco3.2v5* | sco5v6*) |
15584 | # Note: We can NOT use -z defs as we might desire, because we do not |
15585 | # link with -lc, and that would cause any symbols used from libc to |
15586 | # always be unresolved, which means just about no library would |
15587 | # ever link correctly. If we're not using GNU ld we use -z text |
15588 | # though, which does catch some bad symbols but isn't as heavy-handed |
15589 | # as -z defs. |
15590 | no_undefined_flag_F77='${wl}-z,text' |
15591 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15592 | archive_cmds_need_lc_F77=no |
15593 | hardcode_shlibpath_var_F77=no |
15594 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15595 | hardcode_libdir_separator_F77=':' |
15596 | link_all_deplibs_F77=yes |
15597 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15598 | runpath_var='LD_RUN_PATH' |
15599 | |
15600 | if test "$GCC" = yes; then |
15601 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15602 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15603 | else |
15604 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15605 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15606 | fi |
15607 | ;; |
15608 | |
15609 | uts4*) |
15610 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15611 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15612 | hardcode_shlibpath_var_F77=no |
15613 | ;; |
15614 | |
15615 | *) |
15616 | ld_shlibs_F77=no |
15617 | ;; |
15618 | esac |
15619 | fi |
15620 | |
64ff59ba |
15621 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15622 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15623 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15624 | |
15625 | # |
15626 | # Do we need to explicitly link libc? |
15627 | # |
15628 | case "x$archive_cmds_need_lc_F77" in |
15629 | x|xyes) |
15630 | # Assume -lc should be added |
15631 | archive_cmds_need_lc_F77=yes |
15632 | |
15633 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15634 | case $archive_cmds_F77 in |
15635 | *'~'*) |
15636 | # FIXME: we may have to deal with multi-command sequences. |
15637 | ;; |
15638 | '$CC '*) |
15639 | # Test whether the compiler implicitly links with -lc since on some |
15640 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15641 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
15642 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15643 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15644 | $rm conftest* |
0fde1ce3 |
15645 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
15646 | |
15647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15648 | (eval $ac_compile) 2>&5 |
15649 | ac_status=$? |
15650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15651 | (exit $ac_status); } 2>conftest.err; then |
15652 | soname=conftest |
15653 | lib=conftest |
15654 | libobjs=conftest.$ac_objext |
15655 | deplibs= |
15656 | wl=$lt_prog_compiler_wl_F77 |
15657 | pic_flag=$lt_prog_compiler_pic_F77 |
15658 | compiler_flags=-v |
15659 | linker_flags=-v |
15660 | verstring= |
15661 | output_objdir=. |
15662 | libname=conftest |
15663 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15664 | allow_undefined_flag_F77= |
15665 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15666 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15667 | ac_status=$? |
15668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15669 | (exit $ac_status); } |
15670 | then |
15671 | archive_cmds_need_lc_F77=no |
15672 | else |
15673 | archive_cmds_need_lc_F77=yes |
15674 | fi |
15675 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15676 | else |
15677 | cat conftest.err 1>&5 |
15678 | fi |
15679 | $rm conftest* |
64ff59ba |
15680 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15681 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15682 | ;; |
15683 | esac |
15684 | fi |
15685 | ;; |
15686 | esac |
15687 | |
64ff59ba |
15688 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15689 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15690 | library_names_spec= |
15691 | libname_spec='lib$name' |
15692 | soname_spec= |
15693 | shrext_cmds=".so" |
15694 | postinstall_cmds= |
15695 | postuninstall_cmds= |
15696 | finish_cmds= |
15697 | finish_eval= |
15698 | shlibpath_var= |
15699 | shlibpath_overrides_runpath=unknown |
15700 | version_type=none |
15701 | dynamic_linker="$host_os ld.so" |
15702 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
0fde1ce3 |
15703 | |
d9898ee8 |
15704 | need_lib_prefix=unknown |
15705 | hardcode_into_libs=no |
15706 | |
15707 | # when you set need_version to no, make sure it does not cause -set_version |
15708 | # flags to be left without arguments |
15709 | need_version=unknown |
15710 | |
15711 | case $host_os in |
15712 | aix3*) |
15713 | version_type=linux |
15714 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15715 | shlibpath_var=LIBPATH |
15716 | |
15717 | # AIX 3 has no versioning support, so we append a major version to the name. |
15718 | soname_spec='${libname}${release}${shared_ext}$major' |
15719 | ;; |
15720 | |
15721 | aix4* | aix5*) |
15722 | version_type=linux |
15723 | need_lib_prefix=no |
15724 | need_version=no |
15725 | hardcode_into_libs=yes |
15726 | if test "$host_cpu" = ia64; then |
15727 | # AIX 5 supports IA64 |
15728 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15729 | shlibpath_var=LD_LIBRARY_PATH |
15730 | else |
15731 | # With GCC up to 2.95.x, collect2 would create an import file |
15732 | # for dependence libraries. The import file would start with |
15733 | # the line `#! .'. This would cause the generated library to |
15734 | # depend on `.', always an invalid library. This was fixed in |
15735 | # development snapshots of GCC prior to 3.0. |
15736 | case $host_os in |
15737 | aix4 | aix4.[01] | aix4.[01].*) |
15738 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15739 | echo ' yes ' |
15740 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15741 | : |
15742 | else |
15743 | can_build_shared=no |
15744 | fi |
15745 | ;; |
15746 | esac |
15747 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15748 | # soname into executable. Probably we can add versioning support to |
15749 | # collect2, so additional links can be useful in future. |
15750 | if test "$aix_use_runtimelinking" = yes; then |
15751 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15752 | # instead of lib<name>.a to let people know that these are not |
15753 | # typical AIX shared libraries. |
15754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15755 | else |
15756 | # We preserve .a as extension for shared libraries through AIX4.2 |
15757 | # and later when we are not doing run time linking. |
15758 | library_names_spec='${libname}${release}.a $libname.a' |
15759 | soname_spec='${libname}${release}${shared_ext}$major' |
15760 | fi |
15761 | shlibpath_var=LIBPATH |
15762 | fi |
15763 | ;; |
15764 | |
15765 | amigaos*) |
15766 | library_names_spec='$libname.ixlibrary $libname.a' |
15767 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15768 | 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' |
15769 | ;; |
15770 | |
15771 | beos*) |
15772 | library_names_spec='${libname}${shared_ext}' |
15773 | dynamic_linker="$host_os ld.so" |
15774 | shlibpath_var=LIBRARY_PATH |
15775 | ;; |
15776 | |
15777 | bsdi[45]*) |
15778 | version_type=linux |
15779 | need_version=no |
15780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15781 | soname_spec='${libname}${release}${shared_ext}$major' |
15782 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15783 | shlibpath_var=LD_LIBRARY_PATH |
15784 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15785 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15786 | # the default ld.so.conf also contains /usr/contrib/lib and |
15787 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15788 | # libtool to hard-code these into programs |
15789 | ;; |
15790 | |
15791 | cygwin* | mingw* | pw32*) |
15792 | version_type=windows |
15793 | shrext_cmds=".dll" |
15794 | need_version=no |
15795 | need_lib_prefix=no |
15796 | |
15797 | case $GCC,$host_os in |
15798 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15799 | library_names_spec='$libname.dll.a' |
15800 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15801 | postinstall_cmds='base_file=`basename \${file}`~ |
15802 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15803 | dldir=$destdir/`dirname \$dlpath`~ |
15804 | test -d \$dldir || mkdir -p \$dldir~ |
15805 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15806 | chmod a+x \$dldir/$dlname' |
15807 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15808 | dlpath=$dir/\$dldll~ |
15809 | $rm \$dlpath' |
15810 | shlibpath_overrides_runpath=yes |
15811 | |
15812 | case $host_os in |
15813 | cygwin*) |
15814 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15815 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15816 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15817 | ;; |
15818 | mingw*) |
15819 | # MinGW DLLs use traditional 'lib' prefix |
15820 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15821 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15822 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15823 | # It is most probably a Windows format PATH printed by |
15824 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15825 | # path with ; separators, and with drive letters. We can handle the |
15826 | # drive letters (cygwin fileutils understands them), so leave them, |
15827 | # especially as we might pass files found there to a mingw objdump, |
15828 | # which wouldn't understand a cygwinified path. Ahh. |
15829 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15830 | else |
15831 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15832 | fi |
15833 | ;; |
15834 | pw32*) |
15835 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15836 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15837 | ;; |
15838 | esac |
15839 | ;; |
15840 | |
15841 | *) |
15842 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15843 | ;; |
15844 | esac |
15845 | dynamic_linker='Win32 ld.exe' |
15846 | # FIXME: first we should search . and the directory the executable is in |
15847 | shlibpath_var=PATH |
15848 | ;; |
15849 | |
15850 | darwin* | rhapsody*) |
15851 | dynamic_linker="$host_os dyld" |
15852 | version_type=darwin |
15853 | need_lib_prefix=no |
15854 | need_version=no |
15855 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15856 | soname_spec='${libname}${release}${major}$shared_ext' |
15857 | shlibpath_overrides_runpath=yes |
15858 | shlibpath_var=DYLD_LIBRARY_PATH |
15859 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
0fde1ce3 |
15860 | |
d9898ee8 |
15861 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15862 | ;; |
15863 | |
15864 | dgux*) |
15865 | version_type=linux |
15866 | need_lib_prefix=no |
15867 | need_version=no |
15868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15869 | soname_spec='${libname}${release}${shared_ext}$major' |
15870 | shlibpath_var=LD_LIBRARY_PATH |
15871 | ;; |
15872 | |
15873 | freebsd1*) |
15874 | dynamic_linker=no |
15875 | ;; |
15876 | |
d9898ee8 |
15877 | freebsd* | dragonfly*) |
15878 | # DragonFly does not have aout. When/if they implement a new |
15879 | # versioning mechanism, adjust this. |
15880 | if test -x /usr/bin/objformat; then |
15881 | objformat=`/usr/bin/objformat` |
15882 | else |
15883 | case $host_os in |
15884 | freebsd[123]*) objformat=aout ;; |
15885 | *) objformat=elf ;; |
15886 | esac |
15887 | fi |
15888 | version_type=freebsd-$objformat |
15889 | case $version_type in |
15890 | freebsd-elf*) |
15891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15892 | need_version=no |
15893 | need_lib_prefix=no |
15894 | ;; |
15895 | freebsd-*) |
15896 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15897 | need_version=yes |
15898 | ;; |
15899 | esac |
15900 | shlibpath_var=LD_LIBRARY_PATH |
15901 | case $host_os in |
15902 | freebsd2*) |
15903 | shlibpath_overrides_runpath=yes |
15904 | ;; |
15905 | freebsd3.[01]* | freebsdelf3.[01]*) |
15906 | shlibpath_overrides_runpath=yes |
15907 | hardcode_into_libs=yes |
15908 | ;; |
15909 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15910 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15911 | shlibpath_overrides_runpath=no |
15912 | hardcode_into_libs=yes |
15913 | ;; |
0fde1ce3 |
15914 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
15915 | shlibpath_overrides_runpath=yes |
15916 | hardcode_into_libs=yes |
15917 | ;; |
15918 | esac |
15919 | ;; |
15920 | |
15921 | gnu*) |
15922 | version_type=linux |
15923 | need_lib_prefix=no |
15924 | need_version=no |
15925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15926 | soname_spec='${libname}${release}${shared_ext}$major' |
15927 | shlibpath_var=LD_LIBRARY_PATH |
15928 | hardcode_into_libs=yes |
15929 | ;; |
15930 | |
15931 | hpux9* | hpux10* | hpux11*) |
15932 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15933 | # link against other versions. |
15934 | version_type=sunos |
15935 | need_lib_prefix=no |
15936 | need_version=no |
15937 | case $host_cpu in |
15938 | ia64*) |
15939 | shrext_cmds='.so' |
15940 | hardcode_into_libs=yes |
15941 | dynamic_linker="$host_os dld.so" |
15942 | shlibpath_var=LD_LIBRARY_PATH |
15943 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15945 | soname_spec='${libname}${release}${shared_ext}$major' |
15946 | if test "X$HPUX_IA64_MODE" = X32; then |
15947 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15948 | else |
15949 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15950 | fi |
15951 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15952 | ;; |
15953 | hppa*64*) |
15954 | shrext_cmds='.sl' |
15955 | hardcode_into_libs=yes |
15956 | dynamic_linker="$host_os dld.sl" |
15957 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15958 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15960 | soname_spec='${libname}${release}${shared_ext}$major' |
15961 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15962 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15963 | ;; |
15964 | *) |
15965 | shrext_cmds='.sl' |
15966 | dynamic_linker="$host_os dld.sl" |
15967 | shlibpath_var=SHLIB_PATH |
15968 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15970 | soname_spec='${libname}${release}${shared_ext}$major' |
15971 | ;; |
15972 | esac |
15973 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15974 | postinstall_cmds='chmod 555 $lib' |
15975 | ;; |
15976 | |
0fde1ce3 |
15977 | interix[3-9]*) |
d9898ee8 |
15978 | version_type=linux |
15979 | need_lib_prefix=no |
15980 | need_version=no |
15981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15982 | soname_spec='${libname}${release}${shared_ext}$major' |
15983 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15984 | shlibpath_var=LD_LIBRARY_PATH |
15985 | shlibpath_overrides_runpath=no |
15986 | hardcode_into_libs=yes |
15987 | ;; |
15988 | |
15989 | irix5* | irix6* | nonstopux*) |
15990 | case $host_os in |
15991 | nonstopux*) version_type=nonstopux ;; |
15992 | *) |
15993 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15994 | version_type=linux |
15995 | else |
15996 | version_type=irix |
15997 | fi ;; |
15998 | esac |
15999 | need_lib_prefix=no |
16000 | need_version=no |
16001 | soname_spec='${libname}${release}${shared_ext}$major' |
16002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
16003 | case $host_os in |
16004 | irix5* | nonstopux*) |
16005 | libsuff= shlibsuff= |
16006 | ;; |
16007 | *) |
16008 | case $LD in # libtool.m4 will add one of these switches to LD |
16009 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
16010 | libsuff= shlibsuff= libmagic=32-bit;; |
16011 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
16012 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
16013 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
16014 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
16015 | *) libsuff= shlibsuff= libmagic=never-match;; |
16016 | esac |
16017 | ;; |
16018 | esac |
16019 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
16020 | shlibpath_overrides_runpath=no |
16021 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
16022 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
16023 | hardcode_into_libs=yes |
16024 | ;; |
16025 | |
16026 | # No shared lib support for Linux oldld, aout, or coff. |
16027 | linux*oldld* | linux*aout* | linux*coff*) |
16028 | dynamic_linker=no |
16029 | ;; |
16030 | |
16031 | # This must be Linux ELF. |
0fde1ce3 |
16032 | linux* | k*bsd*-gnu) |
d9898ee8 |
16033 | version_type=linux |
16034 | need_lib_prefix=no |
16035 | need_version=no |
16036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16037 | soname_spec='${libname}${release}${shared_ext}$major' |
16038 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
16039 | shlibpath_var=LD_LIBRARY_PATH |
16040 | shlibpath_overrides_runpath=no |
16041 | # This implies no fast_install, which is unacceptable. |
16042 | # Some rework will be needed to allow for fast_install |
16043 | # before this can be enabled. |
16044 | hardcode_into_libs=yes |
0fde1ce3 |
16045 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
16046 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
16047 | |
16048 | # Append ld.so.conf contents to the search path |
16049 | if test -f /etc/ld.so.conf; then |
0fde1ce3 |
16050 | 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' ' '` |
16051 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
16052 | fi |
16053 | |
16054 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
16055 | # powerpc, because MkLinux only supported shared libraries with the |
16056 | # GNU dynamic linker. Since this was broken with cross compilers, |
16057 | # most powerpc-linux boxes support dynamic linking these days and |
16058 | # people can always --disable-shared, the test was removed, and we |
16059 | # assume the GNU/Linux dynamic linker is in use. |
16060 | dynamic_linker='GNU/Linux ld.so' |
16061 | ;; |
16062 | |
d9898ee8 |
16063 | netbsd*) |
16064 | version_type=sunos |
16065 | need_lib_prefix=no |
16066 | need_version=no |
16067 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16069 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
16070 | dynamic_linker='NetBSD (a.out) ld.so' |
16071 | else |
16072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
16073 | soname_spec='${libname}${release}${shared_ext}$major' |
16074 | dynamic_linker='NetBSD ld.elf_so' |
16075 | fi |
16076 | shlibpath_var=LD_LIBRARY_PATH |
16077 | shlibpath_overrides_runpath=yes |
16078 | hardcode_into_libs=yes |
16079 | ;; |
16080 | |
16081 | newsos6) |
16082 | version_type=linux |
16083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16084 | shlibpath_var=LD_LIBRARY_PATH |
16085 | shlibpath_overrides_runpath=yes |
16086 | ;; |
16087 | |
16088 | nto-qnx*) |
16089 | version_type=linux |
16090 | need_lib_prefix=no |
16091 | need_version=no |
16092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16093 | soname_spec='${libname}${release}${shared_ext}$major' |
16094 | shlibpath_var=LD_LIBRARY_PATH |
16095 | shlibpath_overrides_runpath=yes |
16096 | ;; |
16097 | |
16098 | openbsd*) |
16099 | version_type=sunos |
16100 | sys_lib_dlsearch_path_spec="/usr/lib" |
16101 | need_lib_prefix=no |
16102 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
16103 | case $host_os in |
16104 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
16105 | *) need_version=no ;; |
16106 | esac |
16107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16108 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
16109 | shlibpath_var=LD_LIBRARY_PATH |
16110 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16111 | case $host_os in |
16112 | openbsd2.[89] | openbsd2.[89].*) |
16113 | shlibpath_overrides_runpath=no |
16114 | ;; |
16115 | *) |
16116 | shlibpath_overrides_runpath=yes |
16117 | ;; |
16118 | esac |
16119 | else |
16120 | shlibpath_overrides_runpath=yes |
16121 | fi |
16122 | ;; |
16123 | |
16124 | os2*) |
16125 | libname_spec='$name' |
16126 | shrext_cmds=".dll" |
16127 | need_lib_prefix=no |
16128 | library_names_spec='$libname${shared_ext} $libname.a' |
16129 | dynamic_linker='OS/2 ld.exe' |
16130 | shlibpath_var=LIBPATH |
16131 | ;; |
16132 | |
16133 | osf3* | osf4* | osf5*) |
16134 | version_type=osf |
16135 | need_lib_prefix=no |
16136 | need_version=no |
16137 | soname_spec='${libname}${release}${shared_ext}$major' |
16138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16139 | shlibpath_var=LD_LIBRARY_PATH |
16140 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
16141 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
16142 | ;; |
16143 | |
0fde1ce3 |
16144 | rdos*) |
16145 | dynamic_linker=no |
16146 | ;; |
16147 | |
d9898ee8 |
16148 | solaris*) |
16149 | version_type=linux |
16150 | need_lib_prefix=no |
16151 | need_version=no |
16152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16153 | soname_spec='${libname}${release}${shared_ext}$major' |
16154 | shlibpath_var=LD_LIBRARY_PATH |
16155 | shlibpath_overrides_runpath=yes |
16156 | hardcode_into_libs=yes |
16157 | # ldd complains unless libraries are executable |
16158 | postinstall_cmds='chmod +x $lib' |
16159 | ;; |
16160 | |
16161 | sunos4*) |
16162 | version_type=sunos |
16163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16164 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
16165 | shlibpath_var=LD_LIBRARY_PATH |
16166 | shlibpath_overrides_runpath=yes |
16167 | if test "$with_gnu_ld" = yes; then |
16168 | need_lib_prefix=no |
16169 | fi |
16170 | need_version=yes |
16171 | ;; |
16172 | |
16173 | sysv4 | sysv4.3*) |
16174 | version_type=linux |
16175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16176 | soname_spec='${libname}${release}${shared_ext}$major' |
16177 | shlibpath_var=LD_LIBRARY_PATH |
16178 | case $host_vendor in |
16179 | sni) |
16180 | shlibpath_overrides_runpath=no |
16181 | need_lib_prefix=no |
16182 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
16183 | runpath_var=LD_RUN_PATH |
16184 | ;; |
16185 | siemens) |
16186 | need_lib_prefix=no |
16187 | ;; |
16188 | motorola) |
16189 | need_lib_prefix=no |
16190 | need_version=no |
16191 | shlibpath_overrides_runpath=no |
16192 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
16193 | ;; |
16194 | esac |
16195 | ;; |
16196 | |
16197 | sysv4*MP*) |
16198 | if test -d /usr/nec ;then |
16199 | version_type=linux |
16200 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
16201 | soname_spec='$libname${shared_ext}.$major' |
16202 | shlibpath_var=LD_LIBRARY_PATH |
16203 | fi |
16204 | ;; |
16205 | |
16206 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
16207 | version_type=freebsd-elf |
16208 | need_lib_prefix=no |
16209 | need_version=no |
16210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
16211 | soname_spec='${libname}${release}${shared_ext}$major' |
16212 | shlibpath_var=LD_LIBRARY_PATH |
16213 | hardcode_into_libs=yes |
16214 | if test "$with_gnu_ld" = yes; then |
16215 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
16216 | shlibpath_overrides_runpath=no |
16217 | else |
16218 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
16219 | shlibpath_overrides_runpath=yes |
16220 | case $host_os in |
16221 | sco3.2v5*) |
16222 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
16223 | ;; |
16224 | esac |
16225 | fi |
16226 | sys_lib_dlsearch_path_spec='/usr/lib' |
16227 | ;; |
16228 | |
16229 | uts4*) |
16230 | version_type=linux |
16231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16232 | soname_spec='${libname}${release}${shared_ext}$major' |
16233 | shlibpath_var=LD_LIBRARY_PATH |
16234 | ;; |
16235 | |
16236 | *) |
16237 | dynamic_linker=no |
16238 | ;; |
16239 | esac |
64ff59ba |
16240 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
16241 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
16242 | test "$dynamic_linker" = no && can_build_shared=no |
16243 | |
16244 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
16245 | if test "$GCC" = yes; then |
16246 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
16247 | fi |
16248 | |
64ff59ba |
16249 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
16250 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
16251 | hardcode_action_F77= |
16252 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
16253 | test -n "$runpath_var_F77" || \ |
16254 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
16255 | |
16256 | # We can hardcode non-existant directories. |
16257 | if test "$hardcode_direct_F77" != no && |
16258 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
16259 | # have to relink, otherwise we might link with an installed library |
16260 | # when we should be linking with a yet-to-be-installed one |
16261 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
16262 | test "$hardcode_minus_L_F77" != no; then |
16263 | # Linking always hardcodes the temporary library directory. |
16264 | hardcode_action_F77=relink |
16265 | else |
16266 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
16267 | hardcode_action_F77=immediate |
16268 | fi |
16269 | else |
16270 | # We cannot hardcode anything, or else we can only hardcode existing |
16271 | # directories. |
16272 | hardcode_action_F77=unsupported |
16273 | fi |
64ff59ba |
16274 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
16275 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
16276 | |
16277 | if test "$hardcode_action_F77" = relink; then |
16278 | # Fast installation is not supported |
16279 | enable_fast_install=no |
16280 | elif test "$shlibpath_overrides_runpath" = yes || |
16281 | test "$enable_shared" = no; then |
16282 | # Fast installation is not necessary |
16283 | enable_fast_install=needless |
16284 | fi |
16285 | |
16286 | |
16287 | # The else clause should only fire when bootstrapping the |
16288 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
16289 | # with your package, and you will get complaints that there are |
16290 | # no rules to generate ltmain.sh. |
16291 | if test -f "$ltmain"; then |
16292 | # See if we are running on zsh, and set the options which allow our commands through |
16293 | # without removal of \ escapes. |
16294 | if test -n "${ZSH_VERSION+set}" ; then |
16295 | setopt NO_GLOB_SUBST |
16296 | fi |
16297 | # Now quote all the things that may contain metacharacters while being |
16298 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
16299 | # variables and quote the copies for generation of the libtool script. |
16300 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
16301 | SED SHELL STRIP \ |
16302 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
16303 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
16304 | deplibs_check_method reload_flag reload_cmds need_locks \ |
16305 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
16306 | lt_cv_sys_global_symbol_to_c_name_address \ |
16307 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
16308 | old_postinstall_cmds old_postuninstall_cmds \ |
16309 | compiler_F77 \ |
16310 | CC_F77 \ |
16311 | LD_F77 \ |
16312 | lt_prog_compiler_wl_F77 \ |
16313 | lt_prog_compiler_pic_F77 \ |
16314 | lt_prog_compiler_static_F77 \ |
16315 | lt_prog_compiler_no_builtin_flag_F77 \ |
16316 | export_dynamic_flag_spec_F77 \ |
16317 | thread_safe_flag_spec_F77 \ |
16318 | whole_archive_flag_spec_F77 \ |
16319 | enable_shared_with_static_runtimes_F77 \ |
16320 | old_archive_cmds_F77 \ |
16321 | old_archive_from_new_cmds_F77 \ |
16322 | predep_objects_F77 \ |
16323 | postdep_objects_F77 \ |
16324 | predeps_F77 \ |
16325 | postdeps_F77 \ |
16326 | compiler_lib_search_path_F77 \ |
16327 | archive_cmds_F77 \ |
16328 | archive_expsym_cmds_F77 \ |
16329 | postinstall_cmds_F77 \ |
16330 | postuninstall_cmds_F77 \ |
16331 | old_archive_from_expsyms_cmds_F77 \ |
16332 | allow_undefined_flag_F77 \ |
16333 | no_undefined_flag_F77 \ |
16334 | export_symbols_cmds_F77 \ |
16335 | hardcode_libdir_flag_spec_F77 \ |
16336 | hardcode_libdir_flag_spec_ld_F77 \ |
16337 | hardcode_libdir_separator_F77 \ |
16338 | hardcode_automatic_F77 \ |
16339 | module_cmds_F77 \ |
16340 | module_expsym_cmds_F77 \ |
16341 | lt_cv_prog_compiler_c_o_F77 \ |
0fde1ce3 |
16342 | fix_srcfile_path_F77 \ |
d9898ee8 |
16343 | exclude_expsyms_F77 \ |
16344 | include_expsyms_F77; do |
16345 | |
16346 | case $var in |
16347 | old_archive_cmds_F77 | \ |
16348 | old_archive_from_new_cmds_F77 | \ |
16349 | archive_cmds_F77 | \ |
16350 | archive_expsym_cmds_F77 | \ |
16351 | module_cmds_F77 | \ |
16352 | module_expsym_cmds_F77 | \ |
16353 | old_archive_from_expsyms_cmds_F77 | \ |
16354 | export_symbols_cmds_F77 | \ |
16355 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
16356 | postinstall_cmds | postuninstall_cmds | \ |
16357 | old_postinstall_cmds | old_postuninstall_cmds | \ |
16358 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
16359 | # Double-quote double-evaled strings. |
16360 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
16361 | ;; |
16362 | *) |
16363 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
16364 | ;; |
16365 | esac |
16366 | done |
16367 | |
16368 | case $lt_echo in |
16369 | *'\$0 --fallback-echo"') |
16370 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
16371 | ;; |
16372 | esac |
16373 | |
16374 | cfgfile="$ofile" |
16375 | |
16376 | cat <<__EOF__ >> "$cfgfile" |
16377 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
16378 | |
16379 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16380 | |
16381 | # Shell to use when invoking shell scripts. |
16382 | SHELL=$lt_SHELL |
16383 | |
16384 | # Whether or not to build shared libraries. |
16385 | build_libtool_libs=$enable_shared |
16386 | |
16387 | # Whether or not to build static libraries. |
16388 | build_old_libs=$enable_static |
16389 | |
16390 | # Whether or not to add -lc for building shared libraries. |
16391 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
16392 | |
16393 | # Whether or not to disallow shared libs when runtime libs are static |
16394 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
16395 | |
16396 | # Whether or not to optimize for fast installation. |
16397 | fast_install=$enable_fast_install |
16398 | |
16399 | # The host system. |
16400 | host_alias=$host_alias |
16401 | host=$host |
16402 | host_os=$host_os |
16403 | |
16404 | # The build system. |
16405 | build_alias=$build_alias |
16406 | build=$build |
16407 | build_os=$build_os |
16408 | |
16409 | # An echo program that does not interpret backslashes. |
16410 | echo=$lt_echo |
16411 | |
16412 | # The archiver. |
16413 | AR=$lt_AR |
16414 | AR_FLAGS=$lt_AR_FLAGS |
16415 | |
16416 | # A C compiler. |
16417 | LTCC=$lt_LTCC |
16418 | |
16419 | # LTCC compiler flags. |
16420 | LTCFLAGS=$lt_LTCFLAGS |
16421 | |
16422 | # A language-specific compiler. |
16423 | CC=$lt_compiler_F77 |
16424 | |
16425 | # Is the compiler the GNU C compiler? |
16426 | with_gcc=$GCC_F77 |
16427 | |
d9898ee8 |
16428 | # An ERE matcher. |
16429 | EGREP=$lt_EGREP |
16430 | |
16431 | # The linker used to build libraries. |
16432 | LD=$lt_LD_F77 |
16433 | |
16434 | # Whether we need hard or soft links. |
16435 | LN_S=$lt_LN_S |
16436 | |
16437 | # A BSD-compatible nm program. |
16438 | NM=$lt_NM |
16439 | |
16440 | # A symbol stripping program |
16441 | STRIP=$lt_STRIP |
16442 | |
16443 | # Used to examine libraries when file_magic_cmd begins "file" |
16444 | MAGIC_CMD=$MAGIC_CMD |
16445 | |
16446 | # Used on cygwin: DLL creation program. |
16447 | DLLTOOL="$DLLTOOL" |
16448 | |
16449 | # Used on cygwin: object dumper. |
16450 | OBJDUMP="$OBJDUMP" |
16451 | |
16452 | # Used on cygwin: assembler. |
16453 | AS="$AS" |
16454 | |
16455 | # The name of the directory that contains temporary libtool files. |
16456 | objdir=$objdir |
16457 | |
16458 | # How to create reloadable object files. |
16459 | reload_flag=$lt_reload_flag |
16460 | reload_cmds=$lt_reload_cmds |
16461 | |
16462 | # How to pass a linker flag through the compiler. |
16463 | wl=$lt_lt_prog_compiler_wl_F77 |
16464 | |
16465 | # Object file suffix (normally "o"). |
16466 | objext="$ac_objext" |
16467 | |
16468 | # Old archive suffix (normally "a"). |
16469 | libext="$libext" |
16470 | |
16471 | # Shared library suffix (normally ".so"). |
16472 | shrext_cmds='$shrext_cmds' |
16473 | |
16474 | # Executable file suffix (normally ""). |
16475 | exeext="$exeext" |
16476 | |
16477 | # Additional compiler flags for building library objects. |
16478 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16479 | pic_mode=$pic_mode |
16480 | |
16481 | # What is the maximum length of a command? |
16482 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16483 | |
16484 | # Does compiler simultaneously support -c and -o options? |
16485 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16486 | |
16487 | # Must we lock files when doing compilation? |
16488 | need_locks=$lt_need_locks |
16489 | |
16490 | # Do we need the lib prefix for modules? |
16491 | need_lib_prefix=$need_lib_prefix |
16492 | |
16493 | # Do we need a version for libraries? |
16494 | need_version=$need_version |
16495 | |
16496 | # Whether dlopen is supported. |
16497 | dlopen_support=$enable_dlopen |
16498 | |
16499 | # Whether dlopen of programs is supported. |
16500 | dlopen_self=$enable_dlopen_self |
16501 | |
16502 | # Whether dlopen of statically linked programs is supported. |
16503 | dlopen_self_static=$enable_dlopen_self_static |
16504 | |
16505 | # Compiler flag to prevent dynamic linking. |
16506 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16507 | |
16508 | # Compiler flag to turn off builtin functions. |
16509 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16510 | |
16511 | # Compiler flag to allow reflexive dlopens. |
16512 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16513 | |
16514 | # Compiler flag to generate shared objects directly from archives. |
16515 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16516 | |
16517 | # Compiler flag to generate thread-safe objects. |
16518 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16519 | |
16520 | # Library versioning type. |
16521 | version_type=$version_type |
16522 | |
16523 | # Format of library name prefix. |
16524 | libname_spec=$lt_libname_spec |
16525 | |
16526 | # List of archive names. First name is the real one, the rest are links. |
16527 | # The last name is the one that the linker finds with -lNAME. |
16528 | library_names_spec=$lt_library_names_spec |
16529 | |
16530 | # The coded name of the library, if different from the real name. |
16531 | soname_spec=$lt_soname_spec |
16532 | |
16533 | # Commands used to build and install an old-style archive. |
16534 | RANLIB=$lt_RANLIB |
16535 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16536 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16537 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16538 | |
16539 | # Create an old-style archive from a shared archive. |
16540 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16541 | |
16542 | # Create a temporary old-style archive to link instead of a shared archive. |
16543 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16544 | |
16545 | # Commands used to build and install a shared archive. |
16546 | archive_cmds=$lt_archive_cmds_F77 |
16547 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16548 | postinstall_cmds=$lt_postinstall_cmds |
16549 | postuninstall_cmds=$lt_postuninstall_cmds |
16550 | |
16551 | # Commands used to build a loadable module (assumed same as above if empty) |
16552 | module_cmds=$lt_module_cmds_F77 |
16553 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16554 | |
16555 | # Commands to strip libraries. |
16556 | old_striplib=$lt_old_striplib |
16557 | striplib=$lt_striplib |
16558 | |
16559 | # Dependencies to place before the objects being linked to create a |
16560 | # shared library. |
64ff59ba |
16561 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16562 | |
16563 | # Dependencies to place after the objects being linked to create a |
16564 | # shared library. |
64ff59ba |
16565 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16566 | |
16567 | # Dependencies to place before the objects being linked to create a |
16568 | # shared library. |
16569 | predeps=$lt_predeps_F77 |
16570 | |
16571 | # Dependencies to place after the objects being linked to create a |
16572 | # shared library. |
16573 | postdeps=$lt_postdeps_F77 |
16574 | |
16575 | # The library search path used internally by the compiler when linking |
16576 | # a shared library. |
64ff59ba |
16577 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16578 | |
16579 | # Method to check whether dependent libraries are shared objects. |
16580 | deplibs_check_method=$lt_deplibs_check_method |
16581 | |
16582 | # Command to use when deplibs_check_method == file_magic. |
16583 | file_magic_cmd=$lt_file_magic_cmd |
16584 | |
16585 | # Flag that allows shared libraries with undefined symbols to be built. |
16586 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16587 | |
16588 | # Flag that forces no undefined symbols. |
16589 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16590 | |
16591 | # Commands used to finish a libtool library installation in a directory. |
16592 | finish_cmds=$lt_finish_cmds |
16593 | |
16594 | # Same as above, but a single script fragment to be evaled but not shown. |
16595 | finish_eval=$lt_finish_eval |
16596 | |
16597 | # Take the output of nm and produce a listing of raw symbols and C names. |
16598 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16599 | |
16600 | # Transform the output of nm in a proper C declaration |
16601 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16602 | |
16603 | # Transform the output of nm in a C name address pair |
16604 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16605 | |
16606 | # This is the shared library runtime path variable. |
16607 | runpath_var=$runpath_var |
16608 | |
16609 | # This is the shared library path variable. |
16610 | shlibpath_var=$shlibpath_var |
16611 | |
16612 | # Is shlibpath searched before the hard-coded library search path? |
16613 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16614 | |
16615 | # How to hardcode a shared library path into an executable. |
16616 | hardcode_action=$hardcode_action_F77 |
16617 | |
16618 | # Whether we should hardcode library paths into libraries. |
16619 | hardcode_into_libs=$hardcode_into_libs |
16620 | |
16621 | # Flag to hardcode \$libdir into a binary during linking. |
16622 | # This must work even if \$libdir does not exist. |
16623 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16624 | |
16625 | # If ld is used when linking, flag to hardcode \$libdir into |
16626 | # a binary during linking. This must work even if \$libdir does |
16627 | # not exist. |
16628 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16629 | |
16630 | # Whether we need a single -rpath flag with a separated argument. |
16631 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16632 | |
16633 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16634 | # resulting binary. |
16635 | hardcode_direct=$hardcode_direct_F77 |
16636 | |
16637 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16638 | # resulting binary. |
16639 | hardcode_minus_L=$hardcode_minus_L_F77 |
16640 | |
16641 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16642 | # the resulting binary. |
16643 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16644 | |
16645 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16646 | # and all subsequent libraries and executables linked against it. |
16647 | hardcode_automatic=$hardcode_automatic_F77 |
16648 | |
16649 | # Variables whose values should be saved in libtool wrapper scripts and |
16650 | # restored at relink time. |
16651 | variables_saved_for_relink="$variables_saved_for_relink" |
16652 | |
16653 | # Whether libtool must link a program against all its dependency libraries. |
16654 | link_all_deplibs=$link_all_deplibs_F77 |
16655 | |
16656 | # Compile-time system search path for libraries |
64ff59ba |
16657 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16658 | |
16659 | # Run-time system search path for libraries |
16660 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16661 | |
16662 | # Fix the shell variable \$srcfile for the compiler. |
0fde1ce3 |
16663 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
16664 | |
16665 | # Set to yes if exported symbols are required. |
16666 | always_export_symbols=$always_export_symbols_F77 |
16667 | |
16668 | # The commands to list exported symbols. |
16669 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16670 | |
16671 | # The commands to extract the exported symbol list from a shared archive. |
16672 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16673 | |
16674 | # Symbols that should not be listed in the preloaded symbols. |
16675 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16676 | |
16677 | # Symbols that must always be exported. |
16678 | include_expsyms=$lt_include_expsyms_F77 |
16679 | |
16680 | # ### END LIBTOOL TAG CONFIG: $tagname |
16681 | |
16682 | __EOF__ |
16683 | |
16684 | |
16685 | else |
16686 | # If there is no Makefile yet, we rely on a make rule to execute |
16687 | # `config.status --recheck' to rerun these tests and create the |
16688 | # libtool script then. |
16689 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16690 | if test -f "$ltmain_in"; then |
16691 | test -f Makefile && make "$ltmain" |
16692 | fi |
16693 | fi |
16694 | |
16695 | |
16696 | ac_ext=c |
16697 | ac_cpp='$CPP $CPPFLAGS' |
16698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16701 | |
16702 | CC="$lt_save_CC" |
16703 | |
16704 | else |
16705 | tagname="" |
16706 | fi |
16707 | ;; |
16708 | |
16709 | GCJ) |
16710 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16711 | |
16712 | |
d9898ee8 |
16713 | # Source file extension for Java test sources. |
16714 | ac_ext=java |
16715 | |
16716 | # Object file extension for compiled Java test sources. |
16717 | objext=o |
16718 | objext_GCJ=$objext |
16719 | |
16720 | # Code to be used in simple compile tests |
0fde1ce3 |
16721 | lt_simple_compile_test_code="class foo {}" |
d9898ee8 |
16722 | |
16723 | # Code to be used in simple link tests |
0fde1ce3 |
16724 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' |
d9898ee8 |
16725 | |
16726 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16727 | |
16728 | # If no C compiler was specified, use CC. |
16729 | LTCC=${LTCC-"$CC"} |
16730 | |
16731 | # If no C compiler flags were specified, use CFLAGS. |
16732 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16733 | |
16734 | # Allow CC to be a program name with arguments. |
16735 | compiler=$CC |
16736 | |
16737 | |
16738 | # save warnings/boilerplate of simple test code |
16739 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
16740 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
16741 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16742 | _lt_compiler_boilerplate=`cat conftest.err` |
16743 | $rm conftest* |
16744 | |
16745 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
16746 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
16747 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16748 | _lt_linker_boilerplate=`cat conftest.err` |
16749 | $rm conftest* |
16750 | |
16751 | |
16752 | # Allow CC to be a program name with arguments. |
16753 | lt_save_CC="$CC" |
16754 | CC=${GCJ-"gcj"} |
16755 | compiler=$CC |
16756 | compiler_GCJ=$CC |
16757 | for cc_temp in $compiler""; do |
16758 | case $cc_temp in |
16759 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16760 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16761 | \-*) ;; |
16762 | *) break;; |
16763 | esac |
16764 | done |
16765 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16766 | |
16767 | |
16768 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16769 | archive_cmds_need_lc_GCJ=no |
16770 | |
16771 | old_archive_cmds_GCJ=$old_archive_cmds |
16772 | |
16773 | ## CAVEAT EMPTOR: |
16774 | ## There is no encapsulation within the following macros, do not change |
16775 | ## the running order or otherwise move them around unless you know exactly |
16776 | ## what you are doing... |
16777 | |
16778 | lt_prog_compiler_no_builtin_flag_GCJ= |
16779 | |
16780 | if test "$GCC" = yes; then |
16781 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16782 | |
16783 | |
64ff59ba |
16784 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16785 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16786 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16788 | else |
16789 | lt_cv_prog_compiler_rtti_exceptions=no |
16790 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
16791 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16792 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16793 | # Insert the option either (1) after the last *FLAGS variable, or |
16794 | # (2) before a word containing "conftest.", or (3) at the end. |
16795 | # Note that $ac_compile itself does not contain backslashes and begins |
16796 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16797 | # The option is referenced via a variable to avoid confusing sed. |
16798 | lt_compile=`echo "$ac_compile" | $SED \ |
16799 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16800 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16801 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
16802 | (eval echo "\"\$as_me:16802: $lt_compile\"" >&5) |
d9898ee8 |
16803 | (eval "$lt_compile" 2>conftest.err) |
16804 | ac_status=$? |
16805 | cat conftest.err >&5 |
0fde1ce3 |
16806 | echo "$as_me:16806: \$? = $ac_status" >&5 |
d9898ee8 |
16807 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16808 | # The compiler can only warn and ignore the option if not recognized |
16809 | # So say no if there are warnings other than the usual output. |
16810 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16811 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16812 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16813 | lt_cv_prog_compiler_rtti_exceptions=yes |
16814 | fi |
16815 | fi |
16816 | $rm conftest* |
16817 | |
16818 | fi |
64ff59ba |
16819 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16820 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16821 | |
16822 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16823 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16824 | else |
16825 | : |
16826 | fi |
16827 | |
16828 | fi |
16829 | |
16830 | lt_prog_compiler_wl_GCJ= |
16831 | lt_prog_compiler_pic_GCJ= |
16832 | lt_prog_compiler_static_GCJ= |
16833 | |
64ff59ba |
16834 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16835 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16836 | |
16837 | if test "$GCC" = yes; then |
16838 | lt_prog_compiler_wl_GCJ='-Wl,' |
16839 | lt_prog_compiler_static_GCJ='-static' |
16840 | |
16841 | case $host_os in |
16842 | aix*) |
16843 | # All AIX code is PIC. |
16844 | if test "$host_cpu" = ia64; then |
16845 | # AIX 5 now supports IA64 processor |
16846 | lt_prog_compiler_static_GCJ='-Bstatic' |
16847 | fi |
16848 | ;; |
16849 | |
16850 | amigaos*) |
16851 | # FIXME: we need at least 68020 code to build shared libraries, but |
16852 | # adding the `-m68020' flag to GCC prevents building anything better, |
16853 | # like `-m68040'. |
16854 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16855 | ;; |
16856 | |
0fde1ce3 |
16857 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
16858 | # PIC is the default for these OSes. |
16859 | ;; |
16860 | |
0fde1ce3 |
16861 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
16862 | # This hack is so that the source file can tell whether it is being |
16863 | # built for inclusion in a dll (and should export symbols for example). |
0fde1ce3 |
16864 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
16865 | # (--disable-auto-import) libraries |
d9898ee8 |
16866 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16867 | ;; |
16868 | |
16869 | darwin* | rhapsody*) |
16870 | # PIC is the default on this platform |
16871 | # Common symbols not allowed in MH_DYLIB files |
16872 | lt_prog_compiler_pic_GCJ='-fno-common' |
16873 | ;; |
16874 | |
0fde1ce3 |
16875 | interix[3-9]*) |
d9898ee8 |
16876 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16877 | # Instead, we relocate shared libraries at runtime. |
16878 | ;; |
16879 | |
16880 | msdosdjgpp*) |
16881 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16882 | # on systems that don't support them. |
16883 | lt_prog_compiler_can_build_shared_GCJ=no |
16884 | enable_shared=no |
16885 | ;; |
16886 | |
16887 | sysv4*MP*) |
16888 | if test -d /usr/nec; then |
16889 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16890 | fi |
16891 | ;; |
16892 | |
16893 | hpux*) |
16894 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16895 | # not for PA HP-UX. |
16896 | case $host_cpu in |
16897 | hppa*64*|ia64*) |
16898 | # +Z the default |
16899 | ;; |
16900 | *) |
16901 | lt_prog_compiler_pic_GCJ='-fPIC' |
16902 | ;; |
16903 | esac |
16904 | ;; |
16905 | |
16906 | *) |
16907 | lt_prog_compiler_pic_GCJ='-fPIC' |
16908 | ;; |
16909 | esac |
16910 | else |
16911 | # PORTME Check for flag to pass linker flags through the system compiler. |
16912 | case $host_os in |
16913 | aix*) |
16914 | lt_prog_compiler_wl_GCJ='-Wl,' |
16915 | if test "$host_cpu" = ia64; then |
16916 | # AIX 5 now supports IA64 processor |
16917 | lt_prog_compiler_static_GCJ='-Bstatic' |
16918 | else |
16919 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16920 | fi |
16921 | ;; |
16922 | darwin*) |
16923 | # PIC is the default on this platform |
16924 | # Common symbols not allowed in MH_DYLIB files |
16925 | case $cc_basename in |
16926 | xlc*) |
16927 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16928 | lt_prog_compiler_wl_GCJ='-Wl,' |
16929 | ;; |
16930 | esac |
16931 | ;; |
16932 | |
0fde1ce3 |
16933 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
16934 | # This hack is so that the source file can tell whether it is being |
16935 | # built for inclusion in a dll (and should export symbols for example). |
16936 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16937 | ;; |
16938 | |
16939 | hpux9* | hpux10* | hpux11*) |
16940 | lt_prog_compiler_wl_GCJ='-Wl,' |
16941 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16942 | # not for PA HP-UX. |
16943 | case $host_cpu in |
16944 | hppa*64*|ia64*) |
16945 | # +Z the default |
16946 | ;; |
16947 | *) |
16948 | lt_prog_compiler_pic_GCJ='+Z' |
16949 | ;; |
16950 | esac |
16951 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16952 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16953 | ;; |
16954 | |
16955 | irix5* | irix6* | nonstopux*) |
16956 | lt_prog_compiler_wl_GCJ='-Wl,' |
16957 | # PIC (with -KPIC) is the default. |
16958 | lt_prog_compiler_static_GCJ='-non_shared' |
16959 | ;; |
16960 | |
16961 | newsos6) |
16962 | lt_prog_compiler_pic_GCJ='-KPIC' |
16963 | lt_prog_compiler_static_GCJ='-Bstatic' |
16964 | ;; |
16965 | |
0fde1ce3 |
16966 | linux* | k*bsd*-gnu) |
d9898ee8 |
16967 | case $cc_basename in |
16968 | icc* | ecc*) |
16969 | lt_prog_compiler_wl_GCJ='-Wl,' |
16970 | lt_prog_compiler_pic_GCJ='-KPIC' |
16971 | lt_prog_compiler_static_GCJ='-static' |
16972 | ;; |
16973 | pgcc* | pgf77* | pgf90* | pgf95*) |
16974 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16975 | # which looks to be a dead project) |
16976 | lt_prog_compiler_wl_GCJ='-Wl,' |
16977 | lt_prog_compiler_pic_GCJ='-fpic' |
16978 | lt_prog_compiler_static_GCJ='-Bstatic' |
16979 | ;; |
16980 | ccc*) |
16981 | lt_prog_compiler_wl_GCJ='-Wl,' |
16982 | # All Alpha code is PIC. |
16983 | lt_prog_compiler_static_GCJ='-non_shared' |
16984 | ;; |
0fde1ce3 |
16985 | *) |
16986 | case `$CC -V 2>&1 | sed 5q` in |
16987 | *Sun\ C*) |
16988 | # Sun C 5.9 |
16989 | lt_prog_compiler_pic_GCJ='-KPIC' |
16990 | lt_prog_compiler_static_GCJ='-Bstatic' |
16991 | lt_prog_compiler_wl_GCJ='-Wl,' |
16992 | ;; |
16993 | *Sun\ F*) |
16994 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
16995 | lt_prog_compiler_pic_GCJ='-KPIC' |
16996 | lt_prog_compiler_static_GCJ='-Bstatic' |
16997 | lt_prog_compiler_wl_GCJ='' |
16998 | ;; |
16999 | esac |
17000 | ;; |
d9898ee8 |
17001 | esac |
17002 | ;; |
17003 | |
17004 | osf3* | osf4* | osf5*) |
17005 | lt_prog_compiler_wl_GCJ='-Wl,' |
17006 | # All OSF/1 code is PIC. |
17007 | lt_prog_compiler_static_GCJ='-non_shared' |
17008 | ;; |
17009 | |
0fde1ce3 |
17010 | rdos*) |
17011 | lt_prog_compiler_static_GCJ='-non_shared' |
17012 | ;; |
17013 | |
d9898ee8 |
17014 | solaris*) |
17015 | lt_prog_compiler_pic_GCJ='-KPIC' |
17016 | lt_prog_compiler_static_GCJ='-Bstatic' |
17017 | case $cc_basename in |
17018 | f77* | f90* | f95*) |
17019 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
17020 | *) |
17021 | lt_prog_compiler_wl_GCJ='-Wl,';; |
17022 | esac |
17023 | ;; |
17024 | |
17025 | sunos4*) |
17026 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
17027 | lt_prog_compiler_pic_GCJ='-PIC' |
17028 | lt_prog_compiler_static_GCJ='-Bstatic' |
17029 | ;; |
17030 | |
17031 | sysv4 | sysv4.2uw2* | sysv4.3*) |
17032 | lt_prog_compiler_wl_GCJ='-Wl,' |
17033 | lt_prog_compiler_pic_GCJ='-KPIC' |
17034 | lt_prog_compiler_static_GCJ='-Bstatic' |
17035 | ;; |
17036 | |
17037 | sysv4*MP*) |
17038 | if test -d /usr/nec ;then |
17039 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
17040 | lt_prog_compiler_static_GCJ='-Bstatic' |
17041 | fi |
17042 | ;; |
17043 | |
17044 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
17045 | lt_prog_compiler_wl_GCJ='-Wl,' |
17046 | lt_prog_compiler_pic_GCJ='-KPIC' |
17047 | lt_prog_compiler_static_GCJ='-Bstatic' |
17048 | ;; |
17049 | |
17050 | unicos*) |
17051 | lt_prog_compiler_wl_GCJ='-Wl,' |
17052 | lt_prog_compiler_can_build_shared_GCJ=no |
17053 | ;; |
17054 | |
17055 | uts4*) |
17056 | lt_prog_compiler_pic_GCJ='-pic' |
17057 | lt_prog_compiler_static_GCJ='-Bstatic' |
17058 | ;; |
17059 | |
17060 | *) |
17061 | lt_prog_compiler_can_build_shared_GCJ=no |
17062 | ;; |
17063 | esac |
17064 | fi |
17065 | |
64ff59ba |
17066 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
17067 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
17068 | |
17069 | # |
17070 | # Check to make sure the PIC flag actually works. |
17071 | # |
17072 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
17073 | |
64ff59ba |
17074 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
17075 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
17076 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
17077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17078 | else |
17079 | lt_prog_compiler_pic_works_GCJ=no |
17080 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
17081 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
17082 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
17083 | # Insert the option either (1) after the last *FLAGS variable, or |
17084 | # (2) before a word containing "conftest.", or (3) at the end. |
17085 | # Note that $ac_compile itself does not contain backslashes and begins |
17086 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
17087 | # The option is referenced via a variable to avoid confusing sed. |
17088 | lt_compile=`echo "$ac_compile" | $SED \ |
17089 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17090 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17091 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
17092 | (eval echo "\"\$as_me:17092: $lt_compile\"" >&5) |
d9898ee8 |
17093 | (eval "$lt_compile" 2>conftest.err) |
17094 | ac_status=$? |
17095 | cat conftest.err >&5 |
0fde1ce3 |
17096 | echo "$as_me:17096: \$? = $ac_status" >&5 |
d9898ee8 |
17097 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17098 | # The compiler can only warn and ignore the option if not recognized |
17099 | # So say no if there are warnings other than the usual output. |
17100 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
17101 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
17102 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
17103 | lt_prog_compiler_pic_works_GCJ=yes |
17104 | fi |
17105 | fi |
17106 | $rm conftest* |
17107 | |
17108 | fi |
64ff59ba |
17109 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
17110 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
17111 | |
17112 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
17113 | case $lt_prog_compiler_pic_GCJ in |
17114 | "" | " "*) ;; |
17115 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
17116 | esac |
17117 | else |
17118 | lt_prog_compiler_pic_GCJ= |
17119 | lt_prog_compiler_can_build_shared_GCJ=no |
17120 | fi |
17121 | |
17122 | fi |
17123 | case $host_os in |
17124 | # For platforms which do not support PIC, -DPIC is meaningless: |
17125 | *djgpp*) |
17126 | lt_prog_compiler_pic_GCJ= |
17127 | ;; |
17128 | *) |
17129 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
17130 | ;; |
17131 | esac |
17132 | |
17133 | # |
17134 | # Check to make sure the static flag actually works. |
17135 | # |
17136 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
64ff59ba |
17137 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
17138 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
17139 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
17140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17141 | else |
17142 | lt_prog_compiler_static_works_GCJ=no |
17143 | save_LDFLAGS="$LDFLAGS" |
17144 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
0fde1ce3 |
17145 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
17146 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
17147 | # The linker can only warn and ignore the option if not recognized |
17148 | # So say no if there are warnings |
17149 | if test -s conftest.err; then |
17150 | # Append any errors to the config.log. |
17151 | cat conftest.err 1>&5 |
17152 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
17153 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
17154 | if diff conftest.exp conftest.er2 >/dev/null; then |
17155 | lt_prog_compiler_static_works_GCJ=yes |
17156 | fi |
17157 | else |
17158 | lt_prog_compiler_static_works_GCJ=yes |
17159 | fi |
17160 | fi |
17161 | $rm conftest* |
17162 | LDFLAGS="$save_LDFLAGS" |
17163 | |
17164 | fi |
64ff59ba |
17165 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
17166 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
17167 | |
17168 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
17169 | : |
17170 | else |
17171 | lt_prog_compiler_static_GCJ= |
17172 | fi |
17173 | |
17174 | |
64ff59ba |
17175 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
17176 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
17177 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
17178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17179 | else |
17180 | lt_cv_prog_compiler_c_o_GCJ=no |
17181 | $rm -r conftest 2>/dev/null |
17182 | mkdir conftest |
17183 | cd conftest |
17184 | mkdir out |
0fde1ce3 |
17185 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
17186 | |
17187 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
17188 | # Insert the option either (1) after the last *FLAGS variable, or |
17189 | # (2) before a word containing "conftest.", or (3) at the end. |
17190 | # Note that $ac_compile itself does not contain backslashes and begins |
17191 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
17192 | lt_compile=`echo "$ac_compile" | $SED \ |
17193 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17194 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17195 | -e 's:$: $lt_compiler_flag:'` |
0fde1ce3 |
17196 | (eval echo "\"\$as_me:17196: $lt_compile\"" >&5) |
d9898ee8 |
17197 | (eval "$lt_compile" 2>out/conftest.err) |
17198 | ac_status=$? |
17199 | cat out/conftest.err >&5 |
0fde1ce3 |
17200 | echo "$as_me:17200: \$? = $ac_status" >&5 |
d9898ee8 |
17201 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
17202 | then |
17203 | # The compiler can only warn and ignore the option if not recognized |
17204 | # So say no if there are warnings |
17205 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
17206 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
17207 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
17208 | lt_cv_prog_compiler_c_o_GCJ=yes |
17209 | fi |
17210 | fi |
17211 | chmod u+w . 2>&5 |
17212 | $rm conftest* |
17213 | # SGI C++ compiler will create directory out/ii_files/ for |
17214 | # template instantiation |
17215 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
17216 | $rm out/* && rmdir out |
17217 | cd .. |
17218 | rmdir conftest |
17219 | $rm conftest* |
17220 | |
17221 | fi |
64ff59ba |
17222 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
17223 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
17224 | |
17225 | |
17226 | hard_links="nottested" |
17227 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
17228 | # do not overwrite the value of need_locks provided by the user |
64ff59ba |
17229 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
17230 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
17231 | hard_links=yes |
17232 | $rm conftest* |
17233 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
17234 | touch conftest.a |
17235 | ln conftest.a conftest.b 2>&5 || hard_links=no |
17236 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
64ff59ba |
17237 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
17238 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
17239 | if test "$hard_links" = no; then |
17240 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
17241 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
17242 | need_locks=warn |
17243 | fi |
17244 | else |
17245 | need_locks=no |
17246 | fi |
17247 | |
64ff59ba |
17248 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
17249 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
17250 | |
17251 | runpath_var= |
17252 | allow_undefined_flag_GCJ= |
17253 | enable_shared_with_static_runtimes_GCJ=no |
17254 | archive_cmds_GCJ= |
17255 | archive_expsym_cmds_GCJ= |
17256 | old_archive_From_new_cmds_GCJ= |
17257 | old_archive_from_expsyms_cmds_GCJ= |
17258 | export_dynamic_flag_spec_GCJ= |
17259 | whole_archive_flag_spec_GCJ= |
17260 | thread_safe_flag_spec_GCJ= |
17261 | hardcode_libdir_flag_spec_GCJ= |
17262 | hardcode_libdir_flag_spec_ld_GCJ= |
17263 | hardcode_libdir_separator_GCJ= |
17264 | hardcode_direct_GCJ=no |
17265 | hardcode_minus_L_GCJ=no |
17266 | hardcode_shlibpath_var_GCJ=unsupported |
17267 | link_all_deplibs_GCJ=unknown |
17268 | hardcode_automatic_GCJ=no |
17269 | module_cmds_GCJ= |
17270 | module_expsym_cmds_GCJ= |
17271 | always_export_symbols_GCJ=no |
17272 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
17273 | # include_expsyms should be a list of space-separated symbols to be *always* |
17274 | # included in the symbol list |
17275 | include_expsyms_GCJ= |
17276 | # exclude_expsyms can be an extended regexp of symbols to exclude |
17277 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
17278 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
17279 | # as well as any symbol that contains `d'. |
17280 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
17281 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
17282 | # platforms (ab)use it in PIC code, but their linkers get confused if |
17283 | # the symbol is explicitly referenced. Since portable code cannot |
17284 | # rely on this symbol name, it's probably fine to never include it in |
17285 | # preloaded symbol tables. |
17286 | extract_expsyms_cmds= |
17287 | # Just being paranoid about ensuring that cc_basename is set. |
17288 | for cc_temp in $compiler""; do |
17289 | case $cc_temp in |
17290 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
17291 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
17292 | \-*) ;; |
17293 | *) break;; |
17294 | esac |
17295 | done |
17296 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
17297 | |
17298 | case $host_os in |
17299 | cygwin* | mingw* | pw32*) |
17300 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
17301 | # When not using gcc, we currently assume that we are using |
17302 | # Microsoft Visual C++. |
17303 | if test "$GCC" != yes; then |
17304 | with_gnu_ld=no |
17305 | fi |
17306 | ;; |
17307 | interix*) |
17308 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
17309 | with_gnu_ld=yes |
17310 | ;; |
17311 | openbsd*) |
17312 | with_gnu_ld=no |
17313 | ;; |
17314 | esac |
17315 | |
17316 | ld_shlibs_GCJ=yes |
17317 | if test "$with_gnu_ld" = yes; then |
17318 | # If archive_cmds runs LD, not CC, wlarc should be empty |
17319 | wlarc='${wl}' |
17320 | |
17321 | # Set some defaults for GNU ld with shared library support. These |
17322 | # are reset later if shared libraries are not supported. Putting them |
17323 | # here allows them to be overridden if necessary. |
17324 | runpath_var=LD_RUN_PATH |
17325 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
17326 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
17327 | # ancient GNU ld didn't support --whole-archive et. al. |
17328 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
17329 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
17330 | else |
17331 | whole_archive_flag_spec_GCJ= |
17332 | fi |
17333 | supports_anon_versioning=no |
17334 | case `$LD -v 2>/dev/null` in |
17335 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
17336 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
17337 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
17338 | *\ 2.11.*) ;; # other 2.11 versions |
17339 | *) supports_anon_versioning=yes ;; |
17340 | esac |
17341 | |
17342 | # See if GNU ld supports shared libraries. |
17343 | case $host_os in |
17344 | aix3* | aix4* | aix5*) |
17345 | # On AIX/PPC, the GNU linker is very broken |
17346 | if test "$host_cpu" != ia64; then |
17347 | ld_shlibs_GCJ=no |
17348 | cat <<EOF 1>&2 |
17349 | |
17350 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
17351 | *** to be unable to reliably create shared libraries on AIX. |
17352 | *** Therefore, libtool is disabling shared libraries support. If you |
17353 | *** really care for shared libraries, you may want to modify your PATH |
17354 | *** so that a non-GNU linker is found, and then restart. |
17355 | |
17356 | EOF |
17357 | fi |
17358 | ;; |
17359 | |
17360 | amigaos*) |
17361 | 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)' |
17362 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17363 | hardcode_minus_L_GCJ=yes |
17364 | |
17365 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
17366 | # that the semantics of dynamic libraries on AmigaOS, at least up |
17367 | # to version 4, is to share data among multiple programs linked |
17368 | # with the same dynamic library. Since this doesn't match the |
17369 | # behavior of shared libraries on other platforms, we can't use |
17370 | # them. |
17371 | ld_shlibs_GCJ=no |
17372 | ;; |
17373 | |
17374 | beos*) |
17375 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17376 | allow_undefined_flag_GCJ=unsupported |
17377 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
17378 | # support --undefined. This deserves some investigation. FIXME |
17379 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17380 | else |
17381 | ld_shlibs_GCJ=no |
17382 | fi |
17383 | ;; |
17384 | |
17385 | cygwin* | mingw* | pw32*) |
17386 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
17387 | # as there is no search path for DLLs. |
17388 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17389 | allow_undefined_flag_GCJ=unsupported |
17390 | always_export_symbols_GCJ=no |
17391 | enable_shared_with_static_runtimes_GCJ=yes |
0fde1ce3 |
17392 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
17393 | |
17394 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
17395 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17396 | # If the export-symbols file already is a .def file (1st line |
17397 | # is EXPORTS), use it as is; otherwise, prepend... |
17398 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
17399 | cp $export_symbols $output_objdir/$soname.def; |
17400 | else |
17401 | echo EXPORTS > $output_objdir/$soname.def; |
17402 | cat $export_symbols >> $output_objdir/$soname.def; |
17403 | fi~ |
17404 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17405 | else |
17406 | ld_shlibs_GCJ=no |
17407 | fi |
17408 | ;; |
17409 | |
0fde1ce3 |
17410 | interix[3-9]*) |
d9898ee8 |
17411 | hardcode_direct_GCJ=no |
17412 | hardcode_shlibpath_var_GCJ=no |
17413 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17414 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17415 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
17416 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
17417 | # default) and relocated if they conflict, which is a slow very memory |
17418 | # consuming and fragmenting process. To avoid this, we pick a random, |
17419 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
17420 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
17421 | 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' |
17422 | 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' |
17423 | ;; |
17424 | |
0fde1ce3 |
17425 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
17426 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17427 | tmp_addflag= |
17428 | case $cc_basename,$host_cpu in |
17429 | pgcc*) # Portland Group C compiler |
17430 | 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' |
17431 | tmp_addflag=' $pic_flag' |
17432 | ;; |
17433 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17434 | 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' |
17435 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17436 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17437 | tmp_addflag=' -i_dynamic' ;; |
17438 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17439 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17440 | ifc* | ifort*) # Intel Fortran compiler |
17441 | tmp_addflag=' -nofor_main' ;; |
17442 | esac |
0fde1ce3 |
17443 | case `$CC -V 2>&1 | sed 5q` in |
17444 | *Sun\ C*) # Sun C 5.9 |
17445 | 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' |
17446 | tmp_sharedflag='-G' ;; |
17447 | *Sun\ F*) # Sun Fortran 8.3 |
17448 | tmp_sharedflag='-G' ;; |
17449 | *) |
17450 | tmp_sharedflag='-shared' ;; |
17451 | esac |
17452 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
17453 | |
17454 | if test $supports_anon_versioning = yes; then |
17455 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17456 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17457 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
0fde1ce3 |
17458 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
17459 | fi |
17460 | else |
17461 | ld_shlibs_GCJ=no |
17462 | fi |
17463 | ;; |
17464 | |
17465 | netbsd*) |
17466 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17467 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17468 | wlarc= |
17469 | else |
17470 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17471 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17472 | fi |
17473 | ;; |
17474 | |
17475 | solaris*) |
17476 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17477 | ld_shlibs_GCJ=no |
17478 | cat <<EOF 1>&2 |
17479 | |
17480 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17481 | *** create shared libraries on Solaris systems. Therefore, libtool |
17482 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17483 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17484 | *** your PATH or compiler configuration so that the native linker is |
17485 | *** used, and then restart. |
17486 | |
17487 | EOF |
17488 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17489 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17490 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17491 | else |
17492 | ld_shlibs_GCJ=no |
17493 | fi |
17494 | ;; |
17495 | |
17496 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17497 | case `$LD -v 2>&1` in |
17498 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17499 | ld_shlibs_GCJ=no |
17500 | cat <<_LT_EOF 1>&2 |
17501 | |
17502 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17503 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17504 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17505 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17506 | *** your PATH or compiler configuration so that the native linker is |
17507 | *** used, and then restart. |
17508 | |
17509 | _LT_EOF |
17510 | ;; |
17511 | *) |
17512 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17513 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17514 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17515 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17516 | else |
17517 | ld_shlibs_GCJ=no |
17518 | fi |
17519 | ;; |
17520 | esac |
17521 | ;; |
17522 | |
17523 | sunos4*) |
17524 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17525 | wlarc= |
17526 | hardcode_direct_GCJ=yes |
17527 | hardcode_shlibpath_var_GCJ=no |
17528 | ;; |
17529 | |
17530 | *) |
17531 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17532 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17533 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17534 | else |
17535 | ld_shlibs_GCJ=no |
17536 | fi |
17537 | ;; |
17538 | esac |
17539 | |
17540 | if test "$ld_shlibs_GCJ" = no; then |
17541 | runpath_var= |
17542 | hardcode_libdir_flag_spec_GCJ= |
17543 | export_dynamic_flag_spec_GCJ= |
17544 | whole_archive_flag_spec_GCJ= |
17545 | fi |
17546 | else |
17547 | # PORTME fill in a description of your system's linker (not GNU ld) |
17548 | case $host_os in |
17549 | aix3*) |
17550 | allow_undefined_flag_GCJ=unsupported |
17551 | always_export_symbols_GCJ=yes |
17552 | 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' |
17553 | # Note: this linker hardcodes the directories in LIBPATH if there |
17554 | # are no directories specified by -L. |
17555 | hardcode_minus_L_GCJ=yes |
17556 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17557 | # Neither direct hardcoding nor static linking is supported with a |
17558 | # broken collect2. |
17559 | hardcode_direct_GCJ=unsupported |
17560 | fi |
17561 | ;; |
17562 | |
17563 | aix4* | aix5*) |
17564 | if test "$host_cpu" = ia64; then |
17565 | # On IA64, the linker does run time linking by default, so we don't |
17566 | # have to do anything special. |
17567 | aix_use_runtimelinking=no |
17568 | exp_sym_flag='-Bexport' |
17569 | no_entry_flag="" |
17570 | else |
17571 | # If we're using GNU nm, then we don't want the "-C" option. |
17572 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17573 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17574 | 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' |
17575 | else |
17576 | 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' |
17577 | fi |
17578 | aix_use_runtimelinking=no |
17579 | |
17580 | # Test if we are trying to use run time linking or normal |
17581 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17582 | # need to do runtime linking. |
17583 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17584 | for ld_flag in $LDFLAGS; do |
17585 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17586 | aix_use_runtimelinking=yes |
17587 | break |
17588 | fi |
17589 | done |
17590 | ;; |
17591 | esac |
17592 | |
17593 | exp_sym_flag='-bexport' |
17594 | no_entry_flag='-bnoentry' |
17595 | fi |
17596 | |
17597 | # When large executables or shared objects are built, AIX ld can |
17598 | # have problems creating the table of contents. If linking a library |
17599 | # or program results in "error TOC overflow" add -mminimal-toc to |
17600 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17601 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17602 | |
17603 | archive_cmds_GCJ='' |
17604 | hardcode_direct_GCJ=yes |
17605 | hardcode_libdir_separator_GCJ=':' |
17606 | link_all_deplibs_GCJ=yes |
17607 | |
17608 | if test "$GCC" = yes; then |
17609 | case $host_os in aix4.[012]|aix4.[012].*) |
17610 | # We only want to do this on AIX 4.2 and lower, the check |
17611 | # below for broken collect2 doesn't work under 4.3+ |
17612 | collect2name=`${CC} -print-prog-name=collect2` |
17613 | if test -f "$collect2name" && \ |
17614 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17615 | then |
17616 | # We have reworked collect2 |
0fde1ce3 |
17617 | : |
d9898ee8 |
17618 | else |
17619 | # We have old collect2 |
17620 | hardcode_direct_GCJ=unsupported |
17621 | # It fails to find uninstalled libraries when the uninstalled |
17622 | # path is not listed in the libpath. Setting hardcode_minus_L |
17623 | # to unsupported forces relinking |
17624 | hardcode_minus_L_GCJ=yes |
17625 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17626 | hardcode_libdir_separator_GCJ= |
17627 | fi |
17628 | ;; |
17629 | esac |
17630 | shared_flag='-shared' |
17631 | if test "$aix_use_runtimelinking" = yes; then |
17632 | shared_flag="$shared_flag "'${wl}-G' |
17633 | fi |
17634 | else |
17635 | # not using gcc |
17636 | if test "$host_cpu" = ia64; then |
17637 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17638 | # chokes on -Wl,-G. The following line is correct: |
17639 | shared_flag='-G' |
17640 | else |
17641 | if test "$aix_use_runtimelinking" = yes; then |
17642 | shared_flag='${wl}-G' |
17643 | else |
17644 | shared_flag='${wl}-bM:SRE' |
17645 | fi |
17646 | fi |
17647 | fi |
17648 | |
17649 | # It seems that -bexpall does not export symbols beginning with |
17650 | # underscore (_), so it is better to generate a list of symbols to export. |
17651 | always_export_symbols_GCJ=yes |
17652 | if test "$aix_use_runtimelinking" = yes; then |
17653 | # Warning - without using the other runtime loading flags (-brtl), |
17654 | # -berok will link without error, but may produce a broken library. |
17655 | allow_undefined_flag_GCJ='-berok' |
17656 | # Determine the default libpath from the value encoded in an empty executable. |
17657 | cat >conftest.$ac_ext <<_ACEOF |
17658 | /* confdefs.h. */ |
17659 | _ACEOF |
17660 | cat confdefs.h >>conftest.$ac_ext |
17661 | cat >>conftest.$ac_ext <<_ACEOF |
17662 | /* end confdefs.h. */ |
17663 | |
17664 | int |
17665 | main () |
17666 | { |
17667 | |
17668 | ; |
17669 | return 0; |
17670 | } |
17671 | _ACEOF |
17672 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
17673 | if { (ac_try="$ac_link" |
17674 | case "(($ac_try" in |
17675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17676 | *) ac_try_echo=$ac_try;; |
17677 | esac |
17678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17679 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17680 | ac_status=$? |
17681 | grep -v '^ *+' conftest.er1 >conftest.err |
17682 | rm -f conftest.er1 |
17683 | cat conftest.err >&5 |
17684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
17685 | (exit $ac_status); } && { |
17686 | test -z "$ac_c_werror_flag" || |
17687 | test ! -s conftest.err |
17688 | } && test -s conftest$ac_exeext && |
17689 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17690 | |
0fde1ce3 |
17691 | lt_aix_libpath_sed=' |
17692 | /Import File Strings/,/^$/ { |
17693 | /^0/ { |
17694 | s/^0 *\(.*\)$/\1/ |
17695 | p |
17696 | } |
17697 | }' |
17698 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
17699 | # Check for a 64-bit object if we didn't find anything. |
0fde1ce3 |
17700 | if test -z "$aix_libpath"; then |
17701 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17702 | fi |
d9898ee8 |
17703 | else |
17704 | echo "$as_me: failed program was:" >&5 |
17705 | sed 's/^/| /' conftest.$ac_ext >&5 |
17706 | |
64ff59ba |
17707 | |
d9898ee8 |
17708 | fi |
64ff59ba |
17709 | |
17710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17711 | conftest$ac_exeext conftest.$ac_ext |
17712 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17713 | |
17714 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17715 | 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" |
17716 | else |
17717 | if test "$host_cpu" = ia64; then |
17718 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17719 | allow_undefined_flag_GCJ="-z nodefs" |
17720 | 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" |
17721 | else |
17722 | # Determine the default libpath from the value encoded in an empty executable. |
17723 | cat >conftest.$ac_ext <<_ACEOF |
17724 | /* confdefs.h. */ |
17725 | _ACEOF |
17726 | cat confdefs.h >>conftest.$ac_ext |
17727 | cat >>conftest.$ac_ext <<_ACEOF |
17728 | /* end confdefs.h. */ |
17729 | |
17730 | int |
17731 | main () |
17732 | { |
17733 | |
17734 | ; |
17735 | return 0; |
17736 | } |
17737 | _ACEOF |
17738 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
17739 | if { (ac_try="$ac_link" |
17740 | case "(($ac_try" in |
17741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17742 | *) ac_try_echo=$ac_try;; |
17743 | esac |
17744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17745 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17746 | ac_status=$? |
17747 | grep -v '^ *+' conftest.er1 >conftest.err |
17748 | rm -f conftest.er1 |
17749 | cat conftest.err >&5 |
17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
17751 | (exit $ac_status); } && { |
17752 | test -z "$ac_c_werror_flag" || |
17753 | test ! -s conftest.err |
17754 | } && test -s conftest$ac_exeext && |
17755 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17756 | |
0fde1ce3 |
17757 | lt_aix_libpath_sed=' |
17758 | /Import File Strings/,/^$/ { |
17759 | /^0/ { |
17760 | s/^0 *\(.*\)$/\1/ |
17761 | p |
17762 | } |
17763 | }' |
17764 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
17765 | # Check for a 64-bit object if we didn't find anything. |
0fde1ce3 |
17766 | if test -z "$aix_libpath"; then |
17767 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17768 | fi |
d9898ee8 |
17769 | else |
17770 | echo "$as_me: failed program was:" >&5 |
17771 | sed 's/^/| /' conftest.$ac_ext >&5 |
17772 | |
64ff59ba |
17773 | |
d9898ee8 |
17774 | fi |
64ff59ba |
17775 | |
17776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17777 | conftest$ac_exeext conftest.$ac_ext |
17778 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17779 | |
17780 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17781 | # Warning - without using the other run time loading flags, |
17782 | # -berok will link without error, but may produce a broken library. |
17783 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17784 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17785 | # Exported symbols can be pulled into shared objects from archives |
17786 | whole_archive_flag_spec_GCJ='$convenience' |
17787 | archive_cmds_need_lc_GCJ=yes |
17788 | # This is similar to how AIX traditionally builds its shared libraries. |
17789 | 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' |
17790 | fi |
17791 | fi |
17792 | ;; |
17793 | |
17794 | amigaos*) |
17795 | 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)' |
17796 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17797 | hardcode_minus_L_GCJ=yes |
17798 | # see comment about different semantics on the GNU ld section |
17799 | ld_shlibs_GCJ=no |
17800 | ;; |
17801 | |
17802 | bsdi[45]*) |
17803 | export_dynamic_flag_spec_GCJ=-rdynamic |
17804 | ;; |
17805 | |
17806 | cygwin* | mingw* | pw32*) |
17807 | # When not using gcc, we currently assume that we are using |
17808 | # Microsoft Visual C++. |
17809 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17810 | # no search path for DLLs. |
17811 | hardcode_libdir_flag_spec_GCJ=' ' |
17812 | allow_undefined_flag_GCJ=unsupported |
17813 | # Tell ltmain to make .lib files, not .a files. |
17814 | libext=lib |
17815 | # Tell ltmain to make .dll files, not .so files. |
17816 | shrext_cmds=".dll" |
17817 | # FIXME: Setting linknames here is a bad hack. |
17818 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17819 | # The linker will automatically build a .lib file if we build a DLL. |
17820 | old_archive_From_new_cmds_GCJ='true' |
17821 | # FIXME: Should let the user specify the lib program. |
0fde1ce3 |
17822 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
17823 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17824 | enable_shared_with_static_runtimes_GCJ=yes |
17825 | ;; |
17826 | |
17827 | darwin* | rhapsody*) |
17828 | case $host_os in |
17829 | rhapsody* | darwin1.[012]) |
17830 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17831 | ;; |
17832 | *) # Darwin 1.3 on |
17833 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17834 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17835 | else |
17836 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17837 | 10.[012]) |
17838 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17839 | ;; |
17840 | 10.*) |
17841 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17842 | ;; |
17843 | esac |
17844 | fi |
17845 | ;; |
17846 | esac |
17847 | archive_cmds_need_lc_GCJ=no |
17848 | hardcode_direct_GCJ=no |
17849 | hardcode_automatic_GCJ=yes |
17850 | hardcode_shlibpath_var_GCJ=unsupported |
17851 | whole_archive_flag_spec_GCJ='' |
17852 | link_all_deplibs_GCJ=yes |
17853 | if test "$GCC" = yes ; then |
17854 | output_verbose_link_cmd='echo' |
17855 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17856 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17857 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17858 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17859 | 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}' |
17860 | else |
17861 | case $cc_basename in |
17862 | xlc*) |
17863 | output_verbose_link_cmd='echo' |
0fde1ce3 |
17864 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
17865 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17866 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
0fde1ce3 |
17867 | 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}' |
d9898ee8 |
17868 | 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}' |
17869 | ;; |
17870 | *) |
17871 | ld_shlibs_GCJ=no |
17872 | ;; |
17873 | esac |
17874 | fi |
17875 | ;; |
17876 | |
17877 | dgux*) |
17878 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17879 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17880 | hardcode_shlibpath_var_GCJ=no |
17881 | ;; |
17882 | |
17883 | freebsd1*) |
17884 | ld_shlibs_GCJ=no |
17885 | ;; |
17886 | |
17887 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17888 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17889 | # does not break anything, and helps significantly (at the cost of a little |
17890 | # extra space). |
17891 | freebsd2.2*) |
17892 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17893 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17894 | hardcode_direct_GCJ=yes |
17895 | hardcode_shlibpath_var_GCJ=no |
17896 | ;; |
17897 | |
17898 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17899 | freebsd2*) |
17900 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17901 | hardcode_direct_GCJ=yes |
17902 | hardcode_minus_L_GCJ=yes |
17903 | hardcode_shlibpath_var_GCJ=no |
17904 | ;; |
17905 | |
17906 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
0fde1ce3 |
17907 | freebsd* | dragonfly*) |
d9898ee8 |
17908 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17909 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17910 | hardcode_direct_GCJ=yes |
17911 | hardcode_shlibpath_var_GCJ=no |
17912 | ;; |
17913 | |
17914 | hpux9*) |
17915 | if test "$GCC" = yes; then |
17916 | 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' |
17917 | else |
17918 | 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' |
17919 | fi |
17920 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17921 | hardcode_libdir_separator_GCJ=: |
17922 | hardcode_direct_GCJ=yes |
17923 | |
17924 | # hardcode_minus_L: Not really in the search PATH, |
17925 | # but as the default location of the library. |
17926 | hardcode_minus_L_GCJ=yes |
17927 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17928 | ;; |
17929 | |
17930 | hpux10*) |
17931 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17932 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17933 | else |
17934 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17935 | fi |
17936 | if test "$with_gnu_ld" = no; then |
17937 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17938 | hardcode_libdir_separator_GCJ=: |
17939 | |
17940 | hardcode_direct_GCJ=yes |
17941 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17942 | |
17943 | # hardcode_minus_L: Not really in the search PATH, |
17944 | # but as the default location of the library. |
17945 | hardcode_minus_L_GCJ=yes |
17946 | fi |
17947 | ;; |
17948 | |
17949 | hpux11*) |
17950 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17951 | case $host_cpu in |
17952 | hppa*64*) |
17953 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17954 | ;; |
17955 | ia64*) |
17956 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17957 | ;; |
17958 | *) |
17959 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17960 | ;; |
17961 | esac |
17962 | else |
17963 | case $host_cpu in |
17964 | hppa*64*) |
17965 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17966 | ;; |
17967 | ia64*) |
17968 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17969 | ;; |
17970 | *) |
17971 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17972 | ;; |
17973 | esac |
17974 | fi |
17975 | if test "$with_gnu_ld" = no; then |
17976 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17977 | hardcode_libdir_separator_GCJ=: |
17978 | |
17979 | case $host_cpu in |
17980 | hppa*64*|ia64*) |
17981 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17982 | hardcode_direct_GCJ=no |
17983 | hardcode_shlibpath_var_GCJ=no |
17984 | ;; |
17985 | *) |
17986 | hardcode_direct_GCJ=yes |
17987 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17988 | |
17989 | # hardcode_minus_L: Not really in the search PATH, |
17990 | # but as the default location of the library. |
17991 | hardcode_minus_L_GCJ=yes |
17992 | ;; |
17993 | esac |
17994 | fi |
17995 | ;; |
17996 | |
17997 | irix5* | irix6* | nonstopux*) |
17998 | if test "$GCC" = yes; then |
17999 | 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' |
18000 | else |
18001 | 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' |
18002 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
18003 | fi |
18004 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18005 | hardcode_libdir_separator_GCJ=: |
18006 | link_all_deplibs_GCJ=yes |
18007 | ;; |
18008 | |
18009 | netbsd*) |
18010 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18011 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
18012 | else |
18013 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
18014 | fi |
18015 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18016 | hardcode_direct_GCJ=yes |
18017 | hardcode_shlibpath_var_GCJ=no |
18018 | ;; |
18019 | |
18020 | newsos6) |
18021 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18022 | hardcode_direct_GCJ=yes |
18023 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18024 | hardcode_libdir_separator_GCJ=: |
18025 | hardcode_shlibpath_var_GCJ=no |
18026 | ;; |
18027 | |
18028 | openbsd*) |
0fde1ce3 |
18029 | if test -f /usr/libexec/ld.so; then |
18030 | hardcode_direct_GCJ=yes |
18031 | hardcode_shlibpath_var_GCJ=no |
18032 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18033 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
18034 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
18035 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
18036 | export_dynamic_flag_spec_GCJ='${wl}-E' |
18037 | else |
18038 | case $host_os in |
18039 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
18040 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
18041 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18042 | ;; |
18043 | *) |
18044 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
18045 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
18046 | ;; |
18047 | esac |
18048 | fi |
d9898ee8 |
18049 | else |
0fde1ce3 |
18050 | ld_shlibs_GCJ=no |
d9898ee8 |
18051 | fi |
18052 | ;; |
18053 | |
18054 | os2*) |
18055 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18056 | hardcode_minus_L_GCJ=yes |
18057 | allow_undefined_flag_GCJ=unsupported |
18058 | 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' |
18059 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
18060 | ;; |
18061 | |
18062 | osf3*) |
18063 | if test "$GCC" = yes; then |
18064 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
18065 | 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' |
18066 | else |
18067 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
18068 | 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' |
18069 | fi |
18070 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18071 | hardcode_libdir_separator_GCJ=: |
18072 | ;; |
18073 | |
18074 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
18075 | if test "$GCC" = yes; then |
18076 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
18077 | 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' |
18078 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18079 | else |
18080 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
18081 | 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' |
18082 | 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~ |
18083 | $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' |
18084 | |
18085 | # Both c and cxx compiler support -rpath directly |
18086 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
18087 | fi |
18088 | hardcode_libdir_separator_GCJ=: |
18089 | ;; |
18090 | |
18091 | solaris*) |
18092 | no_undefined_flag_GCJ=' -z text' |
18093 | if test "$GCC" = yes; then |
18094 | wlarc='${wl}' |
18095 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18096 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
18097 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
18098 | else |
18099 | wlarc='' |
18100 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18101 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
18102 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
18103 | fi |
18104 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18105 | hardcode_shlibpath_var_GCJ=no |
18106 | case $host_os in |
18107 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
18108 | *) |
0fde1ce3 |
18109 | # The compiler driver will combine and reorder linker options, |
18110 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
18111 | # but is careful enough not to reorder. |
d9898ee8 |
18112 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
0fde1ce3 |
18113 | if test "$GCC" = yes; then |
18114 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
18115 | else |
18116 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' |
18117 | fi |
18118 | ;; |
d9898ee8 |
18119 | esac |
18120 | link_all_deplibs_GCJ=yes |
18121 | ;; |
18122 | |
18123 | sunos4*) |
18124 | if test "x$host_vendor" = xsequent; then |
18125 | # Use $CC to link under sequent, because it throws in some extra .o |
18126 | # files that make .init and .fini sections work. |
18127 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
18128 | else |
18129 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
18130 | fi |
18131 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18132 | hardcode_direct_GCJ=yes |
18133 | hardcode_minus_L_GCJ=yes |
18134 | hardcode_shlibpath_var_GCJ=no |
18135 | ;; |
18136 | |
18137 | sysv4) |
18138 | case $host_vendor in |
18139 | sni) |
18140 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18141 | hardcode_direct_GCJ=yes # is this really true??? |
18142 | ;; |
18143 | siemens) |
18144 | ## LD is ld it makes a PLAMLIB |
18145 | ## CC just makes a GrossModule. |
18146 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
18147 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
18148 | hardcode_direct_GCJ=no |
18149 | ;; |
18150 | motorola) |
18151 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18152 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
18153 | ;; |
18154 | esac |
18155 | runpath_var='LD_RUN_PATH' |
18156 | hardcode_shlibpath_var_GCJ=no |
18157 | ;; |
18158 | |
18159 | sysv4.3*) |
18160 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18161 | hardcode_shlibpath_var_GCJ=no |
18162 | export_dynamic_flag_spec_GCJ='-Bexport' |
18163 | ;; |
18164 | |
18165 | sysv4*MP*) |
18166 | if test -d /usr/nec; then |
18167 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18168 | hardcode_shlibpath_var_GCJ=no |
18169 | runpath_var=LD_RUN_PATH |
18170 | hardcode_runpath_var=yes |
18171 | ld_shlibs_GCJ=yes |
18172 | fi |
18173 | ;; |
18174 | |
0fde1ce3 |
18175 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
18176 | no_undefined_flag_GCJ='${wl}-z,text' |
18177 | archive_cmds_need_lc_GCJ=no |
18178 | hardcode_shlibpath_var_GCJ=no |
18179 | runpath_var='LD_RUN_PATH' |
18180 | |
18181 | if test "$GCC" = yes; then |
18182 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
18183 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
18184 | else |
18185 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
18186 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
18187 | fi |
18188 | ;; |
18189 | |
18190 | sysv5* | sco3.2v5* | sco5v6*) |
18191 | # Note: We can NOT use -z defs as we might desire, because we do not |
18192 | # link with -lc, and that would cause any symbols used from libc to |
18193 | # always be unresolved, which means just about no library would |
18194 | # ever link correctly. If we're not using GNU ld we use -z text |
18195 | # though, which does catch some bad symbols but isn't as heavy-handed |
18196 | # as -z defs. |
18197 | no_undefined_flag_GCJ='${wl}-z,text' |
18198 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
18199 | archive_cmds_need_lc_GCJ=no |
18200 | hardcode_shlibpath_var_GCJ=no |
18201 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
18202 | hardcode_libdir_separator_GCJ=':' |
18203 | link_all_deplibs_GCJ=yes |
18204 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
18205 | runpath_var='LD_RUN_PATH' |
18206 | |
18207 | if test "$GCC" = yes; then |
18208 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18209 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18210 | else |
18211 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18212 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18213 | fi |
18214 | ;; |
18215 | |
18216 | uts4*) |
18217 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18218 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18219 | hardcode_shlibpath_var_GCJ=no |
18220 | ;; |
18221 | |
18222 | *) |
18223 | ld_shlibs_GCJ=no |
18224 | ;; |
18225 | esac |
18226 | fi |
18227 | |
64ff59ba |
18228 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
18229 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
18230 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
18231 | |
18232 | # |
18233 | # Do we need to explicitly link libc? |
18234 | # |
18235 | case "x$archive_cmds_need_lc_GCJ" in |
18236 | x|xyes) |
18237 | # Assume -lc should be added |
18238 | archive_cmds_need_lc_GCJ=yes |
18239 | |
18240 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
18241 | case $archive_cmds_GCJ in |
18242 | *'~'*) |
18243 | # FIXME: we may have to deal with multi-command sequences. |
18244 | ;; |
18245 | '$CC '*) |
18246 | # Test whether the compiler implicitly links with -lc since on some |
18247 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
18248 | # to ld, don't add -lc before -lgcc. |
64ff59ba |
18249 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
18250 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
18251 | $rm conftest* |
0fde1ce3 |
18252 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
18253 | |
18254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18255 | (eval $ac_compile) 2>&5 |
18256 | ac_status=$? |
18257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18258 | (exit $ac_status); } 2>conftest.err; then |
18259 | soname=conftest |
18260 | lib=conftest |
18261 | libobjs=conftest.$ac_objext |
18262 | deplibs= |
18263 | wl=$lt_prog_compiler_wl_GCJ |
18264 | pic_flag=$lt_prog_compiler_pic_GCJ |
18265 | compiler_flags=-v |
18266 | linker_flags=-v |
18267 | verstring= |
18268 | output_objdir=. |
18269 | libname=conftest |
18270 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
18271 | allow_undefined_flag_GCJ= |
18272 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
18273 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
18274 | ac_status=$? |
18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18276 | (exit $ac_status); } |
18277 | then |
18278 | archive_cmds_need_lc_GCJ=no |
18279 | else |
18280 | archive_cmds_need_lc_GCJ=yes |
18281 | fi |
18282 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
18283 | else |
18284 | cat conftest.err 1>&5 |
18285 | fi |
18286 | $rm conftest* |
64ff59ba |
18287 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
18288 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
18289 | ;; |
18290 | esac |
18291 | fi |
18292 | ;; |
18293 | esac |
18294 | |
64ff59ba |
18295 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
18296 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
18297 | library_names_spec= |
18298 | libname_spec='lib$name' |
18299 | soname_spec= |
18300 | shrext_cmds=".so" |
18301 | postinstall_cmds= |
18302 | postuninstall_cmds= |
18303 | finish_cmds= |
18304 | finish_eval= |
18305 | shlibpath_var= |
18306 | shlibpath_overrides_runpath=unknown |
18307 | version_type=none |
18308 | dynamic_linker="$host_os ld.so" |
18309 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
0fde1ce3 |
18310 | |
d9898ee8 |
18311 | need_lib_prefix=unknown |
18312 | hardcode_into_libs=no |
18313 | |
18314 | # when you set need_version to no, make sure it does not cause -set_version |
18315 | # flags to be left without arguments |
18316 | need_version=unknown |
18317 | |
18318 | case $host_os in |
18319 | aix3*) |
18320 | version_type=linux |
18321 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
18322 | shlibpath_var=LIBPATH |
18323 | |
18324 | # AIX 3 has no versioning support, so we append a major version to the name. |
18325 | soname_spec='${libname}${release}${shared_ext}$major' |
18326 | ;; |
18327 | |
18328 | aix4* | aix5*) |
18329 | version_type=linux |
18330 | need_lib_prefix=no |
18331 | need_version=no |
18332 | hardcode_into_libs=yes |
18333 | if test "$host_cpu" = ia64; then |
18334 | # AIX 5 supports IA64 |
18335 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
18336 | shlibpath_var=LD_LIBRARY_PATH |
18337 | else |
18338 | # With GCC up to 2.95.x, collect2 would create an import file |
18339 | # for dependence libraries. The import file would start with |
18340 | # the line `#! .'. This would cause the generated library to |
18341 | # depend on `.', always an invalid library. This was fixed in |
18342 | # development snapshots of GCC prior to 3.0. |
18343 | case $host_os in |
18344 | aix4 | aix4.[01] | aix4.[01].*) |
18345 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
18346 | echo ' yes ' |
18347 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
18348 | : |
18349 | else |
18350 | can_build_shared=no |
18351 | fi |
18352 | ;; |
18353 | esac |
18354 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
18355 | # soname into executable. Probably we can add versioning support to |
18356 | # collect2, so additional links can be useful in future. |
18357 | if test "$aix_use_runtimelinking" = yes; then |
18358 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
18359 | # instead of lib<name>.a to let people know that these are not |
18360 | # typical AIX shared libraries. |
18361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18362 | else |
18363 | # We preserve .a as extension for shared libraries through AIX4.2 |
18364 | # and later when we are not doing run time linking. |
18365 | library_names_spec='${libname}${release}.a $libname.a' |
18366 | soname_spec='${libname}${release}${shared_ext}$major' |
18367 | fi |
18368 | shlibpath_var=LIBPATH |
18369 | fi |
18370 | ;; |
18371 | |
18372 | amigaos*) |
18373 | library_names_spec='$libname.ixlibrary $libname.a' |
18374 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
18375 | 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' |
18376 | ;; |
18377 | |
18378 | beos*) |
18379 | library_names_spec='${libname}${shared_ext}' |
18380 | dynamic_linker="$host_os ld.so" |
18381 | shlibpath_var=LIBRARY_PATH |
18382 | ;; |
18383 | |
18384 | bsdi[45]*) |
18385 | version_type=linux |
18386 | need_version=no |
18387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18388 | soname_spec='${libname}${release}${shared_ext}$major' |
18389 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18390 | shlibpath_var=LD_LIBRARY_PATH |
18391 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
18392 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
18393 | # the default ld.so.conf also contains /usr/contrib/lib and |
18394 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
18395 | # libtool to hard-code these into programs |
18396 | ;; |
18397 | |
18398 | cygwin* | mingw* | pw32*) |
18399 | version_type=windows |
18400 | shrext_cmds=".dll" |
18401 | need_version=no |
18402 | need_lib_prefix=no |
18403 | |
18404 | case $GCC,$host_os in |
18405 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18406 | library_names_spec='$libname.dll.a' |
18407 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18408 | postinstall_cmds='base_file=`basename \${file}`~ |
18409 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18410 | dldir=$destdir/`dirname \$dlpath`~ |
18411 | test -d \$dldir || mkdir -p \$dldir~ |
18412 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18413 | chmod a+x \$dldir/$dlname' |
18414 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18415 | dlpath=$dir/\$dldll~ |
18416 | $rm \$dlpath' |
18417 | shlibpath_overrides_runpath=yes |
18418 | |
18419 | case $host_os in |
18420 | cygwin*) |
18421 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18422 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18423 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18424 | ;; |
18425 | mingw*) |
18426 | # MinGW DLLs use traditional 'lib' prefix |
18427 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18428 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18429 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18430 | # It is most probably a Windows format PATH printed by |
18431 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18432 | # path with ; separators, and with drive letters. We can handle the |
18433 | # drive letters (cygwin fileutils understands them), so leave them, |
18434 | # especially as we might pass files found there to a mingw objdump, |
18435 | # which wouldn't understand a cygwinified path. Ahh. |
18436 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18437 | else |
18438 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18439 | fi |
18440 | ;; |
18441 | pw32*) |
18442 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18443 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18444 | ;; |
18445 | esac |
18446 | ;; |
18447 | |
18448 | *) |
18449 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18450 | ;; |
18451 | esac |
18452 | dynamic_linker='Win32 ld.exe' |
18453 | # FIXME: first we should search . and the directory the executable is in |
18454 | shlibpath_var=PATH |
18455 | ;; |
18456 | |
18457 | darwin* | rhapsody*) |
18458 | dynamic_linker="$host_os dyld" |
18459 | version_type=darwin |
18460 | need_lib_prefix=no |
18461 | need_version=no |
18462 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18463 | soname_spec='${libname}${release}${major}$shared_ext' |
18464 | shlibpath_overrides_runpath=yes |
18465 | shlibpath_var=DYLD_LIBRARY_PATH |
18466 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
0fde1ce3 |
18467 | |
d9898ee8 |
18468 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18469 | ;; |
18470 | |
18471 | dgux*) |
18472 | version_type=linux |
18473 | need_lib_prefix=no |
18474 | need_version=no |
18475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18476 | soname_spec='${libname}${release}${shared_ext}$major' |
18477 | shlibpath_var=LD_LIBRARY_PATH |
18478 | ;; |
18479 | |
18480 | freebsd1*) |
18481 | dynamic_linker=no |
18482 | ;; |
18483 | |
d9898ee8 |
18484 | freebsd* | dragonfly*) |
18485 | # DragonFly does not have aout. When/if they implement a new |
18486 | # versioning mechanism, adjust this. |
18487 | if test -x /usr/bin/objformat; then |
18488 | objformat=`/usr/bin/objformat` |
18489 | else |
18490 | case $host_os in |
18491 | freebsd[123]*) objformat=aout ;; |
18492 | *) objformat=elf ;; |
18493 | esac |
18494 | fi |
18495 | version_type=freebsd-$objformat |
18496 | case $version_type in |
18497 | freebsd-elf*) |
18498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18499 | need_version=no |
18500 | need_lib_prefix=no |
18501 | ;; |
18502 | freebsd-*) |
18503 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18504 | need_version=yes |
18505 | ;; |
18506 | esac |
18507 | shlibpath_var=LD_LIBRARY_PATH |
18508 | case $host_os in |
18509 | freebsd2*) |
18510 | shlibpath_overrides_runpath=yes |
18511 | ;; |
18512 | freebsd3.[01]* | freebsdelf3.[01]*) |
18513 | shlibpath_overrides_runpath=yes |
18514 | hardcode_into_libs=yes |
18515 | ;; |
18516 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18517 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18518 | shlibpath_overrides_runpath=no |
18519 | hardcode_into_libs=yes |
18520 | ;; |
0fde1ce3 |
18521 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
18522 | shlibpath_overrides_runpath=yes |
18523 | hardcode_into_libs=yes |
18524 | ;; |
18525 | esac |
18526 | ;; |
18527 | |
18528 | gnu*) |
18529 | version_type=linux |
18530 | need_lib_prefix=no |
18531 | need_version=no |
18532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18533 | soname_spec='${libname}${release}${shared_ext}$major' |
18534 | shlibpath_var=LD_LIBRARY_PATH |
18535 | hardcode_into_libs=yes |
18536 | ;; |
18537 | |
18538 | hpux9* | hpux10* | hpux11*) |
18539 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18540 | # link against other versions. |
18541 | version_type=sunos |
18542 | need_lib_prefix=no |
18543 | need_version=no |
18544 | case $host_cpu in |
18545 | ia64*) |
18546 | shrext_cmds='.so' |
18547 | hardcode_into_libs=yes |
18548 | dynamic_linker="$host_os dld.so" |
18549 | shlibpath_var=LD_LIBRARY_PATH |
18550 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18552 | soname_spec='${libname}${release}${shared_ext}$major' |
18553 | if test "X$HPUX_IA64_MODE" = X32; then |
18554 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18555 | else |
18556 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18557 | fi |
18558 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18559 | ;; |
18560 | hppa*64*) |
18561 | shrext_cmds='.sl' |
18562 | hardcode_into_libs=yes |
18563 | dynamic_linker="$host_os dld.sl" |
18564 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18565 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18567 | soname_spec='${libname}${release}${shared_ext}$major' |
18568 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18569 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18570 | ;; |
18571 | *) |
18572 | shrext_cmds='.sl' |
18573 | dynamic_linker="$host_os dld.sl" |
18574 | shlibpath_var=SHLIB_PATH |
18575 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18577 | soname_spec='${libname}${release}${shared_ext}$major' |
18578 | ;; |
18579 | esac |
18580 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18581 | postinstall_cmds='chmod 555 $lib' |
18582 | ;; |
18583 | |
0fde1ce3 |
18584 | interix[3-9]*) |
d9898ee8 |
18585 | version_type=linux |
18586 | need_lib_prefix=no |
18587 | need_version=no |
18588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18589 | soname_spec='${libname}${release}${shared_ext}$major' |
18590 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18591 | shlibpath_var=LD_LIBRARY_PATH |
18592 | shlibpath_overrides_runpath=no |
18593 | hardcode_into_libs=yes |
18594 | ;; |
18595 | |
18596 | irix5* | irix6* | nonstopux*) |
18597 | case $host_os in |
18598 | nonstopux*) version_type=nonstopux ;; |
18599 | *) |
18600 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18601 | version_type=linux |
18602 | else |
18603 | version_type=irix |
18604 | fi ;; |
18605 | esac |
18606 | need_lib_prefix=no |
18607 | need_version=no |
18608 | soname_spec='${libname}${release}${shared_ext}$major' |
18609 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18610 | case $host_os in |
18611 | irix5* | nonstopux*) |
18612 | libsuff= shlibsuff= |
18613 | ;; |
18614 | *) |
18615 | case $LD in # libtool.m4 will add one of these switches to LD |
18616 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18617 | libsuff= shlibsuff= libmagic=32-bit;; |
18618 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18619 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18620 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18621 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18622 | *) libsuff= shlibsuff= libmagic=never-match;; |
18623 | esac |
18624 | ;; |
18625 | esac |
18626 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18627 | shlibpath_overrides_runpath=no |
18628 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18629 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18630 | hardcode_into_libs=yes |
18631 | ;; |
18632 | |
18633 | # No shared lib support for Linux oldld, aout, or coff. |
18634 | linux*oldld* | linux*aout* | linux*coff*) |
18635 | dynamic_linker=no |
18636 | ;; |
18637 | |
18638 | # This must be Linux ELF. |
0fde1ce3 |
18639 | linux* | k*bsd*-gnu) |
d9898ee8 |
18640 | version_type=linux |
18641 | need_lib_prefix=no |
18642 | need_version=no |
18643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18644 | soname_spec='${libname}${release}${shared_ext}$major' |
18645 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18646 | shlibpath_var=LD_LIBRARY_PATH |
18647 | shlibpath_overrides_runpath=no |
18648 | # This implies no fast_install, which is unacceptable. |
18649 | # Some rework will be needed to allow for fast_install |
18650 | # before this can be enabled. |
18651 | hardcode_into_libs=yes |
0fde1ce3 |
18652 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18653 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
18654 | |
18655 | # Append ld.so.conf contents to the search path |
18656 | if test -f /etc/ld.so.conf; then |
0fde1ce3 |
18657 | 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' ' '` |
18658 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
18659 | fi |
18660 | |
18661 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18662 | # powerpc, because MkLinux only supported shared libraries with the |
18663 | # GNU dynamic linker. Since this was broken with cross compilers, |
18664 | # most powerpc-linux boxes support dynamic linking these days and |
18665 | # people can always --disable-shared, the test was removed, and we |
18666 | # assume the GNU/Linux dynamic linker is in use. |
18667 | dynamic_linker='GNU/Linux ld.so' |
18668 | ;; |
18669 | |
d9898ee8 |
18670 | netbsd*) |
18671 | version_type=sunos |
18672 | need_lib_prefix=no |
18673 | need_version=no |
18674 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18676 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18677 | dynamic_linker='NetBSD (a.out) ld.so' |
18678 | else |
18679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18680 | soname_spec='${libname}${release}${shared_ext}$major' |
18681 | dynamic_linker='NetBSD ld.elf_so' |
18682 | fi |
18683 | shlibpath_var=LD_LIBRARY_PATH |
18684 | shlibpath_overrides_runpath=yes |
18685 | hardcode_into_libs=yes |
18686 | ;; |
18687 | |
18688 | newsos6) |
18689 | version_type=linux |
18690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18691 | shlibpath_var=LD_LIBRARY_PATH |
18692 | shlibpath_overrides_runpath=yes |
18693 | ;; |
18694 | |
18695 | nto-qnx*) |
18696 | version_type=linux |
18697 | need_lib_prefix=no |
18698 | need_version=no |
18699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18700 | soname_spec='${libname}${release}${shared_ext}$major' |
18701 | shlibpath_var=LD_LIBRARY_PATH |
18702 | shlibpath_overrides_runpath=yes |
18703 | ;; |
18704 | |
18705 | openbsd*) |
18706 | version_type=sunos |
18707 | sys_lib_dlsearch_path_spec="/usr/lib" |
18708 | need_lib_prefix=no |
18709 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18710 | case $host_os in |
18711 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18712 | *) need_version=no ;; |
18713 | esac |
18714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18715 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18716 | shlibpath_var=LD_LIBRARY_PATH |
18717 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18718 | case $host_os in |
18719 | openbsd2.[89] | openbsd2.[89].*) |
18720 | shlibpath_overrides_runpath=no |
18721 | ;; |
18722 | *) |
18723 | shlibpath_overrides_runpath=yes |
18724 | ;; |
18725 | esac |
18726 | else |
18727 | shlibpath_overrides_runpath=yes |
18728 | fi |
18729 | ;; |
18730 | |
18731 | os2*) |
18732 | libname_spec='$name' |
18733 | shrext_cmds=".dll" |
18734 | need_lib_prefix=no |
18735 | library_names_spec='$libname${shared_ext} $libname.a' |
18736 | dynamic_linker='OS/2 ld.exe' |
18737 | shlibpath_var=LIBPATH |
18738 | ;; |
18739 | |
18740 | osf3* | osf4* | osf5*) |
18741 | version_type=osf |
18742 | need_lib_prefix=no |
18743 | need_version=no |
18744 | soname_spec='${libname}${release}${shared_ext}$major' |
18745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18746 | shlibpath_var=LD_LIBRARY_PATH |
18747 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18748 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18749 | ;; |
18750 | |
0fde1ce3 |
18751 | rdos*) |
18752 | dynamic_linker=no |
18753 | ;; |
18754 | |
d9898ee8 |
18755 | solaris*) |
18756 | version_type=linux |
18757 | need_lib_prefix=no |
18758 | need_version=no |
18759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18760 | soname_spec='${libname}${release}${shared_ext}$major' |
18761 | shlibpath_var=LD_LIBRARY_PATH |
18762 | shlibpath_overrides_runpath=yes |
18763 | hardcode_into_libs=yes |
18764 | # ldd complains unless libraries are executable |
18765 | postinstall_cmds='chmod +x $lib' |
18766 | ;; |
18767 | |
18768 | sunos4*) |
18769 | version_type=sunos |
18770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18771 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18772 | shlibpath_var=LD_LIBRARY_PATH |
18773 | shlibpath_overrides_runpath=yes |
18774 | if test "$with_gnu_ld" = yes; then |
18775 | need_lib_prefix=no |
18776 | fi |
18777 | need_version=yes |
18778 | ;; |
18779 | |
18780 | sysv4 | sysv4.3*) |
18781 | version_type=linux |
18782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18783 | soname_spec='${libname}${release}${shared_ext}$major' |
18784 | shlibpath_var=LD_LIBRARY_PATH |
18785 | case $host_vendor in |
18786 | sni) |
18787 | shlibpath_overrides_runpath=no |
18788 | need_lib_prefix=no |
18789 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18790 | runpath_var=LD_RUN_PATH |
18791 | ;; |
18792 | siemens) |
18793 | need_lib_prefix=no |
18794 | ;; |
18795 | motorola) |
18796 | need_lib_prefix=no |
18797 | need_version=no |
18798 | shlibpath_overrides_runpath=no |
18799 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18800 | ;; |
18801 | esac |
18802 | ;; |
18803 | |
18804 | sysv4*MP*) |
18805 | if test -d /usr/nec ;then |
18806 | version_type=linux |
18807 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18808 | soname_spec='$libname${shared_ext}.$major' |
18809 | shlibpath_var=LD_LIBRARY_PATH |
18810 | fi |
18811 | ;; |
18812 | |
18813 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18814 | version_type=freebsd-elf |
18815 | need_lib_prefix=no |
18816 | need_version=no |
18817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18818 | soname_spec='${libname}${release}${shared_ext}$major' |
18819 | shlibpath_var=LD_LIBRARY_PATH |
18820 | hardcode_into_libs=yes |
18821 | if test "$with_gnu_ld" = yes; then |
18822 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18823 | shlibpath_overrides_runpath=no |
18824 | else |
18825 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18826 | shlibpath_overrides_runpath=yes |
18827 | case $host_os in |
18828 | sco3.2v5*) |
18829 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18830 | ;; |
18831 | esac |
18832 | fi |
18833 | sys_lib_dlsearch_path_spec='/usr/lib' |
18834 | ;; |
18835 | |
18836 | uts4*) |
18837 | version_type=linux |
18838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18839 | soname_spec='${libname}${release}${shared_ext}$major' |
18840 | shlibpath_var=LD_LIBRARY_PATH |
18841 | ;; |
18842 | |
18843 | *) |
18844 | dynamic_linker=no |
18845 | ;; |
18846 | esac |
64ff59ba |
18847 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18848 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18849 | test "$dynamic_linker" = no && can_build_shared=no |
18850 | |
18851 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18852 | if test "$GCC" = yes; then |
18853 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18854 | fi |
18855 | |
64ff59ba |
18856 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18857 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18858 | hardcode_action_GCJ= |
18859 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18860 | test -n "$runpath_var_GCJ" || \ |
18861 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18862 | |
18863 | # We can hardcode non-existant directories. |
18864 | if test "$hardcode_direct_GCJ" != no && |
18865 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18866 | # have to relink, otherwise we might link with an installed library |
18867 | # when we should be linking with a yet-to-be-installed one |
18868 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18869 | test "$hardcode_minus_L_GCJ" != no; then |
18870 | # Linking always hardcodes the temporary library directory. |
18871 | hardcode_action_GCJ=relink |
18872 | else |
18873 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18874 | hardcode_action_GCJ=immediate |
18875 | fi |
18876 | else |
18877 | # We cannot hardcode anything, or else we can only hardcode existing |
18878 | # directories. |
18879 | hardcode_action_GCJ=unsupported |
18880 | fi |
64ff59ba |
18881 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18882 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18883 | |
18884 | if test "$hardcode_action_GCJ" = relink; then |
18885 | # Fast installation is not supported |
18886 | enable_fast_install=no |
18887 | elif test "$shlibpath_overrides_runpath" = yes || |
18888 | test "$enable_shared" = no; then |
18889 | # Fast installation is not necessary |
18890 | enable_fast_install=needless |
18891 | fi |
18892 | |
18893 | |
18894 | # The else clause should only fire when bootstrapping the |
18895 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18896 | # with your package, and you will get complaints that there are |
18897 | # no rules to generate ltmain.sh. |
18898 | if test -f "$ltmain"; then |
18899 | # See if we are running on zsh, and set the options which allow our commands through |
18900 | # without removal of \ escapes. |
18901 | if test -n "${ZSH_VERSION+set}" ; then |
18902 | setopt NO_GLOB_SUBST |
18903 | fi |
18904 | # Now quote all the things that may contain metacharacters while being |
18905 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18906 | # variables and quote the copies for generation of the libtool script. |
18907 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18908 | SED SHELL STRIP \ |
18909 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18910 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18911 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18912 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18913 | lt_cv_sys_global_symbol_to_c_name_address \ |
18914 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18915 | old_postinstall_cmds old_postuninstall_cmds \ |
18916 | compiler_GCJ \ |
18917 | CC_GCJ \ |
18918 | LD_GCJ \ |
18919 | lt_prog_compiler_wl_GCJ \ |
18920 | lt_prog_compiler_pic_GCJ \ |
18921 | lt_prog_compiler_static_GCJ \ |
18922 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18923 | export_dynamic_flag_spec_GCJ \ |
18924 | thread_safe_flag_spec_GCJ \ |
18925 | whole_archive_flag_spec_GCJ \ |
18926 | enable_shared_with_static_runtimes_GCJ \ |
18927 | old_archive_cmds_GCJ \ |
18928 | old_archive_from_new_cmds_GCJ \ |
18929 | predep_objects_GCJ \ |
18930 | postdep_objects_GCJ \ |
18931 | predeps_GCJ \ |
18932 | postdeps_GCJ \ |
18933 | compiler_lib_search_path_GCJ \ |
18934 | archive_cmds_GCJ \ |
18935 | archive_expsym_cmds_GCJ \ |
18936 | postinstall_cmds_GCJ \ |
18937 | postuninstall_cmds_GCJ \ |
18938 | old_archive_from_expsyms_cmds_GCJ \ |
18939 | allow_undefined_flag_GCJ \ |
18940 | no_undefined_flag_GCJ \ |
18941 | export_symbols_cmds_GCJ \ |
18942 | hardcode_libdir_flag_spec_GCJ \ |
18943 | hardcode_libdir_flag_spec_ld_GCJ \ |
18944 | hardcode_libdir_separator_GCJ \ |
18945 | hardcode_automatic_GCJ \ |
18946 | module_cmds_GCJ \ |
18947 | module_expsym_cmds_GCJ \ |
18948 | lt_cv_prog_compiler_c_o_GCJ \ |
0fde1ce3 |
18949 | fix_srcfile_path_GCJ \ |
d9898ee8 |
18950 | exclude_expsyms_GCJ \ |
18951 | include_expsyms_GCJ; do |
18952 | |
18953 | case $var in |
18954 | old_archive_cmds_GCJ | \ |
18955 | old_archive_from_new_cmds_GCJ | \ |
18956 | archive_cmds_GCJ | \ |
18957 | archive_expsym_cmds_GCJ | \ |
18958 | module_cmds_GCJ | \ |
18959 | module_expsym_cmds_GCJ | \ |
18960 | old_archive_from_expsyms_cmds_GCJ | \ |
18961 | export_symbols_cmds_GCJ | \ |
18962 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18963 | postinstall_cmds | postuninstall_cmds | \ |
18964 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18965 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18966 | # Double-quote double-evaled strings. |
18967 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18968 | ;; |
18969 | *) |
18970 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18971 | ;; |
18972 | esac |
18973 | done |
18974 | |
18975 | case $lt_echo in |
18976 | *'\$0 --fallback-echo"') |
18977 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18978 | ;; |
18979 | esac |
18980 | |
18981 | cfgfile="$ofile" |
18982 | |
18983 | cat <<__EOF__ >> "$cfgfile" |
18984 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18985 | |
18986 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18987 | |
18988 | # Shell to use when invoking shell scripts. |
18989 | SHELL=$lt_SHELL |
18990 | |
18991 | # Whether or not to build shared libraries. |
18992 | build_libtool_libs=$enable_shared |
18993 | |
18994 | # Whether or not to build static libraries. |
18995 | build_old_libs=$enable_static |
18996 | |
18997 | # Whether or not to add -lc for building shared libraries. |
18998 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18999 | |
19000 | # Whether or not to disallow shared libs when runtime libs are static |
19001 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
19002 | |
19003 | # Whether or not to optimize for fast installation. |
19004 | fast_install=$enable_fast_install |
19005 | |
19006 | # The host system. |
19007 | host_alias=$host_alias |
19008 | host=$host |
19009 | host_os=$host_os |
19010 | |
19011 | # The build system. |
19012 | build_alias=$build_alias |
19013 | build=$build |
19014 | build_os=$build_os |
19015 | |
19016 | # An echo program that does not interpret backslashes. |
19017 | echo=$lt_echo |
19018 | |
19019 | # The archiver. |
19020 | AR=$lt_AR |
19021 | AR_FLAGS=$lt_AR_FLAGS |
19022 | |
19023 | # A C compiler. |
19024 | LTCC=$lt_LTCC |
19025 | |
19026 | # LTCC compiler flags. |
19027 | LTCFLAGS=$lt_LTCFLAGS |
19028 | |
19029 | # A language-specific compiler. |
19030 | CC=$lt_compiler_GCJ |
19031 | |
19032 | # Is the compiler the GNU C compiler? |
19033 | with_gcc=$GCC_GCJ |
19034 | |
d9898ee8 |
19035 | # An ERE matcher. |
19036 | EGREP=$lt_EGREP |
19037 | |
19038 | # The linker used to build libraries. |
19039 | LD=$lt_LD_GCJ |
19040 | |
19041 | # Whether we need hard or soft links. |
19042 | LN_S=$lt_LN_S |
19043 | |
19044 | # A BSD-compatible nm program. |
19045 | NM=$lt_NM |
19046 | |
19047 | # A symbol stripping program |
19048 | STRIP=$lt_STRIP |
19049 | |
19050 | # Used to examine libraries when file_magic_cmd begins "file" |
19051 | MAGIC_CMD=$MAGIC_CMD |
19052 | |
19053 | # Used on cygwin: DLL creation program. |
19054 | DLLTOOL="$DLLTOOL" |
19055 | |
19056 | # Used on cygwin: object dumper. |
19057 | OBJDUMP="$OBJDUMP" |
19058 | |
19059 | # Used on cygwin: assembler. |
19060 | AS="$AS" |
19061 | |
19062 | # The name of the directory that contains temporary libtool files. |
19063 | objdir=$objdir |
19064 | |
19065 | # How to create reloadable object files. |
19066 | reload_flag=$lt_reload_flag |
19067 | reload_cmds=$lt_reload_cmds |
19068 | |
19069 | # How to pass a linker flag through the compiler. |
19070 | wl=$lt_lt_prog_compiler_wl_GCJ |
19071 | |
19072 | # Object file suffix (normally "o"). |
19073 | objext="$ac_objext" |
19074 | |
19075 | # Old archive suffix (normally "a"). |
19076 | libext="$libext" |
19077 | |
19078 | # Shared library suffix (normally ".so"). |
19079 | shrext_cmds='$shrext_cmds' |
19080 | |
19081 | # Executable file suffix (normally ""). |
19082 | exeext="$exeext" |
19083 | |
19084 | # Additional compiler flags for building library objects. |
19085 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
19086 | pic_mode=$pic_mode |
19087 | |
19088 | # What is the maximum length of a command? |
19089 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19090 | |
19091 | # Does compiler simultaneously support -c and -o options? |
19092 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
19093 | |
19094 | # Must we lock files when doing compilation? |
19095 | need_locks=$lt_need_locks |
19096 | |
19097 | # Do we need the lib prefix for modules? |
19098 | need_lib_prefix=$need_lib_prefix |
19099 | |
19100 | # Do we need a version for libraries? |
19101 | need_version=$need_version |
19102 | |
19103 | # Whether dlopen is supported. |
19104 | dlopen_support=$enable_dlopen |
19105 | |
19106 | # Whether dlopen of programs is supported. |
19107 | dlopen_self=$enable_dlopen_self |
19108 | |
19109 | # Whether dlopen of statically linked programs is supported. |
19110 | dlopen_self_static=$enable_dlopen_self_static |
19111 | |
19112 | # Compiler flag to prevent dynamic linking. |
19113 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
19114 | |
19115 | # Compiler flag to turn off builtin functions. |
19116 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
19117 | |
19118 | # Compiler flag to allow reflexive dlopens. |
19119 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
19120 | |
19121 | # Compiler flag to generate shared objects directly from archives. |
19122 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
19123 | |
19124 | # Compiler flag to generate thread-safe objects. |
19125 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
19126 | |
19127 | # Library versioning type. |
19128 | version_type=$version_type |
19129 | |
19130 | # Format of library name prefix. |
19131 | libname_spec=$lt_libname_spec |
19132 | |
19133 | # List of archive names. First name is the real one, the rest are links. |
19134 | # The last name is the one that the linker finds with -lNAME. |
19135 | library_names_spec=$lt_library_names_spec |
19136 | |
19137 | # The coded name of the library, if different from the real name. |
19138 | soname_spec=$lt_soname_spec |
19139 | |
19140 | # Commands used to build and install an old-style archive. |
19141 | RANLIB=$lt_RANLIB |
19142 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
19143 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19144 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19145 | |
19146 | # Create an old-style archive from a shared archive. |
19147 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
19148 | |
19149 | # Create a temporary old-style archive to link instead of a shared archive. |
19150 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
19151 | |
19152 | # Commands used to build and install a shared archive. |
19153 | archive_cmds=$lt_archive_cmds_GCJ |
19154 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
19155 | postinstall_cmds=$lt_postinstall_cmds |
19156 | postuninstall_cmds=$lt_postuninstall_cmds |
19157 | |
19158 | # Commands used to build a loadable module (assumed same as above if empty) |
19159 | module_cmds=$lt_module_cmds_GCJ |
19160 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
19161 | |
19162 | # Commands to strip libraries. |
19163 | old_striplib=$lt_old_striplib |
19164 | striplib=$lt_striplib |
19165 | |
19166 | # Dependencies to place before the objects being linked to create a |
19167 | # shared library. |
64ff59ba |
19168 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
19169 | |
19170 | # Dependencies to place after the objects being linked to create a |
19171 | # shared library. |
64ff59ba |
19172 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
19173 | |
19174 | # Dependencies to place before the objects being linked to create a |
19175 | # shared library. |
19176 | predeps=$lt_predeps_GCJ |
19177 | |
19178 | # Dependencies to place after the objects being linked to create a |
19179 | # shared library. |
19180 | postdeps=$lt_postdeps_GCJ |
19181 | |
19182 | # The library search path used internally by the compiler when linking |
19183 | # a shared library. |
64ff59ba |
19184 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
19185 | |
19186 | # Method to check whether dependent libraries are shared objects. |
19187 | deplibs_check_method=$lt_deplibs_check_method |
19188 | |
19189 | # Command to use when deplibs_check_method == file_magic. |
19190 | file_magic_cmd=$lt_file_magic_cmd |
19191 | |
19192 | # Flag that allows shared libraries with undefined symbols to be built. |
19193 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
19194 | |
19195 | # Flag that forces no undefined symbols. |
19196 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
19197 | |
19198 | # Commands used to finish a libtool library installation in a directory. |
19199 | finish_cmds=$lt_finish_cmds |
19200 | |
19201 | # Same as above, but a single script fragment to be evaled but not shown. |
19202 | finish_eval=$lt_finish_eval |
19203 | |
19204 | # Take the output of nm and produce a listing of raw symbols and C names. |
19205 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19206 | |
19207 | # Transform the output of nm in a proper C declaration |
19208 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19209 | |
19210 | # Transform the output of nm in a C name address pair |
19211 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19212 | |
19213 | # This is the shared library runtime path variable. |
19214 | runpath_var=$runpath_var |
19215 | |
19216 | # This is the shared library path variable. |
19217 | shlibpath_var=$shlibpath_var |
19218 | |
19219 | # Is shlibpath searched before the hard-coded library search path? |
19220 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19221 | |
19222 | # How to hardcode a shared library path into an executable. |
19223 | hardcode_action=$hardcode_action_GCJ |
19224 | |
19225 | # Whether we should hardcode library paths into libraries. |
19226 | hardcode_into_libs=$hardcode_into_libs |
19227 | |
19228 | # Flag to hardcode \$libdir into a binary during linking. |
19229 | # This must work even if \$libdir does not exist. |
19230 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
19231 | |
19232 | # If ld is used when linking, flag to hardcode \$libdir into |
19233 | # a binary during linking. This must work even if \$libdir does |
19234 | # not exist. |
19235 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
19236 | |
19237 | # Whether we need a single -rpath flag with a separated argument. |
19238 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
19239 | |
19240 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19241 | # resulting binary. |
19242 | hardcode_direct=$hardcode_direct_GCJ |
19243 | |
19244 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19245 | # resulting binary. |
19246 | hardcode_minus_L=$hardcode_minus_L_GCJ |
19247 | |
19248 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19249 | # the resulting binary. |
19250 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
19251 | |
19252 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19253 | # and all subsequent libraries and executables linked against it. |
19254 | hardcode_automatic=$hardcode_automatic_GCJ |
19255 | |
19256 | # Variables whose values should be saved in libtool wrapper scripts and |
19257 | # restored at relink time. |
19258 | variables_saved_for_relink="$variables_saved_for_relink" |
19259 | |
19260 | # Whether libtool must link a program against all its dependency libraries. |
19261 | link_all_deplibs=$link_all_deplibs_GCJ |
19262 | |
19263 | # Compile-time system search path for libraries |
64ff59ba |
19264 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19265 | |
19266 | # Run-time system search path for libraries |
19267 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19268 | |
19269 | # Fix the shell variable \$srcfile for the compiler. |
0fde1ce3 |
19270 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
19271 | |
19272 | # Set to yes if exported symbols are required. |
19273 | always_export_symbols=$always_export_symbols_GCJ |
19274 | |
19275 | # The commands to list exported symbols. |
19276 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
19277 | |
19278 | # The commands to extract the exported symbol list from a shared archive. |
19279 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19280 | |
19281 | # Symbols that should not be listed in the preloaded symbols. |
19282 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
19283 | |
19284 | # Symbols that must always be exported. |
19285 | include_expsyms=$lt_include_expsyms_GCJ |
19286 | |
19287 | # ### END LIBTOOL TAG CONFIG: $tagname |
19288 | |
19289 | __EOF__ |
19290 | |
19291 | |
19292 | else |
19293 | # If there is no Makefile yet, we rely on a make rule to execute |
19294 | # `config.status --recheck' to rerun these tests and create the |
19295 | # libtool script then. |
19296 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19297 | if test -f "$ltmain_in"; then |
19298 | test -f Makefile && make "$ltmain" |
19299 | fi |
19300 | fi |
19301 | |
19302 | |
19303 | ac_ext=c |
19304 | ac_cpp='$CPP $CPPFLAGS' |
19305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19308 | |
19309 | CC="$lt_save_CC" |
19310 | |
19311 | else |
19312 | tagname="" |
19313 | fi |
19314 | ;; |
19315 | |
19316 | RC) |
19317 | |
19318 | |
d9898ee8 |
19319 | # Source file extension for RC test sources. |
19320 | ac_ext=rc |
19321 | |
19322 | # Object file extension for compiled RC test sources. |
19323 | objext=o |
19324 | objext_RC=$objext |
19325 | |
19326 | # Code to be used in simple compile tests |
0fde1ce3 |
19327 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
d9898ee8 |
19328 | |
19329 | # Code to be used in simple link tests |
19330 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
19331 | |
19332 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
19333 | |
19334 | # If no C compiler was specified, use CC. |
19335 | LTCC=${LTCC-"$CC"} |
19336 | |
19337 | # If no C compiler flags were specified, use CFLAGS. |
19338 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
19339 | |
19340 | # Allow CC to be a program name with arguments. |
19341 | compiler=$CC |
19342 | |
19343 | |
19344 | # save warnings/boilerplate of simple test code |
19345 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
19346 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
19347 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19348 | _lt_compiler_boilerplate=`cat conftest.err` |
19349 | $rm conftest* |
19350 | |
19351 | ac_outfile=conftest.$ac_objext |
0fde1ce3 |
19352 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
19353 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19354 | _lt_linker_boilerplate=`cat conftest.err` |
19355 | $rm conftest* |
19356 | |
19357 | |
19358 | # Allow CC to be a program name with arguments. |
19359 | lt_save_CC="$CC" |
19360 | CC=${RC-"windres"} |
19361 | compiler=$CC |
19362 | compiler_RC=$CC |
19363 | for cc_temp in $compiler""; do |
19364 | case $cc_temp in |
19365 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
19366 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
19367 | \-*) ;; |
19368 | *) break;; |
19369 | esac |
19370 | done |
19371 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
19372 | |
19373 | lt_cv_prog_compiler_c_o_RC=yes |
19374 | |
19375 | # The else clause should only fire when bootstrapping the |
19376 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19377 | # with your package, and you will get complaints that there are |
19378 | # no rules to generate ltmain.sh. |
19379 | if test -f "$ltmain"; then |
19380 | # See if we are running on zsh, and set the options which allow our commands through |
19381 | # without removal of \ escapes. |
19382 | if test -n "${ZSH_VERSION+set}" ; then |
19383 | setopt NO_GLOB_SUBST |
19384 | fi |
19385 | # Now quote all the things that may contain metacharacters while being |
19386 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19387 | # variables and quote the copies for generation of the libtool script. |
19388 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19389 | SED SHELL STRIP \ |
19390 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19391 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19392 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19393 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19394 | lt_cv_sys_global_symbol_to_c_name_address \ |
19395 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19396 | old_postinstall_cmds old_postuninstall_cmds \ |
19397 | compiler_RC \ |
19398 | CC_RC \ |
19399 | LD_RC \ |
19400 | lt_prog_compiler_wl_RC \ |
19401 | lt_prog_compiler_pic_RC \ |
19402 | lt_prog_compiler_static_RC \ |
19403 | lt_prog_compiler_no_builtin_flag_RC \ |
19404 | export_dynamic_flag_spec_RC \ |
19405 | thread_safe_flag_spec_RC \ |
19406 | whole_archive_flag_spec_RC \ |
19407 | enable_shared_with_static_runtimes_RC \ |
19408 | old_archive_cmds_RC \ |
19409 | old_archive_from_new_cmds_RC \ |
19410 | predep_objects_RC \ |
19411 | postdep_objects_RC \ |
19412 | predeps_RC \ |
19413 | postdeps_RC \ |
19414 | compiler_lib_search_path_RC \ |
19415 | archive_cmds_RC \ |
19416 | archive_expsym_cmds_RC \ |
19417 | postinstall_cmds_RC \ |
19418 | postuninstall_cmds_RC \ |
19419 | old_archive_from_expsyms_cmds_RC \ |
19420 | allow_undefined_flag_RC \ |
19421 | no_undefined_flag_RC \ |
19422 | export_symbols_cmds_RC \ |
19423 | hardcode_libdir_flag_spec_RC \ |
19424 | hardcode_libdir_flag_spec_ld_RC \ |
19425 | hardcode_libdir_separator_RC \ |
19426 | hardcode_automatic_RC \ |
19427 | module_cmds_RC \ |
19428 | module_expsym_cmds_RC \ |
19429 | lt_cv_prog_compiler_c_o_RC \ |
0fde1ce3 |
19430 | fix_srcfile_path_RC \ |
d9898ee8 |
19431 | exclude_expsyms_RC \ |
19432 | include_expsyms_RC; do |
19433 | |
19434 | case $var in |
19435 | old_archive_cmds_RC | \ |
19436 | old_archive_from_new_cmds_RC | \ |
19437 | archive_cmds_RC | \ |
19438 | archive_expsym_cmds_RC | \ |
19439 | module_cmds_RC | \ |
19440 | module_expsym_cmds_RC | \ |
19441 | old_archive_from_expsyms_cmds_RC | \ |
19442 | export_symbols_cmds_RC | \ |
19443 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19444 | postinstall_cmds | postuninstall_cmds | \ |
19445 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19446 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19447 | # Double-quote double-evaled strings. |
19448 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19449 | ;; |
19450 | *) |
19451 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19452 | ;; |
19453 | esac |
19454 | done |
19455 | |
19456 | case $lt_echo in |
19457 | *'\$0 --fallback-echo"') |
19458 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19459 | ;; |
19460 | esac |
19461 | |
19462 | cfgfile="$ofile" |
19463 | |
19464 | cat <<__EOF__ >> "$cfgfile" |
19465 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19466 | |
19467 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19468 | |
19469 | # Shell to use when invoking shell scripts. |
19470 | SHELL=$lt_SHELL |
19471 | |
19472 | # Whether or not to build shared libraries. |
19473 | build_libtool_libs=$enable_shared |
19474 | |
19475 | # Whether or not to build static libraries. |
19476 | build_old_libs=$enable_static |
19477 | |
19478 | # Whether or not to add -lc for building shared libraries. |
19479 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19480 | |
19481 | # Whether or not to disallow shared libs when runtime libs are static |
19482 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19483 | |
19484 | # Whether or not to optimize for fast installation. |
19485 | fast_install=$enable_fast_install |
19486 | |
19487 | # The host system. |
19488 | host_alias=$host_alias |
19489 | host=$host |
19490 | host_os=$host_os |
19491 | |
19492 | # The build system. |
19493 | build_alias=$build_alias |
19494 | build=$build |
19495 | build_os=$build_os |
19496 | |
19497 | # An echo program that does not interpret backslashes. |
19498 | echo=$lt_echo |
19499 | |
19500 | # The archiver. |
19501 | AR=$lt_AR |
19502 | AR_FLAGS=$lt_AR_FLAGS |
19503 | |
19504 | # A C compiler. |
19505 | LTCC=$lt_LTCC |
19506 | |
19507 | # LTCC compiler flags. |
19508 | LTCFLAGS=$lt_LTCFLAGS |
19509 | |
19510 | # A language-specific compiler. |
19511 | CC=$lt_compiler_RC |
19512 | |
19513 | # Is the compiler the GNU C compiler? |
19514 | with_gcc=$GCC_RC |
19515 | |
d9898ee8 |
19516 | # An ERE matcher. |
19517 | EGREP=$lt_EGREP |
19518 | |
19519 | # The linker used to build libraries. |
19520 | LD=$lt_LD_RC |
19521 | |
19522 | # Whether we need hard or soft links. |
19523 | LN_S=$lt_LN_S |
19524 | |
19525 | # A BSD-compatible nm program. |
19526 | NM=$lt_NM |
19527 | |
19528 | # A symbol stripping program |
19529 | STRIP=$lt_STRIP |
19530 | |
19531 | # Used to examine libraries when file_magic_cmd begins "file" |
19532 | MAGIC_CMD=$MAGIC_CMD |
19533 | |
19534 | # Used on cygwin: DLL creation program. |
19535 | DLLTOOL="$DLLTOOL" |
19536 | |
19537 | # Used on cygwin: object dumper. |
19538 | OBJDUMP="$OBJDUMP" |
19539 | |
19540 | # Used on cygwin: assembler. |
19541 | AS="$AS" |
19542 | |
19543 | # The name of the directory that contains temporary libtool files. |
19544 | objdir=$objdir |
19545 | |
19546 | # How to create reloadable object files. |
19547 | reload_flag=$lt_reload_flag |
19548 | reload_cmds=$lt_reload_cmds |
19549 | |
19550 | # How to pass a linker flag through the compiler. |
19551 | wl=$lt_lt_prog_compiler_wl_RC |
19552 | |
19553 | # Object file suffix (normally "o"). |
19554 | objext="$ac_objext" |
19555 | |
19556 | # Old archive suffix (normally "a"). |
19557 | libext="$libext" |
19558 | |
19559 | # Shared library suffix (normally ".so"). |
19560 | shrext_cmds='$shrext_cmds' |
19561 | |
19562 | # Executable file suffix (normally ""). |
19563 | exeext="$exeext" |
19564 | |
19565 | # Additional compiler flags for building library objects. |
19566 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19567 | pic_mode=$pic_mode |
19568 | |
19569 | # What is the maximum length of a command? |
19570 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19571 | |
19572 | # Does compiler simultaneously support -c and -o options? |
19573 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19574 | |
19575 | # Must we lock files when doing compilation? |
19576 | need_locks=$lt_need_locks |
19577 | |
19578 | # Do we need the lib prefix for modules? |
19579 | need_lib_prefix=$need_lib_prefix |
19580 | |
19581 | # Do we need a version for libraries? |
19582 | need_version=$need_version |
19583 | |
19584 | # Whether dlopen is supported. |
19585 | dlopen_support=$enable_dlopen |
19586 | |
19587 | # Whether dlopen of programs is supported. |
19588 | dlopen_self=$enable_dlopen_self |
19589 | |
19590 | # Whether dlopen of statically linked programs is supported. |
19591 | dlopen_self_static=$enable_dlopen_self_static |
19592 | |
19593 | # Compiler flag to prevent dynamic linking. |
19594 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19595 | |
19596 | # Compiler flag to turn off builtin functions. |
19597 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19598 | |
19599 | # Compiler flag to allow reflexive dlopens. |
19600 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19601 | |
19602 | # Compiler flag to generate shared objects directly from archives. |
19603 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19604 | |
19605 | # Compiler flag to generate thread-safe objects. |
19606 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19607 | |
19608 | # Library versioning type. |
19609 | version_type=$version_type |
19610 | |
19611 | # Format of library name prefix. |
19612 | libname_spec=$lt_libname_spec |
19613 | |
19614 | # List of archive names. First name is the real one, the rest are links. |
19615 | # The last name is the one that the linker finds with -lNAME. |
19616 | library_names_spec=$lt_library_names_spec |
19617 | |
19618 | # The coded name of the library, if different from the real name. |
19619 | soname_spec=$lt_soname_spec |
19620 | |
19621 | # Commands used to build and install an old-style archive. |
19622 | RANLIB=$lt_RANLIB |
19623 | old_archive_cmds=$lt_old_archive_cmds_RC |
19624 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19625 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19626 | |
19627 | # Create an old-style archive from a shared archive. |
19628 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19629 | |
19630 | # Create a temporary old-style archive to link instead of a shared archive. |
19631 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19632 | |
19633 | # Commands used to build and install a shared archive. |
19634 | archive_cmds=$lt_archive_cmds_RC |
19635 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19636 | postinstall_cmds=$lt_postinstall_cmds |
19637 | postuninstall_cmds=$lt_postuninstall_cmds |
19638 | |
19639 | # Commands used to build a loadable module (assumed same as above if empty) |
19640 | module_cmds=$lt_module_cmds_RC |
19641 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19642 | |
19643 | # Commands to strip libraries. |
19644 | old_striplib=$lt_old_striplib |
19645 | striplib=$lt_striplib |
19646 | |
19647 | # Dependencies to place before the objects being linked to create a |
19648 | # shared library. |
64ff59ba |
19649 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19650 | |
19651 | # Dependencies to place after the objects being linked to create a |
19652 | # shared library. |
64ff59ba |
19653 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19654 | |
19655 | # Dependencies to place before the objects being linked to create a |
19656 | # shared library. |
19657 | predeps=$lt_predeps_RC |
19658 | |
19659 | # Dependencies to place after the objects being linked to create a |
19660 | # shared library. |
19661 | postdeps=$lt_postdeps_RC |
19662 | |
19663 | # The library search path used internally by the compiler when linking |
19664 | # a shared library. |
64ff59ba |
19665 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19666 | |
19667 | # Method to check whether dependent libraries are shared objects. |
19668 | deplibs_check_method=$lt_deplibs_check_method |
19669 | |
19670 | # Command to use when deplibs_check_method == file_magic. |
19671 | file_magic_cmd=$lt_file_magic_cmd |
19672 | |
19673 | # Flag that allows shared libraries with undefined symbols to be built. |
19674 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19675 | |
19676 | # Flag that forces no undefined symbols. |
19677 | no_undefined_flag=$lt_no_undefined_flag_RC |
19678 | |
19679 | # Commands used to finish a libtool library installation in a directory. |
19680 | finish_cmds=$lt_finish_cmds |
19681 | |
19682 | # Same as above, but a single script fragment to be evaled but not shown. |
19683 | finish_eval=$lt_finish_eval |
19684 | |
19685 | # Take the output of nm and produce a listing of raw symbols and C names. |
19686 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19687 | |
19688 | # Transform the output of nm in a proper C declaration |
19689 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19690 | |
19691 | # Transform the output of nm in a C name address pair |
19692 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19693 | |
19694 | # This is the shared library runtime path variable. |
19695 | runpath_var=$runpath_var |
19696 | |
19697 | # This is the shared library path variable. |
19698 | shlibpath_var=$shlibpath_var |
19699 | |
19700 | # Is shlibpath searched before the hard-coded library search path? |
19701 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19702 | |
19703 | # How to hardcode a shared library path into an executable. |
19704 | hardcode_action=$hardcode_action_RC |
19705 | |
19706 | # Whether we should hardcode library paths into libraries. |
19707 | hardcode_into_libs=$hardcode_into_libs |
19708 | |
19709 | # Flag to hardcode \$libdir into a binary during linking. |
19710 | # This must work even if \$libdir does not exist. |
19711 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19712 | |
19713 | # If ld is used when linking, flag to hardcode \$libdir into |
19714 | # a binary during linking. This must work even if \$libdir does |
19715 | # not exist. |
19716 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19717 | |
19718 | # Whether we need a single -rpath flag with a separated argument. |
19719 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19720 | |
19721 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19722 | # resulting binary. |
19723 | hardcode_direct=$hardcode_direct_RC |
19724 | |
19725 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19726 | # resulting binary. |
19727 | hardcode_minus_L=$hardcode_minus_L_RC |
19728 | |
19729 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19730 | # the resulting binary. |
19731 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19732 | |
19733 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19734 | # and all subsequent libraries and executables linked against it. |
19735 | hardcode_automatic=$hardcode_automatic_RC |
19736 | |
19737 | # Variables whose values should be saved in libtool wrapper scripts and |
19738 | # restored at relink time. |
19739 | variables_saved_for_relink="$variables_saved_for_relink" |
19740 | |
19741 | # Whether libtool must link a program against all its dependency libraries. |
19742 | link_all_deplibs=$link_all_deplibs_RC |
19743 | |
19744 | # Compile-time system search path for libraries |
64ff59ba |
19745 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19746 | |
19747 | # Run-time system search path for libraries |
19748 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19749 | |
19750 | # Fix the shell variable \$srcfile for the compiler. |
0fde1ce3 |
19751 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
19752 | |
19753 | # Set to yes if exported symbols are required. |
19754 | always_export_symbols=$always_export_symbols_RC |
19755 | |
19756 | # The commands to list exported symbols. |
19757 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19758 | |
19759 | # The commands to extract the exported symbol list from a shared archive. |
19760 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19761 | |
19762 | # Symbols that should not be listed in the preloaded symbols. |
19763 | exclude_expsyms=$lt_exclude_expsyms_RC |
19764 | |
19765 | # Symbols that must always be exported. |
19766 | include_expsyms=$lt_include_expsyms_RC |
19767 | |
19768 | # ### END LIBTOOL TAG CONFIG: $tagname |
19769 | |
19770 | __EOF__ |
19771 | |
19772 | |
19773 | else |
19774 | # If there is no Makefile yet, we rely on a make rule to execute |
19775 | # `config.status --recheck' to rerun these tests and create the |
19776 | # libtool script then. |
19777 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19778 | if test -f "$ltmain_in"; then |
19779 | test -f Makefile && make "$ltmain" |
19780 | fi |
19781 | fi |
19782 | |
19783 | |
19784 | ac_ext=c |
19785 | ac_cpp='$CPP $CPPFLAGS' |
19786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19789 | |
19790 | CC="$lt_save_CC" |
19791 | |
19792 | ;; |
19793 | |
19794 | *) |
19795 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19796 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19797 | { (exit 1); exit 1; }; } |
19798 | ;; |
19799 | esac |
19800 | |
19801 | # Append the new tag name to the list of available tags. |
19802 | if test -n "$tagname" ; then |
19803 | available_tags="$available_tags $tagname" |
19804 | fi |
19805 | fi |
19806 | done |
19807 | IFS="$lt_save_ifs" |
19808 | |
19809 | # Now substitute the updated list of available tags. |
19810 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19811 | mv "${ofile}T" "$ofile" |
19812 | chmod +x "$ofile" |
19813 | else |
19814 | rm -f "${ofile}T" |
19815 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19816 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19817 | { (exit 1); exit 1; }; } |
19818 | fi |
19819 | fi |
19820 | |
19821 | |
19822 | |
19823 | # This can be used to rebuild libtool when needed |
19824 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19825 | |
19826 | # Always use our own libtool. |
19827 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19828 | |
19829 | # Prevent multiple expansion |
19830 | |
19831 | |
19832 | |
19833 | |
19834 | |
19835 | |
19836 | |
19837 | |
19838 | |
19839 | |
19840 | |
19841 | |
19842 | |
19843 | |
19844 | |
19845 | |
19846 | |
19847 | |
19848 | |
19849 | |
19850 | |
19851 | |
19852 | |
19853 | |
19854 | |
19855 | |
19856 | |
19857 | ac_header_dirent=no |
19858 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
19859 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
64ff59ba |
19860 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
19861 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
19862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19864 | else |
19865 | cat >conftest.$ac_ext <<_ACEOF |
19866 | /* confdefs.h. */ |
19867 | _ACEOF |
19868 | cat confdefs.h >>conftest.$ac_ext |
19869 | cat >>conftest.$ac_ext <<_ACEOF |
19870 | /* end confdefs.h. */ |
19871 | #include <sys/types.h> |
19872 | #include <$ac_hdr> |
19873 | |
19874 | int |
19875 | main () |
19876 | { |
19877 | if ((DIR *) 0) |
19878 | return 0; |
19879 | ; |
19880 | return 0; |
19881 | } |
19882 | _ACEOF |
19883 | rm -f conftest.$ac_objext |
64ff59ba |
19884 | if { (ac_try="$ac_compile" |
19885 | case "(($ac_try" in |
19886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19887 | *) ac_try_echo=$ac_try;; |
19888 | esac |
19889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19890 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19891 | ac_status=$? |
19892 | grep -v '^ *+' conftest.er1 >conftest.err |
19893 | rm -f conftest.er1 |
19894 | cat conftest.err >&5 |
19895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19896 | (exit $ac_status); } && { |
19897 | test -z "$ac_c_werror_flag" || |
19898 | test ! -s conftest.err |
19899 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19900 | eval "$as_ac_Header=yes" |
19901 | else |
19902 | echo "$as_me: failed program was:" >&5 |
19903 | sed 's/^/| /' conftest.$ac_ext >&5 |
19904 | |
64ff59ba |
19905 | eval "$as_ac_Header=no" |
d9898ee8 |
19906 | fi |
64ff59ba |
19907 | |
19908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19909 | fi |
64ff59ba |
19910 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19911 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19912 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19914 | cat >>confdefs.h <<_ACEOF |
19915 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
19916 | _ACEOF |
19917 | |
19918 | ac_header_dirent=$ac_hdr; break |
19919 | fi |
19920 | |
19921 | done |
19922 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
19923 | if test $ac_header_dirent = dirent.h; then |
64ff59ba |
19924 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
19925 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
d9898ee8 |
19926 | if test "${ac_cv_search_opendir+set}" = set; then |
19927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19928 | else |
19929 | ac_func_search_save_LIBS=$LIBS |
d9898ee8 |
19930 | cat >conftest.$ac_ext <<_ACEOF |
19931 | /* confdefs.h. */ |
19932 | _ACEOF |
19933 | cat confdefs.h >>conftest.$ac_ext |
19934 | cat >>conftest.$ac_ext <<_ACEOF |
19935 | /* end confdefs.h. */ |
19936 | |
64ff59ba |
19937 | /* Override any GCC internal prototype to avoid an error. |
19938 | Use char because int might match the return type of a GCC |
19939 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
19940 | #ifdef __cplusplus |
19941 | extern "C" |
19942 | #endif |
d9898ee8 |
19943 | char opendir (); |
19944 | int |
19945 | main () |
19946 | { |
64ff59ba |
19947 | return opendir (); |
d9898ee8 |
19948 | ; |
19949 | return 0; |
19950 | } |
19951 | _ACEOF |
64ff59ba |
19952 | for ac_lib in '' dir; do |
19953 | if test -z "$ac_lib"; then |
19954 | ac_res="none required" |
19955 | else |
19956 | ac_res=-l$ac_lib |
19957 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
19958 | fi |
19959 | rm -f conftest.$ac_objext conftest$ac_exeext |
19960 | if { (ac_try="$ac_link" |
19961 | case "(($ac_try" in |
19962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19963 | *) ac_try_echo=$ac_try;; |
19964 | esac |
19965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19966 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
19967 | ac_status=$? |
19968 | grep -v '^ *+' conftest.er1 >conftest.err |
19969 | rm -f conftest.er1 |
19970 | cat conftest.err >&5 |
19971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
19972 | (exit $ac_status); } && { |
19973 | test -z "$ac_c_werror_flag" || |
19974 | test ! -s conftest.err |
19975 | } && test -s conftest$ac_exeext && |
19976 | $as_test_x conftest$ac_exeext; then |
19977 | ac_cv_search_opendir=$ac_res |
d9898ee8 |
19978 | else |
19979 | echo "$as_me: failed program was:" >&5 |
19980 | sed 's/^/| /' conftest.$ac_ext >&5 |
19981 | |
d9898ee8 |
19982 | |
64ff59ba |
19983 | fi |
d9898ee8 |
19984 | |
64ff59ba |
19985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19986 | conftest$ac_exeext |
19987 | if test "${ac_cv_search_opendir+set}" = set; then |
19988 | break |
d9898ee8 |
19989 | fi |
64ff59ba |
19990 | done |
19991 | if test "${ac_cv_search_opendir+set}" = set; then |
19992 | : |
19993 | else |
19994 | ac_cv_search_opendir=no |
d9898ee8 |
19995 | fi |
64ff59ba |
19996 | rm conftest.$ac_ext |
d9898ee8 |
19997 | LIBS=$ac_func_search_save_LIBS |
19998 | fi |
64ff59ba |
19999 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
20000 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
20001 | ac_res=$ac_cv_search_opendir |
20002 | if test "$ac_res" != no; then |
20003 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
d9898ee8 |
20004 | |
20005 | fi |
20006 | |
20007 | else |
64ff59ba |
20008 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
20009 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
d9898ee8 |
20010 | if test "${ac_cv_search_opendir+set}" = set; then |
20011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20012 | else |
20013 | ac_func_search_save_LIBS=$LIBS |
d9898ee8 |
20014 | cat >conftest.$ac_ext <<_ACEOF |
20015 | /* confdefs.h. */ |
20016 | _ACEOF |
20017 | cat confdefs.h >>conftest.$ac_ext |
20018 | cat >>conftest.$ac_ext <<_ACEOF |
20019 | /* end confdefs.h. */ |
20020 | |
64ff59ba |
20021 | /* Override any GCC internal prototype to avoid an error. |
20022 | Use char because int might match the return type of a GCC |
20023 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20024 | #ifdef __cplusplus |
20025 | extern "C" |
20026 | #endif |
d9898ee8 |
20027 | char opendir (); |
20028 | int |
20029 | main () |
20030 | { |
64ff59ba |
20031 | return opendir (); |
d9898ee8 |
20032 | ; |
20033 | return 0; |
20034 | } |
20035 | _ACEOF |
64ff59ba |
20036 | for ac_lib in '' x; do |
20037 | if test -z "$ac_lib"; then |
20038 | ac_res="none required" |
20039 | else |
20040 | ac_res=-l$ac_lib |
20041 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
20042 | fi |
20043 | rm -f conftest.$ac_objext conftest$ac_exeext |
20044 | if { (ac_try="$ac_link" |
20045 | case "(($ac_try" in |
20046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20047 | *) ac_try_echo=$ac_try;; |
20048 | esac |
20049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20050 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20051 | ac_status=$? |
20052 | grep -v '^ *+' conftest.er1 >conftest.err |
20053 | rm -f conftest.er1 |
20054 | cat conftest.err >&5 |
20055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20056 | (exit $ac_status); } && { |
20057 | test -z "$ac_c_werror_flag" || |
20058 | test ! -s conftest.err |
20059 | } && test -s conftest$ac_exeext && |
20060 | $as_test_x conftest$ac_exeext; then |
20061 | ac_cv_search_opendir=$ac_res |
d9898ee8 |
20062 | else |
20063 | echo "$as_me: failed program was:" >&5 |
20064 | sed 's/^/| /' conftest.$ac_ext >&5 |
20065 | |
d9898ee8 |
20066 | |
64ff59ba |
20067 | fi |
d9898ee8 |
20068 | |
64ff59ba |
20069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
20070 | conftest$ac_exeext |
20071 | if test "${ac_cv_search_opendir+set}" = set; then |
20072 | break |
d9898ee8 |
20073 | fi |
64ff59ba |
20074 | done |
20075 | if test "${ac_cv_search_opendir+set}" = set; then |
20076 | : |
20077 | else |
20078 | ac_cv_search_opendir=no |
d9898ee8 |
20079 | fi |
64ff59ba |
20080 | rm conftest.$ac_ext |
d9898ee8 |
20081 | LIBS=$ac_func_search_save_LIBS |
20082 | fi |
64ff59ba |
20083 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
20084 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
20085 | ac_res=$ac_cv_search_opendir |
20086 | if test "$ac_res" != no; then |
20087 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
d9898ee8 |
20088 | |
20089 | fi |
20090 | |
20091 | fi |
20092 | |
64ff59ba |
20093 | # Check whether --enable-ltdl-install was given. |
d9898ee8 |
20094 | if test "${enable_ltdl_install+set}" = set; then |
64ff59ba |
20095 | enableval=$enable_ltdl_install; |
20096 | fi |
d9898ee8 |
20097 | |
20098 | |
64ff59ba |
20099 | if test x"${enable_ltdl_install-no}" != xno; then |
d9898ee8 |
20100 | INSTALL_LTDL_TRUE= |
20101 | INSTALL_LTDL_FALSE='#' |
20102 | else |
20103 | INSTALL_LTDL_TRUE='#' |
20104 | INSTALL_LTDL_FALSE= |
20105 | fi |
20106 | |
64ff59ba |
20107 | if test x"${enable_ltdl_convenience-no}" != xno; then |
d9898ee8 |
20108 | CONVENIENCE_LTDL_TRUE= |
20109 | CONVENIENCE_LTDL_FALSE='#' |
20110 | else |
20111 | CONVENIENCE_LTDL_TRUE='#' |
20112 | CONVENIENCE_LTDL_FALSE= |
20113 | fi |
20114 | |
20115 | |
20116 | |
64ff59ba |
20117 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
20118 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
d9898ee8 |
20119 | if test "${libltdl_cv_shlibext+set}" = set; then |
20120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20121 | else |
20122 | |
20123 | module=yes |
20124 | eval libltdl_cv_shlibext=$shrext_cmds |
20125 | |
20126 | fi |
64ff59ba |
20127 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
20128 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
d9898ee8 |
20129 | if test -n "$libltdl_cv_shlibext"; then |
20130 | |
20131 | cat >>confdefs.h <<_ACEOF |
20132 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
20133 | _ACEOF |
20134 | |
20135 | fi |
20136 | |
20137 | |
64ff59ba |
20138 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
20139 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
d9898ee8 |
20140 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
20141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20142 | else |
20143 | libltdl_cv_shlibpath_var="$shlibpath_var" |
20144 | fi |
64ff59ba |
20145 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
20146 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
d9898ee8 |
20147 | if test -n "$libltdl_cv_shlibpath_var"; then |
20148 | |
20149 | cat >>confdefs.h <<_ACEOF |
20150 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
20151 | _ACEOF |
20152 | |
20153 | fi |
20154 | |
20155 | |
64ff59ba |
20156 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
20157 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
d9898ee8 |
20158 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
20159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20160 | else |
20161 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
20162 | fi |
64ff59ba |
20163 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
20164 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
d9898ee8 |
20165 | if test -n "$libltdl_cv_sys_search_path"; then |
20166 | sys_search_path= |
20167 | for dir in $libltdl_cv_sys_search_path; do |
20168 | if test -z "$sys_search_path"; then |
20169 | sys_search_path="$dir" |
20170 | else |
20171 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
20172 | fi |
20173 | done |
20174 | |
20175 | cat >>confdefs.h <<_ACEOF |
20176 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
20177 | _ACEOF |
20178 | |
20179 | fi |
20180 | |
64ff59ba |
20181 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
20182 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
20183 | if test "${libltdl_cv_objdir+set}" = set; then |
20184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20185 | else |
20186 | libltdl_cv_objdir="$objdir" |
20187 | if test -n "$objdir"; then |
20188 | : |
20189 | else |
20190 | rm -f .libs 2>/dev/null |
20191 | mkdir .libs 2>/dev/null |
20192 | if test -d .libs; then |
20193 | libltdl_cv_objdir=.libs |
20194 | else |
20195 | # MS-DOS does not allow filenames that begin with a dot. |
20196 | libltdl_cv_objdir=_libs |
20197 | fi |
20198 | rmdir .libs 2>/dev/null |
20199 | fi |
20200 | |
20201 | fi |
64ff59ba |
20202 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
20203 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
d9898ee8 |
20204 | |
20205 | cat >>confdefs.h <<_ACEOF |
20206 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
20207 | _ACEOF |
20208 | |
20209 | |
20210 | |
64ff59ba |
20211 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
20212 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
d9898ee8 |
20213 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
20214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20215 | else |
20216 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
20217 | libltdl_cv_preloaded_symbols=yes |
20218 | else |
20219 | libltdl_cv_preloaded_symbols=no |
20220 | fi |
20221 | |
20222 | fi |
64ff59ba |
20223 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
20224 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
d9898ee8 |
20225 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
20226 | |
20227 | cat >>confdefs.h <<\_ACEOF |
20228 | #define HAVE_PRELOADED_SYMBOLS 1 |
20229 | _ACEOF |
20230 | |
20231 | fi |
20232 | |
20233 | LIBADD_DL= |
20234 | |
20235 | ac_ext=c |
20236 | ac_cpp='$CPP $CPPFLAGS' |
20237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
20238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
20239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
20240 | |
20241 | |
64ff59ba |
20242 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
20243 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
20244 | if test "${ac_cv_func_shl_load+set}" = set; then |
20245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20246 | else |
20247 | cat >conftest.$ac_ext <<_ACEOF |
20248 | /* confdefs.h. */ |
20249 | _ACEOF |
20250 | cat confdefs.h >>conftest.$ac_ext |
20251 | cat >>conftest.$ac_ext <<_ACEOF |
20252 | /* end confdefs.h. */ |
20253 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
20254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20255 | #define shl_load innocuous_shl_load |
20256 | |
20257 | /* System header to define __stub macros and hopefully few prototypes, |
20258 | which can conflict with char shl_load (); below. |
20259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20260 | <limits.h> exists even on freestanding compilers. */ |
20261 | |
20262 | #ifdef __STDC__ |
20263 | # include <limits.h> |
20264 | #else |
20265 | # include <assert.h> |
20266 | #endif |
20267 | |
20268 | #undef shl_load |
20269 | |
64ff59ba |
20270 | /* Override any GCC internal prototype to avoid an error. |
20271 | Use char because int might match the return type of a GCC |
20272 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20273 | #ifdef __cplusplus |
20274 | extern "C" |
d9898ee8 |
20275 | #endif |
d9898ee8 |
20276 | char shl_load (); |
20277 | /* The GNU C library defines this for functions which it implements |
20278 | to always fail with ENOSYS. Some functions are actually named |
20279 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
20280 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
20281 | choke me |
d9898ee8 |
20282 | #endif |
20283 | |
20284 | int |
20285 | main () |
20286 | { |
64ff59ba |
20287 | return shl_load (); |
d9898ee8 |
20288 | ; |
20289 | return 0; |
20290 | } |
20291 | _ACEOF |
20292 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20293 | if { (ac_try="$ac_link" |
20294 | case "(($ac_try" in |
20295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20296 | *) ac_try_echo=$ac_try;; |
20297 | esac |
20298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20299 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20300 | ac_status=$? |
20301 | grep -v '^ *+' conftest.er1 >conftest.err |
20302 | rm -f conftest.er1 |
20303 | cat conftest.err >&5 |
20304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20305 | (exit $ac_status); } && { |
20306 | test -z "$ac_c_werror_flag" || |
20307 | test ! -s conftest.err |
20308 | } && test -s conftest$ac_exeext && |
20309 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20310 | ac_cv_func_shl_load=yes |
20311 | else |
20312 | echo "$as_me: failed program was:" >&5 |
20313 | sed 's/^/| /' conftest.$ac_ext >&5 |
20314 | |
64ff59ba |
20315 | ac_cv_func_shl_load=no |
d9898ee8 |
20316 | fi |
64ff59ba |
20317 | |
20318 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20319 | conftest$ac_exeext conftest.$ac_ext |
20320 | fi |
64ff59ba |
20321 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
20322 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
20323 | if test $ac_cv_func_shl_load = yes; then |
20324 | |
20325 | cat >>confdefs.h <<\_ACEOF |
20326 | #define HAVE_SHL_LOAD 1 |
20327 | _ACEOF |
20328 | |
20329 | else |
64ff59ba |
20330 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
20331 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
20332 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
20333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20334 | else |
20335 | ac_check_lib_save_LIBS=$LIBS |
20336 | LIBS="-ldld $LIBS" |
20337 | cat >conftest.$ac_ext <<_ACEOF |
20338 | /* confdefs.h. */ |
20339 | _ACEOF |
20340 | cat confdefs.h >>conftest.$ac_ext |
20341 | cat >>conftest.$ac_ext <<_ACEOF |
20342 | /* end confdefs.h. */ |
20343 | |
64ff59ba |
20344 | /* Override any GCC internal prototype to avoid an error. |
20345 | Use char because int might match the return type of a GCC |
20346 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20347 | #ifdef __cplusplus |
20348 | extern "C" |
20349 | #endif |
d9898ee8 |
20350 | char shl_load (); |
20351 | int |
20352 | main () |
20353 | { |
64ff59ba |
20354 | return shl_load (); |
d9898ee8 |
20355 | ; |
20356 | return 0; |
20357 | } |
20358 | _ACEOF |
20359 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20360 | if { (ac_try="$ac_link" |
20361 | case "(($ac_try" in |
20362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20363 | *) ac_try_echo=$ac_try;; |
20364 | esac |
20365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20366 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20367 | ac_status=$? |
20368 | grep -v '^ *+' conftest.er1 >conftest.err |
20369 | rm -f conftest.er1 |
20370 | cat conftest.err >&5 |
20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20372 | (exit $ac_status); } && { |
20373 | test -z "$ac_c_werror_flag" || |
20374 | test ! -s conftest.err |
20375 | } && test -s conftest$ac_exeext && |
20376 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20377 | ac_cv_lib_dld_shl_load=yes |
20378 | else |
20379 | echo "$as_me: failed program was:" >&5 |
20380 | sed 's/^/| /' conftest.$ac_ext >&5 |
20381 | |
64ff59ba |
20382 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
20383 | fi |
64ff59ba |
20384 | |
20385 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20386 | conftest$ac_exeext conftest.$ac_ext |
20387 | LIBS=$ac_check_lib_save_LIBS |
20388 | fi |
64ff59ba |
20389 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
20390 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
20391 | if test $ac_cv_lib_dld_shl_load = yes; then |
20392 | |
20393 | cat >>confdefs.h <<\_ACEOF |
20394 | #define HAVE_SHL_LOAD 1 |
20395 | _ACEOF |
20396 | |
20397 | LIBADD_DL="$LIBADD_DL -ldld" |
20398 | else |
64ff59ba |
20399 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
20400 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
20401 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
20402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20403 | else |
20404 | ac_check_lib_save_LIBS=$LIBS |
20405 | LIBS="-ldl $LIBS" |
20406 | cat >conftest.$ac_ext <<_ACEOF |
20407 | /* confdefs.h. */ |
20408 | _ACEOF |
20409 | cat confdefs.h >>conftest.$ac_ext |
20410 | cat >>conftest.$ac_ext <<_ACEOF |
20411 | /* end confdefs.h. */ |
20412 | |
64ff59ba |
20413 | /* Override any GCC internal prototype to avoid an error. |
20414 | Use char because int might match the return type of a GCC |
20415 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20416 | #ifdef __cplusplus |
20417 | extern "C" |
20418 | #endif |
d9898ee8 |
20419 | char dlopen (); |
20420 | int |
20421 | main () |
20422 | { |
64ff59ba |
20423 | return dlopen (); |
d9898ee8 |
20424 | ; |
20425 | return 0; |
20426 | } |
20427 | _ACEOF |
20428 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20429 | if { (ac_try="$ac_link" |
20430 | case "(($ac_try" in |
20431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20432 | *) ac_try_echo=$ac_try;; |
20433 | esac |
20434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20435 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20436 | ac_status=$? |
20437 | grep -v '^ *+' conftest.er1 >conftest.err |
20438 | rm -f conftest.er1 |
20439 | cat conftest.err >&5 |
20440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20441 | (exit $ac_status); } && { |
20442 | test -z "$ac_c_werror_flag" || |
20443 | test ! -s conftest.err |
20444 | } && test -s conftest$ac_exeext && |
20445 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20446 | ac_cv_lib_dl_dlopen=yes |
20447 | else |
20448 | echo "$as_me: failed program was:" >&5 |
20449 | sed 's/^/| /' conftest.$ac_ext >&5 |
20450 | |
64ff59ba |
20451 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
20452 | fi |
64ff59ba |
20453 | |
20454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20455 | conftest$ac_exeext conftest.$ac_ext |
20456 | LIBS=$ac_check_lib_save_LIBS |
20457 | fi |
64ff59ba |
20458 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
20459 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
20460 | if test $ac_cv_lib_dl_dlopen = yes; then |
20461 | |
20462 | cat >>confdefs.h <<\_ACEOF |
20463 | #define HAVE_LIBDL 1 |
20464 | _ACEOF |
20465 | |
20466 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
20467 | else |
20468 | cat >conftest.$ac_ext <<_ACEOF |
20469 | /* confdefs.h. */ |
20470 | _ACEOF |
20471 | cat confdefs.h >>conftest.$ac_ext |
20472 | cat >>conftest.$ac_ext <<_ACEOF |
20473 | /* end confdefs.h. */ |
20474 | #if HAVE_DLFCN_H |
20475 | # include <dlfcn.h> |
20476 | #endif |
20477 | |
20478 | int |
20479 | main () |
20480 | { |
20481 | dlopen(0, 0); |
20482 | ; |
20483 | return 0; |
20484 | } |
20485 | _ACEOF |
20486 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20487 | if { (ac_try="$ac_link" |
20488 | case "(($ac_try" in |
20489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20490 | *) ac_try_echo=$ac_try;; |
20491 | esac |
20492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20493 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20494 | ac_status=$? |
20495 | grep -v '^ *+' conftest.er1 >conftest.err |
20496 | rm -f conftest.er1 |
20497 | cat conftest.err >&5 |
20498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20499 | (exit $ac_status); } && { |
20500 | test -z "$ac_c_werror_flag" || |
20501 | test ! -s conftest.err |
20502 | } && test -s conftest$ac_exeext && |
20503 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20504 | |
20505 | cat >>confdefs.h <<\_ACEOF |
20506 | #define HAVE_LIBDL 1 |
20507 | _ACEOF |
20508 | libltdl_cv_func_dlopen="yes" |
20509 | else |
20510 | echo "$as_me: failed program was:" >&5 |
20511 | sed 's/^/| /' conftest.$ac_ext >&5 |
20512 | |
64ff59ba |
20513 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
20514 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
20515 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
20516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20517 | else |
20518 | ac_check_lib_save_LIBS=$LIBS |
20519 | LIBS="-lsvld $LIBS" |
20520 | cat >conftest.$ac_ext <<_ACEOF |
20521 | /* confdefs.h. */ |
20522 | _ACEOF |
20523 | cat confdefs.h >>conftest.$ac_ext |
20524 | cat >>conftest.$ac_ext <<_ACEOF |
20525 | /* end confdefs.h. */ |
20526 | |
64ff59ba |
20527 | /* Override any GCC internal prototype to avoid an error. |
20528 | Use char because int might match the return type of a GCC |
20529 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20530 | #ifdef __cplusplus |
20531 | extern "C" |
20532 | #endif |
d9898ee8 |
20533 | char dlopen (); |
20534 | int |
20535 | main () |
20536 | { |
64ff59ba |
20537 | return dlopen (); |
d9898ee8 |
20538 | ; |
20539 | return 0; |
20540 | } |
20541 | _ACEOF |
20542 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20543 | if { (ac_try="$ac_link" |
20544 | case "(($ac_try" in |
20545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20546 | *) ac_try_echo=$ac_try;; |
20547 | esac |
20548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20549 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20550 | ac_status=$? |
20551 | grep -v '^ *+' conftest.er1 >conftest.err |
20552 | rm -f conftest.er1 |
20553 | cat conftest.err >&5 |
20554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20555 | (exit $ac_status); } && { |
20556 | test -z "$ac_c_werror_flag" || |
20557 | test ! -s conftest.err |
20558 | } && test -s conftest$ac_exeext && |
20559 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20560 | ac_cv_lib_svld_dlopen=yes |
20561 | else |
20562 | echo "$as_me: failed program was:" >&5 |
20563 | sed 's/^/| /' conftest.$ac_ext >&5 |
20564 | |
64ff59ba |
20565 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
20566 | fi |
64ff59ba |
20567 | |
20568 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20569 | conftest$ac_exeext conftest.$ac_ext |
20570 | LIBS=$ac_check_lib_save_LIBS |
20571 | fi |
64ff59ba |
20572 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
20573 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
20574 | if test $ac_cv_lib_svld_dlopen = yes; then |
20575 | |
20576 | cat >>confdefs.h <<\_ACEOF |
20577 | #define HAVE_LIBDL 1 |
20578 | _ACEOF |
20579 | |
20580 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
20581 | else |
64ff59ba |
20582 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
20583 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
20584 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
20585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20586 | else |
20587 | ac_check_lib_save_LIBS=$LIBS |
20588 | LIBS="-ldld $LIBS" |
20589 | cat >conftest.$ac_ext <<_ACEOF |
20590 | /* confdefs.h. */ |
20591 | _ACEOF |
20592 | cat confdefs.h >>conftest.$ac_ext |
20593 | cat >>conftest.$ac_ext <<_ACEOF |
20594 | /* end confdefs.h. */ |
20595 | |
64ff59ba |
20596 | /* Override any GCC internal prototype to avoid an error. |
20597 | Use char because int might match the return type of a GCC |
20598 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20599 | #ifdef __cplusplus |
20600 | extern "C" |
20601 | #endif |
d9898ee8 |
20602 | char dld_link (); |
20603 | int |
20604 | main () |
20605 | { |
64ff59ba |
20606 | return dld_link (); |
d9898ee8 |
20607 | ; |
20608 | return 0; |
20609 | } |
20610 | _ACEOF |
20611 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20612 | if { (ac_try="$ac_link" |
20613 | case "(($ac_try" in |
20614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20615 | *) ac_try_echo=$ac_try;; |
20616 | esac |
20617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20618 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20619 | ac_status=$? |
20620 | grep -v '^ *+' conftest.er1 >conftest.err |
20621 | rm -f conftest.er1 |
20622 | cat conftest.err >&5 |
20623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20624 | (exit $ac_status); } && { |
20625 | test -z "$ac_c_werror_flag" || |
20626 | test ! -s conftest.err |
20627 | } && test -s conftest$ac_exeext && |
20628 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20629 | ac_cv_lib_dld_dld_link=yes |
20630 | else |
20631 | echo "$as_me: failed program was:" >&5 |
20632 | sed 's/^/| /' conftest.$ac_ext >&5 |
20633 | |
64ff59ba |
20634 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
20635 | fi |
64ff59ba |
20636 | |
20637 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20638 | conftest$ac_exeext conftest.$ac_ext |
20639 | LIBS=$ac_check_lib_save_LIBS |
20640 | fi |
64ff59ba |
20641 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
20642 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
20643 | if test $ac_cv_lib_dld_dld_link = yes; then |
20644 | |
20645 | cat >>confdefs.h <<\_ACEOF |
20646 | #define HAVE_DLD 1 |
20647 | _ACEOF |
20648 | |
20649 | LIBADD_DL="$LIBADD_DL -ldld" |
20650 | else |
64ff59ba |
20651 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
20652 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
d9898ee8 |
20653 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
20654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20655 | else |
20656 | cat >conftest.$ac_ext <<_ACEOF |
20657 | /* confdefs.h. */ |
20658 | _ACEOF |
20659 | cat confdefs.h >>conftest.$ac_ext |
20660 | cat >>conftest.$ac_ext <<_ACEOF |
20661 | /* end confdefs.h. */ |
20662 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
20663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20664 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
20665 | |
20666 | /* System header to define __stub macros and hopefully few prototypes, |
20667 | which can conflict with char _dyld_func_lookup (); below. |
20668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20669 | <limits.h> exists even on freestanding compilers. */ |
20670 | |
20671 | #ifdef __STDC__ |
20672 | # include <limits.h> |
20673 | #else |
20674 | # include <assert.h> |
20675 | #endif |
20676 | |
20677 | #undef _dyld_func_lookup |
20678 | |
64ff59ba |
20679 | /* Override any GCC internal prototype to avoid an error. |
20680 | Use char because int might match the return type of a GCC |
20681 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20682 | #ifdef __cplusplus |
20683 | extern "C" |
d9898ee8 |
20684 | #endif |
d9898ee8 |
20685 | char _dyld_func_lookup (); |
20686 | /* The GNU C library defines this for functions which it implements |
20687 | to always fail with ENOSYS. Some functions are actually named |
20688 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
20689 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
d9898ee8 |
20690 | choke me |
d9898ee8 |
20691 | #endif |
20692 | |
20693 | int |
20694 | main () |
20695 | { |
64ff59ba |
20696 | return _dyld_func_lookup (); |
d9898ee8 |
20697 | ; |
20698 | return 0; |
20699 | } |
20700 | _ACEOF |
20701 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20702 | if { (ac_try="$ac_link" |
20703 | case "(($ac_try" in |
20704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20705 | *) ac_try_echo=$ac_try;; |
20706 | esac |
20707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20708 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20709 | ac_status=$? |
20710 | grep -v '^ *+' conftest.er1 >conftest.err |
20711 | rm -f conftest.er1 |
20712 | cat conftest.err >&5 |
20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20714 | (exit $ac_status); } && { |
20715 | test -z "$ac_c_werror_flag" || |
20716 | test ! -s conftest.err |
20717 | } && test -s conftest$ac_exeext && |
20718 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20719 | ac_cv_func__dyld_func_lookup=yes |
20720 | else |
20721 | echo "$as_me: failed program was:" >&5 |
20722 | sed 's/^/| /' conftest.$ac_ext >&5 |
20723 | |
64ff59ba |
20724 | ac_cv_func__dyld_func_lookup=no |
d9898ee8 |
20725 | fi |
64ff59ba |
20726 | |
20727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20728 | conftest$ac_exeext conftest.$ac_ext |
20729 | fi |
64ff59ba |
20730 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
20731 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
d9898ee8 |
20732 | if test $ac_cv_func__dyld_func_lookup = yes; then |
20733 | |
20734 | cat >>confdefs.h <<\_ACEOF |
20735 | #define HAVE_DYLD 1 |
20736 | _ACEOF |
20737 | |
20738 | fi |
20739 | |
20740 | |
20741 | fi |
20742 | |
20743 | |
20744 | fi |
20745 | |
20746 | |
20747 | fi |
64ff59ba |
20748 | |
20749 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20750 | conftest$ac_exeext conftest.$ac_ext |
20751 | |
20752 | fi |
20753 | |
20754 | |
20755 | fi |
20756 | |
20757 | |
20758 | fi |
20759 | |
20760 | |
20761 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
20762 | then |
20763 | lt_save_LIBS="$LIBS" |
20764 | LIBS="$LIBS $LIBADD_DL" |
20765 | |
20766 | for ac_func in dlerror |
20767 | do |
20768 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
20769 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
20770 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
20771 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
20772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20773 | else |
20774 | cat >conftest.$ac_ext <<_ACEOF |
20775 | /* confdefs.h. */ |
20776 | _ACEOF |
20777 | cat confdefs.h >>conftest.$ac_ext |
20778 | cat >>conftest.$ac_ext <<_ACEOF |
20779 | /* end confdefs.h. */ |
20780 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20781 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20782 | #define $ac_func innocuous_$ac_func |
20783 | |
20784 | /* System header to define __stub macros and hopefully few prototypes, |
20785 | which can conflict with char $ac_func (); below. |
20786 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20787 | <limits.h> exists even on freestanding compilers. */ |
20788 | |
20789 | #ifdef __STDC__ |
20790 | # include <limits.h> |
20791 | #else |
20792 | # include <assert.h> |
20793 | #endif |
20794 | |
20795 | #undef $ac_func |
20796 | |
64ff59ba |
20797 | /* Override any GCC internal prototype to avoid an error. |
20798 | Use char because int might match the return type of a GCC |
20799 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20800 | #ifdef __cplusplus |
20801 | extern "C" |
d9898ee8 |
20802 | #endif |
d9898ee8 |
20803 | char $ac_func (); |
20804 | /* The GNU C library defines this for functions which it implements |
20805 | to always fail with ENOSYS. Some functions are actually named |
20806 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
20807 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
20808 | choke me |
d9898ee8 |
20809 | #endif |
20810 | |
20811 | int |
20812 | main () |
20813 | { |
64ff59ba |
20814 | return $ac_func (); |
d9898ee8 |
20815 | ; |
20816 | return 0; |
20817 | } |
20818 | _ACEOF |
20819 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
20820 | if { (ac_try="$ac_link" |
20821 | case "(($ac_try" in |
20822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20823 | *) ac_try_echo=$ac_try;; |
20824 | esac |
20825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20826 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20827 | ac_status=$? |
20828 | grep -v '^ *+' conftest.er1 >conftest.err |
20829 | rm -f conftest.er1 |
20830 | cat conftest.err >&5 |
20831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
20832 | (exit $ac_status); } && { |
20833 | test -z "$ac_c_werror_flag" || |
20834 | test ! -s conftest.err |
20835 | } && test -s conftest$ac_exeext && |
20836 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20837 | eval "$as_ac_var=yes" |
20838 | else |
20839 | echo "$as_me: failed program was:" >&5 |
20840 | sed 's/^/| /' conftest.$ac_ext >&5 |
20841 | |
64ff59ba |
20842 | eval "$as_ac_var=no" |
d9898ee8 |
20843 | fi |
64ff59ba |
20844 | |
20845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20846 | conftest$ac_exeext conftest.$ac_ext |
20847 | fi |
64ff59ba |
20848 | ac_res=`eval echo '${'$as_ac_var'}'` |
20849 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
20850 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
20851 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
20852 | cat >>confdefs.h <<_ACEOF |
20853 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
20854 | _ACEOF |
20855 | |
20856 | fi |
20857 | done |
20858 | |
20859 | LIBS="$lt_save_LIBS" |
20860 | fi |
20861 | ac_ext=c |
20862 | ac_cpp='$CPP $CPPFLAGS' |
20863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
20864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
20865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
20866 | |
20867 | |
20868 | |
64ff59ba |
20869 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
20870 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
d9898ee8 |
20871 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
20872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20873 | else |
20874 | ac_cv_sys_symbol_underscore=no |
20875 | cat > conftest.$ac_ext <<EOF |
20876 | void nm_test_func(){} |
20877 | int main(){nm_test_func;return 0;} |
20878 | EOF |
20879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20880 | (eval $ac_compile) 2>&5 |
20881 | ac_status=$? |
20882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20883 | (exit $ac_status); }; then |
20884 | # Now try to grab the symbols. |
20885 | ac_nlist=conftest.nm |
20886 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
20887 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
20888 | ac_status=$? |
20889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20890 | (exit $ac_status); } && test -s "$ac_nlist"; then |
20891 | # See whether the symbols have a leading underscore. |
20892 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
20893 | ac_cv_sys_symbol_underscore=yes |
20894 | else |
20895 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
20896 | : |
20897 | else |
20898 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
20899 | fi |
20900 | fi |
20901 | else |
20902 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
20903 | fi |
20904 | else |
20905 | echo "configure: failed program was:" >&5 |
20906 | cat conftest.c >&5 |
20907 | fi |
20908 | rm -rf conftest* |
20909 | |
20910 | fi |
64ff59ba |
20911 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
20912 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
d9898ee8 |
20913 | |
20914 | |
20915 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
20916 | if test x"$libltdl_cv_func_dlopen" = xyes || |
20917 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
64ff59ba |
20918 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
20919 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
d9898ee8 |
20920 | if test "${libltdl_cv_need_uscore+set}" = set; then |
20921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20922 | else |
20923 | libltdl_cv_need_uscore=unknown |
20924 | save_LIBS="$LIBS" |
20925 | LIBS="$LIBS $LIBADD_DL" |
20926 | if test "$cross_compiling" = yes; then : |
20927 | libltdl_cv_need_uscore=cross |
20928 | else |
20929 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
20930 | lt_status=$lt_dlunknown |
20931 | cat > conftest.$ac_ext <<EOF |
0fde1ce3 |
20932 | #line 20932 "configure" |
d9898ee8 |
20933 | #include "confdefs.h" |
20934 | |
20935 | #if HAVE_DLFCN_H |
20936 | #include <dlfcn.h> |
20937 | #endif |
20938 | |
20939 | #include <stdio.h> |
20940 | |
20941 | #ifdef RTLD_GLOBAL |
20942 | # define LT_DLGLOBAL RTLD_GLOBAL |
20943 | #else |
20944 | # ifdef DL_GLOBAL |
20945 | # define LT_DLGLOBAL DL_GLOBAL |
20946 | # else |
20947 | # define LT_DLGLOBAL 0 |
20948 | # endif |
20949 | #endif |
20950 | |
20951 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
20952 | find out it does not work in some platform. */ |
20953 | #ifndef LT_DLLAZY_OR_NOW |
20954 | # ifdef RTLD_LAZY |
20955 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
20956 | # else |
20957 | # ifdef DL_LAZY |
20958 | # define LT_DLLAZY_OR_NOW DL_LAZY |
20959 | # else |
20960 | # ifdef RTLD_NOW |
20961 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
20962 | # else |
20963 | # ifdef DL_NOW |
20964 | # define LT_DLLAZY_OR_NOW DL_NOW |
20965 | # else |
20966 | # define LT_DLLAZY_OR_NOW 0 |
20967 | # endif |
20968 | # endif |
20969 | # endif |
20970 | # endif |
20971 | #endif |
20972 | |
20973 | #ifdef __cplusplus |
20974 | extern "C" void exit (int); |
20975 | #endif |
20976 | |
20977 | void fnord() { int i=42;} |
20978 | int main () |
20979 | { |
20980 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
20981 | int status = $lt_dlunknown; |
20982 | |
20983 | if (self) |
20984 | { |
20985 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
20986 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
20987 | /* dlclose (self); */ |
20988 | } |
20989 | else |
20990 | puts (dlerror ()); |
20991 | |
20992 | exit (status); |
20993 | } |
20994 | EOF |
20995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20996 | (eval $ac_link) 2>&5 |
20997 | ac_status=$? |
20998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20999 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
21000 | (./conftest; exit; ) >&5 2>/dev/null |
21001 | lt_status=$? |
21002 | case x$lt_status in |
21003 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
21004 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
21005 | x$lt_dlunknown|x*) ;; |
21006 | esac |
21007 | else : |
21008 | # compilation failed |
21009 | |
21010 | fi |
21011 | fi |
21012 | rm -fr conftest* |
21013 | |
21014 | LIBS="$save_LIBS" |
21015 | |
21016 | fi |
64ff59ba |
21017 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
21018 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
d9898ee8 |
21019 | fi |
21020 | fi |
21021 | |
21022 | if test x"$libltdl_cv_need_uscore" = xyes; then |
21023 | |
21024 | cat >>confdefs.h <<\_ACEOF |
21025 | #define NEED_USCORE 1 |
21026 | _ACEOF |
21027 | |
21028 | fi |
21029 | |
21030 | |
64ff59ba |
21031 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
21032 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
d9898ee8 |
21033 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
21034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21035 | else |
21036 | # PORTME does your system automatically load deplibs for dlopen? |
21037 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
21038 | # For now, we just catch OSes we know something about -- in the |
21039 | # future, we'll try test this programmatically. |
21040 | libltdl_cv_sys_dlopen_deplibs=unknown |
21041 | case "$host_os" in |
21042 | aix3*|aix4.1.*|aix4.2.*) |
21043 | # Unknown whether this is true for these versions of AIX, but |
21044 | # we want this `case' here to explicitly catch those versions. |
21045 | libltdl_cv_sys_dlopen_deplibs=unknown |
21046 | ;; |
21047 | aix[45]*) |
21048 | libltdl_cv_sys_dlopen_deplibs=yes |
21049 | ;; |
21050 | darwin*) |
21051 | # Assuming the user has installed a libdl from somewhere, this is true |
21052 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
21053 | libltdl_cv_sys_dlopen_deplibs=yes |
21054 | ;; |
0fde1ce3 |
21055 | freebsd* | dragonfly*) |
21056 | libltdl_cv_sys_dlopen_deplibs=yes |
21057 | ;; |
21058 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
21059 | # GNU and its variants, using gnu ld.so (Glibc) |
21060 | libltdl_cv_sys_dlopen_deplibs=yes |
21061 | ;; |
21062 | hpux10*|hpux11*) |
21063 | libltdl_cv_sys_dlopen_deplibs=yes |
21064 | ;; |
21065 | interix*) |
21066 | libltdl_cv_sys_dlopen_deplibs=yes |
21067 | ;; |
21068 | irix[12345]*|irix6.[01]*) |
21069 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
21070 | # know how it worked for any of those versions. |
21071 | libltdl_cv_sys_dlopen_deplibs=unknown |
21072 | ;; |
21073 | irix*) |
21074 | # The case above catches anything before 6.2, and it's known that |
21075 | # at 6.2 and later dlopen does load deplibs. |
21076 | libltdl_cv_sys_dlopen_deplibs=yes |
21077 | ;; |
21078 | netbsd*) |
21079 | libltdl_cv_sys_dlopen_deplibs=yes |
21080 | ;; |
21081 | openbsd*) |
21082 | libltdl_cv_sys_dlopen_deplibs=yes |
21083 | ;; |
21084 | osf[1234]*) |
21085 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
21086 | # it did *not* use an RPATH in a shared library to find objects the |
21087 | # library depends on, so we explictly say `no'. |
21088 | libltdl_cv_sys_dlopen_deplibs=no |
21089 | ;; |
21090 | osf5.0|osf5.0a|osf5.1) |
21091 | # dlopen *does* load deplibs and with the right loader patch applied |
21092 | # it even uses RPATH in a shared library to search for shared objects |
21093 | # that the library depends on, but there's no easy way to know if that |
21094 | # patch is installed. Since this is the case, all we can really |
21095 | # say is unknown -- it depends on the patch being installed. If |
21096 | # it is, this changes to `yes'. Without it, it would be `no'. |
21097 | libltdl_cv_sys_dlopen_deplibs=unknown |
21098 | ;; |
21099 | osf*) |
21100 | # the two cases above should catch all versions of osf <= 5.1. Read |
21101 | # the comments above for what we know about them. |
21102 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
21103 | # is used to find them so we can finally say `yes'. |
21104 | libltdl_cv_sys_dlopen_deplibs=yes |
21105 | ;; |
21106 | solaris*) |
21107 | libltdl_cv_sys_dlopen_deplibs=yes |
21108 | ;; |
21109 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
21110 | libltdl_cv_sys_dlopen_deplibs=yes |
21111 | ;; |
21112 | esac |
21113 | |
21114 | fi |
64ff59ba |
21115 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
21116 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
d9898ee8 |
21117 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
21118 | |
21119 | cat >>confdefs.h <<\_ACEOF |
21120 | #define LTDL_DLOPEN_DEPLIBS 1 |
21121 | _ACEOF |
21122 | |
21123 | fi |
21124 | |
21125 | |
21126 | for ac_header in argz.h |
21127 | do |
21128 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
21129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21134 | fi |
64ff59ba |
21135 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21137 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21138 | else |
21139 | # Is the header compilable? |
64ff59ba |
21140 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
21142 | cat >conftest.$ac_ext <<_ACEOF |
21143 | /* confdefs.h. */ |
21144 | _ACEOF |
21145 | cat confdefs.h >>conftest.$ac_ext |
21146 | cat >>conftest.$ac_ext <<_ACEOF |
21147 | /* end confdefs.h. */ |
21148 | $ac_includes_default |
21149 | #include <$ac_header> |
21150 | _ACEOF |
21151 | rm -f conftest.$ac_objext |
64ff59ba |
21152 | if { (ac_try="$ac_compile" |
21153 | case "(($ac_try" in |
21154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21155 | *) ac_try_echo=$ac_try;; |
21156 | esac |
21157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21158 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21159 | ac_status=$? |
21160 | grep -v '^ *+' conftest.er1 >conftest.err |
21161 | rm -f conftest.er1 |
21162 | cat conftest.err >&5 |
21163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21164 | (exit $ac_status); } && { |
21165 | test -z "$ac_c_werror_flag" || |
21166 | test ! -s conftest.err |
21167 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21168 | ac_header_compiler=yes |
21169 | else |
21170 | echo "$as_me: failed program was:" >&5 |
21171 | sed 's/^/| /' conftest.$ac_ext >&5 |
21172 | |
64ff59ba |
21173 | ac_header_compiler=no |
d9898ee8 |
21174 | fi |
64ff59ba |
21175 | |
21176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21177 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21178 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
21179 | |
21180 | # Is the header present? |
64ff59ba |
21181 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21182 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
21183 | cat >conftest.$ac_ext <<_ACEOF |
21184 | /* confdefs.h. */ |
21185 | _ACEOF |
21186 | cat confdefs.h >>conftest.$ac_ext |
21187 | cat >>conftest.$ac_ext <<_ACEOF |
21188 | /* end confdefs.h. */ |
21189 | #include <$ac_header> |
21190 | _ACEOF |
64ff59ba |
21191 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21192 | case "(($ac_try" in |
21193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21194 | *) ac_try_echo=$ac_try;; |
21195 | esac |
21196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21197 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
21198 | ac_status=$? |
21199 | grep -v '^ *+' conftest.er1 >conftest.err |
21200 | rm -f conftest.er1 |
21201 | cat conftest.err >&5 |
21202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21203 | (exit $ac_status); } >/dev/null && { |
21204 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
21205 | test ! -s conftest.err |
21206 | }; then |
d9898ee8 |
21207 | ac_header_preproc=yes |
21208 | else |
21209 | echo "$as_me: failed program was:" >&5 |
21210 | sed 's/^/| /' conftest.$ac_ext >&5 |
21211 | |
21212 | ac_header_preproc=no |
21213 | fi |
64ff59ba |
21214 | |
d9898ee8 |
21215 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
21216 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21217 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
21218 | |
21219 | # So? What about this header? |
21220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21221 | yes:no: ) |
21222 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21223 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21225 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21226 | ac_header_preproc=yes |
21227 | ;; |
21228 | no:yes:* ) |
21229 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21230 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21231 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21232 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21233 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21234 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21235 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21236 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21238 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21239 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21240 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
21241 | ( cat <<\_ASBOX |
d9898ee8 |
21242 | ## ---------------------------------- ## |
21243 | ## Report this to bug-libtool@gnu.org ## |
21244 | ## ---------------------------------- ## |
21245 | _ASBOX |
64ff59ba |
21246 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
21247 | ;; |
21248 | esac |
64ff59ba |
21249 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21251 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21253 | else |
21254 | eval "$as_ac_Header=\$ac_header_preproc" |
21255 | fi |
64ff59ba |
21256 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21257 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21258 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21259 | |
21260 | fi |
21261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21262 | cat >>confdefs.h <<_ACEOF |
21263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21264 | _ACEOF |
21265 | |
21266 | fi |
21267 | |
21268 | done |
21269 | |
21270 | |
64ff59ba |
21271 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
21272 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
d9898ee8 |
21273 | if test "${ac_cv_type_error_t+set}" = set; then |
21274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21275 | else |
21276 | cat >conftest.$ac_ext <<_ACEOF |
21277 | /* confdefs.h. */ |
21278 | _ACEOF |
21279 | cat confdefs.h >>conftest.$ac_ext |
21280 | cat >>conftest.$ac_ext <<_ACEOF |
21281 | /* end confdefs.h. */ |
21282 | #if HAVE_ARGZ_H |
21283 | # include <argz.h> |
21284 | #endif |
21285 | |
64ff59ba |
21286 | typedef error_t ac__type_new_; |
d9898ee8 |
21287 | int |
21288 | main () |
21289 | { |
64ff59ba |
21290 | if ((ac__type_new_ *) 0) |
d9898ee8 |
21291 | return 0; |
64ff59ba |
21292 | if (sizeof (ac__type_new_)) |
d9898ee8 |
21293 | return 0; |
21294 | ; |
21295 | return 0; |
21296 | } |
21297 | _ACEOF |
21298 | rm -f conftest.$ac_objext |
64ff59ba |
21299 | if { (ac_try="$ac_compile" |
21300 | case "(($ac_try" in |
21301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21302 | *) ac_try_echo=$ac_try;; |
21303 | esac |
21304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21305 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21306 | ac_status=$? |
21307 | grep -v '^ *+' conftest.er1 >conftest.err |
21308 | rm -f conftest.er1 |
21309 | cat conftest.err >&5 |
21310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21311 | (exit $ac_status); } && { |
21312 | test -z "$ac_c_werror_flag" || |
21313 | test ! -s conftest.err |
21314 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21315 | ac_cv_type_error_t=yes |
21316 | else |
21317 | echo "$as_me: failed program was:" >&5 |
21318 | sed 's/^/| /' conftest.$ac_ext >&5 |
21319 | |
64ff59ba |
21320 | ac_cv_type_error_t=no |
d9898ee8 |
21321 | fi |
64ff59ba |
21322 | |
21323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
21324 | fi |
64ff59ba |
21325 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
21326 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
d9898ee8 |
21327 | if test $ac_cv_type_error_t = yes; then |
21328 | |
21329 | cat >>confdefs.h <<_ACEOF |
21330 | #define HAVE_ERROR_T 1 |
21331 | _ACEOF |
21332 | |
21333 | |
21334 | else |
21335 | |
21336 | cat >>confdefs.h <<\_ACEOF |
21337 | #define error_t int |
21338 | _ACEOF |
21339 | |
21340 | fi |
21341 | |
21342 | |
21343 | |
21344 | |
21345 | |
21346 | |
21347 | |
21348 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
21349 | do |
21350 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
21351 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21352 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
21353 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21355 | else |
21356 | cat >conftest.$ac_ext <<_ACEOF |
21357 | /* confdefs.h. */ |
21358 | _ACEOF |
21359 | cat confdefs.h >>conftest.$ac_ext |
21360 | cat >>conftest.$ac_ext <<_ACEOF |
21361 | /* end confdefs.h. */ |
21362 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21363 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
21364 | #define $ac_func innocuous_$ac_func |
21365 | |
21366 | /* System header to define __stub macros and hopefully few prototypes, |
21367 | which can conflict with char $ac_func (); below. |
21368 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
21369 | <limits.h> exists even on freestanding compilers. */ |
21370 | |
21371 | #ifdef __STDC__ |
21372 | # include <limits.h> |
21373 | #else |
21374 | # include <assert.h> |
21375 | #endif |
21376 | |
21377 | #undef $ac_func |
21378 | |
64ff59ba |
21379 | /* Override any GCC internal prototype to avoid an error. |
21380 | Use char because int might match the return type of a GCC |
21381 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
21382 | #ifdef __cplusplus |
21383 | extern "C" |
d9898ee8 |
21384 | #endif |
d9898ee8 |
21385 | char $ac_func (); |
21386 | /* The GNU C library defines this for functions which it implements |
21387 | to always fail with ENOSYS. Some functions are actually named |
21388 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
21389 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
21390 | choke me |
d9898ee8 |
21391 | #endif |
21392 | |
21393 | int |
21394 | main () |
21395 | { |
64ff59ba |
21396 | return $ac_func (); |
d9898ee8 |
21397 | ; |
21398 | return 0; |
21399 | } |
21400 | _ACEOF |
21401 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
21402 | if { (ac_try="$ac_link" |
21403 | case "(($ac_try" in |
21404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21405 | *) ac_try_echo=$ac_try;; |
21406 | esac |
21407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21408 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
21409 | ac_status=$? |
21410 | grep -v '^ *+' conftest.er1 >conftest.err |
21411 | rm -f conftest.er1 |
21412 | cat conftest.err >&5 |
21413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21414 | (exit $ac_status); } && { |
21415 | test -z "$ac_c_werror_flag" || |
21416 | test ! -s conftest.err |
21417 | } && test -s conftest$ac_exeext && |
21418 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
21419 | eval "$as_ac_var=yes" |
21420 | else |
21421 | echo "$as_me: failed program was:" >&5 |
21422 | sed 's/^/| /' conftest.$ac_ext >&5 |
21423 | |
64ff59ba |
21424 | eval "$as_ac_var=no" |
d9898ee8 |
21425 | fi |
64ff59ba |
21426 | |
21427 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
21428 | conftest$ac_exeext conftest.$ac_ext |
21429 | fi |
64ff59ba |
21430 | ac_res=`eval echo '${'$as_ac_var'}'` |
21431 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21432 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21433 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21434 | cat >>confdefs.h <<_ACEOF |
21435 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
21436 | _ACEOF |
21437 | |
21438 | fi |
21439 | done |
21440 | |
21441 | |
21442 | |
21443 | |
21444 | |
21445 | |
21446 | |
21447 | |
21448 | |
21449 | |
21450 | |
21451 | |
21452 | |
21453 | |
21454 | |
21455 | |
21456 | |
21457 | |
21458 | |
21459 | |
21460 | |
21461 | |
21462 | |
21463 | |
21464 | |
21465 | |
21466 | |
21467 | |
21468 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
21469 | stdio.h unistd.h |
21470 | do |
21471 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
21472 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21473 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21474 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21475 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21477 | fi |
64ff59ba |
21478 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21479 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21480 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21481 | else |
21482 | # Is the header compilable? |
64ff59ba |
21483 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21484 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
21485 | cat >conftest.$ac_ext <<_ACEOF |
21486 | /* confdefs.h. */ |
21487 | _ACEOF |
21488 | cat confdefs.h >>conftest.$ac_ext |
21489 | cat >>conftest.$ac_ext <<_ACEOF |
21490 | /* end confdefs.h. */ |
21491 | $ac_includes_default |
21492 | #include <$ac_header> |
21493 | _ACEOF |
21494 | rm -f conftest.$ac_objext |
64ff59ba |
21495 | if { (ac_try="$ac_compile" |
21496 | case "(($ac_try" in |
21497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21498 | *) ac_try_echo=$ac_try;; |
21499 | esac |
21500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21501 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21502 | ac_status=$? |
21503 | grep -v '^ *+' conftest.er1 >conftest.err |
21504 | rm -f conftest.er1 |
21505 | cat conftest.err >&5 |
21506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21507 | (exit $ac_status); } && { |
21508 | test -z "$ac_c_werror_flag" || |
21509 | test ! -s conftest.err |
21510 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21511 | ac_header_compiler=yes |
21512 | else |
21513 | echo "$as_me: failed program was:" >&5 |
21514 | sed 's/^/| /' conftest.$ac_ext >&5 |
21515 | |
64ff59ba |
21516 | ac_header_compiler=no |
d9898ee8 |
21517 | fi |
64ff59ba |
21518 | |
21519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21520 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21521 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
21522 | |
21523 | # Is the header present? |
64ff59ba |
21524 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21525 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
21526 | cat >conftest.$ac_ext <<_ACEOF |
21527 | /* confdefs.h. */ |
21528 | _ACEOF |
21529 | cat confdefs.h >>conftest.$ac_ext |
21530 | cat >>conftest.$ac_ext <<_ACEOF |
21531 | /* end confdefs.h. */ |
21532 | #include <$ac_header> |
21533 | _ACEOF |
64ff59ba |
21534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21535 | case "(($ac_try" in |
21536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21537 | *) ac_try_echo=$ac_try;; |
21538 | esac |
21539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
21541 | ac_status=$? |
21542 | grep -v '^ *+' conftest.er1 >conftest.err |
21543 | rm -f conftest.er1 |
21544 | cat conftest.err >&5 |
21545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21546 | (exit $ac_status); } >/dev/null && { |
21547 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
21548 | test ! -s conftest.err |
21549 | }; then |
d9898ee8 |
21550 | ac_header_preproc=yes |
21551 | else |
21552 | echo "$as_me: failed program was:" >&5 |
21553 | sed 's/^/| /' conftest.$ac_ext >&5 |
21554 | |
21555 | ac_header_preproc=no |
21556 | fi |
64ff59ba |
21557 | |
d9898ee8 |
21558 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
21559 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21560 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
21561 | |
21562 | # So? What about this header? |
21563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21564 | yes:no: ) |
21565 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21566 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21568 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21569 | ac_header_preproc=yes |
21570 | ;; |
21571 | no:yes:* ) |
21572 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21573 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21574 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21575 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21576 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21577 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21578 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21579 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21581 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21582 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21583 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
21584 | ( cat <<\_ASBOX |
d9898ee8 |
21585 | ## ---------------------------------- ## |
21586 | ## Report this to bug-libtool@gnu.org ## |
21587 | ## ---------------------------------- ## |
21588 | _ASBOX |
64ff59ba |
21589 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
21590 | ;; |
21591 | esac |
64ff59ba |
21592 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21593 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21594 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21596 | else |
21597 | eval "$as_ac_Header=\$ac_header_preproc" |
21598 | fi |
64ff59ba |
21599 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21600 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21601 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21602 | |
21603 | fi |
21604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21605 | cat >>confdefs.h <<_ACEOF |
21606 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21607 | _ACEOF |
21608 | |
21609 | fi |
21610 | |
21611 | done |
21612 | |
21613 | |
21614 | |
21615 | |
21616 | |
21617 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
21618 | do |
21619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
21620 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21621 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21623 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21625 | fi |
64ff59ba |
21626 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21627 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21628 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21629 | else |
21630 | # Is the header compilable? |
64ff59ba |
21631 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21632 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
21633 | cat >conftest.$ac_ext <<_ACEOF |
21634 | /* confdefs.h. */ |
21635 | _ACEOF |
21636 | cat confdefs.h >>conftest.$ac_ext |
21637 | cat >>conftest.$ac_ext <<_ACEOF |
21638 | /* end confdefs.h. */ |
21639 | $ac_includes_default |
21640 | #include <$ac_header> |
21641 | _ACEOF |
21642 | rm -f conftest.$ac_objext |
64ff59ba |
21643 | if { (ac_try="$ac_compile" |
21644 | case "(($ac_try" in |
21645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21646 | *) ac_try_echo=$ac_try;; |
21647 | esac |
21648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21649 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21650 | ac_status=$? |
21651 | grep -v '^ *+' conftest.er1 >conftest.err |
21652 | rm -f conftest.er1 |
21653 | cat conftest.err >&5 |
21654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21655 | (exit $ac_status); } && { |
21656 | test -z "$ac_c_werror_flag" || |
21657 | test ! -s conftest.err |
21658 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21659 | ac_header_compiler=yes |
21660 | else |
21661 | echo "$as_me: failed program was:" >&5 |
21662 | sed 's/^/| /' conftest.$ac_ext >&5 |
21663 | |
64ff59ba |
21664 | ac_header_compiler=no |
d9898ee8 |
21665 | fi |
64ff59ba |
21666 | |
21667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21668 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21669 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
21670 | |
21671 | # Is the header present? |
64ff59ba |
21672 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21673 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
21674 | cat >conftest.$ac_ext <<_ACEOF |
21675 | /* confdefs.h. */ |
21676 | _ACEOF |
21677 | cat confdefs.h >>conftest.$ac_ext |
21678 | cat >>conftest.$ac_ext <<_ACEOF |
21679 | /* end confdefs.h. */ |
21680 | #include <$ac_header> |
21681 | _ACEOF |
64ff59ba |
21682 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21683 | case "(($ac_try" in |
21684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21685 | *) ac_try_echo=$ac_try;; |
21686 | esac |
21687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
21689 | ac_status=$? |
21690 | grep -v '^ *+' conftest.er1 >conftest.err |
21691 | rm -f conftest.er1 |
21692 | cat conftest.err >&5 |
21693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21694 | (exit $ac_status); } >/dev/null && { |
21695 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
21696 | test ! -s conftest.err |
21697 | }; then |
d9898ee8 |
21698 | ac_header_preproc=yes |
21699 | else |
21700 | echo "$as_me: failed program was:" >&5 |
21701 | sed 's/^/| /' conftest.$ac_ext >&5 |
21702 | |
21703 | ac_header_preproc=no |
21704 | fi |
64ff59ba |
21705 | |
d9898ee8 |
21706 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
21707 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21708 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
21709 | |
21710 | # So? What about this header? |
21711 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21712 | yes:no: ) |
21713 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21714 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21716 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21717 | ac_header_preproc=yes |
21718 | ;; |
21719 | no:yes:* ) |
21720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21724 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21725 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21726 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21727 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21729 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21730 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21731 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
21732 | ( cat <<\_ASBOX |
d9898ee8 |
21733 | ## ---------------------------------- ## |
21734 | ## Report this to bug-libtool@gnu.org ## |
21735 | ## ---------------------------------- ## |
21736 | _ASBOX |
64ff59ba |
21737 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
21738 | ;; |
21739 | esac |
64ff59ba |
21740 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21744 | else |
21745 | eval "$as_ac_Header=\$ac_header_preproc" |
21746 | fi |
64ff59ba |
21747 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21748 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21749 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21750 | |
21751 | fi |
21752 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21753 | cat >>confdefs.h <<_ACEOF |
21754 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21755 | _ACEOF |
21756 | |
21757 | fi |
21758 | |
21759 | done |
21760 | |
21761 | |
21762 | |
21763 | for ac_header in string.h strings.h |
21764 | do |
21765 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
64ff59ba |
21766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21767 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21771 | fi |
64ff59ba |
21772 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21773 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21774 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21775 | else |
21776 | # Is the header compilable? |
64ff59ba |
21777 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21778 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
21779 | cat >conftest.$ac_ext <<_ACEOF |
21780 | /* confdefs.h. */ |
21781 | _ACEOF |
21782 | cat confdefs.h >>conftest.$ac_ext |
21783 | cat >>conftest.$ac_ext <<_ACEOF |
21784 | /* end confdefs.h. */ |
21785 | $ac_includes_default |
21786 | #include <$ac_header> |
21787 | _ACEOF |
21788 | rm -f conftest.$ac_objext |
64ff59ba |
21789 | if { (ac_try="$ac_compile" |
21790 | case "(($ac_try" in |
21791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21792 | *) ac_try_echo=$ac_try;; |
21793 | esac |
21794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21795 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21796 | ac_status=$? |
21797 | grep -v '^ *+' conftest.er1 >conftest.err |
21798 | rm -f conftest.er1 |
21799 | cat conftest.err >&5 |
21800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21801 | (exit $ac_status); } && { |
21802 | test -z "$ac_c_werror_flag" || |
21803 | test ! -s conftest.err |
21804 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21805 | ac_header_compiler=yes |
21806 | else |
21807 | echo "$as_me: failed program was:" >&5 |
21808 | sed 's/^/| /' conftest.$ac_ext >&5 |
21809 | |
64ff59ba |
21810 | ac_header_compiler=no |
d9898ee8 |
21811 | fi |
64ff59ba |
21812 | |
21813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21814 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21815 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
21816 | |
21817 | # Is the header present? |
64ff59ba |
21818 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21819 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
21820 | cat >conftest.$ac_ext <<_ACEOF |
21821 | /* confdefs.h. */ |
21822 | _ACEOF |
21823 | cat confdefs.h >>conftest.$ac_ext |
21824 | cat >>conftest.$ac_ext <<_ACEOF |
21825 | /* end confdefs.h. */ |
21826 | #include <$ac_header> |
21827 | _ACEOF |
64ff59ba |
21828 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21829 | case "(($ac_try" in |
21830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21831 | *) ac_try_echo=$ac_try;; |
21832 | esac |
21833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21834 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
21835 | ac_status=$? |
21836 | grep -v '^ *+' conftest.er1 >conftest.err |
21837 | rm -f conftest.er1 |
21838 | cat conftest.err >&5 |
21839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21840 | (exit $ac_status); } >/dev/null && { |
21841 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
21842 | test ! -s conftest.err |
21843 | }; then |
d9898ee8 |
21844 | ac_header_preproc=yes |
21845 | else |
21846 | echo "$as_me: failed program was:" >&5 |
21847 | sed 's/^/| /' conftest.$ac_ext >&5 |
21848 | |
21849 | ac_header_preproc=no |
21850 | fi |
64ff59ba |
21851 | |
d9898ee8 |
21852 | rm -f conftest.err conftest.$ac_ext |
64ff59ba |
21853 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21854 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
21855 | |
21856 | # So? What about this header? |
21857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21858 | yes:no: ) |
21859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21863 | ac_header_preproc=yes |
21864 | ;; |
21865 | no:yes:* ) |
21866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
64ff59ba |
21878 | ( cat <<\_ASBOX |
d9898ee8 |
21879 | ## ---------------------------------- ## |
21880 | ## Report this to bug-libtool@gnu.org ## |
21881 | ## ---------------------------------- ## |
21882 | _ASBOX |
64ff59ba |
21883 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
21884 | ;; |
21885 | esac |
64ff59ba |
21886 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21890 | else |
21891 | eval "$as_ac_Header=\$ac_header_preproc" |
21892 | fi |
64ff59ba |
21893 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21894 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21895 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21896 | |
21897 | fi |
21898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21899 | cat >>confdefs.h <<_ACEOF |
21900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21901 | _ACEOF |
21902 | break |
21903 | fi |
21904 | |
21905 | done |
21906 | |
21907 | |
21908 | |
21909 | |
21910 | for ac_func in strchr index |
21911 | do |
21912 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
21913 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21914 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
21915 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21917 | else |
21918 | cat >conftest.$ac_ext <<_ACEOF |
21919 | /* confdefs.h. */ |
21920 | _ACEOF |
21921 | cat confdefs.h >>conftest.$ac_ext |
21922 | cat >>conftest.$ac_ext <<_ACEOF |
21923 | /* end confdefs.h. */ |
21924 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21925 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
21926 | #define $ac_func innocuous_$ac_func |
21927 | |
21928 | /* System header to define __stub macros and hopefully few prototypes, |
21929 | which can conflict with char $ac_func (); below. |
21930 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
21931 | <limits.h> exists even on freestanding compilers. */ |
21932 | |
21933 | #ifdef __STDC__ |
21934 | # include <limits.h> |
21935 | #else |
21936 | # include <assert.h> |
21937 | #endif |
21938 | |
21939 | #undef $ac_func |
21940 | |
64ff59ba |
21941 | /* Override any GCC internal prototype to avoid an error. |
21942 | Use char because int might match the return type of a GCC |
21943 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
21944 | #ifdef __cplusplus |
21945 | extern "C" |
d9898ee8 |
21946 | #endif |
d9898ee8 |
21947 | char $ac_func (); |
21948 | /* The GNU C library defines this for functions which it implements |
21949 | to always fail with ENOSYS. Some functions are actually named |
21950 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
21951 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
21952 | choke me |
d9898ee8 |
21953 | #endif |
21954 | |
21955 | int |
21956 | main () |
21957 | { |
64ff59ba |
21958 | return $ac_func (); |
d9898ee8 |
21959 | ; |
21960 | return 0; |
21961 | } |
21962 | _ACEOF |
21963 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
21964 | if { (ac_try="$ac_link" |
21965 | case "(($ac_try" in |
21966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21967 | *) ac_try_echo=$ac_try;; |
21968 | esac |
21969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21970 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
21971 | ac_status=$? |
21972 | grep -v '^ *+' conftest.er1 >conftest.err |
21973 | rm -f conftest.er1 |
21974 | cat conftest.err >&5 |
21975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
21976 | (exit $ac_status); } && { |
21977 | test -z "$ac_c_werror_flag" || |
21978 | test ! -s conftest.err |
21979 | } && test -s conftest$ac_exeext && |
21980 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
21981 | eval "$as_ac_var=yes" |
21982 | else |
21983 | echo "$as_me: failed program was:" >&5 |
21984 | sed 's/^/| /' conftest.$ac_ext >&5 |
21985 | |
64ff59ba |
21986 | eval "$as_ac_var=no" |
d9898ee8 |
21987 | fi |
64ff59ba |
21988 | |
21989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
21990 | conftest$ac_exeext conftest.$ac_ext |
21991 | fi |
64ff59ba |
21992 | ac_res=`eval echo '${'$as_ac_var'}'` |
21993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21994 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21995 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21996 | cat >>confdefs.h <<_ACEOF |
21997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
21998 | _ACEOF |
21999 | break |
22000 | fi |
22001 | done |
22002 | |
22003 | |
22004 | |
22005 | for ac_func in strrchr rindex |
22006 | do |
22007 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
22008 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22009 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22010 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
22011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22012 | else |
22013 | cat >conftest.$ac_ext <<_ACEOF |
22014 | /* confdefs.h. */ |
22015 | _ACEOF |
22016 | cat confdefs.h >>conftest.$ac_ext |
22017 | cat >>conftest.$ac_ext <<_ACEOF |
22018 | /* end confdefs.h. */ |
22019 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22021 | #define $ac_func innocuous_$ac_func |
22022 | |
22023 | /* System header to define __stub macros and hopefully few prototypes, |
22024 | which can conflict with char $ac_func (); below. |
22025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22026 | <limits.h> exists even on freestanding compilers. */ |
22027 | |
22028 | #ifdef __STDC__ |
22029 | # include <limits.h> |
22030 | #else |
22031 | # include <assert.h> |
22032 | #endif |
22033 | |
22034 | #undef $ac_func |
22035 | |
64ff59ba |
22036 | /* Override any GCC internal prototype to avoid an error. |
22037 | Use char because int might match the return type of a GCC |
22038 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22039 | #ifdef __cplusplus |
22040 | extern "C" |
d9898ee8 |
22041 | #endif |
d9898ee8 |
22042 | char $ac_func (); |
22043 | /* The GNU C library defines this for functions which it implements |
22044 | to always fail with ENOSYS. Some functions are actually named |
22045 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
22046 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
22047 | choke me |
d9898ee8 |
22048 | #endif |
22049 | |
22050 | int |
22051 | main () |
22052 | { |
64ff59ba |
22053 | return $ac_func (); |
d9898ee8 |
22054 | ; |
22055 | return 0; |
22056 | } |
22057 | _ACEOF |
22058 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
22059 | if { (ac_try="$ac_link" |
22060 | case "(($ac_try" in |
22061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22062 | *) ac_try_echo=$ac_try;; |
22063 | esac |
22064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22065 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22066 | ac_status=$? |
22067 | grep -v '^ *+' conftest.er1 >conftest.err |
22068 | rm -f conftest.er1 |
22069 | cat conftest.err >&5 |
22070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
22071 | (exit $ac_status); } && { |
22072 | test -z "$ac_c_werror_flag" || |
22073 | test ! -s conftest.err |
22074 | } && test -s conftest$ac_exeext && |
22075 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22076 | eval "$as_ac_var=yes" |
22077 | else |
22078 | echo "$as_me: failed program was:" >&5 |
22079 | sed 's/^/| /' conftest.$ac_ext >&5 |
22080 | |
64ff59ba |
22081 | eval "$as_ac_var=no" |
d9898ee8 |
22082 | fi |
64ff59ba |
22083 | |
22084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22085 | conftest$ac_exeext conftest.$ac_ext |
22086 | fi |
64ff59ba |
22087 | ac_res=`eval echo '${'$as_ac_var'}'` |
22088 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22089 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
22090 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22091 | cat >>confdefs.h <<_ACEOF |
22092 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
22093 | _ACEOF |
22094 | break |
22095 | fi |
22096 | done |
22097 | |
22098 | |
22099 | |
22100 | for ac_func in memcpy bcopy |
22101 | do |
22102 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
22103 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22104 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22105 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
22106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22107 | else |
22108 | cat >conftest.$ac_ext <<_ACEOF |
22109 | /* confdefs.h. */ |
22110 | _ACEOF |
22111 | cat confdefs.h >>conftest.$ac_ext |
22112 | cat >>conftest.$ac_ext <<_ACEOF |
22113 | /* end confdefs.h. */ |
22114 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22115 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22116 | #define $ac_func innocuous_$ac_func |
22117 | |
22118 | /* System header to define __stub macros and hopefully few prototypes, |
22119 | which can conflict with char $ac_func (); below. |
22120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22121 | <limits.h> exists even on freestanding compilers. */ |
22122 | |
22123 | #ifdef __STDC__ |
22124 | # include <limits.h> |
22125 | #else |
22126 | # include <assert.h> |
22127 | #endif |
22128 | |
22129 | #undef $ac_func |
22130 | |
64ff59ba |
22131 | /* Override any GCC internal prototype to avoid an error. |
22132 | Use char because int might match the return type of a GCC |
22133 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22134 | #ifdef __cplusplus |
22135 | extern "C" |
d9898ee8 |
22136 | #endif |
d9898ee8 |
22137 | char $ac_func (); |
22138 | /* The GNU C library defines this for functions which it implements |
22139 | to always fail with ENOSYS. Some functions are actually named |
22140 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
22141 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
22142 | choke me |
d9898ee8 |
22143 | #endif |
22144 | |
22145 | int |
22146 | main () |
22147 | { |
64ff59ba |
22148 | return $ac_func (); |
d9898ee8 |
22149 | ; |
22150 | return 0; |
22151 | } |
22152 | _ACEOF |
22153 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
22154 | if { (ac_try="$ac_link" |
22155 | case "(($ac_try" in |
22156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22157 | *) ac_try_echo=$ac_try;; |
22158 | esac |
22159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22160 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22161 | ac_status=$? |
22162 | grep -v '^ *+' conftest.er1 >conftest.err |
22163 | rm -f conftest.er1 |
22164 | cat conftest.err >&5 |
22165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
22166 | (exit $ac_status); } && { |
22167 | test -z "$ac_c_werror_flag" || |
22168 | test ! -s conftest.err |
22169 | } && test -s conftest$ac_exeext && |
22170 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22171 | eval "$as_ac_var=yes" |
22172 | else |
22173 | echo "$as_me: failed program was:" >&5 |
22174 | sed 's/^/| /' conftest.$ac_ext >&5 |
22175 | |
64ff59ba |
22176 | eval "$as_ac_var=no" |
d9898ee8 |
22177 | fi |
64ff59ba |
22178 | |
22179 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22180 | conftest$ac_exeext conftest.$ac_ext |
22181 | fi |
64ff59ba |
22182 | ac_res=`eval echo '${'$as_ac_var'}'` |
22183 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22184 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
22185 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22186 | cat >>confdefs.h <<_ACEOF |
22187 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
22188 | _ACEOF |
22189 | break |
22190 | fi |
22191 | done |
22192 | |
22193 | |
22194 | |
22195 | for ac_func in memmove strcmp |
22196 | do |
22197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
22198 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22200 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
22201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22202 | else |
22203 | cat >conftest.$ac_ext <<_ACEOF |
22204 | /* confdefs.h. */ |
22205 | _ACEOF |
22206 | cat confdefs.h >>conftest.$ac_ext |
22207 | cat >>conftest.$ac_ext <<_ACEOF |
22208 | /* end confdefs.h. */ |
22209 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22211 | #define $ac_func innocuous_$ac_func |
22212 | |
22213 | /* System header to define __stub macros and hopefully few prototypes, |
22214 | which can conflict with char $ac_func (); below. |
22215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22216 | <limits.h> exists even on freestanding compilers. */ |
22217 | |
22218 | #ifdef __STDC__ |
22219 | # include <limits.h> |
22220 | #else |
22221 | # include <assert.h> |
22222 | #endif |
22223 | |
22224 | #undef $ac_func |
22225 | |
64ff59ba |
22226 | /* Override any GCC internal prototype to avoid an error. |
22227 | Use char because int might match the return type of a GCC |
22228 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22229 | #ifdef __cplusplus |
22230 | extern "C" |
d9898ee8 |
22231 | #endif |
d9898ee8 |
22232 | char $ac_func (); |
22233 | /* The GNU C library defines this for functions which it implements |
22234 | to always fail with ENOSYS. Some functions are actually named |
22235 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
22236 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
22237 | choke me |
d9898ee8 |
22238 | #endif |
22239 | |
22240 | int |
22241 | main () |
22242 | { |
64ff59ba |
22243 | return $ac_func (); |
d9898ee8 |
22244 | ; |
22245 | return 0; |
22246 | } |
22247 | _ACEOF |
22248 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
22249 | if { (ac_try="$ac_link" |
22250 | case "(($ac_try" in |
22251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22252 | *) ac_try_echo=$ac_try;; |
22253 | esac |
22254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22255 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22256 | ac_status=$? |
22257 | grep -v '^ *+' conftest.er1 >conftest.err |
22258 | rm -f conftest.er1 |
22259 | cat conftest.err >&5 |
22260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
22261 | (exit $ac_status); } && { |
22262 | test -z "$ac_c_werror_flag" || |
22263 | test ! -s conftest.err |
22264 | } && test -s conftest$ac_exeext && |
22265 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22266 | eval "$as_ac_var=yes" |
22267 | else |
22268 | echo "$as_me: failed program was:" >&5 |
22269 | sed 's/^/| /' conftest.$ac_ext >&5 |
22270 | |
64ff59ba |
22271 | eval "$as_ac_var=no" |
d9898ee8 |
22272 | fi |
64ff59ba |
22273 | |
22274 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22275 | conftest$ac_exeext conftest.$ac_ext |
22276 | fi |
64ff59ba |
22277 | ac_res=`eval echo '${'$as_ac_var'}'` |
22278 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22279 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
22280 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22281 | cat >>confdefs.h <<_ACEOF |
22282 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
22283 | _ACEOF |
22284 | |
22285 | fi |
22286 | done |
22287 | |
22288 | |
22289 | |
22290 | |
22291 | for ac_func in closedir opendir readdir |
22292 | do |
22293 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
64ff59ba |
22294 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22295 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22296 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
22297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22298 | else |
22299 | cat >conftest.$ac_ext <<_ACEOF |
22300 | /* confdefs.h. */ |
22301 | _ACEOF |
22302 | cat confdefs.h >>conftest.$ac_ext |
22303 | cat >>conftest.$ac_ext <<_ACEOF |
22304 | /* end confdefs.h. */ |
22305 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22306 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22307 | #define $ac_func innocuous_$ac_func |
22308 | |
22309 | /* System header to define __stub macros and hopefully few prototypes, |
22310 | which can conflict with char $ac_func (); below. |
22311 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22312 | <limits.h> exists even on freestanding compilers. */ |
22313 | |
22314 | #ifdef __STDC__ |
22315 | # include <limits.h> |
22316 | #else |
22317 | # include <assert.h> |
22318 | #endif |
22319 | |
22320 | #undef $ac_func |
22321 | |
64ff59ba |
22322 | /* Override any GCC internal prototype to avoid an error. |
22323 | Use char because int might match the return type of a GCC |
22324 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22325 | #ifdef __cplusplus |
22326 | extern "C" |
d9898ee8 |
22327 | #endif |
d9898ee8 |
22328 | char $ac_func (); |
22329 | /* The GNU C library defines this for functions which it implements |
22330 | to always fail with ENOSYS. Some functions are actually named |
22331 | something starting with __ and the normal name is an alias. */ |
64ff59ba |
22332 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
22333 | choke me |
d9898ee8 |
22334 | #endif |
22335 | |
22336 | int |
22337 | main () |
22338 | { |
64ff59ba |
22339 | return $ac_func (); |
d9898ee8 |
22340 | ; |
22341 | return 0; |
22342 | } |
22343 | _ACEOF |
22344 | rm -f conftest.$ac_objext conftest$ac_exeext |
64ff59ba |
22345 | if { (ac_try="$ac_link" |
22346 | case "(($ac_try" in |
22347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22348 | *) ac_try_echo=$ac_try;; |
22349 | esac |
22350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22351 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22352 | ac_status=$? |
22353 | grep -v '^ *+' conftest.er1 >conftest.err |
22354 | rm -f conftest.er1 |
22355 | cat conftest.err >&5 |
22356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64ff59ba |
22357 | (exit $ac_status); } && { |
22358 | test -z "$ac_c_werror_flag" || |
22359 | test ! -s conftest.err |
22360 | } && test -s conftest$ac_exeext && |
22361 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22362 | eval "$as_ac_var=yes" |
22363 | else |
22364 | echo "$as_me: failed program was:" >&5 |
22365 | sed 's/^/| /' conftest.$ac_ext >&5 |
22366 | |
64ff59ba |
22367 | eval "$as_ac_var=no" |
d9898ee8 |
22368 | fi |
64ff59ba |
22369 | |
22370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22371 | conftest$ac_exeext conftest.$ac_ext |
22372 | fi |
64ff59ba |
22373 | ac_res=`eval echo '${'$as_ac_var'}'` |
22374 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22375 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
22376 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22377 | cat >>confdefs.h <<_ACEOF |
22378 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
22379 | _ACEOF |
22380 | |
22381 | fi |
22382 | done |
22383 | |
22384 | |
22385 | |
22386 | |
22387 | ## -------- ## |
22388 | ## Outputs. ## |
22389 | ## -------- ## |
64ff59ba |
22390 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 |
22391 | |
22392 | cat >confcache <<\_ACEOF |
22393 | # This file is a shell script that caches the results of configure |
22394 | # tests run on this system so they can be shared between configure |
22395 | # scripts and configure runs, see configure's option --config-cache. |
22396 | # It is not useful on other systems. If it contains results you don't |
22397 | # want to keep, you may remove or edit it. |
22398 | # |
22399 | # config.status only pays attention to the cache file if you give it |
22400 | # the --recheck option to rerun configure. |
22401 | # |
22402 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
22403 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
22404 | # following values. |
22405 | |
22406 | _ACEOF |
22407 | |
22408 | # The following way of writing the cache mishandles newlines in values, |
22409 | # but we know of no workaround that is simple, portable, and efficient. |
64ff59ba |
22410 | # So, we kill variables containing newlines. |
d9898ee8 |
22411 | # Ultrix sh set writes to stderr and can't be redirected directly, |
22412 | # and sets the high bit in the cache file unless we assign to the vars. |
64ff59ba |
22413 | ( |
22414 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
22415 | eval ac_val=\$$ac_var |
22416 | case $ac_val in #( |
22417 | *${as_nl}*) |
22418 | case $ac_var in #( |
22419 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
22420 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
22421 | esac |
22422 | case $ac_var in #( |
22423 | _ | IFS | as_nl) ;; #( |
22424 | *) $as_unset $ac_var ;; |
22425 | esac ;; |
22426 | esac |
22427 | done |
22428 | |
d9898ee8 |
22429 | (set) 2>&1 | |
64ff59ba |
22430 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
22431 | *${as_nl}ac_space=\ *) |
d9898ee8 |
22432 | # `set' does not quote correctly, so add quotes (double-quote |
22433 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
22434 | sed -n \ |
22435 | "s/'/'\\\\''/g; |
22436 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
64ff59ba |
22437 | ;; #( |
d9898ee8 |
22438 | *) |
22439 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
64ff59ba |
22440 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
22441 | ;; |
64ff59ba |
22442 | esac | |
22443 | sort |
22444 | ) | |
d9898ee8 |
22445 | sed ' |
64ff59ba |
22446 | /^ac_cv_env_/b end |
d9898ee8 |
22447 | t clear |
64ff59ba |
22448 | :clear |
d9898ee8 |
22449 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
22450 | t end |
64ff59ba |
22451 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
22452 | :end' >>confcache |
22453 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
22454 | if test -w "$cache_file"; then |
22455 | test "x$cache_file" != "x/dev/null" && |
22456 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
22457 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
22458 | cat confcache >$cache_file |
22459 | else |
64ff59ba |
22460 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
22461 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
22462 | fi |
22463 | fi |
22464 | rm -f confcache |
22465 | |
22466 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22467 | # Let make expand exec_prefix. |
22468 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
22469 | |
d9898ee8 |
22470 | DEFS=-DHAVE_CONFIG_H |
22471 | |
22472 | ac_libobjs= |
22473 | ac_ltlibobjs= |
22474 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
22475 | # 1. Remove the extension, and $U if already installed. |
64ff59ba |
22476 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
22477 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
22478 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
22479 | # will be set to the directory where LIBOBJS objects are built. |
22480 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
22481 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
22482 | done |
22483 | LIBOBJS=$ac_libobjs |
22484 | |
22485 | LTLIBOBJS=$ac_ltlibobjs |
22486 | |
22487 | |
22488 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22489 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
22490 | Usually this means the macro was only invoked conditionally." >&5 |
22491 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
22492 | Usually this means the macro was only invoked conditionally." >&2;} |
22493 | { (exit 1); exit 1; }; } |
22494 | fi |
22495 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22496 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
22497 | Usually this means the macro was only invoked conditionally." >&5 |
22498 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
22499 | Usually this means the macro was only invoked conditionally." >&2;} |
22500 | { (exit 1); exit 1; }; } |
22501 | fi |
22502 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
22503 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
22504 | Usually this means the macro was only invoked conditionally." >&5 |
22505 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
22506 | Usually this means the macro was only invoked conditionally." >&2;} |
22507 | { (exit 1); exit 1; }; } |
22508 | fi |
22509 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
22510 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
22511 | Usually this means the macro was only invoked conditionally." >&5 |
22512 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
22513 | Usually this means the macro was only invoked conditionally." >&2;} |
22514 | { (exit 1); exit 1; }; } |
22515 | fi |
22516 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
22517 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
22518 | Usually this means the macro was only invoked conditionally." >&5 |
22519 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
22520 | Usually this means the macro was only invoked conditionally." >&2;} |
22521 | { (exit 1); exit 1; }; } |
22522 | fi |
22523 | |
22524 | : ${CONFIG_STATUS=./config.status} |
22525 | ac_clean_files_save=$ac_clean_files |
22526 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
22527 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
22528 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
22529 | cat >$CONFIG_STATUS <<_ACEOF |
22530 | #! $SHELL |
22531 | # Generated by $as_me. |
22532 | # Run this file to recreate the current configuration. |
22533 | # Compiler output produced by configure, useful for debugging |
22534 | # configure, is in config.log if it exists. |
22535 | |
22536 | debug=false |
22537 | ac_cs_recheck=false |
22538 | ac_cs_silent=false |
22539 | SHELL=\${CONFIG_SHELL-$SHELL} |
22540 | _ACEOF |
22541 | |
22542 | cat >>$CONFIG_STATUS <<\_ACEOF |
22543 | ## --------------------- ## |
22544 | ## M4sh Initialization. ## |
22545 | ## --------------------- ## |
22546 | |
64ff59ba |
22547 | # Be more Bourne compatible |
22548 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
22549 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
22550 | emulate sh |
22551 | NULLCMD=: |
22552 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
22553 | # is contrary to our usage. Disable this feature. |
22554 | alias -g '${1+"$@"}'='"$@"' |
64ff59ba |
22555 | setopt NO_GLOB_SUBST |
22556 | else |
22557 | case `(set -o) 2>/dev/null` in |
22558 | *posix*) set -o posix ;; |
22559 | esac |
22560 | |
22561 | fi |
22562 | |
22563 | |
22564 | |
22565 | |
22566 | # PATH needs CR |
22567 | # Avoid depending upon Character Ranges. |
22568 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
22569 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
22570 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
22571 | as_cr_digits='0123456789' |
22572 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
22573 | |
22574 | # The user is always right. |
22575 | if test "${PATH_SEPARATOR+set}" != set; then |
22576 | echo "#! /bin/sh" >conf$$.sh |
22577 | echo "exit 0" >>conf$$.sh |
22578 | chmod +x conf$$.sh |
22579 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
22580 | PATH_SEPARATOR=';' |
22581 | else |
22582 | PATH_SEPARATOR=: |
22583 | fi |
22584 | rm -f conf$$.sh |
d9898ee8 |
22585 | fi |
d9898ee8 |
22586 | |
22587 | # Support unset when possible. |
22588 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
22589 | as_unset=unset |
22590 | else |
22591 | as_unset=false |
22592 | fi |
22593 | |
22594 | |
64ff59ba |
22595 | # IFS |
22596 | # We need space, tab and new line, in precisely that order. Quoting is |
22597 | # there to prevent editors from complaining about space-tab. |
22598 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
22599 | # splitting by setting IFS to empty value.) |
22600 | as_nl=' |
22601 | ' |
22602 | IFS=" "" $as_nl" |
d9898ee8 |
22603 | |
64ff59ba |
22604 | # Find who we are. Look in the path if we contain no directory separator. |
22605 | case $0 in |
22606 | *[\\/]* ) as_myself=$0 ;; |
22607 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22608 | for as_dir in $PATH |
22609 | do |
22610 | IFS=$as_save_IFS |
22611 | test -z "$as_dir" && as_dir=. |
22612 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
22613 | done |
22614 | IFS=$as_save_IFS |
22615 | |
22616 | ;; |
22617 | esac |
22618 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
22619 | # in which case we are not to be found in the path. |
22620 | if test "x$as_myself" = x; then |
22621 | as_myself=$0 |
22622 | fi |
22623 | if test ! -f "$as_myself"; then |
22624 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
22625 | { (exit 1); exit 1; } |
22626 | fi |
22627 | |
22628 | # Work around bugs in pre-3.0 UWIN ksh. |
22629 | for as_var in ENV MAIL MAILPATH |
22630 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
22631 | done |
22632 | PS1='$ ' |
22633 | PS2='> ' |
22634 | PS4='+ ' |
22635 | |
22636 | # NLS nuisances. |
22637 | for as_var in \ |
22638 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
d9898ee8 |
22639 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
22640 | LC_TELEPHONE LC_TIME |
22641 | do |
22642 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
22643 | eval $as_var=C; export $as_var |
22644 | else |
64ff59ba |
22645 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
22646 | fi |
22647 | done |
22648 | |
22649 | # Required to use basename. |
64ff59ba |
22650 | if expr a : '\(a\)' >/dev/null 2>&1 && |
22651 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
22652 | as_expr=expr |
22653 | else |
22654 | as_expr=false |
22655 | fi |
22656 | |
64ff59ba |
22657 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
22658 | as_basename=basename |
22659 | else |
22660 | as_basename=false |
22661 | fi |
22662 | |
22663 | |
22664 | # Name of the executable. |
64ff59ba |
22665 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
22666 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
22667 | X"$0" : 'X\(//\)$' \| \ |
64ff59ba |
22668 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
22669 | echo X/"$0" | |
64ff59ba |
22670 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
22671 | s//\1/ |
22672 | q |
22673 | } |
22674 | /^X\/\(\/\/\)$/{ |
22675 | s//\1/ |
22676 | q |
22677 | } |
22678 | /^X\/\(\/\).*/{ |
22679 | s//\1/ |
22680 | q |
22681 | } |
22682 | s/.*/./; q'` |
d9898ee8 |
22683 | |
64ff59ba |
22684 | # CDPATH. |
22685 | $as_unset CDPATH |
d9898ee8 |
22686 | |
d9898ee8 |
22687 | |
22688 | |
22689 | as_lineno_1=$LINENO |
22690 | as_lineno_2=$LINENO |
d9898ee8 |
22691 | test "x$as_lineno_1" != "x$as_lineno_2" && |
64ff59ba |
22692 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
22693 | |
22694 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
22695 | # uniformly replaced by the line number. The first 'sed' inserts a |
64ff59ba |
22696 | # line-number line after each line using $LINENO; the second 'sed' |
22697 | # does the real work. The second script uses 'N' to pair each |
22698 | # line-number line with the line containing $LINENO, and appends |
22699 | # trailing '-' during substitution so that $LINENO is not a special |
22700 | # case at line end. |
d9898ee8 |
22701 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
64ff59ba |
22702 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
22703 | # E. McMahon (1931-1989) for sed's syntax. :-) |
22704 | sed -n ' |
22705 | p |
22706 | /[$]LINENO/= |
22707 | ' <$as_myself | |
d9898ee8 |
22708 | sed ' |
64ff59ba |
22709 | s/[$]LINENO.*/&-/ |
22710 | t lineno |
22711 | b |
22712 | :lineno |
d9898ee8 |
22713 | N |
64ff59ba |
22714 | :loop |
22715 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
22716 | t loop |
64ff59ba |
22717 | s/-\n.*// |
d9898ee8 |
22718 | ' >$as_me.lineno && |
64ff59ba |
22719 | chmod +x "$as_me.lineno" || |
22720 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
22721 | { (exit 1); exit 1; }; } |
22722 | |
22723 | # Don't try to exec as it changes $[0], causing all sort of problems |
22724 | # (the dirname of $[0] is not the place where we might find the |
64ff59ba |
22725 | # original and so on. Autoconf is especially sensitive to this). |
22726 | . "./$as_me.lineno" |
d9898ee8 |
22727 | # Exit status is that of the last command. |
22728 | exit |
22729 | } |
22730 | |
22731 | |
64ff59ba |
22732 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
22733 | as_dirname=dirname |
22734 | else |
22735 | as_dirname=false |
22736 | fi |
22737 | |
22738 | ECHO_C= ECHO_N= ECHO_T= |
22739 | case `echo -n x` in |
22740 | -n*) |
22741 | case `echo 'x\c'` in |
22742 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
22743 | *) ECHO_C='\c';; |
22744 | esac;; |
22745 | *) |
22746 | ECHO_N='-n';; |
d9898ee8 |
22747 | esac |
22748 | |
64ff59ba |
22749 | if expr a : '\(a\)' >/dev/null 2>&1 && |
22750 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
22751 | as_expr=expr |
22752 | else |
22753 | as_expr=false |
22754 | fi |
22755 | |
22756 | rm -f conf$$ conf$$.exe conf$$.file |
64ff59ba |
22757 | if test -d conf$$.dir; then |
22758 | rm -f conf$$.dir/conf$$.file |
22759 | else |
22760 | rm -f conf$$.dir |
22761 | mkdir conf$$.dir |
22762 | fi |
d9898ee8 |
22763 | echo >conf$$.file |
22764 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
64ff59ba |
22765 | as_ln_s='ln -s' |
22766 | # ... but there are two gotchas: |
22767 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
22768 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
22769 | # In both cases, we have to default to `cp -p'. |
22770 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
22771 | as_ln_s='cp -p' |
d9898ee8 |
22772 | elif ln conf$$.file conf$$ 2>/dev/null; then |
22773 | as_ln_s=ln |
22774 | else |
22775 | as_ln_s='cp -p' |
22776 | fi |
64ff59ba |
22777 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
22778 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
22779 | |
22780 | if mkdir -p . 2>/dev/null; then |
22781 | as_mkdir_p=: |
22782 | else |
22783 | test -d ./-p && rmdir ./-p |
22784 | as_mkdir_p=false |
22785 | fi |
22786 | |
64ff59ba |
22787 | if test -x / >/dev/null 2>&1; then |
22788 | as_test_x='test -x' |
22789 | else |
22790 | if ls -dL / >/dev/null 2>&1; then |
22791 | as_ls_L_option=L |
22792 | else |
22793 | as_ls_L_option= |
22794 | fi |
22795 | as_test_x=' |
22796 | eval sh -c '\'' |
22797 | if test -d "$1"; then |
22798 | test -d "$1/."; |
22799 | else |
22800 | case $1 in |
22801 | -*)set "./$1";; |
22802 | esac; |
22803 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
22804 | ???[sx]*):;;*)false;;esac;fi |
22805 | '\'' sh |
22806 | ' |
22807 | fi |
22808 | as_executable_p=$as_test_x |
d9898ee8 |
22809 | |
22810 | # Sed expression to map a string onto a valid CPP name. |
22811 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
22812 | |
22813 | # Sed expression to map a string onto a valid variable name. |
22814 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
22815 | |
22816 | |
d9898ee8 |
22817 | exec 6>&1 |
22818 | |
64ff59ba |
22819 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
22820 | # report actual input values of CONFIG_FILES etc. instead of their |
64ff59ba |
22821 | # values after options handling. |
22822 | ac_log=" |
d9898ee8 |
22823 | This file was extended by libltdl $as_me 1.2, which was |
64ff59ba |
22824 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
22825 | |
22826 | CONFIG_FILES = $CONFIG_FILES |
22827 | CONFIG_HEADERS = $CONFIG_HEADERS |
22828 | CONFIG_LINKS = $CONFIG_LINKS |
22829 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
22830 | $ $0 $@ |
22831 | |
64ff59ba |
22832 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
22833 | " |
22834 | |
d9898ee8 |
22835 | _ACEOF |
22836 | |
64ff59ba |
22837 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
22838 | # Files that config.status was made for. |
64ff59ba |
22839 | config_files="$ac_config_files" |
22840 | config_headers="$ac_config_headers" |
22841 | config_commands="$ac_config_commands" |
d9898ee8 |
22842 | |
64ff59ba |
22843 | _ACEOF |
d9898ee8 |
22844 | |
22845 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
22846 | ac_cs_usage="\ |
22847 | \`$as_me' instantiates files from templates according to the |
22848 | current configuration. |
22849 | |
22850 | Usage: $0 [OPTIONS] [FILE]... |
22851 | |
22852 | -h, --help print this help, then exit |
64ff59ba |
22853 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
22854 | -q, --quiet do not print progress messages |
22855 | -d, --debug don't remove temporary files |
22856 | --recheck update $as_me by reconfiguring in the same conditions |
22857 | --file=FILE[:TEMPLATE] |
22858 | instantiate the configuration file FILE |
22859 | --header=FILE[:TEMPLATE] |
22860 | instantiate the configuration header FILE |
22861 | |
22862 | Configuration files: |
22863 | $config_files |
22864 | |
22865 | Configuration headers: |
22866 | $config_headers |
22867 | |
22868 | Configuration commands: |
22869 | $config_commands |
22870 | |
22871 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
22872 | |
64ff59ba |
22873 | _ACEOF |
d9898ee8 |
22874 | cat >>$CONFIG_STATUS <<_ACEOF |
22875 | ac_cs_version="\\ |
22876 | libltdl config.status 1.2 |
64ff59ba |
22877 | configured by $0, generated by GNU Autoconf 2.61, |
22878 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
22879 | |
64ff59ba |
22880 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
22881 | This config.status script is free software; the Free Software Foundation |
22882 | gives unlimited permission to copy, distribute and modify it." |
64ff59ba |
22883 | |
22884 | ac_pwd='$ac_pwd' |
22885 | srcdir='$srcdir' |
22886 | INSTALL='$INSTALL' |
22887 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
22888 | _ACEOF |
22889 | |
22890 | cat >>$CONFIG_STATUS <<\_ACEOF |
22891 | # If no file are specified by the user, then we need to provide default |
22892 | # value. By we need to know if files were specified by the user. |
22893 | ac_need_defaults=: |
22894 | while test $# != 0 |
22895 | do |
22896 | case $1 in |
22897 | --*=*) |
64ff59ba |
22898 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
22899 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
22900 | ac_shift=: |
22901 | ;; |
64ff59ba |
22902 | *) |
d9898ee8 |
22903 | ac_option=$1 |
22904 | ac_optarg=$2 |
22905 | ac_shift=shift |
22906 | ;; |
d9898ee8 |
22907 | esac |
22908 | |
22909 | case $ac_option in |
22910 | # Handling of the options. |
d9898ee8 |
22911 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
22912 | ac_cs_recheck=: ;; |
64ff59ba |
22913 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
22914 | echo "$ac_cs_version"; exit ;; |
22915 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
22916 | debug=: ;; |
22917 | --file | --fil | --fi | --f ) |
22918 | $ac_shift |
22919 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
22920 | ac_need_defaults=false;; |
22921 | --header | --heade | --head | --hea ) |
22922 | $ac_shift |
22923 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
22924 | ac_need_defaults=false;; |
64ff59ba |
22925 | --he | --h) |
22926 | # Conflict between --help and --header |
22927 | { echo "$as_me: error: ambiguous option: $1 |
22928 | Try \`$0 --help' for more information." >&2 |
22929 | { (exit 1); exit 1; }; };; |
22930 | --help | --hel | -h ) |
22931 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
22932 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
22933 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
22934 | ac_cs_silent=: ;; |
22935 | |
22936 | # This is an error. |
64ff59ba |
22937 | -*) { echo "$as_me: error: unrecognized option: $1 |
22938 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
22939 | { (exit 1); exit 1; }; } ;; |
22940 | |
64ff59ba |
22941 | *) ac_config_targets="$ac_config_targets $1" |
22942 | ac_need_defaults=false ;; |
d9898ee8 |
22943 | |
22944 | esac |
22945 | shift |
22946 | done |
22947 | |
22948 | ac_configure_extra_args= |
22949 | |
22950 | if $ac_cs_silent; then |
22951 | exec 6>/dev/null |
22952 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
22953 | fi |
22954 | |
22955 | _ACEOF |
22956 | cat >>$CONFIG_STATUS <<_ACEOF |
22957 | if \$ac_cs_recheck; then |
64ff59ba |
22958 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
22959 | CONFIG_SHELL=$SHELL |
22960 | export CONFIG_SHELL |
22961 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
22962 | fi |
22963 | |
22964 | _ACEOF |
64ff59ba |
22965 | cat >>$CONFIG_STATUS <<\_ACEOF |
22966 | exec 5>>config.log |
22967 | { |
22968 | echo |
22969 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
22970 | ## Running $as_me. ## |
22971 | _ASBOX |
22972 | echo "$ac_log" |
22973 | } >&5 |
d9898ee8 |
22974 | |
64ff59ba |
22975 | _ACEOF |
d9898ee8 |
22976 | cat >>$CONFIG_STATUS <<_ACEOF |
22977 | # |
64ff59ba |
22978 | # INIT-COMMANDS |
d9898ee8 |
22979 | # |
d9898ee8 |
22980 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
22981 | |
22982 | _ACEOF |
22983 | |
d9898ee8 |
22984 | cat >>$CONFIG_STATUS <<\_ACEOF |
64ff59ba |
22985 | |
22986 | # Handling of arguments. |
d9898ee8 |
22987 | for ac_config_target in $ac_config_targets |
22988 | do |
64ff59ba |
22989 | case $ac_config_target in |
22990 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; |
22991 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
22992 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
22993 | |
d9898ee8 |
22994 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
22995 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
22996 | { (exit 1); exit 1; }; };; |
22997 | esac |
22998 | done |
22999 | |
64ff59ba |
23000 | |
d9898ee8 |
23001 | # If the user did not use the arguments to specify the items to instantiate, |
23002 | # then the envvar interface is used. Set only those that are not. |
23003 | # We use the long form for the default assignment because of an extremely |
23004 | # bizarre bug on SunOS 4.1.3. |
23005 | if $ac_need_defaults; then |
23006 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
23007 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
23008 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
23009 | fi |
23010 | |
23011 | # Have a temporary directory for convenience. Make it in the build tree |
64ff59ba |
23012 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
23013 | # creating and moving files from /tmp can sometimes cause problems. |
64ff59ba |
23014 | # Hook for its removal unless debugging. |
23015 | # Note that there is a small window in which the directory will not be cleaned: |
23016 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
23017 | $debug || |
23018 | { |
64ff59ba |
23019 | tmp= |
23020 | trap 'exit_status=$? |
23021 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
23022 | ' 0 |
d9898ee8 |
23023 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
23024 | } |
d9898ee8 |
23025 | # Create a (secure) tmp directory for tmp files. |
23026 | |
23027 | { |
64ff59ba |
23028 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
23029 | test -n "$tmp" && test -d "$tmp" |
23030 | } || |
23031 | { |
64ff59ba |
23032 | tmp=./conf$$-$RANDOM |
23033 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
23034 | } || |
23035 | { |
23036 | echo "$me: cannot create a temporary directory in ." >&2 |
23037 | { (exit 1); exit 1; } |
23038 | } |
23039 | |
d9898ee8 |
23040 | # |
64ff59ba |
23041 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
23042 | # |
23043 | |
23044 | # No need to generate the scripts if there are no CONFIG_FILES. |
23045 | # This happens for instance when ./config.status config.h |
64ff59ba |
23046 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
23047 | |
23048 | _ACEOF |
23049 | |
64ff59ba |
23050 | |
23051 | |
23052 | ac_delim='%!_!# ' |
23053 | for ac_last_try in false false false false false :; do |
23054 | cat >conf$$subs.sed <<_ACEOF |
23055 | SHELL!$SHELL$ac_delim |
23056 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
23057 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
23058 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
23059 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
23060 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
23061 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
23062 | exec_prefix!$exec_prefix$ac_delim |
23063 | prefix!$prefix$ac_delim |
23064 | program_transform_name!$program_transform_name$ac_delim |
23065 | bindir!$bindir$ac_delim |
23066 | sbindir!$sbindir$ac_delim |
23067 | libexecdir!$libexecdir$ac_delim |
23068 | datarootdir!$datarootdir$ac_delim |
23069 | datadir!$datadir$ac_delim |
23070 | sysconfdir!$sysconfdir$ac_delim |
23071 | sharedstatedir!$sharedstatedir$ac_delim |
23072 | localstatedir!$localstatedir$ac_delim |
23073 | includedir!$includedir$ac_delim |
23074 | oldincludedir!$oldincludedir$ac_delim |
23075 | docdir!$docdir$ac_delim |
23076 | infodir!$infodir$ac_delim |
23077 | htmldir!$htmldir$ac_delim |
23078 | dvidir!$dvidir$ac_delim |
23079 | pdfdir!$pdfdir$ac_delim |
23080 | psdir!$psdir$ac_delim |
23081 | libdir!$libdir$ac_delim |
23082 | localedir!$localedir$ac_delim |
23083 | mandir!$mandir$ac_delim |
23084 | DEFS!$DEFS$ac_delim |
23085 | ECHO_C!$ECHO_C$ac_delim |
23086 | ECHO_N!$ECHO_N$ac_delim |
23087 | ECHO_T!$ECHO_T$ac_delim |
23088 | LIBS!$LIBS$ac_delim |
23089 | build_alias!$build_alias$ac_delim |
23090 | host_alias!$host_alias$ac_delim |
23091 | target_alias!$target_alias$ac_delim |
23092 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
23093 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
23094 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
23095 | am__isrc!$am__isrc$ac_delim |
23096 | CYGPATH_W!$CYGPATH_W$ac_delim |
23097 | PACKAGE!$PACKAGE$ac_delim |
23098 | VERSION!$VERSION$ac_delim |
23099 | ACLOCAL!$ACLOCAL$ac_delim |
23100 | AUTOCONF!$AUTOCONF$ac_delim |
23101 | AUTOMAKE!$AUTOMAKE$ac_delim |
23102 | AUTOHEADER!$AUTOHEADER$ac_delim |
23103 | MAKEINFO!$MAKEINFO$ac_delim |
23104 | install_sh!$install_sh$ac_delim |
23105 | STRIP!$STRIP$ac_delim |
23106 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
23107 | mkdir_p!$mkdir_p$ac_delim |
23108 | AWK!$AWK$ac_delim |
23109 | SET_MAKE!$SET_MAKE$ac_delim |
23110 | am__leading_dot!$am__leading_dot$ac_delim |
23111 | AMTAR!$AMTAR$ac_delim |
23112 | am__tar!$am__tar$ac_delim |
23113 | am__untar!$am__untar$ac_delim |
23114 | CC!$CC$ac_delim |
23115 | CFLAGS!$CFLAGS$ac_delim |
23116 | LDFLAGS!$LDFLAGS$ac_delim |
23117 | CPPFLAGS!$CPPFLAGS$ac_delim |
23118 | ac_ct_CC!$ac_ct_CC$ac_delim |
23119 | EXEEXT!$EXEEXT$ac_delim |
23120 | OBJEXT!$OBJEXT$ac_delim |
23121 | DEPDIR!$DEPDIR$ac_delim |
23122 | am__include!$am__include$ac_delim |
23123 | am__quote!$am__quote$ac_delim |
23124 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
23125 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
23126 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
23127 | CCDEPMODE!$CCDEPMODE$ac_delim |
23128 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
23129 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
23130 | build!$build$ac_delim |
23131 | build_cpu!$build_cpu$ac_delim |
23132 | build_vendor!$build_vendor$ac_delim |
23133 | build_os!$build_os$ac_delim |
23134 | host!$host$ac_delim |
23135 | host_cpu!$host_cpu$ac_delim |
23136 | host_vendor!$host_vendor$ac_delim |
23137 | host_os!$host_os$ac_delim |
23138 | SED!$SED$ac_delim |
23139 | GREP!$GREP$ac_delim |
23140 | EGREP!$EGREP$ac_delim |
23141 | LN_S!$LN_S$ac_delim |
23142 | ECHO!$ECHO$ac_delim |
23143 | AR!$AR$ac_delim |
23144 | RANLIB!$RANLIB$ac_delim |
23145 | DLLTOOL!$DLLTOOL$ac_delim |
23146 | AS!$AS$ac_delim |
23147 | OBJDUMP!$OBJDUMP$ac_delim |
23148 | CPP!$CPP$ac_delim |
23149 | CXX!$CXX$ac_delim |
23150 | CXXFLAGS!$CXXFLAGS$ac_delim |
23151 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
23152 | _ACEOF |
23153 | |
23154 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
23155 | break |
23156 | elif $ac_last_try; then |
23157 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
23158 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
23159 | { (exit 1); exit 1; }; } |
23160 | else |
23161 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
23162 | fi |
64ff59ba |
23163 | done |
23164 | |
23165 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
23166 | if test -n "$ac_eof"; then |
23167 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
23168 | ac_eof=`expr $ac_eof + 1` |
23169 | fi |
23170 | |
23171 | cat >>$CONFIG_STATUS <<_ACEOF |
23172 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
23173 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
23174 | _ACEOF |
23175 | sed ' |
23176 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
23177 | s/^/s,@/; s/!/@,|#_!!_#|/ |
23178 | :n |
23179 | t n |
23180 | s/'"$ac_delim"'$/,g/; t |
23181 | s/$/\\/; p |
23182 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
23183 | ' >>$CONFIG_STATUS <conf$$subs.sed |
23184 | rm -f conf$$subs.sed |
23185 | cat >>$CONFIG_STATUS <<_ACEOF |
23186 | CEOF$ac_eof |
23187 | _ACEOF |
d9898ee8 |
23188 | |
64ff59ba |
23189 | |
23190 | ac_delim='%!_!# ' |
23191 | for ac_last_try in false false false false false :; do |
23192 | cat >conf$$subs.sed <<_ACEOF |
23193 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
23194 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
23195 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
23196 | CXXCPP!$CXXCPP$ac_delim |
23197 | F77!$F77$ac_delim |
23198 | FFLAGS!$FFLAGS$ac_delim |
23199 | ac_ct_F77!$ac_ct_F77$ac_delim |
23200 | LIBTOOL!$LIBTOOL$ac_delim |
23201 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim |
23202 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
23203 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
23204 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
23205 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
23206 | LIBADD_DL!$LIBADD_DL$ac_delim |
23207 | LIBOBJS!$LIBOBJS$ac_delim |
23208 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
d9898ee8 |
23209 | _ACEOF |
64ff59ba |
23210 | |
23211 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then |
23212 | break |
23213 | elif $ac_last_try; then |
23214 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
23215 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
23216 | { (exit 1); exit 1; }; } |
23217 | else |
23218 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
23219 | fi |
23220 | done |
23221 | |
23222 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
23223 | if test -n "$ac_eof"; then |
23224 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
23225 | ac_eof=`expr $ac_eof + 1` |
23226 | fi |
23227 | |
23228 | cat >>$CONFIG_STATUS <<_ACEOF |
23229 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
23230 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
23231 | _ACEOF |
23232 | sed ' |
23233 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
23234 | s/^/s,@/; s/!/@,|#_!!_#|/ |
23235 | :n |
23236 | t n |
23237 | s/'"$ac_delim"'$/,g/; t |
23238 | s/$/\\/; p |
23239 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
23240 | ' >>$CONFIG_STATUS <conf$$subs.sed |
23241 | rm -f conf$$subs.sed |
23242 | cat >>$CONFIG_STATUS <<_ACEOF |
23243 | :end |
23244 | s/|#_!!_#|//g |
23245 | CEOF$ac_eof |
23246 | _ACEOF |
23247 | |
23248 | |
23249 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
23250 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
23251 | # trailing colons and then remove the whole line if VPATH becomes empty |
23252 | # (actually we leave an empty line to preserve line numbers). |
23253 | if test "x$srcdir" = x.; then |
23254 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
23255 | s/:*\$(srcdir):*/:/ |
23256 | s/:*\${srcdir}:*/:/ |
23257 | s/:*@srcdir@:*/:/ |
23258 | s/^\([^=]*=[ ]*\):*/\1/ |
23259 | s/:*$// |
23260 | s/^[^=]*=[ ]*$// |
23261 | }' |
23262 | fi |
23263 | |
d9898ee8 |
23264 | cat >>$CONFIG_STATUS <<\_ACEOF |
64ff59ba |
23265 | fi # test -n "$CONFIG_FILES" |
23266 | |
23267 | |
23268 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
23269 | do |
23270 | case $ac_tag in |
23271 | :[FHLC]) ac_mode=$ac_tag; continue;; |
23272 | esac |
23273 | case $ac_mode$ac_tag in |
23274 | :[FHL]*:*);; |
23275 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
23276 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
23277 | { (exit 1); exit 1; }; };; |
23278 | :[FH]-) ac_tag=-:-;; |
23279 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
23280 | esac |
23281 | ac_save_IFS=$IFS |
23282 | IFS=: |
23283 | set x $ac_tag |
23284 | IFS=$ac_save_IFS |
23285 | shift |
23286 | ac_file=$1 |
23287 | shift |
23288 | |
23289 | case $ac_mode in |
23290 | :L) ac_source=$1;; |
23291 | :[FH]) |
23292 | ac_file_inputs= |
23293 | for ac_f |
23294 | do |
23295 | case $ac_f in |
23296 | -) ac_f="$tmp/stdin";; |
23297 | *) # Look for the file first in the build tree, then in the source tree |
23298 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
23299 | # because $ac_f cannot contain `:'. |
23300 | test -f "$ac_f" || |
23301 | case $ac_f in |
23302 | [\\/$]*) false;; |
23303 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
23304 | esac || |
23305 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
23306 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
23307 | { (exit 1); exit 1; }; };; |
23308 | esac |
23309 | ac_file_inputs="$ac_file_inputs $ac_f" |
23310 | done |
23311 | |
23312 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
23313 | # use $as_me), people would be surprised to read: |
23314 | # /* config.h. Generated by config.status. */ |
23315 | configure_input="Generated from "`IFS=: |
23316 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
23317 | if test x"$ac_file" != x-; then |
23318 | configure_input="$ac_file. $configure_input" |
23319 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
23320 | echo "$as_me: creating $ac_file" >&6;} |
23321 | fi |
23322 | |
23323 | case $ac_tag in |
23324 | *:-:* | *:-) cat >"$tmp/stdin";; |
23325 | esac |
23326 | ;; |
d9898ee8 |
23327 | esac |
23328 | |
64ff59ba |
23329 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
23330 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23331 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
23332 | X"$ac_file" : 'X\(//\)$' \| \ |
64ff59ba |
23333 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
23334 | echo X"$ac_file" | |
64ff59ba |
23335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23336 | s//\1/ |
23337 | q |
23338 | } |
23339 | /^X\(\/\/\)[^/].*/{ |
23340 | s//\1/ |
23341 | q |
23342 | } |
23343 | /^X\(\/\/\)$/{ |
23344 | s//\1/ |
23345 | q |
23346 | } |
23347 | /^X\(\/\).*/{ |
23348 | s//\1/ |
23349 | q |
23350 | } |
23351 | s/.*/./; q'` |
23352 | { as_dir="$ac_dir" |
23353 | case $as_dir in #( |
23354 | -*) as_dir=./$as_dir;; |
23355 | esac |
23356 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
23357 | as_dirs= |
64ff59ba |
23358 | while :; do |
23359 | case $as_dir in #( |
23360 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
23361 | *) as_qdir=$as_dir;; |
23362 | esac |
23363 | as_dirs="'$as_qdir' $as_dirs" |
23364 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
23365 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23366 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
23367 | X"$as_dir" : 'X\(//\)$' \| \ |
64ff59ba |
23368 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
23369 | echo X"$as_dir" | |
64ff59ba |
23370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23371 | s//\1/ |
23372 | q |
23373 | } |
23374 | /^X\(\/\/\)[^/].*/{ |
23375 | s//\1/ |
23376 | q |
23377 | } |
23378 | /^X\(\/\/\)$/{ |
23379 | s//\1/ |
23380 | q |
23381 | } |
23382 | /^X\(\/\).*/{ |
23383 | s//\1/ |
23384 | q |
23385 | } |
23386 | s/.*/./; q'` |
23387 | test -d "$as_dir" && break |
d9898ee8 |
23388 | done |
64ff59ba |
23389 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
23390 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
23391 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
23392 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
23393 | ac_builddir=. |
23394 | |
64ff59ba |
23395 | case "$ac_dir" in |
23396 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
23397 | *) |
d9898ee8 |
23398 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
64ff59ba |
23399 | # A ".." for each directory in $ac_dir_suffix. |
23400 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
23401 | case $ac_top_builddir_sub in |
23402 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
23403 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
23404 | esac ;; |
23405 | esac |
23406 | ac_abs_top_builddir=$ac_pwd |
23407 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
23408 | # for backward compatibility: |
23409 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
23410 | |
23411 | case $srcdir in |
64ff59ba |
23412 | .) # We are building in place. |
d9898ee8 |
23413 | ac_srcdir=. |
64ff59ba |
23414 | ac_top_srcdir=$ac_top_builddir_sub |
23415 | ac_abs_top_srcdir=$ac_pwd ;; |
23416 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
23417 | ac_srcdir=$srcdir$ac_dir_suffix; |
64ff59ba |
23418 | ac_top_srcdir=$srcdir |
23419 | ac_abs_top_srcdir=$srcdir ;; |
23420 | *) # Relative name. |
23421 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
23422 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
23423 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
23424 | esac |
64ff59ba |
23425 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
23426 | |
d9898ee8 |
23427 | |
64ff59ba |
23428 | case $ac_mode in |
23429 | :F) |
23430 | # |
23431 | # CONFIG_FILE |
23432 | # |
d9898ee8 |
23433 | |
23434 | case $INSTALL in |
23435 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
64ff59ba |
23436 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d9898ee8 |
23437 | esac |
64ff59ba |
23438 | ac_MKDIR_P=$MKDIR_P |
23439 | case $MKDIR_P in |
23440 | [\\/$]* | ?:[\\/]* ) ;; |
23441 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
23442 | esac |
23443 | _ACEOF |
d9898ee8 |
23444 | |
64ff59ba |
23445 | cat >>$CONFIG_STATUS <<\_ACEOF |
23446 | # If the template does not know about datarootdir, expand it. |
23447 | # FIXME: This hack should be removed a few years after 2.60. |
23448 | ac_datarootdir_hack=; ac_datarootdir_seen= |
23449 | |
23450 | case `sed -n '/datarootdir/ { |
23451 | p |
23452 | q |
23453 | } |
23454 | /@datadir@/p |
23455 | /@docdir@/p |
23456 | /@infodir@/p |
23457 | /@localedir@/p |
23458 | /@mandir@/p |
23459 | ' $ac_file_inputs` in |
23460 | *datarootdir*) ac_datarootdir_seen=yes;; |
23461 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
23462 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
23463 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
23464 | _ACEOF |
23465 | cat >>$CONFIG_STATUS <<_ACEOF |
23466 | ac_datarootdir_hack=' |
23467 | s&@datadir@&$datadir&g |
23468 | s&@docdir@&$docdir&g |
23469 | s&@infodir@&$infodir&g |
23470 | s&@localedir@&$localedir&g |
23471 | s&@mandir@&$mandir&g |
23472 | s&\\\${datarootdir}&$datarootdir&g' ;; |
23473 | esac |
d9898ee8 |
23474 | _ACEOF |
64ff59ba |
23475 | |
23476 | # Neutralize VPATH when `$srcdir' = `.'. |
23477 | # Shell code in configure.ac might set extrasub. |
23478 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
23479 | cat >>$CONFIG_STATUS <<_ACEOF |
23480 | sed "$ac_vpsub |
23481 | $extrasub |
23482 | _ACEOF |
23483 | cat >>$CONFIG_STATUS <<\_ACEOF |
23484 | :t |
23485 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
64ff59ba |
23486 | s&@configure_input@&$configure_input&;t t |
23487 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
23488 | s&@srcdir@&$ac_srcdir&;t t |
23489 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
23490 | s&@top_srcdir@&$ac_top_srcdir&;t t |
23491 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
23492 | s&@builddir@&$ac_builddir&;t t |
23493 | s&@abs_builddir@&$ac_abs_builddir&;t t |
23494 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
23495 | s&@INSTALL@&$ac_INSTALL&;t t |
23496 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
23497 | $ac_datarootdir_hack |
23498 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
23499 | |
23500 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
23501 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
23502 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
23503 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
23504 | which seems to be undefined. Please make sure it is defined." >&5 |
23505 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
23506 | which seems to be undefined. Please make sure it is defined." >&2;} |
23507 | |
23508 | rm -f "$tmp/stdin" |
d9898ee8 |
23509 | case $ac_file in |
64ff59ba |
23510 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
23511 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
23512 | esac |
64ff59ba |
23513 | ;; |
23514 | :H) |
23515 | # |
23516 | # CONFIG_HEADER |
23517 | # |
d9898ee8 |
23518 | _ACEOF |
23519 | |
64ff59ba |
23520 | # Transform confdefs.h into a sed script `conftest.defines', that |
23521 | # substitutes the proper values into config.h.in to produce config.h. |
23522 | rm -f conftest.defines conftest.tail |
23523 | # First, append a space to every undef/define line, to ease matching. |
23524 | echo 's/$/ /' >conftest.defines |
23525 | # Then, protect against being on the right side of a sed subst, or in |
23526 | # an unquoted here document, in config.status. If some macros were |
23527 | # called several times there might be several #defines for the same |
23528 | # symbol, which is useless. But do not sort them, since the last |
23529 | # AC_DEFINE must be honored. |
23530 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
23531 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
23532 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
23533 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
23534 | # just an empty string. |
23535 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
23536 | ac_dB='\\)[ (].*,\\1define\\2' |
23537 | ac_dC=' ' |
23538 | ac_dD=' ,' |
23539 | |
23540 | uniq confdefs.h | |
23541 | sed -n ' |
23542 | t rset |
23543 | :rset |
23544 | s/^[ ]*#[ ]*define[ ][ ]*// |
23545 | t ok |
23546 | d |
23547 | :ok |
23548 | s/[\\&,]/\\&/g |
23549 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
23550 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
23551 | ' >>conftest.defines |
23552 | |
23553 | # Remove the space that was appended to ease matching. |
23554 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
23555 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
23556 | # on some systems where configure will not decide to define it. |
64ff59ba |
23557 | # (The regexp can be short, since the line contains either #define or #undef.) |
23558 | echo 's/ $// |
23559 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
23560 | |
23561 | # Break up conftest.defines: |
23562 | ac_max_sed_lines=50 |
23563 | |
23564 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
23565 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
23566 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
23567 | # et cetera. |
23568 | ac_in='$ac_file_inputs' |
23569 | ac_out='"$tmp/out1"' |
23570 | ac_nxt='"$tmp/out2"' |
23571 | |
23572 | while : |
d9898ee8 |
23573 | do |
64ff59ba |
23574 | # Write a here document: |
23575 | cat >>$CONFIG_STATUS <<_ACEOF |
23576 | # First, check the format of the line: |
23577 | cat >"\$tmp/defines.sed" <<\\CEOF |
23578 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
23579 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
23580 | b |
23581 | :def |
23582 | _ACEOF |
23583 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
23584 | echo 'CEOF |
64ff59ba |
23585 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
23586 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
23587 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
23588 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
23589 | rm -f conftest.defines |
23590 | mv conftest.tail conftest.defines |
23591 | done |
64ff59ba |
23592 | rm -f conftest.defines conftest.tail |
d9898ee8 |
23593 | |
64ff59ba |
23594 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
23595 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
23596 | if test x"$ac_file" != x-; then |
64ff59ba |
23597 | echo "/* $configure_input */" >"$tmp/config.h" |
23598 | cat "$ac_result" >>"$tmp/config.h" |
23599 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
23600 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
23601 | echo "$as_me: $ac_file is unchanged" >&6;} |
23602 | else |
d9898ee8 |
23603 | rm -f $ac_file |
64ff59ba |
23604 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
23605 | fi |
23606 | else |
64ff59ba |
23607 | echo "/* $configure_input */" |
23608 | cat "$ac_result" |
d9898ee8 |
23609 | fi |
64ff59ba |
23610 | rm -f "$tmp/out12" |
d9898ee8 |
23611 | # Compute $ac_file's index in $config_headers. |
0fde1ce3 |
23612 | _am_arg=$ac_file |
d9898ee8 |
23613 | _am_stamp_count=1 |
23614 | for _am_header in $config_headers :; do |
23615 | case $_am_header in |
0fde1ce3 |
23616 | $_am_arg | $_am_arg:* ) |
d9898ee8 |
23617 | break ;; |
23618 | * ) |
23619 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
23620 | esac |
23621 | done |
0fde1ce3 |
23622 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
23623 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23624 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
23625 | X"$_am_arg" : 'X\(//\)$' \| \ |
23626 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
23627 | echo X"$_am_arg" | |
64ff59ba |
23628 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23629 | s//\1/ |
23630 | q |
23631 | } |
23632 | /^X\(\/\/\)[^/].*/{ |
23633 | s//\1/ |
23634 | q |
23635 | } |
23636 | /^X\(\/\/\)$/{ |
23637 | s//\1/ |
23638 | q |
23639 | } |
23640 | /^X\(\/\).*/{ |
23641 | s//\1/ |
23642 | q |
23643 | } |
23644 | s/.*/./; q'`/stamp-h$_am_stamp_count |
23645 | ;; |
d9898ee8 |
23646 | |
64ff59ba |
23647 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
23648 | echo "$as_me: executing $ac_file commands" >&6;} |
23649 | ;; |
23650 | esac |
d9898ee8 |
23651 | |
23652 | |
64ff59ba |
23653 | case $ac_file$ac_mode in |
23654 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
23655 | # Strip MF so we end up with the name of the file. |
23656 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
23657 | # Check whether this is an Automake generated Makefile or not. |
23658 | # We used to match only the files named `Makefile.in', but |
23659 | # some people rename them; so instead we look at the file content. |
23660 | # Grep'ing the first line is not enough: some people post-process |
23661 | # each Makefile.in and add a new line on top of each file to say so. |
64ff59ba |
23662 | # Grep'ing the whole file is not good either: AIX grep has a line |
23663 | # limit of 2048, but all sed's we know have understand at least 4000. |
0fde1ce3 |
23664 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
64ff59ba |
23665 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
23666 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23667 | X"$mf" : 'X\(//\)[^/]' \| \ |
23668 | X"$mf" : 'X\(//\)$' \| \ |
64ff59ba |
23669 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
23670 | echo X"$mf" | |
64ff59ba |
23671 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23672 | s//\1/ |
23673 | q |
23674 | } |
23675 | /^X\(\/\/\)[^/].*/{ |
23676 | s//\1/ |
23677 | q |
23678 | } |
23679 | /^X\(\/\/\)$/{ |
23680 | s//\1/ |
23681 | q |
23682 | } |
23683 | /^X\(\/\).*/{ |
23684 | s//\1/ |
23685 | q |
23686 | } |
23687 | s/.*/./; q'` |
d9898ee8 |
23688 | else |
23689 | continue |
23690 | fi |
23691 | # Extract the definition of DEPDIR, am__include, and am__quote |
23692 | # from the Makefile without running `make'. |
23693 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
23694 | test -z "$DEPDIR" && continue |
23695 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
23696 | test -z "am__include" && continue |
23697 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
23698 | # When using ansi2knr, U may be empty or an underscore; expand it |
23699 | U=`sed -n 's/^U = //p' < "$mf"` |
23700 | # Find all dependency output files, they are included files with |
23701 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
23702 | # simplest approach to changing $(DEPDIR) to its actual value in the |
23703 | # expansion. |
23704 | for file in `sed -n " |
23705 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
23706 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
23707 | # Make sure the directory exists. |
23708 | test -f "$dirpart/$file" && continue |
64ff59ba |
23709 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
23710 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23711 | X"$file" : 'X\(//\)[^/]' \| \ |
23712 | X"$file" : 'X\(//\)$' \| \ |
64ff59ba |
23713 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
23714 | echo X"$file" | |
64ff59ba |
23715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23716 | s//\1/ |
23717 | q |
23718 | } |
23719 | /^X\(\/\/\)[^/].*/{ |
23720 | s//\1/ |
23721 | q |
23722 | } |
23723 | /^X\(\/\/\)$/{ |
23724 | s//\1/ |
23725 | q |
23726 | } |
23727 | /^X\(\/\).*/{ |
23728 | s//\1/ |
23729 | q |
23730 | } |
23731 | s/.*/./; q'` |
23732 | { as_dir=$dirpart/$fdir |
23733 | case $as_dir in #( |
23734 | -*) as_dir=./$as_dir;; |
23735 | esac |
23736 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
23737 | as_dirs= |
64ff59ba |
23738 | while :; do |
23739 | case $as_dir in #( |
23740 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
23741 | *) as_qdir=$as_dir;; |
23742 | esac |
23743 | as_dirs="'$as_qdir' $as_dirs" |
23744 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
23745 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23746 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
23747 | X"$as_dir" : 'X\(//\)$' \| \ |
64ff59ba |
23748 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
23749 | echo X"$as_dir" | |
64ff59ba |
23750 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23751 | s//\1/ |
23752 | q |
23753 | } |
23754 | /^X\(\/\/\)[^/].*/{ |
23755 | s//\1/ |
23756 | q |
23757 | } |
23758 | /^X\(\/\/\)$/{ |
23759 | s//\1/ |
23760 | q |
23761 | } |
23762 | /^X\(\/\).*/{ |
23763 | s//\1/ |
23764 | q |
23765 | } |
23766 | s/.*/./; q'` |
23767 | test -d "$as_dir" && break |
d9898ee8 |
23768 | done |
64ff59ba |
23769 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
23770 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
23771 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
23772 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
23773 | # echo "creating $dirpart/$file" |
23774 | echo '# dummy' > "$dirpart/$file" |
23775 | done |
23776 | done |
23777 | ;; |
64ff59ba |
23778 | |
d9898ee8 |
23779 | esac |
64ff59ba |
23780 | done # for ac_tag |
d9898ee8 |
23781 | |
d9898ee8 |
23782 | |
23783 | { (exit 0); exit 0; } |
23784 | _ACEOF |
23785 | chmod +x $CONFIG_STATUS |
23786 | ac_clean_files=$ac_clean_files_save |
23787 | |
23788 | |
23789 | # configure is writing to config.log, and then calls config.status. |
23790 | # config.status does its own redirection, appending to config.log. |
23791 | # Unfortunately, on DOS this fails, as config.log is still kept open |
23792 | # by configure, so config.status won't be able to write to it; its |
23793 | # output is simply discarded. So we exec the FD to /dev/null, |
23794 | # effectively closing config.log, so it can be properly (re)opened and |
23795 | # appended to by config.status. When coming back to configure, we |
23796 | # need to make the FD available again. |
23797 | if test "$no_create" != yes; then |
23798 | ac_cs_success=: |
23799 | ac_config_status_args= |
23800 | test "$silent" = yes && |
23801 | ac_config_status_args="$ac_config_status_args --quiet" |
23802 | exec 5>/dev/null |
23803 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
23804 | exec 5>>config.log |
23805 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
23806 | # would make configure fail if this is the last instruction. |
23807 | $ac_cs_success || { (exit 1); exit 1; } |
23808 | fi |
23809 | |