d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
dd184caf |
3 | # Generated by GNU Autoconf 2.61 for numlib 0.10. |
d9898ee8 |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
dd184caf |
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 | |
dd184caf |
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+"$@"}'='"$@"' |
dd184caf |
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 | |
dd184caf |
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. |
dd184caf |
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 |
dd184caf |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
dd184caf |
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 | |
dd184caf |
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. |
dd184caf |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
dd184caf |
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 | |
dd184caf |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
dd184caf |
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 | |
dd184caf |
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 | |
dd184caf |
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 | |
dd184caf |
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=. |
dd184caf |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
dd184caf |
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" && |
dd184caf |
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 |
dd184caf |
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 |
dd184caf |
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 ' |
dd184caf |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
dd184caf |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
dd184caf |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
dd184caf |
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 |
dd184caf |
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 | |
dd184caf |
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 | |
dd184caf |
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 |
dd184caf |
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 |
dd184caf |
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 |
dd184caf |
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 | |
dd184caf |
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 | |
dd184caf |
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 |
dd184caf |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
dd184caf |
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='numlib' |
730 | PACKAGE_TARNAME='numlib' |
731 | PACKAGE_VERSION='0.10' |
732 | PACKAGE_STRING='numlib 0.10' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="atotimet.c" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
dd184caf |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
dd184caf |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
dd184caf |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
dd184caf |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
dd184caf |
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 |
dd184caf |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
dd184caf |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
dd184caf |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
dd184caf |
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 | LN_S |
848 | build |
849 | build_cpu |
850 | build_vendor |
851 | build_os |
852 | host |
853 | host_cpu |
854 | host_vendor |
855 | host_os |
856 | SED |
857 | GREP |
858 | EGREP |
859 | ECHO |
860 | AR |
861 | RANLIB |
862 | CPP |
863 | CXX |
864 | CXXFLAGS |
865 | ac_ct_CXX |
866 | CXXDEPMODE |
867 | am__fastdepCXX_TRUE |
868 | am__fastdepCXX_FALSE |
869 | CXXCPP |
870 | F77 |
871 | FFLAGS |
872 | ac_ct_F77 |
873 | LIBTOOL |
874 | LIBOBJS |
875 | LTLIBOBJS' |
d9898ee8 |
876 | ac_subst_files='' |
dd184caf |
877 | ac_precious_vars='build_alias |
878 | host_alias |
879 | target_alias |
880 | CC |
881 | CFLAGS |
882 | LDFLAGS |
883 | LIBS |
884 | CPPFLAGS |
885 | CPP |
886 | CXX |
887 | CXXFLAGS |
888 | CCC |
889 | CXXCPP |
890 | F77 |
891 | FFLAGS' |
892 | |
d9898ee8 |
893 | |
894 | # Initialize some variables set by options. |
895 | ac_init_help= |
896 | ac_init_version=false |
897 | # The variables have the same names as the options, with |
898 | # dashes changed to underlines. |
899 | cache_file=/dev/null |
900 | exec_prefix=NONE |
901 | no_create= |
902 | no_recursion= |
903 | prefix=NONE |
904 | program_prefix=NONE |
905 | program_suffix=NONE |
906 | program_transform_name=s,x,x, |
907 | silent= |
908 | site= |
909 | srcdir= |
910 | verbose= |
911 | x_includes=NONE |
912 | x_libraries=NONE |
913 | |
914 | # Installation directory options. |
915 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
916 | # and all the variables that are supposed to be based on exec_prefix |
917 | # by default will actually change. |
918 | # Use braces instead of parens because sh, perl, etc. also accept them. |
dd184caf |
919 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
920 | bindir='${exec_prefix}/bin' |
921 | sbindir='${exec_prefix}/sbin' |
922 | libexecdir='${exec_prefix}/libexec' |
dd184caf |
923 | datarootdir='${prefix}/share' |
924 | datadir='${datarootdir}' |
d9898ee8 |
925 | sysconfdir='${prefix}/etc' |
926 | sharedstatedir='${prefix}/com' |
927 | localstatedir='${prefix}/var' |
d9898ee8 |
928 | includedir='${prefix}/include' |
929 | oldincludedir='/usr/include' |
dd184caf |
930 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
931 | infodir='${datarootdir}/info' |
932 | htmldir='${docdir}' |
933 | dvidir='${docdir}' |
934 | pdfdir='${docdir}' |
935 | psdir='${docdir}' |
936 | libdir='${exec_prefix}/lib' |
937 | localedir='${datarootdir}/locale' |
938 | mandir='${datarootdir}/man' |
d9898ee8 |
939 | |
940 | ac_prev= |
dd184caf |
941 | ac_dashdash= |
d9898ee8 |
942 | for ac_option |
943 | do |
944 | # If the previous option needs an argument, assign it. |
945 | if test -n "$ac_prev"; then |
dd184caf |
946 | eval $ac_prev=\$ac_option |
d9898ee8 |
947 | ac_prev= |
948 | continue |
949 | fi |
950 | |
dd184caf |
951 | case $ac_option in |
952 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
953 | *) ac_optarg=yes ;; |
954 | esac |
d9898ee8 |
955 | |
956 | # Accept the important Cygnus configure options, so we can diagnose typos. |
957 | |
dd184caf |
958 | case $ac_dashdash$ac_option in |
959 | --) |
960 | ac_dashdash=yes ;; |
d9898ee8 |
961 | |
962 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
963 | ac_prev=bindir ;; |
964 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
965 | bindir=$ac_optarg ;; |
966 | |
967 | -build | --build | --buil | --bui | --bu) |
968 | ac_prev=build_alias ;; |
969 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
970 | build_alias=$ac_optarg ;; |
971 | |
972 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
973 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
974 | ac_prev=cache_file ;; |
975 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
976 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
977 | cache_file=$ac_optarg ;; |
978 | |
979 | --config-cache | -C) |
980 | cache_file=config.cache ;; |
981 | |
dd184caf |
982 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
983 | ac_prev=datadir ;; |
dd184caf |
984 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
985 | datadir=$ac_optarg ;; |
986 | |
dd184caf |
987 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
988 | | --dataroo | --dataro | --datar) |
989 | ac_prev=datarootdir ;; |
990 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
991 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
992 | datarootdir=$ac_optarg ;; |
993 | |
d9898ee8 |
994 | -disable-* | --disable-*) |
995 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
996 | # Reject names that are not valid shell variable names. |
dd184caf |
997 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
998 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
999 | { (exit 1); exit 1; }; } |
dd184caf |
1000 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1001 | eval enable_$ac_feature=no ;; |
1002 | |
1003 | -docdir | --docdir | --docdi | --doc | --do) |
1004 | ac_prev=docdir ;; |
1005 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1006 | docdir=$ac_optarg ;; |
1007 | |
1008 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1009 | ac_prev=dvidir ;; |
1010 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1011 | dvidir=$ac_optarg ;; |
d9898ee8 |
1012 | |
1013 | -enable-* | --enable-*) |
1014 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1015 | # Reject names that are not valid shell variable names. |
dd184caf |
1016 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1017 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1018 | { (exit 1); exit 1; }; } |
dd184caf |
1019 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1020 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1021 | |
1022 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1023 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1024 | | --exec | --exe | --ex) |
1025 | ac_prev=exec_prefix ;; |
1026 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1027 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1028 | | --exec=* | --exe=* | --ex=*) |
1029 | exec_prefix=$ac_optarg ;; |
1030 | |
1031 | -gas | --gas | --ga | --g) |
1032 | # Obsolete; use --with-gas. |
1033 | with_gas=yes ;; |
1034 | |
1035 | -help | --help | --hel | --he | -h) |
1036 | ac_init_help=long ;; |
1037 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1038 | ac_init_help=recursive ;; |
1039 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1040 | ac_init_help=short ;; |
1041 | |
1042 | -host | --host | --hos | --ho) |
1043 | ac_prev=host_alias ;; |
1044 | -host=* | --host=* | --hos=* | --ho=*) |
1045 | host_alias=$ac_optarg ;; |
1046 | |
dd184caf |
1047 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1048 | ac_prev=htmldir ;; |
1049 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1050 | | --ht=*) |
1051 | htmldir=$ac_optarg ;; |
1052 | |
d9898ee8 |
1053 | -includedir | --includedir | --includedi | --included | --include \ |
1054 | | --includ | --inclu | --incl | --inc) |
1055 | ac_prev=includedir ;; |
1056 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1057 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1058 | includedir=$ac_optarg ;; |
1059 | |
1060 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1061 | ac_prev=infodir ;; |
1062 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1063 | infodir=$ac_optarg ;; |
1064 | |
1065 | -libdir | --libdir | --libdi | --libd) |
1066 | ac_prev=libdir ;; |
1067 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1068 | libdir=$ac_optarg ;; |
1069 | |
1070 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1071 | | --libexe | --libex | --libe) |
1072 | ac_prev=libexecdir ;; |
1073 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1074 | | --libexe=* | --libex=* | --libe=*) |
1075 | libexecdir=$ac_optarg ;; |
1076 | |
dd184caf |
1077 | -localedir | --localedir | --localedi | --localed | --locale) |
1078 | ac_prev=localedir ;; |
1079 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1080 | localedir=$ac_optarg ;; |
1081 | |
d9898ee8 |
1082 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf |
1083 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1084 | ac_prev=localstatedir ;; |
1085 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
dd184caf |
1086 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1087 | localstatedir=$ac_optarg ;; |
1088 | |
1089 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1090 | ac_prev=mandir ;; |
1091 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1092 | mandir=$ac_optarg ;; |
1093 | |
1094 | -nfp | --nfp | --nf) |
1095 | # Obsolete; use --without-fp. |
1096 | with_fp=no ;; |
1097 | |
1098 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1099 | | --no-cr | --no-c | -n) |
1100 | no_create=yes ;; |
1101 | |
1102 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1103 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1104 | no_recursion=yes ;; |
1105 | |
1106 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1107 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1108 | | --oldin | --oldi | --old | --ol | --o) |
1109 | ac_prev=oldincludedir ;; |
1110 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1111 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1112 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1113 | oldincludedir=$ac_optarg ;; |
1114 | |
1115 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1116 | ac_prev=prefix ;; |
1117 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1118 | prefix=$ac_optarg ;; |
1119 | |
1120 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1121 | | --program-pre | --program-pr | --program-p) |
1122 | ac_prev=program_prefix ;; |
1123 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1124 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1125 | program_prefix=$ac_optarg ;; |
1126 | |
1127 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1128 | | --program-suf | --program-su | --program-s) |
1129 | ac_prev=program_suffix ;; |
1130 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1131 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1132 | program_suffix=$ac_optarg ;; |
1133 | |
1134 | -program-transform-name | --program-transform-name \ |
1135 | | --program-transform-nam | --program-transform-na \ |
1136 | | --program-transform-n | --program-transform- \ |
1137 | | --program-transform | --program-transfor \ |
1138 | | --program-transfo | --program-transf \ |
1139 | | --program-trans | --program-tran \ |
1140 | | --progr-tra | --program-tr | --program-t) |
1141 | ac_prev=program_transform_name ;; |
1142 | -program-transform-name=* | --program-transform-name=* \ |
1143 | | --program-transform-nam=* | --program-transform-na=* \ |
1144 | | --program-transform-n=* | --program-transform-=* \ |
1145 | | --program-transform=* | --program-transfor=* \ |
1146 | | --program-transfo=* | --program-transf=* \ |
1147 | | --program-trans=* | --program-tran=* \ |
1148 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1149 | program_transform_name=$ac_optarg ;; |
1150 | |
dd184caf |
1151 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1152 | ac_prev=pdfdir ;; |
1153 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1154 | pdfdir=$ac_optarg ;; |
1155 | |
1156 | -psdir | --psdir | --psdi | --psd | --ps) |
1157 | ac_prev=psdir ;; |
1158 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1159 | psdir=$ac_optarg ;; |
1160 | |
d9898ee8 |
1161 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1162 | | -silent | --silent | --silen | --sile | --sil) |
1163 | silent=yes ;; |
1164 | |
1165 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1166 | ac_prev=sbindir ;; |
1167 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1168 | | --sbi=* | --sb=*) |
1169 | sbindir=$ac_optarg ;; |
1170 | |
1171 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1172 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1173 | | --sharedst | --shareds | --shared | --share | --shar \ |
1174 | | --sha | --sh) |
1175 | ac_prev=sharedstatedir ;; |
1176 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1177 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1178 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1179 | | --sha=* | --sh=*) |
1180 | sharedstatedir=$ac_optarg ;; |
1181 | |
1182 | -site | --site | --sit) |
1183 | ac_prev=site ;; |
1184 | -site=* | --site=* | --sit=*) |
1185 | site=$ac_optarg ;; |
1186 | |
1187 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1188 | ac_prev=srcdir ;; |
1189 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1190 | srcdir=$ac_optarg ;; |
1191 | |
1192 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1193 | | --syscon | --sysco | --sysc | --sys | --sy) |
1194 | ac_prev=sysconfdir ;; |
1195 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1196 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1197 | sysconfdir=$ac_optarg ;; |
1198 | |
1199 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1200 | ac_prev=target_alias ;; |
1201 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1202 | target_alias=$ac_optarg ;; |
1203 | |
1204 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1205 | verbose=yes ;; |
1206 | |
1207 | -version | --version | --versio | --versi | --vers | -V) |
1208 | ac_init_version=: ;; |
1209 | |
1210 | -with-* | --with-*) |
1211 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1212 | # Reject names that are not valid shell variable names. |
dd184caf |
1213 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1214 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1215 | { (exit 1); exit 1; }; } |
dd184caf |
1216 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1217 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1218 | |
1219 | -without-* | --without-*) |
1220 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1221 | # Reject names that are not valid shell variable names. |
dd184caf |
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; }; } |
dd184caf |
1225 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1226 | eval with_$ac_package=no ;; |
d9898ee8 |
1227 | |
1228 | --x) |
1229 | # Obsolete; use --with-x. |
1230 | with_x=yes ;; |
1231 | |
1232 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1233 | | --x-incl | --x-inc | --x-in | --x-i) |
1234 | ac_prev=x_includes ;; |
1235 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1236 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1237 | x_includes=$ac_optarg ;; |
1238 | |
1239 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1240 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1241 | ac_prev=x_libraries ;; |
1242 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1243 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1244 | x_libraries=$ac_optarg ;; |
1245 | |
1246 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1247 | Try \`$0 --help' for more information." >&2 |
1248 | { (exit 1); exit 1; }; } |
1249 | ;; |
1250 | |
1251 | *=*) |
1252 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1253 | # Reject names that are not valid shell variable names. |
1254 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1255 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1256 | { (exit 1); exit 1; }; } |
dd184caf |
1257 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1258 | export $ac_envvar ;; |
1259 | |
1260 | *) |
1261 | # FIXME: should be removed in autoconf 3.0. |
1262 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1263 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1264 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1265 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1266 | ;; |
1267 | |
1268 | esac |
1269 | done |
1270 | |
1271 | if test -n "$ac_prev"; then |
1272 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1273 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1274 | { (exit 1); exit 1; }; } |
1275 | fi |
1276 | |
dd184caf |
1277 | # Be sure to have absolute directory names. |
1278 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1279 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1280 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1281 | libdir localedir mandir |
d9898ee8 |
1282 | do |
dd184caf |
1283 | eval ac_val=\$$ac_var |
d9898ee8 |
1284 | case $ac_val in |
dd184caf |
1285 | [\\/$]* | ?:[\\/]* ) continue;; |
1286 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1287 | esac |
dd184caf |
1288 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1289 | { (exit 1); exit 1; }; } |
d9898ee8 |
1290 | done |
1291 | |
1292 | # There might be people who depend on the old broken behavior: `$host' |
1293 | # used to hold the argument of --host etc. |
1294 | # FIXME: To remove some day. |
1295 | build=$build_alias |
1296 | host=$host_alias |
1297 | target=$target_alias |
1298 | |
1299 | # FIXME: To remove some day. |
1300 | if test "x$host_alias" != x; then |
1301 | if test "x$build_alias" = x; then |
1302 | cross_compiling=maybe |
1303 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1304 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1305 | elif test "x$build_alias" != "x$host_alias"; then |
1306 | cross_compiling=yes |
1307 | fi |
1308 | fi |
1309 | |
1310 | ac_tool_prefix= |
1311 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1312 | |
1313 | test "$silent" = yes && exec 6>/dev/null |
1314 | |
1315 | |
dd184caf |
1316 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1317 | ac_ls_di=`ls -di .` && |
1318 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1319 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1320 | { (exit 1); exit 1; }; } |
1321 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1322 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1323 | { (exit 1); exit 1; }; } |
1324 | |
1325 | |
d9898ee8 |
1326 | # Find the source files, if location was not specified. |
1327 | if test -z "$srcdir"; then |
1328 | ac_srcdir_defaulted=yes |
dd184caf |
1329 | # Try the directory containing this script, then the parent directory. |
1330 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1331 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1332 | X"$0" : 'X\(//\)[^/]' \| \ |
1333 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
1334 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1335 | echo X"$0" | |
dd184caf |
1336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1337 | s//\1/ |
1338 | q |
1339 | } |
1340 | /^X\(\/\/\)[^/].*/{ |
1341 | s//\1/ |
1342 | q |
1343 | } |
1344 | /^X\(\/\/\)$/{ |
1345 | s//\1/ |
1346 | q |
1347 | } |
1348 | /^X\(\/\).*/{ |
1349 | s//\1/ |
1350 | q |
1351 | } |
1352 | s/.*/./; q'` |
d9898ee8 |
1353 | srcdir=$ac_confdir |
dd184caf |
1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1355 | srcdir=.. |
1356 | fi |
1357 | else |
1358 | ac_srcdir_defaulted=no |
1359 | fi |
dd184caf |
1360 | if test ! -r "$srcdir/$ac_unique_file"; then |
1361 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1362 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1363 | { (exit 1); exit 1; }; } |
d9898ee8 |
1364 | fi |
dd184caf |
1365 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1366 | ac_abs_confdir=`( |
1367 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1368 | { (exit 1); exit 1; }; } |
dd184caf |
1369 | pwd)` |
1370 | # When building in place, set srcdir=. |
1371 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1372 | srcdir=. |
1373 | fi |
1374 | # Remove unnecessary trailing slashes from srcdir. |
1375 | # Double slashes in file names in object file debugging info |
1376 | # mess up M-x gdb in Emacs. |
1377 | case $srcdir in |
1378 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1379 | esac |
1380 | for ac_var in $ac_precious_vars; do |
1381 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1382 | eval ac_env_${ac_var}_value=\$${ac_var} |
1383 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1384 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1385 | done |
d9898ee8 |
1386 | |
1387 | # |
1388 | # Report the --help message. |
1389 | # |
1390 | if test "$ac_init_help" = "long"; then |
1391 | # Omit some internal or obsolete options to make the list less imposing. |
1392 | # This message is too long to be a string in the A/UX 3.1 sh. |
1393 | cat <<_ACEOF |
1394 | \`configure' configures numlib 0.10 to adapt to many kinds of systems. |
1395 | |
1396 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1397 | |
1398 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1399 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1400 | |
1401 | Defaults for the options are specified in brackets. |
1402 | |
1403 | Configuration: |
1404 | -h, --help display this help and exit |
1405 | --help=short display options specific to this package |
1406 | --help=recursive display the short help of all the included packages |
1407 | -V, --version display version information and exit |
1408 | -q, --quiet, --silent do not print \`checking...' messages |
1409 | --cache-file=FILE cache test results in FILE [disabled] |
1410 | -C, --config-cache alias for \`--cache-file=config.cache' |
1411 | -n, --no-create do not create output files |
1412 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1413 | |
d9898ee8 |
1414 | Installation directories: |
1415 | --prefix=PREFIX install architecture-independent files in PREFIX |
1416 | [$ac_default_prefix] |
1417 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1418 | [PREFIX] |
1419 | |
1420 | By default, \`make install' will install all the files in |
1421 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1422 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1423 | for instance \`--prefix=\$HOME'. |
1424 | |
1425 | For better control, use the options below. |
1426 | |
1427 | Fine tuning of the installation directories: |
1428 | --bindir=DIR user executables [EPREFIX/bin] |
1429 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1430 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1431 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1432 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1433 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1434 | --libdir=DIR object code libraries [EPREFIX/lib] |
1435 | --includedir=DIR C header files [PREFIX/include] |
1436 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
dd184caf |
1437 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1438 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1439 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1440 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1441 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1442 | --docdir=DIR documentation root [DATAROOTDIR/doc/numlib] |
1443 | --htmldir=DIR html documentation [DOCDIR] |
1444 | --dvidir=DIR dvi documentation [DOCDIR] |
1445 | --pdfdir=DIR pdf documentation [DOCDIR] |
1446 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1447 | _ACEOF |
1448 | |
1449 | cat <<\_ACEOF |
1450 | |
1451 | Program names: |
1452 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1453 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1454 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1455 | |
1456 | System types: |
1457 | --build=BUILD configure for building on BUILD [guessed] |
1458 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1459 | _ACEOF |
1460 | fi |
1461 | |
1462 | if test -n "$ac_init_help"; then |
1463 | case $ac_init_help in |
1464 | short | recursive ) echo "Configuration of numlib 0.10:";; |
1465 | esac |
1466 | cat <<\_ACEOF |
1467 | |
1468 | Optional Features: |
1469 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1470 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1471 | --disable-dependency-tracking speeds up one-time build |
1472 | --enable-dependency-tracking do not reject slow dependency extractors |
dd184caf |
1473 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1474 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1475 | --enable-fast-install[=PKGS] |
1476 | optimize for fast installation [default=yes] |
1477 | --disable-libtool-lock avoid locking (might break parallel builds) |
1478 | |
1479 | Optional Packages: |
1480 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1481 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1482 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1483 | --with-pic try to use only PIC/non-PIC objects [default=use |
1484 | both] |
dd184caf |
1485 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1486 | |
1487 | Some influential environment variables: |
1488 | CC C compiler command |
1489 | CFLAGS C compiler flags |
1490 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1491 | nonstandard directory <lib dir> |
dd184caf |
1492 | LIBS libraries to pass to the linker, e.g. -l<library> |
1493 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1494 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1495 | CPP C preprocessor |
1496 | CXX C++ compiler command |
1497 | CXXFLAGS C++ compiler flags |
1498 | CXXCPP C++ preprocessor |
1499 | F77 Fortran 77 compiler command |
1500 | FFLAGS Fortran 77 compiler flags |
1501 | |
1502 | Use these variables to override the choices made by `configure' or to help |
1503 | it to find libraries and programs with nonstandard names/locations. |
1504 | |
1505 | Report bugs to <courier-users@lists.sourceforge.net>. |
1506 | _ACEOF |
dd184caf |
1507 | ac_status=$? |
d9898ee8 |
1508 | fi |
1509 | |
1510 | if test "$ac_init_help" = "recursive"; then |
1511 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1512 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd184caf |
1513 | test -d "$ac_dir" || continue |
d9898ee8 |
1514 | ac_builddir=. |
1515 | |
dd184caf |
1516 | case "$ac_dir" in |
1517 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1518 | *) |
d9898ee8 |
1519 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
1520 | # A ".." for each directory in $ac_dir_suffix. |
1521 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1522 | case $ac_top_builddir_sub in |
1523 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1524 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1525 | esac ;; |
1526 | esac |
1527 | ac_abs_top_builddir=$ac_pwd |
1528 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1529 | # for backward compatibility: |
1530 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1531 | |
1532 | case $srcdir in |
dd184caf |
1533 | .) # We are building in place. |
d9898ee8 |
1534 | ac_srcdir=. |
dd184caf |
1535 | ac_top_srcdir=$ac_top_builddir_sub |
1536 | ac_abs_top_srcdir=$ac_pwd ;; |
1537 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1538 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
1539 | ac_top_srcdir=$srcdir |
1540 | ac_abs_top_srcdir=$srcdir ;; |
1541 | *) # Relative name. |
1542 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1543 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1544 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1545 | esac |
dd184caf |
1546 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1547 | |
1548 | cd "$ac_dir" || { ac_status=$?; continue; } |
1549 | # Check for guested configure. |
1550 | if test -f "$ac_srcdir/configure.gnu"; then |
1551 | echo && |
1552 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1553 | elif test -f "$ac_srcdir/configure"; then |
1554 | echo && |
1555 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1556 | else |
1557 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf |
1558 | fi || ac_status=$? |
1559 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1560 | done |
1561 | fi |
1562 | |
dd184caf |
1563 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1564 | if $ac_init_version; then |
1565 | cat <<\_ACEOF |
1566 | numlib configure 0.10 |
dd184caf |
1567 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1568 | |
dd184caf |
1569 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1570 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1571 | This configure script is free software; the Free Software Foundation |
1572 | gives unlimited permission to copy, distribute and modify it. |
1573 | _ACEOF |
dd184caf |
1574 | exit |
d9898ee8 |
1575 | fi |
dd184caf |
1576 | cat >config.log <<_ACEOF |
d9898ee8 |
1577 | This file contains any messages produced by compilers while |
1578 | running configure, to aid debugging if configure makes a mistake. |
1579 | |
1580 | It was created by numlib $as_me 0.10, which was |
dd184caf |
1581 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1582 | |
1583 | $ $0 $@ |
1584 | |
1585 | _ACEOF |
dd184caf |
1586 | exec 5>>config.log |
d9898ee8 |
1587 | { |
1588 | cat <<_ASUNAME |
1589 | ## --------- ## |
1590 | ## Platform. ## |
1591 | ## --------- ## |
1592 | |
1593 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1594 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1595 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1596 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1597 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1598 | |
1599 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1600 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1601 | |
1602 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1603 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1604 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
dd184caf |
1605 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1606 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1607 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1608 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1609 | |
1610 | _ASUNAME |
1611 | |
1612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1613 | for as_dir in $PATH |
1614 | do |
1615 | IFS=$as_save_IFS |
1616 | test -z "$as_dir" && as_dir=. |
1617 | echo "PATH: $as_dir" |
1618 | done |
dd184caf |
1619 | IFS=$as_save_IFS |
d9898ee8 |
1620 | |
1621 | } >&5 |
1622 | |
1623 | cat >&5 <<_ACEOF |
1624 | |
1625 | |
1626 | ## ----------- ## |
1627 | ## Core tests. ## |
1628 | ## ----------- ## |
1629 | |
1630 | _ACEOF |
1631 | |
1632 | |
1633 | # Keep a trace of the command line. |
1634 | # Strip out --no-create and --no-recursion so they do not pile up. |
1635 | # Strip out --silent because we don't want to record it for future runs. |
1636 | # Also quote any args containing shell meta-characters. |
1637 | # Make two passes to allow for proper duplicate-argument suppression. |
1638 | ac_configure_args= |
1639 | ac_configure_args0= |
1640 | ac_configure_args1= |
d9898ee8 |
1641 | ac_must_keep_next=false |
1642 | for ac_pass in 1 2 |
1643 | do |
1644 | for ac_arg |
1645 | do |
1646 | case $ac_arg in |
1647 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1648 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1649 | | -silent | --silent | --silen | --sile | --sil) |
1650 | continue ;; |
dd184caf |
1651 | *\'*) |
d9898ee8 |
1652 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1653 | esac |
1654 | case $ac_pass in |
1655 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1656 | 2) |
1657 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1658 | if test $ac_must_keep_next = true; then |
1659 | ac_must_keep_next=false # Got value, back to normal. |
1660 | else |
1661 | case $ac_arg in |
1662 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1663 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1664 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1665 | | -with-* | --with-* | -without-* | --without-* | --x) |
1666 | case "$ac_configure_args0 " in |
1667 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1668 | esac |
1669 | ;; |
1670 | -* ) ac_must_keep_next=true ;; |
1671 | esac |
1672 | fi |
dd184caf |
1673 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1674 | ;; |
1675 | esac |
1676 | done |
1677 | done |
1678 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1679 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1680 | |
1681 | # When interrupted or exit'd, cleanup temporary files, and complete |
1682 | # config.log. We remove comments because anyway the quotes in there |
1683 | # would cause problems or look ugly. |
dd184caf |
1684 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1685 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1686 | trap 'exit_status=$? |
1687 | # Save into config.log some information that might help in debugging. |
1688 | { |
1689 | echo |
1690 | |
1691 | cat <<\_ASBOX |
1692 | ## ---------------- ## |
1693 | ## Cache variables. ## |
1694 | ## ---------------- ## |
1695 | _ASBOX |
1696 | echo |
1697 | # The following way of writing the cache mishandles newlines in values, |
dd184caf |
1698 | ( |
1699 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1700 | eval ac_val=\$$ac_var |
1701 | case $ac_val in #( |
1702 | *${as_nl}*) |
1703 | case $ac_var in #( |
1704 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1705 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1706 | esac |
1707 | case $ac_var in #( |
1708 | _ | IFS | as_nl) ;; #( |
1709 | *) $as_unset $ac_var ;; |
1710 | esac ;; |
1711 | esac |
1712 | done |
d9898ee8 |
1713 | (set) 2>&1 | |
dd184caf |
1714 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1715 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1716 | sed -n \ |
dd184caf |
1717 | "s/'\''/'\''\\\\'\'''\''/g; |
1718 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1719 | ;; #( |
d9898ee8 |
1720 | *) |
dd184caf |
1721 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1722 | ;; |
dd184caf |
1723 | esac | |
1724 | sort |
1725 | ) |
d9898ee8 |
1726 | echo |
1727 | |
1728 | cat <<\_ASBOX |
1729 | ## ----------------- ## |
1730 | ## Output variables. ## |
1731 | ## ----------------- ## |
1732 | _ASBOX |
1733 | echo |
1734 | for ac_var in $ac_subst_vars |
1735 | do |
dd184caf |
1736 | eval ac_val=\$$ac_var |
1737 | case $ac_val in |
1738 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1739 | esac |
1740 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1741 | done | sort |
1742 | echo |
1743 | |
1744 | if test -n "$ac_subst_files"; then |
1745 | cat <<\_ASBOX |
dd184caf |
1746 | ## ------------------- ## |
1747 | ## File substitutions. ## |
1748 | ## ------------------- ## |
d9898ee8 |
1749 | _ASBOX |
1750 | echo |
1751 | for ac_var in $ac_subst_files |
1752 | do |
dd184caf |
1753 | eval ac_val=\$$ac_var |
1754 | case $ac_val in |
1755 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1756 | esac |
1757 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1758 | done | sort |
1759 | echo |
1760 | fi |
1761 | |
1762 | if test -s confdefs.h; then |
1763 | cat <<\_ASBOX |
1764 | ## ----------- ## |
1765 | ## confdefs.h. ## |
1766 | ## ----------- ## |
1767 | _ASBOX |
1768 | echo |
dd184caf |
1769 | cat confdefs.h |
d9898ee8 |
1770 | echo |
1771 | fi |
1772 | test "$ac_signal" != 0 && |
1773 | echo "$as_me: caught signal $ac_signal" |
1774 | echo "$as_me: exit $exit_status" |
1775 | } >&5 |
dd184caf |
1776 | rm -f core *.core core.conftest.* && |
1777 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1778 | exit $exit_status |
dd184caf |
1779 | ' 0 |
d9898ee8 |
1780 | for ac_signal in 1 2 13 15; do |
1781 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1782 | done |
1783 | ac_signal=0 |
1784 | |
1785 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
dd184caf |
1786 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1787 | |
1788 | # Predefined preprocessor variables. |
1789 | |
1790 | cat >>confdefs.h <<_ACEOF |
1791 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1792 | _ACEOF |
1793 | |
1794 | |
1795 | cat >>confdefs.h <<_ACEOF |
1796 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1797 | _ACEOF |
1798 | |
1799 | |
1800 | cat >>confdefs.h <<_ACEOF |
1801 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1802 | _ACEOF |
1803 | |
1804 | |
1805 | cat >>confdefs.h <<_ACEOF |
1806 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1807 | _ACEOF |
1808 | |
1809 | |
1810 | cat >>confdefs.h <<_ACEOF |
1811 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1812 | _ACEOF |
1813 | |
1814 | |
1815 | # Let the site file select an alternate cache file if it wants to. |
1816 | # Prefer explicitly selected file to automatically selected ones. |
dd184caf |
1817 | if test -n "$CONFIG_SITE"; then |
1818 | set x "$CONFIG_SITE" |
1819 | elif test "x$prefix" != xNONE; then |
1820 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1821 | else |
1822 | set x "$ac_default_prefix/share/config.site" \ |
1823 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1824 | fi |
dd184caf |
1825 | shift |
1826 | for ac_site_file |
1827 | do |
d9898ee8 |
1828 | if test -r "$ac_site_file"; then |
1829 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1830 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1831 | sed 's/^/| /' "$ac_site_file" >&5 |
1832 | . "$ac_site_file" |
1833 | fi |
1834 | done |
1835 | |
1836 | if test -r "$cache_file"; then |
1837 | # Some versions of bash will fail to source /dev/null (special |
1838 | # files actually), so we avoid doing that. |
1839 | if test -f "$cache_file"; then |
1840 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1841 | echo "$as_me: loading cache $cache_file" >&6;} |
1842 | case $cache_file in |
dd184caf |
1843 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1844 | *) . "./$cache_file";; |
d9898ee8 |
1845 | esac |
1846 | fi |
1847 | else |
1848 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1849 | echo "$as_me: creating cache $cache_file" >&6;} |
1850 | >$cache_file |
1851 | fi |
1852 | |
1853 | # Check that the precious variables saved in the cache have kept the same |
1854 | # value. |
1855 | ac_cache_corrupted=false |
dd184caf |
1856 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1857 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1858 | eval ac_new_set=\$ac_env_${ac_var}_set |
dd184caf |
1859 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1860 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1861 | case $ac_old_set,$ac_new_set in |
1862 | set,) |
1863 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1864 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1865 | ac_cache_corrupted=: ;; |
1866 | ,set) |
1867 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1868 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1869 | ac_cache_corrupted=: ;; |
1870 | ,);; |
1871 | *) |
1872 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1873 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1874 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1875 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1876 | echo "$as_me: former value: $ac_old_val" >&2;} |
1877 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1878 | echo "$as_me: current value: $ac_new_val" >&2;} |
1879 | ac_cache_corrupted=: |
1880 | fi;; |
1881 | esac |
1882 | # Pass precious variables to config.status. |
1883 | if test "$ac_new_set" = set; then |
1884 | case $ac_new_val in |
dd184caf |
1885 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1886 | *) ac_arg=$ac_var=$ac_new_val ;; |
1887 | esac |
1888 | case " $ac_configure_args " in |
1889 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1890 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1891 | esac |
1892 | fi |
1893 | done |
1894 | if $ac_cache_corrupted; then |
1895 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1896 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1897 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1898 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1899 | { (exit 1); exit 1; }; } |
1900 | fi |
1901 | |
d9898ee8 |
1902 | |
1903 | |
1904 | |
1905 | |
1906 | |
1907 | |
1908 | |
1909 | |
1910 | |
1911 | |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
dd184caf |
1926 | ac_ext=c |
1927 | ac_cpp='$CPP $CPPFLAGS' |
1928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1931 | |
1932 | |
1933 | |
1934 | >confdefs.h # Kill PACKAGE_ macros |
1935 | |
1936 | |
dd184caf |
1937 | ac_config_headers="$ac_config_headers config.h" |
1938 | |
1939 | am__api_version='1.10' |
d9898ee8 |
1940 | |
d9898ee8 |
1941 | ac_aux_dir= |
dd184caf |
1942 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1943 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1944 | ac_aux_dir=$ac_dir |
1945 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1946 | break |
dd184caf |
1947 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1948 | ac_aux_dir=$ac_dir |
1949 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1950 | break |
dd184caf |
1951 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1952 | ac_aux_dir=$ac_dir |
1953 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1954 | break |
1955 | fi |
1956 | done |
1957 | if test -z "$ac_aux_dir"; then |
dd184caf |
1958 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1959 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1960 | { (exit 1); exit 1; }; } |
1961 | fi |
dd184caf |
1962 | |
1963 | # These three variables are undocumented and unsupported, |
1964 | # and are intended to be withdrawn in a future Autoconf release. |
1965 | # They can cause serious problems if a builder's source tree is in a directory |
1966 | # whose full name contains unusual characters. |
1967 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1968 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1969 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1970 | |
d9898ee8 |
1971 | |
1972 | # Find a good install program. We prefer a C program (faster), |
1973 | # so one script is as good as another. But avoid the broken or |
1974 | # incompatible versions: |
1975 | # SysV /etc/install, /usr/sbin/install |
1976 | # SunOS /usr/etc/install |
1977 | # IRIX /sbin/install |
1978 | # AIX /bin/install |
1979 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1980 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1981 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1982 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1983 | # OS/2's system install, which has a completely different semantic |
1984 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
1985 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1986 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
1987 | if test -z "$INSTALL"; then |
1988 | if test "${ac_cv_path_install+set}" = set; then |
1989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1990 | else |
1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1992 | for as_dir in $PATH |
1993 | do |
1994 | IFS=$as_save_IFS |
1995 | test -z "$as_dir" && as_dir=. |
1996 | # Account for people who put trailing slashes in PATH elements. |
1997 | case $as_dir/ in |
1998 | ./ | .// | /cC/* | \ |
1999 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2000 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2001 | /usr/ucb/* ) ;; |
2002 | *) |
2003 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2004 | # Don't use installbsd from OSF since it installs stuff as root |
2005 | # by default. |
2006 | for ac_prog in ginstall scoinst install; do |
2007 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2008 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2009 | if test $ac_prog = install && |
2010 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2011 | # AIX install. It has an incompatible calling convention. |
2012 | : |
2013 | elif test $ac_prog = install && |
2014 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2015 | # program-specific install script used by HP pwplus--don't use. |
2016 | : |
2017 | else |
2018 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2019 | break 3 |
2020 | fi |
2021 | fi |
2022 | done |
2023 | done |
2024 | ;; |
2025 | esac |
2026 | done |
dd184caf |
2027 | IFS=$as_save_IFS |
d9898ee8 |
2028 | |
2029 | |
2030 | fi |
2031 | if test "${ac_cv_path_install+set}" = set; then |
2032 | INSTALL=$ac_cv_path_install |
2033 | else |
dd184caf |
2034 | # As a last resort, use the slow shell script. Don't cache a |
2035 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2036 | # break other packages using the cache if that directory is |
dd184caf |
2037 | # removed, or if the value is a relative name. |
d9898ee8 |
2038 | INSTALL=$ac_install_sh |
2039 | fi |
2040 | fi |
dd184caf |
2041 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2042 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2043 | |
2044 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2045 | # It thinks the first close brace ends the variable substitution. |
2046 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2047 | |
2048 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2049 | |
2050 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2051 | |
dd184caf |
2052 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2053 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2054 | # Just in case |
2055 | sleep 1 |
2056 | echo timestamp > conftest.file |
2057 | # Do `set' in a subshell so we don't clobber the current shell's |
2058 | # arguments. Must try -L first in case configure is actually a |
2059 | # symlink; some systems play weird games with the mod time of symlinks |
2060 | # (eg FreeBSD returns the mod time of the symlink's containing |
2061 | # directory). |
2062 | if ( |
2063 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2064 | if test "$*" = "X"; then |
2065 | # -L didn't work. |
2066 | set X `ls -t $srcdir/configure conftest.file` |
2067 | fi |
2068 | rm -f conftest.file |
2069 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2070 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2071 | |
2072 | # If neither matched, then we have a broken ls. This can happen |
2073 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2074 | # broken ls alias from the environment. This has actually |
2075 | # happened. Such a system could not be considered "sane". |
2076 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2077 | alias in your environment" >&5 |
2078 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2079 | alias in your environment" >&2;} |
2080 | { (exit 1); exit 1; }; } |
2081 | fi |
2082 | |
2083 | test "$2" = conftest.file |
2084 | ) |
2085 | then |
2086 | # Ok. |
2087 | : |
2088 | else |
2089 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2090 | Check your system clock" >&5 |
2091 | echo "$as_me: error: newly created file is older than distributed files! |
2092 | Check your system clock" >&2;} |
2093 | { (exit 1); exit 1; }; } |
2094 | fi |
dd184caf |
2095 | { echo "$as_me:$LINENO: result: yes" >&5 |
2096 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2097 | test "$program_prefix" != NONE && |
dd184caf |
2098 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2099 | # Use a double $ so make ignores it. |
2100 | test "$program_suffix" != NONE && |
dd184caf |
2101 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2102 | # Double any \ or $. echo might interpret backslashes. |
2103 | # By default was `s,x,x', remove it if useless. |
2104 | cat <<\_ACEOF >conftest.sed |
2105 | s/[\\$]/&&/g;s/;s,x,x,$// |
2106 | _ACEOF |
2107 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
dd184caf |
2108 | rm -f conftest.sed |
d9898ee8 |
2109 | |
2110 | # expand $ac_aux_dir to an absolute path |
2111 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2112 | |
2113 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2114 | # Use eval to expand $SHELL |
2115 | if eval "$MISSING --run true"; then |
2116 | am_missing_run="$MISSING --run " |
2117 | else |
2118 | am_missing_run= |
2119 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2120 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2121 | fi |
2122 | |
dd184caf |
2123 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2124 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2125 | if test -z "$MKDIR_P"; then |
2126 | if test "${ac_cv_path_mkdir+set}" = set; then |
2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2128 | else |
2129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2130 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2131 | do |
2132 | IFS=$as_save_IFS |
2133 | test -z "$as_dir" && as_dir=. |
2134 | for ac_prog in mkdir gmkdir; do |
2135 | for ac_exec_ext in '' $ac_executable_extensions; do |
2136 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2137 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2138 | 'mkdir (GNU coreutils) '* | \ |
2139 | 'mkdir (coreutils) '* | \ |
2140 | 'mkdir (fileutils) '4.1*) |
2141 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2142 | break 3;; |
2143 | esac |
2144 | done |
2145 | done |
2146 | done |
2147 | IFS=$as_save_IFS |
2148 | |
2149 | fi |
2150 | |
2151 | if test "${ac_cv_path_mkdir+set}" = set; then |
2152 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2153 | else |
dd184caf |
2154 | # As a last resort, use the slow shell script. Don't cache a |
2155 | # value for MKDIR_P within a source directory, because that will |
2156 | # break other packages using the cache if that directory is |
2157 | # removed, or if the value is a relative name. |
2158 | test -d ./--version && rmdir ./--version |
2159 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2160 | fi |
2161 | fi |
dd184caf |
2162 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2163 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2164 | |
2165 | mkdir_p="$MKDIR_P" |
2166 | case $mkdir_p in |
2167 | [\\/$]* | ?:[\\/]*) ;; |
2168 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2169 | esac |
d9898ee8 |
2170 | |
2171 | for ac_prog in gawk mawk nawk awk |
2172 | do |
2173 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2174 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2175 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2177 | if test "${ac_cv_prog_AWK+set}" = set; then |
2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2179 | else |
2180 | if test -n "$AWK"; then |
2181 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2182 | else |
2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2184 | for as_dir in $PATH |
2185 | do |
2186 | IFS=$as_save_IFS |
2187 | test -z "$as_dir" && as_dir=. |
2188 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2190 | ac_cv_prog_AWK="$ac_prog" |
2191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2192 | break 2 |
2193 | fi |
2194 | done |
2195 | done |
dd184caf |
2196 | IFS=$as_save_IFS |
d9898ee8 |
2197 | |
2198 | fi |
2199 | fi |
2200 | AWK=$ac_cv_prog_AWK |
2201 | if test -n "$AWK"; then |
dd184caf |
2202 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2203 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2204 | else |
dd184caf |
2205 | { echo "$as_me:$LINENO: result: no" >&5 |
2206 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2207 | fi |
2208 | |
dd184caf |
2209 | |
d9898ee8 |
2210 | test -n "$AWK" && break |
2211 | done |
2212 | |
dd184caf |
2213 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2214 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2215 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2216 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2218 | else |
2219 | cat >conftest.make <<\_ACEOF |
dd184caf |
2220 | SHELL = /bin/sh |
d9898ee8 |
2221 | all: |
dd184caf |
2222 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2223 | _ACEOF |
2224 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
dd184caf |
2225 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2226 | *@@@%%%=?*=@@@%%%*) |
2227 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2228 | *) |
2229 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2230 | esac |
d9898ee8 |
2231 | rm -f conftest.make |
2232 | fi |
dd184caf |
2233 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2234 | { echo "$as_me:$LINENO: result: yes" >&5 |
2235 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2236 | SET_MAKE= |
2237 | else |
dd184caf |
2238 | { echo "$as_me:$LINENO: result: no" >&5 |
2239 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2240 | SET_MAKE="MAKE=${MAKE-make}" |
2241 | fi |
2242 | |
2243 | rm -rf .tst 2>/dev/null |
2244 | mkdir .tst 2>/dev/null |
2245 | if test -d .tst; then |
2246 | am__leading_dot=. |
2247 | else |
2248 | am__leading_dot=_ |
2249 | fi |
2250 | rmdir .tst 2>/dev/null |
2251 | |
dd184caf |
2252 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2253 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2254 | # is not polluted with repeated "-I." |
2255 | am__isrc=' -I$(srcdir)' |
2256 | # test to see if srcdir already configured |
2257 | if test -f $srcdir/config.status; then |
2258 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2259 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2260 | { (exit 1); exit 1; }; } |
dd184caf |
2261 | fi |
d9898ee8 |
2262 | fi |
2263 | |
2264 | # test whether we have cygpath |
2265 | if test -z "$CYGPATH_W"; then |
2266 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2267 | CYGPATH_W='cygpath -w' |
2268 | else |
2269 | CYGPATH_W=echo |
2270 | fi |
2271 | fi |
2272 | |
2273 | |
2274 | # Define the identity of the package. |
2275 | PACKAGE='numlib' |
2276 | VERSION='0.10' |
2277 | |
2278 | |
2279 | # Some tools Automake needs. |
2280 | |
2281 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2282 | |
2283 | |
2284 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2285 | |
2286 | |
2287 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2288 | |
2289 | |
2290 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2291 | |
2292 | |
2293 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2294 | |
dd184caf |
2295 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2296 | |
2297 | # Installed binaries are usually stripped using `strip' when the user |
2298 | # run `make install-strip'. However `strip' might not be the right |
2299 | # tool to use in cross-compilation environments, therefore Automake |
2300 | # will honor the `STRIP' environment variable to overrule this program. |
2301 | if test "$cross_compiling" != no; then |
2302 | if test -n "$ac_tool_prefix"; then |
2303 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2304 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
2305 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2307 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2309 | else |
2310 | if test -n "$STRIP"; then |
2311 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2312 | else |
2313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2314 | for as_dir in $PATH |
2315 | do |
2316 | IFS=$as_save_IFS |
2317 | test -z "$as_dir" && as_dir=. |
2318 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2320 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2322 | break 2 |
2323 | fi |
2324 | done |
2325 | done |
dd184caf |
2326 | IFS=$as_save_IFS |
d9898ee8 |
2327 | |
2328 | fi |
2329 | fi |
2330 | STRIP=$ac_cv_prog_STRIP |
2331 | if test -n "$STRIP"; then |
dd184caf |
2332 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2333 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2334 | else |
dd184caf |
2335 | { echo "$as_me:$LINENO: result: no" >&5 |
2336 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2337 | fi |
2338 | |
dd184caf |
2339 | |
d9898ee8 |
2340 | fi |
2341 | if test -z "$ac_cv_prog_STRIP"; then |
2342 | ac_ct_STRIP=$STRIP |
2343 | # Extract the first word of "strip", so it can be a program name with args. |
2344 | set dummy strip; ac_word=$2 |
dd184caf |
2345 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2347 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2349 | else |
2350 | if test -n "$ac_ct_STRIP"; then |
2351 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2352 | else |
2353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2354 | for as_dir in $PATH |
2355 | do |
2356 | IFS=$as_save_IFS |
2357 | test -z "$as_dir" && as_dir=. |
2358 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2360 | ac_cv_prog_ac_ct_STRIP="strip" |
2361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2362 | break 2 |
2363 | fi |
2364 | done |
2365 | done |
dd184caf |
2366 | IFS=$as_save_IFS |
d9898ee8 |
2367 | |
d9898ee8 |
2368 | fi |
2369 | fi |
2370 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2371 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
2372 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2373 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2374 | else |
dd184caf |
2375 | { echo "$as_me:$LINENO: result: no" >&5 |
2376 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2377 | fi |
2378 | |
dd184caf |
2379 | if test "x$ac_ct_STRIP" = x; then |
2380 | STRIP=":" |
2381 | else |
2382 | case $cross_compiling:$ac_tool_warned in |
2383 | yes:) |
2384 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2385 | whose name does not start with the host triplet. If you think this |
2386 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2387 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2388 | whose name does not start with the host triplet. If you think this |
2389 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2390 | ac_tool_warned=yes ;; |
2391 | esac |
2392 | STRIP=$ac_ct_STRIP |
2393 | fi |
d9898ee8 |
2394 | else |
2395 | STRIP="$ac_cv_prog_STRIP" |
2396 | fi |
2397 | |
2398 | fi |
dd184caf |
2399 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2400 | |
2401 | # We need awk for the "check" target. The system "awk" is bad on |
2402 | # some platforms. |
2403 | # Always define AMTAR for backward compatibility. |
2404 | |
2405 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2406 | |
2407 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2408 | |
2409 | |
2410 | |
2411 | |
2412 | |
2413 | |
2414 | for ac_prog in gawk mawk nawk awk |
2415 | do |
2416 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2417 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2418 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2420 | if test "${ac_cv_prog_AWK+set}" = set; then |
2421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2422 | else |
2423 | if test -n "$AWK"; then |
2424 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2425 | else |
2426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2427 | for as_dir in $PATH |
2428 | do |
2429 | IFS=$as_save_IFS |
2430 | test -z "$as_dir" && as_dir=. |
2431 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2433 | ac_cv_prog_AWK="$ac_prog" |
2434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2435 | break 2 |
2436 | fi |
2437 | done |
2438 | done |
dd184caf |
2439 | IFS=$as_save_IFS |
d9898ee8 |
2440 | |
2441 | fi |
2442 | fi |
2443 | AWK=$ac_cv_prog_AWK |
2444 | if test -n "$AWK"; then |
dd184caf |
2445 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2446 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2447 | else |
dd184caf |
2448 | { echo "$as_me:$LINENO: result: no" >&5 |
2449 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2450 | fi |
2451 | |
dd184caf |
2452 | |
d9898ee8 |
2453 | test -n "$AWK" && break |
2454 | done |
2455 | |
2456 | ac_ext=c |
2457 | ac_cpp='$CPP $CPPFLAGS' |
2458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2461 | if test -n "$ac_tool_prefix"; then |
2462 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2463 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
dd184caf |
2464 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2466 | if test "${ac_cv_prog_CC+set}" = set; then |
2467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2468 | else |
2469 | if test -n "$CC"; then |
2470 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2471 | else |
2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2473 | for as_dir in $PATH |
2474 | do |
2475 | IFS=$as_save_IFS |
2476 | test -z "$as_dir" && as_dir=. |
2477 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2479 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2481 | break 2 |
2482 | fi |
2483 | done |
2484 | done |
dd184caf |
2485 | IFS=$as_save_IFS |
d9898ee8 |
2486 | |
2487 | fi |
2488 | fi |
2489 | CC=$ac_cv_prog_CC |
2490 | if test -n "$CC"; then |
dd184caf |
2491 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2492 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2493 | else |
dd184caf |
2494 | { echo "$as_me:$LINENO: result: no" >&5 |
2495 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2496 | fi |
2497 | |
dd184caf |
2498 | |
d9898ee8 |
2499 | fi |
2500 | if test -z "$ac_cv_prog_CC"; then |
2501 | ac_ct_CC=$CC |
2502 | # Extract the first word of "gcc", so it can be a program name with args. |
2503 | set dummy gcc; ac_word=$2 |
dd184caf |
2504 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2506 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2508 | else |
2509 | if test -n "$ac_ct_CC"; then |
2510 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2511 | else |
2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2513 | for as_dir in $PATH |
2514 | do |
2515 | IFS=$as_save_IFS |
2516 | test -z "$as_dir" && as_dir=. |
2517 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2519 | ac_cv_prog_ac_ct_CC="gcc" |
2520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2521 | break 2 |
2522 | fi |
2523 | done |
2524 | done |
dd184caf |
2525 | IFS=$as_save_IFS |
d9898ee8 |
2526 | |
2527 | fi |
2528 | fi |
2529 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2530 | if test -n "$ac_ct_CC"; then |
dd184caf |
2531 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2532 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2533 | else |
dd184caf |
2534 | { echo "$as_me:$LINENO: result: no" >&5 |
2535 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2536 | fi |
2537 | |
dd184caf |
2538 | if test "x$ac_ct_CC" = x; then |
2539 | CC="" |
2540 | else |
2541 | case $cross_compiling:$ac_tool_warned in |
2542 | yes:) |
2543 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2544 | whose name does not start with the host triplet. If you think this |
2545 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2546 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2547 | whose name does not start with the host triplet. If you think this |
2548 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2549 | ac_tool_warned=yes ;; |
2550 | esac |
2551 | CC=$ac_ct_CC |
2552 | fi |
d9898ee8 |
2553 | else |
2554 | CC="$ac_cv_prog_CC" |
2555 | fi |
2556 | |
2557 | if test -z "$CC"; then |
dd184caf |
2558 | if test -n "$ac_tool_prefix"; then |
2559 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2560 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dd184caf |
2561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2563 | if test "${ac_cv_prog_CC+set}" = set; then |
2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2565 | else |
2566 | if test -n "$CC"; then |
2567 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2568 | else |
2569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2570 | for as_dir in $PATH |
2571 | do |
2572 | IFS=$as_save_IFS |
2573 | test -z "$as_dir" && as_dir=. |
2574 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2576 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2578 | break 2 |
2579 | fi |
2580 | done |
2581 | done |
dd184caf |
2582 | IFS=$as_save_IFS |
d9898ee8 |
2583 | |
2584 | fi |
2585 | fi |
2586 | CC=$ac_cv_prog_CC |
2587 | if test -n "$CC"; then |
dd184caf |
2588 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2589 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2590 | else |
dd184caf |
2591 | { echo "$as_me:$LINENO: result: no" >&5 |
2592 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2593 | fi |
2594 | |
d9898ee8 |
2595 | |
dd184caf |
2596 | fi |
d9898ee8 |
2597 | fi |
2598 | if test -z "$CC"; then |
2599 | # Extract the first word of "cc", so it can be a program name with args. |
2600 | set dummy cc; ac_word=$2 |
dd184caf |
2601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2603 | if test "${ac_cv_prog_CC+set}" = set; then |
2604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2605 | else |
2606 | if test -n "$CC"; then |
2607 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2608 | else |
2609 | ac_prog_rejected=no |
2610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2611 | for as_dir in $PATH |
2612 | do |
2613 | IFS=$as_save_IFS |
2614 | test -z "$as_dir" && as_dir=. |
2615 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2617 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2618 | ac_prog_rejected=yes |
2619 | continue |
2620 | fi |
2621 | ac_cv_prog_CC="cc" |
2622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2623 | break 2 |
2624 | fi |
2625 | done |
2626 | done |
dd184caf |
2627 | IFS=$as_save_IFS |
d9898ee8 |
2628 | |
2629 | if test $ac_prog_rejected = yes; then |
2630 | # We found a bogon in the path, so make sure we never use it. |
2631 | set dummy $ac_cv_prog_CC |
2632 | shift |
2633 | if test $# != 0; then |
2634 | # We chose a different compiler from the bogus one. |
2635 | # However, it has the same basename, so the bogon will be chosen |
2636 | # first if we set CC to just the basename; use the full file name. |
2637 | shift |
2638 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2639 | fi |
2640 | fi |
2641 | fi |
2642 | fi |
2643 | CC=$ac_cv_prog_CC |
2644 | if test -n "$CC"; then |
dd184caf |
2645 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2646 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2647 | else |
dd184caf |
2648 | { echo "$as_me:$LINENO: result: no" >&5 |
2649 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2650 | fi |
2651 | |
dd184caf |
2652 | |
d9898ee8 |
2653 | fi |
2654 | if test -z "$CC"; then |
2655 | if test -n "$ac_tool_prefix"; then |
dd184caf |
2656 | for ac_prog in cl.exe |
d9898ee8 |
2657 | do |
2658 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2659 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
2660 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2662 | if test "${ac_cv_prog_CC+set}" = set; then |
2663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2664 | else |
2665 | if test -n "$CC"; then |
2666 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2667 | else |
2668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2669 | for as_dir in $PATH |
2670 | do |
2671 | IFS=$as_save_IFS |
2672 | test -z "$as_dir" && as_dir=. |
2673 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2675 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2677 | break 2 |
2678 | fi |
2679 | done |
2680 | done |
dd184caf |
2681 | IFS=$as_save_IFS |
d9898ee8 |
2682 | |
2683 | fi |
2684 | fi |
2685 | CC=$ac_cv_prog_CC |
2686 | if test -n "$CC"; then |
dd184caf |
2687 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2688 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2689 | else |
dd184caf |
2690 | { echo "$as_me:$LINENO: result: no" >&5 |
2691 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2692 | fi |
2693 | |
dd184caf |
2694 | |
d9898ee8 |
2695 | test -n "$CC" && break |
2696 | done |
2697 | fi |
2698 | if test -z "$CC"; then |
2699 | ac_ct_CC=$CC |
dd184caf |
2700 | for ac_prog in cl.exe |
d9898ee8 |
2701 | do |
2702 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2703 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2704 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2706 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2708 | else |
2709 | if test -n "$ac_ct_CC"; then |
2710 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2711 | else |
2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2713 | for as_dir in $PATH |
2714 | do |
2715 | IFS=$as_save_IFS |
2716 | test -z "$as_dir" && as_dir=. |
2717 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2719 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2721 | break 2 |
2722 | fi |
2723 | done |
2724 | done |
dd184caf |
2725 | IFS=$as_save_IFS |
d9898ee8 |
2726 | |
2727 | fi |
2728 | fi |
2729 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2730 | if test -n "$ac_ct_CC"; then |
dd184caf |
2731 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2732 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2733 | else |
dd184caf |
2734 | { echo "$as_me:$LINENO: result: no" >&5 |
2735 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2736 | fi |
2737 | |
dd184caf |
2738 | |
d9898ee8 |
2739 | test -n "$ac_ct_CC" && break |
2740 | done |
2741 | |
dd184caf |
2742 | if test "x$ac_ct_CC" = x; then |
2743 | CC="" |
2744 | else |
2745 | case $cross_compiling:$ac_tool_warned in |
2746 | yes:) |
2747 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2748 | whose name does not start with the host triplet. If you think this |
2749 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2750 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2751 | whose name does not start with the host triplet. If you think this |
2752 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2753 | ac_tool_warned=yes ;; |
2754 | esac |
2755 | CC=$ac_ct_CC |
2756 | fi |
d9898ee8 |
2757 | fi |
2758 | |
2759 | fi |
2760 | |
2761 | |
2762 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2763 | See \`config.log' for more details." >&5 |
2764 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2765 | See \`config.log' for more details." >&2;} |
2766 | { (exit 1); exit 1; }; } |
2767 | |
2768 | # Provide some information about the compiler. |
dd184caf |
2769 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2770 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
2771 | { (ac_try="$ac_compiler --version >&5" |
2772 | case "(($ac_try" in |
2773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2774 | *) ac_try_echo=$ac_try;; |
2775 | esac |
2776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2777 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2778 | ac_status=$? |
2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2780 | (exit $ac_status); } |
dd184caf |
2781 | { (ac_try="$ac_compiler -v >&5" |
2782 | case "(($ac_try" in |
2783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2784 | *) ac_try_echo=$ac_try;; |
2785 | esac |
2786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2787 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2788 | ac_status=$? |
2789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2790 | (exit $ac_status); } |
dd184caf |
2791 | { (ac_try="$ac_compiler -V >&5" |
2792 | case "(($ac_try" in |
2793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2794 | *) ac_try_echo=$ac_try;; |
2795 | esac |
2796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2797 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2798 | ac_status=$? |
2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2800 | (exit $ac_status); } |
2801 | |
2802 | cat >conftest.$ac_ext <<_ACEOF |
2803 | /* confdefs.h. */ |
2804 | _ACEOF |
2805 | cat confdefs.h >>conftest.$ac_ext |
2806 | cat >>conftest.$ac_ext <<_ACEOF |
2807 | /* end confdefs.h. */ |
2808 | |
2809 | int |
2810 | main () |
2811 | { |
2812 | |
2813 | ; |
2814 | return 0; |
2815 | } |
2816 | _ACEOF |
2817 | ac_clean_files_save=$ac_clean_files |
2818 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2819 | # Try to create an executable without -o first, disregard a.out. |
2820 | # It will help us diagnose broken compilers, and finding out an intuition |
2821 | # of exeext. |
dd184caf |
2822 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2823 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2824 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dd184caf |
2825 | # |
2826 | # List of possible output files, starting from the most likely. |
2827 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2828 | # only as a last resort. b.out is created by i960 compilers. |
2829 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2830 | # |
2831 | # The IRIX 6 linker writes into existing files which may not be |
2832 | # executable, retaining their permissions. Remove them first so a |
2833 | # subsequent execution test works. |
2834 | ac_rmfiles= |
2835 | for ac_file in $ac_files |
2836 | do |
2837 | case $ac_file in |
2838 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2839 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2840 | esac |
2841 | done |
2842 | rm -f $ac_rmfiles |
2843 | |
2844 | if { (ac_try="$ac_link_default" |
2845 | case "(($ac_try" in |
2846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2847 | *) ac_try_echo=$ac_try;; |
2848 | esac |
2849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2850 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2851 | ac_status=$? |
2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2853 | (exit $ac_status); }; then |
dd184caf |
2854 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2855 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2856 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2857 | # so that the user can short-circuit this test for compilers unknown to |
2858 | # Autoconf. |
2859 | for ac_file in $ac_files '' |
d9898ee8 |
2860 | do |
2861 | test -f "$ac_file" || continue |
2862 | case $ac_file in |
dd184caf |
2863 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2864 | ;; |
2865 | [ab].out ) |
2866 | # We found the default executable, but exeext='' is most |
2867 | # certainly right. |
2868 | break;; |
2869 | *.* ) |
dd184caf |
2870 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2871 | then :; else |
2872 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2873 | fi |
2874 | # We set ac_cv_exeext here because the later test for it is not |
2875 | # safe: cross compilers may not add the suffix if given an `-o' |
2876 | # argument, so we may need to know it at that point already. |
2877 | # Even if this section looks crufty: it has the advantage of |
2878 | # actually working. |
d9898ee8 |
2879 | break;; |
2880 | * ) |
2881 | break;; |
2882 | esac |
2883 | done |
dd184caf |
2884 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2885 | |
d9898ee8 |
2886 | else |
dd184caf |
2887 | ac_file='' |
2888 | fi |
2889 | |
2890 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2891 | echo "${ECHO_T}$ac_file" >&6; } |
2892 | if test -z "$ac_file"; then |
d9898ee8 |
2893 | echo "$as_me: failed program was:" >&5 |
2894 | sed 's/^/| /' conftest.$ac_ext >&5 |
2895 | |
2896 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2897 | See \`config.log' for more details." >&5 |
2898 | echo "$as_me: error: C compiler cannot create executables |
2899 | See \`config.log' for more details." >&2;} |
2900 | { (exit 77); exit 77; }; } |
2901 | fi |
2902 | |
2903 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2904 | |
dd184caf |
2905 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2906 | # the compiler is broken, or we cross compile. |
dd184caf |
2907 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2908 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2909 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2910 | # If not cross compiling, check that we can run a simple program. |
2911 | if test "$cross_compiling" != yes; then |
2912 | if { ac_try='./$ac_file' |
dd184caf |
2913 | { (case "(($ac_try" in |
2914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2915 | *) ac_try_echo=$ac_try;; |
2916 | esac |
2917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2918 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2919 | ac_status=$? |
2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2921 | (exit $ac_status); }; }; then |
2922 | cross_compiling=no |
2923 | else |
2924 | if test "$cross_compiling" = maybe; then |
2925 | cross_compiling=yes |
2926 | else |
2927 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2928 | If you meant to cross compile, use \`--host'. |
2929 | See \`config.log' for more details." >&5 |
2930 | echo "$as_me: error: cannot run C compiled programs. |
2931 | If you meant to cross compile, use \`--host'. |
2932 | See \`config.log' for more details." >&2;} |
2933 | { (exit 1); exit 1; }; } |
2934 | fi |
2935 | fi |
2936 | fi |
dd184caf |
2937 | { echo "$as_me:$LINENO: result: yes" >&5 |
2938 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2939 | |
2940 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2941 | ac_clean_files=$ac_clean_files_save |
dd184caf |
2942 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2943 | # the compiler is broken, or we cross compile. |
dd184caf |
2944 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2945 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2946 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2947 | echo "${ECHO_T}$cross_compiling" >&6; } |
2948 | |
2949 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2950 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2951 | if { (ac_try="$ac_link" |
2952 | case "(($ac_try" in |
2953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2954 | *) ac_try_echo=$ac_try;; |
2955 | esac |
2956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2957 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2958 | ac_status=$? |
2959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2960 | (exit $ac_status); }; then |
2961 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2962 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2963 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2964 | # `rm'. |
2965 | for ac_file in conftest.exe conftest conftest.*; do |
2966 | test -f "$ac_file" || continue |
2967 | case $ac_file in |
dd184caf |
2968 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2969 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2970 | break;; |
2971 | * ) break;; |
2972 | esac |
2973 | done |
2974 | else |
2975 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2976 | See \`config.log' for more details." >&5 |
2977 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2978 | See \`config.log' for more details." >&2;} |
2979 | { (exit 1); exit 1; }; } |
2980 | fi |
2981 | |
2982 | rm -f conftest$ac_cv_exeext |
dd184caf |
2983 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2984 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
2985 | |
2986 | rm -f conftest.$ac_ext |
2987 | EXEEXT=$ac_cv_exeext |
2988 | ac_exeext=$EXEEXT |
dd184caf |
2989 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2990 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
2991 | if test "${ac_cv_objext+set}" = set; then |
2992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2993 | else |
2994 | cat >conftest.$ac_ext <<_ACEOF |
2995 | /* confdefs.h. */ |
2996 | _ACEOF |
2997 | cat confdefs.h >>conftest.$ac_ext |
2998 | cat >>conftest.$ac_ext <<_ACEOF |
2999 | /* end confdefs.h. */ |
3000 | |
3001 | int |
3002 | main () |
3003 | { |
3004 | |
3005 | ; |
3006 | return 0; |
3007 | } |
3008 | _ACEOF |
3009 | rm -f conftest.o conftest.obj |
dd184caf |
3010 | if { (ac_try="$ac_compile" |
3011 | case "(($ac_try" in |
3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3013 | *) ac_try_echo=$ac_try;; |
3014 | esac |
3015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3016 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
3017 | ac_status=$? |
3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3019 | (exit $ac_status); }; then |
dd184caf |
3020 | for ac_file in conftest.o conftest.obj conftest.*; do |
3021 | test -f "$ac_file" || continue; |
d9898ee8 |
3022 | case $ac_file in |
dd184caf |
3023 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
3024 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3025 | break;; |
3026 | esac |
3027 | done |
3028 | else |
3029 | echo "$as_me: failed program was:" >&5 |
3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
3031 | |
3032 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3033 | See \`config.log' for more details." >&5 |
3034 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3035 | See \`config.log' for more details." >&2;} |
3036 | { (exit 1); exit 1; }; } |
3037 | fi |
3038 | |
3039 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3040 | fi |
dd184caf |
3041 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3042 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3043 | OBJEXT=$ac_cv_objext |
3044 | ac_objext=$OBJEXT |
dd184caf |
3045 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3046 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3047 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3049 | else |
3050 | cat >conftest.$ac_ext <<_ACEOF |
3051 | /* confdefs.h. */ |
3052 | _ACEOF |
3053 | cat confdefs.h >>conftest.$ac_ext |
3054 | cat >>conftest.$ac_ext <<_ACEOF |
3055 | /* end confdefs.h. */ |
3056 | |
3057 | int |
3058 | main () |
3059 | { |
3060 | #ifndef __GNUC__ |
3061 | choke me |
3062 | #endif |
3063 | |
3064 | ; |
3065 | return 0; |
3066 | } |
3067 | _ACEOF |
3068 | rm -f conftest.$ac_objext |
dd184caf |
3069 | if { (ac_try="$ac_compile" |
3070 | case "(($ac_try" in |
3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3072 | *) ac_try_echo=$ac_try;; |
3073 | esac |
3074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3075 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3076 | ac_status=$? |
3077 | grep -v '^ *+' conftest.er1 >conftest.err |
3078 | rm -f conftest.er1 |
3079 | cat conftest.err >&5 |
3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3081 | (exit $ac_status); } && { |
3082 | test -z "$ac_c_werror_flag" || |
3083 | test ! -s conftest.err |
3084 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3085 | ac_compiler_gnu=yes |
3086 | else |
3087 | echo "$as_me: failed program was:" >&5 |
3088 | sed 's/^/| /' conftest.$ac_ext >&5 |
3089 | |
dd184caf |
3090 | ac_compiler_gnu=no |
d9898ee8 |
3091 | fi |
dd184caf |
3092 | |
3093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3094 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3095 | |
3096 | fi |
dd184caf |
3097 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3098 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3099 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3100 | ac_test_CFLAGS=${CFLAGS+set} |
3101 | ac_save_CFLAGS=$CFLAGS |
dd184caf |
3102 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3103 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3104 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3106 | else |
dd184caf |
3107 | ac_save_c_werror_flag=$ac_c_werror_flag |
3108 | ac_c_werror_flag=yes |
3109 | ac_cv_prog_cc_g=no |
3110 | CFLAGS="-g" |
3111 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3112 | /* confdefs.h. */ |
3113 | _ACEOF |
3114 | cat confdefs.h >>conftest.$ac_ext |
3115 | cat >>conftest.$ac_ext <<_ACEOF |
3116 | /* end confdefs.h. */ |
3117 | |
3118 | int |
3119 | main () |
3120 | { |
3121 | |
3122 | ; |
3123 | return 0; |
3124 | } |
3125 | _ACEOF |
3126 | rm -f conftest.$ac_objext |
dd184caf |
3127 | if { (ac_try="$ac_compile" |
3128 | case "(($ac_try" in |
3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3130 | *) ac_try_echo=$ac_try;; |
3131 | esac |
3132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3133 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3134 | ac_status=$? |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3136 | rm -f conftest.er1 |
3137 | cat conftest.err >&5 |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3139 | (exit $ac_status); } && { |
3140 | test -z "$ac_c_werror_flag" || |
3141 | test ! -s conftest.err |
3142 | } && test -s conftest.$ac_objext; then |
3143 | ac_cv_prog_cc_g=yes |
3144 | else |
3145 | echo "$as_me: failed program was:" >&5 |
3146 | sed 's/^/| /' conftest.$ac_ext >&5 |
3147 | |
3148 | CFLAGS="" |
3149 | cat >conftest.$ac_ext <<_ACEOF |
3150 | /* confdefs.h. */ |
3151 | _ACEOF |
3152 | cat confdefs.h >>conftest.$ac_ext |
3153 | cat >>conftest.$ac_ext <<_ACEOF |
3154 | /* end confdefs.h. */ |
3155 | |
3156 | int |
3157 | main () |
3158 | { |
3159 | |
3160 | ; |
3161 | return 0; |
3162 | } |
3163 | _ACEOF |
3164 | rm -f conftest.$ac_objext |
3165 | if { (ac_try="$ac_compile" |
3166 | case "(($ac_try" in |
3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3168 | *) ac_try_echo=$ac_try;; |
3169 | esac |
3170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3171 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3172 | ac_status=$? |
dd184caf |
3173 | grep -v '^ *+' conftest.er1 >conftest.err |
3174 | rm -f conftest.er1 |
3175 | cat conftest.err >&5 |
d9898ee8 |
3176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3177 | (exit $ac_status); } && { |
3178 | test -z "$ac_c_werror_flag" || |
3179 | test ! -s conftest.err |
3180 | } && test -s conftest.$ac_objext; then |
3181 | : |
3182 | else |
3183 | echo "$as_me: failed program was:" >&5 |
3184 | sed 's/^/| /' conftest.$ac_ext >&5 |
3185 | |
3186 | ac_c_werror_flag=$ac_save_c_werror_flag |
3187 | CFLAGS="-g" |
3188 | cat >conftest.$ac_ext <<_ACEOF |
3189 | /* confdefs.h. */ |
3190 | _ACEOF |
3191 | cat confdefs.h >>conftest.$ac_ext |
3192 | cat >>conftest.$ac_ext <<_ACEOF |
3193 | /* end confdefs.h. */ |
3194 | |
3195 | int |
3196 | main () |
3197 | { |
3198 | |
3199 | ; |
3200 | return 0; |
3201 | } |
3202 | _ACEOF |
3203 | rm -f conftest.$ac_objext |
3204 | if { (ac_try="$ac_compile" |
3205 | case "(($ac_try" in |
3206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3207 | *) ac_try_echo=$ac_try;; |
3208 | esac |
3209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3210 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3211 | ac_status=$? |
dd184caf |
3212 | grep -v '^ *+' conftest.er1 >conftest.err |
3213 | rm -f conftest.er1 |
3214 | cat conftest.err >&5 |
d9898ee8 |
3215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3216 | (exit $ac_status); } && { |
3217 | test -z "$ac_c_werror_flag" || |
3218 | test ! -s conftest.err |
3219 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3220 | ac_cv_prog_cc_g=yes |
3221 | else |
3222 | echo "$as_me: failed program was:" >&5 |
3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
3224 | |
dd184caf |
3225 | |
3226 | fi |
3227 | |
3228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3229 | fi |
3230 | |
3231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3232 | fi |
dd184caf |
3233 | |
3234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3235 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3236 | fi |
dd184caf |
3237 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3238 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3239 | if test "$ac_test_CFLAGS" = set; then |
3240 | CFLAGS=$ac_save_CFLAGS |
3241 | elif test $ac_cv_prog_cc_g = yes; then |
3242 | if test "$GCC" = yes; then |
3243 | CFLAGS="-g -O2" |
3244 | else |
3245 | CFLAGS="-g" |
3246 | fi |
3247 | else |
3248 | if test "$GCC" = yes; then |
3249 | CFLAGS="-O2" |
3250 | else |
3251 | CFLAGS= |
3252 | fi |
3253 | fi |
dd184caf |
3254 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3255 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3256 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3258 | else |
dd184caf |
3259 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3260 | ac_save_CC=$CC |
3261 | cat >conftest.$ac_ext <<_ACEOF |
3262 | /* confdefs.h. */ |
3263 | _ACEOF |
3264 | cat confdefs.h >>conftest.$ac_ext |
3265 | cat >>conftest.$ac_ext <<_ACEOF |
3266 | /* end confdefs.h. */ |
3267 | #include <stdarg.h> |
3268 | #include <stdio.h> |
3269 | #include <sys/types.h> |
3270 | #include <sys/stat.h> |
3271 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3272 | struct buf { int x; }; |
3273 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3274 | static char *e (p, i) |
3275 | char **p; |
3276 | int i; |
3277 | { |
3278 | return p[i]; |
3279 | } |
3280 | static char *f (char * (*g) (char **, int), char **p, ...) |
3281 | { |
3282 | char *s; |
3283 | va_list v; |
3284 | va_start (v,p); |
3285 | s = g (p, va_arg (v,int)); |
3286 | va_end (v); |
3287 | return s; |
3288 | } |
3289 | |
3290 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3291 | function prototypes and stuff, but not '\xHH' hex character constants. |
3292 | These don't provoke an error unfortunately, instead are silently treated |
dd184caf |
3293 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3294 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3295 | array size at least. It's necessary to write '\x00'==0 to get something |
dd184caf |
3296 | that's true only with -std. */ |
d9898ee8 |
3297 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3298 | |
dd184caf |
3299 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3300 | inside strings and character constants. */ |
3301 | #define FOO(x) 'x' |
3302 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3303 | |
d9898ee8 |
3304 | int test (int i, double x); |
3305 | struct s1 {int (*f) (int a);}; |
3306 | struct s2 {int (*f) (double a);}; |
3307 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3308 | int argc; |
3309 | char **argv; |
3310 | int |
3311 | main () |
3312 | { |
3313 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3314 | ; |
3315 | return 0; |
3316 | } |
3317 | _ACEOF |
dd184caf |
3318 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3319 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3320 | do |
3321 | CC="$ac_save_CC $ac_arg" |
3322 | rm -f conftest.$ac_objext |
dd184caf |
3323 | if { (ac_try="$ac_compile" |
3324 | case "(($ac_try" in |
3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3326 | *) ac_try_echo=$ac_try;; |
3327 | esac |
3328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3329 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3330 | ac_status=$? |
3331 | grep -v '^ *+' conftest.er1 >conftest.err |
3332 | rm -f conftest.er1 |
3333 | cat conftest.err >&5 |
3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3335 | (exit $ac_status); } && { |
3336 | test -z "$ac_c_werror_flag" || |
3337 | test ! -s conftest.err |
3338 | } && test -s conftest.$ac_objext; then |
3339 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3340 | else |
3341 | echo "$as_me: failed program was:" >&5 |
3342 | sed 's/^/| /' conftest.$ac_ext >&5 |
3343 | |
dd184caf |
3344 | |
d9898ee8 |
3345 | fi |
dd184caf |
3346 | |
3347 | rm -f core conftest.err conftest.$ac_objext |
3348 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3349 | done |
dd184caf |
3350 | rm -f conftest.$ac_ext |
d9898ee8 |
3351 | CC=$ac_save_CC |
3352 | |
3353 | fi |
dd184caf |
3354 | # AC_CACHE_VAL |
3355 | case "x$ac_cv_prog_cc_c89" in |
3356 | x) |
3357 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3358 | echo "${ECHO_T}none needed" >&6; } ;; |
3359 | xno) |
3360 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3361 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3362 | *) |
dd184caf |
3363 | CC="$CC $ac_cv_prog_cc_c89" |
3364 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3365 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3366 | esac |
3367 | |
d9898ee8 |
3368 | |
d9898ee8 |
3369 | ac_ext=c |
3370 | ac_cpp='$CPP $CPPFLAGS' |
3371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3374 | DEPDIR="${am__leading_dot}deps" |
3375 | |
dd184caf |
3376 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3377 | |
3378 | |
3379 | am_make=${MAKE-make} |
3380 | cat > confinc << 'END' |
3381 | am__doit: |
3382 | @echo done |
3383 | .PHONY: am__doit |
3384 | END |
3385 | # If we don't find an include directive, just comment out the code. |
dd184caf |
3386 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3387 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3388 | am__include="#" |
3389 | am__quote= |
3390 | _am_result=none |
3391 | # First try GNU make style include. |
3392 | echo "include confinc" > confmf |
3393 | # We grep out `Entering directory' and `Leaving directory' |
3394 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3395 | # In particular we don't look at `^make:' because GNU make might |
3396 | # be invoked under some other name (usually "gmake"), in which |
3397 | # case it prints its new name instead of `make'. |
3398 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3399 | am__include=include |
3400 | am__quote= |
3401 | _am_result=GNU |
3402 | fi |
3403 | # Now try BSD make style include. |
3404 | if test "$am__include" = "#"; then |
3405 | echo '.include "confinc"' > confmf |
3406 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3407 | am__include=.include |
3408 | am__quote="\"" |
3409 | _am_result=BSD |
3410 | fi |
3411 | fi |
3412 | |
3413 | |
dd184caf |
3414 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3415 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3416 | rm -f confinc confmf |
3417 | |
dd184caf |
3418 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3419 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf |
3420 | enableval=$enable_dependency_tracking; |
3421 | fi |
d9898ee8 |
3422 | |
d9898ee8 |
3423 | if test "x$enable_dependency_tracking" != xno; then |
3424 | am_depcomp="$ac_aux_dir/depcomp" |
3425 | AMDEPBACKSLASH='\' |
3426 | fi |
dd184caf |
3427 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3428 | AMDEP_TRUE= |
3429 | AMDEP_FALSE='#' |
3430 | else |
3431 | AMDEP_TRUE='#' |
3432 | AMDEP_FALSE= |
3433 | fi |
3434 | |
3435 | |
3436 | |
d9898ee8 |
3437 | depcc="$CC" am_compiler_list= |
3438 | |
dd184caf |
3439 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3440 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3441 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3443 | else |
3444 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3445 | # We make a subdir and do the tests there. Otherwise we can end up |
3446 | # making bogus files that we don't know about and never remove. For |
3447 | # instance it was reported that on HP-UX the gcc test will end up |
3448 | # making a dummy file named `D' -- because `-MD' means `put the output |
3449 | # in D'. |
3450 | mkdir conftest.dir |
3451 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3452 | # using a relative directory. |
3453 | cp "$am_depcomp" conftest.dir |
3454 | cd conftest.dir |
3455 | # We will build objects and dependencies in a subdirectory because |
3456 | # it helps to detect inapplicable dependency modes. For instance |
3457 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3458 | # side effect of compilation, but ICC will put the dependencies in |
3459 | # the current directory while Tru64 will put them in the object |
3460 | # directory. |
3461 | mkdir sub |
3462 | |
3463 | am_cv_CC_dependencies_compiler_type=none |
3464 | if test "$am_compiler_list" = ""; then |
3465 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3466 | fi |
3467 | for depmode in $am_compiler_list; do |
3468 | # Setup a source with many dependencies, because some compilers |
3469 | # like to wrap large dependency lists on column 80 (with \), and |
3470 | # we should not choose a depcomp mode which is confused by this. |
3471 | # |
3472 | # We need to recreate these files for each test, as the compiler may |
3473 | # overwrite some of them when testing with obscure command lines. |
3474 | # This happens at least with the AIX C compiler. |
3475 | : > sub/conftest.c |
3476 | for i in 1 2 3 4 5 6; do |
3477 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3478 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3479 | # Solaris 8's {/usr,}/bin/sh. |
3480 | touch sub/conftst$i.h |
3481 | done |
3482 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3483 | |
3484 | case $depmode in |
3485 | nosideeffect) |
3486 | # after this tag, mechanisms are not by side-effect, so they'll |
3487 | # only be used when explicitly requested |
3488 | if test "x$enable_dependency_tracking" = xyes; then |
3489 | continue |
3490 | else |
3491 | break |
3492 | fi |
3493 | ;; |
3494 | none) break ;; |
3495 | esac |
3496 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3497 | # mode. It turns out that the SunPro C++ compiler does not properly |
3498 | # handle `-M -o', and we need to detect this. |
3499 | if depmode=$depmode \ |
3500 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3501 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3502 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3503 | >/dev/null 2>conftest.err && |
dd184caf |
3504 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3505 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3506 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3507 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3508 | # icc doesn't choke on unknown options, it will just issue warnings |
3509 | # or remarks (even with -Werror). So we grep stderr for any message |
3510 | # that says an option was ignored or not supported. |
3511 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3512 | # icc: Command line warning: ignoring option '-M'; no argument required |
3513 | # The diagnosis changed in icc 8.0: |
3514 | # icc: Command line remark: option '-MP' not supported |
3515 | if (grep 'ignoring option' conftest.err || |
3516 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3517 | am_cv_CC_dependencies_compiler_type=$depmode |
3518 | break |
3519 | fi |
3520 | fi |
3521 | done |
3522 | |
3523 | cd .. |
3524 | rm -rf conftest.dir |
3525 | else |
3526 | am_cv_CC_dependencies_compiler_type=none |
3527 | fi |
3528 | |
3529 | fi |
dd184caf |
3530 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3531 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3532 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3533 | |
dd184caf |
3534 | if |
d9898ee8 |
3535 | test "x$enable_dependency_tracking" != xno \ |
3536 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3537 | am__fastdepCC_TRUE= |
3538 | am__fastdepCC_FALSE='#' |
3539 | else |
3540 | am__fastdepCC_TRUE='#' |
3541 | am__fastdepCC_FALSE= |
3542 | fi |
3543 | |
3544 | |
3545 | # Find a good install program. We prefer a C program (faster), |
3546 | # so one script is as good as another. But avoid the broken or |
3547 | # incompatible versions: |
3548 | # SysV /etc/install, /usr/sbin/install |
3549 | # SunOS /usr/etc/install |
3550 | # IRIX /sbin/install |
3551 | # AIX /bin/install |
3552 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3553 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3554 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3555 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3556 | # OS/2's system install, which has a completely different semantic |
3557 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
3558 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3559 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
3560 | if test -z "$INSTALL"; then |
3561 | if test "${ac_cv_path_install+set}" = set; then |
3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3563 | else |
3564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3565 | for as_dir in $PATH |
3566 | do |
3567 | IFS=$as_save_IFS |
3568 | test -z "$as_dir" && as_dir=. |
3569 | # Account for people who put trailing slashes in PATH elements. |
3570 | case $as_dir/ in |
3571 | ./ | .// | /cC/* | \ |
3572 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3573 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3574 | /usr/ucb/* ) ;; |
3575 | *) |
3576 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3577 | # Don't use installbsd from OSF since it installs stuff as root |
3578 | # by default. |
3579 | for ac_prog in ginstall scoinst install; do |
3580 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
3581 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3582 | if test $ac_prog = install && |
3583 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3584 | # AIX install. It has an incompatible calling convention. |
3585 | : |
3586 | elif test $ac_prog = install && |
3587 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3588 | # program-specific install script used by HP pwplus--don't use. |
3589 | : |
3590 | else |
3591 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3592 | break 3 |
3593 | fi |
3594 | fi |
3595 | done |
3596 | done |
3597 | ;; |
3598 | esac |
3599 | done |
dd184caf |
3600 | IFS=$as_save_IFS |
d9898ee8 |
3601 | |
3602 | |
3603 | fi |
3604 | if test "${ac_cv_path_install+set}" = set; then |
3605 | INSTALL=$ac_cv_path_install |
3606 | else |
dd184caf |
3607 | # As a last resort, use the slow shell script. Don't cache a |
3608 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
3609 | # break other packages using the cache if that directory is |
dd184caf |
3610 | # removed, or if the value is a relative name. |
d9898ee8 |
3611 | INSTALL=$ac_install_sh |
3612 | fi |
3613 | fi |
dd184caf |
3614 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3615 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
3616 | |
3617 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3618 | # It thinks the first close brace ends the variable substitution. |
3619 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3620 | |
3621 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3622 | |
3623 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3624 | |
dd184caf |
3625 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3626 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
3627 | LN_S=$as_ln_s |
3628 | if test "$LN_S" = "ln -s"; then |
dd184caf |
3629 | { echo "$as_me:$LINENO: result: yes" >&5 |
3630 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3631 | else |
dd184caf |
3632 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3633 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
3634 | fi |
3635 | |
dd184caf |
3636 | # Check whether --enable-shared was given. |
d9898ee8 |
3637 | if test "${enable_shared+set}" = set; then |
dd184caf |
3638 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
3639 | case $enableval in |
3640 | yes) enable_shared=yes ;; |
3641 | no) enable_shared=no ;; |
3642 | *) |
3643 | enable_shared=no |
3644 | # Look at the argument we got. We use all the common list separators. |
3645 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3646 | for pkg in $enableval; do |
3647 | IFS="$lt_save_ifs" |
3648 | if test "X$pkg" = "X$p"; then |
3649 | enable_shared=yes |
3650 | fi |
3651 | done |
3652 | IFS="$lt_save_ifs" |
3653 | ;; |
3654 | esac |
3655 | else |
3656 | enable_shared=yes |
dd184caf |
3657 | fi |
d9898ee8 |
3658 | |
dd184caf |
3659 | |
3660 | # Check whether --enable-static was given. |
d9898ee8 |
3661 | if test "${enable_static+set}" = set; then |
dd184caf |
3662 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
3663 | case $enableval in |
3664 | yes) enable_static=yes ;; |
3665 | no) enable_static=no ;; |
3666 | *) |
3667 | enable_static=no |
3668 | # Look at the argument we got. We use all the common list separators. |
3669 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3670 | for pkg in $enableval; do |
3671 | IFS="$lt_save_ifs" |
3672 | if test "X$pkg" = "X$p"; then |
3673 | enable_static=yes |
3674 | fi |
3675 | done |
3676 | IFS="$lt_save_ifs" |
3677 | ;; |
3678 | esac |
3679 | else |
3680 | enable_static=yes |
dd184caf |
3681 | fi |
d9898ee8 |
3682 | |
dd184caf |
3683 | |
3684 | # Check whether --enable-fast-install was given. |
d9898ee8 |
3685 | if test "${enable_fast_install+set}" = set; then |
dd184caf |
3686 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
3687 | case $enableval in |
3688 | yes) enable_fast_install=yes ;; |
3689 | no) enable_fast_install=no ;; |
3690 | *) |
3691 | enable_fast_install=no |
3692 | # Look at the argument we got. We use all the common list separators. |
3693 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3694 | for pkg in $enableval; do |
3695 | IFS="$lt_save_ifs" |
3696 | if test "X$pkg" = "X$p"; then |
3697 | enable_fast_install=yes |
3698 | fi |
3699 | done |
3700 | IFS="$lt_save_ifs" |
3701 | ;; |
3702 | esac |
3703 | else |
3704 | enable_fast_install=yes |
dd184caf |
3705 | fi |
3706 | |
d9898ee8 |
3707 | |
3708 | # Make sure we can run config.sub. |
dd184caf |
3709 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3710 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3711 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
3712 | { (exit 1); exit 1; }; } |
3713 | |
dd184caf |
3714 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3715 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
3716 | if test "${ac_cv_build+set}" = set; then |
3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3718 | else |
dd184caf |
3719 | ac_build_alias=$build_alias |
3720 | test "x$ac_build_alias" = x && |
3721 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3722 | test "x$ac_build_alias" = x && |
d9898ee8 |
3723 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3724 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3725 | { (exit 1); exit 1; }; } |
dd184caf |
3726 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3727 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3728 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
3729 | { (exit 1); exit 1; }; } |
3730 | |
3731 | fi |
dd184caf |
3732 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3733 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3734 | case $ac_cv_build in |
3735 | *-*-*) ;; |
3736 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3737 | echo "$as_me: error: invalid value of canonical build" >&2;} |
3738 | { (exit 1); exit 1; }; };; |
3739 | esac |
d9898ee8 |
3740 | build=$ac_cv_build |
dd184caf |
3741 | ac_save_IFS=$IFS; IFS='-' |
3742 | set x $ac_cv_build |
3743 | shift |
3744 | build_cpu=$1 |
3745 | build_vendor=$2 |
3746 | shift; shift |
3747 | # Remember, the first character of IFS is used to create $*, |
3748 | # except with old shells: |
3749 | build_os=$* |
3750 | IFS=$ac_save_IFS |
3751 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3752 | |
3753 | |
3754 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3755 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
3756 | if test "${ac_cv_host+set}" = set; then |
3757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3758 | else |
dd184caf |
3759 | if test "x$host_alias" = x; then |
3760 | ac_cv_host=$ac_cv_build |
3761 | else |
3762 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3763 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3764 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
3765 | { (exit 1); exit 1; }; } |
dd184caf |
3766 | fi |
d9898ee8 |
3767 | |
3768 | fi |
dd184caf |
3769 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3770 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3771 | case $ac_cv_host in |
3772 | *-*-*) ;; |
3773 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3774 | echo "$as_me: error: invalid value of canonical host" >&2;} |
3775 | { (exit 1); exit 1; }; };; |
3776 | esac |
d9898ee8 |
3777 | host=$ac_cv_host |
dd184caf |
3778 | ac_save_IFS=$IFS; IFS='-' |
3779 | set x $ac_cv_host |
3780 | shift |
3781 | host_cpu=$1 |
3782 | host_vendor=$2 |
3783 | shift; shift |
3784 | # Remember, the first character of IFS is used to create $*, |
3785 | # except with old shells: |
3786 | host_os=$* |
3787 | IFS=$ac_save_IFS |
3788 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3789 | |
3790 | |
3791 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3792 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
3793 | if test "${lt_cv_path_SED+set}" = set; then |
3794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3795 | else |
3796 | # Loop through the user's path and test for sed and gsed. |
3797 | # Then use that list of sed's as ones to test for truncation. |
3798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3799 | for as_dir in $PATH |
3800 | do |
3801 | IFS=$as_save_IFS |
3802 | test -z "$as_dir" && as_dir=. |
3803 | for lt_ac_prog in sed gsed; do |
3804 | for ac_exec_ext in '' $ac_executable_extensions; do |
ac40fd9e |
3805 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3806 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3807 | fi |
3808 | done |
3809 | done |
3810 | done |
3811 | IFS=$as_save_IFS |
3812 | lt_ac_max=0 |
3813 | lt_ac_count=0 |
3814 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3815 | # along with /bin/sed that truncates output. |
3816 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3817 | test ! -f $lt_ac_sed && continue |
3818 | cat /dev/null > conftest.in |
3819 | lt_ac_count=0 |
3820 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3821 | # Check for GNU sed and select it if it is found. |
3822 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3823 | lt_cv_path_SED=$lt_ac_sed |
3824 | break |
3825 | fi |
3826 | while true; do |
3827 | cat conftest.in conftest.in >conftest.tmp |
3828 | mv conftest.tmp conftest.in |
3829 | cp conftest.in conftest.nl |
3830 | echo >>conftest.nl |
3831 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3832 | cmp -s conftest.out conftest.nl || break |
3833 | # 10000 chars as input seems more than enough |
3834 | test $lt_ac_count -gt 10 && break |
3835 | lt_ac_count=`expr $lt_ac_count + 1` |
3836 | if test $lt_ac_count -gt $lt_ac_max; then |
3837 | lt_ac_max=$lt_ac_count |
3838 | lt_cv_path_SED=$lt_ac_sed |
3839 | fi |
3840 | done |
3841 | done |
3842 | |
3843 | fi |
3844 | |
3845 | SED=$lt_cv_path_SED |
3846 | |
dd184caf |
3847 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3848 | echo "${ECHO_T}$SED" >&6; } |
3849 | |
3850 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3851 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3852 | if test "${ac_cv_path_GREP+set}" = set; then |
3853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3854 | else |
3855 | # Extract the first word of "grep ggrep" to use in msg output |
3856 | if test -z "$GREP"; then |
3857 | set dummy grep ggrep; ac_prog_name=$2 |
3858 | if test "${ac_cv_path_GREP+set}" = set; then |
3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3860 | else |
3861 | ac_path_GREP_found=false |
3862 | # Loop through the user's path and test for each of PROGNAME-LIST |
3863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3864 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3865 | do |
3866 | IFS=$as_save_IFS |
3867 | test -z "$as_dir" && as_dir=. |
3868 | for ac_prog in grep ggrep; do |
3869 | for ac_exec_ext in '' $ac_executable_extensions; do |
3870 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3871 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3872 | # Check for GNU ac_path_GREP and select it if it is found. |
3873 | # Check for GNU $ac_path_GREP |
3874 | case `"$ac_path_GREP" --version 2>&1` in |
3875 | *GNU*) |
3876 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3877 | *) |
3878 | ac_count=0 |
3879 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3880 | while : |
3881 | do |
3882 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3883 | mv "conftest.tmp" "conftest.in" |
3884 | cp "conftest.in" "conftest.nl" |
3885 | echo 'GREP' >> "conftest.nl" |
3886 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3887 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3888 | ac_count=`expr $ac_count + 1` |
3889 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3890 | # Best one so far, save it but keep looking for a better one |
3891 | ac_cv_path_GREP="$ac_path_GREP" |
3892 | ac_path_GREP_max=$ac_count |
3893 | fi |
3894 | # 10*(2^10) chars as input seems more than enough |
3895 | test $ac_count -gt 10 && break |
3896 | done |
3897 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3898 | esac |
3899 | |
3900 | |
3901 | $ac_path_GREP_found && break 3 |
3902 | done |
3903 | done |
3904 | |
3905 | done |
3906 | IFS=$as_save_IFS |
3907 | |
3908 | |
3909 | fi |
3910 | |
3911 | GREP="$ac_cv_path_GREP" |
3912 | if test -z "$GREP"; then |
3913 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3914 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3915 | { (exit 1); exit 1; }; } |
3916 | fi |
3917 | |
3918 | else |
3919 | ac_cv_path_GREP=$GREP |
3920 | fi |
3921 | |
3922 | |
3923 | fi |
3924 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3925 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3926 | GREP="$ac_cv_path_GREP" |
3927 | |
d9898ee8 |
3928 | |
dd184caf |
3929 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3930 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3931 | if test "${ac_cv_path_EGREP+set}" = set; then |
3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3933 | else |
3934 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3935 | then ac_cv_path_EGREP="$GREP -E" |
3936 | else |
3937 | # Extract the first word of "egrep" to use in msg output |
3938 | if test -z "$EGREP"; then |
3939 | set dummy egrep; ac_prog_name=$2 |
3940 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
3941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3942 | else |
dd184caf |
3943 | ac_path_EGREP_found=false |
3944 | # Loop through the user's path and test for each of PROGNAME-LIST |
3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3946 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3947 | do |
3948 | IFS=$as_save_IFS |
3949 | test -z "$as_dir" && as_dir=. |
3950 | for ac_prog in egrep; do |
3951 | for ac_exec_ext in '' $ac_executable_extensions; do |
3952 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3953 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3954 | # Check for GNU ac_path_EGREP and select it if it is found. |
3955 | # Check for GNU $ac_path_EGREP |
3956 | case `"$ac_path_EGREP" --version 2>&1` in |
3957 | *GNU*) |
3958 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3959 | *) |
3960 | ac_count=0 |
3961 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3962 | while : |
3963 | do |
3964 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3965 | mv "conftest.tmp" "conftest.in" |
3966 | cp "conftest.in" "conftest.nl" |
3967 | echo 'EGREP' >> "conftest.nl" |
3968 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3969 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3970 | ac_count=`expr $ac_count + 1` |
3971 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3972 | # Best one so far, save it but keep looking for a better one |
3973 | ac_cv_path_EGREP="$ac_path_EGREP" |
3974 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
3975 | fi |
dd184caf |
3976 | # 10*(2^10) chars as input seems more than enough |
3977 | test $ac_count -gt 10 && break |
3978 | done |
3979 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3980 | esac |
3981 | |
3982 | |
3983 | $ac_path_EGREP_found && break 3 |
3984 | done |
3985 | done |
3986 | |
3987 | done |
3988 | IFS=$as_save_IFS |
3989 | |
3990 | |
3991 | fi |
3992 | |
3993 | EGREP="$ac_cv_path_EGREP" |
3994 | if test -z "$EGREP"; then |
3995 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3996 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3997 | { (exit 1); exit 1; }; } |
3998 | fi |
3999 | |
4000 | else |
4001 | ac_cv_path_EGREP=$EGREP |
4002 | fi |
4003 | |
4004 | |
4005 | fi |
d9898ee8 |
4006 | fi |
dd184caf |
4007 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4008 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4009 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
4010 | |
4011 | |
4012 | |
dd184caf |
4013 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4014 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
4015 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4016 | else |
4017 | with_gnu_ld=no |
dd184caf |
4018 | fi |
4019 | |
d9898ee8 |
4020 | ac_prog=ld |
4021 | if test "$GCC" = yes; then |
4022 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
4023 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4024 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4025 | case $host in |
4026 | *-*-mingw*) |
4027 | # gcc leaves a trailing carriage return which upsets mingw |
4028 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4029 | *) |
4030 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4031 | esac |
4032 | case $ac_prog in |
4033 | # Accept absolute paths. |
4034 | [\\/]* | ?:[\\/]*) |
4035 | re_direlt='/[^/][^/]*/\.\./' |
4036 | # Canonicalize the pathname of ld |
4037 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4038 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4039 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4040 | done |
4041 | test -z "$LD" && LD="$ac_prog" |
4042 | ;; |
4043 | "") |
4044 | # If it fails, then pretend we aren't using GCC. |
4045 | ac_prog=ld |
4046 | ;; |
4047 | *) |
4048 | # If it is relative, then search for the first ld in PATH. |
4049 | with_gnu_ld=unknown |
4050 | ;; |
4051 | esac |
4052 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
4053 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4054 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4055 | else |
dd184caf |
4056 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4057 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4058 | fi |
4059 | if test "${lt_cv_path_LD+set}" = set; then |
4060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4061 | else |
4062 | if test -z "$LD"; then |
4063 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4064 | for ac_dir in $PATH; do |
4065 | IFS="$lt_save_ifs" |
4066 | test -z "$ac_dir" && ac_dir=. |
4067 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4068 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4069 | # Check to see if the program is GNU ld. I'd rather use --version, |
4070 | # but apparently some variants of GNU ld only accept -v. |
4071 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4072 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4073 | *GNU* | *'with BFD'*) |
4074 | test "$with_gnu_ld" != no && break |
4075 | ;; |
4076 | *) |
4077 | test "$with_gnu_ld" != yes && break |
4078 | ;; |
4079 | esac |
4080 | fi |
4081 | done |
4082 | IFS="$lt_save_ifs" |
4083 | else |
4084 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4085 | fi |
4086 | fi |
4087 | |
4088 | LD="$lt_cv_path_LD" |
4089 | if test -n "$LD"; then |
dd184caf |
4090 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4091 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4092 | else |
dd184caf |
4093 | { echo "$as_me:$LINENO: result: no" >&5 |
4094 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4095 | fi |
4096 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4097 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4098 | { (exit 1); exit 1; }; } |
dd184caf |
4099 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4100 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4101 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4103 | else |
4104 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4105 | case `$LD -v 2>&1 </dev/null` in |
4106 | *GNU* | *'with BFD'*) |
4107 | lt_cv_prog_gnu_ld=yes |
4108 | ;; |
4109 | *) |
4110 | lt_cv_prog_gnu_ld=no |
4111 | ;; |
4112 | esac |
4113 | fi |
dd184caf |
4114 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4115 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4116 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4117 | |
4118 | |
dd184caf |
4119 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4120 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4121 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4123 | else |
4124 | lt_cv_ld_reload_flag='-r' |
4125 | fi |
dd184caf |
4126 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4127 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4128 | reload_flag=$lt_cv_ld_reload_flag |
4129 | case $reload_flag in |
4130 | "" | " "*) ;; |
4131 | *) reload_flag=" $reload_flag" ;; |
4132 | esac |
4133 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4134 | case $host_os in |
4135 | darwin*) |
4136 | if test "$GCC" = yes; then |
4137 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4138 | else |
4139 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4140 | fi |
4141 | ;; |
4142 | esac |
4143 | |
dd184caf |
4144 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4145 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4146 | if test "${lt_cv_path_NM+set}" = set; then |
4147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4148 | else |
4149 | if test -n "$NM"; then |
4150 | # Let the user override the test. |
4151 | lt_cv_path_NM="$NM" |
4152 | else |
4153 | lt_nm_to_check="${ac_tool_prefix}nm" |
4154 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4155 | lt_nm_to_check="$lt_nm_to_check nm" |
4156 | fi |
4157 | for lt_tmp_nm in $lt_nm_to_check; do |
4158 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4159 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4160 | IFS="$lt_save_ifs" |
4161 | test -z "$ac_dir" && ac_dir=. |
4162 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4163 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4164 | # Check to see if the nm accepts a BSD-compat flag. |
4165 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4166 | # nm: unknown option "B" ignored |
4167 | # Tru64's nm complains that /dev/null is an invalid object file |
4168 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4169 | */dev/null* | *'Invalid file or object type'*) |
4170 | lt_cv_path_NM="$tmp_nm -B" |
4171 | break |
4172 | ;; |
4173 | *) |
4174 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4175 | */dev/null*) |
4176 | lt_cv_path_NM="$tmp_nm -p" |
4177 | break |
4178 | ;; |
4179 | *) |
4180 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4181 | continue # so that we can try to find one that supports BSD flags |
4182 | ;; |
4183 | esac |
4184 | ;; |
4185 | esac |
4186 | fi |
4187 | done |
4188 | IFS="$lt_save_ifs" |
4189 | done |
4190 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4191 | fi |
4192 | fi |
dd184caf |
4193 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4194 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4195 | NM="$lt_cv_path_NM" |
4196 | |
ac40fd9e |
4197 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
4198 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4199 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4201 | else |
4202 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4203 | lt_cv_file_magic_test_file= |
4204 | lt_cv_deplibs_check_method='unknown' |
4205 | # Need to set the preceding variable on all platforms that support |
4206 | # interlibrary dependencies. |
4207 | # 'none' -- dependencies not supported. |
4208 | # `unknown' -- same as none, but documents that we really don't know. |
4209 | # 'pass_all' -- all dependencies passed with no checks. |
4210 | # 'test_compile' -- check by making test program. |
4211 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4212 | # which responds to the $file_magic_cmd with a given extended regex. |
4213 | # If you have `file' or equivalent on your system and you're not sure |
4214 | # whether `pass_all' will *always* work, you probably want this one. |
4215 | |
4216 | case $host_os in |
4217 | aix4* | aix5*) |
4218 | lt_cv_deplibs_check_method=pass_all |
4219 | ;; |
4220 | |
4221 | beos*) |
4222 | lt_cv_deplibs_check_method=pass_all |
4223 | ;; |
4224 | |
4225 | bsdi[45]*) |
4226 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4227 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4228 | lt_cv_file_magic_test_file=/shlib/libc.so |
4229 | ;; |
4230 | |
4231 | cygwin*) |
4232 | # func_win32_libid is a shell function defined in ltmain.sh |
4233 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4234 | lt_cv_file_magic_cmd='func_win32_libid' |
4235 | ;; |
4236 | |
4237 | mingw* | pw32*) |
4238 | # Base MSYS/MinGW do not provide the 'file' command needed by |
ac40fd9e |
4239 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4240 | # unless we find 'file', for example because we are cross-compiling. |
4241 | if ( file / ) >/dev/null 2>&1; then |
4242 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4243 | lt_cv_file_magic_cmd='func_win32_libid' |
4244 | else |
4245 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4246 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4247 | fi |
d9898ee8 |
4248 | ;; |
4249 | |
4250 | darwin* | rhapsody*) |
4251 | lt_cv_deplibs_check_method=pass_all |
4252 | ;; |
4253 | |
ac40fd9e |
4254 | freebsd* | dragonfly*) |
d9898ee8 |
4255 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4256 | case $host_cpu in |
4257 | i*86 ) |
4258 | # Not sure whether the presence of OpenBSD here was a mistake. |
4259 | # Let's accept both of them until this is cleared up. |
4260 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4261 | lt_cv_file_magic_cmd=/usr/bin/file |
4262 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4263 | ;; |
4264 | esac |
4265 | else |
4266 | lt_cv_deplibs_check_method=pass_all |
4267 | fi |
4268 | ;; |
4269 | |
4270 | gnu*) |
4271 | lt_cv_deplibs_check_method=pass_all |
4272 | ;; |
4273 | |
4274 | hpux10.20* | hpux11*) |
4275 | lt_cv_file_magic_cmd=/usr/bin/file |
4276 | case $host_cpu in |
4277 | ia64*) |
4278 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4279 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4280 | ;; |
4281 | hppa*64*) |
4282 | 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]' |
4283 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4284 | ;; |
4285 | *) |
4286 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4287 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4288 | ;; |
4289 | esac |
4290 | ;; |
4291 | |
ac40fd9e |
4292 | interix[3-9]*) |
d9898ee8 |
4293 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4294 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4295 | ;; |
4296 | |
4297 | irix5* | irix6* | nonstopux*) |
4298 | case $LD in |
4299 | *-32|*"-32 ") libmagic=32-bit;; |
4300 | *-n32|*"-n32 ") libmagic=N32;; |
4301 | *-64|*"-64 ") libmagic=64-bit;; |
4302 | *) libmagic=never-match;; |
4303 | esac |
4304 | lt_cv_deplibs_check_method=pass_all |
4305 | ;; |
4306 | |
4307 | # This must be Linux ELF. |
ac40fd9e |
4308 | linux* | k*bsd*-gnu) |
d9898ee8 |
4309 | lt_cv_deplibs_check_method=pass_all |
4310 | ;; |
4311 | |
4312 | netbsd*) |
4313 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4314 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4315 | else |
4316 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4317 | fi |
4318 | ;; |
4319 | |
4320 | newos6*) |
4321 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4322 | lt_cv_file_magic_cmd=/usr/bin/file |
4323 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4324 | ;; |
4325 | |
4326 | nto-qnx*) |
4327 | lt_cv_deplibs_check_method=unknown |
4328 | ;; |
4329 | |
4330 | openbsd*) |
4331 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4332 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4333 | else |
4334 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4335 | fi |
4336 | ;; |
4337 | |
4338 | osf3* | osf4* | osf5*) |
4339 | lt_cv_deplibs_check_method=pass_all |
4340 | ;; |
4341 | |
ac40fd9e |
4342 | rdos*) |
4343 | lt_cv_deplibs_check_method=pass_all |
4344 | ;; |
4345 | |
d9898ee8 |
4346 | solaris*) |
4347 | lt_cv_deplibs_check_method=pass_all |
4348 | ;; |
4349 | |
4350 | sysv4 | sysv4.3*) |
4351 | case $host_vendor in |
4352 | motorola) |
4353 | 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]' |
4354 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4355 | ;; |
4356 | ncr) |
4357 | lt_cv_deplibs_check_method=pass_all |
4358 | ;; |
4359 | sequent) |
4360 | lt_cv_file_magic_cmd='/bin/file' |
4361 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4362 | ;; |
4363 | sni) |
4364 | lt_cv_file_magic_cmd='/bin/file' |
4365 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4366 | lt_cv_file_magic_test_file=/lib/libc.so |
4367 | ;; |
4368 | siemens) |
4369 | lt_cv_deplibs_check_method=pass_all |
4370 | ;; |
4371 | pc) |
4372 | lt_cv_deplibs_check_method=pass_all |
4373 | ;; |
4374 | esac |
4375 | ;; |
4376 | |
4377 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4378 | lt_cv_deplibs_check_method=pass_all |
4379 | ;; |
4380 | esac |
4381 | |
4382 | fi |
dd184caf |
4383 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4384 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4385 | file_magic_cmd=$lt_cv_file_magic_cmd |
4386 | deplibs_check_method=$lt_cv_deplibs_check_method |
4387 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4388 | |
4389 | |
4390 | |
4391 | |
4392 | # If no C compiler was specified, use CC. |
4393 | LTCC=${LTCC-"$CC"} |
4394 | |
4395 | # If no C compiler flags were specified, use CFLAGS. |
4396 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4397 | |
4398 | # Allow CC to be a program name with arguments. |
4399 | compiler=$CC |
4400 | |
4401 | |
dd184caf |
4402 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4403 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
4404 | enableval=$enable_libtool_lock; |
4405 | fi |
d9898ee8 |
4406 | |
d9898ee8 |
4407 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4408 | |
4409 | # Some flags need to be propagated to the compiler or linker for good |
4410 | # libtool support. |
4411 | case $host in |
4412 | ia64-*-hpux*) |
4413 | # Find out which ABI we are using. |
4414 | echo 'int i;' > conftest.$ac_ext |
4415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4416 | (eval $ac_compile) 2>&5 |
4417 | ac_status=$? |
4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4419 | (exit $ac_status); }; then |
4420 | case `/usr/bin/file conftest.$ac_objext` in |
4421 | *ELF-32*) |
4422 | HPUX_IA64_MODE="32" |
4423 | ;; |
4424 | *ELF-64*) |
4425 | HPUX_IA64_MODE="64" |
4426 | ;; |
4427 | esac |
4428 | fi |
4429 | rm -rf conftest* |
4430 | ;; |
4431 | *-*-irix6*) |
4432 | # Find out which ABI we are using. |
ac40fd9e |
4433 | echo '#line 4433 "configure"' > conftest.$ac_ext |
d9898ee8 |
4434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4435 | (eval $ac_compile) 2>&5 |
4436 | ac_status=$? |
4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4438 | (exit $ac_status); }; then |
4439 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4440 | case `/usr/bin/file conftest.$ac_objext` in |
4441 | *32-bit*) |
4442 | LD="${LD-ld} -melf32bsmip" |
4443 | ;; |
4444 | *N32*) |
4445 | LD="${LD-ld} -melf32bmipn32" |
4446 | ;; |
4447 | *64-bit*) |
4448 | LD="${LD-ld} -melf64bmip" |
4449 | ;; |
4450 | esac |
4451 | else |
4452 | case `/usr/bin/file conftest.$ac_objext` in |
4453 | *32-bit*) |
4454 | LD="${LD-ld} -32" |
4455 | ;; |
4456 | *N32*) |
4457 | LD="${LD-ld} -n32" |
4458 | ;; |
4459 | *64-bit*) |
4460 | LD="${LD-ld} -64" |
4461 | ;; |
4462 | esac |
4463 | fi |
4464 | fi |
4465 | rm -rf conftest* |
4466 | ;; |
4467 | |
ac40fd9e |
4468 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
4469 | s390*-*linux*|sparc*-*linux*) |
d9898ee8 |
4470 | # Find out which ABI we are using. |
4471 | echo 'int i;' > conftest.$ac_ext |
4472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4473 | (eval $ac_compile) 2>&5 |
4474 | ac_status=$? |
4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4476 | (exit $ac_status); }; then |
4477 | case `/usr/bin/file conftest.o` in |
4478 | *32-bit*) |
4479 | case $host in |
ac40fd9e |
4480 | x86_64-*kfreebsd*-gnu) |
4481 | LD="${LD-ld} -m elf_i386_fbsd" |
4482 | ;; |
d9898ee8 |
4483 | x86_64-*linux*) |
4484 | LD="${LD-ld} -m elf_i386" |
4485 | ;; |
4486 | ppc64-*linux*|powerpc64-*linux*) |
4487 | LD="${LD-ld} -m elf32ppclinux" |
4488 | ;; |
4489 | s390x-*linux*) |
4490 | LD="${LD-ld} -m elf_s390" |
4491 | ;; |
4492 | sparc64-*linux*) |
4493 | LD="${LD-ld} -m elf32_sparc" |
4494 | ;; |
4495 | esac |
4496 | ;; |
4497 | *64-bit*) |
ac40fd9e |
4498 | libsuff=64 |
d9898ee8 |
4499 | case $host in |
ac40fd9e |
4500 | x86_64-*kfreebsd*-gnu) |
4501 | LD="${LD-ld} -m elf_x86_64_fbsd" |
4502 | ;; |
d9898ee8 |
4503 | x86_64-*linux*) |
4504 | LD="${LD-ld} -m elf_x86_64" |
4505 | ;; |
4506 | ppc*-*linux*|powerpc*-*linux*) |
4507 | LD="${LD-ld} -m elf64ppc" |
4508 | ;; |
4509 | s390*-*linux*) |
4510 | LD="${LD-ld} -m elf64_s390" |
4511 | ;; |
4512 | sparc*-*linux*) |
4513 | LD="${LD-ld} -m elf64_sparc" |
4514 | ;; |
4515 | esac |
4516 | ;; |
4517 | esac |
4518 | fi |
4519 | rm -rf conftest* |
4520 | ;; |
4521 | |
4522 | *-*-sco3.2v5*) |
4523 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4524 | SAVE_CFLAGS="$CFLAGS" |
4525 | CFLAGS="$CFLAGS -belf" |
dd184caf |
4526 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4527 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
4528 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4530 | else |
4531 | ac_ext=c |
4532 | ac_cpp='$CPP $CPPFLAGS' |
4533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4536 | |
4537 | cat >conftest.$ac_ext <<_ACEOF |
4538 | /* confdefs.h. */ |
4539 | _ACEOF |
4540 | cat confdefs.h >>conftest.$ac_ext |
4541 | cat >>conftest.$ac_ext <<_ACEOF |
4542 | /* end confdefs.h. */ |
4543 | |
4544 | int |
4545 | main () |
4546 | { |
4547 | |
4548 | ; |
4549 | return 0; |
4550 | } |
4551 | _ACEOF |
4552 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
4553 | if { (ac_try="$ac_link" |
4554 | case "(($ac_try" in |
4555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4556 | *) ac_try_echo=$ac_try;; |
4557 | esac |
4558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4559 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4560 | ac_status=$? |
4561 | grep -v '^ *+' conftest.er1 >conftest.err |
4562 | rm -f conftest.er1 |
4563 | cat conftest.err >&5 |
4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4565 | (exit $ac_status); } && { |
4566 | test -z "$ac_c_werror_flag" || |
4567 | test ! -s conftest.err |
4568 | } && test -s conftest$ac_exeext && |
4569 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4570 | lt_cv_cc_needs_belf=yes |
4571 | else |
4572 | echo "$as_me: failed program was:" >&5 |
4573 | sed 's/^/| /' conftest.$ac_ext >&5 |
4574 | |
dd184caf |
4575 | lt_cv_cc_needs_belf=no |
d9898ee8 |
4576 | fi |
dd184caf |
4577 | |
4578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4579 | conftest$ac_exeext conftest.$ac_ext |
4580 | ac_ext=c |
4581 | ac_cpp='$CPP $CPPFLAGS' |
4582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4585 | |
4586 | fi |
dd184caf |
4587 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4588 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
4589 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4590 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4591 | CFLAGS="$SAVE_CFLAGS" |
4592 | fi |
4593 | ;; |
4594 | sparc*-*solaris*) |
4595 | # Find out which ABI we are using. |
4596 | echo 'int i;' > conftest.$ac_ext |
4597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4598 | (eval $ac_compile) 2>&5 |
4599 | ac_status=$? |
4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4601 | (exit $ac_status); }; then |
4602 | case `/usr/bin/file conftest.o` in |
4603 | *64-bit*) |
4604 | case $lt_cv_prog_gnu_ld in |
4605 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4606 | *) LD="${LD-ld} -64" ;; |
4607 | esac |
4608 | ;; |
4609 | esac |
4610 | fi |
4611 | rm -rf conftest* |
4612 | ;; |
4613 | |
4614 | |
4615 | esac |
4616 | |
4617 | need_locks="$enable_libtool_lock" |
4618 | |
4619 | |
4620 | ac_ext=c |
4621 | ac_cpp='$CPP $CPPFLAGS' |
4622 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4623 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4624 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
dd184caf |
4625 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4626 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
4627 | # On Suns, sometimes $CPP names a directory. |
4628 | if test -n "$CPP" && test -d "$CPP"; then |
4629 | CPP= |
4630 | fi |
4631 | if test -z "$CPP"; then |
4632 | if test "${ac_cv_prog_CPP+set}" = set; then |
4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4634 | else |
4635 | # Double quotes because CPP needs to be expanded |
4636 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4637 | do |
4638 | ac_preproc_ok=false |
4639 | for ac_c_preproc_warn_flag in '' yes |
4640 | do |
4641 | # Use a header file that comes with gcc, so configuring glibc |
4642 | # with a fresh cross-compiler works. |
4643 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4644 | # <limits.h> exists even on freestanding compilers. |
4645 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4646 | # not just through cpp. "Syntax error" is here to catch this case. |
4647 | cat >conftest.$ac_ext <<_ACEOF |
4648 | /* confdefs.h. */ |
4649 | _ACEOF |
4650 | cat confdefs.h >>conftest.$ac_ext |
4651 | cat >>conftest.$ac_ext <<_ACEOF |
4652 | /* end confdefs.h. */ |
4653 | #ifdef __STDC__ |
4654 | # include <limits.h> |
4655 | #else |
4656 | # include <assert.h> |
4657 | #endif |
4658 | Syntax error |
4659 | _ACEOF |
dd184caf |
4660 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4661 | case "(($ac_try" in |
4662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4663 | *) ac_try_echo=$ac_try;; |
4664 | esac |
4665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4667 | ac_status=$? |
4668 | grep -v '^ *+' conftest.er1 >conftest.err |
4669 | rm -f conftest.er1 |
4670 | cat conftest.err >&5 |
4671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4672 | (exit $ac_status); } >/dev/null && { |
4673 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4674 | test ! -s conftest.err |
4675 | }; then |
d9898ee8 |
4676 | : |
4677 | else |
4678 | echo "$as_me: failed program was:" >&5 |
4679 | sed 's/^/| /' conftest.$ac_ext >&5 |
4680 | |
4681 | # Broken: fails on valid input. |
4682 | continue |
4683 | fi |
dd184caf |
4684 | |
d9898ee8 |
4685 | rm -f conftest.err conftest.$ac_ext |
4686 | |
dd184caf |
4687 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4688 | # can be detected and how. |
4689 | cat >conftest.$ac_ext <<_ACEOF |
4690 | /* confdefs.h. */ |
4691 | _ACEOF |
4692 | cat confdefs.h >>conftest.$ac_ext |
4693 | cat >>conftest.$ac_ext <<_ACEOF |
4694 | /* end confdefs.h. */ |
4695 | #include <ac_nonexistent.h> |
4696 | _ACEOF |
dd184caf |
4697 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4698 | case "(($ac_try" in |
4699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4700 | *) ac_try_echo=$ac_try;; |
4701 | esac |
4702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4703 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4704 | ac_status=$? |
4705 | grep -v '^ *+' conftest.er1 >conftest.err |
4706 | rm -f conftest.er1 |
4707 | cat conftest.err >&5 |
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4709 | (exit $ac_status); } >/dev/null && { |
4710 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4711 | test ! -s conftest.err |
4712 | }; then |
d9898ee8 |
4713 | # Broken: success on invalid input. |
4714 | continue |
4715 | else |
4716 | echo "$as_me: failed program was:" >&5 |
4717 | sed 's/^/| /' conftest.$ac_ext >&5 |
4718 | |
4719 | # Passes both tests. |
4720 | ac_preproc_ok=: |
4721 | break |
4722 | fi |
dd184caf |
4723 | |
d9898ee8 |
4724 | rm -f conftest.err conftest.$ac_ext |
4725 | |
4726 | done |
4727 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4728 | rm -f conftest.err conftest.$ac_ext |
4729 | if $ac_preproc_ok; then |
4730 | break |
4731 | fi |
4732 | |
4733 | done |
4734 | ac_cv_prog_CPP=$CPP |
4735 | |
4736 | fi |
4737 | CPP=$ac_cv_prog_CPP |
4738 | else |
4739 | ac_cv_prog_CPP=$CPP |
4740 | fi |
dd184caf |
4741 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4742 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
4743 | ac_preproc_ok=false |
4744 | for ac_c_preproc_warn_flag in '' yes |
4745 | do |
4746 | # Use a header file that comes with gcc, so configuring glibc |
4747 | # with a fresh cross-compiler works. |
4748 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4749 | # <limits.h> exists even on freestanding compilers. |
4750 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4751 | # not just through cpp. "Syntax error" is here to catch this case. |
4752 | cat >conftest.$ac_ext <<_ACEOF |
4753 | /* confdefs.h. */ |
4754 | _ACEOF |
4755 | cat confdefs.h >>conftest.$ac_ext |
4756 | cat >>conftest.$ac_ext <<_ACEOF |
4757 | /* end confdefs.h. */ |
4758 | #ifdef __STDC__ |
4759 | # include <limits.h> |
4760 | #else |
4761 | # include <assert.h> |
4762 | #endif |
4763 | Syntax error |
4764 | _ACEOF |
dd184caf |
4765 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4766 | case "(($ac_try" in |
4767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4768 | *) ac_try_echo=$ac_try;; |
4769 | esac |
4770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4772 | ac_status=$? |
4773 | grep -v '^ *+' conftest.er1 >conftest.err |
4774 | rm -f conftest.er1 |
4775 | cat conftest.err >&5 |
4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4777 | (exit $ac_status); } >/dev/null && { |
4778 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4779 | test ! -s conftest.err |
4780 | }; then |
d9898ee8 |
4781 | : |
4782 | else |
4783 | echo "$as_me: failed program was:" >&5 |
4784 | sed 's/^/| /' conftest.$ac_ext >&5 |
4785 | |
4786 | # Broken: fails on valid input. |
4787 | continue |
4788 | fi |
dd184caf |
4789 | |
d9898ee8 |
4790 | rm -f conftest.err conftest.$ac_ext |
4791 | |
dd184caf |
4792 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4793 | # can be detected and how. |
4794 | cat >conftest.$ac_ext <<_ACEOF |
4795 | /* confdefs.h. */ |
4796 | _ACEOF |
4797 | cat confdefs.h >>conftest.$ac_ext |
4798 | cat >>conftest.$ac_ext <<_ACEOF |
4799 | /* end confdefs.h. */ |
4800 | #include <ac_nonexistent.h> |
4801 | _ACEOF |
dd184caf |
4802 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4803 | case "(($ac_try" in |
4804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4805 | *) ac_try_echo=$ac_try;; |
4806 | esac |
4807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4808 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4809 | ac_status=$? |
4810 | grep -v '^ *+' conftest.er1 >conftest.err |
4811 | rm -f conftest.er1 |
4812 | cat conftest.err >&5 |
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4814 | (exit $ac_status); } >/dev/null && { |
4815 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4816 | test ! -s conftest.err |
4817 | }; then |
d9898ee8 |
4818 | # Broken: success on invalid input. |
4819 | continue |
4820 | else |
4821 | echo "$as_me: failed program was:" >&5 |
4822 | sed 's/^/| /' conftest.$ac_ext >&5 |
4823 | |
4824 | # Passes both tests. |
4825 | ac_preproc_ok=: |
4826 | break |
4827 | fi |
dd184caf |
4828 | |
d9898ee8 |
4829 | rm -f conftest.err conftest.$ac_ext |
4830 | |
4831 | done |
4832 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4833 | rm -f conftest.err conftest.$ac_ext |
4834 | if $ac_preproc_ok; then |
4835 | : |
4836 | else |
4837 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4838 | See \`config.log' for more details." >&5 |
4839 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4840 | See \`config.log' for more details." >&2;} |
4841 | { (exit 1); exit 1; }; } |
4842 | fi |
4843 | |
4844 | ac_ext=c |
4845 | ac_cpp='$CPP $CPPFLAGS' |
4846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4849 | |
4850 | |
dd184caf |
4851 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4852 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
4853 | if test "${ac_cv_header_stdc+set}" = set; then |
4854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4855 | else |
4856 | cat >conftest.$ac_ext <<_ACEOF |
4857 | /* confdefs.h. */ |
4858 | _ACEOF |
4859 | cat confdefs.h >>conftest.$ac_ext |
4860 | cat >>conftest.$ac_ext <<_ACEOF |
4861 | /* end confdefs.h. */ |
4862 | #include <stdlib.h> |
4863 | #include <stdarg.h> |
4864 | #include <string.h> |
4865 | #include <float.h> |
4866 | |
4867 | int |
4868 | main () |
4869 | { |
4870 | |
4871 | ; |
4872 | return 0; |
4873 | } |
4874 | _ACEOF |
4875 | rm -f conftest.$ac_objext |
dd184caf |
4876 | if { (ac_try="$ac_compile" |
4877 | case "(($ac_try" in |
4878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4879 | *) ac_try_echo=$ac_try;; |
4880 | esac |
4881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4882 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4883 | ac_status=$? |
4884 | grep -v '^ *+' conftest.er1 >conftest.err |
4885 | rm -f conftest.er1 |
4886 | cat conftest.err >&5 |
4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4888 | (exit $ac_status); } && { |
4889 | test -z "$ac_c_werror_flag" || |
4890 | test ! -s conftest.err |
4891 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4892 | ac_cv_header_stdc=yes |
4893 | else |
4894 | echo "$as_me: failed program was:" >&5 |
4895 | sed 's/^/| /' conftest.$ac_ext >&5 |
4896 | |
dd184caf |
4897 | ac_cv_header_stdc=no |
d9898ee8 |
4898 | fi |
dd184caf |
4899 | |
4900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4901 | |
4902 | if test $ac_cv_header_stdc = yes; then |
4903 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4904 | cat >conftest.$ac_ext <<_ACEOF |
4905 | /* confdefs.h. */ |
4906 | _ACEOF |
4907 | cat confdefs.h >>conftest.$ac_ext |
4908 | cat >>conftest.$ac_ext <<_ACEOF |
4909 | /* end confdefs.h. */ |
4910 | #include <string.h> |
4911 | |
4912 | _ACEOF |
4913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4914 | $EGREP "memchr" >/dev/null 2>&1; then |
4915 | : |
4916 | else |
4917 | ac_cv_header_stdc=no |
4918 | fi |
4919 | rm -f conftest* |
4920 | |
4921 | fi |
4922 | |
4923 | if test $ac_cv_header_stdc = yes; then |
4924 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4925 | cat >conftest.$ac_ext <<_ACEOF |
4926 | /* confdefs.h. */ |
4927 | _ACEOF |
4928 | cat confdefs.h >>conftest.$ac_ext |
4929 | cat >>conftest.$ac_ext <<_ACEOF |
4930 | /* end confdefs.h. */ |
4931 | #include <stdlib.h> |
4932 | |
4933 | _ACEOF |
4934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4935 | $EGREP "free" >/dev/null 2>&1; then |
4936 | : |
4937 | else |
4938 | ac_cv_header_stdc=no |
4939 | fi |
4940 | rm -f conftest* |
4941 | |
4942 | fi |
4943 | |
4944 | if test $ac_cv_header_stdc = yes; then |
4945 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4946 | if test "$cross_compiling" = yes; then |
4947 | : |
4948 | else |
4949 | cat >conftest.$ac_ext <<_ACEOF |
4950 | /* confdefs.h. */ |
4951 | _ACEOF |
4952 | cat confdefs.h >>conftest.$ac_ext |
4953 | cat >>conftest.$ac_ext <<_ACEOF |
4954 | /* end confdefs.h. */ |
4955 | #include <ctype.h> |
dd184caf |
4956 | #include <stdlib.h> |
d9898ee8 |
4957 | #if ((' ' & 0x0FF) == 0x020) |
4958 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4959 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4960 | #else |
4961 | # define ISLOWER(c) \ |
4962 | (('a' <= (c) && (c) <= 'i') \ |
4963 | || ('j' <= (c) && (c) <= 'r') \ |
4964 | || ('s' <= (c) && (c) <= 'z')) |
4965 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4966 | #endif |
4967 | |
4968 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4969 | int |
4970 | main () |
4971 | { |
4972 | int i; |
4973 | for (i = 0; i < 256; i++) |
4974 | if (XOR (islower (i), ISLOWER (i)) |
4975 | || toupper (i) != TOUPPER (i)) |
dd184caf |
4976 | return 2; |
4977 | return 0; |
d9898ee8 |
4978 | } |
4979 | _ACEOF |
4980 | rm -f conftest$ac_exeext |
dd184caf |
4981 | if { (ac_try="$ac_link" |
4982 | case "(($ac_try" in |
4983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4984 | *) ac_try_echo=$ac_try;; |
4985 | esac |
4986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4987 | (eval "$ac_link") 2>&5 |
d9898ee8 |
4988 | ac_status=$? |
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
4991 | { (case "(($ac_try" in |
4992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4993 | *) ac_try_echo=$ac_try;; |
4994 | esac |
4995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4996 | (eval "$ac_try") 2>&5 |
d9898ee8 |
4997 | ac_status=$? |
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4999 | (exit $ac_status); }; }; then |
5000 | : |
5001 | else |
5002 | echo "$as_me: program exited with status $ac_status" >&5 |
5003 | echo "$as_me: failed program was:" >&5 |
5004 | sed 's/^/| /' conftest.$ac_ext >&5 |
5005 | |
5006 | ( exit $ac_status ) |
5007 | ac_cv_header_stdc=no |
5008 | fi |
dd184caf |
5009 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5010 | fi |
dd184caf |
5011 | |
5012 | |
d9898ee8 |
5013 | fi |
5014 | fi |
dd184caf |
5015 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5016 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
5017 | if test $ac_cv_header_stdc = yes; then |
5018 | |
5019 | cat >>confdefs.h <<\_ACEOF |
5020 | #define STDC_HEADERS 1 |
5021 | _ACEOF |
5022 | |
5023 | fi |
5024 | |
5025 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5026 | |
5027 | |
5028 | |
5029 | |
5030 | |
5031 | |
5032 | |
5033 | |
5034 | |
5035 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5036 | inttypes.h stdint.h unistd.h |
5037 | do |
5038 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5039 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5041 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5043 | else |
5044 | cat >conftest.$ac_ext <<_ACEOF |
5045 | /* confdefs.h. */ |
5046 | _ACEOF |
5047 | cat confdefs.h >>conftest.$ac_ext |
5048 | cat >>conftest.$ac_ext <<_ACEOF |
5049 | /* end confdefs.h. */ |
5050 | $ac_includes_default |
5051 | |
5052 | #include <$ac_header> |
5053 | _ACEOF |
5054 | rm -f conftest.$ac_objext |
dd184caf |
5055 | if { (ac_try="$ac_compile" |
5056 | case "(($ac_try" in |
5057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5058 | *) ac_try_echo=$ac_try;; |
5059 | esac |
5060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5061 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5062 | ac_status=$? |
5063 | grep -v '^ *+' conftest.er1 >conftest.err |
5064 | rm -f conftest.er1 |
5065 | cat conftest.err >&5 |
5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5067 | (exit $ac_status); } && { |
5068 | test -z "$ac_c_werror_flag" || |
5069 | test ! -s conftest.err |
5070 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5071 | eval "$as_ac_Header=yes" |
5072 | else |
5073 | echo "$as_me: failed program was:" >&5 |
5074 | sed 's/^/| /' conftest.$ac_ext >&5 |
5075 | |
dd184caf |
5076 | eval "$as_ac_Header=no" |
d9898ee8 |
5077 | fi |
dd184caf |
5078 | |
5079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5080 | fi |
dd184caf |
5081 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5082 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5083 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5084 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5085 | cat >>confdefs.h <<_ACEOF |
5086 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5087 | _ACEOF |
5088 | |
5089 | fi |
5090 | |
5091 | done |
5092 | |
5093 | |
5094 | |
5095 | for ac_header in dlfcn.h |
5096 | do |
5097 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5099 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5101 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5103 | fi |
dd184caf |
5104 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5105 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5106 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5107 | else |
5108 | # Is the header compilable? |
dd184caf |
5109 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5110 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5111 | cat >conftest.$ac_ext <<_ACEOF |
5112 | /* confdefs.h. */ |
5113 | _ACEOF |
5114 | cat confdefs.h >>conftest.$ac_ext |
5115 | cat >>conftest.$ac_ext <<_ACEOF |
5116 | /* end confdefs.h. */ |
5117 | $ac_includes_default |
5118 | #include <$ac_header> |
5119 | _ACEOF |
5120 | rm -f conftest.$ac_objext |
dd184caf |
5121 | if { (ac_try="$ac_compile" |
5122 | case "(($ac_try" in |
5123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5124 | *) ac_try_echo=$ac_try;; |
5125 | esac |
5126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5127 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5128 | ac_status=$? |
5129 | grep -v '^ *+' conftest.er1 >conftest.err |
5130 | rm -f conftest.er1 |
5131 | cat conftest.err >&5 |
5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5133 | (exit $ac_status); } && { |
5134 | test -z "$ac_c_werror_flag" || |
5135 | test ! -s conftest.err |
5136 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5137 | ac_header_compiler=yes |
5138 | else |
5139 | echo "$as_me: failed program was:" >&5 |
5140 | sed 's/^/| /' conftest.$ac_ext >&5 |
5141 | |
dd184caf |
5142 | ac_header_compiler=no |
d9898ee8 |
5143 | fi |
dd184caf |
5144 | |
5145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5146 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5147 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5148 | |
5149 | # Is the header present? |
dd184caf |
5150 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5151 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5152 | cat >conftest.$ac_ext <<_ACEOF |
5153 | /* confdefs.h. */ |
5154 | _ACEOF |
5155 | cat confdefs.h >>conftest.$ac_ext |
5156 | cat >>conftest.$ac_ext <<_ACEOF |
5157 | /* end confdefs.h. */ |
5158 | #include <$ac_header> |
5159 | _ACEOF |
dd184caf |
5160 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5161 | case "(($ac_try" in |
5162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5163 | *) ac_try_echo=$ac_try;; |
5164 | esac |
5165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5166 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5167 | ac_status=$? |
5168 | grep -v '^ *+' conftest.er1 >conftest.err |
5169 | rm -f conftest.er1 |
5170 | cat conftest.err >&5 |
5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5172 | (exit $ac_status); } >/dev/null && { |
5173 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5174 | test ! -s conftest.err |
5175 | }; then |
d9898ee8 |
5176 | ac_header_preproc=yes |
5177 | else |
5178 | echo "$as_me: failed program was:" >&5 |
5179 | sed 's/^/| /' conftest.$ac_ext >&5 |
5180 | |
5181 | ac_header_preproc=no |
5182 | fi |
dd184caf |
5183 | |
d9898ee8 |
5184 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
5185 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5186 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5187 | |
5188 | # So? What about this header? |
5189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5190 | yes:no: ) |
5191 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5192 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5194 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5195 | ac_header_preproc=yes |
5196 | ;; |
5197 | no:yes:* ) |
5198 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5199 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5200 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5201 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5202 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5203 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5204 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5205 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5207 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5208 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5209 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
5210 | ( cat <<\_ASBOX |
d9898ee8 |
5211 | ## -------------------------------------------------- ## |
5212 | ## Report this to courier-users@lists.sourceforge.net ## |
5213 | ## -------------------------------------------------- ## |
5214 | _ASBOX |
dd184caf |
5215 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5216 | ;; |
5217 | esac |
dd184caf |
5218 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5222 | else |
5223 | eval "$as_ac_Header=\$ac_header_preproc" |
5224 | fi |
dd184caf |
5225 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5226 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5227 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5228 | |
5229 | fi |
5230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5231 | cat >>confdefs.h <<_ACEOF |
5232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5233 | _ACEOF |
5234 | |
5235 | fi |
5236 | |
5237 | done |
5238 | |
dd184caf |
5239 | ac_ext=cpp |
d9898ee8 |
5240 | ac_cpp='$CXXCPP $CPPFLAGS' |
5241 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5242 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5243 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5244 | if test -z "$CXX"; then |
5245 | if test -n "$CCC"; then |
5246 | CXX=$CCC |
5247 | else |
5248 | if test -n "$ac_tool_prefix"; then |
5249 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5250 | do |
5251 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5252 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5253 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5255 | if test "${ac_cv_prog_CXX+set}" = set; then |
5256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5257 | else |
5258 | if test -n "$CXX"; then |
5259 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5260 | else |
5261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5262 | for as_dir in $PATH |
5263 | do |
5264 | IFS=$as_save_IFS |
5265 | test -z "$as_dir" && as_dir=. |
5266 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5268 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5270 | break 2 |
5271 | fi |
5272 | done |
5273 | done |
dd184caf |
5274 | IFS=$as_save_IFS |
d9898ee8 |
5275 | |
5276 | fi |
5277 | fi |
5278 | CXX=$ac_cv_prog_CXX |
5279 | if test -n "$CXX"; then |
dd184caf |
5280 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5281 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5282 | else |
dd184caf |
5283 | { echo "$as_me:$LINENO: result: no" >&5 |
5284 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5285 | fi |
5286 | |
dd184caf |
5287 | |
d9898ee8 |
5288 | test -n "$CXX" && break |
5289 | done |
5290 | fi |
5291 | if test -z "$CXX"; then |
5292 | ac_ct_CXX=$CXX |
dd184caf |
5293 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5294 | do |
5295 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5296 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5297 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5299 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5301 | else |
5302 | if test -n "$ac_ct_CXX"; then |
5303 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5304 | else |
5305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5306 | for as_dir in $PATH |
5307 | do |
5308 | IFS=$as_save_IFS |
5309 | test -z "$as_dir" && as_dir=. |
5310 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5312 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5314 | break 2 |
5315 | fi |
5316 | done |
5317 | done |
dd184caf |
5318 | IFS=$as_save_IFS |
d9898ee8 |
5319 | |
5320 | fi |
5321 | fi |
5322 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5323 | if test -n "$ac_ct_CXX"; then |
dd184caf |
5324 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5325 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5326 | else |
dd184caf |
5327 | { echo "$as_me:$LINENO: result: no" >&5 |
5328 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5329 | fi |
5330 | |
dd184caf |
5331 | |
d9898ee8 |
5332 | test -n "$ac_ct_CXX" && break |
5333 | done |
d9898ee8 |
5334 | |
dd184caf |
5335 | if test "x$ac_ct_CXX" = x; then |
5336 | CXX="g++" |
5337 | else |
5338 | case $cross_compiling:$ac_tool_warned in |
5339 | yes:) |
5340 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5341 | whose name does not start with the host triplet. If you think this |
5342 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5343 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5344 | whose name does not start with the host triplet. If you think this |
5345 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5346 | ac_tool_warned=yes ;; |
5347 | esac |
5348 | CXX=$ac_ct_CXX |
5349 | fi |
d9898ee8 |
5350 | fi |
5351 | |
dd184caf |
5352 | fi |
5353 | fi |
d9898ee8 |
5354 | # Provide some information about the compiler. |
dd184caf |
5355 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5356 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
5357 | { (ac_try="$ac_compiler --version >&5" |
5358 | case "(($ac_try" in |
5359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5360 | *) ac_try_echo=$ac_try;; |
5361 | esac |
5362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5363 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5364 | ac_status=$? |
5365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5366 | (exit $ac_status); } |
dd184caf |
5367 | { (ac_try="$ac_compiler -v >&5" |
5368 | case "(($ac_try" in |
5369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5370 | *) ac_try_echo=$ac_try;; |
5371 | esac |
5372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5373 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5374 | ac_status=$? |
5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5376 | (exit $ac_status); } |
dd184caf |
5377 | { (ac_try="$ac_compiler -V >&5" |
5378 | case "(($ac_try" in |
5379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5380 | *) ac_try_echo=$ac_try;; |
5381 | esac |
5382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5383 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5384 | ac_status=$? |
5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5386 | (exit $ac_status); } |
5387 | |
dd184caf |
5388 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5389 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5390 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5392 | else |
5393 | cat >conftest.$ac_ext <<_ACEOF |
5394 | /* confdefs.h. */ |
5395 | _ACEOF |
5396 | cat confdefs.h >>conftest.$ac_ext |
5397 | cat >>conftest.$ac_ext <<_ACEOF |
5398 | /* end confdefs.h. */ |
5399 | |
5400 | int |
5401 | main () |
5402 | { |
5403 | #ifndef __GNUC__ |
5404 | choke me |
5405 | #endif |
5406 | |
5407 | ; |
5408 | return 0; |
5409 | } |
5410 | _ACEOF |
5411 | rm -f conftest.$ac_objext |
dd184caf |
5412 | if { (ac_try="$ac_compile" |
5413 | case "(($ac_try" in |
5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5415 | *) ac_try_echo=$ac_try;; |
5416 | esac |
5417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5418 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5419 | ac_status=$? |
5420 | grep -v '^ *+' conftest.er1 >conftest.err |
5421 | rm -f conftest.er1 |
5422 | cat conftest.err >&5 |
5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5424 | (exit $ac_status); } && { |
5425 | test -z "$ac_cxx_werror_flag" || |
5426 | test ! -s conftest.err |
5427 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5428 | ac_compiler_gnu=yes |
5429 | else |
5430 | echo "$as_me: failed program was:" >&5 |
5431 | sed 's/^/| /' conftest.$ac_ext >&5 |
5432 | |
dd184caf |
5433 | ac_compiler_gnu=no |
d9898ee8 |
5434 | fi |
dd184caf |
5435 | |
5436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5437 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5438 | |
5439 | fi |
dd184caf |
5440 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5441 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5442 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5443 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5444 | ac_save_CXXFLAGS=$CXXFLAGS |
dd184caf |
5445 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5446 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5447 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5449 | else |
dd184caf |
5450 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5451 | ac_cxx_werror_flag=yes |
5452 | ac_cv_prog_cxx_g=no |
5453 | CXXFLAGS="-g" |
5454 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5455 | /* confdefs.h. */ |
5456 | _ACEOF |
5457 | cat confdefs.h >>conftest.$ac_ext |
5458 | cat >>conftest.$ac_ext <<_ACEOF |
5459 | /* end confdefs.h. */ |
5460 | |
5461 | int |
5462 | main () |
5463 | { |
5464 | |
5465 | ; |
5466 | return 0; |
5467 | } |
5468 | _ACEOF |
5469 | rm -f conftest.$ac_objext |
dd184caf |
5470 | if { (ac_try="$ac_compile" |
5471 | case "(($ac_try" in |
5472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5473 | *) ac_try_echo=$ac_try;; |
5474 | esac |
5475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5476 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5477 | ac_status=$? |
5478 | grep -v '^ *+' conftest.er1 >conftest.err |
5479 | rm -f conftest.er1 |
5480 | cat conftest.err >&5 |
5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5482 | (exit $ac_status); } && { |
5483 | test -z "$ac_cxx_werror_flag" || |
5484 | test ! -s conftest.err |
5485 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5486 | ac_cv_prog_cxx_g=yes |
5487 | else |
5488 | echo "$as_me: failed program was:" >&5 |
5489 | sed 's/^/| /' conftest.$ac_ext >&5 |
5490 | |
dd184caf |
5491 | CXXFLAGS="" |
5492 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5493 | /* confdefs.h. */ |
5494 | _ACEOF |
5495 | cat confdefs.h >>conftest.$ac_ext |
5496 | cat >>conftest.$ac_ext <<_ACEOF |
5497 | /* end confdefs.h. */ |
dd184caf |
5498 | |
d9898ee8 |
5499 | int |
5500 | main () |
5501 | { |
dd184caf |
5502 | |
d9898ee8 |
5503 | ; |
5504 | return 0; |
5505 | } |
5506 | _ACEOF |
5507 | rm -f conftest.$ac_objext |
dd184caf |
5508 | if { (ac_try="$ac_compile" |
5509 | case "(($ac_try" in |
5510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5511 | *) ac_try_echo=$ac_try;; |
5512 | esac |
5513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5514 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5515 | ac_status=$? |
5516 | grep -v '^ *+' conftest.er1 >conftest.err |
5517 | rm -f conftest.er1 |
5518 | cat conftest.err >&5 |
5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5520 | (exit $ac_status); } && { |
5521 | test -z "$ac_cxx_werror_flag" || |
5522 | test ! -s conftest.err |
5523 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5524 | : |
5525 | else |
5526 | echo "$as_me: failed program was:" >&5 |
5527 | sed 's/^/| /' conftest.$ac_ext >&5 |
5528 | |
dd184caf |
5529 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5530 | CXXFLAGS="-g" |
5531 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5532 | /* confdefs.h. */ |
5533 | _ACEOF |
5534 | cat confdefs.h >>conftest.$ac_ext |
5535 | cat >>conftest.$ac_ext <<_ACEOF |
5536 | /* end confdefs.h. */ |
dd184caf |
5537 | |
d9898ee8 |
5538 | int |
5539 | main () |
5540 | { |
dd184caf |
5541 | |
d9898ee8 |
5542 | ; |
5543 | return 0; |
5544 | } |
5545 | _ACEOF |
5546 | rm -f conftest.$ac_objext |
dd184caf |
5547 | if { (ac_try="$ac_compile" |
5548 | case "(($ac_try" in |
5549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5550 | *) ac_try_echo=$ac_try;; |
5551 | esac |
5552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5553 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5554 | ac_status=$? |
5555 | grep -v '^ *+' conftest.er1 >conftest.err |
5556 | rm -f conftest.er1 |
5557 | cat conftest.err >&5 |
5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5559 | (exit $ac_status); } && { |
5560 | test -z "$ac_cxx_werror_flag" || |
5561 | test ! -s conftest.err |
5562 | } && test -s conftest.$ac_objext; then |
5563 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5564 | else |
5565 | echo "$as_me: failed program was:" >&5 |
5566 | sed 's/^/| /' conftest.$ac_ext >&5 |
5567 | |
dd184caf |
5568 | |
d9898ee8 |
5569 | fi |
dd184caf |
5570 | |
5571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5572 | fi |
5573 | |
dd184caf |
5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5575 | fi |
5576 | |
5577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5578 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5579 | fi |
5580 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5581 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5582 | if test "$ac_test_CXXFLAGS" = set; then |
5583 | CXXFLAGS=$ac_save_CXXFLAGS |
5584 | elif test $ac_cv_prog_cxx_g = yes; then |
5585 | if test "$GXX" = yes; then |
5586 | CXXFLAGS="-g -O2" |
5587 | else |
5588 | CXXFLAGS="-g" |
5589 | fi |
5590 | else |
5591 | if test "$GXX" = yes; then |
5592 | CXXFLAGS="-O2" |
5593 | else |
5594 | CXXFLAGS= |
5595 | fi |
5596 | fi |
5597 | ac_ext=cpp |
d9898ee8 |
5598 | ac_cpp='$CXXCPP $CPPFLAGS' |
5599 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5600 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5601 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5602 | |
5603 | depcc="$CXX" am_compiler_list= |
5604 | |
dd184caf |
5605 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5606 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5607 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5609 | else |
5610 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5611 | # We make a subdir and do the tests there. Otherwise we can end up |
5612 | # making bogus files that we don't know about and never remove. For |
5613 | # instance it was reported that on HP-UX the gcc test will end up |
5614 | # making a dummy file named `D' -- because `-MD' means `put the output |
5615 | # in D'. |
5616 | mkdir conftest.dir |
5617 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5618 | # using a relative directory. |
5619 | cp "$am_depcomp" conftest.dir |
5620 | cd conftest.dir |
5621 | # We will build objects and dependencies in a subdirectory because |
5622 | # it helps to detect inapplicable dependency modes. For instance |
5623 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5624 | # side effect of compilation, but ICC will put the dependencies in |
5625 | # the current directory while Tru64 will put them in the object |
5626 | # directory. |
5627 | mkdir sub |
5628 | |
5629 | am_cv_CXX_dependencies_compiler_type=none |
5630 | if test "$am_compiler_list" = ""; then |
5631 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5632 | fi |
5633 | for depmode in $am_compiler_list; do |
5634 | # Setup a source with many dependencies, because some compilers |
5635 | # like to wrap large dependency lists on column 80 (with \), and |
5636 | # we should not choose a depcomp mode which is confused by this. |
5637 | # |
5638 | # We need to recreate these files for each test, as the compiler may |
5639 | # overwrite some of them when testing with obscure command lines. |
5640 | # This happens at least with the AIX C compiler. |
5641 | : > sub/conftest.c |
5642 | for i in 1 2 3 4 5 6; do |
5643 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5644 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5645 | # Solaris 8's {/usr,}/bin/sh. |
5646 | touch sub/conftst$i.h |
5647 | done |
5648 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5649 | |
5650 | case $depmode in |
5651 | nosideeffect) |
5652 | # after this tag, mechanisms are not by side-effect, so they'll |
5653 | # only be used when explicitly requested |
5654 | if test "x$enable_dependency_tracking" = xyes; then |
5655 | continue |
5656 | else |
5657 | break |
5658 | fi |
5659 | ;; |
5660 | none) break ;; |
5661 | esac |
5662 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5663 | # mode. It turns out that the SunPro C++ compiler does not properly |
5664 | # handle `-M -o', and we need to detect this. |
5665 | if depmode=$depmode \ |
5666 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5667 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5668 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5669 | >/dev/null 2>conftest.err && |
dd184caf |
5670 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5671 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5672 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5673 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5674 | # icc doesn't choke on unknown options, it will just issue warnings |
5675 | # or remarks (even with -Werror). So we grep stderr for any message |
5676 | # that says an option was ignored or not supported. |
5677 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5678 | # icc: Command line warning: ignoring option '-M'; no argument required |
5679 | # The diagnosis changed in icc 8.0: |
5680 | # icc: Command line remark: option '-MP' not supported |
5681 | if (grep 'ignoring option' conftest.err || |
5682 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5683 | am_cv_CXX_dependencies_compiler_type=$depmode |
5684 | break |
5685 | fi |
5686 | fi |
5687 | done |
5688 | |
5689 | cd .. |
5690 | rm -rf conftest.dir |
5691 | else |
5692 | am_cv_CXX_dependencies_compiler_type=none |
5693 | fi |
5694 | |
5695 | fi |
dd184caf |
5696 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5697 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5698 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5699 | |
dd184caf |
5700 | if |
d9898ee8 |
5701 | test "x$enable_dependency_tracking" != xno \ |
5702 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5703 | am__fastdepCXX_TRUE= |
5704 | am__fastdepCXX_FALSE='#' |
5705 | else |
5706 | am__fastdepCXX_TRUE='#' |
5707 | am__fastdepCXX_FALSE= |
5708 | fi |
5709 | |
5710 | |
5711 | |
5712 | |
5713 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5714 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5715 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
5716 | ac_ext=cpp |
d9898ee8 |
5717 | ac_cpp='$CXXCPP $CPPFLAGS' |
5718 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5719 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5720 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5721 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5722 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5723 | if test -z "$CXXCPP"; then |
5724 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5726 | else |
5727 | # Double quotes because CXXCPP needs to be expanded |
5728 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5729 | do |
5730 | ac_preproc_ok=false |
5731 | for ac_cxx_preproc_warn_flag in '' yes |
5732 | do |
5733 | # Use a header file that comes with gcc, so configuring glibc |
5734 | # with a fresh cross-compiler works. |
5735 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5736 | # <limits.h> exists even on freestanding compilers. |
5737 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5738 | # not just through cpp. "Syntax error" is here to catch this case. |
5739 | cat >conftest.$ac_ext <<_ACEOF |
5740 | /* confdefs.h. */ |
5741 | _ACEOF |
5742 | cat confdefs.h >>conftest.$ac_ext |
5743 | cat >>conftest.$ac_ext <<_ACEOF |
5744 | /* end confdefs.h. */ |
5745 | #ifdef __STDC__ |
5746 | # include <limits.h> |
5747 | #else |
5748 | # include <assert.h> |
5749 | #endif |
5750 | Syntax error |
5751 | _ACEOF |
dd184caf |
5752 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5753 | case "(($ac_try" in |
5754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5755 | *) ac_try_echo=$ac_try;; |
5756 | esac |
5757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5758 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5759 | ac_status=$? |
5760 | grep -v '^ *+' conftest.er1 >conftest.err |
5761 | rm -f conftest.er1 |
5762 | cat conftest.err >&5 |
5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5764 | (exit $ac_status); } >/dev/null && { |
5765 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5766 | test ! -s conftest.err |
5767 | }; then |
d9898ee8 |
5768 | : |
5769 | else |
5770 | echo "$as_me: failed program was:" >&5 |
5771 | sed 's/^/| /' conftest.$ac_ext >&5 |
5772 | |
5773 | # Broken: fails on valid input. |
5774 | continue |
5775 | fi |
dd184caf |
5776 | |
d9898ee8 |
5777 | rm -f conftest.err conftest.$ac_ext |
5778 | |
dd184caf |
5779 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5780 | # can be detected and how. |
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 | #include <ac_nonexistent.h> |
5788 | _ACEOF |
dd184caf |
5789 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5790 | case "(($ac_try" in |
5791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5792 | *) ac_try_echo=$ac_try;; |
5793 | esac |
5794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5795 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5796 | ac_status=$? |
5797 | grep -v '^ *+' conftest.er1 >conftest.err |
5798 | rm -f conftest.er1 |
5799 | cat conftest.err >&5 |
5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5801 | (exit $ac_status); } >/dev/null && { |
5802 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5803 | test ! -s conftest.err |
5804 | }; then |
d9898ee8 |
5805 | # Broken: success on invalid input. |
5806 | continue |
5807 | else |
5808 | echo "$as_me: failed program was:" >&5 |
5809 | sed 's/^/| /' conftest.$ac_ext >&5 |
5810 | |
5811 | # Passes both tests. |
5812 | ac_preproc_ok=: |
5813 | break |
5814 | fi |
dd184caf |
5815 | |
d9898ee8 |
5816 | rm -f conftest.err conftest.$ac_ext |
5817 | |
5818 | done |
5819 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5820 | rm -f conftest.err conftest.$ac_ext |
5821 | if $ac_preproc_ok; then |
5822 | break |
5823 | fi |
5824 | |
5825 | done |
5826 | ac_cv_prog_CXXCPP=$CXXCPP |
5827 | |
5828 | fi |
5829 | CXXCPP=$ac_cv_prog_CXXCPP |
5830 | else |
5831 | ac_cv_prog_CXXCPP=$CXXCPP |
5832 | fi |
dd184caf |
5833 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5834 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
5835 | ac_preproc_ok=false |
5836 | for ac_cxx_preproc_warn_flag in '' yes |
5837 | do |
5838 | # Use a header file that comes with gcc, so configuring glibc |
5839 | # with a fresh cross-compiler works. |
5840 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5841 | # <limits.h> exists even on freestanding compilers. |
5842 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5843 | # not just through cpp. "Syntax error" is here to catch this case. |
5844 | cat >conftest.$ac_ext <<_ACEOF |
5845 | /* confdefs.h. */ |
5846 | _ACEOF |
5847 | cat confdefs.h >>conftest.$ac_ext |
5848 | cat >>conftest.$ac_ext <<_ACEOF |
5849 | /* end confdefs.h. */ |
5850 | #ifdef __STDC__ |
5851 | # include <limits.h> |
5852 | #else |
5853 | # include <assert.h> |
5854 | #endif |
5855 | Syntax error |
5856 | _ACEOF |
dd184caf |
5857 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5858 | case "(($ac_try" in |
5859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5860 | *) ac_try_echo=$ac_try;; |
5861 | esac |
5862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5863 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5864 | ac_status=$? |
5865 | grep -v '^ *+' conftest.er1 >conftest.err |
5866 | rm -f conftest.er1 |
5867 | cat conftest.err >&5 |
5868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5869 | (exit $ac_status); } >/dev/null && { |
5870 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5871 | test ! -s conftest.err |
5872 | }; then |
d9898ee8 |
5873 | : |
5874 | else |
5875 | echo "$as_me: failed program was:" >&5 |
5876 | sed 's/^/| /' conftest.$ac_ext >&5 |
5877 | |
5878 | # Broken: fails on valid input. |
5879 | continue |
5880 | fi |
dd184caf |
5881 | |
d9898ee8 |
5882 | rm -f conftest.err conftest.$ac_ext |
5883 | |
dd184caf |
5884 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5885 | # can be detected and how. |
5886 | cat >conftest.$ac_ext <<_ACEOF |
5887 | /* confdefs.h. */ |
5888 | _ACEOF |
5889 | cat confdefs.h >>conftest.$ac_ext |
5890 | cat >>conftest.$ac_ext <<_ACEOF |
5891 | /* end confdefs.h. */ |
5892 | #include <ac_nonexistent.h> |
5893 | _ACEOF |
dd184caf |
5894 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5895 | case "(($ac_try" in |
5896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5897 | *) ac_try_echo=$ac_try;; |
5898 | esac |
5899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5900 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5901 | ac_status=$? |
5902 | grep -v '^ *+' conftest.er1 >conftest.err |
5903 | rm -f conftest.er1 |
5904 | cat conftest.err >&5 |
5905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5906 | (exit $ac_status); } >/dev/null && { |
5907 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5908 | test ! -s conftest.err |
5909 | }; then |
d9898ee8 |
5910 | # Broken: success on invalid input. |
5911 | continue |
5912 | else |
5913 | echo "$as_me: failed program was:" >&5 |
5914 | sed 's/^/| /' conftest.$ac_ext >&5 |
5915 | |
5916 | # Passes both tests. |
5917 | ac_preproc_ok=: |
5918 | break |
5919 | fi |
dd184caf |
5920 | |
d9898ee8 |
5921 | rm -f conftest.err conftest.$ac_ext |
5922 | |
5923 | done |
5924 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5925 | rm -f conftest.err conftest.$ac_ext |
5926 | if $ac_preproc_ok; then |
5927 | : |
5928 | else |
5929 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5930 | See \`config.log' for more details." >&5 |
5931 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5932 | See \`config.log' for more details." >&2;} |
5933 | { (exit 1); exit 1; }; } |
5934 | fi |
5935 | |
dd184caf |
5936 | ac_ext=cpp |
d9898ee8 |
5937 | ac_cpp='$CXXCPP $CPPFLAGS' |
5938 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5939 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5940 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5941 | |
5942 | fi |
5943 | |
5944 | |
5945 | ac_ext=f |
5946 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5947 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5948 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5949 | if test -n "$ac_tool_prefix"; then |
dd184caf |
5950 | 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 |
5951 | do |
5952 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5953 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5954 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5956 | if test "${ac_cv_prog_F77+set}" = set; then |
5957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5958 | else |
5959 | if test -n "$F77"; then |
5960 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5961 | else |
5962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5963 | for as_dir in $PATH |
5964 | do |
5965 | IFS=$as_save_IFS |
5966 | test -z "$as_dir" && as_dir=. |
5967 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5969 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5971 | break 2 |
5972 | fi |
5973 | done |
5974 | done |
dd184caf |
5975 | IFS=$as_save_IFS |
d9898ee8 |
5976 | |
5977 | fi |
5978 | fi |
5979 | F77=$ac_cv_prog_F77 |
5980 | if test -n "$F77"; then |
dd184caf |
5981 | { echo "$as_me:$LINENO: result: $F77" >&5 |
5982 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
5983 | else |
dd184caf |
5984 | { echo "$as_me:$LINENO: result: no" >&5 |
5985 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5986 | fi |
5987 | |
dd184caf |
5988 | |
d9898ee8 |
5989 | test -n "$F77" && break |
5990 | done |
5991 | fi |
5992 | if test -z "$F77"; then |
5993 | ac_ct_F77=$F77 |
dd184caf |
5994 | 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 |
5995 | do |
5996 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5997 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5998 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6000 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6002 | else |
6003 | if test -n "$ac_ct_F77"; then |
6004 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6005 | else |
6006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6007 | for as_dir in $PATH |
6008 | do |
6009 | IFS=$as_save_IFS |
6010 | test -z "$as_dir" && as_dir=. |
6011 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6013 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6015 | break 2 |
6016 | fi |
6017 | done |
6018 | done |
dd184caf |
6019 | IFS=$as_save_IFS |
d9898ee8 |
6020 | |
6021 | fi |
6022 | fi |
6023 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6024 | if test -n "$ac_ct_F77"; then |
dd184caf |
6025 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6026 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6027 | else |
dd184caf |
6028 | { echo "$as_me:$LINENO: result: no" >&5 |
6029 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6030 | fi |
6031 | |
dd184caf |
6032 | |
d9898ee8 |
6033 | test -n "$ac_ct_F77" && break |
6034 | done |
6035 | |
dd184caf |
6036 | if test "x$ac_ct_F77" = x; then |
6037 | F77="" |
6038 | else |
6039 | case $cross_compiling:$ac_tool_warned in |
6040 | yes:) |
6041 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6042 | whose name does not start with the host triplet. If you think this |
6043 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6044 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6045 | whose name does not start with the host triplet. If you think this |
6046 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6047 | ac_tool_warned=yes ;; |
6048 | esac |
6049 | F77=$ac_ct_F77 |
6050 | fi |
d9898ee8 |
6051 | fi |
6052 | |
6053 | |
6054 | # Provide some information about the compiler. |
dd184caf |
6055 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6056 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
6057 | { (ac_try="$ac_compiler --version >&5" |
6058 | case "(($ac_try" in |
6059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6060 | *) ac_try_echo=$ac_try;; |
6061 | esac |
6062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6063 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6064 | ac_status=$? |
6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6066 | (exit $ac_status); } |
dd184caf |
6067 | { (ac_try="$ac_compiler -v >&5" |
6068 | case "(($ac_try" in |
6069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6070 | *) ac_try_echo=$ac_try;; |
6071 | esac |
6072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6073 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6074 | ac_status=$? |
6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6076 | (exit $ac_status); } |
dd184caf |
6077 | { (ac_try="$ac_compiler -V >&5" |
6078 | case "(($ac_try" in |
6079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6080 | *) ac_try_echo=$ac_try;; |
6081 | esac |
6082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6083 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6084 | ac_status=$? |
6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6086 | (exit $ac_status); } |
6087 | rm -f a.out |
6088 | |
6089 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6090 | # input file. (Note that this only needs to work for GNU compilers.) |
6091 | ac_save_ext=$ac_ext |
6092 | ac_ext=F |
dd184caf |
6093 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6094 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6095 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6097 | else |
6098 | cat >conftest.$ac_ext <<_ACEOF |
6099 | program main |
6100 | #ifndef __GNUC__ |
6101 | choke me |
6102 | #endif |
6103 | |
6104 | end |
6105 | _ACEOF |
6106 | rm -f conftest.$ac_objext |
dd184caf |
6107 | if { (ac_try="$ac_compile" |
6108 | case "(($ac_try" in |
6109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6110 | *) ac_try_echo=$ac_try;; |
6111 | esac |
6112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6113 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6114 | ac_status=$? |
6115 | grep -v '^ *+' conftest.er1 >conftest.err |
6116 | rm -f conftest.er1 |
6117 | cat conftest.err >&5 |
6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6119 | (exit $ac_status); } && { |
6120 | test -z "$ac_f77_werror_flag" || |
6121 | test ! -s conftest.err |
6122 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6123 | ac_compiler_gnu=yes |
6124 | else |
6125 | echo "$as_me: failed program was:" >&5 |
6126 | sed 's/^/| /' conftest.$ac_ext >&5 |
6127 | |
dd184caf |
6128 | ac_compiler_gnu=no |
d9898ee8 |
6129 | fi |
dd184caf |
6130 | |
6131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6132 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6133 | |
6134 | fi |
dd184caf |
6135 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6136 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6137 | ac_ext=$ac_save_ext |
6138 | ac_test_FFLAGS=${FFLAGS+set} |
6139 | ac_save_FFLAGS=$FFLAGS |
6140 | FFLAGS= |
dd184caf |
6141 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6142 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6143 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6145 | else |
6146 | FFLAGS=-g |
6147 | cat >conftest.$ac_ext <<_ACEOF |
6148 | program main |
6149 | |
6150 | end |
6151 | _ACEOF |
6152 | rm -f conftest.$ac_objext |
dd184caf |
6153 | if { (ac_try="$ac_compile" |
6154 | case "(($ac_try" in |
6155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6156 | *) ac_try_echo=$ac_try;; |
6157 | esac |
6158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6159 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6160 | ac_status=$? |
6161 | grep -v '^ *+' conftest.er1 >conftest.err |
6162 | rm -f conftest.er1 |
6163 | cat conftest.err >&5 |
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6165 | (exit $ac_status); } && { |
6166 | test -z "$ac_f77_werror_flag" || |
6167 | test ! -s conftest.err |
6168 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6169 | ac_cv_prog_f77_g=yes |
6170 | else |
6171 | echo "$as_me: failed program was:" >&5 |
6172 | sed 's/^/| /' conftest.$ac_ext >&5 |
6173 | |
dd184caf |
6174 | ac_cv_prog_f77_g=no |
d9898ee8 |
6175 | fi |
dd184caf |
6176 | |
6177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6178 | |
6179 | fi |
dd184caf |
6180 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6181 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6182 | if test "$ac_test_FFLAGS" = set; then |
6183 | FFLAGS=$ac_save_FFLAGS |
6184 | elif test $ac_cv_prog_f77_g = yes; then |
6185 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6186 | FFLAGS="-g -O2" |
6187 | else |
6188 | FFLAGS="-g" |
6189 | fi |
6190 | else |
6191 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6192 | FFLAGS="-O2" |
6193 | else |
6194 | FFLAGS= |
6195 | fi |
6196 | fi |
6197 | |
6198 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6199 | ac_ext=c |
6200 | ac_cpp='$CPP $CPPFLAGS' |
6201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6204 | |
6205 | |
6206 | |
6207 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6208 | |
6209 | # find the maximum length of command line arguments |
dd184caf |
6210 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6211 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6212 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6214 | else |
6215 | i=0 |
6216 | teststring="ABCD" |
6217 | |
6218 | case $build_os in |
6219 | msdosdjgpp*) |
6220 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6221 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6222 | # during glob expansion). Even if it were fixed, the result of this |
6223 | # check would be larger than it should be. |
6224 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6225 | ;; |
6226 | |
6227 | gnu*) |
6228 | # Under GNU Hurd, this test is not required because there is |
6229 | # no limit to the length of command line arguments. |
6230 | # Libtool will interpret -1 as no limit whatsoever |
6231 | lt_cv_sys_max_cmd_len=-1; |
6232 | ;; |
6233 | |
6234 | cygwin* | mingw*) |
6235 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6236 | # about 5 minutes as the teststring grows exponentially. |
6237 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6238 | # you end up with a "frozen" computer, even though with patience |
6239 | # the test eventually succeeds (with a max line length of 256k). |
6240 | # Instead, let's just punt: use the minimum linelength reported by |
6241 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6242 | lt_cv_sys_max_cmd_len=8192; |
6243 | ;; |
6244 | |
6245 | amigaos*) |
6246 | # On AmigaOS with pdksh, this test takes hours, literally. |
6247 | # So we just punt and use a minimum line length of 8192. |
6248 | lt_cv_sys_max_cmd_len=8192; |
6249 | ;; |
6250 | |
6251 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6252 | # This has been around since 386BSD, at least. Likely further. |
6253 | if test -x /sbin/sysctl; then |
6254 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6255 | elif test -x /usr/sbin/sysctl; then |
6256 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6257 | else |
6258 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6259 | fi |
6260 | # And add a safety zone |
6261 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6262 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6263 | ;; |
6264 | |
6265 | interix*) |
6266 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6267 | lt_cv_sys_max_cmd_len=196608 |
6268 | ;; |
6269 | |
6270 | osf*) |
6271 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6272 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6273 | # nice to cause kernel panics so lets avoid the loop below. |
6274 | # First set a reasonable default. |
6275 | lt_cv_sys_max_cmd_len=16384 |
6276 | # |
6277 | if test -x /sbin/sysconfig; then |
6278 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6279 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6280 | esac |
6281 | fi |
6282 | ;; |
6283 | sco3.2v5*) |
6284 | lt_cv_sys_max_cmd_len=102400 |
6285 | ;; |
6286 | sysv5* | sco5v6* | sysv4.2uw2*) |
6287 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6288 | if test -n "$kargmax"; then |
6289 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6290 | else |
6291 | lt_cv_sys_max_cmd_len=32768 |
6292 | fi |
6293 | ;; |
6294 | *) |
ac40fd9e |
6295 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6296 | if test -n "$lt_cv_sys_max_cmd_len"; then |
6297 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6298 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6299 | else |
6300 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6301 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
d9898ee8 |
6302 | = "XX$teststring") >/dev/null 2>&1 && |
ac40fd9e |
6303 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6304 | lt_cv_sys_max_cmd_len=$new_result && |
6305 | test $i != 17 # 1/2 MB should be enough |
6306 | do |
6307 | i=`expr $i + 1` |
6308 | teststring=$teststring$teststring |
6309 | done |
6310 | teststring= |
6311 | # Add a significant safety factor because C++ compilers can tack on massive |
6312 | # amounts of additional arguments before passing them to the linker. |
6313 | # It appears as though 1/2 is a usable value. |
6314 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6315 | fi |
d9898ee8 |
6316 | ;; |
6317 | esac |
6318 | |
6319 | fi |
6320 | |
6321 | if test -n $lt_cv_sys_max_cmd_len ; then |
dd184caf |
6322 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6323 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6324 | else |
dd184caf |
6325 | { echo "$as_me:$LINENO: result: none" >&5 |
6326 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6327 | fi |
6328 | |
6329 | |
6330 | |
6331 | |
ac40fd9e |
6332 | |
d9898ee8 |
6333 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
dd184caf |
6334 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6335 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6336 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6338 | else |
6339 | |
6340 | # These are sane defaults that work on at least a few old systems. |
6341 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6342 | |
6343 | # Character class describing NM global symbol codes. |
6344 | symcode='[BCDEGRST]' |
6345 | |
6346 | # Regexp to match symbols that can be accessed directly from C. |
6347 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6348 | |
6349 | # Transform an extracted symbol line into a proper C declaration |
6350 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6351 | |
6352 | # Transform an extracted symbol line into symbol name and symbol address |
6353 | 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'" |
6354 | |
6355 | # Define system-specific variables. |
6356 | case $host_os in |
6357 | aix*) |
6358 | symcode='[BCDT]' |
6359 | ;; |
6360 | cygwin* | mingw* | pw32*) |
6361 | symcode='[ABCDGISTW]' |
6362 | ;; |
6363 | hpux*) # Its linker distinguishes data from code symbols |
6364 | if test "$host_cpu" = ia64; then |
6365 | symcode='[ABCDEGRST]' |
6366 | fi |
6367 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6368 | 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'" |
6369 | ;; |
ac40fd9e |
6370 | linux* | k*bsd*-gnu) |
d9898ee8 |
6371 | if test "$host_cpu" = ia64; then |
6372 | symcode='[ABCDGIRSTW]' |
6373 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6374 | 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'" |
6375 | fi |
6376 | ;; |
6377 | irix* | nonstopux*) |
6378 | symcode='[BCDEGRST]' |
6379 | ;; |
6380 | osf*) |
6381 | symcode='[BCDEGQRST]' |
6382 | ;; |
6383 | solaris*) |
6384 | symcode='[BDRT]' |
6385 | ;; |
6386 | sco3.2v5*) |
6387 | symcode='[DT]' |
6388 | ;; |
6389 | sysv4.2uw2*) |
6390 | symcode='[DT]' |
6391 | ;; |
6392 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6393 | symcode='[ABDT]' |
6394 | ;; |
6395 | sysv4) |
6396 | symcode='[DFNSTU]' |
6397 | ;; |
6398 | esac |
6399 | |
6400 | # Handle CRLF in mingw tool chain |
6401 | opt_cr= |
6402 | case $build_os in |
6403 | mingw*) |
6404 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6405 | ;; |
6406 | esac |
6407 | |
6408 | # If we're using GNU nm, then use its standard symbol codes. |
6409 | case `$NM -V 2>&1` in |
6410 | *GNU* | *'with BFD'*) |
6411 | symcode='[ABCDGIRSTW]' ;; |
6412 | esac |
6413 | |
6414 | # Try without a prefix undercore, then with it. |
6415 | for ac_symprfx in "" "_"; do |
6416 | |
6417 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6418 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6419 | |
6420 | # Write the raw and C identifiers. |
6421 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6422 | |
6423 | # Check to see that the pipe works correctly. |
6424 | pipe_works=no |
6425 | |
6426 | rm -f conftest* |
6427 | cat > conftest.$ac_ext <<EOF |
6428 | #ifdef __cplusplus |
6429 | extern "C" { |
6430 | #endif |
6431 | char nm_test_var; |
6432 | void nm_test_func(){} |
6433 | #ifdef __cplusplus |
6434 | } |
6435 | #endif |
6436 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6437 | EOF |
6438 | |
6439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6440 | (eval $ac_compile) 2>&5 |
6441 | ac_status=$? |
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6443 | (exit $ac_status); }; then |
6444 | # Now try to grab the symbols. |
6445 | nlist=conftest.nm |
6446 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6447 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6448 | ac_status=$? |
6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6450 | (exit $ac_status); } && test -s "$nlist"; then |
6451 | # Try sorting and uniquifying the output. |
6452 | if sort "$nlist" | uniq > "$nlist"T; then |
6453 | mv -f "$nlist"T "$nlist" |
6454 | else |
6455 | rm -f "$nlist"T |
6456 | fi |
6457 | |
6458 | # Make sure that we snagged all the symbols we need. |
6459 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6460 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6461 | cat <<EOF > conftest.$ac_ext |
6462 | #ifdef __cplusplus |
6463 | extern "C" { |
6464 | #endif |
6465 | |
6466 | EOF |
6467 | # Now generate the symbol file. |
6468 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6469 | |
6470 | cat <<EOF >> conftest.$ac_ext |
6471 | #if defined (__STDC__) && __STDC__ |
6472 | # define lt_ptr_t void * |
6473 | #else |
6474 | # define lt_ptr_t char * |
6475 | # define const |
6476 | #endif |
6477 | |
6478 | /* The mapping between symbol names and symbols. */ |
6479 | const struct { |
6480 | const char *name; |
6481 | lt_ptr_t address; |
6482 | } |
6483 | lt_preloaded_symbols[] = |
6484 | { |
6485 | EOF |
6486 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6487 | cat <<\EOF >> conftest.$ac_ext |
6488 | {0, (lt_ptr_t) 0} |
6489 | }; |
6490 | |
6491 | #ifdef __cplusplus |
6492 | } |
6493 | #endif |
6494 | EOF |
6495 | # Now try linking the two files. |
6496 | mv conftest.$ac_objext conftstm.$ac_objext |
6497 | lt_save_LIBS="$LIBS" |
6498 | lt_save_CFLAGS="$CFLAGS" |
6499 | LIBS="conftstm.$ac_objext" |
6500 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6502 | (eval $ac_link) 2>&5 |
6503 | ac_status=$? |
6504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6505 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6506 | pipe_works=yes |
6507 | fi |
6508 | LIBS="$lt_save_LIBS" |
6509 | CFLAGS="$lt_save_CFLAGS" |
6510 | else |
6511 | echo "cannot find nm_test_func in $nlist" >&5 |
6512 | fi |
6513 | else |
6514 | echo "cannot find nm_test_var in $nlist" >&5 |
6515 | fi |
6516 | else |
6517 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6518 | fi |
6519 | else |
6520 | echo "$progname: failed program was:" >&5 |
6521 | cat conftest.$ac_ext >&5 |
6522 | fi |
6523 | rm -f conftest* conftst* |
6524 | |
6525 | # Do not use the global_symbol_pipe unless it works. |
6526 | if test "$pipe_works" = yes; then |
6527 | break |
6528 | else |
6529 | lt_cv_sys_global_symbol_pipe= |
6530 | fi |
6531 | done |
6532 | |
6533 | fi |
6534 | |
6535 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6536 | lt_cv_sys_global_symbol_to_cdecl= |
6537 | fi |
6538 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
dd184caf |
6539 | { echo "$as_me:$LINENO: result: failed" >&5 |
6540 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6541 | else |
dd184caf |
6542 | { echo "$as_me:$LINENO: result: ok" >&5 |
6543 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6544 | fi |
6545 | |
dd184caf |
6546 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6547 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6548 | if test "${lt_cv_objdir+set}" = set; then |
6549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6550 | else |
6551 | rm -f .libs 2>/dev/null |
6552 | mkdir .libs 2>/dev/null |
6553 | if test -d .libs; then |
6554 | lt_cv_objdir=.libs |
6555 | else |
6556 | # MS-DOS does not allow filenames that begin with a dot. |
6557 | lt_cv_objdir=_libs |
6558 | fi |
6559 | rmdir .libs 2>/dev/null |
6560 | fi |
dd184caf |
6561 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6562 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6563 | objdir=$lt_cv_objdir |
6564 | |
6565 | |
6566 | |
6567 | |
6568 | |
6569 | case $host_os in |
6570 | aix3*) |
6571 | # AIX sometimes has problems with the GCC collect2 program. For some |
6572 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6573 | # vanish in a puff of smoke. |
6574 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6575 | COLLECT_NAMES= |
6576 | export COLLECT_NAMES |
6577 | fi |
6578 | ;; |
6579 | esac |
6580 | |
6581 | # Sed substitution that helps us do robust quoting. It backslashifies |
6582 | # metacharacters that are still active within double-quoted strings. |
6583 | Xsed='sed -e 1s/^X//' |
6584 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6585 | |
6586 | # Same as above, but do not quote variable references. |
6587 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6588 | |
6589 | # Sed substitution to delay expansion of an escaped shell variable in a |
6590 | # double_quote_subst'ed string. |
6591 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6592 | |
6593 | # Sed substitution to avoid accidental globbing in evaled expressions |
6594 | no_glob_subst='s/\*/\\\*/g' |
6595 | |
6596 | # Constants: |
6597 | rm="rm -f" |
6598 | |
6599 | # Global variables: |
6600 | default_ofile=libtool |
6601 | can_build_shared=yes |
6602 | |
6603 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6604 | # which needs '.lib'). |
6605 | libext=a |
6606 | ltmain="$ac_aux_dir/ltmain.sh" |
6607 | ofile="$default_ofile" |
6608 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6609 | |
6610 | if test -n "$ac_tool_prefix"; then |
6611 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6612 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
dd184caf |
6613 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6615 | if test "${ac_cv_prog_AR+set}" = set; then |
6616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6617 | else |
6618 | if test -n "$AR"; then |
6619 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6620 | else |
6621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6622 | for as_dir in $PATH |
6623 | do |
6624 | IFS=$as_save_IFS |
6625 | test -z "$as_dir" && as_dir=. |
6626 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6628 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6630 | break 2 |
6631 | fi |
6632 | done |
6633 | done |
dd184caf |
6634 | IFS=$as_save_IFS |
d9898ee8 |
6635 | |
6636 | fi |
6637 | fi |
6638 | AR=$ac_cv_prog_AR |
6639 | if test -n "$AR"; then |
dd184caf |
6640 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6641 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6642 | else |
dd184caf |
6643 | { echo "$as_me:$LINENO: result: no" >&5 |
6644 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6645 | fi |
6646 | |
dd184caf |
6647 | |
d9898ee8 |
6648 | fi |
6649 | if test -z "$ac_cv_prog_AR"; then |
6650 | ac_ct_AR=$AR |
6651 | # Extract the first word of "ar", so it can be a program name with args. |
6652 | set dummy ar; ac_word=$2 |
dd184caf |
6653 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6655 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6657 | else |
6658 | if test -n "$ac_ct_AR"; then |
6659 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6660 | else |
6661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6662 | for as_dir in $PATH |
6663 | do |
6664 | IFS=$as_save_IFS |
6665 | test -z "$as_dir" && as_dir=. |
6666 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6668 | ac_cv_prog_ac_ct_AR="ar" |
6669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6670 | break 2 |
6671 | fi |
6672 | done |
6673 | done |
dd184caf |
6674 | IFS=$as_save_IFS |
d9898ee8 |
6675 | |
d9898ee8 |
6676 | fi |
6677 | fi |
6678 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6679 | if test -n "$ac_ct_AR"; then |
dd184caf |
6680 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6681 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6682 | else |
dd184caf |
6683 | { echo "$as_me:$LINENO: result: no" >&5 |
6684 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6685 | fi |
6686 | |
dd184caf |
6687 | if test "x$ac_ct_AR" = x; then |
6688 | AR="false" |
6689 | else |
6690 | case $cross_compiling:$ac_tool_warned in |
6691 | yes:) |
6692 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6693 | whose name does not start with the host triplet. If you think this |
6694 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6695 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6696 | whose name does not start with the host triplet. If you think this |
6697 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6698 | ac_tool_warned=yes ;; |
6699 | esac |
6700 | AR=$ac_ct_AR |
6701 | fi |
d9898ee8 |
6702 | else |
6703 | AR="$ac_cv_prog_AR" |
6704 | fi |
6705 | |
6706 | if test -n "$ac_tool_prefix"; then |
6707 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6708 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
dd184caf |
6709 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6711 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6713 | else |
6714 | if test -n "$RANLIB"; then |
6715 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6716 | else |
6717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6718 | for as_dir in $PATH |
6719 | do |
6720 | IFS=$as_save_IFS |
6721 | test -z "$as_dir" && as_dir=. |
6722 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6724 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6726 | break 2 |
6727 | fi |
6728 | done |
6729 | done |
dd184caf |
6730 | IFS=$as_save_IFS |
d9898ee8 |
6731 | |
6732 | fi |
6733 | fi |
6734 | RANLIB=$ac_cv_prog_RANLIB |
6735 | if test -n "$RANLIB"; then |
dd184caf |
6736 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6737 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6738 | else |
dd184caf |
6739 | { echo "$as_me:$LINENO: result: no" >&5 |
6740 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6741 | fi |
6742 | |
dd184caf |
6743 | |
d9898ee8 |
6744 | fi |
6745 | if test -z "$ac_cv_prog_RANLIB"; then |
6746 | ac_ct_RANLIB=$RANLIB |
6747 | # Extract the first word of "ranlib", so it can be a program name with args. |
6748 | set dummy ranlib; ac_word=$2 |
dd184caf |
6749 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6751 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6753 | else |
6754 | if test -n "$ac_ct_RANLIB"; then |
6755 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6756 | else |
6757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6758 | for as_dir in $PATH |
6759 | do |
6760 | IFS=$as_save_IFS |
6761 | test -z "$as_dir" && as_dir=. |
6762 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6764 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6766 | break 2 |
6767 | fi |
6768 | done |
6769 | done |
dd184caf |
6770 | IFS=$as_save_IFS |
d9898ee8 |
6771 | |
d9898ee8 |
6772 | fi |
6773 | fi |
6774 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6775 | if test -n "$ac_ct_RANLIB"; then |
dd184caf |
6776 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6777 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6778 | else |
dd184caf |
6779 | { echo "$as_me:$LINENO: result: no" >&5 |
6780 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6781 | fi |
6782 | |
dd184caf |
6783 | if test "x$ac_ct_RANLIB" = x; then |
6784 | RANLIB=":" |
6785 | else |
6786 | case $cross_compiling:$ac_tool_warned in |
6787 | yes:) |
6788 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6789 | whose name does not start with the host triplet. If you think this |
6790 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6791 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6792 | whose name does not start with the host triplet. If you think this |
6793 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6794 | ac_tool_warned=yes ;; |
6795 | esac |
6796 | RANLIB=$ac_ct_RANLIB |
6797 | fi |
d9898ee8 |
6798 | else |
6799 | RANLIB="$ac_cv_prog_RANLIB" |
6800 | fi |
6801 | |
6802 | if test -n "$ac_tool_prefix"; then |
6803 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6804 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
6805 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6807 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6809 | else |
6810 | if test -n "$STRIP"; then |
6811 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6812 | else |
6813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6814 | for as_dir in $PATH |
6815 | do |
6816 | IFS=$as_save_IFS |
6817 | test -z "$as_dir" && as_dir=. |
6818 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6820 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6822 | break 2 |
6823 | fi |
6824 | done |
6825 | done |
dd184caf |
6826 | IFS=$as_save_IFS |
d9898ee8 |
6827 | |
6828 | fi |
6829 | fi |
6830 | STRIP=$ac_cv_prog_STRIP |
6831 | if test -n "$STRIP"; then |
dd184caf |
6832 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6833 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
6834 | else |
dd184caf |
6835 | { echo "$as_me:$LINENO: result: no" >&5 |
6836 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6837 | fi |
6838 | |
dd184caf |
6839 | |
d9898ee8 |
6840 | fi |
6841 | if test -z "$ac_cv_prog_STRIP"; then |
6842 | ac_ct_STRIP=$STRIP |
6843 | # Extract the first word of "strip", so it can be a program name with args. |
6844 | set dummy strip; ac_word=$2 |
dd184caf |
6845 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6847 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6849 | else |
6850 | if test -n "$ac_ct_STRIP"; then |
6851 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6852 | else |
6853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6854 | for as_dir in $PATH |
6855 | do |
6856 | IFS=$as_save_IFS |
6857 | test -z "$as_dir" && as_dir=. |
6858 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6860 | ac_cv_prog_ac_ct_STRIP="strip" |
6861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6862 | break 2 |
6863 | fi |
6864 | done |
6865 | done |
dd184caf |
6866 | IFS=$as_save_IFS |
d9898ee8 |
6867 | |
d9898ee8 |
6868 | fi |
6869 | fi |
6870 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6871 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
6872 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6873 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
6874 | else |
dd184caf |
6875 | { echo "$as_me:$LINENO: result: no" >&5 |
6876 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6877 | fi |
6878 | |
dd184caf |
6879 | if test "x$ac_ct_STRIP" = x; then |
6880 | STRIP=":" |
6881 | else |
6882 | case $cross_compiling:$ac_tool_warned in |
6883 | yes:) |
6884 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6885 | whose name does not start with the host triplet. If you think this |
6886 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6887 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6888 | whose name does not start with the host triplet. If you think this |
6889 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6890 | ac_tool_warned=yes ;; |
6891 | esac |
6892 | STRIP=$ac_ct_STRIP |
6893 | fi |
d9898ee8 |
6894 | else |
6895 | STRIP="$ac_cv_prog_STRIP" |
6896 | fi |
6897 | |
6898 | |
6899 | old_CC="$CC" |
6900 | old_CFLAGS="$CFLAGS" |
6901 | |
6902 | # Set sane defaults for various variables |
6903 | test -z "$AR" && AR=ar |
6904 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6905 | test -z "$AS" && AS=as |
6906 | test -z "$CC" && CC=cc |
6907 | test -z "$LTCC" && LTCC=$CC |
6908 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6909 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6910 | test -z "$LD" && LD=ld |
6911 | test -z "$LN_S" && LN_S="ln -s" |
6912 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6913 | test -z "$NM" && NM=nm |
6914 | test -z "$SED" && SED=sed |
6915 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6916 | test -z "$RANLIB" && RANLIB=: |
6917 | test -z "$STRIP" && STRIP=: |
6918 | test -z "$ac_objext" && ac_objext=o |
6919 | |
6920 | # Determine commands to create old-style static archives. |
ac40fd9e |
6921 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d9898ee8 |
6922 | old_postinstall_cmds='chmod 644 $oldlib' |
6923 | old_postuninstall_cmds= |
6924 | |
6925 | if test -n "$RANLIB"; then |
6926 | case $host_os in |
6927 | openbsd*) |
6928 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6929 | ;; |
6930 | *) |
6931 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6932 | ;; |
6933 | esac |
6934 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6935 | fi |
6936 | |
6937 | for cc_temp in $compiler""; do |
6938 | case $cc_temp in |
6939 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6940 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6941 | \-*) ;; |
6942 | *) break;; |
6943 | esac |
6944 | done |
6945 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6946 | |
6947 | |
6948 | # Only perform the check for file, if the check method requires it |
6949 | case $deplibs_check_method in |
6950 | file_magic*) |
6951 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dd184caf |
6952 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6953 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
6954 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6956 | else |
6957 | case $MAGIC_CMD in |
6958 | [\\/*] | ?:[\\/]*) |
6959 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6960 | ;; |
6961 | *) |
6962 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6963 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6964 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6965 | for ac_dir in $ac_dummy; do |
6966 | IFS="$lt_save_ifs" |
6967 | test -z "$ac_dir" && ac_dir=. |
6968 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6969 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6970 | if test -n "$file_magic_test_file"; then |
6971 | case $deplibs_check_method in |
6972 | "file_magic "*) |
6973 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6974 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6975 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6976 | $EGREP "$file_magic_regex" > /dev/null; then |
6977 | : |
6978 | else |
6979 | cat <<EOF 1>&2 |
6980 | |
6981 | *** Warning: the command libtool uses to detect shared libraries, |
6982 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6983 | *** The result is that libtool may fail to recognize shared libraries |
6984 | *** as such. This will affect the creation of libtool libraries that |
6985 | *** depend on shared libraries, but programs linked with such libtool |
6986 | *** libraries will work regardless of this problem. Nevertheless, you |
6987 | *** may want to report the problem to your system manager and/or to |
6988 | *** bug-libtool@gnu.org |
6989 | |
6990 | EOF |
6991 | fi ;; |
6992 | esac |
6993 | fi |
6994 | break |
6995 | fi |
6996 | done |
6997 | IFS="$lt_save_ifs" |
6998 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6999 | ;; |
7000 | esac |
7001 | fi |
7002 | |
7003 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7004 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7005 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7006 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7007 | else |
dd184caf |
7008 | { echo "$as_me:$LINENO: result: no" >&5 |
7009 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7010 | fi |
7011 | |
7012 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7013 | if test -n "$ac_tool_prefix"; then |
dd184caf |
7014 | { echo "$as_me:$LINENO: checking for file" >&5 |
7015 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7016 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7018 | else |
7019 | case $MAGIC_CMD in |
7020 | [\\/*] | ?:[\\/]*) |
7021 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7022 | ;; |
7023 | *) |
7024 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7025 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7026 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7027 | for ac_dir in $ac_dummy; do |
7028 | IFS="$lt_save_ifs" |
7029 | test -z "$ac_dir" && ac_dir=. |
7030 | if test -f $ac_dir/file; then |
7031 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7032 | if test -n "$file_magic_test_file"; then |
7033 | case $deplibs_check_method in |
7034 | "file_magic "*) |
7035 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7036 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7037 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7038 | $EGREP "$file_magic_regex" > /dev/null; then |
7039 | : |
7040 | else |
7041 | cat <<EOF 1>&2 |
7042 | |
7043 | *** Warning: the command libtool uses to detect shared libraries, |
7044 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7045 | *** The result is that libtool may fail to recognize shared libraries |
7046 | *** as such. This will affect the creation of libtool libraries that |
7047 | *** depend on shared libraries, but programs linked with such libtool |
7048 | *** libraries will work regardless of this problem. Nevertheless, you |
7049 | *** may want to report the problem to your system manager and/or to |
7050 | *** bug-libtool@gnu.org |
7051 | |
7052 | EOF |
7053 | fi ;; |
7054 | esac |
7055 | fi |
7056 | break |
7057 | fi |
7058 | done |
7059 | IFS="$lt_save_ifs" |
7060 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7061 | ;; |
7062 | esac |
7063 | fi |
7064 | |
7065 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7066 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7067 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7068 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7069 | else |
dd184caf |
7070 | { echo "$as_me:$LINENO: result: no" >&5 |
7071 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7072 | fi |
7073 | |
7074 | else |
7075 | MAGIC_CMD=: |
7076 | fi |
7077 | fi |
7078 | |
7079 | fi |
7080 | ;; |
7081 | esac |
7082 | |
7083 | enable_dlopen=no |
7084 | enable_win32_dll=no |
7085 | |
dd184caf |
7086 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7087 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
7088 | enableval=$enable_libtool_lock; |
7089 | fi |
d9898ee8 |
7090 | |
d9898ee8 |
7091 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7092 | |
7093 | |
dd184caf |
7094 | # Check whether --with-pic was given. |
d9898ee8 |
7095 | if test "${with_pic+set}" = set; then |
dd184caf |
7096 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7097 | else |
7098 | pic_mode=default |
dd184caf |
7099 | fi |
7100 | |
d9898ee8 |
7101 | test -z "$pic_mode" && pic_mode=default |
7102 | |
7103 | # Use C for the default configuration in the libtool script |
7104 | tagname= |
7105 | lt_save_CC="$CC" |
7106 | ac_ext=c |
7107 | ac_cpp='$CPP $CPPFLAGS' |
7108 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7109 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7110 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7111 | |
7112 | |
7113 | # Source file extension for C test sources. |
7114 | ac_ext=c |
7115 | |
7116 | # Object file extension for compiled C test sources. |
7117 | objext=o |
7118 | objext=$objext |
7119 | |
7120 | # Code to be used in simple compile tests |
ac40fd9e |
7121 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 |
7122 | |
7123 | # Code to be used in simple link tests |
ac40fd9e |
7124 | lt_simple_link_test_code='int main(){return(0);}' |
d9898ee8 |
7125 | |
7126 | |
7127 | # If no C compiler was specified, use CC. |
7128 | LTCC=${LTCC-"$CC"} |
7129 | |
7130 | # If no C compiler flags were specified, use CFLAGS. |
7131 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7132 | |
7133 | # Allow CC to be a program name with arguments. |
7134 | compiler=$CC |
7135 | |
7136 | |
7137 | # save warnings/boilerplate of simple test code |
7138 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7139 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
7140 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7141 | _lt_compiler_boilerplate=`cat conftest.err` |
7142 | $rm conftest* |
7143 | |
7144 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7145 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
7146 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7147 | _lt_linker_boilerplate=`cat conftest.err` |
7148 | $rm conftest* |
7149 | |
7150 | |
7151 | |
7152 | lt_prog_compiler_no_builtin_flag= |
7153 | |
7154 | if test "$GCC" = yes; then |
7155 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7156 | |
7157 | |
dd184caf |
7158 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7159 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7160 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7162 | else |
7163 | lt_cv_prog_compiler_rtti_exceptions=no |
7164 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7165 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7166 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7167 | # Insert the option either (1) after the last *FLAGS variable, or |
7168 | # (2) before a word containing "conftest.", or (3) at the end. |
7169 | # Note that $ac_compile itself does not contain backslashes and begins |
7170 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7171 | # The option is referenced via a variable to avoid confusing sed. |
7172 | lt_compile=`echo "$ac_compile" | $SED \ |
7173 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7174 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7175 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7176 | (eval echo "\"\$as_me:7176: $lt_compile\"" >&5) |
d9898ee8 |
7177 | (eval "$lt_compile" 2>conftest.err) |
7178 | ac_status=$? |
7179 | cat conftest.err >&5 |
ac40fd9e |
7180 | echo "$as_me:7180: \$? = $ac_status" >&5 |
d9898ee8 |
7181 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7182 | # The compiler can only warn and ignore the option if not recognized |
7183 | # So say no if there are warnings other than the usual output. |
7184 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7185 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7186 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7187 | lt_cv_prog_compiler_rtti_exceptions=yes |
7188 | fi |
7189 | fi |
7190 | $rm conftest* |
7191 | |
7192 | fi |
dd184caf |
7193 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7194 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7195 | |
7196 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7197 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7198 | else |
7199 | : |
7200 | fi |
7201 | |
7202 | fi |
7203 | |
7204 | lt_prog_compiler_wl= |
7205 | lt_prog_compiler_pic= |
7206 | lt_prog_compiler_static= |
7207 | |
dd184caf |
7208 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7209 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7210 | |
7211 | if test "$GCC" = yes; then |
7212 | lt_prog_compiler_wl='-Wl,' |
7213 | lt_prog_compiler_static='-static' |
7214 | |
7215 | case $host_os in |
7216 | aix*) |
7217 | # All AIX code is PIC. |
7218 | if test "$host_cpu" = ia64; then |
7219 | # AIX 5 now supports IA64 processor |
7220 | lt_prog_compiler_static='-Bstatic' |
7221 | fi |
7222 | ;; |
7223 | |
7224 | amigaos*) |
7225 | # FIXME: we need at least 68020 code to build shared libraries, but |
7226 | # adding the `-m68020' flag to GCC prevents building anything better, |
7227 | # like `-m68040'. |
7228 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7229 | ;; |
7230 | |
ac40fd9e |
7231 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
7232 | # PIC is the default for these OSes. |
7233 | ;; |
7234 | |
ac40fd9e |
7235 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
7236 | # This hack is so that the source file can tell whether it is being |
7237 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
7238 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7239 | # (--disable-auto-import) libraries |
d9898ee8 |
7240 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7241 | ;; |
7242 | |
7243 | darwin* | rhapsody*) |
7244 | # PIC is the default on this platform |
7245 | # Common symbols not allowed in MH_DYLIB files |
7246 | lt_prog_compiler_pic='-fno-common' |
7247 | ;; |
7248 | |
ac40fd9e |
7249 | interix[3-9]*) |
d9898ee8 |
7250 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7251 | # Instead, we relocate shared libraries at runtime. |
7252 | ;; |
7253 | |
7254 | msdosdjgpp*) |
7255 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7256 | # on systems that don't support them. |
7257 | lt_prog_compiler_can_build_shared=no |
7258 | enable_shared=no |
7259 | ;; |
7260 | |
7261 | sysv4*MP*) |
7262 | if test -d /usr/nec; then |
7263 | lt_prog_compiler_pic=-Kconform_pic |
7264 | fi |
7265 | ;; |
7266 | |
7267 | hpux*) |
7268 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7269 | # not for PA HP-UX. |
7270 | case $host_cpu in |
7271 | hppa*64*|ia64*) |
7272 | # +Z the default |
7273 | ;; |
7274 | *) |
7275 | lt_prog_compiler_pic='-fPIC' |
7276 | ;; |
7277 | esac |
7278 | ;; |
7279 | |
7280 | *) |
7281 | lt_prog_compiler_pic='-fPIC' |
7282 | ;; |
7283 | esac |
7284 | else |
7285 | # PORTME Check for flag to pass linker flags through the system compiler. |
7286 | case $host_os in |
7287 | aix*) |
7288 | lt_prog_compiler_wl='-Wl,' |
7289 | if test "$host_cpu" = ia64; then |
7290 | # AIX 5 now supports IA64 processor |
7291 | lt_prog_compiler_static='-Bstatic' |
7292 | else |
7293 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7294 | fi |
7295 | ;; |
7296 | darwin*) |
7297 | # PIC is the default on this platform |
7298 | # Common symbols not allowed in MH_DYLIB files |
7299 | case $cc_basename in |
7300 | xlc*) |
7301 | lt_prog_compiler_pic='-qnocommon' |
7302 | lt_prog_compiler_wl='-Wl,' |
7303 | ;; |
7304 | esac |
7305 | ;; |
7306 | |
ac40fd9e |
7307 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
7308 | # This hack is so that the source file can tell whether it is being |
7309 | # built for inclusion in a dll (and should export symbols for example). |
7310 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7311 | ;; |
7312 | |
7313 | hpux9* | hpux10* | hpux11*) |
7314 | lt_prog_compiler_wl='-Wl,' |
7315 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7316 | # not for PA HP-UX. |
7317 | case $host_cpu in |
7318 | hppa*64*|ia64*) |
7319 | # +Z the default |
7320 | ;; |
7321 | *) |
7322 | lt_prog_compiler_pic='+Z' |
7323 | ;; |
7324 | esac |
7325 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7326 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7327 | ;; |
7328 | |
7329 | irix5* | irix6* | nonstopux*) |
7330 | lt_prog_compiler_wl='-Wl,' |
7331 | # PIC (with -KPIC) is the default. |
7332 | lt_prog_compiler_static='-non_shared' |
7333 | ;; |
7334 | |
7335 | newsos6) |
7336 | lt_prog_compiler_pic='-KPIC' |
7337 | lt_prog_compiler_static='-Bstatic' |
7338 | ;; |
7339 | |
ac40fd9e |
7340 | linux* | k*bsd*-gnu) |
d9898ee8 |
7341 | case $cc_basename in |
7342 | icc* | ecc*) |
7343 | lt_prog_compiler_wl='-Wl,' |
7344 | lt_prog_compiler_pic='-KPIC' |
7345 | lt_prog_compiler_static='-static' |
7346 | ;; |
7347 | pgcc* | pgf77* | pgf90* | pgf95*) |
7348 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7349 | # which looks to be a dead project) |
7350 | lt_prog_compiler_wl='-Wl,' |
7351 | lt_prog_compiler_pic='-fpic' |
7352 | lt_prog_compiler_static='-Bstatic' |
7353 | ;; |
7354 | ccc*) |
7355 | lt_prog_compiler_wl='-Wl,' |
7356 | # All Alpha code is PIC. |
7357 | lt_prog_compiler_static='-non_shared' |
7358 | ;; |
ac40fd9e |
7359 | *) |
7360 | case `$CC -V 2>&1 | sed 5q` in |
7361 | *Sun\ C*) |
7362 | # Sun C 5.9 |
7363 | lt_prog_compiler_pic='-KPIC' |
7364 | lt_prog_compiler_static='-Bstatic' |
7365 | lt_prog_compiler_wl='-Wl,' |
7366 | ;; |
7367 | *Sun\ F*) |
7368 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
7369 | lt_prog_compiler_pic='-KPIC' |
7370 | lt_prog_compiler_static='-Bstatic' |
7371 | lt_prog_compiler_wl='' |
7372 | ;; |
7373 | esac |
7374 | ;; |
d9898ee8 |
7375 | esac |
7376 | ;; |
7377 | |
7378 | osf3* | osf4* | osf5*) |
7379 | lt_prog_compiler_wl='-Wl,' |
7380 | # All OSF/1 code is PIC. |
7381 | lt_prog_compiler_static='-non_shared' |
7382 | ;; |
7383 | |
ac40fd9e |
7384 | rdos*) |
7385 | lt_prog_compiler_static='-non_shared' |
7386 | ;; |
7387 | |
d9898ee8 |
7388 | solaris*) |
7389 | lt_prog_compiler_pic='-KPIC' |
7390 | lt_prog_compiler_static='-Bstatic' |
7391 | case $cc_basename in |
7392 | f77* | f90* | f95*) |
7393 | lt_prog_compiler_wl='-Qoption ld ';; |
7394 | *) |
7395 | lt_prog_compiler_wl='-Wl,';; |
7396 | esac |
7397 | ;; |
7398 | |
7399 | sunos4*) |
7400 | lt_prog_compiler_wl='-Qoption ld ' |
7401 | lt_prog_compiler_pic='-PIC' |
7402 | lt_prog_compiler_static='-Bstatic' |
7403 | ;; |
7404 | |
7405 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7406 | lt_prog_compiler_wl='-Wl,' |
7407 | lt_prog_compiler_pic='-KPIC' |
7408 | lt_prog_compiler_static='-Bstatic' |
7409 | ;; |
7410 | |
7411 | sysv4*MP*) |
7412 | if test -d /usr/nec ;then |
7413 | lt_prog_compiler_pic='-Kconform_pic' |
7414 | lt_prog_compiler_static='-Bstatic' |
7415 | fi |
7416 | ;; |
7417 | |
7418 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7419 | lt_prog_compiler_wl='-Wl,' |
7420 | lt_prog_compiler_pic='-KPIC' |
7421 | lt_prog_compiler_static='-Bstatic' |
7422 | ;; |
7423 | |
7424 | unicos*) |
7425 | lt_prog_compiler_wl='-Wl,' |
7426 | lt_prog_compiler_can_build_shared=no |
7427 | ;; |
7428 | |
7429 | uts4*) |
7430 | lt_prog_compiler_pic='-pic' |
7431 | lt_prog_compiler_static='-Bstatic' |
7432 | ;; |
7433 | |
7434 | *) |
7435 | lt_prog_compiler_can_build_shared=no |
7436 | ;; |
7437 | esac |
7438 | fi |
7439 | |
dd184caf |
7440 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7441 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7442 | |
7443 | # |
7444 | # Check to make sure the PIC flag actually works. |
7445 | # |
7446 | if test -n "$lt_prog_compiler_pic"; then |
7447 | |
dd184caf |
7448 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7449 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7450 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7452 | else |
7453 | lt_prog_compiler_pic_works=no |
7454 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7455 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7456 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7457 | # Insert the option either (1) after the last *FLAGS variable, or |
7458 | # (2) before a word containing "conftest.", or (3) at the end. |
7459 | # Note that $ac_compile itself does not contain backslashes and begins |
7460 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7461 | # The option is referenced via a variable to avoid confusing sed. |
7462 | lt_compile=`echo "$ac_compile" | $SED \ |
7463 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7464 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7465 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7466 | (eval echo "\"\$as_me:7466: $lt_compile\"" >&5) |
d9898ee8 |
7467 | (eval "$lt_compile" 2>conftest.err) |
7468 | ac_status=$? |
7469 | cat conftest.err >&5 |
ac40fd9e |
7470 | echo "$as_me:7470: \$? = $ac_status" >&5 |
d9898ee8 |
7471 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7472 | # The compiler can only warn and ignore the option if not recognized |
7473 | # So say no if there are warnings other than the usual output. |
7474 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7475 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7476 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7477 | lt_prog_compiler_pic_works=yes |
7478 | fi |
7479 | fi |
7480 | $rm conftest* |
7481 | |
7482 | fi |
dd184caf |
7483 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7484 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7485 | |
7486 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7487 | case $lt_prog_compiler_pic in |
7488 | "" | " "*) ;; |
7489 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7490 | esac |
7491 | else |
7492 | lt_prog_compiler_pic= |
7493 | lt_prog_compiler_can_build_shared=no |
7494 | fi |
7495 | |
7496 | fi |
7497 | case $host_os in |
7498 | # For platforms which do not support PIC, -DPIC is meaningless: |
7499 | *djgpp*) |
7500 | lt_prog_compiler_pic= |
7501 | ;; |
7502 | *) |
7503 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7504 | ;; |
7505 | esac |
7506 | |
7507 | # |
7508 | # Check to make sure the static flag actually works. |
7509 | # |
7510 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
dd184caf |
7511 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7512 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7513 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7515 | else |
7516 | lt_prog_compiler_static_works=no |
7517 | save_LDFLAGS="$LDFLAGS" |
7518 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
7519 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
7520 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7521 | # The linker can only warn and ignore the option if not recognized |
7522 | # So say no if there are warnings |
7523 | if test -s conftest.err; then |
7524 | # Append any errors to the config.log. |
7525 | cat conftest.err 1>&5 |
7526 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7527 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7528 | if diff conftest.exp conftest.er2 >/dev/null; then |
7529 | lt_prog_compiler_static_works=yes |
7530 | fi |
7531 | else |
7532 | lt_prog_compiler_static_works=yes |
7533 | fi |
7534 | fi |
7535 | $rm conftest* |
7536 | LDFLAGS="$save_LDFLAGS" |
7537 | |
7538 | fi |
dd184caf |
7539 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7540 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7541 | |
7542 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7543 | : |
7544 | else |
7545 | lt_prog_compiler_static= |
7546 | fi |
7547 | |
7548 | |
dd184caf |
7549 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7550 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7551 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7553 | else |
7554 | lt_cv_prog_compiler_c_o=no |
7555 | $rm -r conftest 2>/dev/null |
7556 | mkdir conftest |
7557 | cd conftest |
7558 | mkdir out |
ac40fd9e |
7559 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7560 | |
7561 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7562 | # Insert the option either (1) after the last *FLAGS variable, or |
7563 | # (2) before a word containing "conftest.", or (3) at the end. |
7564 | # Note that $ac_compile itself does not contain backslashes and begins |
7565 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7566 | lt_compile=`echo "$ac_compile" | $SED \ |
7567 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7568 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7569 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7570 | (eval echo "\"\$as_me:7570: $lt_compile\"" >&5) |
d9898ee8 |
7571 | (eval "$lt_compile" 2>out/conftest.err) |
7572 | ac_status=$? |
7573 | cat out/conftest.err >&5 |
ac40fd9e |
7574 | echo "$as_me:7574: \$? = $ac_status" >&5 |
d9898ee8 |
7575 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7576 | then |
7577 | # The compiler can only warn and ignore the option if not recognized |
7578 | # So say no if there are warnings |
7579 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7580 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7581 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7582 | lt_cv_prog_compiler_c_o=yes |
7583 | fi |
7584 | fi |
7585 | chmod u+w . 2>&5 |
7586 | $rm conftest* |
7587 | # SGI C++ compiler will create directory out/ii_files/ for |
7588 | # template instantiation |
7589 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7590 | $rm out/* && rmdir out |
7591 | cd .. |
7592 | rmdir conftest |
7593 | $rm conftest* |
7594 | |
7595 | fi |
dd184caf |
7596 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7597 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7598 | |
7599 | |
7600 | hard_links="nottested" |
7601 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7602 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
7603 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7604 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7605 | hard_links=yes |
7606 | $rm conftest* |
7607 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7608 | touch conftest.a |
7609 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7610 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
7611 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7612 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7613 | if test "$hard_links" = no; then |
7614 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7615 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7616 | need_locks=warn |
7617 | fi |
7618 | else |
7619 | need_locks=no |
7620 | fi |
7621 | |
dd184caf |
7622 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7623 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7624 | |
7625 | runpath_var= |
7626 | allow_undefined_flag= |
7627 | enable_shared_with_static_runtimes=no |
7628 | archive_cmds= |
7629 | archive_expsym_cmds= |
7630 | old_archive_From_new_cmds= |
7631 | old_archive_from_expsyms_cmds= |
7632 | export_dynamic_flag_spec= |
7633 | whole_archive_flag_spec= |
7634 | thread_safe_flag_spec= |
7635 | hardcode_libdir_flag_spec= |
7636 | hardcode_libdir_flag_spec_ld= |
7637 | hardcode_libdir_separator= |
7638 | hardcode_direct=no |
7639 | hardcode_minus_L=no |
7640 | hardcode_shlibpath_var=unsupported |
7641 | link_all_deplibs=unknown |
7642 | hardcode_automatic=no |
7643 | module_cmds= |
7644 | module_expsym_cmds= |
7645 | always_export_symbols=no |
7646 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7647 | # include_expsyms should be a list of space-separated symbols to be *always* |
7648 | # included in the symbol list |
7649 | include_expsyms= |
7650 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7651 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7652 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7653 | # as well as any symbol that contains `d'. |
7654 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7655 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7656 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7657 | # the symbol is explicitly referenced. Since portable code cannot |
7658 | # rely on this symbol name, it's probably fine to never include it in |
7659 | # preloaded symbol tables. |
7660 | extract_expsyms_cmds= |
7661 | # Just being paranoid about ensuring that cc_basename is set. |
7662 | for cc_temp in $compiler""; do |
7663 | case $cc_temp in |
7664 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7665 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7666 | \-*) ;; |
7667 | *) break;; |
7668 | esac |
7669 | done |
7670 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7671 | |
7672 | case $host_os in |
7673 | cygwin* | mingw* | pw32*) |
7674 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7675 | # When not using gcc, we currently assume that we are using |
7676 | # Microsoft Visual C++. |
7677 | if test "$GCC" != yes; then |
7678 | with_gnu_ld=no |
7679 | fi |
7680 | ;; |
7681 | interix*) |
7682 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7683 | with_gnu_ld=yes |
7684 | ;; |
7685 | openbsd*) |
7686 | with_gnu_ld=no |
7687 | ;; |
7688 | esac |
7689 | |
7690 | ld_shlibs=yes |
7691 | if test "$with_gnu_ld" = yes; then |
7692 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7693 | wlarc='${wl}' |
7694 | |
7695 | # Set some defaults for GNU ld with shared library support. These |
7696 | # are reset later if shared libraries are not supported. Putting them |
7697 | # here allows them to be overridden if necessary. |
7698 | runpath_var=LD_RUN_PATH |
7699 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7700 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7701 | # ancient GNU ld didn't support --whole-archive et. al. |
7702 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7703 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7704 | else |
7705 | whole_archive_flag_spec= |
7706 | fi |
7707 | supports_anon_versioning=no |
7708 | case `$LD -v 2>/dev/null` in |
7709 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7710 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7711 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7712 | *\ 2.11.*) ;; # other 2.11 versions |
7713 | *) supports_anon_versioning=yes ;; |
7714 | esac |
7715 | |
7716 | # See if GNU ld supports shared libraries. |
7717 | case $host_os in |
7718 | aix3* | aix4* | aix5*) |
7719 | # On AIX/PPC, the GNU linker is very broken |
7720 | if test "$host_cpu" != ia64; then |
7721 | ld_shlibs=no |
7722 | cat <<EOF 1>&2 |
7723 | |
7724 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7725 | *** to be unable to reliably create shared libraries on AIX. |
7726 | *** Therefore, libtool is disabling shared libraries support. If you |
7727 | *** really care for shared libraries, you may want to modify your PATH |
7728 | *** so that a non-GNU linker is found, and then restart. |
7729 | |
7730 | EOF |
7731 | fi |
7732 | ;; |
7733 | |
7734 | amigaos*) |
7735 | 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)' |
7736 | hardcode_libdir_flag_spec='-L$libdir' |
7737 | hardcode_minus_L=yes |
7738 | |
7739 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7740 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7741 | # to version 4, is to share data among multiple programs linked |
7742 | # with the same dynamic library. Since this doesn't match the |
7743 | # behavior of shared libraries on other platforms, we can't use |
7744 | # them. |
7745 | ld_shlibs=no |
7746 | ;; |
7747 | |
7748 | beos*) |
7749 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7750 | allow_undefined_flag=unsupported |
7751 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7752 | # support --undefined. This deserves some investigation. FIXME |
7753 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7754 | else |
7755 | ld_shlibs=no |
7756 | fi |
7757 | ;; |
7758 | |
7759 | cygwin* | mingw* | pw32*) |
7760 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7761 | # as there is no search path for DLLs. |
7762 | hardcode_libdir_flag_spec='-L$libdir' |
7763 | allow_undefined_flag=unsupported |
7764 | always_export_symbols=no |
7765 | enable_shared_with_static_runtimes=yes |
ac40fd9e |
7766 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
7767 | |
7768 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7769 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7770 | # If the export-symbols file already is a .def file (1st line |
7771 | # is EXPORTS), use it as is; otherwise, prepend... |
7772 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7773 | cp $export_symbols $output_objdir/$soname.def; |
7774 | else |
7775 | echo EXPORTS > $output_objdir/$soname.def; |
7776 | cat $export_symbols >> $output_objdir/$soname.def; |
7777 | fi~ |
7778 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7779 | else |
7780 | ld_shlibs=no |
7781 | fi |
7782 | ;; |
7783 | |
ac40fd9e |
7784 | interix[3-9]*) |
d9898ee8 |
7785 | hardcode_direct=no |
7786 | hardcode_shlibpath_var=no |
7787 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7788 | export_dynamic_flag_spec='${wl}-E' |
7789 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7790 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7791 | # default) and relocated if they conflict, which is a slow very memory |
7792 | # consuming and fragmenting process. To avoid this, we pick a random, |
7793 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7794 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7795 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7796 | 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' |
7797 | ;; |
7798 | |
ac40fd9e |
7799 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
7800 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7801 | tmp_addflag= |
7802 | case $cc_basename,$host_cpu in |
7803 | pgcc*) # Portland Group C compiler |
7804 | 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' |
7805 | tmp_addflag=' $pic_flag' |
7806 | ;; |
7807 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7808 | 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' |
7809 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7810 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7811 | tmp_addflag=' -i_dynamic' ;; |
7812 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7813 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7814 | ifc* | ifort*) # Intel Fortran compiler |
7815 | tmp_addflag=' -nofor_main' ;; |
7816 | esac |
ac40fd9e |
7817 | case `$CC -V 2>&1 | sed 5q` in |
7818 | *Sun\ C*) # Sun C 5.9 |
7819 | 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' |
7820 | tmp_sharedflag='-G' ;; |
7821 | *Sun\ F*) # Sun Fortran 8.3 |
7822 | tmp_sharedflag='-G' ;; |
7823 | *) |
7824 | tmp_sharedflag='-shared' ;; |
7825 | esac |
7826 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
7827 | |
7828 | if test $supports_anon_versioning = yes; then |
7829 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7830 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7831 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
7832 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
7833 | fi |
7834 | else |
7835 | ld_shlibs=no |
7836 | fi |
7837 | ;; |
7838 | |
7839 | netbsd*) |
7840 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7841 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7842 | wlarc= |
7843 | else |
7844 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7845 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7846 | fi |
7847 | ;; |
7848 | |
7849 | solaris*) |
7850 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7851 | ld_shlibs=no |
7852 | cat <<EOF 1>&2 |
7853 | |
7854 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7855 | *** create shared libraries on Solaris systems. Therefore, libtool |
7856 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7857 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7858 | *** your PATH or compiler configuration so that the native linker is |
7859 | *** used, and then restart. |
7860 | |
7861 | EOF |
7862 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7863 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7864 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7865 | else |
7866 | ld_shlibs=no |
7867 | fi |
7868 | ;; |
7869 | |
7870 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7871 | case `$LD -v 2>&1` in |
7872 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7873 | ld_shlibs=no |
7874 | cat <<_LT_EOF 1>&2 |
7875 | |
7876 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7877 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7878 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7879 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7880 | *** your PATH or compiler configuration so that the native linker is |
7881 | *** used, and then restart. |
7882 | |
7883 | _LT_EOF |
7884 | ;; |
7885 | *) |
7886 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7887 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7888 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7889 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7890 | else |
7891 | ld_shlibs=no |
7892 | fi |
7893 | ;; |
7894 | esac |
7895 | ;; |
7896 | |
7897 | sunos4*) |
7898 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7899 | wlarc= |
7900 | hardcode_direct=yes |
7901 | hardcode_shlibpath_var=no |
7902 | ;; |
7903 | |
7904 | *) |
7905 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7906 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7907 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7908 | else |
7909 | ld_shlibs=no |
7910 | fi |
7911 | ;; |
7912 | esac |
7913 | |
7914 | if test "$ld_shlibs" = no; then |
7915 | runpath_var= |
7916 | hardcode_libdir_flag_spec= |
7917 | export_dynamic_flag_spec= |
7918 | whole_archive_flag_spec= |
7919 | fi |
7920 | else |
7921 | # PORTME fill in a description of your system's linker (not GNU ld) |
7922 | case $host_os in |
7923 | aix3*) |
7924 | allow_undefined_flag=unsupported |
7925 | always_export_symbols=yes |
7926 | 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' |
7927 | # Note: this linker hardcodes the directories in LIBPATH if there |
7928 | # are no directories specified by -L. |
7929 | hardcode_minus_L=yes |
7930 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7931 | # Neither direct hardcoding nor static linking is supported with a |
7932 | # broken collect2. |
7933 | hardcode_direct=unsupported |
7934 | fi |
7935 | ;; |
7936 | |
7937 | aix4* | aix5*) |
7938 | if test "$host_cpu" = ia64; then |
7939 | # On IA64, the linker does run time linking by default, so we don't |
7940 | # have to do anything special. |
7941 | aix_use_runtimelinking=no |
7942 | exp_sym_flag='-Bexport' |
7943 | no_entry_flag="" |
7944 | else |
7945 | # If we're using GNU nm, then we don't want the "-C" option. |
7946 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7947 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7948 | 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' |
7949 | else |
7950 | 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' |
7951 | fi |
7952 | aix_use_runtimelinking=no |
7953 | |
7954 | # Test if we are trying to use run time linking or normal |
7955 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7956 | # need to do runtime linking. |
7957 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7958 | for ld_flag in $LDFLAGS; do |
7959 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7960 | aix_use_runtimelinking=yes |
7961 | break |
7962 | fi |
7963 | done |
7964 | ;; |
7965 | esac |
7966 | |
7967 | exp_sym_flag='-bexport' |
7968 | no_entry_flag='-bnoentry' |
7969 | fi |
7970 | |
7971 | # When large executables or shared objects are built, AIX ld can |
7972 | # have problems creating the table of contents. If linking a library |
7973 | # or program results in "error TOC overflow" add -mminimal-toc to |
7974 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7975 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7976 | |
7977 | archive_cmds='' |
7978 | hardcode_direct=yes |
7979 | hardcode_libdir_separator=':' |
7980 | link_all_deplibs=yes |
7981 | |
7982 | if test "$GCC" = yes; then |
7983 | case $host_os in aix4.[012]|aix4.[012].*) |
7984 | # We only want to do this on AIX 4.2 and lower, the check |
7985 | # below for broken collect2 doesn't work under 4.3+ |
7986 | collect2name=`${CC} -print-prog-name=collect2` |
7987 | if test -f "$collect2name" && \ |
7988 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7989 | then |
7990 | # We have reworked collect2 |
ac40fd9e |
7991 | : |
d9898ee8 |
7992 | else |
7993 | # We have old collect2 |
7994 | hardcode_direct=unsupported |
7995 | # It fails to find uninstalled libraries when the uninstalled |
7996 | # path is not listed in the libpath. Setting hardcode_minus_L |
7997 | # to unsupported forces relinking |
7998 | hardcode_minus_L=yes |
7999 | hardcode_libdir_flag_spec='-L$libdir' |
8000 | hardcode_libdir_separator= |
8001 | fi |
8002 | ;; |
8003 | esac |
8004 | shared_flag='-shared' |
8005 | if test "$aix_use_runtimelinking" = yes; then |
8006 | shared_flag="$shared_flag "'${wl}-G' |
8007 | fi |
8008 | else |
8009 | # not using gcc |
8010 | if test "$host_cpu" = ia64; then |
8011 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8012 | # chokes on -Wl,-G. The following line is correct: |
8013 | shared_flag='-G' |
8014 | else |
8015 | if test "$aix_use_runtimelinking" = yes; then |
8016 | shared_flag='${wl}-G' |
8017 | else |
8018 | shared_flag='${wl}-bM:SRE' |
8019 | fi |
8020 | fi |
8021 | fi |
8022 | |
8023 | # It seems that -bexpall does not export symbols beginning with |
8024 | # underscore (_), so it is better to generate a list of symbols to export. |
8025 | always_export_symbols=yes |
8026 | if test "$aix_use_runtimelinking" = yes; then |
8027 | # Warning - without using the other runtime loading flags (-brtl), |
8028 | # -berok will link without error, but may produce a broken library. |
8029 | allow_undefined_flag='-berok' |
8030 | # Determine the default libpath from the value encoded in an empty executable. |
8031 | cat >conftest.$ac_ext <<_ACEOF |
8032 | /* confdefs.h. */ |
8033 | _ACEOF |
8034 | cat confdefs.h >>conftest.$ac_ext |
8035 | cat >>conftest.$ac_ext <<_ACEOF |
8036 | /* end confdefs.h. */ |
8037 | |
8038 | int |
8039 | main () |
8040 | { |
8041 | |
8042 | ; |
8043 | return 0; |
8044 | } |
8045 | _ACEOF |
8046 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8047 | if { (ac_try="$ac_link" |
8048 | case "(($ac_try" in |
8049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8050 | *) ac_try_echo=$ac_try;; |
8051 | esac |
8052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8053 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8054 | ac_status=$? |
8055 | grep -v '^ *+' conftest.er1 >conftest.err |
8056 | rm -f conftest.er1 |
8057 | cat conftest.err >&5 |
8058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8059 | (exit $ac_status); } && { |
8060 | test -z "$ac_c_werror_flag" || |
8061 | test ! -s conftest.err |
8062 | } && test -s conftest$ac_exeext && |
8063 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8064 | |
ac40fd9e |
8065 | lt_aix_libpath_sed=' |
8066 | /Import File Strings/,/^$/ { |
8067 | /^0/ { |
8068 | s/^0 *\(.*\)$/\1/ |
8069 | p |
8070 | } |
8071 | }' |
8072 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
8073 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
8074 | if test -z "$aix_libpath"; then |
8075 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8076 | fi |
d9898ee8 |
8077 | else |
8078 | echo "$as_me: failed program was:" >&5 |
8079 | sed 's/^/| /' conftest.$ac_ext >&5 |
8080 | |
dd184caf |
8081 | |
d9898ee8 |
8082 | fi |
dd184caf |
8083 | |
8084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8085 | conftest$ac_exeext conftest.$ac_ext |
8086 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8087 | |
8088 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8089 | 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" |
8090 | else |
8091 | if test "$host_cpu" = ia64; then |
8092 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8093 | allow_undefined_flag="-z nodefs" |
8094 | 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" |
8095 | else |
8096 | # Determine the default libpath from the value encoded in an empty executable. |
8097 | cat >conftest.$ac_ext <<_ACEOF |
8098 | /* confdefs.h. */ |
8099 | _ACEOF |
8100 | cat confdefs.h >>conftest.$ac_ext |
8101 | cat >>conftest.$ac_ext <<_ACEOF |
8102 | /* end confdefs.h. */ |
8103 | |
8104 | int |
8105 | main () |
8106 | { |
8107 | |
8108 | ; |
8109 | return 0; |
8110 | } |
8111 | _ACEOF |
8112 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8113 | if { (ac_try="$ac_link" |
8114 | case "(($ac_try" in |
8115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8116 | *) ac_try_echo=$ac_try;; |
8117 | esac |
8118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8119 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8120 | ac_status=$? |
8121 | grep -v '^ *+' conftest.er1 >conftest.err |
8122 | rm -f conftest.er1 |
8123 | cat conftest.err >&5 |
8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8125 | (exit $ac_status); } && { |
8126 | test -z "$ac_c_werror_flag" || |
8127 | test ! -s conftest.err |
8128 | } && test -s conftest$ac_exeext && |
8129 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8130 | |
ac40fd9e |
8131 | lt_aix_libpath_sed=' |
8132 | /Import File Strings/,/^$/ { |
8133 | /^0/ { |
8134 | s/^0 *\(.*\)$/\1/ |
8135 | p |
8136 | } |
8137 | }' |
8138 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
8139 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
8140 | if test -z "$aix_libpath"; then |
8141 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8142 | fi |
d9898ee8 |
8143 | else |
8144 | echo "$as_me: failed program was:" >&5 |
8145 | sed 's/^/| /' conftest.$ac_ext >&5 |
8146 | |
dd184caf |
8147 | |
d9898ee8 |
8148 | fi |
dd184caf |
8149 | |
8150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8151 | conftest$ac_exeext conftest.$ac_ext |
8152 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8153 | |
8154 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8155 | # Warning - without using the other run time loading flags, |
8156 | # -berok will link without error, but may produce a broken library. |
8157 | no_undefined_flag=' ${wl}-bernotok' |
8158 | allow_undefined_flag=' ${wl}-berok' |
8159 | # Exported symbols can be pulled into shared objects from archives |
8160 | whole_archive_flag_spec='$convenience' |
8161 | archive_cmds_need_lc=yes |
8162 | # This is similar to how AIX traditionally builds its shared libraries. |
8163 | 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' |
8164 | fi |
8165 | fi |
8166 | ;; |
8167 | |
8168 | amigaos*) |
8169 | 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)' |
8170 | hardcode_libdir_flag_spec='-L$libdir' |
8171 | hardcode_minus_L=yes |
8172 | # see comment about different semantics on the GNU ld section |
8173 | ld_shlibs=no |
8174 | ;; |
8175 | |
8176 | bsdi[45]*) |
8177 | export_dynamic_flag_spec=-rdynamic |
8178 | ;; |
8179 | |
8180 | cygwin* | mingw* | pw32*) |
8181 | # When not using gcc, we currently assume that we are using |
8182 | # Microsoft Visual C++. |
8183 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8184 | # no search path for DLLs. |
8185 | hardcode_libdir_flag_spec=' ' |
8186 | allow_undefined_flag=unsupported |
8187 | # Tell ltmain to make .lib files, not .a files. |
8188 | libext=lib |
8189 | # Tell ltmain to make .dll files, not .so files. |
8190 | shrext_cmds=".dll" |
8191 | # FIXME: Setting linknames here is a bad hack. |
8192 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8193 | # The linker will automatically build a .lib file if we build a DLL. |
8194 | old_archive_From_new_cmds='true' |
8195 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
8196 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
8197 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8198 | enable_shared_with_static_runtimes=yes |
8199 | ;; |
8200 | |
8201 | darwin* | rhapsody*) |
8202 | case $host_os in |
8203 | rhapsody* | darwin1.[012]) |
8204 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8205 | ;; |
8206 | *) # Darwin 1.3 on |
8207 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8208 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8209 | else |
8210 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8211 | 10.[012]) |
8212 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8213 | ;; |
8214 | 10.*) |
8215 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8216 | ;; |
8217 | esac |
8218 | fi |
8219 | ;; |
8220 | esac |
8221 | archive_cmds_need_lc=no |
8222 | hardcode_direct=no |
8223 | hardcode_automatic=yes |
8224 | hardcode_shlibpath_var=unsupported |
8225 | whole_archive_flag_spec='' |
8226 | link_all_deplibs=yes |
8227 | if test "$GCC" = yes ; then |
8228 | output_verbose_link_cmd='echo' |
8229 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8230 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8231 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8232 | 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}' |
8233 | 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}' |
8234 | else |
8235 | case $cc_basename in |
8236 | xlc*) |
8237 | output_verbose_link_cmd='echo' |
ac40fd9e |
8238 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
8239 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8240 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
8241 | 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 |
8242 | 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}' |
8243 | ;; |
8244 | *) |
8245 | ld_shlibs=no |
8246 | ;; |
8247 | esac |
8248 | fi |
8249 | ;; |
8250 | |
8251 | dgux*) |
8252 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8253 | hardcode_libdir_flag_spec='-L$libdir' |
8254 | hardcode_shlibpath_var=no |
8255 | ;; |
8256 | |
8257 | freebsd1*) |
8258 | ld_shlibs=no |
8259 | ;; |
8260 | |
8261 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8262 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8263 | # does not break anything, and helps significantly (at the cost of a little |
8264 | # extra space). |
8265 | freebsd2.2*) |
8266 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8267 | hardcode_libdir_flag_spec='-R$libdir' |
8268 | hardcode_direct=yes |
8269 | hardcode_shlibpath_var=no |
8270 | ;; |
8271 | |
8272 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8273 | freebsd2*) |
8274 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8275 | hardcode_direct=yes |
8276 | hardcode_minus_L=yes |
8277 | hardcode_shlibpath_var=no |
8278 | ;; |
8279 | |
8280 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
8281 | freebsd* | dragonfly*) |
d9898ee8 |
8282 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8283 | hardcode_libdir_flag_spec='-R$libdir' |
8284 | hardcode_direct=yes |
8285 | hardcode_shlibpath_var=no |
8286 | ;; |
8287 | |
8288 | hpux9*) |
8289 | if test "$GCC" = yes; then |
8290 | 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' |
8291 | else |
8292 | 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' |
8293 | fi |
8294 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8295 | hardcode_libdir_separator=: |
8296 | hardcode_direct=yes |
8297 | |
8298 | # hardcode_minus_L: Not really in the search PATH, |
8299 | # but as the default location of the library. |
8300 | hardcode_minus_L=yes |
8301 | export_dynamic_flag_spec='${wl}-E' |
8302 | ;; |
8303 | |
8304 | hpux10*) |
8305 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8306 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8307 | else |
8308 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8309 | fi |
8310 | if test "$with_gnu_ld" = no; then |
8311 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8312 | hardcode_libdir_separator=: |
8313 | |
8314 | hardcode_direct=yes |
8315 | export_dynamic_flag_spec='${wl}-E' |
8316 | |
8317 | # hardcode_minus_L: Not really in the search PATH, |
8318 | # but as the default location of the library. |
8319 | hardcode_minus_L=yes |
8320 | fi |
8321 | ;; |
8322 | |
8323 | hpux11*) |
8324 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8325 | case $host_cpu in |
8326 | hppa*64*) |
8327 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8328 | ;; |
8329 | ia64*) |
8330 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8331 | ;; |
8332 | *) |
8333 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8334 | ;; |
8335 | esac |
8336 | else |
8337 | case $host_cpu in |
8338 | hppa*64*) |
8339 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8340 | ;; |
8341 | ia64*) |
8342 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8343 | ;; |
8344 | *) |
8345 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8346 | ;; |
8347 | esac |
8348 | fi |
8349 | if test "$with_gnu_ld" = no; then |
8350 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8351 | hardcode_libdir_separator=: |
8352 | |
8353 | case $host_cpu in |
8354 | hppa*64*|ia64*) |
8355 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8356 | hardcode_direct=no |
8357 | hardcode_shlibpath_var=no |
8358 | ;; |
8359 | *) |
8360 | hardcode_direct=yes |
8361 | export_dynamic_flag_spec='${wl}-E' |
8362 | |
8363 | # hardcode_minus_L: Not really in the search PATH, |
8364 | # but as the default location of the library. |
8365 | hardcode_minus_L=yes |
8366 | ;; |
8367 | esac |
8368 | fi |
8369 | ;; |
8370 | |
8371 | irix5* | irix6* | nonstopux*) |
8372 | if test "$GCC" = yes; then |
8373 | 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' |
8374 | else |
8375 | 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' |
8376 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8377 | fi |
8378 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8379 | hardcode_libdir_separator=: |
8380 | link_all_deplibs=yes |
8381 | ;; |
8382 | |
8383 | netbsd*) |
8384 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8385 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8386 | else |
8387 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8388 | fi |
8389 | hardcode_libdir_flag_spec='-R$libdir' |
8390 | hardcode_direct=yes |
8391 | hardcode_shlibpath_var=no |
8392 | ;; |
8393 | |
8394 | newsos6) |
8395 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8396 | hardcode_direct=yes |
8397 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8398 | hardcode_libdir_separator=: |
8399 | hardcode_shlibpath_var=no |
8400 | ;; |
8401 | |
8402 | openbsd*) |
ac40fd9e |
8403 | if test -f /usr/libexec/ld.so; then |
8404 | hardcode_direct=yes |
8405 | hardcode_shlibpath_var=no |
8406 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8407 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8408 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8409 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8410 | export_dynamic_flag_spec='${wl}-E' |
8411 | else |
8412 | case $host_os in |
8413 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8414 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8415 | hardcode_libdir_flag_spec='-R$libdir' |
8416 | ;; |
8417 | *) |
8418 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8419 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8420 | ;; |
8421 | esac |
8422 | fi |
d9898ee8 |
8423 | else |
ac40fd9e |
8424 | ld_shlibs=no |
d9898ee8 |
8425 | fi |
8426 | ;; |
8427 | |
8428 | os2*) |
8429 | hardcode_libdir_flag_spec='-L$libdir' |
8430 | hardcode_minus_L=yes |
8431 | allow_undefined_flag=unsupported |
8432 | 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' |
8433 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8434 | ;; |
8435 | |
8436 | osf3*) |
8437 | if test "$GCC" = yes; then |
8438 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8439 | 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' |
8440 | else |
8441 | allow_undefined_flag=' -expect_unresolved \*' |
8442 | 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' |
8443 | fi |
8444 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8445 | hardcode_libdir_separator=: |
8446 | ;; |
8447 | |
8448 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8449 | if test "$GCC" = yes; then |
8450 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8451 | 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' |
8452 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8453 | else |
8454 | allow_undefined_flag=' -expect_unresolved \*' |
8455 | 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' |
8456 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8457 | $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' |
8458 | |
8459 | # Both c and cxx compiler support -rpath directly |
8460 | hardcode_libdir_flag_spec='-rpath $libdir' |
8461 | fi |
8462 | hardcode_libdir_separator=: |
8463 | ;; |
8464 | |
8465 | solaris*) |
8466 | no_undefined_flag=' -z text' |
8467 | if test "$GCC" = yes; then |
8468 | wlarc='${wl}' |
8469 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8470 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8471 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8472 | else |
8473 | wlarc='' |
8474 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8475 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8476 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8477 | fi |
8478 | hardcode_libdir_flag_spec='-R$libdir' |
8479 | hardcode_shlibpath_var=no |
8480 | case $host_os in |
8481 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8482 | *) |
ac40fd9e |
8483 | # The compiler driver will combine and reorder linker options, |
8484 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
8485 | # but is careful enough not to reorder. |
d9898ee8 |
8486 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
8487 | if test "$GCC" = yes; then |
8488 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
8489 | else |
8490 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
8491 | fi |
8492 | ;; |
d9898ee8 |
8493 | esac |
8494 | link_all_deplibs=yes |
8495 | ;; |
8496 | |
8497 | sunos4*) |
8498 | if test "x$host_vendor" = xsequent; then |
8499 | # Use $CC to link under sequent, because it throws in some extra .o |
8500 | # files that make .init and .fini sections work. |
8501 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8502 | else |
8503 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8504 | fi |
8505 | hardcode_libdir_flag_spec='-L$libdir' |
8506 | hardcode_direct=yes |
8507 | hardcode_minus_L=yes |
8508 | hardcode_shlibpath_var=no |
8509 | ;; |
8510 | |
8511 | sysv4) |
8512 | case $host_vendor in |
8513 | sni) |
8514 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8515 | hardcode_direct=yes # is this really true??? |
8516 | ;; |
8517 | siemens) |
8518 | ## LD is ld it makes a PLAMLIB |
8519 | ## CC just makes a GrossModule. |
8520 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8521 | reload_cmds='$CC -r -o $output$reload_objs' |
8522 | hardcode_direct=no |
8523 | ;; |
8524 | motorola) |
8525 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8526 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8527 | ;; |
8528 | esac |
8529 | runpath_var='LD_RUN_PATH' |
8530 | hardcode_shlibpath_var=no |
8531 | ;; |
8532 | |
8533 | sysv4.3*) |
8534 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8535 | hardcode_shlibpath_var=no |
8536 | export_dynamic_flag_spec='-Bexport' |
8537 | ;; |
8538 | |
8539 | sysv4*MP*) |
8540 | if test -d /usr/nec; then |
8541 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8542 | hardcode_shlibpath_var=no |
8543 | runpath_var=LD_RUN_PATH |
8544 | hardcode_runpath_var=yes |
8545 | ld_shlibs=yes |
8546 | fi |
8547 | ;; |
8548 | |
ac40fd9e |
8549 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
8550 | no_undefined_flag='${wl}-z,text' |
8551 | archive_cmds_need_lc=no |
8552 | hardcode_shlibpath_var=no |
8553 | runpath_var='LD_RUN_PATH' |
8554 | |
8555 | if test "$GCC" = yes; then |
8556 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8557 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8558 | else |
8559 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8560 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8561 | fi |
8562 | ;; |
8563 | |
8564 | sysv5* | sco3.2v5* | sco5v6*) |
8565 | # Note: We can NOT use -z defs as we might desire, because we do not |
8566 | # link with -lc, and that would cause any symbols used from libc to |
8567 | # always be unresolved, which means just about no library would |
8568 | # ever link correctly. If we're not using GNU ld we use -z text |
8569 | # though, which does catch some bad symbols but isn't as heavy-handed |
8570 | # as -z defs. |
8571 | no_undefined_flag='${wl}-z,text' |
8572 | allow_undefined_flag='${wl}-z,nodefs' |
8573 | archive_cmds_need_lc=no |
8574 | hardcode_shlibpath_var=no |
8575 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8576 | hardcode_libdir_separator=':' |
8577 | link_all_deplibs=yes |
8578 | export_dynamic_flag_spec='${wl}-Bexport' |
8579 | runpath_var='LD_RUN_PATH' |
8580 | |
8581 | if test "$GCC" = yes; then |
8582 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8583 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8584 | else |
8585 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8586 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8587 | fi |
8588 | ;; |
8589 | |
8590 | uts4*) |
8591 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8592 | hardcode_libdir_flag_spec='-L$libdir' |
8593 | hardcode_shlibpath_var=no |
8594 | ;; |
8595 | |
8596 | *) |
8597 | ld_shlibs=no |
8598 | ;; |
8599 | esac |
8600 | fi |
8601 | |
dd184caf |
8602 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8603 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8604 | test "$ld_shlibs" = no && can_build_shared=no |
8605 | |
8606 | # |
8607 | # Do we need to explicitly link libc? |
8608 | # |
8609 | case "x$archive_cmds_need_lc" in |
8610 | x|xyes) |
8611 | # Assume -lc should be added |
8612 | archive_cmds_need_lc=yes |
8613 | |
8614 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8615 | case $archive_cmds in |
8616 | *'~'*) |
8617 | # FIXME: we may have to deal with multi-command sequences. |
8618 | ;; |
8619 | '$CC '*) |
8620 | # Test whether the compiler implicitly links with -lc since on some |
8621 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8622 | # to ld, don't add -lc before -lgcc. |
dd184caf |
8623 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8624 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8625 | $rm conftest* |
ac40fd9e |
8626 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
8627 | |
8628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8629 | (eval $ac_compile) 2>&5 |
8630 | ac_status=$? |
8631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8632 | (exit $ac_status); } 2>conftest.err; then |
8633 | soname=conftest |
8634 | lib=conftest |
8635 | libobjs=conftest.$ac_objext |
8636 | deplibs= |
8637 | wl=$lt_prog_compiler_wl |
8638 | pic_flag=$lt_prog_compiler_pic |
8639 | compiler_flags=-v |
8640 | linker_flags=-v |
8641 | verstring= |
8642 | output_objdir=. |
8643 | libname=conftest |
8644 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8645 | allow_undefined_flag= |
8646 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8647 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8648 | ac_status=$? |
8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8650 | (exit $ac_status); } |
8651 | then |
8652 | archive_cmds_need_lc=no |
8653 | else |
8654 | archive_cmds_need_lc=yes |
8655 | fi |
8656 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8657 | else |
8658 | cat conftest.err 1>&5 |
8659 | fi |
8660 | $rm conftest* |
dd184caf |
8661 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8662 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8663 | ;; |
8664 | esac |
8665 | fi |
8666 | ;; |
8667 | esac |
8668 | |
dd184caf |
8669 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8670 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8671 | library_names_spec= |
8672 | libname_spec='lib$name' |
8673 | soname_spec= |
8674 | shrext_cmds=".so" |
8675 | postinstall_cmds= |
8676 | postuninstall_cmds= |
8677 | finish_cmds= |
8678 | finish_eval= |
8679 | shlibpath_var= |
8680 | shlibpath_overrides_runpath=unknown |
8681 | version_type=none |
8682 | dynamic_linker="$host_os ld.so" |
8683 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
8684 | |
d9898ee8 |
8685 | if test "$GCC" = yes; then |
ac40fd9e |
8686 | case $host_os in |
8687 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
8688 | *) lt_awk_arg="/^libraries:/" ;; |
8689 | esac |
8690 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8691 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
d9898ee8 |
8692 | # if the path contains ";" then we assume it to be the separator |
8693 | # otherwise default to the standard path separator (i.e. ":") - it is |
8694 | # assumed that no part of a normal pathname contains ";" but that should |
8695 | # okay in the real world where ";" in dirpaths is itself problematic. |
ac40fd9e |
8696 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 |
8697 | else |
ac40fd9e |
8698 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 |
8699 | fi |
ac40fd9e |
8700 | # Ok, now we have the path, separated by spaces, we can step through it |
8701 | # and add multilib dir if necessary. |
8702 | lt_tmp_lt_search_path_spec= |
8703 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
8704 | for lt_sys_path in $lt_search_path_spec; do |
8705 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
8706 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
8707 | else |
8708 | test -d "$lt_sys_path" && \ |
8709 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
8710 | fi |
8711 | done |
8712 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
8713 | BEGIN {RS=" "; FS="/|\n";} { |
8714 | lt_foo=""; |
8715 | lt_count=0; |
8716 | for (lt_i = NF; lt_i > 0; lt_i--) { |
8717 | if ($lt_i != "" && $lt_i != ".") { |
8718 | if ($lt_i == "..") { |
8719 | lt_count++; |
8720 | } else { |
8721 | if (lt_count == 0) { |
8722 | lt_foo="/" $lt_i lt_foo; |
8723 | } else { |
8724 | lt_count--; |
8725 | } |
8726 | } |
8727 | } |
8728 | } |
8729 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
8730 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
8731 | }'` |
8732 | sys_lib_search_path_spec=`echo $lt_search_path_spec` |
d9898ee8 |
8733 | else |
8734 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8735 | fi |
8736 | need_lib_prefix=unknown |
8737 | hardcode_into_libs=no |
8738 | |
8739 | # when you set need_version to no, make sure it does not cause -set_version |
8740 | # flags to be left without arguments |
8741 | need_version=unknown |
8742 | |
8743 | case $host_os in |
8744 | aix3*) |
8745 | version_type=linux |
8746 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8747 | shlibpath_var=LIBPATH |
8748 | |
8749 | # AIX 3 has no versioning support, so we append a major version to the name. |
8750 | soname_spec='${libname}${release}${shared_ext}$major' |
8751 | ;; |
8752 | |
8753 | aix4* | aix5*) |
8754 | version_type=linux |
8755 | need_lib_prefix=no |
8756 | need_version=no |
8757 | hardcode_into_libs=yes |
8758 | if test "$host_cpu" = ia64; then |
8759 | # AIX 5 supports IA64 |
8760 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8761 | shlibpath_var=LD_LIBRARY_PATH |
8762 | else |
8763 | # With GCC up to 2.95.x, collect2 would create an import file |
8764 | # for dependence libraries. The import file would start with |
8765 | # the line `#! .'. This would cause the generated library to |
8766 | # depend on `.', always an invalid library. This was fixed in |
8767 | # development snapshots of GCC prior to 3.0. |
8768 | case $host_os in |
8769 | aix4 | aix4.[01] | aix4.[01].*) |
8770 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8771 | echo ' yes ' |
8772 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8773 | : |
8774 | else |
8775 | can_build_shared=no |
8776 | fi |
8777 | ;; |
8778 | esac |
8779 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8780 | # soname into executable. Probably we can add versioning support to |
8781 | # collect2, so additional links can be useful in future. |
8782 | if test "$aix_use_runtimelinking" = yes; then |
8783 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8784 | # instead of lib<name>.a to let people know that these are not |
8785 | # typical AIX shared libraries. |
8786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8787 | else |
8788 | # We preserve .a as extension for shared libraries through AIX4.2 |
8789 | # and later when we are not doing run time linking. |
8790 | library_names_spec='${libname}${release}.a $libname.a' |
8791 | soname_spec='${libname}${release}${shared_ext}$major' |
8792 | fi |
8793 | shlibpath_var=LIBPATH |
8794 | fi |
8795 | ;; |
8796 | |
8797 | amigaos*) |
8798 | library_names_spec='$libname.ixlibrary $libname.a' |
8799 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8800 | 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' |
8801 | ;; |
8802 | |
8803 | beos*) |
8804 | library_names_spec='${libname}${shared_ext}' |
8805 | dynamic_linker="$host_os ld.so" |
8806 | shlibpath_var=LIBRARY_PATH |
8807 | ;; |
8808 | |
8809 | bsdi[45]*) |
8810 | version_type=linux |
8811 | need_version=no |
8812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8813 | soname_spec='${libname}${release}${shared_ext}$major' |
8814 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8815 | shlibpath_var=LD_LIBRARY_PATH |
8816 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8817 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8818 | # the default ld.so.conf also contains /usr/contrib/lib and |
8819 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8820 | # libtool to hard-code these into programs |
8821 | ;; |
8822 | |
8823 | cygwin* | mingw* | pw32*) |
8824 | version_type=windows |
8825 | shrext_cmds=".dll" |
8826 | need_version=no |
8827 | need_lib_prefix=no |
8828 | |
8829 | case $GCC,$host_os in |
8830 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8831 | library_names_spec='$libname.dll.a' |
8832 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8833 | postinstall_cmds='base_file=`basename \${file}`~ |
8834 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8835 | dldir=$destdir/`dirname \$dlpath`~ |
8836 | test -d \$dldir || mkdir -p \$dldir~ |
8837 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8838 | chmod a+x \$dldir/$dlname' |
8839 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8840 | dlpath=$dir/\$dldll~ |
8841 | $rm \$dlpath' |
8842 | shlibpath_overrides_runpath=yes |
8843 | |
8844 | case $host_os in |
8845 | cygwin*) |
8846 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8847 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8848 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8849 | ;; |
8850 | mingw*) |
8851 | # MinGW DLLs use traditional 'lib' prefix |
8852 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8853 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8854 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8855 | # It is most probably a Windows format PATH printed by |
8856 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8857 | # path with ; separators, and with drive letters. We can handle the |
8858 | # drive letters (cygwin fileutils understands them), so leave them, |
8859 | # especially as we might pass files found there to a mingw objdump, |
8860 | # which wouldn't understand a cygwinified path. Ahh. |
8861 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8862 | else |
8863 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8864 | fi |
8865 | ;; |
8866 | pw32*) |
8867 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8868 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8869 | ;; |
8870 | esac |
8871 | ;; |
8872 | |
8873 | *) |
8874 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8875 | ;; |
8876 | esac |
8877 | dynamic_linker='Win32 ld.exe' |
8878 | # FIXME: first we should search . and the directory the executable is in |
8879 | shlibpath_var=PATH |
8880 | ;; |
8881 | |
8882 | darwin* | rhapsody*) |
8883 | dynamic_linker="$host_os dyld" |
8884 | version_type=darwin |
8885 | need_lib_prefix=no |
8886 | need_version=no |
8887 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8888 | soname_spec='${libname}${release}${major}$shared_ext' |
8889 | shlibpath_overrides_runpath=yes |
8890 | shlibpath_var=DYLD_LIBRARY_PATH |
8891 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
8892 | |
8893 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 |
8894 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8895 | ;; |
8896 | |
8897 | dgux*) |
8898 | version_type=linux |
8899 | need_lib_prefix=no |
8900 | need_version=no |
8901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8902 | soname_spec='${libname}${release}${shared_ext}$major' |
8903 | shlibpath_var=LD_LIBRARY_PATH |
8904 | ;; |
8905 | |
8906 | freebsd1*) |
8907 | dynamic_linker=no |
8908 | ;; |
8909 | |
d9898ee8 |
8910 | freebsd* | dragonfly*) |
8911 | # DragonFly does not have aout. When/if they implement a new |
8912 | # versioning mechanism, adjust this. |
8913 | if test -x /usr/bin/objformat; then |
8914 | objformat=`/usr/bin/objformat` |
8915 | else |
8916 | case $host_os in |
8917 | freebsd[123]*) objformat=aout ;; |
8918 | *) objformat=elf ;; |
8919 | esac |
8920 | fi |
8921 | version_type=freebsd-$objformat |
8922 | case $version_type in |
8923 | freebsd-elf*) |
8924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8925 | need_version=no |
8926 | need_lib_prefix=no |
8927 | ;; |
8928 | freebsd-*) |
8929 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8930 | need_version=yes |
8931 | ;; |
8932 | esac |
8933 | shlibpath_var=LD_LIBRARY_PATH |
8934 | case $host_os in |
8935 | freebsd2*) |
8936 | shlibpath_overrides_runpath=yes |
8937 | ;; |
8938 | freebsd3.[01]* | freebsdelf3.[01]*) |
8939 | shlibpath_overrides_runpath=yes |
8940 | hardcode_into_libs=yes |
8941 | ;; |
8942 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8943 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8944 | shlibpath_overrides_runpath=no |
8945 | hardcode_into_libs=yes |
8946 | ;; |
ac40fd9e |
8947 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
8948 | shlibpath_overrides_runpath=yes |
8949 | hardcode_into_libs=yes |
8950 | ;; |
8951 | esac |
8952 | ;; |
8953 | |
8954 | gnu*) |
8955 | version_type=linux |
8956 | need_lib_prefix=no |
8957 | need_version=no |
8958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8959 | soname_spec='${libname}${release}${shared_ext}$major' |
8960 | shlibpath_var=LD_LIBRARY_PATH |
8961 | hardcode_into_libs=yes |
8962 | ;; |
8963 | |
8964 | hpux9* | hpux10* | hpux11*) |
8965 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8966 | # link against other versions. |
8967 | version_type=sunos |
8968 | need_lib_prefix=no |
8969 | need_version=no |
8970 | case $host_cpu in |
8971 | ia64*) |
8972 | shrext_cmds='.so' |
8973 | hardcode_into_libs=yes |
8974 | dynamic_linker="$host_os dld.so" |
8975 | shlibpath_var=LD_LIBRARY_PATH |
8976 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8978 | soname_spec='${libname}${release}${shared_ext}$major' |
8979 | if test "X$HPUX_IA64_MODE" = X32; then |
8980 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8981 | else |
8982 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8983 | fi |
8984 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8985 | ;; |
8986 | hppa*64*) |
8987 | shrext_cmds='.sl' |
8988 | hardcode_into_libs=yes |
8989 | dynamic_linker="$host_os dld.sl" |
8990 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8991 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8993 | soname_spec='${libname}${release}${shared_ext}$major' |
8994 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8995 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8996 | ;; |
8997 | *) |
8998 | shrext_cmds='.sl' |
8999 | dynamic_linker="$host_os dld.sl" |
9000 | shlibpath_var=SHLIB_PATH |
9001 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9003 | soname_spec='${libname}${release}${shared_ext}$major' |
9004 | ;; |
9005 | esac |
9006 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9007 | postinstall_cmds='chmod 555 $lib' |
9008 | ;; |
9009 | |
ac40fd9e |
9010 | interix[3-9]*) |
d9898ee8 |
9011 | version_type=linux |
9012 | need_lib_prefix=no |
9013 | need_version=no |
9014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9015 | soname_spec='${libname}${release}${shared_ext}$major' |
9016 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
9017 | shlibpath_var=LD_LIBRARY_PATH |
9018 | shlibpath_overrides_runpath=no |
9019 | hardcode_into_libs=yes |
9020 | ;; |
9021 | |
9022 | irix5* | irix6* | nonstopux*) |
9023 | case $host_os in |
9024 | nonstopux*) version_type=nonstopux ;; |
9025 | *) |
9026 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9027 | version_type=linux |
9028 | else |
9029 | version_type=irix |
9030 | fi ;; |
9031 | esac |
9032 | need_lib_prefix=no |
9033 | need_version=no |
9034 | soname_spec='${libname}${release}${shared_ext}$major' |
9035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9036 | case $host_os in |
9037 | irix5* | nonstopux*) |
9038 | libsuff= shlibsuff= |
9039 | ;; |
9040 | *) |
9041 | case $LD in # libtool.m4 will add one of these switches to LD |
9042 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9043 | libsuff= shlibsuff= libmagic=32-bit;; |
9044 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9045 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9046 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9047 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9048 | *) libsuff= shlibsuff= libmagic=never-match;; |
9049 | esac |
9050 | ;; |
9051 | esac |
9052 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9053 | shlibpath_overrides_runpath=no |
9054 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9055 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9056 | hardcode_into_libs=yes |
9057 | ;; |
9058 | |
9059 | # No shared lib support for Linux oldld, aout, or coff. |
9060 | linux*oldld* | linux*aout* | linux*coff*) |
9061 | dynamic_linker=no |
9062 | ;; |
9063 | |
9064 | # This must be Linux ELF. |
ac40fd9e |
9065 | linux* | k*bsd*-gnu) |
d9898ee8 |
9066 | version_type=linux |
9067 | need_lib_prefix=no |
9068 | need_version=no |
9069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9070 | soname_spec='${libname}${release}${shared_ext}$major' |
9071 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9072 | shlibpath_var=LD_LIBRARY_PATH |
9073 | shlibpath_overrides_runpath=no |
9074 | # This implies no fast_install, which is unacceptable. |
9075 | # Some rework will be needed to allow for fast_install |
9076 | # before this can be enabled. |
9077 | hardcode_into_libs=yes |
ac40fd9e |
9078 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9079 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
9080 | |
9081 | # Append ld.so.conf contents to the search path |
9082 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
9083 | 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' ' '` |
9084 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
9085 | fi |
9086 | |
9087 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9088 | # powerpc, because MkLinux only supported shared libraries with the |
9089 | # GNU dynamic linker. Since this was broken with cross compilers, |
9090 | # most powerpc-linux boxes support dynamic linking these days and |
9091 | # people can always --disable-shared, the test was removed, and we |
9092 | # assume the GNU/Linux dynamic linker is in use. |
9093 | dynamic_linker='GNU/Linux ld.so' |
9094 | ;; |
9095 | |
d9898ee8 |
9096 | netbsd*) |
9097 | version_type=sunos |
9098 | need_lib_prefix=no |
9099 | need_version=no |
9100 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9102 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9103 | dynamic_linker='NetBSD (a.out) ld.so' |
9104 | else |
9105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9106 | soname_spec='${libname}${release}${shared_ext}$major' |
9107 | dynamic_linker='NetBSD ld.elf_so' |
9108 | fi |
9109 | shlibpath_var=LD_LIBRARY_PATH |
9110 | shlibpath_overrides_runpath=yes |
9111 | hardcode_into_libs=yes |
9112 | ;; |
9113 | |
9114 | newsos6) |
9115 | version_type=linux |
9116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9117 | shlibpath_var=LD_LIBRARY_PATH |
9118 | shlibpath_overrides_runpath=yes |
9119 | ;; |
9120 | |
9121 | nto-qnx*) |
9122 | version_type=linux |
9123 | need_lib_prefix=no |
9124 | need_version=no |
9125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9126 | soname_spec='${libname}${release}${shared_ext}$major' |
9127 | shlibpath_var=LD_LIBRARY_PATH |
9128 | shlibpath_overrides_runpath=yes |
9129 | ;; |
9130 | |
9131 | openbsd*) |
9132 | version_type=sunos |
9133 | sys_lib_dlsearch_path_spec="/usr/lib" |
9134 | need_lib_prefix=no |
9135 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9136 | case $host_os in |
9137 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9138 | *) need_version=no ;; |
9139 | esac |
9140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9141 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9142 | shlibpath_var=LD_LIBRARY_PATH |
9143 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9144 | case $host_os in |
9145 | openbsd2.[89] | openbsd2.[89].*) |
9146 | shlibpath_overrides_runpath=no |
9147 | ;; |
9148 | *) |
9149 | shlibpath_overrides_runpath=yes |
9150 | ;; |
9151 | esac |
9152 | else |
9153 | shlibpath_overrides_runpath=yes |
9154 | fi |
9155 | ;; |
9156 | |
9157 | os2*) |
9158 | libname_spec='$name' |
9159 | shrext_cmds=".dll" |
9160 | need_lib_prefix=no |
9161 | library_names_spec='$libname${shared_ext} $libname.a' |
9162 | dynamic_linker='OS/2 ld.exe' |
9163 | shlibpath_var=LIBPATH |
9164 | ;; |
9165 | |
9166 | osf3* | osf4* | osf5*) |
9167 | version_type=osf |
9168 | need_lib_prefix=no |
9169 | need_version=no |
9170 | soname_spec='${libname}${release}${shared_ext}$major' |
9171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9172 | shlibpath_var=LD_LIBRARY_PATH |
9173 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9174 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9175 | ;; |
9176 | |
ac40fd9e |
9177 | rdos*) |
9178 | dynamic_linker=no |
9179 | ;; |
9180 | |
d9898ee8 |
9181 | solaris*) |
9182 | version_type=linux |
9183 | need_lib_prefix=no |
9184 | need_version=no |
9185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9186 | soname_spec='${libname}${release}${shared_ext}$major' |
9187 | shlibpath_var=LD_LIBRARY_PATH |
9188 | shlibpath_overrides_runpath=yes |
9189 | hardcode_into_libs=yes |
9190 | # ldd complains unless libraries are executable |
9191 | postinstall_cmds='chmod +x $lib' |
9192 | ;; |
9193 | |
9194 | sunos4*) |
9195 | version_type=sunos |
9196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9197 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9198 | shlibpath_var=LD_LIBRARY_PATH |
9199 | shlibpath_overrides_runpath=yes |
9200 | if test "$with_gnu_ld" = yes; then |
9201 | need_lib_prefix=no |
9202 | fi |
9203 | need_version=yes |
9204 | ;; |
9205 | |
9206 | sysv4 | sysv4.3*) |
9207 | version_type=linux |
9208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9209 | soname_spec='${libname}${release}${shared_ext}$major' |
9210 | shlibpath_var=LD_LIBRARY_PATH |
9211 | case $host_vendor in |
9212 | sni) |
9213 | shlibpath_overrides_runpath=no |
9214 | need_lib_prefix=no |
9215 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9216 | runpath_var=LD_RUN_PATH |
9217 | ;; |
9218 | siemens) |
9219 | need_lib_prefix=no |
9220 | ;; |
9221 | motorola) |
9222 | need_lib_prefix=no |
9223 | need_version=no |
9224 | shlibpath_overrides_runpath=no |
9225 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9226 | ;; |
9227 | esac |
9228 | ;; |
9229 | |
9230 | sysv4*MP*) |
9231 | if test -d /usr/nec ;then |
9232 | version_type=linux |
9233 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9234 | soname_spec='$libname${shared_ext}.$major' |
9235 | shlibpath_var=LD_LIBRARY_PATH |
9236 | fi |
9237 | ;; |
9238 | |
9239 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9240 | version_type=freebsd-elf |
9241 | need_lib_prefix=no |
9242 | need_version=no |
9243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9244 | soname_spec='${libname}${release}${shared_ext}$major' |
9245 | shlibpath_var=LD_LIBRARY_PATH |
9246 | hardcode_into_libs=yes |
9247 | if test "$with_gnu_ld" = yes; then |
9248 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9249 | shlibpath_overrides_runpath=no |
9250 | else |
9251 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9252 | shlibpath_overrides_runpath=yes |
9253 | case $host_os in |
9254 | sco3.2v5*) |
9255 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9256 | ;; |
9257 | esac |
9258 | fi |
9259 | sys_lib_dlsearch_path_spec='/usr/lib' |
9260 | ;; |
9261 | |
9262 | uts4*) |
9263 | version_type=linux |
9264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9265 | soname_spec='${libname}${release}${shared_ext}$major' |
9266 | shlibpath_var=LD_LIBRARY_PATH |
9267 | ;; |
9268 | |
9269 | *) |
9270 | dynamic_linker=no |
9271 | ;; |
9272 | esac |
dd184caf |
9273 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9274 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9275 | test "$dynamic_linker" = no && can_build_shared=no |
9276 | |
9277 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9278 | if test "$GCC" = yes; then |
9279 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9280 | fi |
9281 | |
dd184caf |
9282 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9283 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9284 | hardcode_action= |
9285 | if test -n "$hardcode_libdir_flag_spec" || \ |
9286 | test -n "$runpath_var" || \ |
9287 | test "X$hardcode_automatic" = "Xyes" ; then |
9288 | |
9289 | # We can hardcode non-existant directories. |
9290 | if test "$hardcode_direct" != no && |
9291 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9292 | # have to relink, otherwise we might link with an installed library |
9293 | # when we should be linking with a yet-to-be-installed one |
9294 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9295 | test "$hardcode_minus_L" != no; then |
9296 | # Linking always hardcodes the temporary library directory. |
9297 | hardcode_action=relink |
9298 | else |
9299 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9300 | hardcode_action=immediate |
9301 | fi |
9302 | else |
9303 | # We cannot hardcode anything, or else we can only hardcode existing |
9304 | # directories. |
9305 | hardcode_action=unsupported |
9306 | fi |
dd184caf |
9307 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9308 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9309 | |
9310 | if test "$hardcode_action" = relink; then |
9311 | # Fast installation is not supported |
9312 | enable_fast_install=no |
9313 | elif test "$shlibpath_overrides_runpath" = yes || |
9314 | test "$enable_shared" = no; then |
9315 | # Fast installation is not necessary |
9316 | enable_fast_install=needless |
9317 | fi |
9318 | |
9319 | striplib= |
9320 | old_striplib= |
dd184caf |
9321 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9322 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9323 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9324 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9325 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
dd184caf |
9326 | { echo "$as_me:$LINENO: result: yes" >&5 |
9327 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9328 | else |
9329 | # FIXME - insert some real tests, host_os isn't really good enough |
9330 | case $host_os in |
9331 | darwin*) |
9332 | if test -n "$STRIP" ; then |
9333 | striplib="$STRIP -x" |
ac40fd9e |
9334 | old_striplib="$STRIP -S" |
dd184caf |
9335 | { echo "$as_me:$LINENO: result: yes" >&5 |
9336 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9337 | else |
dd184caf |
9338 | { echo "$as_me:$LINENO: result: no" >&5 |
9339 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9340 | fi |
9341 | ;; |
9342 | *) |
dd184caf |
9343 | { echo "$as_me:$LINENO: result: no" >&5 |
9344 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9345 | ;; |
9346 | esac |
9347 | fi |
9348 | |
9349 | if test "x$enable_dlopen" != xyes; then |
9350 | enable_dlopen=unknown |
9351 | enable_dlopen_self=unknown |
9352 | enable_dlopen_self_static=unknown |
9353 | else |
9354 | lt_cv_dlopen=no |
9355 | lt_cv_dlopen_libs= |
9356 | |
9357 | case $host_os in |
9358 | beos*) |
9359 | lt_cv_dlopen="load_add_on" |
9360 | lt_cv_dlopen_libs= |
9361 | lt_cv_dlopen_self=yes |
9362 | ;; |
9363 | |
9364 | mingw* | pw32*) |
9365 | lt_cv_dlopen="LoadLibrary" |
9366 | lt_cv_dlopen_libs= |
9367 | ;; |
9368 | |
9369 | cygwin*) |
9370 | lt_cv_dlopen="dlopen" |
9371 | lt_cv_dlopen_libs= |
9372 | ;; |
9373 | |
9374 | darwin*) |
9375 | # if libdl is installed we need to link against it |
dd184caf |
9376 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9377 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9378 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9380 | else |
9381 | ac_check_lib_save_LIBS=$LIBS |
9382 | LIBS="-ldl $LIBS" |
9383 | cat >conftest.$ac_ext <<_ACEOF |
9384 | /* confdefs.h. */ |
9385 | _ACEOF |
9386 | cat confdefs.h >>conftest.$ac_ext |
9387 | cat >>conftest.$ac_ext <<_ACEOF |
9388 | /* end confdefs.h. */ |
9389 | |
dd184caf |
9390 | /* Override any GCC internal prototype to avoid an error. |
9391 | Use char because int might match the return type of a GCC |
9392 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9393 | #ifdef __cplusplus |
9394 | extern "C" |
9395 | #endif |
d9898ee8 |
9396 | char dlopen (); |
9397 | int |
9398 | main () |
9399 | { |
dd184caf |
9400 | return dlopen (); |
d9898ee8 |
9401 | ; |
9402 | return 0; |
9403 | } |
9404 | _ACEOF |
9405 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9406 | if { (ac_try="$ac_link" |
9407 | case "(($ac_try" in |
9408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9409 | *) ac_try_echo=$ac_try;; |
9410 | esac |
9411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9412 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9413 | ac_status=$? |
9414 | grep -v '^ *+' conftest.er1 >conftest.err |
9415 | rm -f conftest.er1 |
9416 | cat conftest.err >&5 |
9417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9418 | (exit $ac_status); } && { |
9419 | test -z "$ac_c_werror_flag" || |
9420 | test ! -s conftest.err |
9421 | } && test -s conftest$ac_exeext && |
9422 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9423 | ac_cv_lib_dl_dlopen=yes |
9424 | else |
9425 | echo "$as_me: failed program was:" >&5 |
9426 | sed 's/^/| /' conftest.$ac_ext >&5 |
9427 | |
dd184caf |
9428 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9429 | fi |
dd184caf |
9430 | |
9431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9432 | conftest$ac_exeext conftest.$ac_ext |
9433 | LIBS=$ac_check_lib_save_LIBS |
9434 | fi |
dd184caf |
9435 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9436 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9437 | if test $ac_cv_lib_dl_dlopen = yes; then |
9438 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9439 | else |
9440 | |
9441 | lt_cv_dlopen="dyld" |
9442 | lt_cv_dlopen_libs= |
9443 | lt_cv_dlopen_self=yes |
9444 | |
9445 | fi |
9446 | |
9447 | ;; |
9448 | |
9449 | *) |
dd184caf |
9450 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9451 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9452 | if test "${ac_cv_func_shl_load+set}" = set; then |
9453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9454 | else |
9455 | cat >conftest.$ac_ext <<_ACEOF |
9456 | /* confdefs.h. */ |
9457 | _ACEOF |
9458 | cat confdefs.h >>conftest.$ac_ext |
9459 | cat >>conftest.$ac_ext <<_ACEOF |
9460 | /* end confdefs.h. */ |
9461 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9463 | #define shl_load innocuous_shl_load |
9464 | |
9465 | /* System header to define __stub macros and hopefully few prototypes, |
9466 | which can conflict with char shl_load (); below. |
9467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9468 | <limits.h> exists even on freestanding compilers. */ |
9469 | |
9470 | #ifdef __STDC__ |
9471 | # include <limits.h> |
9472 | #else |
9473 | # include <assert.h> |
9474 | #endif |
9475 | |
9476 | #undef shl_load |
9477 | |
dd184caf |
9478 | /* Override any GCC internal prototype to avoid an error. |
9479 | Use char because int might match the return type of a GCC |
9480 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9481 | #ifdef __cplusplus |
9482 | extern "C" |
d9898ee8 |
9483 | #endif |
d9898ee8 |
9484 | char shl_load (); |
9485 | /* The GNU C library defines this for functions which it implements |
9486 | to always fail with ENOSYS. Some functions are actually named |
9487 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9488 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9489 | choke me |
d9898ee8 |
9490 | #endif |
9491 | |
9492 | int |
9493 | main () |
9494 | { |
dd184caf |
9495 | return shl_load (); |
d9898ee8 |
9496 | ; |
9497 | return 0; |
9498 | } |
9499 | _ACEOF |
9500 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9501 | if { (ac_try="$ac_link" |
9502 | case "(($ac_try" in |
9503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9504 | *) ac_try_echo=$ac_try;; |
9505 | esac |
9506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9507 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9508 | ac_status=$? |
9509 | grep -v '^ *+' conftest.er1 >conftest.err |
9510 | rm -f conftest.er1 |
9511 | cat conftest.err >&5 |
9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9513 | (exit $ac_status); } && { |
9514 | test -z "$ac_c_werror_flag" || |
9515 | test ! -s conftest.err |
9516 | } && test -s conftest$ac_exeext && |
9517 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9518 | ac_cv_func_shl_load=yes |
9519 | else |
9520 | echo "$as_me: failed program was:" >&5 |
9521 | sed 's/^/| /' conftest.$ac_ext >&5 |
9522 | |
dd184caf |
9523 | ac_cv_func_shl_load=no |
d9898ee8 |
9524 | fi |
dd184caf |
9525 | |
9526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9527 | conftest$ac_exeext conftest.$ac_ext |
9528 | fi |
dd184caf |
9529 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9530 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9531 | if test $ac_cv_func_shl_load = yes; then |
9532 | lt_cv_dlopen="shl_load" |
9533 | else |
dd184caf |
9534 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9535 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9536 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9538 | else |
9539 | ac_check_lib_save_LIBS=$LIBS |
9540 | LIBS="-ldld $LIBS" |
9541 | cat >conftest.$ac_ext <<_ACEOF |
9542 | /* confdefs.h. */ |
9543 | _ACEOF |
9544 | cat confdefs.h >>conftest.$ac_ext |
9545 | cat >>conftest.$ac_ext <<_ACEOF |
9546 | /* end confdefs.h. */ |
9547 | |
dd184caf |
9548 | /* Override any GCC internal prototype to avoid an error. |
9549 | Use char because int might match the return type of a GCC |
9550 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9551 | #ifdef __cplusplus |
9552 | extern "C" |
9553 | #endif |
d9898ee8 |
9554 | char shl_load (); |
9555 | int |
9556 | main () |
9557 | { |
dd184caf |
9558 | return shl_load (); |
d9898ee8 |
9559 | ; |
9560 | return 0; |
9561 | } |
9562 | _ACEOF |
9563 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9564 | if { (ac_try="$ac_link" |
9565 | case "(($ac_try" in |
9566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9567 | *) ac_try_echo=$ac_try;; |
9568 | esac |
9569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9570 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9571 | ac_status=$? |
9572 | grep -v '^ *+' conftest.er1 >conftest.err |
9573 | rm -f conftest.er1 |
9574 | cat conftest.err >&5 |
9575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9576 | (exit $ac_status); } && { |
9577 | test -z "$ac_c_werror_flag" || |
9578 | test ! -s conftest.err |
9579 | } && test -s conftest$ac_exeext && |
9580 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9581 | ac_cv_lib_dld_shl_load=yes |
9582 | else |
9583 | echo "$as_me: failed program was:" >&5 |
9584 | sed 's/^/| /' conftest.$ac_ext >&5 |
9585 | |
dd184caf |
9586 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9587 | fi |
dd184caf |
9588 | |
9589 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9590 | conftest$ac_exeext conftest.$ac_ext |
9591 | LIBS=$ac_check_lib_save_LIBS |
9592 | fi |
dd184caf |
9593 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9594 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9595 | if test $ac_cv_lib_dld_shl_load = yes; then |
9596 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9597 | else |
dd184caf |
9598 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9599 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9600 | if test "${ac_cv_func_dlopen+set}" = set; then |
9601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9602 | else |
9603 | cat >conftest.$ac_ext <<_ACEOF |
9604 | /* confdefs.h. */ |
9605 | _ACEOF |
9606 | cat confdefs.h >>conftest.$ac_ext |
9607 | cat >>conftest.$ac_ext <<_ACEOF |
9608 | /* end confdefs.h. */ |
9609 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9610 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9611 | #define dlopen innocuous_dlopen |
9612 | |
9613 | /* System header to define __stub macros and hopefully few prototypes, |
9614 | which can conflict with char dlopen (); below. |
9615 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9616 | <limits.h> exists even on freestanding compilers. */ |
9617 | |
9618 | #ifdef __STDC__ |
9619 | # include <limits.h> |
9620 | #else |
9621 | # include <assert.h> |
9622 | #endif |
9623 | |
9624 | #undef dlopen |
9625 | |
dd184caf |
9626 | /* Override any GCC internal prototype to avoid an error. |
9627 | Use char because int might match the return type of a GCC |
9628 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9629 | #ifdef __cplusplus |
9630 | extern "C" |
d9898ee8 |
9631 | #endif |
d9898ee8 |
9632 | char dlopen (); |
9633 | /* The GNU C library defines this for functions which it implements |
9634 | to always fail with ENOSYS. Some functions are actually named |
9635 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9636 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9637 | choke me |
d9898ee8 |
9638 | #endif |
9639 | |
9640 | int |
9641 | main () |
9642 | { |
dd184caf |
9643 | return dlopen (); |
d9898ee8 |
9644 | ; |
9645 | return 0; |
9646 | } |
9647 | _ACEOF |
9648 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9649 | if { (ac_try="$ac_link" |
9650 | case "(($ac_try" in |
9651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9652 | *) ac_try_echo=$ac_try;; |
9653 | esac |
9654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9655 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9656 | ac_status=$? |
9657 | grep -v '^ *+' conftest.er1 >conftest.err |
9658 | rm -f conftest.er1 |
9659 | cat conftest.err >&5 |
9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9661 | (exit $ac_status); } && { |
9662 | test -z "$ac_c_werror_flag" || |
9663 | test ! -s conftest.err |
9664 | } && test -s conftest$ac_exeext && |
9665 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9666 | ac_cv_func_dlopen=yes |
9667 | else |
9668 | echo "$as_me: failed program was:" >&5 |
9669 | sed 's/^/| /' conftest.$ac_ext >&5 |
9670 | |
dd184caf |
9671 | ac_cv_func_dlopen=no |
d9898ee8 |
9672 | fi |
dd184caf |
9673 | |
9674 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9675 | conftest$ac_exeext conftest.$ac_ext |
9676 | fi |
dd184caf |
9677 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9678 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9679 | if test $ac_cv_func_dlopen = yes; then |
9680 | lt_cv_dlopen="dlopen" |
9681 | else |
dd184caf |
9682 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9683 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9684 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9686 | else |
9687 | ac_check_lib_save_LIBS=$LIBS |
9688 | LIBS="-ldl $LIBS" |
9689 | cat >conftest.$ac_ext <<_ACEOF |
9690 | /* confdefs.h. */ |
9691 | _ACEOF |
9692 | cat confdefs.h >>conftest.$ac_ext |
9693 | cat >>conftest.$ac_ext <<_ACEOF |
9694 | /* end confdefs.h. */ |
9695 | |
dd184caf |
9696 | /* Override any GCC internal prototype to avoid an error. |
9697 | Use char because int might match the return type of a GCC |
9698 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9699 | #ifdef __cplusplus |
9700 | extern "C" |
9701 | #endif |
d9898ee8 |
9702 | char dlopen (); |
9703 | int |
9704 | main () |
9705 | { |
dd184caf |
9706 | return dlopen (); |
d9898ee8 |
9707 | ; |
9708 | return 0; |
9709 | } |
9710 | _ACEOF |
9711 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9712 | if { (ac_try="$ac_link" |
9713 | case "(($ac_try" in |
9714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9715 | *) ac_try_echo=$ac_try;; |
9716 | esac |
9717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9718 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9719 | ac_status=$? |
9720 | grep -v '^ *+' conftest.er1 >conftest.err |
9721 | rm -f conftest.er1 |
9722 | cat conftest.err >&5 |
9723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9724 | (exit $ac_status); } && { |
9725 | test -z "$ac_c_werror_flag" || |
9726 | test ! -s conftest.err |
9727 | } && test -s conftest$ac_exeext && |
9728 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9729 | ac_cv_lib_dl_dlopen=yes |
9730 | else |
9731 | echo "$as_me: failed program was:" >&5 |
9732 | sed 's/^/| /' conftest.$ac_ext >&5 |
9733 | |
dd184caf |
9734 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9735 | fi |
dd184caf |
9736 | |
9737 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9738 | conftest$ac_exeext conftest.$ac_ext |
9739 | LIBS=$ac_check_lib_save_LIBS |
9740 | fi |
dd184caf |
9741 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9742 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9743 | if test $ac_cv_lib_dl_dlopen = yes; then |
9744 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9745 | else |
dd184caf |
9746 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9747 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9748 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9750 | else |
9751 | ac_check_lib_save_LIBS=$LIBS |
9752 | LIBS="-lsvld $LIBS" |
9753 | cat >conftest.$ac_ext <<_ACEOF |
9754 | /* confdefs.h. */ |
9755 | _ACEOF |
9756 | cat confdefs.h >>conftest.$ac_ext |
9757 | cat >>conftest.$ac_ext <<_ACEOF |
9758 | /* end confdefs.h. */ |
9759 | |
dd184caf |
9760 | /* Override any GCC internal prototype to avoid an error. |
9761 | Use char because int might match the return type of a GCC |
9762 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9763 | #ifdef __cplusplus |
9764 | extern "C" |
9765 | #endif |
d9898ee8 |
9766 | char dlopen (); |
9767 | int |
9768 | main () |
9769 | { |
dd184caf |
9770 | return dlopen (); |
d9898ee8 |
9771 | ; |
9772 | return 0; |
9773 | } |
9774 | _ACEOF |
9775 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9776 | if { (ac_try="$ac_link" |
9777 | case "(($ac_try" in |
9778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9779 | *) ac_try_echo=$ac_try;; |
9780 | esac |
9781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9782 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9783 | ac_status=$? |
9784 | grep -v '^ *+' conftest.er1 >conftest.err |
9785 | rm -f conftest.er1 |
9786 | cat conftest.err >&5 |
9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9788 | (exit $ac_status); } && { |
9789 | test -z "$ac_c_werror_flag" || |
9790 | test ! -s conftest.err |
9791 | } && test -s conftest$ac_exeext && |
9792 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9793 | ac_cv_lib_svld_dlopen=yes |
9794 | else |
9795 | echo "$as_me: failed program was:" >&5 |
9796 | sed 's/^/| /' conftest.$ac_ext >&5 |
9797 | |
dd184caf |
9798 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9799 | fi |
dd184caf |
9800 | |
9801 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9802 | conftest$ac_exeext conftest.$ac_ext |
9803 | LIBS=$ac_check_lib_save_LIBS |
9804 | fi |
dd184caf |
9805 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9806 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9807 | if test $ac_cv_lib_svld_dlopen = yes; then |
9808 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9809 | else |
dd184caf |
9810 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9811 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9812 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9814 | else |
9815 | ac_check_lib_save_LIBS=$LIBS |
9816 | LIBS="-ldld $LIBS" |
9817 | cat >conftest.$ac_ext <<_ACEOF |
9818 | /* confdefs.h. */ |
9819 | _ACEOF |
9820 | cat confdefs.h >>conftest.$ac_ext |
9821 | cat >>conftest.$ac_ext <<_ACEOF |
9822 | /* end confdefs.h. */ |
9823 | |
dd184caf |
9824 | /* Override any GCC internal prototype to avoid an error. |
9825 | Use char because int might match the return type of a GCC |
9826 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9827 | #ifdef __cplusplus |
9828 | extern "C" |
9829 | #endif |
d9898ee8 |
9830 | char dld_link (); |
9831 | int |
9832 | main () |
9833 | { |
dd184caf |
9834 | return dld_link (); |
d9898ee8 |
9835 | ; |
9836 | return 0; |
9837 | } |
9838 | _ACEOF |
9839 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9840 | if { (ac_try="$ac_link" |
9841 | case "(($ac_try" in |
9842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9843 | *) ac_try_echo=$ac_try;; |
9844 | esac |
9845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9846 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9847 | ac_status=$? |
9848 | grep -v '^ *+' conftest.er1 >conftest.err |
9849 | rm -f conftest.er1 |
9850 | cat conftest.err >&5 |
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9852 | (exit $ac_status); } && { |
9853 | test -z "$ac_c_werror_flag" || |
9854 | test ! -s conftest.err |
9855 | } && test -s conftest$ac_exeext && |
9856 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9857 | ac_cv_lib_dld_dld_link=yes |
9858 | else |
9859 | echo "$as_me: failed program was:" >&5 |
9860 | sed 's/^/| /' conftest.$ac_ext >&5 |
9861 | |
dd184caf |
9862 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9863 | fi |
dd184caf |
9864 | |
9865 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9866 | conftest$ac_exeext conftest.$ac_ext |
9867 | LIBS=$ac_check_lib_save_LIBS |
9868 | fi |
dd184caf |
9869 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9870 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9871 | if test $ac_cv_lib_dld_dld_link = yes; then |
9872 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9873 | fi |
9874 | |
9875 | |
9876 | fi |
9877 | |
9878 | |
9879 | fi |
9880 | |
9881 | |
9882 | fi |
9883 | |
9884 | |
9885 | fi |
9886 | |
9887 | |
9888 | fi |
9889 | |
9890 | ;; |
9891 | esac |
9892 | |
9893 | if test "x$lt_cv_dlopen" != xno; then |
9894 | enable_dlopen=yes |
9895 | else |
9896 | enable_dlopen=no |
9897 | fi |
9898 | |
9899 | case $lt_cv_dlopen in |
9900 | dlopen) |
9901 | save_CPPFLAGS="$CPPFLAGS" |
9902 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9903 | |
9904 | save_LDFLAGS="$LDFLAGS" |
9905 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9906 | |
9907 | save_LIBS="$LIBS" |
9908 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9909 | |
dd184caf |
9910 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9911 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9912 | if test "${lt_cv_dlopen_self+set}" = set; then |
9913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9914 | else |
9915 | if test "$cross_compiling" = yes; then : |
9916 | lt_cv_dlopen_self=cross |
9917 | else |
9918 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9919 | lt_status=$lt_dlunknown |
9920 | cat > conftest.$ac_ext <<EOF |
ac40fd9e |
9921 | #line 9921 "configure" |
d9898ee8 |
9922 | #include "confdefs.h" |
9923 | |
9924 | #if HAVE_DLFCN_H |
9925 | #include <dlfcn.h> |
9926 | #endif |
9927 | |
9928 | #include <stdio.h> |
9929 | |
9930 | #ifdef RTLD_GLOBAL |
9931 | # define LT_DLGLOBAL RTLD_GLOBAL |
9932 | #else |
9933 | # ifdef DL_GLOBAL |
9934 | # define LT_DLGLOBAL DL_GLOBAL |
9935 | # else |
9936 | # define LT_DLGLOBAL 0 |
9937 | # endif |
9938 | #endif |
9939 | |
9940 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9941 | find out it does not work in some platform. */ |
9942 | #ifndef LT_DLLAZY_OR_NOW |
9943 | # ifdef RTLD_LAZY |
9944 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9945 | # else |
9946 | # ifdef DL_LAZY |
9947 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9948 | # else |
9949 | # ifdef RTLD_NOW |
9950 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9951 | # else |
9952 | # ifdef DL_NOW |
9953 | # define LT_DLLAZY_OR_NOW DL_NOW |
9954 | # else |
9955 | # define LT_DLLAZY_OR_NOW 0 |
9956 | # endif |
9957 | # endif |
9958 | # endif |
9959 | # endif |
9960 | #endif |
9961 | |
9962 | #ifdef __cplusplus |
9963 | extern "C" void exit (int); |
9964 | #endif |
9965 | |
9966 | void fnord() { int i=42;} |
9967 | int main () |
9968 | { |
9969 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9970 | int status = $lt_dlunknown; |
9971 | |
9972 | if (self) |
9973 | { |
9974 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9975 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9976 | /* dlclose (self); */ |
9977 | } |
9978 | else |
9979 | puts (dlerror ()); |
9980 | |
9981 | exit (status); |
9982 | } |
9983 | EOF |
9984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9985 | (eval $ac_link) 2>&5 |
9986 | ac_status=$? |
9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9988 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9989 | (./conftest; exit; ) >&5 2>/dev/null |
9990 | lt_status=$? |
9991 | case x$lt_status in |
9992 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9993 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9994 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9995 | esac |
9996 | else : |
9997 | # compilation failed |
9998 | lt_cv_dlopen_self=no |
9999 | fi |
10000 | fi |
10001 | rm -fr conftest* |
10002 | |
10003 | |
10004 | fi |
dd184caf |
10005 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10006 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
10007 | |
10008 | if test "x$lt_cv_dlopen_self" = xyes; then |
10009 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
dd184caf |
10010 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10011 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10012 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10014 | else |
10015 | if test "$cross_compiling" = yes; then : |
10016 | lt_cv_dlopen_self_static=cross |
10017 | else |
10018 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10019 | lt_status=$lt_dlunknown |
10020 | cat > conftest.$ac_ext <<EOF |
ac40fd9e |
10021 | #line 10021 "configure" |
d9898ee8 |
10022 | #include "confdefs.h" |
10023 | |
10024 | #if HAVE_DLFCN_H |
10025 | #include <dlfcn.h> |
10026 | #endif |
10027 | |
10028 | #include <stdio.h> |
10029 | |
10030 | #ifdef RTLD_GLOBAL |
10031 | # define LT_DLGLOBAL RTLD_GLOBAL |
10032 | #else |
10033 | # ifdef DL_GLOBAL |
10034 | # define LT_DLGLOBAL DL_GLOBAL |
10035 | # else |
10036 | # define LT_DLGLOBAL 0 |
10037 | # endif |
10038 | #endif |
10039 | |
10040 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10041 | find out it does not work in some platform. */ |
10042 | #ifndef LT_DLLAZY_OR_NOW |
10043 | # ifdef RTLD_LAZY |
10044 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10045 | # else |
10046 | # ifdef DL_LAZY |
10047 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10048 | # else |
10049 | # ifdef RTLD_NOW |
10050 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10051 | # else |
10052 | # ifdef DL_NOW |
10053 | # define LT_DLLAZY_OR_NOW DL_NOW |
10054 | # else |
10055 | # define LT_DLLAZY_OR_NOW 0 |
10056 | # endif |
10057 | # endif |
10058 | # endif |
10059 | # endif |
10060 | #endif |
10061 | |
10062 | #ifdef __cplusplus |
10063 | extern "C" void exit (int); |
10064 | #endif |
10065 | |
10066 | void fnord() { int i=42;} |
10067 | int main () |
10068 | { |
10069 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10070 | int status = $lt_dlunknown; |
10071 | |
10072 | if (self) |
10073 | { |
10074 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10075 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10076 | /* dlclose (self); */ |
10077 | } |
10078 | else |
10079 | puts (dlerror ()); |
10080 | |
10081 | exit (status); |
10082 | } |
10083 | EOF |
10084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10085 | (eval $ac_link) 2>&5 |
10086 | ac_status=$? |
10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10088 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10089 | (./conftest; exit; ) >&5 2>/dev/null |
10090 | lt_status=$? |
10091 | case x$lt_status in |
10092 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10093 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10094 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10095 | esac |
10096 | else : |
10097 | # compilation failed |
10098 | lt_cv_dlopen_self_static=no |
10099 | fi |
10100 | fi |
10101 | rm -fr conftest* |
10102 | |
10103 | |
10104 | fi |
dd184caf |
10105 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10106 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10107 | fi |
10108 | |
10109 | CPPFLAGS="$save_CPPFLAGS" |
10110 | LDFLAGS="$save_LDFLAGS" |
10111 | LIBS="$save_LIBS" |
10112 | ;; |
10113 | esac |
10114 | |
10115 | case $lt_cv_dlopen_self in |
10116 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10117 | *) enable_dlopen_self=unknown ;; |
10118 | esac |
10119 | |
10120 | case $lt_cv_dlopen_self_static in |
10121 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10122 | *) enable_dlopen_self_static=unknown ;; |
10123 | esac |
10124 | fi |
10125 | |
10126 | |
10127 | # Report which library types will actually be built |
dd184caf |
10128 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10129 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10130 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10131 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10132 | |
dd184caf |
10133 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10134 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10135 | test "$can_build_shared" = "no" && enable_shared=no |
10136 | |
10137 | # On AIX, shared libraries and static libraries use the same namespace, and |
10138 | # are all built from PIC. |
10139 | case $host_os in |
10140 | aix3*) |
10141 | test "$enable_shared" = yes && enable_static=no |
10142 | if test -n "$RANLIB"; then |
10143 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10144 | postinstall_cmds='$RANLIB $lib' |
10145 | fi |
10146 | ;; |
10147 | |
10148 | aix4* | aix5*) |
10149 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10150 | test "$enable_shared" = yes && enable_static=no |
10151 | fi |
10152 | ;; |
10153 | esac |
dd184caf |
10154 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10155 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10156 | |
dd184caf |
10157 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10158 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10159 | # Make sure either enable_shared or enable_static is yes. |
10160 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
10161 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10162 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10163 | |
10164 | # The else clause should only fire when bootstrapping the |
10165 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10166 | # with your package, and you will get complaints that there are |
10167 | # no rules to generate ltmain.sh. |
10168 | if test -f "$ltmain"; then |
10169 | # See if we are running on zsh, and set the options which allow our commands through |
10170 | # without removal of \ escapes. |
10171 | if test -n "${ZSH_VERSION+set}" ; then |
10172 | setopt NO_GLOB_SUBST |
10173 | fi |
10174 | # Now quote all the things that may contain metacharacters while being |
10175 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10176 | # variables and quote the copies for generation of the libtool script. |
10177 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10178 | SED SHELL STRIP \ |
10179 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10180 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10181 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10182 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10183 | lt_cv_sys_global_symbol_to_c_name_address \ |
10184 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10185 | old_postinstall_cmds old_postuninstall_cmds \ |
10186 | compiler \ |
10187 | CC \ |
10188 | LD \ |
10189 | lt_prog_compiler_wl \ |
10190 | lt_prog_compiler_pic \ |
10191 | lt_prog_compiler_static \ |
10192 | lt_prog_compiler_no_builtin_flag \ |
10193 | export_dynamic_flag_spec \ |
10194 | thread_safe_flag_spec \ |
10195 | whole_archive_flag_spec \ |
10196 | enable_shared_with_static_runtimes \ |
10197 | old_archive_cmds \ |
10198 | old_archive_from_new_cmds \ |
10199 | predep_objects \ |
10200 | postdep_objects \ |
10201 | predeps \ |
10202 | postdeps \ |
10203 | compiler_lib_search_path \ |
10204 | archive_cmds \ |
10205 | archive_expsym_cmds \ |
10206 | postinstall_cmds \ |
10207 | postuninstall_cmds \ |
10208 | old_archive_from_expsyms_cmds \ |
10209 | allow_undefined_flag \ |
10210 | no_undefined_flag \ |
10211 | export_symbols_cmds \ |
10212 | hardcode_libdir_flag_spec \ |
10213 | hardcode_libdir_flag_spec_ld \ |
10214 | hardcode_libdir_separator \ |
10215 | hardcode_automatic \ |
10216 | module_cmds \ |
10217 | module_expsym_cmds \ |
10218 | lt_cv_prog_compiler_c_o \ |
ac40fd9e |
10219 | fix_srcfile_path \ |
d9898ee8 |
10220 | exclude_expsyms \ |
10221 | include_expsyms; do |
10222 | |
10223 | case $var in |
10224 | old_archive_cmds | \ |
10225 | old_archive_from_new_cmds | \ |
10226 | archive_cmds | \ |
10227 | archive_expsym_cmds | \ |
10228 | module_cmds | \ |
10229 | module_expsym_cmds | \ |
10230 | old_archive_from_expsyms_cmds | \ |
10231 | export_symbols_cmds | \ |
10232 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10233 | postinstall_cmds | postuninstall_cmds | \ |
10234 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10235 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10236 | # Double-quote double-evaled strings. |
10237 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10238 | ;; |
10239 | *) |
10240 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10241 | ;; |
10242 | esac |
10243 | done |
10244 | |
10245 | case $lt_echo in |
10246 | *'\$0 --fallback-echo"') |
10247 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10248 | ;; |
10249 | esac |
10250 | |
10251 | cfgfile="${ofile}T" |
10252 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10253 | $rm -f "$cfgfile" |
10254 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10255 | echo "$as_me: creating $ofile" >&6;} |
10256 | |
10257 | cat <<__EOF__ >> "$cfgfile" |
10258 | #! $SHELL |
10259 | |
10260 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10261 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10262 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10263 | # |
ac40fd9e |
10264 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
d9898ee8 |
10265 | # Free Software Foundation, Inc. |
10266 | # |
10267 | # This file is part of GNU Libtool: |
10268 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10269 | # |
10270 | # This program is free software; you can redistribute it and/or modify |
10271 | # it under the terms of the GNU General Public License as published by |
10272 | # the Free Software Foundation; either version 2 of the License, or |
10273 | # (at your option) any later version. |
10274 | # |
10275 | # This program is distributed in the hope that it will be useful, but |
10276 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10277 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10278 | # General Public License for more details. |
10279 | # |
10280 | # You should have received a copy of the GNU General Public License |
10281 | # along with this program; if not, write to the Free Software |
10282 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10283 | # |
10284 | # As a special exception to the GNU General Public License, if you |
10285 | # distribute this file as part of a program that contains a |
10286 | # configuration script generated by Autoconf, you may include it under |
10287 | # the same distribution terms that you use for the rest of that program. |
10288 | |
10289 | # A sed program that does not truncate output. |
10290 | SED=$lt_SED |
10291 | |
10292 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10293 | Xsed="$SED -e 1s/^X//" |
10294 | |
10295 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10296 | # if CDPATH is set. |
10297 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10298 | |
10299 | # The names of the tagged configurations supported by this script. |
10300 | available_tags= |
10301 | |
10302 | # ### BEGIN LIBTOOL CONFIG |
10303 | |
10304 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10305 | |
10306 | # Shell to use when invoking shell scripts. |
10307 | SHELL=$lt_SHELL |
10308 | |
10309 | # Whether or not to build shared libraries. |
10310 | build_libtool_libs=$enable_shared |
10311 | |
10312 | # Whether or not to build static libraries. |
10313 | build_old_libs=$enable_static |
10314 | |
10315 | # Whether or not to add -lc for building shared libraries. |
10316 | build_libtool_need_lc=$archive_cmds_need_lc |
10317 | |
10318 | # Whether or not to disallow shared libs when runtime libs are static |
10319 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10320 | |
10321 | # Whether or not to optimize for fast installation. |
10322 | fast_install=$enable_fast_install |
10323 | |
10324 | # The host system. |
10325 | host_alias=$host_alias |
10326 | host=$host |
10327 | host_os=$host_os |
10328 | |
10329 | # The build system. |
10330 | build_alias=$build_alias |
10331 | build=$build |
10332 | build_os=$build_os |
10333 | |
10334 | # An echo program that does not interpret backslashes. |
10335 | echo=$lt_echo |
10336 | |
10337 | # The archiver. |
10338 | AR=$lt_AR |
10339 | AR_FLAGS=$lt_AR_FLAGS |
10340 | |
10341 | # A C compiler. |
10342 | LTCC=$lt_LTCC |
10343 | |
10344 | # LTCC compiler flags. |
10345 | LTCFLAGS=$lt_LTCFLAGS |
10346 | |
10347 | # A language-specific compiler. |
10348 | CC=$lt_compiler |
10349 | |
10350 | # Is the compiler the GNU C compiler? |
10351 | with_gcc=$GCC |
10352 | |
d9898ee8 |
10353 | # An ERE matcher. |
10354 | EGREP=$lt_EGREP |
10355 | |
10356 | # The linker used to build libraries. |
10357 | LD=$lt_LD |
10358 | |
10359 | # Whether we need hard or soft links. |
10360 | LN_S=$lt_LN_S |
10361 | |
10362 | # A BSD-compatible nm program. |
10363 | NM=$lt_NM |
10364 | |
10365 | # A symbol stripping program |
10366 | STRIP=$lt_STRIP |
10367 | |
10368 | # Used to examine libraries when file_magic_cmd begins "file" |
10369 | MAGIC_CMD=$MAGIC_CMD |
10370 | |
10371 | # Used on cygwin: DLL creation program. |
10372 | DLLTOOL="$DLLTOOL" |
10373 | |
10374 | # Used on cygwin: object dumper. |
10375 | OBJDUMP="$OBJDUMP" |
10376 | |
10377 | # Used on cygwin: assembler. |
10378 | AS="$AS" |
10379 | |
10380 | # The name of the directory that contains temporary libtool files. |
10381 | objdir=$objdir |
10382 | |
10383 | # How to create reloadable object files. |
10384 | reload_flag=$lt_reload_flag |
10385 | reload_cmds=$lt_reload_cmds |
10386 | |
10387 | # How to pass a linker flag through the compiler. |
10388 | wl=$lt_lt_prog_compiler_wl |
10389 | |
10390 | # Object file suffix (normally "o"). |
10391 | objext="$ac_objext" |
10392 | |
10393 | # Old archive suffix (normally "a"). |
10394 | libext="$libext" |
10395 | |
10396 | # Shared library suffix (normally ".so"). |
10397 | shrext_cmds='$shrext_cmds' |
10398 | |
10399 | # Executable file suffix (normally ""). |
10400 | exeext="$exeext" |
10401 | |
10402 | # Additional compiler flags for building library objects. |
10403 | pic_flag=$lt_lt_prog_compiler_pic |
10404 | pic_mode=$pic_mode |
10405 | |
10406 | # What is the maximum length of a command? |
10407 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10408 | |
10409 | # Does compiler simultaneously support -c and -o options? |
10410 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10411 | |
10412 | # Must we lock files when doing compilation? |
10413 | need_locks=$lt_need_locks |
10414 | |
10415 | # Do we need the lib prefix for modules? |
10416 | need_lib_prefix=$need_lib_prefix |
10417 | |
10418 | # Do we need a version for libraries? |
10419 | need_version=$need_version |
10420 | |
10421 | # Whether dlopen is supported. |
10422 | dlopen_support=$enable_dlopen |
10423 | |
10424 | # Whether dlopen of programs is supported. |
10425 | dlopen_self=$enable_dlopen_self |
10426 | |
10427 | # Whether dlopen of statically linked programs is supported. |
10428 | dlopen_self_static=$enable_dlopen_self_static |
10429 | |
10430 | # Compiler flag to prevent dynamic linking. |
10431 | link_static_flag=$lt_lt_prog_compiler_static |
10432 | |
10433 | # Compiler flag to turn off builtin functions. |
10434 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10435 | |
10436 | # Compiler flag to allow reflexive dlopens. |
10437 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10438 | |
10439 | # Compiler flag to generate shared objects directly from archives. |
10440 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10441 | |
10442 | # Compiler flag to generate thread-safe objects. |
10443 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10444 | |
10445 | # Library versioning type. |
10446 | version_type=$version_type |
10447 | |
10448 | # Format of library name prefix. |
10449 | libname_spec=$lt_libname_spec |
10450 | |
10451 | # List of archive names. First name is the real one, the rest are links. |
10452 | # The last name is the one that the linker finds with -lNAME. |
10453 | library_names_spec=$lt_library_names_spec |
10454 | |
10455 | # The coded name of the library, if different from the real name. |
10456 | soname_spec=$lt_soname_spec |
10457 | |
10458 | # Commands used to build and install an old-style archive. |
10459 | RANLIB=$lt_RANLIB |
10460 | old_archive_cmds=$lt_old_archive_cmds |
10461 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10462 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10463 | |
10464 | # Create an old-style archive from a shared archive. |
10465 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10466 | |
10467 | # Create a temporary old-style archive to link instead of a shared archive. |
10468 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10469 | |
10470 | # Commands used to build and install a shared archive. |
10471 | archive_cmds=$lt_archive_cmds |
10472 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10473 | postinstall_cmds=$lt_postinstall_cmds |
10474 | postuninstall_cmds=$lt_postuninstall_cmds |
10475 | |
10476 | # Commands used to build a loadable module (assumed same as above if empty) |
10477 | module_cmds=$lt_module_cmds |
10478 | module_expsym_cmds=$lt_module_expsym_cmds |
10479 | |
10480 | # Commands to strip libraries. |
10481 | old_striplib=$lt_old_striplib |
10482 | striplib=$lt_striplib |
10483 | |
10484 | # Dependencies to place before the objects being linked to create a |
10485 | # shared library. |
dd184caf |
10486 | predep_objects=$lt_predep_objects |
d9898ee8 |
10487 | |
10488 | # Dependencies to place after the objects being linked to create a |
10489 | # shared library. |
dd184caf |
10490 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10491 | |
10492 | # Dependencies to place before the objects being linked to create a |
10493 | # shared library. |
10494 | predeps=$lt_predeps |
10495 | |
10496 | # Dependencies to place after the objects being linked to create a |
10497 | # shared library. |
10498 | postdeps=$lt_postdeps |
10499 | |
10500 | # The library search path used internally by the compiler when linking |
10501 | # a shared library. |
dd184caf |
10502 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10503 | |
10504 | # Method to check whether dependent libraries are shared objects. |
10505 | deplibs_check_method=$lt_deplibs_check_method |
10506 | |
10507 | # Command to use when deplibs_check_method == file_magic. |
10508 | file_magic_cmd=$lt_file_magic_cmd |
10509 | |
10510 | # Flag that allows shared libraries with undefined symbols to be built. |
10511 | allow_undefined_flag=$lt_allow_undefined_flag |
10512 | |
10513 | # Flag that forces no undefined symbols. |
10514 | no_undefined_flag=$lt_no_undefined_flag |
10515 | |
10516 | # Commands used to finish a libtool library installation in a directory. |
10517 | finish_cmds=$lt_finish_cmds |
10518 | |
10519 | # Same as above, but a single script fragment to be evaled but not shown. |
10520 | finish_eval=$lt_finish_eval |
10521 | |
10522 | # Take the output of nm and produce a listing of raw symbols and C names. |
10523 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10524 | |
10525 | # Transform the output of nm in a proper C declaration |
10526 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10527 | |
10528 | # Transform the output of nm in a C name address pair |
10529 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10530 | |
10531 | # This is the shared library runtime path variable. |
10532 | runpath_var=$runpath_var |
10533 | |
10534 | # This is the shared library path variable. |
10535 | shlibpath_var=$shlibpath_var |
10536 | |
10537 | # Is shlibpath searched before the hard-coded library search path? |
10538 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10539 | |
10540 | # How to hardcode a shared library path into an executable. |
10541 | hardcode_action=$hardcode_action |
10542 | |
10543 | # Whether we should hardcode library paths into libraries. |
10544 | hardcode_into_libs=$hardcode_into_libs |
10545 | |
10546 | # Flag to hardcode \$libdir into a binary during linking. |
10547 | # This must work even if \$libdir does not exist. |
10548 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10549 | |
10550 | # If ld is used when linking, flag to hardcode \$libdir into |
10551 | # a binary during linking. This must work even if \$libdir does |
10552 | # not exist. |
10553 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10554 | |
10555 | # Whether we need a single -rpath flag with a separated argument. |
10556 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10557 | |
10558 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10559 | # resulting binary. |
10560 | hardcode_direct=$hardcode_direct |
10561 | |
10562 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10563 | # resulting binary. |
10564 | hardcode_minus_L=$hardcode_minus_L |
10565 | |
10566 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10567 | # the resulting binary. |
10568 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10569 | |
10570 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10571 | # and all subsequent libraries and executables linked against it. |
10572 | hardcode_automatic=$hardcode_automatic |
10573 | |
10574 | # Variables whose values should be saved in libtool wrapper scripts and |
10575 | # restored at relink time. |
10576 | variables_saved_for_relink="$variables_saved_for_relink" |
10577 | |
10578 | # Whether libtool must link a program against all its dependency libraries. |
10579 | link_all_deplibs=$link_all_deplibs |
10580 | |
10581 | # Compile-time system search path for libraries |
dd184caf |
10582 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10583 | |
10584 | # Run-time system search path for libraries |
10585 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10586 | |
10587 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
10588 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
10589 | |
10590 | # Set to yes if exported symbols are required. |
10591 | always_export_symbols=$always_export_symbols |
10592 | |
10593 | # The commands to list exported symbols. |
10594 | export_symbols_cmds=$lt_export_symbols_cmds |
10595 | |
10596 | # The commands to extract the exported symbol list from a shared archive. |
10597 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10598 | |
10599 | # Symbols that should not be listed in the preloaded symbols. |
10600 | exclude_expsyms=$lt_exclude_expsyms |
10601 | |
10602 | # Symbols that must always be exported. |
10603 | include_expsyms=$lt_include_expsyms |
10604 | |
10605 | # ### END LIBTOOL CONFIG |
10606 | |
10607 | __EOF__ |
10608 | |
10609 | |
10610 | case $host_os in |
10611 | aix3*) |
10612 | cat <<\EOF >> "$cfgfile" |
10613 | |
10614 | # AIX sometimes has problems with the GCC collect2 program. For some |
10615 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10616 | # vanish in a puff of smoke. |
10617 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10618 | COLLECT_NAMES= |
10619 | export COLLECT_NAMES |
10620 | fi |
10621 | EOF |
10622 | ;; |
10623 | esac |
10624 | |
10625 | # We use sed instead of cat because bash on DJGPP gets confused if |
10626 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10627 | # text mode, it properly converts lines to CR/LF. This bash problem |
10628 | # is reportedly fixed, but why not run on old versions too? |
10629 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10630 | |
10631 | mv -f "$cfgfile" "$ofile" || \ |
10632 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10633 | chmod +x "$ofile" |
10634 | |
10635 | else |
10636 | # If there is no Makefile yet, we rely on a make rule to execute |
10637 | # `config.status --recheck' to rerun these tests and create the |
10638 | # libtool script then. |
10639 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10640 | if test -f "$ltmain_in"; then |
10641 | test -f Makefile && make "$ltmain" |
10642 | fi |
10643 | fi |
10644 | |
10645 | |
10646 | ac_ext=c |
10647 | ac_cpp='$CPP $CPPFLAGS' |
10648 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10649 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10650 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10651 | |
10652 | CC="$lt_save_CC" |
10653 | |
10654 | |
dd184caf |
10655 | # Check whether --with-tags was given. |
d9898ee8 |
10656 | if test "${with_tags+set}" = set; then |
dd184caf |
10657 | withval=$with_tags; tagnames="$withval" |
10658 | fi |
10659 | |
d9898ee8 |
10660 | |
10661 | if test -f "$ltmain" && test -n "$tagnames"; then |
10662 | if test ! -f "${ofile}"; then |
10663 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10664 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10665 | fi |
10666 | |
10667 | if test -z "$LTCC"; then |
10668 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10669 | if test -z "$LTCC"; then |
10670 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10671 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10672 | else |
10673 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10674 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10675 | fi |
10676 | fi |
10677 | if test -z "$LTCFLAGS"; then |
10678 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10679 | fi |
10680 | |
10681 | # Extract list of available tagged configurations in $ofile. |
10682 | # Note that this assumes the entire list is on one line. |
10683 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10684 | |
10685 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10686 | for tagname in $tagnames; do |
10687 | IFS="$lt_save_ifs" |
10688 | # Check whether tagname contains only valid characters |
10689 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10690 | "") ;; |
10691 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10692 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10693 | { (exit 1); exit 1; }; } |
10694 | ;; |
10695 | esac |
10696 | |
10697 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10698 | then |
10699 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10700 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10701 | { (exit 1); exit 1; }; } |
10702 | fi |
10703 | |
10704 | # Update the list of available tags. |
10705 | if test -n "$tagname"; then |
10706 | echo appending configuration tag \"$tagname\" to $ofile |
10707 | |
10708 | case $tagname in |
10709 | CXX) |
10710 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10711 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10712 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
10713 | ac_ext=cpp |
d9898ee8 |
10714 | ac_cpp='$CXXCPP $CPPFLAGS' |
10715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10718 | |
10719 | |
10720 | |
10721 | |
10722 | archive_cmds_need_lc_CXX=no |
10723 | allow_undefined_flag_CXX= |
10724 | always_export_symbols_CXX=no |
10725 | archive_expsym_cmds_CXX= |
10726 | export_dynamic_flag_spec_CXX= |
10727 | hardcode_direct_CXX=no |
10728 | hardcode_libdir_flag_spec_CXX= |
10729 | hardcode_libdir_flag_spec_ld_CXX= |
10730 | hardcode_libdir_separator_CXX= |
10731 | hardcode_minus_L_CXX=no |
10732 | hardcode_shlibpath_var_CXX=unsupported |
10733 | hardcode_automatic_CXX=no |
10734 | module_cmds_CXX= |
10735 | module_expsym_cmds_CXX= |
10736 | link_all_deplibs_CXX=unknown |
10737 | old_archive_cmds_CXX=$old_archive_cmds |
10738 | no_undefined_flag_CXX= |
10739 | whole_archive_flag_spec_CXX= |
10740 | enable_shared_with_static_runtimes_CXX=no |
10741 | |
10742 | # Dependencies to place before and after the object being linked: |
10743 | predep_objects_CXX= |
10744 | postdep_objects_CXX= |
10745 | predeps_CXX= |
10746 | postdeps_CXX= |
10747 | compiler_lib_search_path_CXX= |
10748 | |
10749 | # Source file extension for C++ test sources. |
10750 | ac_ext=cpp |
10751 | |
10752 | # Object file extension for compiled C++ test sources. |
10753 | objext=o |
10754 | objext_CXX=$objext |
10755 | |
10756 | # Code to be used in simple compile tests |
ac40fd9e |
10757 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 |
10758 | |
10759 | # Code to be used in simple link tests |
ac40fd9e |
10760 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
d9898ee8 |
10761 | |
10762 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10763 | |
10764 | # If no C compiler was specified, use CC. |
10765 | LTCC=${LTCC-"$CC"} |
10766 | |
10767 | # If no C compiler flags were specified, use CFLAGS. |
10768 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10769 | |
10770 | # Allow CC to be a program name with arguments. |
10771 | compiler=$CC |
10772 | |
10773 | |
10774 | # save warnings/boilerplate of simple test code |
10775 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
10776 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
10777 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10778 | _lt_compiler_boilerplate=`cat conftest.err` |
10779 | $rm conftest* |
10780 | |
10781 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
10782 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
10783 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10784 | _lt_linker_boilerplate=`cat conftest.err` |
10785 | $rm conftest* |
10786 | |
10787 | |
10788 | # Allow CC to be a program name with arguments. |
10789 | lt_save_CC=$CC |
10790 | lt_save_LD=$LD |
10791 | lt_save_GCC=$GCC |
10792 | GCC=$GXX |
10793 | lt_save_with_gnu_ld=$with_gnu_ld |
10794 | lt_save_path_LD=$lt_cv_path_LD |
10795 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10796 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10797 | else |
10798 | $as_unset lt_cv_prog_gnu_ld |
10799 | fi |
10800 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10801 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10802 | else |
10803 | $as_unset lt_cv_path_LD |
10804 | fi |
10805 | test -z "${LDCXX+set}" || LD=$LDCXX |
10806 | CC=${CXX-"c++"} |
10807 | compiler=$CC |
10808 | compiler_CXX=$CC |
10809 | for cc_temp in $compiler""; do |
10810 | case $cc_temp in |
10811 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10812 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10813 | \-*) ;; |
10814 | *) break;; |
10815 | esac |
10816 | done |
10817 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10818 | |
10819 | |
10820 | # We don't want -fno-exception wen compiling C++ code, so set the |
10821 | # no_builtin_flag separately |
10822 | if test "$GXX" = yes; then |
10823 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10824 | else |
10825 | lt_prog_compiler_no_builtin_flag_CXX= |
10826 | fi |
10827 | |
10828 | if test "$GXX" = yes; then |
10829 | # Set up default GNU C++ configuration |
10830 | |
10831 | |
dd184caf |
10832 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
10833 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
10834 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
10835 | else |
10836 | with_gnu_ld=no |
dd184caf |
10837 | fi |
10838 | |
d9898ee8 |
10839 | ac_prog=ld |
10840 | if test "$GCC" = yes; then |
10841 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
10842 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10843 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
10844 | case $host in |
10845 | *-*-mingw*) |
10846 | # gcc leaves a trailing carriage return which upsets mingw |
10847 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10848 | *) |
10849 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10850 | esac |
10851 | case $ac_prog in |
10852 | # Accept absolute paths. |
10853 | [\\/]* | ?:[\\/]*) |
10854 | re_direlt='/[^/][^/]*/\.\./' |
10855 | # Canonicalize the pathname of ld |
10856 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10857 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10858 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10859 | done |
10860 | test -z "$LD" && LD="$ac_prog" |
10861 | ;; |
10862 | "") |
10863 | # If it fails, then pretend we aren't using GCC. |
10864 | ac_prog=ld |
10865 | ;; |
10866 | *) |
10867 | # If it is relative, then search for the first ld in PATH. |
10868 | with_gnu_ld=unknown |
10869 | ;; |
10870 | esac |
10871 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
10872 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10873 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10874 | else |
dd184caf |
10875 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10876 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10877 | fi |
10878 | if test "${lt_cv_path_LD+set}" = set; then |
10879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10880 | else |
10881 | if test -z "$LD"; then |
10882 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10883 | for ac_dir in $PATH; do |
10884 | IFS="$lt_save_ifs" |
10885 | test -z "$ac_dir" && ac_dir=. |
10886 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10887 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10888 | # Check to see if the program is GNU ld. I'd rather use --version, |
10889 | # but apparently some variants of GNU ld only accept -v. |
10890 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10891 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10892 | *GNU* | *'with BFD'*) |
10893 | test "$with_gnu_ld" != no && break |
10894 | ;; |
10895 | *) |
10896 | test "$with_gnu_ld" != yes && break |
10897 | ;; |
10898 | esac |
10899 | fi |
10900 | done |
10901 | IFS="$lt_save_ifs" |
10902 | else |
10903 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10904 | fi |
10905 | fi |
10906 | |
10907 | LD="$lt_cv_path_LD" |
10908 | if test -n "$LD"; then |
dd184caf |
10909 | { echo "$as_me:$LINENO: result: $LD" >&5 |
10910 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
10911 | else |
dd184caf |
10912 | { echo "$as_me:$LINENO: result: no" >&5 |
10913 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
10914 | fi |
10915 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10916 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10917 | { (exit 1); exit 1; }; } |
dd184caf |
10918 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10919 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10920 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10922 | else |
10923 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10924 | case `$LD -v 2>&1 </dev/null` in |
10925 | *GNU* | *'with BFD'*) |
10926 | lt_cv_prog_gnu_ld=yes |
10927 | ;; |
10928 | *) |
10929 | lt_cv_prog_gnu_ld=no |
10930 | ;; |
10931 | esac |
10932 | fi |
dd184caf |
10933 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10934 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
10935 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10936 | |
10937 | |
10938 | |
10939 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10940 | # archiving commands below assume that GNU ld is being used. |
10941 | if test "$with_gnu_ld" = yes; then |
10942 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10943 | 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' |
10944 | |
10945 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10946 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10947 | |
10948 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10949 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10950 | # investigate it a little bit more. (MM) |
10951 | wlarc='${wl}' |
10952 | |
10953 | # ancient GNU ld didn't support --whole-archive et. al. |
10954 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10955 | grep 'no-whole-archive' > /dev/null; then |
10956 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10957 | else |
10958 | whole_archive_flag_spec_CXX= |
10959 | fi |
10960 | else |
10961 | with_gnu_ld=no |
10962 | wlarc= |
10963 | |
10964 | # A generic and very simple default shared library creation |
10965 | # command for GNU C++ for the case where it uses the native |
10966 | # linker, instead of GNU ld. If possible, this setting should |
10967 | # overridden to take advantage of the native linker features on |
10968 | # the platform it is being used on. |
10969 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10970 | fi |
10971 | |
10972 | # Commands to make compiler produce verbose output that lists |
10973 | # what "hidden" libraries, object files and flags are used when |
10974 | # linking a shared library. |
10975 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10976 | |
10977 | else |
10978 | GXX=no |
10979 | with_gnu_ld=no |
10980 | wlarc= |
10981 | fi |
10982 | |
10983 | # PORTME: fill in a description of your system's C++ link characteristics |
dd184caf |
10984 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10985 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10986 | ld_shlibs_CXX=yes |
10987 | case $host_os in |
10988 | aix3*) |
10989 | # FIXME: insert proper C++ library support |
10990 | ld_shlibs_CXX=no |
10991 | ;; |
10992 | aix4* | aix5*) |
10993 | if test "$host_cpu" = ia64; then |
10994 | # On IA64, the linker does run time linking by default, so we don't |
10995 | # have to do anything special. |
10996 | aix_use_runtimelinking=no |
10997 | exp_sym_flag='-Bexport' |
10998 | no_entry_flag="" |
10999 | else |
11000 | aix_use_runtimelinking=no |
11001 | |
11002 | # Test if we are trying to use run time linking or normal |
11003 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11004 | # need to do runtime linking. |
11005 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
11006 | for ld_flag in $LDFLAGS; do |
11007 | case $ld_flag in |
11008 | *-brtl*) |
11009 | aix_use_runtimelinking=yes |
11010 | break |
11011 | ;; |
11012 | esac |
11013 | done |
11014 | ;; |
11015 | esac |
11016 | |
11017 | exp_sym_flag='-bexport' |
11018 | no_entry_flag='-bnoentry' |
11019 | fi |
11020 | |
11021 | # When large executables or shared objects are built, AIX ld can |
11022 | # have problems creating the table of contents. If linking a library |
11023 | # or program results in "error TOC overflow" add -mminimal-toc to |
11024 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11025 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11026 | |
11027 | archive_cmds_CXX='' |
11028 | hardcode_direct_CXX=yes |
11029 | hardcode_libdir_separator_CXX=':' |
11030 | link_all_deplibs_CXX=yes |
11031 | |
11032 | if test "$GXX" = yes; then |
11033 | case $host_os in aix4.[012]|aix4.[012].*) |
11034 | # We only want to do this on AIX 4.2 and lower, the check |
11035 | # below for broken collect2 doesn't work under 4.3+ |
11036 | collect2name=`${CC} -print-prog-name=collect2` |
11037 | if test -f "$collect2name" && \ |
11038 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11039 | then |
11040 | # We have reworked collect2 |
ac40fd9e |
11041 | : |
d9898ee8 |
11042 | else |
11043 | # We have old collect2 |
11044 | hardcode_direct_CXX=unsupported |
11045 | # It fails to find uninstalled libraries when the uninstalled |
11046 | # path is not listed in the libpath. Setting hardcode_minus_L |
11047 | # to unsupported forces relinking |
11048 | hardcode_minus_L_CXX=yes |
11049 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11050 | hardcode_libdir_separator_CXX= |
11051 | fi |
11052 | ;; |
11053 | esac |
11054 | shared_flag='-shared' |
11055 | if test "$aix_use_runtimelinking" = yes; then |
11056 | shared_flag="$shared_flag "'${wl}-G' |
11057 | fi |
11058 | else |
11059 | # not using gcc |
11060 | if test "$host_cpu" = ia64; then |
11061 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11062 | # chokes on -Wl,-G. The following line is correct: |
11063 | shared_flag='-G' |
11064 | else |
11065 | if test "$aix_use_runtimelinking" = yes; then |
11066 | shared_flag='${wl}-G' |
11067 | else |
11068 | shared_flag='${wl}-bM:SRE' |
11069 | fi |
11070 | fi |
11071 | fi |
11072 | |
11073 | # It seems that -bexpall does not export symbols beginning with |
11074 | # underscore (_), so it is better to generate a list of symbols to export. |
11075 | always_export_symbols_CXX=yes |
11076 | if test "$aix_use_runtimelinking" = yes; then |
11077 | # Warning - without using the other runtime loading flags (-brtl), |
11078 | # -berok will link without error, but may produce a broken library. |
11079 | allow_undefined_flag_CXX='-berok' |
11080 | # Determine the default libpath from the value encoded in an empty executable. |
11081 | cat >conftest.$ac_ext <<_ACEOF |
11082 | /* confdefs.h. */ |
11083 | _ACEOF |
11084 | cat confdefs.h >>conftest.$ac_ext |
11085 | cat >>conftest.$ac_ext <<_ACEOF |
11086 | /* end confdefs.h. */ |
11087 | |
11088 | int |
11089 | main () |
11090 | { |
11091 | |
11092 | ; |
11093 | return 0; |
11094 | } |
11095 | _ACEOF |
11096 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11097 | if { (ac_try="$ac_link" |
11098 | case "(($ac_try" in |
11099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11100 | *) ac_try_echo=$ac_try;; |
11101 | esac |
11102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11103 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11104 | ac_status=$? |
11105 | grep -v '^ *+' conftest.er1 >conftest.err |
11106 | rm -f conftest.er1 |
11107 | cat conftest.err >&5 |
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11109 | (exit $ac_status); } && { |
11110 | test -z "$ac_cxx_werror_flag" || |
11111 | test ! -s conftest.err |
11112 | } && test -s conftest$ac_exeext && |
11113 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11114 | |
ac40fd9e |
11115 | lt_aix_libpath_sed=' |
11116 | /Import File Strings/,/^$/ { |
11117 | /^0/ { |
11118 | s/^0 *\(.*\)$/\1/ |
11119 | p |
11120 | } |
11121 | }' |
11122 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
11123 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
11124 | if test -z "$aix_libpath"; then |
11125 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11126 | fi |
d9898ee8 |
11127 | else |
11128 | echo "$as_me: failed program was:" >&5 |
11129 | sed 's/^/| /' conftest.$ac_ext >&5 |
11130 | |
dd184caf |
11131 | |
d9898ee8 |
11132 | fi |
dd184caf |
11133 | |
11134 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11135 | conftest$ac_exeext conftest.$ac_ext |
11136 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11137 | |
11138 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11139 | |
11140 | 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" |
11141 | else |
11142 | if test "$host_cpu" = ia64; then |
11143 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11144 | allow_undefined_flag_CXX="-z nodefs" |
11145 | 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" |
11146 | else |
11147 | # Determine the default libpath from the value encoded in an empty executable. |
11148 | cat >conftest.$ac_ext <<_ACEOF |
11149 | /* confdefs.h. */ |
11150 | _ACEOF |
11151 | cat confdefs.h >>conftest.$ac_ext |
11152 | cat >>conftest.$ac_ext <<_ACEOF |
11153 | /* end confdefs.h. */ |
11154 | |
11155 | int |
11156 | main () |
11157 | { |
11158 | |
11159 | ; |
11160 | return 0; |
11161 | } |
11162 | _ACEOF |
11163 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11164 | if { (ac_try="$ac_link" |
11165 | case "(($ac_try" in |
11166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11167 | *) ac_try_echo=$ac_try;; |
11168 | esac |
11169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11170 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11171 | ac_status=$? |
11172 | grep -v '^ *+' conftest.er1 >conftest.err |
11173 | rm -f conftest.er1 |
11174 | cat conftest.err >&5 |
11175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11176 | (exit $ac_status); } && { |
11177 | test -z "$ac_cxx_werror_flag" || |
11178 | test ! -s conftest.err |
11179 | } && test -s conftest$ac_exeext && |
11180 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11181 | |
ac40fd9e |
11182 | lt_aix_libpath_sed=' |
11183 | /Import File Strings/,/^$/ { |
11184 | /^0/ { |
11185 | s/^0 *\(.*\)$/\1/ |
11186 | p |
11187 | } |
11188 | }' |
11189 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
11190 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
11191 | if test -z "$aix_libpath"; then |
11192 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11193 | fi |
d9898ee8 |
11194 | else |
11195 | echo "$as_me: failed program was:" >&5 |
11196 | sed 's/^/| /' conftest.$ac_ext >&5 |
11197 | |
dd184caf |
11198 | |
d9898ee8 |
11199 | fi |
dd184caf |
11200 | |
11201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11202 | conftest$ac_exeext conftest.$ac_ext |
11203 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11204 | |
11205 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11206 | # Warning - without using the other run time loading flags, |
11207 | # -berok will link without error, but may produce a broken library. |
11208 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11209 | allow_undefined_flag_CXX=' ${wl}-berok' |
11210 | # Exported symbols can be pulled into shared objects from archives |
11211 | whole_archive_flag_spec_CXX='$convenience' |
11212 | archive_cmds_need_lc_CXX=yes |
11213 | # This is similar to how AIX traditionally builds its shared libraries. |
11214 | 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' |
11215 | fi |
11216 | fi |
11217 | ;; |
11218 | |
11219 | beos*) |
11220 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11221 | allow_undefined_flag_CXX=unsupported |
11222 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11223 | # support --undefined. This deserves some investigation. FIXME |
11224 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11225 | else |
11226 | ld_shlibs_CXX=no |
11227 | fi |
11228 | ;; |
11229 | |
11230 | chorus*) |
11231 | case $cc_basename in |
11232 | *) |
11233 | # FIXME: insert proper C++ library support |
11234 | ld_shlibs_CXX=no |
11235 | ;; |
11236 | esac |
11237 | ;; |
11238 | |
11239 | cygwin* | mingw* | pw32*) |
11240 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11241 | # as there is no search path for DLLs. |
11242 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11243 | allow_undefined_flag_CXX=unsupported |
11244 | always_export_symbols_CXX=no |
11245 | enable_shared_with_static_runtimes_CXX=yes |
11246 | |
11247 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11248 | 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' |
11249 | # If the export-symbols file already is a .def file (1st line |
11250 | # is EXPORTS), use it as is; otherwise, prepend... |
11251 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11252 | cp $export_symbols $output_objdir/$soname.def; |
11253 | else |
11254 | echo EXPORTS > $output_objdir/$soname.def; |
11255 | cat $export_symbols >> $output_objdir/$soname.def; |
11256 | fi~ |
11257 | $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' |
11258 | else |
11259 | ld_shlibs_CXX=no |
11260 | fi |
11261 | ;; |
11262 | darwin* | rhapsody*) |
11263 | case $host_os in |
11264 | rhapsody* | darwin1.[012]) |
11265 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11266 | ;; |
11267 | *) # Darwin 1.3 on |
11268 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11269 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11270 | else |
11271 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11272 | 10.[012]) |
11273 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11274 | ;; |
11275 | 10.*) |
11276 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11277 | ;; |
11278 | esac |
11279 | fi |
11280 | ;; |
11281 | esac |
11282 | archive_cmds_need_lc_CXX=no |
11283 | hardcode_direct_CXX=no |
11284 | hardcode_automatic_CXX=yes |
11285 | hardcode_shlibpath_var_CXX=unsupported |
11286 | whole_archive_flag_spec_CXX='' |
11287 | link_all_deplibs_CXX=yes |
11288 | |
11289 | if test "$GXX" = yes ; then |
11290 | lt_int_apple_cc_single_mod=no |
11291 | output_verbose_link_cmd='echo' |
11292 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11293 | lt_int_apple_cc_single_mod=yes |
11294 | fi |
11295 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11296 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11297 | else |
11298 | 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' |
11299 | fi |
11300 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11301 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11302 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11303 | 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}' |
11304 | else |
11305 | 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}' |
11306 | fi |
11307 | 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}' |
11308 | else |
11309 | case $cc_basename in |
11310 | xlc*) |
11311 | output_verbose_link_cmd='echo' |
ac40fd9e |
11312 | 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 |
11313 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11314 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
11315 | 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 |
11316 | 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}' |
11317 | ;; |
11318 | *) |
11319 | ld_shlibs_CXX=no |
11320 | ;; |
11321 | esac |
11322 | fi |
11323 | ;; |
11324 | |
11325 | dgux*) |
11326 | case $cc_basename in |
11327 | ec++*) |
11328 | # FIXME: insert proper C++ library support |
11329 | ld_shlibs_CXX=no |
11330 | ;; |
11331 | ghcx*) |
11332 | # Green Hills C++ Compiler |
11333 | # FIXME: insert proper C++ library support |
11334 | ld_shlibs_CXX=no |
11335 | ;; |
11336 | *) |
11337 | # FIXME: insert proper C++ library support |
11338 | ld_shlibs_CXX=no |
11339 | ;; |
11340 | esac |
11341 | ;; |
11342 | freebsd[12]*) |
11343 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11344 | ld_shlibs_CXX=no |
11345 | ;; |
11346 | freebsd-elf*) |
11347 | archive_cmds_need_lc_CXX=no |
11348 | ;; |
ac40fd9e |
11349 | freebsd* | dragonfly*) |
d9898ee8 |
11350 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11351 | # conventions |
11352 | ld_shlibs_CXX=yes |
11353 | ;; |
11354 | gnu*) |
11355 | ;; |
11356 | hpux9*) |
11357 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11358 | hardcode_libdir_separator_CXX=: |
11359 | export_dynamic_flag_spec_CXX='${wl}-E' |
11360 | hardcode_direct_CXX=yes |
11361 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11362 | # but as the default |
11363 | # location of the library. |
11364 | |
11365 | case $cc_basename in |
11366 | CC*) |
11367 | # FIXME: insert proper C++ library support |
11368 | ld_shlibs_CXX=no |
11369 | ;; |
11370 | aCC*) |
11371 | 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' |
11372 | # Commands to make compiler produce verbose output that lists |
11373 | # what "hidden" libraries, object files and flags are used when |
11374 | # linking a shared library. |
11375 | # |
11376 | # There doesn't appear to be a way to prevent this compiler from |
11377 | # explicitly linking system object files so we need to strip them |
11378 | # from the output so that they don't get included in the library |
11379 | # dependencies. |
11380 | 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' |
11381 | ;; |
11382 | *) |
11383 | if test "$GXX" = yes; then |
11384 | 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' |
11385 | else |
11386 | # FIXME: insert proper C++ library support |
11387 | ld_shlibs_CXX=no |
11388 | fi |
11389 | ;; |
11390 | esac |
11391 | ;; |
11392 | hpux10*|hpux11*) |
11393 | if test $with_gnu_ld = no; then |
11394 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11395 | hardcode_libdir_separator_CXX=: |
11396 | |
11397 | case $host_cpu in |
ac40fd9e |
11398 | hppa*64*|ia64*) ;; |
d9898ee8 |
11399 | *) |
11400 | export_dynamic_flag_spec_CXX='${wl}-E' |
11401 | ;; |
11402 | esac |
11403 | fi |
11404 | case $host_cpu in |
11405 | hppa*64*|ia64*) |
11406 | hardcode_direct_CXX=no |
11407 | hardcode_shlibpath_var_CXX=no |
11408 | ;; |
11409 | *) |
11410 | hardcode_direct_CXX=yes |
11411 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11412 | # but as the default |
11413 | # location of the library. |
11414 | ;; |
11415 | esac |
11416 | |
11417 | case $cc_basename in |
11418 | CC*) |
11419 | # FIXME: insert proper C++ library support |
11420 | ld_shlibs_CXX=no |
11421 | ;; |
11422 | aCC*) |
11423 | case $host_cpu in |
11424 | hppa*64*) |
11425 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11426 | ;; |
11427 | ia64*) |
11428 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11429 | ;; |
11430 | *) |
11431 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11432 | ;; |
11433 | esac |
11434 | # Commands to make compiler produce verbose output that lists |
11435 | # what "hidden" libraries, object files and flags are used when |
11436 | # linking a shared library. |
11437 | # |
11438 | # There doesn't appear to be a way to prevent this compiler from |
11439 | # explicitly linking system object files so we need to strip them |
11440 | # from the output so that they don't get included in the library |
11441 | # dependencies. |
11442 | 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' |
11443 | ;; |
11444 | *) |
11445 | if test "$GXX" = yes; then |
11446 | if test $with_gnu_ld = no; then |
11447 | case $host_cpu in |
11448 | hppa*64*) |
11449 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11450 | ;; |
11451 | ia64*) |
11452 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11453 | ;; |
11454 | *) |
11455 | 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' |
11456 | ;; |
11457 | esac |
11458 | fi |
11459 | else |
11460 | # FIXME: insert proper C++ library support |
11461 | ld_shlibs_CXX=no |
11462 | fi |
11463 | ;; |
11464 | esac |
11465 | ;; |
ac40fd9e |
11466 | interix[3-9]*) |
d9898ee8 |
11467 | hardcode_direct_CXX=no |
11468 | hardcode_shlibpath_var_CXX=no |
11469 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11470 | export_dynamic_flag_spec_CXX='${wl}-E' |
11471 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11472 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11473 | # default) and relocated if they conflict, which is a slow very memory |
11474 | # consuming and fragmenting process. To avoid this, we pick a random, |
11475 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11476 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11477 | 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' |
11478 | 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' |
11479 | ;; |
11480 | irix5* | irix6*) |
11481 | case $cc_basename in |
11482 | CC*) |
11483 | # SGI C++ |
11484 | 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' |
11485 | |
11486 | # Archives containing C++ object files must be created using |
11487 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11488 | # necessary to make sure instantiated templates are included |
11489 | # in the archive. |
11490 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11491 | ;; |
11492 | *) |
11493 | if test "$GXX" = yes; then |
11494 | if test "$with_gnu_ld" = no; then |
11495 | 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' |
11496 | else |
11497 | 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' |
11498 | fi |
11499 | fi |
11500 | link_all_deplibs_CXX=yes |
11501 | ;; |
11502 | esac |
11503 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11504 | hardcode_libdir_separator_CXX=: |
11505 | ;; |
ac40fd9e |
11506 | linux* | k*bsd*-gnu) |
d9898ee8 |
11507 | case $cc_basename in |
11508 | KCC*) |
11509 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11510 | |
11511 | # KCC will only create a shared library if the output file |
11512 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11513 | # to its proper name (with version) after linking. |
11514 | 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' |
11515 | 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' |
11516 | # Commands to make compiler produce verbose output that lists |
11517 | # what "hidden" libraries, object files and flags are used when |
11518 | # linking a shared library. |
11519 | # |
11520 | # There doesn't appear to be a way to prevent this compiler from |
11521 | # explicitly linking system object files so we need to strip them |
11522 | # from the output so that they don't get included in the library |
11523 | # dependencies. |
11524 | 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' |
11525 | |
11526 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11527 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11528 | |
11529 | # Archives containing C++ object files must be created using |
11530 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11531 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11532 | ;; |
11533 | icpc*) |
11534 | # Intel C++ |
11535 | with_gnu_ld=yes |
11536 | # version 8.0 and above of icpc choke on multiply defined symbols |
11537 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11538 | # earlier do not add the objects themselves. |
11539 | case `$CC -V 2>&1` in |
11540 | *"Version 7."*) |
11541 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11542 | 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' |
11543 | ;; |
11544 | *) # Version 8.0 or newer |
11545 | tmp_idyn= |
11546 | case $host_cpu in |
11547 | ia64*) tmp_idyn=' -i_dynamic';; |
11548 | esac |
11549 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11550 | 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' |
11551 | ;; |
11552 | esac |
11553 | archive_cmds_need_lc_CXX=no |
11554 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11555 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11556 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11557 | ;; |
11558 | pgCC*) |
11559 | # Portland Group C++ compiler |
11560 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11561 | 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' |
11562 | |
11563 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11564 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11565 | 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' |
11566 | ;; |
11567 | cxx*) |
11568 | # Compaq C++ |
11569 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11570 | 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' |
11571 | |
11572 | runpath_var=LD_RUN_PATH |
11573 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11574 | hardcode_libdir_separator_CXX=: |
11575 | |
11576 | # Commands to make compiler produce verbose output that lists |
11577 | # what "hidden" libraries, object files and flags are used when |
11578 | # linking a shared library. |
11579 | # |
11580 | # There doesn't appear to be a way to prevent this compiler from |
11581 | # explicitly linking system object files so we need to strip them |
11582 | # from the output so that they don't get included in the library |
11583 | # dependencies. |
11584 | 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' |
11585 | ;; |
ac40fd9e |
11586 | *) |
11587 | case `$CC -V 2>&1 | sed 5q` in |
11588 | *Sun\ C*) |
11589 | # Sun C++ 5.9 |
11590 | no_undefined_flag_CXX=' -zdefs' |
11591 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11592 | 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' |
11593 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11594 | 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' |
11595 | |
11596 | # Not sure whether something based on |
11597 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
11598 | # would be better. |
11599 | output_verbose_link_cmd='echo' |
11600 | |
11601 | # Archives containing C++ object files must be created using |
11602 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11603 | # necessary to make sure instantiated templates are included |
11604 | # in the archive. |
11605 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11606 | ;; |
11607 | esac |
11608 | ;; |
d9898ee8 |
11609 | esac |
11610 | ;; |
11611 | lynxos*) |
11612 | # FIXME: insert proper C++ library support |
11613 | ld_shlibs_CXX=no |
11614 | ;; |
11615 | m88k*) |
11616 | # FIXME: insert proper C++ library support |
11617 | ld_shlibs_CXX=no |
11618 | ;; |
11619 | mvs*) |
11620 | case $cc_basename in |
11621 | cxx*) |
11622 | # FIXME: insert proper C++ library support |
11623 | ld_shlibs_CXX=no |
11624 | ;; |
11625 | *) |
11626 | # FIXME: insert proper C++ library support |
11627 | ld_shlibs_CXX=no |
11628 | ;; |
11629 | esac |
11630 | ;; |
11631 | netbsd*) |
11632 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11633 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11634 | wlarc= |
11635 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11636 | hardcode_direct_CXX=yes |
11637 | hardcode_shlibpath_var_CXX=no |
11638 | fi |
11639 | # Workaround some broken pre-1.5 toolchains |
11640 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11641 | ;; |
11642 | openbsd2*) |
11643 | # C++ shared libraries are fairly broken |
11644 | ld_shlibs_CXX=no |
11645 | ;; |
11646 | openbsd*) |
ac40fd9e |
11647 | if test -f /usr/libexec/ld.so; then |
11648 | hardcode_direct_CXX=yes |
11649 | hardcode_shlibpath_var_CXX=no |
11650 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11651 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11652 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11653 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11654 | export_dynamic_flag_spec_CXX='${wl}-E' |
11655 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11656 | fi |
11657 | output_verbose_link_cmd='echo' |
11658 | else |
11659 | ld_shlibs_CXX=no |
d9898ee8 |
11660 | fi |
d9898ee8 |
11661 | ;; |
11662 | osf3*) |
11663 | case $cc_basename in |
11664 | KCC*) |
11665 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11666 | |
11667 | # KCC will only create a shared library if the output file |
11668 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11669 | # to its proper name (with version) after linking. |
11670 | 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' |
11671 | |
11672 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11673 | hardcode_libdir_separator_CXX=: |
11674 | |
11675 | # Archives containing C++ object files must be created using |
11676 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11677 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11678 | |
11679 | ;; |
11680 | RCC*) |
11681 | # Rational C++ 2.4.1 |
11682 | # FIXME: insert proper C++ library support |
11683 | ld_shlibs_CXX=no |
11684 | ;; |
11685 | cxx*) |
11686 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11687 | 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' |
11688 | |
11689 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11690 | hardcode_libdir_separator_CXX=: |
11691 | |
11692 | # Commands to make compiler produce verbose output that lists |
11693 | # what "hidden" libraries, object files and flags are used when |
11694 | # linking a shared library. |
11695 | # |
11696 | # There doesn't appear to be a way to prevent this compiler from |
11697 | # explicitly linking system object files so we need to strip them |
11698 | # from the output so that they don't get included in the library |
11699 | # dependencies. |
11700 | 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' |
11701 | ;; |
11702 | *) |
11703 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11704 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11705 | 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' |
11706 | |
11707 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11708 | hardcode_libdir_separator_CXX=: |
11709 | |
11710 | # Commands to make compiler produce verbose output that lists |
11711 | # what "hidden" libraries, object files and flags are used when |
11712 | # linking a shared library. |
11713 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11714 | |
11715 | else |
11716 | # FIXME: insert proper C++ library support |
11717 | ld_shlibs_CXX=no |
11718 | fi |
11719 | ;; |
11720 | esac |
11721 | ;; |
11722 | osf4* | osf5*) |
11723 | case $cc_basename in |
11724 | KCC*) |
11725 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11726 | |
11727 | # KCC will only create a shared library if the output file |
11728 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11729 | # to its proper name (with version) after linking. |
11730 | 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' |
11731 | |
11732 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11733 | hardcode_libdir_separator_CXX=: |
11734 | |
11735 | # Archives containing C++ object files must be created using |
11736 | # the KAI C++ compiler. |
11737 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11738 | ;; |
11739 | RCC*) |
11740 | # Rational C++ 2.4.1 |
11741 | # FIXME: insert proper C++ library support |
11742 | ld_shlibs_CXX=no |
11743 | ;; |
11744 | cxx*) |
11745 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11746 | 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' |
11747 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11748 | echo "-hidden">> $lib.exp~ |
11749 | $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~ |
11750 | $rm $lib.exp' |
11751 | |
11752 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11753 | hardcode_libdir_separator_CXX=: |
11754 | |
11755 | # Commands to make compiler produce verbose output that lists |
11756 | # what "hidden" libraries, object files and flags are used when |
11757 | # linking a shared library. |
11758 | # |
11759 | # There doesn't appear to be a way to prevent this compiler from |
11760 | # explicitly linking system object files so we need to strip them |
11761 | # from the output so that they don't get included in the library |
11762 | # dependencies. |
11763 | 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' |
11764 | ;; |
11765 | *) |
11766 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11767 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11768 | 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' |
11769 | |
11770 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11771 | hardcode_libdir_separator_CXX=: |
11772 | |
11773 | # Commands to make compiler produce verbose output that lists |
11774 | # what "hidden" libraries, object files and flags are used when |
11775 | # linking a shared library. |
11776 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11777 | |
11778 | else |
11779 | # FIXME: insert proper C++ library support |
11780 | ld_shlibs_CXX=no |
11781 | fi |
11782 | ;; |
11783 | esac |
11784 | ;; |
11785 | psos*) |
11786 | # FIXME: insert proper C++ library support |
11787 | ld_shlibs_CXX=no |
11788 | ;; |
11789 | sunos4*) |
11790 | case $cc_basename in |
11791 | CC*) |
11792 | # Sun C++ 4.x |
11793 | # FIXME: insert proper C++ library support |
11794 | ld_shlibs_CXX=no |
11795 | ;; |
11796 | lcc*) |
11797 | # Lucid |
11798 | # FIXME: insert proper C++ library support |
11799 | ld_shlibs_CXX=no |
11800 | ;; |
11801 | *) |
11802 | # FIXME: insert proper C++ library support |
11803 | ld_shlibs_CXX=no |
11804 | ;; |
11805 | esac |
11806 | ;; |
11807 | solaris*) |
11808 | case $cc_basename in |
11809 | CC*) |
11810 | # Sun C++ 4.2, 5.x and Centerline C++ |
11811 | archive_cmds_need_lc_CXX=yes |
11812 | no_undefined_flag_CXX=' -zdefs' |
11813 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11814 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11815 | $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' |
11816 | |
11817 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11818 | hardcode_shlibpath_var_CXX=no |
11819 | case $host_os in |
11820 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11821 | *) |
ac40fd9e |
11822 | # The compiler driver will combine and reorder linker options, |
11823 | # but understands `-z linker_flag'. |
d9898ee8 |
11824 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
11825 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
d9898ee8 |
11826 | ;; |
11827 | esac |
11828 | link_all_deplibs_CXX=yes |
11829 | |
11830 | output_verbose_link_cmd='echo' |
11831 | |
11832 | # Archives containing C++ object files must be created using |
11833 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11834 | # necessary to make sure instantiated templates are included |
11835 | # in the archive. |
11836 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11837 | ;; |
11838 | gcx*) |
11839 | # Green Hills C++ Compiler |
11840 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11841 | |
11842 | # The C++ compiler must be used to create the archive. |
11843 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11844 | ;; |
11845 | *) |
11846 | # GNU C++ compiler with Solaris linker |
11847 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11848 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11849 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11850 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11851 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11852 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11853 | |
11854 | # Commands to make compiler produce verbose output that lists |
11855 | # what "hidden" libraries, object files and flags are used when |
11856 | # linking a shared library. |
11857 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11858 | else |
11859 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11860 | # platform. |
11861 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11862 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11863 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11864 | |
11865 | # Commands to make compiler produce verbose output that lists |
11866 | # what "hidden" libraries, object files and flags are used when |
11867 | # linking a shared library. |
11868 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11869 | fi |
11870 | |
11871 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
ac40fd9e |
11872 | case $host_os in |
11873 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11874 | *) |
11875 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
11876 | ;; |
11877 | esac |
d9898ee8 |
11878 | fi |
11879 | ;; |
11880 | esac |
11881 | ;; |
11882 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11883 | no_undefined_flag_CXX='${wl}-z,text' |
11884 | archive_cmds_need_lc_CXX=no |
11885 | hardcode_shlibpath_var_CXX=no |
11886 | runpath_var='LD_RUN_PATH' |
11887 | |
11888 | case $cc_basename in |
11889 | CC*) |
11890 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11891 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11892 | ;; |
11893 | *) |
11894 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11895 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11896 | ;; |
11897 | esac |
11898 | ;; |
11899 | sysv5* | sco3.2v5* | sco5v6*) |
11900 | # Note: We can NOT use -z defs as we might desire, because we do not |
11901 | # link with -lc, and that would cause any symbols used from libc to |
11902 | # always be unresolved, which means just about no library would |
11903 | # ever link correctly. If we're not using GNU ld we use -z text |
11904 | # though, which does catch some bad symbols but isn't as heavy-handed |
11905 | # as -z defs. |
11906 | # For security reasons, it is highly recommended that you always |
11907 | # use absolute paths for naming shared libraries, and exclude the |
11908 | # DT_RUNPATH tag from executables and libraries. But doing so |
11909 | # requires that you compile everything twice, which is a pain. |
11910 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11911 | # non-empty value in the environment. Most likely only useful for |
11912 | # creating official distributions of packages. |
11913 | # This is a hack until libtool officially supports absolute path |
11914 | # names for shared libraries. |
11915 | no_undefined_flag_CXX='${wl}-z,text' |
11916 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11917 | archive_cmds_need_lc_CXX=no |
11918 | hardcode_shlibpath_var_CXX=no |
11919 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11920 | hardcode_libdir_separator_CXX=':' |
11921 | link_all_deplibs_CXX=yes |
11922 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11923 | runpath_var='LD_RUN_PATH' |
11924 | |
11925 | case $cc_basename in |
11926 | CC*) |
11927 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11928 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11929 | ;; |
11930 | *) |
11931 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11932 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11933 | ;; |
11934 | esac |
11935 | ;; |
11936 | tandem*) |
11937 | case $cc_basename in |
11938 | NCC*) |
11939 | # NonStop-UX NCC 3.20 |
11940 | # FIXME: insert proper C++ library support |
11941 | ld_shlibs_CXX=no |
11942 | ;; |
11943 | *) |
11944 | # FIXME: insert proper C++ library support |
11945 | ld_shlibs_CXX=no |
11946 | ;; |
11947 | esac |
11948 | ;; |
11949 | vxworks*) |
11950 | # FIXME: insert proper C++ library support |
11951 | ld_shlibs_CXX=no |
11952 | ;; |
11953 | *) |
11954 | # FIXME: insert proper C++ library support |
11955 | ld_shlibs_CXX=no |
11956 | ;; |
11957 | esac |
dd184caf |
11958 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11959 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
11960 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11961 | |
11962 | GCC_CXX="$GXX" |
11963 | LD_CXX="$LD" |
11964 | |
11965 | |
11966 | cat > conftest.$ac_ext <<EOF |
11967 | class Foo |
11968 | { |
11969 | public: |
11970 | Foo (void) { a = 0; } |
11971 | private: |
11972 | int a; |
11973 | }; |
11974 | EOF |
11975 | |
11976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11977 | (eval $ac_compile) 2>&5 |
11978 | ac_status=$? |
11979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11980 | (exit $ac_status); }; then |
11981 | # Parse the compiler output and extract the necessary |
11982 | # objects, libraries and library flags. |
11983 | |
11984 | # Sentinel used to keep track of whether or not we are before |
11985 | # the conftest object file. |
11986 | pre_test_object_deps_done=no |
11987 | |
11988 | # The `*' in the case matches for architectures that use `case' in |
11989 | # $output_verbose_cmd can trigger glob expansion during the loop |
11990 | # eval without this substitution. |
11991 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11992 | |
11993 | for p in `eval $output_verbose_link_cmd`; do |
11994 | case $p in |
11995 | |
11996 | -L* | -R* | -l*) |
11997 | # Some compilers place space between "-{L,R}" and the path. |
11998 | # Remove the space. |
11999 | if test $p = "-L" \ |
12000 | || test $p = "-R"; then |
12001 | prev=$p |
12002 | continue |
12003 | else |
12004 | prev= |
12005 | fi |
12006 | |
12007 | if test "$pre_test_object_deps_done" = no; then |
12008 | case $p in |
12009 | -L* | -R*) |
12010 | # Internal compiler library paths should come after those |
12011 | # provided the user. The postdeps already come after the |
12012 | # user supplied libs so there is no need to process them. |
12013 | if test -z "$compiler_lib_search_path_CXX"; then |
12014 | compiler_lib_search_path_CXX="${prev}${p}" |
12015 | else |
12016 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12017 | fi |
12018 | ;; |
12019 | # The "-l" case would never come before the object being |
12020 | # linked, so don't bother handling this case. |
12021 | esac |
12022 | else |
12023 | if test -z "$postdeps_CXX"; then |
12024 | postdeps_CXX="${prev}${p}" |
12025 | else |
12026 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12027 | fi |
12028 | fi |
12029 | ;; |
12030 | |
12031 | *.$objext) |
12032 | # This assumes that the test object file only shows up |
12033 | # once in the compiler output. |
12034 | if test "$p" = "conftest.$objext"; then |
12035 | pre_test_object_deps_done=yes |
12036 | continue |
12037 | fi |
12038 | |
12039 | if test "$pre_test_object_deps_done" = no; then |
12040 | if test -z "$predep_objects_CXX"; then |
12041 | predep_objects_CXX="$p" |
12042 | else |
12043 | predep_objects_CXX="$predep_objects_CXX $p" |
12044 | fi |
12045 | else |
12046 | if test -z "$postdep_objects_CXX"; then |
12047 | postdep_objects_CXX="$p" |
12048 | else |
12049 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12050 | fi |
12051 | fi |
12052 | ;; |
12053 | |
12054 | *) ;; # Ignore the rest. |
12055 | |
12056 | esac |
12057 | done |
12058 | |
12059 | # Clean up. |
12060 | rm -f a.out a.exe |
12061 | else |
12062 | echo "libtool.m4: error: problem compiling CXX test program" |
12063 | fi |
12064 | |
12065 | $rm -f confest.$objext |
12066 | |
12067 | # PORTME: override above test on systems where it is broken |
12068 | case $host_os in |
ac40fd9e |
12069 | interix[3-9]*) |
d9898ee8 |
12070 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12071 | # hack all around it, let's just trust "g++" to DTRT. |
12072 | predep_objects_CXX= |
12073 | postdep_objects_CXX= |
12074 | postdeps_CXX= |
12075 | ;; |
12076 | |
ac40fd9e |
12077 | linux*) |
12078 | case `$CC -V 2>&1 | sed 5q` in |
12079 | *Sun\ C*) |
12080 | # Sun C++ 5.9 |
12081 | # |
12082 | # The more standards-conforming stlport4 library is |
12083 | # incompatible with the Cstd library. Avoid specifying |
12084 | # it if it's in CXXFLAGS. Ignore libCrun as |
12085 | # -library=stlport4 depends on it. |
12086 | case " $CXX $CXXFLAGS " in |
12087 | *" -library=stlport4 "*) |
12088 | solaris_use_stlport4=yes |
12089 | ;; |
12090 | esac |
12091 | if test "$solaris_use_stlport4" != yes; then |
12092 | postdeps_CXX='-library=Cstd -library=Crun' |
12093 | fi |
12094 | ;; |
12095 | esac |
12096 | ;; |
12097 | |
d9898ee8 |
12098 | solaris*) |
12099 | case $cc_basename in |
12100 | CC*) |
ac40fd9e |
12101 | # The more standards-conforming stlport4 library is |
12102 | # incompatible with the Cstd library. Avoid specifying |
12103 | # it if it's in CXXFLAGS. Ignore libCrun as |
12104 | # -library=stlport4 depends on it. |
12105 | case " $CXX $CXXFLAGS " in |
12106 | *" -library=stlport4 "*) |
12107 | solaris_use_stlport4=yes |
12108 | ;; |
12109 | esac |
12110 | |
d9898ee8 |
12111 | # Adding this requires a known-good setup of shared libraries for |
12112 | # Sun compiler versions before 5.6, else PIC objects from an old |
12113 | # archive will be linked into the output, leading to subtle bugs. |
ac40fd9e |
12114 | if test "$solaris_use_stlport4" != yes; then |
12115 | postdeps_CXX='-library=Cstd -library=Crun' |
12116 | fi |
d9898ee8 |
12117 | ;; |
12118 | esac |
12119 | ;; |
12120 | esac |
12121 | |
12122 | |
12123 | case " $postdeps_CXX " in |
12124 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12125 | esac |
12126 | |
12127 | lt_prog_compiler_wl_CXX= |
12128 | lt_prog_compiler_pic_CXX= |
12129 | lt_prog_compiler_static_CXX= |
12130 | |
dd184caf |
12131 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12132 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12133 | |
12134 | # C++ specific cases for pic, static, wl, etc. |
12135 | if test "$GXX" = yes; then |
12136 | lt_prog_compiler_wl_CXX='-Wl,' |
12137 | lt_prog_compiler_static_CXX='-static' |
12138 | |
12139 | case $host_os in |
12140 | aix*) |
12141 | # All AIX code is PIC. |
12142 | if test "$host_cpu" = ia64; then |
12143 | # AIX 5 now supports IA64 processor |
12144 | lt_prog_compiler_static_CXX='-Bstatic' |
12145 | fi |
12146 | ;; |
12147 | amigaos*) |
12148 | # FIXME: we need at least 68020 code to build shared libraries, but |
12149 | # adding the `-m68020' flag to GCC prevents building anything better, |
12150 | # like `-m68040'. |
12151 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12152 | ;; |
ac40fd9e |
12153 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
12154 | # PIC is the default for these OSes. |
12155 | ;; |
ac40fd9e |
12156 | mingw* | cygwin* | os2* | pw32*) |
d9898ee8 |
12157 | # This hack is so that the source file can tell whether it is being |
12158 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
12159 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
12160 | # (--disable-auto-import) libraries |
d9898ee8 |
12161 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12162 | ;; |
12163 | darwin* | rhapsody*) |
12164 | # PIC is the default on this platform |
12165 | # Common symbols not allowed in MH_DYLIB files |
12166 | lt_prog_compiler_pic_CXX='-fno-common' |
12167 | ;; |
12168 | *djgpp*) |
12169 | # DJGPP does not support shared libraries at all |
12170 | lt_prog_compiler_pic_CXX= |
12171 | ;; |
ac40fd9e |
12172 | interix[3-9]*) |
d9898ee8 |
12173 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12174 | # Instead, we relocate shared libraries at runtime. |
12175 | ;; |
12176 | sysv4*MP*) |
12177 | if test -d /usr/nec; then |
12178 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12179 | fi |
12180 | ;; |
12181 | hpux*) |
12182 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12183 | # not for PA HP-UX. |
12184 | case $host_cpu in |
12185 | hppa*64*|ia64*) |
12186 | ;; |
12187 | *) |
12188 | lt_prog_compiler_pic_CXX='-fPIC' |
12189 | ;; |
12190 | esac |
12191 | ;; |
12192 | *) |
12193 | lt_prog_compiler_pic_CXX='-fPIC' |
12194 | ;; |
12195 | esac |
12196 | else |
12197 | case $host_os in |
12198 | aix4* | aix5*) |
12199 | # All AIX code is PIC. |
12200 | if test "$host_cpu" = ia64; then |
12201 | # AIX 5 now supports IA64 processor |
12202 | lt_prog_compiler_static_CXX='-Bstatic' |
12203 | else |
12204 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12205 | fi |
12206 | ;; |
12207 | chorus*) |
12208 | case $cc_basename in |
12209 | cxch68*) |
12210 | # Green Hills C++ Compiler |
12211 | # _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" |
12212 | ;; |
12213 | esac |
12214 | ;; |
12215 | darwin*) |
12216 | # PIC is the default on this platform |
12217 | # Common symbols not allowed in MH_DYLIB files |
12218 | case $cc_basename in |
12219 | xlc*) |
12220 | lt_prog_compiler_pic_CXX='-qnocommon' |
12221 | lt_prog_compiler_wl_CXX='-Wl,' |
12222 | ;; |
12223 | esac |
12224 | ;; |
12225 | dgux*) |
12226 | case $cc_basename in |
12227 | ec++*) |
12228 | lt_prog_compiler_pic_CXX='-KPIC' |
12229 | ;; |
12230 | ghcx*) |
12231 | # Green Hills C++ Compiler |
12232 | lt_prog_compiler_pic_CXX='-pic' |
12233 | ;; |
12234 | *) |
12235 | ;; |
12236 | esac |
12237 | ;; |
ac40fd9e |
12238 | freebsd* | dragonfly*) |
d9898ee8 |
12239 | # FreeBSD uses GNU C++ |
12240 | ;; |
12241 | hpux9* | hpux10* | hpux11*) |
12242 | case $cc_basename in |
12243 | CC*) |
12244 | lt_prog_compiler_wl_CXX='-Wl,' |
12245 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12246 | if test "$host_cpu" != ia64; then |
12247 | lt_prog_compiler_pic_CXX='+Z' |
12248 | fi |
12249 | ;; |
12250 | aCC*) |
12251 | lt_prog_compiler_wl_CXX='-Wl,' |
12252 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12253 | case $host_cpu in |
12254 | hppa*64*|ia64*) |
12255 | # +Z the default |
12256 | ;; |
12257 | *) |
12258 | lt_prog_compiler_pic_CXX='+Z' |
12259 | ;; |
12260 | esac |
12261 | ;; |
12262 | *) |
12263 | ;; |
12264 | esac |
12265 | ;; |
12266 | interix*) |
12267 | # This is c89, which is MS Visual C++ (no shared libs) |
12268 | # Anyone wants to do a port? |
12269 | ;; |
12270 | irix5* | irix6* | nonstopux*) |
12271 | case $cc_basename in |
12272 | CC*) |
12273 | lt_prog_compiler_wl_CXX='-Wl,' |
12274 | lt_prog_compiler_static_CXX='-non_shared' |
12275 | # CC pic flag -KPIC is the default. |
12276 | ;; |
12277 | *) |
12278 | ;; |
12279 | esac |
12280 | ;; |
ac40fd9e |
12281 | linux* | k*bsd*-gnu) |
d9898ee8 |
12282 | case $cc_basename in |
12283 | KCC*) |
12284 | # KAI C++ Compiler |
12285 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12286 | lt_prog_compiler_pic_CXX='-fPIC' |
12287 | ;; |
12288 | icpc* | ecpc*) |
12289 | # Intel C++ |
12290 | lt_prog_compiler_wl_CXX='-Wl,' |
12291 | lt_prog_compiler_pic_CXX='-KPIC' |
12292 | lt_prog_compiler_static_CXX='-static' |
12293 | ;; |
12294 | pgCC*) |
12295 | # Portland Group C++ compiler. |
12296 | lt_prog_compiler_wl_CXX='-Wl,' |
12297 | lt_prog_compiler_pic_CXX='-fpic' |
12298 | lt_prog_compiler_static_CXX='-Bstatic' |
12299 | ;; |
12300 | cxx*) |
12301 | # Compaq C++ |
12302 | # Make sure the PIC flag is empty. It appears that all Alpha |
12303 | # Linux and Compaq Tru64 Unix objects are PIC. |
12304 | lt_prog_compiler_pic_CXX= |
12305 | lt_prog_compiler_static_CXX='-non_shared' |
12306 | ;; |
12307 | *) |
ac40fd9e |
12308 | case `$CC -V 2>&1 | sed 5q` in |
12309 | *Sun\ C*) |
12310 | # Sun C++ 5.9 |
12311 | lt_prog_compiler_pic_CXX='-KPIC' |
12312 | lt_prog_compiler_static_CXX='-Bstatic' |
12313 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12314 | ;; |
12315 | esac |
d9898ee8 |
12316 | ;; |
12317 | esac |
12318 | ;; |
12319 | lynxos*) |
12320 | ;; |
12321 | m88k*) |
12322 | ;; |
12323 | mvs*) |
12324 | case $cc_basename in |
12325 | cxx*) |
12326 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12327 | ;; |
12328 | *) |
12329 | ;; |
12330 | esac |
12331 | ;; |
12332 | netbsd*) |
12333 | ;; |
12334 | osf3* | osf4* | osf5*) |
12335 | case $cc_basename in |
12336 | KCC*) |
12337 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12338 | ;; |
12339 | RCC*) |
12340 | # Rational C++ 2.4.1 |
12341 | lt_prog_compiler_pic_CXX='-pic' |
12342 | ;; |
12343 | cxx*) |
12344 | # Digital/Compaq C++ |
12345 | lt_prog_compiler_wl_CXX='-Wl,' |
12346 | # Make sure the PIC flag is empty. It appears that all Alpha |
12347 | # Linux and Compaq Tru64 Unix objects are PIC. |
12348 | lt_prog_compiler_pic_CXX= |
12349 | lt_prog_compiler_static_CXX='-non_shared' |
12350 | ;; |
12351 | *) |
12352 | ;; |
12353 | esac |
12354 | ;; |
12355 | psos*) |
12356 | ;; |
12357 | solaris*) |
12358 | case $cc_basename in |
12359 | CC*) |
12360 | # Sun C++ 4.2, 5.x and Centerline C++ |
12361 | lt_prog_compiler_pic_CXX='-KPIC' |
12362 | lt_prog_compiler_static_CXX='-Bstatic' |
12363 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12364 | ;; |
12365 | gcx*) |
12366 | # Green Hills C++ Compiler |
12367 | lt_prog_compiler_pic_CXX='-PIC' |
12368 | ;; |
12369 | *) |
12370 | ;; |
12371 | esac |
12372 | ;; |
12373 | sunos4*) |
12374 | case $cc_basename in |
12375 | CC*) |
12376 | # Sun C++ 4.x |
12377 | lt_prog_compiler_pic_CXX='-pic' |
12378 | lt_prog_compiler_static_CXX='-Bstatic' |
12379 | ;; |
12380 | lcc*) |
12381 | # Lucid |
12382 | lt_prog_compiler_pic_CXX='-pic' |
12383 | ;; |
12384 | *) |
12385 | ;; |
12386 | esac |
12387 | ;; |
12388 | tandem*) |
12389 | case $cc_basename in |
12390 | NCC*) |
12391 | # NonStop-UX NCC 3.20 |
12392 | lt_prog_compiler_pic_CXX='-KPIC' |
12393 | ;; |
12394 | *) |
12395 | ;; |
12396 | esac |
12397 | ;; |
12398 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12399 | case $cc_basename in |
12400 | CC*) |
12401 | lt_prog_compiler_wl_CXX='-Wl,' |
12402 | lt_prog_compiler_pic_CXX='-KPIC' |
12403 | lt_prog_compiler_static_CXX='-Bstatic' |
12404 | ;; |
12405 | esac |
12406 | ;; |
12407 | vxworks*) |
12408 | ;; |
12409 | *) |
12410 | lt_prog_compiler_can_build_shared_CXX=no |
12411 | ;; |
12412 | esac |
12413 | fi |
12414 | |
dd184caf |
12415 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12416 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12417 | |
12418 | # |
12419 | # Check to make sure the PIC flag actually works. |
12420 | # |
12421 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12422 | |
dd184caf |
12423 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12424 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12425 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12427 | else |
12428 | lt_prog_compiler_pic_works_CXX=no |
12429 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
12430 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12431 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12432 | # Insert the option either (1) after the last *FLAGS variable, or |
12433 | # (2) before a word containing "conftest.", or (3) at the end. |
12434 | # Note that $ac_compile itself does not contain backslashes and begins |
12435 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12436 | # The option is referenced via a variable to avoid confusing sed. |
12437 | lt_compile=`echo "$ac_compile" | $SED \ |
12438 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12439 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12440 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
12441 | (eval echo "\"\$as_me:12441: $lt_compile\"" >&5) |
d9898ee8 |
12442 | (eval "$lt_compile" 2>conftest.err) |
12443 | ac_status=$? |
12444 | cat conftest.err >&5 |
ac40fd9e |
12445 | echo "$as_me:12445: \$? = $ac_status" >&5 |
d9898ee8 |
12446 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12447 | # The compiler can only warn and ignore the option if not recognized |
12448 | # So say no if there are warnings other than the usual output. |
12449 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12450 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12451 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12452 | lt_prog_compiler_pic_works_CXX=yes |
12453 | fi |
12454 | fi |
12455 | $rm conftest* |
12456 | |
12457 | fi |
dd184caf |
12458 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12459 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12460 | |
12461 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12462 | case $lt_prog_compiler_pic_CXX in |
12463 | "" | " "*) ;; |
12464 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12465 | esac |
12466 | else |
12467 | lt_prog_compiler_pic_CXX= |
12468 | lt_prog_compiler_can_build_shared_CXX=no |
12469 | fi |
12470 | |
12471 | fi |
12472 | case $host_os in |
12473 | # For platforms which do not support PIC, -DPIC is meaningless: |
12474 | *djgpp*) |
12475 | lt_prog_compiler_pic_CXX= |
12476 | ;; |
12477 | *) |
12478 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12479 | ;; |
12480 | esac |
12481 | |
12482 | # |
12483 | # Check to make sure the static flag actually works. |
12484 | # |
12485 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
dd184caf |
12486 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12487 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12488 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12490 | else |
12491 | lt_prog_compiler_static_works_CXX=no |
12492 | save_LDFLAGS="$LDFLAGS" |
12493 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
12494 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
12495 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12496 | # The linker can only warn and ignore the option if not recognized |
12497 | # So say no if there are warnings |
12498 | if test -s conftest.err; then |
12499 | # Append any errors to the config.log. |
12500 | cat conftest.err 1>&5 |
12501 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12502 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12503 | if diff conftest.exp conftest.er2 >/dev/null; then |
12504 | lt_prog_compiler_static_works_CXX=yes |
12505 | fi |
12506 | else |
12507 | lt_prog_compiler_static_works_CXX=yes |
12508 | fi |
12509 | fi |
12510 | $rm conftest* |
12511 | LDFLAGS="$save_LDFLAGS" |
12512 | |
12513 | fi |
dd184caf |
12514 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12515 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12516 | |
12517 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12518 | : |
12519 | else |
12520 | lt_prog_compiler_static_CXX= |
12521 | fi |
12522 | |
12523 | |
dd184caf |
12524 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12525 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12526 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12528 | else |
12529 | lt_cv_prog_compiler_c_o_CXX=no |
12530 | $rm -r conftest 2>/dev/null |
12531 | mkdir conftest |
12532 | cd conftest |
12533 | mkdir out |
ac40fd9e |
12534 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12535 | |
12536 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12537 | # Insert the option either (1) after the last *FLAGS variable, or |
12538 | # (2) before a word containing "conftest.", or (3) at the end. |
12539 | # Note that $ac_compile itself does not contain backslashes and begins |
12540 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12541 | lt_compile=`echo "$ac_compile" | $SED \ |
12542 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12543 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12544 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
12545 | (eval echo "\"\$as_me:12545: $lt_compile\"" >&5) |
d9898ee8 |
12546 | (eval "$lt_compile" 2>out/conftest.err) |
12547 | ac_status=$? |
12548 | cat out/conftest.err >&5 |
ac40fd9e |
12549 | echo "$as_me:12549: \$? = $ac_status" >&5 |
d9898ee8 |
12550 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12551 | then |
12552 | # The compiler can only warn and ignore the option if not recognized |
12553 | # So say no if there are warnings |
12554 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12555 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12556 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12557 | lt_cv_prog_compiler_c_o_CXX=yes |
12558 | fi |
12559 | fi |
12560 | chmod u+w . 2>&5 |
12561 | $rm conftest* |
12562 | # SGI C++ compiler will create directory out/ii_files/ for |
12563 | # template instantiation |
12564 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12565 | $rm out/* && rmdir out |
12566 | cd .. |
12567 | rmdir conftest |
12568 | $rm conftest* |
12569 | |
12570 | fi |
dd184caf |
12571 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12572 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12573 | |
12574 | |
12575 | hard_links="nottested" |
12576 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12577 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
12578 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12579 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12580 | hard_links=yes |
12581 | $rm conftest* |
12582 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12583 | touch conftest.a |
12584 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12585 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
12586 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12587 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12588 | if test "$hard_links" = no; then |
12589 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12590 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12591 | need_locks=warn |
12592 | fi |
12593 | else |
12594 | need_locks=no |
12595 | fi |
12596 | |
dd184caf |
12597 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12598 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12599 | |
12600 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12601 | case $host_os in |
12602 | aix4* | aix5*) |
12603 | # If we're using GNU nm, then we don't want the "-C" option. |
12604 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12605 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12606 | 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' |
12607 | else |
12608 | 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' |
12609 | fi |
12610 | ;; |
12611 | pw32*) |
12612 | export_symbols_cmds_CXX="$ltdll_cmds" |
12613 | ;; |
12614 | cygwin* | mingw*) |
ac40fd9e |
12615 | 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 |
12616 | ;; |
12617 | *) |
12618 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12619 | ;; |
12620 | esac |
12621 | |
dd184caf |
12622 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12623 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12624 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12625 | |
12626 | # |
12627 | # Do we need to explicitly link libc? |
12628 | # |
12629 | case "x$archive_cmds_need_lc_CXX" in |
12630 | x|xyes) |
12631 | # Assume -lc should be added |
12632 | archive_cmds_need_lc_CXX=yes |
12633 | |
12634 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12635 | case $archive_cmds_CXX in |
12636 | *'~'*) |
12637 | # FIXME: we may have to deal with multi-command sequences. |
12638 | ;; |
12639 | '$CC '*) |
12640 | # Test whether the compiler implicitly links with -lc since on some |
12641 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12642 | # to ld, don't add -lc before -lgcc. |
dd184caf |
12643 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12644 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12645 | $rm conftest* |
ac40fd9e |
12646 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12647 | |
12648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12649 | (eval $ac_compile) 2>&5 |
12650 | ac_status=$? |
12651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12652 | (exit $ac_status); } 2>conftest.err; then |
12653 | soname=conftest |
12654 | lib=conftest |
12655 | libobjs=conftest.$ac_objext |
12656 | deplibs= |
12657 | wl=$lt_prog_compiler_wl_CXX |
12658 | pic_flag=$lt_prog_compiler_pic_CXX |
12659 | compiler_flags=-v |
12660 | linker_flags=-v |
12661 | verstring= |
12662 | output_objdir=. |
12663 | libname=conftest |
12664 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12665 | allow_undefined_flag_CXX= |
12666 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12667 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12668 | ac_status=$? |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12670 | (exit $ac_status); } |
12671 | then |
12672 | archive_cmds_need_lc_CXX=no |
12673 | else |
12674 | archive_cmds_need_lc_CXX=yes |
12675 | fi |
12676 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12677 | else |
12678 | cat conftest.err 1>&5 |
12679 | fi |
12680 | $rm conftest* |
dd184caf |
12681 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12682 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12683 | ;; |
12684 | esac |
12685 | fi |
12686 | ;; |
12687 | esac |
12688 | |
dd184caf |
12689 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12690 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12691 | library_names_spec= |
12692 | libname_spec='lib$name' |
12693 | soname_spec= |
12694 | shrext_cmds=".so" |
12695 | postinstall_cmds= |
12696 | postuninstall_cmds= |
12697 | finish_cmds= |
12698 | finish_eval= |
12699 | shlibpath_var= |
12700 | shlibpath_overrides_runpath=unknown |
12701 | version_type=none |
12702 | dynamic_linker="$host_os ld.so" |
12703 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
12704 | |
d9898ee8 |
12705 | need_lib_prefix=unknown |
12706 | hardcode_into_libs=no |
12707 | |
12708 | # when you set need_version to no, make sure it does not cause -set_version |
12709 | # flags to be left without arguments |
12710 | need_version=unknown |
12711 | |
12712 | case $host_os in |
12713 | aix3*) |
12714 | version_type=linux |
12715 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12716 | shlibpath_var=LIBPATH |
12717 | |
12718 | # AIX 3 has no versioning support, so we append a major version to the name. |
12719 | soname_spec='${libname}${release}${shared_ext}$major' |
12720 | ;; |
12721 | |
12722 | aix4* | aix5*) |
12723 | version_type=linux |
12724 | need_lib_prefix=no |
12725 | need_version=no |
12726 | hardcode_into_libs=yes |
12727 | if test "$host_cpu" = ia64; then |
12728 | # AIX 5 supports IA64 |
12729 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12730 | shlibpath_var=LD_LIBRARY_PATH |
12731 | else |
12732 | # With GCC up to 2.95.x, collect2 would create an import file |
12733 | # for dependence libraries. The import file would start with |
12734 | # the line `#! .'. This would cause the generated library to |
12735 | # depend on `.', always an invalid library. This was fixed in |
12736 | # development snapshots of GCC prior to 3.0. |
12737 | case $host_os in |
12738 | aix4 | aix4.[01] | aix4.[01].*) |
12739 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12740 | echo ' yes ' |
12741 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12742 | : |
12743 | else |
12744 | can_build_shared=no |
12745 | fi |
12746 | ;; |
12747 | esac |
12748 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12749 | # soname into executable. Probably we can add versioning support to |
12750 | # collect2, so additional links can be useful in future. |
12751 | if test "$aix_use_runtimelinking" = yes; then |
12752 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12753 | # instead of lib<name>.a to let people know that these are not |
12754 | # typical AIX shared libraries. |
12755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12756 | else |
12757 | # We preserve .a as extension for shared libraries through AIX4.2 |
12758 | # and later when we are not doing run time linking. |
12759 | library_names_spec='${libname}${release}.a $libname.a' |
12760 | soname_spec='${libname}${release}${shared_ext}$major' |
12761 | fi |
12762 | shlibpath_var=LIBPATH |
12763 | fi |
12764 | ;; |
12765 | |
12766 | amigaos*) |
12767 | library_names_spec='$libname.ixlibrary $libname.a' |
12768 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12769 | 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' |
12770 | ;; |
12771 | |
12772 | beos*) |
12773 | library_names_spec='${libname}${shared_ext}' |
12774 | dynamic_linker="$host_os ld.so" |
12775 | shlibpath_var=LIBRARY_PATH |
12776 | ;; |
12777 | |
12778 | bsdi[45]*) |
12779 | version_type=linux |
12780 | need_version=no |
12781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12782 | soname_spec='${libname}${release}${shared_ext}$major' |
12783 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12784 | shlibpath_var=LD_LIBRARY_PATH |
12785 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12786 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12787 | # the default ld.so.conf also contains /usr/contrib/lib and |
12788 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12789 | # libtool to hard-code these into programs |
12790 | ;; |
12791 | |
12792 | cygwin* | mingw* | pw32*) |
12793 | version_type=windows |
12794 | shrext_cmds=".dll" |
12795 | need_version=no |
12796 | need_lib_prefix=no |
12797 | |
12798 | case $GCC,$host_os in |
12799 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12800 | library_names_spec='$libname.dll.a' |
12801 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12802 | postinstall_cmds='base_file=`basename \${file}`~ |
12803 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12804 | dldir=$destdir/`dirname \$dlpath`~ |
12805 | test -d \$dldir || mkdir -p \$dldir~ |
12806 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12807 | chmod a+x \$dldir/$dlname' |
12808 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12809 | dlpath=$dir/\$dldll~ |
12810 | $rm \$dlpath' |
12811 | shlibpath_overrides_runpath=yes |
12812 | |
12813 | case $host_os in |
12814 | cygwin*) |
12815 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12816 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12817 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12818 | ;; |
12819 | mingw*) |
12820 | # MinGW DLLs use traditional 'lib' prefix |
12821 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12822 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12823 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12824 | # It is most probably a Windows format PATH printed by |
12825 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12826 | # path with ; separators, and with drive letters. We can handle the |
12827 | # drive letters (cygwin fileutils understands them), so leave them, |
12828 | # especially as we might pass files found there to a mingw objdump, |
12829 | # which wouldn't understand a cygwinified path. Ahh. |
12830 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12831 | else |
12832 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12833 | fi |
12834 | ;; |
12835 | pw32*) |
12836 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12837 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12838 | ;; |
12839 | esac |
12840 | ;; |
12841 | |
12842 | *) |
12843 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12844 | ;; |
12845 | esac |
12846 | dynamic_linker='Win32 ld.exe' |
12847 | # FIXME: first we should search . and the directory the executable is in |
12848 | shlibpath_var=PATH |
12849 | ;; |
12850 | |
12851 | darwin* | rhapsody*) |
12852 | dynamic_linker="$host_os dyld" |
12853 | version_type=darwin |
12854 | need_lib_prefix=no |
12855 | need_version=no |
12856 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12857 | soname_spec='${libname}${release}${major}$shared_ext' |
12858 | shlibpath_overrides_runpath=yes |
12859 | shlibpath_var=DYLD_LIBRARY_PATH |
12860 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
12861 | |
d9898ee8 |
12862 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12863 | ;; |
12864 | |
12865 | dgux*) |
12866 | version_type=linux |
12867 | need_lib_prefix=no |
12868 | need_version=no |
12869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12870 | soname_spec='${libname}${release}${shared_ext}$major' |
12871 | shlibpath_var=LD_LIBRARY_PATH |
12872 | ;; |
12873 | |
12874 | freebsd1*) |
12875 | dynamic_linker=no |
12876 | ;; |
12877 | |
d9898ee8 |
12878 | freebsd* | dragonfly*) |
12879 | # DragonFly does not have aout. When/if they implement a new |
12880 | # versioning mechanism, adjust this. |
12881 | if test -x /usr/bin/objformat; then |
12882 | objformat=`/usr/bin/objformat` |
12883 | else |
12884 | case $host_os in |
12885 | freebsd[123]*) objformat=aout ;; |
12886 | *) objformat=elf ;; |
12887 | esac |
12888 | fi |
12889 | version_type=freebsd-$objformat |
12890 | case $version_type in |
12891 | freebsd-elf*) |
12892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12893 | need_version=no |
12894 | need_lib_prefix=no |
12895 | ;; |
12896 | freebsd-*) |
12897 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12898 | need_version=yes |
12899 | ;; |
12900 | esac |
12901 | shlibpath_var=LD_LIBRARY_PATH |
12902 | case $host_os in |
12903 | freebsd2*) |
12904 | shlibpath_overrides_runpath=yes |
12905 | ;; |
12906 | freebsd3.[01]* | freebsdelf3.[01]*) |
12907 | shlibpath_overrides_runpath=yes |
12908 | hardcode_into_libs=yes |
12909 | ;; |
12910 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12911 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12912 | shlibpath_overrides_runpath=no |
12913 | hardcode_into_libs=yes |
12914 | ;; |
ac40fd9e |
12915 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
12916 | shlibpath_overrides_runpath=yes |
12917 | hardcode_into_libs=yes |
12918 | ;; |
12919 | esac |
12920 | ;; |
12921 | |
12922 | gnu*) |
12923 | version_type=linux |
12924 | need_lib_prefix=no |
12925 | need_version=no |
12926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12927 | soname_spec='${libname}${release}${shared_ext}$major' |
12928 | shlibpath_var=LD_LIBRARY_PATH |
12929 | hardcode_into_libs=yes |
12930 | ;; |
12931 | |
12932 | hpux9* | hpux10* | hpux11*) |
12933 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12934 | # link against other versions. |
12935 | version_type=sunos |
12936 | need_lib_prefix=no |
12937 | need_version=no |
12938 | case $host_cpu in |
12939 | ia64*) |
12940 | shrext_cmds='.so' |
12941 | hardcode_into_libs=yes |
12942 | dynamic_linker="$host_os dld.so" |
12943 | shlibpath_var=LD_LIBRARY_PATH |
12944 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12946 | soname_spec='${libname}${release}${shared_ext}$major' |
12947 | if test "X$HPUX_IA64_MODE" = X32; then |
12948 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12949 | else |
12950 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12951 | fi |
12952 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12953 | ;; |
12954 | hppa*64*) |
12955 | shrext_cmds='.sl' |
12956 | hardcode_into_libs=yes |
12957 | dynamic_linker="$host_os dld.sl" |
12958 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12959 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12961 | soname_spec='${libname}${release}${shared_ext}$major' |
12962 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12963 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12964 | ;; |
12965 | *) |
12966 | shrext_cmds='.sl' |
12967 | dynamic_linker="$host_os dld.sl" |
12968 | shlibpath_var=SHLIB_PATH |
12969 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12971 | soname_spec='${libname}${release}${shared_ext}$major' |
12972 | ;; |
12973 | esac |
12974 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12975 | postinstall_cmds='chmod 555 $lib' |
12976 | ;; |
12977 | |
ac40fd9e |
12978 | interix[3-9]*) |
d9898ee8 |
12979 | version_type=linux |
12980 | need_lib_prefix=no |
12981 | need_version=no |
12982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12983 | soname_spec='${libname}${release}${shared_ext}$major' |
12984 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12985 | shlibpath_var=LD_LIBRARY_PATH |
12986 | shlibpath_overrides_runpath=no |
12987 | hardcode_into_libs=yes |
12988 | ;; |
12989 | |
12990 | irix5* | irix6* | nonstopux*) |
12991 | case $host_os in |
12992 | nonstopux*) version_type=nonstopux ;; |
12993 | *) |
12994 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12995 | version_type=linux |
12996 | else |
12997 | version_type=irix |
12998 | fi ;; |
12999 | esac |
13000 | need_lib_prefix=no |
13001 | need_version=no |
13002 | soname_spec='${libname}${release}${shared_ext}$major' |
13003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13004 | case $host_os in |
13005 | irix5* | nonstopux*) |
13006 | libsuff= shlibsuff= |
13007 | ;; |
13008 | *) |
13009 | case $LD in # libtool.m4 will add one of these switches to LD |
13010 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13011 | libsuff= shlibsuff= libmagic=32-bit;; |
13012 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13013 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13014 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13015 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13016 | *) libsuff= shlibsuff= libmagic=never-match;; |
13017 | esac |
13018 | ;; |
13019 | esac |
13020 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13021 | shlibpath_overrides_runpath=no |
13022 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13023 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13024 | hardcode_into_libs=yes |
13025 | ;; |
13026 | |
13027 | # No shared lib support for Linux oldld, aout, or coff. |
13028 | linux*oldld* | linux*aout* | linux*coff*) |
13029 | dynamic_linker=no |
13030 | ;; |
13031 | |
13032 | # This must be Linux ELF. |
ac40fd9e |
13033 | linux* | k*bsd*-gnu) |
d9898ee8 |
13034 | version_type=linux |
13035 | need_lib_prefix=no |
13036 | need_version=no |
13037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13038 | soname_spec='${libname}${release}${shared_ext}$major' |
13039 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13040 | shlibpath_var=LD_LIBRARY_PATH |
13041 | shlibpath_overrides_runpath=no |
13042 | # This implies no fast_install, which is unacceptable. |
13043 | # Some rework will be needed to allow for fast_install |
13044 | # before this can be enabled. |
13045 | hardcode_into_libs=yes |
ac40fd9e |
13046 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13047 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
13048 | |
13049 | # Append ld.so.conf contents to the search path |
13050 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
13051 | 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' ' '` |
13052 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
13053 | fi |
13054 | |
13055 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13056 | # powerpc, because MkLinux only supported shared libraries with the |
13057 | # GNU dynamic linker. Since this was broken with cross compilers, |
13058 | # most powerpc-linux boxes support dynamic linking these days and |
13059 | # people can always --disable-shared, the test was removed, and we |
13060 | # assume the GNU/Linux dynamic linker is in use. |
13061 | dynamic_linker='GNU/Linux ld.so' |
13062 | ;; |
13063 | |
d9898ee8 |
13064 | netbsd*) |
13065 | version_type=sunos |
13066 | need_lib_prefix=no |
13067 | need_version=no |
13068 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13070 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13071 | dynamic_linker='NetBSD (a.out) ld.so' |
13072 | else |
13073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13074 | soname_spec='${libname}${release}${shared_ext}$major' |
13075 | dynamic_linker='NetBSD ld.elf_so' |
13076 | fi |
13077 | shlibpath_var=LD_LIBRARY_PATH |
13078 | shlibpath_overrides_runpath=yes |
13079 | hardcode_into_libs=yes |
13080 | ;; |
13081 | |
13082 | newsos6) |
13083 | version_type=linux |
13084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13085 | shlibpath_var=LD_LIBRARY_PATH |
13086 | shlibpath_overrides_runpath=yes |
13087 | ;; |
13088 | |
13089 | nto-qnx*) |
13090 | version_type=linux |
13091 | need_lib_prefix=no |
13092 | need_version=no |
13093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13094 | soname_spec='${libname}${release}${shared_ext}$major' |
13095 | shlibpath_var=LD_LIBRARY_PATH |
13096 | shlibpath_overrides_runpath=yes |
13097 | ;; |
13098 | |
13099 | openbsd*) |
13100 | version_type=sunos |
13101 | sys_lib_dlsearch_path_spec="/usr/lib" |
13102 | need_lib_prefix=no |
13103 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13104 | case $host_os in |
13105 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13106 | *) need_version=no ;; |
13107 | esac |
13108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13109 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13110 | shlibpath_var=LD_LIBRARY_PATH |
13111 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13112 | case $host_os in |
13113 | openbsd2.[89] | openbsd2.[89].*) |
13114 | shlibpath_overrides_runpath=no |
13115 | ;; |
13116 | *) |
13117 | shlibpath_overrides_runpath=yes |
13118 | ;; |
13119 | esac |
13120 | else |
13121 | shlibpath_overrides_runpath=yes |
13122 | fi |
13123 | ;; |
13124 | |
13125 | os2*) |
13126 | libname_spec='$name' |
13127 | shrext_cmds=".dll" |
13128 | need_lib_prefix=no |
13129 | library_names_spec='$libname${shared_ext} $libname.a' |
13130 | dynamic_linker='OS/2 ld.exe' |
13131 | shlibpath_var=LIBPATH |
13132 | ;; |
13133 | |
13134 | osf3* | osf4* | osf5*) |
13135 | version_type=osf |
13136 | need_lib_prefix=no |
13137 | need_version=no |
13138 | soname_spec='${libname}${release}${shared_ext}$major' |
13139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13140 | shlibpath_var=LD_LIBRARY_PATH |
13141 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13142 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13143 | ;; |
13144 | |
ac40fd9e |
13145 | rdos*) |
13146 | dynamic_linker=no |
13147 | ;; |
13148 | |
d9898ee8 |
13149 | solaris*) |
13150 | version_type=linux |
13151 | need_lib_prefix=no |
13152 | need_version=no |
13153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13154 | soname_spec='${libname}${release}${shared_ext}$major' |
13155 | shlibpath_var=LD_LIBRARY_PATH |
13156 | shlibpath_overrides_runpath=yes |
13157 | hardcode_into_libs=yes |
13158 | # ldd complains unless libraries are executable |
13159 | postinstall_cmds='chmod +x $lib' |
13160 | ;; |
13161 | |
13162 | sunos4*) |
13163 | version_type=sunos |
13164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13165 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13166 | shlibpath_var=LD_LIBRARY_PATH |
13167 | shlibpath_overrides_runpath=yes |
13168 | if test "$with_gnu_ld" = yes; then |
13169 | need_lib_prefix=no |
13170 | fi |
13171 | need_version=yes |
13172 | ;; |
13173 | |
13174 | sysv4 | sysv4.3*) |
13175 | version_type=linux |
13176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13177 | soname_spec='${libname}${release}${shared_ext}$major' |
13178 | shlibpath_var=LD_LIBRARY_PATH |
13179 | case $host_vendor in |
13180 | sni) |
13181 | shlibpath_overrides_runpath=no |
13182 | need_lib_prefix=no |
13183 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13184 | runpath_var=LD_RUN_PATH |
13185 | ;; |
13186 | siemens) |
13187 | need_lib_prefix=no |
13188 | ;; |
13189 | motorola) |
13190 | need_lib_prefix=no |
13191 | need_version=no |
13192 | shlibpath_overrides_runpath=no |
13193 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13194 | ;; |
13195 | esac |
13196 | ;; |
13197 | |
13198 | sysv4*MP*) |
13199 | if test -d /usr/nec ;then |
13200 | version_type=linux |
13201 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13202 | soname_spec='$libname${shared_ext}.$major' |
13203 | shlibpath_var=LD_LIBRARY_PATH |
13204 | fi |
13205 | ;; |
13206 | |
13207 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13208 | version_type=freebsd-elf |
13209 | need_lib_prefix=no |
13210 | need_version=no |
13211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13212 | soname_spec='${libname}${release}${shared_ext}$major' |
13213 | shlibpath_var=LD_LIBRARY_PATH |
13214 | hardcode_into_libs=yes |
13215 | if test "$with_gnu_ld" = yes; then |
13216 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13217 | shlibpath_overrides_runpath=no |
13218 | else |
13219 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13220 | shlibpath_overrides_runpath=yes |
13221 | case $host_os in |
13222 | sco3.2v5*) |
13223 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13224 | ;; |
13225 | esac |
13226 | fi |
13227 | sys_lib_dlsearch_path_spec='/usr/lib' |
13228 | ;; |
13229 | |
13230 | uts4*) |
13231 | version_type=linux |
13232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13233 | soname_spec='${libname}${release}${shared_ext}$major' |
13234 | shlibpath_var=LD_LIBRARY_PATH |
13235 | ;; |
13236 | |
13237 | *) |
13238 | dynamic_linker=no |
13239 | ;; |
13240 | esac |
dd184caf |
13241 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13242 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13243 | test "$dynamic_linker" = no && can_build_shared=no |
13244 | |
13245 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13246 | if test "$GCC" = yes; then |
13247 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13248 | fi |
13249 | |
dd184caf |
13250 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13251 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13252 | hardcode_action_CXX= |
13253 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13254 | test -n "$runpath_var_CXX" || \ |
13255 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13256 | |
13257 | # We can hardcode non-existant directories. |
13258 | if test "$hardcode_direct_CXX" != no && |
13259 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13260 | # have to relink, otherwise we might link with an installed library |
13261 | # when we should be linking with a yet-to-be-installed one |
13262 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13263 | test "$hardcode_minus_L_CXX" != no; then |
13264 | # Linking always hardcodes the temporary library directory. |
13265 | hardcode_action_CXX=relink |
13266 | else |
13267 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13268 | hardcode_action_CXX=immediate |
13269 | fi |
13270 | else |
13271 | # We cannot hardcode anything, or else we can only hardcode existing |
13272 | # directories. |
13273 | hardcode_action_CXX=unsupported |
13274 | fi |
dd184caf |
13275 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13276 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13277 | |
13278 | if test "$hardcode_action_CXX" = relink; then |
13279 | # Fast installation is not supported |
13280 | enable_fast_install=no |
13281 | elif test "$shlibpath_overrides_runpath" = yes || |
13282 | test "$enable_shared" = no; then |
13283 | # Fast installation is not necessary |
13284 | enable_fast_install=needless |
13285 | fi |
13286 | |
13287 | |
13288 | # The else clause should only fire when bootstrapping the |
13289 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13290 | # with your package, and you will get complaints that there are |
13291 | # no rules to generate ltmain.sh. |
13292 | if test -f "$ltmain"; then |
13293 | # See if we are running on zsh, and set the options which allow our commands through |
13294 | # without removal of \ escapes. |
13295 | if test -n "${ZSH_VERSION+set}" ; then |
13296 | setopt NO_GLOB_SUBST |
13297 | fi |
13298 | # Now quote all the things that may contain metacharacters while being |
13299 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13300 | # variables and quote the copies for generation of the libtool script. |
13301 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13302 | SED SHELL STRIP \ |
13303 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13304 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13305 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13306 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13307 | lt_cv_sys_global_symbol_to_c_name_address \ |
13308 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13309 | old_postinstall_cmds old_postuninstall_cmds \ |
13310 | compiler_CXX \ |
13311 | CC_CXX \ |
13312 | LD_CXX \ |
13313 | lt_prog_compiler_wl_CXX \ |
13314 | lt_prog_compiler_pic_CXX \ |
13315 | lt_prog_compiler_static_CXX \ |
13316 | lt_prog_compiler_no_builtin_flag_CXX \ |
13317 | export_dynamic_flag_spec_CXX \ |
13318 | thread_safe_flag_spec_CXX \ |
13319 | whole_archive_flag_spec_CXX \ |
13320 | enable_shared_with_static_runtimes_CXX \ |
13321 | old_archive_cmds_CXX \ |
13322 | old_archive_from_new_cmds_CXX \ |
13323 | predep_objects_CXX \ |
13324 | postdep_objects_CXX \ |
13325 | predeps_CXX \ |
13326 | postdeps_CXX \ |
13327 | compiler_lib_search_path_CXX \ |
13328 | archive_cmds_CXX \ |
13329 | archive_expsym_cmds_CXX \ |
13330 | postinstall_cmds_CXX \ |
13331 | postuninstall_cmds_CXX \ |
13332 | old_archive_from_expsyms_cmds_CXX \ |
13333 | allow_undefined_flag_CXX \ |
13334 | no_undefined_flag_CXX \ |
13335 | export_symbols_cmds_CXX \ |
13336 | hardcode_libdir_flag_spec_CXX \ |
13337 | hardcode_libdir_flag_spec_ld_CXX \ |
13338 | hardcode_libdir_separator_CXX \ |
13339 | hardcode_automatic_CXX \ |
13340 | module_cmds_CXX \ |
13341 | module_expsym_cmds_CXX \ |
13342 | lt_cv_prog_compiler_c_o_CXX \ |
ac40fd9e |
13343 | fix_srcfile_path_CXX \ |
d9898ee8 |
13344 | exclude_expsyms_CXX \ |
13345 | include_expsyms_CXX; do |
13346 | |
13347 | case $var in |
13348 | old_archive_cmds_CXX | \ |
13349 | old_archive_from_new_cmds_CXX | \ |
13350 | archive_cmds_CXX | \ |
13351 | archive_expsym_cmds_CXX | \ |
13352 | module_cmds_CXX | \ |
13353 | module_expsym_cmds_CXX | \ |
13354 | old_archive_from_expsyms_cmds_CXX | \ |
13355 | export_symbols_cmds_CXX | \ |
13356 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13357 | postinstall_cmds | postuninstall_cmds | \ |
13358 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13359 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13360 | # Double-quote double-evaled strings. |
13361 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13362 | ;; |
13363 | *) |
13364 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13365 | ;; |
13366 | esac |
13367 | done |
13368 | |
13369 | case $lt_echo in |
13370 | *'\$0 --fallback-echo"') |
13371 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13372 | ;; |
13373 | esac |
13374 | |
13375 | cfgfile="$ofile" |
13376 | |
13377 | cat <<__EOF__ >> "$cfgfile" |
13378 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13379 | |
13380 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13381 | |
13382 | # Shell to use when invoking shell scripts. |
13383 | SHELL=$lt_SHELL |
13384 | |
13385 | # Whether or not to build shared libraries. |
13386 | build_libtool_libs=$enable_shared |
13387 | |
13388 | # Whether or not to build static libraries. |
13389 | build_old_libs=$enable_static |
13390 | |
13391 | # Whether or not to add -lc for building shared libraries. |
13392 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13393 | |
13394 | # Whether or not to disallow shared libs when runtime libs are static |
13395 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13396 | |
13397 | # Whether or not to optimize for fast installation. |
13398 | fast_install=$enable_fast_install |
13399 | |
13400 | # The host system. |
13401 | host_alias=$host_alias |
13402 | host=$host |
13403 | host_os=$host_os |
13404 | |
13405 | # The build system. |
13406 | build_alias=$build_alias |
13407 | build=$build |
13408 | build_os=$build_os |
13409 | |
13410 | # An echo program that does not interpret backslashes. |
13411 | echo=$lt_echo |
13412 | |
13413 | # The archiver. |
13414 | AR=$lt_AR |
13415 | AR_FLAGS=$lt_AR_FLAGS |
13416 | |
13417 | # A C compiler. |
13418 | LTCC=$lt_LTCC |
13419 | |
13420 | # LTCC compiler flags. |
13421 | LTCFLAGS=$lt_LTCFLAGS |
13422 | |
13423 | # A language-specific compiler. |
13424 | CC=$lt_compiler_CXX |
13425 | |
13426 | # Is the compiler the GNU C compiler? |
13427 | with_gcc=$GCC_CXX |
13428 | |
d9898ee8 |
13429 | # An ERE matcher. |
13430 | EGREP=$lt_EGREP |
13431 | |
13432 | # The linker used to build libraries. |
13433 | LD=$lt_LD_CXX |
13434 | |
13435 | # Whether we need hard or soft links. |
13436 | LN_S=$lt_LN_S |
13437 | |
13438 | # A BSD-compatible nm program. |
13439 | NM=$lt_NM |
13440 | |
13441 | # A symbol stripping program |
13442 | STRIP=$lt_STRIP |
13443 | |
13444 | # Used to examine libraries when file_magic_cmd begins "file" |
13445 | MAGIC_CMD=$MAGIC_CMD |
13446 | |
13447 | # Used on cygwin: DLL creation program. |
13448 | DLLTOOL="$DLLTOOL" |
13449 | |
13450 | # Used on cygwin: object dumper. |
13451 | OBJDUMP="$OBJDUMP" |
13452 | |
13453 | # Used on cygwin: assembler. |
13454 | AS="$AS" |
13455 | |
13456 | # The name of the directory that contains temporary libtool files. |
13457 | objdir=$objdir |
13458 | |
13459 | # How to create reloadable object files. |
13460 | reload_flag=$lt_reload_flag |
13461 | reload_cmds=$lt_reload_cmds |
13462 | |
13463 | # How to pass a linker flag through the compiler. |
13464 | wl=$lt_lt_prog_compiler_wl_CXX |
13465 | |
13466 | # Object file suffix (normally "o"). |
13467 | objext="$ac_objext" |
13468 | |
13469 | # Old archive suffix (normally "a"). |
13470 | libext="$libext" |
13471 | |
13472 | # Shared library suffix (normally ".so"). |
13473 | shrext_cmds='$shrext_cmds' |
13474 | |
13475 | # Executable file suffix (normally ""). |
13476 | exeext="$exeext" |
13477 | |
13478 | # Additional compiler flags for building library objects. |
13479 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13480 | pic_mode=$pic_mode |
13481 | |
13482 | # What is the maximum length of a command? |
13483 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13484 | |
13485 | # Does compiler simultaneously support -c and -o options? |
13486 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13487 | |
13488 | # Must we lock files when doing compilation? |
13489 | need_locks=$lt_need_locks |
13490 | |
13491 | # Do we need the lib prefix for modules? |
13492 | need_lib_prefix=$need_lib_prefix |
13493 | |
13494 | # Do we need a version for libraries? |
13495 | need_version=$need_version |
13496 | |
13497 | # Whether dlopen is supported. |
13498 | dlopen_support=$enable_dlopen |
13499 | |
13500 | # Whether dlopen of programs is supported. |
13501 | dlopen_self=$enable_dlopen_self |
13502 | |
13503 | # Whether dlopen of statically linked programs is supported. |
13504 | dlopen_self_static=$enable_dlopen_self_static |
13505 | |
13506 | # Compiler flag to prevent dynamic linking. |
13507 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13508 | |
13509 | # Compiler flag to turn off builtin functions. |
13510 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13511 | |
13512 | # Compiler flag to allow reflexive dlopens. |
13513 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13514 | |
13515 | # Compiler flag to generate shared objects directly from archives. |
13516 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13517 | |
13518 | # Compiler flag to generate thread-safe objects. |
13519 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13520 | |
13521 | # Library versioning type. |
13522 | version_type=$version_type |
13523 | |
13524 | # Format of library name prefix. |
13525 | libname_spec=$lt_libname_spec |
13526 | |
13527 | # List of archive names. First name is the real one, the rest are links. |
13528 | # The last name is the one that the linker finds with -lNAME. |
13529 | library_names_spec=$lt_library_names_spec |
13530 | |
13531 | # The coded name of the library, if different from the real name. |
13532 | soname_spec=$lt_soname_spec |
13533 | |
13534 | # Commands used to build and install an old-style archive. |
13535 | RANLIB=$lt_RANLIB |
13536 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13537 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13538 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13539 | |
13540 | # Create an old-style archive from a shared archive. |
13541 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13542 | |
13543 | # Create a temporary old-style archive to link instead of a shared archive. |
13544 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13545 | |
13546 | # Commands used to build and install a shared archive. |
13547 | archive_cmds=$lt_archive_cmds_CXX |
13548 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13549 | postinstall_cmds=$lt_postinstall_cmds |
13550 | postuninstall_cmds=$lt_postuninstall_cmds |
13551 | |
13552 | # Commands used to build a loadable module (assumed same as above if empty) |
13553 | module_cmds=$lt_module_cmds_CXX |
13554 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13555 | |
13556 | # Commands to strip libraries. |
13557 | old_striplib=$lt_old_striplib |
13558 | striplib=$lt_striplib |
13559 | |
13560 | # Dependencies to place before the objects being linked to create a |
13561 | # shared library. |
dd184caf |
13562 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13563 | |
13564 | # Dependencies to place after the objects being linked to create a |
13565 | # shared library. |
dd184caf |
13566 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13567 | |
13568 | # Dependencies to place before the objects being linked to create a |
13569 | # shared library. |
13570 | predeps=$lt_predeps_CXX |
13571 | |
13572 | # Dependencies to place after the objects being linked to create a |
13573 | # shared library. |
13574 | postdeps=$lt_postdeps_CXX |
13575 | |
13576 | # The library search path used internally by the compiler when linking |
13577 | # a shared library. |
dd184caf |
13578 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13579 | |
13580 | # Method to check whether dependent libraries are shared objects. |
13581 | deplibs_check_method=$lt_deplibs_check_method |
13582 | |
13583 | # Command to use when deplibs_check_method == file_magic. |
13584 | file_magic_cmd=$lt_file_magic_cmd |
13585 | |
13586 | # Flag that allows shared libraries with undefined symbols to be built. |
13587 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13588 | |
13589 | # Flag that forces no undefined symbols. |
13590 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13591 | |
13592 | # Commands used to finish a libtool library installation in a directory. |
13593 | finish_cmds=$lt_finish_cmds |
13594 | |
13595 | # Same as above, but a single script fragment to be evaled but not shown. |
13596 | finish_eval=$lt_finish_eval |
13597 | |
13598 | # Take the output of nm and produce a listing of raw symbols and C names. |
13599 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13600 | |
13601 | # Transform the output of nm in a proper C declaration |
13602 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13603 | |
13604 | # Transform the output of nm in a C name address pair |
13605 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13606 | |
13607 | # This is the shared library runtime path variable. |
13608 | runpath_var=$runpath_var |
13609 | |
13610 | # This is the shared library path variable. |
13611 | shlibpath_var=$shlibpath_var |
13612 | |
13613 | # Is shlibpath searched before the hard-coded library search path? |
13614 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13615 | |
13616 | # How to hardcode a shared library path into an executable. |
13617 | hardcode_action=$hardcode_action_CXX |
13618 | |
13619 | # Whether we should hardcode library paths into libraries. |
13620 | hardcode_into_libs=$hardcode_into_libs |
13621 | |
13622 | # Flag to hardcode \$libdir into a binary during linking. |
13623 | # This must work even if \$libdir does not exist. |
13624 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13625 | |
13626 | # If ld is used when linking, flag to hardcode \$libdir into |
13627 | # a binary during linking. This must work even if \$libdir does |
13628 | # not exist. |
13629 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13630 | |
13631 | # Whether we need a single -rpath flag with a separated argument. |
13632 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13633 | |
13634 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13635 | # resulting binary. |
13636 | hardcode_direct=$hardcode_direct_CXX |
13637 | |
13638 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13639 | # resulting binary. |
13640 | hardcode_minus_L=$hardcode_minus_L_CXX |
13641 | |
13642 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13643 | # the resulting binary. |
13644 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13645 | |
13646 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13647 | # and all subsequent libraries and executables linked against it. |
13648 | hardcode_automatic=$hardcode_automatic_CXX |
13649 | |
13650 | # Variables whose values should be saved in libtool wrapper scripts and |
13651 | # restored at relink time. |
13652 | variables_saved_for_relink="$variables_saved_for_relink" |
13653 | |
13654 | # Whether libtool must link a program against all its dependency libraries. |
13655 | link_all_deplibs=$link_all_deplibs_CXX |
13656 | |
13657 | # Compile-time system search path for libraries |
dd184caf |
13658 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13659 | |
13660 | # Run-time system search path for libraries |
13661 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13662 | |
13663 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
13664 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
13665 | |
13666 | # Set to yes if exported symbols are required. |
13667 | always_export_symbols=$always_export_symbols_CXX |
13668 | |
13669 | # The commands to list exported symbols. |
13670 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13671 | |
13672 | # The commands to extract the exported symbol list from a shared archive. |
13673 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13674 | |
13675 | # Symbols that should not be listed in the preloaded symbols. |
13676 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13677 | |
13678 | # Symbols that must always be exported. |
13679 | include_expsyms=$lt_include_expsyms_CXX |
13680 | |
13681 | # ### END LIBTOOL TAG CONFIG: $tagname |
13682 | |
13683 | __EOF__ |
13684 | |
13685 | |
13686 | else |
13687 | # If there is no Makefile yet, we rely on a make rule to execute |
13688 | # `config.status --recheck' to rerun these tests and create the |
13689 | # libtool script then. |
13690 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13691 | if test -f "$ltmain_in"; then |
13692 | test -f Makefile && make "$ltmain" |
13693 | fi |
13694 | fi |
13695 | |
13696 | |
13697 | ac_ext=c |
13698 | ac_cpp='$CPP $CPPFLAGS' |
13699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13702 | |
13703 | CC=$lt_save_CC |
13704 | LDCXX=$LD |
13705 | LD=$lt_save_LD |
13706 | GCC=$lt_save_GCC |
13707 | with_gnu_ldcxx=$with_gnu_ld |
13708 | with_gnu_ld=$lt_save_with_gnu_ld |
13709 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13710 | lt_cv_path_LD=$lt_save_path_LD |
13711 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13712 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13713 | |
13714 | else |
13715 | tagname="" |
13716 | fi |
13717 | ;; |
13718 | |
13719 | F77) |
13720 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13721 | |
13722 | ac_ext=f |
13723 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13724 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13725 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13726 | |
13727 | |
13728 | archive_cmds_need_lc_F77=no |
13729 | allow_undefined_flag_F77= |
13730 | always_export_symbols_F77=no |
13731 | archive_expsym_cmds_F77= |
13732 | export_dynamic_flag_spec_F77= |
13733 | hardcode_direct_F77=no |
13734 | hardcode_libdir_flag_spec_F77= |
13735 | hardcode_libdir_flag_spec_ld_F77= |
13736 | hardcode_libdir_separator_F77= |
13737 | hardcode_minus_L_F77=no |
13738 | hardcode_automatic_F77=no |
13739 | module_cmds_F77= |
13740 | module_expsym_cmds_F77= |
13741 | link_all_deplibs_F77=unknown |
13742 | old_archive_cmds_F77=$old_archive_cmds |
13743 | no_undefined_flag_F77= |
13744 | whole_archive_flag_spec_F77= |
13745 | enable_shared_with_static_runtimes_F77=no |
13746 | |
13747 | # Source file extension for f77 test sources. |
13748 | ac_ext=f |
13749 | |
13750 | # Object file extension for compiled f77 test sources. |
13751 | objext=o |
13752 | objext_F77=$objext |
13753 | |
13754 | # Code to be used in simple compile tests |
ac40fd9e |
13755 | lt_simple_compile_test_code="\ |
13756 | subroutine t |
13757 | return |
13758 | end |
13759 | " |
d9898ee8 |
13760 | |
13761 | # Code to be used in simple link tests |
ac40fd9e |
13762 | lt_simple_link_test_code="\ |
13763 | program t |
13764 | end |
13765 | " |
d9898ee8 |
13766 | |
13767 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13768 | |
13769 | # If no C compiler was specified, use CC. |
13770 | LTCC=${LTCC-"$CC"} |
13771 | |
13772 | # If no C compiler flags were specified, use CFLAGS. |
13773 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13774 | |
13775 | # Allow CC to be a program name with arguments. |
13776 | compiler=$CC |
13777 | |
13778 | |
13779 | # save warnings/boilerplate of simple test code |
13780 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
13781 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
13782 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13783 | _lt_compiler_boilerplate=`cat conftest.err` |
13784 | $rm conftest* |
13785 | |
13786 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
13787 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
13788 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13789 | _lt_linker_boilerplate=`cat conftest.err` |
13790 | $rm conftest* |
13791 | |
13792 | |
13793 | # Allow CC to be a program name with arguments. |
13794 | lt_save_CC="$CC" |
13795 | CC=${F77-"f77"} |
13796 | compiler=$CC |
13797 | compiler_F77=$CC |
13798 | for cc_temp in $compiler""; do |
13799 | case $cc_temp in |
13800 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13801 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13802 | \-*) ;; |
13803 | *) break;; |
13804 | esac |
13805 | done |
13806 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13807 | |
13808 | |
dd184caf |
13809 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13810 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13811 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13812 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13813 | |
dd184caf |
13814 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13815 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13816 | test "$can_build_shared" = "no" && enable_shared=no |
13817 | |
13818 | # On AIX, shared libraries and static libraries use the same namespace, and |
13819 | # are all built from PIC. |
13820 | case $host_os in |
13821 | aix3*) |
13822 | test "$enable_shared" = yes && enable_static=no |
13823 | if test -n "$RANLIB"; then |
13824 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13825 | postinstall_cmds='$RANLIB $lib' |
13826 | fi |
13827 | ;; |
13828 | aix4* | aix5*) |
13829 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13830 | test "$enable_shared" = yes && enable_static=no |
13831 | fi |
13832 | ;; |
13833 | esac |
dd184caf |
13834 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13835 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13836 | |
dd184caf |
13837 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13838 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13839 | # Make sure either enable_shared or enable_static is yes. |
13840 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
13841 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13842 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13843 | |
13844 | GCC_F77="$G77" |
13845 | LD_F77="$LD" |
13846 | |
13847 | lt_prog_compiler_wl_F77= |
13848 | lt_prog_compiler_pic_F77= |
13849 | lt_prog_compiler_static_F77= |
13850 | |
dd184caf |
13851 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13852 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13853 | |
13854 | if test "$GCC" = yes; then |
13855 | lt_prog_compiler_wl_F77='-Wl,' |
13856 | lt_prog_compiler_static_F77='-static' |
13857 | |
13858 | case $host_os in |
13859 | aix*) |
13860 | # All AIX code is PIC. |
13861 | if test "$host_cpu" = ia64; then |
13862 | # AIX 5 now supports IA64 processor |
13863 | lt_prog_compiler_static_F77='-Bstatic' |
13864 | fi |
13865 | ;; |
13866 | |
13867 | amigaos*) |
13868 | # FIXME: we need at least 68020 code to build shared libraries, but |
13869 | # adding the `-m68020' flag to GCC prevents building anything better, |
13870 | # like `-m68040'. |
13871 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13872 | ;; |
13873 | |
ac40fd9e |
13874 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
13875 | # PIC is the default for these OSes. |
13876 | ;; |
13877 | |
ac40fd9e |
13878 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
13879 | # This hack is so that the source file can tell whether it is being |
13880 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
13881 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
13882 | # (--disable-auto-import) libraries |
d9898ee8 |
13883 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13884 | ;; |
13885 | |
13886 | darwin* | rhapsody*) |
13887 | # PIC is the default on this platform |
13888 | # Common symbols not allowed in MH_DYLIB files |
13889 | lt_prog_compiler_pic_F77='-fno-common' |
13890 | ;; |
13891 | |
ac40fd9e |
13892 | interix[3-9]*) |
d9898ee8 |
13893 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13894 | # Instead, we relocate shared libraries at runtime. |
13895 | ;; |
13896 | |
13897 | msdosdjgpp*) |
13898 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13899 | # on systems that don't support them. |
13900 | lt_prog_compiler_can_build_shared_F77=no |
13901 | enable_shared=no |
13902 | ;; |
13903 | |
13904 | sysv4*MP*) |
13905 | if test -d /usr/nec; then |
13906 | lt_prog_compiler_pic_F77=-Kconform_pic |
13907 | fi |
13908 | ;; |
13909 | |
13910 | hpux*) |
13911 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13912 | # not for PA HP-UX. |
13913 | case $host_cpu in |
13914 | hppa*64*|ia64*) |
13915 | # +Z the default |
13916 | ;; |
13917 | *) |
13918 | lt_prog_compiler_pic_F77='-fPIC' |
13919 | ;; |
13920 | esac |
13921 | ;; |
13922 | |
13923 | *) |
13924 | lt_prog_compiler_pic_F77='-fPIC' |
13925 | ;; |
13926 | esac |
13927 | else |
13928 | # PORTME Check for flag to pass linker flags through the system compiler. |
13929 | case $host_os in |
13930 | aix*) |
13931 | lt_prog_compiler_wl_F77='-Wl,' |
13932 | if test "$host_cpu" = ia64; then |
13933 | # AIX 5 now supports IA64 processor |
13934 | lt_prog_compiler_static_F77='-Bstatic' |
13935 | else |
13936 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13937 | fi |
13938 | ;; |
13939 | darwin*) |
13940 | # PIC is the default on this platform |
13941 | # Common symbols not allowed in MH_DYLIB files |
13942 | case $cc_basename in |
13943 | xlc*) |
13944 | lt_prog_compiler_pic_F77='-qnocommon' |
13945 | lt_prog_compiler_wl_F77='-Wl,' |
13946 | ;; |
13947 | esac |
13948 | ;; |
13949 | |
ac40fd9e |
13950 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
13951 | # This hack is so that the source file can tell whether it is being |
13952 | # built for inclusion in a dll (and should export symbols for example). |
13953 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13954 | ;; |
13955 | |
13956 | hpux9* | hpux10* | hpux11*) |
13957 | lt_prog_compiler_wl_F77='-Wl,' |
13958 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13959 | # not for PA HP-UX. |
13960 | case $host_cpu in |
13961 | hppa*64*|ia64*) |
13962 | # +Z the default |
13963 | ;; |
13964 | *) |
13965 | lt_prog_compiler_pic_F77='+Z' |
13966 | ;; |
13967 | esac |
13968 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13969 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13970 | ;; |
13971 | |
13972 | irix5* | irix6* | nonstopux*) |
13973 | lt_prog_compiler_wl_F77='-Wl,' |
13974 | # PIC (with -KPIC) is the default. |
13975 | lt_prog_compiler_static_F77='-non_shared' |
13976 | ;; |
13977 | |
13978 | newsos6) |
13979 | lt_prog_compiler_pic_F77='-KPIC' |
13980 | lt_prog_compiler_static_F77='-Bstatic' |
13981 | ;; |
13982 | |
ac40fd9e |
13983 | linux* | k*bsd*-gnu) |
d9898ee8 |
13984 | case $cc_basename in |
13985 | icc* | ecc*) |
13986 | lt_prog_compiler_wl_F77='-Wl,' |
13987 | lt_prog_compiler_pic_F77='-KPIC' |
13988 | lt_prog_compiler_static_F77='-static' |
13989 | ;; |
13990 | pgcc* | pgf77* | pgf90* | pgf95*) |
13991 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13992 | # which looks to be a dead project) |
13993 | lt_prog_compiler_wl_F77='-Wl,' |
13994 | lt_prog_compiler_pic_F77='-fpic' |
13995 | lt_prog_compiler_static_F77='-Bstatic' |
13996 | ;; |
13997 | ccc*) |
13998 | lt_prog_compiler_wl_F77='-Wl,' |
13999 | # All Alpha code is PIC. |
14000 | lt_prog_compiler_static_F77='-non_shared' |
14001 | ;; |
ac40fd9e |
14002 | *) |
14003 | case `$CC -V 2>&1 | sed 5q` in |
14004 | *Sun\ C*) |
14005 | # Sun C 5.9 |
14006 | lt_prog_compiler_pic_F77='-KPIC' |
14007 | lt_prog_compiler_static_F77='-Bstatic' |
14008 | lt_prog_compiler_wl_F77='-Wl,' |
14009 | ;; |
14010 | *Sun\ F*) |
14011 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
14012 | lt_prog_compiler_pic_F77='-KPIC' |
14013 | lt_prog_compiler_static_F77='-Bstatic' |
14014 | lt_prog_compiler_wl_F77='' |
14015 | ;; |
14016 | esac |
14017 | ;; |
d9898ee8 |
14018 | esac |
14019 | ;; |
14020 | |
14021 | osf3* | osf4* | osf5*) |
14022 | lt_prog_compiler_wl_F77='-Wl,' |
14023 | # All OSF/1 code is PIC. |
14024 | lt_prog_compiler_static_F77='-non_shared' |
14025 | ;; |
14026 | |
ac40fd9e |
14027 | rdos*) |
14028 | lt_prog_compiler_static_F77='-non_shared' |
14029 | ;; |
14030 | |
d9898ee8 |
14031 | solaris*) |
14032 | lt_prog_compiler_pic_F77='-KPIC' |
14033 | lt_prog_compiler_static_F77='-Bstatic' |
14034 | case $cc_basename in |
14035 | f77* | f90* | f95*) |
14036 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14037 | *) |
14038 | lt_prog_compiler_wl_F77='-Wl,';; |
14039 | esac |
14040 | ;; |
14041 | |
14042 | sunos4*) |
14043 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14044 | lt_prog_compiler_pic_F77='-PIC' |
14045 | lt_prog_compiler_static_F77='-Bstatic' |
14046 | ;; |
14047 | |
14048 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14049 | lt_prog_compiler_wl_F77='-Wl,' |
14050 | lt_prog_compiler_pic_F77='-KPIC' |
14051 | lt_prog_compiler_static_F77='-Bstatic' |
14052 | ;; |
14053 | |
14054 | sysv4*MP*) |
14055 | if test -d /usr/nec ;then |
14056 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14057 | lt_prog_compiler_static_F77='-Bstatic' |
14058 | fi |
14059 | ;; |
14060 | |
14061 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14062 | lt_prog_compiler_wl_F77='-Wl,' |
14063 | lt_prog_compiler_pic_F77='-KPIC' |
14064 | lt_prog_compiler_static_F77='-Bstatic' |
14065 | ;; |
14066 | |
14067 | unicos*) |
14068 | lt_prog_compiler_wl_F77='-Wl,' |
14069 | lt_prog_compiler_can_build_shared_F77=no |
14070 | ;; |
14071 | |
14072 | uts4*) |
14073 | lt_prog_compiler_pic_F77='-pic' |
14074 | lt_prog_compiler_static_F77='-Bstatic' |
14075 | ;; |
14076 | |
14077 | *) |
14078 | lt_prog_compiler_can_build_shared_F77=no |
14079 | ;; |
14080 | esac |
14081 | fi |
14082 | |
dd184caf |
14083 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14084 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
14085 | |
14086 | # |
14087 | # Check to make sure the PIC flag actually works. |
14088 | # |
14089 | if test -n "$lt_prog_compiler_pic_F77"; then |
14090 | |
dd184caf |
14091 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14092 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
14093 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14095 | else |
14096 | lt_prog_compiler_pic_works_F77=no |
14097 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
14098 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
14099 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14100 | # Insert the option either (1) after the last *FLAGS variable, or |
14101 | # (2) before a word containing "conftest.", or (3) at the end. |
14102 | # Note that $ac_compile itself does not contain backslashes and begins |
14103 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14104 | # The option is referenced via a variable to avoid confusing sed. |
14105 | lt_compile=`echo "$ac_compile" | $SED \ |
14106 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14107 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14108 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
14109 | (eval echo "\"\$as_me:14109: $lt_compile\"" >&5) |
d9898ee8 |
14110 | (eval "$lt_compile" 2>conftest.err) |
14111 | ac_status=$? |
14112 | cat conftest.err >&5 |
ac40fd9e |
14113 | echo "$as_me:14113: \$? = $ac_status" >&5 |
d9898ee8 |
14114 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14115 | # The compiler can only warn and ignore the option if not recognized |
14116 | # So say no if there are warnings other than the usual output. |
14117 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14118 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14119 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14120 | lt_prog_compiler_pic_works_F77=yes |
14121 | fi |
14122 | fi |
14123 | $rm conftest* |
14124 | |
14125 | fi |
dd184caf |
14126 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14127 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14128 | |
14129 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14130 | case $lt_prog_compiler_pic_F77 in |
14131 | "" | " "*) ;; |
14132 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14133 | esac |
14134 | else |
14135 | lt_prog_compiler_pic_F77= |
14136 | lt_prog_compiler_can_build_shared_F77=no |
14137 | fi |
14138 | |
14139 | fi |
14140 | case $host_os in |
14141 | # For platforms which do not support PIC, -DPIC is meaningless: |
14142 | *djgpp*) |
14143 | lt_prog_compiler_pic_F77= |
14144 | ;; |
14145 | *) |
14146 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14147 | ;; |
14148 | esac |
14149 | |
14150 | # |
14151 | # Check to make sure the static flag actually works. |
14152 | # |
14153 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
dd184caf |
14154 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14155 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14156 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14158 | else |
14159 | lt_prog_compiler_static_works_F77=no |
14160 | save_LDFLAGS="$LDFLAGS" |
14161 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
14162 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
14163 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14164 | # The linker can only warn and ignore the option if not recognized |
14165 | # So say no if there are warnings |
14166 | if test -s conftest.err; then |
14167 | # Append any errors to the config.log. |
14168 | cat conftest.err 1>&5 |
14169 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14170 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14171 | if diff conftest.exp conftest.er2 >/dev/null; then |
14172 | lt_prog_compiler_static_works_F77=yes |
14173 | fi |
14174 | else |
14175 | lt_prog_compiler_static_works_F77=yes |
14176 | fi |
14177 | fi |
14178 | $rm conftest* |
14179 | LDFLAGS="$save_LDFLAGS" |
14180 | |
14181 | fi |
dd184caf |
14182 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14183 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14184 | |
14185 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14186 | : |
14187 | else |
14188 | lt_prog_compiler_static_F77= |
14189 | fi |
14190 | |
14191 | |
dd184caf |
14192 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14193 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14194 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14196 | else |
14197 | lt_cv_prog_compiler_c_o_F77=no |
14198 | $rm -r conftest 2>/dev/null |
14199 | mkdir conftest |
14200 | cd conftest |
14201 | mkdir out |
ac40fd9e |
14202 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
14203 | |
14204 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14205 | # Insert the option either (1) after the last *FLAGS variable, or |
14206 | # (2) before a word containing "conftest.", or (3) at the end. |
14207 | # Note that $ac_compile itself does not contain backslashes and begins |
14208 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14209 | lt_compile=`echo "$ac_compile" | $SED \ |
14210 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14211 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14212 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
14213 | (eval echo "\"\$as_me:14213: $lt_compile\"" >&5) |
d9898ee8 |
14214 | (eval "$lt_compile" 2>out/conftest.err) |
14215 | ac_status=$? |
14216 | cat out/conftest.err >&5 |
ac40fd9e |
14217 | echo "$as_me:14217: \$? = $ac_status" >&5 |
d9898ee8 |
14218 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14219 | then |
14220 | # The compiler can only warn and ignore the option if not recognized |
14221 | # So say no if there are warnings |
14222 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14223 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14224 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14225 | lt_cv_prog_compiler_c_o_F77=yes |
14226 | fi |
14227 | fi |
14228 | chmod u+w . 2>&5 |
14229 | $rm conftest* |
14230 | # SGI C++ compiler will create directory out/ii_files/ for |
14231 | # template instantiation |
14232 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14233 | $rm out/* && rmdir out |
14234 | cd .. |
14235 | rmdir conftest |
14236 | $rm conftest* |
14237 | |
14238 | fi |
dd184caf |
14239 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14240 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14241 | |
14242 | |
14243 | hard_links="nottested" |
14244 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14245 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
14246 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14247 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14248 | hard_links=yes |
14249 | $rm conftest* |
14250 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14251 | touch conftest.a |
14252 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14253 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
14254 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14255 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14256 | if test "$hard_links" = no; then |
14257 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14258 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14259 | need_locks=warn |
14260 | fi |
14261 | else |
14262 | need_locks=no |
14263 | fi |
14264 | |
dd184caf |
14265 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14266 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14267 | |
14268 | runpath_var= |
14269 | allow_undefined_flag_F77= |
14270 | enable_shared_with_static_runtimes_F77=no |
14271 | archive_cmds_F77= |
14272 | archive_expsym_cmds_F77= |
14273 | old_archive_From_new_cmds_F77= |
14274 | old_archive_from_expsyms_cmds_F77= |
14275 | export_dynamic_flag_spec_F77= |
14276 | whole_archive_flag_spec_F77= |
14277 | thread_safe_flag_spec_F77= |
14278 | hardcode_libdir_flag_spec_F77= |
14279 | hardcode_libdir_flag_spec_ld_F77= |
14280 | hardcode_libdir_separator_F77= |
14281 | hardcode_direct_F77=no |
14282 | hardcode_minus_L_F77=no |
14283 | hardcode_shlibpath_var_F77=unsupported |
14284 | link_all_deplibs_F77=unknown |
14285 | hardcode_automatic_F77=no |
14286 | module_cmds_F77= |
14287 | module_expsym_cmds_F77= |
14288 | always_export_symbols_F77=no |
14289 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14290 | # include_expsyms should be a list of space-separated symbols to be *always* |
14291 | # included in the symbol list |
14292 | include_expsyms_F77= |
14293 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14294 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14295 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14296 | # as well as any symbol that contains `d'. |
14297 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14298 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14299 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14300 | # the symbol is explicitly referenced. Since portable code cannot |
14301 | # rely on this symbol name, it's probably fine to never include it in |
14302 | # preloaded symbol tables. |
14303 | extract_expsyms_cmds= |
14304 | # Just being paranoid about ensuring that cc_basename is set. |
14305 | for cc_temp in $compiler""; do |
14306 | case $cc_temp in |
14307 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14308 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14309 | \-*) ;; |
14310 | *) break;; |
14311 | esac |
14312 | done |
14313 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14314 | |
14315 | case $host_os in |
14316 | cygwin* | mingw* | pw32*) |
14317 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14318 | # When not using gcc, we currently assume that we are using |
14319 | # Microsoft Visual C++. |
14320 | if test "$GCC" != yes; then |
14321 | with_gnu_ld=no |
14322 | fi |
14323 | ;; |
14324 | interix*) |
14325 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14326 | with_gnu_ld=yes |
14327 | ;; |
14328 | openbsd*) |
14329 | with_gnu_ld=no |
14330 | ;; |
14331 | esac |
14332 | |
14333 | ld_shlibs_F77=yes |
14334 | if test "$with_gnu_ld" = yes; then |
14335 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14336 | wlarc='${wl}' |
14337 | |
14338 | # Set some defaults for GNU ld with shared library support. These |
14339 | # are reset later if shared libraries are not supported. Putting them |
14340 | # here allows them to be overridden if necessary. |
14341 | runpath_var=LD_RUN_PATH |
14342 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14343 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14344 | # ancient GNU ld didn't support --whole-archive et. al. |
14345 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14346 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14347 | else |
14348 | whole_archive_flag_spec_F77= |
14349 | fi |
14350 | supports_anon_versioning=no |
14351 | case `$LD -v 2>/dev/null` in |
14352 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14353 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14354 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14355 | *\ 2.11.*) ;; # other 2.11 versions |
14356 | *) supports_anon_versioning=yes ;; |
14357 | esac |
14358 | |
14359 | # See if GNU ld supports shared libraries. |
14360 | case $host_os in |
14361 | aix3* | aix4* | aix5*) |
14362 | # On AIX/PPC, the GNU linker is very broken |
14363 | if test "$host_cpu" != ia64; then |
14364 | ld_shlibs_F77=no |
14365 | cat <<EOF 1>&2 |
14366 | |
14367 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14368 | *** to be unable to reliably create shared libraries on AIX. |
14369 | *** Therefore, libtool is disabling shared libraries support. If you |
14370 | *** really care for shared libraries, you may want to modify your PATH |
14371 | *** so that a non-GNU linker is found, and then restart. |
14372 | |
14373 | EOF |
14374 | fi |
14375 | ;; |
14376 | |
14377 | amigaos*) |
14378 | 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)' |
14379 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14380 | hardcode_minus_L_F77=yes |
14381 | |
14382 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14383 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14384 | # to version 4, is to share data among multiple programs linked |
14385 | # with the same dynamic library. Since this doesn't match the |
14386 | # behavior of shared libraries on other platforms, we can't use |
14387 | # them. |
14388 | ld_shlibs_F77=no |
14389 | ;; |
14390 | |
14391 | beos*) |
14392 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14393 | allow_undefined_flag_F77=unsupported |
14394 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14395 | # support --undefined. This deserves some investigation. FIXME |
14396 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14397 | else |
14398 | ld_shlibs_F77=no |
14399 | fi |
14400 | ;; |
14401 | |
14402 | cygwin* | mingw* | pw32*) |
14403 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14404 | # as there is no search path for DLLs. |
14405 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14406 | allow_undefined_flag_F77=unsupported |
14407 | always_export_symbols_F77=no |
14408 | enable_shared_with_static_runtimes_F77=yes |
ac40fd9e |
14409 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
14410 | |
14411 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14412 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14413 | # If the export-symbols file already is a .def file (1st line |
14414 | # is EXPORTS), use it as is; otherwise, prepend... |
14415 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14416 | cp $export_symbols $output_objdir/$soname.def; |
14417 | else |
14418 | echo EXPORTS > $output_objdir/$soname.def; |
14419 | cat $export_symbols >> $output_objdir/$soname.def; |
14420 | fi~ |
14421 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14422 | else |
14423 | ld_shlibs_F77=no |
14424 | fi |
14425 | ;; |
14426 | |
ac40fd9e |
14427 | interix[3-9]*) |
d9898ee8 |
14428 | hardcode_direct_F77=no |
14429 | hardcode_shlibpath_var_F77=no |
14430 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14431 | export_dynamic_flag_spec_F77='${wl}-E' |
14432 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14433 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14434 | # default) and relocated if they conflict, which is a slow very memory |
14435 | # consuming and fragmenting process. To avoid this, we pick a random, |
14436 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14437 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14438 | 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' |
14439 | 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' |
14440 | ;; |
14441 | |
ac40fd9e |
14442 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
14443 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14444 | tmp_addflag= |
14445 | case $cc_basename,$host_cpu in |
14446 | pgcc*) # Portland Group C compiler |
14447 | 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' |
14448 | tmp_addflag=' $pic_flag' |
14449 | ;; |
14450 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14451 | 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' |
14452 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14453 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14454 | tmp_addflag=' -i_dynamic' ;; |
14455 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14456 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14457 | ifc* | ifort*) # Intel Fortran compiler |
14458 | tmp_addflag=' -nofor_main' ;; |
14459 | esac |
ac40fd9e |
14460 | case `$CC -V 2>&1 | sed 5q` in |
14461 | *Sun\ C*) # Sun C 5.9 |
14462 | 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' |
14463 | tmp_sharedflag='-G' ;; |
14464 | *Sun\ F*) # Sun Fortran 8.3 |
14465 | tmp_sharedflag='-G' ;; |
14466 | *) |
14467 | tmp_sharedflag='-shared' ;; |
14468 | esac |
14469 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
14470 | |
14471 | if test $supports_anon_versioning = yes; then |
14472 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14473 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14474 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
14475 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
14476 | fi |
14477 | else |
14478 | ld_shlibs_F77=no |
14479 | fi |
14480 | ;; |
14481 | |
14482 | netbsd*) |
14483 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14484 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14485 | wlarc= |
14486 | else |
14487 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14488 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14489 | fi |
14490 | ;; |
14491 | |
14492 | solaris*) |
14493 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14494 | ld_shlibs_F77=no |
14495 | cat <<EOF 1>&2 |
14496 | |
14497 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14498 | *** create shared libraries on Solaris systems. Therefore, libtool |
14499 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14500 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14501 | *** your PATH or compiler configuration so that the native linker is |
14502 | *** used, and then restart. |
14503 | |
14504 | EOF |
14505 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14506 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14507 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14508 | else |
14509 | ld_shlibs_F77=no |
14510 | fi |
14511 | ;; |
14512 | |
14513 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14514 | case `$LD -v 2>&1` in |
14515 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14516 | ld_shlibs_F77=no |
14517 | cat <<_LT_EOF 1>&2 |
14518 | |
14519 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14520 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14521 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14522 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14523 | *** your PATH or compiler configuration so that the native linker is |
14524 | *** used, and then restart. |
14525 | |
14526 | _LT_EOF |
14527 | ;; |
14528 | *) |
14529 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14530 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14531 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14532 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14533 | else |
14534 | ld_shlibs_F77=no |
14535 | fi |
14536 | ;; |
14537 | esac |
14538 | ;; |
14539 | |
14540 | sunos4*) |
14541 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14542 | wlarc= |
14543 | hardcode_direct_F77=yes |
14544 | hardcode_shlibpath_var_F77=no |
14545 | ;; |
14546 | |
14547 | *) |
14548 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14549 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14550 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14551 | else |
14552 | ld_shlibs_F77=no |
14553 | fi |
14554 | ;; |
14555 | esac |
14556 | |
14557 | if test "$ld_shlibs_F77" = no; then |
14558 | runpath_var= |
14559 | hardcode_libdir_flag_spec_F77= |
14560 | export_dynamic_flag_spec_F77= |
14561 | whole_archive_flag_spec_F77= |
14562 | fi |
14563 | else |
14564 | # PORTME fill in a description of your system's linker (not GNU ld) |
14565 | case $host_os in |
14566 | aix3*) |
14567 | allow_undefined_flag_F77=unsupported |
14568 | always_export_symbols_F77=yes |
14569 | 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' |
14570 | # Note: this linker hardcodes the directories in LIBPATH if there |
14571 | # are no directories specified by -L. |
14572 | hardcode_minus_L_F77=yes |
14573 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14574 | # Neither direct hardcoding nor static linking is supported with a |
14575 | # broken collect2. |
14576 | hardcode_direct_F77=unsupported |
14577 | fi |
14578 | ;; |
14579 | |
14580 | aix4* | aix5*) |
14581 | if test "$host_cpu" = ia64; then |
14582 | # On IA64, the linker does run time linking by default, so we don't |
14583 | # have to do anything special. |
14584 | aix_use_runtimelinking=no |
14585 | exp_sym_flag='-Bexport' |
14586 | no_entry_flag="" |
14587 | else |
14588 | # If we're using GNU nm, then we don't want the "-C" option. |
14589 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14590 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14591 | 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' |
14592 | else |
14593 | 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' |
14594 | fi |
14595 | aix_use_runtimelinking=no |
14596 | |
14597 | # Test if we are trying to use run time linking or normal |
14598 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14599 | # need to do runtime linking. |
14600 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14601 | for ld_flag in $LDFLAGS; do |
14602 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14603 | aix_use_runtimelinking=yes |
14604 | break |
14605 | fi |
14606 | done |
14607 | ;; |
14608 | esac |
14609 | |
14610 | exp_sym_flag='-bexport' |
14611 | no_entry_flag='-bnoentry' |
14612 | fi |
14613 | |
14614 | # When large executables or shared objects are built, AIX ld can |
14615 | # have problems creating the table of contents. If linking a library |
14616 | # or program results in "error TOC overflow" add -mminimal-toc to |
14617 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14618 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14619 | |
14620 | archive_cmds_F77='' |
14621 | hardcode_direct_F77=yes |
14622 | hardcode_libdir_separator_F77=':' |
14623 | link_all_deplibs_F77=yes |
14624 | |
14625 | if test "$GCC" = yes; then |
14626 | case $host_os in aix4.[012]|aix4.[012].*) |
14627 | # We only want to do this on AIX 4.2 and lower, the check |
14628 | # below for broken collect2 doesn't work under 4.3+ |
14629 | collect2name=`${CC} -print-prog-name=collect2` |
14630 | if test -f "$collect2name" && \ |
14631 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14632 | then |
14633 | # We have reworked collect2 |
ac40fd9e |
14634 | : |
d9898ee8 |
14635 | else |
14636 | # We have old collect2 |
14637 | hardcode_direct_F77=unsupported |
14638 | # It fails to find uninstalled libraries when the uninstalled |
14639 | # path is not listed in the libpath. Setting hardcode_minus_L |
14640 | # to unsupported forces relinking |
14641 | hardcode_minus_L_F77=yes |
14642 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14643 | hardcode_libdir_separator_F77= |
14644 | fi |
14645 | ;; |
14646 | esac |
14647 | shared_flag='-shared' |
14648 | if test "$aix_use_runtimelinking" = yes; then |
14649 | shared_flag="$shared_flag "'${wl}-G' |
14650 | fi |
14651 | else |
14652 | # not using gcc |
14653 | if test "$host_cpu" = ia64; then |
14654 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14655 | # chokes on -Wl,-G. The following line is correct: |
14656 | shared_flag='-G' |
14657 | else |
14658 | if test "$aix_use_runtimelinking" = yes; then |
14659 | shared_flag='${wl}-G' |
14660 | else |
14661 | shared_flag='${wl}-bM:SRE' |
14662 | fi |
14663 | fi |
14664 | fi |
14665 | |
14666 | # It seems that -bexpall does not export symbols beginning with |
14667 | # underscore (_), so it is better to generate a list of symbols to export. |
14668 | always_export_symbols_F77=yes |
14669 | if test "$aix_use_runtimelinking" = yes; then |
14670 | # Warning - without using the other runtime loading flags (-brtl), |
14671 | # -berok will link without error, but may produce a broken library. |
14672 | allow_undefined_flag_F77='-berok' |
14673 | # Determine the default libpath from the value encoded in an empty executable. |
14674 | cat >conftest.$ac_ext <<_ACEOF |
14675 | program main |
14676 | |
14677 | end |
14678 | _ACEOF |
14679 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14680 | if { (ac_try="$ac_link" |
14681 | case "(($ac_try" in |
14682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14683 | *) ac_try_echo=$ac_try;; |
14684 | esac |
14685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14686 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14687 | ac_status=$? |
14688 | grep -v '^ *+' conftest.er1 >conftest.err |
14689 | rm -f conftest.er1 |
14690 | cat conftest.err >&5 |
14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14692 | (exit $ac_status); } && { |
14693 | test -z "$ac_f77_werror_flag" || |
14694 | test ! -s conftest.err |
14695 | } && test -s conftest$ac_exeext && |
14696 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14697 | |
ac40fd9e |
14698 | lt_aix_libpath_sed=' |
14699 | /Import File Strings/,/^$/ { |
14700 | /^0/ { |
14701 | s/^0 *\(.*\)$/\1/ |
14702 | p |
14703 | } |
14704 | }' |
14705 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
14706 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
14707 | if test -z "$aix_libpath"; then |
14708 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
14709 | fi |
d9898ee8 |
14710 | else |
14711 | echo "$as_me: failed program was:" >&5 |
14712 | sed 's/^/| /' conftest.$ac_ext >&5 |
14713 | |
dd184caf |
14714 | |
d9898ee8 |
14715 | fi |
dd184caf |
14716 | |
14717 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14718 | conftest$ac_exeext conftest.$ac_ext |
14719 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14720 | |
14721 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14722 | 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" |
14723 | else |
14724 | if test "$host_cpu" = ia64; then |
14725 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14726 | allow_undefined_flag_F77="-z nodefs" |
14727 | 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" |
14728 | else |
14729 | # Determine the default libpath from the value encoded in an empty executable. |
14730 | cat >conftest.$ac_ext <<_ACEOF |
14731 | program main |
14732 | |
14733 | end |
14734 | _ACEOF |
14735 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14736 | if { (ac_try="$ac_link" |
14737 | case "(($ac_try" in |
14738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14739 | *) ac_try_echo=$ac_try;; |
14740 | esac |
14741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14742 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14743 | ac_status=$? |
14744 | grep -v '^ *+' conftest.er1 >conftest.err |
14745 | rm -f conftest.er1 |
14746 | cat conftest.err >&5 |
14747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14748 | (exit $ac_status); } && { |
14749 | test -z "$ac_f77_werror_flag" || |
14750 | test ! -s conftest.err |
14751 | } && test -s conftest$ac_exeext && |
14752 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14753 | |
ac40fd9e |
14754 | lt_aix_libpath_sed=' |
14755 | /Import File Strings/,/^$/ { |
14756 | /^0/ { |
14757 | s/^0 *\(.*\)$/\1/ |
14758 | p |
14759 | } |
14760 | }' |
14761 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
14762 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
14763 | if test -z "$aix_libpath"; then |
14764 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
14765 | fi |
d9898ee8 |
14766 | else |
14767 | echo "$as_me: failed program was:" >&5 |
14768 | sed 's/^/| /' conftest.$ac_ext >&5 |
14769 | |
dd184caf |
14770 | |
d9898ee8 |
14771 | fi |
dd184caf |
14772 | |
14773 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14774 | conftest$ac_exeext conftest.$ac_ext |
14775 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14776 | |
14777 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14778 | # Warning - without using the other run time loading flags, |
14779 | # -berok will link without error, but may produce a broken library. |
14780 | no_undefined_flag_F77=' ${wl}-bernotok' |
14781 | allow_undefined_flag_F77=' ${wl}-berok' |
14782 | # Exported symbols can be pulled into shared objects from archives |
14783 | whole_archive_flag_spec_F77='$convenience' |
14784 | archive_cmds_need_lc_F77=yes |
14785 | # This is similar to how AIX traditionally builds its shared libraries. |
14786 | 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' |
14787 | fi |
14788 | fi |
14789 | ;; |
14790 | |
14791 | amigaos*) |
14792 | 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)' |
14793 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14794 | hardcode_minus_L_F77=yes |
14795 | # see comment about different semantics on the GNU ld section |
14796 | ld_shlibs_F77=no |
14797 | ;; |
14798 | |
14799 | bsdi[45]*) |
14800 | export_dynamic_flag_spec_F77=-rdynamic |
14801 | ;; |
14802 | |
14803 | cygwin* | mingw* | pw32*) |
14804 | # When not using gcc, we currently assume that we are using |
14805 | # Microsoft Visual C++. |
14806 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14807 | # no search path for DLLs. |
14808 | hardcode_libdir_flag_spec_F77=' ' |
14809 | allow_undefined_flag_F77=unsupported |
14810 | # Tell ltmain to make .lib files, not .a files. |
14811 | libext=lib |
14812 | # Tell ltmain to make .dll files, not .so files. |
14813 | shrext_cmds=".dll" |
14814 | # FIXME: Setting linknames here is a bad hack. |
14815 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14816 | # The linker will automatically build a .lib file if we build a DLL. |
14817 | old_archive_From_new_cmds_F77='true' |
14818 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
14819 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
14820 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14821 | enable_shared_with_static_runtimes_F77=yes |
14822 | ;; |
14823 | |
14824 | darwin* | rhapsody*) |
14825 | case $host_os in |
14826 | rhapsody* | darwin1.[012]) |
14827 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14828 | ;; |
14829 | *) # Darwin 1.3 on |
14830 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14831 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14832 | else |
14833 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14834 | 10.[012]) |
14835 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14836 | ;; |
14837 | 10.*) |
14838 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14839 | ;; |
14840 | esac |
14841 | fi |
14842 | ;; |
14843 | esac |
14844 | archive_cmds_need_lc_F77=no |
14845 | hardcode_direct_F77=no |
14846 | hardcode_automatic_F77=yes |
14847 | hardcode_shlibpath_var_F77=unsupported |
14848 | whole_archive_flag_spec_F77='' |
14849 | link_all_deplibs_F77=yes |
14850 | if test "$GCC" = yes ; then |
14851 | output_verbose_link_cmd='echo' |
14852 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14853 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14854 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14855 | 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}' |
14856 | 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}' |
14857 | else |
14858 | case $cc_basename in |
14859 | xlc*) |
14860 | output_verbose_link_cmd='echo' |
ac40fd9e |
14861 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
14862 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14863 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
14864 | 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 |
14865 | 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}' |
14866 | ;; |
14867 | *) |
14868 | ld_shlibs_F77=no |
14869 | ;; |
14870 | esac |
14871 | fi |
14872 | ;; |
14873 | |
14874 | dgux*) |
14875 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14876 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14877 | hardcode_shlibpath_var_F77=no |
14878 | ;; |
14879 | |
14880 | freebsd1*) |
14881 | ld_shlibs_F77=no |
14882 | ;; |
14883 | |
14884 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14885 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14886 | # does not break anything, and helps significantly (at the cost of a little |
14887 | # extra space). |
14888 | freebsd2.2*) |
14889 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14890 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14891 | hardcode_direct_F77=yes |
14892 | hardcode_shlibpath_var_F77=no |
14893 | ;; |
14894 | |
14895 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14896 | freebsd2*) |
14897 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14898 | hardcode_direct_F77=yes |
14899 | hardcode_minus_L_F77=yes |
14900 | hardcode_shlibpath_var_F77=no |
14901 | ;; |
14902 | |
14903 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
14904 | freebsd* | dragonfly*) |
d9898ee8 |
14905 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14906 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14907 | hardcode_direct_F77=yes |
14908 | hardcode_shlibpath_var_F77=no |
14909 | ;; |
14910 | |
14911 | hpux9*) |
14912 | if test "$GCC" = yes; then |
14913 | 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' |
14914 | else |
14915 | 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' |
14916 | fi |
14917 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14918 | hardcode_libdir_separator_F77=: |
14919 | hardcode_direct_F77=yes |
14920 | |
14921 | # hardcode_minus_L: Not really in the search PATH, |
14922 | # but as the default location of the library. |
14923 | hardcode_minus_L_F77=yes |
14924 | export_dynamic_flag_spec_F77='${wl}-E' |
14925 | ;; |
14926 | |
14927 | hpux10*) |
14928 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14929 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14930 | else |
14931 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14932 | fi |
14933 | if test "$with_gnu_ld" = no; then |
14934 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14935 | hardcode_libdir_separator_F77=: |
14936 | |
14937 | hardcode_direct_F77=yes |
14938 | export_dynamic_flag_spec_F77='${wl}-E' |
14939 | |
14940 | # hardcode_minus_L: Not really in the search PATH, |
14941 | # but as the default location of the library. |
14942 | hardcode_minus_L_F77=yes |
14943 | fi |
14944 | ;; |
14945 | |
14946 | hpux11*) |
14947 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14948 | case $host_cpu in |
14949 | hppa*64*) |
14950 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14951 | ;; |
14952 | ia64*) |
14953 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14954 | ;; |
14955 | *) |
14956 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14957 | ;; |
14958 | esac |
14959 | else |
14960 | case $host_cpu in |
14961 | hppa*64*) |
14962 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14963 | ;; |
14964 | ia64*) |
14965 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14966 | ;; |
14967 | *) |
14968 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14969 | ;; |
14970 | esac |
14971 | fi |
14972 | if test "$with_gnu_ld" = no; then |
14973 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14974 | hardcode_libdir_separator_F77=: |
14975 | |
14976 | case $host_cpu in |
14977 | hppa*64*|ia64*) |
14978 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14979 | hardcode_direct_F77=no |
14980 | hardcode_shlibpath_var_F77=no |
14981 | ;; |
14982 | *) |
14983 | hardcode_direct_F77=yes |
14984 | export_dynamic_flag_spec_F77='${wl}-E' |
14985 | |
14986 | # hardcode_minus_L: Not really in the search PATH, |
14987 | # but as the default location of the library. |
14988 | hardcode_minus_L_F77=yes |
14989 | ;; |
14990 | esac |
14991 | fi |
14992 | ;; |
14993 | |
14994 | irix5* | irix6* | nonstopux*) |
14995 | if test "$GCC" = yes; then |
14996 | 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' |
14997 | else |
14998 | 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' |
14999 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15000 | fi |
15001 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15002 | hardcode_libdir_separator_F77=: |
15003 | link_all_deplibs_F77=yes |
15004 | ;; |
15005 | |
15006 | netbsd*) |
15007 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15008 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15009 | else |
15010 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15011 | fi |
15012 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15013 | hardcode_direct_F77=yes |
15014 | hardcode_shlibpath_var_F77=no |
15015 | ;; |
15016 | |
15017 | newsos6) |
15018 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15019 | hardcode_direct_F77=yes |
15020 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15021 | hardcode_libdir_separator_F77=: |
15022 | hardcode_shlibpath_var_F77=no |
15023 | ;; |
15024 | |
15025 | openbsd*) |
ac40fd9e |
15026 | if test -f /usr/libexec/ld.so; then |
15027 | hardcode_direct_F77=yes |
15028 | hardcode_shlibpath_var_F77=no |
15029 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15030 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15031 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15032 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15033 | export_dynamic_flag_spec_F77='${wl}-E' |
15034 | else |
15035 | case $host_os in |
15036 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15037 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15038 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15039 | ;; |
15040 | *) |
15041 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15042 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15043 | ;; |
15044 | esac |
15045 | fi |
d9898ee8 |
15046 | else |
ac40fd9e |
15047 | ld_shlibs_F77=no |
d9898ee8 |
15048 | fi |
15049 | ;; |
15050 | |
15051 | os2*) |
15052 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15053 | hardcode_minus_L_F77=yes |
15054 | allow_undefined_flag_F77=unsupported |
15055 | 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' |
15056 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15057 | ;; |
15058 | |
15059 | osf3*) |
15060 | if test "$GCC" = yes; then |
15061 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15062 | 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' |
15063 | else |
15064 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15065 | 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' |
15066 | fi |
15067 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15068 | hardcode_libdir_separator_F77=: |
15069 | ;; |
15070 | |
15071 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15072 | if test "$GCC" = yes; then |
15073 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15074 | 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' |
15075 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15076 | else |
15077 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15078 | 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' |
15079 | 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~ |
15080 | $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' |
15081 | |
15082 | # Both c and cxx compiler support -rpath directly |
15083 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15084 | fi |
15085 | hardcode_libdir_separator_F77=: |
15086 | ;; |
15087 | |
15088 | solaris*) |
15089 | no_undefined_flag_F77=' -z text' |
15090 | if test "$GCC" = yes; then |
15091 | wlarc='${wl}' |
15092 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15093 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15094 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15095 | else |
15096 | wlarc='' |
15097 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15098 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15099 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15100 | fi |
15101 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15102 | hardcode_shlibpath_var_F77=no |
15103 | case $host_os in |
15104 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15105 | *) |
ac40fd9e |
15106 | # The compiler driver will combine and reorder linker options, |
15107 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
15108 | # but is careful enough not to reorder. |
d9898ee8 |
15109 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
15110 | if test "$GCC" = yes; then |
15111 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
15112 | else |
15113 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' |
15114 | fi |
15115 | ;; |
d9898ee8 |
15116 | esac |
15117 | link_all_deplibs_F77=yes |
15118 | ;; |
15119 | |
15120 | sunos4*) |
15121 | if test "x$host_vendor" = xsequent; then |
15122 | # Use $CC to link under sequent, because it throws in some extra .o |
15123 | # files that make .init and .fini sections work. |
15124 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15125 | else |
15126 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15127 | fi |
15128 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15129 | hardcode_direct_F77=yes |
15130 | hardcode_minus_L_F77=yes |
15131 | hardcode_shlibpath_var_F77=no |
15132 | ;; |
15133 | |
15134 | sysv4) |
15135 | case $host_vendor in |
15136 | sni) |
15137 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15138 | hardcode_direct_F77=yes # is this really true??? |
15139 | ;; |
15140 | siemens) |
15141 | ## LD is ld it makes a PLAMLIB |
15142 | ## CC just makes a GrossModule. |
15143 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15144 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15145 | hardcode_direct_F77=no |
15146 | ;; |
15147 | motorola) |
15148 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15149 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15150 | ;; |
15151 | esac |
15152 | runpath_var='LD_RUN_PATH' |
15153 | hardcode_shlibpath_var_F77=no |
15154 | ;; |
15155 | |
15156 | sysv4.3*) |
15157 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15158 | hardcode_shlibpath_var_F77=no |
15159 | export_dynamic_flag_spec_F77='-Bexport' |
15160 | ;; |
15161 | |
15162 | sysv4*MP*) |
15163 | if test -d /usr/nec; then |
15164 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15165 | hardcode_shlibpath_var_F77=no |
15166 | runpath_var=LD_RUN_PATH |
15167 | hardcode_runpath_var=yes |
15168 | ld_shlibs_F77=yes |
15169 | fi |
15170 | ;; |
15171 | |
ac40fd9e |
15172 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
15173 | no_undefined_flag_F77='${wl}-z,text' |
15174 | archive_cmds_need_lc_F77=no |
15175 | hardcode_shlibpath_var_F77=no |
15176 | runpath_var='LD_RUN_PATH' |
15177 | |
15178 | if test "$GCC" = yes; then |
15179 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15180 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15181 | else |
15182 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15183 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15184 | fi |
15185 | ;; |
15186 | |
15187 | sysv5* | sco3.2v5* | sco5v6*) |
15188 | # Note: We can NOT use -z defs as we might desire, because we do not |
15189 | # link with -lc, and that would cause any symbols used from libc to |
15190 | # always be unresolved, which means just about no library would |
15191 | # ever link correctly. If we're not using GNU ld we use -z text |
15192 | # though, which does catch some bad symbols but isn't as heavy-handed |
15193 | # as -z defs. |
15194 | no_undefined_flag_F77='${wl}-z,text' |
15195 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15196 | archive_cmds_need_lc_F77=no |
15197 | hardcode_shlibpath_var_F77=no |
15198 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15199 | hardcode_libdir_separator_F77=':' |
15200 | link_all_deplibs_F77=yes |
15201 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15202 | runpath_var='LD_RUN_PATH' |
15203 | |
15204 | if test "$GCC" = yes; then |
15205 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15206 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15207 | else |
15208 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15209 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15210 | fi |
15211 | ;; |
15212 | |
15213 | uts4*) |
15214 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15215 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15216 | hardcode_shlibpath_var_F77=no |
15217 | ;; |
15218 | |
15219 | *) |
15220 | ld_shlibs_F77=no |
15221 | ;; |
15222 | esac |
15223 | fi |
15224 | |
dd184caf |
15225 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15226 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15227 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15228 | |
15229 | # |
15230 | # Do we need to explicitly link libc? |
15231 | # |
15232 | case "x$archive_cmds_need_lc_F77" in |
15233 | x|xyes) |
15234 | # Assume -lc should be added |
15235 | archive_cmds_need_lc_F77=yes |
15236 | |
15237 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15238 | case $archive_cmds_F77 in |
15239 | *'~'*) |
15240 | # FIXME: we may have to deal with multi-command sequences. |
15241 | ;; |
15242 | '$CC '*) |
15243 | # Test whether the compiler implicitly links with -lc since on some |
15244 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15245 | # to ld, don't add -lc before -lgcc. |
dd184caf |
15246 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15247 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15248 | $rm conftest* |
ac40fd9e |
15249 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
15250 | |
15251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15252 | (eval $ac_compile) 2>&5 |
15253 | ac_status=$? |
15254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15255 | (exit $ac_status); } 2>conftest.err; then |
15256 | soname=conftest |
15257 | lib=conftest |
15258 | libobjs=conftest.$ac_objext |
15259 | deplibs= |
15260 | wl=$lt_prog_compiler_wl_F77 |
15261 | pic_flag=$lt_prog_compiler_pic_F77 |
15262 | compiler_flags=-v |
15263 | linker_flags=-v |
15264 | verstring= |
15265 | output_objdir=. |
15266 | libname=conftest |
15267 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15268 | allow_undefined_flag_F77= |
15269 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15270 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15271 | ac_status=$? |
15272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15273 | (exit $ac_status); } |
15274 | then |
15275 | archive_cmds_need_lc_F77=no |
15276 | else |
15277 | archive_cmds_need_lc_F77=yes |
15278 | fi |
15279 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15280 | else |
15281 | cat conftest.err 1>&5 |
15282 | fi |
15283 | $rm conftest* |
dd184caf |
15284 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15285 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15286 | ;; |
15287 | esac |
15288 | fi |
15289 | ;; |
15290 | esac |
15291 | |
dd184caf |
15292 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15293 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15294 | library_names_spec= |
15295 | libname_spec='lib$name' |
15296 | soname_spec= |
15297 | shrext_cmds=".so" |
15298 | postinstall_cmds= |
15299 | postuninstall_cmds= |
15300 | finish_cmds= |
15301 | finish_eval= |
15302 | shlibpath_var= |
15303 | shlibpath_overrides_runpath=unknown |
15304 | version_type=none |
15305 | dynamic_linker="$host_os ld.so" |
15306 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
15307 | |
d9898ee8 |
15308 | need_lib_prefix=unknown |
15309 | hardcode_into_libs=no |
15310 | |
15311 | # when you set need_version to no, make sure it does not cause -set_version |
15312 | # flags to be left without arguments |
15313 | need_version=unknown |
15314 | |
15315 | case $host_os in |
15316 | aix3*) |
15317 | version_type=linux |
15318 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15319 | shlibpath_var=LIBPATH |
15320 | |
15321 | # AIX 3 has no versioning support, so we append a major version to the name. |
15322 | soname_spec='${libname}${release}${shared_ext}$major' |
15323 | ;; |
15324 | |
15325 | aix4* | aix5*) |
15326 | version_type=linux |
15327 | need_lib_prefix=no |
15328 | need_version=no |
15329 | hardcode_into_libs=yes |
15330 | if test "$host_cpu" = ia64; then |
15331 | # AIX 5 supports IA64 |
15332 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15333 | shlibpath_var=LD_LIBRARY_PATH |
15334 | else |
15335 | # With GCC up to 2.95.x, collect2 would create an import file |
15336 | # for dependence libraries. The import file would start with |
15337 | # the line `#! .'. This would cause the generated library to |
15338 | # depend on `.', always an invalid library. This was fixed in |
15339 | # development snapshots of GCC prior to 3.0. |
15340 | case $host_os in |
15341 | aix4 | aix4.[01] | aix4.[01].*) |
15342 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15343 | echo ' yes ' |
15344 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15345 | : |
15346 | else |
15347 | can_build_shared=no |
15348 | fi |
15349 | ;; |
15350 | esac |
15351 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15352 | # soname into executable. Probably we can add versioning support to |
15353 | # collect2, so additional links can be useful in future. |
15354 | if test "$aix_use_runtimelinking" = yes; then |
15355 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15356 | # instead of lib<name>.a to let people know that these are not |
15357 | # typical AIX shared libraries. |
15358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15359 | else |
15360 | # We preserve .a as extension for shared libraries through AIX4.2 |
15361 | # and later when we are not doing run time linking. |
15362 | library_names_spec='${libname}${release}.a $libname.a' |
15363 | soname_spec='${libname}${release}${shared_ext}$major' |
15364 | fi |
15365 | shlibpath_var=LIBPATH |
15366 | fi |
15367 | ;; |
15368 | |
15369 | amigaos*) |
15370 | library_names_spec='$libname.ixlibrary $libname.a' |
15371 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15372 | 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' |
15373 | ;; |
15374 | |
15375 | beos*) |
15376 | library_names_spec='${libname}${shared_ext}' |
15377 | dynamic_linker="$host_os ld.so" |
15378 | shlibpath_var=LIBRARY_PATH |
15379 | ;; |
15380 | |
15381 | bsdi[45]*) |
15382 | version_type=linux |
15383 | need_version=no |
15384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15385 | soname_spec='${libname}${release}${shared_ext}$major' |
15386 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15387 | shlibpath_var=LD_LIBRARY_PATH |
15388 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15389 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15390 | # the default ld.so.conf also contains /usr/contrib/lib and |
15391 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15392 | # libtool to hard-code these into programs |
15393 | ;; |
15394 | |
15395 | cygwin* | mingw* | pw32*) |
15396 | version_type=windows |
15397 | shrext_cmds=".dll" |
15398 | need_version=no |
15399 | need_lib_prefix=no |
15400 | |
15401 | case $GCC,$host_os in |
15402 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15403 | library_names_spec='$libname.dll.a' |
15404 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15405 | postinstall_cmds='base_file=`basename \${file}`~ |
15406 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15407 | dldir=$destdir/`dirname \$dlpath`~ |
15408 | test -d \$dldir || mkdir -p \$dldir~ |
15409 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15410 | chmod a+x \$dldir/$dlname' |
15411 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15412 | dlpath=$dir/\$dldll~ |
15413 | $rm \$dlpath' |
15414 | shlibpath_overrides_runpath=yes |
15415 | |
15416 | case $host_os in |
15417 | cygwin*) |
15418 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15419 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15420 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15421 | ;; |
15422 | mingw*) |
15423 | # MinGW DLLs use traditional 'lib' prefix |
15424 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15425 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15426 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15427 | # It is most probably a Windows format PATH printed by |
15428 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15429 | # path with ; separators, and with drive letters. We can handle the |
15430 | # drive letters (cygwin fileutils understands them), so leave them, |
15431 | # especially as we might pass files found there to a mingw objdump, |
15432 | # which wouldn't understand a cygwinified path. Ahh. |
15433 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15434 | else |
15435 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15436 | fi |
15437 | ;; |
15438 | pw32*) |
15439 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15440 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15441 | ;; |
15442 | esac |
15443 | ;; |
15444 | |
15445 | *) |
15446 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15447 | ;; |
15448 | esac |
15449 | dynamic_linker='Win32 ld.exe' |
15450 | # FIXME: first we should search . and the directory the executable is in |
15451 | shlibpath_var=PATH |
15452 | ;; |
15453 | |
15454 | darwin* | rhapsody*) |
15455 | dynamic_linker="$host_os dyld" |
15456 | version_type=darwin |
15457 | need_lib_prefix=no |
15458 | need_version=no |
15459 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15460 | soname_spec='${libname}${release}${major}$shared_ext' |
15461 | shlibpath_overrides_runpath=yes |
15462 | shlibpath_var=DYLD_LIBRARY_PATH |
15463 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
15464 | |
d9898ee8 |
15465 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15466 | ;; |
15467 | |
15468 | dgux*) |
15469 | version_type=linux |
15470 | need_lib_prefix=no |
15471 | need_version=no |
15472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15473 | soname_spec='${libname}${release}${shared_ext}$major' |
15474 | shlibpath_var=LD_LIBRARY_PATH |
15475 | ;; |
15476 | |
15477 | freebsd1*) |
15478 | dynamic_linker=no |
15479 | ;; |
15480 | |
d9898ee8 |
15481 | freebsd* | dragonfly*) |
15482 | # DragonFly does not have aout. When/if they implement a new |
15483 | # versioning mechanism, adjust this. |
15484 | if test -x /usr/bin/objformat; then |
15485 | objformat=`/usr/bin/objformat` |
15486 | else |
15487 | case $host_os in |
15488 | freebsd[123]*) objformat=aout ;; |
15489 | *) objformat=elf ;; |
15490 | esac |
15491 | fi |
15492 | version_type=freebsd-$objformat |
15493 | case $version_type in |
15494 | freebsd-elf*) |
15495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15496 | need_version=no |
15497 | need_lib_prefix=no |
15498 | ;; |
15499 | freebsd-*) |
15500 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15501 | need_version=yes |
15502 | ;; |
15503 | esac |
15504 | shlibpath_var=LD_LIBRARY_PATH |
15505 | case $host_os in |
15506 | freebsd2*) |
15507 | shlibpath_overrides_runpath=yes |
15508 | ;; |
15509 | freebsd3.[01]* | freebsdelf3.[01]*) |
15510 | shlibpath_overrides_runpath=yes |
15511 | hardcode_into_libs=yes |
15512 | ;; |
15513 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15514 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15515 | shlibpath_overrides_runpath=no |
15516 | hardcode_into_libs=yes |
15517 | ;; |
ac40fd9e |
15518 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
15519 | shlibpath_overrides_runpath=yes |
15520 | hardcode_into_libs=yes |
15521 | ;; |
15522 | esac |
15523 | ;; |
15524 | |
15525 | gnu*) |
15526 | version_type=linux |
15527 | need_lib_prefix=no |
15528 | need_version=no |
15529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15530 | soname_spec='${libname}${release}${shared_ext}$major' |
15531 | shlibpath_var=LD_LIBRARY_PATH |
15532 | hardcode_into_libs=yes |
15533 | ;; |
15534 | |
15535 | hpux9* | hpux10* | hpux11*) |
15536 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15537 | # link against other versions. |
15538 | version_type=sunos |
15539 | need_lib_prefix=no |
15540 | need_version=no |
15541 | case $host_cpu in |
15542 | ia64*) |
15543 | shrext_cmds='.so' |
15544 | hardcode_into_libs=yes |
15545 | dynamic_linker="$host_os dld.so" |
15546 | shlibpath_var=LD_LIBRARY_PATH |
15547 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15549 | soname_spec='${libname}${release}${shared_ext}$major' |
15550 | if test "X$HPUX_IA64_MODE" = X32; then |
15551 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15552 | else |
15553 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15554 | fi |
15555 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15556 | ;; |
15557 | hppa*64*) |
15558 | shrext_cmds='.sl' |
15559 | hardcode_into_libs=yes |
15560 | dynamic_linker="$host_os dld.sl" |
15561 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15562 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15564 | soname_spec='${libname}${release}${shared_ext}$major' |
15565 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15566 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15567 | ;; |
15568 | *) |
15569 | shrext_cmds='.sl' |
15570 | dynamic_linker="$host_os dld.sl" |
15571 | shlibpath_var=SHLIB_PATH |
15572 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15574 | soname_spec='${libname}${release}${shared_ext}$major' |
15575 | ;; |
15576 | esac |
15577 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15578 | postinstall_cmds='chmod 555 $lib' |
15579 | ;; |
15580 | |
ac40fd9e |
15581 | interix[3-9]*) |
d9898ee8 |
15582 | version_type=linux |
15583 | need_lib_prefix=no |
15584 | need_version=no |
15585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15586 | soname_spec='${libname}${release}${shared_ext}$major' |
15587 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15588 | shlibpath_var=LD_LIBRARY_PATH |
15589 | shlibpath_overrides_runpath=no |
15590 | hardcode_into_libs=yes |
15591 | ;; |
15592 | |
15593 | irix5* | irix6* | nonstopux*) |
15594 | case $host_os in |
15595 | nonstopux*) version_type=nonstopux ;; |
15596 | *) |
15597 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15598 | version_type=linux |
15599 | else |
15600 | version_type=irix |
15601 | fi ;; |
15602 | esac |
15603 | need_lib_prefix=no |
15604 | need_version=no |
15605 | soname_spec='${libname}${release}${shared_ext}$major' |
15606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15607 | case $host_os in |
15608 | irix5* | nonstopux*) |
15609 | libsuff= shlibsuff= |
15610 | ;; |
15611 | *) |
15612 | case $LD in # libtool.m4 will add one of these switches to LD |
15613 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15614 | libsuff= shlibsuff= libmagic=32-bit;; |
15615 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15616 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15617 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15618 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15619 | *) libsuff= shlibsuff= libmagic=never-match;; |
15620 | esac |
15621 | ;; |
15622 | esac |
15623 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15624 | shlibpath_overrides_runpath=no |
15625 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15626 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15627 | hardcode_into_libs=yes |
15628 | ;; |
15629 | |
15630 | # No shared lib support for Linux oldld, aout, or coff. |
15631 | linux*oldld* | linux*aout* | linux*coff*) |
15632 | dynamic_linker=no |
15633 | ;; |
15634 | |
15635 | # This must be Linux ELF. |
ac40fd9e |
15636 | linux* | k*bsd*-gnu) |
d9898ee8 |
15637 | version_type=linux |
15638 | need_lib_prefix=no |
15639 | need_version=no |
15640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15641 | soname_spec='${libname}${release}${shared_ext}$major' |
15642 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15643 | shlibpath_var=LD_LIBRARY_PATH |
15644 | shlibpath_overrides_runpath=no |
15645 | # This implies no fast_install, which is unacceptable. |
15646 | # Some rework will be needed to allow for fast_install |
15647 | # before this can be enabled. |
15648 | hardcode_into_libs=yes |
ac40fd9e |
15649 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15650 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
15651 | |
15652 | # Append ld.so.conf contents to the search path |
15653 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
15654 | 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' ' '` |
15655 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
15656 | fi |
15657 | |
15658 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15659 | # powerpc, because MkLinux only supported shared libraries with the |
15660 | # GNU dynamic linker. Since this was broken with cross compilers, |
15661 | # most powerpc-linux boxes support dynamic linking these days and |
15662 | # people can always --disable-shared, the test was removed, and we |
15663 | # assume the GNU/Linux dynamic linker is in use. |
15664 | dynamic_linker='GNU/Linux ld.so' |
15665 | ;; |
15666 | |
d9898ee8 |
15667 | netbsd*) |
15668 | version_type=sunos |
15669 | need_lib_prefix=no |
15670 | need_version=no |
15671 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15673 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15674 | dynamic_linker='NetBSD (a.out) ld.so' |
15675 | else |
15676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15677 | soname_spec='${libname}${release}${shared_ext}$major' |
15678 | dynamic_linker='NetBSD ld.elf_so' |
15679 | fi |
15680 | shlibpath_var=LD_LIBRARY_PATH |
15681 | shlibpath_overrides_runpath=yes |
15682 | hardcode_into_libs=yes |
15683 | ;; |
15684 | |
15685 | newsos6) |
15686 | version_type=linux |
15687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15688 | shlibpath_var=LD_LIBRARY_PATH |
15689 | shlibpath_overrides_runpath=yes |
15690 | ;; |
15691 | |
15692 | nto-qnx*) |
15693 | version_type=linux |
15694 | need_lib_prefix=no |
15695 | need_version=no |
15696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15697 | soname_spec='${libname}${release}${shared_ext}$major' |
15698 | shlibpath_var=LD_LIBRARY_PATH |
15699 | shlibpath_overrides_runpath=yes |
15700 | ;; |
15701 | |
15702 | openbsd*) |
15703 | version_type=sunos |
15704 | sys_lib_dlsearch_path_spec="/usr/lib" |
15705 | need_lib_prefix=no |
15706 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15707 | case $host_os in |
15708 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15709 | *) need_version=no ;; |
15710 | esac |
15711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15712 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15713 | shlibpath_var=LD_LIBRARY_PATH |
15714 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15715 | case $host_os in |
15716 | openbsd2.[89] | openbsd2.[89].*) |
15717 | shlibpath_overrides_runpath=no |
15718 | ;; |
15719 | *) |
15720 | shlibpath_overrides_runpath=yes |
15721 | ;; |
15722 | esac |
15723 | else |
15724 | shlibpath_overrides_runpath=yes |
15725 | fi |
15726 | ;; |
15727 | |
15728 | os2*) |
15729 | libname_spec='$name' |
15730 | shrext_cmds=".dll" |
15731 | need_lib_prefix=no |
15732 | library_names_spec='$libname${shared_ext} $libname.a' |
15733 | dynamic_linker='OS/2 ld.exe' |
15734 | shlibpath_var=LIBPATH |
15735 | ;; |
15736 | |
15737 | osf3* | osf4* | osf5*) |
15738 | version_type=osf |
15739 | need_lib_prefix=no |
15740 | need_version=no |
15741 | soname_spec='${libname}${release}${shared_ext}$major' |
15742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15743 | shlibpath_var=LD_LIBRARY_PATH |
15744 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15745 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15746 | ;; |
15747 | |
ac40fd9e |
15748 | rdos*) |
15749 | dynamic_linker=no |
15750 | ;; |
15751 | |
d9898ee8 |
15752 | solaris*) |
15753 | version_type=linux |
15754 | need_lib_prefix=no |
15755 | need_version=no |
15756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15757 | soname_spec='${libname}${release}${shared_ext}$major' |
15758 | shlibpath_var=LD_LIBRARY_PATH |
15759 | shlibpath_overrides_runpath=yes |
15760 | hardcode_into_libs=yes |
15761 | # ldd complains unless libraries are executable |
15762 | postinstall_cmds='chmod +x $lib' |
15763 | ;; |
15764 | |
15765 | sunos4*) |
15766 | version_type=sunos |
15767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15768 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15769 | shlibpath_var=LD_LIBRARY_PATH |
15770 | shlibpath_overrides_runpath=yes |
15771 | if test "$with_gnu_ld" = yes; then |
15772 | need_lib_prefix=no |
15773 | fi |
15774 | need_version=yes |
15775 | ;; |
15776 | |
15777 | sysv4 | sysv4.3*) |
15778 | version_type=linux |
15779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15780 | soname_spec='${libname}${release}${shared_ext}$major' |
15781 | shlibpath_var=LD_LIBRARY_PATH |
15782 | case $host_vendor in |
15783 | sni) |
15784 | shlibpath_overrides_runpath=no |
15785 | need_lib_prefix=no |
15786 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15787 | runpath_var=LD_RUN_PATH |
15788 | ;; |
15789 | siemens) |
15790 | need_lib_prefix=no |
15791 | ;; |
15792 | motorola) |
15793 | need_lib_prefix=no |
15794 | need_version=no |
15795 | shlibpath_overrides_runpath=no |
15796 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15797 | ;; |
15798 | esac |
15799 | ;; |
15800 | |
15801 | sysv4*MP*) |
15802 | if test -d /usr/nec ;then |
15803 | version_type=linux |
15804 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15805 | soname_spec='$libname${shared_ext}.$major' |
15806 | shlibpath_var=LD_LIBRARY_PATH |
15807 | fi |
15808 | ;; |
15809 | |
15810 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15811 | version_type=freebsd-elf |
15812 | need_lib_prefix=no |
15813 | need_version=no |
15814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15815 | soname_spec='${libname}${release}${shared_ext}$major' |
15816 | shlibpath_var=LD_LIBRARY_PATH |
15817 | hardcode_into_libs=yes |
15818 | if test "$with_gnu_ld" = yes; then |
15819 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15820 | shlibpath_overrides_runpath=no |
15821 | else |
15822 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15823 | shlibpath_overrides_runpath=yes |
15824 | case $host_os in |
15825 | sco3.2v5*) |
15826 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15827 | ;; |
15828 | esac |
15829 | fi |
15830 | sys_lib_dlsearch_path_spec='/usr/lib' |
15831 | ;; |
15832 | |
15833 | uts4*) |
15834 | version_type=linux |
15835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15836 | soname_spec='${libname}${release}${shared_ext}$major' |
15837 | shlibpath_var=LD_LIBRARY_PATH |
15838 | ;; |
15839 | |
15840 | *) |
15841 | dynamic_linker=no |
15842 | ;; |
15843 | esac |
dd184caf |
15844 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15845 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15846 | test "$dynamic_linker" = no && can_build_shared=no |
15847 | |
15848 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15849 | if test "$GCC" = yes; then |
15850 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15851 | fi |
15852 | |
dd184caf |
15853 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15854 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15855 | hardcode_action_F77= |
15856 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15857 | test -n "$runpath_var_F77" || \ |
15858 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15859 | |
15860 | # We can hardcode non-existant directories. |
15861 | if test "$hardcode_direct_F77" != no && |
15862 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15863 | # have to relink, otherwise we might link with an installed library |
15864 | # when we should be linking with a yet-to-be-installed one |
15865 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15866 | test "$hardcode_minus_L_F77" != no; then |
15867 | # Linking always hardcodes the temporary library directory. |
15868 | hardcode_action_F77=relink |
15869 | else |
15870 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15871 | hardcode_action_F77=immediate |
15872 | fi |
15873 | else |
15874 | # We cannot hardcode anything, or else we can only hardcode existing |
15875 | # directories. |
15876 | hardcode_action_F77=unsupported |
15877 | fi |
dd184caf |
15878 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15879 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15880 | |
15881 | if test "$hardcode_action_F77" = relink; then |
15882 | # Fast installation is not supported |
15883 | enable_fast_install=no |
15884 | elif test "$shlibpath_overrides_runpath" = yes || |
15885 | test "$enable_shared" = no; then |
15886 | # Fast installation is not necessary |
15887 | enable_fast_install=needless |
15888 | fi |
15889 | |
15890 | |
15891 | # The else clause should only fire when bootstrapping the |
15892 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15893 | # with your package, and you will get complaints that there are |
15894 | # no rules to generate ltmain.sh. |
15895 | if test -f "$ltmain"; then |
15896 | # See if we are running on zsh, and set the options which allow our commands through |
15897 | # without removal of \ escapes. |
15898 | if test -n "${ZSH_VERSION+set}" ; then |
15899 | setopt NO_GLOB_SUBST |
15900 | fi |
15901 | # Now quote all the things that may contain metacharacters while being |
15902 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15903 | # variables and quote the copies for generation of the libtool script. |
15904 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15905 | SED SHELL STRIP \ |
15906 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15907 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15908 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15909 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15910 | lt_cv_sys_global_symbol_to_c_name_address \ |
15911 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15912 | old_postinstall_cmds old_postuninstall_cmds \ |
15913 | compiler_F77 \ |
15914 | CC_F77 \ |
15915 | LD_F77 \ |
15916 | lt_prog_compiler_wl_F77 \ |
15917 | lt_prog_compiler_pic_F77 \ |
15918 | lt_prog_compiler_static_F77 \ |
15919 | lt_prog_compiler_no_builtin_flag_F77 \ |
15920 | export_dynamic_flag_spec_F77 \ |
15921 | thread_safe_flag_spec_F77 \ |
15922 | whole_archive_flag_spec_F77 \ |
15923 | enable_shared_with_static_runtimes_F77 \ |
15924 | old_archive_cmds_F77 \ |
15925 | old_archive_from_new_cmds_F77 \ |
15926 | predep_objects_F77 \ |
15927 | postdep_objects_F77 \ |
15928 | predeps_F77 \ |
15929 | postdeps_F77 \ |
15930 | compiler_lib_search_path_F77 \ |
15931 | archive_cmds_F77 \ |
15932 | archive_expsym_cmds_F77 \ |
15933 | postinstall_cmds_F77 \ |
15934 | postuninstall_cmds_F77 \ |
15935 | old_archive_from_expsyms_cmds_F77 \ |
15936 | allow_undefined_flag_F77 \ |
15937 | no_undefined_flag_F77 \ |
15938 | export_symbols_cmds_F77 \ |
15939 | hardcode_libdir_flag_spec_F77 \ |
15940 | hardcode_libdir_flag_spec_ld_F77 \ |
15941 | hardcode_libdir_separator_F77 \ |
15942 | hardcode_automatic_F77 \ |
15943 | module_cmds_F77 \ |
15944 | module_expsym_cmds_F77 \ |
15945 | lt_cv_prog_compiler_c_o_F77 \ |
ac40fd9e |
15946 | fix_srcfile_path_F77 \ |
d9898ee8 |
15947 | exclude_expsyms_F77 \ |
15948 | include_expsyms_F77; do |
15949 | |
15950 | case $var in |
15951 | old_archive_cmds_F77 | \ |
15952 | old_archive_from_new_cmds_F77 | \ |
15953 | archive_cmds_F77 | \ |
15954 | archive_expsym_cmds_F77 | \ |
15955 | module_cmds_F77 | \ |
15956 | module_expsym_cmds_F77 | \ |
15957 | old_archive_from_expsyms_cmds_F77 | \ |
15958 | export_symbols_cmds_F77 | \ |
15959 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15960 | postinstall_cmds | postuninstall_cmds | \ |
15961 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15962 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15963 | # Double-quote double-evaled strings. |
15964 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15965 | ;; |
15966 | *) |
15967 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15968 | ;; |
15969 | esac |
15970 | done |
15971 | |
15972 | case $lt_echo in |
15973 | *'\$0 --fallback-echo"') |
15974 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15975 | ;; |
15976 | esac |
15977 | |
15978 | cfgfile="$ofile" |
15979 | |
15980 | cat <<__EOF__ >> "$cfgfile" |
15981 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15982 | |
15983 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15984 | |
15985 | # Shell to use when invoking shell scripts. |
15986 | SHELL=$lt_SHELL |
15987 | |
15988 | # Whether or not to build shared libraries. |
15989 | build_libtool_libs=$enable_shared |
15990 | |
15991 | # Whether or not to build static libraries. |
15992 | build_old_libs=$enable_static |
15993 | |
15994 | # Whether or not to add -lc for building shared libraries. |
15995 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15996 | |
15997 | # Whether or not to disallow shared libs when runtime libs are static |
15998 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15999 | |
16000 | # Whether or not to optimize for fast installation. |
16001 | fast_install=$enable_fast_install |
16002 | |
16003 | # The host system. |
16004 | host_alias=$host_alias |
16005 | host=$host |
16006 | host_os=$host_os |
16007 | |
16008 | # The build system. |
16009 | build_alias=$build_alias |
16010 | build=$build |
16011 | build_os=$build_os |
16012 | |
16013 | # An echo program that does not interpret backslashes. |
16014 | echo=$lt_echo |
16015 | |
16016 | # The archiver. |
16017 | AR=$lt_AR |
16018 | AR_FLAGS=$lt_AR_FLAGS |
16019 | |
16020 | # A C compiler. |
16021 | LTCC=$lt_LTCC |
16022 | |
16023 | # LTCC compiler flags. |
16024 | LTCFLAGS=$lt_LTCFLAGS |
16025 | |
16026 | # A language-specific compiler. |
16027 | CC=$lt_compiler_F77 |
16028 | |
16029 | # Is the compiler the GNU C compiler? |
16030 | with_gcc=$GCC_F77 |
16031 | |
d9898ee8 |
16032 | # An ERE matcher. |
16033 | EGREP=$lt_EGREP |
16034 | |
16035 | # The linker used to build libraries. |
16036 | LD=$lt_LD_F77 |
16037 | |
16038 | # Whether we need hard or soft links. |
16039 | LN_S=$lt_LN_S |
16040 | |
16041 | # A BSD-compatible nm program. |
16042 | NM=$lt_NM |
16043 | |
16044 | # A symbol stripping program |
16045 | STRIP=$lt_STRIP |
16046 | |
16047 | # Used to examine libraries when file_magic_cmd begins "file" |
16048 | MAGIC_CMD=$MAGIC_CMD |
16049 | |
16050 | # Used on cygwin: DLL creation program. |
16051 | DLLTOOL="$DLLTOOL" |
16052 | |
16053 | # Used on cygwin: object dumper. |
16054 | OBJDUMP="$OBJDUMP" |
16055 | |
16056 | # Used on cygwin: assembler. |
16057 | AS="$AS" |
16058 | |
16059 | # The name of the directory that contains temporary libtool files. |
16060 | objdir=$objdir |
16061 | |
16062 | # How to create reloadable object files. |
16063 | reload_flag=$lt_reload_flag |
16064 | reload_cmds=$lt_reload_cmds |
16065 | |
16066 | # How to pass a linker flag through the compiler. |
16067 | wl=$lt_lt_prog_compiler_wl_F77 |
16068 | |
16069 | # Object file suffix (normally "o"). |
16070 | objext="$ac_objext" |
16071 | |
16072 | # Old archive suffix (normally "a"). |
16073 | libext="$libext" |
16074 | |
16075 | # Shared library suffix (normally ".so"). |
16076 | shrext_cmds='$shrext_cmds' |
16077 | |
16078 | # Executable file suffix (normally ""). |
16079 | exeext="$exeext" |
16080 | |
16081 | # Additional compiler flags for building library objects. |
16082 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16083 | pic_mode=$pic_mode |
16084 | |
16085 | # What is the maximum length of a command? |
16086 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16087 | |
16088 | # Does compiler simultaneously support -c and -o options? |
16089 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16090 | |
16091 | # Must we lock files when doing compilation? |
16092 | need_locks=$lt_need_locks |
16093 | |
16094 | # Do we need the lib prefix for modules? |
16095 | need_lib_prefix=$need_lib_prefix |
16096 | |
16097 | # Do we need a version for libraries? |
16098 | need_version=$need_version |
16099 | |
16100 | # Whether dlopen is supported. |
16101 | dlopen_support=$enable_dlopen |
16102 | |
16103 | # Whether dlopen of programs is supported. |
16104 | dlopen_self=$enable_dlopen_self |
16105 | |
16106 | # Whether dlopen of statically linked programs is supported. |
16107 | dlopen_self_static=$enable_dlopen_self_static |
16108 | |
16109 | # Compiler flag to prevent dynamic linking. |
16110 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16111 | |
16112 | # Compiler flag to turn off builtin functions. |
16113 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16114 | |
16115 | # Compiler flag to allow reflexive dlopens. |
16116 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16117 | |
16118 | # Compiler flag to generate shared objects directly from archives. |
16119 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16120 | |
16121 | # Compiler flag to generate thread-safe objects. |
16122 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16123 | |
16124 | # Library versioning type. |
16125 | version_type=$version_type |
16126 | |
16127 | # Format of library name prefix. |
16128 | libname_spec=$lt_libname_spec |
16129 | |
16130 | # List of archive names. First name is the real one, the rest are links. |
16131 | # The last name is the one that the linker finds with -lNAME. |
16132 | library_names_spec=$lt_library_names_spec |
16133 | |
16134 | # The coded name of the library, if different from the real name. |
16135 | soname_spec=$lt_soname_spec |
16136 | |
16137 | # Commands used to build and install an old-style archive. |
16138 | RANLIB=$lt_RANLIB |
16139 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16140 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16141 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16142 | |
16143 | # Create an old-style archive from a shared archive. |
16144 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16145 | |
16146 | # Create a temporary old-style archive to link instead of a shared archive. |
16147 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16148 | |
16149 | # Commands used to build and install a shared archive. |
16150 | archive_cmds=$lt_archive_cmds_F77 |
16151 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16152 | postinstall_cmds=$lt_postinstall_cmds |
16153 | postuninstall_cmds=$lt_postuninstall_cmds |
16154 | |
16155 | # Commands used to build a loadable module (assumed same as above if empty) |
16156 | module_cmds=$lt_module_cmds_F77 |
16157 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16158 | |
16159 | # Commands to strip libraries. |
16160 | old_striplib=$lt_old_striplib |
16161 | striplib=$lt_striplib |
16162 | |
16163 | # Dependencies to place before the objects being linked to create a |
16164 | # shared library. |
dd184caf |
16165 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16166 | |
16167 | # Dependencies to place after the objects being linked to create a |
16168 | # shared library. |
dd184caf |
16169 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16170 | |
16171 | # Dependencies to place before the objects being linked to create a |
16172 | # shared library. |
16173 | predeps=$lt_predeps_F77 |
16174 | |
16175 | # Dependencies to place after the objects being linked to create a |
16176 | # shared library. |
16177 | postdeps=$lt_postdeps_F77 |
16178 | |
16179 | # The library search path used internally by the compiler when linking |
16180 | # a shared library. |
dd184caf |
16181 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16182 | |
16183 | # Method to check whether dependent libraries are shared objects. |
16184 | deplibs_check_method=$lt_deplibs_check_method |
16185 | |
16186 | # Command to use when deplibs_check_method == file_magic. |
16187 | file_magic_cmd=$lt_file_magic_cmd |
16188 | |
16189 | # Flag that allows shared libraries with undefined symbols to be built. |
16190 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16191 | |
16192 | # Flag that forces no undefined symbols. |
16193 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16194 | |
16195 | # Commands used to finish a libtool library installation in a directory. |
16196 | finish_cmds=$lt_finish_cmds |
16197 | |
16198 | # Same as above, but a single script fragment to be evaled but not shown. |
16199 | finish_eval=$lt_finish_eval |
16200 | |
16201 | # Take the output of nm and produce a listing of raw symbols and C names. |
16202 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16203 | |
16204 | # Transform the output of nm in a proper C declaration |
16205 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16206 | |
16207 | # Transform the output of nm in a C name address pair |
16208 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16209 | |
16210 | # This is the shared library runtime path variable. |
16211 | runpath_var=$runpath_var |
16212 | |
16213 | # This is the shared library path variable. |
16214 | shlibpath_var=$shlibpath_var |
16215 | |
16216 | # Is shlibpath searched before the hard-coded library search path? |
16217 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16218 | |
16219 | # How to hardcode a shared library path into an executable. |
16220 | hardcode_action=$hardcode_action_F77 |
16221 | |
16222 | # Whether we should hardcode library paths into libraries. |
16223 | hardcode_into_libs=$hardcode_into_libs |
16224 | |
16225 | # Flag to hardcode \$libdir into a binary during linking. |
16226 | # This must work even if \$libdir does not exist. |
16227 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16228 | |
16229 | # If ld is used when linking, flag to hardcode \$libdir into |
16230 | # a binary during linking. This must work even if \$libdir does |
16231 | # not exist. |
16232 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16233 | |
16234 | # Whether we need a single -rpath flag with a separated argument. |
16235 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16236 | |
16237 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16238 | # resulting binary. |
16239 | hardcode_direct=$hardcode_direct_F77 |
16240 | |
16241 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16242 | # resulting binary. |
16243 | hardcode_minus_L=$hardcode_minus_L_F77 |
16244 | |
16245 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16246 | # the resulting binary. |
16247 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16248 | |
16249 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16250 | # and all subsequent libraries and executables linked against it. |
16251 | hardcode_automatic=$hardcode_automatic_F77 |
16252 | |
16253 | # Variables whose values should be saved in libtool wrapper scripts and |
16254 | # restored at relink time. |
16255 | variables_saved_for_relink="$variables_saved_for_relink" |
16256 | |
16257 | # Whether libtool must link a program against all its dependency libraries. |
16258 | link_all_deplibs=$link_all_deplibs_F77 |
16259 | |
16260 | # Compile-time system search path for libraries |
dd184caf |
16261 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16262 | |
16263 | # Run-time system search path for libraries |
16264 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16265 | |
16266 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
16267 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
16268 | |
16269 | # Set to yes if exported symbols are required. |
16270 | always_export_symbols=$always_export_symbols_F77 |
16271 | |
16272 | # The commands to list exported symbols. |
16273 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16274 | |
16275 | # The commands to extract the exported symbol list from a shared archive. |
16276 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16277 | |
16278 | # Symbols that should not be listed in the preloaded symbols. |
16279 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16280 | |
16281 | # Symbols that must always be exported. |
16282 | include_expsyms=$lt_include_expsyms_F77 |
16283 | |
16284 | # ### END LIBTOOL TAG CONFIG: $tagname |
16285 | |
16286 | __EOF__ |
16287 | |
16288 | |
16289 | else |
16290 | # If there is no Makefile yet, we rely on a make rule to execute |
16291 | # `config.status --recheck' to rerun these tests and create the |
16292 | # libtool script then. |
16293 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16294 | if test -f "$ltmain_in"; then |
16295 | test -f Makefile && make "$ltmain" |
16296 | fi |
16297 | fi |
16298 | |
16299 | |
16300 | ac_ext=c |
16301 | ac_cpp='$CPP $CPPFLAGS' |
16302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16305 | |
16306 | CC="$lt_save_CC" |
16307 | |
16308 | else |
16309 | tagname="" |
16310 | fi |
16311 | ;; |
16312 | |
16313 | GCJ) |
16314 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16315 | |
16316 | |
d9898ee8 |
16317 | # Source file extension for Java test sources. |
16318 | ac_ext=java |
16319 | |
16320 | # Object file extension for compiled Java test sources. |
16321 | objext=o |
16322 | objext_GCJ=$objext |
16323 | |
16324 | # Code to be used in simple compile tests |
ac40fd9e |
16325 | lt_simple_compile_test_code="class foo {}" |
d9898ee8 |
16326 | |
16327 | # Code to be used in simple link tests |
ac40fd9e |
16328 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' |
d9898ee8 |
16329 | |
16330 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16331 | |
16332 | # If no C compiler was specified, use CC. |
16333 | LTCC=${LTCC-"$CC"} |
16334 | |
16335 | # If no C compiler flags were specified, use CFLAGS. |
16336 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16337 | |
16338 | # Allow CC to be a program name with arguments. |
16339 | compiler=$CC |
16340 | |
16341 | |
16342 | # save warnings/boilerplate of simple test code |
16343 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16344 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
16345 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16346 | _lt_compiler_boilerplate=`cat conftest.err` |
16347 | $rm conftest* |
16348 | |
16349 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16350 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
16351 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16352 | _lt_linker_boilerplate=`cat conftest.err` |
16353 | $rm conftest* |
16354 | |
16355 | |
16356 | # Allow CC to be a program name with arguments. |
16357 | lt_save_CC="$CC" |
16358 | CC=${GCJ-"gcj"} |
16359 | compiler=$CC |
16360 | compiler_GCJ=$CC |
16361 | for cc_temp in $compiler""; do |
16362 | case $cc_temp in |
16363 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16364 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16365 | \-*) ;; |
16366 | *) break;; |
16367 | esac |
16368 | done |
16369 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16370 | |
16371 | |
16372 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16373 | archive_cmds_need_lc_GCJ=no |
16374 | |
16375 | old_archive_cmds_GCJ=$old_archive_cmds |
16376 | |
16377 | |
16378 | lt_prog_compiler_no_builtin_flag_GCJ= |
16379 | |
16380 | if test "$GCC" = yes; then |
16381 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16382 | |
16383 | |
dd184caf |
16384 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16385 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16386 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16388 | else |
16389 | lt_cv_prog_compiler_rtti_exceptions=no |
16390 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16391 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16392 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16393 | # Insert the option either (1) after the last *FLAGS variable, or |
16394 | # (2) before a word containing "conftest.", or (3) at the end. |
16395 | # Note that $ac_compile itself does not contain backslashes and begins |
16396 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16397 | # The option is referenced via a variable to avoid confusing sed. |
16398 | lt_compile=`echo "$ac_compile" | $SED \ |
16399 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16400 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16401 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16402 | (eval echo "\"\$as_me:16402: $lt_compile\"" >&5) |
d9898ee8 |
16403 | (eval "$lt_compile" 2>conftest.err) |
16404 | ac_status=$? |
16405 | cat conftest.err >&5 |
ac40fd9e |
16406 | echo "$as_me:16406: \$? = $ac_status" >&5 |
d9898ee8 |
16407 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16408 | # The compiler can only warn and ignore the option if not recognized |
16409 | # So say no if there are warnings other than the usual output. |
16410 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16411 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16412 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16413 | lt_cv_prog_compiler_rtti_exceptions=yes |
16414 | fi |
16415 | fi |
16416 | $rm conftest* |
16417 | |
16418 | fi |
dd184caf |
16419 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16420 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16421 | |
16422 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16423 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16424 | else |
16425 | : |
16426 | fi |
16427 | |
16428 | fi |
16429 | |
16430 | lt_prog_compiler_wl_GCJ= |
16431 | lt_prog_compiler_pic_GCJ= |
16432 | lt_prog_compiler_static_GCJ= |
16433 | |
dd184caf |
16434 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16435 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16436 | |
16437 | if test "$GCC" = yes; then |
16438 | lt_prog_compiler_wl_GCJ='-Wl,' |
16439 | lt_prog_compiler_static_GCJ='-static' |
16440 | |
16441 | case $host_os in |
16442 | aix*) |
16443 | # All AIX code is PIC. |
16444 | if test "$host_cpu" = ia64; then |
16445 | # AIX 5 now supports IA64 processor |
16446 | lt_prog_compiler_static_GCJ='-Bstatic' |
16447 | fi |
16448 | ;; |
16449 | |
16450 | amigaos*) |
16451 | # FIXME: we need at least 68020 code to build shared libraries, but |
16452 | # adding the `-m68020' flag to GCC prevents building anything better, |
16453 | # like `-m68040'. |
16454 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16455 | ;; |
16456 | |
ac40fd9e |
16457 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
16458 | # PIC is the default for these OSes. |
16459 | ;; |
16460 | |
ac40fd9e |
16461 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
16462 | # This hack is so that the source file can tell whether it is being |
16463 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
16464 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
16465 | # (--disable-auto-import) libraries |
d9898ee8 |
16466 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16467 | ;; |
16468 | |
16469 | darwin* | rhapsody*) |
16470 | # PIC is the default on this platform |
16471 | # Common symbols not allowed in MH_DYLIB files |
16472 | lt_prog_compiler_pic_GCJ='-fno-common' |
16473 | ;; |
16474 | |
ac40fd9e |
16475 | interix[3-9]*) |
d9898ee8 |
16476 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16477 | # Instead, we relocate shared libraries at runtime. |
16478 | ;; |
16479 | |
16480 | msdosdjgpp*) |
16481 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16482 | # on systems that don't support them. |
16483 | lt_prog_compiler_can_build_shared_GCJ=no |
16484 | enable_shared=no |
16485 | ;; |
16486 | |
16487 | sysv4*MP*) |
16488 | if test -d /usr/nec; then |
16489 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16490 | fi |
16491 | ;; |
16492 | |
16493 | hpux*) |
16494 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16495 | # not for PA HP-UX. |
16496 | case $host_cpu in |
16497 | hppa*64*|ia64*) |
16498 | # +Z the default |
16499 | ;; |
16500 | *) |
16501 | lt_prog_compiler_pic_GCJ='-fPIC' |
16502 | ;; |
16503 | esac |
16504 | ;; |
16505 | |
16506 | *) |
16507 | lt_prog_compiler_pic_GCJ='-fPIC' |
16508 | ;; |
16509 | esac |
16510 | else |
16511 | # PORTME Check for flag to pass linker flags through the system compiler. |
16512 | case $host_os in |
16513 | aix*) |
16514 | lt_prog_compiler_wl_GCJ='-Wl,' |
16515 | if test "$host_cpu" = ia64; then |
16516 | # AIX 5 now supports IA64 processor |
16517 | lt_prog_compiler_static_GCJ='-Bstatic' |
16518 | else |
16519 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16520 | fi |
16521 | ;; |
16522 | darwin*) |
16523 | # PIC is the default on this platform |
16524 | # Common symbols not allowed in MH_DYLIB files |
16525 | case $cc_basename in |
16526 | xlc*) |
16527 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16528 | lt_prog_compiler_wl_GCJ='-Wl,' |
16529 | ;; |
16530 | esac |
16531 | ;; |
16532 | |
ac40fd9e |
16533 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
16534 | # This hack is so that the source file can tell whether it is being |
16535 | # built for inclusion in a dll (and should export symbols for example). |
16536 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16537 | ;; |
16538 | |
16539 | hpux9* | hpux10* | hpux11*) |
16540 | lt_prog_compiler_wl_GCJ='-Wl,' |
16541 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16542 | # not for PA HP-UX. |
16543 | case $host_cpu in |
16544 | hppa*64*|ia64*) |
16545 | # +Z the default |
16546 | ;; |
16547 | *) |
16548 | lt_prog_compiler_pic_GCJ='+Z' |
16549 | ;; |
16550 | esac |
16551 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16552 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16553 | ;; |
16554 | |
16555 | irix5* | irix6* | nonstopux*) |
16556 | lt_prog_compiler_wl_GCJ='-Wl,' |
16557 | # PIC (with -KPIC) is the default. |
16558 | lt_prog_compiler_static_GCJ='-non_shared' |
16559 | ;; |
16560 | |
16561 | newsos6) |
16562 | lt_prog_compiler_pic_GCJ='-KPIC' |
16563 | lt_prog_compiler_static_GCJ='-Bstatic' |
16564 | ;; |
16565 | |
ac40fd9e |
16566 | linux* | k*bsd*-gnu) |
d9898ee8 |
16567 | case $cc_basename in |
16568 | icc* | ecc*) |
16569 | lt_prog_compiler_wl_GCJ='-Wl,' |
16570 | lt_prog_compiler_pic_GCJ='-KPIC' |
16571 | lt_prog_compiler_static_GCJ='-static' |
16572 | ;; |
16573 | pgcc* | pgf77* | pgf90* | pgf95*) |
16574 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16575 | # which looks to be a dead project) |
16576 | lt_prog_compiler_wl_GCJ='-Wl,' |
16577 | lt_prog_compiler_pic_GCJ='-fpic' |
16578 | lt_prog_compiler_static_GCJ='-Bstatic' |
16579 | ;; |
16580 | ccc*) |
16581 | lt_prog_compiler_wl_GCJ='-Wl,' |
16582 | # All Alpha code is PIC. |
16583 | lt_prog_compiler_static_GCJ='-non_shared' |
16584 | ;; |
ac40fd9e |
16585 | *) |
16586 | case `$CC -V 2>&1 | sed 5q` in |
16587 | *Sun\ C*) |
16588 | # Sun C 5.9 |
16589 | lt_prog_compiler_pic_GCJ='-KPIC' |
16590 | lt_prog_compiler_static_GCJ='-Bstatic' |
16591 | lt_prog_compiler_wl_GCJ='-Wl,' |
16592 | ;; |
16593 | *Sun\ F*) |
16594 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
16595 | lt_prog_compiler_pic_GCJ='-KPIC' |
16596 | lt_prog_compiler_static_GCJ='-Bstatic' |
16597 | lt_prog_compiler_wl_GCJ='' |
16598 | ;; |
16599 | esac |
16600 | ;; |
d9898ee8 |
16601 | esac |
16602 | ;; |
16603 | |
16604 | osf3* | osf4* | osf5*) |
16605 | lt_prog_compiler_wl_GCJ='-Wl,' |
16606 | # All OSF/1 code is PIC. |
16607 | lt_prog_compiler_static_GCJ='-non_shared' |
16608 | ;; |
16609 | |
ac40fd9e |
16610 | rdos*) |
16611 | lt_prog_compiler_static_GCJ='-non_shared' |
16612 | ;; |
16613 | |
d9898ee8 |
16614 | solaris*) |
16615 | lt_prog_compiler_pic_GCJ='-KPIC' |
16616 | lt_prog_compiler_static_GCJ='-Bstatic' |
16617 | case $cc_basename in |
16618 | f77* | f90* | f95*) |
16619 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16620 | *) |
16621 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16622 | esac |
16623 | ;; |
16624 | |
16625 | sunos4*) |
16626 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16627 | lt_prog_compiler_pic_GCJ='-PIC' |
16628 | lt_prog_compiler_static_GCJ='-Bstatic' |
16629 | ;; |
16630 | |
16631 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16632 | lt_prog_compiler_wl_GCJ='-Wl,' |
16633 | lt_prog_compiler_pic_GCJ='-KPIC' |
16634 | lt_prog_compiler_static_GCJ='-Bstatic' |
16635 | ;; |
16636 | |
16637 | sysv4*MP*) |
16638 | if test -d /usr/nec ;then |
16639 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16640 | lt_prog_compiler_static_GCJ='-Bstatic' |
16641 | fi |
16642 | ;; |
16643 | |
16644 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16645 | lt_prog_compiler_wl_GCJ='-Wl,' |
16646 | lt_prog_compiler_pic_GCJ='-KPIC' |
16647 | lt_prog_compiler_static_GCJ='-Bstatic' |
16648 | ;; |
16649 | |
16650 | unicos*) |
16651 | lt_prog_compiler_wl_GCJ='-Wl,' |
16652 | lt_prog_compiler_can_build_shared_GCJ=no |
16653 | ;; |
16654 | |
16655 | uts4*) |
16656 | lt_prog_compiler_pic_GCJ='-pic' |
16657 | lt_prog_compiler_static_GCJ='-Bstatic' |
16658 | ;; |
16659 | |
16660 | *) |
16661 | lt_prog_compiler_can_build_shared_GCJ=no |
16662 | ;; |
16663 | esac |
16664 | fi |
16665 | |
dd184caf |
16666 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16667 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16668 | |
16669 | # |
16670 | # Check to make sure the PIC flag actually works. |
16671 | # |
16672 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16673 | |
dd184caf |
16674 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16675 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16676 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16678 | else |
16679 | lt_prog_compiler_pic_works_GCJ=no |
16680 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16681 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16682 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16683 | # Insert the option either (1) after the last *FLAGS variable, or |
16684 | # (2) before a word containing "conftest.", or (3) at the end. |
16685 | # Note that $ac_compile itself does not contain backslashes and begins |
16686 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16687 | # The option is referenced via a variable to avoid confusing sed. |
16688 | lt_compile=`echo "$ac_compile" | $SED \ |
16689 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16690 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16691 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16692 | (eval echo "\"\$as_me:16692: $lt_compile\"" >&5) |
d9898ee8 |
16693 | (eval "$lt_compile" 2>conftest.err) |
16694 | ac_status=$? |
16695 | cat conftest.err >&5 |
ac40fd9e |
16696 | echo "$as_me:16696: \$? = $ac_status" >&5 |
d9898ee8 |
16697 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16698 | # The compiler can only warn and ignore the option if not recognized |
16699 | # So say no if there are warnings other than the usual output. |
16700 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16701 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16702 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16703 | lt_prog_compiler_pic_works_GCJ=yes |
16704 | fi |
16705 | fi |
16706 | $rm conftest* |
16707 | |
16708 | fi |
dd184caf |
16709 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16710 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16711 | |
16712 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16713 | case $lt_prog_compiler_pic_GCJ in |
16714 | "" | " "*) ;; |
16715 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16716 | esac |
16717 | else |
16718 | lt_prog_compiler_pic_GCJ= |
16719 | lt_prog_compiler_can_build_shared_GCJ=no |
16720 | fi |
16721 | |
16722 | fi |
16723 | case $host_os in |
16724 | # For platforms which do not support PIC, -DPIC is meaningless: |
16725 | *djgpp*) |
16726 | lt_prog_compiler_pic_GCJ= |
16727 | ;; |
16728 | *) |
16729 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16730 | ;; |
16731 | esac |
16732 | |
16733 | # |
16734 | # Check to make sure the static flag actually works. |
16735 | # |
16736 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
dd184caf |
16737 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16738 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16739 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16741 | else |
16742 | lt_prog_compiler_static_works_GCJ=no |
16743 | save_LDFLAGS="$LDFLAGS" |
16744 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
16745 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
16746 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16747 | # The linker can only warn and ignore the option if not recognized |
16748 | # So say no if there are warnings |
16749 | if test -s conftest.err; then |
16750 | # Append any errors to the config.log. |
16751 | cat conftest.err 1>&5 |
16752 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16753 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16754 | if diff conftest.exp conftest.er2 >/dev/null; then |
16755 | lt_prog_compiler_static_works_GCJ=yes |
16756 | fi |
16757 | else |
16758 | lt_prog_compiler_static_works_GCJ=yes |
16759 | fi |
16760 | fi |
16761 | $rm conftest* |
16762 | LDFLAGS="$save_LDFLAGS" |
16763 | |
16764 | fi |
dd184caf |
16765 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16766 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16767 | |
16768 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16769 | : |
16770 | else |
16771 | lt_prog_compiler_static_GCJ= |
16772 | fi |
16773 | |
16774 | |
dd184caf |
16775 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16776 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16777 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16779 | else |
16780 | lt_cv_prog_compiler_c_o_GCJ=no |
16781 | $rm -r conftest 2>/dev/null |
16782 | mkdir conftest |
16783 | cd conftest |
16784 | mkdir out |
ac40fd9e |
16785 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16786 | |
16787 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16788 | # Insert the option either (1) after the last *FLAGS variable, or |
16789 | # (2) before a word containing "conftest.", or (3) at the end. |
16790 | # Note that $ac_compile itself does not contain backslashes and begins |
16791 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16792 | lt_compile=`echo "$ac_compile" | $SED \ |
16793 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16794 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16795 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16796 | (eval echo "\"\$as_me:16796: $lt_compile\"" >&5) |
d9898ee8 |
16797 | (eval "$lt_compile" 2>out/conftest.err) |
16798 | ac_status=$? |
16799 | cat out/conftest.err >&5 |
ac40fd9e |
16800 | echo "$as_me:16800: \$? = $ac_status" >&5 |
d9898ee8 |
16801 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16802 | then |
16803 | # The compiler can only warn and ignore the option if not recognized |
16804 | # So say no if there are warnings |
16805 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16806 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16807 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16808 | lt_cv_prog_compiler_c_o_GCJ=yes |
16809 | fi |
16810 | fi |
16811 | chmod u+w . 2>&5 |
16812 | $rm conftest* |
16813 | # SGI C++ compiler will create directory out/ii_files/ for |
16814 | # template instantiation |
16815 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16816 | $rm out/* && rmdir out |
16817 | cd .. |
16818 | rmdir conftest |
16819 | $rm conftest* |
16820 | |
16821 | fi |
dd184caf |
16822 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16823 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16824 | |
16825 | |
16826 | hard_links="nottested" |
16827 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16828 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
16829 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16830 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16831 | hard_links=yes |
16832 | $rm conftest* |
16833 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16834 | touch conftest.a |
16835 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16836 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
16837 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16838 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16839 | if test "$hard_links" = no; then |
16840 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16841 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16842 | need_locks=warn |
16843 | fi |
16844 | else |
16845 | need_locks=no |
16846 | fi |
16847 | |
dd184caf |
16848 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16849 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16850 | |
16851 | runpath_var= |
16852 | allow_undefined_flag_GCJ= |
16853 | enable_shared_with_static_runtimes_GCJ=no |
16854 | archive_cmds_GCJ= |
16855 | archive_expsym_cmds_GCJ= |
16856 | old_archive_From_new_cmds_GCJ= |
16857 | old_archive_from_expsyms_cmds_GCJ= |
16858 | export_dynamic_flag_spec_GCJ= |
16859 | whole_archive_flag_spec_GCJ= |
16860 | thread_safe_flag_spec_GCJ= |
16861 | hardcode_libdir_flag_spec_GCJ= |
16862 | hardcode_libdir_flag_spec_ld_GCJ= |
16863 | hardcode_libdir_separator_GCJ= |
16864 | hardcode_direct_GCJ=no |
16865 | hardcode_minus_L_GCJ=no |
16866 | hardcode_shlibpath_var_GCJ=unsupported |
16867 | link_all_deplibs_GCJ=unknown |
16868 | hardcode_automatic_GCJ=no |
16869 | module_cmds_GCJ= |
16870 | module_expsym_cmds_GCJ= |
16871 | always_export_symbols_GCJ=no |
16872 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16873 | # include_expsyms should be a list of space-separated symbols to be *always* |
16874 | # included in the symbol list |
16875 | include_expsyms_GCJ= |
16876 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16877 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16878 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16879 | # as well as any symbol that contains `d'. |
16880 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16881 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16882 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16883 | # the symbol is explicitly referenced. Since portable code cannot |
16884 | # rely on this symbol name, it's probably fine to never include it in |
16885 | # preloaded symbol tables. |
16886 | extract_expsyms_cmds= |
16887 | # Just being paranoid about ensuring that cc_basename is set. |
16888 | for cc_temp in $compiler""; do |
16889 | case $cc_temp in |
16890 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16891 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16892 | \-*) ;; |
16893 | *) break;; |
16894 | esac |
16895 | done |
16896 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16897 | |
16898 | case $host_os in |
16899 | cygwin* | mingw* | pw32*) |
16900 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16901 | # When not using gcc, we currently assume that we are using |
16902 | # Microsoft Visual C++. |
16903 | if test "$GCC" != yes; then |
16904 | with_gnu_ld=no |
16905 | fi |
16906 | ;; |
16907 | interix*) |
16908 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16909 | with_gnu_ld=yes |
16910 | ;; |
16911 | openbsd*) |
16912 | with_gnu_ld=no |
16913 | ;; |
16914 | esac |
16915 | |
16916 | ld_shlibs_GCJ=yes |
16917 | if test "$with_gnu_ld" = yes; then |
16918 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16919 | wlarc='${wl}' |
16920 | |
16921 | # Set some defaults for GNU ld with shared library support. These |
16922 | # are reset later if shared libraries are not supported. Putting them |
16923 | # here allows them to be overridden if necessary. |
16924 | runpath_var=LD_RUN_PATH |
16925 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16926 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16927 | # ancient GNU ld didn't support --whole-archive et. al. |
16928 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16929 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16930 | else |
16931 | whole_archive_flag_spec_GCJ= |
16932 | fi |
16933 | supports_anon_versioning=no |
16934 | case `$LD -v 2>/dev/null` in |
16935 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16936 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16937 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16938 | *\ 2.11.*) ;; # other 2.11 versions |
16939 | *) supports_anon_versioning=yes ;; |
16940 | esac |
16941 | |
16942 | # See if GNU ld supports shared libraries. |
16943 | case $host_os in |
16944 | aix3* | aix4* | aix5*) |
16945 | # On AIX/PPC, the GNU linker is very broken |
16946 | if test "$host_cpu" != ia64; then |
16947 | ld_shlibs_GCJ=no |
16948 | cat <<EOF 1>&2 |
16949 | |
16950 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16951 | *** to be unable to reliably create shared libraries on AIX. |
16952 | *** Therefore, libtool is disabling shared libraries support. If you |
16953 | *** really care for shared libraries, you may want to modify your PATH |
16954 | *** so that a non-GNU linker is found, and then restart. |
16955 | |
16956 | EOF |
16957 | fi |
16958 | ;; |
16959 | |
16960 | amigaos*) |
16961 | 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)' |
16962 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16963 | hardcode_minus_L_GCJ=yes |
16964 | |
16965 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16966 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16967 | # to version 4, is to share data among multiple programs linked |
16968 | # with the same dynamic library. Since this doesn't match the |
16969 | # behavior of shared libraries on other platforms, we can't use |
16970 | # them. |
16971 | ld_shlibs_GCJ=no |
16972 | ;; |
16973 | |
16974 | beos*) |
16975 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16976 | allow_undefined_flag_GCJ=unsupported |
16977 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16978 | # support --undefined. This deserves some investigation. FIXME |
16979 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16980 | else |
16981 | ld_shlibs_GCJ=no |
16982 | fi |
16983 | ;; |
16984 | |
16985 | cygwin* | mingw* | pw32*) |
16986 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16987 | # as there is no search path for DLLs. |
16988 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16989 | allow_undefined_flag_GCJ=unsupported |
16990 | always_export_symbols_GCJ=no |
16991 | enable_shared_with_static_runtimes_GCJ=yes |
ac40fd9e |
16992 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
16993 | |
16994 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16995 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16996 | # If the export-symbols file already is a .def file (1st line |
16997 | # is EXPORTS), use it as is; otherwise, prepend... |
16998 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16999 | cp $export_symbols $output_objdir/$soname.def; |
17000 | else |
17001 | echo EXPORTS > $output_objdir/$soname.def; |
17002 | cat $export_symbols >> $output_objdir/$soname.def; |
17003 | fi~ |
17004 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17005 | else |
17006 | ld_shlibs_GCJ=no |
17007 | fi |
17008 | ;; |
17009 | |
ac40fd9e |
17010 | interix[3-9]*) |
d9898ee8 |
17011 | hardcode_direct_GCJ=no |
17012 | hardcode_shlibpath_var_GCJ=no |
17013 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17014 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17015 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
17016 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
17017 | # default) and relocated if they conflict, which is a slow very memory |
17018 | # consuming and fragmenting process. To avoid this, we pick a random, |
17019 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
17020 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
17021 | 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' |
17022 | 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' |
17023 | ;; |
17024 | |
ac40fd9e |
17025 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
17026 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17027 | tmp_addflag= |
17028 | case $cc_basename,$host_cpu in |
17029 | pgcc*) # Portland Group C compiler |
17030 | 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' |
17031 | tmp_addflag=' $pic_flag' |
17032 | ;; |
17033 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17034 | 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' |
17035 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17036 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17037 | tmp_addflag=' -i_dynamic' ;; |
17038 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17039 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17040 | ifc* | ifort*) # Intel Fortran compiler |
17041 | tmp_addflag=' -nofor_main' ;; |
17042 | esac |
ac40fd9e |
17043 | case `$CC -V 2>&1 | sed 5q` in |
17044 | *Sun\ C*) # Sun C 5.9 |
17045 | 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' |
17046 | tmp_sharedflag='-G' ;; |
17047 | *Sun\ F*) # Sun Fortran 8.3 |
17048 | tmp_sharedflag='-G' ;; |
17049 | *) |
17050 | tmp_sharedflag='-shared' ;; |
17051 | esac |
17052 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
17053 | |
17054 | if test $supports_anon_versioning = yes; then |
17055 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17056 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17057 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
17058 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
17059 | fi |
17060 | else |
17061 | ld_shlibs_GCJ=no |
17062 | fi |
17063 | ;; |
17064 | |
17065 | netbsd*) |
17066 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17067 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17068 | wlarc= |
17069 | else |
17070 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17071 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17072 | fi |
17073 | ;; |
17074 | |
17075 | solaris*) |
17076 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17077 | ld_shlibs_GCJ=no |
17078 | cat <<EOF 1>&2 |
17079 | |
17080 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17081 | *** create shared libraries on Solaris systems. Therefore, libtool |
17082 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17083 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17084 | *** your PATH or compiler configuration so that the native linker is |
17085 | *** used, and then restart. |
17086 | |
17087 | EOF |
17088 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17089 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17090 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17091 | else |
17092 | ld_shlibs_GCJ=no |
17093 | fi |
17094 | ;; |
17095 | |
17096 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17097 | case `$LD -v 2>&1` in |
17098 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17099 | ld_shlibs_GCJ=no |
17100 | cat <<_LT_EOF 1>&2 |
17101 | |
17102 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17103 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17104 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17105 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17106 | *** your PATH or compiler configuration so that the native linker is |
17107 | *** used, and then restart. |
17108 | |
17109 | _LT_EOF |
17110 | ;; |
17111 | *) |
17112 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17113 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17114 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17115 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17116 | else |
17117 | ld_shlibs_GCJ=no |
17118 | fi |
17119 | ;; |
17120 | esac |
17121 | ;; |
17122 | |
17123 | sunos4*) |
17124 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17125 | wlarc= |
17126 | hardcode_direct_GCJ=yes |
17127 | hardcode_shlibpath_var_GCJ=no |
17128 | ;; |
17129 | |
17130 | *) |
17131 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17132 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17133 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17134 | else |
17135 | ld_shlibs_GCJ=no |
17136 | fi |
17137 | ;; |
17138 | esac |
17139 | |
17140 | if test "$ld_shlibs_GCJ" = no; then |
17141 | runpath_var= |
17142 | hardcode_libdir_flag_spec_GCJ= |
17143 | export_dynamic_flag_spec_GCJ= |
17144 | whole_archive_flag_spec_GCJ= |
17145 | fi |
17146 | else |
17147 | # PORTME fill in a description of your system's linker (not GNU ld) |
17148 | case $host_os in |
17149 | aix3*) |
17150 | allow_undefined_flag_GCJ=unsupported |
17151 | always_export_symbols_GCJ=yes |
17152 | 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' |
17153 | # Note: this linker hardcodes the directories in LIBPATH if there |
17154 | # are no directories specified by -L. |
17155 | hardcode_minus_L_GCJ=yes |
17156 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17157 | # Neither direct hardcoding nor static linking is supported with a |
17158 | # broken collect2. |
17159 | hardcode_direct_GCJ=unsupported |
17160 | fi |
17161 | ;; |
17162 | |
17163 | aix4* | aix5*) |
17164 | if test "$host_cpu" = ia64; then |
17165 | # On IA64, the linker does run time linking by default, so we don't |
17166 | # have to do anything special. |
17167 | aix_use_runtimelinking=no |
17168 | exp_sym_flag='-Bexport' |
17169 | no_entry_flag="" |
17170 | else |
17171 | # If we're using GNU nm, then we don't want the "-C" option. |
17172 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17173 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17174 | 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' |
17175 | else |
17176 | 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' |
17177 | fi |
17178 | aix_use_runtimelinking=no |
17179 | |
17180 | # Test if we are trying to use run time linking or normal |
17181 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17182 | # need to do runtime linking. |
17183 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17184 | for ld_flag in $LDFLAGS; do |
17185 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17186 | aix_use_runtimelinking=yes |
17187 | break |
17188 | fi |
17189 | done |
17190 | ;; |
17191 | esac |
17192 | |
17193 | exp_sym_flag='-bexport' |
17194 | no_entry_flag='-bnoentry' |
17195 | fi |
17196 | |
17197 | # When large executables or shared objects are built, AIX ld can |
17198 | # have problems creating the table of contents. If linking a library |
17199 | # or program results in "error TOC overflow" add -mminimal-toc to |
17200 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17201 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17202 | |
17203 | archive_cmds_GCJ='' |
17204 | hardcode_direct_GCJ=yes |
17205 | hardcode_libdir_separator_GCJ=':' |
17206 | link_all_deplibs_GCJ=yes |
17207 | |
17208 | if test "$GCC" = yes; then |
17209 | case $host_os in aix4.[012]|aix4.[012].*) |
17210 | # We only want to do this on AIX 4.2 and lower, the check |
17211 | # below for broken collect2 doesn't work under 4.3+ |
17212 | collect2name=`${CC} -print-prog-name=collect2` |
17213 | if test -f "$collect2name" && \ |
17214 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17215 | then |
17216 | # We have reworked collect2 |
ac40fd9e |
17217 | : |
d9898ee8 |
17218 | else |
17219 | # We have old collect2 |
17220 | hardcode_direct_GCJ=unsupported |
17221 | # It fails to find uninstalled libraries when the uninstalled |
17222 | # path is not listed in the libpath. Setting hardcode_minus_L |
17223 | # to unsupported forces relinking |
17224 | hardcode_minus_L_GCJ=yes |
17225 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17226 | hardcode_libdir_separator_GCJ= |
17227 | fi |
17228 | ;; |
17229 | esac |
17230 | shared_flag='-shared' |
17231 | if test "$aix_use_runtimelinking" = yes; then |
17232 | shared_flag="$shared_flag "'${wl}-G' |
17233 | fi |
17234 | else |
17235 | # not using gcc |
17236 | if test "$host_cpu" = ia64; then |
17237 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17238 | # chokes on -Wl,-G. The following line is correct: |
17239 | shared_flag='-G' |
17240 | else |
17241 | if test "$aix_use_runtimelinking" = yes; then |
17242 | shared_flag='${wl}-G' |
17243 | else |
17244 | shared_flag='${wl}-bM:SRE' |
17245 | fi |
17246 | fi |
17247 | fi |
17248 | |
17249 | # It seems that -bexpall does not export symbols beginning with |
17250 | # underscore (_), so it is better to generate a list of symbols to export. |
17251 | always_export_symbols_GCJ=yes |
17252 | if test "$aix_use_runtimelinking" = yes; then |
17253 | # Warning - without using the other runtime loading flags (-brtl), |
17254 | # -berok will link without error, but may produce a broken library. |
17255 | allow_undefined_flag_GCJ='-berok' |
17256 | # Determine the default libpath from the value encoded in an empty executable. |
17257 | cat >conftest.$ac_ext <<_ACEOF |
17258 | /* confdefs.h. */ |
17259 | _ACEOF |
17260 | cat confdefs.h >>conftest.$ac_ext |
17261 | cat >>conftest.$ac_ext <<_ACEOF |
17262 | /* end confdefs.h. */ |
17263 | |
17264 | int |
17265 | main () |
17266 | { |
17267 | |
17268 | ; |
17269 | return 0; |
17270 | } |
17271 | _ACEOF |
17272 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17273 | if { (ac_try="$ac_link" |
17274 | case "(($ac_try" in |
17275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17276 | *) ac_try_echo=$ac_try;; |
17277 | esac |
17278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17279 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17280 | ac_status=$? |
17281 | grep -v '^ *+' conftest.er1 >conftest.err |
17282 | rm -f conftest.er1 |
17283 | cat conftest.err >&5 |
17284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17285 | (exit $ac_status); } && { |
17286 | test -z "$ac_c_werror_flag" || |
17287 | test ! -s conftest.err |
17288 | } && test -s conftest$ac_exeext && |
17289 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17290 | |
ac40fd9e |
17291 | lt_aix_libpath_sed=' |
17292 | /Import File Strings/,/^$/ { |
17293 | /^0/ { |
17294 | s/^0 *\(.*\)$/\1/ |
17295 | p |
17296 | } |
17297 | }' |
17298 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
17299 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
17300 | if test -z "$aix_libpath"; then |
17301 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17302 | fi |
d9898ee8 |
17303 | else |
17304 | echo "$as_me: failed program was:" >&5 |
17305 | sed 's/^/| /' conftest.$ac_ext >&5 |
17306 | |
dd184caf |
17307 | |
d9898ee8 |
17308 | fi |
dd184caf |
17309 | |
17310 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17311 | conftest$ac_exeext conftest.$ac_ext |
17312 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17313 | |
17314 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17315 | 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" |
17316 | else |
17317 | if test "$host_cpu" = ia64; then |
17318 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17319 | allow_undefined_flag_GCJ="-z nodefs" |
17320 | 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" |
17321 | else |
17322 | # Determine the default libpath from the value encoded in an empty executable. |
17323 | cat >conftest.$ac_ext <<_ACEOF |
17324 | /* confdefs.h. */ |
17325 | _ACEOF |
17326 | cat confdefs.h >>conftest.$ac_ext |
17327 | cat >>conftest.$ac_ext <<_ACEOF |
17328 | /* end confdefs.h. */ |
17329 | |
17330 | int |
17331 | main () |
17332 | { |
17333 | |
17334 | ; |
17335 | return 0; |
17336 | } |
17337 | _ACEOF |
17338 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17339 | if { (ac_try="$ac_link" |
17340 | case "(($ac_try" in |
17341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17342 | *) ac_try_echo=$ac_try;; |
17343 | esac |
17344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17345 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17346 | ac_status=$? |
17347 | grep -v '^ *+' conftest.er1 >conftest.err |
17348 | rm -f conftest.er1 |
17349 | cat conftest.err >&5 |
17350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17351 | (exit $ac_status); } && { |
17352 | test -z "$ac_c_werror_flag" || |
17353 | test ! -s conftest.err |
17354 | } && test -s conftest$ac_exeext && |
17355 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17356 | |
ac40fd9e |
17357 | lt_aix_libpath_sed=' |
17358 | /Import File Strings/,/^$/ { |
17359 | /^0/ { |
17360 | s/^0 *\(.*\)$/\1/ |
17361 | p |
17362 | } |
17363 | }' |
17364 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
17365 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
17366 | if test -z "$aix_libpath"; then |
17367 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17368 | fi |
d9898ee8 |
17369 | else |
17370 | echo "$as_me: failed program was:" >&5 |
17371 | sed 's/^/| /' conftest.$ac_ext >&5 |
17372 | |
dd184caf |
17373 | |
d9898ee8 |
17374 | fi |
dd184caf |
17375 | |
17376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17377 | conftest$ac_exeext conftest.$ac_ext |
17378 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17379 | |
17380 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17381 | # Warning - without using the other run time loading flags, |
17382 | # -berok will link without error, but may produce a broken library. |
17383 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17384 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17385 | # Exported symbols can be pulled into shared objects from archives |
17386 | whole_archive_flag_spec_GCJ='$convenience' |
17387 | archive_cmds_need_lc_GCJ=yes |
17388 | # This is similar to how AIX traditionally builds its shared libraries. |
17389 | 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' |
17390 | fi |
17391 | fi |
17392 | ;; |
17393 | |
17394 | amigaos*) |
17395 | 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)' |
17396 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17397 | hardcode_minus_L_GCJ=yes |
17398 | # see comment about different semantics on the GNU ld section |
17399 | ld_shlibs_GCJ=no |
17400 | ;; |
17401 | |
17402 | bsdi[45]*) |
17403 | export_dynamic_flag_spec_GCJ=-rdynamic |
17404 | ;; |
17405 | |
17406 | cygwin* | mingw* | pw32*) |
17407 | # When not using gcc, we currently assume that we are using |
17408 | # Microsoft Visual C++. |
17409 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17410 | # no search path for DLLs. |
17411 | hardcode_libdir_flag_spec_GCJ=' ' |
17412 | allow_undefined_flag_GCJ=unsupported |
17413 | # Tell ltmain to make .lib files, not .a files. |
17414 | libext=lib |
17415 | # Tell ltmain to make .dll files, not .so files. |
17416 | shrext_cmds=".dll" |
17417 | # FIXME: Setting linknames here is a bad hack. |
17418 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17419 | # The linker will automatically build a .lib file if we build a DLL. |
17420 | old_archive_From_new_cmds_GCJ='true' |
17421 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
17422 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
17423 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17424 | enable_shared_with_static_runtimes_GCJ=yes |
17425 | ;; |
17426 | |
17427 | darwin* | rhapsody*) |
17428 | case $host_os in |
17429 | rhapsody* | darwin1.[012]) |
17430 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17431 | ;; |
17432 | *) # Darwin 1.3 on |
17433 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17434 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17435 | else |
17436 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17437 | 10.[012]) |
17438 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17439 | ;; |
17440 | 10.*) |
17441 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17442 | ;; |
17443 | esac |
17444 | fi |
17445 | ;; |
17446 | esac |
17447 | archive_cmds_need_lc_GCJ=no |
17448 | hardcode_direct_GCJ=no |
17449 | hardcode_automatic_GCJ=yes |
17450 | hardcode_shlibpath_var_GCJ=unsupported |
17451 | whole_archive_flag_spec_GCJ='' |
17452 | link_all_deplibs_GCJ=yes |
17453 | if test "$GCC" = yes ; then |
17454 | output_verbose_link_cmd='echo' |
17455 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17456 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17457 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17458 | 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}' |
17459 | 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}' |
17460 | else |
17461 | case $cc_basename in |
17462 | xlc*) |
17463 | output_verbose_link_cmd='echo' |
ac40fd9e |
17464 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
17465 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17466 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
17467 | 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 |
17468 | 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}' |
17469 | ;; |
17470 | *) |
17471 | ld_shlibs_GCJ=no |
17472 | ;; |
17473 | esac |
17474 | fi |
17475 | ;; |
17476 | |
17477 | dgux*) |
17478 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17479 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17480 | hardcode_shlibpath_var_GCJ=no |
17481 | ;; |
17482 | |
17483 | freebsd1*) |
17484 | ld_shlibs_GCJ=no |
17485 | ;; |
17486 | |
17487 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17488 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17489 | # does not break anything, and helps significantly (at the cost of a little |
17490 | # extra space). |
17491 | freebsd2.2*) |
17492 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17493 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17494 | hardcode_direct_GCJ=yes |
17495 | hardcode_shlibpath_var_GCJ=no |
17496 | ;; |
17497 | |
17498 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17499 | freebsd2*) |
17500 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17501 | hardcode_direct_GCJ=yes |
17502 | hardcode_minus_L_GCJ=yes |
17503 | hardcode_shlibpath_var_GCJ=no |
17504 | ;; |
17505 | |
17506 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
17507 | freebsd* | dragonfly*) |
d9898ee8 |
17508 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17509 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17510 | hardcode_direct_GCJ=yes |
17511 | hardcode_shlibpath_var_GCJ=no |
17512 | ;; |
17513 | |
17514 | hpux9*) |
17515 | if test "$GCC" = yes; then |
17516 | 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' |
17517 | else |
17518 | 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' |
17519 | fi |
17520 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17521 | hardcode_libdir_separator_GCJ=: |
17522 | hardcode_direct_GCJ=yes |
17523 | |
17524 | # hardcode_minus_L: Not really in the search PATH, |
17525 | # but as the default location of the library. |
17526 | hardcode_minus_L_GCJ=yes |
17527 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17528 | ;; |
17529 | |
17530 | hpux10*) |
17531 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17532 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17533 | else |
17534 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17535 | fi |
17536 | if test "$with_gnu_ld" = no; then |
17537 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17538 | hardcode_libdir_separator_GCJ=: |
17539 | |
17540 | hardcode_direct_GCJ=yes |
17541 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17542 | |
17543 | # hardcode_minus_L: Not really in the search PATH, |
17544 | # but as the default location of the library. |
17545 | hardcode_minus_L_GCJ=yes |
17546 | fi |
17547 | ;; |
17548 | |
17549 | hpux11*) |
17550 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17551 | case $host_cpu in |
17552 | hppa*64*) |
17553 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17554 | ;; |
17555 | ia64*) |
17556 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17557 | ;; |
17558 | *) |
17559 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17560 | ;; |
17561 | esac |
17562 | else |
17563 | case $host_cpu in |
17564 | hppa*64*) |
17565 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17566 | ;; |
17567 | ia64*) |
17568 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17569 | ;; |
17570 | *) |
17571 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17572 | ;; |
17573 | esac |
17574 | fi |
17575 | if test "$with_gnu_ld" = no; then |
17576 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17577 | hardcode_libdir_separator_GCJ=: |
17578 | |
17579 | case $host_cpu in |
17580 | hppa*64*|ia64*) |
17581 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17582 | hardcode_direct_GCJ=no |
17583 | hardcode_shlibpath_var_GCJ=no |
17584 | ;; |
17585 | *) |
17586 | hardcode_direct_GCJ=yes |
17587 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17588 | |
17589 | # hardcode_minus_L: Not really in the search PATH, |
17590 | # but as the default location of the library. |
17591 | hardcode_minus_L_GCJ=yes |
17592 | ;; |
17593 | esac |
17594 | fi |
17595 | ;; |
17596 | |
17597 | irix5* | irix6* | nonstopux*) |
17598 | if test "$GCC" = yes; then |
17599 | 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' |
17600 | else |
17601 | 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' |
17602 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17603 | fi |
17604 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17605 | hardcode_libdir_separator_GCJ=: |
17606 | link_all_deplibs_GCJ=yes |
17607 | ;; |
17608 | |
17609 | netbsd*) |
17610 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17611 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17612 | else |
17613 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17614 | fi |
17615 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17616 | hardcode_direct_GCJ=yes |
17617 | hardcode_shlibpath_var_GCJ=no |
17618 | ;; |
17619 | |
17620 | newsos6) |
17621 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17622 | hardcode_direct_GCJ=yes |
17623 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17624 | hardcode_libdir_separator_GCJ=: |
17625 | hardcode_shlibpath_var_GCJ=no |
17626 | ;; |
17627 | |
17628 | openbsd*) |
ac40fd9e |
17629 | if test -f /usr/libexec/ld.so; then |
17630 | hardcode_direct_GCJ=yes |
17631 | hardcode_shlibpath_var_GCJ=no |
17632 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17633 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17634 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17635 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17636 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17637 | else |
17638 | case $host_os in |
17639 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17640 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17641 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17642 | ;; |
17643 | *) |
17644 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17645 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17646 | ;; |
17647 | esac |
17648 | fi |
d9898ee8 |
17649 | else |
ac40fd9e |
17650 | ld_shlibs_GCJ=no |
d9898ee8 |
17651 | fi |
17652 | ;; |
17653 | |
17654 | os2*) |
17655 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17656 | hardcode_minus_L_GCJ=yes |
17657 | allow_undefined_flag_GCJ=unsupported |
17658 | 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' |
17659 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17660 | ;; |
17661 | |
17662 | osf3*) |
17663 | if test "$GCC" = yes; then |
17664 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17665 | 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' |
17666 | else |
17667 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17668 | 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' |
17669 | fi |
17670 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17671 | hardcode_libdir_separator_GCJ=: |
17672 | ;; |
17673 | |
17674 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17675 | if test "$GCC" = yes; then |
17676 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17677 | 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' |
17678 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17679 | else |
17680 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17681 | 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' |
17682 | 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~ |
17683 | $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' |
17684 | |
17685 | # Both c and cxx compiler support -rpath directly |
17686 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17687 | fi |
17688 | hardcode_libdir_separator_GCJ=: |
17689 | ;; |
17690 | |
17691 | solaris*) |
17692 | no_undefined_flag_GCJ=' -z text' |
17693 | if test "$GCC" = yes; then |
17694 | wlarc='${wl}' |
17695 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17696 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17697 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17698 | else |
17699 | wlarc='' |
17700 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17701 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17702 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17703 | fi |
17704 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17705 | hardcode_shlibpath_var_GCJ=no |
17706 | case $host_os in |
17707 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17708 | *) |
ac40fd9e |
17709 | # The compiler driver will combine and reorder linker options, |
17710 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
17711 | # but is careful enough not to reorder. |
d9898ee8 |
17712 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
17713 | if test "$GCC" = yes; then |
17714 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
17715 | else |
17716 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' |
17717 | fi |
17718 | ;; |
d9898ee8 |
17719 | esac |
17720 | link_all_deplibs_GCJ=yes |
17721 | ;; |
17722 | |
17723 | sunos4*) |
17724 | if test "x$host_vendor" = xsequent; then |
17725 | # Use $CC to link under sequent, because it throws in some extra .o |
17726 | # files that make .init and .fini sections work. |
17727 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17728 | else |
17729 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17730 | fi |
17731 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17732 | hardcode_direct_GCJ=yes |
17733 | hardcode_minus_L_GCJ=yes |
17734 | hardcode_shlibpath_var_GCJ=no |
17735 | ;; |
17736 | |
17737 | sysv4) |
17738 | case $host_vendor in |
17739 | sni) |
17740 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17741 | hardcode_direct_GCJ=yes # is this really true??? |
17742 | ;; |
17743 | siemens) |
17744 | ## LD is ld it makes a PLAMLIB |
17745 | ## CC just makes a GrossModule. |
17746 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17747 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17748 | hardcode_direct_GCJ=no |
17749 | ;; |
17750 | motorola) |
17751 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17752 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17753 | ;; |
17754 | esac |
17755 | runpath_var='LD_RUN_PATH' |
17756 | hardcode_shlibpath_var_GCJ=no |
17757 | ;; |
17758 | |
17759 | sysv4.3*) |
17760 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17761 | hardcode_shlibpath_var_GCJ=no |
17762 | export_dynamic_flag_spec_GCJ='-Bexport' |
17763 | ;; |
17764 | |
17765 | sysv4*MP*) |
17766 | if test -d /usr/nec; then |
17767 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17768 | hardcode_shlibpath_var_GCJ=no |
17769 | runpath_var=LD_RUN_PATH |
17770 | hardcode_runpath_var=yes |
17771 | ld_shlibs_GCJ=yes |
17772 | fi |
17773 | ;; |
17774 | |
ac40fd9e |
17775 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
17776 | no_undefined_flag_GCJ='${wl}-z,text' |
17777 | archive_cmds_need_lc_GCJ=no |
17778 | hardcode_shlibpath_var_GCJ=no |
17779 | runpath_var='LD_RUN_PATH' |
17780 | |
17781 | if test "$GCC" = yes; then |
17782 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17783 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17784 | else |
17785 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17786 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17787 | fi |
17788 | ;; |
17789 | |
17790 | sysv5* | sco3.2v5* | sco5v6*) |
17791 | # Note: We can NOT use -z defs as we might desire, because we do not |
17792 | # link with -lc, and that would cause any symbols used from libc to |
17793 | # always be unresolved, which means just about no library would |
17794 | # ever link correctly. If we're not using GNU ld we use -z text |
17795 | # though, which does catch some bad symbols but isn't as heavy-handed |
17796 | # as -z defs. |
17797 | no_undefined_flag_GCJ='${wl}-z,text' |
17798 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17799 | archive_cmds_need_lc_GCJ=no |
17800 | hardcode_shlibpath_var_GCJ=no |
17801 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17802 | hardcode_libdir_separator_GCJ=':' |
17803 | link_all_deplibs_GCJ=yes |
17804 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17805 | runpath_var='LD_RUN_PATH' |
17806 | |
17807 | if test "$GCC" = yes; then |
17808 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17809 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17810 | else |
17811 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17812 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17813 | fi |
17814 | ;; |
17815 | |
17816 | uts4*) |
17817 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17818 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17819 | hardcode_shlibpath_var_GCJ=no |
17820 | ;; |
17821 | |
17822 | *) |
17823 | ld_shlibs_GCJ=no |
17824 | ;; |
17825 | esac |
17826 | fi |
17827 | |
dd184caf |
17828 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17829 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17830 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17831 | |
17832 | # |
17833 | # Do we need to explicitly link libc? |
17834 | # |
17835 | case "x$archive_cmds_need_lc_GCJ" in |
17836 | x|xyes) |
17837 | # Assume -lc should be added |
17838 | archive_cmds_need_lc_GCJ=yes |
17839 | |
17840 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17841 | case $archive_cmds_GCJ in |
17842 | *'~'*) |
17843 | # FIXME: we may have to deal with multi-command sequences. |
17844 | ;; |
17845 | '$CC '*) |
17846 | # Test whether the compiler implicitly links with -lc since on some |
17847 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17848 | # to ld, don't add -lc before -lgcc. |
dd184caf |
17849 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17850 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17851 | $rm conftest* |
ac40fd9e |
17852 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
17853 | |
17854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17855 | (eval $ac_compile) 2>&5 |
17856 | ac_status=$? |
17857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17858 | (exit $ac_status); } 2>conftest.err; then |
17859 | soname=conftest |
17860 | lib=conftest |
17861 | libobjs=conftest.$ac_objext |
17862 | deplibs= |
17863 | wl=$lt_prog_compiler_wl_GCJ |
17864 | pic_flag=$lt_prog_compiler_pic_GCJ |
17865 | compiler_flags=-v |
17866 | linker_flags=-v |
17867 | verstring= |
17868 | output_objdir=. |
17869 | libname=conftest |
17870 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17871 | allow_undefined_flag_GCJ= |
17872 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17873 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17874 | ac_status=$? |
17875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17876 | (exit $ac_status); } |
17877 | then |
17878 | archive_cmds_need_lc_GCJ=no |
17879 | else |
17880 | archive_cmds_need_lc_GCJ=yes |
17881 | fi |
17882 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17883 | else |
17884 | cat conftest.err 1>&5 |
17885 | fi |
17886 | $rm conftest* |
dd184caf |
17887 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17888 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17889 | ;; |
17890 | esac |
17891 | fi |
17892 | ;; |
17893 | esac |
17894 | |
dd184caf |
17895 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17896 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17897 | library_names_spec= |
17898 | libname_spec='lib$name' |
17899 | soname_spec= |
17900 | shrext_cmds=".so" |
17901 | postinstall_cmds= |
17902 | postuninstall_cmds= |
17903 | finish_cmds= |
17904 | finish_eval= |
17905 | shlibpath_var= |
17906 | shlibpath_overrides_runpath=unknown |
17907 | version_type=none |
17908 | dynamic_linker="$host_os ld.so" |
17909 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
17910 | |
d9898ee8 |
17911 | need_lib_prefix=unknown |
17912 | hardcode_into_libs=no |
17913 | |
17914 | # when you set need_version to no, make sure it does not cause -set_version |
17915 | # flags to be left without arguments |
17916 | need_version=unknown |
17917 | |
17918 | case $host_os in |
17919 | aix3*) |
17920 | version_type=linux |
17921 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17922 | shlibpath_var=LIBPATH |
17923 | |
17924 | # AIX 3 has no versioning support, so we append a major version to the name. |
17925 | soname_spec='${libname}${release}${shared_ext}$major' |
17926 | ;; |
17927 | |
17928 | aix4* | aix5*) |
17929 | version_type=linux |
17930 | need_lib_prefix=no |
17931 | need_version=no |
17932 | hardcode_into_libs=yes |
17933 | if test "$host_cpu" = ia64; then |
17934 | # AIX 5 supports IA64 |
17935 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17936 | shlibpath_var=LD_LIBRARY_PATH |
17937 | else |
17938 | # With GCC up to 2.95.x, collect2 would create an import file |
17939 | # for dependence libraries. The import file would start with |
17940 | # the line `#! .'. This would cause the generated library to |
17941 | # depend on `.', always an invalid library. This was fixed in |
17942 | # development snapshots of GCC prior to 3.0. |
17943 | case $host_os in |
17944 | aix4 | aix4.[01] | aix4.[01].*) |
17945 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17946 | echo ' yes ' |
17947 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17948 | : |
17949 | else |
17950 | can_build_shared=no |
17951 | fi |
17952 | ;; |
17953 | esac |
17954 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17955 | # soname into executable. Probably we can add versioning support to |
17956 | # collect2, so additional links can be useful in future. |
17957 | if test "$aix_use_runtimelinking" = yes; then |
17958 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17959 | # instead of lib<name>.a to let people know that these are not |
17960 | # typical AIX shared libraries. |
17961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17962 | else |
17963 | # We preserve .a as extension for shared libraries through AIX4.2 |
17964 | # and later when we are not doing run time linking. |
17965 | library_names_spec='${libname}${release}.a $libname.a' |
17966 | soname_spec='${libname}${release}${shared_ext}$major' |
17967 | fi |
17968 | shlibpath_var=LIBPATH |
17969 | fi |
17970 | ;; |
17971 | |
17972 | amigaos*) |
17973 | library_names_spec='$libname.ixlibrary $libname.a' |
17974 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17975 | 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' |
17976 | ;; |
17977 | |
17978 | beos*) |
17979 | library_names_spec='${libname}${shared_ext}' |
17980 | dynamic_linker="$host_os ld.so" |
17981 | shlibpath_var=LIBRARY_PATH |
17982 | ;; |
17983 | |
17984 | bsdi[45]*) |
17985 | version_type=linux |
17986 | need_version=no |
17987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17988 | soname_spec='${libname}${release}${shared_ext}$major' |
17989 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17990 | shlibpath_var=LD_LIBRARY_PATH |
17991 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17992 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17993 | # the default ld.so.conf also contains /usr/contrib/lib and |
17994 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17995 | # libtool to hard-code these into programs |
17996 | ;; |
17997 | |
17998 | cygwin* | mingw* | pw32*) |
17999 | version_type=windows |
18000 | shrext_cmds=".dll" |
18001 | need_version=no |
18002 | need_lib_prefix=no |
18003 | |
18004 | case $GCC,$host_os in |
18005 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18006 | library_names_spec='$libname.dll.a' |
18007 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18008 | postinstall_cmds='base_file=`basename \${file}`~ |
18009 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18010 | dldir=$destdir/`dirname \$dlpath`~ |
18011 | test -d \$dldir || mkdir -p \$dldir~ |
18012 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18013 | chmod a+x \$dldir/$dlname' |
18014 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18015 | dlpath=$dir/\$dldll~ |
18016 | $rm \$dlpath' |
18017 | shlibpath_overrides_runpath=yes |
18018 | |
18019 | case $host_os in |
18020 | cygwin*) |
18021 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18022 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18023 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18024 | ;; |
18025 | mingw*) |
18026 | # MinGW DLLs use traditional 'lib' prefix |
18027 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18028 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18029 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18030 | # It is most probably a Windows format PATH printed by |
18031 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18032 | # path with ; separators, and with drive letters. We can handle the |
18033 | # drive letters (cygwin fileutils understands them), so leave them, |
18034 | # especially as we might pass files found there to a mingw objdump, |
18035 | # which wouldn't understand a cygwinified path. Ahh. |
18036 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18037 | else |
18038 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18039 | fi |
18040 | ;; |
18041 | pw32*) |
18042 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18043 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18044 | ;; |
18045 | esac |
18046 | ;; |
18047 | |
18048 | *) |
18049 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18050 | ;; |
18051 | esac |
18052 | dynamic_linker='Win32 ld.exe' |
18053 | # FIXME: first we should search . and the directory the executable is in |
18054 | shlibpath_var=PATH |
18055 | ;; |
18056 | |
18057 | darwin* | rhapsody*) |
18058 | dynamic_linker="$host_os dyld" |
18059 | version_type=darwin |
18060 | need_lib_prefix=no |
18061 | need_version=no |
18062 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18063 | soname_spec='${libname}${release}${major}$shared_ext' |
18064 | shlibpath_overrides_runpath=yes |
18065 | shlibpath_var=DYLD_LIBRARY_PATH |
18066 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
18067 | |
d9898ee8 |
18068 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18069 | ;; |
18070 | |
18071 | dgux*) |
18072 | version_type=linux |
18073 | need_lib_prefix=no |
18074 | need_version=no |
18075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18076 | soname_spec='${libname}${release}${shared_ext}$major' |
18077 | shlibpath_var=LD_LIBRARY_PATH |
18078 | ;; |
18079 | |
18080 | freebsd1*) |
18081 | dynamic_linker=no |
18082 | ;; |
18083 | |
d9898ee8 |
18084 | freebsd* | dragonfly*) |
18085 | # DragonFly does not have aout. When/if they implement a new |
18086 | # versioning mechanism, adjust this. |
18087 | if test -x /usr/bin/objformat; then |
18088 | objformat=`/usr/bin/objformat` |
18089 | else |
18090 | case $host_os in |
18091 | freebsd[123]*) objformat=aout ;; |
18092 | *) objformat=elf ;; |
18093 | esac |
18094 | fi |
18095 | version_type=freebsd-$objformat |
18096 | case $version_type in |
18097 | freebsd-elf*) |
18098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18099 | need_version=no |
18100 | need_lib_prefix=no |
18101 | ;; |
18102 | freebsd-*) |
18103 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18104 | need_version=yes |
18105 | ;; |
18106 | esac |
18107 | shlibpath_var=LD_LIBRARY_PATH |
18108 | case $host_os in |
18109 | freebsd2*) |
18110 | shlibpath_overrides_runpath=yes |
18111 | ;; |
18112 | freebsd3.[01]* | freebsdelf3.[01]*) |
18113 | shlibpath_overrides_runpath=yes |
18114 | hardcode_into_libs=yes |
18115 | ;; |
18116 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18117 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18118 | shlibpath_overrides_runpath=no |
18119 | hardcode_into_libs=yes |
18120 | ;; |
ac40fd9e |
18121 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
18122 | shlibpath_overrides_runpath=yes |
18123 | hardcode_into_libs=yes |
18124 | ;; |
18125 | esac |
18126 | ;; |
18127 | |
18128 | gnu*) |
18129 | version_type=linux |
18130 | need_lib_prefix=no |
18131 | need_version=no |
18132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18133 | soname_spec='${libname}${release}${shared_ext}$major' |
18134 | shlibpath_var=LD_LIBRARY_PATH |
18135 | hardcode_into_libs=yes |
18136 | ;; |
18137 | |
18138 | hpux9* | hpux10* | hpux11*) |
18139 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18140 | # link against other versions. |
18141 | version_type=sunos |
18142 | need_lib_prefix=no |
18143 | need_version=no |
18144 | case $host_cpu in |
18145 | ia64*) |
18146 | shrext_cmds='.so' |
18147 | hardcode_into_libs=yes |
18148 | dynamic_linker="$host_os dld.so" |
18149 | shlibpath_var=LD_LIBRARY_PATH |
18150 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18152 | soname_spec='${libname}${release}${shared_ext}$major' |
18153 | if test "X$HPUX_IA64_MODE" = X32; then |
18154 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18155 | else |
18156 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18157 | fi |
18158 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18159 | ;; |
18160 | hppa*64*) |
18161 | shrext_cmds='.sl' |
18162 | hardcode_into_libs=yes |
18163 | dynamic_linker="$host_os dld.sl" |
18164 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18165 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18167 | soname_spec='${libname}${release}${shared_ext}$major' |
18168 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18169 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18170 | ;; |
18171 | *) |
18172 | shrext_cmds='.sl' |
18173 | dynamic_linker="$host_os dld.sl" |
18174 | shlibpath_var=SHLIB_PATH |
18175 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18177 | soname_spec='${libname}${release}${shared_ext}$major' |
18178 | ;; |
18179 | esac |
18180 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18181 | postinstall_cmds='chmod 555 $lib' |
18182 | ;; |
18183 | |
ac40fd9e |
18184 | interix[3-9]*) |
d9898ee8 |
18185 | version_type=linux |
18186 | need_lib_prefix=no |
18187 | need_version=no |
18188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18189 | soname_spec='${libname}${release}${shared_ext}$major' |
18190 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18191 | shlibpath_var=LD_LIBRARY_PATH |
18192 | shlibpath_overrides_runpath=no |
18193 | hardcode_into_libs=yes |
18194 | ;; |
18195 | |
18196 | irix5* | irix6* | nonstopux*) |
18197 | case $host_os in |
18198 | nonstopux*) version_type=nonstopux ;; |
18199 | *) |
18200 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18201 | version_type=linux |
18202 | else |
18203 | version_type=irix |
18204 | fi ;; |
18205 | esac |
18206 | need_lib_prefix=no |
18207 | need_version=no |
18208 | soname_spec='${libname}${release}${shared_ext}$major' |
18209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18210 | case $host_os in |
18211 | irix5* | nonstopux*) |
18212 | libsuff= shlibsuff= |
18213 | ;; |
18214 | *) |
18215 | case $LD in # libtool.m4 will add one of these switches to LD |
18216 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18217 | libsuff= shlibsuff= libmagic=32-bit;; |
18218 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18219 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18220 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18221 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18222 | *) libsuff= shlibsuff= libmagic=never-match;; |
18223 | esac |
18224 | ;; |
18225 | esac |
18226 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18227 | shlibpath_overrides_runpath=no |
18228 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18229 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18230 | hardcode_into_libs=yes |
18231 | ;; |
18232 | |
18233 | # No shared lib support for Linux oldld, aout, or coff. |
18234 | linux*oldld* | linux*aout* | linux*coff*) |
18235 | dynamic_linker=no |
18236 | ;; |
18237 | |
18238 | # This must be Linux ELF. |
ac40fd9e |
18239 | linux* | k*bsd*-gnu) |
d9898ee8 |
18240 | version_type=linux |
18241 | need_lib_prefix=no |
18242 | need_version=no |
18243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18244 | soname_spec='${libname}${release}${shared_ext}$major' |
18245 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18246 | shlibpath_var=LD_LIBRARY_PATH |
18247 | shlibpath_overrides_runpath=no |
18248 | # This implies no fast_install, which is unacceptable. |
18249 | # Some rework will be needed to allow for fast_install |
18250 | # before this can be enabled. |
18251 | hardcode_into_libs=yes |
ac40fd9e |
18252 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18253 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
18254 | |
18255 | # Append ld.so.conf contents to the search path |
18256 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
18257 | 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' ' '` |
18258 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
18259 | fi |
18260 | |
18261 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18262 | # powerpc, because MkLinux only supported shared libraries with the |
18263 | # GNU dynamic linker. Since this was broken with cross compilers, |
18264 | # most powerpc-linux boxes support dynamic linking these days and |
18265 | # people can always --disable-shared, the test was removed, and we |
18266 | # assume the GNU/Linux dynamic linker is in use. |
18267 | dynamic_linker='GNU/Linux ld.so' |
18268 | ;; |
18269 | |
d9898ee8 |
18270 | netbsd*) |
18271 | version_type=sunos |
18272 | need_lib_prefix=no |
18273 | need_version=no |
18274 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18277 | dynamic_linker='NetBSD (a.out) ld.so' |
18278 | else |
18279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18280 | soname_spec='${libname}${release}${shared_ext}$major' |
18281 | dynamic_linker='NetBSD ld.elf_so' |
18282 | fi |
18283 | shlibpath_var=LD_LIBRARY_PATH |
18284 | shlibpath_overrides_runpath=yes |
18285 | hardcode_into_libs=yes |
18286 | ;; |
18287 | |
18288 | newsos6) |
18289 | version_type=linux |
18290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18291 | shlibpath_var=LD_LIBRARY_PATH |
18292 | shlibpath_overrides_runpath=yes |
18293 | ;; |
18294 | |
18295 | nto-qnx*) |
18296 | version_type=linux |
18297 | need_lib_prefix=no |
18298 | need_version=no |
18299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18300 | soname_spec='${libname}${release}${shared_ext}$major' |
18301 | shlibpath_var=LD_LIBRARY_PATH |
18302 | shlibpath_overrides_runpath=yes |
18303 | ;; |
18304 | |
18305 | openbsd*) |
18306 | version_type=sunos |
18307 | sys_lib_dlsearch_path_spec="/usr/lib" |
18308 | need_lib_prefix=no |
18309 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18310 | case $host_os in |
18311 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18312 | *) need_version=no ;; |
18313 | esac |
18314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18315 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18316 | shlibpath_var=LD_LIBRARY_PATH |
18317 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18318 | case $host_os in |
18319 | openbsd2.[89] | openbsd2.[89].*) |
18320 | shlibpath_overrides_runpath=no |
18321 | ;; |
18322 | *) |
18323 | shlibpath_overrides_runpath=yes |
18324 | ;; |
18325 | esac |
18326 | else |
18327 | shlibpath_overrides_runpath=yes |
18328 | fi |
18329 | ;; |
18330 | |
18331 | os2*) |
18332 | libname_spec='$name' |
18333 | shrext_cmds=".dll" |
18334 | need_lib_prefix=no |
18335 | library_names_spec='$libname${shared_ext} $libname.a' |
18336 | dynamic_linker='OS/2 ld.exe' |
18337 | shlibpath_var=LIBPATH |
18338 | ;; |
18339 | |
18340 | osf3* | osf4* | osf5*) |
18341 | version_type=osf |
18342 | need_lib_prefix=no |
18343 | need_version=no |
18344 | soname_spec='${libname}${release}${shared_ext}$major' |
18345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18346 | shlibpath_var=LD_LIBRARY_PATH |
18347 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18348 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18349 | ;; |
18350 | |
ac40fd9e |
18351 | rdos*) |
18352 | dynamic_linker=no |
18353 | ;; |
18354 | |
d9898ee8 |
18355 | solaris*) |
18356 | version_type=linux |
18357 | need_lib_prefix=no |
18358 | need_version=no |
18359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18360 | soname_spec='${libname}${release}${shared_ext}$major' |
18361 | shlibpath_var=LD_LIBRARY_PATH |
18362 | shlibpath_overrides_runpath=yes |
18363 | hardcode_into_libs=yes |
18364 | # ldd complains unless libraries are executable |
18365 | postinstall_cmds='chmod +x $lib' |
18366 | ;; |
18367 | |
18368 | sunos4*) |
18369 | version_type=sunos |
18370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18371 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18372 | shlibpath_var=LD_LIBRARY_PATH |
18373 | shlibpath_overrides_runpath=yes |
18374 | if test "$with_gnu_ld" = yes; then |
18375 | need_lib_prefix=no |
18376 | fi |
18377 | need_version=yes |
18378 | ;; |
18379 | |
18380 | sysv4 | sysv4.3*) |
18381 | version_type=linux |
18382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18383 | soname_spec='${libname}${release}${shared_ext}$major' |
18384 | shlibpath_var=LD_LIBRARY_PATH |
18385 | case $host_vendor in |
18386 | sni) |
18387 | shlibpath_overrides_runpath=no |
18388 | need_lib_prefix=no |
18389 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18390 | runpath_var=LD_RUN_PATH |
18391 | ;; |
18392 | siemens) |
18393 | need_lib_prefix=no |
18394 | ;; |
18395 | motorola) |
18396 | need_lib_prefix=no |
18397 | need_version=no |
18398 | shlibpath_overrides_runpath=no |
18399 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18400 | ;; |
18401 | esac |
18402 | ;; |
18403 | |
18404 | sysv4*MP*) |
18405 | if test -d /usr/nec ;then |
18406 | version_type=linux |
18407 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18408 | soname_spec='$libname${shared_ext}.$major' |
18409 | shlibpath_var=LD_LIBRARY_PATH |
18410 | fi |
18411 | ;; |
18412 | |
18413 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18414 | version_type=freebsd-elf |
18415 | need_lib_prefix=no |
18416 | need_version=no |
18417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18418 | soname_spec='${libname}${release}${shared_ext}$major' |
18419 | shlibpath_var=LD_LIBRARY_PATH |
18420 | hardcode_into_libs=yes |
18421 | if test "$with_gnu_ld" = yes; then |
18422 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18423 | shlibpath_overrides_runpath=no |
18424 | else |
18425 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18426 | shlibpath_overrides_runpath=yes |
18427 | case $host_os in |
18428 | sco3.2v5*) |
18429 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18430 | ;; |
18431 | esac |
18432 | fi |
18433 | sys_lib_dlsearch_path_spec='/usr/lib' |
18434 | ;; |
18435 | |
18436 | uts4*) |
18437 | version_type=linux |
18438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18439 | soname_spec='${libname}${release}${shared_ext}$major' |
18440 | shlibpath_var=LD_LIBRARY_PATH |
18441 | ;; |
18442 | |
18443 | *) |
18444 | dynamic_linker=no |
18445 | ;; |
18446 | esac |
dd184caf |
18447 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18448 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18449 | test "$dynamic_linker" = no && can_build_shared=no |
18450 | |
18451 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18452 | if test "$GCC" = yes; then |
18453 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18454 | fi |
18455 | |
dd184caf |
18456 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18457 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18458 | hardcode_action_GCJ= |
18459 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18460 | test -n "$runpath_var_GCJ" || \ |
18461 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18462 | |
18463 | # We can hardcode non-existant directories. |
18464 | if test "$hardcode_direct_GCJ" != no && |
18465 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18466 | # have to relink, otherwise we might link with an installed library |
18467 | # when we should be linking with a yet-to-be-installed one |
18468 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18469 | test "$hardcode_minus_L_GCJ" != no; then |
18470 | # Linking always hardcodes the temporary library directory. |
18471 | hardcode_action_GCJ=relink |
18472 | else |
18473 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18474 | hardcode_action_GCJ=immediate |
18475 | fi |
18476 | else |
18477 | # We cannot hardcode anything, or else we can only hardcode existing |
18478 | # directories. |
18479 | hardcode_action_GCJ=unsupported |
18480 | fi |
dd184caf |
18481 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18482 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18483 | |
18484 | if test "$hardcode_action_GCJ" = relink; then |
18485 | # Fast installation is not supported |
18486 | enable_fast_install=no |
18487 | elif test "$shlibpath_overrides_runpath" = yes || |
18488 | test "$enable_shared" = no; then |
18489 | # Fast installation is not necessary |
18490 | enable_fast_install=needless |
18491 | fi |
18492 | |
18493 | |
18494 | # The else clause should only fire when bootstrapping the |
18495 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18496 | # with your package, and you will get complaints that there are |
18497 | # no rules to generate ltmain.sh. |
18498 | if test -f "$ltmain"; then |
18499 | # See if we are running on zsh, and set the options which allow our commands through |
18500 | # without removal of \ escapes. |
18501 | if test -n "${ZSH_VERSION+set}" ; then |
18502 | setopt NO_GLOB_SUBST |
18503 | fi |
18504 | # Now quote all the things that may contain metacharacters while being |
18505 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18506 | # variables and quote the copies for generation of the libtool script. |
18507 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18508 | SED SHELL STRIP \ |
18509 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18510 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18511 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18512 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18513 | lt_cv_sys_global_symbol_to_c_name_address \ |
18514 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18515 | old_postinstall_cmds old_postuninstall_cmds \ |
18516 | compiler_GCJ \ |
18517 | CC_GCJ \ |
18518 | LD_GCJ \ |
18519 | lt_prog_compiler_wl_GCJ \ |
18520 | lt_prog_compiler_pic_GCJ \ |
18521 | lt_prog_compiler_static_GCJ \ |
18522 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18523 | export_dynamic_flag_spec_GCJ \ |
18524 | thread_safe_flag_spec_GCJ \ |
18525 | whole_archive_flag_spec_GCJ \ |
18526 | enable_shared_with_static_runtimes_GCJ \ |
18527 | old_archive_cmds_GCJ \ |
18528 | old_archive_from_new_cmds_GCJ \ |
18529 | predep_objects_GCJ \ |
18530 | postdep_objects_GCJ \ |
18531 | predeps_GCJ \ |
18532 | postdeps_GCJ \ |
18533 | compiler_lib_search_path_GCJ \ |
18534 | archive_cmds_GCJ \ |
18535 | archive_expsym_cmds_GCJ \ |
18536 | postinstall_cmds_GCJ \ |
18537 | postuninstall_cmds_GCJ \ |
18538 | old_archive_from_expsyms_cmds_GCJ \ |
18539 | allow_undefined_flag_GCJ \ |
18540 | no_undefined_flag_GCJ \ |
18541 | export_symbols_cmds_GCJ \ |
18542 | hardcode_libdir_flag_spec_GCJ \ |
18543 | hardcode_libdir_flag_spec_ld_GCJ \ |
18544 | hardcode_libdir_separator_GCJ \ |
18545 | hardcode_automatic_GCJ \ |
18546 | module_cmds_GCJ \ |
18547 | module_expsym_cmds_GCJ \ |
18548 | lt_cv_prog_compiler_c_o_GCJ \ |
ac40fd9e |
18549 | fix_srcfile_path_GCJ \ |
d9898ee8 |
18550 | exclude_expsyms_GCJ \ |
18551 | include_expsyms_GCJ; do |
18552 | |
18553 | case $var in |
18554 | old_archive_cmds_GCJ | \ |
18555 | old_archive_from_new_cmds_GCJ | \ |
18556 | archive_cmds_GCJ | \ |
18557 | archive_expsym_cmds_GCJ | \ |
18558 | module_cmds_GCJ | \ |
18559 | module_expsym_cmds_GCJ | \ |
18560 | old_archive_from_expsyms_cmds_GCJ | \ |
18561 | export_symbols_cmds_GCJ | \ |
18562 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18563 | postinstall_cmds | postuninstall_cmds | \ |
18564 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18565 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18566 | # Double-quote double-evaled strings. |
18567 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18568 | ;; |
18569 | *) |
18570 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18571 | ;; |
18572 | esac |
18573 | done |
18574 | |
18575 | case $lt_echo in |
18576 | *'\$0 --fallback-echo"') |
18577 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18578 | ;; |
18579 | esac |
18580 | |
18581 | cfgfile="$ofile" |
18582 | |
18583 | cat <<__EOF__ >> "$cfgfile" |
18584 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18585 | |
18586 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18587 | |
18588 | # Shell to use when invoking shell scripts. |
18589 | SHELL=$lt_SHELL |
18590 | |
18591 | # Whether or not to build shared libraries. |
18592 | build_libtool_libs=$enable_shared |
18593 | |
18594 | # Whether or not to build static libraries. |
18595 | build_old_libs=$enable_static |
18596 | |
18597 | # Whether or not to add -lc for building shared libraries. |
18598 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18599 | |
18600 | # Whether or not to disallow shared libs when runtime libs are static |
18601 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18602 | |
18603 | # Whether or not to optimize for fast installation. |
18604 | fast_install=$enable_fast_install |
18605 | |
18606 | # The host system. |
18607 | host_alias=$host_alias |
18608 | host=$host |
18609 | host_os=$host_os |
18610 | |
18611 | # The build system. |
18612 | build_alias=$build_alias |
18613 | build=$build |
18614 | build_os=$build_os |
18615 | |
18616 | # An echo program that does not interpret backslashes. |
18617 | echo=$lt_echo |
18618 | |
18619 | # The archiver. |
18620 | AR=$lt_AR |
18621 | AR_FLAGS=$lt_AR_FLAGS |
18622 | |
18623 | # A C compiler. |
18624 | LTCC=$lt_LTCC |
18625 | |
18626 | # LTCC compiler flags. |
18627 | LTCFLAGS=$lt_LTCFLAGS |
18628 | |
18629 | # A language-specific compiler. |
18630 | CC=$lt_compiler_GCJ |
18631 | |
18632 | # Is the compiler the GNU C compiler? |
18633 | with_gcc=$GCC_GCJ |
18634 | |
d9898ee8 |
18635 | # An ERE matcher. |
18636 | EGREP=$lt_EGREP |
18637 | |
18638 | # The linker used to build libraries. |
18639 | LD=$lt_LD_GCJ |
18640 | |
18641 | # Whether we need hard or soft links. |
18642 | LN_S=$lt_LN_S |
18643 | |
18644 | # A BSD-compatible nm program. |
18645 | NM=$lt_NM |
18646 | |
18647 | # A symbol stripping program |
18648 | STRIP=$lt_STRIP |
18649 | |
18650 | # Used to examine libraries when file_magic_cmd begins "file" |
18651 | MAGIC_CMD=$MAGIC_CMD |
18652 | |
18653 | # Used on cygwin: DLL creation program. |
18654 | DLLTOOL="$DLLTOOL" |
18655 | |
18656 | # Used on cygwin: object dumper. |
18657 | OBJDUMP="$OBJDUMP" |
18658 | |
18659 | # Used on cygwin: assembler. |
18660 | AS="$AS" |
18661 | |
18662 | # The name of the directory that contains temporary libtool files. |
18663 | objdir=$objdir |
18664 | |
18665 | # How to create reloadable object files. |
18666 | reload_flag=$lt_reload_flag |
18667 | reload_cmds=$lt_reload_cmds |
18668 | |
18669 | # How to pass a linker flag through the compiler. |
18670 | wl=$lt_lt_prog_compiler_wl_GCJ |
18671 | |
18672 | # Object file suffix (normally "o"). |
18673 | objext="$ac_objext" |
18674 | |
18675 | # Old archive suffix (normally "a"). |
18676 | libext="$libext" |
18677 | |
18678 | # Shared library suffix (normally ".so"). |
18679 | shrext_cmds='$shrext_cmds' |
18680 | |
18681 | # Executable file suffix (normally ""). |
18682 | exeext="$exeext" |
18683 | |
18684 | # Additional compiler flags for building library objects. |
18685 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18686 | pic_mode=$pic_mode |
18687 | |
18688 | # What is the maximum length of a command? |
18689 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18690 | |
18691 | # Does compiler simultaneously support -c and -o options? |
18692 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18693 | |
18694 | # Must we lock files when doing compilation? |
18695 | need_locks=$lt_need_locks |
18696 | |
18697 | # Do we need the lib prefix for modules? |
18698 | need_lib_prefix=$need_lib_prefix |
18699 | |
18700 | # Do we need a version for libraries? |
18701 | need_version=$need_version |
18702 | |
18703 | # Whether dlopen is supported. |
18704 | dlopen_support=$enable_dlopen |
18705 | |
18706 | # Whether dlopen of programs is supported. |
18707 | dlopen_self=$enable_dlopen_self |
18708 | |
18709 | # Whether dlopen of statically linked programs is supported. |
18710 | dlopen_self_static=$enable_dlopen_self_static |
18711 | |
18712 | # Compiler flag to prevent dynamic linking. |
18713 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18714 | |
18715 | # Compiler flag to turn off builtin functions. |
18716 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18717 | |
18718 | # Compiler flag to allow reflexive dlopens. |
18719 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18720 | |
18721 | # Compiler flag to generate shared objects directly from archives. |
18722 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18723 | |
18724 | # Compiler flag to generate thread-safe objects. |
18725 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18726 | |
18727 | # Library versioning type. |
18728 | version_type=$version_type |
18729 | |
18730 | # Format of library name prefix. |
18731 | libname_spec=$lt_libname_spec |
18732 | |
18733 | # List of archive names. First name is the real one, the rest are links. |
18734 | # The last name is the one that the linker finds with -lNAME. |
18735 | library_names_spec=$lt_library_names_spec |
18736 | |
18737 | # The coded name of the library, if different from the real name. |
18738 | soname_spec=$lt_soname_spec |
18739 | |
18740 | # Commands used to build and install an old-style archive. |
18741 | RANLIB=$lt_RANLIB |
18742 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18743 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18744 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18745 | |
18746 | # Create an old-style archive from a shared archive. |
18747 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18748 | |
18749 | # Create a temporary old-style archive to link instead of a shared archive. |
18750 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18751 | |
18752 | # Commands used to build and install a shared archive. |
18753 | archive_cmds=$lt_archive_cmds_GCJ |
18754 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18755 | postinstall_cmds=$lt_postinstall_cmds |
18756 | postuninstall_cmds=$lt_postuninstall_cmds |
18757 | |
18758 | # Commands used to build a loadable module (assumed same as above if empty) |
18759 | module_cmds=$lt_module_cmds_GCJ |
18760 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18761 | |
18762 | # Commands to strip libraries. |
18763 | old_striplib=$lt_old_striplib |
18764 | striplib=$lt_striplib |
18765 | |
18766 | # Dependencies to place before the objects being linked to create a |
18767 | # shared library. |
dd184caf |
18768 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18769 | |
18770 | # Dependencies to place after the objects being linked to create a |
18771 | # shared library. |
dd184caf |
18772 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18773 | |
18774 | # Dependencies to place before the objects being linked to create a |
18775 | # shared library. |
18776 | predeps=$lt_predeps_GCJ |
18777 | |
18778 | # Dependencies to place after the objects being linked to create a |
18779 | # shared library. |
18780 | postdeps=$lt_postdeps_GCJ |
18781 | |
18782 | # The library search path used internally by the compiler when linking |
18783 | # a shared library. |
dd184caf |
18784 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18785 | |
18786 | # Method to check whether dependent libraries are shared objects. |
18787 | deplibs_check_method=$lt_deplibs_check_method |
18788 | |
18789 | # Command to use when deplibs_check_method == file_magic. |
18790 | file_magic_cmd=$lt_file_magic_cmd |
18791 | |
18792 | # Flag that allows shared libraries with undefined symbols to be built. |
18793 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18794 | |
18795 | # Flag that forces no undefined symbols. |
18796 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18797 | |
18798 | # Commands used to finish a libtool library installation in a directory. |
18799 | finish_cmds=$lt_finish_cmds |
18800 | |
18801 | # Same as above, but a single script fragment to be evaled but not shown. |
18802 | finish_eval=$lt_finish_eval |
18803 | |
18804 | # Take the output of nm and produce a listing of raw symbols and C names. |
18805 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18806 | |
18807 | # Transform the output of nm in a proper C declaration |
18808 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18809 | |
18810 | # Transform the output of nm in a C name address pair |
18811 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18812 | |
18813 | # This is the shared library runtime path variable. |
18814 | runpath_var=$runpath_var |
18815 | |
18816 | # This is the shared library path variable. |
18817 | shlibpath_var=$shlibpath_var |
18818 | |
18819 | # Is shlibpath searched before the hard-coded library search path? |
18820 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18821 | |
18822 | # How to hardcode a shared library path into an executable. |
18823 | hardcode_action=$hardcode_action_GCJ |
18824 | |
18825 | # Whether we should hardcode library paths into libraries. |
18826 | hardcode_into_libs=$hardcode_into_libs |
18827 | |
18828 | # Flag to hardcode \$libdir into a binary during linking. |
18829 | # This must work even if \$libdir does not exist. |
18830 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18831 | |
18832 | # If ld is used when linking, flag to hardcode \$libdir into |
18833 | # a binary during linking. This must work even if \$libdir does |
18834 | # not exist. |
18835 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18836 | |
18837 | # Whether we need a single -rpath flag with a separated argument. |
18838 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18839 | |
18840 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18841 | # resulting binary. |
18842 | hardcode_direct=$hardcode_direct_GCJ |
18843 | |
18844 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18845 | # resulting binary. |
18846 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18847 | |
18848 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18849 | # the resulting binary. |
18850 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18851 | |
18852 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18853 | # and all subsequent libraries and executables linked against it. |
18854 | hardcode_automatic=$hardcode_automatic_GCJ |
18855 | |
18856 | # Variables whose values should be saved in libtool wrapper scripts and |
18857 | # restored at relink time. |
18858 | variables_saved_for_relink="$variables_saved_for_relink" |
18859 | |
18860 | # Whether libtool must link a program against all its dependency libraries. |
18861 | link_all_deplibs=$link_all_deplibs_GCJ |
18862 | |
18863 | # Compile-time system search path for libraries |
dd184caf |
18864 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18865 | |
18866 | # Run-time system search path for libraries |
18867 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18868 | |
18869 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
18870 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
18871 | |
18872 | # Set to yes if exported symbols are required. |
18873 | always_export_symbols=$always_export_symbols_GCJ |
18874 | |
18875 | # The commands to list exported symbols. |
18876 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18877 | |
18878 | # The commands to extract the exported symbol list from a shared archive. |
18879 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18880 | |
18881 | # Symbols that should not be listed in the preloaded symbols. |
18882 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18883 | |
18884 | # Symbols that must always be exported. |
18885 | include_expsyms=$lt_include_expsyms_GCJ |
18886 | |
18887 | # ### END LIBTOOL TAG CONFIG: $tagname |
18888 | |
18889 | __EOF__ |
18890 | |
18891 | |
18892 | else |
18893 | # If there is no Makefile yet, we rely on a make rule to execute |
18894 | # `config.status --recheck' to rerun these tests and create the |
18895 | # libtool script then. |
18896 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18897 | if test -f "$ltmain_in"; then |
18898 | test -f Makefile && make "$ltmain" |
18899 | fi |
18900 | fi |
18901 | |
18902 | |
18903 | ac_ext=c |
18904 | ac_cpp='$CPP $CPPFLAGS' |
18905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18908 | |
18909 | CC="$lt_save_CC" |
18910 | |
18911 | else |
18912 | tagname="" |
18913 | fi |
18914 | ;; |
18915 | |
18916 | RC) |
18917 | |
18918 | |
d9898ee8 |
18919 | # Source file extension for RC test sources. |
18920 | ac_ext=rc |
18921 | |
18922 | # Object file extension for compiled RC test sources. |
18923 | objext=o |
18924 | objext_RC=$objext |
18925 | |
18926 | # Code to be used in simple compile tests |
ac40fd9e |
18927 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
d9898ee8 |
18928 | |
18929 | # Code to be used in simple link tests |
18930 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18931 | |
18932 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18933 | |
18934 | # If no C compiler was specified, use CC. |
18935 | LTCC=${LTCC-"$CC"} |
18936 | |
18937 | # If no C compiler flags were specified, use CFLAGS. |
18938 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18939 | |
18940 | # Allow CC to be a program name with arguments. |
18941 | compiler=$CC |
18942 | |
18943 | |
18944 | # save warnings/boilerplate of simple test code |
18945 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
18946 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
18947 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18948 | _lt_compiler_boilerplate=`cat conftest.err` |
18949 | $rm conftest* |
18950 | |
18951 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
18952 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
18953 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18954 | _lt_linker_boilerplate=`cat conftest.err` |
18955 | $rm conftest* |
18956 | |
18957 | |
18958 | # Allow CC to be a program name with arguments. |
18959 | lt_save_CC="$CC" |
18960 | CC=${RC-"windres"} |
18961 | compiler=$CC |
18962 | compiler_RC=$CC |
18963 | for cc_temp in $compiler""; do |
18964 | case $cc_temp in |
18965 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18966 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18967 | \-*) ;; |
18968 | *) break;; |
18969 | esac |
18970 | done |
18971 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18972 | |
18973 | lt_cv_prog_compiler_c_o_RC=yes |
18974 | |
18975 | # The else clause should only fire when bootstrapping the |
18976 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18977 | # with your package, and you will get complaints that there are |
18978 | # no rules to generate ltmain.sh. |
18979 | if test -f "$ltmain"; then |
18980 | # See if we are running on zsh, and set the options which allow our commands through |
18981 | # without removal of \ escapes. |
18982 | if test -n "${ZSH_VERSION+set}" ; then |
18983 | setopt NO_GLOB_SUBST |
18984 | fi |
18985 | # Now quote all the things that may contain metacharacters while being |
18986 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18987 | # variables and quote the copies for generation of the libtool script. |
18988 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18989 | SED SHELL STRIP \ |
18990 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18991 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18992 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18993 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18994 | lt_cv_sys_global_symbol_to_c_name_address \ |
18995 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18996 | old_postinstall_cmds old_postuninstall_cmds \ |
18997 | compiler_RC \ |
18998 | CC_RC \ |
18999 | LD_RC \ |
19000 | lt_prog_compiler_wl_RC \ |
19001 | lt_prog_compiler_pic_RC \ |
19002 | lt_prog_compiler_static_RC \ |
19003 | lt_prog_compiler_no_builtin_flag_RC \ |
19004 | export_dynamic_flag_spec_RC \ |
19005 | thread_safe_flag_spec_RC \ |
19006 | whole_archive_flag_spec_RC \ |
19007 | enable_shared_with_static_runtimes_RC \ |
19008 | old_archive_cmds_RC \ |
19009 | old_archive_from_new_cmds_RC \ |
19010 | predep_objects_RC \ |
19011 | postdep_objects_RC \ |
19012 | predeps_RC \ |
19013 | postdeps_RC \ |
19014 | compiler_lib_search_path_RC \ |
19015 | archive_cmds_RC \ |
19016 | archive_expsym_cmds_RC \ |
19017 | postinstall_cmds_RC \ |
19018 | postuninstall_cmds_RC \ |
19019 | old_archive_from_expsyms_cmds_RC \ |
19020 | allow_undefined_flag_RC \ |
19021 | no_undefined_flag_RC \ |
19022 | export_symbols_cmds_RC \ |
19023 | hardcode_libdir_flag_spec_RC \ |
19024 | hardcode_libdir_flag_spec_ld_RC \ |
19025 | hardcode_libdir_separator_RC \ |
19026 | hardcode_automatic_RC \ |
19027 | module_cmds_RC \ |
19028 | module_expsym_cmds_RC \ |
19029 | lt_cv_prog_compiler_c_o_RC \ |
ac40fd9e |
19030 | fix_srcfile_path_RC \ |
d9898ee8 |
19031 | exclude_expsyms_RC \ |
19032 | include_expsyms_RC; do |
19033 | |
19034 | case $var in |
19035 | old_archive_cmds_RC | \ |
19036 | old_archive_from_new_cmds_RC | \ |
19037 | archive_cmds_RC | \ |
19038 | archive_expsym_cmds_RC | \ |
19039 | module_cmds_RC | \ |
19040 | module_expsym_cmds_RC | \ |
19041 | old_archive_from_expsyms_cmds_RC | \ |
19042 | export_symbols_cmds_RC | \ |
19043 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19044 | postinstall_cmds | postuninstall_cmds | \ |
19045 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19046 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19047 | # Double-quote double-evaled strings. |
19048 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19049 | ;; |
19050 | *) |
19051 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19052 | ;; |
19053 | esac |
19054 | done |
19055 | |
19056 | case $lt_echo in |
19057 | *'\$0 --fallback-echo"') |
19058 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19059 | ;; |
19060 | esac |
19061 | |
19062 | cfgfile="$ofile" |
19063 | |
19064 | cat <<__EOF__ >> "$cfgfile" |
19065 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19066 | |
19067 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19068 | |
19069 | # Shell to use when invoking shell scripts. |
19070 | SHELL=$lt_SHELL |
19071 | |
19072 | # Whether or not to build shared libraries. |
19073 | build_libtool_libs=$enable_shared |
19074 | |
19075 | # Whether or not to build static libraries. |
19076 | build_old_libs=$enable_static |
19077 | |
19078 | # Whether or not to add -lc for building shared libraries. |
19079 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19080 | |
19081 | # Whether or not to disallow shared libs when runtime libs are static |
19082 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19083 | |
19084 | # Whether or not to optimize for fast installation. |
19085 | fast_install=$enable_fast_install |
19086 | |
19087 | # The host system. |
19088 | host_alias=$host_alias |
19089 | host=$host |
19090 | host_os=$host_os |
19091 | |
19092 | # The build system. |
19093 | build_alias=$build_alias |
19094 | build=$build |
19095 | build_os=$build_os |
19096 | |
19097 | # An echo program that does not interpret backslashes. |
19098 | echo=$lt_echo |
19099 | |
19100 | # The archiver. |
19101 | AR=$lt_AR |
19102 | AR_FLAGS=$lt_AR_FLAGS |
19103 | |
19104 | # A C compiler. |
19105 | LTCC=$lt_LTCC |
19106 | |
19107 | # LTCC compiler flags. |
19108 | LTCFLAGS=$lt_LTCFLAGS |
19109 | |
19110 | # A language-specific compiler. |
19111 | CC=$lt_compiler_RC |
19112 | |
19113 | # Is the compiler the GNU C compiler? |
19114 | with_gcc=$GCC_RC |
19115 | |
d9898ee8 |
19116 | # An ERE matcher. |
19117 | EGREP=$lt_EGREP |
19118 | |
19119 | # The linker used to build libraries. |
19120 | LD=$lt_LD_RC |
19121 | |
19122 | # Whether we need hard or soft links. |
19123 | LN_S=$lt_LN_S |
19124 | |
19125 | # A BSD-compatible nm program. |
19126 | NM=$lt_NM |
19127 | |
19128 | # A symbol stripping program |
19129 | STRIP=$lt_STRIP |
19130 | |
19131 | # Used to examine libraries when file_magic_cmd begins "file" |
19132 | MAGIC_CMD=$MAGIC_CMD |
19133 | |
19134 | # Used on cygwin: DLL creation program. |
19135 | DLLTOOL="$DLLTOOL" |
19136 | |
19137 | # Used on cygwin: object dumper. |
19138 | OBJDUMP="$OBJDUMP" |
19139 | |
19140 | # Used on cygwin: assembler. |
19141 | AS="$AS" |
19142 | |
19143 | # The name of the directory that contains temporary libtool files. |
19144 | objdir=$objdir |
19145 | |
19146 | # How to create reloadable object files. |
19147 | reload_flag=$lt_reload_flag |
19148 | reload_cmds=$lt_reload_cmds |
19149 | |
19150 | # How to pass a linker flag through the compiler. |
19151 | wl=$lt_lt_prog_compiler_wl_RC |
19152 | |
19153 | # Object file suffix (normally "o"). |
19154 | objext="$ac_objext" |
19155 | |
19156 | # Old archive suffix (normally "a"). |
19157 | libext="$libext" |
19158 | |
19159 | # Shared library suffix (normally ".so"). |
19160 | shrext_cmds='$shrext_cmds' |
19161 | |
19162 | # Executable file suffix (normally ""). |
19163 | exeext="$exeext" |
19164 | |
19165 | # Additional compiler flags for building library objects. |
19166 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19167 | pic_mode=$pic_mode |
19168 | |
19169 | # What is the maximum length of a command? |
19170 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19171 | |
19172 | # Does compiler simultaneously support -c and -o options? |
19173 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19174 | |
19175 | # Must we lock files when doing compilation? |
19176 | need_locks=$lt_need_locks |
19177 | |
19178 | # Do we need the lib prefix for modules? |
19179 | need_lib_prefix=$need_lib_prefix |
19180 | |
19181 | # Do we need a version for libraries? |
19182 | need_version=$need_version |
19183 | |
19184 | # Whether dlopen is supported. |
19185 | dlopen_support=$enable_dlopen |
19186 | |
19187 | # Whether dlopen of programs is supported. |
19188 | dlopen_self=$enable_dlopen_self |
19189 | |
19190 | # Whether dlopen of statically linked programs is supported. |
19191 | dlopen_self_static=$enable_dlopen_self_static |
19192 | |
19193 | # Compiler flag to prevent dynamic linking. |
19194 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19195 | |
19196 | # Compiler flag to turn off builtin functions. |
19197 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19198 | |
19199 | # Compiler flag to allow reflexive dlopens. |
19200 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19201 | |
19202 | # Compiler flag to generate shared objects directly from archives. |
19203 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19204 | |
19205 | # Compiler flag to generate thread-safe objects. |
19206 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19207 | |
19208 | # Library versioning type. |
19209 | version_type=$version_type |
19210 | |
19211 | # Format of library name prefix. |
19212 | libname_spec=$lt_libname_spec |
19213 | |
19214 | # List of archive names. First name is the real one, the rest are links. |
19215 | # The last name is the one that the linker finds with -lNAME. |
19216 | library_names_spec=$lt_library_names_spec |
19217 | |
19218 | # The coded name of the library, if different from the real name. |
19219 | soname_spec=$lt_soname_spec |
19220 | |
19221 | # Commands used to build and install an old-style archive. |
19222 | RANLIB=$lt_RANLIB |
19223 | old_archive_cmds=$lt_old_archive_cmds_RC |
19224 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19225 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19226 | |
19227 | # Create an old-style archive from a shared archive. |
19228 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19229 | |
19230 | # Create a temporary old-style archive to link instead of a shared archive. |
19231 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19232 | |
19233 | # Commands used to build and install a shared archive. |
19234 | archive_cmds=$lt_archive_cmds_RC |
19235 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19236 | postinstall_cmds=$lt_postinstall_cmds |
19237 | postuninstall_cmds=$lt_postuninstall_cmds |
19238 | |
19239 | # Commands used to build a loadable module (assumed same as above if empty) |
19240 | module_cmds=$lt_module_cmds_RC |
19241 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19242 | |
19243 | # Commands to strip libraries. |
19244 | old_striplib=$lt_old_striplib |
19245 | striplib=$lt_striplib |
19246 | |
19247 | # Dependencies to place before the objects being linked to create a |
19248 | # shared library. |
dd184caf |
19249 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19250 | |
19251 | # Dependencies to place after the objects being linked to create a |
19252 | # shared library. |
dd184caf |
19253 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19254 | |
19255 | # Dependencies to place before the objects being linked to create a |
19256 | # shared library. |
19257 | predeps=$lt_predeps_RC |
19258 | |
19259 | # Dependencies to place after the objects being linked to create a |
19260 | # shared library. |
19261 | postdeps=$lt_postdeps_RC |
19262 | |
19263 | # The library search path used internally by the compiler when linking |
19264 | # a shared library. |
dd184caf |
19265 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19266 | |
19267 | # Method to check whether dependent libraries are shared objects. |
19268 | deplibs_check_method=$lt_deplibs_check_method |
19269 | |
19270 | # Command to use when deplibs_check_method == file_magic. |
19271 | file_magic_cmd=$lt_file_magic_cmd |
19272 | |
19273 | # Flag that allows shared libraries with undefined symbols to be built. |
19274 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19275 | |
19276 | # Flag that forces no undefined symbols. |
19277 | no_undefined_flag=$lt_no_undefined_flag_RC |
19278 | |
19279 | # Commands used to finish a libtool library installation in a directory. |
19280 | finish_cmds=$lt_finish_cmds |
19281 | |
19282 | # Same as above, but a single script fragment to be evaled but not shown. |
19283 | finish_eval=$lt_finish_eval |
19284 | |
19285 | # Take the output of nm and produce a listing of raw symbols and C names. |
19286 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19287 | |
19288 | # Transform the output of nm in a proper C declaration |
19289 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19290 | |
19291 | # Transform the output of nm in a C name address pair |
19292 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19293 | |
19294 | # This is the shared library runtime path variable. |
19295 | runpath_var=$runpath_var |
19296 | |
19297 | # This is the shared library path variable. |
19298 | shlibpath_var=$shlibpath_var |
19299 | |
19300 | # Is shlibpath searched before the hard-coded library search path? |
19301 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19302 | |
19303 | # How to hardcode a shared library path into an executable. |
19304 | hardcode_action=$hardcode_action_RC |
19305 | |
19306 | # Whether we should hardcode library paths into libraries. |
19307 | hardcode_into_libs=$hardcode_into_libs |
19308 | |
19309 | # Flag to hardcode \$libdir into a binary during linking. |
19310 | # This must work even if \$libdir does not exist. |
19311 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19312 | |
19313 | # If ld is used when linking, flag to hardcode \$libdir into |
19314 | # a binary during linking. This must work even if \$libdir does |
19315 | # not exist. |
19316 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19317 | |
19318 | # Whether we need a single -rpath flag with a separated argument. |
19319 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19320 | |
19321 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19322 | # resulting binary. |
19323 | hardcode_direct=$hardcode_direct_RC |
19324 | |
19325 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19326 | # resulting binary. |
19327 | hardcode_minus_L=$hardcode_minus_L_RC |
19328 | |
19329 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19330 | # the resulting binary. |
19331 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19332 | |
19333 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19334 | # and all subsequent libraries and executables linked against it. |
19335 | hardcode_automatic=$hardcode_automatic_RC |
19336 | |
19337 | # Variables whose values should be saved in libtool wrapper scripts and |
19338 | # restored at relink time. |
19339 | variables_saved_for_relink="$variables_saved_for_relink" |
19340 | |
19341 | # Whether libtool must link a program against all its dependency libraries. |
19342 | link_all_deplibs=$link_all_deplibs_RC |
19343 | |
19344 | # Compile-time system search path for libraries |
dd184caf |
19345 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19346 | |
19347 | # Run-time system search path for libraries |
19348 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19349 | |
19350 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
19351 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
19352 | |
19353 | # Set to yes if exported symbols are required. |
19354 | always_export_symbols=$always_export_symbols_RC |
19355 | |
19356 | # The commands to list exported symbols. |
19357 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19358 | |
19359 | # The commands to extract the exported symbol list from a shared archive. |
19360 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19361 | |
19362 | # Symbols that should not be listed in the preloaded symbols. |
19363 | exclude_expsyms=$lt_exclude_expsyms_RC |
19364 | |
19365 | # Symbols that must always be exported. |
19366 | include_expsyms=$lt_include_expsyms_RC |
19367 | |
19368 | # ### END LIBTOOL TAG CONFIG: $tagname |
19369 | |
19370 | __EOF__ |
19371 | |
19372 | |
19373 | else |
19374 | # If there is no Makefile yet, we rely on a make rule to execute |
19375 | # `config.status --recheck' to rerun these tests and create the |
19376 | # libtool script then. |
19377 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19378 | if test -f "$ltmain_in"; then |
19379 | test -f Makefile && make "$ltmain" |
19380 | fi |
19381 | fi |
19382 | |
19383 | |
19384 | ac_ext=c |
19385 | ac_cpp='$CPP $CPPFLAGS' |
19386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19389 | |
19390 | CC="$lt_save_CC" |
19391 | |
19392 | ;; |
19393 | |
19394 | *) |
19395 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19396 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19397 | { (exit 1); exit 1; }; } |
19398 | ;; |
19399 | esac |
19400 | |
19401 | # Append the new tag name to the list of available tags. |
19402 | if test -n "$tagname" ; then |
19403 | available_tags="$available_tags $tagname" |
19404 | fi |
19405 | fi |
19406 | done |
19407 | IFS="$lt_save_ifs" |
19408 | |
19409 | # Now substitute the updated list of available tags. |
19410 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19411 | mv "${ofile}T" "$ofile" |
19412 | chmod +x "$ofile" |
19413 | else |
19414 | rm -f "${ofile}T" |
19415 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19416 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19417 | { (exit 1); exit 1; }; } |
19418 | fi |
19419 | fi |
19420 | |
19421 | |
19422 | |
19423 | # This can be used to rebuild libtool when needed |
19424 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19425 | |
19426 | # Always use our own libtool. |
19427 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19428 | |
19429 | # Prevent multiple expansion |
19430 | |
19431 | |
19432 | |
19433 | |
19434 | |
19435 | |
19436 | |
19437 | |
19438 | |
19439 | |
19440 | |
19441 | |
19442 | |
19443 | |
19444 | |
19445 | |
19446 | |
19447 | |
19448 | |
19449 | |
19450 | |
19451 | if test "$GCC" = "yes" |
19452 | then |
19453 | CFLAGS="$CFLAGS -Wall" |
19454 | fi |
19455 | |
19456 | |
19457 | |
19458 | |
19459 | for ac_header in unistd.h |
19460 | do |
19461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
19462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19463 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19467 | fi |
dd184caf |
19468 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19469 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19470 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19471 | else |
19472 | # Is the header compilable? |
dd184caf |
19473 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19474 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19475 | cat >conftest.$ac_ext <<_ACEOF |
19476 | /* confdefs.h. */ |
19477 | _ACEOF |
19478 | cat confdefs.h >>conftest.$ac_ext |
19479 | cat >>conftest.$ac_ext <<_ACEOF |
19480 | /* end confdefs.h. */ |
19481 | $ac_includes_default |
19482 | #include <$ac_header> |
19483 | _ACEOF |
19484 | rm -f conftest.$ac_objext |
dd184caf |
19485 | if { (ac_try="$ac_compile" |
19486 | case "(($ac_try" in |
19487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19488 | *) ac_try_echo=$ac_try;; |
19489 | esac |
19490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19491 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19492 | ac_status=$? |
19493 | grep -v '^ *+' conftest.er1 >conftest.err |
19494 | rm -f conftest.er1 |
19495 | cat conftest.err >&5 |
19496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19497 | (exit $ac_status); } && { |
19498 | test -z "$ac_c_werror_flag" || |
19499 | test ! -s conftest.err |
19500 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19501 | ac_header_compiler=yes |
19502 | else |
19503 | echo "$as_me: failed program was:" >&5 |
19504 | sed 's/^/| /' conftest.$ac_ext >&5 |
19505 | |
dd184caf |
19506 | ac_header_compiler=no |
d9898ee8 |
19507 | fi |
dd184caf |
19508 | |
19509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19510 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19511 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19512 | |
19513 | # Is the header present? |
dd184caf |
19514 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19515 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19516 | cat >conftest.$ac_ext <<_ACEOF |
19517 | /* confdefs.h. */ |
19518 | _ACEOF |
19519 | cat confdefs.h >>conftest.$ac_ext |
19520 | cat >>conftest.$ac_ext <<_ACEOF |
19521 | /* end confdefs.h. */ |
19522 | #include <$ac_header> |
19523 | _ACEOF |
dd184caf |
19524 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19525 | case "(($ac_try" in |
19526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19527 | *) ac_try_echo=$ac_try;; |
19528 | esac |
19529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19530 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19531 | ac_status=$? |
19532 | grep -v '^ *+' conftest.er1 >conftest.err |
19533 | rm -f conftest.er1 |
19534 | cat conftest.err >&5 |
19535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19536 | (exit $ac_status); } >/dev/null && { |
19537 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19538 | test ! -s conftest.err |
19539 | }; then |
d9898ee8 |
19540 | ac_header_preproc=yes |
19541 | else |
19542 | echo "$as_me: failed program was:" >&5 |
19543 | sed 's/^/| /' conftest.$ac_ext >&5 |
19544 | |
19545 | ac_header_preproc=no |
19546 | fi |
dd184caf |
19547 | |
d9898ee8 |
19548 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
19549 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19550 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19551 | |
19552 | # So? What about this header? |
19553 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19554 | yes:no: ) |
19555 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19556 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19558 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19559 | ac_header_preproc=yes |
19560 | ;; |
19561 | no:yes:* ) |
19562 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19563 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19564 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19565 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19566 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19567 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19568 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19569 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19570 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19571 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19572 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19573 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
19574 | ( cat <<\_ASBOX |
d9898ee8 |
19575 | ## -------------------------------------------------- ## |
19576 | ## Report this to courier-users@lists.sourceforge.net ## |
19577 | ## -------------------------------------------------- ## |
19578 | _ASBOX |
dd184caf |
19579 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19580 | ;; |
19581 | esac |
dd184caf |
19582 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19583 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19586 | else |
19587 | eval "$as_ac_Header=\$ac_header_preproc" |
19588 | fi |
dd184caf |
19589 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19590 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19591 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19592 | |
19593 | fi |
19594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19595 | cat >>confdefs.h <<_ACEOF |
19596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19597 | _ACEOF |
19598 | |
19599 | fi |
19600 | |
19601 | done |
19602 | |
19603 | |
dd184caf |
19604 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19605 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
d9898ee8 |
19606 | if test "${ac_cv_type_uid_t+set}" = set; then |
19607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19608 | else |
19609 | cat >conftest.$ac_ext <<_ACEOF |
19610 | /* confdefs.h. */ |
19611 | _ACEOF |
19612 | cat confdefs.h >>conftest.$ac_ext |
19613 | cat >>conftest.$ac_ext <<_ACEOF |
19614 | /* end confdefs.h. */ |
19615 | #include <sys/types.h> |
19616 | |
19617 | _ACEOF |
19618 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19619 | $EGREP "uid_t" >/dev/null 2>&1; then |
19620 | ac_cv_type_uid_t=yes |
19621 | else |
19622 | ac_cv_type_uid_t=no |
19623 | fi |
19624 | rm -f conftest* |
19625 | |
19626 | fi |
dd184caf |
19627 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19628 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
d9898ee8 |
19629 | if test $ac_cv_type_uid_t = no; then |
19630 | |
19631 | cat >>confdefs.h <<\_ACEOF |
19632 | #define uid_t int |
19633 | _ACEOF |
19634 | |
19635 | |
19636 | cat >>confdefs.h <<\_ACEOF |
19637 | #define gid_t int |
19638 | _ACEOF |
19639 | |
19640 | fi |
19641 | |
dd184caf |
19642 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
19643 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
d9898ee8 |
19644 | if test "${ac_cv_type_pid_t+set}" = set; then |
19645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19646 | else |
19647 | cat >conftest.$ac_ext <<_ACEOF |
19648 | /* confdefs.h. */ |
19649 | _ACEOF |
19650 | cat confdefs.h >>conftest.$ac_ext |
19651 | cat >>conftest.$ac_ext <<_ACEOF |
19652 | /* end confdefs.h. */ |
19653 | $ac_includes_default |
dd184caf |
19654 | typedef pid_t ac__type_new_; |
d9898ee8 |
19655 | int |
19656 | main () |
19657 | { |
dd184caf |
19658 | if ((ac__type_new_ *) 0) |
d9898ee8 |
19659 | return 0; |
dd184caf |
19660 | if (sizeof (ac__type_new_)) |
d9898ee8 |
19661 | return 0; |
19662 | ; |
19663 | return 0; |
19664 | } |
19665 | _ACEOF |
19666 | rm -f conftest.$ac_objext |
dd184caf |
19667 | if { (ac_try="$ac_compile" |
19668 | case "(($ac_try" in |
19669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19670 | *) ac_try_echo=$ac_try;; |
19671 | esac |
19672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19673 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19674 | ac_status=$? |
19675 | grep -v '^ *+' conftest.er1 >conftest.err |
19676 | rm -f conftest.er1 |
19677 | cat conftest.err >&5 |
19678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19679 | (exit $ac_status); } && { |
19680 | test -z "$ac_c_werror_flag" || |
19681 | test ! -s conftest.err |
19682 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19683 | ac_cv_type_pid_t=yes |
19684 | else |
19685 | echo "$as_me: failed program was:" >&5 |
19686 | sed 's/^/| /' conftest.$ac_ext >&5 |
19687 | |
dd184caf |
19688 | ac_cv_type_pid_t=no |
d9898ee8 |
19689 | fi |
dd184caf |
19690 | |
19691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19692 | fi |
dd184caf |
19693 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
19694 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
d9898ee8 |
19695 | if test $ac_cv_type_pid_t = yes; then |
19696 | : |
19697 | else |
19698 | |
19699 | cat >>confdefs.h <<_ACEOF |
19700 | #define pid_t int |
19701 | _ACEOF |
19702 | |
19703 | fi |
19704 | |
19705 | |
19706 | |
19707 | |
19708 | |
19709 | for ac_func in setgroups initgroups |
19710 | do |
19711 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
19712 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19713 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
19714 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19716 | else |
19717 | cat >conftest.$ac_ext <<_ACEOF |
19718 | /* confdefs.h. */ |
19719 | _ACEOF |
19720 | cat confdefs.h >>conftest.$ac_ext |
19721 | cat >>conftest.$ac_ext <<_ACEOF |
19722 | /* end confdefs.h. */ |
19723 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19725 | #define $ac_func innocuous_$ac_func |
19726 | |
19727 | /* System header to define __stub macros and hopefully few prototypes, |
19728 | which can conflict with char $ac_func (); below. |
19729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19730 | <limits.h> exists even on freestanding compilers. */ |
19731 | |
19732 | #ifdef __STDC__ |
19733 | # include <limits.h> |
19734 | #else |
19735 | # include <assert.h> |
19736 | #endif |
19737 | |
19738 | #undef $ac_func |
19739 | |
dd184caf |
19740 | /* Override any GCC internal prototype to avoid an error. |
19741 | Use char because int might match the return type of a GCC |
19742 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
19743 | #ifdef __cplusplus |
19744 | extern "C" |
d9898ee8 |
19745 | #endif |
d9898ee8 |
19746 | char $ac_func (); |
19747 | /* The GNU C library defines this for functions which it implements |
19748 | to always fail with ENOSYS. Some functions are actually named |
19749 | something starting with __ and the normal name is an alias. */ |
dd184caf |
19750 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
19751 | choke me |
d9898ee8 |
19752 | #endif |
19753 | |
19754 | int |
19755 | main () |
19756 | { |
dd184caf |
19757 | return $ac_func (); |
d9898ee8 |
19758 | ; |
19759 | return 0; |
19760 | } |
19761 | _ACEOF |
19762 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
19763 | if { (ac_try="$ac_link" |
19764 | case "(($ac_try" in |
19765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19766 | *) ac_try_echo=$ac_try;; |
19767 | esac |
19768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19769 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
19770 | ac_status=$? |
19771 | grep -v '^ *+' conftest.er1 >conftest.err |
19772 | rm -f conftest.er1 |
19773 | cat conftest.err >&5 |
19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19775 | (exit $ac_status); } && { |
19776 | test -z "$ac_c_werror_flag" || |
19777 | test ! -s conftest.err |
19778 | } && test -s conftest$ac_exeext && |
19779 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
19780 | eval "$as_ac_var=yes" |
19781 | else |
19782 | echo "$as_me: failed program was:" >&5 |
19783 | sed 's/^/| /' conftest.$ac_ext >&5 |
19784 | |
dd184caf |
19785 | eval "$as_ac_var=no" |
d9898ee8 |
19786 | fi |
dd184caf |
19787 | |
19788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
19789 | conftest$ac_exeext conftest.$ac_ext |
19790 | fi |
dd184caf |
19791 | ac_res=`eval echo '${'$as_ac_var'}'` |
19792 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19793 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19794 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19795 | cat >>confdefs.h <<_ACEOF |
19796 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19797 | _ACEOF |
19798 | |
19799 | fi |
19800 | done |
19801 | |
dd184caf |
19802 | ac_config_files="$ac_config_files Makefile" |
19803 | |
d9898ee8 |
19804 | cat >confcache <<\_ACEOF |
19805 | # This file is a shell script that caches the results of configure |
19806 | # tests run on this system so they can be shared between configure |
19807 | # scripts and configure runs, see configure's option --config-cache. |
19808 | # It is not useful on other systems. If it contains results you don't |
19809 | # want to keep, you may remove or edit it. |
19810 | # |
19811 | # config.status only pays attention to the cache file if you give it |
19812 | # the --recheck option to rerun configure. |
19813 | # |
19814 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19815 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
19816 | # following values. |
19817 | |
19818 | _ACEOF |
19819 | |
19820 | # The following way of writing the cache mishandles newlines in values, |
19821 | # but we know of no workaround that is simple, portable, and efficient. |
dd184caf |
19822 | # So, we kill variables containing newlines. |
d9898ee8 |
19823 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19824 | # and sets the high bit in the cache file unless we assign to the vars. |
dd184caf |
19825 | ( |
19826 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
19827 | eval ac_val=\$$ac_var |
19828 | case $ac_val in #( |
19829 | *${as_nl}*) |
19830 | case $ac_var in #( |
19831 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
19832 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
19833 | esac |
19834 | case $ac_var in #( |
19835 | _ | IFS | as_nl) ;; #( |
19836 | *) $as_unset $ac_var ;; |
19837 | esac ;; |
19838 | esac |
19839 | done |
19840 | |
d9898ee8 |
19841 | (set) 2>&1 | |
dd184caf |
19842 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
19843 | *${as_nl}ac_space=\ *) |
d9898ee8 |
19844 | # `set' does not quote correctly, so add quotes (double-quote |
19845 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
19846 | sed -n \ |
19847 | "s/'/'\\\\''/g; |
19848 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
dd184caf |
19849 | ;; #( |
d9898ee8 |
19850 | *) |
19851 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
dd184caf |
19852 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
19853 | ;; |
dd184caf |
19854 | esac | |
19855 | sort |
19856 | ) | |
d9898ee8 |
19857 | sed ' |
dd184caf |
19858 | /^ac_cv_env_/b end |
d9898ee8 |
19859 | t clear |
dd184caf |
19860 | :clear |
d9898ee8 |
19861 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19862 | t end |
dd184caf |
19863 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19864 | :end' >>confcache |
19865 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
19866 | if test -w "$cache_file"; then |
19867 | test "x$cache_file" != "x/dev/null" && |
19868 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
19869 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
19870 | cat confcache >$cache_file |
19871 | else |
dd184caf |
19872 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
19873 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
19874 | fi |
19875 | fi |
19876 | rm -f confcache |
19877 | |
19878 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19879 | # Let make expand exec_prefix. |
19880 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19881 | |
d9898ee8 |
19882 | DEFS=-DHAVE_CONFIG_H |
19883 | |
19884 | ac_libobjs= |
19885 | ac_ltlibobjs= |
19886 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19887 | # 1. Remove the extension, and $U if already installed. |
dd184caf |
19888 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
19889 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
19890 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
19891 | # will be set to the directory where LIBOBJS objects are built. |
19892 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
19893 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
19894 | done |
19895 | LIBOBJS=$ac_libobjs |
19896 | |
19897 | LTLIBOBJS=$ac_ltlibobjs |
19898 | |
19899 | |
19900 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19901 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19902 | Usually this means the macro was only invoked conditionally." >&5 |
19903 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19904 | Usually this means the macro was only invoked conditionally." >&2;} |
19905 | { (exit 1); exit 1; }; } |
19906 | fi |
19907 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19908 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19909 | Usually this means the macro was only invoked conditionally." >&5 |
19910 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19911 | Usually this means the macro was only invoked conditionally." >&2;} |
19912 | { (exit 1); exit 1; }; } |
19913 | fi |
19914 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19915 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19916 | Usually this means the macro was only invoked conditionally." >&5 |
19917 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19918 | Usually this means the macro was only invoked conditionally." >&2;} |
19919 | { (exit 1); exit 1; }; } |
19920 | fi |
19921 | |
19922 | : ${CONFIG_STATUS=./config.status} |
19923 | ac_clean_files_save=$ac_clean_files |
19924 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
19925 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
19926 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
19927 | cat >$CONFIG_STATUS <<_ACEOF |
19928 | #! $SHELL |
19929 | # Generated by $as_me. |
19930 | # Run this file to recreate the current configuration. |
19931 | # Compiler output produced by configure, useful for debugging |
19932 | # configure, is in config.log if it exists. |
19933 | |
19934 | debug=false |
19935 | ac_cs_recheck=false |
19936 | ac_cs_silent=false |
19937 | SHELL=\${CONFIG_SHELL-$SHELL} |
19938 | _ACEOF |
19939 | |
19940 | cat >>$CONFIG_STATUS <<\_ACEOF |
19941 | ## --------------------- ## |
19942 | ## M4sh Initialization. ## |
19943 | ## --------------------- ## |
19944 | |
dd184caf |
19945 | # Be more Bourne compatible |
19946 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
19947 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19948 | emulate sh |
19949 | NULLCMD=: |
19950 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19951 | # is contrary to our usage. Disable this feature. |
19952 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
19953 | setopt NO_GLOB_SUBST |
19954 | else |
19955 | case `(set -o) 2>/dev/null` in |
19956 | *posix*) set -o posix ;; |
19957 | esac |
19958 | |
19959 | fi |
19960 | |
19961 | |
19962 | |
19963 | |
19964 | # PATH needs CR |
19965 | # Avoid depending upon Character Ranges. |
19966 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
19967 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
19968 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
19969 | as_cr_digits='0123456789' |
19970 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
19971 | |
19972 | # The user is always right. |
19973 | if test "${PATH_SEPARATOR+set}" != set; then |
19974 | echo "#! /bin/sh" >conf$$.sh |
19975 | echo "exit 0" >>conf$$.sh |
19976 | chmod +x conf$$.sh |
19977 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
19978 | PATH_SEPARATOR=';' |
19979 | else |
19980 | PATH_SEPARATOR=: |
19981 | fi |
19982 | rm -f conf$$.sh |
d9898ee8 |
19983 | fi |
d9898ee8 |
19984 | |
19985 | # Support unset when possible. |
19986 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
19987 | as_unset=unset |
19988 | else |
19989 | as_unset=false |
19990 | fi |
19991 | |
19992 | |
dd184caf |
19993 | # IFS |
19994 | # We need space, tab and new line, in precisely that order. Quoting is |
19995 | # there to prevent editors from complaining about space-tab. |
19996 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
19997 | # splitting by setting IFS to empty value.) |
19998 | as_nl=' |
19999 | ' |
20000 | IFS=" "" $as_nl" |
20001 | |
20002 | # Find who we are. Look in the path if we contain no directory separator. |
20003 | case $0 in |
20004 | *[\\/]* ) as_myself=$0 ;; |
20005 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20006 | for as_dir in $PATH |
20007 | do |
20008 | IFS=$as_save_IFS |
20009 | test -z "$as_dir" && as_dir=. |
20010 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
20011 | done |
20012 | IFS=$as_save_IFS |
20013 | |
20014 | ;; |
20015 | esac |
20016 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20017 | # in which case we are not to be found in the path. |
20018 | if test "x$as_myself" = x; then |
20019 | as_myself=$0 |
20020 | fi |
20021 | if test ! -f "$as_myself"; then |
20022 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
20023 | { (exit 1); exit 1; } |
20024 | fi |
20025 | |
d9898ee8 |
20026 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
20027 | for as_var in ENV MAIL MAILPATH |
20028 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
20029 | done |
d9898ee8 |
20030 | PS1='$ ' |
20031 | PS2='> ' |
20032 | PS4='+ ' |
20033 | |
20034 | # NLS nuisances. |
20035 | for as_var in \ |
20036 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
20037 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
20038 | LC_TELEPHONE LC_TIME |
20039 | do |
20040 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
20041 | eval $as_var=C; export $as_var |
20042 | else |
dd184caf |
20043 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
20044 | fi |
20045 | done |
20046 | |
20047 | # Required to use basename. |
dd184caf |
20048 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20049 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20050 | as_expr=expr |
20051 | else |
20052 | as_expr=false |
20053 | fi |
20054 | |
dd184caf |
20055 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
20056 | as_basename=basename |
20057 | else |
20058 | as_basename=false |
20059 | fi |
20060 | |
20061 | |
20062 | # Name of the executable. |
dd184caf |
20063 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
20064 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
20065 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
20066 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20067 | echo X/"$0" | |
dd184caf |
20068 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
20069 | s//\1/ |
20070 | q |
20071 | } |
20072 | /^X\/\(\/\/\)$/{ |
20073 | s//\1/ |
20074 | q |
20075 | } |
20076 | /^X\/\(\/\).*/{ |
20077 | s//\1/ |
20078 | q |
20079 | } |
20080 | s/.*/./; q'` |
d9898ee8 |
20081 | |
dd184caf |
20082 | # CDPATH. |
20083 | $as_unset CDPATH |
d9898ee8 |
20084 | |
20085 | |
d9898ee8 |
20086 | |
d9898ee8 |
20087 | as_lineno_1=$LINENO |
20088 | as_lineno_2=$LINENO |
d9898ee8 |
20089 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
20090 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
20091 | |
20092 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20093 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
20094 | # line-number line after each line using $LINENO; the second 'sed' |
20095 | # does the real work. The second script uses 'N' to pair each |
20096 | # line-number line with the line containing $LINENO, and appends |
20097 | # trailing '-' during substitution so that $LINENO is not a special |
20098 | # case at line end. |
d9898ee8 |
20099 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
20100 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
20101 | # E. McMahon (1931-1989) for sed's syntax. :-) |
20102 | sed -n ' |
20103 | p |
20104 | /[$]LINENO/= |
20105 | ' <$as_myself | |
d9898ee8 |
20106 | sed ' |
dd184caf |
20107 | s/[$]LINENO.*/&-/ |
20108 | t lineno |
20109 | b |
20110 | :lineno |
d9898ee8 |
20111 | N |
dd184caf |
20112 | :loop |
20113 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
20114 | t loop |
dd184caf |
20115 | s/-\n.*// |
d9898ee8 |
20116 | ' >$as_me.lineno && |
dd184caf |
20117 | chmod +x "$as_me.lineno" || |
20118 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
20119 | { (exit 1); exit 1; }; } |
20120 | |
20121 | # Don't try to exec as it changes $[0], causing all sort of problems |
20122 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
20123 | # original and so on. Autoconf is especially sensitive to this). |
20124 | . "./$as_me.lineno" |
d9898ee8 |
20125 | # Exit status is that of the last command. |
20126 | exit |
20127 | } |
20128 | |
20129 | |
dd184caf |
20130 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20131 | as_dirname=dirname |
20132 | else |
20133 | as_dirname=false |
20134 | fi |
20135 | |
20136 | ECHO_C= ECHO_N= ECHO_T= |
20137 | case `echo -n x` in |
20138 | -n*) |
20139 | case `echo 'x\c'` in |
20140 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
20141 | *) ECHO_C='\c';; |
20142 | esac;; |
20143 | *) |
20144 | ECHO_N='-n';; |
d9898ee8 |
20145 | esac |
20146 | |
dd184caf |
20147 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20148 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20149 | as_expr=expr |
20150 | else |
20151 | as_expr=false |
20152 | fi |
20153 | |
20154 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
20155 | if test -d conf$$.dir; then |
20156 | rm -f conf$$.dir/conf$$.file |
20157 | else |
20158 | rm -f conf$$.dir |
20159 | mkdir conf$$.dir |
20160 | fi |
d9898ee8 |
20161 | echo >conf$$.file |
20162 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
20163 | as_ln_s='ln -s' |
20164 | # ... but there are two gotchas: |
20165 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
20166 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
20167 | # In both cases, we have to default to `cp -p'. |
20168 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
20169 | as_ln_s='cp -p' |
d9898ee8 |
20170 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20171 | as_ln_s=ln |
20172 | else |
20173 | as_ln_s='cp -p' |
20174 | fi |
dd184caf |
20175 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20176 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
20177 | |
20178 | if mkdir -p . 2>/dev/null; then |
20179 | as_mkdir_p=: |
20180 | else |
20181 | test -d ./-p && rmdir ./-p |
20182 | as_mkdir_p=false |
20183 | fi |
20184 | |
dd184caf |
20185 | if test -x / >/dev/null 2>&1; then |
20186 | as_test_x='test -x' |
20187 | else |
20188 | if ls -dL / >/dev/null 2>&1; then |
20189 | as_ls_L_option=L |
20190 | else |
20191 | as_ls_L_option= |
20192 | fi |
20193 | as_test_x=' |
20194 | eval sh -c '\'' |
20195 | if test -d "$1"; then |
20196 | test -d "$1/."; |
20197 | else |
20198 | case $1 in |
20199 | -*)set "./$1";; |
20200 | esac; |
20201 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
20202 | ???[sx]*):;;*)false;;esac;fi |
20203 | '\'' sh |
20204 | ' |
20205 | fi |
20206 | as_executable_p=$as_test_x |
d9898ee8 |
20207 | |
20208 | # Sed expression to map a string onto a valid CPP name. |
20209 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
20210 | |
20211 | # Sed expression to map a string onto a valid variable name. |
20212 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
20213 | |
20214 | |
d9898ee8 |
20215 | exec 6>&1 |
20216 | |
dd184caf |
20217 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
20218 | # report actual input values of CONFIG_FILES etc. instead of their |
dd184caf |
20219 | # values after options handling. |
20220 | ac_log=" |
d9898ee8 |
20221 | This file was extended by numlib $as_me 0.10, which was |
dd184caf |
20222 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
20223 | |
20224 | CONFIG_FILES = $CONFIG_FILES |
20225 | CONFIG_HEADERS = $CONFIG_HEADERS |
20226 | CONFIG_LINKS = $CONFIG_LINKS |
20227 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
20228 | $ $0 $@ |
20229 | |
dd184caf |
20230 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20231 | " |
20232 | |
d9898ee8 |
20233 | _ACEOF |
20234 | |
dd184caf |
20235 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
20236 | # Files that config.status was made for. |
dd184caf |
20237 | config_files="$ac_config_files" |
20238 | config_headers="$ac_config_headers" |
20239 | config_commands="$ac_config_commands" |
d9898ee8 |
20240 | |
dd184caf |
20241 | _ACEOF |
d9898ee8 |
20242 | |
20243 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
20244 | ac_cs_usage="\ |
20245 | \`$as_me' instantiates files from templates according to the |
20246 | current configuration. |
20247 | |
20248 | Usage: $0 [OPTIONS] [FILE]... |
20249 | |
20250 | -h, --help print this help, then exit |
dd184caf |
20251 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
20252 | -q, --quiet do not print progress messages |
20253 | -d, --debug don't remove temporary files |
20254 | --recheck update $as_me by reconfiguring in the same conditions |
20255 | --file=FILE[:TEMPLATE] |
20256 | instantiate the configuration file FILE |
20257 | --header=FILE[:TEMPLATE] |
20258 | instantiate the configuration header FILE |
20259 | |
20260 | Configuration files: |
20261 | $config_files |
20262 | |
20263 | Configuration headers: |
20264 | $config_headers |
20265 | |
20266 | Configuration commands: |
20267 | $config_commands |
20268 | |
20269 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
20270 | |
dd184caf |
20271 | _ACEOF |
d9898ee8 |
20272 | cat >>$CONFIG_STATUS <<_ACEOF |
20273 | ac_cs_version="\\ |
20274 | numlib config.status 0.10 |
dd184caf |
20275 | configured by $0, generated by GNU Autoconf 2.61, |
20276 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
20277 | |
dd184caf |
20278 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
20279 | This config.status script is free software; the Free Software Foundation |
20280 | gives unlimited permission to copy, distribute and modify it." |
dd184caf |
20281 | |
20282 | ac_pwd='$ac_pwd' |
20283 | srcdir='$srcdir' |
20284 | INSTALL='$INSTALL' |
20285 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
20286 | _ACEOF |
20287 | |
20288 | cat >>$CONFIG_STATUS <<\_ACEOF |
20289 | # If no file are specified by the user, then we need to provide default |
20290 | # value. By we need to know if files were specified by the user. |
20291 | ac_need_defaults=: |
20292 | while test $# != 0 |
20293 | do |
20294 | case $1 in |
20295 | --*=*) |
dd184caf |
20296 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20297 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
20298 | ac_shift=: |
20299 | ;; |
dd184caf |
20300 | *) |
d9898ee8 |
20301 | ac_option=$1 |
20302 | ac_optarg=$2 |
20303 | ac_shift=shift |
20304 | ;; |
d9898ee8 |
20305 | esac |
20306 | |
20307 | case $ac_option in |
20308 | # Handling of the options. |
d9898ee8 |
20309 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20310 | ac_cs_recheck=: ;; |
dd184caf |
20311 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
20312 | echo "$ac_cs_version"; exit ;; |
20313 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
20314 | debug=: ;; |
20315 | --file | --fil | --fi | --f ) |
20316 | $ac_shift |
20317 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
20318 | ac_need_defaults=false;; |
20319 | --header | --heade | --head | --hea ) |
20320 | $ac_shift |
20321 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
20322 | ac_need_defaults=false;; |
dd184caf |
20323 | --he | --h) |
20324 | # Conflict between --help and --header |
20325 | { echo "$as_me: error: ambiguous option: $1 |
20326 | Try \`$0 --help' for more information." >&2 |
20327 | { (exit 1); exit 1; }; };; |
20328 | --help | --hel | -h ) |
20329 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
20330 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20331 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
20332 | ac_cs_silent=: ;; |
20333 | |
20334 | # This is an error. |
dd184caf |
20335 | -*) { echo "$as_me: error: unrecognized option: $1 |
20336 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
20337 | { (exit 1); exit 1; }; } ;; |
20338 | |
dd184caf |
20339 | *) ac_config_targets="$ac_config_targets $1" |
20340 | ac_need_defaults=false ;; |
d9898ee8 |
20341 | |
20342 | esac |
20343 | shift |
20344 | done |
20345 | |
20346 | ac_configure_extra_args= |
20347 | |
20348 | if $ac_cs_silent; then |
20349 | exec 6>/dev/null |
20350 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
20351 | fi |
20352 | |
20353 | _ACEOF |
20354 | cat >>$CONFIG_STATUS <<_ACEOF |
20355 | if \$ac_cs_recheck; then |
dd184caf |
20356 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20357 | CONFIG_SHELL=$SHELL |
20358 | export CONFIG_SHELL |
20359 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
20360 | fi |
20361 | |
20362 | _ACEOF |
dd184caf |
20363 | cat >>$CONFIG_STATUS <<\_ACEOF |
20364 | exec 5>>config.log |
20365 | { |
20366 | echo |
20367 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
20368 | ## Running $as_me. ## |
20369 | _ASBOX |
20370 | echo "$ac_log" |
20371 | } >&5 |
d9898ee8 |
20372 | |
dd184caf |
20373 | _ACEOF |
d9898ee8 |
20374 | cat >>$CONFIG_STATUS <<_ACEOF |
20375 | # |
dd184caf |
20376 | # INIT-COMMANDS |
d9898ee8 |
20377 | # |
d9898ee8 |
20378 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20379 | |
20380 | _ACEOF |
20381 | |
d9898ee8 |
20382 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20383 | |
20384 | # Handling of arguments. |
d9898ee8 |
20385 | for ac_config_target in $ac_config_targets |
20386 | do |
dd184caf |
20387 | case $ac_config_target in |
20388 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20389 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20390 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20391 | |
d9898ee8 |
20392 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20393 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20394 | { (exit 1); exit 1; }; };; |
20395 | esac |
20396 | done |
20397 | |
dd184caf |
20398 | |
d9898ee8 |
20399 | # If the user did not use the arguments to specify the items to instantiate, |
20400 | # then the envvar interface is used. Set only those that are not. |
20401 | # We use the long form for the default assignment because of an extremely |
20402 | # bizarre bug on SunOS 4.1.3. |
20403 | if $ac_need_defaults; then |
20404 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
20405 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
20406 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
20407 | fi |
20408 | |
20409 | # Have a temporary directory for convenience. Make it in the build tree |
dd184caf |
20410 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
20411 | # creating and moving files from /tmp can sometimes cause problems. |
dd184caf |
20412 | # Hook for its removal unless debugging. |
20413 | # Note that there is a small window in which the directory will not be cleaned: |
20414 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
20415 | $debug || |
20416 | { |
dd184caf |
20417 | tmp= |
20418 | trap 'exit_status=$? |
20419 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
20420 | ' 0 |
d9898ee8 |
20421 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
20422 | } |
d9898ee8 |
20423 | # Create a (secure) tmp directory for tmp files. |
20424 | |
20425 | { |
dd184caf |
20426 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
20427 | test -n "$tmp" && test -d "$tmp" |
20428 | } || |
20429 | { |
dd184caf |
20430 | tmp=./conf$$-$RANDOM |
20431 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
20432 | } || |
20433 | { |
20434 | echo "$me: cannot create a temporary directory in ." >&2 |
20435 | { (exit 1); exit 1; } |
20436 | } |
20437 | |
d9898ee8 |
20438 | # |
dd184caf |
20439 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
20440 | # |
20441 | |
20442 | # No need to generate the scripts if there are no CONFIG_FILES. |
20443 | # This happens for instance when ./config.status config.h |
dd184caf |
20444 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
20445 | |
20446 | _ACEOF |
20447 | |
dd184caf |
20448 | |
20449 | |
20450 | ac_delim='%!_!# ' |
20451 | for ac_last_try in false false false false false :; do |
20452 | cat >conf$$subs.sed <<_ACEOF |
20453 | SHELL!$SHELL$ac_delim |
20454 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
20455 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
20456 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
20457 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
20458 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
20459 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
20460 | exec_prefix!$exec_prefix$ac_delim |
20461 | prefix!$prefix$ac_delim |
20462 | program_transform_name!$program_transform_name$ac_delim |
20463 | bindir!$bindir$ac_delim |
20464 | sbindir!$sbindir$ac_delim |
20465 | libexecdir!$libexecdir$ac_delim |
20466 | datarootdir!$datarootdir$ac_delim |
20467 | datadir!$datadir$ac_delim |
20468 | sysconfdir!$sysconfdir$ac_delim |
20469 | sharedstatedir!$sharedstatedir$ac_delim |
20470 | localstatedir!$localstatedir$ac_delim |
20471 | includedir!$includedir$ac_delim |
20472 | oldincludedir!$oldincludedir$ac_delim |
20473 | docdir!$docdir$ac_delim |
20474 | infodir!$infodir$ac_delim |
20475 | htmldir!$htmldir$ac_delim |
20476 | dvidir!$dvidir$ac_delim |
20477 | pdfdir!$pdfdir$ac_delim |
20478 | psdir!$psdir$ac_delim |
20479 | libdir!$libdir$ac_delim |
20480 | localedir!$localedir$ac_delim |
20481 | mandir!$mandir$ac_delim |
20482 | DEFS!$DEFS$ac_delim |
20483 | ECHO_C!$ECHO_C$ac_delim |
20484 | ECHO_N!$ECHO_N$ac_delim |
20485 | ECHO_T!$ECHO_T$ac_delim |
20486 | LIBS!$LIBS$ac_delim |
20487 | build_alias!$build_alias$ac_delim |
20488 | host_alias!$host_alias$ac_delim |
20489 | target_alias!$target_alias$ac_delim |
20490 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
20491 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
20492 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
20493 | am__isrc!$am__isrc$ac_delim |
20494 | CYGPATH_W!$CYGPATH_W$ac_delim |
20495 | PACKAGE!$PACKAGE$ac_delim |
20496 | VERSION!$VERSION$ac_delim |
20497 | ACLOCAL!$ACLOCAL$ac_delim |
20498 | AUTOCONF!$AUTOCONF$ac_delim |
20499 | AUTOMAKE!$AUTOMAKE$ac_delim |
20500 | AUTOHEADER!$AUTOHEADER$ac_delim |
20501 | MAKEINFO!$MAKEINFO$ac_delim |
20502 | install_sh!$install_sh$ac_delim |
20503 | STRIP!$STRIP$ac_delim |
20504 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
20505 | mkdir_p!$mkdir_p$ac_delim |
20506 | AWK!$AWK$ac_delim |
20507 | SET_MAKE!$SET_MAKE$ac_delim |
20508 | am__leading_dot!$am__leading_dot$ac_delim |
20509 | AMTAR!$AMTAR$ac_delim |
20510 | am__tar!$am__tar$ac_delim |
20511 | am__untar!$am__untar$ac_delim |
20512 | CC!$CC$ac_delim |
20513 | CFLAGS!$CFLAGS$ac_delim |
20514 | LDFLAGS!$LDFLAGS$ac_delim |
20515 | CPPFLAGS!$CPPFLAGS$ac_delim |
20516 | ac_ct_CC!$ac_ct_CC$ac_delim |
20517 | EXEEXT!$EXEEXT$ac_delim |
20518 | OBJEXT!$OBJEXT$ac_delim |
20519 | DEPDIR!$DEPDIR$ac_delim |
20520 | am__include!$am__include$ac_delim |
20521 | am__quote!$am__quote$ac_delim |
20522 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
20523 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
20524 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
20525 | CCDEPMODE!$CCDEPMODE$ac_delim |
20526 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
20527 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
20528 | LN_S!$LN_S$ac_delim |
20529 | build!$build$ac_delim |
20530 | build_cpu!$build_cpu$ac_delim |
20531 | build_vendor!$build_vendor$ac_delim |
20532 | build_os!$build_os$ac_delim |
20533 | host!$host$ac_delim |
20534 | host_cpu!$host_cpu$ac_delim |
20535 | host_vendor!$host_vendor$ac_delim |
20536 | host_os!$host_os$ac_delim |
20537 | SED!$SED$ac_delim |
20538 | GREP!$GREP$ac_delim |
20539 | EGREP!$EGREP$ac_delim |
20540 | ECHO!$ECHO$ac_delim |
20541 | AR!$AR$ac_delim |
20542 | RANLIB!$RANLIB$ac_delim |
20543 | CPP!$CPP$ac_delim |
20544 | CXX!$CXX$ac_delim |
20545 | CXXFLAGS!$CXXFLAGS$ac_delim |
20546 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
20547 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
20548 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
20549 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
20550 | _ACEOF |
20551 | |
20552 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
20553 | break |
20554 | elif $ac_last_try; then |
20555 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20556 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20557 | { (exit 1); exit 1; }; } |
20558 | else |
20559 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
20560 | fi |
dd184caf |
20561 | done |
20562 | |
20563 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20564 | if test -n "$ac_eof"; then |
20565 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20566 | ac_eof=`expr $ac_eof + 1` |
20567 | fi |
20568 | |
20569 | cat >>$CONFIG_STATUS <<_ACEOF |
20570 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
20571 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20572 | _ACEOF |
20573 | sed ' |
20574 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20575 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20576 | :n |
20577 | t n |
20578 | s/'"$ac_delim"'$/,g/; t |
20579 | s/$/\\/; p |
20580 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20581 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20582 | rm -f conf$$subs.sed |
20583 | cat >>$CONFIG_STATUS <<_ACEOF |
20584 | CEOF$ac_eof |
20585 | _ACEOF |
20586 | |
20587 | |
20588 | ac_delim='%!_!# ' |
20589 | for ac_last_try in false false false false false :; do |
20590 | cat >conf$$subs.sed <<_ACEOF |
20591 | CXXCPP!$CXXCPP$ac_delim |
20592 | F77!$F77$ac_delim |
20593 | FFLAGS!$FFLAGS$ac_delim |
20594 | ac_ct_F77!$ac_ct_F77$ac_delim |
20595 | LIBTOOL!$LIBTOOL$ac_delim |
20596 | LIBOBJS!$LIBOBJS$ac_delim |
20597 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
20598 | _ACEOF |
20599 | |
20600 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then |
20601 | break |
20602 | elif $ac_last_try; then |
20603 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20604 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20605 | { (exit 1); exit 1; }; } |
20606 | else |
20607 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
20608 | fi |
20609 | done |
20610 | |
20611 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20612 | if test -n "$ac_eof"; then |
20613 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20614 | ac_eof=`expr $ac_eof + 1` |
20615 | fi |
d9898ee8 |
20616 | |
dd184caf |
20617 | cat >>$CONFIG_STATUS <<_ACEOF |
20618 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
20619 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
20620 | _ACEOF |
20621 | sed ' |
20622 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20623 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20624 | :n |
20625 | t n |
20626 | s/'"$ac_delim"'$/,g/; t |
20627 | s/$/\\/; p |
20628 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20629 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20630 | rm -f conf$$subs.sed |
20631 | cat >>$CONFIG_STATUS <<_ACEOF |
20632 | :end |
20633 | s/|#_!!_#|//g |
20634 | CEOF$ac_eof |
d9898ee8 |
20635 | _ACEOF |
dd184caf |
20636 | |
20637 | |
20638 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
20639 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
20640 | # trailing colons and then remove the whole line if VPATH becomes empty |
20641 | # (actually we leave an empty line to preserve line numbers). |
20642 | if test "x$srcdir" = x.; then |
20643 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
20644 | s/:*\$(srcdir):*/:/ |
20645 | s/:*\${srcdir}:*/:/ |
20646 | s/:*@srcdir@:*/:/ |
20647 | s/^\([^=]*=[ ]*\):*/\1/ |
20648 | s/:*$// |
20649 | s/^[^=]*=[ ]*$// |
20650 | }' |
20651 | fi |
20652 | |
d9898ee8 |
20653 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20654 | fi # test -n "$CONFIG_FILES" |
20655 | |
20656 | |
20657 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
20658 | do |
20659 | case $ac_tag in |
20660 | :[FHLC]) ac_mode=$ac_tag; continue;; |
20661 | esac |
20662 | case $ac_mode$ac_tag in |
20663 | :[FHL]*:*);; |
20664 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
20665 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
20666 | { (exit 1); exit 1; }; };; |
20667 | :[FH]-) ac_tag=-:-;; |
20668 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
d9898ee8 |
20669 | esac |
dd184caf |
20670 | ac_save_IFS=$IFS |
20671 | IFS=: |
20672 | set x $ac_tag |
20673 | IFS=$ac_save_IFS |
20674 | shift |
20675 | ac_file=$1 |
20676 | shift |
20677 | |
20678 | case $ac_mode in |
20679 | :L) ac_source=$1;; |
20680 | :[FH]) |
20681 | ac_file_inputs= |
20682 | for ac_f |
20683 | do |
20684 | case $ac_f in |
20685 | -) ac_f="$tmp/stdin";; |
20686 | *) # Look for the file first in the build tree, then in the source tree |
20687 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
20688 | # because $ac_f cannot contain `:'. |
20689 | test -f "$ac_f" || |
20690 | case $ac_f in |
20691 | [\\/$]*) false;; |
20692 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
20693 | esac || |
20694 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
20695 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
20696 | { (exit 1); exit 1; }; };; |
20697 | esac |
20698 | ac_file_inputs="$ac_file_inputs $ac_f" |
20699 | done |
20700 | |
20701 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20702 | # use $as_me), people would be surprised to read: |
20703 | # /* config.h. Generated by config.status. */ |
20704 | configure_input="Generated from "`IFS=: |
20705 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
20706 | if test x"$ac_file" != x-; then |
20707 | configure_input="$ac_file. $configure_input" |
20708 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20709 | echo "$as_me: creating $ac_file" >&6;} |
20710 | fi |
d9898ee8 |
20711 | |
dd184caf |
20712 | case $ac_tag in |
20713 | *:-:* | *:-) cat >"$tmp/stdin";; |
20714 | esac |
20715 | ;; |
20716 | esac |
20717 | |
20718 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
20719 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20720 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20721 | X"$ac_file" : 'X\(//\)$' \| \ |
dd184caf |
20722 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20723 | echo X"$ac_file" | |
dd184caf |
20724 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20725 | s//\1/ |
20726 | q |
20727 | } |
20728 | /^X\(\/\/\)[^/].*/{ |
20729 | s//\1/ |
20730 | q |
20731 | } |
20732 | /^X\(\/\/\)$/{ |
20733 | s//\1/ |
20734 | q |
20735 | } |
20736 | /^X\(\/\).*/{ |
20737 | s//\1/ |
20738 | q |
20739 | } |
20740 | s/.*/./; q'` |
20741 | { as_dir="$ac_dir" |
20742 | case $as_dir in #( |
20743 | -*) as_dir=./$as_dir;; |
20744 | esac |
20745 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
20746 | as_dirs= |
dd184caf |
20747 | while :; do |
20748 | case $as_dir in #( |
20749 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
20750 | *) as_qdir=$as_dir;; |
20751 | esac |
20752 | as_dirs="'$as_qdir' $as_dirs" |
20753 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
20754 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20755 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20756 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
20757 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20758 | echo X"$as_dir" | |
dd184caf |
20759 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20760 | s//\1/ |
20761 | q |
20762 | } |
20763 | /^X\(\/\/\)[^/].*/{ |
20764 | s//\1/ |
20765 | q |
20766 | } |
20767 | /^X\(\/\/\)$/{ |
20768 | s//\1/ |
20769 | q |
20770 | } |
20771 | /^X\(\/\).*/{ |
20772 | s//\1/ |
20773 | q |
20774 | } |
20775 | s/.*/./; q'` |
20776 | test -d "$as_dir" && break |
d9898ee8 |
20777 | done |
dd184caf |
20778 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
20779 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
20780 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
20781 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
20782 | ac_builddir=. |
20783 | |
dd184caf |
20784 | case "$ac_dir" in |
20785 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
20786 | *) |
d9898ee8 |
20787 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
20788 | # A ".." for each directory in $ac_dir_suffix. |
20789 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
20790 | case $ac_top_builddir_sub in |
20791 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
20792 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
20793 | esac ;; |
20794 | esac |
20795 | ac_abs_top_builddir=$ac_pwd |
20796 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
20797 | # for backward compatibility: |
20798 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
20799 | |
20800 | case $srcdir in |
dd184caf |
20801 | .) # We are building in place. |
d9898ee8 |
20802 | ac_srcdir=. |
dd184caf |
20803 | ac_top_srcdir=$ac_top_builddir_sub |
20804 | ac_abs_top_srcdir=$ac_pwd ;; |
20805 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
20806 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
20807 | ac_top_srcdir=$srcdir |
20808 | ac_abs_top_srcdir=$srcdir ;; |
20809 | *) # Relative name. |
20810 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
20811 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
20812 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
20813 | esac |
dd184caf |
20814 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
20815 | |
d9898ee8 |
20816 | |
dd184caf |
20817 | case $ac_mode in |
20818 | :F) |
20819 | # |
20820 | # CONFIG_FILE |
20821 | # |
d9898ee8 |
20822 | |
20823 | case $INSTALL in |
20824 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
dd184caf |
20825 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
20826 | esac |
20827 | ac_MKDIR_P=$MKDIR_P |
20828 | case $MKDIR_P in |
20829 | [\\/$]* | ?:[\\/]* ) ;; |
20830 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
d9898ee8 |
20831 | esac |
dd184caf |
20832 | _ACEOF |
d9898ee8 |
20833 | |
dd184caf |
20834 | cat >>$CONFIG_STATUS <<\_ACEOF |
20835 | # If the template does not know about datarootdir, expand it. |
20836 | # FIXME: This hack should be removed a few years after 2.60. |
20837 | ac_datarootdir_hack=; ac_datarootdir_seen= |
20838 | |
20839 | case `sed -n '/datarootdir/ { |
20840 | p |
20841 | q |
20842 | } |
20843 | /@datadir@/p |
20844 | /@docdir@/p |
20845 | /@infodir@/p |
20846 | /@localedir@/p |
20847 | /@mandir@/p |
20848 | ' $ac_file_inputs` in |
20849 | *datarootdir*) ac_datarootdir_seen=yes;; |
20850 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
20851 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
20852 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 |
20853 | _ACEOF |
dd184caf |
20854 | cat >>$CONFIG_STATUS <<_ACEOF |
20855 | ac_datarootdir_hack=' |
20856 | s&@datadir@&$datadir&g |
20857 | s&@docdir@&$docdir&g |
20858 | s&@infodir@&$infodir&g |
20859 | s&@localedir@&$localedir&g |
20860 | s&@mandir@&$mandir&g |
20861 | s&\\\${datarootdir}&$datarootdir&g' ;; |
20862 | esac |
20863 | _ACEOF |
20864 | |
20865 | # Neutralize VPATH when `$srcdir' = `.'. |
20866 | # Shell code in configure.ac might set extrasub. |
20867 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
20868 | cat >>$CONFIG_STATUS <<_ACEOF |
20869 | sed "$ac_vpsub |
20870 | $extrasub |
20871 | _ACEOF |
20872 | cat >>$CONFIG_STATUS <<\_ACEOF |
20873 | :t |
20874 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
dd184caf |
20875 | s&@configure_input@&$configure_input&;t t |
20876 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
20877 | s&@srcdir@&$ac_srcdir&;t t |
20878 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
20879 | s&@top_srcdir@&$ac_top_srcdir&;t t |
20880 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
20881 | s&@builddir@&$ac_builddir&;t t |
20882 | s&@abs_builddir@&$ac_abs_builddir&;t t |
20883 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
20884 | s&@INSTALL@&$ac_INSTALL&;t t |
20885 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
20886 | $ac_datarootdir_hack |
20887 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
20888 | |
20889 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
20890 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
20891 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
20892 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
20893 | which seems to be undefined. Please make sure it is defined." >&5 |
20894 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
20895 | which seems to be undefined. Please make sure it is defined." >&2;} |
20896 | |
20897 | rm -f "$tmp/stdin" |
d9898ee8 |
20898 | case $ac_file in |
dd184caf |
20899 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
20900 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
20901 | esac |
dd184caf |
20902 | ;; |
20903 | :H) |
20904 | # |
20905 | # CONFIG_HEADER |
20906 | # |
d9898ee8 |
20907 | _ACEOF |
20908 | |
dd184caf |
20909 | # Transform confdefs.h into a sed script `conftest.defines', that |
20910 | # substitutes the proper values into config.h.in to produce config.h. |
20911 | rm -f conftest.defines conftest.tail |
20912 | # First, append a space to every undef/define line, to ease matching. |
20913 | echo 's/$/ /' >conftest.defines |
20914 | # Then, protect against being on the right side of a sed subst, or in |
20915 | # an unquoted here document, in config.status. If some macros were |
20916 | # called several times there might be several #defines for the same |
20917 | # symbol, which is useless. But do not sort them, since the last |
20918 | # AC_DEFINE must be honored. |
20919 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
20920 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
20921 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
20922 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
20923 | # just an empty string. |
20924 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
20925 | ac_dB='\\)[ (].*,\\1define\\2' |
20926 | ac_dC=' ' |
20927 | ac_dD=' ,' |
20928 | |
20929 | uniq confdefs.h | |
20930 | sed -n ' |
20931 | t rset |
20932 | :rset |
20933 | s/^[ ]*#[ ]*define[ ][ ]*// |
20934 | t ok |
20935 | d |
20936 | :ok |
20937 | s/[\\&,]/\\&/g |
20938 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
20939 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
20940 | ' >>conftest.defines |
20941 | |
20942 | # Remove the space that was appended to ease matching. |
20943 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
20944 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
20945 | # on some systems where configure will not decide to define it. |
dd184caf |
20946 | # (The regexp can be short, since the line contains either #define or #undef.) |
20947 | echo 's/ $// |
20948 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
20949 | |
20950 | # Break up conftest.defines: |
20951 | ac_max_sed_lines=50 |
20952 | |
20953 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
20954 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
20955 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
20956 | # et cetera. |
20957 | ac_in='$ac_file_inputs' |
20958 | ac_out='"$tmp/out1"' |
20959 | ac_nxt='"$tmp/out2"' |
20960 | |
20961 | while : |
d9898ee8 |
20962 | do |
dd184caf |
20963 | # Write a here document: |
20964 | cat >>$CONFIG_STATUS <<_ACEOF |
20965 | # First, check the format of the line: |
20966 | cat >"\$tmp/defines.sed" <<\\CEOF |
20967 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
20968 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
20969 | b |
20970 | :def |
20971 | _ACEOF |
20972 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
20973 | echo 'CEOF |
dd184caf |
20974 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
20975 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
20976 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
20977 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
20978 | rm -f conftest.defines |
20979 | mv conftest.tail conftest.defines |
20980 | done |
dd184caf |
20981 | rm -f conftest.defines conftest.tail |
d9898ee8 |
20982 | |
dd184caf |
20983 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
20984 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
20985 | if test x"$ac_file" != x-; then |
dd184caf |
20986 | echo "/* $configure_input */" >"$tmp/config.h" |
20987 | cat "$ac_result" >>"$tmp/config.h" |
20988 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
20989 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
20990 | echo "$as_me: $ac_file is unchanged" >&6;} |
20991 | else |
d9898ee8 |
20992 | rm -f $ac_file |
dd184caf |
20993 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
20994 | fi |
20995 | else |
dd184caf |
20996 | echo "/* $configure_input */" |
20997 | cat "$ac_result" |
d9898ee8 |
20998 | fi |
dd184caf |
20999 | rm -f "$tmp/out12" |
d9898ee8 |
21000 | # Compute $ac_file's index in $config_headers. |
ac40fd9e |
21001 | _am_arg=$ac_file |
d9898ee8 |
21002 | _am_stamp_count=1 |
21003 | for _am_header in $config_headers :; do |
21004 | case $_am_header in |
ac40fd9e |
21005 | $_am_arg | $_am_arg:* ) |
d9898ee8 |
21006 | break ;; |
21007 | * ) |
21008 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21009 | esac |
21010 | done |
ac40fd9e |
21011 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
21012 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21013 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
21014 | X"$_am_arg" : 'X\(//\)$' \| \ |
21015 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
21016 | echo X"$_am_arg" | |
dd184caf |
21017 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21018 | s//\1/ |
21019 | q |
21020 | } |
21021 | /^X\(\/\/\)[^/].*/{ |
21022 | s//\1/ |
21023 | q |
21024 | } |
21025 | /^X\(\/\/\)$/{ |
21026 | s//\1/ |
21027 | q |
21028 | } |
21029 | /^X\(\/\).*/{ |
21030 | s//\1/ |
21031 | q |
21032 | } |
21033 | s/.*/./; q'`/stamp-h$_am_stamp_count |
21034 | ;; |
d9898ee8 |
21035 | |
dd184caf |
21036 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
21037 | echo "$as_me: executing $ac_file commands" >&6;} |
21038 | ;; |
21039 | esac |
d9898ee8 |
21040 | |
21041 | |
dd184caf |
21042 | case $ac_file$ac_mode in |
21043 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
21044 | # Strip MF so we end up with the name of the file. |
21045 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
21046 | # Check whether this is an Automake generated Makefile or not. |
21047 | # We used to match only the files named `Makefile.in', but |
21048 | # some people rename them; so instead we look at the file content. |
21049 | # Grep'ing the first line is not enough: some people post-process |
21050 | # each Makefile.in and add a new line on top of each file to say so. |
dd184caf |
21051 | # Grep'ing the whole file is not good either: AIX grep has a line |
21052 | # limit of 2048, but all sed's we know have understand at least 4000. |
ac40fd9e |
21053 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
dd184caf |
21054 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
21055 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21056 | X"$mf" : 'X\(//\)[^/]' \| \ |
21057 | X"$mf" : 'X\(//\)$' \| \ |
dd184caf |
21058 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21059 | echo X"$mf" | |
dd184caf |
21060 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21061 | s//\1/ |
21062 | q |
21063 | } |
21064 | /^X\(\/\/\)[^/].*/{ |
21065 | s//\1/ |
21066 | q |
21067 | } |
21068 | /^X\(\/\/\)$/{ |
21069 | s//\1/ |
21070 | q |
21071 | } |
21072 | /^X\(\/\).*/{ |
21073 | s//\1/ |
21074 | q |
21075 | } |
21076 | s/.*/./; q'` |
d9898ee8 |
21077 | else |
21078 | continue |
21079 | fi |
21080 | # Extract the definition of DEPDIR, am__include, and am__quote |
21081 | # from the Makefile without running `make'. |
21082 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21083 | test -z "$DEPDIR" && continue |
21084 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21085 | test -z "am__include" && continue |
21086 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21087 | # When using ansi2knr, U may be empty or an underscore; expand it |
21088 | U=`sed -n 's/^U = //p' < "$mf"` |
21089 | # Find all dependency output files, they are included files with |
21090 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21091 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21092 | # expansion. |
21093 | for file in `sed -n " |
21094 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21095 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21096 | # Make sure the directory exists. |
21097 | test -f "$dirpart/$file" && continue |
dd184caf |
21098 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
21099 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21100 | X"$file" : 'X\(//\)[^/]' \| \ |
21101 | X"$file" : 'X\(//\)$' \| \ |
dd184caf |
21102 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21103 | echo X"$file" | |
dd184caf |
21104 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21105 | s//\1/ |
21106 | q |
21107 | } |
21108 | /^X\(\/\/\)[^/].*/{ |
21109 | s//\1/ |
21110 | q |
21111 | } |
21112 | /^X\(\/\/\)$/{ |
21113 | s//\1/ |
21114 | q |
21115 | } |
21116 | /^X\(\/\).*/{ |
21117 | s//\1/ |
21118 | q |
21119 | } |
21120 | s/.*/./; q'` |
21121 | { as_dir=$dirpart/$fdir |
21122 | case $as_dir in #( |
21123 | -*) as_dir=./$as_dir;; |
21124 | esac |
21125 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21126 | as_dirs= |
dd184caf |
21127 | while :; do |
21128 | case $as_dir in #( |
21129 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21130 | *) as_qdir=$as_dir;; |
21131 | esac |
21132 | as_dirs="'$as_qdir' $as_dirs" |
21133 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21134 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21135 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21136 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
21137 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21138 | echo X"$as_dir" | |
dd184caf |
21139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21140 | s//\1/ |
21141 | q |
21142 | } |
21143 | /^X\(\/\/\)[^/].*/{ |
21144 | s//\1/ |
21145 | q |
21146 | } |
21147 | /^X\(\/\/\)$/{ |
21148 | s//\1/ |
21149 | q |
21150 | } |
21151 | /^X\(\/\).*/{ |
21152 | s//\1/ |
21153 | q |
21154 | } |
21155 | s/.*/./; q'` |
21156 | test -d "$as_dir" && break |
d9898ee8 |
21157 | done |
dd184caf |
21158 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21159 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21160 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21161 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21162 | # echo "creating $dirpart/$file" |
21163 | echo '# dummy' > "$dirpart/$file" |
21164 | done |
21165 | done |
21166 | ;; |
dd184caf |
21167 | |
d9898ee8 |
21168 | esac |
dd184caf |
21169 | done # for ac_tag |
d9898ee8 |
21170 | |
d9898ee8 |
21171 | |
21172 | { (exit 0); exit 0; } |
21173 | _ACEOF |
21174 | chmod +x $CONFIG_STATUS |
21175 | ac_clean_files=$ac_clean_files_save |
21176 | |
21177 | |
21178 | # configure is writing to config.log, and then calls config.status. |
21179 | # config.status does its own redirection, appending to config.log. |
21180 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21181 | # by configure, so config.status won't be able to write to it; its |
21182 | # output is simply discarded. So we exec the FD to /dev/null, |
21183 | # effectively closing config.log, so it can be properly (re)opened and |
21184 | # appended to by config.status. When coming back to configure, we |
21185 | # need to make the FD available again. |
21186 | if test "$no_create" != yes; then |
21187 | ac_cs_success=: |
21188 | ac_config_status_args= |
21189 | test "$silent" = yes && |
21190 | ac_config_status_args="$ac_config_status_args --quiet" |
21191 | exec 5>/dev/null |
21192 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21193 | exec 5>>config.log |
21194 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21195 | # would make configure fail if this is the last instruction. |
21196 | $ac_cs_success || { (exit 1); exit 1; } |
21197 | fi |
21198 | |