d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
dd184caf |
3 | # Generated by GNU Autoconf 2.61 for makedat 0.60. |
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='makedat' |
730 | PACKAGE_TARNAME='makedat' |
731 | PACKAGE_VERSION='0.60' |
732 | PACKAGE_STRING='makedat 0.60' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="makedatprog.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 | PERL |
849 | CAT |
850 | build |
851 | build_cpu |
852 | build_vendor |
853 | build_os |
854 | host |
855 | host_cpu |
856 | host_vendor |
857 | host_os |
858 | SED |
859 | GREP |
860 | EGREP |
861 | ECHO |
862 | AR |
863 | RANLIB |
864 | CPP |
865 | CXX |
866 | CXXFLAGS |
867 | ac_ct_CXX |
868 | CXXDEPMODE |
869 | am__fastdepCXX_TRUE |
870 | am__fastdepCXX_FALSE |
871 | CXXCPP |
872 | F77 |
873 | FFLAGS |
874 | ac_ct_F77 |
875 | LIBTOOL |
876 | makedatprog_target |
877 | dblibrary |
878 | LIBGDBM |
879 | LIBDB |
880 | USE_GDBM_TRUE |
881 | USE_GDBM_FALSE |
882 | USE_DB_TRUE |
883 | USE_DB_FALSE |
884 | makedatprogpath |
885 | LIBOBJS |
886 | LTLIBOBJS' |
d9898ee8 |
887 | ac_subst_files='' |
dd184caf |
888 | ac_precious_vars='build_alias |
889 | host_alias |
890 | target_alias |
891 | CC |
892 | CFLAGS |
893 | LDFLAGS |
894 | LIBS |
895 | CPPFLAGS |
896 | CPP |
897 | CXX |
898 | CXXFLAGS |
899 | CCC |
900 | CXXCPP |
901 | F77 |
902 | FFLAGS' |
903 | |
d9898ee8 |
904 | |
905 | # Initialize some variables set by options. |
906 | ac_init_help= |
907 | ac_init_version=false |
908 | # The variables have the same names as the options, with |
909 | # dashes changed to underlines. |
910 | cache_file=/dev/null |
911 | exec_prefix=NONE |
912 | no_create= |
913 | no_recursion= |
914 | prefix=NONE |
915 | program_prefix=NONE |
916 | program_suffix=NONE |
917 | program_transform_name=s,x,x, |
918 | silent= |
919 | site= |
920 | srcdir= |
921 | verbose= |
922 | x_includes=NONE |
923 | x_libraries=NONE |
924 | |
925 | # Installation directory options. |
926 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
927 | # and all the variables that are supposed to be based on exec_prefix |
928 | # by default will actually change. |
929 | # Use braces instead of parens because sh, perl, etc. also accept them. |
dd184caf |
930 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
931 | bindir='${exec_prefix}/bin' |
932 | sbindir='${exec_prefix}/sbin' |
933 | libexecdir='${exec_prefix}/libexec' |
dd184caf |
934 | datarootdir='${prefix}/share' |
935 | datadir='${datarootdir}' |
d9898ee8 |
936 | sysconfdir='${prefix}/etc' |
937 | sharedstatedir='${prefix}/com' |
938 | localstatedir='${prefix}/var' |
d9898ee8 |
939 | includedir='${prefix}/include' |
940 | oldincludedir='/usr/include' |
dd184caf |
941 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
942 | infodir='${datarootdir}/info' |
943 | htmldir='${docdir}' |
944 | dvidir='${docdir}' |
945 | pdfdir='${docdir}' |
946 | psdir='${docdir}' |
947 | libdir='${exec_prefix}/lib' |
948 | localedir='${datarootdir}/locale' |
949 | mandir='${datarootdir}/man' |
d9898ee8 |
950 | |
951 | ac_prev= |
dd184caf |
952 | ac_dashdash= |
d9898ee8 |
953 | for ac_option |
954 | do |
955 | # If the previous option needs an argument, assign it. |
956 | if test -n "$ac_prev"; then |
dd184caf |
957 | eval $ac_prev=\$ac_option |
d9898ee8 |
958 | ac_prev= |
959 | continue |
960 | fi |
961 | |
dd184caf |
962 | case $ac_option in |
963 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
964 | *) ac_optarg=yes ;; |
965 | esac |
d9898ee8 |
966 | |
967 | # Accept the important Cygnus configure options, so we can diagnose typos. |
968 | |
dd184caf |
969 | case $ac_dashdash$ac_option in |
970 | --) |
971 | ac_dashdash=yes ;; |
d9898ee8 |
972 | |
973 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
974 | ac_prev=bindir ;; |
975 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
976 | bindir=$ac_optarg ;; |
977 | |
978 | -build | --build | --buil | --bui | --bu) |
979 | ac_prev=build_alias ;; |
980 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
981 | build_alias=$ac_optarg ;; |
982 | |
983 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
984 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
985 | ac_prev=cache_file ;; |
986 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
987 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
988 | cache_file=$ac_optarg ;; |
989 | |
990 | --config-cache | -C) |
991 | cache_file=config.cache ;; |
992 | |
dd184caf |
993 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
994 | ac_prev=datadir ;; |
dd184caf |
995 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
996 | datadir=$ac_optarg ;; |
997 | |
dd184caf |
998 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
999 | | --dataroo | --dataro | --datar) |
1000 | ac_prev=datarootdir ;; |
1001 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
1002 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
1003 | datarootdir=$ac_optarg ;; |
1004 | |
d9898ee8 |
1005 | -disable-* | --disable-*) |
1006 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1007 | # Reject names that are not valid shell variable names. |
dd184caf |
1008 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1009 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1010 | { (exit 1); exit 1; }; } |
dd184caf |
1011 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1012 | eval enable_$ac_feature=no ;; |
1013 | |
1014 | -docdir | --docdir | --docdi | --doc | --do) |
1015 | ac_prev=docdir ;; |
1016 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1017 | docdir=$ac_optarg ;; |
1018 | |
1019 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1020 | ac_prev=dvidir ;; |
1021 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1022 | dvidir=$ac_optarg ;; |
d9898ee8 |
1023 | |
1024 | -enable-* | --enable-*) |
1025 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1026 | # Reject names that are not valid shell variable names. |
dd184caf |
1027 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1028 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1029 | { (exit 1); exit 1; }; } |
dd184caf |
1030 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1031 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1032 | |
1033 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1034 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1035 | | --exec | --exe | --ex) |
1036 | ac_prev=exec_prefix ;; |
1037 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1038 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1039 | | --exec=* | --exe=* | --ex=*) |
1040 | exec_prefix=$ac_optarg ;; |
1041 | |
1042 | -gas | --gas | --ga | --g) |
1043 | # Obsolete; use --with-gas. |
1044 | with_gas=yes ;; |
1045 | |
1046 | -help | --help | --hel | --he | -h) |
1047 | ac_init_help=long ;; |
1048 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1049 | ac_init_help=recursive ;; |
1050 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1051 | ac_init_help=short ;; |
1052 | |
1053 | -host | --host | --hos | --ho) |
1054 | ac_prev=host_alias ;; |
1055 | -host=* | --host=* | --hos=* | --ho=*) |
1056 | host_alias=$ac_optarg ;; |
1057 | |
dd184caf |
1058 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1059 | ac_prev=htmldir ;; |
1060 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1061 | | --ht=*) |
1062 | htmldir=$ac_optarg ;; |
1063 | |
d9898ee8 |
1064 | -includedir | --includedir | --includedi | --included | --include \ |
1065 | | --includ | --inclu | --incl | --inc) |
1066 | ac_prev=includedir ;; |
1067 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1068 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1069 | includedir=$ac_optarg ;; |
1070 | |
1071 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1072 | ac_prev=infodir ;; |
1073 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1074 | infodir=$ac_optarg ;; |
1075 | |
1076 | -libdir | --libdir | --libdi | --libd) |
1077 | ac_prev=libdir ;; |
1078 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1079 | libdir=$ac_optarg ;; |
1080 | |
1081 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1082 | | --libexe | --libex | --libe) |
1083 | ac_prev=libexecdir ;; |
1084 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1085 | | --libexe=* | --libex=* | --libe=*) |
1086 | libexecdir=$ac_optarg ;; |
1087 | |
dd184caf |
1088 | -localedir | --localedir | --localedi | --localed | --locale) |
1089 | ac_prev=localedir ;; |
1090 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1091 | localedir=$ac_optarg ;; |
1092 | |
d9898ee8 |
1093 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf |
1094 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1095 | ac_prev=localstatedir ;; |
1096 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
dd184caf |
1097 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1098 | localstatedir=$ac_optarg ;; |
1099 | |
1100 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1101 | ac_prev=mandir ;; |
1102 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1103 | mandir=$ac_optarg ;; |
1104 | |
1105 | -nfp | --nfp | --nf) |
1106 | # Obsolete; use --without-fp. |
1107 | with_fp=no ;; |
1108 | |
1109 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1110 | | --no-cr | --no-c | -n) |
1111 | no_create=yes ;; |
1112 | |
1113 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1114 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1115 | no_recursion=yes ;; |
1116 | |
1117 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1118 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1119 | | --oldin | --oldi | --old | --ol | --o) |
1120 | ac_prev=oldincludedir ;; |
1121 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1122 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1123 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1124 | oldincludedir=$ac_optarg ;; |
1125 | |
1126 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1127 | ac_prev=prefix ;; |
1128 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1129 | prefix=$ac_optarg ;; |
1130 | |
1131 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1132 | | --program-pre | --program-pr | --program-p) |
1133 | ac_prev=program_prefix ;; |
1134 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1135 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1136 | program_prefix=$ac_optarg ;; |
1137 | |
1138 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1139 | | --program-suf | --program-su | --program-s) |
1140 | ac_prev=program_suffix ;; |
1141 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1142 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1143 | program_suffix=$ac_optarg ;; |
1144 | |
1145 | -program-transform-name | --program-transform-name \ |
1146 | | --program-transform-nam | --program-transform-na \ |
1147 | | --program-transform-n | --program-transform- \ |
1148 | | --program-transform | --program-transfor \ |
1149 | | --program-transfo | --program-transf \ |
1150 | | --program-trans | --program-tran \ |
1151 | | --progr-tra | --program-tr | --program-t) |
1152 | ac_prev=program_transform_name ;; |
1153 | -program-transform-name=* | --program-transform-name=* \ |
1154 | | --program-transform-nam=* | --program-transform-na=* \ |
1155 | | --program-transform-n=* | --program-transform-=* \ |
1156 | | --program-transform=* | --program-transfor=* \ |
1157 | | --program-transfo=* | --program-transf=* \ |
1158 | | --program-trans=* | --program-tran=* \ |
1159 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1160 | program_transform_name=$ac_optarg ;; |
1161 | |
dd184caf |
1162 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1163 | ac_prev=pdfdir ;; |
1164 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1165 | pdfdir=$ac_optarg ;; |
1166 | |
1167 | -psdir | --psdir | --psdi | --psd | --ps) |
1168 | ac_prev=psdir ;; |
1169 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1170 | psdir=$ac_optarg ;; |
1171 | |
d9898ee8 |
1172 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1173 | | -silent | --silent | --silen | --sile | --sil) |
1174 | silent=yes ;; |
1175 | |
1176 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1177 | ac_prev=sbindir ;; |
1178 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1179 | | --sbi=* | --sb=*) |
1180 | sbindir=$ac_optarg ;; |
1181 | |
1182 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1183 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1184 | | --sharedst | --shareds | --shared | --share | --shar \ |
1185 | | --sha | --sh) |
1186 | ac_prev=sharedstatedir ;; |
1187 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1188 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1189 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1190 | | --sha=* | --sh=*) |
1191 | sharedstatedir=$ac_optarg ;; |
1192 | |
1193 | -site | --site | --sit) |
1194 | ac_prev=site ;; |
1195 | -site=* | --site=* | --sit=*) |
1196 | site=$ac_optarg ;; |
1197 | |
1198 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1199 | ac_prev=srcdir ;; |
1200 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1201 | srcdir=$ac_optarg ;; |
1202 | |
1203 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1204 | | --syscon | --sysco | --sysc | --sys | --sy) |
1205 | ac_prev=sysconfdir ;; |
1206 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1207 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1208 | sysconfdir=$ac_optarg ;; |
1209 | |
1210 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1211 | ac_prev=target_alias ;; |
1212 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1213 | target_alias=$ac_optarg ;; |
1214 | |
1215 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1216 | verbose=yes ;; |
1217 | |
1218 | -version | --version | --versio | --versi | --vers | -V) |
1219 | ac_init_version=: ;; |
1220 | |
1221 | -with-* | --with-*) |
1222 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1223 | # Reject names that are not valid shell variable names. |
dd184caf |
1224 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1225 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1226 | { (exit 1); exit 1; }; } |
dd184caf |
1227 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1228 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1229 | |
1230 | -without-* | --without-*) |
1231 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1232 | # Reject names that are not valid shell variable names. |
dd184caf |
1233 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1234 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1235 | { (exit 1); exit 1; }; } |
dd184caf |
1236 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1237 | eval with_$ac_package=no ;; |
d9898ee8 |
1238 | |
1239 | --x) |
1240 | # Obsolete; use --with-x. |
1241 | with_x=yes ;; |
1242 | |
1243 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1244 | | --x-incl | --x-inc | --x-in | --x-i) |
1245 | ac_prev=x_includes ;; |
1246 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1247 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1248 | x_includes=$ac_optarg ;; |
1249 | |
1250 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1251 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1252 | ac_prev=x_libraries ;; |
1253 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1254 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1255 | x_libraries=$ac_optarg ;; |
1256 | |
1257 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1258 | Try \`$0 --help' for more information." >&2 |
1259 | { (exit 1); exit 1; }; } |
1260 | ;; |
1261 | |
1262 | *=*) |
1263 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1264 | # Reject names that are not valid shell variable names. |
1265 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1266 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1267 | { (exit 1); exit 1; }; } |
dd184caf |
1268 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1269 | export $ac_envvar ;; |
1270 | |
1271 | *) |
1272 | # FIXME: should be removed in autoconf 3.0. |
1273 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1274 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1275 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1276 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1277 | ;; |
1278 | |
1279 | esac |
1280 | done |
1281 | |
1282 | if test -n "$ac_prev"; then |
1283 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1284 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1285 | { (exit 1); exit 1; }; } |
1286 | fi |
1287 | |
dd184caf |
1288 | # Be sure to have absolute directory names. |
1289 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1290 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1291 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1292 | libdir localedir mandir |
d9898ee8 |
1293 | do |
dd184caf |
1294 | eval ac_val=\$$ac_var |
d9898ee8 |
1295 | case $ac_val in |
dd184caf |
1296 | [\\/$]* | ?:[\\/]* ) continue;; |
1297 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1298 | esac |
dd184caf |
1299 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1300 | { (exit 1); exit 1; }; } |
d9898ee8 |
1301 | done |
1302 | |
1303 | # There might be people who depend on the old broken behavior: `$host' |
1304 | # used to hold the argument of --host etc. |
1305 | # FIXME: To remove some day. |
1306 | build=$build_alias |
1307 | host=$host_alias |
1308 | target=$target_alias |
1309 | |
1310 | # FIXME: To remove some day. |
1311 | if test "x$host_alias" != x; then |
1312 | if test "x$build_alias" = x; then |
1313 | cross_compiling=maybe |
1314 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1315 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1316 | elif test "x$build_alias" != "x$host_alias"; then |
1317 | cross_compiling=yes |
1318 | fi |
1319 | fi |
1320 | |
1321 | ac_tool_prefix= |
1322 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1323 | |
1324 | test "$silent" = yes && exec 6>/dev/null |
1325 | |
1326 | |
dd184caf |
1327 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1328 | ac_ls_di=`ls -di .` && |
1329 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1330 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1331 | { (exit 1); exit 1; }; } |
1332 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1333 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1334 | { (exit 1); exit 1; }; } |
1335 | |
1336 | |
d9898ee8 |
1337 | # Find the source files, if location was not specified. |
1338 | if test -z "$srcdir"; then |
1339 | ac_srcdir_defaulted=yes |
dd184caf |
1340 | # Try the directory containing this script, then the parent directory. |
1341 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1342 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1343 | X"$0" : 'X\(//\)[^/]' \| \ |
1344 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
1345 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1346 | echo X"$0" | |
dd184caf |
1347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1348 | s//\1/ |
1349 | q |
1350 | } |
1351 | /^X\(\/\/\)[^/].*/{ |
1352 | s//\1/ |
1353 | q |
1354 | } |
1355 | /^X\(\/\/\)$/{ |
1356 | s//\1/ |
1357 | q |
1358 | } |
1359 | /^X\(\/\).*/{ |
1360 | s//\1/ |
1361 | q |
1362 | } |
1363 | s/.*/./; q'` |
d9898ee8 |
1364 | srcdir=$ac_confdir |
dd184caf |
1365 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1366 | srcdir=.. |
1367 | fi |
1368 | else |
1369 | ac_srcdir_defaulted=no |
1370 | fi |
dd184caf |
1371 | if test ! -r "$srcdir/$ac_unique_file"; then |
1372 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1373 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1374 | { (exit 1); exit 1; }; } |
d9898ee8 |
1375 | fi |
dd184caf |
1376 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1377 | ac_abs_confdir=`( |
1378 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1379 | { (exit 1); exit 1; }; } |
dd184caf |
1380 | pwd)` |
1381 | # When building in place, set srcdir=. |
1382 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1383 | srcdir=. |
1384 | fi |
1385 | # Remove unnecessary trailing slashes from srcdir. |
1386 | # Double slashes in file names in object file debugging info |
1387 | # mess up M-x gdb in Emacs. |
1388 | case $srcdir in |
1389 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1390 | esac |
1391 | for ac_var in $ac_precious_vars; do |
1392 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1393 | eval ac_env_${ac_var}_value=\$${ac_var} |
1394 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1395 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1396 | done |
d9898ee8 |
1397 | |
1398 | # |
1399 | # Report the --help message. |
1400 | # |
1401 | if test "$ac_init_help" = "long"; then |
1402 | # Omit some internal or obsolete options to make the list less imposing. |
1403 | # This message is too long to be a string in the A/UX 3.1 sh. |
1404 | cat <<_ACEOF |
1405 | \`configure' configures makedat 0.60 to adapt to many kinds of systems. |
1406 | |
1407 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1408 | |
1409 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1410 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1411 | |
1412 | Defaults for the options are specified in brackets. |
1413 | |
1414 | Configuration: |
1415 | -h, --help display this help and exit |
1416 | --help=short display options specific to this package |
1417 | --help=recursive display the short help of all the included packages |
1418 | -V, --version display version information and exit |
1419 | -q, --quiet, --silent do not print \`checking...' messages |
1420 | --cache-file=FILE cache test results in FILE [disabled] |
1421 | -C, --config-cache alias for \`--cache-file=config.cache' |
1422 | -n, --no-create do not create output files |
1423 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1424 | |
d9898ee8 |
1425 | Installation directories: |
1426 | --prefix=PREFIX install architecture-independent files in PREFIX |
1427 | [$ac_default_prefix] |
1428 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1429 | [PREFIX] |
1430 | |
1431 | By default, \`make install' will install all the files in |
1432 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1433 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1434 | for instance \`--prefix=\$HOME'. |
1435 | |
1436 | For better control, use the options below. |
1437 | |
1438 | Fine tuning of the installation directories: |
1439 | --bindir=DIR user executables [EPREFIX/bin] |
1440 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1441 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1442 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1443 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1444 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1445 | --libdir=DIR object code libraries [EPREFIX/lib] |
1446 | --includedir=DIR C header files [PREFIX/include] |
1447 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
dd184caf |
1448 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1449 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1450 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1451 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1452 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1453 | --docdir=DIR documentation root [DATAROOTDIR/doc/makedat] |
1454 | --htmldir=DIR html documentation [DOCDIR] |
1455 | --dvidir=DIR dvi documentation [DOCDIR] |
1456 | --pdfdir=DIR pdf documentation [DOCDIR] |
1457 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1458 | _ACEOF |
1459 | |
1460 | cat <<\_ACEOF |
1461 | |
1462 | Program names: |
1463 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1464 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1465 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1466 | |
1467 | System types: |
1468 | --build=BUILD configure for building on BUILD [guessed] |
1469 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1470 | _ACEOF |
1471 | fi |
1472 | |
1473 | if test -n "$ac_init_help"; then |
1474 | case $ac_init_help in |
1475 | short | recursive ) echo "Configuration of makedat 0.60:";; |
1476 | esac |
1477 | cat <<\_ACEOF |
1478 | |
1479 | Optional Features: |
1480 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1481 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1482 | --disable-dependency-tracking speeds up one-time build |
1483 | --enable-dependency-tracking do not reject slow dependency extractors |
dd184caf |
1484 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1485 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1486 | --enable-fast-install[=PKGS] |
1487 | optimize for fast installation [default=yes] |
1488 | --disable-libtool-lock avoid locking (might break parallel builds) |
1489 | |
1490 | Optional Packages: |
1491 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1492 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1493 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1494 | --with-pic try to use only PIC/non-PIC objects [default=use |
1495 | both] |
dd184caf |
1496 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1497 | |
1498 | --with-makedatprog=filename Installed location and name of makedatprog |
1499 | |
1500 | Some influential environment variables: |
1501 | CC C compiler command |
1502 | CFLAGS C compiler flags |
1503 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1504 | nonstandard directory <lib dir> |
dd184caf |
1505 | LIBS libraries to pass to the linker, e.g. -l<library> |
1506 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1507 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1508 | CPP C preprocessor |
1509 | CXX C++ compiler command |
1510 | CXXFLAGS C++ compiler flags |
1511 | CXXCPP C++ preprocessor |
1512 | F77 Fortran 77 compiler command |
1513 | FFLAGS Fortran 77 compiler flags |
1514 | |
1515 | Use these variables to override the choices made by `configure' or to help |
1516 | it to find libraries and programs with nonstandard names/locations. |
1517 | |
1518 | Report bugs to <courier-users@lists.sourceforge.net>. |
1519 | _ACEOF |
dd184caf |
1520 | ac_status=$? |
d9898ee8 |
1521 | fi |
1522 | |
1523 | if test "$ac_init_help" = "recursive"; then |
1524 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1525 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd184caf |
1526 | test -d "$ac_dir" || continue |
d9898ee8 |
1527 | ac_builddir=. |
1528 | |
dd184caf |
1529 | case "$ac_dir" in |
1530 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1531 | *) |
d9898ee8 |
1532 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
1533 | # A ".." for each directory in $ac_dir_suffix. |
1534 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1535 | case $ac_top_builddir_sub in |
1536 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1537 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1538 | esac ;; |
1539 | esac |
1540 | ac_abs_top_builddir=$ac_pwd |
1541 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1542 | # for backward compatibility: |
1543 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1544 | |
1545 | case $srcdir in |
dd184caf |
1546 | .) # We are building in place. |
d9898ee8 |
1547 | ac_srcdir=. |
dd184caf |
1548 | ac_top_srcdir=$ac_top_builddir_sub |
1549 | ac_abs_top_srcdir=$ac_pwd ;; |
1550 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1551 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
1552 | ac_top_srcdir=$srcdir |
1553 | ac_abs_top_srcdir=$srcdir ;; |
1554 | *) # Relative name. |
1555 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1556 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1557 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1558 | esac |
dd184caf |
1559 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1560 | |
1561 | cd "$ac_dir" || { ac_status=$?; continue; } |
1562 | # Check for guested configure. |
1563 | if test -f "$ac_srcdir/configure.gnu"; then |
1564 | echo && |
1565 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1566 | elif test -f "$ac_srcdir/configure"; then |
1567 | echo && |
1568 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1569 | else |
1570 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf |
1571 | fi || ac_status=$? |
1572 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1573 | done |
1574 | fi |
1575 | |
dd184caf |
1576 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1577 | if $ac_init_version; then |
1578 | cat <<\_ACEOF |
1579 | makedat configure 0.60 |
dd184caf |
1580 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1581 | |
dd184caf |
1582 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1583 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1584 | This configure script is free software; the Free Software Foundation |
1585 | gives unlimited permission to copy, distribute and modify it. |
1586 | _ACEOF |
dd184caf |
1587 | exit |
d9898ee8 |
1588 | fi |
dd184caf |
1589 | cat >config.log <<_ACEOF |
d9898ee8 |
1590 | This file contains any messages produced by compilers while |
1591 | running configure, to aid debugging if configure makes a mistake. |
1592 | |
1593 | It was created by makedat $as_me 0.60, which was |
dd184caf |
1594 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1595 | |
1596 | $ $0 $@ |
1597 | |
1598 | _ACEOF |
dd184caf |
1599 | exec 5>>config.log |
d9898ee8 |
1600 | { |
1601 | cat <<_ASUNAME |
1602 | ## --------- ## |
1603 | ## Platform. ## |
1604 | ## --------- ## |
1605 | |
1606 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1607 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1608 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1609 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1610 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1611 | |
1612 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1613 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1614 | |
1615 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1616 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1617 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
dd184caf |
1618 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1619 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1620 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1621 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1622 | |
1623 | _ASUNAME |
1624 | |
1625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1626 | for as_dir in $PATH |
1627 | do |
1628 | IFS=$as_save_IFS |
1629 | test -z "$as_dir" && as_dir=. |
1630 | echo "PATH: $as_dir" |
1631 | done |
dd184caf |
1632 | IFS=$as_save_IFS |
d9898ee8 |
1633 | |
1634 | } >&5 |
1635 | |
1636 | cat >&5 <<_ACEOF |
1637 | |
1638 | |
1639 | ## ----------- ## |
1640 | ## Core tests. ## |
1641 | ## ----------- ## |
1642 | |
1643 | _ACEOF |
1644 | |
1645 | |
1646 | # Keep a trace of the command line. |
1647 | # Strip out --no-create and --no-recursion so they do not pile up. |
1648 | # Strip out --silent because we don't want to record it for future runs. |
1649 | # Also quote any args containing shell meta-characters. |
1650 | # Make two passes to allow for proper duplicate-argument suppression. |
1651 | ac_configure_args= |
1652 | ac_configure_args0= |
1653 | ac_configure_args1= |
d9898ee8 |
1654 | ac_must_keep_next=false |
1655 | for ac_pass in 1 2 |
1656 | do |
1657 | for ac_arg |
1658 | do |
1659 | case $ac_arg in |
1660 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1661 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1662 | | -silent | --silent | --silen | --sile | --sil) |
1663 | continue ;; |
dd184caf |
1664 | *\'*) |
d9898ee8 |
1665 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1666 | esac |
1667 | case $ac_pass in |
1668 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1669 | 2) |
1670 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1671 | if test $ac_must_keep_next = true; then |
1672 | ac_must_keep_next=false # Got value, back to normal. |
1673 | else |
1674 | case $ac_arg in |
1675 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1676 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1677 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1678 | | -with-* | --with-* | -without-* | --without-* | --x) |
1679 | case "$ac_configure_args0 " in |
1680 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1681 | esac |
1682 | ;; |
1683 | -* ) ac_must_keep_next=true ;; |
1684 | esac |
1685 | fi |
dd184caf |
1686 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1687 | ;; |
1688 | esac |
1689 | done |
1690 | done |
1691 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1692 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1693 | |
1694 | # When interrupted or exit'd, cleanup temporary files, and complete |
1695 | # config.log. We remove comments because anyway the quotes in there |
1696 | # would cause problems or look ugly. |
dd184caf |
1697 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1698 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1699 | trap 'exit_status=$? |
1700 | # Save into config.log some information that might help in debugging. |
1701 | { |
1702 | echo |
1703 | |
1704 | cat <<\_ASBOX |
1705 | ## ---------------- ## |
1706 | ## Cache variables. ## |
1707 | ## ---------------- ## |
1708 | _ASBOX |
1709 | echo |
1710 | # The following way of writing the cache mishandles newlines in values, |
dd184caf |
1711 | ( |
1712 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1713 | eval ac_val=\$$ac_var |
1714 | case $ac_val in #( |
1715 | *${as_nl}*) |
1716 | case $ac_var in #( |
1717 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1718 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1719 | esac |
1720 | case $ac_var in #( |
1721 | _ | IFS | as_nl) ;; #( |
1722 | *) $as_unset $ac_var ;; |
1723 | esac ;; |
1724 | esac |
1725 | done |
d9898ee8 |
1726 | (set) 2>&1 | |
dd184caf |
1727 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1728 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1729 | sed -n \ |
dd184caf |
1730 | "s/'\''/'\''\\\\'\'''\''/g; |
1731 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1732 | ;; #( |
d9898ee8 |
1733 | *) |
dd184caf |
1734 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1735 | ;; |
dd184caf |
1736 | esac | |
1737 | sort |
1738 | ) |
d9898ee8 |
1739 | echo |
1740 | |
1741 | cat <<\_ASBOX |
1742 | ## ----------------- ## |
1743 | ## Output variables. ## |
1744 | ## ----------------- ## |
1745 | _ASBOX |
1746 | echo |
1747 | for ac_var in $ac_subst_vars |
1748 | do |
dd184caf |
1749 | eval ac_val=\$$ac_var |
1750 | case $ac_val in |
1751 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1752 | esac |
1753 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1754 | done | sort |
1755 | echo |
1756 | |
1757 | if test -n "$ac_subst_files"; then |
1758 | cat <<\_ASBOX |
dd184caf |
1759 | ## ------------------- ## |
1760 | ## File substitutions. ## |
1761 | ## ------------------- ## |
d9898ee8 |
1762 | _ASBOX |
1763 | echo |
1764 | for ac_var in $ac_subst_files |
1765 | do |
dd184caf |
1766 | eval ac_val=\$$ac_var |
1767 | case $ac_val in |
1768 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1769 | esac |
1770 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1771 | done | sort |
1772 | echo |
1773 | fi |
1774 | |
1775 | if test -s confdefs.h; then |
1776 | cat <<\_ASBOX |
1777 | ## ----------- ## |
1778 | ## confdefs.h. ## |
1779 | ## ----------- ## |
1780 | _ASBOX |
1781 | echo |
dd184caf |
1782 | cat confdefs.h |
d9898ee8 |
1783 | echo |
1784 | fi |
1785 | test "$ac_signal" != 0 && |
1786 | echo "$as_me: caught signal $ac_signal" |
1787 | echo "$as_me: exit $exit_status" |
1788 | } >&5 |
dd184caf |
1789 | rm -f core *.core core.conftest.* && |
1790 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1791 | exit $exit_status |
dd184caf |
1792 | ' 0 |
d9898ee8 |
1793 | for ac_signal in 1 2 13 15; do |
1794 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1795 | done |
1796 | ac_signal=0 |
1797 | |
1798 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
dd184caf |
1799 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1800 | |
1801 | # Predefined preprocessor variables. |
1802 | |
1803 | cat >>confdefs.h <<_ACEOF |
1804 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1805 | _ACEOF |
1806 | |
1807 | |
1808 | cat >>confdefs.h <<_ACEOF |
1809 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1810 | _ACEOF |
1811 | |
1812 | |
1813 | cat >>confdefs.h <<_ACEOF |
1814 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1815 | _ACEOF |
1816 | |
1817 | |
1818 | cat >>confdefs.h <<_ACEOF |
1819 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1820 | _ACEOF |
1821 | |
1822 | |
1823 | cat >>confdefs.h <<_ACEOF |
1824 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1825 | _ACEOF |
1826 | |
1827 | |
1828 | # Let the site file select an alternate cache file if it wants to. |
1829 | # Prefer explicitly selected file to automatically selected ones. |
dd184caf |
1830 | if test -n "$CONFIG_SITE"; then |
1831 | set x "$CONFIG_SITE" |
1832 | elif test "x$prefix" != xNONE; then |
1833 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1834 | else |
1835 | set x "$ac_default_prefix/share/config.site" \ |
1836 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1837 | fi |
dd184caf |
1838 | shift |
1839 | for ac_site_file |
1840 | do |
d9898ee8 |
1841 | if test -r "$ac_site_file"; then |
1842 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1843 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1844 | sed 's/^/| /' "$ac_site_file" >&5 |
1845 | . "$ac_site_file" |
1846 | fi |
1847 | done |
1848 | |
1849 | if test -r "$cache_file"; then |
1850 | # Some versions of bash will fail to source /dev/null (special |
1851 | # files actually), so we avoid doing that. |
1852 | if test -f "$cache_file"; then |
1853 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1854 | echo "$as_me: loading cache $cache_file" >&6;} |
1855 | case $cache_file in |
dd184caf |
1856 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1857 | *) . "./$cache_file";; |
d9898ee8 |
1858 | esac |
1859 | fi |
1860 | else |
1861 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1862 | echo "$as_me: creating cache $cache_file" >&6;} |
1863 | >$cache_file |
1864 | fi |
1865 | |
1866 | # Check that the precious variables saved in the cache have kept the same |
1867 | # value. |
1868 | ac_cache_corrupted=false |
dd184caf |
1869 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1870 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1871 | eval ac_new_set=\$ac_env_${ac_var}_set |
dd184caf |
1872 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1873 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1874 | case $ac_old_set,$ac_new_set in |
1875 | set,) |
1876 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1877 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1878 | ac_cache_corrupted=: ;; |
1879 | ,set) |
1880 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1881 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1882 | ac_cache_corrupted=: ;; |
1883 | ,);; |
1884 | *) |
1885 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1886 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1887 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1888 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1889 | echo "$as_me: former value: $ac_old_val" >&2;} |
1890 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1891 | echo "$as_me: current value: $ac_new_val" >&2;} |
1892 | ac_cache_corrupted=: |
1893 | fi;; |
1894 | esac |
1895 | # Pass precious variables to config.status. |
1896 | if test "$ac_new_set" = set; then |
1897 | case $ac_new_val in |
dd184caf |
1898 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1899 | *) ac_arg=$ac_var=$ac_new_val ;; |
1900 | esac |
1901 | case " $ac_configure_args " in |
1902 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1903 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1904 | esac |
1905 | fi |
1906 | done |
1907 | if $ac_cache_corrupted; then |
1908 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1909 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1910 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1911 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1912 | { (exit 1); exit 1; }; } |
1913 | fi |
1914 | |
d9898ee8 |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
1929 | |
1930 | |
1931 | |
1932 | |
1933 | |
1934 | |
1935 | |
1936 | |
1937 | |
1938 | |
dd184caf |
1939 | ac_ext=c |
1940 | ac_cpp='$CPP $CPPFLAGS' |
1941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1944 | |
1945 | |
1946 | |
1947 | >confdefs.h # Kill PACKAGE_ macros |
1948 | |
1949 | |
dd184caf |
1950 | am__api_version='1.10' |
1951 | |
d9898ee8 |
1952 | ac_aux_dir= |
dd184caf |
1953 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1954 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1955 | ac_aux_dir=$ac_dir |
1956 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1957 | break |
dd184caf |
1958 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1959 | ac_aux_dir=$ac_dir |
1960 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1961 | break |
dd184caf |
1962 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1963 | ac_aux_dir=$ac_dir |
1964 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1965 | break |
1966 | fi |
1967 | done |
1968 | if test -z "$ac_aux_dir"; then |
dd184caf |
1969 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1970 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1971 | { (exit 1); exit 1; }; } |
1972 | fi |
dd184caf |
1973 | |
1974 | # These three variables are undocumented and unsupported, |
1975 | # and are intended to be withdrawn in a future Autoconf release. |
1976 | # They can cause serious problems if a builder's source tree is in a directory |
1977 | # whose full name contains unusual characters. |
1978 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1979 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1980 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1981 | |
d9898ee8 |
1982 | |
1983 | # Find a good install program. We prefer a C program (faster), |
1984 | # so one script is as good as another. But avoid the broken or |
1985 | # incompatible versions: |
1986 | # SysV /etc/install, /usr/sbin/install |
1987 | # SunOS /usr/etc/install |
1988 | # IRIX /sbin/install |
1989 | # AIX /bin/install |
1990 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1991 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1992 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1993 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1994 | # OS/2's system install, which has a completely different semantic |
1995 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
1996 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1997 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
1998 | if test -z "$INSTALL"; then |
1999 | if test "${ac_cv_path_install+set}" = set; then |
2000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2001 | else |
2002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2003 | for as_dir in $PATH |
2004 | do |
2005 | IFS=$as_save_IFS |
2006 | test -z "$as_dir" && as_dir=. |
2007 | # Account for people who put trailing slashes in PATH elements. |
2008 | case $as_dir/ in |
2009 | ./ | .// | /cC/* | \ |
2010 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2011 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2012 | /usr/ucb/* ) ;; |
2013 | *) |
2014 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2015 | # Don't use installbsd from OSF since it installs stuff as root |
2016 | # by default. |
2017 | for ac_prog in ginstall scoinst install; do |
2018 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2019 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2020 | if test $ac_prog = install && |
2021 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2022 | # AIX install. It has an incompatible calling convention. |
2023 | : |
2024 | elif test $ac_prog = install && |
2025 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2026 | # program-specific install script used by HP pwplus--don't use. |
2027 | : |
2028 | else |
2029 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2030 | break 3 |
2031 | fi |
2032 | fi |
2033 | done |
2034 | done |
2035 | ;; |
2036 | esac |
2037 | done |
dd184caf |
2038 | IFS=$as_save_IFS |
d9898ee8 |
2039 | |
2040 | |
2041 | fi |
2042 | if test "${ac_cv_path_install+set}" = set; then |
2043 | INSTALL=$ac_cv_path_install |
2044 | else |
dd184caf |
2045 | # As a last resort, use the slow shell script. Don't cache a |
2046 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2047 | # break other packages using the cache if that directory is |
dd184caf |
2048 | # removed, or if the value is a relative name. |
d9898ee8 |
2049 | INSTALL=$ac_install_sh |
2050 | fi |
2051 | fi |
dd184caf |
2052 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2053 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2054 | |
2055 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2056 | # It thinks the first close brace ends the variable substitution. |
2057 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2058 | |
2059 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2060 | |
2061 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2062 | |
dd184caf |
2063 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2064 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2065 | # Just in case |
2066 | sleep 1 |
2067 | echo timestamp > conftest.file |
2068 | # Do `set' in a subshell so we don't clobber the current shell's |
2069 | # arguments. Must try -L first in case configure is actually a |
2070 | # symlink; some systems play weird games with the mod time of symlinks |
2071 | # (eg FreeBSD returns the mod time of the symlink's containing |
2072 | # directory). |
2073 | if ( |
2074 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2075 | if test "$*" = "X"; then |
2076 | # -L didn't work. |
2077 | set X `ls -t $srcdir/configure conftest.file` |
2078 | fi |
2079 | rm -f conftest.file |
2080 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2081 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2082 | |
2083 | # If neither matched, then we have a broken ls. This can happen |
2084 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2085 | # broken ls alias from the environment. This has actually |
2086 | # happened. Such a system could not be considered "sane". |
2087 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2088 | alias in your environment" >&5 |
2089 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2090 | alias in your environment" >&2;} |
2091 | { (exit 1); exit 1; }; } |
2092 | fi |
2093 | |
2094 | test "$2" = conftest.file |
2095 | ) |
2096 | then |
2097 | # Ok. |
2098 | : |
2099 | else |
2100 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2101 | Check your system clock" >&5 |
2102 | echo "$as_me: error: newly created file is older than distributed files! |
2103 | Check your system clock" >&2;} |
2104 | { (exit 1); exit 1; }; } |
2105 | fi |
dd184caf |
2106 | { echo "$as_me:$LINENO: result: yes" >&5 |
2107 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2108 | test "$program_prefix" != NONE && |
dd184caf |
2109 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2110 | # Use a double $ so make ignores it. |
2111 | test "$program_suffix" != NONE && |
dd184caf |
2112 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2113 | # Double any \ or $. echo might interpret backslashes. |
2114 | # By default was `s,x,x', remove it if useless. |
2115 | cat <<\_ACEOF >conftest.sed |
2116 | s/[\\$]/&&/g;s/;s,x,x,$// |
2117 | _ACEOF |
2118 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
dd184caf |
2119 | rm -f conftest.sed |
d9898ee8 |
2120 | |
2121 | # expand $ac_aux_dir to an absolute path |
2122 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2123 | |
2124 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2125 | # Use eval to expand $SHELL |
2126 | if eval "$MISSING --run true"; then |
2127 | am_missing_run="$MISSING --run " |
2128 | else |
2129 | am_missing_run= |
2130 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2131 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2132 | fi |
2133 | |
dd184caf |
2134 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2135 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2136 | if test -z "$MKDIR_P"; then |
2137 | if test "${ac_cv_path_mkdir+set}" = set; then |
2138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2139 | else |
2140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2141 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2142 | do |
2143 | IFS=$as_save_IFS |
2144 | test -z "$as_dir" && as_dir=. |
2145 | for ac_prog in mkdir gmkdir; do |
2146 | for ac_exec_ext in '' $ac_executable_extensions; do |
2147 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2148 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2149 | 'mkdir (GNU coreutils) '* | \ |
2150 | 'mkdir (coreutils) '* | \ |
2151 | 'mkdir (fileutils) '4.1*) |
2152 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2153 | break 3;; |
2154 | esac |
2155 | done |
2156 | done |
2157 | done |
2158 | IFS=$as_save_IFS |
2159 | |
2160 | fi |
2161 | |
2162 | if test "${ac_cv_path_mkdir+set}" = set; then |
2163 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2164 | else |
dd184caf |
2165 | # As a last resort, use the slow shell script. Don't cache a |
2166 | # value for MKDIR_P within a source directory, because that will |
2167 | # break other packages using the cache if that directory is |
2168 | # removed, or if the value is a relative name. |
2169 | test -d ./--version && rmdir ./--version |
2170 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2171 | fi |
2172 | fi |
dd184caf |
2173 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2174 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2175 | |
2176 | mkdir_p="$MKDIR_P" |
2177 | case $mkdir_p in |
2178 | [\\/$]* | ?:[\\/]*) ;; |
2179 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2180 | esac |
d9898ee8 |
2181 | |
2182 | for ac_prog in gawk mawk nawk awk |
2183 | do |
2184 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2185 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2186 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2188 | if test "${ac_cv_prog_AWK+set}" = set; then |
2189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2190 | else |
2191 | if test -n "$AWK"; then |
2192 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2193 | else |
2194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2195 | for as_dir in $PATH |
2196 | do |
2197 | IFS=$as_save_IFS |
2198 | test -z "$as_dir" && as_dir=. |
2199 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2201 | ac_cv_prog_AWK="$ac_prog" |
2202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2203 | break 2 |
2204 | fi |
2205 | done |
2206 | done |
dd184caf |
2207 | IFS=$as_save_IFS |
d9898ee8 |
2208 | |
2209 | fi |
2210 | fi |
2211 | AWK=$ac_cv_prog_AWK |
2212 | if test -n "$AWK"; then |
dd184caf |
2213 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2214 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2215 | else |
dd184caf |
2216 | { echo "$as_me:$LINENO: result: no" >&5 |
2217 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2218 | fi |
2219 | |
dd184caf |
2220 | |
d9898ee8 |
2221 | test -n "$AWK" && break |
2222 | done |
2223 | |
dd184caf |
2224 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2225 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2226 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2227 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2229 | else |
2230 | cat >conftest.make <<\_ACEOF |
dd184caf |
2231 | SHELL = /bin/sh |
d9898ee8 |
2232 | all: |
dd184caf |
2233 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2234 | _ACEOF |
2235 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
dd184caf |
2236 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2237 | *@@@%%%=?*=@@@%%%*) |
2238 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2239 | *) |
2240 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2241 | esac |
d9898ee8 |
2242 | rm -f conftest.make |
2243 | fi |
dd184caf |
2244 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2245 | { echo "$as_me:$LINENO: result: yes" >&5 |
2246 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2247 | SET_MAKE= |
2248 | else |
dd184caf |
2249 | { echo "$as_me:$LINENO: result: no" >&5 |
2250 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2251 | SET_MAKE="MAKE=${MAKE-make}" |
2252 | fi |
2253 | |
2254 | rm -rf .tst 2>/dev/null |
2255 | mkdir .tst 2>/dev/null |
2256 | if test -d .tst; then |
2257 | am__leading_dot=. |
2258 | else |
2259 | am__leading_dot=_ |
2260 | fi |
2261 | rmdir .tst 2>/dev/null |
2262 | |
dd184caf |
2263 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2264 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2265 | # is not polluted with repeated "-I." |
2266 | am__isrc=' -I$(srcdir)' |
2267 | # test to see if srcdir already configured |
2268 | if test -f $srcdir/config.status; then |
2269 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2270 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2271 | { (exit 1); exit 1; }; } |
dd184caf |
2272 | fi |
d9898ee8 |
2273 | fi |
2274 | |
2275 | # test whether we have cygpath |
2276 | if test -z "$CYGPATH_W"; then |
2277 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2278 | CYGPATH_W='cygpath -w' |
2279 | else |
2280 | CYGPATH_W=echo |
2281 | fi |
2282 | fi |
2283 | |
2284 | |
2285 | # Define the identity of the package. |
2286 | PACKAGE='makedat' |
2287 | VERSION='0.60' |
2288 | |
2289 | |
2290 | # Some tools Automake needs. |
2291 | |
2292 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2293 | |
2294 | |
2295 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2296 | |
2297 | |
2298 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2299 | |
2300 | |
2301 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2302 | |
2303 | |
2304 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2305 | |
dd184caf |
2306 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2307 | |
2308 | # Installed binaries are usually stripped using `strip' when the user |
2309 | # run `make install-strip'. However `strip' might not be the right |
2310 | # tool to use in cross-compilation environments, therefore Automake |
2311 | # will honor the `STRIP' environment variable to overrule this program. |
2312 | if test "$cross_compiling" != no; then |
2313 | if test -n "$ac_tool_prefix"; then |
2314 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2315 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
2316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2318 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2320 | else |
2321 | if test -n "$STRIP"; then |
2322 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2323 | else |
2324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2325 | for as_dir in $PATH |
2326 | do |
2327 | IFS=$as_save_IFS |
2328 | test -z "$as_dir" && as_dir=. |
2329 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2331 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2333 | break 2 |
2334 | fi |
2335 | done |
2336 | done |
dd184caf |
2337 | IFS=$as_save_IFS |
d9898ee8 |
2338 | |
2339 | fi |
2340 | fi |
2341 | STRIP=$ac_cv_prog_STRIP |
2342 | if test -n "$STRIP"; then |
dd184caf |
2343 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2344 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2345 | else |
dd184caf |
2346 | { echo "$as_me:$LINENO: result: no" >&5 |
2347 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2348 | fi |
2349 | |
dd184caf |
2350 | |
d9898ee8 |
2351 | fi |
2352 | if test -z "$ac_cv_prog_STRIP"; then |
2353 | ac_ct_STRIP=$STRIP |
2354 | # Extract the first word of "strip", so it can be a program name with args. |
2355 | set dummy strip; ac_word=$2 |
dd184caf |
2356 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2358 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2360 | else |
2361 | if test -n "$ac_ct_STRIP"; then |
2362 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2363 | else |
2364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2365 | for as_dir in $PATH |
2366 | do |
2367 | IFS=$as_save_IFS |
2368 | test -z "$as_dir" && as_dir=. |
2369 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2371 | ac_cv_prog_ac_ct_STRIP="strip" |
2372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2373 | break 2 |
2374 | fi |
2375 | done |
2376 | done |
dd184caf |
2377 | IFS=$as_save_IFS |
d9898ee8 |
2378 | |
d9898ee8 |
2379 | fi |
2380 | fi |
2381 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2382 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
2383 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2384 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2385 | else |
dd184caf |
2386 | { echo "$as_me:$LINENO: result: no" >&5 |
2387 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2388 | fi |
2389 | |
dd184caf |
2390 | if test "x$ac_ct_STRIP" = x; then |
2391 | STRIP=":" |
2392 | else |
2393 | case $cross_compiling:$ac_tool_warned in |
2394 | yes:) |
2395 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2396 | whose name does not start with the host triplet. If you think this |
2397 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2398 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2399 | whose name does not start with the host triplet. If you think this |
2400 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2401 | ac_tool_warned=yes ;; |
2402 | esac |
2403 | STRIP=$ac_ct_STRIP |
2404 | fi |
d9898ee8 |
2405 | else |
2406 | STRIP="$ac_cv_prog_STRIP" |
2407 | fi |
2408 | |
2409 | fi |
dd184caf |
2410 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2411 | |
2412 | # We need awk for the "check" target. The system "awk" is bad on |
2413 | # some platforms. |
2414 | # Always define AMTAR for backward compatibility. |
2415 | |
2416 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2417 | |
2418 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2419 | |
2420 | |
2421 | |
2422 | |
2423 | |
2424 | LPATH="$PATH:/usr/local/bin" |
dd184caf |
2425 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 |
2426 | |
2427 | |
2428 | ac_ext=c |
2429 | ac_cpp='$CPP $CPPFLAGS' |
2430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2433 | if test -n "$ac_tool_prefix"; then |
2434 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2435 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
dd184caf |
2436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2438 | if test "${ac_cv_prog_CC+set}" = set; then |
2439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2440 | else |
2441 | if test -n "$CC"; then |
2442 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2443 | else |
2444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2445 | for as_dir in $PATH |
2446 | do |
2447 | IFS=$as_save_IFS |
2448 | test -z "$as_dir" && as_dir=. |
2449 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2451 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2453 | break 2 |
2454 | fi |
2455 | done |
2456 | done |
dd184caf |
2457 | IFS=$as_save_IFS |
d9898ee8 |
2458 | |
2459 | fi |
2460 | fi |
2461 | CC=$ac_cv_prog_CC |
2462 | if test -n "$CC"; then |
dd184caf |
2463 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2464 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2465 | else |
dd184caf |
2466 | { echo "$as_me:$LINENO: result: no" >&5 |
2467 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2468 | fi |
2469 | |
dd184caf |
2470 | |
d9898ee8 |
2471 | fi |
2472 | if test -z "$ac_cv_prog_CC"; then |
2473 | ac_ct_CC=$CC |
2474 | # Extract the first word of "gcc", so it can be a program name with args. |
2475 | set dummy gcc; ac_word=$2 |
dd184caf |
2476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2478 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2480 | else |
2481 | if test -n "$ac_ct_CC"; then |
2482 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2483 | else |
2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2485 | for as_dir in $PATH |
2486 | do |
2487 | IFS=$as_save_IFS |
2488 | test -z "$as_dir" && as_dir=. |
2489 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2491 | ac_cv_prog_ac_ct_CC="gcc" |
2492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2493 | break 2 |
2494 | fi |
2495 | done |
2496 | done |
dd184caf |
2497 | IFS=$as_save_IFS |
d9898ee8 |
2498 | |
2499 | fi |
2500 | fi |
2501 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2502 | if test -n "$ac_ct_CC"; then |
dd184caf |
2503 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2504 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2505 | else |
dd184caf |
2506 | { echo "$as_me:$LINENO: result: no" >&5 |
2507 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2508 | fi |
2509 | |
dd184caf |
2510 | if test "x$ac_ct_CC" = x; then |
2511 | CC="" |
2512 | else |
2513 | case $cross_compiling:$ac_tool_warned in |
2514 | yes:) |
2515 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2516 | whose name does not start with the host triplet. If you think this |
2517 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2518 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2519 | whose name does not start with the host triplet. If you think this |
2520 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2521 | ac_tool_warned=yes ;; |
2522 | esac |
2523 | CC=$ac_ct_CC |
2524 | fi |
d9898ee8 |
2525 | else |
2526 | CC="$ac_cv_prog_CC" |
2527 | fi |
2528 | |
2529 | if test -z "$CC"; then |
dd184caf |
2530 | if test -n "$ac_tool_prefix"; then |
2531 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2532 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dd184caf |
2533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2535 | if test "${ac_cv_prog_CC+set}" = set; then |
2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2537 | else |
2538 | if test -n "$CC"; then |
2539 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2540 | else |
2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2542 | for as_dir in $PATH |
2543 | do |
2544 | IFS=$as_save_IFS |
2545 | test -z "$as_dir" && as_dir=. |
2546 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2548 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2550 | break 2 |
2551 | fi |
2552 | done |
2553 | done |
dd184caf |
2554 | IFS=$as_save_IFS |
d9898ee8 |
2555 | |
2556 | fi |
2557 | fi |
2558 | CC=$ac_cv_prog_CC |
2559 | if test -n "$CC"; then |
dd184caf |
2560 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2561 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2562 | else |
dd184caf |
2563 | { echo "$as_me:$LINENO: result: no" >&5 |
2564 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2565 | fi |
2566 | |
d9898ee8 |
2567 | |
dd184caf |
2568 | fi |
d9898ee8 |
2569 | fi |
2570 | if test -z "$CC"; then |
2571 | # Extract the first word of "cc", so it can be a program name with args. |
2572 | set dummy cc; ac_word=$2 |
dd184caf |
2573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2575 | if test "${ac_cv_prog_CC+set}" = set; then |
2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2577 | else |
2578 | if test -n "$CC"; then |
2579 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2580 | else |
2581 | ac_prog_rejected=no |
2582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2583 | for as_dir in $PATH |
2584 | do |
2585 | IFS=$as_save_IFS |
2586 | test -z "$as_dir" && as_dir=. |
2587 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2589 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2590 | ac_prog_rejected=yes |
2591 | continue |
2592 | fi |
2593 | ac_cv_prog_CC="cc" |
2594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2595 | break 2 |
2596 | fi |
2597 | done |
2598 | done |
dd184caf |
2599 | IFS=$as_save_IFS |
d9898ee8 |
2600 | |
2601 | if test $ac_prog_rejected = yes; then |
2602 | # We found a bogon in the path, so make sure we never use it. |
2603 | set dummy $ac_cv_prog_CC |
2604 | shift |
2605 | if test $# != 0; then |
2606 | # We chose a different compiler from the bogus one. |
2607 | # However, it has the same basename, so the bogon will be chosen |
2608 | # first if we set CC to just the basename; use the full file name. |
2609 | shift |
2610 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2611 | fi |
2612 | fi |
2613 | fi |
2614 | fi |
2615 | CC=$ac_cv_prog_CC |
2616 | if test -n "$CC"; then |
dd184caf |
2617 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2618 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2619 | else |
dd184caf |
2620 | { echo "$as_me:$LINENO: result: no" >&5 |
2621 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2622 | fi |
2623 | |
dd184caf |
2624 | |
d9898ee8 |
2625 | fi |
2626 | if test -z "$CC"; then |
2627 | if test -n "$ac_tool_prefix"; then |
dd184caf |
2628 | for ac_prog in cl.exe |
d9898ee8 |
2629 | do |
2630 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2631 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
2632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2634 | if test "${ac_cv_prog_CC+set}" = set; then |
2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2636 | else |
2637 | if test -n "$CC"; then |
2638 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2639 | else |
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2641 | for as_dir in $PATH |
2642 | do |
2643 | IFS=$as_save_IFS |
2644 | test -z "$as_dir" && as_dir=. |
2645 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2647 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2649 | break 2 |
2650 | fi |
2651 | done |
2652 | done |
dd184caf |
2653 | IFS=$as_save_IFS |
d9898ee8 |
2654 | |
2655 | fi |
2656 | fi |
2657 | CC=$ac_cv_prog_CC |
2658 | if test -n "$CC"; then |
dd184caf |
2659 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2660 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2661 | else |
dd184caf |
2662 | { echo "$as_me:$LINENO: result: no" >&5 |
2663 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2664 | fi |
2665 | |
dd184caf |
2666 | |
d9898ee8 |
2667 | test -n "$CC" && break |
2668 | done |
2669 | fi |
2670 | if test -z "$CC"; then |
2671 | ac_ct_CC=$CC |
dd184caf |
2672 | for ac_prog in cl.exe |
d9898ee8 |
2673 | do |
2674 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2675 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2678 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2680 | else |
2681 | if test -n "$ac_ct_CC"; then |
2682 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2683 | else |
2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2685 | for as_dir in $PATH |
2686 | do |
2687 | IFS=$as_save_IFS |
2688 | test -z "$as_dir" && as_dir=. |
2689 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2691 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2693 | break 2 |
2694 | fi |
2695 | done |
2696 | done |
dd184caf |
2697 | IFS=$as_save_IFS |
d9898ee8 |
2698 | |
2699 | fi |
2700 | fi |
2701 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2702 | if test -n "$ac_ct_CC"; then |
dd184caf |
2703 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2704 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2705 | else |
dd184caf |
2706 | { echo "$as_me:$LINENO: result: no" >&5 |
2707 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2708 | fi |
2709 | |
dd184caf |
2710 | |
d9898ee8 |
2711 | test -n "$ac_ct_CC" && break |
2712 | done |
2713 | |
dd184caf |
2714 | if test "x$ac_ct_CC" = x; then |
2715 | CC="" |
2716 | else |
2717 | case $cross_compiling:$ac_tool_warned in |
2718 | yes:) |
2719 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2720 | whose name does not start with the host triplet. If you think this |
2721 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2722 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2723 | whose name does not start with the host triplet. If you think this |
2724 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2725 | ac_tool_warned=yes ;; |
2726 | esac |
2727 | CC=$ac_ct_CC |
2728 | fi |
d9898ee8 |
2729 | fi |
2730 | |
2731 | fi |
2732 | |
2733 | |
2734 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2735 | See \`config.log' for more details." >&5 |
2736 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2737 | See \`config.log' for more details." >&2;} |
2738 | { (exit 1); exit 1; }; } |
2739 | |
2740 | # Provide some information about the compiler. |
dd184caf |
2741 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2742 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
2743 | { (ac_try="$ac_compiler --version >&5" |
2744 | case "(($ac_try" in |
2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2746 | *) ac_try_echo=$ac_try;; |
2747 | esac |
2748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2749 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2750 | ac_status=$? |
2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2752 | (exit $ac_status); } |
dd184caf |
2753 | { (ac_try="$ac_compiler -v >&5" |
2754 | case "(($ac_try" in |
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2756 | *) ac_try_echo=$ac_try;; |
2757 | esac |
2758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2759 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2760 | ac_status=$? |
2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2762 | (exit $ac_status); } |
dd184caf |
2763 | { (ac_try="$ac_compiler -V >&5" |
2764 | case "(($ac_try" in |
2765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2766 | *) ac_try_echo=$ac_try;; |
2767 | esac |
2768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2769 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2770 | ac_status=$? |
2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2772 | (exit $ac_status); } |
2773 | |
2774 | cat >conftest.$ac_ext <<_ACEOF |
2775 | /* confdefs.h. */ |
2776 | _ACEOF |
2777 | cat confdefs.h >>conftest.$ac_ext |
2778 | cat >>conftest.$ac_ext <<_ACEOF |
2779 | /* end confdefs.h. */ |
2780 | |
2781 | int |
2782 | main () |
2783 | { |
2784 | |
2785 | ; |
2786 | return 0; |
2787 | } |
2788 | _ACEOF |
2789 | ac_clean_files_save=$ac_clean_files |
2790 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2791 | # Try to create an executable without -o first, disregard a.out. |
2792 | # It will help us diagnose broken compilers, and finding out an intuition |
2793 | # of exeext. |
dd184caf |
2794 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2795 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2796 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dd184caf |
2797 | # |
2798 | # List of possible output files, starting from the most likely. |
2799 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2800 | # only as a last resort. b.out is created by i960 compilers. |
2801 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2802 | # |
2803 | # The IRIX 6 linker writes into existing files which may not be |
2804 | # executable, retaining their permissions. Remove them first so a |
2805 | # subsequent execution test works. |
2806 | ac_rmfiles= |
2807 | for ac_file in $ac_files |
2808 | do |
2809 | case $ac_file in |
2810 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2811 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2812 | esac |
2813 | done |
2814 | rm -f $ac_rmfiles |
2815 | |
2816 | if { (ac_try="$ac_link_default" |
2817 | case "(($ac_try" in |
2818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2819 | *) ac_try_echo=$ac_try;; |
2820 | esac |
2821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2822 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2823 | ac_status=$? |
2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2825 | (exit $ac_status); }; then |
dd184caf |
2826 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2827 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2828 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2829 | # so that the user can short-circuit this test for compilers unknown to |
2830 | # Autoconf. |
2831 | for ac_file in $ac_files '' |
d9898ee8 |
2832 | do |
2833 | test -f "$ac_file" || continue |
2834 | case $ac_file in |
dd184caf |
2835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2836 | ;; |
2837 | [ab].out ) |
2838 | # We found the default executable, but exeext='' is most |
2839 | # certainly right. |
2840 | break;; |
2841 | *.* ) |
dd184caf |
2842 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2843 | then :; else |
2844 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2845 | fi |
2846 | # We set ac_cv_exeext here because the later test for it is not |
2847 | # safe: cross compilers may not add the suffix if given an `-o' |
2848 | # argument, so we may need to know it at that point already. |
2849 | # Even if this section looks crufty: it has the advantage of |
2850 | # actually working. |
d9898ee8 |
2851 | break;; |
2852 | * ) |
2853 | break;; |
2854 | esac |
2855 | done |
dd184caf |
2856 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2857 | |
d9898ee8 |
2858 | else |
dd184caf |
2859 | ac_file='' |
2860 | fi |
2861 | |
2862 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2863 | echo "${ECHO_T}$ac_file" >&6; } |
2864 | if test -z "$ac_file"; then |
d9898ee8 |
2865 | echo "$as_me: failed program was:" >&5 |
2866 | sed 's/^/| /' conftest.$ac_ext >&5 |
2867 | |
2868 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2869 | See \`config.log' for more details." >&5 |
2870 | echo "$as_me: error: C compiler cannot create executables |
2871 | See \`config.log' for more details." >&2;} |
2872 | { (exit 77); exit 77; }; } |
2873 | fi |
2874 | |
2875 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2876 | |
dd184caf |
2877 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2878 | # the compiler is broken, or we cross compile. |
dd184caf |
2879 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2880 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2881 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2882 | # If not cross compiling, check that we can run a simple program. |
2883 | if test "$cross_compiling" != yes; then |
2884 | if { ac_try='./$ac_file' |
dd184caf |
2885 | { (case "(($ac_try" in |
2886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2887 | *) ac_try_echo=$ac_try;; |
2888 | esac |
2889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2890 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2891 | ac_status=$? |
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2893 | (exit $ac_status); }; }; then |
2894 | cross_compiling=no |
2895 | else |
2896 | if test "$cross_compiling" = maybe; then |
2897 | cross_compiling=yes |
2898 | else |
2899 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2900 | If you meant to cross compile, use \`--host'. |
2901 | See \`config.log' for more details." >&5 |
2902 | echo "$as_me: error: cannot run C compiled programs. |
2903 | If you meant to cross compile, use \`--host'. |
2904 | See \`config.log' for more details." >&2;} |
2905 | { (exit 1); exit 1; }; } |
2906 | fi |
2907 | fi |
2908 | fi |
dd184caf |
2909 | { echo "$as_me:$LINENO: result: yes" >&5 |
2910 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2911 | |
2912 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2913 | ac_clean_files=$ac_clean_files_save |
dd184caf |
2914 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2915 | # the compiler is broken, or we cross compile. |
dd184caf |
2916 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2917 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2918 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2919 | echo "${ECHO_T}$cross_compiling" >&6; } |
2920 | |
2921 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2922 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2923 | if { (ac_try="$ac_link" |
2924 | case "(($ac_try" in |
2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2926 | *) ac_try_echo=$ac_try;; |
2927 | esac |
2928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2929 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2930 | ac_status=$? |
2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2932 | (exit $ac_status); }; then |
2933 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2934 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2935 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2936 | # `rm'. |
2937 | for ac_file in conftest.exe conftest conftest.*; do |
2938 | test -f "$ac_file" || continue |
2939 | case $ac_file in |
dd184caf |
2940 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2941 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2942 | break;; |
2943 | * ) break;; |
2944 | esac |
2945 | done |
2946 | else |
2947 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2948 | See \`config.log' for more details." >&5 |
2949 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2950 | See \`config.log' for more details." >&2;} |
2951 | { (exit 1); exit 1; }; } |
2952 | fi |
2953 | |
2954 | rm -f conftest$ac_cv_exeext |
dd184caf |
2955 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2956 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
2957 | |
2958 | rm -f conftest.$ac_ext |
2959 | EXEEXT=$ac_cv_exeext |
2960 | ac_exeext=$EXEEXT |
dd184caf |
2961 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2962 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
2963 | if test "${ac_cv_objext+set}" = set; then |
2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2965 | else |
2966 | cat >conftest.$ac_ext <<_ACEOF |
2967 | /* confdefs.h. */ |
2968 | _ACEOF |
2969 | cat confdefs.h >>conftest.$ac_ext |
2970 | cat >>conftest.$ac_ext <<_ACEOF |
2971 | /* end confdefs.h. */ |
2972 | |
2973 | int |
2974 | main () |
2975 | { |
2976 | |
2977 | ; |
2978 | return 0; |
2979 | } |
2980 | _ACEOF |
2981 | rm -f conftest.o conftest.obj |
dd184caf |
2982 | if { (ac_try="$ac_compile" |
2983 | case "(($ac_try" in |
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2985 | *) ac_try_echo=$ac_try;; |
2986 | esac |
2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2988 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
2989 | ac_status=$? |
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2991 | (exit $ac_status); }; then |
dd184caf |
2992 | for ac_file in conftest.o conftest.obj conftest.*; do |
2993 | test -f "$ac_file" || continue; |
d9898ee8 |
2994 | case $ac_file in |
dd184caf |
2995 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
2996 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2997 | break;; |
2998 | esac |
2999 | done |
3000 | else |
3001 | echo "$as_me: failed program was:" >&5 |
3002 | sed 's/^/| /' conftest.$ac_ext >&5 |
3003 | |
3004 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3005 | See \`config.log' for more details." >&5 |
3006 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3007 | See \`config.log' for more details." >&2;} |
3008 | { (exit 1); exit 1; }; } |
3009 | fi |
3010 | |
3011 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3012 | fi |
dd184caf |
3013 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3014 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3015 | OBJEXT=$ac_cv_objext |
3016 | ac_objext=$OBJEXT |
dd184caf |
3017 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3018 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3019 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3021 | else |
3022 | cat >conftest.$ac_ext <<_ACEOF |
3023 | /* confdefs.h. */ |
3024 | _ACEOF |
3025 | cat confdefs.h >>conftest.$ac_ext |
3026 | cat >>conftest.$ac_ext <<_ACEOF |
3027 | /* end confdefs.h. */ |
3028 | |
3029 | int |
3030 | main () |
3031 | { |
3032 | #ifndef __GNUC__ |
3033 | choke me |
3034 | #endif |
3035 | |
3036 | ; |
3037 | return 0; |
3038 | } |
3039 | _ACEOF |
3040 | rm -f conftest.$ac_objext |
dd184caf |
3041 | if { (ac_try="$ac_compile" |
3042 | case "(($ac_try" in |
3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3044 | *) ac_try_echo=$ac_try;; |
3045 | esac |
3046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3047 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3048 | ac_status=$? |
3049 | grep -v '^ *+' conftest.er1 >conftest.err |
3050 | rm -f conftest.er1 |
3051 | cat conftest.err >&5 |
3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3053 | (exit $ac_status); } && { |
3054 | test -z "$ac_c_werror_flag" || |
3055 | test ! -s conftest.err |
3056 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3057 | ac_compiler_gnu=yes |
3058 | else |
3059 | echo "$as_me: failed program was:" >&5 |
3060 | sed 's/^/| /' conftest.$ac_ext >&5 |
3061 | |
dd184caf |
3062 | ac_compiler_gnu=no |
d9898ee8 |
3063 | fi |
dd184caf |
3064 | |
3065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3066 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3067 | |
3068 | fi |
dd184caf |
3069 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3070 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3071 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3072 | ac_test_CFLAGS=${CFLAGS+set} |
3073 | ac_save_CFLAGS=$CFLAGS |
dd184caf |
3074 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3075 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3076 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3078 | else |
dd184caf |
3079 | ac_save_c_werror_flag=$ac_c_werror_flag |
3080 | ac_c_werror_flag=yes |
3081 | ac_cv_prog_cc_g=no |
3082 | CFLAGS="-g" |
3083 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3084 | /* confdefs.h. */ |
3085 | _ACEOF |
3086 | cat confdefs.h >>conftest.$ac_ext |
3087 | cat >>conftest.$ac_ext <<_ACEOF |
3088 | /* end confdefs.h. */ |
3089 | |
3090 | int |
3091 | main () |
3092 | { |
3093 | |
3094 | ; |
3095 | return 0; |
3096 | } |
3097 | _ACEOF |
3098 | rm -f conftest.$ac_objext |
dd184caf |
3099 | if { (ac_try="$ac_compile" |
3100 | case "(($ac_try" in |
3101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3102 | *) ac_try_echo=$ac_try;; |
3103 | esac |
3104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3105 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3106 | ac_status=$? |
3107 | grep -v '^ *+' conftest.er1 >conftest.err |
3108 | rm -f conftest.er1 |
3109 | cat conftest.err >&5 |
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3111 | (exit $ac_status); } && { |
3112 | test -z "$ac_c_werror_flag" || |
3113 | test ! -s conftest.err |
3114 | } && test -s conftest.$ac_objext; then |
3115 | ac_cv_prog_cc_g=yes |
3116 | else |
3117 | echo "$as_me: failed program was:" >&5 |
3118 | sed 's/^/| /' conftest.$ac_ext >&5 |
3119 | |
3120 | CFLAGS="" |
3121 | cat >conftest.$ac_ext <<_ACEOF |
3122 | /* confdefs.h. */ |
3123 | _ACEOF |
3124 | cat confdefs.h >>conftest.$ac_ext |
3125 | cat >>conftest.$ac_ext <<_ACEOF |
3126 | /* end confdefs.h. */ |
3127 | |
3128 | int |
3129 | main () |
3130 | { |
3131 | |
3132 | ; |
3133 | return 0; |
3134 | } |
3135 | _ACEOF |
3136 | rm -f conftest.$ac_objext |
3137 | if { (ac_try="$ac_compile" |
3138 | case "(($ac_try" in |
3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3140 | *) ac_try_echo=$ac_try;; |
3141 | esac |
3142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3143 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3144 | ac_status=$? |
dd184caf |
3145 | grep -v '^ *+' conftest.er1 >conftest.err |
3146 | rm -f conftest.er1 |
3147 | cat conftest.err >&5 |
d9898ee8 |
3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3149 | (exit $ac_status); } && { |
3150 | test -z "$ac_c_werror_flag" || |
3151 | test ! -s conftest.err |
3152 | } && test -s conftest.$ac_objext; then |
3153 | : |
3154 | else |
3155 | echo "$as_me: failed program was:" >&5 |
3156 | sed 's/^/| /' conftest.$ac_ext >&5 |
3157 | |
3158 | ac_c_werror_flag=$ac_save_c_werror_flag |
3159 | CFLAGS="-g" |
3160 | cat >conftest.$ac_ext <<_ACEOF |
3161 | /* confdefs.h. */ |
3162 | _ACEOF |
3163 | cat confdefs.h >>conftest.$ac_ext |
3164 | cat >>conftest.$ac_ext <<_ACEOF |
3165 | /* end confdefs.h. */ |
3166 | |
3167 | int |
3168 | main () |
3169 | { |
3170 | |
3171 | ; |
3172 | return 0; |
3173 | } |
3174 | _ACEOF |
3175 | rm -f conftest.$ac_objext |
3176 | if { (ac_try="$ac_compile" |
3177 | case "(($ac_try" in |
3178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3179 | *) ac_try_echo=$ac_try;; |
3180 | esac |
3181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3182 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3183 | ac_status=$? |
dd184caf |
3184 | grep -v '^ *+' conftest.er1 >conftest.err |
3185 | rm -f conftest.er1 |
3186 | cat conftest.err >&5 |
d9898ee8 |
3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3188 | (exit $ac_status); } && { |
3189 | test -z "$ac_c_werror_flag" || |
3190 | test ! -s conftest.err |
3191 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3192 | ac_cv_prog_cc_g=yes |
3193 | else |
3194 | echo "$as_me: failed program was:" >&5 |
3195 | sed 's/^/| /' conftest.$ac_ext >&5 |
3196 | |
dd184caf |
3197 | |
3198 | fi |
3199 | |
3200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3201 | fi |
3202 | |
3203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3204 | fi |
dd184caf |
3205 | |
3206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3207 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3208 | fi |
dd184caf |
3209 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3210 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3211 | if test "$ac_test_CFLAGS" = set; then |
3212 | CFLAGS=$ac_save_CFLAGS |
3213 | elif test $ac_cv_prog_cc_g = yes; then |
3214 | if test "$GCC" = yes; then |
3215 | CFLAGS="-g -O2" |
3216 | else |
3217 | CFLAGS="-g" |
3218 | fi |
3219 | else |
3220 | if test "$GCC" = yes; then |
3221 | CFLAGS="-O2" |
3222 | else |
3223 | CFLAGS= |
3224 | fi |
3225 | fi |
dd184caf |
3226 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3227 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3228 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3230 | else |
dd184caf |
3231 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3232 | ac_save_CC=$CC |
3233 | cat >conftest.$ac_ext <<_ACEOF |
3234 | /* confdefs.h. */ |
3235 | _ACEOF |
3236 | cat confdefs.h >>conftest.$ac_ext |
3237 | cat >>conftest.$ac_ext <<_ACEOF |
3238 | /* end confdefs.h. */ |
3239 | #include <stdarg.h> |
3240 | #include <stdio.h> |
3241 | #include <sys/types.h> |
3242 | #include <sys/stat.h> |
3243 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3244 | struct buf { int x; }; |
3245 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3246 | static char *e (p, i) |
3247 | char **p; |
3248 | int i; |
3249 | { |
3250 | return p[i]; |
3251 | } |
3252 | static char *f (char * (*g) (char **, int), char **p, ...) |
3253 | { |
3254 | char *s; |
3255 | va_list v; |
3256 | va_start (v,p); |
3257 | s = g (p, va_arg (v,int)); |
3258 | va_end (v); |
3259 | return s; |
3260 | } |
3261 | |
3262 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3263 | function prototypes and stuff, but not '\xHH' hex character constants. |
3264 | These don't provoke an error unfortunately, instead are silently treated |
dd184caf |
3265 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3266 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3267 | array size at least. It's necessary to write '\x00'==0 to get something |
dd184caf |
3268 | that's true only with -std. */ |
d9898ee8 |
3269 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3270 | |
dd184caf |
3271 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3272 | inside strings and character constants. */ |
3273 | #define FOO(x) 'x' |
3274 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3275 | |
d9898ee8 |
3276 | int test (int i, double x); |
3277 | struct s1 {int (*f) (int a);}; |
3278 | struct s2 {int (*f) (double a);}; |
3279 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3280 | int argc; |
3281 | char **argv; |
3282 | int |
3283 | main () |
3284 | { |
3285 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3286 | ; |
3287 | return 0; |
3288 | } |
3289 | _ACEOF |
dd184caf |
3290 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3291 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3292 | do |
3293 | CC="$ac_save_CC $ac_arg" |
3294 | rm -f conftest.$ac_objext |
dd184caf |
3295 | if { (ac_try="$ac_compile" |
3296 | case "(($ac_try" in |
3297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3298 | *) ac_try_echo=$ac_try;; |
3299 | esac |
3300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3301 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3302 | ac_status=$? |
3303 | grep -v '^ *+' conftest.er1 >conftest.err |
3304 | rm -f conftest.er1 |
3305 | cat conftest.err >&5 |
3306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3307 | (exit $ac_status); } && { |
3308 | test -z "$ac_c_werror_flag" || |
3309 | test ! -s conftest.err |
3310 | } && test -s conftest.$ac_objext; then |
3311 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3312 | else |
3313 | echo "$as_me: failed program was:" >&5 |
3314 | sed 's/^/| /' conftest.$ac_ext >&5 |
3315 | |
dd184caf |
3316 | |
d9898ee8 |
3317 | fi |
dd184caf |
3318 | |
3319 | rm -f core conftest.err conftest.$ac_objext |
3320 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3321 | done |
dd184caf |
3322 | rm -f conftest.$ac_ext |
d9898ee8 |
3323 | CC=$ac_save_CC |
3324 | |
3325 | fi |
dd184caf |
3326 | # AC_CACHE_VAL |
3327 | case "x$ac_cv_prog_cc_c89" in |
3328 | x) |
3329 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3330 | echo "${ECHO_T}none needed" >&6; } ;; |
3331 | xno) |
3332 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3333 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3334 | *) |
dd184caf |
3335 | CC="$CC $ac_cv_prog_cc_c89" |
3336 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3337 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3338 | esac |
3339 | |
d9898ee8 |
3340 | |
d9898ee8 |
3341 | ac_ext=c |
3342 | ac_cpp='$CPP $CPPFLAGS' |
3343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3346 | DEPDIR="${am__leading_dot}deps" |
3347 | |
dd184caf |
3348 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3349 | |
3350 | |
3351 | am_make=${MAKE-make} |
3352 | cat > confinc << 'END' |
3353 | am__doit: |
3354 | @echo done |
3355 | .PHONY: am__doit |
3356 | END |
3357 | # If we don't find an include directive, just comment out the code. |
dd184caf |
3358 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3359 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3360 | am__include="#" |
3361 | am__quote= |
3362 | _am_result=none |
3363 | # First try GNU make style include. |
3364 | echo "include confinc" > confmf |
3365 | # We grep out `Entering directory' and `Leaving directory' |
3366 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3367 | # In particular we don't look at `^make:' because GNU make might |
3368 | # be invoked under some other name (usually "gmake"), in which |
3369 | # case it prints its new name instead of `make'. |
3370 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3371 | am__include=include |
3372 | am__quote= |
3373 | _am_result=GNU |
3374 | fi |
3375 | # Now try BSD make style include. |
3376 | if test "$am__include" = "#"; then |
3377 | echo '.include "confinc"' > confmf |
3378 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3379 | am__include=.include |
3380 | am__quote="\"" |
3381 | _am_result=BSD |
3382 | fi |
3383 | fi |
3384 | |
3385 | |
dd184caf |
3386 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3387 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3388 | rm -f confinc confmf |
3389 | |
dd184caf |
3390 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3391 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf |
3392 | enableval=$enable_dependency_tracking; |
3393 | fi |
d9898ee8 |
3394 | |
d9898ee8 |
3395 | if test "x$enable_dependency_tracking" != xno; then |
3396 | am_depcomp="$ac_aux_dir/depcomp" |
3397 | AMDEPBACKSLASH='\' |
3398 | fi |
dd184caf |
3399 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3400 | AMDEP_TRUE= |
3401 | AMDEP_FALSE='#' |
3402 | else |
3403 | AMDEP_TRUE='#' |
3404 | AMDEP_FALSE= |
3405 | fi |
3406 | |
3407 | |
3408 | |
d9898ee8 |
3409 | depcc="$CC" am_compiler_list= |
3410 | |
dd184caf |
3411 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3412 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3413 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3415 | else |
3416 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3417 | # We make a subdir and do the tests there. Otherwise we can end up |
3418 | # making bogus files that we don't know about and never remove. For |
3419 | # instance it was reported that on HP-UX the gcc test will end up |
3420 | # making a dummy file named `D' -- because `-MD' means `put the output |
3421 | # in D'. |
3422 | mkdir conftest.dir |
3423 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3424 | # using a relative directory. |
3425 | cp "$am_depcomp" conftest.dir |
3426 | cd conftest.dir |
3427 | # We will build objects and dependencies in a subdirectory because |
3428 | # it helps to detect inapplicable dependency modes. For instance |
3429 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3430 | # side effect of compilation, but ICC will put the dependencies in |
3431 | # the current directory while Tru64 will put them in the object |
3432 | # directory. |
3433 | mkdir sub |
3434 | |
3435 | am_cv_CC_dependencies_compiler_type=none |
3436 | if test "$am_compiler_list" = ""; then |
3437 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3438 | fi |
3439 | for depmode in $am_compiler_list; do |
3440 | # Setup a source with many dependencies, because some compilers |
3441 | # like to wrap large dependency lists on column 80 (with \), and |
3442 | # we should not choose a depcomp mode which is confused by this. |
3443 | # |
3444 | # We need to recreate these files for each test, as the compiler may |
3445 | # overwrite some of them when testing with obscure command lines. |
3446 | # This happens at least with the AIX C compiler. |
3447 | : > sub/conftest.c |
3448 | for i in 1 2 3 4 5 6; do |
3449 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3450 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3451 | # Solaris 8's {/usr,}/bin/sh. |
3452 | touch sub/conftst$i.h |
3453 | done |
3454 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3455 | |
3456 | case $depmode in |
3457 | nosideeffect) |
3458 | # after this tag, mechanisms are not by side-effect, so they'll |
3459 | # only be used when explicitly requested |
3460 | if test "x$enable_dependency_tracking" = xyes; then |
3461 | continue |
3462 | else |
3463 | break |
3464 | fi |
3465 | ;; |
3466 | none) break ;; |
3467 | esac |
3468 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3469 | # mode. It turns out that the SunPro C++ compiler does not properly |
3470 | # handle `-M -o', and we need to detect this. |
3471 | if depmode=$depmode \ |
3472 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3473 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3474 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3475 | >/dev/null 2>conftest.err && |
dd184caf |
3476 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3477 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3478 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3479 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3480 | # icc doesn't choke on unknown options, it will just issue warnings |
3481 | # or remarks (even with -Werror). So we grep stderr for any message |
3482 | # that says an option was ignored or not supported. |
3483 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3484 | # icc: Command line warning: ignoring option '-M'; no argument required |
3485 | # The diagnosis changed in icc 8.0: |
3486 | # icc: Command line remark: option '-MP' not supported |
3487 | if (grep 'ignoring option' conftest.err || |
3488 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3489 | am_cv_CC_dependencies_compiler_type=$depmode |
3490 | break |
3491 | fi |
3492 | fi |
3493 | done |
3494 | |
3495 | cd .. |
3496 | rm -rf conftest.dir |
3497 | else |
3498 | am_cv_CC_dependencies_compiler_type=none |
3499 | fi |
3500 | |
3501 | fi |
dd184caf |
3502 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3503 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3504 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3505 | |
dd184caf |
3506 | if |
d9898ee8 |
3507 | test "x$enable_dependency_tracking" != xno \ |
3508 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3509 | am__fastdepCC_TRUE= |
3510 | am__fastdepCC_FALSE='#' |
3511 | else |
3512 | am__fastdepCC_TRUE='#' |
3513 | am__fastdepCC_FALSE= |
3514 | fi |
3515 | |
3516 | |
3517 | # Find a good install program. We prefer a C program (faster), |
3518 | # so one script is as good as another. But avoid the broken or |
3519 | # incompatible versions: |
3520 | # SysV /etc/install, /usr/sbin/install |
3521 | # SunOS /usr/etc/install |
3522 | # IRIX /sbin/install |
3523 | # AIX /bin/install |
3524 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3525 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3526 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3527 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3528 | # OS/2's system install, which has a completely different semantic |
3529 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
3530 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3531 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
3532 | if test -z "$INSTALL"; then |
3533 | if test "${ac_cv_path_install+set}" = set; then |
3534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3535 | else |
3536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3537 | for as_dir in $PATH |
3538 | do |
3539 | IFS=$as_save_IFS |
3540 | test -z "$as_dir" && as_dir=. |
3541 | # Account for people who put trailing slashes in PATH elements. |
3542 | case $as_dir/ in |
3543 | ./ | .// | /cC/* | \ |
3544 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3545 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3546 | /usr/ucb/* ) ;; |
3547 | *) |
3548 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3549 | # Don't use installbsd from OSF since it installs stuff as root |
3550 | # by default. |
3551 | for ac_prog in ginstall scoinst install; do |
3552 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
3553 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3554 | if test $ac_prog = install && |
3555 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3556 | # AIX install. It has an incompatible calling convention. |
3557 | : |
3558 | elif test $ac_prog = install && |
3559 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3560 | # program-specific install script used by HP pwplus--don't use. |
3561 | : |
3562 | else |
3563 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3564 | break 3 |
3565 | fi |
3566 | fi |
3567 | done |
3568 | done |
3569 | ;; |
3570 | esac |
3571 | done |
dd184caf |
3572 | IFS=$as_save_IFS |
d9898ee8 |
3573 | |
3574 | |
3575 | fi |
3576 | if test "${ac_cv_path_install+set}" = set; then |
3577 | INSTALL=$ac_cv_path_install |
3578 | else |
dd184caf |
3579 | # As a last resort, use the slow shell script. Don't cache a |
3580 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
3581 | # break other packages using the cache if that directory is |
dd184caf |
3582 | # removed, or if the value is a relative name. |
d9898ee8 |
3583 | INSTALL=$ac_install_sh |
3584 | fi |
3585 | fi |
dd184caf |
3586 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3587 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
3588 | |
3589 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3590 | # It thinks the first close brace ends the variable substitution. |
3591 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3592 | |
3593 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3594 | |
3595 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3596 | |
dd184caf |
3597 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3598 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
3599 | LN_S=$as_ln_s |
3600 | if test "$LN_S" = "ln -s"; then |
dd184caf |
3601 | { echo "$as_me:$LINENO: result: yes" >&5 |
3602 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3603 | else |
dd184caf |
3604 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3605 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
3606 | fi |
3607 | |
3608 | for ac_prog in perl5 perl |
3609 | do |
3610 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3611 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
3612 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
3614 | if test "${ac_cv_path_PERL+set}" = set; then |
3615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3616 | else |
3617 | case $PERL in |
3618 | [\\/]* | ?:[\\/]*) |
3619 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
3620 | ;; |
3621 | *) |
3622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3623 | for as_dir in $LPATH |
3624 | do |
3625 | IFS=$as_save_IFS |
3626 | test -z "$as_dir" && as_dir=. |
3627 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
3628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
3629 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
3630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3631 | break 2 |
3632 | fi |
3633 | done |
3634 | done |
dd184caf |
3635 | IFS=$as_save_IFS |
d9898ee8 |
3636 | |
3637 | ;; |
3638 | esac |
3639 | fi |
3640 | PERL=$ac_cv_path_PERL |
d9898ee8 |
3641 | if test -n "$PERL"; then |
dd184caf |
3642 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
3643 | echo "${ECHO_T}$PERL" >&6; } |
d9898ee8 |
3644 | else |
dd184caf |
3645 | { echo "$as_me:$LINENO: result: no" >&5 |
3646 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
3647 | fi |
3648 | |
dd184caf |
3649 | |
d9898ee8 |
3650 | test -n "$PERL" && break |
3651 | done |
3652 | test -n "$PERL" || PERL="perl" |
3653 | |
3654 | |
3655 | for ac_prog in cat |
3656 | do |
3657 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3658 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
3659 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
3661 | if test "${ac_cv_path_CAT+set}" = set; then |
3662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3663 | else |
3664 | case $CAT in |
3665 | [\\/]* | ?:[\\/]*) |
3666 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
3667 | ;; |
3668 | *) |
3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3670 | for as_dir in $PATH |
3671 | do |
3672 | IFS=$as_save_IFS |
3673 | test -z "$as_dir" && as_dir=. |
3674 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
3675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
3676 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
3677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3678 | break 2 |
3679 | fi |
3680 | done |
3681 | done |
dd184caf |
3682 | IFS=$as_save_IFS |
d9898ee8 |
3683 | |
3684 | ;; |
3685 | esac |
3686 | fi |
3687 | CAT=$ac_cv_path_CAT |
d9898ee8 |
3688 | if test -n "$CAT"; then |
dd184caf |
3689 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
3690 | echo "${ECHO_T}$CAT" >&6; } |
d9898ee8 |
3691 | else |
dd184caf |
3692 | { echo "$as_me:$LINENO: result: no" >&5 |
3693 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
3694 | fi |
3695 | |
dd184caf |
3696 | |
d9898ee8 |
3697 | test -n "$CAT" && break |
3698 | done |
3699 | test -n "$CAT" || CAT="cat" |
3700 | |
3701 | |
3702 | |
dd184caf |
3703 | # Check whether --enable-shared was given. |
d9898ee8 |
3704 | if test "${enable_shared+set}" = set; then |
dd184caf |
3705 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
3706 | case $enableval in |
3707 | yes) enable_shared=yes ;; |
3708 | no) enable_shared=no ;; |
3709 | *) |
3710 | enable_shared=no |
3711 | # Look at the argument we got. We use all the common list separators. |
3712 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3713 | for pkg in $enableval; do |
3714 | IFS="$lt_save_ifs" |
3715 | if test "X$pkg" = "X$p"; then |
3716 | enable_shared=yes |
3717 | fi |
3718 | done |
3719 | IFS="$lt_save_ifs" |
3720 | ;; |
3721 | esac |
3722 | else |
3723 | enable_shared=yes |
dd184caf |
3724 | fi |
d9898ee8 |
3725 | |
dd184caf |
3726 | |
3727 | # Check whether --enable-static was given. |
d9898ee8 |
3728 | if test "${enable_static+set}" = set; then |
dd184caf |
3729 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
3730 | case $enableval in |
3731 | yes) enable_static=yes ;; |
3732 | no) enable_static=no ;; |
3733 | *) |
3734 | enable_static=no |
3735 | # Look at the argument we got. We use all the common list separators. |
3736 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3737 | for pkg in $enableval; do |
3738 | IFS="$lt_save_ifs" |
3739 | if test "X$pkg" = "X$p"; then |
3740 | enable_static=yes |
3741 | fi |
3742 | done |
3743 | IFS="$lt_save_ifs" |
3744 | ;; |
3745 | esac |
3746 | else |
3747 | enable_static=yes |
dd184caf |
3748 | fi |
d9898ee8 |
3749 | |
dd184caf |
3750 | |
3751 | # Check whether --enable-fast-install was given. |
d9898ee8 |
3752 | if test "${enable_fast_install+set}" = set; then |
dd184caf |
3753 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
3754 | case $enableval in |
3755 | yes) enable_fast_install=yes ;; |
3756 | no) enable_fast_install=no ;; |
3757 | *) |
3758 | enable_fast_install=no |
3759 | # Look at the argument we got. We use all the common list separators. |
3760 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3761 | for pkg in $enableval; do |
3762 | IFS="$lt_save_ifs" |
3763 | if test "X$pkg" = "X$p"; then |
3764 | enable_fast_install=yes |
3765 | fi |
3766 | done |
3767 | IFS="$lt_save_ifs" |
3768 | ;; |
3769 | esac |
3770 | else |
3771 | enable_fast_install=yes |
dd184caf |
3772 | fi |
3773 | |
d9898ee8 |
3774 | |
3775 | # Make sure we can run config.sub. |
dd184caf |
3776 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3777 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3778 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
3779 | { (exit 1); exit 1; }; } |
3780 | |
dd184caf |
3781 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3782 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
3783 | if test "${ac_cv_build+set}" = set; then |
3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3785 | else |
dd184caf |
3786 | ac_build_alias=$build_alias |
3787 | test "x$ac_build_alias" = x && |
3788 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3789 | test "x$ac_build_alias" = x && |
d9898ee8 |
3790 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3791 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3792 | { (exit 1); exit 1; }; } |
dd184caf |
3793 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3794 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3795 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
3796 | { (exit 1); exit 1; }; } |
3797 | |
3798 | fi |
dd184caf |
3799 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3800 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3801 | case $ac_cv_build in |
3802 | *-*-*) ;; |
3803 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3804 | echo "$as_me: error: invalid value of canonical build" >&2;} |
3805 | { (exit 1); exit 1; }; };; |
3806 | esac |
d9898ee8 |
3807 | build=$ac_cv_build |
dd184caf |
3808 | ac_save_IFS=$IFS; IFS='-' |
3809 | set x $ac_cv_build |
3810 | shift |
3811 | build_cpu=$1 |
3812 | build_vendor=$2 |
3813 | shift; shift |
3814 | # Remember, the first character of IFS is used to create $*, |
3815 | # except with old shells: |
3816 | build_os=$* |
3817 | IFS=$ac_save_IFS |
3818 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3819 | |
3820 | |
3821 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3822 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
3823 | if test "${ac_cv_host+set}" = set; then |
3824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3825 | else |
dd184caf |
3826 | if test "x$host_alias" = x; then |
3827 | ac_cv_host=$ac_cv_build |
3828 | else |
3829 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3830 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3831 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
3832 | { (exit 1); exit 1; }; } |
dd184caf |
3833 | fi |
d9898ee8 |
3834 | |
3835 | fi |
dd184caf |
3836 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3837 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3838 | case $ac_cv_host in |
3839 | *-*-*) ;; |
3840 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3841 | echo "$as_me: error: invalid value of canonical host" >&2;} |
3842 | { (exit 1); exit 1; }; };; |
3843 | esac |
d9898ee8 |
3844 | host=$ac_cv_host |
dd184caf |
3845 | ac_save_IFS=$IFS; IFS='-' |
3846 | set x $ac_cv_host |
3847 | shift |
3848 | host_cpu=$1 |
3849 | host_vendor=$2 |
3850 | shift; shift |
3851 | # Remember, the first character of IFS is used to create $*, |
3852 | # except with old shells: |
3853 | host_os=$* |
3854 | IFS=$ac_save_IFS |
3855 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3856 | |
3857 | |
3858 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3859 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
3860 | if test "${lt_cv_path_SED+set}" = set; then |
3861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862 | else |
3863 | # Loop through the user's path and test for sed and gsed. |
3864 | # Then use that list of sed's as ones to test for truncation. |
3865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3866 | for as_dir in $PATH |
3867 | do |
3868 | IFS=$as_save_IFS |
3869 | test -z "$as_dir" && as_dir=. |
3870 | for lt_ac_prog in sed gsed; do |
3871 | for ac_exec_ext in '' $ac_executable_extensions; do |
3872 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3873 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3874 | fi |
3875 | done |
3876 | done |
3877 | done |
3878 | IFS=$as_save_IFS |
3879 | lt_ac_max=0 |
3880 | lt_ac_count=0 |
3881 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3882 | # along with /bin/sed that truncates output. |
3883 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3884 | test ! -f $lt_ac_sed && continue |
3885 | cat /dev/null > conftest.in |
3886 | lt_ac_count=0 |
3887 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3888 | # Check for GNU sed and select it if it is found. |
3889 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3890 | lt_cv_path_SED=$lt_ac_sed |
3891 | break |
3892 | fi |
3893 | while true; do |
3894 | cat conftest.in conftest.in >conftest.tmp |
3895 | mv conftest.tmp conftest.in |
3896 | cp conftest.in conftest.nl |
3897 | echo >>conftest.nl |
3898 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3899 | cmp -s conftest.out conftest.nl || break |
3900 | # 10000 chars as input seems more than enough |
3901 | test $lt_ac_count -gt 10 && break |
3902 | lt_ac_count=`expr $lt_ac_count + 1` |
3903 | if test $lt_ac_count -gt $lt_ac_max; then |
3904 | lt_ac_max=$lt_ac_count |
3905 | lt_cv_path_SED=$lt_ac_sed |
3906 | fi |
3907 | done |
3908 | done |
3909 | |
3910 | fi |
3911 | |
3912 | SED=$lt_cv_path_SED |
3913 | |
dd184caf |
3914 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3915 | echo "${ECHO_T}$SED" >&6; } |
3916 | |
3917 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3918 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3919 | if test "${ac_cv_path_GREP+set}" = set; then |
3920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3921 | else |
3922 | # Extract the first word of "grep ggrep" to use in msg output |
3923 | if test -z "$GREP"; then |
3924 | set dummy grep ggrep; ac_prog_name=$2 |
3925 | if test "${ac_cv_path_GREP+set}" = set; then |
3926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3927 | else |
3928 | ac_path_GREP_found=false |
3929 | # Loop through the user's path and test for each of PROGNAME-LIST |
3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3931 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3932 | do |
3933 | IFS=$as_save_IFS |
3934 | test -z "$as_dir" && as_dir=. |
3935 | for ac_prog in grep ggrep; do |
3936 | for ac_exec_ext in '' $ac_executable_extensions; do |
3937 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3938 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3939 | # Check for GNU ac_path_GREP and select it if it is found. |
3940 | # Check for GNU $ac_path_GREP |
3941 | case `"$ac_path_GREP" --version 2>&1` in |
3942 | *GNU*) |
3943 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3944 | *) |
3945 | ac_count=0 |
3946 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3947 | while : |
3948 | do |
3949 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3950 | mv "conftest.tmp" "conftest.in" |
3951 | cp "conftest.in" "conftest.nl" |
3952 | echo 'GREP' >> "conftest.nl" |
3953 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3954 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3955 | ac_count=`expr $ac_count + 1` |
3956 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3957 | # Best one so far, save it but keep looking for a better one |
3958 | ac_cv_path_GREP="$ac_path_GREP" |
3959 | ac_path_GREP_max=$ac_count |
3960 | fi |
3961 | # 10*(2^10) chars as input seems more than enough |
3962 | test $ac_count -gt 10 && break |
3963 | done |
3964 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3965 | esac |
3966 | |
3967 | |
3968 | $ac_path_GREP_found && break 3 |
3969 | done |
3970 | done |
3971 | |
3972 | done |
3973 | IFS=$as_save_IFS |
3974 | |
3975 | |
3976 | fi |
3977 | |
3978 | GREP="$ac_cv_path_GREP" |
3979 | if test -z "$GREP"; then |
3980 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3981 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3982 | { (exit 1); exit 1; }; } |
3983 | fi |
3984 | |
3985 | else |
3986 | ac_cv_path_GREP=$GREP |
3987 | fi |
3988 | |
3989 | |
3990 | fi |
3991 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3992 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3993 | GREP="$ac_cv_path_GREP" |
3994 | |
d9898ee8 |
3995 | |
dd184caf |
3996 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3997 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3998 | if test "${ac_cv_path_EGREP+set}" = set; then |
3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4000 | else |
4001 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4002 | then ac_cv_path_EGREP="$GREP -E" |
4003 | else |
4004 | # Extract the first word of "egrep" to use in msg output |
4005 | if test -z "$EGREP"; then |
4006 | set dummy egrep; ac_prog_name=$2 |
4007 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
4008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4009 | else |
dd184caf |
4010 | ac_path_EGREP_found=false |
4011 | # Loop through the user's path and test for each of PROGNAME-LIST |
4012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4013 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4014 | do |
4015 | IFS=$as_save_IFS |
4016 | test -z "$as_dir" && as_dir=. |
4017 | for ac_prog in egrep; do |
4018 | for ac_exec_ext in '' $ac_executable_extensions; do |
4019 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4020 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4021 | # Check for GNU ac_path_EGREP and select it if it is found. |
4022 | # Check for GNU $ac_path_EGREP |
4023 | case `"$ac_path_EGREP" --version 2>&1` in |
4024 | *GNU*) |
4025 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4026 | *) |
4027 | ac_count=0 |
4028 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
4029 | while : |
4030 | do |
4031 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4032 | mv "conftest.tmp" "conftest.in" |
4033 | cp "conftest.in" "conftest.nl" |
4034 | echo 'EGREP' >> "conftest.nl" |
4035 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4036 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4037 | ac_count=`expr $ac_count + 1` |
4038 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4039 | # Best one so far, save it but keep looking for a better one |
4040 | ac_cv_path_EGREP="$ac_path_EGREP" |
4041 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
4042 | fi |
dd184caf |
4043 | # 10*(2^10) chars as input seems more than enough |
4044 | test $ac_count -gt 10 && break |
4045 | done |
4046 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4047 | esac |
4048 | |
4049 | |
4050 | $ac_path_EGREP_found && break 3 |
4051 | done |
4052 | done |
4053 | |
4054 | done |
4055 | IFS=$as_save_IFS |
4056 | |
4057 | |
4058 | fi |
4059 | |
4060 | EGREP="$ac_cv_path_EGREP" |
4061 | if test -z "$EGREP"; then |
4062 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4063 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4064 | { (exit 1); exit 1; }; } |
4065 | fi |
4066 | |
4067 | else |
4068 | ac_cv_path_EGREP=$EGREP |
4069 | fi |
4070 | |
4071 | |
4072 | fi |
d9898ee8 |
4073 | fi |
dd184caf |
4074 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4075 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4076 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
4077 | |
4078 | |
4079 | |
dd184caf |
4080 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4081 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
4082 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4083 | else |
4084 | with_gnu_ld=no |
dd184caf |
4085 | fi |
4086 | |
d9898ee8 |
4087 | ac_prog=ld |
4088 | if test "$GCC" = yes; then |
4089 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
4090 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4091 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4092 | case $host in |
4093 | *-*-mingw*) |
4094 | # gcc leaves a trailing carriage return which upsets mingw |
4095 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4096 | *) |
4097 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4098 | esac |
4099 | case $ac_prog in |
4100 | # Accept absolute paths. |
4101 | [\\/]* | ?:[\\/]*) |
4102 | re_direlt='/[^/][^/]*/\.\./' |
4103 | # Canonicalize the pathname of ld |
4104 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4105 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4106 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4107 | done |
4108 | test -z "$LD" && LD="$ac_prog" |
4109 | ;; |
4110 | "") |
4111 | # If it fails, then pretend we aren't using GCC. |
4112 | ac_prog=ld |
4113 | ;; |
4114 | *) |
4115 | # If it is relative, then search for the first ld in PATH. |
4116 | with_gnu_ld=unknown |
4117 | ;; |
4118 | esac |
4119 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
4120 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4121 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4122 | else |
dd184caf |
4123 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4124 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4125 | fi |
4126 | if test "${lt_cv_path_LD+set}" = set; then |
4127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4128 | else |
4129 | if test -z "$LD"; then |
4130 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4131 | for ac_dir in $PATH; do |
4132 | IFS="$lt_save_ifs" |
4133 | test -z "$ac_dir" && ac_dir=. |
4134 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4135 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4136 | # Check to see if the program is GNU ld. I'd rather use --version, |
4137 | # but apparently some variants of GNU ld only accept -v. |
4138 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4139 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4140 | *GNU* | *'with BFD'*) |
4141 | test "$with_gnu_ld" != no && break |
4142 | ;; |
4143 | *) |
4144 | test "$with_gnu_ld" != yes && break |
4145 | ;; |
4146 | esac |
4147 | fi |
4148 | done |
4149 | IFS="$lt_save_ifs" |
4150 | else |
4151 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4152 | fi |
4153 | fi |
4154 | |
4155 | LD="$lt_cv_path_LD" |
4156 | if test -n "$LD"; then |
dd184caf |
4157 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4158 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4159 | else |
dd184caf |
4160 | { echo "$as_me:$LINENO: result: no" >&5 |
4161 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4162 | fi |
4163 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4164 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4165 | { (exit 1); exit 1; }; } |
dd184caf |
4166 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4167 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4168 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4170 | else |
4171 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4172 | case `$LD -v 2>&1 </dev/null` in |
4173 | *GNU* | *'with BFD'*) |
4174 | lt_cv_prog_gnu_ld=yes |
4175 | ;; |
4176 | *) |
4177 | lt_cv_prog_gnu_ld=no |
4178 | ;; |
4179 | esac |
4180 | fi |
dd184caf |
4181 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4182 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4183 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4184 | |
4185 | |
dd184caf |
4186 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4187 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4188 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4190 | else |
4191 | lt_cv_ld_reload_flag='-r' |
4192 | fi |
dd184caf |
4193 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4194 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4195 | reload_flag=$lt_cv_ld_reload_flag |
4196 | case $reload_flag in |
4197 | "" | " "*) ;; |
4198 | *) reload_flag=" $reload_flag" ;; |
4199 | esac |
4200 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4201 | case $host_os in |
4202 | darwin*) |
4203 | if test "$GCC" = yes; then |
4204 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4205 | else |
4206 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4207 | fi |
4208 | ;; |
4209 | esac |
4210 | |
dd184caf |
4211 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4212 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4213 | if test "${lt_cv_path_NM+set}" = set; then |
4214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4215 | else |
4216 | if test -n "$NM"; then |
4217 | # Let the user override the test. |
4218 | lt_cv_path_NM="$NM" |
4219 | else |
4220 | lt_nm_to_check="${ac_tool_prefix}nm" |
4221 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4222 | lt_nm_to_check="$lt_nm_to_check nm" |
4223 | fi |
4224 | for lt_tmp_nm in $lt_nm_to_check; do |
4225 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4226 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4227 | IFS="$lt_save_ifs" |
4228 | test -z "$ac_dir" && ac_dir=. |
4229 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4230 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4231 | # Check to see if the nm accepts a BSD-compat flag. |
4232 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4233 | # nm: unknown option "B" ignored |
4234 | # Tru64's nm complains that /dev/null is an invalid object file |
4235 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4236 | */dev/null* | *'Invalid file or object type'*) |
4237 | lt_cv_path_NM="$tmp_nm -B" |
4238 | break |
4239 | ;; |
4240 | *) |
4241 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4242 | */dev/null*) |
4243 | lt_cv_path_NM="$tmp_nm -p" |
4244 | break |
4245 | ;; |
4246 | *) |
4247 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4248 | continue # so that we can try to find one that supports BSD flags |
4249 | ;; |
4250 | esac |
4251 | ;; |
4252 | esac |
4253 | fi |
4254 | done |
4255 | IFS="$lt_save_ifs" |
4256 | done |
4257 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4258 | fi |
4259 | fi |
dd184caf |
4260 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4261 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4262 | NM="$lt_cv_path_NM" |
4263 | |
dd184caf |
4264 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4265 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4266 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4268 | else |
4269 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4270 | lt_cv_file_magic_test_file= |
4271 | lt_cv_deplibs_check_method='unknown' |
4272 | # Need to set the preceding variable on all platforms that support |
4273 | # interlibrary dependencies. |
4274 | # 'none' -- dependencies not supported. |
4275 | # `unknown' -- same as none, but documents that we really don't know. |
4276 | # 'pass_all' -- all dependencies passed with no checks. |
4277 | # 'test_compile' -- check by making test program. |
4278 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4279 | # which responds to the $file_magic_cmd with a given extended regex. |
4280 | # If you have `file' or equivalent on your system and you're not sure |
4281 | # whether `pass_all' will *always* work, you probably want this one. |
4282 | |
4283 | case $host_os in |
4284 | aix4* | aix5*) |
4285 | lt_cv_deplibs_check_method=pass_all |
4286 | ;; |
4287 | |
4288 | beos*) |
4289 | lt_cv_deplibs_check_method=pass_all |
4290 | ;; |
4291 | |
4292 | bsdi[45]*) |
4293 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4294 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4295 | lt_cv_file_magic_test_file=/shlib/libc.so |
4296 | ;; |
4297 | |
4298 | cygwin*) |
4299 | # func_win32_libid is a shell function defined in ltmain.sh |
4300 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4301 | lt_cv_file_magic_cmd='func_win32_libid' |
4302 | ;; |
4303 | |
4304 | mingw* | pw32*) |
4305 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4306 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4307 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4308 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4309 | ;; |
4310 | |
4311 | darwin* | rhapsody*) |
4312 | lt_cv_deplibs_check_method=pass_all |
4313 | ;; |
4314 | |
4315 | freebsd* | kfreebsd*-gnu | dragonfly*) |
4316 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4317 | case $host_cpu in |
4318 | i*86 ) |
4319 | # Not sure whether the presence of OpenBSD here was a mistake. |
4320 | # Let's accept both of them until this is cleared up. |
4321 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4322 | lt_cv_file_magic_cmd=/usr/bin/file |
4323 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4324 | ;; |
4325 | esac |
4326 | else |
4327 | lt_cv_deplibs_check_method=pass_all |
4328 | fi |
4329 | ;; |
4330 | |
4331 | gnu*) |
4332 | lt_cv_deplibs_check_method=pass_all |
4333 | ;; |
4334 | |
4335 | hpux10.20* | hpux11*) |
4336 | lt_cv_file_magic_cmd=/usr/bin/file |
4337 | case $host_cpu in |
4338 | ia64*) |
4339 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4340 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4341 | ;; |
4342 | hppa*64*) |
4343 | 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]' |
4344 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4345 | ;; |
4346 | *) |
4347 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4348 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4349 | ;; |
4350 | esac |
4351 | ;; |
4352 | |
4353 | interix3*) |
4354 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4355 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4356 | ;; |
4357 | |
4358 | irix5* | irix6* | nonstopux*) |
4359 | case $LD in |
4360 | *-32|*"-32 ") libmagic=32-bit;; |
4361 | *-n32|*"-n32 ") libmagic=N32;; |
4362 | *-64|*"-64 ") libmagic=64-bit;; |
4363 | *) libmagic=never-match;; |
4364 | esac |
4365 | lt_cv_deplibs_check_method=pass_all |
4366 | ;; |
4367 | |
4368 | # This must be Linux ELF. |
4369 | linux*) |
4370 | lt_cv_deplibs_check_method=pass_all |
4371 | ;; |
4372 | |
4373 | netbsd*) |
4374 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4375 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4376 | else |
4377 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4378 | fi |
4379 | ;; |
4380 | |
4381 | newos6*) |
4382 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4383 | lt_cv_file_magic_cmd=/usr/bin/file |
4384 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4385 | ;; |
4386 | |
4387 | nto-qnx*) |
4388 | lt_cv_deplibs_check_method=unknown |
4389 | ;; |
4390 | |
4391 | openbsd*) |
4392 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4393 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4394 | else |
4395 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4396 | fi |
4397 | ;; |
4398 | |
4399 | osf3* | osf4* | osf5*) |
4400 | lt_cv_deplibs_check_method=pass_all |
4401 | ;; |
4402 | |
4403 | solaris*) |
4404 | lt_cv_deplibs_check_method=pass_all |
4405 | ;; |
4406 | |
4407 | sysv4 | sysv4.3*) |
4408 | case $host_vendor in |
4409 | motorola) |
4410 | 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]' |
4411 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4412 | ;; |
4413 | ncr) |
4414 | lt_cv_deplibs_check_method=pass_all |
4415 | ;; |
4416 | sequent) |
4417 | lt_cv_file_magic_cmd='/bin/file' |
4418 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4419 | ;; |
4420 | sni) |
4421 | lt_cv_file_magic_cmd='/bin/file' |
4422 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4423 | lt_cv_file_magic_test_file=/lib/libc.so |
4424 | ;; |
4425 | siemens) |
4426 | lt_cv_deplibs_check_method=pass_all |
4427 | ;; |
4428 | pc) |
4429 | lt_cv_deplibs_check_method=pass_all |
4430 | ;; |
4431 | esac |
4432 | ;; |
4433 | |
4434 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4435 | lt_cv_deplibs_check_method=pass_all |
4436 | ;; |
4437 | esac |
4438 | |
4439 | fi |
dd184caf |
4440 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4441 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4442 | file_magic_cmd=$lt_cv_file_magic_cmd |
4443 | deplibs_check_method=$lt_cv_deplibs_check_method |
4444 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4445 | |
4446 | |
4447 | |
4448 | |
4449 | # If no C compiler was specified, use CC. |
4450 | LTCC=${LTCC-"$CC"} |
4451 | |
4452 | # If no C compiler flags were specified, use CFLAGS. |
4453 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4454 | |
4455 | # Allow CC to be a program name with arguments. |
4456 | compiler=$CC |
4457 | |
4458 | |
dd184caf |
4459 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4460 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
4461 | enableval=$enable_libtool_lock; |
4462 | fi |
d9898ee8 |
4463 | |
d9898ee8 |
4464 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4465 | |
4466 | # Some flags need to be propagated to the compiler or linker for good |
4467 | # libtool support. |
4468 | case $host in |
4469 | ia64-*-hpux*) |
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.$ac_objext` in |
4478 | *ELF-32*) |
4479 | HPUX_IA64_MODE="32" |
4480 | ;; |
4481 | *ELF-64*) |
4482 | HPUX_IA64_MODE="64" |
4483 | ;; |
4484 | esac |
4485 | fi |
4486 | rm -rf conftest* |
4487 | ;; |
4488 | *-*-irix6*) |
4489 | # Find out which ABI we are using. |
dd184caf |
4490 | echo '#line 4490 "configure"' > conftest.$ac_ext |
d9898ee8 |
4491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4492 | (eval $ac_compile) 2>&5 |
4493 | ac_status=$? |
4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4495 | (exit $ac_status); }; then |
4496 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4497 | case `/usr/bin/file conftest.$ac_objext` in |
4498 | *32-bit*) |
4499 | LD="${LD-ld} -melf32bsmip" |
4500 | ;; |
4501 | *N32*) |
4502 | LD="${LD-ld} -melf32bmipn32" |
4503 | ;; |
4504 | *64-bit*) |
4505 | LD="${LD-ld} -melf64bmip" |
4506 | ;; |
4507 | esac |
4508 | else |
4509 | case `/usr/bin/file conftest.$ac_objext` in |
4510 | *32-bit*) |
4511 | LD="${LD-ld} -32" |
4512 | ;; |
4513 | *N32*) |
4514 | LD="${LD-ld} -n32" |
4515 | ;; |
4516 | *64-bit*) |
4517 | LD="${LD-ld} -64" |
4518 | ;; |
4519 | esac |
4520 | fi |
4521 | fi |
4522 | rm -rf conftest* |
4523 | ;; |
4524 | |
4525 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4526 | # Find out which ABI we are using. |
4527 | echo 'int i;' > conftest.$ac_ext |
4528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4529 | (eval $ac_compile) 2>&5 |
4530 | ac_status=$? |
4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4532 | (exit $ac_status); }; then |
4533 | case `/usr/bin/file conftest.o` in |
4534 | *32-bit*) |
4535 | case $host in |
4536 | x86_64-*linux*) |
4537 | LD="${LD-ld} -m elf_i386" |
4538 | ;; |
4539 | ppc64-*linux*|powerpc64-*linux*) |
4540 | LD="${LD-ld} -m elf32ppclinux" |
4541 | ;; |
4542 | s390x-*linux*) |
4543 | LD="${LD-ld} -m elf_s390" |
4544 | ;; |
4545 | sparc64-*linux*) |
4546 | LD="${LD-ld} -m elf32_sparc" |
4547 | ;; |
4548 | esac |
4549 | ;; |
4550 | *64-bit*) |
4551 | case $host in |
4552 | x86_64-*linux*) |
4553 | LD="${LD-ld} -m elf_x86_64" |
4554 | ;; |
4555 | ppc*-*linux*|powerpc*-*linux*) |
4556 | LD="${LD-ld} -m elf64ppc" |
4557 | ;; |
4558 | s390*-*linux*) |
4559 | LD="${LD-ld} -m elf64_s390" |
4560 | ;; |
4561 | sparc*-*linux*) |
4562 | LD="${LD-ld} -m elf64_sparc" |
4563 | ;; |
4564 | esac |
4565 | ;; |
4566 | esac |
4567 | fi |
4568 | rm -rf conftest* |
4569 | ;; |
4570 | |
4571 | *-*-sco3.2v5*) |
4572 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4573 | SAVE_CFLAGS="$CFLAGS" |
4574 | CFLAGS="$CFLAGS -belf" |
dd184caf |
4575 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4576 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
4577 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4579 | else |
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 | cat >conftest.$ac_ext <<_ACEOF |
4587 | /* confdefs.h. */ |
4588 | _ACEOF |
4589 | cat confdefs.h >>conftest.$ac_ext |
4590 | cat >>conftest.$ac_ext <<_ACEOF |
4591 | /* end confdefs.h. */ |
4592 | |
4593 | int |
4594 | main () |
4595 | { |
4596 | |
4597 | ; |
4598 | return 0; |
4599 | } |
4600 | _ACEOF |
4601 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
4602 | if { (ac_try="$ac_link" |
4603 | case "(($ac_try" in |
4604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4605 | *) ac_try_echo=$ac_try;; |
4606 | esac |
4607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4608 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4609 | ac_status=$? |
4610 | grep -v '^ *+' conftest.er1 >conftest.err |
4611 | rm -f conftest.er1 |
4612 | cat conftest.err >&5 |
4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4614 | (exit $ac_status); } && { |
4615 | test -z "$ac_c_werror_flag" || |
4616 | test ! -s conftest.err |
4617 | } && test -s conftest$ac_exeext && |
4618 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4619 | lt_cv_cc_needs_belf=yes |
4620 | else |
4621 | echo "$as_me: failed program was:" >&5 |
4622 | sed 's/^/| /' conftest.$ac_ext >&5 |
4623 | |
dd184caf |
4624 | lt_cv_cc_needs_belf=no |
d9898ee8 |
4625 | fi |
dd184caf |
4626 | |
4627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4628 | conftest$ac_exeext conftest.$ac_ext |
4629 | ac_ext=c |
4630 | ac_cpp='$CPP $CPPFLAGS' |
4631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4634 | |
4635 | fi |
dd184caf |
4636 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4637 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
4638 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4639 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4640 | CFLAGS="$SAVE_CFLAGS" |
4641 | fi |
4642 | ;; |
4643 | sparc*-*solaris*) |
4644 | # Find out which ABI we are using. |
4645 | echo 'int i;' > conftest.$ac_ext |
4646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4647 | (eval $ac_compile) 2>&5 |
4648 | ac_status=$? |
4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4650 | (exit $ac_status); }; then |
4651 | case `/usr/bin/file conftest.o` in |
4652 | *64-bit*) |
4653 | case $lt_cv_prog_gnu_ld in |
4654 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4655 | *) LD="${LD-ld} -64" ;; |
4656 | esac |
4657 | ;; |
4658 | esac |
4659 | fi |
4660 | rm -rf conftest* |
4661 | ;; |
4662 | |
4663 | |
4664 | esac |
4665 | |
4666 | need_locks="$enable_libtool_lock" |
4667 | |
4668 | |
4669 | ac_ext=c |
4670 | ac_cpp='$CPP $CPPFLAGS' |
4671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
dd184caf |
4674 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4675 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
4676 | # On Suns, sometimes $CPP names a directory. |
4677 | if test -n "$CPP" && test -d "$CPP"; then |
4678 | CPP= |
4679 | fi |
4680 | if test -z "$CPP"; then |
4681 | if test "${ac_cv_prog_CPP+set}" = set; then |
4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4683 | else |
4684 | # Double quotes because CPP needs to be expanded |
4685 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4686 | do |
4687 | ac_preproc_ok=false |
4688 | for ac_c_preproc_warn_flag in '' yes |
4689 | do |
4690 | # Use a header file that comes with gcc, so configuring glibc |
4691 | # with a fresh cross-compiler works. |
4692 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4693 | # <limits.h> exists even on freestanding compilers. |
4694 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4695 | # not just through cpp. "Syntax error" is here to catch this case. |
4696 | cat >conftest.$ac_ext <<_ACEOF |
4697 | /* confdefs.h. */ |
4698 | _ACEOF |
4699 | cat confdefs.h >>conftest.$ac_ext |
4700 | cat >>conftest.$ac_ext <<_ACEOF |
4701 | /* end confdefs.h. */ |
4702 | #ifdef __STDC__ |
4703 | # include <limits.h> |
4704 | #else |
4705 | # include <assert.h> |
4706 | #endif |
4707 | Syntax error |
4708 | _ACEOF |
dd184caf |
4709 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4710 | case "(($ac_try" in |
4711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4712 | *) ac_try_echo=$ac_try;; |
4713 | esac |
4714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4715 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4716 | ac_status=$? |
4717 | grep -v '^ *+' conftest.er1 >conftest.err |
4718 | rm -f conftest.er1 |
4719 | cat conftest.err >&5 |
4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4721 | (exit $ac_status); } >/dev/null && { |
4722 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4723 | test ! -s conftest.err |
4724 | }; then |
d9898ee8 |
4725 | : |
4726 | else |
4727 | echo "$as_me: failed program was:" >&5 |
4728 | sed 's/^/| /' conftest.$ac_ext >&5 |
4729 | |
4730 | # Broken: fails on valid input. |
4731 | continue |
4732 | fi |
dd184caf |
4733 | |
d9898ee8 |
4734 | rm -f conftest.err conftest.$ac_ext |
4735 | |
dd184caf |
4736 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4737 | # can be detected and how. |
4738 | cat >conftest.$ac_ext <<_ACEOF |
4739 | /* confdefs.h. */ |
4740 | _ACEOF |
4741 | cat confdefs.h >>conftest.$ac_ext |
4742 | cat >>conftest.$ac_ext <<_ACEOF |
4743 | /* end confdefs.h. */ |
4744 | #include <ac_nonexistent.h> |
4745 | _ACEOF |
dd184caf |
4746 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4747 | case "(($ac_try" in |
4748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4749 | *) ac_try_echo=$ac_try;; |
4750 | esac |
4751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4752 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4753 | ac_status=$? |
4754 | grep -v '^ *+' conftest.er1 >conftest.err |
4755 | rm -f conftest.er1 |
4756 | cat conftest.err >&5 |
4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4758 | (exit $ac_status); } >/dev/null && { |
4759 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4760 | test ! -s conftest.err |
4761 | }; then |
d9898ee8 |
4762 | # Broken: success on invalid input. |
4763 | continue |
4764 | else |
4765 | echo "$as_me: failed program was:" >&5 |
4766 | sed 's/^/| /' conftest.$ac_ext >&5 |
4767 | |
4768 | # Passes both tests. |
4769 | ac_preproc_ok=: |
4770 | break |
4771 | fi |
dd184caf |
4772 | |
d9898ee8 |
4773 | rm -f conftest.err conftest.$ac_ext |
4774 | |
4775 | done |
4776 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4777 | rm -f conftest.err conftest.$ac_ext |
4778 | if $ac_preproc_ok; then |
4779 | break |
4780 | fi |
4781 | |
4782 | done |
4783 | ac_cv_prog_CPP=$CPP |
4784 | |
4785 | fi |
4786 | CPP=$ac_cv_prog_CPP |
4787 | else |
4788 | ac_cv_prog_CPP=$CPP |
4789 | fi |
dd184caf |
4790 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4791 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
4792 | ac_preproc_ok=false |
4793 | for ac_c_preproc_warn_flag in '' yes |
4794 | do |
4795 | # Use a header file that comes with gcc, so configuring glibc |
4796 | # with a fresh cross-compiler works. |
4797 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4798 | # <limits.h> exists even on freestanding compilers. |
4799 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4800 | # not just through cpp. "Syntax error" is here to catch this case. |
4801 | cat >conftest.$ac_ext <<_ACEOF |
4802 | /* confdefs.h. */ |
4803 | _ACEOF |
4804 | cat confdefs.h >>conftest.$ac_ext |
4805 | cat >>conftest.$ac_ext <<_ACEOF |
4806 | /* end confdefs.h. */ |
4807 | #ifdef __STDC__ |
4808 | # include <limits.h> |
4809 | #else |
4810 | # include <assert.h> |
4811 | #endif |
4812 | Syntax error |
4813 | _ACEOF |
dd184caf |
4814 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4815 | case "(($ac_try" in |
4816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4817 | *) ac_try_echo=$ac_try;; |
4818 | esac |
4819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4821 | ac_status=$? |
4822 | grep -v '^ *+' conftest.er1 >conftest.err |
4823 | rm -f conftest.er1 |
4824 | cat conftest.err >&5 |
4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4826 | (exit $ac_status); } >/dev/null && { |
4827 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4828 | test ! -s conftest.err |
4829 | }; then |
d9898ee8 |
4830 | : |
4831 | else |
4832 | echo "$as_me: failed program was:" >&5 |
4833 | sed 's/^/| /' conftest.$ac_ext >&5 |
4834 | |
4835 | # Broken: fails on valid input. |
4836 | continue |
4837 | fi |
dd184caf |
4838 | |
d9898ee8 |
4839 | rm -f conftest.err conftest.$ac_ext |
4840 | |
dd184caf |
4841 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4842 | # can be detected and how. |
4843 | cat >conftest.$ac_ext <<_ACEOF |
4844 | /* confdefs.h. */ |
4845 | _ACEOF |
4846 | cat confdefs.h >>conftest.$ac_ext |
4847 | cat >>conftest.$ac_ext <<_ACEOF |
4848 | /* end confdefs.h. */ |
4849 | #include <ac_nonexistent.h> |
4850 | _ACEOF |
dd184caf |
4851 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4852 | case "(($ac_try" in |
4853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4854 | *) ac_try_echo=$ac_try;; |
4855 | esac |
4856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4857 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4858 | ac_status=$? |
4859 | grep -v '^ *+' conftest.er1 >conftest.err |
4860 | rm -f conftest.er1 |
4861 | cat conftest.err >&5 |
4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4863 | (exit $ac_status); } >/dev/null && { |
4864 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4865 | test ! -s conftest.err |
4866 | }; then |
d9898ee8 |
4867 | # Broken: success on invalid input. |
4868 | continue |
4869 | else |
4870 | echo "$as_me: failed program was:" >&5 |
4871 | sed 's/^/| /' conftest.$ac_ext >&5 |
4872 | |
4873 | # Passes both tests. |
4874 | ac_preproc_ok=: |
4875 | break |
4876 | fi |
dd184caf |
4877 | |
d9898ee8 |
4878 | rm -f conftest.err conftest.$ac_ext |
4879 | |
4880 | done |
4881 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4882 | rm -f conftest.err conftest.$ac_ext |
4883 | if $ac_preproc_ok; then |
4884 | : |
4885 | else |
4886 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4887 | See \`config.log' for more details." >&5 |
4888 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4889 | See \`config.log' for more details." >&2;} |
4890 | { (exit 1); exit 1; }; } |
4891 | fi |
4892 | |
4893 | ac_ext=c |
4894 | ac_cpp='$CPP $CPPFLAGS' |
4895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4898 | |
4899 | |
dd184caf |
4900 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4901 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
4902 | if test "${ac_cv_header_stdc+set}" = set; then |
4903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4904 | else |
4905 | cat >conftest.$ac_ext <<_ACEOF |
4906 | /* confdefs.h. */ |
4907 | _ACEOF |
4908 | cat confdefs.h >>conftest.$ac_ext |
4909 | cat >>conftest.$ac_ext <<_ACEOF |
4910 | /* end confdefs.h. */ |
4911 | #include <stdlib.h> |
4912 | #include <stdarg.h> |
4913 | #include <string.h> |
4914 | #include <float.h> |
4915 | |
4916 | int |
4917 | main () |
4918 | { |
4919 | |
4920 | ; |
4921 | return 0; |
4922 | } |
4923 | _ACEOF |
4924 | rm -f conftest.$ac_objext |
dd184caf |
4925 | if { (ac_try="$ac_compile" |
4926 | case "(($ac_try" in |
4927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4928 | *) ac_try_echo=$ac_try;; |
4929 | esac |
4930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4931 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4932 | ac_status=$? |
4933 | grep -v '^ *+' conftest.er1 >conftest.err |
4934 | rm -f conftest.er1 |
4935 | cat conftest.err >&5 |
4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4937 | (exit $ac_status); } && { |
4938 | test -z "$ac_c_werror_flag" || |
4939 | test ! -s conftest.err |
4940 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4941 | ac_cv_header_stdc=yes |
4942 | else |
4943 | echo "$as_me: failed program was:" >&5 |
4944 | sed 's/^/| /' conftest.$ac_ext >&5 |
4945 | |
dd184caf |
4946 | ac_cv_header_stdc=no |
d9898ee8 |
4947 | fi |
dd184caf |
4948 | |
4949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4950 | |
4951 | if test $ac_cv_header_stdc = yes; then |
4952 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4953 | cat >conftest.$ac_ext <<_ACEOF |
4954 | /* confdefs.h. */ |
4955 | _ACEOF |
4956 | cat confdefs.h >>conftest.$ac_ext |
4957 | cat >>conftest.$ac_ext <<_ACEOF |
4958 | /* end confdefs.h. */ |
4959 | #include <string.h> |
4960 | |
4961 | _ACEOF |
4962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4963 | $EGREP "memchr" >/dev/null 2>&1; then |
4964 | : |
4965 | else |
4966 | ac_cv_header_stdc=no |
4967 | fi |
4968 | rm -f conftest* |
4969 | |
4970 | fi |
4971 | |
4972 | if test $ac_cv_header_stdc = yes; then |
4973 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4974 | cat >conftest.$ac_ext <<_ACEOF |
4975 | /* confdefs.h. */ |
4976 | _ACEOF |
4977 | cat confdefs.h >>conftest.$ac_ext |
4978 | cat >>conftest.$ac_ext <<_ACEOF |
4979 | /* end confdefs.h. */ |
4980 | #include <stdlib.h> |
4981 | |
4982 | _ACEOF |
4983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4984 | $EGREP "free" >/dev/null 2>&1; then |
4985 | : |
4986 | else |
4987 | ac_cv_header_stdc=no |
4988 | fi |
4989 | rm -f conftest* |
4990 | |
4991 | fi |
4992 | |
4993 | if test $ac_cv_header_stdc = yes; then |
4994 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4995 | if test "$cross_compiling" = yes; then |
4996 | : |
4997 | else |
4998 | cat >conftest.$ac_ext <<_ACEOF |
4999 | /* confdefs.h. */ |
5000 | _ACEOF |
5001 | cat confdefs.h >>conftest.$ac_ext |
5002 | cat >>conftest.$ac_ext <<_ACEOF |
5003 | /* end confdefs.h. */ |
5004 | #include <ctype.h> |
dd184caf |
5005 | #include <stdlib.h> |
d9898ee8 |
5006 | #if ((' ' & 0x0FF) == 0x020) |
5007 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
5008 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
5009 | #else |
5010 | # define ISLOWER(c) \ |
5011 | (('a' <= (c) && (c) <= 'i') \ |
5012 | || ('j' <= (c) && (c) <= 'r') \ |
5013 | || ('s' <= (c) && (c) <= 'z')) |
5014 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5015 | #endif |
5016 | |
5017 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5018 | int |
5019 | main () |
5020 | { |
5021 | int i; |
5022 | for (i = 0; i < 256; i++) |
5023 | if (XOR (islower (i), ISLOWER (i)) |
5024 | || toupper (i) != TOUPPER (i)) |
dd184caf |
5025 | return 2; |
5026 | return 0; |
d9898ee8 |
5027 | } |
5028 | _ACEOF |
5029 | rm -f conftest$ac_exeext |
dd184caf |
5030 | if { (ac_try="$ac_link" |
5031 | case "(($ac_try" in |
5032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5033 | *) ac_try_echo=$ac_try;; |
5034 | esac |
5035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5036 | (eval "$ac_link") 2>&5 |
d9898ee8 |
5037 | ac_status=$? |
5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
5040 | { (case "(($ac_try" in |
5041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5042 | *) ac_try_echo=$ac_try;; |
5043 | esac |
5044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5045 | (eval "$ac_try") 2>&5 |
d9898ee8 |
5046 | ac_status=$? |
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5048 | (exit $ac_status); }; }; then |
5049 | : |
5050 | else |
5051 | echo "$as_me: program exited with status $ac_status" >&5 |
5052 | echo "$as_me: failed program was:" >&5 |
5053 | sed 's/^/| /' conftest.$ac_ext >&5 |
5054 | |
5055 | ( exit $ac_status ) |
5056 | ac_cv_header_stdc=no |
5057 | fi |
dd184caf |
5058 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5059 | fi |
dd184caf |
5060 | |
5061 | |
d9898ee8 |
5062 | fi |
5063 | fi |
dd184caf |
5064 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5065 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
5066 | if test $ac_cv_header_stdc = yes; then |
5067 | |
5068 | cat >>confdefs.h <<\_ACEOF |
5069 | #define STDC_HEADERS 1 |
5070 | _ACEOF |
5071 | |
5072 | fi |
5073 | |
5074 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5075 | |
5076 | |
5077 | |
5078 | |
5079 | |
5080 | |
5081 | |
5082 | |
5083 | |
5084 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5085 | inttypes.h stdint.h unistd.h |
5086 | do |
5087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5088 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5090 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5092 | else |
5093 | cat >conftest.$ac_ext <<_ACEOF |
5094 | /* confdefs.h. */ |
5095 | _ACEOF |
5096 | cat confdefs.h >>conftest.$ac_ext |
5097 | cat >>conftest.$ac_ext <<_ACEOF |
5098 | /* end confdefs.h. */ |
5099 | $ac_includes_default |
5100 | |
5101 | #include <$ac_header> |
5102 | _ACEOF |
5103 | rm -f conftest.$ac_objext |
dd184caf |
5104 | if { (ac_try="$ac_compile" |
5105 | case "(($ac_try" in |
5106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5107 | *) ac_try_echo=$ac_try;; |
5108 | esac |
5109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5110 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5111 | ac_status=$? |
5112 | grep -v '^ *+' conftest.er1 >conftest.err |
5113 | rm -f conftest.er1 |
5114 | cat conftest.err >&5 |
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5116 | (exit $ac_status); } && { |
5117 | test -z "$ac_c_werror_flag" || |
5118 | test ! -s conftest.err |
5119 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5120 | eval "$as_ac_Header=yes" |
5121 | else |
5122 | echo "$as_me: failed program was:" >&5 |
5123 | sed 's/^/| /' conftest.$ac_ext >&5 |
5124 | |
dd184caf |
5125 | eval "$as_ac_Header=no" |
d9898ee8 |
5126 | fi |
dd184caf |
5127 | |
5128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5129 | fi |
dd184caf |
5130 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5131 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5132 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5133 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5134 | cat >>confdefs.h <<_ACEOF |
5135 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5136 | _ACEOF |
5137 | |
5138 | fi |
5139 | |
5140 | done |
5141 | |
5142 | |
5143 | |
5144 | for ac_header in dlfcn.h |
5145 | do |
5146 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5147 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5148 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5150 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5152 | fi |
dd184caf |
5153 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5154 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5155 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5156 | else |
5157 | # Is the header compilable? |
dd184caf |
5158 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5159 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5160 | cat >conftest.$ac_ext <<_ACEOF |
5161 | /* confdefs.h. */ |
5162 | _ACEOF |
5163 | cat confdefs.h >>conftest.$ac_ext |
5164 | cat >>conftest.$ac_ext <<_ACEOF |
5165 | /* end confdefs.h. */ |
5166 | $ac_includes_default |
5167 | #include <$ac_header> |
5168 | _ACEOF |
5169 | rm -f conftest.$ac_objext |
dd184caf |
5170 | if { (ac_try="$ac_compile" |
5171 | case "(($ac_try" in |
5172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5173 | *) ac_try_echo=$ac_try;; |
5174 | esac |
5175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5176 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5177 | ac_status=$? |
5178 | grep -v '^ *+' conftest.er1 >conftest.err |
5179 | rm -f conftest.er1 |
5180 | cat conftest.err >&5 |
5181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5182 | (exit $ac_status); } && { |
5183 | test -z "$ac_c_werror_flag" || |
5184 | test ! -s conftest.err |
5185 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5186 | ac_header_compiler=yes |
5187 | else |
5188 | echo "$as_me: failed program was:" >&5 |
5189 | sed 's/^/| /' conftest.$ac_ext >&5 |
5190 | |
dd184caf |
5191 | ac_header_compiler=no |
d9898ee8 |
5192 | fi |
dd184caf |
5193 | |
5194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5195 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5196 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5197 | |
5198 | # Is the header present? |
dd184caf |
5199 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5201 | cat >conftest.$ac_ext <<_ACEOF |
5202 | /* confdefs.h. */ |
5203 | _ACEOF |
5204 | cat confdefs.h >>conftest.$ac_ext |
5205 | cat >>conftest.$ac_ext <<_ACEOF |
5206 | /* end confdefs.h. */ |
5207 | #include <$ac_header> |
5208 | _ACEOF |
dd184caf |
5209 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5210 | case "(($ac_try" in |
5211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5212 | *) ac_try_echo=$ac_try;; |
5213 | esac |
5214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5215 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5216 | ac_status=$? |
5217 | grep -v '^ *+' conftest.er1 >conftest.err |
5218 | rm -f conftest.er1 |
5219 | cat conftest.err >&5 |
5220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5221 | (exit $ac_status); } >/dev/null && { |
5222 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5223 | test ! -s conftest.err |
5224 | }; then |
d9898ee8 |
5225 | ac_header_preproc=yes |
5226 | else |
5227 | echo "$as_me: failed program was:" >&5 |
5228 | sed 's/^/| /' conftest.$ac_ext >&5 |
5229 | |
5230 | ac_header_preproc=no |
5231 | fi |
dd184caf |
5232 | |
d9898ee8 |
5233 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
5234 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5235 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5236 | |
5237 | # So? What about this header? |
5238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5239 | yes:no: ) |
5240 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5241 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5243 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5244 | ac_header_preproc=yes |
5245 | ;; |
5246 | no:yes:* ) |
5247 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5248 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5249 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5250 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5251 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5252 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5253 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5254 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5256 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5257 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5258 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
5259 | ( cat <<\_ASBOX |
d9898ee8 |
5260 | ## -------------------------------------------------- ## |
5261 | ## Report this to courier-users@lists.sourceforge.net ## |
5262 | ## -------------------------------------------------- ## |
5263 | _ASBOX |
dd184caf |
5264 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5265 | ;; |
5266 | esac |
dd184caf |
5267 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5268 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5269 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5271 | else |
5272 | eval "$as_ac_Header=\$ac_header_preproc" |
5273 | fi |
dd184caf |
5274 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5275 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5276 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5277 | |
5278 | fi |
5279 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5280 | cat >>confdefs.h <<_ACEOF |
5281 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5282 | _ACEOF |
5283 | |
5284 | fi |
5285 | |
5286 | done |
5287 | |
dd184caf |
5288 | ac_ext=cpp |
d9898ee8 |
5289 | ac_cpp='$CXXCPP $CPPFLAGS' |
5290 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5291 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5292 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5293 | if test -z "$CXX"; then |
5294 | if test -n "$CCC"; then |
5295 | CXX=$CCC |
5296 | else |
5297 | if test -n "$ac_tool_prefix"; then |
5298 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5299 | do |
5300 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5301 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5302 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5304 | if test "${ac_cv_prog_CXX+set}" = set; then |
5305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5306 | else |
5307 | if test -n "$CXX"; then |
5308 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5309 | else |
5310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5311 | for as_dir in $PATH |
5312 | do |
5313 | IFS=$as_save_IFS |
5314 | test -z "$as_dir" && as_dir=. |
5315 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5317 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5319 | break 2 |
5320 | fi |
5321 | done |
5322 | done |
dd184caf |
5323 | IFS=$as_save_IFS |
d9898ee8 |
5324 | |
5325 | fi |
5326 | fi |
5327 | CXX=$ac_cv_prog_CXX |
5328 | if test -n "$CXX"; then |
dd184caf |
5329 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5330 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5331 | else |
dd184caf |
5332 | { echo "$as_me:$LINENO: result: no" >&5 |
5333 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5334 | fi |
5335 | |
dd184caf |
5336 | |
d9898ee8 |
5337 | test -n "$CXX" && break |
5338 | done |
5339 | fi |
5340 | if test -z "$CXX"; then |
5341 | ac_ct_CXX=$CXX |
dd184caf |
5342 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5343 | do |
5344 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5345 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5348 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5350 | else |
5351 | if test -n "$ac_ct_CXX"; then |
5352 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5353 | else |
5354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5355 | for as_dir in $PATH |
5356 | do |
5357 | IFS=$as_save_IFS |
5358 | test -z "$as_dir" && as_dir=. |
5359 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5361 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5363 | break 2 |
5364 | fi |
5365 | done |
5366 | done |
dd184caf |
5367 | IFS=$as_save_IFS |
d9898ee8 |
5368 | |
5369 | fi |
5370 | fi |
5371 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5372 | if test -n "$ac_ct_CXX"; then |
dd184caf |
5373 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5374 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5375 | else |
dd184caf |
5376 | { echo "$as_me:$LINENO: result: no" >&5 |
5377 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5378 | fi |
5379 | |
dd184caf |
5380 | |
d9898ee8 |
5381 | test -n "$ac_ct_CXX" && break |
5382 | done |
d9898ee8 |
5383 | |
dd184caf |
5384 | if test "x$ac_ct_CXX" = x; then |
5385 | CXX="g++" |
5386 | else |
5387 | case $cross_compiling:$ac_tool_warned in |
5388 | yes:) |
5389 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5390 | whose name does not start with the host triplet. If you think this |
5391 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5392 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5393 | whose name does not start with the host triplet. If you think this |
5394 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5395 | ac_tool_warned=yes ;; |
5396 | esac |
5397 | CXX=$ac_ct_CXX |
5398 | fi |
d9898ee8 |
5399 | fi |
5400 | |
dd184caf |
5401 | fi |
5402 | fi |
d9898ee8 |
5403 | # Provide some information about the compiler. |
dd184caf |
5404 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5405 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
5406 | { (ac_try="$ac_compiler --version >&5" |
5407 | case "(($ac_try" in |
5408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5409 | *) ac_try_echo=$ac_try;; |
5410 | esac |
5411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5412 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5413 | ac_status=$? |
5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5415 | (exit $ac_status); } |
dd184caf |
5416 | { (ac_try="$ac_compiler -v >&5" |
5417 | case "(($ac_try" in |
5418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5419 | *) ac_try_echo=$ac_try;; |
5420 | esac |
5421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5422 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5423 | ac_status=$? |
5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5425 | (exit $ac_status); } |
dd184caf |
5426 | { (ac_try="$ac_compiler -V >&5" |
5427 | case "(($ac_try" in |
5428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5429 | *) ac_try_echo=$ac_try;; |
5430 | esac |
5431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5432 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5433 | ac_status=$? |
5434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5435 | (exit $ac_status); } |
5436 | |
dd184caf |
5437 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5438 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5439 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5441 | else |
5442 | cat >conftest.$ac_ext <<_ACEOF |
5443 | /* confdefs.h. */ |
5444 | _ACEOF |
5445 | cat confdefs.h >>conftest.$ac_ext |
5446 | cat >>conftest.$ac_ext <<_ACEOF |
5447 | /* end confdefs.h. */ |
5448 | |
5449 | int |
5450 | main () |
5451 | { |
5452 | #ifndef __GNUC__ |
5453 | choke me |
5454 | #endif |
5455 | |
5456 | ; |
5457 | return 0; |
5458 | } |
5459 | _ACEOF |
5460 | rm -f conftest.$ac_objext |
dd184caf |
5461 | if { (ac_try="$ac_compile" |
5462 | case "(($ac_try" in |
5463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5464 | *) ac_try_echo=$ac_try;; |
5465 | esac |
5466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5467 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5468 | ac_status=$? |
5469 | grep -v '^ *+' conftest.er1 >conftest.err |
5470 | rm -f conftest.er1 |
5471 | cat conftest.err >&5 |
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5473 | (exit $ac_status); } && { |
5474 | test -z "$ac_cxx_werror_flag" || |
5475 | test ! -s conftest.err |
5476 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5477 | ac_compiler_gnu=yes |
5478 | else |
5479 | echo "$as_me: failed program was:" >&5 |
5480 | sed 's/^/| /' conftest.$ac_ext >&5 |
5481 | |
dd184caf |
5482 | ac_compiler_gnu=no |
d9898ee8 |
5483 | fi |
dd184caf |
5484 | |
5485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5486 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5487 | |
5488 | fi |
dd184caf |
5489 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5490 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5491 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5492 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5493 | ac_save_CXXFLAGS=$CXXFLAGS |
dd184caf |
5494 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5495 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5496 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5498 | else |
dd184caf |
5499 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5500 | ac_cxx_werror_flag=yes |
5501 | ac_cv_prog_cxx_g=no |
5502 | CXXFLAGS="-g" |
5503 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5504 | /* confdefs.h. */ |
5505 | _ACEOF |
5506 | cat confdefs.h >>conftest.$ac_ext |
5507 | cat >>conftest.$ac_ext <<_ACEOF |
5508 | /* end confdefs.h. */ |
5509 | |
5510 | int |
5511 | main () |
5512 | { |
5513 | |
5514 | ; |
5515 | return 0; |
5516 | } |
5517 | _ACEOF |
5518 | rm -f conftest.$ac_objext |
dd184caf |
5519 | if { (ac_try="$ac_compile" |
5520 | case "(($ac_try" in |
5521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5522 | *) ac_try_echo=$ac_try;; |
5523 | esac |
5524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5525 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5526 | ac_status=$? |
5527 | grep -v '^ *+' conftest.er1 >conftest.err |
5528 | rm -f conftest.er1 |
5529 | cat conftest.err >&5 |
5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5531 | (exit $ac_status); } && { |
5532 | test -z "$ac_cxx_werror_flag" || |
5533 | test ! -s conftest.err |
5534 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5535 | ac_cv_prog_cxx_g=yes |
5536 | else |
5537 | echo "$as_me: failed program was:" >&5 |
5538 | sed 's/^/| /' conftest.$ac_ext >&5 |
5539 | |
dd184caf |
5540 | CXXFLAGS="" |
5541 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5542 | /* confdefs.h. */ |
5543 | _ACEOF |
5544 | cat confdefs.h >>conftest.$ac_ext |
5545 | cat >>conftest.$ac_ext <<_ACEOF |
5546 | /* end confdefs.h. */ |
dd184caf |
5547 | |
d9898ee8 |
5548 | int |
5549 | main () |
5550 | { |
dd184caf |
5551 | |
d9898ee8 |
5552 | ; |
5553 | return 0; |
5554 | } |
5555 | _ACEOF |
5556 | rm -f conftest.$ac_objext |
dd184caf |
5557 | if { (ac_try="$ac_compile" |
5558 | case "(($ac_try" in |
5559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5560 | *) ac_try_echo=$ac_try;; |
5561 | esac |
5562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5563 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5564 | ac_status=$? |
5565 | grep -v '^ *+' conftest.er1 >conftest.err |
5566 | rm -f conftest.er1 |
5567 | cat conftest.err >&5 |
5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5569 | (exit $ac_status); } && { |
5570 | test -z "$ac_cxx_werror_flag" || |
5571 | test ! -s conftest.err |
5572 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5573 | : |
5574 | else |
5575 | echo "$as_me: failed program was:" >&5 |
5576 | sed 's/^/| /' conftest.$ac_ext >&5 |
5577 | |
dd184caf |
5578 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5579 | CXXFLAGS="-g" |
5580 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5581 | /* confdefs.h. */ |
5582 | _ACEOF |
5583 | cat confdefs.h >>conftest.$ac_ext |
5584 | cat >>conftest.$ac_ext <<_ACEOF |
5585 | /* end confdefs.h. */ |
dd184caf |
5586 | |
d9898ee8 |
5587 | int |
5588 | main () |
5589 | { |
dd184caf |
5590 | |
d9898ee8 |
5591 | ; |
5592 | return 0; |
5593 | } |
5594 | _ACEOF |
5595 | rm -f conftest.$ac_objext |
dd184caf |
5596 | if { (ac_try="$ac_compile" |
5597 | case "(($ac_try" in |
5598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5599 | *) ac_try_echo=$ac_try;; |
5600 | esac |
5601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5602 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5603 | ac_status=$? |
5604 | grep -v '^ *+' conftest.er1 >conftest.err |
5605 | rm -f conftest.er1 |
5606 | cat conftest.err >&5 |
5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5608 | (exit $ac_status); } && { |
5609 | test -z "$ac_cxx_werror_flag" || |
5610 | test ! -s conftest.err |
5611 | } && test -s conftest.$ac_objext; then |
5612 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5613 | else |
5614 | echo "$as_me: failed program was:" >&5 |
5615 | sed 's/^/| /' conftest.$ac_ext >&5 |
5616 | |
dd184caf |
5617 | |
d9898ee8 |
5618 | fi |
dd184caf |
5619 | |
5620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5621 | fi |
5622 | |
dd184caf |
5623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5624 | fi |
5625 | |
5626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5627 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5628 | fi |
5629 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5630 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5631 | if test "$ac_test_CXXFLAGS" = set; then |
5632 | CXXFLAGS=$ac_save_CXXFLAGS |
5633 | elif test $ac_cv_prog_cxx_g = yes; then |
5634 | if test "$GXX" = yes; then |
5635 | CXXFLAGS="-g -O2" |
5636 | else |
5637 | CXXFLAGS="-g" |
5638 | fi |
5639 | else |
5640 | if test "$GXX" = yes; then |
5641 | CXXFLAGS="-O2" |
5642 | else |
5643 | CXXFLAGS= |
5644 | fi |
5645 | fi |
5646 | ac_ext=cpp |
d9898ee8 |
5647 | ac_cpp='$CXXCPP $CPPFLAGS' |
5648 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5649 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5650 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5651 | |
5652 | depcc="$CXX" am_compiler_list= |
5653 | |
dd184caf |
5654 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5655 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5656 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5658 | else |
5659 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5660 | # We make a subdir and do the tests there. Otherwise we can end up |
5661 | # making bogus files that we don't know about and never remove. For |
5662 | # instance it was reported that on HP-UX the gcc test will end up |
5663 | # making a dummy file named `D' -- because `-MD' means `put the output |
5664 | # in D'. |
5665 | mkdir conftest.dir |
5666 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5667 | # using a relative directory. |
5668 | cp "$am_depcomp" conftest.dir |
5669 | cd conftest.dir |
5670 | # We will build objects and dependencies in a subdirectory because |
5671 | # it helps to detect inapplicable dependency modes. For instance |
5672 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5673 | # side effect of compilation, but ICC will put the dependencies in |
5674 | # the current directory while Tru64 will put them in the object |
5675 | # directory. |
5676 | mkdir sub |
5677 | |
5678 | am_cv_CXX_dependencies_compiler_type=none |
5679 | if test "$am_compiler_list" = ""; then |
5680 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5681 | fi |
5682 | for depmode in $am_compiler_list; do |
5683 | # Setup a source with many dependencies, because some compilers |
5684 | # like to wrap large dependency lists on column 80 (with \), and |
5685 | # we should not choose a depcomp mode which is confused by this. |
5686 | # |
5687 | # We need to recreate these files for each test, as the compiler may |
5688 | # overwrite some of them when testing with obscure command lines. |
5689 | # This happens at least with the AIX C compiler. |
5690 | : > sub/conftest.c |
5691 | for i in 1 2 3 4 5 6; do |
5692 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5693 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5694 | # Solaris 8's {/usr,}/bin/sh. |
5695 | touch sub/conftst$i.h |
5696 | done |
5697 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5698 | |
5699 | case $depmode in |
5700 | nosideeffect) |
5701 | # after this tag, mechanisms are not by side-effect, so they'll |
5702 | # only be used when explicitly requested |
5703 | if test "x$enable_dependency_tracking" = xyes; then |
5704 | continue |
5705 | else |
5706 | break |
5707 | fi |
5708 | ;; |
5709 | none) break ;; |
5710 | esac |
5711 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5712 | # mode. It turns out that the SunPro C++ compiler does not properly |
5713 | # handle `-M -o', and we need to detect this. |
5714 | if depmode=$depmode \ |
5715 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5716 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5717 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5718 | >/dev/null 2>conftest.err && |
dd184caf |
5719 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5720 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5721 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5722 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5723 | # icc doesn't choke on unknown options, it will just issue warnings |
5724 | # or remarks (even with -Werror). So we grep stderr for any message |
5725 | # that says an option was ignored or not supported. |
5726 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5727 | # icc: Command line warning: ignoring option '-M'; no argument required |
5728 | # The diagnosis changed in icc 8.0: |
5729 | # icc: Command line remark: option '-MP' not supported |
5730 | if (grep 'ignoring option' conftest.err || |
5731 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5732 | am_cv_CXX_dependencies_compiler_type=$depmode |
5733 | break |
5734 | fi |
5735 | fi |
5736 | done |
5737 | |
5738 | cd .. |
5739 | rm -rf conftest.dir |
5740 | else |
5741 | am_cv_CXX_dependencies_compiler_type=none |
5742 | fi |
5743 | |
5744 | fi |
dd184caf |
5745 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5746 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5747 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5748 | |
dd184caf |
5749 | if |
d9898ee8 |
5750 | test "x$enable_dependency_tracking" != xno \ |
5751 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5752 | am__fastdepCXX_TRUE= |
5753 | am__fastdepCXX_FALSE='#' |
5754 | else |
5755 | am__fastdepCXX_TRUE='#' |
5756 | am__fastdepCXX_FALSE= |
5757 | fi |
5758 | |
5759 | |
5760 | |
5761 | |
5762 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5763 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5764 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
5765 | ac_ext=cpp |
d9898ee8 |
5766 | ac_cpp='$CXXCPP $CPPFLAGS' |
5767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5770 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5771 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5772 | if test -z "$CXXCPP"; then |
5773 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5775 | else |
5776 | # Double quotes because CXXCPP needs to be expanded |
5777 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5778 | do |
5779 | ac_preproc_ok=false |
5780 | for ac_cxx_preproc_warn_flag in '' yes |
5781 | do |
5782 | # Use a header file that comes with gcc, so configuring glibc |
5783 | # with a fresh cross-compiler works. |
5784 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5785 | # <limits.h> exists even on freestanding compilers. |
5786 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5787 | # not just through cpp. "Syntax error" is here to catch this case. |
5788 | cat >conftest.$ac_ext <<_ACEOF |
5789 | /* confdefs.h. */ |
5790 | _ACEOF |
5791 | cat confdefs.h >>conftest.$ac_ext |
5792 | cat >>conftest.$ac_ext <<_ACEOF |
5793 | /* end confdefs.h. */ |
5794 | #ifdef __STDC__ |
5795 | # include <limits.h> |
5796 | #else |
5797 | # include <assert.h> |
5798 | #endif |
5799 | Syntax error |
5800 | _ACEOF |
dd184caf |
5801 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5802 | case "(($ac_try" in |
5803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5804 | *) ac_try_echo=$ac_try;; |
5805 | esac |
5806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5807 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5808 | ac_status=$? |
5809 | grep -v '^ *+' conftest.er1 >conftest.err |
5810 | rm -f conftest.er1 |
5811 | cat conftest.err >&5 |
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5813 | (exit $ac_status); } >/dev/null && { |
5814 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5815 | test ! -s conftest.err |
5816 | }; then |
d9898ee8 |
5817 | : |
5818 | else |
5819 | echo "$as_me: failed program was:" >&5 |
5820 | sed 's/^/| /' conftest.$ac_ext >&5 |
5821 | |
5822 | # Broken: fails on valid input. |
5823 | continue |
5824 | fi |
dd184caf |
5825 | |
d9898ee8 |
5826 | rm -f conftest.err conftest.$ac_ext |
5827 | |
dd184caf |
5828 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5829 | # can be detected and how. |
5830 | cat >conftest.$ac_ext <<_ACEOF |
5831 | /* confdefs.h. */ |
5832 | _ACEOF |
5833 | cat confdefs.h >>conftest.$ac_ext |
5834 | cat >>conftest.$ac_ext <<_ACEOF |
5835 | /* end confdefs.h. */ |
5836 | #include <ac_nonexistent.h> |
5837 | _ACEOF |
dd184caf |
5838 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5839 | case "(($ac_try" in |
5840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5841 | *) ac_try_echo=$ac_try;; |
5842 | esac |
5843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5844 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5845 | ac_status=$? |
5846 | grep -v '^ *+' conftest.er1 >conftest.err |
5847 | rm -f conftest.er1 |
5848 | cat conftest.err >&5 |
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5850 | (exit $ac_status); } >/dev/null && { |
5851 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5852 | test ! -s conftest.err |
5853 | }; then |
d9898ee8 |
5854 | # Broken: success on invalid input. |
5855 | continue |
5856 | else |
5857 | echo "$as_me: failed program was:" >&5 |
5858 | sed 's/^/| /' conftest.$ac_ext >&5 |
5859 | |
5860 | # Passes both tests. |
5861 | ac_preproc_ok=: |
5862 | break |
5863 | fi |
dd184caf |
5864 | |
d9898ee8 |
5865 | rm -f conftest.err conftest.$ac_ext |
5866 | |
5867 | done |
5868 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5869 | rm -f conftest.err conftest.$ac_ext |
5870 | if $ac_preproc_ok; then |
5871 | break |
5872 | fi |
5873 | |
5874 | done |
5875 | ac_cv_prog_CXXCPP=$CXXCPP |
5876 | |
5877 | fi |
5878 | CXXCPP=$ac_cv_prog_CXXCPP |
5879 | else |
5880 | ac_cv_prog_CXXCPP=$CXXCPP |
5881 | fi |
dd184caf |
5882 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5883 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
5884 | ac_preproc_ok=false |
5885 | for ac_cxx_preproc_warn_flag in '' yes |
5886 | do |
5887 | # Use a header file that comes with gcc, so configuring glibc |
5888 | # with a fresh cross-compiler works. |
5889 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5890 | # <limits.h> exists even on freestanding compilers. |
5891 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5892 | # not just through cpp. "Syntax error" is here to catch this case. |
5893 | cat >conftest.$ac_ext <<_ACEOF |
5894 | /* confdefs.h. */ |
5895 | _ACEOF |
5896 | cat confdefs.h >>conftest.$ac_ext |
5897 | cat >>conftest.$ac_ext <<_ACEOF |
5898 | /* end confdefs.h. */ |
5899 | #ifdef __STDC__ |
5900 | # include <limits.h> |
5901 | #else |
5902 | # include <assert.h> |
5903 | #endif |
5904 | Syntax error |
5905 | _ACEOF |
dd184caf |
5906 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5907 | case "(($ac_try" in |
5908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5909 | *) ac_try_echo=$ac_try;; |
5910 | esac |
5911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5912 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5913 | ac_status=$? |
5914 | grep -v '^ *+' conftest.er1 >conftest.err |
5915 | rm -f conftest.er1 |
5916 | cat conftest.err >&5 |
5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5918 | (exit $ac_status); } >/dev/null && { |
5919 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5920 | test ! -s conftest.err |
5921 | }; then |
d9898ee8 |
5922 | : |
5923 | else |
5924 | echo "$as_me: failed program was:" >&5 |
5925 | sed 's/^/| /' conftest.$ac_ext >&5 |
5926 | |
5927 | # Broken: fails on valid input. |
5928 | continue |
5929 | fi |
dd184caf |
5930 | |
d9898ee8 |
5931 | rm -f conftest.err conftest.$ac_ext |
5932 | |
dd184caf |
5933 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5934 | # can be detected and how. |
5935 | cat >conftest.$ac_ext <<_ACEOF |
5936 | /* confdefs.h. */ |
5937 | _ACEOF |
5938 | cat confdefs.h >>conftest.$ac_ext |
5939 | cat >>conftest.$ac_ext <<_ACEOF |
5940 | /* end confdefs.h. */ |
5941 | #include <ac_nonexistent.h> |
5942 | _ACEOF |
dd184caf |
5943 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5944 | case "(($ac_try" in |
5945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5946 | *) ac_try_echo=$ac_try;; |
5947 | esac |
5948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5949 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5950 | ac_status=$? |
5951 | grep -v '^ *+' conftest.er1 >conftest.err |
5952 | rm -f conftest.er1 |
5953 | cat conftest.err >&5 |
5954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5955 | (exit $ac_status); } >/dev/null && { |
5956 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5957 | test ! -s conftest.err |
5958 | }; then |
d9898ee8 |
5959 | # Broken: success on invalid input. |
5960 | continue |
5961 | else |
5962 | echo "$as_me: failed program was:" >&5 |
5963 | sed 's/^/| /' conftest.$ac_ext >&5 |
5964 | |
5965 | # Passes both tests. |
5966 | ac_preproc_ok=: |
5967 | break |
5968 | fi |
dd184caf |
5969 | |
d9898ee8 |
5970 | rm -f conftest.err conftest.$ac_ext |
5971 | |
5972 | done |
5973 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5974 | rm -f conftest.err conftest.$ac_ext |
5975 | if $ac_preproc_ok; then |
5976 | : |
5977 | else |
5978 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5979 | See \`config.log' for more details." >&5 |
5980 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5981 | See \`config.log' for more details." >&2;} |
5982 | { (exit 1); exit 1; }; } |
5983 | fi |
5984 | |
dd184caf |
5985 | ac_ext=cpp |
d9898ee8 |
5986 | ac_cpp='$CXXCPP $CPPFLAGS' |
5987 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5988 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5989 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5990 | |
5991 | fi |
5992 | |
5993 | |
5994 | ac_ext=f |
5995 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5996 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5997 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5998 | if test -n "$ac_tool_prefix"; then |
dd184caf |
5999 | 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 |
6000 | do |
6001 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6002 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
6003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6005 | if test "${ac_cv_prog_F77+set}" = set; then |
6006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6007 | else |
6008 | if test -n "$F77"; then |
6009 | ac_cv_prog_F77="$F77" # Let the user override the test. |
6010 | else |
6011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6012 | for as_dir in $PATH |
6013 | do |
6014 | IFS=$as_save_IFS |
6015 | test -z "$as_dir" && as_dir=. |
6016 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6018 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
6019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6020 | break 2 |
6021 | fi |
6022 | done |
6023 | done |
dd184caf |
6024 | IFS=$as_save_IFS |
d9898ee8 |
6025 | |
6026 | fi |
6027 | fi |
6028 | F77=$ac_cv_prog_F77 |
6029 | if test -n "$F77"; then |
dd184caf |
6030 | { echo "$as_me:$LINENO: result: $F77" >&5 |
6031 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
6032 | else |
dd184caf |
6033 | { echo "$as_me:$LINENO: result: no" >&5 |
6034 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6035 | fi |
6036 | |
dd184caf |
6037 | |
d9898ee8 |
6038 | test -n "$F77" && break |
6039 | done |
6040 | fi |
6041 | if test -z "$F77"; then |
6042 | ac_ct_F77=$F77 |
dd184caf |
6043 | 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 |
6044 | do |
6045 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6046 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
6047 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6049 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6051 | else |
6052 | if test -n "$ac_ct_F77"; then |
6053 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6054 | else |
6055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6056 | for as_dir in $PATH |
6057 | do |
6058 | IFS=$as_save_IFS |
6059 | test -z "$as_dir" && as_dir=. |
6060 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6062 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6064 | break 2 |
6065 | fi |
6066 | done |
6067 | done |
dd184caf |
6068 | IFS=$as_save_IFS |
d9898ee8 |
6069 | |
6070 | fi |
6071 | fi |
6072 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6073 | if test -n "$ac_ct_F77"; then |
dd184caf |
6074 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6075 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6076 | else |
dd184caf |
6077 | { echo "$as_me:$LINENO: result: no" >&5 |
6078 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6079 | fi |
6080 | |
dd184caf |
6081 | |
d9898ee8 |
6082 | test -n "$ac_ct_F77" && break |
6083 | done |
6084 | |
dd184caf |
6085 | if test "x$ac_ct_F77" = x; then |
6086 | F77="" |
6087 | else |
6088 | case $cross_compiling:$ac_tool_warned in |
6089 | yes:) |
6090 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6091 | whose name does not start with the host triplet. If you think this |
6092 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6093 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6094 | whose name does not start with the host triplet. If you think this |
6095 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6096 | ac_tool_warned=yes ;; |
6097 | esac |
6098 | F77=$ac_ct_F77 |
6099 | fi |
d9898ee8 |
6100 | fi |
6101 | |
6102 | |
6103 | # Provide some information about the compiler. |
dd184caf |
6104 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6105 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
6106 | { (ac_try="$ac_compiler --version >&5" |
6107 | case "(($ac_try" in |
6108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6109 | *) ac_try_echo=$ac_try;; |
6110 | esac |
6111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6112 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6113 | ac_status=$? |
6114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6115 | (exit $ac_status); } |
dd184caf |
6116 | { (ac_try="$ac_compiler -v >&5" |
6117 | case "(($ac_try" in |
6118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6119 | *) ac_try_echo=$ac_try;; |
6120 | esac |
6121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6122 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6123 | ac_status=$? |
6124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6125 | (exit $ac_status); } |
dd184caf |
6126 | { (ac_try="$ac_compiler -V >&5" |
6127 | case "(($ac_try" in |
6128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6129 | *) ac_try_echo=$ac_try;; |
6130 | esac |
6131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6132 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6133 | ac_status=$? |
6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6135 | (exit $ac_status); } |
6136 | rm -f a.out |
6137 | |
6138 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6139 | # input file. (Note that this only needs to work for GNU compilers.) |
6140 | ac_save_ext=$ac_ext |
6141 | ac_ext=F |
dd184caf |
6142 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6143 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6144 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6146 | else |
6147 | cat >conftest.$ac_ext <<_ACEOF |
6148 | program main |
6149 | #ifndef __GNUC__ |
6150 | choke me |
6151 | #endif |
6152 | |
6153 | end |
6154 | _ACEOF |
6155 | rm -f conftest.$ac_objext |
dd184caf |
6156 | if { (ac_try="$ac_compile" |
6157 | case "(($ac_try" in |
6158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6159 | *) ac_try_echo=$ac_try;; |
6160 | esac |
6161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6162 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6163 | ac_status=$? |
6164 | grep -v '^ *+' conftest.er1 >conftest.err |
6165 | rm -f conftest.er1 |
6166 | cat conftest.err >&5 |
6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6168 | (exit $ac_status); } && { |
6169 | test -z "$ac_f77_werror_flag" || |
6170 | test ! -s conftest.err |
6171 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6172 | ac_compiler_gnu=yes |
6173 | else |
6174 | echo "$as_me: failed program was:" >&5 |
6175 | sed 's/^/| /' conftest.$ac_ext >&5 |
6176 | |
dd184caf |
6177 | ac_compiler_gnu=no |
d9898ee8 |
6178 | fi |
dd184caf |
6179 | |
6180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6181 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6182 | |
6183 | fi |
dd184caf |
6184 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6185 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6186 | ac_ext=$ac_save_ext |
6187 | ac_test_FFLAGS=${FFLAGS+set} |
6188 | ac_save_FFLAGS=$FFLAGS |
6189 | FFLAGS= |
dd184caf |
6190 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6191 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6192 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6194 | else |
6195 | FFLAGS=-g |
6196 | cat >conftest.$ac_ext <<_ACEOF |
6197 | program main |
6198 | |
6199 | end |
6200 | _ACEOF |
6201 | rm -f conftest.$ac_objext |
dd184caf |
6202 | if { (ac_try="$ac_compile" |
6203 | case "(($ac_try" in |
6204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6205 | *) ac_try_echo=$ac_try;; |
6206 | esac |
6207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6208 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6209 | ac_status=$? |
6210 | grep -v '^ *+' conftest.er1 >conftest.err |
6211 | rm -f conftest.er1 |
6212 | cat conftest.err >&5 |
6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6214 | (exit $ac_status); } && { |
6215 | test -z "$ac_f77_werror_flag" || |
6216 | test ! -s conftest.err |
6217 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6218 | ac_cv_prog_f77_g=yes |
6219 | else |
6220 | echo "$as_me: failed program was:" >&5 |
6221 | sed 's/^/| /' conftest.$ac_ext >&5 |
6222 | |
dd184caf |
6223 | ac_cv_prog_f77_g=no |
d9898ee8 |
6224 | fi |
dd184caf |
6225 | |
6226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6227 | |
6228 | fi |
dd184caf |
6229 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6230 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6231 | if test "$ac_test_FFLAGS" = set; then |
6232 | FFLAGS=$ac_save_FFLAGS |
6233 | elif test $ac_cv_prog_f77_g = yes; then |
6234 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6235 | FFLAGS="-g -O2" |
6236 | else |
6237 | FFLAGS="-g" |
6238 | fi |
6239 | else |
6240 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6241 | FFLAGS="-O2" |
6242 | else |
6243 | FFLAGS= |
6244 | fi |
6245 | fi |
6246 | |
6247 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6248 | ac_ext=c |
6249 | ac_cpp='$CPP $CPPFLAGS' |
6250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6253 | |
6254 | |
6255 | |
6256 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6257 | |
6258 | # find the maximum length of command line arguments |
dd184caf |
6259 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6260 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6261 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6263 | else |
6264 | i=0 |
6265 | teststring="ABCD" |
6266 | |
6267 | case $build_os in |
6268 | msdosdjgpp*) |
6269 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6270 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6271 | # during glob expansion). Even if it were fixed, the result of this |
6272 | # check would be larger than it should be. |
6273 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6274 | ;; |
6275 | |
6276 | gnu*) |
6277 | # Under GNU Hurd, this test is not required because there is |
6278 | # no limit to the length of command line arguments. |
6279 | # Libtool will interpret -1 as no limit whatsoever |
6280 | lt_cv_sys_max_cmd_len=-1; |
6281 | ;; |
6282 | |
6283 | cygwin* | mingw*) |
6284 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6285 | # about 5 minutes as the teststring grows exponentially. |
6286 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6287 | # you end up with a "frozen" computer, even though with patience |
6288 | # the test eventually succeeds (with a max line length of 256k). |
6289 | # Instead, let's just punt: use the minimum linelength reported by |
6290 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6291 | lt_cv_sys_max_cmd_len=8192; |
6292 | ;; |
6293 | |
6294 | amigaos*) |
6295 | # On AmigaOS with pdksh, this test takes hours, literally. |
6296 | # So we just punt and use a minimum line length of 8192. |
6297 | lt_cv_sys_max_cmd_len=8192; |
6298 | ;; |
6299 | |
6300 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6301 | # This has been around since 386BSD, at least. Likely further. |
6302 | if test -x /sbin/sysctl; then |
6303 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6304 | elif test -x /usr/sbin/sysctl; then |
6305 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6306 | else |
6307 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6308 | fi |
6309 | # And add a safety zone |
6310 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6311 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6312 | ;; |
6313 | |
6314 | interix*) |
6315 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6316 | lt_cv_sys_max_cmd_len=196608 |
6317 | ;; |
6318 | |
6319 | osf*) |
6320 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6321 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6322 | # nice to cause kernel panics so lets avoid the loop below. |
6323 | # First set a reasonable default. |
6324 | lt_cv_sys_max_cmd_len=16384 |
6325 | # |
6326 | if test -x /sbin/sysconfig; then |
6327 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6328 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6329 | esac |
6330 | fi |
6331 | ;; |
6332 | sco3.2v5*) |
6333 | lt_cv_sys_max_cmd_len=102400 |
6334 | ;; |
6335 | sysv5* | sco5v6* | sysv4.2uw2*) |
6336 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6337 | if test -n "$kargmax"; then |
6338 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6339 | else |
6340 | lt_cv_sys_max_cmd_len=32768 |
6341 | fi |
6342 | ;; |
6343 | *) |
6344 | # If test is not a shell built-in, we'll probably end up computing a |
6345 | # maximum length that is only half of the actual maximum length, but |
6346 | # we can't tell. |
6347 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6348 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6349 | = "XX$teststring") >/dev/null 2>&1 && |
6350 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6351 | lt_cv_sys_max_cmd_len=$new_result && |
6352 | test $i != 17 # 1/2 MB should be enough |
6353 | do |
6354 | i=`expr $i + 1` |
6355 | teststring=$teststring$teststring |
6356 | done |
6357 | teststring= |
6358 | # Add a significant safety factor because C++ compilers can tack on massive |
6359 | # amounts of additional arguments before passing them to the linker. |
6360 | # It appears as though 1/2 is a usable value. |
6361 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6362 | ;; |
6363 | esac |
6364 | |
6365 | fi |
6366 | |
6367 | if test -n $lt_cv_sys_max_cmd_len ; then |
dd184caf |
6368 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6369 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6370 | else |
dd184caf |
6371 | { echo "$as_me:$LINENO: result: none" >&5 |
6372 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6373 | fi |
6374 | |
6375 | |
6376 | |
6377 | |
6378 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
dd184caf |
6379 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6380 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6381 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6383 | else |
6384 | |
6385 | # These are sane defaults that work on at least a few old systems. |
6386 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6387 | |
6388 | # Character class describing NM global symbol codes. |
6389 | symcode='[BCDEGRST]' |
6390 | |
6391 | # Regexp to match symbols that can be accessed directly from C. |
6392 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6393 | |
6394 | # Transform an extracted symbol line into a proper C declaration |
6395 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6396 | |
6397 | # Transform an extracted symbol line into symbol name and symbol address |
6398 | 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'" |
6399 | |
6400 | # Define system-specific variables. |
6401 | case $host_os in |
6402 | aix*) |
6403 | symcode='[BCDT]' |
6404 | ;; |
6405 | cygwin* | mingw* | pw32*) |
6406 | symcode='[ABCDGISTW]' |
6407 | ;; |
6408 | hpux*) # Its linker distinguishes data from code symbols |
6409 | if test "$host_cpu" = ia64; then |
6410 | symcode='[ABCDEGRST]' |
6411 | fi |
6412 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6413 | 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'" |
6414 | ;; |
6415 | linux*) |
6416 | if test "$host_cpu" = ia64; then |
6417 | symcode='[ABCDGIRSTW]' |
6418 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6419 | 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'" |
6420 | fi |
6421 | ;; |
6422 | irix* | nonstopux*) |
6423 | symcode='[BCDEGRST]' |
6424 | ;; |
6425 | osf*) |
6426 | symcode='[BCDEGQRST]' |
6427 | ;; |
6428 | solaris*) |
6429 | symcode='[BDRT]' |
6430 | ;; |
6431 | sco3.2v5*) |
6432 | symcode='[DT]' |
6433 | ;; |
6434 | sysv4.2uw2*) |
6435 | symcode='[DT]' |
6436 | ;; |
6437 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6438 | symcode='[ABDT]' |
6439 | ;; |
6440 | sysv4) |
6441 | symcode='[DFNSTU]' |
6442 | ;; |
6443 | esac |
6444 | |
6445 | # Handle CRLF in mingw tool chain |
6446 | opt_cr= |
6447 | case $build_os in |
6448 | mingw*) |
6449 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6450 | ;; |
6451 | esac |
6452 | |
6453 | # If we're using GNU nm, then use its standard symbol codes. |
6454 | case `$NM -V 2>&1` in |
6455 | *GNU* | *'with BFD'*) |
6456 | symcode='[ABCDGIRSTW]' ;; |
6457 | esac |
6458 | |
6459 | # Try without a prefix undercore, then with it. |
6460 | for ac_symprfx in "" "_"; do |
6461 | |
6462 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6463 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6464 | |
6465 | # Write the raw and C identifiers. |
6466 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6467 | |
6468 | # Check to see that the pipe works correctly. |
6469 | pipe_works=no |
6470 | |
6471 | rm -f conftest* |
6472 | cat > conftest.$ac_ext <<EOF |
6473 | #ifdef __cplusplus |
6474 | extern "C" { |
6475 | #endif |
6476 | char nm_test_var; |
6477 | void nm_test_func(){} |
6478 | #ifdef __cplusplus |
6479 | } |
6480 | #endif |
6481 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6482 | EOF |
6483 | |
6484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6485 | (eval $ac_compile) 2>&5 |
6486 | ac_status=$? |
6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6488 | (exit $ac_status); }; then |
6489 | # Now try to grab the symbols. |
6490 | nlist=conftest.nm |
6491 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6492 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6493 | ac_status=$? |
6494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6495 | (exit $ac_status); } && test -s "$nlist"; then |
6496 | # Try sorting and uniquifying the output. |
6497 | if sort "$nlist" | uniq > "$nlist"T; then |
6498 | mv -f "$nlist"T "$nlist" |
6499 | else |
6500 | rm -f "$nlist"T |
6501 | fi |
6502 | |
6503 | # Make sure that we snagged all the symbols we need. |
6504 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6505 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6506 | cat <<EOF > conftest.$ac_ext |
6507 | #ifdef __cplusplus |
6508 | extern "C" { |
6509 | #endif |
6510 | |
6511 | EOF |
6512 | # Now generate the symbol file. |
6513 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6514 | |
6515 | cat <<EOF >> conftest.$ac_ext |
6516 | #if defined (__STDC__) && __STDC__ |
6517 | # define lt_ptr_t void * |
6518 | #else |
6519 | # define lt_ptr_t char * |
6520 | # define const |
6521 | #endif |
6522 | |
6523 | /* The mapping between symbol names and symbols. */ |
6524 | const struct { |
6525 | const char *name; |
6526 | lt_ptr_t address; |
6527 | } |
6528 | lt_preloaded_symbols[] = |
6529 | { |
6530 | EOF |
6531 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6532 | cat <<\EOF >> conftest.$ac_ext |
6533 | {0, (lt_ptr_t) 0} |
6534 | }; |
6535 | |
6536 | #ifdef __cplusplus |
6537 | } |
6538 | #endif |
6539 | EOF |
6540 | # Now try linking the two files. |
6541 | mv conftest.$ac_objext conftstm.$ac_objext |
6542 | lt_save_LIBS="$LIBS" |
6543 | lt_save_CFLAGS="$CFLAGS" |
6544 | LIBS="conftstm.$ac_objext" |
6545 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6547 | (eval $ac_link) 2>&5 |
6548 | ac_status=$? |
6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6550 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6551 | pipe_works=yes |
6552 | fi |
6553 | LIBS="$lt_save_LIBS" |
6554 | CFLAGS="$lt_save_CFLAGS" |
6555 | else |
6556 | echo "cannot find nm_test_func in $nlist" >&5 |
6557 | fi |
6558 | else |
6559 | echo "cannot find nm_test_var in $nlist" >&5 |
6560 | fi |
6561 | else |
6562 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6563 | fi |
6564 | else |
6565 | echo "$progname: failed program was:" >&5 |
6566 | cat conftest.$ac_ext >&5 |
6567 | fi |
6568 | rm -f conftest* conftst* |
6569 | |
6570 | # Do not use the global_symbol_pipe unless it works. |
6571 | if test "$pipe_works" = yes; then |
6572 | break |
6573 | else |
6574 | lt_cv_sys_global_symbol_pipe= |
6575 | fi |
6576 | done |
6577 | |
6578 | fi |
6579 | |
6580 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6581 | lt_cv_sys_global_symbol_to_cdecl= |
6582 | fi |
6583 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
dd184caf |
6584 | { echo "$as_me:$LINENO: result: failed" >&5 |
6585 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6586 | else |
dd184caf |
6587 | { echo "$as_me:$LINENO: result: ok" >&5 |
6588 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6589 | fi |
6590 | |
dd184caf |
6591 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6592 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6593 | if test "${lt_cv_objdir+set}" = set; then |
6594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6595 | else |
6596 | rm -f .libs 2>/dev/null |
6597 | mkdir .libs 2>/dev/null |
6598 | if test -d .libs; then |
6599 | lt_cv_objdir=.libs |
6600 | else |
6601 | # MS-DOS does not allow filenames that begin with a dot. |
6602 | lt_cv_objdir=_libs |
6603 | fi |
6604 | rmdir .libs 2>/dev/null |
6605 | fi |
dd184caf |
6606 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6607 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6608 | objdir=$lt_cv_objdir |
6609 | |
6610 | |
6611 | |
6612 | |
6613 | |
6614 | case $host_os in |
6615 | aix3*) |
6616 | # AIX sometimes has problems with the GCC collect2 program. For some |
6617 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6618 | # vanish in a puff of smoke. |
6619 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6620 | COLLECT_NAMES= |
6621 | export COLLECT_NAMES |
6622 | fi |
6623 | ;; |
6624 | esac |
6625 | |
6626 | # Sed substitution that helps us do robust quoting. It backslashifies |
6627 | # metacharacters that are still active within double-quoted strings. |
6628 | Xsed='sed -e 1s/^X//' |
6629 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6630 | |
6631 | # Same as above, but do not quote variable references. |
6632 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6633 | |
6634 | # Sed substitution to delay expansion of an escaped shell variable in a |
6635 | # double_quote_subst'ed string. |
6636 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6637 | |
6638 | # Sed substitution to avoid accidental globbing in evaled expressions |
6639 | no_glob_subst='s/\*/\\\*/g' |
6640 | |
6641 | # Constants: |
6642 | rm="rm -f" |
6643 | |
6644 | # Global variables: |
6645 | default_ofile=libtool |
6646 | can_build_shared=yes |
6647 | |
6648 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6649 | # which needs '.lib'). |
6650 | libext=a |
6651 | ltmain="$ac_aux_dir/ltmain.sh" |
6652 | ofile="$default_ofile" |
6653 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6654 | |
6655 | if test -n "$ac_tool_prefix"; then |
6656 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6657 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
dd184caf |
6658 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6660 | if test "${ac_cv_prog_AR+set}" = set; then |
6661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6662 | else |
6663 | if test -n "$AR"; then |
6664 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6665 | else |
6666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6667 | for as_dir in $PATH |
6668 | do |
6669 | IFS=$as_save_IFS |
6670 | test -z "$as_dir" && as_dir=. |
6671 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6673 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6675 | break 2 |
6676 | fi |
6677 | done |
6678 | done |
dd184caf |
6679 | IFS=$as_save_IFS |
d9898ee8 |
6680 | |
6681 | fi |
6682 | fi |
6683 | AR=$ac_cv_prog_AR |
6684 | if test -n "$AR"; then |
dd184caf |
6685 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6686 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6687 | else |
dd184caf |
6688 | { echo "$as_me:$LINENO: result: no" >&5 |
6689 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6690 | fi |
6691 | |
dd184caf |
6692 | |
d9898ee8 |
6693 | fi |
6694 | if test -z "$ac_cv_prog_AR"; then |
6695 | ac_ct_AR=$AR |
6696 | # Extract the first word of "ar", so it can be a program name with args. |
6697 | set dummy ar; ac_word=$2 |
dd184caf |
6698 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6700 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6702 | else |
6703 | if test -n "$ac_ct_AR"; then |
6704 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6705 | else |
6706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6707 | for as_dir in $PATH |
6708 | do |
6709 | IFS=$as_save_IFS |
6710 | test -z "$as_dir" && as_dir=. |
6711 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6713 | ac_cv_prog_ac_ct_AR="ar" |
6714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6715 | break 2 |
6716 | fi |
6717 | done |
6718 | done |
dd184caf |
6719 | IFS=$as_save_IFS |
d9898ee8 |
6720 | |
d9898ee8 |
6721 | fi |
6722 | fi |
6723 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6724 | if test -n "$ac_ct_AR"; then |
dd184caf |
6725 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6726 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6727 | else |
dd184caf |
6728 | { echo "$as_me:$LINENO: result: no" >&5 |
6729 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6730 | fi |
6731 | |
dd184caf |
6732 | if test "x$ac_ct_AR" = x; then |
6733 | AR="false" |
6734 | else |
6735 | case $cross_compiling:$ac_tool_warned in |
6736 | yes:) |
6737 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6738 | whose name does not start with the host triplet. If you think this |
6739 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6740 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6741 | whose name does not start with the host triplet. If you think this |
6742 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6743 | ac_tool_warned=yes ;; |
6744 | esac |
6745 | AR=$ac_ct_AR |
6746 | fi |
d9898ee8 |
6747 | else |
6748 | AR="$ac_cv_prog_AR" |
6749 | fi |
6750 | |
6751 | if test -n "$ac_tool_prefix"; then |
6752 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6753 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
dd184caf |
6754 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6756 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6758 | else |
6759 | if test -n "$RANLIB"; then |
6760 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6761 | else |
6762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6763 | for as_dir in $PATH |
6764 | do |
6765 | IFS=$as_save_IFS |
6766 | test -z "$as_dir" && as_dir=. |
6767 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6769 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6771 | break 2 |
6772 | fi |
6773 | done |
6774 | done |
dd184caf |
6775 | IFS=$as_save_IFS |
d9898ee8 |
6776 | |
6777 | fi |
6778 | fi |
6779 | RANLIB=$ac_cv_prog_RANLIB |
6780 | if test -n "$RANLIB"; then |
dd184caf |
6781 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6782 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6783 | else |
dd184caf |
6784 | { echo "$as_me:$LINENO: result: no" >&5 |
6785 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6786 | fi |
6787 | |
dd184caf |
6788 | |
d9898ee8 |
6789 | fi |
6790 | if test -z "$ac_cv_prog_RANLIB"; then |
6791 | ac_ct_RANLIB=$RANLIB |
6792 | # Extract the first word of "ranlib", so it can be a program name with args. |
6793 | set dummy ranlib; ac_word=$2 |
dd184caf |
6794 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6796 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6798 | else |
6799 | if test -n "$ac_ct_RANLIB"; then |
6800 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6801 | else |
6802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6803 | for as_dir in $PATH |
6804 | do |
6805 | IFS=$as_save_IFS |
6806 | test -z "$as_dir" && as_dir=. |
6807 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6809 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6811 | break 2 |
6812 | fi |
6813 | done |
6814 | done |
dd184caf |
6815 | IFS=$as_save_IFS |
d9898ee8 |
6816 | |
d9898ee8 |
6817 | fi |
6818 | fi |
6819 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6820 | if test -n "$ac_ct_RANLIB"; then |
dd184caf |
6821 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6822 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6823 | else |
dd184caf |
6824 | { echo "$as_me:$LINENO: result: no" >&5 |
6825 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6826 | fi |
6827 | |
dd184caf |
6828 | if test "x$ac_ct_RANLIB" = x; then |
6829 | RANLIB=":" |
6830 | else |
6831 | case $cross_compiling:$ac_tool_warned in |
6832 | yes:) |
6833 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6834 | whose name does not start with the host triplet. If you think this |
6835 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6836 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6837 | whose name does not start with the host triplet. If you think this |
6838 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6839 | ac_tool_warned=yes ;; |
6840 | esac |
6841 | RANLIB=$ac_ct_RANLIB |
6842 | fi |
d9898ee8 |
6843 | else |
6844 | RANLIB="$ac_cv_prog_RANLIB" |
6845 | fi |
6846 | |
6847 | if test -n "$ac_tool_prefix"; then |
6848 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6849 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
6850 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6852 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6854 | else |
6855 | if test -n "$STRIP"; then |
6856 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6857 | else |
6858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6859 | for as_dir in $PATH |
6860 | do |
6861 | IFS=$as_save_IFS |
6862 | test -z "$as_dir" && as_dir=. |
6863 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6865 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6867 | break 2 |
6868 | fi |
6869 | done |
6870 | done |
dd184caf |
6871 | IFS=$as_save_IFS |
d9898ee8 |
6872 | |
6873 | fi |
6874 | fi |
6875 | STRIP=$ac_cv_prog_STRIP |
6876 | if test -n "$STRIP"; then |
dd184caf |
6877 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6878 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
6879 | else |
dd184caf |
6880 | { echo "$as_me:$LINENO: result: no" >&5 |
6881 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6882 | fi |
6883 | |
dd184caf |
6884 | |
d9898ee8 |
6885 | fi |
6886 | if test -z "$ac_cv_prog_STRIP"; then |
6887 | ac_ct_STRIP=$STRIP |
6888 | # Extract the first word of "strip", so it can be a program name with args. |
6889 | set dummy strip; ac_word=$2 |
dd184caf |
6890 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6892 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6894 | else |
6895 | if test -n "$ac_ct_STRIP"; then |
6896 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6897 | else |
6898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6899 | for as_dir in $PATH |
6900 | do |
6901 | IFS=$as_save_IFS |
6902 | test -z "$as_dir" && as_dir=. |
6903 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6905 | ac_cv_prog_ac_ct_STRIP="strip" |
6906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6907 | break 2 |
6908 | fi |
6909 | done |
6910 | done |
dd184caf |
6911 | IFS=$as_save_IFS |
d9898ee8 |
6912 | |
d9898ee8 |
6913 | fi |
6914 | fi |
6915 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6916 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
6917 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6918 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
6919 | else |
dd184caf |
6920 | { echo "$as_me:$LINENO: result: no" >&5 |
6921 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6922 | fi |
6923 | |
dd184caf |
6924 | if test "x$ac_ct_STRIP" = x; then |
6925 | STRIP=":" |
6926 | else |
6927 | case $cross_compiling:$ac_tool_warned in |
6928 | yes:) |
6929 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6930 | whose name does not start with the host triplet. If you think this |
6931 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6932 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6933 | whose name does not start with the host triplet. If you think this |
6934 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6935 | ac_tool_warned=yes ;; |
6936 | esac |
6937 | STRIP=$ac_ct_STRIP |
6938 | fi |
d9898ee8 |
6939 | else |
6940 | STRIP="$ac_cv_prog_STRIP" |
6941 | fi |
6942 | |
6943 | |
6944 | old_CC="$CC" |
6945 | old_CFLAGS="$CFLAGS" |
6946 | |
6947 | # Set sane defaults for various variables |
6948 | test -z "$AR" && AR=ar |
6949 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6950 | test -z "$AS" && AS=as |
6951 | test -z "$CC" && CC=cc |
6952 | test -z "$LTCC" && LTCC=$CC |
6953 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6954 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6955 | test -z "$LD" && LD=ld |
6956 | test -z "$LN_S" && LN_S="ln -s" |
6957 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6958 | test -z "$NM" && NM=nm |
6959 | test -z "$SED" && SED=sed |
6960 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6961 | test -z "$RANLIB" && RANLIB=: |
6962 | test -z "$STRIP" && STRIP=: |
6963 | test -z "$ac_objext" && ac_objext=o |
6964 | |
6965 | # Determine commands to create old-style static archives. |
6966 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6967 | old_postinstall_cmds='chmod 644 $oldlib' |
6968 | old_postuninstall_cmds= |
6969 | |
6970 | if test -n "$RANLIB"; then |
6971 | case $host_os in |
6972 | openbsd*) |
6973 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6974 | ;; |
6975 | *) |
6976 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6977 | ;; |
6978 | esac |
6979 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6980 | fi |
6981 | |
6982 | for cc_temp in $compiler""; do |
6983 | case $cc_temp in |
6984 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6985 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6986 | \-*) ;; |
6987 | *) break;; |
6988 | esac |
6989 | done |
6990 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6991 | |
6992 | |
6993 | # Only perform the check for file, if the check method requires it |
6994 | case $deplibs_check_method in |
6995 | file_magic*) |
6996 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dd184caf |
6997 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6998 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
6999 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7001 | else |
7002 | case $MAGIC_CMD in |
7003 | [\\/*] | ?:[\\/]*) |
7004 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7005 | ;; |
7006 | *) |
7007 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7008 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7009 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7010 | for ac_dir in $ac_dummy; do |
7011 | IFS="$lt_save_ifs" |
7012 | test -z "$ac_dir" && ac_dir=. |
7013 | if test -f $ac_dir/${ac_tool_prefix}file; then |
7014 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
7015 | if test -n "$file_magic_test_file"; then |
7016 | case $deplibs_check_method in |
7017 | "file_magic "*) |
7018 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7019 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7020 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7021 | $EGREP "$file_magic_regex" > /dev/null; then |
7022 | : |
7023 | else |
7024 | cat <<EOF 1>&2 |
7025 | |
7026 | *** Warning: the command libtool uses to detect shared libraries, |
7027 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7028 | *** The result is that libtool may fail to recognize shared libraries |
7029 | *** as such. This will affect the creation of libtool libraries that |
7030 | *** depend on shared libraries, but programs linked with such libtool |
7031 | *** libraries will work regardless of this problem. Nevertheless, you |
7032 | *** may want to report the problem to your system manager and/or to |
7033 | *** bug-libtool@gnu.org |
7034 | |
7035 | EOF |
7036 | fi ;; |
7037 | esac |
7038 | fi |
7039 | break |
7040 | fi |
7041 | done |
7042 | IFS="$lt_save_ifs" |
7043 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7044 | ;; |
7045 | esac |
7046 | fi |
7047 | |
7048 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7049 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7050 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7051 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7052 | else |
dd184caf |
7053 | { echo "$as_me:$LINENO: result: no" >&5 |
7054 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7055 | fi |
7056 | |
7057 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7058 | if test -n "$ac_tool_prefix"; then |
dd184caf |
7059 | { echo "$as_me:$LINENO: checking for file" >&5 |
7060 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7061 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7063 | else |
7064 | case $MAGIC_CMD in |
7065 | [\\/*] | ?:[\\/]*) |
7066 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7067 | ;; |
7068 | *) |
7069 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7070 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7071 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7072 | for ac_dir in $ac_dummy; do |
7073 | IFS="$lt_save_ifs" |
7074 | test -z "$ac_dir" && ac_dir=. |
7075 | if test -f $ac_dir/file; then |
7076 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7077 | if test -n "$file_magic_test_file"; then |
7078 | case $deplibs_check_method in |
7079 | "file_magic "*) |
7080 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7081 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7082 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7083 | $EGREP "$file_magic_regex" > /dev/null; then |
7084 | : |
7085 | else |
7086 | cat <<EOF 1>&2 |
7087 | |
7088 | *** Warning: the command libtool uses to detect shared libraries, |
7089 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7090 | *** The result is that libtool may fail to recognize shared libraries |
7091 | *** as such. This will affect the creation of libtool libraries that |
7092 | *** depend on shared libraries, but programs linked with such libtool |
7093 | *** libraries will work regardless of this problem. Nevertheless, you |
7094 | *** may want to report the problem to your system manager and/or to |
7095 | *** bug-libtool@gnu.org |
7096 | |
7097 | EOF |
7098 | fi ;; |
7099 | esac |
7100 | fi |
7101 | break |
7102 | fi |
7103 | done |
7104 | IFS="$lt_save_ifs" |
7105 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7106 | ;; |
7107 | esac |
7108 | fi |
7109 | |
7110 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7111 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7112 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7113 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7114 | else |
dd184caf |
7115 | { echo "$as_me:$LINENO: result: no" >&5 |
7116 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7117 | fi |
7118 | |
7119 | else |
7120 | MAGIC_CMD=: |
7121 | fi |
7122 | fi |
7123 | |
7124 | fi |
7125 | ;; |
7126 | esac |
7127 | |
7128 | enable_dlopen=yes |
7129 | enable_win32_dll=no |
7130 | |
dd184caf |
7131 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7132 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
7133 | enableval=$enable_libtool_lock; |
7134 | fi |
d9898ee8 |
7135 | |
d9898ee8 |
7136 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7137 | |
7138 | |
dd184caf |
7139 | # Check whether --with-pic was given. |
d9898ee8 |
7140 | if test "${with_pic+set}" = set; then |
dd184caf |
7141 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7142 | else |
7143 | pic_mode=default |
dd184caf |
7144 | fi |
7145 | |
d9898ee8 |
7146 | test -z "$pic_mode" && pic_mode=default |
7147 | |
7148 | # Use C for the default configuration in the libtool script |
7149 | tagname= |
7150 | lt_save_CC="$CC" |
7151 | ac_ext=c |
7152 | ac_cpp='$CPP $CPPFLAGS' |
7153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7156 | |
7157 | |
7158 | # Source file extension for C test sources. |
7159 | ac_ext=c |
7160 | |
7161 | # Object file extension for compiled C test sources. |
7162 | objext=o |
7163 | objext=$objext |
7164 | |
7165 | # Code to be used in simple compile tests |
7166 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7167 | |
7168 | # Code to be used in simple link tests |
7169 | lt_simple_link_test_code='int main(){return(0);}\n' |
7170 | |
7171 | |
7172 | # If no C compiler was specified, use CC. |
7173 | LTCC=${LTCC-"$CC"} |
7174 | |
7175 | # If no C compiler flags were specified, use CFLAGS. |
7176 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7177 | |
7178 | # Allow CC to be a program name with arguments. |
7179 | compiler=$CC |
7180 | |
7181 | |
7182 | # save warnings/boilerplate of simple test code |
7183 | ac_outfile=conftest.$ac_objext |
7184 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7185 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7186 | _lt_compiler_boilerplate=`cat conftest.err` |
7187 | $rm conftest* |
7188 | |
7189 | ac_outfile=conftest.$ac_objext |
7190 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7191 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7192 | _lt_linker_boilerplate=`cat conftest.err` |
7193 | $rm conftest* |
7194 | |
7195 | |
7196 | |
7197 | lt_prog_compiler_no_builtin_flag= |
7198 | |
7199 | if test "$GCC" = yes; then |
7200 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7201 | |
7202 | |
dd184caf |
7203 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7204 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7205 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7207 | else |
7208 | lt_cv_prog_compiler_rtti_exceptions=no |
7209 | ac_outfile=conftest.$ac_objext |
7210 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7211 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7212 | # Insert the option either (1) after the last *FLAGS variable, or |
7213 | # (2) before a word containing "conftest.", or (3) at the end. |
7214 | # Note that $ac_compile itself does not contain backslashes and begins |
7215 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7216 | # The option is referenced via a variable to avoid confusing sed. |
7217 | lt_compile=`echo "$ac_compile" | $SED \ |
7218 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7219 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7220 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7221 | (eval echo "\"\$as_me:7221: $lt_compile\"" >&5) |
d9898ee8 |
7222 | (eval "$lt_compile" 2>conftest.err) |
7223 | ac_status=$? |
7224 | cat conftest.err >&5 |
dd184caf |
7225 | echo "$as_me:7225: \$? = $ac_status" >&5 |
d9898ee8 |
7226 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7227 | # The compiler can only warn and ignore the option if not recognized |
7228 | # So say no if there are warnings other than the usual output. |
7229 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7230 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7231 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7232 | lt_cv_prog_compiler_rtti_exceptions=yes |
7233 | fi |
7234 | fi |
7235 | $rm conftest* |
7236 | |
7237 | fi |
dd184caf |
7238 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7239 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7240 | |
7241 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7242 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7243 | else |
7244 | : |
7245 | fi |
7246 | |
7247 | fi |
7248 | |
7249 | lt_prog_compiler_wl= |
7250 | lt_prog_compiler_pic= |
7251 | lt_prog_compiler_static= |
7252 | |
dd184caf |
7253 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7254 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7255 | |
7256 | if test "$GCC" = yes; then |
7257 | lt_prog_compiler_wl='-Wl,' |
7258 | lt_prog_compiler_static='-static' |
7259 | |
7260 | case $host_os in |
7261 | aix*) |
7262 | # All AIX code is PIC. |
7263 | if test "$host_cpu" = ia64; then |
7264 | # AIX 5 now supports IA64 processor |
7265 | lt_prog_compiler_static='-Bstatic' |
7266 | fi |
7267 | ;; |
7268 | |
7269 | amigaos*) |
7270 | # FIXME: we need at least 68020 code to build shared libraries, but |
7271 | # adding the `-m68020' flag to GCC prevents building anything better, |
7272 | # like `-m68040'. |
7273 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7274 | ;; |
7275 | |
7276 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7277 | # PIC is the default for these OSes. |
7278 | ;; |
7279 | |
7280 | mingw* | pw32* | os2*) |
7281 | # This hack is so that the source file can tell whether it is being |
7282 | # built for inclusion in a dll (and should export symbols for example). |
7283 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7284 | ;; |
7285 | |
7286 | darwin* | rhapsody*) |
7287 | # PIC is the default on this platform |
7288 | # Common symbols not allowed in MH_DYLIB files |
7289 | lt_prog_compiler_pic='-fno-common' |
7290 | ;; |
7291 | |
7292 | interix3*) |
7293 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7294 | # Instead, we relocate shared libraries at runtime. |
7295 | ;; |
7296 | |
7297 | msdosdjgpp*) |
7298 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7299 | # on systems that don't support them. |
7300 | lt_prog_compiler_can_build_shared=no |
7301 | enable_shared=no |
7302 | ;; |
7303 | |
7304 | sysv4*MP*) |
7305 | if test -d /usr/nec; then |
7306 | lt_prog_compiler_pic=-Kconform_pic |
7307 | fi |
7308 | ;; |
7309 | |
7310 | hpux*) |
7311 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7312 | # not for PA HP-UX. |
7313 | case $host_cpu in |
7314 | hppa*64*|ia64*) |
7315 | # +Z the default |
7316 | ;; |
7317 | *) |
7318 | lt_prog_compiler_pic='-fPIC' |
7319 | ;; |
7320 | esac |
7321 | ;; |
7322 | |
7323 | *) |
7324 | lt_prog_compiler_pic='-fPIC' |
7325 | ;; |
7326 | esac |
7327 | else |
7328 | # PORTME Check for flag to pass linker flags through the system compiler. |
7329 | case $host_os in |
7330 | aix*) |
7331 | lt_prog_compiler_wl='-Wl,' |
7332 | if test "$host_cpu" = ia64; then |
7333 | # AIX 5 now supports IA64 processor |
7334 | lt_prog_compiler_static='-Bstatic' |
7335 | else |
7336 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7337 | fi |
7338 | ;; |
7339 | darwin*) |
7340 | # PIC is the default on this platform |
7341 | # Common symbols not allowed in MH_DYLIB files |
7342 | case $cc_basename in |
7343 | xlc*) |
7344 | lt_prog_compiler_pic='-qnocommon' |
7345 | lt_prog_compiler_wl='-Wl,' |
7346 | ;; |
7347 | esac |
7348 | ;; |
7349 | |
7350 | mingw* | pw32* | os2*) |
7351 | # This hack is so that the source file can tell whether it is being |
7352 | # built for inclusion in a dll (and should export symbols for example). |
7353 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7354 | ;; |
7355 | |
7356 | hpux9* | hpux10* | hpux11*) |
7357 | lt_prog_compiler_wl='-Wl,' |
7358 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7359 | # not for PA HP-UX. |
7360 | case $host_cpu in |
7361 | hppa*64*|ia64*) |
7362 | # +Z the default |
7363 | ;; |
7364 | *) |
7365 | lt_prog_compiler_pic='+Z' |
7366 | ;; |
7367 | esac |
7368 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7369 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7370 | ;; |
7371 | |
7372 | irix5* | irix6* | nonstopux*) |
7373 | lt_prog_compiler_wl='-Wl,' |
7374 | # PIC (with -KPIC) is the default. |
7375 | lt_prog_compiler_static='-non_shared' |
7376 | ;; |
7377 | |
7378 | newsos6) |
7379 | lt_prog_compiler_pic='-KPIC' |
7380 | lt_prog_compiler_static='-Bstatic' |
7381 | ;; |
7382 | |
7383 | linux*) |
7384 | case $cc_basename in |
7385 | icc* | ecc*) |
7386 | lt_prog_compiler_wl='-Wl,' |
7387 | lt_prog_compiler_pic='-KPIC' |
7388 | lt_prog_compiler_static='-static' |
7389 | ;; |
7390 | pgcc* | pgf77* | pgf90* | pgf95*) |
7391 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7392 | # which looks to be a dead project) |
7393 | lt_prog_compiler_wl='-Wl,' |
7394 | lt_prog_compiler_pic='-fpic' |
7395 | lt_prog_compiler_static='-Bstatic' |
7396 | ;; |
7397 | ccc*) |
7398 | lt_prog_compiler_wl='-Wl,' |
7399 | # All Alpha code is PIC. |
7400 | lt_prog_compiler_static='-non_shared' |
7401 | ;; |
7402 | esac |
7403 | ;; |
7404 | |
7405 | osf3* | osf4* | osf5*) |
7406 | lt_prog_compiler_wl='-Wl,' |
7407 | # All OSF/1 code is PIC. |
7408 | lt_prog_compiler_static='-non_shared' |
7409 | ;; |
7410 | |
7411 | solaris*) |
7412 | lt_prog_compiler_pic='-KPIC' |
7413 | lt_prog_compiler_static='-Bstatic' |
7414 | case $cc_basename in |
7415 | f77* | f90* | f95*) |
7416 | lt_prog_compiler_wl='-Qoption ld ';; |
7417 | *) |
7418 | lt_prog_compiler_wl='-Wl,';; |
7419 | esac |
7420 | ;; |
7421 | |
7422 | sunos4*) |
7423 | lt_prog_compiler_wl='-Qoption ld ' |
7424 | lt_prog_compiler_pic='-PIC' |
7425 | lt_prog_compiler_static='-Bstatic' |
7426 | ;; |
7427 | |
7428 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7429 | lt_prog_compiler_wl='-Wl,' |
7430 | lt_prog_compiler_pic='-KPIC' |
7431 | lt_prog_compiler_static='-Bstatic' |
7432 | ;; |
7433 | |
7434 | sysv4*MP*) |
7435 | if test -d /usr/nec ;then |
7436 | lt_prog_compiler_pic='-Kconform_pic' |
7437 | lt_prog_compiler_static='-Bstatic' |
7438 | fi |
7439 | ;; |
7440 | |
7441 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7442 | lt_prog_compiler_wl='-Wl,' |
7443 | lt_prog_compiler_pic='-KPIC' |
7444 | lt_prog_compiler_static='-Bstatic' |
7445 | ;; |
7446 | |
7447 | unicos*) |
7448 | lt_prog_compiler_wl='-Wl,' |
7449 | lt_prog_compiler_can_build_shared=no |
7450 | ;; |
7451 | |
7452 | uts4*) |
7453 | lt_prog_compiler_pic='-pic' |
7454 | lt_prog_compiler_static='-Bstatic' |
7455 | ;; |
7456 | |
7457 | *) |
7458 | lt_prog_compiler_can_build_shared=no |
7459 | ;; |
7460 | esac |
7461 | fi |
7462 | |
dd184caf |
7463 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7464 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7465 | |
7466 | # |
7467 | # Check to make sure the PIC flag actually works. |
7468 | # |
7469 | if test -n "$lt_prog_compiler_pic"; then |
7470 | |
dd184caf |
7471 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7472 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7473 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7475 | else |
7476 | lt_prog_compiler_pic_works=no |
7477 | ac_outfile=conftest.$ac_objext |
7478 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7479 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7480 | # Insert the option either (1) after the last *FLAGS variable, or |
7481 | # (2) before a word containing "conftest.", or (3) at the end. |
7482 | # Note that $ac_compile itself does not contain backslashes and begins |
7483 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7484 | # The option is referenced via a variable to avoid confusing sed. |
7485 | lt_compile=`echo "$ac_compile" | $SED \ |
7486 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7487 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7488 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7489 | (eval echo "\"\$as_me:7489: $lt_compile\"" >&5) |
d9898ee8 |
7490 | (eval "$lt_compile" 2>conftest.err) |
7491 | ac_status=$? |
7492 | cat conftest.err >&5 |
dd184caf |
7493 | echo "$as_me:7493: \$? = $ac_status" >&5 |
d9898ee8 |
7494 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7495 | # The compiler can only warn and ignore the option if not recognized |
7496 | # So say no if there are warnings other than the usual output. |
7497 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7498 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7499 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7500 | lt_prog_compiler_pic_works=yes |
7501 | fi |
7502 | fi |
7503 | $rm conftest* |
7504 | |
7505 | fi |
dd184caf |
7506 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7507 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7508 | |
7509 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7510 | case $lt_prog_compiler_pic in |
7511 | "" | " "*) ;; |
7512 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7513 | esac |
7514 | else |
7515 | lt_prog_compiler_pic= |
7516 | lt_prog_compiler_can_build_shared=no |
7517 | fi |
7518 | |
7519 | fi |
7520 | case $host_os in |
7521 | # For platforms which do not support PIC, -DPIC is meaningless: |
7522 | *djgpp*) |
7523 | lt_prog_compiler_pic= |
7524 | ;; |
7525 | *) |
7526 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7527 | ;; |
7528 | esac |
7529 | |
7530 | # |
7531 | # Check to make sure the static flag actually works. |
7532 | # |
7533 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
dd184caf |
7534 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7535 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7536 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7538 | else |
7539 | lt_prog_compiler_static_works=no |
7540 | save_LDFLAGS="$LDFLAGS" |
7541 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7542 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7543 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7544 | # The linker can only warn and ignore the option if not recognized |
7545 | # So say no if there are warnings |
7546 | if test -s conftest.err; then |
7547 | # Append any errors to the config.log. |
7548 | cat conftest.err 1>&5 |
7549 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7550 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7551 | if diff conftest.exp conftest.er2 >/dev/null; then |
7552 | lt_prog_compiler_static_works=yes |
7553 | fi |
7554 | else |
7555 | lt_prog_compiler_static_works=yes |
7556 | fi |
7557 | fi |
7558 | $rm conftest* |
7559 | LDFLAGS="$save_LDFLAGS" |
7560 | |
7561 | fi |
dd184caf |
7562 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7563 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7564 | |
7565 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7566 | : |
7567 | else |
7568 | lt_prog_compiler_static= |
7569 | fi |
7570 | |
7571 | |
dd184caf |
7572 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7573 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7574 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7576 | else |
7577 | lt_cv_prog_compiler_c_o=no |
7578 | $rm -r conftest 2>/dev/null |
7579 | mkdir conftest |
7580 | cd conftest |
7581 | mkdir out |
7582 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7583 | |
7584 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7585 | # Insert the option either (1) after the last *FLAGS variable, or |
7586 | # (2) before a word containing "conftest.", or (3) at the end. |
7587 | # Note that $ac_compile itself does not contain backslashes and begins |
7588 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7589 | lt_compile=`echo "$ac_compile" | $SED \ |
7590 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7591 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7592 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7593 | (eval echo "\"\$as_me:7593: $lt_compile\"" >&5) |
d9898ee8 |
7594 | (eval "$lt_compile" 2>out/conftest.err) |
7595 | ac_status=$? |
7596 | cat out/conftest.err >&5 |
dd184caf |
7597 | echo "$as_me:7597: \$? = $ac_status" >&5 |
d9898ee8 |
7598 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7599 | then |
7600 | # The compiler can only warn and ignore the option if not recognized |
7601 | # So say no if there are warnings |
7602 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7603 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7604 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7605 | lt_cv_prog_compiler_c_o=yes |
7606 | fi |
7607 | fi |
7608 | chmod u+w . 2>&5 |
7609 | $rm conftest* |
7610 | # SGI C++ compiler will create directory out/ii_files/ for |
7611 | # template instantiation |
7612 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7613 | $rm out/* && rmdir out |
7614 | cd .. |
7615 | rmdir conftest |
7616 | $rm conftest* |
7617 | |
7618 | fi |
dd184caf |
7619 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7620 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7621 | |
7622 | |
7623 | hard_links="nottested" |
7624 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7625 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
7626 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7627 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7628 | hard_links=yes |
7629 | $rm conftest* |
7630 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7631 | touch conftest.a |
7632 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7633 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
7634 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7635 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7636 | if test "$hard_links" = no; then |
7637 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7638 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7639 | need_locks=warn |
7640 | fi |
7641 | else |
7642 | need_locks=no |
7643 | fi |
7644 | |
dd184caf |
7645 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7646 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7647 | |
7648 | runpath_var= |
7649 | allow_undefined_flag= |
7650 | enable_shared_with_static_runtimes=no |
7651 | archive_cmds= |
7652 | archive_expsym_cmds= |
7653 | old_archive_From_new_cmds= |
7654 | old_archive_from_expsyms_cmds= |
7655 | export_dynamic_flag_spec= |
7656 | whole_archive_flag_spec= |
7657 | thread_safe_flag_spec= |
7658 | hardcode_libdir_flag_spec= |
7659 | hardcode_libdir_flag_spec_ld= |
7660 | hardcode_libdir_separator= |
7661 | hardcode_direct=no |
7662 | hardcode_minus_L=no |
7663 | hardcode_shlibpath_var=unsupported |
7664 | link_all_deplibs=unknown |
7665 | hardcode_automatic=no |
7666 | module_cmds= |
7667 | module_expsym_cmds= |
7668 | always_export_symbols=no |
7669 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7670 | # include_expsyms should be a list of space-separated symbols to be *always* |
7671 | # included in the symbol list |
7672 | include_expsyms= |
7673 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7674 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7675 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7676 | # as well as any symbol that contains `d'. |
7677 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7678 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7679 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7680 | # the symbol is explicitly referenced. Since portable code cannot |
7681 | # rely on this symbol name, it's probably fine to never include it in |
7682 | # preloaded symbol tables. |
7683 | extract_expsyms_cmds= |
7684 | # Just being paranoid about ensuring that cc_basename is set. |
7685 | for cc_temp in $compiler""; do |
7686 | case $cc_temp in |
7687 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7688 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7689 | \-*) ;; |
7690 | *) break;; |
7691 | esac |
7692 | done |
7693 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7694 | |
7695 | case $host_os in |
7696 | cygwin* | mingw* | pw32*) |
7697 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7698 | # When not using gcc, we currently assume that we are using |
7699 | # Microsoft Visual C++. |
7700 | if test "$GCC" != yes; then |
7701 | with_gnu_ld=no |
7702 | fi |
7703 | ;; |
7704 | interix*) |
7705 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7706 | with_gnu_ld=yes |
7707 | ;; |
7708 | openbsd*) |
7709 | with_gnu_ld=no |
7710 | ;; |
7711 | esac |
7712 | |
7713 | ld_shlibs=yes |
7714 | if test "$with_gnu_ld" = yes; then |
7715 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7716 | wlarc='${wl}' |
7717 | |
7718 | # Set some defaults for GNU ld with shared library support. These |
7719 | # are reset later if shared libraries are not supported. Putting them |
7720 | # here allows them to be overridden if necessary. |
7721 | runpath_var=LD_RUN_PATH |
7722 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7723 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7724 | # ancient GNU ld didn't support --whole-archive et. al. |
7725 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7726 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7727 | else |
7728 | whole_archive_flag_spec= |
7729 | fi |
7730 | supports_anon_versioning=no |
7731 | case `$LD -v 2>/dev/null` in |
7732 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7733 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7734 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7735 | *\ 2.11.*) ;; # other 2.11 versions |
7736 | *) supports_anon_versioning=yes ;; |
7737 | esac |
7738 | |
7739 | # See if GNU ld supports shared libraries. |
7740 | case $host_os in |
7741 | aix3* | aix4* | aix5*) |
7742 | # On AIX/PPC, the GNU linker is very broken |
7743 | if test "$host_cpu" != ia64; then |
7744 | ld_shlibs=no |
7745 | cat <<EOF 1>&2 |
7746 | |
7747 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7748 | *** to be unable to reliably create shared libraries on AIX. |
7749 | *** Therefore, libtool is disabling shared libraries support. If you |
7750 | *** really care for shared libraries, you may want to modify your PATH |
7751 | *** so that a non-GNU linker is found, and then restart. |
7752 | |
7753 | EOF |
7754 | fi |
7755 | ;; |
7756 | |
7757 | amigaos*) |
7758 | 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)' |
7759 | hardcode_libdir_flag_spec='-L$libdir' |
7760 | hardcode_minus_L=yes |
7761 | |
7762 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7763 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7764 | # to version 4, is to share data among multiple programs linked |
7765 | # with the same dynamic library. Since this doesn't match the |
7766 | # behavior of shared libraries on other platforms, we can't use |
7767 | # them. |
7768 | ld_shlibs=no |
7769 | ;; |
7770 | |
7771 | beos*) |
7772 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7773 | allow_undefined_flag=unsupported |
7774 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7775 | # support --undefined. This deserves some investigation. FIXME |
7776 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7777 | else |
7778 | ld_shlibs=no |
7779 | fi |
7780 | ;; |
7781 | |
7782 | cygwin* | mingw* | pw32*) |
7783 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7784 | # as there is no search path for DLLs. |
7785 | hardcode_libdir_flag_spec='-L$libdir' |
7786 | allow_undefined_flag=unsupported |
7787 | always_export_symbols=no |
7788 | enable_shared_with_static_runtimes=yes |
7789 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7790 | |
7791 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7792 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7793 | # If the export-symbols file already is a .def file (1st line |
7794 | # is EXPORTS), use it as is; otherwise, prepend... |
7795 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7796 | cp $export_symbols $output_objdir/$soname.def; |
7797 | else |
7798 | echo EXPORTS > $output_objdir/$soname.def; |
7799 | cat $export_symbols >> $output_objdir/$soname.def; |
7800 | fi~ |
7801 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7802 | else |
7803 | ld_shlibs=no |
7804 | fi |
7805 | ;; |
7806 | |
7807 | interix3*) |
7808 | hardcode_direct=no |
7809 | hardcode_shlibpath_var=no |
7810 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7811 | export_dynamic_flag_spec='${wl}-E' |
7812 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7813 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7814 | # default) and relocated if they conflict, which is a slow very memory |
7815 | # consuming and fragmenting process. To avoid this, we pick a random, |
7816 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7817 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7818 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7819 | 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' |
7820 | ;; |
7821 | |
7822 | linux*) |
7823 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7824 | tmp_addflag= |
7825 | case $cc_basename,$host_cpu in |
7826 | pgcc*) # Portland Group C compiler |
7827 | 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' |
7828 | tmp_addflag=' $pic_flag' |
7829 | ;; |
7830 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7831 | 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' |
7832 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7833 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7834 | tmp_addflag=' -i_dynamic' ;; |
7835 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7836 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7837 | ifc* | ifort*) # Intel Fortran compiler |
7838 | tmp_addflag=' -nofor_main' ;; |
7839 | esac |
7840 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7841 | |
7842 | if test $supports_anon_versioning = yes; then |
7843 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7844 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7845 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7846 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7847 | fi |
7848 | else |
7849 | ld_shlibs=no |
7850 | fi |
7851 | ;; |
7852 | |
7853 | netbsd*) |
7854 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7855 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7856 | wlarc= |
7857 | else |
7858 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7859 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7860 | fi |
7861 | ;; |
7862 | |
7863 | solaris*) |
7864 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7865 | ld_shlibs=no |
7866 | cat <<EOF 1>&2 |
7867 | |
7868 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7869 | *** create shared libraries on Solaris systems. Therefore, libtool |
7870 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7871 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7872 | *** your PATH or compiler configuration so that the native linker is |
7873 | *** used, and then restart. |
7874 | |
7875 | EOF |
7876 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7877 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7878 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7879 | else |
7880 | ld_shlibs=no |
7881 | fi |
7882 | ;; |
7883 | |
7884 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7885 | case `$LD -v 2>&1` in |
7886 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7887 | ld_shlibs=no |
7888 | cat <<_LT_EOF 1>&2 |
7889 | |
7890 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7891 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7892 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7893 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7894 | *** your PATH or compiler configuration so that the native linker is |
7895 | *** used, and then restart. |
7896 | |
7897 | _LT_EOF |
7898 | ;; |
7899 | *) |
7900 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7901 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7902 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7903 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7904 | else |
7905 | ld_shlibs=no |
7906 | fi |
7907 | ;; |
7908 | esac |
7909 | ;; |
7910 | |
7911 | sunos4*) |
7912 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7913 | wlarc= |
7914 | hardcode_direct=yes |
7915 | hardcode_shlibpath_var=no |
7916 | ;; |
7917 | |
7918 | *) |
7919 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7920 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7921 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7922 | else |
7923 | ld_shlibs=no |
7924 | fi |
7925 | ;; |
7926 | esac |
7927 | |
7928 | if test "$ld_shlibs" = no; then |
7929 | runpath_var= |
7930 | hardcode_libdir_flag_spec= |
7931 | export_dynamic_flag_spec= |
7932 | whole_archive_flag_spec= |
7933 | fi |
7934 | else |
7935 | # PORTME fill in a description of your system's linker (not GNU ld) |
7936 | case $host_os in |
7937 | aix3*) |
7938 | allow_undefined_flag=unsupported |
7939 | always_export_symbols=yes |
7940 | 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' |
7941 | # Note: this linker hardcodes the directories in LIBPATH if there |
7942 | # are no directories specified by -L. |
7943 | hardcode_minus_L=yes |
7944 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7945 | # Neither direct hardcoding nor static linking is supported with a |
7946 | # broken collect2. |
7947 | hardcode_direct=unsupported |
7948 | fi |
7949 | ;; |
7950 | |
7951 | aix4* | aix5*) |
7952 | if test "$host_cpu" = ia64; then |
7953 | # On IA64, the linker does run time linking by default, so we don't |
7954 | # have to do anything special. |
7955 | aix_use_runtimelinking=no |
7956 | exp_sym_flag='-Bexport' |
7957 | no_entry_flag="" |
7958 | else |
7959 | # If we're using GNU nm, then we don't want the "-C" option. |
7960 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7961 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7962 | 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' |
7963 | else |
7964 | 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' |
7965 | fi |
7966 | aix_use_runtimelinking=no |
7967 | |
7968 | # Test if we are trying to use run time linking or normal |
7969 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7970 | # need to do runtime linking. |
7971 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7972 | for ld_flag in $LDFLAGS; do |
7973 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7974 | aix_use_runtimelinking=yes |
7975 | break |
7976 | fi |
7977 | done |
7978 | ;; |
7979 | esac |
7980 | |
7981 | exp_sym_flag='-bexport' |
7982 | no_entry_flag='-bnoentry' |
7983 | fi |
7984 | |
7985 | # When large executables or shared objects are built, AIX ld can |
7986 | # have problems creating the table of contents. If linking a library |
7987 | # or program results in "error TOC overflow" add -mminimal-toc to |
7988 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7989 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7990 | |
7991 | archive_cmds='' |
7992 | hardcode_direct=yes |
7993 | hardcode_libdir_separator=':' |
7994 | link_all_deplibs=yes |
7995 | |
7996 | if test "$GCC" = yes; then |
7997 | case $host_os in aix4.[012]|aix4.[012].*) |
7998 | # We only want to do this on AIX 4.2 and lower, the check |
7999 | # below for broken collect2 doesn't work under 4.3+ |
8000 | collect2name=`${CC} -print-prog-name=collect2` |
8001 | if test -f "$collect2name" && \ |
8002 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8003 | then |
8004 | # We have reworked collect2 |
8005 | hardcode_direct=yes |
8006 | else |
8007 | # We have old collect2 |
8008 | hardcode_direct=unsupported |
8009 | # It fails to find uninstalled libraries when the uninstalled |
8010 | # path is not listed in the libpath. Setting hardcode_minus_L |
8011 | # to unsupported forces relinking |
8012 | hardcode_minus_L=yes |
8013 | hardcode_libdir_flag_spec='-L$libdir' |
8014 | hardcode_libdir_separator= |
8015 | fi |
8016 | ;; |
8017 | esac |
8018 | shared_flag='-shared' |
8019 | if test "$aix_use_runtimelinking" = yes; then |
8020 | shared_flag="$shared_flag "'${wl}-G' |
8021 | fi |
8022 | else |
8023 | # not using gcc |
8024 | if test "$host_cpu" = ia64; then |
8025 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8026 | # chokes on -Wl,-G. The following line is correct: |
8027 | shared_flag='-G' |
8028 | else |
8029 | if test "$aix_use_runtimelinking" = yes; then |
8030 | shared_flag='${wl}-G' |
8031 | else |
8032 | shared_flag='${wl}-bM:SRE' |
8033 | fi |
8034 | fi |
8035 | fi |
8036 | |
8037 | # It seems that -bexpall does not export symbols beginning with |
8038 | # underscore (_), so it is better to generate a list of symbols to export. |
8039 | always_export_symbols=yes |
8040 | if test "$aix_use_runtimelinking" = yes; then |
8041 | # Warning - without using the other runtime loading flags (-brtl), |
8042 | # -berok will link without error, but may produce a broken library. |
8043 | allow_undefined_flag='-berok' |
8044 | # Determine the default libpath from the value encoded in an empty executable. |
8045 | cat >conftest.$ac_ext <<_ACEOF |
8046 | /* confdefs.h. */ |
8047 | _ACEOF |
8048 | cat confdefs.h >>conftest.$ac_ext |
8049 | cat >>conftest.$ac_ext <<_ACEOF |
8050 | /* end confdefs.h. */ |
8051 | |
8052 | int |
8053 | main () |
8054 | { |
8055 | |
8056 | ; |
8057 | return 0; |
8058 | } |
8059 | _ACEOF |
8060 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8061 | if { (ac_try="$ac_link" |
8062 | case "(($ac_try" in |
8063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8064 | *) ac_try_echo=$ac_try;; |
8065 | esac |
8066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8067 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8068 | ac_status=$? |
8069 | grep -v '^ *+' conftest.er1 >conftest.err |
8070 | rm -f conftest.er1 |
8071 | cat conftest.err >&5 |
8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8073 | (exit $ac_status); } && { |
8074 | test -z "$ac_c_werror_flag" || |
8075 | test ! -s conftest.err |
8076 | } && test -s conftest$ac_exeext && |
8077 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8078 | |
8079 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8080 | }'` |
8081 | # Check for a 64-bit object if we didn't find anything. |
8082 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8083 | }'`; fi |
8084 | else |
8085 | echo "$as_me: failed program was:" >&5 |
8086 | sed 's/^/| /' conftest.$ac_ext >&5 |
8087 | |
dd184caf |
8088 | |
d9898ee8 |
8089 | fi |
dd184caf |
8090 | |
8091 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8092 | conftest$ac_exeext conftest.$ac_ext |
8093 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8094 | |
8095 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8096 | 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" |
8097 | else |
8098 | if test "$host_cpu" = ia64; then |
8099 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8100 | allow_undefined_flag="-z nodefs" |
8101 | 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" |
8102 | else |
8103 | # Determine the default libpath from the value encoded in an empty executable. |
8104 | cat >conftest.$ac_ext <<_ACEOF |
8105 | /* confdefs.h. */ |
8106 | _ACEOF |
8107 | cat confdefs.h >>conftest.$ac_ext |
8108 | cat >>conftest.$ac_ext <<_ACEOF |
8109 | /* end confdefs.h. */ |
8110 | |
8111 | int |
8112 | main () |
8113 | { |
8114 | |
8115 | ; |
8116 | return 0; |
8117 | } |
8118 | _ACEOF |
8119 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8120 | if { (ac_try="$ac_link" |
8121 | case "(($ac_try" in |
8122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8123 | *) ac_try_echo=$ac_try;; |
8124 | esac |
8125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8126 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8127 | ac_status=$? |
8128 | grep -v '^ *+' conftest.er1 >conftest.err |
8129 | rm -f conftest.er1 |
8130 | cat conftest.err >&5 |
8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8132 | (exit $ac_status); } && { |
8133 | test -z "$ac_c_werror_flag" || |
8134 | test ! -s conftest.err |
8135 | } && test -s conftest$ac_exeext && |
8136 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8137 | |
8138 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8139 | }'` |
8140 | # Check for a 64-bit object if we didn't find anything. |
8141 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8142 | }'`; fi |
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. |
8196 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
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' |
8238 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
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 |
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
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. |
8281 | freebsd* | kfreebsd*-gnu | dragonfly*) |
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*) |
8403 | hardcode_direct=yes |
8404 | hardcode_shlibpath_var=no |
8405 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8406 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8407 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8408 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8409 | export_dynamic_flag_spec='${wl}-E' |
8410 | else |
8411 | case $host_os in |
8412 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8413 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8414 | hardcode_libdir_flag_spec='-R$libdir' |
8415 | ;; |
8416 | *) |
8417 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8418 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8419 | ;; |
8420 | esac |
8421 | fi |
8422 | ;; |
8423 | |
8424 | os2*) |
8425 | hardcode_libdir_flag_spec='-L$libdir' |
8426 | hardcode_minus_L=yes |
8427 | allow_undefined_flag=unsupported |
8428 | 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' |
8429 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8430 | ;; |
8431 | |
8432 | osf3*) |
8433 | if test "$GCC" = yes; then |
8434 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8435 | 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' |
8436 | else |
8437 | allow_undefined_flag=' -expect_unresolved \*' |
8438 | 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' |
8439 | fi |
8440 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8441 | hardcode_libdir_separator=: |
8442 | ;; |
8443 | |
8444 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8445 | if test "$GCC" = yes; then |
8446 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8447 | 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' |
8448 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8449 | else |
8450 | allow_undefined_flag=' -expect_unresolved \*' |
8451 | 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' |
8452 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8453 | $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' |
8454 | |
8455 | # Both c and cxx compiler support -rpath directly |
8456 | hardcode_libdir_flag_spec='-rpath $libdir' |
8457 | fi |
8458 | hardcode_libdir_separator=: |
8459 | ;; |
8460 | |
8461 | solaris*) |
8462 | no_undefined_flag=' -z text' |
8463 | if test "$GCC" = yes; then |
8464 | wlarc='${wl}' |
8465 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8466 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8467 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8468 | else |
8469 | wlarc='' |
8470 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8471 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8472 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8473 | fi |
8474 | hardcode_libdir_flag_spec='-R$libdir' |
8475 | hardcode_shlibpath_var=no |
8476 | case $host_os in |
8477 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8478 | *) |
8479 | # The compiler driver will combine linker options so we |
8480 | # cannot just pass the convience library names through |
8481 | # without $wl, iff we do not link with $LD. |
8482 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8483 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8484 | case $wlarc in |
8485 | '') |
8486 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8487 | *) |
8488 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
8489 | esac ;; |
8490 | esac |
8491 | link_all_deplibs=yes |
8492 | ;; |
8493 | |
8494 | sunos4*) |
8495 | if test "x$host_vendor" = xsequent; then |
8496 | # Use $CC to link under sequent, because it throws in some extra .o |
8497 | # files that make .init and .fini sections work. |
8498 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8499 | else |
8500 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8501 | fi |
8502 | hardcode_libdir_flag_spec='-L$libdir' |
8503 | hardcode_direct=yes |
8504 | hardcode_minus_L=yes |
8505 | hardcode_shlibpath_var=no |
8506 | ;; |
8507 | |
8508 | sysv4) |
8509 | case $host_vendor in |
8510 | sni) |
8511 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8512 | hardcode_direct=yes # is this really true??? |
8513 | ;; |
8514 | siemens) |
8515 | ## LD is ld it makes a PLAMLIB |
8516 | ## CC just makes a GrossModule. |
8517 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8518 | reload_cmds='$CC -r -o $output$reload_objs' |
8519 | hardcode_direct=no |
8520 | ;; |
8521 | motorola) |
8522 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8523 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8524 | ;; |
8525 | esac |
8526 | runpath_var='LD_RUN_PATH' |
8527 | hardcode_shlibpath_var=no |
8528 | ;; |
8529 | |
8530 | sysv4.3*) |
8531 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8532 | hardcode_shlibpath_var=no |
8533 | export_dynamic_flag_spec='-Bexport' |
8534 | ;; |
8535 | |
8536 | sysv4*MP*) |
8537 | if test -d /usr/nec; then |
8538 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8539 | hardcode_shlibpath_var=no |
8540 | runpath_var=LD_RUN_PATH |
8541 | hardcode_runpath_var=yes |
8542 | ld_shlibs=yes |
8543 | fi |
8544 | ;; |
8545 | |
8546 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8547 | no_undefined_flag='${wl}-z,text' |
8548 | archive_cmds_need_lc=no |
8549 | hardcode_shlibpath_var=no |
8550 | runpath_var='LD_RUN_PATH' |
8551 | |
8552 | if test "$GCC" = yes; then |
8553 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8554 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8555 | else |
8556 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8557 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8558 | fi |
8559 | ;; |
8560 | |
8561 | sysv5* | sco3.2v5* | sco5v6*) |
8562 | # Note: We can NOT use -z defs as we might desire, because we do not |
8563 | # link with -lc, and that would cause any symbols used from libc to |
8564 | # always be unresolved, which means just about no library would |
8565 | # ever link correctly. If we're not using GNU ld we use -z text |
8566 | # though, which does catch some bad symbols but isn't as heavy-handed |
8567 | # as -z defs. |
8568 | no_undefined_flag='${wl}-z,text' |
8569 | allow_undefined_flag='${wl}-z,nodefs' |
8570 | archive_cmds_need_lc=no |
8571 | hardcode_shlibpath_var=no |
8572 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8573 | hardcode_libdir_separator=':' |
8574 | link_all_deplibs=yes |
8575 | export_dynamic_flag_spec='${wl}-Bexport' |
8576 | runpath_var='LD_RUN_PATH' |
8577 | |
8578 | if test "$GCC" = yes; then |
8579 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8580 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8581 | else |
8582 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8583 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8584 | fi |
8585 | ;; |
8586 | |
8587 | uts4*) |
8588 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8589 | hardcode_libdir_flag_spec='-L$libdir' |
8590 | hardcode_shlibpath_var=no |
8591 | ;; |
8592 | |
8593 | *) |
8594 | ld_shlibs=no |
8595 | ;; |
8596 | esac |
8597 | fi |
8598 | |
dd184caf |
8599 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8600 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8601 | test "$ld_shlibs" = no && can_build_shared=no |
8602 | |
8603 | # |
8604 | # Do we need to explicitly link libc? |
8605 | # |
8606 | case "x$archive_cmds_need_lc" in |
8607 | x|xyes) |
8608 | # Assume -lc should be added |
8609 | archive_cmds_need_lc=yes |
8610 | |
8611 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8612 | case $archive_cmds in |
8613 | *'~'*) |
8614 | # FIXME: we may have to deal with multi-command sequences. |
8615 | ;; |
8616 | '$CC '*) |
8617 | # Test whether the compiler implicitly links with -lc since on some |
8618 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8619 | # to ld, don't add -lc before -lgcc. |
dd184caf |
8620 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8621 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8622 | $rm conftest* |
8623 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8624 | |
8625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8626 | (eval $ac_compile) 2>&5 |
8627 | ac_status=$? |
8628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8629 | (exit $ac_status); } 2>conftest.err; then |
8630 | soname=conftest |
8631 | lib=conftest |
8632 | libobjs=conftest.$ac_objext |
8633 | deplibs= |
8634 | wl=$lt_prog_compiler_wl |
8635 | pic_flag=$lt_prog_compiler_pic |
8636 | compiler_flags=-v |
8637 | linker_flags=-v |
8638 | verstring= |
8639 | output_objdir=. |
8640 | libname=conftest |
8641 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8642 | allow_undefined_flag= |
8643 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8644 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8645 | ac_status=$? |
8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8647 | (exit $ac_status); } |
8648 | then |
8649 | archive_cmds_need_lc=no |
8650 | else |
8651 | archive_cmds_need_lc=yes |
8652 | fi |
8653 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8654 | else |
8655 | cat conftest.err 1>&5 |
8656 | fi |
8657 | $rm conftest* |
dd184caf |
8658 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8659 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8660 | ;; |
8661 | esac |
8662 | fi |
8663 | ;; |
8664 | esac |
8665 | |
dd184caf |
8666 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8667 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8668 | library_names_spec= |
8669 | libname_spec='lib$name' |
8670 | soname_spec= |
8671 | shrext_cmds=".so" |
8672 | postinstall_cmds= |
8673 | postuninstall_cmds= |
8674 | finish_cmds= |
8675 | finish_eval= |
8676 | shlibpath_var= |
8677 | shlibpath_overrides_runpath=unknown |
8678 | version_type=none |
8679 | dynamic_linker="$host_os ld.so" |
8680 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8681 | if test "$GCC" = yes; then |
8682 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8683 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8684 | # if the path contains ";" then we assume it to be the separator |
8685 | # otherwise default to the standard path separator (i.e. ":") - it is |
8686 | # assumed that no part of a normal pathname contains ";" but that should |
8687 | # okay in the real world where ";" in dirpaths is itself problematic. |
8688 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8689 | else |
8690 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8691 | fi |
8692 | else |
8693 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8694 | fi |
8695 | need_lib_prefix=unknown |
8696 | hardcode_into_libs=no |
8697 | |
8698 | # when you set need_version to no, make sure it does not cause -set_version |
8699 | # flags to be left without arguments |
8700 | need_version=unknown |
8701 | |
8702 | case $host_os in |
8703 | aix3*) |
8704 | version_type=linux |
8705 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8706 | shlibpath_var=LIBPATH |
8707 | |
8708 | # AIX 3 has no versioning support, so we append a major version to the name. |
8709 | soname_spec='${libname}${release}${shared_ext}$major' |
8710 | ;; |
8711 | |
8712 | aix4* | aix5*) |
8713 | version_type=linux |
8714 | need_lib_prefix=no |
8715 | need_version=no |
8716 | hardcode_into_libs=yes |
8717 | if test "$host_cpu" = ia64; then |
8718 | # AIX 5 supports IA64 |
8719 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8720 | shlibpath_var=LD_LIBRARY_PATH |
8721 | else |
8722 | # With GCC up to 2.95.x, collect2 would create an import file |
8723 | # for dependence libraries. The import file would start with |
8724 | # the line `#! .'. This would cause the generated library to |
8725 | # depend on `.', always an invalid library. This was fixed in |
8726 | # development snapshots of GCC prior to 3.0. |
8727 | case $host_os in |
8728 | aix4 | aix4.[01] | aix4.[01].*) |
8729 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8730 | echo ' yes ' |
8731 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8732 | : |
8733 | else |
8734 | can_build_shared=no |
8735 | fi |
8736 | ;; |
8737 | esac |
8738 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8739 | # soname into executable. Probably we can add versioning support to |
8740 | # collect2, so additional links can be useful in future. |
8741 | if test "$aix_use_runtimelinking" = yes; then |
8742 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8743 | # instead of lib<name>.a to let people know that these are not |
8744 | # typical AIX shared libraries. |
8745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8746 | else |
8747 | # We preserve .a as extension for shared libraries through AIX4.2 |
8748 | # and later when we are not doing run time linking. |
8749 | library_names_spec='${libname}${release}.a $libname.a' |
8750 | soname_spec='${libname}${release}${shared_ext}$major' |
8751 | fi |
8752 | shlibpath_var=LIBPATH |
8753 | fi |
8754 | ;; |
8755 | |
8756 | amigaos*) |
8757 | library_names_spec='$libname.ixlibrary $libname.a' |
8758 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8759 | 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' |
8760 | ;; |
8761 | |
8762 | beos*) |
8763 | library_names_spec='${libname}${shared_ext}' |
8764 | dynamic_linker="$host_os ld.so" |
8765 | shlibpath_var=LIBRARY_PATH |
8766 | ;; |
8767 | |
8768 | bsdi[45]*) |
8769 | version_type=linux |
8770 | need_version=no |
8771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8772 | soname_spec='${libname}${release}${shared_ext}$major' |
8773 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8774 | shlibpath_var=LD_LIBRARY_PATH |
8775 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8776 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8777 | # the default ld.so.conf also contains /usr/contrib/lib and |
8778 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8779 | # libtool to hard-code these into programs |
8780 | ;; |
8781 | |
8782 | cygwin* | mingw* | pw32*) |
8783 | version_type=windows |
8784 | shrext_cmds=".dll" |
8785 | need_version=no |
8786 | need_lib_prefix=no |
8787 | |
8788 | case $GCC,$host_os in |
8789 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8790 | library_names_spec='$libname.dll.a' |
8791 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8792 | postinstall_cmds='base_file=`basename \${file}`~ |
8793 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8794 | dldir=$destdir/`dirname \$dlpath`~ |
8795 | test -d \$dldir || mkdir -p \$dldir~ |
8796 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8797 | chmod a+x \$dldir/$dlname' |
8798 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8799 | dlpath=$dir/\$dldll~ |
8800 | $rm \$dlpath' |
8801 | shlibpath_overrides_runpath=yes |
8802 | |
8803 | case $host_os in |
8804 | cygwin*) |
8805 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8806 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8807 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8808 | ;; |
8809 | mingw*) |
8810 | # MinGW DLLs use traditional 'lib' prefix |
8811 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8812 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8813 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8814 | # It is most probably a Windows format PATH printed by |
8815 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8816 | # path with ; separators, and with drive letters. We can handle the |
8817 | # drive letters (cygwin fileutils understands them), so leave them, |
8818 | # especially as we might pass files found there to a mingw objdump, |
8819 | # which wouldn't understand a cygwinified path. Ahh. |
8820 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8821 | else |
8822 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8823 | fi |
8824 | ;; |
8825 | pw32*) |
8826 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8827 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8828 | ;; |
8829 | esac |
8830 | ;; |
8831 | |
8832 | *) |
8833 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8834 | ;; |
8835 | esac |
8836 | dynamic_linker='Win32 ld.exe' |
8837 | # FIXME: first we should search . and the directory the executable is in |
8838 | shlibpath_var=PATH |
8839 | ;; |
8840 | |
8841 | darwin* | rhapsody*) |
8842 | dynamic_linker="$host_os dyld" |
8843 | version_type=darwin |
8844 | need_lib_prefix=no |
8845 | need_version=no |
8846 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8847 | soname_spec='${libname}${release}${major}$shared_ext' |
8848 | shlibpath_overrides_runpath=yes |
8849 | shlibpath_var=DYLD_LIBRARY_PATH |
8850 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8851 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8852 | if test "$GCC" = yes; then |
8853 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
8854 | else |
8855 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8856 | fi |
8857 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8858 | ;; |
8859 | |
8860 | dgux*) |
8861 | version_type=linux |
8862 | need_lib_prefix=no |
8863 | need_version=no |
8864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8865 | soname_spec='${libname}${release}${shared_ext}$major' |
8866 | shlibpath_var=LD_LIBRARY_PATH |
8867 | ;; |
8868 | |
8869 | freebsd1*) |
8870 | dynamic_linker=no |
8871 | ;; |
8872 | |
8873 | kfreebsd*-gnu) |
8874 | version_type=linux |
8875 | need_lib_prefix=no |
8876 | need_version=no |
8877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8878 | soname_spec='${libname}${release}${shared_ext}$major' |
8879 | shlibpath_var=LD_LIBRARY_PATH |
8880 | shlibpath_overrides_runpath=no |
8881 | hardcode_into_libs=yes |
8882 | dynamic_linker='GNU ld.so' |
8883 | ;; |
8884 | |
8885 | freebsd* | dragonfly*) |
8886 | # DragonFly does not have aout. When/if they implement a new |
8887 | # versioning mechanism, adjust this. |
8888 | if test -x /usr/bin/objformat; then |
8889 | objformat=`/usr/bin/objformat` |
8890 | else |
8891 | case $host_os in |
8892 | freebsd[123]*) objformat=aout ;; |
8893 | *) objformat=elf ;; |
8894 | esac |
8895 | fi |
8896 | version_type=freebsd-$objformat |
8897 | case $version_type in |
8898 | freebsd-elf*) |
8899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8900 | need_version=no |
8901 | need_lib_prefix=no |
8902 | ;; |
8903 | freebsd-*) |
8904 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8905 | need_version=yes |
8906 | ;; |
8907 | esac |
8908 | shlibpath_var=LD_LIBRARY_PATH |
8909 | case $host_os in |
8910 | freebsd2*) |
8911 | shlibpath_overrides_runpath=yes |
8912 | ;; |
8913 | freebsd3.[01]* | freebsdelf3.[01]*) |
8914 | shlibpath_overrides_runpath=yes |
8915 | hardcode_into_libs=yes |
8916 | ;; |
8917 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8918 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8919 | shlibpath_overrides_runpath=no |
8920 | hardcode_into_libs=yes |
8921 | ;; |
8922 | freebsd*) # from 4.6 on |
8923 | shlibpath_overrides_runpath=yes |
8924 | hardcode_into_libs=yes |
8925 | ;; |
8926 | esac |
8927 | ;; |
8928 | |
8929 | gnu*) |
8930 | version_type=linux |
8931 | need_lib_prefix=no |
8932 | need_version=no |
8933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8934 | soname_spec='${libname}${release}${shared_ext}$major' |
8935 | shlibpath_var=LD_LIBRARY_PATH |
8936 | hardcode_into_libs=yes |
8937 | ;; |
8938 | |
8939 | hpux9* | hpux10* | hpux11*) |
8940 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8941 | # link against other versions. |
8942 | version_type=sunos |
8943 | need_lib_prefix=no |
8944 | need_version=no |
8945 | case $host_cpu in |
8946 | ia64*) |
8947 | shrext_cmds='.so' |
8948 | hardcode_into_libs=yes |
8949 | dynamic_linker="$host_os dld.so" |
8950 | shlibpath_var=LD_LIBRARY_PATH |
8951 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8953 | soname_spec='${libname}${release}${shared_ext}$major' |
8954 | if test "X$HPUX_IA64_MODE" = X32; then |
8955 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8956 | else |
8957 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8958 | fi |
8959 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8960 | ;; |
8961 | hppa*64*) |
8962 | shrext_cmds='.sl' |
8963 | hardcode_into_libs=yes |
8964 | dynamic_linker="$host_os dld.sl" |
8965 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8966 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8968 | soname_spec='${libname}${release}${shared_ext}$major' |
8969 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8970 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8971 | ;; |
8972 | *) |
8973 | shrext_cmds='.sl' |
8974 | dynamic_linker="$host_os dld.sl" |
8975 | shlibpath_var=SHLIB_PATH |
8976 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
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 | ;; |
8980 | esac |
8981 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8982 | postinstall_cmds='chmod 555 $lib' |
8983 | ;; |
8984 | |
8985 | interix3*) |
8986 | version_type=linux |
8987 | need_lib_prefix=no |
8988 | need_version=no |
8989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8990 | soname_spec='${libname}${release}${shared_ext}$major' |
8991 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8992 | shlibpath_var=LD_LIBRARY_PATH |
8993 | shlibpath_overrides_runpath=no |
8994 | hardcode_into_libs=yes |
8995 | ;; |
8996 | |
8997 | irix5* | irix6* | nonstopux*) |
8998 | case $host_os in |
8999 | nonstopux*) version_type=nonstopux ;; |
9000 | *) |
9001 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9002 | version_type=linux |
9003 | else |
9004 | version_type=irix |
9005 | fi ;; |
9006 | esac |
9007 | need_lib_prefix=no |
9008 | need_version=no |
9009 | soname_spec='${libname}${release}${shared_ext}$major' |
9010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9011 | case $host_os in |
9012 | irix5* | nonstopux*) |
9013 | libsuff= shlibsuff= |
9014 | ;; |
9015 | *) |
9016 | case $LD in # libtool.m4 will add one of these switches to LD |
9017 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9018 | libsuff= shlibsuff= libmagic=32-bit;; |
9019 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9020 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9021 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9022 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9023 | *) libsuff= shlibsuff= libmagic=never-match;; |
9024 | esac |
9025 | ;; |
9026 | esac |
9027 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9028 | shlibpath_overrides_runpath=no |
9029 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9030 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9031 | hardcode_into_libs=yes |
9032 | ;; |
9033 | |
9034 | # No shared lib support for Linux oldld, aout, or coff. |
9035 | linux*oldld* | linux*aout* | linux*coff*) |
9036 | dynamic_linker=no |
9037 | ;; |
9038 | |
9039 | # This must be Linux ELF. |
9040 | linux*) |
9041 | version_type=linux |
9042 | need_lib_prefix=no |
9043 | need_version=no |
9044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9045 | soname_spec='${libname}${release}${shared_ext}$major' |
9046 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9047 | shlibpath_var=LD_LIBRARY_PATH |
9048 | shlibpath_overrides_runpath=no |
9049 | # This implies no fast_install, which is unacceptable. |
9050 | # Some rework will be needed to allow for fast_install |
9051 | # before this can be enabled. |
9052 | hardcode_into_libs=yes |
9053 | |
9054 | # find out which ABI we are using |
9055 | libsuff= |
9056 | case "$host_cpu" in |
9057 | x86_64*|s390x*|powerpc64*) |
dd184caf |
9058 | echo '#line 9058 "configure"' > conftest.$ac_ext |
d9898ee8 |
9059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9060 | (eval $ac_compile) 2>&5 |
9061 | ac_status=$? |
9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9063 | (exit $ac_status); }; then |
9064 | case `/usr/bin/file conftest.$ac_objext` in |
9065 | *64-bit*) |
9066 | libsuff=64 |
9067 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
9068 | ;; |
9069 | esac |
9070 | fi |
9071 | rm -rf conftest* |
9072 | ;; |
9073 | esac |
9074 | |
9075 | # Append ld.so.conf contents to the search path |
9076 | if test -f /etc/ld.so.conf; then |
dd184caf |
9077 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
9078 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
9079 | fi |
9080 | |
9081 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9082 | # powerpc, because MkLinux only supported shared libraries with the |
9083 | # GNU dynamic linker. Since this was broken with cross compilers, |
9084 | # most powerpc-linux boxes support dynamic linking these days and |
9085 | # people can always --disable-shared, the test was removed, and we |
9086 | # assume the GNU/Linux dynamic linker is in use. |
9087 | dynamic_linker='GNU/Linux ld.so' |
9088 | ;; |
9089 | |
9090 | knetbsd*-gnu) |
9091 | version_type=linux |
9092 | need_lib_prefix=no |
9093 | need_version=no |
9094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9095 | soname_spec='${libname}${release}${shared_ext}$major' |
9096 | shlibpath_var=LD_LIBRARY_PATH |
9097 | shlibpath_overrides_runpath=no |
9098 | hardcode_into_libs=yes |
9099 | dynamic_linker='GNU ld.so' |
9100 | ;; |
9101 | |
9102 | netbsd*) |
9103 | version_type=sunos |
9104 | need_lib_prefix=no |
9105 | need_version=no |
9106 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9108 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9109 | dynamic_linker='NetBSD (a.out) ld.so' |
9110 | else |
9111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9112 | soname_spec='${libname}${release}${shared_ext}$major' |
9113 | dynamic_linker='NetBSD ld.elf_so' |
9114 | fi |
9115 | shlibpath_var=LD_LIBRARY_PATH |
9116 | shlibpath_overrides_runpath=yes |
9117 | hardcode_into_libs=yes |
9118 | ;; |
9119 | |
9120 | newsos6) |
9121 | version_type=linux |
9122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9123 | shlibpath_var=LD_LIBRARY_PATH |
9124 | shlibpath_overrides_runpath=yes |
9125 | ;; |
9126 | |
9127 | nto-qnx*) |
9128 | version_type=linux |
9129 | need_lib_prefix=no |
9130 | need_version=no |
9131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9132 | soname_spec='${libname}${release}${shared_ext}$major' |
9133 | shlibpath_var=LD_LIBRARY_PATH |
9134 | shlibpath_overrides_runpath=yes |
9135 | ;; |
9136 | |
9137 | openbsd*) |
9138 | version_type=sunos |
9139 | sys_lib_dlsearch_path_spec="/usr/lib" |
9140 | need_lib_prefix=no |
9141 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9142 | case $host_os in |
9143 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9144 | *) need_version=no ;; |
9145 | esac |
9146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9147 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9148 | shlibpath_var=LD_LIBRARY_PATH |
9149 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9150 | case $host_os in |
9151 | openbsd2.[89] | openbsd2.[89].*) |
9152 | shlibpath_overrides_runpath=no |
9153 | ;; |
9154 | *) |
9155 | shlibpath_overrides_runpath=yes |
9156 | ;; |
9157 | esac |
9158 | else |
9159 | shlibpath_overrides_runpath=yes |
9160 | fi |
9161 | ;; |
9162 | |
9163 | os2*) |
9164 | libname_spec='$name' |
9165 | shrext_cmds=".dll" |
9166 | need_lib_prefix=no |
9167 | library_names_spec='$libname${shared_ext} $libname.a' |
9168 | dynamic_linker='OS/2 ld.exe' |
9169 | shlibpath_var=LIBPATH |
9170 | ;; |
9171 | |
9172 | osf3* | osf4* | osf5*) |
9173 | version_type=osf |
9174 | need_lib_prefix=no |
9175 | need_version=no |
9176 | soname_spec='${libname}${release}${shared_ext}$major' |
9177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9178 | shlibpath_var=LD_LIBRARY_PATH |
9179 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9180 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9181 | ;; |
9182 | |
9183 | solaris*) |
9184 | version_type=linux |
9185 | need_lib_prefix=no |
9186 | need_version=no |
9187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9188 | soname_spec='${libname}${release}${shared_ext}$major' |
9189 | shlibpath_var=LD_LIBRARY_PATH |
9190 | shlibpath_overrides_runpath=yes |
9191 | hardcode_into_libs=yes |
9192 | # ldd complains unless libraries are executable |
9193 | postinstall_cmds='chmod +x $lib' |
9194 | ;; |
9195 | |
9196 | sunos4*) |
9197 | version_type=sunos |
9198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9199 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9200 | shlibpath_var=LD_LIBRARY_PATH |
9201 | shlibpath_overrides_runpath=yes |
9202 | if test "$with_gnu_ld" = yes; then |
9203 | need_lib_prefix=no |
9204 | fi |
9205 | need_version=yes |
9206 | ;; |
9207 | |
9208 | sysv4 | sysv4.3*) |
9209 | version_type=linux |
9210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9211 | soname_spec='${libname}${release}${shared_ext}$major' |
9212 | shlibpath_var=LD_LIBRARY_PATH |
9213 | case $host_vendor in |
9214 | sni) |
9215 | shlibpath_overrides_runpath=no |
9216 | need_lib_prefix=no |
9217 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9218 | runpath_var=LD_RUN_PATH |
9219 | ;; |
9220 | siemens) |
9221 | need_lib_prefix=no |
9222 | ;; |
9223 | motorola) |
9224 | need_lib_prefix=no |
9225 | need_version=no |
9226 | shlibpath_overrides_runpath=no |
9227 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9228 | ;; |
9229 | esac |
9230 | ;; |
9231 | |
9232 | sysv4*MP*) |
9233 | if test -d /usr/nec ;then |
9234 | version_type=linux |
9235 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9236 | soname_spec='$libname${shared_ext}.$major' |
9237 | shlibpath_var=LD_LIBRARY_PATH |
9238 | fi |
9239 | ;; |
9240 | |
9241 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9242 | version_type=freebsd-elf |
9243 | need_lib_prefix=no |
9244 | need_version=no |
9245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9246 | soname_spec='${libname}${release}${shared_ext}$major' |
9247 | shlibpath_var=LD_LIBRARY_PATH |
9248 | hardcode_into_libs=yes |
9249 | if test "$with_gnu_ld" = yes; then |
9250 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9251 | shlibpath_overrides_runpath=no |
9252 | else |
9253 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9254 | shlibpath_overrides_runpath=yes |
9255 | case $host_os in |
9256 | sco3.2v5*) |
9257 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9258 | ;; |
9259 | esac |
9260 | fi |
9261 | sys_lib_dlsearch_path_spec='/usr/lib' |
9262 | ;; |
9263 | |
9264 | uts4*) |
9265 | version_type=linux |
9266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9267 | soname_spec='${libname}${release}${shared_ext}$major' |
9268 | shlibpath_var=LD_LIBRARY_PATH |
9269 | ;; |
9270 | |
9271 | *) |
9272 | dynamic_linker=no |
9273 | ;; |
9274 | esac |
dd184caf |
9275 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9276 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9277 | test "$dynamic_linker" = no && can_build_shared=no |
9278 | |
9279 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9280 | if test "$GCC" = yes; then |
9281 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9282 | fi |
9283 | |
dd184caf |
9284 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9285 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9286 | hardcode_action= |
9287 | if test -n "$hardcode_libdir_flag_spec" || \ |
9288 | test -n "$runpath_var" || \ |
9289 | test "X$hardcode_automatic" = "Xyes" ; then |
9290 | |
9291 | # We can hardcode non-existant directories. |
9292 | if test "$hardcode_direct" != no && |
9293 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9294 | # have to relink, otherwise we might link with an installed library |
9295 | # when we should be linking with a yet-to-be-installed one |
9296 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9297 | test "$hardcode_minus_L" != no; then |
9298 | # Linking always hardcodes the temporary library directory. |
9299 | hardcode_action=relink |
9300 | else |
9301 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9302 | hardcode_action=immediate |
9303 | fi |
9304 | else |
9305 | # We cannot hardcode anything, or else we can only hardcode existing |
9306 | # directories. |
9307 | hardcode_action=unsupported |
9308 | fi |
dd184caf |
9309 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9310 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9311 | |
9312 | if test "$hardcode_action" = relink; then |
9313 | # Fast installation is not supported |
9314 | enable_fast_install=no |
9315 | elif test "$shlibpath_overrides_runpath" = yes || |
9316 | test "$enable_shared" = no; then |
9317 | # Fast installation is not necessary |
9318 | enable_fast_install=needless |
9319 | fi |
9320 | |
9321 | striplib= |
9322 | old_striplib= |
dd184caf |
9323 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9324 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9325 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9326 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9327 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
dd184caf |
9328 | { echo "$as_me:$LINENO: result: yes" >&5 |
9329 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9330 | else |
9331 | # FIXME - insert some real tests, host_os isn't really good enough |
9332 | case $host_os in |
9333 | darwin*) |
9334 | if test -n "$STRIP" ; then |
9335 | striplib="$STRIP -x" |
dd184caf |
9336 | { echo "$as_me:$LINENO: result: yes" >&5 |
9337 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9338 | else |
dd184caf |
9339 | { echo "$as_me:$LINENO: result: no" >&5 |
9340 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9341 | fi |
9342 | ;; |
9343 | *) |
dd184caf |
9344 | { echo "$as_me:$LINENO: result: no" >&5 |
9345 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9346 | ;; |
9347 | esac |
9348 | fi |
9349 | |
9350 | if test "x$enable_dlopen" != xyes; then |
9351 | enable_dlopen=unknown |
9352 | enable_dlopen_self=unknown |
9353 | enable_dlopen_self_static=unknown |
9354 | else |
9355 | lt_cv_dlopen=no |
9356 | lt_cv_dlopen_libs= |
9357 | |
9358 | case $host_os in |
9359 | beos*) |
9360 | lt_cv_dlopen="load_add_on" |
9361 | lt_cv_dlopen_libs= |
9362 | lt_cv_dlopen_self=yes |
9363 | ;; |
9364 | |
9365 | mingw* | pw32*) |
9366 | lt_cv_dlopen="LoadLibrary" |
9367 | lt_cv_dlopen_libs= |
9368 | ;; |
9369 | |
9370 | cygwin*) |
9371 | lt_cv_dlopen="dlopen" |
9372 | lt_cv_dlopen_libs= |
9373 | ;; |
9374 | |
9375 | darwin*) |
9376 | # if libdl is installed we need to link against it |
dd184caf |
9377 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9378 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9379 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9381 | else |
9382 | ac_check_lib_save_LIBS=$LIBS |
9383 | LIBS="-ldl $LIBS" |
9384 | cat >conftest.$ac_ext <<_ACEOF |
9385 | /* confdefs.h. */ |
9386 | _ACEOF |
9387 | cat confdefs.h >>conftest.$ac_ext |
9388 | cat >>conftest.$ac_ext <<_ACEOF |
9389 | /* end confdefs.h. */ |
9390 | |
dd184caf |
9391 | /* Override any GCC internal prototype to avoid an error. |
9392 | Use char because int might match the return type of a GCC |
9393 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9394 | #ifdef __cplusplus |
9395 | extern "C" |
9396 | #endif |
d9898ee8 |
9397 | char dlopen (); |
9398 | int |
9399 | main () |
9400 | { |
dd184caf |
9401 | return dlopen (); |
d9898ee8 |
9402 | ; |
9403 | return 0; |
9404 | } |
9405 | _ACEOF |
9406 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9407 | if { (ac_try="$ac_link" |
9408 | case "(($ac_try" in |
9409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9410 | *) ac_try_echo=$ac_try;; |
9411 | esac |
9412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9413 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9414 | ac_status=$? |
9415 | grep -v '^ *+' conftest.er1 >conftest.err |
9416 | rm -f conftest.er1 |
9417 | cat conftest.err >&5 |
9418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9419 | (exit $ac_status); } && { |
9420 | test -z "$ac_c_werror_flag" || |
9421 | test ! -s conftest.err |
9422 | } && test -s conftest$ac_exeext && |
9423 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9424 | ac_cv_lib_dl_dlopen=yes |
9425 | else |
9426 | echo "$as_me: failed program was:" >&5 |
9427 | sed 's/^/| /' conftest.$ac_ext >&5 |
9428 | |
dd184caf |
9429 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9430 | fi |
dd184caf |
9431 | |
9432 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9433 | conftest$ac_exeext conftest.$ac_ext |
9434 | LIBS=$ac_check_lib_save_LIBS |
9435 | fi |
dd184caf |
9436 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9437 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9438 | if test $ac_cv_lib_dl_dlopen = yes; then |
9439 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9440 | else |
9441 | |
9442 | lt_cv_dlopen="dyld" |
9443 | lt_cv_dlopen_libs= |
9444 | lt_cv_dlopen_self=yes |
9445 | |
9446 | fi |
9447 | |
9448 | ;; |
9449 | |
9450 | *) |
dd184caf |
9451 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9452 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9453 | if test "${ac_cv_func_shl_load+set}" = set; then |
9454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9455 | else |
9456 | cat >conftest.$ac_ext <<_ACEOF |
9457 | /* confdefs.h. */ |
9458 | _ACEOF |
9459 | cat confdefs.h >>conftest.$ac_ext |
9460 | cat >>conftest.$ac_ext <<_ACEOF |
9461 | /* end confdefs.h. */ |
9462 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9464 | #define shl_load innocuous_shl_load |
9465 | |
9466 | /* System header to define __stub macros and hopefully few prototypes, |
9467 | which can conflict with char shl_load (); below. |
9468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9469 | <limits.h> exists even on freestanding compilers. */ |
9470 | |
9471 | #ifdef __STDC__ |
9472 | # include <limits.h> |
9473 | #else |
9474 | # include <assert.h> |
9475 | #endif |
9476 | |
9477 | #undef shl_load |
9478 | |
dd184caf |
9479 | /* Override any GCC internal prototype to avoid an error. |
9480 | Use char because int might match the return type of a GCC |
9481 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9482 | #ifdef __cplusplus |
9483 | extern "C" |
d9898ee8 |
9484 | #endif |
d9898ee8 |
9485 | char shl_load (); |
9486 | /* The GNU C library defines this for functions which it implements |
9487 | to always fail with ENOSYS. Some functions are actually named |
9488 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9489 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9490 | choke me |
d9898ee8 |
9491 | #endif |
9492 | |
9493 | int |
9494 | main () |
9495 | { |
dd184caf |
9496 | return shl_load (); |
d9898ee8 |
9497 | ; |
9498 | return 0; |
9499 | } |
9500 | _ACEOF |
9501 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9502 | if { (ac_try="$ac_link" |
9503 | case "(($ac_try" in |
9504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9505 | *) ac_try_echo=$ac_try;; |
9506 | esac |
9507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9508 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9509 | ac_status=$? |
9510 | grep -v '^ *+' conftest.er1 >conftest.err |
9511 | rm -f conftest.er1 |
9512 | cat conftest.err >&5 |
9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9514 | (exit $ac_status); } && { |
9515 | test -z "$ac_c_werror_flag" || |
9516 | test ! -s conftest.err |
9517 | } && test -s conftest$ac_exeext && |
9518 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9519 | ac_cv_func_shl_load=yes |
9520 | else |
9521 | echo "$as_me: failed program was:" >&5 |
9522 | sed 's/^/| /' conftest.$ac_ext >&5 |
9523 | |
dd184caf |
9524 | ac_cv_func_shl_load=no |
d9898ee8 |
9525 | fi |
dd184caf |
9526 | |
9527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9528 | conftest$ac_exeext conftest.$ac_ext |
9529 | fi |
dd184caf |
9530 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9531 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9532 | if test $ac_cv_func_shl_load = yes; then |
9533 | lt_cv_dlopen="shl_load" |
9534 | else |
dd184caf |
9535 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9536 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9537 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9539 | else |
9540 | ac_check_lib_save_LIBS=$LIBS |
9541 | LIBS="-ldld $LIBS" |
9542 | cat >conftest.$ac_ext <<_ACEOF |
9543 | /* confdefs.h. */ |
9544 | _ACEOF |
9545 | cat confdefs.h >>conftest.$ac_ext |
9546 | cat >>conftest.$ac_ext <<_ACEOF |
9547 | /* end confdefs.h. */ |
9548 | |
dd184caf |
9549 | /* Override any GCC internal prototype to avoid an error. |
9550 | Use char because int might match the return type of a GCC |
9551 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9552 | #ifdef __cplusplus |
9553 | extern "C" |
9554 | #endif |
d9898ee8 |
9555 | char shl_load (); |
9556 | int |
9557 | main () |
9558 | { |
dd184caf |
9559 | return shl_load (); |
d9898ee8 |
9560 | ; |
9561 | return 0; |
9562 | } |
9563 | _ACEOF |
9564 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9565 | if { (ac_try="$ac_link" |
9566 | case "(($ac_try" in |
9567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9568 | *) ac_try_echo=$ac_try;; |
9569 | esac |
9570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9571 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9572 | ac_status=$? |
9573 | grep -v '^ *+' conftest.er1 >conftest.err |
9574 | rm -f conftest.er1 |
9575 | cat conftest.err >&5 |
9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9577 | (exit $ac_status); } && { |
9578 | test -z "$ac_c_werror_flag" || |
9579 | test ! -s conftest.err |
9580 | } && test -s conftest$ac_exeext && |
9581 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9582 | ac_cv_lib_dld_shl_load=yes |
9583 | else |
9584 | echo "$as_me: failed program was:" >&5 |
9585 | sed 's/^/| /' conftest.$ac_ext >&5 |
9586 | |
dd184caf |
9587 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9588 | fi |
dd184caf |
9589 | |
9590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9591 | conftest$ac_exeext conftest.$ac_ext |
9592 | LIBS=$ac_check_lib_save_LIBS |
9593 | fi |
dd184caf |
9594 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9595 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9596 | if test $ac_cv_lib_dld_shl_load = yes; then |
9597 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9598 | else |
dd184caf |
9599 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9600 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9601 | if test "${ac_cv_func_dlopen+set}" = set; then |
9602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9603 | else |
9604 | cat >conftest.$ac_ext <<_ACEOF |
9605 | /* confdefs.h. */ |
9606 | _ACEOF |
9607 | cat confdefs.h >>conftest.$ac_ext |
9608 | cat >>conftest.$ac_ext <<_ACEOF |
9609 | /* end confdefs.h. */ |
9610 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9611 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9612 | #define dlopen innocuous_dlopen |
9613 | |
9614 | /* System header to define __stub macros and hopefully few prototypes, |
9615 | which can conflict with char dlopen (); below. |
9616 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9617 | <limits.h> exists even on freestanding compilers. */ |
9618 | |
9619 | #ifdef __STDC__ |
9620 | # include <limits.h> |
9621 | #else |
9622 | # include <assert.h> |
9623 | #endif |
9624 | |
9625 | #undef dlopen |
9626 | |
dd184caf |
9627 | /* Override any GCC internal prototype to avoid an error. |
9628 | Use char because int might match the return type of a GCC |
9629 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9630 | #ifdef __cplusplus |
9631 | extern "C" |
d9898ee8 |
9632 | #endif |
d9898ee8 |
9633 | char dlopen (); |
9634 | /* The GNU C library defines this for functions which it implements |
9635 | to always fail with ENOSYS. Some functions are actually named |
9636 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9637 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9638 | choke me |
d9898ee8 |
9639 | #endif |
9640 | |
9641 | int |
9642 | main () |
9643 | { |
dd184caf |
9644 | return dlopen (); |
d9898ee8 |
9645 | ; |
9646 | return 0; |
9647 | } |
9648 | _ACEOF |
9649 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9650 | if { (ac_try="$ac_link" |
9651 | case "(($ac_try" in |
9652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9653 | *) ac_try_echo=$ac_try;; |
9654 | esac |
9655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9656 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9657 | ac_status=$? |
9658 | grep -v '^ *+' conftest.er1 >conftest.err |
9659 | rm -f conftest.er1 |
9660 | cat conftest.err >&5 |
9661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9662 | (exit $ac_status); } && { |
9663 | test -z "$ac_c_werror_flag" || |
9664 | test ! -s conftest.err |
9665 | } && test -s conftest$ac_exeext && |
9666 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9667 | ac_cv_func_dlopen=yes |
9668 | else |
9669 | echo "$as_me: failed program was:" >&5 |
9670 | sed 's/^/| /' conftest.$ac_ext >&5 |
9671 | |
dd184caf |
9672 | ac_cv_func_dlopen=no |
d9898ee8 |
9673 | fi |
dd184caf |
9674 | |
9675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9676 | conftest$ac_exeext conftest.$ac_ext |
9677 | fi |
dd184caf |
9678 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9679 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9680 | if test $ac_cv_func_dlopen = yes; then |
9681 | lt_cv_dlopen="dlopen" |
9682 | else |
dd184caf |
9683 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9684 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9685 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9687 | else |
9688 | ac_check_lib_save_LIBS=$LIBS |
9689 | LIBS="-ldl $LIBS" |
9690 | cat >conftest.$ac_ext <<_ACEOF |
9691 | /* confdefs.h. */ |
9692 | _ACEOF |
9693 | cat confdefs.h >>conftest.$ac_ext |
9694 | cat >>conftest.$ac_ext <<_ACEOF |
9695 | /* end confdefs.h. */ |
9696 | |
dd184caf |
9697 | /* Override any GCC internal prototype to avoid an error. |
9698 | Use char because int might match the return type of a GCC |
9699 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9700 | #ifdef __cplusplus |
9701 | extern "C" |
9702 | #endif |
d9898ee8 |
9703 | char dlopen (); |
9704 | int |
9705 | main () |
9706 | { |
dd184caf |
9707 | return dlopen (); |
d9898ee8 |
9708 | ; |
9709 | return 0; |
9710 | } |
9711 | _ACEOF |
9712 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9713 | if { (ac_try="$ac_link" |
9714 | case "(($ac_try" in |
9715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9716 | *) ac_try_echo=$ac_try;; |
9717 | esac |
9718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9719 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9720 | ac_status=$? |
9721 | grep -v '^ *+' conftest.er1 >conftest.err |
9722 | rm -f conftest.er1 |
9723 | cat conftest.err >&5 |
9724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9725 | (exit $ac_status); } && { |
9726 | test -z "$ac_c_werror_flag" || |
9727 | test ! -s conftest.err |
9728 | } && test -s conftest$ac_exeext && |
9729 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9730 | ac_cv_lib_dl_dlopen=yes |
9731 | else |
9732 | echo "$as_me: failed program was:" >&5 |
9733 | sed 's/^/| /' conftest.$ac_ext >&5 |
9734 | |
dd184caf |
9735 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9736 | fi |
dd184caf |
9737 | |
9738 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9739 | conftest$ac_exeext conftest.$ac_ext |
9740 | LIBS=$ac_check_lib_save_LIBS |
9741 | fi |
dd184caf |
9742 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9743 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9744 | if test $ac_cv_lib_dl_dlopen = yes; then |
9745 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9746 | else |
dd184caf |
9747 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9748 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9749 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9751 | else |
9752 | ac_check_lib_save_LIBS=$LIBS |
9753 | LIBS="-lsvld $LIBS" |
9754 | cat >conftest.$ac_ext <<_ACEOF |
9755 | /* confdefs.h. */ |
9756 | _ACEOF |
9757 | cat confdefs.h >>conftest.$ac_ext |
9758 | cat >>conftest.$ac_ext <<_ACEOF |
9759 | /* end confdefs.h. */ |
9760 | |
dd184caf |
9761 | /* Override any GCC internal prototype to avoid an error. |
9762 | Use char because int might match the return type of a GCC |
9763 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9764 | #ifdef __cplusplus |
9765 | extern "C" |
9766 | #endif |
d9898ee8 |
9767 | char dlopen (); |
9768 | int |
9769 | main () |
9770 | { |
dd184caf |
9771 | return dlopen (); |
d9898ee8 |
9772 | ; |
9773 | return 0; |
9774 | } |
9775 | _ACEOF |
9776 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9777 | if { (ac_try="$ac_link" |
9778 | case "(($ac_try" in |
9779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9780 | *) ac_try_echo=$ac_try;; |
9781 | esac |
9782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9783 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9784 | ac_status=$? |
9785 | grep -v '^ *+' conftest.er1 >conftest.err |
9786 | rm -f conftest.er1 |
9787 | cat conftest.err >&5 |
9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9789 | (exit $ac_status); } && { |
9790 | test -z "$ac_c_werror_flag" || |
9791 | test ! -s conftest.err |
9792 | } && test -s conftest$ac_exeext && |
9793 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9794 | ac_cv_lib_svld_dlopen=yes |
9795 | else |
9796 | echo "$as_me: failed program was:" >&5 |
9797 | sed 's/^/| /' conftest.$ac_ext >&5 |
9798 | |
dd184caf |
9799 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9800 | fi |
dd184caf |
9801 | |
9802 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9803 | conftest$ac_exeext conftest.$ac_ext |
9804 | LIBS=$ac_check_lib_save_LIBS |
9805 | fi |
dd184caf |
9806 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9807 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9808 | if test $ac_cv_lib_svld_dlopen = yes; then |
9809 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9810 | else |
dd184caf |
9811 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9812 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9813 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9815 | else |
9816 | ac_check_lib_save_LIBS=$LIBS |
9817 | LIBS="-ldld $LIBS" |
9818 | cat >conftest.$ac_ext <<_ACEOF |
9819 | /* confdefs.h. */ |
9820 | _ACEOF |
9821 | cat confdefs.h >>conftest.$ac_ext |
9822 | cat >>conftest.$ac_ext <<_ACEOF |
9823 | /* end confdefs.h. */ |
9824 | |
dd184caf |
9825 | /* Override any GCC internal prototype to avoid an error. |
9826 | Use char because int might match the return type of a GCC |
9827 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9828 | #ifdef __cplusplus |
9829 | extern "C" |
9830 | #endif |
d9898ee8 |
9831 | char dld_link (); |
9832 | int |
9833 | main () |
9834 | { |
dd184caf |
9835 | return dld_link (); |
d9898ee8 |
9836 | ; |
9837 | return 0; |
9838 | } |
9839 | _ACEOF |
9840 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9841 | if { (ac_try="$ac_link" |
9842 | case "(($ac_try" in |
9843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9844 | *) ac_try_echo=$ac_try;; |
9845 | esac |
9846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9847 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9848 | ac_status=$? |
9849 | grep -v '^ *+' conftest.er1 >conftest.err |
9850 | rm -f conftest.er1 |
9851 | cat conftest.err >&5 |
9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9853 | (exit $ac_status); } && { |
9854 | test -z "$ac_c_werror_flag" || |
9855 | test ! -s conftest.err |
9856 | } && test -s conftest$ac_exeext && |
9857 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9858 | ac_cv_lib_dld_dld_link=yes |
9859 | else |
9860 | echo "$as_me: failed program was:" >&5 |
9861 | sed 's/^/| /' conftest.$ac_ext >&5 |
9862 | |
dd184caf |
9863 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9864 | fi |
dd184caf |
9865 | |
9866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9867 | conftest$ac_exeext conftest.$ac_ext |
9868 | LIBS=$ac_check_lib_save_LIBS |
9869 | fi |
dd184caf |
9870 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9871 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9872 | if test $ac_cv_lib_dld_dld_link = yes; then |
9873 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9874 | fi |
9875 | |
9876 | |
9877 | fi |
9878 | |
9879 | |
9880 | fi |
9881 | |
9882 | |
9883 | fi |
9884 | |
9885 | |
9886 | fi |
9887 | |
9888 | |
9889 | fi |
9890 | |
9891 | ;; |
9892 | esac |
9893 | |
9894 | if test "x$lt_cv_dlopen" != xno; then |
9895 | enable_dlopen=yes |
9896 | else |
9897 | enable_dlopen=no |
9898 | fi |
9899 | |
9900 | case $lt_cv_dlopen in |
9901 | dlopen) |
9902 | save_CPPFLAGS="$CPPFLAGS" |
9903 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9904 | |
9905 | save_LDFLAGS="$LDFLAGS" |
9906 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9907 | |
9908 | save_LIBS="$LIBS" |
9909 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9910 | |
dd184caf |
9911 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9912 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9913 | if test "${lt_cv_dlopen_self+set}" = set; then |
9914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9915 | else |
9916 | if test "$cross_compiling" = yes; then : |
9917 | lt_cv_dlopen_self=cross |
9918 | else |
9919 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9920 | lt_status=$lt_dlunknown |
9921 | cat > conftest.$ac_ext <<EOF |
dd184caf |
9922 | #line 9922 "configure" |
d9898ee8 |
9923 | #include "confdefs.h" |
9924 | |
9925 | #if HAVE_DLFCN_H |
9926 | #include <dlfcn.h> |
9927 | #endif |
9928 | |
9929 | #include <stdio.h> |
9930 | |
9931 | #ifdef RTLD_GLOBAL |
9932 | # define LT_DLGLOBAL RTLD_GLOBAL |
9933 | #else |
9934 | # ifdef DL_GLOBAL |
9935 | # define LT_DLGLOBAL DL_GLOBAL |
9936 | # else |
9937 | # define LT_DLGLOBAL 0 |
9938 | # endif |
9939 | #endif |
9940 | |
9941 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9942 | find out it does not work in some platform. */ |
9943 | #ifndef LT_DLLAZY_OR_NOW |
9944 | # ifdef RTLD_LAZY |
9945 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9946 | # else |
9947 | # ifdef DL_LAZY |
9948 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9949 | # else |
9950 | # ifdef RTLD_NOW |
9951 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9952 | # else |
9953 | # ifdef DL_NOW |
9954 | # define LT_DLLAZY_OR_NOW DL_NOW |
9955 | # else |
9956 | # define LT_DLLAZY_OR_NOW 0 |
9957 | # endif |
9958 | # endif |
9959 | # endif |
9960 | # endif |
9961 | #endif |
9962 | |
9963 | #ifdef __cplusplus |
9964 | extern "C" void exit (int); |
9965 | #endif |
9966 | |
9967 | void fnord() { int i=42;} |
9968 | int main () |
9969 | { |
9970 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9971 | int status = $lt_dlunknown; |
9972 | |
9973 | if (self) |
9974 | { |
9975 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9976 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9977 | /* dlclose (self); */ |
9978 | } |
9979 | else |
9980 | puts (dlerror ()); |
9981 | |
9982 | exit (status); |
9983 | } |
9984 | EOF |
9985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9986 | (eval $ac_link) 2>&5 |
9987 | ac_status=$? |
9988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9989 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9990 | (./conftest; exit; ) >&5 2>/dev/null |
9991 | lt_status=$? |
9992 | case x$lt_status in |
9993 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9994 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9995 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9996 | esac |
9997 | else : |
9998 | # compilation failed |
9999 | lt_cv_dlopen_self=no |
10000 | fi |
10001 | fi |
10002 | rm -fr conftest* |
10003 | |
10004 | |
10005 | fi |
dd184caf |
10006 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10007 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
10008 | |
10009 | if test "x$lt_cv_dlopen_self" = xyes; then |
10010 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
dd184caf |
10011 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10012 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10013 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10015 | else |
10016 | if test "$cross_compiling" = yes; then : |
10017 | lt_cv_dlopen_self_static=cross |
10018 | else |
10019 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10020 | lt_status=$lt_dlunknown |
10021 | cat > conftest.$ac_ext <<EOF |
dd184caf |
10022 | #line 10022 "configure" |
d9898ee8 |
10023 | #include "confdefs.h" |
10024 | |
10025 | #if HAVE_DLFCN_H |
10026 | #include <dlfcn.h> |
10027 | #endif |
10028 | |
10029 | #include <stdio.h> |
10030 | |
10031 | #ifdef RTLD_GLOBAL |
10032 | # define LT_DLGLOBAL RTLD_GLOBAL |
10033 | #else |
10034 | # ifdef DL_GLOBAL |
10035 | # define LT_DLGLOBAL DL_GLOBAL |
10036 | # else |
10037 | # define LT_DLGLOBAL 0 |
10038 | # endif |
10039 | #endif |
10040 | |
10041 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10042 | find out it does not work in some platform. */ |
10043 | #ifndef LT_DLLAZY_OR_NOW |
10044 | # ifdef RTLD_LAZY |
10045 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10046 | # else |
10047 | # ifdef DL_LAZY |
10048 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10049 | # else |
10050 | # ifdef RTLD_NOW |
10051 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10052 | # else |
10053 | # ifdef DL_NOW |
10054 | # define LT_DLLAZY_OR_NOW DL_NOW |
10055 | # else |
10056 | # define LT_DLLAZY_OR_NOW 0 |
10057 | # endif |
10058 | # endif |
10059 | # endif |
10060 | # endif |
10061 | #endif |
10062 | |
10063 | #ifdef __cplusplus |
10064 | extern "C" void exit (int); |
10065 | #endif |
10066 | |
10067 | void fnord() { int i=42;} |
10068 | int main () |
10069 | { |
10070 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10071 | int status = $lt_dlunknown; |
10072 | |
10073 | if (self) |
10074 | { |
10075 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10076 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10077 | /* dlclose (self); */ |
10078 | } |
10079 | else |
10080 | puts (dlerror ()); |
10081 | |
10082 | exit (status); |
10083 | } |
10084 | EOF |
10085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10086 | (eval $ac_link) 2>&5 |
10087 | ac_status=$? |
10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10089 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10090 | (./conftest; exit; ) >&5 2>/dev/null |
10091 | lt_status=$? |
10092 | case x$lt_status in |
10093 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10094 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10095 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10096 | esac |
10097 | else : |
10098 | # compilation failed |
10099 | lt_cv_dlopen_self_static=no |
10100 | fi |
10101 | fi |
10102 | rm -fr conftest* |
10103 | |
10104 | |
10105 | fi |
dd184caf |
10106 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10107 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10108 | fi |
10109 | |
10110 | CPPFLAGS="$save_CPPFLAGS" |
10111 | LDFLAGS="$save_LDFLAGS" |
10112 | LIBS="$save_LIBS" |
10113 | ;; |
10114 | esac |
10115 | |
10116 | case $lt_cv_dlopen_self in |
10117 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10118 | *) enable_dlopen_self=unknown ;; |
10119 | esac |
10120 | |
10121 | case $lt_cv_dlopen_self_static in |
10122 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10123 | *) enable_dlopen_self_static=unknown ;; |
10124 | esac |
10125 | fi |
10126 | |
10127 | |
10128 | # Report which library types will actually be built |
dd184caf |
10129 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10130 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10131 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10132 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10133 | |
dd184caf |
10134 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10135 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10136 | test "$can_build_shared" = "no" && enable_shared=no |
10137 | |
10138 | # On AIX, shared libraries and static libraries use the same namespace, and |
10139 | # are all built from PIC. |
10140 | case $host_os in |
10141 | aix3*) |
10142 | test "$enable_shared" = yes && enable_static=no |
10143 | if test -n "$RANLIB"; then |
10144 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10145 | postinstall_cmds='$RANLIB $lib' |
10146 | fi |
10147 | ;; |
10148 | |
10149 | aix4* | aix5*) |
10150 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10151 | test "$enable_shared" = yes && enable_static=no |
10152 | fi |
10153 | ;; |
10154 | esac |
dd184caf |
10155 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10156 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10157 | |
dd184caf |
10158 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10159 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10160 | # Make sure either enable_shared or enable_static is yes. |
10161 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
10162 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10163 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10164 | |
10165 | # The else clause should only fire when bootstrapping the |
10166 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10167 | # with your package, and you will get complaints that there are |
10168 | # no rules to generate ltmain.sh. |
10169 | if test -f "$ltmain"; then |
10170 | # See if we are running on zsh, and set the options which allow our commands through |
10171 | # without removal of \ escapes. |
10172 | if test -n "${ZSH_VERSION+set}" ; then |
10173 | setopt NO_GLOB_SUBST |
10174 | fi |
10175 | # Now quote all the things that may contain metacharacters while being |
10176 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10177 | # variables and quote the copies for generation of the libtool script. |
10178 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10179 | SED SHELL STRIP \ |
10180 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10181 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10182 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10183 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10184 | lt_cv_sys_global_symbol_to_c_name_address \ |
10185 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10186 | old_postinstall_cmds old_postuninstall_cmds \ |
10187 | compiler \ |
10188 | CC \ |
10189 | LD \ |
10190 | lt_prog_compiler_wl \ |
10191 | lt_prog_compiler_pic \ |
10192 | lt_prog_compiler_static \ |
10193 | lt_prog_compiler_no_builtin_flag \ |
10194 | export_dynamic_flag_spec \ |
10195 | thread_safe_flag_spec \ |
10196 | whole_archive_flag_spec \ |
10197 | enable_shared_with_static_runtimes \ |
10198 | old_archive_cmds \ |
10199 | old_archive_from_new_cmds \ |
10200 | predep_objects \ |
10201 | postdep_objects \ |
10202 | predeps \ |
10203 | postdeps \ |
10204 | compiler_lib_search_path \ |
10205 | archive_cmds \ |
10206 | archive_expsym_cmds \ |
10207 | postinstall_cmds \ |
10208 | postuninstall_cmds \ |
10209 | old_archive_from_expsyms_cmds \ |
10210 | allow_undefined_flag \ |
10211 | no_undefined_flag \ |
10212 | export_symbols_cmds \ |
10213 | hardcode_libdir_flag_spec \ |
10214 | hardcode_libdir_flag_spec_ld \ |
10215 | hardcode_libdir_separator \ |
10216 | hardcode_automatic \ |
10217 | module_cmds \ |
10218 | module_expsym_cmds \ |
10219 | lt_cv_prog_compiler_c_o \ |
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 | # |
10264 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
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. |
10588 | fix_srcfile_path="$fix_srcfile_path" |
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 |
10757 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10758 | |
10759 | # Code to be used in simple link tests |
10760 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
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 |
10776 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
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 |
10782 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
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 |
11041 | hardcode_direct_CXX=yes |
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 | |
11115 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11116 | }'` |
11117 | # Check for a 64-bit object if we didn't find anything. |
11118 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11119 | }'`; fi |
11120 | else |
11121 | echo "$as_me: failed program was:" >&5 |
11122 | sed 's/^/| /' conftest.$ac_ext >&5 |
11123 | |
dd184caf |
11124 | |
d9898ee8 |
11125 | fi |
dd184caf |
11126 | |
11127 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11128 | conftest$ac_exeext conftest.$ac_ext |
11129 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11130 | |
11131 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11132 | |
11133 | 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" |
11134 | else |
11135 | if test "$host_cpu" = ia64; then |
11136 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11137 | allow_undefined_flag_CXX="-z nodefs" |
11138 | 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" |
11139 | else |
11140 | # Determine the default libpath from the value encoded in an empty executable. |
11141 | cat >conftest.$ac_ext <<_ACEOF |
11142 | /* confdefs.h. */ |
11143 | _ACEOF |
11144 | cat confdefs.h >>conftest.$ac_ext |
11145 | cat >>conftest.$ac_ext <<_ACEOF |
11146 | /* end confdefs.h. */ |
11147 | |
11148 | int |
11149 | main () |
11150 | { |
11151 | |
11152 | ; |
11153 | return 0; |
11154 | } |
11155 | _ACEOF |
11156 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11157 | if { (ac_try="$ac_link" |
11158 | case "(($ac_try" in |
11159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11160 | *) ac_try_echo=$ac_try;; |
11161 | esac |
11162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11163 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11164 | ac_status=$? |
11165 | grep -v '^ *+' conftest.er1 >conftest.err |
11166 | rm -f conftest.er1 |
11167 | cat conftest.err >&5 |
11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11169 | (exit $ac_status); } && { |
11170 | test -z "$ac_cxx_werror_flag" || |
11171 | test ! -s conftest.err |
11172 | } && test -s conftest$ac_exeext && |
11173 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11174 | |
11175 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11176 | }'` |
11177 | # Check for a 64-bit object if we didn't find anything. |
11178 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11179 | }'`; fi |
11180 | else |
11181 | echo "$as_me: failed program was:" >&5 |
11182 | sed 's/^/| /' conftest.$ac_ext >&5 |
11183 | |
dd184caf |
11184 | |
d9898ee8 |
11185 | fi |
dd184caf |
11186 | |
11187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11188 | conftest$ac_exeext conftest.$ac_ext |
11189 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11190 | |
11191 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11192 | # Warning - without using the other run time loading flags, |
11193 | # -berok will link without error, but may produce a broken library. |
11194 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11195 | allow_undefined_flag_CXX=' ${wl}-berok' |
11196 | # Exported symbols can be pulled into shared objects from archives |
11197 | whole_archive_flag_spec_CXX='$convenience' |
11198 | archive_cmds_need_lc_CXX=yes |
11199 | # This is similar to how AIX traditionally builds its shared libraries. |
11200 | 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' |
11201 | fi |
11202 | fi |
11203 | ;; |
11204 | |
11205 | beos*) |
11206 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11207 | allow_undefined_flag_CXX=unsupported |
11208 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11209 | # support --undefined. This deserves some investigation. FIXME |
11210 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11211 | else |
11212 | ld_shlibs_CXX=no |
11213 | fi |
11214 | ;; |
11215 | |
11216 | chorus*) |
11217 | case $cc_basename in |
11218 | *) |
11219 | # FIXME: insert proper C++ library support |
11220 | ld_shlibs_CXX=no |
11221 | ;; |
11222 | esac |
11223 | ;; |
11224 | |
11225 | cygwin* | mingw* | pw32*) |
11226 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11227 | # as there is no search path for DLLs. |
11228 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11229 | allow_undefined_flag_CXX=unsupported |
11230 | always_export_symbols_CXX=no |
11231 | enable_shared_with_static_runtimes_CXX=yes |
11232 | |
11233 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11234 | 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' |
11235 | # If the export-symbols file already is a .def file (1st line |
11236 | # is EXPORTS), use it as is; otherwise, prepend... |
11237 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11238 | cp $export_symbols $output_objdir/$soname.def; |
11239 | else |
11240 | echo EXPORTS > $output_objdir/$soname.def; |
11241 | cat $export_symbols >> $output_objdir/$soname.def; |
11242 | fi~ |
11243 | $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' |
11244 | else |
11245 | ld_shlibs_CXX=no |
11246 | fi |
11247 | ;; |
11248 | darwin* | rhapsody*) |
11249 | case $host_os in |
11250 | rhapsody* | darwin1.[012]) |
11251 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11252 | ;; |
11253 | *) # Darwin 1.3 on |
11254 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11255 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11256 | else |
11257 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11258 | 10.[012]) |
11259 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11260 | ;; |
11261 | 10.*) |
11262 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11263 | ;; |
11264 | esac |
11265 | fi |
11266 | ;; |
11267 | esac |
11268 | archive_cmds_need_lc_CXX=no |
11269 | hardcode_direct_CXX=no |
11270 | hardcode_automatic_CXX=yes |
11271 | hardcode_shlibpath_var_CXX=unsupported |
11272 | whole_archive_flag_spec_CXX='' |
11273 | link_all_deplibs_CXX=yes |
11274 | |
11275 | if test "$GXX" = yes ; then |
11276 | lt_int_apple_cc_single_mod=no |
11277 | output_verbose_link_cmd='echo' |
11278 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11279 | lt_int_apple_cc_single_mod=yes |
11280 | fi |
11281 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11282 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11283 | else |
11284 | 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' |
11285 | fi |
11286 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11287 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11288 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11289 | 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}' |
11290 | else |
11291 | 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}' |
11292 | fi |
11293 | 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}' |
11294 | else |
11295 | case $cc_basename in |
11296 | xlc*) |
11297 | output_verbose_link_cmd='echo' |
11298 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
11299 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11300 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11301 | 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11302 | 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}' |
11303 | ;; |
11304 | *) |
11305 | ld_shlibs_CXX=no |
11306 | ;; |
11307 | esac |
11308 | fi |
11309 | ;; |
11310 | |
11311 | dgux*) |
11312 | case $cc_basename in |
11313 | ec++*) |
11314 | # FIXME: insert proper C++ library support |
11315 | ld_shlibs_CXX=no |
11316 | ;; |
11317 | ghcx*) |
11318 | # Green Hills C++ Compiler |
11319 | # FIXME: insert proper C++ library support |
11320 | ld_shlibs_CXX=no |
11321 | ;; |
11322 | *) |
11323 | # FIXME: insert proper C++ library support |
11324 | ld_shlibs_CXX=no |
11325 | ;; |
11326 | esac |
11327 | ;; |
11328 | freebsd[12]*) |
11329 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11330 | ld_shlibs_CXX=no |
11331 | ;; |
11332 | freebsd-elf*) |
11333 | archive_cmds_need_lc_CXX=no |
11334 | ;; |
11335 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11336 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11337 | # conventions |
11338 | ld_shlibs_CXX=yes |
11339 | ;; |
11340 | gnu*) |
11341 | ;; |
11342 | hpux9*) |
11343 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11344 | hardcode_libdir_separator_CXX=: |
11345 | export_dynamic_flag_spec_CXX='${wl}-E' |
11346 | hardcode_direct_CXX=yes |
11347 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11348 | # but as the default |
11349 | # location of the library. |
11350 | |
11351 | case $cc_basename in |
11352 | CC*) |
11353 | # FIXME: insert proper C++ library support |
11354 | ld_shlibs_CXX=no |
11355 | ;; |
11356 | aCC*) |
11357 | 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' |
11358 | # Commands to make compiler produce verbose output that lists |
11359 | # what "hidden" libraries, object files and flags are used when |
11360 | # linking a shared library. |
11361 | # |
11362 | # There doesn't appear to be a way to prevent this compiler from |
11363 | # explicitly linking system object files so we need to strip them |
11364 | # from the output so that they don't get included in the library |
11365 | # dependencies. |
11366 | 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' |
11367 | ;; |
11368 | *) |
11369 | if test "$GXX" = yes; then |
11370 | 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' |
11371 | else |
11372 | # FIXME: insert proper C++ library support |
11373 | ld_shlibs_CXX=no |
11374 | fi |
11375 | ;; |
11376 | esac |
11377 | ;; |
11378 | hpux10*|hpux11*) |
11379 | if test $with_gnu_ld = no; then |
11380 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11381 | hardcode_libdir_separator_CXX=: |
11382 | |
11383 | case $host_cpu in |
11384 | hppa*64*|ia64*) |
11385 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11386 | ;; |
11387 | *) |
11388 | export_dynamic_flag_spec_CXX='${wl}-E' |
11389 | ;; |
11390 | esac |
11391 | fi |
11392 | case $host_cpu in |
11393 | hppa*64*|ia64*) |
11394 | hardcode_direct_CXX=no |
11395 | hardcode_shlibpath_var_CXX=no |
11396 | ;; |
11397 | *) |
11398 | hardcode_direct_CXX=yes |
11399 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11400 | # but as the default |
11401 | # location of the library. |
11402 | ;; |
11403 | esac |
11404 | |
11405 | case $cc_basename in |
11406 | CC*) |
11407 | # FIXME: insert proper C++ library support |
11408 | ld_shlibs_CXX=no |
11409 | ;; |
11410 | aCC*) |
11411 | case $host_cpu in |
11412 | hppa*64*) |
11413 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11414 | ;; |
11415 | ia64*) |
11416 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11417 | ;; |
11418 | *) |
11419 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11420 | ;; |
11421 | esac |
11422 | # Commands to make compiler produce verbose output that lists |
11423 | # what "hidden" libraries, object files and flags are used when |
11424 | # linking a shared library. |
11425 | # |
11426 | # There doesn't appear to be a way to prevent this compiler from |
11427 | # explicitly linking system object files so we need to strip them |
11428 | # from the output so that they don't get included in the library |
11429 | # dependencies. |
11430 | 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' |
11431 | ;; |
11432 | *) |
11433 | if test "$GXX" = yes; then |
11434 | if test $with_gnu_ld = no; then |
11435 | case $host_cpu in |
11436 | hppa*64*) |
11437 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11438 | ;; |
11439 | ia64*) |
11440 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11441 | ;; |
11442 | *) |
11443 | 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' |
11444 | ;; |
11445 | esac |
11446 | fi |
11447 | else |
11448 | # FIXME: insert proper C++ library support |
11449 | ld_shlibs_CXX=no |
11450 | fi |
11451 | ;; |
11452 | esac |
11453 | ;; |
11454 | interix3*) |
11455 | hardcode_direct_CXX=no |
11456 | hardcode_shlibpath_var_CXX=no |
11457 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11458 | export_dynamic_flag_spec_CXX='${wl}-E' |
11459 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11460 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11461 | # default) and relocated if they conflict, which is a slow very memory |
11462 | # consuming and fragmenting process. To avoid this, we pick a random, |
11463 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11464 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11465 | 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' |
11466 | 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' |
11467 | ;; |
11468 | irix5* | irix6*) |
11469 | case $cc_basename in |
11470 | CC*) |
11471 | # SGI C++ |
11472 | 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' |
11473 | |
11474 | # Archives containing C++ object files must be created using |
11475 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11476 | # necessary to make sure instantiated templates are included |
11477 | # in the archive. |
11478 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11479 | ;; |
11480 | *) |
11481 | if test "$GXX" = yes; then |
11482 | if test "$with_gnu_ld" = no; then |
11483 | 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' |
11484 | else |
11485 | 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' |
11486 | fi |
11487 | fi |
11488 | link_all_deplibs_CXX=yes |
11489 | ;; |
11490 | esac |
11491 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11492 | hardcode_libdir_separator_CXX=: |
11493 | ;; |
11494 | linux*) |
11495 | case $cc_basename in |
11496 | KCC*) |
11497 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11498 | |
11499 | # KCC will only create a shared library if the output file |
11500 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11501 | # to its proper name (with version) after linking. |
11502 | 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' |
11503 | 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' |
11504 | # Commands to make compiler produce verbose output that lists |
11505 | # what "hidden" libraries, object files and flags are used when |
11506 | # linking a shared library. |
11507 | # |
11508 | # There doesn't appear to be a way to prevent this compiler from |
11509 | # explicitly linking system object files so we need to strip them |
11510 | # from the output so that they don't get included in the library |
11511 | # dependencies. |
11512 | 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' |
11513 | |
11514 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11515 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11516 | |
11517 | # Archives containing C++ object files must be created using |
11518 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11519 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11520 | ;; |
11521 | icpc*) |
11522 | # Intel C++ |
11523 | with_gnu_ld=yes |
11524 | # version 8.0 and above of icpc choke on multiply defined symbols |
11525 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11526 | # earlier do not add the objects themselves. |
11527 | case `$CC -V 2>&1` in |
11528 | *"Version 7."*) |
11529 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11530 | 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' |
11531 | ;; |
11532 | *) # Version 8.0 or newer |
11533 | tmp_idyn= |
11534 | case $host_cpu in |
11535 | ia64*) tmp_idyn=' -i_dynamic';; |
11536 | esac |
11537 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11538 | 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' |
11539 | ;; |
11540 | esac |
11541 | archive_cmds_need_lc_CXX=no |
11542 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11543 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11544 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11545 | ;; |
11546 | pgCC*) |
11547 | # Portland Group C++ compiler |
11548 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11549 | 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' |
11550 | |
11551 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11552 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11553 | 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' |
11554 | ;; |
11555 | cxx*) |
11556 | # Compaq C++ |
11557 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11558 | 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' |
11559 | |
11560 | runpath_var=LD_RUN_PATH |
11561 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11562 | hardcode_libdir_separator_CXX=: |
11563 | |
11564 | # Commands to make compiler produce verbose output that lists |
11565 | # what "hidden" libraries, object files and flags are used when |
11566 | # linking a shared library. |
11567 | # |
11568 | # There doesn't appear to be a way to prevent this compiler from |
11569 | # explicitly linking system object files so we need to strip them |
11570 | # from the output so that they don't get included in the library |
11571 | # dependencies. |
11572 | 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' |
11573 | ;; |
11574 | esac |
11575 | ;; |
11576 | lynxos*) |
11577 | # FIXME: insert proper C++ library support |
11578 | ld_shlibs_CXX=no |
11579 | ;; |
11580 | m88k*) |
11581 | # FIXME: insert proper C++ library support |
11582 | ld_shlibs_CXX=no |
11583 | ;; |
11584 | mvs*) |
11585 | case $cc_basename in |
11586 | cxx*) |
11587 | # FIXME: insert proper C++ library support |
11588 | ld_shlibs_CXX=no |
11589 | ;; |
11590 | *) |
11591 | # FIXME: insert proper C++ library support |
11592 | ld_shlibs_CXX=no |
11593 | ;; |
11594 | esac |
11595 | ;; |
11596 | netbsd*) |
11597 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11598 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11599 | wlarc= |
11600 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11601 | hardcode_direct_CXX=yes |
11602 | hardcode_shlibpath_var_CXX=no |
11603 | fi |
11604 | # Workaround some broken pre-1.5 toolchains |
11605 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11606 | ;; |
11607 | openbsd2*) |
11608 | # C++ shared libraries are fairly broken |
11609 | ld_shlibs_CXX=no |
11610 | ;; |
11611 | openbsd*) |
11612 | hardcode_direct_CXX=yes |
11613 | hardcode_shlibpath_var_CXX=no |
11614 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11615 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11616 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11617 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11618 | export_dynamic_flag_spec_CXX='${wl}-E' |
11619 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11620 | fi |
11621 | output_verbose_link_cmd='echo' |
11622 | ;; |
11623 | osf3*) |
11624 | case $cc_basename in |
11625 | KCC*) |
11626 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11627 | |
11628 | # KCC will only create a shared library if the output file |
11629 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11630 | # to its proper name (with version) after linking. |
11631 | 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' |
11632 | |
11633 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11634 | hardcode_libdir_separator_CXX=: |
11635 | |
11636 | # Archives containing C++ object files must be created using |
11637 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11638 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11639 | |
11640 | ;; |
11641 | RCC*) |
11642 | # Rational C++ 2.4.1 |
11643 | # FIXME: insert proper C++ library support |
11644 | ld_shlibs_CXX=no |
11645 | ;; |
11646 | cxx*) |
11647 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11648 | 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' |
11649 | |
11650 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11651 | hardcode_libdir_separator_CXX=: |
11652 | |
11653 | # Commands to make compiler produce verbose output that lists |
11654 | # what "hidden" libraries, object files and flags are used when |
11655 | # linking a shared library. |
11656 | # |
11657 | # There doesn't appear to be a way to prevent this compiler from |
11658 | # explicitly linking system object files so we need to strip them |
11659 | # from the output so that they don't get included in the library |
11660 | # dependencies. |
11661 | 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' |
11662 | ;; |
11663 | *) |
11664 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11665 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11666 | 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' |
11667 | |
11668 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11669 | hardcode_libdir_separator_CXX=: |
11670 | |
11671 | # Commands to make compiler produce verbose output that lists |
11672 | # what "hidden" libraries, object files and flags are used when |
11673 | # linking a shared library. |
11674 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11675 | |
11676 | else |
11677 | # FIXME: insert proper C++ library support |
11678 | ld_shlibs_CXX=no |
11679 | fi |
11680 | ;; |
11681 | esac |
11682 | ;; |
11683 | osf4* | osf5*) |
11684 | case $cc_basename in |
11685 | KCC*) |
11686 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11687 | |
11688 | # KCC will only create a shared library if the output file |
11689 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11690 | # to its proper name (with version) after linking. |
11691 | 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' |
11692 | |
11693 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11694 | hardcode_libdir_separator_CXX=: |
11695 | |
11696 | # Archives containing C++ object files must be created using |
11697 | # the KAI C++ compiler. |
11698 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11699 | ;; |
11700 | RCC*) |
11701 | # Rational C++ 2.4.1 |
11702 | # FIXME: insert proper C++ library support |
11703 | ld_shlibs_CXX=no |
11704 | ;; |
11705 | cxx*) |
11706 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11707 | 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' |
11708 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11709 | echo "-hidden">> $lib.exp~ |
11710 | $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~ |
11711 | $rm $lib.exp' |
11712 | |
11713 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11714 | hardcode_libdir_separator_CXX=: |
11715 | |
11716 | # Commands to make compiler produce verbose output that lists |
11717 | # what "hidden" libraries, object files and flags are used when |
11718 | # linking a shared library. |
11719 | # |
11720 | # There doesn't appear to be a way to prevent this compiler from |
11721 | # explicitly linking system object files so we need to strip them |
11722 | # from the output so that they don't get included in the library |
11723 | # dependencies. |
11724 | 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' |
11725 | ;; |
11726 | *) |
11727 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11728 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11729 | 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' |
11730 | |
11731 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11732 | hardcode_libdir_separator_CXX=: |
11733 | |
11734 | # Commands to make compiler produce verbose output that lists |
11735 | # what "hidden" libraries, object files and flags are used when |
11736 | # linking a shared library. |
11737 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11738 | |
11739 | else |
11740 | # FIXME: insert proper C++ library support |
11741 | ld_shlibs_CXX=no |
11742 | fi |
11743 | ;; |
11744 | esac |
11745 | ;; |
11746 | psos*) |
11747 | # FIXME: insert proper C++ library support |
11748 | ld_shlibs_CXX=no |
11749 | ;; |
11750 | sunos4*) |
11751 | case $cc_basename in |
11752 | CC*) |
11753 | # Sun C++ 4.x |
11754 | # FIXME: insert proper C++ library support |
11755 | ld_shlibs_CXX=no |
11756 | ;; |
11757 | lcc*) |
11758 | # Lucid |
11759 | # FIXME: insert proper C++ library support |
11760 | ld_shlibs_CXX=no |
11761 | ;; |
11762 | *) |
11763 | # FIXME: insert proper C++ library support |
11764 | ld_shlibs_CXX=no |
11765 | ;; |
11766 | esac |
11767 | ;; |
11768 | solaris*) |
11769 | case $cc_basename in |
11770 | CC*) |
11771 | # Sun C++ 4.2, 5.x and Centerline C++ |
11772 | archive_cmds_need_lc_CXX=yes |
11773 | no_undefined_flag_CXX=' -zdefs' |
11774 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11775 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11776 | $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' |
11777 | |
11778 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11779 | hardcode_shlibpath_var_CXX=no |
11780 | case $host_os in |
11781 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11782 | *) |
11783 | # The C++ compiler is used as linker so we must use $wl |
11784 | # flag to pass the commands to the underlying system |
11785 | # linker. We must also pass each convience library through |
11786 | # to the system linker between allextract/defaultextract. |
11787 | # The C++ compiler will combine linker options so we |
11788 | # cannot just pass the convience library names through |
11789 | # without $wl. |
11790 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11791 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
11792 | ;; |
11793 | esac |
11794 | link_all_deplibs_CXX=yes |
11795 | |
11796 | output_verbose_link_cmd='echo' |
11797 | |
11798 | # Archives containing C++ object files must be created using |
11799 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11800 | # necessary to make sure instantiated templates are included |
11801 | # in the archive. |
11802 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11803 | ;; |
11804 | gcx*) |
11805 | # Green Hills C++ Compiler |
11806 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11807 | |
11808 | # The C++ compiler must be used to create the archive. |
11809 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11810 | ;; |
11811 | *) |
11812 | # GNU C++ compiler with Solaris linker |
11813 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11814 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11815 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11816 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11817 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11818 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11819 | |
11820 | # Commands to make compiler produce verbose output that lists |
11821 | # what "hidden" libraries, object files and flags are used when |
11822 | # linking a shared library. |
11823 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11824 | else |
11825 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11826 | # platform. |
11827 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11828 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11829 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11830 | |
11831 | # Commands to make compiler produce verbose output that lists |
11832 | # what "hidden" libraries, object files and flags are used when |
11833 | # linking a shared library. |
11834 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11835 | fi |
11836 | |
11837 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11838 | fi |
11839 | ;; |
11840 | esac |
11841 | ;; |
11842 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11843 | no_undefined_flag_CXX='${wl}-z,text' |
11844 | archive_cmds_need_lc_CXX=no |
11845 | hardcode_shlibpath_var_CXX=no |
11846 | runpath_var='LD_RUN_PATH' |
11847 | |
11848 | case $cc_basename in |
11849 | CC*) |
11850 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11851 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11852 | ;; |
11853 | *) |
11854 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11855 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11856 | ;; |
11857 | esac |
11858 | ;; |
11859 | sysv5* | sco3.2v5* | sco5v6*) |
11860 | # Note: We can NOT use -z defs as we might desire, because we do not |
11861 | # link with -lc, and that would cause any symbols used from libc to |
11862 | # always be unresolved, which means just about no library would |
11863 | # ever link correctly. If we're not using GNU ld we use -z text |
11864 | # though, which does catch some bad symbols but isn't as heavy-handed |
11865 | # as -z defs. |
11866 | # For security reasons, it is highly recommended that you always |
11867 | # use absolute paths for naming shared libraries, and exclude the |
11868 | # DT_RUNPATH tag from executables and libraries. But doing so |
11869 | # requires that you compile everything twice, which is a pain. |
11870 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11871 | # non-empty value in the environment. Most likely only useful for |
11872 | # creating official distributions of packages. |
11873 | # This is a hack until libtool officially supports absolute path |
11874 | # names for shared libraries. |
11875 | no_undefined_flag_CXX='${wl}-z,text' |
11876 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11877 | archive_cmds_need_lc_CXX=no |
11878 | hardcode_shlibpath_var_CXX=no |
11879 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11880 | hardcode_libdir_separator_CXX=':' |
11881 | link_all_deplibs_CXX=yes |
11882 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11883 | runpath_var='LD_RUN_PATH' |
11884 | |
11885 | case $cc_basename in |
11886 | CC*) |
11887 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11888 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11889 | ;; |
11890 | *) |
11891 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11892 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11893 | ;; |
11894 | esac |
11895 | ;; |
11896 | tandem*) |
11897 | case $cc_basename in |
11898 | NCC*) |
11899 | # NonStop-UX NCC 3.20 |
11900 | # FIXME: insert proper C++ library support |
11901 | ld_shlibs_CXX=no |
11902 | ;; |
11903 | *) |
11904 | # FIXME: insert proper C++ library support |
11905 | ld_shlibs_CXX=no |
11906 | ;; |
11907 | esac |
11908 | ;; |
11909 | vxworks*) |
11910 | # FIXME: insert proper C++ library support |
11911 | ld_shlibs_CXX=no |
11912 | ;; |
11913 | *) |
11914 | # FIXME: insert proper C++ library support |
11915 | ld_shlibs_CXX=no |
11916 | ;; |
11917 | esac |
dd184caf |
11918 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11919 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
11920 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11921 | |
11922 | GCC_CXX="$GXX" |
11923 | LD_CXX="$LD" |
11924 | |
11925 | |
11926 | cat > conftest.$ac_ext <<EOF |
11927 | class Foo |
11928 | { |
11929 | public: |
11930 | Foo (void) { a = 0; } |
11931 | private: |
11932 | int a; |
11933 | }; |
11934 | EOF |
11935 | |
11936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11937 | (eval $ac_compile) 2>&5 |
11938 | ac_status=$? |
11939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11940 | (exit $ac_status); }; then |
11941 | # Parse the compiler output and extract the necessary |
11942 | # objects, libraries and library flags. |
11943 | |
11944 | # Sentinel used to keep track of whether or not we are before |
11945 | # the conftest object file. |
11946 | pre_test_object_deps_done=no |
11947 | |
11948 | # The `*' in the case matches for architectures that use `case' in |
11949 | # $output_verbose_cmd can trigger glob expansion during the loop |
11950 | # eval without this substitution. |
11951 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11952 | |
11953 | for p in `eval $output_verbose_link_cmd`; do |
11954 | case $p in |
11955 | |
11956 | -L* | -R* | -l*) |
11957 | # Some compilers place space between "-{L,R}" and the path. |
11958 | # Remove the space. |
11959 | if test $p = "-L" \ |
11960 | || test $p = "-R"; then |
11961 | prev=$p |
11962 | continue |
11963 | else |
11964 | prev= |
11965 | fi |
11966 | |
11967 | if test "$pre_test_object_deps_done" = no; then |
11968 | case $p in |
11969 | -L* | -R*) |
11970 | # Internal compiler library paths should come after those |
11971 | # provided the user. The postdeps already come after the |
11972 | # user supplied libs so there is no need to process them. |
11973 | if test -z "$compiler_lib_search_path_CXX"; then |
11974 | compiler_lib_search_path_CXX="${prev}${p}" |
11975 | else |
11976 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11977 | fi |
11978 | ;; |
11979 | # The "-l" case would never come before the object being |
11980 | # linked, so don't bother handling this case. |
11981 | esac |
11982 | else |
11983 | if test -z "$postdeps_CXX"; then |
11984 | postdeps_CXX="${prev}${p}" |
11985 | else |
11986 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11987 | fi |
11988 | fi |
11989 | ;; |
11990 | |
11991 | *.$objext) |
11992 | # This assumes that the test object file only shows up |
11993 | # once in the compiler output. |
11994 | if test "$p" = "conftest.$objext"; then |
11995 | pre_test_object_deps_done=yes |
11996 | continue |
11997 | fi |
11998 | |
11999 | if test "$pre_test_object_deps_done" = no; then |
12000 | if test -z "$predep_objects_CXX"; then |
12001 | predep_objects_CXX="$p" |
12002 | else |
12003 | predep_objects_CXX="$predep_objects_CXX $p" |
12004 | fi |
12005 | else |
12006 | if test -z "$postdep_objects_CXX"; then |
12007 | postdep_objects_CXX="$p" |
12008 | else |
12009 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12010 | fi |
12011 | fi |
12012 | ;; |
12013 | |
12014 | *) ;; # Ignore the rest. |
12015 | |
12016 | esac |
12017 | done |
12018 | |
12019 | # Clean up. |
12020 | rm -f a.out a.exe |
12021 | else |
12022 | echo "libtool.m4: error: problem compiling CXX test program" |
12023 | fi |
12024 | |
12025 | $rm -f confest.$objext |
12026 | |
12027 | # PORTME: override above test on systems where it is broken |
12028 | case $host_os in |
12029 | interix3*) |
12030 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12031 | # hack all around it, let's just trust "g++" to DTRT. |
12032 | predep_objects_CXX= |
12033 | postdep_objects_CXX= |
12034 | postdeps_CXX= |
12035 | ;; |
12036 | |
12037 | solaris*) |
12038 | case $cc_basename in |
12039 | CC*) |
12040 | # Adding this requires a known-good setup of shared libraries for |
12041 | # Sun compiler versions before 5.6, else PIC objects from an old |
12042 | # archive will be linked into the output, leading to subtle bugs. |
12043 | postdeps_CXX='-lCstd -lCrun' |
12044 | ;; |
12045 | esac |
12046 | ;; |
12047 | esac |
12048 | |
12049 | |
12050 | case " $postdeps_CXX " in |
12051 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12052 | esac |
12053 | |
12054 | lt_prog_compiler_wl_CXX= |
12055 | lt_prog_compiler_pic_CXX= |
12056 | lt_prog_compiler_static_CXX= |
12057 | |
dd184caf |
12058 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12059 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12060 | |
12061 | # C++ specific cases for pic, static, wl, etc. |
12062 | if test "$GXX" = yes; then |
12063 | lt_prog_compiler_wl_CXX='-Wl,' |
12064 | lt_prog_compiler_static_CXX='-static' |
12065 | |
12066 | case $host_os in |
12067 | aix*) |
12068 | # All AIX code is PIC. |
12069 | if test "$host_cpu" = ia64; then |
12070 | # AIX 5 now supports IA64 processor |
12071 | lt_prog_compiler_static_CXX='-Bstatic' |
12072 | fi |
12073 | ;; |
12074 | amigaos*) |
12075 | # FIXME: we need at least 68020 code to build shared libraries, but |
12076 | # adding the `-m68020' flag to GCC prevents building anything better, |
12077 | # like `-m68040'. |
12078 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12079 | ;; |
12080 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12081 | # PIC is the default for these OSes. |
12082 | ;; |
12083 | mingw* | os2* | pw32*) |
12084 | # This hack is so that the source file can tell whether it is being |
12085 | # built for inclusion in a dll (and should export symbols for example). |
12086 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12087 | ;; |
12088 | darwin* | rhapsody*) |
12089 | # PIC is the default on this platform |
12090 | # Common symbols not allowed in MH_DYLIB files |
12091 | lt_prog_compiler_pic_CXX='-fno-common' |
12092 | ;; |
12093 | *djgpp*) |
12094 | # DJGPP does not support shared libraries at all |
12095 | lt_prog_compiler_pic_CXX= |
12096 | ;; |
12097 | interix3*) |
12098 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12099 | # Instead, we relocate shared libraries at runtime. |
12100 | ;; |
12101 | sysv4*MP*) |
12102 | if test -d /usr/nec; then |
12103 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12104 | fi |
12105 | ;; |
12106 | hpux*) |
12107 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12108 | # not for PA HP-UX. |
12109 | case $host_cpu in |
12110 | hppa*64*|ia64*) |
12111 | ;; |
12112 | *) |
12113 | lt_prog_compiler_pic_CXX='-fPIC' |
12114 | ;; |
12115 | esac |
12116 | ;; |
12117 | *) |
12118 | lt_prog_compiler_pic_CXX='-fPIC' |
12119 | ;; |
12120 | esac |
12121 | else |
12122 | case $host_os in |
12123 | aix4* | aix5*) |
12124 | # All AIX code is PIC. |
12125 | if test "$host_cpu" = ia64; then |
12126 | # AIX 5 now supports IA64 processor |
12127 | lt_prog_compiler_static_CXX='-Bstatic' |
12128 | else |
12129 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12130 | fi |
12131 | ;; |
12132 | chorus*) |
12133 | case $cc_basename in |
12134 | cxch68*) |
12135 | # Green Hills C++ Compiler |
12136 | # _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" |
12137 | ;; |
12138 | esac |
12139 | ;; |
12140 | darwin*) |
12141 | # PIC is the default on this platform |
12142 | # Common symbols not allowed in MH_DYLIB files |
12143 | case $cc_basename in |
12144 | xlc*) |
12145 | lt_prog_compiler_pic_CXX='-qnocommon' |
12146 | lt_prog_compiler_wl_CXX='-Wl,' |
12147 | ;; |
12148 | esac |
12149 | ;; |
12150 | dgux*) |
12151 | case $cc_basename in |
12152 | ec++*) |
12153 | lt_prog_compiler_pic_CXX='-KPIC' |
12154 | ;; |
12155 | ghcx*) |
12156 | # Green Hills C++ Compiler |
12157 | lt_prog_compiler_pic_CXX='-pic' |
12158 | ;; |
12159 | *) |
12160 | ;; |
12161 | esac |
12162 | ;; |
12163 | freebsd* | kfreebsd*-gnu | dragonfly*) |
12164 | # FreeBSD uses GNU C++ |
12165 | ;; |
12166 | hpux9* | hpux10* | hpux11*) |
12167 | case $cc_basename in |
12168 | CC*) |
12169 | lt_prog_compiler_wl_CXX='-Wl,' |
12170 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12171 | if test "$host_cpu" != ia64; then |
12172 | lt_prog_compiler_pic_CXX='+Z' |
12173 | fi |
12174 | ;; |
12175 | aCC*) |
12176 | lt_prog_compiler_wl_CXX='-Wl,' |
12177 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12178 | case $host_cpu in |
12179 | hppa*64*|ia64*) |
12180 | # +Z the default |
12181 | ;; |
12182 | *) |
12183 | lt_prog_compiler_pic_CXX='+Z' |
12184 | ;; |
12185 | esac |
12186 | ;; |
12187 | *) |
12188 | ;; |
12189 | esac |
12190 | ;; |
12191 | interix*) |
12192 | # This is c89, which is MS Visual C++ (no shared libs) |
12193 | # Anyone wants to do a port? |
12194 | ;; |
12195 | irix5* | irix6* | nonstopux*) |
12196 | case $cc_basename in |
12197 | CC*) |
12198 | lt_prog_compiler_wl_CXX='-Wl,' |
12199 | lt_prog_compiler_static_CXX='-non_shared' |
12200 | # CC pic flag -KPIC is the default. |
12201 | ;; |
12202 | *) |
12203 | ;; |
12204 | esac |
12205 | ;; |
12206 | linux*) |
12207 | case $cc_basename in |
12208 | KCC*) |
12209 | # KAI C++ Compiler |
12210 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12211 | lt_prog_compiler_pic_CXX='-fPIC' |
12212 | ;; |
12213 | icpc* | ecpc*) |
12214 | # Intel C++ |
12215 | lt_prog_compiler_wl_CXX='-Wl,' |
12216 | lt_prog_compiler_pic_CXX='-KPIC' |
12217 | lt_prog_compiler_static_CXX='-static' |
12218 | ;; |
12219 | pgCC*) |
12220 | # Portland Group C++ compiler. |
12221 | lt_prog_compiler_wl_CXX='-Wl,' |
12222 | lt_prog_compiler_pic_CXX='-fpic' |
12223 | lt_prog_compiler_static_CXX='-Bstatic' |
12224 | ;; |
12225 | cxx*) |
12226 | # Compaq C++ |
12227 | # Make sure the PIC flag is empty. It appears that all Alpha |
12228 | # Linux and Compaq Tru64 Unix objects are PIC. |
12229 | lt_prog_compiler_pic_CXX= |
12230 | lt_prog_compiler_static_CXX='-non_shared' |
12231 | ;; |
12232 | *) |
12233 | ;; |
12234 | esac |
12235 | ;; |
12236 | lynxos*) |
12237 | ;; |
12238 | m88k*) |
12239 | ;; |
12240 | mvs*) |
12241 | case $cc_basename in |
12242 | cxx*) |
12243 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12244 | ;; |
12245 | *) |
12246 | ;; |
12247 | esac |
12248 | ;; |
12249 | netbsd*) |
12250 | ;; |
12251 | osf3* | osf4* | osf5*) |
12252 | case $cc_basename in |
12253 | KCC*) |
12254 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12255 | ;; |
12256 | RCC*) |
12257 | # Rational C++ 2.4.1 |
12258 | lt_prog_compiler_pic_CXX='-pic' |
12259 | ;; |
12260 | cxx*) |
12261 | # Digital/Compaq C++ |
12262 | lt_prog_compiler_wl_CXX='-Wl,' |
12263 | # Make sure the PIC flag is empty. It appears that all Alpha |
12264 | # Linux and Compaq Tru64 Unix objects are PIC. |
12265 | lt_prog_compiler_pic_CXX= |
12266 | lt_prog_compiler_static_CXX='-non_shared' |
12267 | ;; |
12268 | *) |
12269 | ;; |
12270 | esac |
12271 | ;; |
12272 | psos*) |
12273 | ;; |
12274 | solaris*) |
12275 | case $cc_basename in |
12276 | CC*) |
12277 | # Sun C++ 4.2, 5.x and Centerline C++ |
12278 | lt_prog_compiler_pic_CXX='-KPIC' |
12279 | lt_prog_compiler_static_CXX='-Bstatic' |
12280 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12281 | ;; |
12282 | gcx*) |
12283 | # Green Hills C++ Compiler |
12284 | lt_prog_compiler_pic_CXX='-PIC' |
12285 | ;; |
12286 | *) |
12287 | ;; |
12288 | esac |
12289 | ;; |
12290 | sunos4*) |
12291 | case $cc_basename in |
12292 | CC*) |
12293 | # Sun C++ 4.x |
12294 | lt_prog_compiler_pic_CXX='-pic' |
12295 | lt_prog_compiler_static_CXX='-Bstatic' |
12296 | ;; |
12297 | lcc*) |
12298 | # Lucid |
12299 | lt_prog_compiler_pic_CXX='-pic' |
12300 | ;; |
12301 | *) |
12302 | ;; |
12303 | esac |
12304 | ;; |
12305 | tandem*) |
12306 | case $cc_basename in |
12307 | NCC*) |
12308 | # NonStop-UX NCC 3.20 |
12309 | lt_prog_compiler_pic_CXX='-KPIC' |
12310 | ;; |
12311 | *) |
12312 | ;; |
12313 | esac |
12314 | ;; |
12315 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12316 | case $cc_basename in |
12317 | CC*) |
12318 | lt_prog_compiler_wl_CXX='-Wl,' |
12319 | lt_prog_compiler_pic_CXX='-KPIC' |
12320 | lt_prog_compiler_static_CXX='-Bstatic' |
12321 | ;; |
12322 | esac |
12323 | ;; |
12324 | vxworks*) |
12325 | ;; |
12326 | *) |
12327 | lt_prog_compiler_can_build_shared_CXX=no |
12328 | ;; |
12329 | esac |
12330 | fi |
12331 | |
dd184caf |
12332 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12333 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12334 | |
12335 | # |
12336 | # Check to make sure the PIC flag actually works. |
12337 | # |
12338 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12339 | |
dd184caf |
12340 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12341 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12342 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12344 | else |
12345 | lt_prog_compiler_pic_works_CXX=no |
12346 | ac_outfile=conftest.$ac_objext |
12347 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12348 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12349 | # Insert the option either (1) after the last *FLAGS variable, or |
12350 | # (2) before a word containing "conftest.", or (3) at the end. |
12351 | # Note that $ac_compile itself does not contain backslashes and begins |
12352 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12353 | # The option is referenced via a variable to avoid confusing sed. |
12354 | lt_compile=`echo "$ac_compile" | $SED \ |
12355 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12356 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12357 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
12358 | (eval echo "\"\$as_me:12358: $lt_compile\"" >&5) |
d9898ee8 |
12359 | (eval "$lt_compile" 2>conftest.err) |
12360 | ac_status=$? |
12361 | cat conftest.err >&5 |
dd184caf |
12362 | echo "$as_me:12362: \$? = $ac_status" >&5 |
d9898ee8 |
12363 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12364 | # The compiler can only warn and ignore the option if not recognized |
12365 | # So say no if there are warnings other than the usual output. |
12366 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12367 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12368 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12369 | lt_prog_compiler_pic_works_CXX=yes |
12370 | fi |
12371 | fi |
12372 | $rm conftest* |
12373 | |
12374 | fi |
dd184caf |
12375 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12376 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12377 | |
12378 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12379 | case $lt_prog_compiler_pic_CXX in |
12380 | "" | " "*) ;; |
12381 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12382 | esac |
12383 | else |
12384 | lt_prog_compiler_pic_CXX= |
12385 | lt_prog_compiler_can_build_shared_CXX=no |
12386 | fi |
12387 | |
12388 | fi |
12389 | case $host_os in |
12390 | # For platforms which do not support PIC, -DPIC is meaningless: |
12391 | *djgpp*) |
12392 | lt_prog_compiler_pic_CXX= |
12393 | ;; |
12394 | *) |
12395 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12396 | ;; |
12397 | esac |
12398 | |
12399 | # |
12400 | # Check to make sure the static flag actually works. |
12401 | # |
12402 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
dd184caf |
12403 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12404 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12405 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12407 | else |
12408 | lt_prog_compiler_static_works_CXX=no |
12409 | save_LDFLAGS="$LDFLAGS" |
12410 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12411 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
12412 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12413 | # The linker can only warn and ignore the option if not recognized |
12414 | # So say no if there are warnings |
12415 | if test -s conftest.err; then |
12416 | # Append any errors to the config.log. |
12417 | cat conftest.err 1>&5 |
12418 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12419 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12420 | if diff conftest.exp conftest.er2 >/dev/null; then |
12421 | lt_prog_compiler_static_works_CXX=yes |
12422 | fi |
12423 | else |
12424 | lt_prog_compiler_static_works_CXX=yes |
12425 | fi |
12426 | fi |
12427 | $rm conftest* |
12428 | LDFLAGS="$save_LDFLAGS" |
12429 | |
12430 | fi |
dd184caf |
12431 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12432 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12433 | |
12434 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12435 | : |
12436 | else |
12437 | lt_prog_compiler_static_CXX= |
12438 | fi |
12439 | |
12440 | |
dd184caf |
12441 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12442 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12443 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12445 | else |
12446 | lt_cv_prog_compiler_c_o_CXX=no |
12447 | $rm -r conftest 2>/dev/null |
12448 | mkdir conftest |
12449 | cd conftest |
12450 | mkdir out |
12451 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12452 | |
12453 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12454 | # Insert the option either (1) after the last *FLAGS variable, or |
12455 | # (2) before a word containing "conftest.", or (3) at the end. |
12456 | # Note that $ac_compile itself does not contain backslashes and begins |
12457 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12458 | lt_compile=`echo "$ac_compile" | $SED \ |
12459 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12460 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12461 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
12462 | (eval echo "\"\$as_me:12462: $lt_compile\"" >&5) |
d9898ee8 |
12463 | (eval "$lt_compile" 2>out/conftest.err) |
12464 | ac_status=$? |
12465 | cat out/conftest.err >&5 |
dd184caf |
12466 | echo "$as_me:12466: \$? = $ac_status" >&5 |
d9898ee8 |
12467 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12468 | then |
12469 | # The compiler can only warn and ignore the option if not recognized |
12470 | # So say no if there are warnings |
12471 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12472 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12473 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12474 | lt_cv_prog_compiler_c_o_CXX=yes |
12475 | fi |
12476 | fi |
12477 | chmod u+w . 2>&5 |
12478 | $rm conftest* |
12479 | # SGI C++ compiler will create directory out/ii_files/ for |
12480 | # template instantiation |
12481 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12482 | $rm out/* && rmdir out |
12483 | cd .. |
12484 | rmdir conftest |
12485 | $rm conftest* |
12486 | |
12487 | fi |
dd184caf |
12488 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12489 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12490 | |
12491 | |
12492 | hard_links="nottested" |
12493 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12494 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
12495 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12496 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12497 | hard_links=yes |
12498 | $rm conftest* |
12499 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12500 | touch conftest.a |
12501 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12502 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
12503 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12504 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12505 | if test "$hard_links" = no; then |
12506 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12507 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12508 | need_locks=warn |
12509 | fi |
12510 | else |
12511 | need_locks=no |
12512 | fi |
12513 | |
dd184caf |
12514 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12515 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12516 | |
12517 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12518 | case $host_os in |
12519 | aix4* | aix5*) |
12520 | # If we're using GNU nm, then we don't want the "-C" option. |
12521 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12522 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12523 | 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' |
12524 | else |
12525 | 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' |
12526 | fi |
12527 | ;; |
12528 | pw32*) |
12529 | export_symbols_cmds_CXX="$ltdll_cmds" |
12530 | ;; |
12531 | cygwin* | mingw*) |
12532 | 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' |
12533 | ;; |
12534 | *) |
12535 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12536 | ;; |
12537 | esac |
12538 | |
dd184caf |
12539 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12540 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12541 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12542 | |
12543 | # |
12544 | # Do we need to explicitly link libc? |
12545 | # |
12546 | case "x$archive_cmds_need_lc_CXX" in |
12547 | x|xyes) |
12548 | # Assume -lc should be added |
12549 | archive_cmds_need_lc_CXX=yes |
12550 | |
12551 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12552 | case $archive_cmds_CXX in |
12553 | *'~'*) |
12554 | # FIXME: we may have to deal with multi-command sequences. |
12555 | ;; |
12556 | '$CC '*) |
12557 | # Test whether the compiler implicitly links with -lc since on some |
12558 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12559 | # to ld, don't add -lc before -lgcc. |
dd184caf |
12560 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12561 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12562 | $rm conftest* |
12563 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12564 | |
12565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12566 | (eval $ac_compile) 2>&5 |
12567 | ac_status=$? |
12568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12569 | (exit $ac_status); } 2>conftest.err; then |
12570 | soname=conftest |
12571 | lib=conftest |
12572 | libobjs=conftest.$ac_objext |
12573 | deplibs= |
12574 | wl=$lt_prog_compiler_wl_CXX |
12575 | pic_flag=$lt_prog_compiler_pic_CXX |
12576 | compiler_flags=-v |
12577 | linker_flags=-v |
12578 | verstring= |
12579 | output_objdir=. |
12580 | libname=conftest |
12581 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12582 | allow_undefined_flag_CXX= |
12583 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12584 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12585 | ac_status=$? |
12586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12587 | (exit $ac_status); } |
12588 | then |
12589 | archive_cmds_need_lc_CXX=no |
12590 | else |
12591 | archive_cmds_need_lc_CXX=yes |
12592 | fi |
12593 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12594 | else |
12595 | cat conftest.err 1>&5 |
12596 | fi |
12597 | $rm conftest* |
dd184caf |
12598 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12599 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12600 | ;; |
12601 | esac |
12602 | fi |
12603 | ;; |
12604 | esac |
12605 | |
dd184caf |
12606 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12607 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12608 | library_names_spec= |
12609 | libname_spec='lib$name' |
12610 | soname_spec= |
12611 | shrext_cmds=".so" |
12612 | postinstall_cmds= |
12613 | postuninstall_cmds= |
12614 | finish_cmds= |
12615 | finish_eval= |
12616 | shlibpath_var= |
12617 | shlibpath_overrides_runpath=unknown |
12618 | version_type=none |
12619 | dynamic_linker="$host_os ld.so" |
12620 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12621 | if test "$GCC" = yes; then |
12622 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12623 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12624 | # if the path contains ";" then we assume it to be the separator |
12625 | # otherwise default to the standard path separator (i.e. ":") - it is |
12626 | # assumed that no part of a normal pathname contains ";" but that should |
12627 | # okay in the real world where ";" in dirpaths is itself problematic. |
12628 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12629 | else |
12630 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12631 | fi |
12632 | else |
12633 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12634 | fi |
12635 | need_lib_prefix=unknown |
12636 | hardcode_into_libs=no |
12637 | |
12638 | # when you set need_version to no, make sure it does not cause -set_version |
12639 | # flags to be left without arguments |
12640 | need_version=unknown |
12641 | |
12642 | case $host_os in |
12643 | aix3*) |
12644 | version_type=linux |
12645 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12646 | shlibpath_var=LIBPATH |
12647 | |
12648 | # AIX 3 has no versioning support, so we append a major version to the name. |
12649 | soname_spec='${libname}${release}${shared_ext}$major' |
12650 | ;; |
12651 | |
12652 | aix4* | aix5*) |
12653 | version_type=linux |
12654 | need_lib_prefix=no |
12655 | need_version=no |
12656 | hardcode_into_libs=yes |
12657 | if test "$host_cpu" = ia64; then |
12658 | # AIX 5 supports IA64 |
12659 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12660 | shlibpath_var=LD_LIBRARY_PATH |
12661 | else |
12662 | # With GCC up to 2.95.x, collect2 would create an import file |
12663 | # for dependence libraries. The import file would start with |
12664 | # the line `#! .'. This would cause the generated library to |
12665 | # depend on `.', always an invalid library. This was fixed in |
12666 | # development snapshots of GCC prior to 3.0. |
12667 | case $host_os in |
12668 | aix4 | aix4.[01] | aix4.[01].*) |
12669 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12670 | echo ' yes ' |
12671 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12672 | : |
12673 | else |
12674 | can_build_shared=no |
12675 | fi |
12676 | ;; |
12677 | esac |
12678 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12679 | # soname into executable. Probably we can add versioning support to |
12680 | # collect2, so additional links can be useful in future. |
12681 | if test "$aix_use_runtimelinking" = yes; then |
12682 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12683 | # instead of lib<name>.a to let people know that these are not |
12684 | # typical AIX shared libraries. |
12685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12686 | else |
12687 | # We preserve .a as extension for shared libraries through AIX4.2 |
12688 | # and later when we are not doing run time linking. |
12689 | library_names_spec='${libname}${release}.a $libname.a' |
12690 | soname_spec='${libname}${release}${shared_ext}$major' |
12691 | fi |
12692 | shlibpath_var=LIBPATH |
12693 | fi |
12694 | ;; |
12695 | |
12696 | amigaos*) |
12697 | library_names_spec='$libname.ixlibrary $libname.a' |
12698 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12699 | 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' |
12700 | ;; |
12701 | |
12702 | beos*) |
12703 | library_names_spec='${libname}${shared_ext}' |
12704 | dynamic_linker="$host_os ld.so" |
12705 | shlibpath_var=LIBRARY_PATH |
12706 | ;; |
12707 | |
12708 | bsdi[45]*) |
12709 | version_type=linux |
12710 | need_version=no |
12711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12712 | soname_spec='${libname}${release}${shared_ext}$major' |
12713 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12714 | shlibpath_var=LD_LIBRARY_PATH |
12715 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12716 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12717 | # the default ld.so.conf also contains /usr/contrib/lib and |
12718 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12719 | # libtool to hard-code these into programs |
12720 | ;; |
12721 | |
12722 | cygwin* | mingw* | pw32*) |
12723 | version_type=windows |
12724 | shrext_cmds=".dll" |
12725 | need_version=no |
12726 | need_lib_prefix=no |
12727 | |
12728 | case $GCC,$host_os in |
12729 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12730 | library_names_spec='$libname.dll.a' |
12731 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12732 | postinstall_cmds='base_file=`basename \${file}`~ |
12733 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12734 | dldir=$destdir/`dirname \$dlpath`~ |
12735 | test -d \$dldir || mkdir -p \$dldir~ |
12736 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12737 | chmod a+x \$dldir/$dlname' |
12738 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12739 | dlpath=$dir/\$dldll~ |
12740 | $rm \$dlpath' |
12741 | shlibpath_overrides_runpath=yes |
12742 | |
12743 | case $host_os in |
12744 | cygwin*) |
12745 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12746 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12747 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12748 | ;; |
12749 | mingw*) |
12750 | # MinGW DLLs use traditional 'lib' prefix |
12751 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12752 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12753 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12754 | # It is most probably a Windows format PATH printed by |
12755 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12756 | # path with ; separators, and with drive letters. We can handle the |
12757 | # drive letters (cygwin fileutils understands them), so leave them, |
12758 | # especially as we might pass files found there to a mingw objdump, |
12759 | # which wouldn't understand a cygwinified path. Ahh. |
12760 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12761 | else |
12762 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12763 | fi |
12764 | ;; |
12765 | pw32*) |
12766 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12767 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12768 | ;; |
12769 | esac |
12770 | ;; |
12771 | |
12772 | *) |
12773 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12774 | ;; |
12775 | esac |
12776 | dynamic_linker='Win32 ld.exe' |
12777 | # FIXME: first we should search . and the directory the executable is in |
12778 | shlibpath_var=PATH |
12779 | ;; |
12780 | |
12781 | darwin* | rhapsody*) |
12782 | dynamic_linker="$host_os dyld" |
12783 | version_type=darwin |
12784 | need_lib_prefix=no |
12785 | need_version=no |
12786 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12787 | soname_spec='${libname}${release}${major}$shared_ext' |
12788 | shlibpath_overrides_runpath=yes |
12789 | shlibpath_var=DYLD_LIBRARY_PATH |
12790 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12791 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12792 | if test "$GCC" = yes; then |
12793 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
12794 | else |
12795 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12796 | fi |
12797 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12798 | ;; |
12799 | |
12800 | dgux*) |
12801 | version_type=linux |
12802 | need_lib_prefix=no |
12803 | need_version=no |
12804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12805 | soname_spec='${libname}${release}${shared_ext}$major' |
12806 | shlibpath_var=LD_LIBRARY_PATH |
12807 | ;; |
12808 | |
12809 | freebsd1*) |
12810 | dynamic_linker=no |
12811 | ;; |
12812 | |
12813 | kfreebsd*-gnu) |
12814 | version_type=linux |
12815 | need_lib_prefix=no |
12816 | need_version=no |
12817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12818 | soname_spec='${libname}${release}${shared_ext}$major' |
12819 | shlibpath_var=LD_LIBRARY_PATH |
12820 | shlibpath_overrides_runpath=no |
12821 | hardcode_into_libs=yes |
12822 | dynamic_linker='GNU ld.so' |
12823 | ;; |
12824 | |
12825 | freebsd* | dragonfly*) |
12826 | # DragonFly does not have aout. When/if they implement a new |
12827 | # versioning mechanism, adjust this. |
12828 | if test -x /usr/bin/objformat; then |
12829 | objformat=`/usr/bin/objformat` |
12830 | else |
12831 | case $host_os in |
12832 | freebsd[123]*) objformat=aout ;; |
12833 | *) objformat=elf ;; |
12834 | esac |
12835 | fi |
12836 | version_type=freebsd-$objformat |
12837 | case $version_type in |
12838 | freebsd-elf*) |
12839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12840 | need_version=no |
12841 | need_lib_prefix=no |
12842 | ;; |
12843 | freebsd-*) |
12844 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12845 | need_version=yes |
12846 | ;; |
12847 | esac |
12848 | shlibpath_var=LD_LIBRARY_PATH |
12849 | case $host_os in |
12850 | freebsd2*) |
12851 | shlibpath_overrides_runpath=yes |
12852 | ;; |
12853 | freebsd3.[01]* | freebsdelf3.[01]*) |
12854 | shlibpath_overrides_runpath=yes |
12855 | hardcode_into_libs=yes |
12856 | ;; |
12857 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12858 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12859 | shlibpath_overrides_runpath=no |
12860 | hardcode_into_libs=yes |
12861 | ;; |
12862 | freebsd*) # from 4.6 on |
12863 | shlibpath_overrides_runpath=yes |
12864 | hardcode_into_libs=yes |
12865 | ;; |
12866 | esac |
12867 | ;; |
12868 | |
12869 | gnu*) |
12870 | version_type=linux |
12871 | need_lib_prefix=no |
12872 | need_version=no |
12873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12874 | soname_spec='${libname}${release}${shared_ext}$major' |
12875 | shlibpath_var=LD_LIBRARY_PATH |
12876 | hardcode_into_libs=yes |
12877 | ;; |
12878 | |
12879 | hpux9* | hpux10* | hpux11*) |
12880 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12881 | # link against other versions. |
12882 | version_type=sunos |
12883 | need_lib_prefix=no |
12884 | need_version=no |
12885 | case $host_cpu in |
12886 | ia64*) |
12887 | shrext_cmds='.so' |
12888 | hardcode_into_libs=yes |
12889 | dynamic_linker="$host_os dld.so" |
12890 | shlibpath_var=LD_LIBRARY_PATH |
12891 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12893 | soname_spec='${libname}${release}${shared_ext}$major' |
12894 | if test "X$HPUX_IA64_MODE" = X32; then |
12895 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12896 | else |
12897 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12898 | fi |
12899 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12900 | ;; |
12901 | hppa*64*) |
12902 | shrext_cmds='.sl' |
12903 | hardcode_into_libs=yes |
12904 | dynamic_linker="$host_os dld.sl" |
12905 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12906 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12908 | soname_spec='${libname}${release}${shared_ext}$major' |
12909 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12910 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12911 | ;; |
12912 | *) |
12913 | shrext_cmds='.sl' |
12914 | dynamic_linker="$host_os dld.sl" |
12915 | shlibpath_var=SHLIB_PATH |
12916 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12918 | soname_spec='${libname}${release}${shared_ext}$major' |
12919 | ;; |
12920 | esac |
12921 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12922 | postinstall_cmds='chmod 555 $lib' |
12923 | ;; |
12924 | |
12925 | interix3*) |
12926 | version_type=linux |
12927 | need_lib_prefix=no |
12928 | need_version=no |
12929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12930 | soname_spec='${libname}${release}${shared_ext}$major' |
12931 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12932 | shlibpath_var=LD_LIBRARY_PATH |
12933 | shlibpath_overrides_runpath=no |
12934 | hardcode_into_libs=yes |
12935 | ;; |
12936 | |
12937 | irix5* | irix6* | nonstopux*) |
12938 | case $host_os in |
12939 | nonstopux*) version_type=nonstopux ;; |
12940 | *) |
12941 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12942 | version_type=linux |
12943 | else |
12944 | version_type=irix |
12945 | fi ;; |
12946 | esac |
12947 | need_lib_prefix=no |
12948 | need_version=no |
12949 | soname_spec='${libname}${release}${shared_ext}$major' |
12950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12951 | case $host_os in |
12952 | irix5* | nonstopux*) |
12953 | libsuff= shlibsuff= |
12954 | ;; |
12955 | *) |
12956 | case $LD in # libtool.m4 will add one of these switches to LD |
12957 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12958 | libsuff= shlibsuff= libmagic=32-bit;; |
12959 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12960 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12961 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12962 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12963 | *) libsuff= shlibsuff= libmagic=never-match;; |
12964 | esac |
12965 | ;; |
12966 | esac |
12967 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12968 | shlibpath_overrides_runpath=no |
12969 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12970 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12971 | hardcode_into_libs=yes |
12972 | ;; |
12973 | |
12974 | # No shared lib support for Linux oldld, aout, or coff. |
12975 | linux*oldld* | linux*aout* | linux*coff*) |
12976 | dynamic_linker=no |
12977 | ;; |
12978 | |
12979 | # This must be Linux ELF. |
12980 | linux*) |
12981 | version_type=linux |
12982 | need_lib_prefix=no |
12983 | need_version=no |
12984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12985 | soname_spec='${libname}${release}${shared_ext}$major' |
12986 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12987 | shlibpath_var=LD_LIBRARY_PATH |
12988 | shlibpath_overrides_runpath=no |
12989 | # This implies no fast_install, which is unacceptable. |
12990 | # Some rework will be needed to allow for fast_install |
12991 | # before this can be enabled. |
12992 | hardcode_into_libs=yes |
12993 | |
12994 | # find out which ABI we are using |
12995 | libsuff= |
12996 | case "$host_cpu" in |
12997 | x86_64*|s390x*|powerpc64*) |
dd184caf |
12998 | echo '#line 12998 "configure"' > conftest.$ac_ext |
d9898ee8 |
12999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13000 | (eval $ac_compile) 2>&5 |
13001 | ac_status=$? |
13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13003 | (exit $ac_status); }; then |
13004 | case `/usr/bin/file conftest.$ac_objext` in |
13005 | *64-bit*) |
13006 | libsuff=64 |
13007 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
13008 | ;; |
13009 | esac |
13010 | fi |
13011 | rm -rf conftest* |
13012 | ;; |
13013 | esac |
13014 | |
13015 | # Append ld.so.conf contents to the search path |
13016 | if test -f /etc/ld.so.conf; then |
dd184caf |
13017 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
13018 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
13019 | fi |
13020 | |
13021 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13022 | # powerpc, because MkLinux only supported shared libraries with the |
13023 | # GNU dynamic linker. Since this was broken with cross compilers, |
13024 | # most powerpc-linux boxes support dynamic linking these days and |
13025 | # people can always --disable-shared, the test was removed, and we |
13026 | # assume the GNU/Linux dynamic linker is in use. |
13027 | dynamic_linker='GNU/Linux ld.so' |
13028 | ;; |
13029 | |
13030 | knetbsd*-gnu) |
13031 | version_type=linux |
13032 | need_lib_prefix=no |
13033 | need_version=no |
13034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13035 | soname_spec='${libname}${release}${shared_ext}$major' |
13036 | shlibpath_var=LD_LIBRARY_PATH |
13037 | shlibpath_overrides_runpath=no |
13038 | hardcode_into_libs=yes |
13039 | dynamic_linker='GNU ld.so' |
13040 | ;; |
13041 | |
13042 | netbsd*) |
13043 | version_type=sunos |
13044 | need_lib_prefix=no |
13045 | need_version=no |
13046 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13048 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13049 | dynamic_linker='NetBSD (a.out) ld.so' |
13050 | else |
13051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13052 | soname_spec='${libname}${release}${shared_ext}$major' |
13053 | dynamic_linker='NetBSD ld.elf_so' |
13054 | fi |
13055 | shlibpath_var=LD_LIBRARY_PATH |
13056 | shlibpath_overrides_runpath=yes |
13057 | hardcode_into_libs=yes |
13058 | ;; |
13059 | |
13060 | newsos6) |
13061 | version_type=linux |
13062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13063 | shlibpath_var=LD_LIBRARY_PATH |
13064 | shlibpath_overrides_runpath=yes |
13065 | ;; |
13066 | |
13067 | nto-qnx*) |
13068 | version_type=linux |
13069 | need_lib_prefix=no |
13070 | need_version=no |
13071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13072 | soname_spec='${libname}${release}${shared_ext}$major' |
13073 | shlibpath_var=LD_LIBRARY_PATH |
13074 | shlibpath_overrides_runpath=yes |
13075 | ;; |
13076 | |
13077 | openbsd*) |
13078 | version_type=sunos |
13079 | sys_lib_dlsearch_path_spec="/usr/lib" |
13080 | need_lib_prefix=no |
13081 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13082 | case $host_os in |
13083 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13084 | *) need_version=no ;; |
13085 | esac |
13086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13087 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13088 | shlibpath_var=LD_LIBRARY_PATH |
13089 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13090 | case $host_os in |
13091 | openbsd2.[89] | openbsd2.[89].*) |
13092 | shlibpath_overrides_runpath=no |
13093 | ;; |
13094 | *) |
13095 | shlibpath_overrides_runpath=yes |
13096 | ;; |
13097 | esac |
13098 | else |
13099 | shlibpath_overrides_runpath=yes |
13100 | fi |
13101 | ;; |
13102 | |
13103 | os2*) |
13104 | libname_spec='$name' |
13105 | shrext_cmds=".dll" |
13106 | need_lib_prefix=no |
13107 | library_names_spec='$libname${shared_ext} $libname.a' |
13108 | dynamic_linker='OS/2 ld.exe' |
13109 | shlibpath_var=LIBPATH |
13110 | ;; |
13111 | |
13112 | osf3* | osf4* | osf5*) |
13113 | version_type=osf |
13114 | need_lib_prefix=no |
13115 | need_version=no |
13116 | soname_spec='${libname}${release}${shared_ext}$major' |
13117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13118 | shlibpath_var=LD_LIBRARY_PATH |
13119 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13120 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13121 | ;; |
13122 | |
13123 | solaris*) |
13124 | version_type=linux |
13125 | need_lib_prefix=no |
13126 | need_version=no |
13127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13128 | soname_spec='${libname}${release}${shared_ext}$major' |
13129 | shlibpath_var=LD_LIBRARY_PATH |
13130 | shlibpath_overrides_runpath=yes |
13131 | hardcode_into_libs=yes |
13132 | # ldd complains unless libraries are executable |
13133 | postinstall_cmds='chmod +x $lib' |
13134 | ;; |
13135 | |
13136 | sunos4*) |
13137 | version_type=sunos |
13138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13139 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13140 | shlibpath_var=LD_LIBRARY_PATH |
13141 | shlibpath_overrides_runpath=yes |
13142 | if test "$with_gnu_ld" = yes; then |
13143 | need_lib_prefix=no |
13144 | fi |
13145 | need_version=yes |
13146 | ;; |
13147 | |
13148 | sysv4 | sysv4.3*) |
13149 | version_type=linux |
13150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13151 | soname_spec='${libname}${release}${shared_ext}$major' |
13152 | shlibpath_var=LD_LIBRARY_PATH |
13153 | case $host_vendor in |
13154 | sni) |
13155 | shlibpath_overrides_runpath=no |
13156 | need_lib_prefix=no |
13157 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13158 | runpath_var=LD_RUN_PATH |
13159 | ;; |
13160 | siemens) |
13161 | need_lib_prefix=no |
13162 | ;; |
13163 | motorola) |
13164 | need_lib_prefix=no |
13165 | need_version=no |
13166 | shlibpath_overrides_runpath=no |
13167 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13168 | ;; |
13169 | esac |
13170 | ;; |
13171 | |
13172 | sysv4*MP*) |
13173 | if test -d /usr/nec ;then |
13174 | version_type=linux |
13175 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13176 | soname_spec='$libname${shared_ext}.$major' |
13177 | shlibpath_var=LD_LIBRARY_PATH |
13178 | fi |
13179 | ;; |
13180 | |
13181 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13182 | version_type=freebsd-elf |
13183 | need_lib_prefix=no |
13184 | need_version=no |
13185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13186 | soname_spec='${libname}${release}${shared_ext}$major' |
13187 | shlibpath_var=LD_LIBRARY_PATH |
13188 | hardcode_into_libs=yes |
13189 | if test "$with_gnu_ld" = yes; then |
13190 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13191 | shlibpath_overrides_runpath=no |
13192 | else |
13193 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13194 | shlibpath_overrides_runpath=yes |
13195 | case $host_os in |
13196 | sco3.2v5*) |
13197 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13198 | ;; |
13199 | esac |
13200 | fi |
13201 | sys_lib_dlsearch_path_spec='/usr/lib' |
13202 | ;; |
13203 | |
13204 | uts4*) |
13205 | version_type=linux |
13206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13207 | soname_spec='${libname}${release}${shared_ext}$major' |
13208 | shlibpath_var=LD_LIBRARY_PATH |
13209 | ;; |
13210 | |
13211 | *) |
13212 | dynamic_linker=no |
13213 | ;; |
13214 | esac |
dd184caf |
13215 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13216 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13217 | test "$dynamic_linker" = no && can_build_shared=no |
13218 | |
13219 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13220 | if test "$GCC" = yes; then |
13221 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13222 | fi |
13223 | |
dd184caf |
13224 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13225 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13226 | hardcode_action_CXX= |
13227 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13228 | test -n "$runpath_var_CXX" || \ |
13229 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13230 | |
13231 | # We can hardcode non-existant directories. |
13232 | if test "$hardcode_direct_CXX" != no && |
13233 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13234 | # have to relink, otherwise we might link with an installed library |
13235 | # when we should be linking with a yet-to-be-installed one |
13236 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13237 | test "$hardcode_minus_L_CXX" != no; then |
13238 | # Linking always hardcodes the temporary library directory. |
13239 | hardcode_action_CXX=relink |
13240 | else |
13241 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13242 | hardcode_action_CXX=immediate |
13243 | fi |
13244 | else |
13245 | # We cannot hardcode anything, or else we can only hardcode existing |
13246 | # directories. |
13247 | hardcode_action_CXX=unsupported |
13248 | fi |
dd184caf |
13249 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13250 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13251 | |
13252 | if test "$hardcode_action_CXX" = relink; then |
13253 | # Fast installation is not supported |
13254 | enable_fast_install=no |
13255 | elif test "$shlibpath_overrides_runpath" = yes || |
13256 | test "$enable_shared" = no; then |
13257 | # Fast installation is not necessary |
13258 | enable_fast_install=needless |
13259 | fi |
13260 | |
13261 | |
13262 | # The else clause should only fire when bootstrapping the |
13263 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13264 | # with your package, and you will get complaints that there are |
13265 | # no rules to generate ltmain.sh. |
13266 | if test -f "$ltmain"; then |
13267 | # See if we are running on zsh, and set the options which allow our commands through |
13268 | # without removal of \ escapes. |
13269 | if test -n "${ZSH_VERSION+set}" ; then |
13270 | setopt NO_GLOB_SUBST |
13271 | fi |
13272 | # Now quote all the things that may contain metacharacters while being |
13273 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13274 | # variables and quote the copies for generation of the libtool script. |
13275 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13276 | SED SHELL STRIP \ |
13277 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13278 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13279 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13280 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13281 | lt_cv_sys_global_symbol_to_c_name_address \ |
13282 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13283 | old_postinstall_cmds old_postuninstall_cmds \ |
13284 | compiler_CXX \ |
13285 | CC_CXX \ |
13286 | LD_CXX \ |
13287 | lt_prog_compiler_wl_CXX \ |
13288 | lt_prog_compiler_pic_CXX \ |
13289 | lt_prog_compiler_static_CXX \ |
13290 | lt_prog_compiler_no_builtin_flag_CXX \ |
13291 | export_dynamic_flag_spec_CXX \ |
13292 | thread_safe_flag_spec_CXX \ |
13293 | whole_archive_flag_spec_CXX \ |
13294 | enable_shared_with_static_runtimes_CXX \ |
13295 | old_archive_cmds_CXX \ |
13296 | old_archive_from_new_cmds_CXX \ |
13297 | predep_objects_CXX \ |
13298 | postdep_objects_CXX \ |
13299 | predeps_CXX \ |
13300 | postdeps_CXX \ |
13301 | compiler_lib_search_path_CXX \ |
13302 | archive_cmds_CXX \ |
13303 | archive_expsym_cmds_CXX \ |
13304 | postinstall_cmds_CXX \ |
13305 | postuninstall_cmds_CXX \ |
13306 | old_archive_from_expsyms_cmds_CXX \ |
13307 | allow_undefined_flag_CXX \ |
13308 | no_undefined_flag_CXX \ |
13309 | export_symbols_cmds_CXX \ |
13310 | hardcode_libdir_flag_spec_CXX \ |
13311 | hardcode_libdir_flag_spec_ld_CXX \ |
13312 | hardcode_libdir_separator_CXX \ |
13313 | hardcode_automatic_CXX \ |
13314 | module_cmds_CXX \ |
13315 | module_expsym_cmds_CXX \ |
13316 | lt_cv_prog_compiler_c_o_CXX \ |
13317 | exclude_expsyms_CXX \ |
13318 | include_expsyms_CXX; do |
13319 | |
13320 | case $var in |
13321 | old_archive_cmds_CXX | \ |
13322 | old_archive_from_new_cmds_CXX | \ |
13323 | archive_cmds_CXX | \ |
13324 | archive_expsym_cmds_CXX | \ |
13325 | module_cmds_CXX | \ |
13326 | module_expsym_cmds_CXX | \ |
13327 | old_archive_from_expsyms_cmds_CXX | \ |
13328 | export_symbols_cmds_CXX | \ |
13329 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13330 | postinstall_cmds | postuninstall_cmds | \ |
13331 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13332 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13333 | # Double-quote double-evaled strings. |
13334 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13335 | ;; |
13336 | *) |
13337 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13338 | ;; |
13339 | esac |
13340 | done |
13341 | |
13342 | case $lt_echo in |
13343 | *'\$0 --fallback-echo"') |
13344 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13345 | ;; |
13346 | esac |
13347 | |
13348 | cfgfile="$ofile" |
13349 | |
13350 | cat <<__EOF__ >> "$cfgfile" |
13351 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13352 | |
13353 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13354 | |
13355 | # Shell to use when invoking shell scripts. |
13356 | SHELL=$lt_SHELL |
13357 | |
13358 | # Whether or not to build shared libraries. |
13359 | build_libtool_libs=$enable_shared |
13360 | |
13361 | # Whether or not to build static libraries. |
13362 | build_old_libs=$enable_static |
13363 | |
13364 | # Whether or not to add -lc for building shared libraries. |
13365 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13366 | |
13367 | # Whether or not to disallow shared libs when runtime libs are static |
13368 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13369 | |
13370 | # Whether or not to optimize for fast installation. |
13371 | fast_install=$enable_fast_install |
13372 | |
13373 | # The host system. |
13374 | host_alias=$host_alias |
13375 | host=$host |
13376 | host_os=$host_os |
13377 | |
13378 | # The build system. |
13379 | build_alias=$build_alias |
13380 | build=$build |
13381 | build_os=$build_os |
13382 | |
13383 | # An echo program that does not interpret backslashes. |
13384 | echo=$lt_echo |
13385 | |
13386 | # The archiver. |
13387 | AR=$lt_AR |
13388 | AR_FLAGS=$lt_AR_FLAGS |
13389 | |
13390 | # A C compiler. |
13391 | LTCC=$lt_LTCC |
13392 | |
13393 | # LTCC compiler flags. |
13394 | LTCFLAGS=$lt_LTCFLAGS |
13395 | |
13396 | # A language-specific compiler. |
13397 | CC=$lt_compiler_CXX |
13398 | |
13399 | # Is the compiler the GNU C compiler? |
13400 | with_gcc=$GCC_CXX |
13401 | |
d9898ee8 |
13402 | # An ERE matcher. |
13403 | EGREP=$lt_EGREP |
13404 | |
13405 | # The linker used to build libraries. |
13406 | LD=$lt_LD_CXX |
13407 | |
13408 | # Whether we need hard or soft links. |
13409 | LN_S=$lt_LN_S |
13410 | |
13411 | # A BSD-compatible nm program. |
13412 | NM=$lt_NM |
13413 | |
13414 | # A symbol stripping program |
13415 | STRIP=$lt_STRIP |
13416 | |
13417 | # Used to examine libraries when file_magic_cmd begins "file" |
13418 | MAGIC_CMD=$MAGIC_CMD |
13419 | |
13420 | # Used on cygwin: DLL creation program. |
13421 | DLLTOOL="$DLLTOOL" |
13422 | |
13423 | # Used on cygwin: object dumper. |
13424 | OBJDUMP="$OBJDUMP" |
13425 | |
13426 | # Used on cygwin: assembler. |
13427 | AS="$AS" |
13428 | |
13429 | # The name of the directory that contains temporary libtool files. |
13430 | objdir=$objdir |
13431 | |
13432 | # How to create reloadable object files. |
13433 | reload_flag=$lt_reload_flag |
13434 | reload_cmds=$lt_reload_cmds |
13435 | |
13436 | # How to pass a linker flag through the compiler. |
13437 | wl=$lt_lt_prog_compiler_wl_CXX |
13438 | |
13439 | # Object file suffix (normally "o"). |
13440 | objext="$ac_objext" |
13441 | |
13442 | # Old archive suffix (normally "a"). |
13443 | libext="$libext" |
13444 | |
13445 | # Shared library suffix (normally ".so"). |
13446 | shrext_cmds='$shrext_cmds' |
13447 | |
13448 | # Executable file suffix (normally ""). |
13449 | exeext="$exeext" |
13450 | |
13451 | # Additional compiler flags for building library objects. |
13452 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13453 | pic_mode=$pic_mode |
13454 | |
13455 | # What is the maximum length of a command? |
13456 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13457 | |
13458 | # Does compiler simultaneously support -c and -o options? |
13459 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13460 | |
13461 | # Must we lock files when doing compilation? |
13462 | need_locks=$lt_need_locks |
13463 | |
13464 | # Do we need the lib prefix for modules? |
13465 | need_lib_prefix=$need_lib_prefix |
13466 | |
13467 | # Do we need a version for libraries? |
13468 | need_version=$need_version |
13469 | |
13470 | # Whether dlopen is supported. |
13471 | dlopen_support=$enable_dlopen |
13472 | |
13473 | # Whether dlopen of programs is supported. |
13474 | dlopen_self=$enable_dlopen_self |
13475 | |
13476 | # Whether dlopen of statically linked programs is supported. |
13477 | dlopen_self_static=$enable_dlopen_self_static |
13478 | |
13479 | # Compiler flag to prevent dynamic linking. |
13480 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13481 | |
13482 | # Compiler flag to turn off builtin functions. |
13483 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13484 | |
13485 | # Compiler flag to allow reflexive dlopens. |
13486 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13487 | |
13488 | # Compiler flag to generate shared objects directly from archives. |
13489 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13490 | |
13491 | # Compiler flag to generate thread-safe objects. |
13492 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13493 | |
13494 | # Library versioning type. |
13495 | version_type=$version_type |
13496 | |
13497 | # Format of library name prefix. |
13498 | libname_spec=$lt_libname_spec |
13499 | |
13500 | # List of archive names. First name is the real one, the rest are links. |
13501 | # The last name is the one that the linker finds with -lNAME. |
13502 | library_names_spec=$lt_library_names_spec |
13503 | |
13504 | # The coded name of the library, if different from the real name. |
13505 | soname_spec=$lt_soname_spec |
13506 | |
13507 | # Commands used to build and install an old-style archive. |
13508 | RANLIB=$lt_RANLIB |
13509 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13510 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13511 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13512 | |
13513 | # Create an old-style archive from a shared archive. |
13514 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13515 | |
13516 | # Create a temporary old-style archive to link instead of a shared archive. |
13517 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13518 | |
13519 | # Commands used to build and install a shared archive. |
13520 | archive_cmds=$lt_archive_cmds_CXX |
13521 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13522 | postinstall_cmds=$lt_postinstall_cmds |
13523 | postuninstall_cmds=$lt_postuninstall_cmds |
13524 | |
13525 | # Commands used to build a loadable module (assumed same as above if empty) |
13526 | module_cmds=$lt_module_cmds_CXX |
13527 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13528 | |
13529 | # Commands to strip libraries. |
13530 | old_striplib=$lt_old_striplib |
13531 | striplib=$lt_striplib |
13532 | |
13533 | # Dependencies to place before the objects being linked to create a |
13534 | # shared library. |
dd184caf |
13535 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13536 | |
13537 | # Dependencies to place after the objects being linked to create a |
13538 | # shared library. |
dd184caf |
13539 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13540 | |
13541 | # Dependencies to place before the objects being linked to create a |
13542 | # shared library. |
13543 | predeps=$lt_predeps_CXX |
13544 | |
13545 | # Dependencies to place after the objects being linked to create a |
13546 | # shared library. |
13547 | postdeps=$lt_postdeps_CXX |
13548 | |
13549 | # The library search path used internally by the compiler when linking |
13550 | # a shared library. |
dd184caf |
13551 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13552 | |
13553 | # Method to check whether dependent libraries are shared objects. |
13554 | deplibs_check_method=$lt_deplibs_check_method |
13555 | |
13556 | # Command to use when deplibs_check_method == file_magic. |
13557 | file_magic_cmd=$lt_file_magic_cmd |
13558 | |
13559 | # Flag that allows shared libraries with undefined symbols to be built. |
13560 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13561 | |
13562 | # Flag that forces no undefined symbols. |
13563 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13564 | |
13565 | # Commands used to finish a libtool library installation in a directory. |
13566 | finish_cmds=$lt_finish_cmds |
13567 | |
13568 | # Same as above, but a single script fragment to be evaled but not shown. |
13569 | finish_eval=$lt_finish_eval |
13570 | |
13571 | # Take the output of nm and produce a listing of raw symbols and C names. |
13572 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13573 | |
13574 | # Transform the output of nm in a proper C declaration |
13575 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13576 | |
13577 | # Transform the output of nm in a C name address pair |
13578 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13579 | |
13580 | # This is the shared library runtime path variable. |
13581 | runpath_var=$runpath_var |
13582 | |
13583 | # This is the shared library path variable. |
13584 | shlibpath_var=$shlibpath_var |
13585 | |
13586 | # Is shlibpath searched before the hard-coded library search path? |
13587 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13588 | |
13589 | # How to hardcode a shared library path into an executable. |
13590 | hardcode_action=$hardcode_action_CXX |
13591 | |
13592 | # Whether we should hardcode library paths into libraries. |
13593 | hardcode_into_libs=$hardcode_into_libs |
13594 | |
13595 | # Flag to hardcode \$libdir into a binary during linking. |
13596 | # This must work even if \$libdir does not exist. |
13597 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13598 | |
13599 | # If ld is used when linking, flag to hardcode \$libdir into |
13600 | # a binary during linking. This must work even if \$libdir does |
13601 | # not exist. |
13602 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13603 | |
13604 | # Whether we need a single -rpath flag with a separated argument. |
13605 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13606 | |
13607 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13608 | # resulting binary. |
13609 | hardcode_direct=$hardcode_direct_CXX |
13610 | |
13611 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13612 | # resulting binary. |
13613 | hardcode_minus_L=$hardcode_minus_L_CXX |
13614 | |
13615 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13616 | # the resulting binary. |
13617 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13618 | |
13619 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13620 | # and all subsequent libraries and executables linked against it. |
13621 | hardcode_automatic=$hardcode_automatic_CXX |
13622 | |
13623 | # Variables whose values should be saved in libtool wrapper scripts and |
13624 | # restored at relink time. |
13625 | variables_saved_for_relink="$variables_saved_for_relink" |
13626 | |
13627 | # Whether libtool must link a program against all its dependency libraries. |
13628 | link_all_deplibs=$link_all_deplibs_CXX |
13629 | |
13630 | # Compile-time system search path for libraries |
dd184caf |
13631 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13632 | |
13633 | # Run-time system search path for libraries |
13634 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13635 | |
13636 | # Fix the shell variable \$srcfile for the compiler. |
13637 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13638 | |
13639 | # Set to yes if exported symbols are required. |
13640 | always_export_symbols=$always_export_symbols_CXX |
13641 | |
13642 | # The commands to list exported symbols. |
13643 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13644 | |
13645 | # The commands to extract the exported symbol list from a shared archive. |
13646 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13647 | |
13648 | # Symbols that should not be listed in the preloaded symbols. |
13649 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13650 | |
13651 | # Symbols that must always be exported. |
13652 | include_expsyms=$lt_include_expsyms_CXX |
13653 | |
13654 | # ### END LIBTOOL TAG CONFIG: $tagname |
13655 | |
13656 | __EOF__ |
13657 | |
13658 | |
13659 | else |
13660 | # If there is no Makefile yet, we rely on a make rule to execute |
13661 | # `config.status --recheck' to rerun these tests and create the |
13662 | # libtool script then. |
13663 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13664 | if test -f "$ltmain_in"; then |
13665 | test -f Makefile && make "$ltmain" |
13666 | fi |
13667 | fi |
13668 | |
13669 | |
13670 | ac_ext=c |
13671 | ac_cpp='$CPP $CPPFLAGS' |
13672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13675 | |
13676 | CC=$lt_save_CC |
13677 | LDCXX=$LD |
13678 | LD=$lt_save_LD |
13679 | GCC=$lt_save_GCC |
13680 | with_gnu_ldcxx=$with_gnu_ld |
13681 | with_gnu_ld=$lt_save_with_gnu_ld |
13682 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13683 | lt_cv_path_LD=$lt_save_path_LD |
13684 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13685 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13686 | |
13687 | else |
13688 | tagname="" |
13689 | fi |
13690 | ;; |
13691 | |
13692 | F77) |
13693 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13694 | |
13695 | ac_ext=f |
13696 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13697 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13698 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13699 | |
13700 | |
13701 | archive_cmds_need_lc_F77=no |
13702 | allow_undefined_flag_F77= |
13703 | always_export_symbols_F77=no |
13704 | archive_expsym_cmds_F77= |
13705 | export_dynamic_flag_spec_F77= |
13706 | hardcode_direct_F77=no |
13707 | hardcode_libdir_flag_spec_F77= |
13708 | hardcode_libdir_flag_spec_ld_F77= |
13709 | hardcode_libdir_separator_F77= |
13710 | hardcode_minus_L_F77=no |
13711 | hardcode_automatic_F77=no |
13712 | module_cmds_F77= |
13713 | module_expsym_cmds_F77= |
13714 | link_all_deplibs_F77=unknown |
13715 | old_archive_cmds_F77=$old_archive_cmds |
13716 | no_undefined_flag_F77= |
13717 | whole_archive_flag_spec_F77= |
13718 | enable_shared_with_static_runtimes_F77=no |
13719 | |
13720 | # Source file extension for f77 test sources. |
13721 | ac_ext=f |
13722 | |
13723 | # Object file extension for compiled f77 test sources. |
13724 | objext=o |
13725 | objext_F77=$objext |
13726 | |
13727 | # Code to be used in simple compile tests |
13728 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13729 | |
13730 | # Code to be used in simple link tests |
13731 | lt_simple_link_test_code=" program t\n end\n" |
13732 | |
13733 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13734 | |
13735 | # If no C compiler was specified, use CC. |
13736 | LTCC=${LTCC-"$CC"} |
13737 | |
13738 | # If no C compiler flags were specified, use CFLAGS. |
13739 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13740 | |
13741 | # Allow CC to be a program name with arguments. |
13742 | compiler=$CC |
13743 | |
13744 | |
13745 | # save warnings/boilerplate of simple test code |
13746 | ac_outfile=conftest.$ac_objext |
13747 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13748 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13749 | _lt_compiler_boilerplate=`cat conftest.err` |
13750 | $rm conftest* |
13751 | |
13752 | ac_outfile=conftest.$ac_objext |
13753 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13754 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13755 | _lt_linker_boilerplate=`cat conftest.err` |
13756 | $rm conftest* |
13757 | |
13758 | |
13759 | # Allow CC to be a program name with arguments. |
13760 | lt_save_CC="$CC" |
13761 | CC=${F77-"f77"} |
13762 | compiler=$CC |
13763 | compiler_F77=$CC |
13764 | for cc_temp in $compiler""; do |
13765 | case $cc_temp in |
13766 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13767 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13768 | \-*) ;; |
13769 | *) break;; |
13770 | esac |
13771 | done |
13772 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13773 | |
13774 | |
dd184caf |
13775 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13776 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13777 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13778 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13779 | |
dd184caf |
13780 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13781 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13782 | test "$can_build_shared" = "no" && enable_shared=no |
13783 | |
13784 | # On AIX, shared libraries and static libraries use the same namespace, and |
13785 | # are all built from PIC. |
13786 | case $host_os in |
13787 | aix3*) |
13788 | test "$enable_shared" = yes && enable_static=no |
13789 | if test -n "$RANLIB"; then |
13790 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13791 | postinstall_cmds='$RANLIB $lib' |
13792 | fi |
13793 | ;; |
13794 | aix4* | aix5*) |
13795 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13796 | test "$enable_shared" = yes && enable_static=no |
13797 | fi |
13798 | ;; |
13799 | esac |
dd184caf |
13800 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13801 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13802 | |
dd184caf |
13803 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13804 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13805 | # Make sure either enable_shared or enable_static is yes. |
13806 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
13807 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13808 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13809 | |
13810 | GCC_F77="$G77" |
13811 | LD_F77="$LD" |
13812 | |
13813 | lt_prog_compiler_wl_F77= |
13814 | lt_prog_compiler_pic_F77= |
13815 | lt_prog_compiler_static_F77= |
13816 | |
dd184caf |
13817 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13818 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13819 | |
13820 | if test "$GCC" = yes; then |
13821 | lt_prog_compiler_wl_F77='-Wl,' |
13822 | lt_prog_compiler_static_F77='-static' |
13823 | |
13824 | case $host_os in |
13825 | aix*) |
13826 | # All AIX code is PIC. |
13827 | if test "$host_cpu" = ia64; then |
13828 | # AIX 5 now supports IA64 processor |
13829 | lt_prog_compiler_static_F77='-Bstatic' |
13830 | fi |
13831 | ;; |
13832 | |
13833 | amigaos*) |
13834 | # FIXME: we need at least 68020 code to build shared libraries, but |
13835 | # adding the `-m68020' flag to GCC prevents building anything better, |
13836 | # like `-m68040'. |
13837 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13838 | ;; |
13839 | |
13840 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13841 | # PIC is the default for these OSes. |
13842 | ;; |
13843 | |
13844 | mingw* | pw32* | os2*) |
13845 | # This hack is so that the source file can tell whether it is being |
13846 | # built for inclusion in a dll (and should export symbols for example). |
13847 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13848 | ;; |
13849 | |
13850 | darwin* | rhapsody*) |
13851 | # PIC is the default on this platform |
13852 | # Common symbols not allowed in MH_DYLIB files |
13853 | lt_prog_compiler_pic_F77='-fno-common' |
13854 | ;; |
13855 | |
13856 | interix3*) |
13857 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13858 | # Instead, we relocate shared libraries at runtime. |
13859 | ;; |
13860 | |
13861 | msdosdjgpp*) |
13862 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13863 | # on systems that don't support them. |
13864 | lt_prog_compiler_can_build_shared_F77=no |
13865 | enable_shared=no |
13866 | ;; |
13867 | |
13868 | sysv4*MP*) |
13869 | if test -d /usr/nec; then |
13870 | lt_prog_compiler_pic_F77=-Kconform_pic |
13871 | fi |
13872 | ;; |
13873 | |
13874 | hpux*) |
13875 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13876 | # not for PA HP-UX. |
13877 | case $host_cpu in |
13878 | hppa*64*|ia64*) |
13879 | # +Z the default |
13880 | ;; |
13881 | *) |
13882 | lt_prog_compiler_pic_F77='-fPIC' |
13883 | ;; |
13884 | esac |
13885 | ;; |
13886 | |
13887 | *) |
13888 | lt_prog_compiler_pic_F77='-fPIC' |
13889 | ;; |
13890 | esac |
13891 | else |
13892 | # PORTME Check for flag to pass linker flags through the system compiler. |
13893 | case $host_os in |
13894 | aix*) |
13895 | lt_prog_compiler_wl_F77='-Wl,' |
13896 | if test "$host_cpu" = ia64; then |
13897 | # AIX 5 now supports IA64 processor |
13898 | lt_prog_compiler_static_F77='-Bstatic' |
13899 | else |
13900 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13901 | fi |
13902 | ;; |
13903 | darwin*) |
13904 | # PIC is the default on this platform |
13905 | # Common symbols not allowed in MH_DYLIB files |
13906 | case $cc_basename in |
13907 | xlc*) |
13908 | lt_prog_compiler_pic_F77='-qnocommon' |
13909 | lt_prog_compiler_wl_F77='-Wl,' |
13910 | ;; |
13911 | esac |
13912 | ;; |
13913 | |
13914 | mingw* | pw32* | os2*) |
13915 | # This hack is so that the source file can tell whether it is being |
13916 | # built for inclusion in a dll (and should export symbols for example). |
13917 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13918 | ;; |
13919 | |
13920 | hpux9* | hpux10* | hpux11*) |
13921 | lt_prog_compiler_wl_F77='-Wl,' |
13922 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13923 | # not for PA HP-UX. |
13924 | case $host_cpu in |
13925 | hppa*64*|ia64*) |
13926 | # +Z the default |
13927 | ;; |
13928 | *) |
13929 | lt_prog_compiler_pic_F77='+Z' |
13930 | ;; |
13931 | esac |
13932 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13933 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13934 | ;; |
13935 | |
13936 | irix5* | irix6* | nonstopux*) |
13937 | lt_prog_compiler_wl_F77='-Wl,' |
13938 | # PIC (with -KPIC) is the default. |
13939 | lt_prog_compiler_static_F77='-non_shared' |
13940 | ;; |
13941 | |
13942 | newsos6) |
13943 | lt_prog_compiler_pic_F77='-KPIC' |
13944 | lt_prog_compiler_static_F77='-Bstatic' |
13945 | ;; |
13946 | |
13947 | linux*) |
13948 | case $cc_basename in |
13949 | icc* | ecc*) |
13950 | lt_prog_compiler_wl_F77='-Wl,' |
13951 | lt_prog_compiler_pic_F77='-KPIC' |
13952 | lt_prog_compiler_static_F77='-static' |
13953 | ;; |
13954 | pgcc* | pgf77* | pgf90* | pgf95*) |
13955 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13956 | # which looks to be a dead project) |
13957 | lt_prog_compiler_wl_F77='-Wl,' |
13958 | lt_prog_compiler_pic_F77='-fpic' |
13959 | lt_prog_compiler_static_F77='-Bstatic' |
13960 | ;; |
13961 | ccc*) |
13962 | lt_prog_compiler_wl_F77='-Wl,' |
13963 | # All Alpha code is PIC. |
13964 | lt_prog_compiler_static_F77='-non_shared' |
13965 | ;; |
13966 | esac |
13967 | ;; |
13968 | |
13969 | osf3* | osf4* | osf5*) |
13970 | lt_prog_compiler_wl_F77='-Wl,' |
13971 | # All OSF/1 code is PIC. |
13972 | lt_prog_compiler_static_F77='-non_shared' |
13973 | ;; |
13974 | |
13975 | solaris*) |
13976 | lt_prog_compiler_pic_F77='-KPIC' |
13977 | lt_prog_compiler_static_F77='-Bstatic' |
13978 | case $cc_basename in |
13979 | f77* | f90* | f95*) |
13980 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13981 | *) |
13982 | lt_prog_compiler_wl_F77='-Wl,';; |
13983 | esac |
13984 | ;; |
13985 | |
13986 | sunos4*) |
13987 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13988 | lt_prog_compiler_pic_F77='-PIC' |
13989 | lt_prog_compiler_static_F77='-Bstatic' |
13990 | ;; |
13991 | |
13992 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13993 | lt_prog_compiler_wl_F77='-Wl,' |
13994 | lt_prog_compiler_pic_F77='-KPIC' |
13995 | lt_prog_compiler_static_F77='-Bstatic' |
13996 | ;; |
13997 | |
13998 | sysv4*MP*) |
13999 | if test -d /usr/nec ;then |
14000 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14001 | lt_prog_compiler_static_F77='-Bstatic' |
14002 | fi |
14003 | ;; |
14004 | |
14005 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14006 | lt_prog_compiler_wl_F77='-Wl,' |
14007 | lt_prog_compiler_pic_F77='-KPIC' |
14008 | lt_prog_compiler_static_F77='-Bstatic' |
14009 | ;; |
14010 | |
14011 | unicos*) |
14012 | lt_prog_compiler_wl_F77='-Wl,' |
14013 | lt_prog_compiler_can_build_shared_F77=no |
14014 | ;; |
14015 | |
14016 | uts4*) |
14017 | lt_prog_compiler_pic_F77='-pic' |
14018 | lt_prog_compiler_static_F77='-Bstatic' |
14019 | ;; |
14020 | |
14021 | *) |
14022 | lt_prog_compiler_can_build_shared_F77=no |
14023 | ;; |
14024 | esac |
14025 | fi |
14026 | |
dd184caf |
14027 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14028 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
14029 | |
14030 | # |
14031 | # Check to make sure the PIC flag actually works. |
14032 | # |
14033 | if test -n "$lt_prog_compiler_pic_F77"; then |
14034 | |
dd184caf |
14035 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14036 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
14037 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14039 | else |
14040 | lt_prog_compiler_pic_works_F77=no |
14041 | ac_outfile=conftest.$ac_objext |
14042 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14043 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14044 | # Insert the option either (1) after the last *FLAGS variable, or |
14045 | # (2) before a word containing "conftest.", or (3) at the end. |
14046 | # Note that $ac_compile itself does not contain backslashes and begins |
14047 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14048 | # The option is referenced via a variable to avoid confusing sed. |
14049 | lt_compile=`echo "$ac_compile" | $SED \ |
14050 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14051 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14052 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
14053 | (eval echo "\"\$as_me:14053: $lt_compile\"" >&5) |
d9898ee8 |
14054 | (eval "$lt_compile" 2>conftest.err) |
14055 | ac_status=$? |
14056 | cat conftest.err >&5 |
dd184caf |
14057 | echo "$as_me:14057: \$? = $ac_status" >&5 |
d9898ee8 |
14058 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14059 | # The compiler can only warn and ignore the option if not recognized |
14060 | # So say no if there are warnings other than the usual output. |
14061 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14062 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14063 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14064 | lt_prog_compiler_pic_works_F77=yes |
14065 | fi |
14066 | fi |
14067 | $rm conftest* |
14068 | |
14069 | fi |
dd184caf |
14070 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14071 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14072 | |
14073 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14074 | case $lt_prog_compiler_pic_F77 in |
14075 | "" | " "*) ;; |
14076 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14077 | esac |
14078 | else |
14079 | lt_prog_compiler_pic_F77= |
14080 | lt_prog_compiler_can_build_shared_F77=no |
14081 | fi |
14082 | |
14083 | fi |
14084 | case $host_os in |
14085 | # For platforms which do not support PIC, -DPIC is meaningless: |
14086 | *djgpp*) |
14087 | lt_prog_compiler_pic_F77= |
14088 | ;; |
14089 | *) |
14090 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14091 | ;; |
14092 | esac |
14093 | |
14094 | # |
14095 | # Check to make sure the static flag actually works. |
14096 | # |
14097 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
dd184caf |
14098 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14099 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14100 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14102 | else |
14103 | lt_prog_compiler_static_works_F77=no |
14104 | save_LDFLAGS="$LDFLAGS" |
14105 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
14106 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
14107 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14108 | # The linker can only warn and ignore the option if not recognized |
14109 | # So say no if there are warnings |
14110 | if test -s conftest.err; then |
14111 | # Append any errors to the config.log. |
14112 | cat conftest.err 1>&5 |
14113 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14114 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14115 | if diff conftest.exp conftest.er2 >/dev/null; then |
14116 | lt_prog_compiler_static_works_F77=yes |
14117 | fi |
14118 | else |
14119 | lt_prog_compiler_static_works_F77=yes |
14120 | fi |
14121 | fi |
14122 | $rm conftest* |
14123 | LDFLAGS="$save_LDFLAGS" |
14124 | |
14125 | fi |
dd184caf |
14126 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14127 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14128 | |
14129 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14130 | : |
14131 | else |
14132 | lt_prog_compiler_static_F77= |
14133 | fi |
14134 | |
14135 | |
dd184caf |
14136 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14137 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14138 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14140 | else |
14141 | lt_cv_prog_compiler_c_o_F77=no |
14142 | $rm -r conftest 2>/dev/null |
14143 | mkdir conftest |
14144 | cd conftest |
14145 | mkdir out |
14146 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14147 | |
14148 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14149 | # Insert the option either (1) after the last *FLAGS variable, or |
14150 | # (2) before a word containing "conftest.", or (3) at the end. |
14151 | # Note that $ac_compile itself does not contain backslashes and begins |
14152 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14153 | lt_compile=`echo "$ac_compile" | $SED \ |
14154 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14155 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14156 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
14157 | (eval echo "\"\$as_me:14157: $lt_compile\"" >&5) |
d9898ee8 |
14158 | (eval "$lt_compile" 2>out/conftest.err) |
14159 | ac_status=$? |
14160 | cat out/conftest.err >&5 |
dd184caf |
14161 | echo "$as_me:14161: \$? = $ac_status" >&5 |
d9898ee8 |
14162 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14163 | then |
14164 | # The compiler can only warn and ignore the option if not recognized |
14165 | # So say no if there are warnings |
14166 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14167 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14168 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14169 | lt_cv_prog_compiler_c_o_F77=yes |
14170 | fi |
14171 | fi |
14172 | chmod u+w . 2>&5 |
14173 | $rm conftest* |
14174 | # SGI C++ compiler will create directory out/ii_files/ for |
14175 | # template instantiation |
14176 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14177 | $rm out/* && rmdir out |
14178 | cd .. |
14179 | rmdir conftest |
14180 | $rm conftest* |
14181 | |
14182 | fi |
dd184caf |
14183 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14184 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14185 | |
14186 | |
14187 | hard_links="nottested" |
14188 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14189 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
14190 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14191 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14192 | hard_links=yes |
14193 | $rm conftest* |
14194 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14195 | touch conftest.a |
14196 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14197 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
14198 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14199 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14200 | if test "$hard_links" = no; then |
14201 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14202 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14203 | need_locks=warn |
14204 | fi |
14205 | else |
14206 | need_locks=no |
14207 | fi |
14208 | |
dd184caf |
14209 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14210 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14211 | |
14212 | runpath_var= |
14213 | allow_undefined_flag_F77= |
14214 | enable_shared_with_static_runtimes_F77=no |
14215 | archive_cmds_F77= |
14216 | archive_expsym_cmds_F77= |
14217 | old_archive_From_new_cmds_F77= |
14218 | old_archive_from_expsyms_cmds_F77= |
14219 | export_dynamic_flag_spec_F77= |
14220 | whole_archive_flag_spec_F77= |
14221 | thread_safe_flag_spec_F77= |
14222 | hardcode_libdir_flag_spec_F77= |
14223 | hardcode_libdir_flag_spec_ld_F77= |
14224 | hardcode_libdir_separator_F77= |
14225 | hardcode_direct_F77=no |
14226 | hardcode_minus_L_F77=no |
14227 | hardcode_shlibpath_var_F77=unsupported |
14228 | link_all_deplibs_F77=unknown |
14229 | hardcode_automatic_F77=no |
14230 | module_cmds_F77= |
14231 | module_expsym_cmds_F77= |
14232 | always_export_symbols_F77=no |
14233 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14234 | # include_expsyms should be a list of space-separated symbols to be *always* |
14235 | # included in the symbol list |
14236 | include_expsyms_F77= |
14237 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14238 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14239 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14240 | # as well as any symbol that contains `d'. |
14241 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14242 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14243 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14244 | # the symbol is explicitly referenced. Since portable code cannot |
14245 | # rely on this symbol name, it's probably fine to never include it in |
14246 | # preloaded symbol tables. |
14247 | extract_expsyms_cmds= |
14248 | # Just being paranoid about ensuring that cc_basename is set. |
14249 | for cc_temp in $compiler""; do |
14250 | case $cc_temp in |
14251 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14252 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14253 | \-*) ;; |
14254 | *) break;; |
14255 | esac |
14256 | done |
14257 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14258 | |
14259 | case $host_os in |
14260 | cygwin* | mingw* | pw32*) |
14261 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14262 | # When not using gcc, we currently assume that we are using |
14263 | # Microsoft Visual C++. |
14264 | if test "$GCC" != yes; then |
14265 | with_gnu_ld=no |
14266 | fi |
14267 | ;; |
14268 | interix*) |
14269 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14270 | with_gnu_ld=yes |
14271 | ;; |
14272 | openbsd*) |
14273 | with_gnu_ld=no |
14274 | ;; |
14275 | esac |
14276 | |
14277 | ld_shlibs_F77=yes |
14278 | if test "$with_gnu_ld" = yes; then |
14279 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14280 | wlarc='${wl}' |
14281 | |
14282 | # Set some defaults for GNU ld with shared library support. These |
14283 | # are reset later if shared libraries are not supported. Putting them |
14284 | # here allows them to be overridden if necessary. |
14285 | runpath_var=LD_RUN_PATH |
14286 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14287 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14288 | # ancient GNU ld didn't support --whole-archive et. al. |
14289 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14290 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14291 | else |
14292 | whole_archive_flag_spec_F77= |
14293 | fi |
14294 | supports_anon_versioning=no |
14295 | case `$LD -v 2>/dev/null` in |
14296 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14297 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14298 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14299 | *\ 2.11.*) ;; # other 2.11 versions |
14300 | *) supports_anon_versioning=yes ;; |
14301 | esac |
14302 | |
14303 | # See if GNU ld supports shared libraries. |
14304 | case $host_os in |
14305 | aix3* | aix4* | aix5*) |
14306 | # On AIX/PPC, the GNU linker is very broken |
14307 | if test "$host_cpu" != ia64; then |
14308 | ld_shlibs_F77=no |
14309 | cat <<EOF 1>&2 |
14310 | |
14311 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14312 | *** to be unable to reliably create shared libraries on AIX. |
14313 | *** Therefore, libtool is disabling shared libraries support. If you |
14314 | *** really care for shared libraries, you may want to modify your PATH |
14315 | *** so that a non-GNU linker is found, and then restart. |
14316 | |
14317 | EOF |
14318 | fi |
14319 | ;; |
14320 | |
14321 | amigaos*) |
14322 | 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)' |
14323 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14324 | hardcode_minus_L_F77=yes |
14325 | |
14326 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14327 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14328 | # to version 4, is to share data among multiple programs linked |
14329 | # with the same dynamic library. Since this doesn't match the |
14330 | # behavior of shared libraries on other platforms, we can't use |
14331 | # them. |
14332 | ld_shlibs_F77=no |
14333 | ;; |
14334 | |
14335 | beos*) |
14336 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14337 | allow_undefined_flag_F77=unsupported |
14338 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14339 | # support --undefined. This deserves some investigation. FIXME |
14340 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14341 | else |
14342 | ld_shlibs_F77=no |
14343 | fi |
14344 | ;; |
14345 | |
14346 | cygwin* | mingw* | pw32*) |
14347 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14348 | # as there is no search path for DLLs. |
14349 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14350 | allow_undefined_flag_F77=unsupported |
14351 | always_export_symbols_F77=no |
14352 | enable_shared_with_static_runtimes_F77=yes |
14353 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14354 | |
14355 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14356 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14357 | # If the export-symbols file already is a .def file (1st line |
14358 | # is EXPORTS), use it as is; otherwise, prepend... |
14359 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14360 | cp $export_symbols $output_objdir/$soname.def; |
14361 | else |
14362 | echo EXPORTS > $output_objdir/$soname.def; |
14363 | cat $export_symbols >> $output_objdir/$soname.def; |
14364 | fi~ |
14365 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14366 | else |
14367 | ld_shlibs_F77=no |
14368 | fi |
14369 | ;; |
14370 | |
14371 | interix3*) |
14372 | hardcode_direct_F77=no |
14373 | hardcode_shlibpath_var_F77=no |
14374 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14375 | export_dynamic_flag_spec_F77='${wl}-E' |
14376 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14377 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14378 | # default) and relocated if they conflict, which is a slow very memory |
14379 | # consuming and fragmenting process. To avoid this, we pick a random, |
14380 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14381 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14382 | 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' |
14383 | 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' |
14384 | ;; |
14385 | |
14386 | linux*) |
14387 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14388 | tmp_addflag= |
14389 | case $cc_basename,$host_cpu in |
14390 | pgcc*) # Portland Group C compiler |
14391 | 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' |
14392 | tmp_addflag=' $pic_flag' |
14393 | ;; |
14394 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14395 | 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' |
14396 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14397 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14398 | tmp_addflag=' -i_dynamic' ;; |
14399 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14400 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14401 | ifc* | ifort*) # Intel Fortran compiler |
14402 | tmp_addflag=' -nofor_main' ;; |
14403 | esac |
14404 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14405 | |
14406 | if test $supports_anon_versioning = yes; then |
14407 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14408 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14409 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14410 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14411 | fi |
14412 | else |
14413 | ld_shlibs_F77=no |
14414 | fi |
14415 | ;; |
14416 | |
14417 | netbsd*) |
14418 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14419 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14420 | wlarc= |
14421 | else |
14422 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14423 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14424 | fi |
14425 | ;; |
14426 | |
14427 | solaris*) |
14428 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14429 | ld_shlibs_F77=no |
14430 | cat <<EOF 1>&2 |
14431 | |
14432 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14433 | *** create shared libraries on Solaris systems. Therefore, libtool |
14434 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14435 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14436 | *** your PATH or compiler configuration so that the native linker is |
14437 | *** used, and then restart. |
14438 | |
14439 | EOF |
14440 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14441 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14442 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14443 | else |
14444 | ld_shlibs_F77=no |
14445 | fi |
14446 | ;; |
14447 | |
14448 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14449 | case `$LD -v 2>&1` in |
14450 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14451 | ld_shlibs_F77=no |
14452 | cat <<_LT_EOF 1>&2 |
14453 | |
14454 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14455 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14456 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14457 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14458 | *** your PATH or compiler configuration so that the native linker is |
14459 | *** used, and then restart. |
14460 | |
14461 | _LT_EOF |
14462 | ;; |
14463 | *) |
14464 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14465 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14466 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14467 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14468 | else |
14469 | ld_shlibs_F77=no |
14470 | fi |
14471 | ;; |
14472 | esac |
14473 | ;; |
14474 | |
14475 | sunos4*) |
14476 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14477 | wlarc= |
14478 | hardcode_direct_F77=yes |
14479 | hardcode_shlibpath_var_F77=no |
14480 | ;; |
14481 | |
14482 | *) |
14483 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14484 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14485 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14486 | else |
14487 | ld_shlibs_F77=no |
14488 | fi |
14489 | ;; |
14490 | esac |
14491 | |
14492 | if test "$ld_shlibs_F77" = no; then |
14493 | runpath_var= |
14494 | hardcode_libdir_flag_spec_F77= |
14495 | export_dynamic_flag_spec_F77= |
14496 | whole_archive_flag_spec_F77= |
14497 | fi |
14498 | else |
14499 | # PORTME fill in a description of your system's linker (not GNU ld) |
14500 | case $host_os in |
14501 | aix3*) |
14502 | allow_undefined_flag_F77=unsupported |
14503 | always_export_symbols_F77=yes |
14504 | 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' |
14505 | # Note: this linker hardcodes the directories in LIBPATH if there |
14506 | # are no directories specified by -L. |
14507 | hardcode_minus_L_F77=yes |
14508 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14509 | # Neither direct hardcoding nor static linking is supported with a |
14510 | # broken collect2. |
14511 | hardcode_direct_F77=unsupported |
14512 | fi |
14513 | ;; |
14514 | |
14515 | aix4* | aix5*) |
14516 | if test "$host_cpu" = ia64; then |
14517 | # On IA64, the linker does run time linking by default, so we don't |
14518 | # have to do anything special. |
14519 | aix_use_runtimelinking=no |
14520 | exp_sym_flag='-Bexport' |
14521 | no_entry_flag="" |
14522 | else |
14523 | # If we're using GNU nm, then we don't want the "-C" option. |
14524 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14525 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14526 | 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' |
14527 | else |
14528 | 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' |
14529 | fi |
14530 | aix_use_runtimelinking=no |
14531 | |
14532 | # Test if we are trying to use run time linking or normal |
14533 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14534 | # need to do runtime linking. |
14535 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14536 | for ld_flag in $LDFLAGS; do |
14537 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14538 | aix_use_runtimelinking=yes |
14539 | break |
14540 | fi |
14541 | done |
14542 | ;; |
14543 | esac |
14544 | |
14545 | exp_sym_flag='-bexport' |
14546 | no_entry_flag='-bnoentry' |
14547 | fi |
14548 | |
14549 | # When large executables or shared objects are built, AIX ld can |
14550 | # have problems creating the table of contents. If linking a library |
14551 | # or program results in "error TOC overflow" add -mminimal-toc to |
14552 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14553 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14554 | |
14555 | archive_cmds_F77='' |
14556 | hardcode_direct_F77=yes |
14557 | hardcode_libdir_separator_F77=':' |
14558 | link_all_deplibs_F77=yes |
14559 | |
14560 | if test "$GCC" = yes; then |
14561 | case $host_os in aix4.[012]|aix4.[012].*) |
14562 | # We only want to do this on AIX 4.2 and lower, the check |
14563 | # below for broken collect2 doesn't work under 4.3+ |
14564 | collect2name=`${CC} -print-prog-name=collect2` |
14565 | if test -f "$collect2name" && \ |
14566 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14567 | then |
14568 | # We have reworked collect2 |
14569 | hardcode_direct_F77=yes |
14570 | else |
14571 | # We have old collect2 |
14572 | hardcode_direct_F77=unsupported |
14573 | # It fails to find uninstalled libraries when the uninstalled |
14574 | # path is not listed in the libpath. Setting hardcode_minus_L |
14575 | # to unsupported forces relinking |
14576 | hardcode_minus_L_F77=yes |
14577 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14578 | hardcode_libdir_separator_F77= |
14579 | fi |
14580 | ;; |
14581 | esac |
14582 | shared_flag='-shared' |
14583 | if test "$aix_use_runtimelinking" = yes; then |
14584 | shared_flag="$shared_flag "'${wl}-G' |
14585 | fi |
14586 | else |
14587 | # not using gcc |
14588 | if test "$host_cpu" = ia64; then |
14589 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14590 | # chokes on -Wl,-G. The following line is correct: |
14591 | shared_flag='-G' |
14592 | else |
14593 | if test "$aix_use_runtimelinking" = yes; then |
14594 | shared_flag='${wl}-G' |
14595 | else |
14596 | shared_flag='${wl}-bM:SRE' |
14597 | fi |
14598 | fi |
14599 | fi |
14600 | |
14601 | # It seems that -bexpall does not export symbols beginning with |
14602 | # underscore (_), so it is better to generate a list of symbols to export. |
14603 | always_export_symbols_F77=yes |
14604 | if test "$aix_use_runtimelinking" = yes; then |
14605 | # Warning - without using the other runtime loading flags (-brtl), |
14606 | # -berok will link without error, but may produce a broken library. |
14607 | allow_undefined_flag_F77='-berok' |
14608 | # Determine the default libpath from the value encoded in an empty executable. |
14609 | cat >conftest.$ac_ext <<_ACEOF |
14610 | program main |
14611 | |
14612 | end |
14613 | _ACEOF |
14614 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14615 | if { (ac_try="$ac_link" |
14616 | case "(($ac_try" in |
14617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14618 | *) ac_try_echo=$ac_try;; |
14619 | esac |
14620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14621 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14622 | ac_status=$? |
14623 | grep -v '^ *+' conftest.er1 >conftest.err |
14624 | rm -f conftest.er1 |
14625 | cat conftest.err >&5 |
14626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14627 | (exit $ac_status); } && { |
14628 | test -z "$ac_f77_werror_flag" || |
14629 | test ! -s conftest.err |
14630 | } && test -s conftest$ac_exeext && |
14631 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14632 | |
14633 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14634 | }'` |
14635 | # Check for a 64-bit object if we didn't find anything. |
14636 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14637 | }'`; fi |
14638 | else |
14639 | echo "$as_me: failed program was:" >&5 |
14640 | sed 's/^/| /' conftest.$ac_ext >&5 |
14641 | |
dd184caf |
14642 | |
d9898ee8 |
14643 | fi |
dd184caf |
14644 | |
14645 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14646 | conftest$ac_exeext conftest.$ac_ext |
14647 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14648 | |
14649 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14650 | 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" |
14651 | else |
14652 | if test "$host_cpu" = ia64; then |
14653 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14654 | allow_undefined_flag_F77="-z nodefs" |
14655 | 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" |
14656 | else |
14657 | # Determine the default libpath from the value encoded in an empty executable. |
14658 | cat >conftest.$ac_ext <<_ACEOF |
14659 | program main |
14660 | |
14661 | end |
14662 | _ACEOF |
14663 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14664 | if { (ac_try="$ac_link" |
14665 | case "(($ac_try" in |
14666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14667 | *) ac_try_echo=$ac_try;; |
14668 | esac |
14669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14670 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14671 | ac_status=$? |
14672 | grep -v '^ *+' conftest.er1 >conftest.err |
14673 | rm -f conftest.er1 |
14674 | cat conftest.err >&5 |
14675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14676 | (exit $ac_status); } && { |
14677 | test -z "$ac_f77_werror_flag" || |
14678 | test ! -s conftest.err |
14679 | } && test -s conftest$ac_exeext && |
14680 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14681 | |
14682 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14683 | }'` |
14684 | # Check for a 64-bit object if we didn't find anything. |
14685 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14686 | }'`; fi |
14687 | else |
14688 | echo "$as_me: failed program was:" >&5 |
14689 | sed 's/^/| /' conftest.$ac_ext >&5 |
14690 | |
dd184caf |
14691 | |
d9898ee8 |
14692 | fi |
dd184caf |
14693 | |
14694 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14695 | conftest$ac_exeext conftest.$ac_ext |
14696 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14697 | |
14698 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14699 | # Warning - without using the other run time loading flags, |
14700 | # -berok will link without error, but may produce a broken library. |
14701 | no_undefined_flag_F77=' ${wl}-bernotok' |
14702 | allow_undefined_flag_F77=' ${wl}-berok' |
14703 | # Exported symbols can be pulled into shared objects from archives |
14704 | whole_archive_flag_spec_F77='$convenience' |
14705 | archive_cmds_need_lc_F77=yes |
14706 | # This is similar to how AIX traditionally builds its shared libraries. |
14707 | 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' |
14708 | fi |
14709 | fi |
14710 | ;; |
14711 | |
14712 | amigaos*) |
14713 | 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)' |
14714 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14715 | hardcode_minus_L_F77=yes |
14716 | # see comment about different semantics on the GNU ld section |
14717 | ld_shlibs_F77=no |
14718 | ;; |
14719 | |
14720 | bsdi[45]*) |
14721 | export_dynamic_flag_spec_F77=-rdynamic |
14722 | ;; |
14723 | |
14724 | cygwin* | mingw* | pw32*) |
14725 | # When not using gcc, we currently assume that we are using |
14726 | # Microsoft Visual C++. |
14727 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14728 | # no search path for DLLs. |
14729 | hardcode_libdir_flag_spec_F77=' ' |
14730 | allow_undefined_flag_F77=unsupported |
14731 | # Tell ltmain to make .lib files, not .a files. |
14732 | libext=lib |
14733 | # Tell ltmain to make .dll files, not .so files. |
14734 | shrext_cmds=".dll" |
14735 | # FIXME: Setting linknames here is a bad hack. |
14736 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14737 | # The linker will automatically build a .lib file if we build a DLL. |
14738 | old_archive_From_new_cmds_F77='true' |
14739 | # FIXME: Should let the user specify the lib program. |
14740 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14741 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14742 | enable_shared_with_static_runtimes_F77=yes |
14743 | ;; |
14744 | |
14745 | darwin* | rhapsody*) |
14746 | case $host_os in |
14747 | rhapsody* | darwin1.[012]) |
14748 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14749 | ;; |
14750 | *) # Darwin 1.3 on |
14751 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14752 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14753 | else |
14754 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14755 | 10.[012]) |
14756 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14757 | ;; |
14758 | 10.*) |
14759 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14760 | ;; |
14761 | esac |
14762 | fi |
14763 | ;; |
14764 | esac |
14765 | archive_cmds_need_lc_F77=no |
14766 | hardcode_direct_F77=no |
14767 | hardcode_automatic_F77=yes |
14768 | hardcode_shlibpath_var_F77=unsupported |
14769 | whole_archive_flag_spec_F77='' |
14770 | link_all_deplibs_F77=yes |
14771 | if test "$GCC" = yes ; then |
14772 | output_verbose_link_cmd='echo' |
14773 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14774 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14775 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14776 | 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}' |
14777 | 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}' |
14778 | else |
14779 | case $cc_basename in |
14780 | xlc*) |
14781 | output_verbose_link_cmd='echo' |
14782 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14783 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14784 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14785 | 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14786 | 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}' |
14787 | ;; |
14788 | *) |
14789 | ld_shlibs_F77=no |
14790 | ;; |
14791 | esac |
14792 | fi |
14793 | ;; |
14794 | |
14795 | dgux*) |
14796 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14797 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14798 | hardcode_shlibpath_var_F77=no |
14799 | ;; |
14800 | |
14801 | freebsd1*) |
14802 | ld_shlibs_F77=no |
14803 | ;; |
14804 | |
14805 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14806 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14807 | # does not break anything, and helps significantly (at the cost of a little |
14808 | # extra space). |
14809 | freebsd2.2*) |
14810 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14811 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14812 | hardcode_direct_F77=yes |
14813 | hardcode_shlibpath_var_F77=no |
14814 | ;; |
14815 | |
14816 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14817 | freebsd2*) |
14818 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14819 | hardcode_direct_F77=yes |
14820 | hardcode_minus_L_F77=yes |
14821 | hardcode_shlibpath_var_F77=no |
14822 | ;; |
14823 | |
14824 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14825 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14826 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14827 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14828 | hardcode_direct_F77=yes |
14829 | hardcode_shlibpath_var_F77=no |
14830 | ;; |
14831 | |
14832 | hpux9*) |
14833 | if test "$GCC" = yes; then |
14834 | 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' |
14835 | else |
14836 | 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' |
14837 | fi |
14838 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14839 | hardcode_libdir_separator_F77=: |
14840 | hardcode_direct_F77=yes |
14841 | |
14842 | # hardcode_minus_L: Not really in the search PATH, |
14843 | # but as the default location of the library. |
14844 | hardcode_minus_L_F77=yes |
14845 | export_dynamic_flag_spec_F77='${wl}-E' |
14846 | ;; |
14847 | |
14848 | hpux10*) |
14849 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14850 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14851 | else |
14852 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14853 | fi |
14854 | if test "$with_gnu_ld" = no; then |
14855 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14856 | hardcode_libdir_separator_F77=: |
14857 | |
14858 | hardcode_direct_F77=yes |
14859 | export_dynamic_flag_spec_F77='${wl}-E' |
14860 | |
14861 | # hardcode_minus_L: Not really in the search PATH, |
14862 | # but as the default location of the library. |
14863 | hardcode_minus_L_F77=yes |
14864 | fi |
14865 | ;; |
14866 | |
14867 | hpux11*) |
14868 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14869 | case $host_cpu in |
14870 | hppa*64*) |
14871 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14872 | ;; |
14873 | ia64*) |
14874 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14875 | ;; |
14876 | *) |
14877 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14878 | ;; |
14879 | esac |
14880 | else |
14881 | case $host_cpu in |
14882 | hppa*64*) |
14883 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14884 | ;; |
14885 | ia64*) |
14886 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14887 | ;; |
14888 | *) |
14889 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14890 | ;; |
14891 | esac |
14892 | fi |
14893 | if test "$with_gnu_ld" = no; then |
14894 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14895 | hardcode_libdir_separator_F77=: |
14896 | |
14897 | case $host_cpu in |
14898 | hppa*64*|ia64*) |
14899 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14900 | hardcode_direct_F77=no |
14901 | hardcode_shlibpath_var_F77=no |
14902 | ;; |
14903 | *) |
14904 | hardcode_direct_F77=yes |
14905 | export_dynamic_flag_spec_F77='${wl}-E' |
14906 | |
14907 | # hardcode_minus_L: Not really in the search PATH, |
14908 | # but as the default location of the library. |
14909 | hardcode_minus_L_F77=yes |
14910 | ;; |
14911 | esac |
14912 | fi |
14913 | ;; |
14914 | |
14915 | irix5* | irix6* | nonstopux*) |
14916 | if test "$GCC" = yes; then |
14917 | 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' |
14918 | else |
14919 | 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' |
14920 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14921 | fi |
14922 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14923 | hardcode_libdir_separator_F77=: |
14924 | link_all_deplibs_F77=yes |
14925 | ;; |
14926 | |
14927 | netbsd*) |
14928 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14929 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14930 | else |
14931 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14932 | fi |
14933 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14934 | hardcode_direct_F77=yes |
14935 | hardcode_shlibpath_var_F77=no |
14936 | ;; |
14937 | |
14938 | newsos6) |
14939 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14940 | hardcode_direct_F77=yes |
14941 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14942 | hardcode_libdir_separator_F77=: |
14943 | hardcode_shlibpath_var_F77=no |
14944 | ;; |
14945 | |
14946 | openbsd*) |
14947 | hardcode_direct_F77=yes |
14948 | hardcode_shlibpath_var_F77=no |
14949 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14950 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14951 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14952 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14953 | export_dynamic_flag_spec_F77='${wl}-E' |
14954 | else |
14955 | case $host_os in |
14956 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14957 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14958 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14959 | ;; |
14960 | *) |
14961 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14962 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14963 | ;; |
14964 | esac |
14965 | fi |
14966 | ;; |
14967 | |
14968 | os2*) |
14969 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14970 | hardcode_minus_L_F77=yes |
14971 | allow_undefined_flag_F77=unsupported |
14972 | 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' |
14973 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14974 | ;; |
14975 | |
14976 | osf3*) |
14977 | if test "$GCC" = yes; then |
14978 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14979 | 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' |
14980 | else |
14981 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14982 | 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' |
14983 | fi |
14984 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14985 | hardcode_libdir_separator_F77=: |
14986 | ;; |
14987 | |
14988 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14989 | if test "$GCC" = yes; then |
14990 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14991 | 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' |
14992 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14993 | else |
14994 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14995 | 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' |
14996 | 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~ |
14997 | $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' |
14998 | |
14999 | # Both c and cxx compiler support -rpath directly |
15000 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15001 | fi |
15002 | hardcode_libdir_separator_F77=: |
15003 | ;; |
15004 | |
15005 | solaris*) |
15006 | no_undefined_flag_F77=' -z text' |
15007 | if test "$GCC" = yes; then |
15008 | wlarc='${wl}' |
15009 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15010 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15011 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15012 | else |
15013 | wlarc='' |
15014 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15015 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15016 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15017 | fi |
15018 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15019 | hardcode_shlibpath_var_F77=no |
15020 | case $host_os in |
15021 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15022 | *) |
15023 | # The compiler driver will combine linker options so we |
15024 | # cannot just pass the convience library names through |
15025 | # without $wl, iff we do not link with $LD. |
15026 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
15027 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
15028 | case $wlarc in |
15029 | '') |
15030 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
15031 | *) |
15032 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
15033 | esac ;; |
15034 | esac |
15035 | link_all_deplibs_F77=yes |
15036 | ;; |
15037 | |
15038 | sunos4*) |
15039 | if test "x$host_vendor" = xsequent; then |
15040 | # Use $CC to link under sequent, because it throws in some extra .o |
15041 | # files that make .init and .fini sections work. |
15042 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15043 | else |
15044 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15045 | fi |
15046 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15047 | hardcode_direct_F77=yes |
15048 | hardcode_minus_L_F77=yes |
15049 | hardcode_shlibpath_var_F77=no |
15050 | ;; |
15051 | |
15052 | sysv4) |
15053 | case $host_vendor in |
15054 | sni) |
15055 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15056 | hardcode_direct_F77=yes # is this really true??? |
15057 | ;; |
15058 | siemens) |
15059 | ## LD is ld it makes a PLAMLIB |
15060 | ## CC just makes a GrossModule. |
15061 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15062 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15063 | hardcode_direct_F77=no |
15064 | ;; |
15065 | motorola) |
15066 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15067 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15068 | ;; |
15069 | esac |
15070 | runpath_var='LD_RUN_PATH' |
15071 | hardcode_shlibpath_var_F77=no |
15072 | ;; |
15073 | |
15074 | sysv4.3*) |
15075 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15076 | hardcode_shlibpath_var_F77=no |
15077 | export_dynamic_flag_spec_F77='-Bexport' |
15078 | ;; |
15079 | |
15080 | sysv4*MP*) |
15081 | if test -d /usr/nec; then |
15082 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15083 | hardcode_shlibpath_var_F77=no |
15084 | runpath_var=LD_RUN_PATH |
15085 | hardcode_runpath_var=yes |
15086 | ld_shlibs_F77=yes |
15087 | fi |
15088 | ;; |
15089 | |
15090 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
15091 | no_undefined_flag_F77='${wl}-z,text' |
15092 | archive_cmds_need_lc_F77=no |
15093 | hardcode_shlibpath_var_F77=no |
15094 | runpath_var='LD_RUN_PATH' |
15095 | |
15096 | if test "$GCC" = yes; then |
15097 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15098 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15099 | else |
15100 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15101 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15102 | fi |
15103 | ;; |
15104 | |
15105 | sysv5* | sco3.2v5* | sco5v6*) |
15106 | # Note: We can NOT use -z defs as we might desire, because we do not |
15107 | # link with -lc, and that would cause any symbols used from libc to |
15108 | # always be unresolved, which means just about no library would |
15109 | # ever link correctly. If we're not using GNU ld we use -z text |
15110 | # though, which does catch some bad symbols but isn't as heavy-handed |
15111 | # as -z defs. |
15112 | no_undefined_flag_F77='${wl}-z,text' |
15113 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15114 | archive_cmds_need_lc_F77=no |
15115 | hardcode_shlibpath_var_F77=no |
15116 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15117 | hardcode_libdir_separator_F77=':' |
15118 | link_all_deplibs_F77=yes |
15119 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15120 | runpath_var='LD_RUN_PATH' |
15121 | |
15122 | if test "$GCC" = yes; then |
15123 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15124 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15125 | else |
15126 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15127 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15128 | fi |
15129 | ;; |
15130 | |
15131 | uts4*) |
15132 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15133 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15134 | hardcode_shlibpath_var_F77=no |
15135 | ;; |
15136 | |
15137 | *) |
15138 | ld_shlibs_F77=no |
15139 | ;; |
15140 | esac |
15141 | fi |
15142 | |
dd184caf |
15143 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15144 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15145 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15146 | |
15147 | # |
15148 | # Do we need to explicitly link libc? |
15149 | # |
15150 | case "x$archive_cmds_need_lc_F77" in |
15151 | x|xyes) |
15152 | # Assume -lc should be added |
15153 | archive_cmds_need_lc_F77=yes |
15154 | |
15155 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15156 | case $archive_cmds_F77 in |
15157 | *'~'*) |
15158 | # FIXME: we may have to deal with multi-command sequences. |
15159 | ;; |
15160 | '$CC '*) |
15161 | # Test whether the compiler implicitly links with -lc since on some |
15162 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15163 | # to ld, don't add -lc before -lgcc. |
dd184caf |
15164 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15165 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15166 | $rm conftest* |
15167 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15168 | |
15169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15170 | (eval $ac_compile) 2>&5 |
15171 | ac_status=$? |
15172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15173 | (exit $ac_status); } 2>conftest.err; then |
15174 | soname=conftest |
15175 | lib=conftest |
15176 | libobjs=conftest.$ac_objext |
15177 | deplibs= |
15178 | wl=$lt_prog_compiler_wl_F77 |
15179 | pic_flag=$lt_prog_compiler_pic_F77 |
15180 | compiler_flags=-v |
15181 | linker_flags=-v |
15182 | verstring= |
15183 | output_objdir=. |
15184 | libname=conftest |
15185 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15186 | allow_undefined_flag_F77= |
15187 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15188 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15189 | ac_status=$? |
15190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15191 | (exit $ac_status); } |
15192 | then |
15193 | archive_cmds_need_lc_F77=no |
15194 | else |
15195 | archive_cmds_need_lc_F77=yes |
15196 | fi |
15197 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15198 | else |
15199 | cat conftest.err 1>&5 |
15200 | fi |
15201 | $rm conftest* |
dd184caf |
15202 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15203 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15204 | ;; |
15205 | esac |
15206 | fi |
15207 | ;; |
15208 | esac |
15209 | |
dd184caf |
15210 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15211 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15212 | library_names_spec= |
15213 | libname_spec='lib$name' |
15214 | soname_spec= |
15215 | shrext_cmds=".so" |
15216 | postinstall_cmds= |
15217 | postuninstall_cmds= |
15218 | finish_cmds= |
15219 | finish_eval= |
15220 | shlibpath_var= |
15221 | shlibpath_overrides_runpath=unknown |
15222 | version_type=none |
15223 | dynamic_linker="$host_os ld.so" |
15224 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15225 | if test "$GCC" = yes; then |
15226 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15227 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15228 | # if the path contains ";" then we assume it to be the separator |
15229 | # otherwise default to the standard path separator (i.e. ":") - it is |
15230 | # assumed that no part of a normal pathname contains ";" but that should |
15231 | # okay in the real world where ";" in dirpaths is itself problematic. |
15232 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15233 | else |
15234 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15235 | fi |
15236 | else |
15237 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15238 | fi |
15239 | need_lib_prefix=unknown |
15240 | hardcode_into_libs=no |
15241 | |
15242 | # when you set need_version to no, make sure it does not cause -set_version |
15243 | # flags to be left without arguments |
15244 | need_version=unknown |
15245 | |
15246 | case $host_os in |
15247 | aix3*) |
15248 | version_type=linux |
15249 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15250 | shlibpath_var=LIBPATH |
15251 | |
15252 | # AIX 3 has no versioning support, so we append a major version to the name. |
15253 | soname_spec='${libname}${release}${shared_ext}$major' |
15254 | ;; |
15255 | |
15256 | aix4* | aix5*) |
15257 | version_type=linux |
15258 | need_lib_prefix=no |
15259 | need_version=no |
15260 | hardcode_into_libs=yes |
15261 | if test "$host_cpu" = ia64; then |
15262 | # AIX 5 supports IA64 |
15263 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15264 | shlibpath_var=LD_LIBRARY_PATH |
15265 | else |
15266 | # With GCC up to 2.95.x, collect2 would create an import file |
15267 | # for dependence libraries. The import file would start with |
15268 | # the line `#! .'. This would cause the generated library to |
15269 | # depend on `.', always an invalid library. This was fixed in |
15270 | # development snapshots of GCC prior to 3.0. |
15271 | case $host_os in |
15272 | aix4 | aix4.[01] | aix4.[01].*) |
15273 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15274 | echo ' yes ' |
15275 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15276 | : |
15277 | else |
15278 | can_build_shared=no |
15279 | fi |
15280 | ;; |
15281 | esac |
15282 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15283 | # soname into executable. Probably we can add versioning support to |
15284 | # collect2, so additional links can be useful in future. |
15285 | if test "$aix_use_runtimelinking" = yes; then |
15286 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15287 | # instead of lib<name>.a to let people know that these are not |
15288 | # typical AIX shared libraries. |
15289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15290 | else |
15291 | # We preserve .a as extension for shared libraries through AIX4.2 |
15292 | # and later when we are not doing run time linking. |
15293 | library_names_spec='${libname}${release}.a $libname.a' |
15294 | soname_spec='${libname}${release}${shared_ext}$major' |
15295 | fi |
15296 | shlibpath_var=LIBPATH |
15297 | fi |
15298 | ;; |
15299 | |
15300 | amigaos*) |
15301 | library_names_spec='$libname.ixlibrary $libname.a' |
15302 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15303 | 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' |
15304 | ;; |
15305 | |
15306 | beos*) |
15307 | library_names_spec='${libname}${shared_ext}' |
15308 | dynamic_linker="$host_os ld.so" |
15309 | shlibpath_var=LIBRARY_PATH |
15310 | ;; |
15311 | |
15312 | bsdi[45]*) |
15313 | version_type=linux |
15314 | need_version=no |
15315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15316 | soname_spec='${libname}${release}${shared_ext}$major' |
15317 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15318 | shlibpath_var=LD_LIBRARY_PATH |
15319 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15320 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15321 | # the default ld.so.conf also contains /usr/contrib/lib and |
15322 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15323 | # libtool to hard-code these into programs |
15324 | ;; |
15325 | |
15326 | cygwin* | mingw* | pw32*) |
15327 | version_type=windows |
15328 | shrext_cmds=".dll" |
15329 | need_version=no |
15330 | need_lib_prefix=no |
15331 | |
15332 | case $GCC,$host_os in |
15333 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15334 | library_names_spec='$libname.dll.a' |
15335 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15336 | postinstall_cmds='base_file=`basename \${file}`~ |
15337 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15338 | dldir=$destdir/`dirname \$dlpath`~ |
15339 | test -d \$dldir || mkdir -p \$dldir~ |
15340 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15341 | chmod a+x \$dldir/$dlname' |
15342 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15343 | dlpath=$dir/\$dldll~ |
15344 | $rm \$dlpath' |
15345 | shlibpath_overrides_runpath=yes |
15346 | |
15347 | case $host_os in |
15348 | cygwin*) |
15349 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15350 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15351 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15352 | ;; |
15353 | mingw*) |
15354 | # MinGW DLLs use traditional 'lib' prefix |
15355 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15356 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15357 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15358 | # It is most probably a Windows format PATH printed by |
15359 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15360 | # path with ; separators, and with drive letters. We can handle the |
15361 | # drive letters (cygwin fileutils understands them), so leave them, |
15362 | # especially as we might pass files found there to a mingw objdump, |
15363 | # which wouldn't understand a cygwinified path. Ahh. |
15364 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15365 | else |
15366 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15367 | fi |
15368 | ;; |
15369 | pw32*) |
15370 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15371 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15372 | ;; |
15373 | esac |
15374 | ;; |
15375 | |
15376 | *) |
15377 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15378 | ;; |
15379 | esac |
15380 | dynamic_linker='Win32 ld.exe' |
15381 | # FIXME: first we should search . and the directory the executable is in |
15382 | shlibpath_var=PATH |
15383 | ;; |
15384 | |
15385 | darwin* | rhapsody*) |
15386 | dynamic_linker="$host_os dyld" |
15387 | version_type=darwin |
15388 | need_lib_prefix=no |
15389 | need_version=no |
15390 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15391 | soname_spec='${libname}${release}${major}$shared_ext' |
15392 | shlibpath_overrides_runpath=yes |
15393 | shlibpath_var=DYLD_LIBRARY_PATH |
15394 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15395 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15396 | if test "$GCC" = yes; then |
15397 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
15398 | else |
15399 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15400 | fi |
15401 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15402 | ;; |
15403 | |
15404 | dgux*) |
15405 | version_type=linux |
15406 | need_lib_prefix=no |
15407 | need_version=no |
15408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15409 | soname_spec='${libname}${release}${shared_ext}$major' |
15410 | shlibpath_var=LD_LIBRARY_PATH |
15411 | ;; |
15412 | |
15413 | freebsd1*) |
15414 | dynamic_linker=no |
15415 | ;; |
15416 | |
15417 | kfreebsd*-gnu) |
15418 | version_type=linux |
15419 | need_lib_prefix=no |
15420 | need_version=no |
15421 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15422 | soname_spec='${libname}${release}${shared_ext}$major' |
15423 | shlibpath_var=LD_LIBRARY_PATH |
15424 | shlibpath_overrides_runpath=no |
15425 | hardcode_into_libs=yes |
15426 | dynamic_linker='GNU ld.so' |
15427 | ;; |
15428 | |
15429 | freebsd* | dragonfly*) |
15430 | # DragonFly does not have aout. When/if they implement a new |
15431 | # versioning mechanism, adjust this. |
15432 | if test -x /usr/bin/objformat; then |
15433 | objformat=`/usr/bin/objformat` |
15434 | else |
15435 | case $host_os in |
15436 | freebsd[123]*) objformat=aout ;; |
15437 | *) objformat=elf ;; |
15438 | esac |
15439 | fi |
15440 | version_type=freebsd-$objformat |
15441 | case $version_type in |
15442 | freebsd-elf*) |
15443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15444 | need_version=no |
15445 | need_lib_prefix=no |
15446 | ;; |
15447 | freebsd-*) |
15448 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15449 | need_version=yes |
15450 | ;; |
15451 | esac |
15452 | shlibpath_var=LD_LIBRARY_PATH |
15453 | case $host_os in |
15454 | freebsd2*) |
15455 | shlibpath_overrides_runpath=yes |
15456 | ;; |
15457 | freebsd3.[01]* | freebsdelf3.[01]*) |
15458 | shlibpath_overrides_runpath=yes |
15459 | hardcode_into_libs=yes |
15460 | ;; |
15461 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15462 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15463 | shlibpath_overrides_runpath=no |
15464 | hardcode_into_libs=yes |
15465 | ;; |
15466 | freebsd*) # from 4.6 on |
15467 | shlibpath_overrides_runpath=yes |
15468 | hardcode_into_libs=yes |
15469 | ;; |
15470 | esac |
15471 | ;; |
15472 | |
15473 | gnu*) |
15474 | version_type=linux |
15475 | need_lib_prefix=no |
15476 | need_version=no |
15477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15478 | soname_spec='${libname}${release}${shared_ext}$major' |
15479 | shlibpath_var=LD_LIBRARY_PATH |
15480 | hardcode_into_libs=yes |
15481 | ;; |
15482 | |
15483 | hpux9* | hpux10* | hpux11*) |
15484 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15485 | # link against other versions. |
15486 | version_type=sunos |
15487 | need_lib_prefix=no |
15488 | need_version=no |
15489 | case $host_cpu in |
15490 | ia64*) |
15491 | shrext_cmds='.so' |
15492 | hardcode_into_libs=yes |
15493 | dynamic_linker="$host_os dld.so" |
15494 | shlibpath_var=LD_LIBRARY_PATH |
15495 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15497 | soname_spec='${libname}${release}${shared_ext}$major' |
15498 | if test "X$HPUX_IA64_MODE" = X32; then |
15499 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15500 | else |
15501 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15502 | fi |
15503 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15504 | ;; |
15505 | hppa*64*) |
15506 | shrext_cmds='.sl' |
15507 | hardcode_into_libs=yes |
15508 | dynamic_linker="$host_os dld.sl" |
15509 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15510 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15512 | soname_spec='${libname}${release}${shared_ext}$major' |
15513 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15514 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15515 | ;; |
15516 | *) |
15517 | shrext_cmds='.sl' |
15518 | dynamic_linker="$host_os dld.sl" |
15519 | shlibpath_var=SHLIB_PATH |
15520 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15522 | soname_spec='${libname}${release}${shared_ext}$major' |
15523 | ;; |
15524 | esac |
15525 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15526 | postinstall_cmds='chmod 555 $lib' |
15527 | ;; |
15528 | |
15529 | interix3*) |
15530 | version_type=linux |
15531 | need_lib_prefix=no |
15532 | need_version=no |
15533 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15534 | soname_spec='${libname}${release}${shared_ext}$major' |
15535 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15536 | shlibpath_var=LD_LIBRARY_PATH |
15537 | shlibpath_overrides_runpath=no |
15538 | hardcode_into_libs=yes |
15539 | ;; |
15540 | |
15541 | irix5* | irix6* | nonstopux*) |
15542 | case $host_os in |
15543 | nonstopux*) version_type=nonstopux ;; |
15544 | *) |
15545 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15546 | version_type=linux |
15547 | else |
15548 | version_type=irix |
15549 | fi ;; |
15550 | esac |
15551 | need_lib_prefix=no |
15552 | need_version=no |
15553 | soname_spec='${libname}${release}${shared_ext}$major' |
15554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15555 | case $host_os in |
15556 | irix5* | nonstopux*) |
15557 | libsuff= shlibsuff= |
15558 | ;; |
15559 | *) |
15560 | case $LD in # libtool.m4 will add one of these switches to LD |
15561 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15562 | libsuff= shlibsuff= libmagic=32-bit;; |
15563 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15564 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15565 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15566 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15567 | *) libsuff= shlibsuff= libmagic=never-match;; |
15568 | esac |
15569 | ;; |
15570 | esac |
15571 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15572 | shlibpath_overrides_runpath=no |
15573 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15574 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15575 | hardcode_into_libs=yes |
15576 | ;; |
15577 | |
15578 | # No shared lib support for Linux oldld, aout, or coff. |
15579 | linux*oldld* | linux*aout* | linux*coff*) |
15580 | dynamic_linker=no |
15581 | ;; |
15582 | |
15583 | # This must be Linux ELF. |
15584 | linux*) |
15585 | version_type=linux |
15586 | need_lib_prefix=no |
15587 | need_version=no |
15588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15589 | soname_spec='${libname}${release}${shared_ext}$major' |
15590 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15591 | shlibpath_var=LD_LIBRARY_PATH |
15592 | shlibpath_overrides_runpath=no |
15593 | # This implies no fast_install, which is unacceptable. |
15594 | # Some rework will be needed to allow for fast_install |
15595 | # before this can be enabled. |
15596 | hardcode_into_libs=yes |
15597 | |
15598 | # find out which ABI we are using |
15599 | libsuff= |
15600 | case "$host_cpu" in |
15601 | x86_64*|s390x*|powerpc64*) |
dd184caf |
15602 | echo '#line 15602 "configure"' > conftest.$ac_ext |
d9898ee8 |
15603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15604 | (eval $ac_compile) 2>&5 |
15605 | ac_status=$? |
15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15607 | (exit $ac_status); }; then |
15608 | case `/usr/bin/file conftest.$ac_objext` in |
15609 | *64-bit*) |
15610 | libsuff=64 |
15611 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15612 | ;; |
15613 | esac |
15614 | fi |
15615 | rm -rf conftest* |
15616 | ;; |
15617 | esac |
15618 | |
15619 | # Append ld.so.conf contents to the search path |
15620 | if test -f /etc/ld.so.conf; then |
dd184caf |
15621 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
15622 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15623 | fi |
15624 | |
15625 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15626 | # powerpc, because MkLinux only supported shared libraries with the |
15627 | # GNU dynamic linker. Since this was broken with cross compilers, |
15628 | # most powerpc-linux boxes support dynamic linking these days and |
15629 | # people can always --disable-shared, the test was removed, and we |
15630 | # assume the GNU/Linux dynamic linker is in use. |
15631 | dynamic_linker='GNU/Linux ld.so' |
15632 | ;; |
15633 | |
15634 | knetbsd*-gnu) |
15635 | version_type=linux |
15636 | need_lib_prefix=no |
15637 | need_version=no |
15638 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15639 | soname_spec='${libname}${release}${shared_ext}$major' |
15640 | shlibpath_var=LD_LIBRARY_PATH |
15641 | shlibpath_overrides_runpath=no |
15642 | hardcode_into_libs=yes |
15643 | dynamic_linker='GNU ld.so' |
15644 | ;; |
15645 | |
15646 | netbsd*) |
15647 | version_type=sunos |
15648 | need_lib_prefix=no |
15649 | need_version=no |
15650 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15652 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15653 | dynamic_linker='NetBSD (a.out) ld.so' |
15654 | else |
15655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15656 | soname_spec='${libname}${release}${shared_ext}$major' |
15657 | dynamic_linker='NetBSD ld.elf_so' |
15658 | fi |
15659 | shlibpath_var=LD_LIBRARY_PATH |
15660 | shlibpath_overrides_runpath=yes |
15661 | hardcode_into_libs=yes |
15662 | ;; |
15663 | |
15664 | newsos6) |
15665 | version_type=linux |
15666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15667 | shlibpath_var=LD_LIBRARY_PATH |
15668 | shlibpath_overrides_runpath=yes |
15669 | ;; |
15670 | |
15671 | nto-qnx*) |
15672 | version_type=linux |
15673 | need_lib_prefix=no |
15674 | need_version=no |
15675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15676 | soname_spec='${libname}${release}${shared_ext}$major' |
15677 | shlibpath_var=LD_LIBRARY_PATH |
15678 | shlibpath_overrides_runpath=yes |
15679 | ;; |
15680 | |
15681 | openbsd*) |
15682 | version_type=sunos |
15683 | sys_lib_dlsearch_path_spec="/usr/lib" |
15684 | need_lib_prefix=no |
15685 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15686 | case $host_os in |
15687 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15688 | *) need_version=no ;; |
15689 | esac |
15690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15691 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15692 | shlibpath_var=LD_LIBRARY_PATH |
15693 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15694 | case $host_os in |
15695 | openbsd2.[89] | openbsd2.[89].*) |
15696 | shlibpath_overrides_runpath=no |
15697 | ;; |
15698 | *) |
15699 | shlibpath_overrides_runpath=yes |
15700 | ;; |
15701 | esac |
15702 | else |
15703 | shlibpath_overrides_runpath=yes |
15704 | fi |
15705 | ;; |
15706 | |
15707 | os2*) |
15708 | libname_spec='$name' |
15709 | shrext_cmds=".dll" |
15710 | need_lib_prefix=no |
15711 | library_names_spec='$libname${shared_ext} $libname.a' |
15712 | dynamic_linker='OS/2 ld.exe' |
15713 | shlibpath_var=LIBPATH |
15714 | ;; |
15715 | |
15716 | osf3* | osf4* | osf5*) |
15717 | version_type=osf |
15718 | need_lib_prefix=no |
15719 | need_version=no |
15720 | soname_spec='${libname}${release}${shared_ext}$major' |
15721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15722 | shlibpath_var=LD_LIBRARY_PATH |
15723 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15724 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15725 | ;; |
15726 | |
15727 | solaris*) |
15728 | version_type=linux |
15729 | need_lib_prefix=no |
15730 | need_version=no |
15731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15732 | soname_spec='${libname}${release}${shared_ext}$major' |
15733 | shlibpath_var=LD_LIBRARY_PATH |
15734 | shlibpath_overrides_runpath=yes |
15735 | hardcode_into_libs=yes |
15736 | # ldd complains unless libraries are executable |
15737 | postinstall_cmds='chmod +x $lib' |
15738 | ;; |
15739 | |
15740 | sunos4*) |
15741 | version_type=sunos |
15742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15743 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15744 | shlibpath_var=LD_LIBRARY_PATH |
15745 | shlibpath_overrides_runpath=yes |
15746 | if test "$with_gnu_ld" = yes; then |
15747 | need_lib_prefix=no |
15748 | fi |
15749 | need_version=yes |
15750 | ;; |
15751 | |
15752 | sysv4 | sysv4.3*) |
15753 | version_type=linux |
15754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15755 | soname_spec='${libname}${release}${shared_ext}$major' |
15756 | shlibpath_var=LD_LIBRARY_PATH |
15757 | case $host_vendor in |
15758 | sni) |
15759 | shlibpath_overrides_runpath=no |
15760 | need_lib_prefix=no |
15761 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15762 | runpath_var=LD_RUN_PATH |
15763 | ;; |
15764 | siemens) |
15765 | need_lib_prefix=no |
15766 | ;; |
15767 | motorola) |
15768 | need_lib_prefix=no |
15769 | need_version=no |
15770 | shlibpath_overrides_runpath=no |
15771 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15772 | ;; |
15773 | esac |
15774 | ;; |
15775 | |
15776 | sysv4*MP*) |
15777 | if test -d /usr/nec ;then |
15778 | version_type=linux |
15779 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15780 | soname_spec='$libname${shared_ext}.$major' |
15781 | shlibpath_var=LD_LIBRARY_PATH |
15782 | fi |
15783 | ;; |
15784 | |
15785 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15786 | version_type=freebsd-elf |
15787 | need_lib_prefix=no |
15788 | need_version=no |
15789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15790 | soname_spec='${libname}${release}${shared_ext}$major' |
15791 | shlibpath_var=LD_LIBRARY_PATH |
15792 | hardcode_into_libs=yes |
15793 | if test "$with_gnu_ld" = yes; then |
15794 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15795 | shlibpath_overrides_runpath=no |
15796 | else |
15797 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15798 | shlibpath_overrides_runpath=yes |
15799 | case $host_os in |
15800 | sco3.2v5*) |
15801 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15802 | ;; |
15803 | esac |
15804 | fi |
15805 | sys_lib_dlsearch_path_spec='/usr/lib' |
15806 | ;; |
15807 | |
15808 | uts4*) |
15809 | version_type=linux |
15810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15811 | soname_spec='${libname}${release}${shared_ext}$major' |
15812 | shlibpath_var=LD_LIBRARY_PATH |
15813 | ;; |
15814 | |
15815 | *) |
15816 | dynamic_linker=no |
15817 | ;; |
15818 | esac |
dd184caf |
15819 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15820 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15821 | test "$dynamic_linker" = no && can_build_shared=no |
15822 | |
15823 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15824 | if test "$GCC" = yes; then |
15825 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15826 | fi |
15827 | |
dd184caf |
15828 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15829 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15830 | hardcode_action_F77= |
15831 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15832 | test -n "$runpath_var_F77" || \ |
15833 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15834 | |
15835 | # We can hardcode non-existant directories. |
15836 | if test "$hardcode_direct_F77" != no && |
15837 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15838 | # have to relink, otherwise we might link with an installed library |
15839 | # when we should be linking with a yet-to-be-installed one |
15840 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15841 | test "$hardcode_minus_L_F77" != no; then |
15842 | # Linking always hardcodes the temporary library directory. |
15843 | hardcode_action_F77=relink |
15844 | else |
15845 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15846 | hardcode_action_F77=immediate |
15847 | fi |
15848 | else |
15849 | # We cannot hardcode anything, or else we can only hardcode existing |
15850 | # directories. |
15851 | hardcode_action_F77=unsupported |
15852 | fi |
dd184caf |
15853 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15854 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15855 | |
15856 | if test "$hardcode_action_F77" = relink; then |
15857 | # Fast installation is not supported |
15858 | enable_fast_install=no |
15859 | elif test "$shlibpath_overrides_runpath" = yes || |
15860 | test "$enable_shared" = no; then |
15861 | # Fast installation is not necessary |
15862 | enable_fast_install=needless |
15863 | fi |
15864 | |
15865 | |
15866 | # The else clause should only fire when bootstrapping the |
15867 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15868 | # with your package, and you will get complaints that there are |
15869 | # no rules to generate ltmain.sh. |
15870 | if test -f "$ltmain"; then |
15871 | # See if we are running on zsh, and set the options which allow our commands through |
15872 | # without removal of \ escapes. |
15873 | if test -n "${ZSH_VERSION+set}" ; then |
15874 | setopt NO_GLOB_SUBST |
15875 | fi |
15876 | # Now quote all the things that may contain metacharacters while being |
15877 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15878 | # variables and quote the copies for generation of the libtool script. |
15879 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15880 | SED SHELL STRIP \ |
15881 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15882 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15883 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15884 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15885 | lt_cv_sys_global_symbol_to_c_name_address \ |
15886 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15887 | old_postinstall_cmds old_postuninstall_cmds \ |
15888 | compiler_F77 \ |
15889 | CC_F77 \ |
15890 | LD_F77 \ |
15891 | lt_prog_compiler_wl_F77 \ |
15892 | lt_prog_compiler_pic_F77 \ |
15893 | lt_prog_compiler_static_F77 \ |
15894 | lt_prog_compiler_no_builtin_flag_F77 \ |
15895 | export_dynamic_flag_spec_F77 \ |
15896 | thread_safe_flag_spec_F77 \ |
15897 | whole_archive_flag_spec_F77 \ |
15898 | enable_shared_with_static_runtimes_F77 \ |
15899 | old_archive_cmds_F77 \ |
15900 | old_archive_from_new_cmds_F77 \ |
15901 | predep_objects_F77 \ |
15902 | postdep_objects_F77 \ |
15903 | predeps_F77 \ |
15904 | postdeps_F77 \ |
15905 | compiler_lib_search_path_F77 \ |
15906 | archive_cmds_F77 \ |
15907 | archive_expsym_cmds_F77 \ |
15908 | postinstall_cmds_F77 \ |
15909 | postuninstall_cmds_F77 \ |
15910 | old_archive_from_expsyms_cmds_F77 \ |
15911 | allow_undefined_flag_F77 \ |
15912 | no_undefined_flag_F77 \ |
15913 | export_symbols_cmds_F77 \ |
15914 | hardcode_libdir_flag_spec_F77 \ |
15915 | hardcode_libdir_flag_spec_ld_F77 \ |
15916 | hardcode_libdir_separator_F77 \ |
15917 | hardcode_automatic_F77 \ |
15918 | module_cmds_F77 \ |
15919 | module_expsym_cmds_F77 \ |
15920 | lt_cv_prog_compiler_c_o_F77 \ |
15921 | exclude_expsyms_F77 \ |
15922 | include_expsyms_F77; do |
15923 | |
15924 | case $var in |
15925 | old_archive_cmds_F77 | \ |
15926 | old_archive_from_new_cmds_F77 | \ |
15927 | archive_cmds_F77 | \ |
15928 | archive_expsym_cmds_F77 | \ |
15929 | module_cmds_F77 | \ |
15930 | module_expsym_cmds_F77 | \ |
15931 | old_archive_from_expsyms_cmds_F77 | \ |
15932 | export_symbols_cmds_F77 | \ |
15933 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15934 | postinstall_cmds | postuninstall_cmds | \ |
15935 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15936 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15937 | # Double-quote double-evaled strings. |
15938 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15939 | ;; |
15940 | *) |
15941 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15942 | ;; |
15943 | esac |
15944 | done |
15945 | |
15946 | case $lt_echo in |
15947 | *'\$0 --fallback-echo"') |
15948 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15949 | ;; |
15950 | esac |
15951 | |
15952 | cfgfile="$ofile" |
15953 | |
15954 | cat <<__EOF__ >> "$cfgfile" |
15955 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15956 | |
15957 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15958 | |
15959 | # Shell to use when invoking shell scripts. |
15960 | SHELL=$lt_SHELL |
15961 | |
15962 | # Whether or not to build shared libraries. |
15963 | build_libtool_libs=$enable_shared |
15964 | |
15965 | # Whether or not to build static libraries. |
15966 | build_old_libs=$enable_static |
15967 | |
15968 | # Whether or not to add -lc for building shared libraries. |
15969 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15970 | |
15971 | # Whether or not to disallow shared libs when runtime libs are static |
15972 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15973 | |
15974 | # Whether or not to optimize for fast installation. |
15975 | fast_install=$enable_fast_install |
15976 | |
15977 | # The host system. |
15978 | host_alias=$host_alias |
15979 | host=$host |
15980 | host_os=$host_os |
15981 | |
15982 | # The build system. |
15983 | build_alias=$build_alias |
15984 | build=$build |
15985 | build_os=$build_os |
15986 | |
15987 | # An echo program that does not interpret backslashes. |
15988 | echo=$lt_echo |
15989 | |
15990 | # The archiver. |
15991 | AR=$lt_AR |
15992 | AR_FLAGS=$lt_AR_FLAGS |
15993 | |
15994 | # A C compiler. |
15995 | LTCC=$lt_LTCC |
15996 | |
15997 | # LTCC compiler flags. |
15998 | LTCFLAGS=$lt_LTCFLAGS |
15999 | |
16000 | # A language-specific compiler. |
16001 | CC=$lt_compiler_F77 |
16002 | |
16003 | # Is the compiler the GNU C compiler? |
16004 | with_gcc=$GCC_F77 |
16005 | |
d9898ee8 |
16006 | # An ERE matcher. |
16007 | EGREP=$lt_EGREP |
16008 | |
16009 | # The linker used to build libraries. |
16010 | LD=$lt_LD_F77 |
16011 | |
16012 | # Whether we need hard or soft links. |
16013 | LN_S=$lt_LN_S |
16014 | |
16015 | # A BSD-compatible nm program. |
16016 | NM=$lt_NM |
16017 | |
16018 | # A symbol stripping program |
16019 | STRIP=$lt_STRIP |
16020 | |
16021 | # Used to examine libraries when file_magic_cmd begins "file" |
16022 | MAGIC_CMD=$MAGIC_CMD |
16023 | |
16024 | # Used on cygwin: DLL creation program. |
16025 | DLLTOOL="$DLLTOOL" |
16026 | |
16027 | # Used on cygwin: object dumper. |
16028 | OBJDUMP="$OBJDUMP" |
16029 | |
16030 | # Used on cygwin: assembler. |
16031 | AS="$AS" |
16032 | |
16033 | # The name of the directory that contains temporary libtool files. |
16034 | objdir=$objdir |
16035 | |
16036 | # How to create reloadable object files. |
16037 | reload_flag=$lt_reload_flag |
16038 | reload_cmds=$lt_reload_cmds |
16039 | |
16040 | # How to pass a linker flag through the compiler. |
16041 | wl=$lt_lt_prog_compiler_wl_F77 |
16042 | |
16043 | # Object file suffix (normally "o"). |
16044 | objext="$ac_objext" |
16045 | |
16046 | # Old archive suffix (normally "a"). |
16047 | libext="$libext" |
16048 | |
16049 | # Shared library suffix (normally ".so"). |
16050 | shrext_cmds='$shrext_cmds' |
16051 | |
16052 | # Executable file suffix (normally ""). |
16053 | exeext="$exeext" |
16054 | |
16055 | # Additional compiler flags for building library objects. |
16056 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16057 | pic_mode=$pic_mode |
16058 | |
16059 | # What is the maximum length of a command? |
16060 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16061 | |
16062 | # Does compiler simultaneously support -c and -o options? |
16063 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16064 | |
16065 | # Must we lock files when doing compilation? |
16066 | need_locks=$lt_need_locks |
16067 | |
16068 | # Do we need the lib prefix for modules? |
16069 | need_lib_prefix=$need_lib_prefix |
16070 | |
16071 | # Do we need a version for libraries? |
16072 | need_version=$need_version |
16073 | |
16074 | # Whether dlopen is supported. |
16075 | dlopen_support=$enable_dlopen |
16076 | |
16077 | # Whether dlopen of programs is supported. |
16078 | dlopen_self=$enable_dlopen_self |
16079 | |
16080 | # Whether dlopen of statically linked programs is supported. |
16081 | dlopen_self_static=$enable_dlopen_self_static |
16082 | |
16083 | # Compiler flag to prevent dynamic linking. |
16084 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16085 | |
16086 | # Compiler flag to turn off builtin functions. |
16087 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16088 | |
16089 | # Compiler flag to allow reflexive dlopens. |
16090 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16091 | |
16092 | # Compiler flag to generate shared objects directly from archives. |
16093 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16094 | |
16095 | # Compiler flag to generate thread-safe objects. |
16096 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16097 | |
16098 | # Library versioning type. |
16099 | version_type=$version_type |
16100 | |
16101 | # Format of library name prefix. |
16102 | libname_spec=$lt_libname_spec |
16103 | |
16104 | # List of archive names. First name is the real one, the rest are links. |
16105 | # The last name is the one that the linker finds with -lNAME. |
16106 | library_names_spec=$lt_library_names_spec |
16107 | |
16108 | # The coded name of the library, if different from the real name. |
16109 | soname_spec=$lt_soname_spec |
16110 | |
16111 | # Commands used to build and install an old-style archive. |
16112 | RANLIB=$lt_RANLIB |
16113 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16114 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16115 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16116 | |
16117 | # Create an old-style archive from a shared archive. |
16118 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16119 | |
16120 | # Create a temporary old-style archive to link instead of a shared archive. |
16121 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16122 | |
16123 | # Commands used to build and install a shared archive. |
16124 | archive_cmds=$lt_archive_cmds_F77 |
16125 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16126 | postinstall_cmds=$lt_postinstall_cmds |
16127 | postuninstall_cmds=$lt_postuninstall_cmds |
16128 | |
16129 | # Commands used to build a loadable module (assumed same as above if empty) |
16130 | module_cmds=$lt_module_cmds_F77 |
16131 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16132 | |
16133 | # Commands to strip libraries. |
16134 | old_striplib=$lt_old_striplib |
16135 | striplib=$lt_striplib |
16136 | |
16137 | # Dependencies to place before the objects being linked to create a |
16138 | # shared library. |
dd184caf |
16139 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16140 | |
16141 | # Dependencies to place after the objects being linked to create a |
16142 | # shared library. |
dd184caf |
16143 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16144 | |
16145 | # Dependencies to place before the objects being linked to create a |
16146 | # shared library. |
16147 | predeps=$lt_predeps_F77 |
16148 | |
16149 | # Dependencies to place after the objects being linked to create a |
16150 | # shared library. |
16151 | postdeps=$lt_postdeps_F77 |
16152 | |
16153 | # The library search path used internally by the compiler when linking |
16154 | # a shared library. |
dd184caf |
16155 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16156 | |
16157 | # Method to check whether dependent libraries are shared objects. |
16158 | deplibs_check_method=$lt_deplibs_check_method |
16159 | |
16160 | # Command to use when deplibs_check_method == file_magic. |
16161 | file_magic_cmd=$lt_file_magic_cmd |
16162 | |
16163 | # Flag that allows shared libraries with undefined symbols to be built. |
16164 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16165 | |
16166 | # Flag that forces no undefined symbols. |
16167 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16168 | |
16169 | # Commands used to finish a libtool library installation in a directory. |
16170 | finish_cmds=$lt_finish_cmds |
16171 | |
16172 | # Same as above, but a single script fragment to be evaled but not shown. |
16173 | finish_eval=$lt_finish_eval |
16174 | |
16175 | # Take the output of nm and produce a listing of raw symbols and C names. |
16176 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16177 | |
16178 | # Transform the output of nm in a proper C declaration |
16179 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16180 | |
16181 | # Transform the output of nm in a C name address pair |
16182 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16183 | |
16184 | # This is the shared library runtime path variable. |
16185 | runpath_var=$runpath_var |
16186 | |
16187 | # This is the shared library path variable. |
16188 | shlibpath_var=$shlibpath_var |
16189 | |
16190 | # Is shlibpath searched before the hard-coded library search path? |
16191 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16192 | |
16193 | # How to hardcode a shared library path into an executable. |
16194 | hardcode_action=$hardcode_action_F77 |
16195 | |
16196 | # Whether we should hardcode library paths into libraries. |
16197 | hardcode_into_libs=$hardcode_into_libs |
16198 | |
16199 | # Flag to hardcode \$libdir into a binary during linking. |
16200 | # This must work even if \$libdir does not exist. |
16201 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16202 | |
16203 | # If ld is used when linking, flag to hardcode \$libdir into |
16204 | # a binary during linking. This must work even if \$libdir does |
16205 | # not exist. |
16206 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16207 | |
16208 | # Whether we need a single -rpath flag with a separated argument. |
16209 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16210 | |
16211 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16212 | # resulting binary. |
16213 | hardcode_direct=$hardcode_direct_F77 |
16214 | |
16215 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16216 | # resulting binary. |
16217 | hardcode_minus_L=$hardcode_minus_L_F77 |
16218 | |
16219 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16220 | # the resulting binary. |
16221 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16222 | |
16223 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16224 | # and all subsequent libraries and executables linked against it. |
16225 | hardcode_automatic=$hardcode_automatic_F77 |
16226 | |
16227 | # Variables whose values should be saved in libtool wrapper scripts and |
16228 | # restored at relink time. |
16229 | variables_saved_for_relink="$variables_saved_for_relink" |
16230 | |
16231 | # Whether libtool must link a program against all its dependency libraries. |
16232 | link_all_deplibs=$link_all_deplibs_F77 |
16233 | |
16234 | # Compile-time system search path for libraries |
dd184caf |
16235 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16236 | |
16237 | # Run-time system search path for libraries |
16238 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16239 | |
16240 | # Fix the shell variable \$srcfile for the compiler. |
16241 | fix_srcfile_path="$fix_srcfile_path_F77" |
16242 | |
16243 | # Set to yes if exported symbols are required. |
16244 | always_export_symbols=$always_export_symbols_F77 |
16245 | |
16246 | # The commands to list exported symbols. |
16247 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16248 | |
16249 | # The commands to extract the exported symbol list from a shared archive. |
16250 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16251 | |
16252 | # Symbols that should not be listed in the preloaded symbols. |
16253 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16254 | |
16255 | # Symbols that must always be exported. |
16256 | include_expsyms=$lt_include_expsyms_F77 |
16257 | |
16258 | # ### END LIBTOOL TAG CONFIG: $tagname |
16259 | |
16260 | __EOF__ |
16261 | |
16262 | |
16263 | else |
16264 | # If there is no Makefile yet, we rely on a make rule to execute |
16265 | # `config.status --recheck' to rerun these tests and create the |
16266 | # libtool script then. |
16267 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16268 | if test -f "$ltmain_in"; then |
16269 | test -f Makefile && make "$ltmain" |
16270 | fi |
16271 | fi |
16272 | |
16273 | |
16274 | ac_ext=c |
16275 | ac_cpp='$CPP $CPPFLAGS' |
16276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16279 | |
16280 | CC="$lt_save_CC" |
16281 | |
16282 | else |
16283 | tagname="" |
16284 | fi |
16285 | ;; |
16286 | |
16287 | GCJ) |
16288 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16289 | |
16290 | |
d9898ee8 |
16291 | # Source file extension for Java test sources. |
16292 | ac_ext=java |
16293 | |
16294 | # Object file extension for compiled Java test sources. |
16295 | objext=o |
16296 | objext_GCJ=$objext |
16297 | |
16298 | # Code to be used in simple compile tests |
16299 | lt_simple_compile_test_code="class foo {}\n" |
16300 | |
16301 | # Code to be used in simple link tests |
16302 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16303 | |
16304 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16305 | |
16306 | # If no C compiler was specified, use CC. |
16307 | LTCC=${LTCC-"$CC"} |
16308 | |
16309 | # If no C compiler flags were specified, use CFLAGS. |
16310 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16311 | |
16312 | # Allow CC to be a program name with arguments. |
16313 | compiler=$CC |
16314 | |
16315 | |
16316 | # save warnings/boilerplate of simple test code |
16317 | ac_outfile=conftest.$ac_objext |
16318 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16319 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16320 | _lt_compiler_boilerplate=`cat conftest.err` |
16321 | $rm conftest* |
16322 | |
16323 | ac_outfile=conftest.$ac_objext |
16324 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16325 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16326 | _lt_linker_boilerplate=`cat conftest.err` |
16327 | $rm conftest* |
16328 | |
16329 | |
16330 | # Allow CC to be a program name with arguments. |
16331 | lt_save_CC="$CC" |
16332 | CC=${GCJ-"gcj"} |
16333 | compiler=$CC |
16334 | compiler_GCJ=$CC |
16335 | for cc_temp in $compiler""; do |
16336 | case $cc_temp in |
16337 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16338 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16339 | \-*) ;; |
16340 | *) break;; |
16341 | esac |
16342 | done |
16343 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16344 | |
16345 | |
16346 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16347 | archive_cmds_need_lc_GCJ=no |
16348 | |
16349 | old_archive_cmds_GCJ=$old_archive_cmds |
16350 | |
16351 | |
16352 | lt_prog_compiler_no_builtin_flag_GCJ= |
16353 | |
16354 | if test "$GCC" = yes; then |
16355 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16356 | |
16357 | |
dd184caf |
16358 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16359 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16360 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16362 | else |
16363 | lt_cv_prog_compiler_rtti_exceptions=no |
16364 | ac_outfile=conftest.$ac_objext |
16365 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16366 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16367 | # Insert the option either (1) after the last *FLAGS variable, or |
16368 | # (2) before a word containing "conftest.", or (3) at the end. |
16369 | # Note that $ac_compile itself does not contain backslashes and begins |
16370 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16371 | # The option is referenced via a variable to avoid confusing sed. |
16372 | lt_compile=`echo "$ac_compile" | $SED \ |
16373 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16374 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16375 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16376 | (eval echo "\"\$as_me:16376: $lt_compile\"" >&5) |
d9898ee8 |
16377 | (eval "$lt_compile" 2>conftest.err) |
16378 | ac_status=$? |
16379 | cat conftest.err >&5 |
dd184caf |
16380 | echo "$as_me:16380: \$? = $ac_status" >&5 |
d9898ee8 |
16381 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16382 | # The compiler can only warn and ignore the option if not recognized |
16383 | # So say no if there are warnings other than the usual output. |
16384 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16385 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16386 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16387 | lt_cv_prog_compiler_rtti_exceptions=yes |
16388 | fi |
16389 | fi |
16390 | $rm conftest* |
16391 | |
16392 | fi |
dd184caf |
16393 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16394 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16395 | |
16396 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16397 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16398 | else |
16399 | : |
16400 | fi |
16401 | |
16402 | fi |
16403 | |
16404 | lt_prog_compiler_wl_GCJ= |
16405 | lt_prog_compiler_pic_GCJ= |
16406 | lt_prog_compiler_static_GCJ= |
16407 | |
dd184caf |
16408 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16409 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16410 | |
16411 | if test "$GCC" = yes; then |
16412 | lt_prog_compiler_wl_GCJ='-Wl,' |
16413 | lt_prog_compiler_static_GCJ='-static' |
16414 | |
16415 | case $host_os in |
16416 | aix*) |
16417 | # All AIX code is PIC. |
16418 | if test "$host_cpu" = ia64; then |
16419 | # AIX 5 now supports IA64 processor |
16420 | lt_prog_compiler_static_GCJ='-Bstatic' |
16421 | fi |
16422 | ;; |
16423 | |
16424 | amigaos*) |
16425 | # FIXME: we need at least 68020 code to build shared libraries, but |
16426 | # adding the `-m68020' flag to GCC prevents building anything better, |
16427 | # like `-m68040'. |
16428 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16429 | ;; |
16430 | |
16431 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16432 | # PIC is the default for these OSes. |
16433 | ;; |
16434 | |
16435 | mingw* | pw32* | os2*) |
16436 | # This hack is so that the source file can tell whether it is being |
16437 | # built for inclusion in a dll (and should export symbols for example). |
16438 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16439 | ;; |
16440 | |
16441 | darwin* | rhapsody*) |
16442 | # PIC is the default on this platform |
16443 | # Common symbols not allowed in MH_DYLIB files |
16444 | lt_prog_compiler_pic_GCJ='-fno-common' |
16445 | ;; |
16446 | |
16447 | interix3*) |
16448 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16449 | # Instead, we relocate shared libraries at runtime. |
16450 | ;; |
16451 | |
16452 | msdosdjgpp*) |
16453 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16454 | # on systems that don't support them. |
16455 | lt_prog_compiler_can_build_shared_GCJ=no |
16456 | enable_shared=no |
16457 | ;; |
16458 | |
16459 | sysv4*MP*) |
16460 | if test -d /usr/nec; then |
16461 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16462 | fi |
16463 | ;; |
16464 | |
16465 | hpux*) |
16466 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16467 | # not for PA HP-UX. |
16468 | case $host_cpu in |
16469 | hppa*64*|ia64*) |
16470 | # +Z the default |
16471 | ;; |
16472 | *) |
16473 | lt_prog_compiler_pic_GCJ='-fPIC' |
16474 | ;; |
16475 | esac |
16476 | ;; |
16477 | |
16478 | *) |
16479 | lt_prog_compiler_pic_GCJ='-fPIC' |
16480 | ;; |
16481 | esac |
16482 | else |
16483 | # PORTME Check for flag to pass linker flags through the system compiler. |
16484 | case $host_os in |
16485 | aix*) |
16486 | lt_prog_compiler_wl_GCJ='-Wl,' |
16487 | if test "$host_cpu" = ia64; then |
16488 | # AIX 5 now supports IA64 processor |
16489 | lt_prog_compiler_static_GCJ='-Bstatic' |
16490 | else |
16491 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16492 | fi |
16493 | ;; |
16494 | darwin*) |
16495 | # PIC is the default on this platform |
16496 | # Common symbols not allowed in MH_DYLIB files |
16497 | case $cc_basename in |
16498 | xlc*) |
16499 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16500 | lt_prog_compiler_wl_GCJ='-Wl,' |
16501 | ;; |
16502 | esac |
16503 | ;; |
16504 | |
16505 | mingw* | pw32* | os2*) |
16506 | # This hack is so that the source file can tell whether it is being |
16507 | # built for inclusion in a dll (and should export symbols for example). |
16508 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16509 | ;; |
16510 | |
16511 | hpux9* | hpux10* | hpux11*) |
16512 | lt_prog_compiler_wl_GCJ='-Wl,' |
16513 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16514 | # not for PA HP-UX. |
16515 | case $host_cpu in |
16516 | hppa*64*|ia64*) |
16517 | # +Z the default |
16518 | ;; |
16519 | *) |
16520 | lt_prog_compiler_pic_GCJ='+Z' |
16521 | ;; |
16522 | esac |
16523 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16524 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16525 | ;; |
16526 | |
16527 | irix5* | irix6* | nonstopux*) |
16528 | lt_prog_compiler_wl_GCJ='-Wl,' |
16529 | # PIC (with -KPIC) is the default. |
16530 | lt_prog_compiler_static_GCJ='-non_shared' |
16531 | ;; |
16532 | |
16533 | newsos6) |
16534 | lt_prog_compiler_pic_GCJ='-KPIC' |
16535 | lt_prog_compiler_static_GCJ='-Bstatic' |
16536 | ;; |
16537 | |
16538 | linux*) |
16539 | case $cc_basename in |
16540 | icc* | ecc*) |
16541 | lt_prog_compiler_wl_GCJ='-Wl,' |
16542 | lt_prog_compiler_pic_GCJ='-KPIC' |
16543 | lt_prog_compiler_static_GCJ='-static' |
16544 | ;; |
16545 | pgcc* | pgf77* | pgf90* | pgf95*) |
16546 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16547 | # which looks to be a dead project) |
16548 | lt_prog_compiler_wl_GCJ='-Wl,' |
16549 | lt_prog_compiler_pic_GCJ='-fpic' |
16550 | lt_prog_compiler_static_GCJ='-Bstatic' |
16551 | ;; |
16552 | ccc*) |
16553 | lt_prog_compiler_wl_GCJ='-Wl,' |
16554 | # All Alpha code is PIC. |
16555 | lt_prog_compiler_static_GCJ='-non_shared' |
16556 | ;; |
16557 | esac |
16558 | ;; |
16559 | |
16560 | osf3* | osf4* | osf5*) |
16561 | lt_prog_compiler_wl_GCJ='-Wl,' |
16562 | # All OSF/1 code is PIC. |
16563 | lt_prog_compiler_static_GCJ='-non_shared' |
16564 | ;; |
16565 | |
16566 | solaris*) |
16567 | lt_prog_compiler_pic_GCJ='-KPIC' |
16568 | lt_prog_compiler_static_GCJ='-Bstatic' |
16569 | case $cc_basename in |
16570 | f77* | f90* | f95*) |
16571 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16572 | *) |
16573 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16574 | esac |
16575 | ;; |
16576 | |
16577 | sunos4*) |
16578 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16579 | lt_prog_compiler_pic_GCJ='-PIC' |
16580 | lt_prog_compiler_static_GCJ='-Bstatic' |
16581 | ;; |
16582 | |
16583 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16584 | lt_prog_compiler_wl_GCJ='-Wl,' |
16585 | lt_prog_compiler_pic_GCJ='-KPIC' |
16586 | lt_prog_compiler_static_GCJ='-Bstatic' |
16587 | ;; |
16588 | |
16589 | sysv4*MP*) |
16590 | if test -d /usr/nec ;then |
16591 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16592 | lt_prog_compiler_static_GCJ='-Bstatic' |
16593 | fi |
16594 | ;; |
16595 | |
16596 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16597 | lt_prog_compiler_wl_GCJ='-Wl,' |
16598 | lt_prog_compiler_pic_GCJ='-KPIC' |
16599 | lt_prog_compiler_static_GCJ='-Bstatic' |
16600 | ;; |
16601 | |
16602 | unicos*) |
16603 | lt_prog_compiler_wl_GCJ='-Wl,' |
16604 | lt_prog_compiler_can_build_shared_GCJ=no |
16605 | ;; |
16606 | |
16607 | uts4*) |
16608 | lt_prog_compiler_pic_GCJ='-pic' |
16609 | lt_prog_compiler_static_GCJ='-Bstatic' |
16610 | ;; |
16611 | |
16612 | *) |
16613 | lt_prog_compiler_can_build_shared_GCJ=no |
16614 | ;; |
16615 | esac |
16616 | fi |
16617 | |
dd184caf |
16618 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16619 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16620 | |
16621 | # |
16622 | # Check to make sure the PIC flag actually works. |
16623 | # |
16624 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16625 | |
dd184caf |
16626 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16627 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16628 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16630 | else |
16631 | lt_prog_compiler_pic_works_GCJ=no |
16632 | ac_outfile=conftest.$ac_objext |
16633 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16634 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16635 | # Insert the option either (1) after the last *FLAGS variable, or |
16636 | # (2) before a word containing "conftest.", or (3) at the end. |
16637 | # Note that $ac_compile itself does not contain backslashes and begins |
16638 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16639 | # The option is referenced via a variable to avoid confusing sed. |
16640 | lt_compile=`echo "$ac_compile" | $SED \ |
16641 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16642 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16643 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16644 | (eval echo "\"\$as_me:16644: $lt_compile\"" >&5) |
d9898ee8 |
16645 | (eval "$lt_compile" 2>conftest.err) |
16646 | ac_status=$? |
16647 | cat conftest.err >&5 |
dd184caf |
16648 | echo "$as_me:16648: \$? = $ac_status" >&5 |
d9898ee8 |
16649 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16650 | # The compiler can only warn and ignore the option if not recognized |
16651 | # So say no if there are warnings other than the usual output. |
16652 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16653 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16654 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16655 | lt_prog_compiler_pic_works_GCJ=yes |
16656 | fi |
16657 | fi |
16658 | $rm conftest* |
16659 | |
16660 | fi |
dd184caf |
16661 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16662 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16663 | |
16664 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16665 | case $lt_prog_compiler_pic_GCJ in |
16666 | "" | " "*) ;; |
16667 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16668 | esac |
16669 | else |
16670 | lt_prog_compiler_pic_GCJ= |
16671 | lt_prog_compiler_can_build_shared_GCJ=no |
16672 | fi |
16673 | |
16674 | fi |
16675 | case $host_os in |
16676 | # For platforms which do not support PIC, -DPIC is meaningless: |
16677 | *djgpp*) |
16678 | lt_prog_compiler_pic_GCJ= |
16679 | ;; |
16680 | *) |
16681 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16682 | ;; |
16683 | esac |
16684 | |
16685 | # |
16686 | # Check to make sure the static flag actually works. |
16687 | # |
16688 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
dd184caf |
16689 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16690 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16691 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16693 | else |
16694 | lt_prog_compiler_static_works_GCJ=no |
16695 | save_LDFLAGS="$LDFLAGS" |
16696 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16697 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16698 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16699 | # The linker can only warn and ignore the option if not recognized |
16700 | # So say no if there are warnings |
16701 | if test -s conftest.err; then |
16702 | # Append any errors to the config.log. |
16703 | cat conftest.err 1>&5 |
16704 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16705 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16706 | if diff conftest.exp conftest.er2 >/dev/null; then |
16707 | lt_prog_compiler_static_works_GCJ=yes |
16708 | fi |
16709 | else |
16710 | lt_prog_compiler_static_works_GCJ=yes |
16711 | fi |
16712 | fi |
16713 | $rm conftest* |
16714 | LDFLAGS="$save_LDFLAGS" |
16715 | |
16716 | fi |
dd184caf |
16717 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16718 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16719 | |
16720 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16721 | : |
16722 | else |
16723 | lt_prog_compiler_static_GCJ= |
16724 | fi |
16725 | |
16726 | |
dd184caf |
16727 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16728 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16729 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16731 | else |
16732 | lt_cv_prog_compiler_c_o_GCJ=no |
16733 | $rm -r conftest 2>/dev/null |
16734 | mkdir conftest |
16735 | cd conftest |
16736 | mkdir out |
16737 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16738 | |
16739 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16740 | # Insert the option either (1) after the last *FLAGS variable, or |
16741 | # (2) before a word containing "conftest.", or (3) at the end. |
16742 | # Note that $ac_compile itself does not contain backslashes and begins |
16743 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16744 | lt_compile=`echo "$ac_compile" | $SED \ |
16745 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16746 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16747 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16748 | (eval echo "\"\$as_me:16748: $lt_compile\"" >&5) |
d9898ee8 |
16749 | (eval "$lt_compile" 2>out/conftest.err) |
16750 | ac_status=$? |
16751 | cat out/conftest.err >&5 |
dd184caf |
16752 | echo "$as_me:16752: \$? = $ac_status" >&5 |
d9898ee8 |
16753 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16754 | then |
16755 | # The compiler can only warn and ignore the option if not recognized |
16756 | # So say no if there are warnings |
16757 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16758 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16759 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16760 | lt_cv_prog_compiler_c_o_GCJ=yes |
16761 | fi |
16762 | fi |
16763 | chmod u+w . 2>&5 |
16764 | $rm conftest* |
16765 | # SGI C++ compiler will create directory out/ii_files/ for |
16766 | # template instantiation |
16767 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16768 | $rm out/* && rmdir out |
16769 | cd .. |
16770 | rmdir conftest |
16771 | $rm conftest* |
16772 | |
16773 | fi |
dd184caf |
16774 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16775 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16776 | |
16777 | |
16778 | hard_links="nottested" |
16779 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16780 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
16781 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16782 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16783 | hard_links=yes |
16784 | $rm conftest* |
16785 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16786 | touch conftest.a |
16787 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16788 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
16789 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16790 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16791 | if test "$hard_links" = no; then |
16792 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16793 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16794 | need_locks=warn |
16795 | fi |
16796 | else |
16797 | need_locks=no |
16798 | fi |
16799 | |
dd184caf |
16800 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16801 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16802 | |
16803 | runpath_var= |
16804 | allow_undefined_flag_GCJ= |
16805 | enable_shared_with_static_runtimes_GCJ=no |
16806 | archive_cmds_GCJ= |
16807 | archive_expsym_cmds_GCJ= |
16808 | old_archive_From_new_cmds_GCJ= |
16809 | old_archive_from_expsyms_cmds_GCJ= |
16810 | export_dynamic_flag_spec_GCJ= |
16811 | whole_archive_flag_spec_GCJ= |
16812 | thread_safe_flag_spec_GCJ= |
16813 | hardcode_libdir_flag_spec_GCJ= |
16814 | hardcode_libdir_flag_spec_ld_GCJ= |
16815 | hardcode_libdir_separator_GCJ= |
16816 | hardcode_direct_GCJ=no |
16817 | hardcode_minus_L_GCJ=no |
16818 | hardcode_shlibpath_var_GCJ=unsupported |
16819 | link_all_deplibs_GCJ=unknown |
16820 | hardcode_automatic_GCJ=no |
16821 | module_cmds_GCJ= |
16822 | module_expsym_cmds_GCJ= |
16823 | always_export_symbols_GCJ=no |
16824 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16825 | # include_expsyms should be a list of space-separated symbols to be *always* |
16826 | # included in the symbol list |
16827 | include_expsyms_GCJ= |
16828 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16829 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16830 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16831 | # as well as any symbol that contains `d'. |
16832 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16833 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16834 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16835 | # the symbol is explicitly referenced. Since portable code cannot |
16836 | # rely on this symbol name, it's probably fine to never include it in |
16837 | # preloaded symbol tables. |
16838 | extract_expsyms_cmds= |
16839 | # Just being paranoid about ensuring that cc_basename is set. |
16840 | for cc_temp in $compiler""; do |
16841 | case $cc_temp in |
16842 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16843 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16844 | \-*) ;; |
16845 | *) break;; |
16846 | esac |
16847 | done |
16848 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16849 | |
16850 | case $host_os in |
16851 | cygwin* | mingw* | pw32*) |
16852 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16853 | # When not using gcc, we currently assume that we are using |
16854 | # Microsoft Visual C++. |
16855 | if test "$GCC" != yes; then |
16856 | with_gnu_ld=no |
16857 | fi |
16858 | ;; |
16859 | interix*) |
16860 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16861 | with_gnu_ld=yes |
16862 | ;; |
16863 | openbsd*) |
16864 | with_gnu_ld=no |
16865 | ;; |
16866 | esac |
16867 | |
16868 | ld_shlibs_GCJ=yes |
16869 | if test "$with_gnu_ld" = yes; then |
16870 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16871 | wlarc='${wl}' |
16872 | |
16873 | # Set some defaults for GNU ld with shared library support. These |
16874 | # are reset later if shared libraries are not supported. Putting them |
16875 | # here allows them to be overridden if necessary. |
16876 | runpath_var=LD_RUN_PATH |
16877 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16878 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16879 | # ancient GNU ld didn't support --whole-archive et. al. |
16880 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16881 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16882 | else |
16883 | whole_archive_flag_spec_GCJ= |
16884 | fi |
16885 | supports_anon_versioning=no |
16886 | case `$LD -v 2>/dev/null` in |
16887 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16888 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16889 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16890 | *\ 2.11.*) ;; # other 2.11 versions |
16891 | *) supports_anon_versioning=yes ;; |
16892 | esac |
16893 | |
16894 | # See if GNU ld supports shared libraries. |
16895 | case $host_os in |
16896 | aix3* | aix4* | aix5*) |
16897 | # On AIX/PPC, the GNU linker is very broken |
16898 | if test "$host_cpu" != ia64; then |
16899 | ld_shlibs_GCJ=no |
16900 | cat <<EOF 1>&2 |
16901 | |
16902 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16903 | *** to be unable to reliably create shared libraries on AIX. |
16904 | *** Therefore, libtool is disabling shared libraries support. If you |
16905 | *** really care for shared libraries, you may want to modify your PATH |
16906 | *** so that a non-GNU linker is found, and then restart. |
16907 | |
16908 | EOF |
16909 | fi |
16910 | ;; |
16911 | |
16912 | amigaos*) |
16913 | 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)' |
16914 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16915 | hardcode_minus_L_GCJ=yes |
16916 | |
16917 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16918 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16919 | # to version 4, is to share data among multiple programs linked |
16920 | # with the same dynamic library. Since this doesn't match the |
16921 | # behavior of shared libraries on other platforms, we can't use |
16922 | # them. |
16923 | ld_shlibs_GCJ=no |
16924 | ;; |
16925 | |
16926 | beos*) |
16927 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16928 | allow_undefined_flag_GCJ=unsupported |
16929 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16930 | # support --undefined. This deserves some investigation. FIXME |
16931 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16932 | else |
16933 | ld_shlibs_GCJ=no |
16934 | fi |
16935 | ;; |
16936 | |
16937 | cygwin* | mingw* | pw32*) |
16938 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16939 | # as there is no search path for DLLs. |
16940 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16941 | allow_undefined_flag_GCJ=unsupported |
16942 | always_export_symbols_GCJ=no |
16943 | enable_shared_with_static_runtimes_GCJ=yes |
16944 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16945 | |
16946 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16947 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16948 | # If the export-symbols file already is a .def file (1st line |
16949 | # is EXPORTS), use it as is; otherwise, prepend... |
16950 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16951 | cp $export_symbols $output_objdir/$soname.def; |
16952 | else |
16953 | echo EXPORTS > $output_objdir/$soname.def; |
16954 | cat $export_symbols >> $output_objdir/$soname.def; |
16955 | fi~ |
16956 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16957 | else |
16958 | ld_shlibs_GCJ=no |
16959 | fi |
16960 | ;; |
16961 | |
16962 | interix3*) |
16963 | hardcode_direct_GCJ=no |
16964 | hardcode_shlibpath_var_GCJ=no |
16965 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16966 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16967 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16968 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16969 | # default) and relocated if they conflict, which is a slow very memory |
16970 | # consuming and fragmenting process. To avoid this, we pick a random, |
16971 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16972 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16973 | 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' |
16974 | 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' |
16975 | ;; |
16976 | |
16977 | linux*) |
16978 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16979 | tmp_addflag= |
16980 | case $cc_basename,$host_cpu in |
16981 | pgcc*) # Portland Group C compiler |
16982 | 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' |
16983 | tmp_addflag=' $pic_flag' |
16984 | ;; |
16985 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16986 | 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' |
16987 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16988 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16989 | tmp_addflag=' -i_dynamic' ;; |
16990 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16991 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16992 | ifc* | ifort*) # Intel Fortran compiler |
16993 | tmp_addflag=' -nofor_main' ;; |
16994 | esac |
16995 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16996 | |
16997 | if test $supports_anon_versioning = yes; then |
16998 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16999 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17000 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
17001 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
17002 | fi |
17003 | else |
17004 | ld_shlibs_GCJ=no |
17005 | fi |
17006 | ;; |
17007 | |
17008 | netbsd*) |
17009 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17010 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17011 | wlarc= |
17012 | else |
17013 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17014 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17015 | fi |
17016 | ;; |
17017 | |
17018 | solaris*) |
17019 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17020 | ld_shlibs_GCJ=no |
17021 | cat <<EOF 1>&2 |
17022 | |
17023 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17024 | *** create shared libraries on Solaris systems. Therefore, libtool |
17025 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17026 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17027 | *** your PATH or compiler configuration so that the native linker is |
17028 | *** used, and then restart. |
17029 | |
17030 | EOF |
17031 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17032 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17033 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17034 | else |
17035 | ld_shlibs_GCJ=no |
17036 | fi |
17037 | ;; |
17038 | |
17039 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17040 | case `$LD -v 2>&1` in |
17041 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17042 | ld_shlibs_GCJ=no |
17043 | cat <<_LT_EOF 1>&2 |
17044 | |
17045 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17046 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17047 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17048 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17049 | *** your PATH or compiler configuration so that the native linker is |
17050 | *** used, and then restart. |
17051 | |
17052 | _LT_EOF |
17053 | ;; |
17054 | *) |
17055 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17056 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17057 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17058 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17059 | else |
17060 | ld_shlibs_GCJ=no |
17061 | fi |
17062 | ;; |
17063 | esac |
17064 | ;; |
17065 | |
17066 | sunos4*) |
17067 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17068 | wlarc= |
17069 | hardcode_direct_GCJ=yes |
17070 | hardcode_shlibpath_var_GCJ=no |
17071 | ;; |
17072 | |
17073 | *) |
17074 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17075 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17076 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17077 | else |
17078 | ld_shlibs_GCJ=no |
17079 | fi |
17080 | ;; |
17081 | esac |
17082 | |
17083 | if test "$ld_shlibs_GCJ" = no; then |
17084 | runpath_var= |
17085 | hardcode_libdir_flag_spec_GCJ= |
17086 | export_dynamic_flag_spec_GCJ= |
17087 | whole_archive_flag_spec_GCJ= |
17088 | fi |
17089 | else |
17090 | # PORTME fill in a description of your system's linker (not GNU ld) |
17091 | case $host_os in |
17092 | aix3*) |
17093 | allow_undefined_flag_GCJ=unsupported |
17094 | always_export_symbols_GCJ=yes |
17095 | 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' |
17096 | # Note: this linker hardcodes the directories in LIBPATH if there |
17097 | # are no directories specified by -L. |
17098 | hardcode_minus_L_GCJ=yes |
17099 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17100 | # Neither direct hardcoding nor static linking is supported with a |
17101 | # broken collect2. |
17102 | hardcode_direct_GCJ=unsupported |
17103 | fi |
17104 | ;; |
17105 | |
17106 | aix4* | aix5*) |
17107 | if test "$host_cpu" = ia64; then |
17108 | # On IA64, the linker does run time linking by default, so we don't |
17109 | # have to do anything special. |
17110 | aix_use_runtimelinking=no |
17111 | exp_sym_flag='-Bexport' |
17112 | no_entry_flag="" |
17113 | else |
17114 | # If we're using GNU nm, then we don't want the "-C" option. |
17115 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17116 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17117 | 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' |
17118 | else |
17119 | 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' |
17120 | fi |
17121 | aix_use_runtimelinking=no |
17122 | |
17123 | # Test if we are trying to use run time linking or normal |
17124 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17125 | # need to do runtime linking. |
17126 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17127 | for ld_flag in $LDFLAGS; do |
17128 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17129 | aix_use_runtimelinking=yes |
17130 | break |
17131 | fi |
17132 | done |
17133 | ;; |
17134 | esac |
17135 | |
17136 | exp_sym_flag='-bexport' |
17137 | no_entry_flag='-bnoentry' |
17138 | fi |
17139 | |
17140 | # When large executables or shared objects are built, AIX ld can |
17141 | # have problems creating the table of contents. If linking a library |
17142 | # or program results in "error TOC overflow" add -mminimal-toc to |
17143 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17144 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17145 | |
17146 | archive_cmds_GCJ='' |
17147 | hardcode_direct_GCJ=yes |
17148 | hardcode_libdir_separator_GCJ=':' |
17149 | link_all_deplibs_GCJ=yes |
17150 | |
17151 | if test "$GCC" = yes; then |
17152 | case $host_os in aix4.[012]|aix4.[012].*) |
17153 | # We only want to do this on AIX 4.2 and lower, the check |
17154 | # below for broken collect2 doesn't work under 4.3+ |
17155 | collect2name=`${CC} -print-prog-name=collect2` |
17156 | if test -f "$collect2name" && \ |
17157 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17158 | then |
17159 | # We have reworked collect2 |
17160 | hardcode_direct_GCJ=yes |
17161 | else |
17162 | # We have old collect2 |
17163 | hardcode_direct_GCJ=unsupported |
17164 | # It fails to find uninstalled libraries when the uninstalled |
17165 | # path is not listed in the libpath. Setting hardcode_minus_L |
17166 | # to unsupported forces relinking |
17167 | hardcode_minus_L_GCJ=yes |
17168 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17169 | hardcode_libdir_separator_GCJ= |
17170 | fi |
17171 | ;; |
17172 | esac |
17173 | shared_flag='-shared' |
17174 | if test "$aix_use_runtimelinking" = yes; then |
17175 | shared_flag="$shared_flag "'${wl}-G' |
17176 | fi |
17177 | else |
17178 | # not using gcc |
17179 | if test "$host_cpu" = ia64; then |
17180 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17181 | # chokes on -Wl,-G. The following line is correct: |
17182 | shared_flag='-G' |
17183 | else |
17184 | if test "$aix_use_runtimelinking" = yes; then |
17185 | shared_flag='${wl}-G' |
17186 | else |
17187 | shared_flag='${wl}-bM:SRE' |
17188 | fi |
17189 | fi |
17190 | fi |
17191 | |
17192 | # It seems that -bexpall does not export symbols beginning with |
17193 | # underscore (_), so it is better to generate a list of symbols to export. |
17194 | always_export_symbols_GCJ=yes |
17195 | if test "$aix_use_runtimelinking" = yes; then |
17196 | # Warning - without using the other runtime loading flags (-brtl), |
17197 | # -berok will link without error, but may produce a broken library. |
17198 | allow_undefined_flag_GCJ='-berok' |
17199 | # Determine the default libpath from the value encoded in an empty executable. |
17200 | cat >conftest.$ac_ext <<_ACEOF |
17201 | /* confdefs.h. */ |
17202 | _ACEOF |
17203 | cat confdefs.h >>conftest.$ac_ext |
17204 | cat >>conftest.$ac_ext <<_ACEOF |
17205 | /* end confdefs.h. */ |
17206 | |
17207 | int |
17208 | main () |
17209 | { |
17210 | |
17211 | ; |
17212 | return 0; |
17213 | } |
17214 | _ACEOF |
17215 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17216 | if { (ac_try="$ac_link" |
17217 | case "(($ac_try" in |
17218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17219 | *) ac_try_echo=$ac_try;; |
17220 | esac |
17221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17222 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17223 | ac_status=$? |
17224 | grep -v '^ *+' conftest.er1 >conftest.err |
17225 | rm -f conftest.er1 |
17226 | cat conftest.err >&5 |
17227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17228 | (exit $ac_status); } && { |
17229 | test -z "$ac_c_werror_flag" || |
17230 | test ! -s conftest.err |
17231 | } && test -s conftest$ac_exeext && |
17232 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17233 | |
17234 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17235 | }'` |
17236 | # Check for a 64-bit object if we didn't find anything. |
17237 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17238 | }'`; fi |
17239 | else |
17240 | echo "$as_me: failed program was:" >&5 |
17241 | sed 's/^/| /' conftest.$ac_ext >&5 |
17242 | |
dd184caf |
17243 | |
d9898ee8 |
17244 | fi |
dd184caf |
17245 | |
17246 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17247 | conftest$ac_exeext conftest.$ac_ext |
17248 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17249 | |
17250 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17251 | 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" |
17252 | else |
17253 | if test "$host_cpu" = ia64; then |
17254 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17255 | allow_undefined_flag_GCJ="-z nodefs" |
17256 | 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" |
17257 | else |
17258 | # Determine the default libpath from the value encoded in an empty executable. |
17259 | cat >conftest.$ac_ext <<_ACEOF |
17260 | /* confdefs.h. */ |
17261 | _ACEOF |
17262 | cat confdefs.h >>conftest.$ac_ext |
17263 | cat >>conftest.$ac_ext <<_ACEOF |
17264 | /* end confdefs.h. */ |
17265 | |
17266 | int |
17267 | main () |
17268 | { |
17269 | |
17270 | ; |
17271 | return 0; |
17272 | } |
17273 | _ACEOF |
17274 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17275 | if { (ac_try="$ac_link" |
17276 | case "(($ac_try" in |
17277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17278 | *) ac_try_echo=$ac_try;; |
17279 | esac |
17280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17281 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17282 | ac_status=$? |
17283 | grep -v '^ *+' conftest.er1 >conftest.err |
17284 | rm -f conftest.er1 |
17285 | cat conftest.err >&5 |
17286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17287 | (exit $ac_status); } && { |
17288 | test -z "$ac_c_werror_flag" || |
17289 | test ! -s conftest.err |
17290 | } && test -s conftest$ac_exeext && |
17291 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17292 | |
17293 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17294 | }'` |
17295 | # Check for a 64-bit object if we didn't find anything. |
17296 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17297 | }'`; fi |
17298 | else |
17299 | echo "$as_me: failed program was:" >&5 |
17300 | sed 's/^/| /' conftest.$ac_ext >&5 |
17301 | |
dd184caf |
17302 | |
d9898ee8 |
17303 | fi |
dd184caf |
17304 | |
17305 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17306 | conftest$ac_exeext conftest.$ac_ext |
17307 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17308 | |
17309 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17310 | # Warning - without using the other run time loading flags, |
17311 | # -berok will link without error, but may produce a broken library. |
17312 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17313 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17314 | # Exported symbols can be pulled into shared objects from archives |
17315 | whole_archive_flag_spec_GCJ='$convenience' |
17316 | archive_cmds_need_lc_GCJ=yes |
17317 | # This is similar to how AIX traditionally builds its shared libraries. |
17318 | 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' |
17319 | fi |
17320 | fi |
17321 | ;; |
17322 | |
17323 | amigaos*) |
17324 | 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)' |
17325 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17326 | hardcode_minus_L_GCJ=yes |
17327 | # see comment about different semantics on the GNU ld section |
17328 | ld_shlibs_GCJ=no |
17329 | ;; |
17330 | |
17331 | bsdi[45]*) |
17332 | export_dynamic_flag_spec_GCJ=-rdynamic |
17333 | ;; |
17334 | |
17335 | cygwin* | mingw* | pw32*) |
17336 | # When not using gcc, we currently assume that we are using |
17337 | # Microsoft Visual C++. |
17338 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17339 | # no search path for DLLs. |
17340 | hardcode_libdir_flag_spec_GCJ=' ' |
17341 | allow_undefined_flag_GCJ=unsupported |
17342 | # Tell ltmain to make .lib files, not .a files. |
17343 | libext=lib |
17344 | # Tell ltmain to make .dll files, not .so files. |
17345 | shrext_cmds=".dll" |
17346 | # FIXME: Setting linknames here is a bad hack. |
17347 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17348 | # The linker will automatically build a .lib file if we build a DLL. |
17349 | old_archive_From_new_cmds_GCJ='true' |
17350 | # FIXME: Should let the user specify the lib program. |
17351 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17352 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17353 | enable_shared_with_static_runtimes_GCJ=yes |
17354 | ;; |
17355 | |
17356 | darwin* | rhapsody*) |
17357 | case $host_os in |
17358 | rhapsody* | darwin1.[012]) |
17359 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17360 | ;; |
17361 | *) # Darwin 1.3 on |
17362 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17363 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17364 | else |
17365 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17366 | 10.[012]) |
17367 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17368 | ;; |
17369 | 10.*) |
17370 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17371 | ;; |
17372 | esac |
17373 | fi |
17374 | ;; |
17375 | esac |
17376 | archive_cmds_need_lc_GCJ=no |
17377 | hardcode_direct_GCJ=no |
17378 | hardcode_automatic_GCJ=yes |
17379 | hardcode_shlibpath_var_GCJ=unsupported |
17380 | whole_archive_flag_spec_GCJ='' |
17381 | link_all_deplibs_GCJ=yes |
17382 | if test "$GCC" = yes ; then |
17383 | output_verbose_link_cmd='echo' |
17384 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17385 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17386 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17387 | 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}' |
17388 | 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}' |
17389 | else |
17390 | case $cc_basename in |
17391 | xlc*) |
17392 | output_verbose_link_cmd='echo' |
17393 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17394 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17395 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17396 | 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17397 | 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}' |
17398 | ;; |
17399 | *) |
17400 | ld_shlibs_GCJ=no |
17401 | ;; |
17402 | esac |
17403 | fi |
17404 | ;; |
17405 | |
17406 | dgux*) |
17407 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17408 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17409 | hardcode_shlibpath_var_GCJ=no |
17410 | ;; |
17411 | |
17412 | freebsd1*) |
17413 | ld_shlibs_GCJ=no |
17414 | ;; |
17415 | |
17416 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17417 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17418 | # does not break anything, and helps significantly (at the cost of a little |
17419 | # extra space). |
17420 | freebsd2.2*) |
17421 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17422 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17423 | hardcode_direct_GCJ=yes |
17424 | hardcode_shlibpath_var_GCJ=no |
17425 | ;; |
17426 | |
17427 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17428 | freebsd2*) |
17429 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17430 | hardcode_direct_GCJ=yes |
17431 | hardcode_minus_L_GCJ=yes |
17432 | hardcode_shlibpath_var_GCJ=no |
17433 | ;; |
17434 | |
17435 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17436 | freebsd* | kfreebsd*-gnu | dragonfly*) |
17437 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17438 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17439 | hardcode_direct_GCJ=yes |
17440 | hardcode_shlibpath_var_GCJ=no |
17441 | ;; |
17442 | |
17443 | hpux9*) |
17444 | if test "$GCC" = yes; then |
17445 | 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' |
17446 | else |
17447 | 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' |
17448 | fi |
17449 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17450 | hardcode_libdir_separator_GCJ=: |
17451 | hardcode_direct_GCJ=yes |
17452 | |
17453 | # hardcode_minus_L: Not really in the search PATH, |
17454 | # but as the default location of the library. |
17455 | hardcode_minus_L_GCJ=yes |
17456 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17457 | ;; |
17458 | |
17459 | hpux10*) |
17460 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17461 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17462 | else |
17463 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17464 | fi |
17465 | if test "$with_gnu_ld" = no; then |
17466 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17467 | hardcode_libdir_separator_GCJ=: |
17468 | |
17469 | hardcode_direct_GCJ=yes |
17470 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17471 | |
17472 | # hardcode_minus_L: Not really in the search PATH, |
17473 | # but as the default location of the library. |
17474 | hardcode_minus_L_GCJ=yes |
17475 | fi |
17476 | ;; |
17477 | |
17478 | hpux11*) |
17479 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17480 | case $host_cpu in |
17481 | hppa*64*) |
17482 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17483 | ;; |
17484 | ia64*) |
17485 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17486 | ;; |
17487 | *) |
17488 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17489 | ;; |
17490 | esac |
17491 | else |
17492 | case $host_cpu in |
17493 | hppa*64*) |
17494 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17495 | ;; |
17496 | ia64*) |
17497 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17498 | ;; |
17499 | *) |
17500 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17501 | ;; |
17502 | esac |
17503 | fi |
17504 | if test "$with_gnu_ld" = no; then |
17505 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17506 | hardcode_libdir_separator_GCJ=: |
17507 | |
17508 | case $host_cpu in |
17509 | hppa*64*|ia64*) |
17510 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17511 | hardcode_direct_GCJ=no |
17512 | hardcode_shlibpath_var_GCJ=no |
17513 | ;; |
17514 | *) |
17515 | hardcode_direct_GCJ=yes |
17516 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17517 | |
17518 | # hardcode_minus_L: Not really in the search PATH, |
17519 | # but as the default location of the library. |
17520 | hardcode_minus_L_GCJ=yes |
17521 | ;; |
17522 | esac |
17523 | fi |
17524 | ;; |
17525 | |
17526 | irix5* | irix6* | nonstopux*) |
17527 | if test "$GCC" = yes; then |
17528 | 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' |
17529 | else |
17530 | 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' |
17531 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17532 | fi |
17533 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17534 | hardcode_libdir_separator_GCJ=: |
17535 | link_all_deplibs_GCJ=yes |
17536 | ;; |
17537 | |
17538 | netbsd*) |
17539 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17540 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17541 | else |
17542 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17543 | fi |
17544 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17545 | hardcode_direct_GCJ=yes |
17546 | hardcode_shlibpath_var_GCJ=no |
17547 | ;; |
17548 | |
17549 | newsos6) |
17550 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17551 | hardcode_direct_GCJ=yes |
17552 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17553 | hardcode_libdir_separator_GCJ=: |
17554 | hardcode_shlibpath_var_GCJ=no |
17555 | ;; |
17556 | |
17557 | openbsd*) |
17558 | hardcode_direct_GCJ=yes |
17559 | hardcode_shlibpath_var_GCJ=no |
17560 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17561 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17562 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17563 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17564 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17565 | else |
17566 | case $host_os in |
17567 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17568 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17569 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17570 | ;; |
17571 | *) |
17572 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17573 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17574 | ;; |
17575 | esac |
17576 | fi |
17577 | ;; |
17578 | |
17579 | os2*) |
17580 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17581 | hardcode_minus_L_GCJ=yes |
17582 | allow_undefined_flag_GCJ=unsupported |
17583 | 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' |
17584 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17585 | ;; |
17586 | |
17587 | osf3*) |
17588 | if test "$GCC" = yes; then |
17589 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17590 | 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' |
17591 | else |
17592 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17593 | 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' |
17594 | fi |
17595 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17596 | hardcode_libdir_separator_GCJ=: |
17597 | ;; |
17598 | |
17599 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17600 | if test "$GCC" = yes; then |
17601 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17602 | 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' |
17603 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17604 | else |
17605 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17606 | 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' |
17607 | 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~ |
17608 | $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' |
17609 | |
17610 | # Both c and cxx compiler support -rpath directly |
17611 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17612 | fi |
17613 | hardcode_libdir_separator_GCJ=: |
17614 | ;; |
17615 | |
17616 | solaris*) |
17617 | no_undefined_flag_GCJ=' -z text' |
17618 | if test "$GCC" = yes; then |
17619 | wlarc='${wl}' |
17620 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17621 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17622 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17623 | else |
17624 | wlarc='' |
17625 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17626 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17627 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17628 | fi |
17629 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17630 | hardcode_shlibpath_var_GCJ=no |
17631 | case $host_os in |
17632 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17633 | *) |
17634 | # The compiler driver will combine linker options so we |
17635 | # cannot just pass the convience library names through |
17636 | # without $wl, iff we do not link with $LD. |
17637 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17638 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17639 | case $wlarc in |
17640 | '') |
17641 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17642 | *) |
17643 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
17644 | esac ;; |
17645 | esac |
17646 | link_all_deplibs_GCJ=yes |
17647 | ;; |
17648 | |
17649 | sunos4*) |
17650 | if test "x$host_vendor" = xsequent; then |
17651 | # Use $CC to link under sequent, because it throws in some extra .o |
17652 | # files that make .init and .fini sections work. |
17653 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17654 | else |
17655 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17656 | fi |
17657 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17658 | hardcode_direct_GCJ=yes |
17659 | hardcode_minus_L_GCJ=yes |
17660 | hardcode_shlibpath_var_GCJ=no |
17661 | ;; |
17662 | |
17663 | sysv4) |
17664 | case $host_vendor in |
17665 | sni) |
17666 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17667 | hardcode_direct_GCJ=yes # is this really true??? |
17668 | ;; |
17669 | siemens) |
17670 | ## LD is ld it makes a PLAMLIB |
17671 | ## CC just makes a GrossModule. |
17672 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17673 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17674 | hardcode_direct_GCJ=no |
17675 | ;; |
17676 | motorola) |
17677 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17678 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17679 | ;; |
17680 | esac |
17681 | runpath_var='LD_RUN_PATH' |
17682 | hardcode_shlibpath_var_GCJ=no |
17683 | ;; |
17684 | |
17685 | sysv4.3*) |
17686 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17687 | hardcode_shlibpath_var_GCJ=no |
17688 | export_dynamic_flag_spec_GCJ='-Bexport' |
17689 | ;; |
17690 | |
17691 | sysv4*MP*) |
17692 | if test -d /usr/nec; then |
17693 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17694 | hardcode_shlibpath_var_GCJ=no |
17695 | runpath_var=LD_RUN_PATH |
17696 | hardcode_runpath_var=yes |
17697 | ld_shlibs_GCJ=yes |
17698 | fi |
17699 | ;; |
17700 | |
17701 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17702 | no_undefined_flag_GCJ='${wl}-z,text' |
17703 | archive_cmds_need_lc_GCJ=no |
17704 | hardcode_shlibpath_var_GCJ=no |
17705 | runpath_var='LD_RUN_PATH' |
17706 | |
17707 | if test "$GCC" = yes; then |
17708 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17709 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17710 | else |
17711 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17712 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17713 | fi |
17714 | ;; |
17715 | |
17716 | sysv5* | sco3.2v5* | sco5v6*) |
17717 | # Note: We can NOT use -z defs as we might desire, because we do not |
17718 | # link with -lc, and that would cause any symbols used from libc to |
17719 | # always be unresolved, which means just about no library would |
17720 | # ever link correctly. If we're not using GNU ld we use -z text |
17721 | # though, which does catch some bad symbols but isn't as heavy-handed |
17722 | # as -z defs. |
17723 | no_undefined_flag_GCJ='${wl}-z,text' |
17724 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17725 | archive_cmds_need_lc_GCJ=no |
17726 | hardcode_shlibpath_var_GCJ=no |
17727 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17728 | hardcode_libdir_separator_GCJ=':' |
17729 | link_all_deplibs_GCJ=yes |
17730 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17731 | runpath_var='LD_RUN_PATH' |
17732 | |
17733 | if test "$GCC" = yes; then |
17734 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17735 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17736 | else |
17737 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17738 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17739 | fi |
17740 | ;; |
17741 | |
17742 | uts4*) |
17743 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17744 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17745 | hardcode_shlibpath_var_GCJ=no |
17746 | ;; |
17747 | |
17748 | *) |
17749 | ld_shlibs_GCJ=no |
17750 | ;; |
17751 | esac |
17752 | fi |
17753 | |
dd184caf |
17754 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17755 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17756 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17757 | |
17758 | # |
17759 | # Do we need to explicitly link libc? |
17760 | # |
17761 | case "x$archive_cmds_need_lc_GCJ" in |
17762 | x|xyes) |
17763 | # Assume -lc should be added |
17764 | archive_cmds_need_lc_GCJ=yes |
17765 | |
17766 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17767 | case $archive_cmds_GCJ in |
17768 | *'~'*) |
17769 | # FIXME: we may have to deal with multi-command sequences. |
17770 | ;; |
17771 | '$CC '*) |
17772 | # Test whether the compiler implicitly links with -lc since on some |
17773 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17774 | # to ld, don't add -lc before -lgcc. |
dd184caf |
17775 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17776 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17777 | $rm conftest* |
17778 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17779 | |
17780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17781 | (eval $ac_compile) 2>&5 |
17782 | ac_status=$? |
17783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17784 | (exit $ac_status); } 2>conftest.err; then |
17785 | soname=conftest |
17786 | lib=conftest |
17787 | libobjs=conftest.$ac_objext |
17788 | deplibs= |
17789 | wl=$lt_prog_compiler_wl_GCJ |
17790 | pic_flag=$lt_prog_compiler_pic_GCJ |
17791 | compiler_flags=-v |
17792 | linker_flags=-v |
17793 | verstring= |
17794 | output_objdir=. |
17795 | libname=conftest |
17796 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17797 | allow_undefined_flag_GCJ= |
17798 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17799 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17800 | ac_status=$? |
17801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17802 | (exit $ac_status); } |
17803 | then |
17804 | archive_cmds_need_lc_GCJ=no |
17805 | else |
17806 | archive_cmds_need_lc_GCJ=yes |
17807 | fi |
17808 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17809 | else |
17810 | cat conftest.err 1>&5 |
17811 | fi |
17812 | $rm conftest* |
dd184caf |
17813 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17814 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17815 | ;; |
17816 | esac |
17817 | fi |
17818 | ;; |
17819 | esac |
17820 | |
dd184caf |
17821 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17822 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17823 | library_names_spec= |
17824 | libname_spec='lib$name' |
17825 | soname_spec= |
17826 | shrext_cmds=".so" |
17827 | postinstall_cmds= |
17828 | postuninstall_cmds= |
17829 | finish_cmds= |
17830 | finish_eval= |
17831 | shlibpath_var= |
17832 | shlibpath_overrides_runpath=unknown |
17833 | version_type=none |
17834 | dynamic_linker="$host_os ld.so" |
17835 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17836 | if test "$GCC" = yes; then |
17837 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17838 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17839 | # if the path contains ";" then we assume it to be the separator |
17840 | # otherwise default to the standard path separator (i.e. ":") - it is |
17841 | # assumed that no part of a normal pathname contains ";" but that should |
17842 | # okay in the real world where ";" in dirpaths is itself problematic. |
17843 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17844 | else |
17845 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17846 | fi |
17847 | else |
17848 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17849 | fi |
17850 | need_lib_prefix=unknown |
17851 | hardcode_into_libs=no |
17852 | |
17853 | # when you set need_version to no, make sure it does not cause -set_version |
17854 | # flags to be left without arguments |
17855 | need_version=unknown |
17856 | |
17857 | case $host_os in |
17858 | aix3*) |
17859 | version_type=linux |
17860 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17861 | shlibpath_var=LIBPATH |
17862 | |
17863 | # AIX 3 has no versioning support, so we append a major version to the name. |
17864 | soname_spec='${libname}${release}${shared_ext}$major' |
17865 | ;; |
17866 | |
17867 | aix4* | aix5*) |
17868 | version_type=linux |
17869 | need_lib_prefix=no |
17870 | need_version=no |
17871 | hardcode_into_libs=yes |
17872 | if test "$host_cpu" = ia64; then |
17873 | # AIX 5 supports IA64 |
17874 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17875 | shlibpath_var=LD_LIBRARY_PATH |
17876 | else |
17877 | # With GCC up to 2.95.x, collect2 would create an import file |
17878 | # for dependence libraries. The import file would start with |
17879 | # the line `#! .'. This would cause the generated library to |
17880 | # depend on `.', always an invalid library. This was fixed in |
17881 | # development snapshots of GCC prior to 3.0. |
17882 | case $host_os in |
17883 | aix4 | aix4.[01] | aix4.[01].*) |
17884 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17885 | echo ' yes ' |
17886 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17887 | : |
17888 | else |
17889 | can_build_shared=no |
17890 | fi |
17891 | ;; |
17892 | esac |
17893 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17894 | # soname into executable. Probably we can add versioning support to |
17895 | # collect2, so additional links can be useful in future. |
17896 | if test "$aix_use_runtimelinking" = yes; then |
17897 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17898 | # instead of lib<name>.a to let people know that these are not |
17899 | # typical AIX shared libraries. |
17900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17901 | else |
17902 | # We preserve .a as extension for shared libraries through AIX4.2 |
17903 | # and later when we are not doing run time linking. |
17904 | library_names_spec='${libname}${release}.a $libname.a' |
17905 | soname_spec='${libname}${release}${shared_ext}$major' |
17906 | fi |
17907 | shlibpath_var=LIBPATH |
17908 | fi |
17909 | ;; |
17910 | |
17911 | amigaos*) |
17912 | library_names_spec='$libname.ixlibrary $libname.a' |
17913 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17914 | 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' |
17915 | ;; |
17916 | |
17917 | beos*) |
17918 | library_names_spec='${libname}${shared_ext}' |
17919 | dynamic_linker="$host_os ld.so" |
17920 | shlibpath_var=LIBRARY_PATH |
17921 | ;; |
17922 | |
17923 | bsdi[45]*) |
17924 | version_type=linux |
17925 | need_version=no |
17926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17927 | soname_spec='${libname}${release}${shared_ext}$major' |
17928 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17929 | shlibpath_var=LD_LIBRARY_PATH |
17930 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17931 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17932 | # the default ld.so.conf also contains /usr/contrib/lib and |
17933 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17934 | # libtool to hard-code these into programs |
17935 | ;; |
17936 | |
17937 | cygwin* | mingw* | pw32*) |
17938 | version_type=windows |
17939 | shrext_cmds=".dll" |
17940 | need_version=no |
17941 | need_lib_prefix=no |
17942 | |
17943 | case $GCC,$host_os in |
17944 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17945 | library_names_spec='$libname.dll.a' |
17946 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17947 | postinstall_cmds='base_file=`basename \${file}`~ |
17948 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17949 | dldir=$destdir/`dirname \$dlpath`~ |
17950 | test -d \$dldir || mkdir -p \$dldir~ |
17951 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17952 | chmod a+x \$dldir/$dlname' |
17953 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17954 | dlpath=$dir/\$dldll~ |
17955 | $rm \$dlpath' |
17956 | shlibpath_overrides_runpath=yes |
17957 | |
17958 | case $host_os in |
17959 | cygwin*) |
17960 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17961 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17962 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17963 | ;; |
17964 | mingw*) |
17965 | # MinGW DLLs use traditional 'lib' prefix |
17966 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17967 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17968 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17969 | # It is most probably a Windows format PATH printed by |
17970 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17971 | # path with ; separators, and with drive letters. We can handle the |
17972 | # drive letters (cygwin fileutils understands them), so leave them, |
17973 | # especially as we might pass files found there to a mingw objdump, |
17974 | # which wouldn't understand a cygwinified path. Ahh. |
17975 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17976 | else |
17977 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17978 | fi |
17979 | ;; |
17980 | pw32*) |
17981 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17982 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17983 | ;; |
17984 | esac |
17985 | ;; |
17986 | |
17987 | *) |
17988 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17989 | ;; |
17990 | esac |
17991 | dynamic_linker='Win32 ld.exe' |
17992 | # FIXME: first we should search . and the directory the executable is in |
17993 | shlibpath_var=PATH |
17994 | ;; |
17995 | |
17996 | darwin* | rhapsody*) |
17997 | dynamic_linker="$host_os dyld" |
17998 | version_type=darwin |
17999 | need_lib_prefix=no |
18000 | need_version=no |
18001 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18002 | soname_spec='${libname}${release}${major}$shared_ext' |
18003 | shlibpath_overrides_runpath=yes |
18004 | shlibpath_var=DYLD_LIBRARY_PATH |
18005 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
18006 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
18007 | if test "$GCC" = yes; then |
18008 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
18009 | else |
18010 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
18011 | fi |
18012 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18013 | ;; |
18014 | |
18015 | dgux*) |
18016 | version_type=linux |
18017 | need_lib_prefix=no |
18018 | need_version=no |
18019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18020 | soname_spec='${libname}${release}${shared_ext}$major' |
18021 | shlibpath_var=LD_LIBRARY_PATH |
18022 | ;; |
18023 | |
18024 | freebsd1*) |
18025 | dynamic_linker=no |
18026 | ;; |
18027 | |
18028 | kfreebsd*-gnu) |
18029 | version_type=linux |
18030 | need_lib_prefix=no |
18031 | need_version=no |
18032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18033 | soname_spec='${libname}${release}${shared_ext}$major' |
18034 | shlibpath_var=LD_LIBRARY_PATH |
18035 | shlibpath_overrides_runpath=no |
18036 | hardcode_into_libs=yes |
18037 | dynamic_linker='GNU ld.so' |
18038 | ;; |
18039 | |
18040 | freebsd* | dragonfly*) |
18041 | # DragonFly does not have aout. When/if they implement a new |
18042 | # versioning mechanism, adjust this. |
18043 | if test -x /usr/bin/objformat; then |
18044 | objformat=`/usr/bin/objformat` |
18045 | else |
18046 | case $host_os in |
18047 | freebsd[123]*) objformat=aout ;; |
18048 | *) objformat=elf ;; |
18049 | esac |
18050 | fi |
18051 | version_type=freebsd-$objformat |
18052 | case $version_type in |
18053 | freebsd-elf*) |
18054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18055 | need_version=no |
18056 | need_lib_prefix=no |
18057 | ;; |
18058 | freebsd-*) |
18059 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18060 | need_version=yes |
18061 | ;; |
18062 | esac |
18063 | shlibpath_var=LD_LIBRARY_PATH |
18064 | case $host_os in |
18065 | freebsd2*) |
18066 | shlibpath_overrides_runpath=yes |
18067 | ;; |
18068 | freebsd3.[01]* | freebsdelf3.[01]*) |
18069 | shlibpath_overrides_runpath=yes |
18070 | hardcode_into_libs=yes |
18071 | ;; |
18072 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18073 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18074 | shlibpath_overrides_runpath=no |
18075 | hardcode_into_libs=yes |
18076 | ;; |
18077 | freebsd*) # from 4.6 on |
18078 | shlibpath_overrides_runpath=yes |
18079 | hardcode_into_libs=yes |
18080 | ;; |
18081 | esac |
18082 | ;; |
18083 | |
18084 | gnu*) |
18085 | version_type=linux |
18086 | need_lib_prefix=no |
18087 | need_version=no |
18088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18089 | soname_spec='${libname}${release}${shared_ext}$major' |
18090 | shlibpath_var=LD_LIBRARY_PATH |
18091 | hardcode_into_libs=yes |
18092 | ;; |
18093 | |
18094 | hpux9* | hpux10* | hpux11*) |
18095 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18096 | # link against other versions. |
18097 | version_type=sunos |
18098 | need_lib_prefix=no |
18099 | need_version=no |
18100 | case $host_cpu in |
18101 | ia64*) |
18102 | shrext_cmds='.so' |
18103 | hardcode_into_libs=yes |
18104 | dynamic_linker="$host_os dld.so" |
18105 | shlibpath_var=LD_LIBRARY_PATH |
18106 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18108 | soname_spec='${libname}${release}${shared_ext}$major' |
18109 | if test "X$HPUX_IA64_MODE" = X32; then |
18110 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18111 | else |
18112 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18113 | fi |
18114 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18115 | ;; |
18116 | hppa*64*) |
18117 | shrext_cmds='.sl' |
18118 | hardcode_into_libs=yes |
18119 | dynamic_linker="$host_os dld.sl" |
18120 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18121 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18123 | soname_spec='${libname}${release}${shared_ext}$major' |
18124 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18125 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18126 | ;; |
18127 | *) |
18128 | shrext_cmds='.sl' |
18129 | dynamic_linker="$host_os dld.sl" |
18130 | shlibpath_var=SHLIB_PATH |
18131 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
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 | ;; |
18135 | esac |
18136 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18137 | postinstall_cmds='chmod 555 $lib' |
18138 | ;; |
18139 | |
18140 | interix3*) |
18141 | version_type=linux |
18142 | need_lib_prefix=no |
18143 | need_version=no |
18144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18145 | soname_spec='${libname}${release}${shared_ext}$major' |
18146 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18147 | shlibpath_var=LD_LIBRARY_PATH |
18148 | shlibpath_overrides_runpath=no |
18149 | hardcode_into_libs=yes |
18150 | ;; |
18151 | |
18152 | irix5* | irix6* | nonstopux*) |
18153 | case $host_os in |
18154 | nonstopux*) version_type=nonstopux ;; |
18155 | *) |
18156 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18157 | version_type=linux |
18158 | else |
18159 | version_type=irix |
18160 | fi ;; |
18161 | esac |
18162 | need_lib_prefix=no |
18163 | need_version=no |
18164 | soname_spec='${libname}${release}${shared_ext}$major' |
18165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18166 | case $host_os in |
18167 | irix5* | nonstopux*) |
18168 | libsuff= shlibsuff= |
18169 | ;; |
18170 | *) |
18171 | case $LD in # libtool.m4 will add one of these switches to LD |
18172 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18173 | libsuff= shlibsuff= libmagic=32-bit;; |
18174 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18175 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18176 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18177 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18178 | *) libsuff= shlibsuff= libmagic=never-match;; |
18179 | esac |
18180 | ;; |
18181 | esac |
18182 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18183 | shlibpath_overrides_runpath=no |
18184 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18185 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18186 | hardcode_into_libs=yes |
18187 | ;; |
18188 | |
18189 | # No shared lib support for Linux oldld, aout, or coff. |
18190 | linux*oldld* | linux*aout* | linux*coff*) |
18191 | dynamic_linker=no |
18192 | ;; |
18193 | |
18194 | # This must be Linux ELF. |
18195 | linux*) |
18196 | version_type=linux |
18197 | need_lib_prefix=no |
18198 | need_version=no |
18199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18200 | soname_spec='${libname}${release}${shared_ext}$major' |
18201 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18202 | shlibpath_var=LD_LIBRARY_PATH |
18203 | shlibpath_overrides_runpath=no |
18204 | # This implies no fast_install, which is unacceptable. |
18205 | # Some rework will be needed to allow for fast_install |
18206 | # before this can be enabled. |
18207 | hardcode_into_libs=yes |
18208 | |
18209 | # find out which ABI we are using |
18210 | libsuff= |
18211 | case "$host_cpu" in |
18212 | x86_64*|s390x*|powerpc64*) |
dd184caf |
18213 | echo '#line 18213 "configure"' > conftest.$ac_ext |
d9898ee8 |
18214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18215 | (eval $ac_compile) 2>&5 |
18216 | ac_status=$? |
18217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18218 | (exit $ac_status); }; then |
18219 | case `/usr/bin/file conftest.$ac_objext` in |
18220 | *64-bit*) |
18221 | libsuff=64 |
18222 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
18223 | ;; |
18224 | esac |
18225 | fi |
18226 | rm -rf conftest* |
18227 | ;; |
18228 | esac |
18229 | |
18230 | # Append ld.so.conf contents to the search path |
18231 | if test -f /etc/ld.so.conf; then |
dd184caf |
18232 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
18233 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
18234 | fi |
18235 | |
18236 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18237 | # powerpc, because MkLinux only supported shared libraries with the |
18238 | # GNU dynamic linker. Since this was broken with cross compilers, |
18239 | # most powerpc-linux boxes support dynamic linking these days and |
18240 | # people can always --disable-shared, the test was removed, and we |
18241 | # assume the GNU/Linux dynamic linker is in use. |
18242 | dynamic_linker='GNU/Linux ld.so' |
18243 | ;; |
18244 | |
18245 | knetbsd*-gnu) |
18246 | version_type=linux |
18247 | need_lib_prefix=no |
18248 | need_version=no |
18249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18250 | soname_spec='${libname}${release}${shared_ext}$major' |
18251 | shlibpath_var=LD_LIBRARY_PATH |
18252 | shlibpath_overrides_runpath=no |
18253 | hardcode_into_libs=yes |
18254 | dynamic_linker='GNU ld.so' |
18255 | ;; |
18256 | |
18257 | netbsd*) |
18258 | version_type=sunos |
18259 | need_lib_prefix=no |
18260 | need_version=no |
18261 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18263 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18264 | dynamic_linker='NetBSD (a.out) ld.so' |
18265 | else |
18266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18267 | soname_spec='${libname}${release}${shared_ext}$major' |
18268 | dynamic_linker='NetBSD ld.elf_so' |
18269 | fi |
18270 | shlibpath_var=LD_LIBRARY_PATH |
18271 | shlibpath_overrides_runpath=yes |
18272 | hardcode_into_libs=yes |
18273 | ;; |
18274 | |
18275 | newsos6) |
18276 | version_type=linux |
18277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18278 | shlibpath_var=LD_LIBRARY_PATH |
18279 | shlibpath_overrides_runpath=yes |
18280 | ;; |
18281 | |
18282 | nto-qnx*) |
18283 | version_type=linux |
18284 | need_lib_prefix=no |
18285 | need_version=no |
18286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18287 | soname_spec='${libname}${release}${shared_ext}$major' |
18288 | shlibpath_var=LD_LIBRARY_PATH |
18289 | shlibpath_overrides_runpath=yes |
18290 | ;; |
18291 | |
18292 | openbsd*) |
18293 | version_type=sunos |
18294 | sys_lib_dlsearch_path_spec="/usr/lib" |
18295 | need_lib_prefix=no |
18296 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18297 | case $host_os in |
18298 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18299 | *) need_version=no ;; |
18300 | esac |
18301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18302 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18303 | shlibpath_var=LD_LIBRARY_PATH |
18304 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18305 | case $host_os in |
18306 | openbsd2.[89] | openbsd2.[89].*) |
18307 | shlibpath_overrides_runpath=no |
18308 | ;; |
18309 | *) |
18310 | shlibpath_overrides_runpath=yes |
18311 | ;; |
18312 | esac |
18313 | else |
18314 | shlibpath_overrides_runpath=yes |
18315 | fi |
18316 | ;; |
18317 | |
18318 | os2*) |
18319 | libname_spec='$name' |
18320 | shrext_cmds=".dll" |
18321 | need_lib_prefix=no |
18322 | library_names_spec='$libname${shared_ext} $libname.a' |
18323 | dynamic_linker='OS/2 ld.exe' |
18324 | shlibpath_var=LIBPATH |
18325 | ;; |
18326 | |
18327 | osf3* | osf4* | osf5*) |
18328 | version_type=osf |
18329 | need_lib_prefix=no |
18330 | need_version=no |
18331 | soname_spec='${libname}${release}${shared_ext}$major' |
18332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18333 | shlibpath_var=LD_LIBRARY_PATH |
18334 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18335 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18336 | ;; |
18337 | |
18338 | solaris*) |
18339 | version_type=linux |
18340 | need_lib_prefix=no |
18341 | need_version=no |
18342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18343 | soname_spec='${libname}${release}${shared_ext}$major' |
18344 | shlibpath_var=LD_LIBRARY_PATH |
18345 | shlibpath_overrides_runpath=yes |
18346 | hardcode_into_libs=yes |
18347 | # ldd complains unless libraries are executable |
18348 | postinstall_cmds='chmod +x $lib' |
18349 | ;; |
18350 | |
18351 | sunos4*) |
18352 | version_type=sunos |
18353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18354 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18355 | shlibpath_var=LD_LIBRARY_PATH |
18356 | shlibpath_overrides_runpath=yes |
18357 | if test "$with_gnu_ld" = yes; then |
18358 | need_lib_prefix=no |
18359 | fi |
18360 | need_version=yes |
18361 | ;; |
18362 | |
18363 | sysv4 | sysv4.3*) |
18364 | version_type=linux |
18365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18366 | soname_spec='${libname}${release}${shared_ext}$major' |
18367 | shlibpath_var=LD_LIBRARY_PATH |
18368 | case $host_vendor in |
18369 | sni) |
18370 | shlibpath_overrides_runpath=no |
18371 | need_lib_prefix=no |
18372 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18373 | runpath_var=LD_RUN_PATH |
18374 | ;; |
18375 | siemens) |
18376 | need_lib_prefix=no |
18377 | ;; |
18378 | motorola) |
18379 | need_lib_prefix=no |
18380 | need_version=no |
18381 | shlibpath_overrides_runpath=no |
18382 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18383 | ;; |
18384 | esac |
18385 | ;; |
18386 | |
18387 | sysv4*MP*) |
18388 | if test -d /usr/nec ;then |
18389 | version_type=linux |
18390 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18391 | soname_spec='$libname${shared_ext}.$major' |
18392 | shlibpath_var=LD_LIBRARY_PATH |
18393 | fi |
18394 | ;; |
18395 | |
18396 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18397 | version_type=freebsd-elf |
18398 | need_lib_prefix=no |
18399 | need_version=no |
18400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18401 | soname_spec='${libname}${release}${shared_ext}$major' |
18402 | shlibpath_var=LD_LIBRARY_PATH |
18403 | hardcode_into_libs=yes |
18404 | if test "$with_gnu_ld" = yes; then |
18405 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18406 | shlibpath_overrides_runpath=no |
18407 | else |
18408 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18409 | shlibpath_overrides_runpath=yes |
18410 | case $host_os in |
18411 | sco3.2v5*) |
18412 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18413 | ;; |
18414 | esac |
18415 | fi |
18416 | sys_lib_dlsearch_path_spec='/usr/lib' |
18417 | ;; |
18418 | |
18419 | uts4*) |
18420 | version_type=linux |
18421 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18422 | soname_spec='${libname}${release}${shared_ext}$major' |
18423 | shlibpath_var=LD_LIBRARY_PATH |
18424 | ;; |
18425 | |
18426 | *) |
18427 | dynamic_linker=no |
18428 | ;; |
18429 | esac |
dd184caf |
18430 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18431 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18432 | test "$dynamic_linker" = no && can_build_shared=no |
18433 | |
18434 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18435 | if test "$GCC" = yes; then |
18436 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18437 | fi |
18438 | |
dd184caf |
18439 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18440 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18441 | hardcode_action_GCJ= |
18442 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18443 | test -n "$runpath_var_GCJ" || \ |
18444 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18445 | |
18446 | # We can hardcode non-existant directories. |
18447 | if test "$hardcode_direct_GCJ" != no && |
18448 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18449 | # have to relink, otherwise we might link with an installed library |
18450 | # when we should be linking with a yet-to-be-installed one |
18451 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18452 | test "$hardcode_minus_L_GCJ" != no; then |
18453 | # Linking always hardcodes the temporary library directory. |
18454 | hardcode_action_GCJ=relink |
18455 | else |
18456 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18457 | hardcode_action_GCJ=immediate |
18458 | fi |
18459 | else |
18460 | # We cannot hardcode anything, or else we can only hardcode existing |
18461 | # directories. |
18462 | hardcode_action_GCJ=unsupported |
18463 | fi |
dd184caf |
18464 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18465 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18466 | |
18467 | if test "$hardcode_action_GCJ" = relink; then |
18468 | # Fast installation is not supported |
18469 | enable_fast_install=no |
18470 | elif test "$shlibpath_overrides_runpath" = yes || |
18471 | test "$enable_shared" = no; then |
18472 | # Fast installation is not necessary |
18473 | enable_fast_install=needless |
18474 | fi |
18475 | |
18476 | |
18477 | # The else clause should only fire when bootstrapping the |
18478 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18479 | # with your package, and you will get complaints that there are |
18480 | # no rules to generate ltmain.sh. |
18481 | if test -f "$ltmain"; then |
18482 | # See if we are running on zsh, and set the options which allow our commands through |
18483 | # without removal of \ escapes. |
18484 | if test -n "${ZSH_VERSION+set}" ; then |
18485 | setopt NO_GLOB_SUBST |
18486 | fi |
18487 | # Now quote all the things that may contain metacharacters while being |
18488 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18489 | # variables and quote the copies for generation of the libtool script. |
18490 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18491 | SED SHELL STRIP \ |
18492 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18493 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18494 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18495 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18496 | lt_cv_sys_global_symbol_to_c_name_address \ |
18497 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18498 | old_postinstall_cmds old_postuninstall_cmds \ |
18499 | compiler_GCJ \ |
18500 | CC_GCJ \ |
18501 | LD_GCJ \ |
18502 | lt_prog_compiler_wl_GCJ \ |
18503 | lt_prog_compiler_pic_GCJ \ |
18504 | lt_prog_compiler_static_GCJ \ |
18505 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18506 | export_dynamic_flag_spec_GCJ \ |
18507 | thread_safe_flag_spec_GCJ \ |
18508 | whole_archive_flag_spec_GCJ \ |
18509 | enable_shared_with_static_runtimes_GCJ \ |
18510 | old_archive_cmds_GCJ \ |
18511 | old_archive_from_new_cmds_GCJ \ |
18512 | predep_objects_GCJ \ |
18513 | postdep_objects_GCJ \ |
18514 | predeps_GCJ \ |
18515 | postdeps_GCJ \ |
18516 | compiler_lib_search_path_GCJ \ |
18517 | archive_cmds_GCJ \ |
18518 | archive_expsym_cmds_GCJ \ |
18519 | postinstall_cmds_GCJ \ |
18520 | postuninstall_cmds_GCJ \ |
18521 | old_archive_from_expsyms_cmds_GCJ \ |
18522 | allow_undefined_flag_GCJ \ |
18523 | no_undefined_flag_GCJ \ |
18524 | export_symbols_cmds_GCJ \ |
18525 | hardcode_libdir_flag_spec_GCJ \ |
18526 | hardcode_libdir_flag_spec_ld_GCJ \ |
18527 | hardcode_libdir_separator_GCJ \ |
18528 | hardcode_automatic_GCJ \ |
18529 | module_cmds_GCJ \ |
18530 | module_expsym_cmds_GCJ \ |
18531 | lt_cv_prog_compiler_c_o_GCJ \ |
18532 | exclude_expsyms_GCJ \ |
18533 | include_expsyms_GCJ; do |
18534 | |
18535 | case $var in |
18536 | old_archive_cmds_GCJ | \ |
18537 | old_archive_from_new_cmds_GCJ | \ |
18538 | archive_cmds_GCJ | \ |
18539 | archive_expsym_cmds_GCJ | \ |
18540 | module_cmds_GCJ | \ |
18541 | module_expsym_cmds_GCJ | \ |
18542 | old_archive_from_expsyms_cmds_GCJ | \ |
18543 | export_symbols_cmds_GCJ | \ |
18544 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18545 | postinstall_cmds | postuninstall_cmds | \ |
18546 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18547 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18548 | # Double-quote double-evaled strings. |
18549 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18550 | ;; |
18551 | *) |
18552 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18553 | ;; |
18554 | esac |
18555 | done |
18556 | |
18557 | case $lt_echo in |
18558 | *'\$0 --fallback-echo"') |
18559 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18560 | ;; |
18561 | esac |
18562 | |
18563 | cfgfile="$ofile" |
18564 | |
18565 | cat <<__EOF__ >> "$cfgfile" |
18566 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18567 | |
18568 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18569 | |
18570 | # Shell to use when invoking shell scripts. |
18571 | SHELL=$lt_SHELL |
18572 | |
18573 | # Whether or not to build shared libraries. |
18574 | build_libtool_libs=$enable_shared |
18575 | |
18576 | # Whether or not to build static libraries. |
18577 | build_old_libs=$enable_static |
18578 | |
18579 | # Whether or not to add -lc for building shared libraries. |
18580 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18581 | |
18582 | # Whether or not to disallow shared libs when runtime libs are static |
18583 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18584 | |
18585 | # Whether or not to optimize for fast installation. |
18586 | fast_install=$enable_fast_install |
18587 | |
18588 | # The host system. |
18589 | host_alias=$host_alias |
18590 | host=$host |
18591 | host_os=$host_os |
18592 | |
18593 | # The build system. |
18594 | build_alias=$build_alias |
18595 | build=$build |
18596 | build_os=$build_os |
18597 | |
18598 | # An echo program that does not interpret backslashes. |
18599 | echo=$lt_echo |
18600 | |
18601 | # The archiver. |
18602 | AR=$lt_AR |
18603 | AR_FLAGS=$lt_AR_FLAGS |
18604 | |
18605 | # A C compiler. |
18606 | LTCC=$lt_LTCC |
18607 | |
18608 | # LTCC compiler flags. |
18609 | LTCFLAGS=$lt_LTCFLAGS |
18610 | |
18611 | # A language-specific compiler. |
18612 | CC=$lt_compiler_GCJ |
18613 | |
18614 | # Is the compiler the GNU C compiler? |
18615 | with_gcc=$GCC_GCJ |
18616 | |
d9898ee8 |
18617 | # An ERE matcher. |
18618 | EGREP=$lt_EGREP |
18619 | |
18620 | # The linker used to build libraries. |
18621 | LD=$lt_LD_GCJ |
18622 | |
18623 | # Whether we need hard or soft links. |
18624 | LN_S=$lt_LN_S |
18625 | |
18626 | # A BSD-compatible nm program. |
18627 | NM=$lt_NM |
18628 | |
18629 | # A symbol stripping program |
18630 | STRIP=$lt_STRIP |
18631 | |
18632 | # Used to examine libraries when file_magic_cmd begins "file" |
18633 | MAGIC_CMD=$MAGIC_CMD |
18634 | |
18635 | # Used on cygwin: DLL creation program. |
18636 | DLLTOOL="$DLLTOOL" |
18637 | |
18638 | # Used on cygwin: object dumper. |
18639 | OBJDUMP="$OBJDUMP" |
18640 | |
18641 | # Used on cygwin: assembler. |
18642 | AS="$AS" |
18643 | |
18644 | # The name of the directory that contains temporary libtool files. |
18645 | objdir=$objdir |
18646 | |
18647 | # How to create reloadable object files. |
18648 | reload_flag=$lt_reload_flag |
18649 | reload_cmds=$lt_reload_cmds |
18650 | |
18651 | # How to pass a linker flag through the compiler. |
18652 | wl=$lt_lt_prog_compiler_wl_GCJ |
18653 | |
18654 | # Object file suffix (normally "o"). |
18655 | objext="$ac_objext" |
18656 | |
18657 | # Old archive suffix (normally "a"). |
18658 | libext="$libext" |
18659 | |
18660 | # Shared library suffix (normally ".so"). |
18661 | shrext_cmds='$shrext_cmds' |
18662 | |
18663 | # Executable file suffix (normally ""). |
18664 | exeext="$exeext" |
18665 | |
18666 | # Additional compiler flags for building library objects. |
18667 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18668 | pic_mode=$pic_mode |
18669 | |
18670 | # What is the maximum length of a command? |
18671 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18672 | |
18673 | # Does compiler simultaneously support -c and -o options? |
18674 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18675 | |
18676 | # Must we lock files when doing compilation? |
18677 | need_locks=$lt_need_locks |
18678 | |
18679 | # Do we need the lib prefix for modules? |
18680 | need_lib_prefix=$need_lib_prefix |
18681 | |
18682 | # Do we need a version for libraries? |
18683 | need_version=$need_version |
18684 | |
18685 | # Whether dlopen is supported. |
18686 | dlopen_support=$enable_dlopen |
18687 | |
18688 | # Whether dlopen of programs is supported. |
18689 | dlopen_self=$enable_dlopen_self |
18690 | |
18691 | # Whether dlopen of statically linked programs is supported. |
18692 | dlopen_self_static=$enable_dlopen_self_static |
18693 | |
18694 | # Compiler flag to prevent dynamic linking. |
18695 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18696 | |
18697 | # Compiler flag to turn off builtin functions. |
18698 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18699 | |
18700 | # Compiler flag to allow reflexive dlopens. |
18701 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18702 | |
18703 | # Compiler flag to generate shared objects directly from archives. |
18704 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18705 | |
18706 | # Compiler flag to generate thread-safe objects. |
18707 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18708 | |
18709 | # Library versioning type. |
18710 | version_type=$version_type |
18711 | |
18712 | # Format of library name prefix. |
18713 | libname_spec=$lt_libname_spec |
18714 | |
18715 | # List of archive names. First name is the real one, the rest are links. |
18716 | # The last name is the one that the linker finds with -lNAME. |
18717 | library_names_spec=$lt_library_names_spec |
18718 | |
18719 | # The coded name of the library, if different from the real name. |
18720 | soname_spec=$lt_soname_spec |
18721 | |
18722 | # Commands used to build and install an old-style archive. |
18723 | RANLIB=$lt_RANLIB |
18724 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18725 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18726 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18727 | |
18728 | # Create an old-style archive from a shared archive. |
18729 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18730 | |
18731 | # Create a temporary old-style archive to link instead of a shared archive. |
18732 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18733 | |
18734 | # Commands used to build and install a shared archive. |
18735 | archive_cmds=$lt_archive_cmds_GCJ |
18736 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18737 | postinstall_cmds=$lt_postinstall_cmds |
18738 | postuninstall_cmds=$lt_postuninstall_cmds |
18739 | |
18740 | # Commands used to build a loadable module (assumed same as above if empty) |
18741 | module_cmds=$lt_module_cmds_GCJ |
18742 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18743 | |
18744 | # Commands to strip libraries. |
18745 | old_striplib=$lt_old_striplib |
18746 | striplib=$lt_striplib |
18747 | |
18748 | # Dependencies to place before the objects being linked to create a |
18749 | # shared library. |
dd184caf |
18750 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18751 | |
18752 | # Dependencies to place after the objects being linked to create a |
18753 | # shared library. |
dd184caf |
18754 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18755 | |
18756 | # Dependencies to place before the objects being linked to create a |
18757 | # shared library. |
18758 | predeps=$lt_predeps_GCJ |
18759 | |
18760 | # Dependencies to place after the objects being linked to create a |
18761 | # shared library. |
18762 | postdeps=$lt_postdeps_GCJ |
18763 | |
18764 | # The library search path used internally by the compiler when linking |
18765 | # a shared library. |
dd184caf |
18766 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18767 | |
18768 | # Method to check whether dependent libraries are shared objects. |
18769 | deplibs_check_method=$lt_deplibs_check_method |
18770 | |
18771 | # Command to use when deplibs_check_method == file_magic. |
18772 | file_magic_cmd=$lt_file_magic_cmd |
18773 | |
18774 | # Flag that allows shared libraries with undefined symbols to be built. |
18775 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18776 | |
18777 | # Flag that forces no undefined symbols. |
18778 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18779 | |
18780 | # Commands used to finish a libtool library installation in a directory. |
18781 | finish_cmds=$lt_finish_cmds |
18782 | |
18783 | # Same as above, but a single script fragment to be evaled but not shown. |
18784 | finish_eval=$lt_finish_eval |
18785 | |
18786 | # Take the output of nm and produce a listing of raw symbols and C names. |
18787 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18788 | |
18789 | # Transform the output of nm in a proper C declaration |
18790 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18791 | |
18792 | # Transform the output of nm in a C name address pair |
18793 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18794 | |
18795 | # This is the shared library runtime path variable. |
18796 | runpath_var=$runpath_var |
18797 | |
18798 | # This is the shared library path variable. |
18799 | shlibpath_var=$shlibpath_var |
18800 | |
18801 | # Is shlibpath searched before the hard-coded library search path? |
18802 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18803 | |
18804 | # How to hardcode a shared library path into an executable. |
18805 | hardcode_action=$hardcode_action_GCJ |
18806 | |
18807 | # Whether we should hardcode library paths into libraries. |
18808 | hardcode_into_libs=$hardcode_into_libs |
18809 | |
18810 | # Flag to hardcode \$libdir into a binary during linking. |
18811 | # This must work even if \$libdir does not exist. |
18812 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18813 | |
18814 | # If ld is used when linking, flag to hardcode \$libdir into |
18815 | # a binary during linking. This must work even if \$libdir does |
18816 | # not exist. |
18817 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18818 | |
18819 | # Whether we need a single -rpath flag with a separated argument. |
18820 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18821 | |
18822 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18823 | # resulting binary. |
18824 | hardcode_direct=$hardcode_direct_GCJ |
18825 | |
18826 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18827 | # resulting binary. |
18828 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18829 | |
18830 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18831 | # the resulting binary. |
18832 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18833 | |
18834 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18835 | # and all subsequent libraries and executables linked against it. |
18836 | hardcode_automatic=$hardcode_automatic_GCJ |
18837 | |
18838 | # Variables whose values should be saved in libtool wrapper scripts and |
18839 | # restored at relink time. |
18840 | variables_saved_for_relink="$variables_saved_for_relink" |
18841 | |
18842 | # Whether libtool must link a program against all its dependency libraries. |
18843 | link_all_deplibs=$link_all_deplibs_GCJ |
18844 | |
18845 | # Compile-time system search path for libraries |
dd184caf |
18846 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18847 | |
18848 | # Run-time system search path for libraries |
18849 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18850 | |
18851 | # Fix the shell variable \$srcfile for the compiler. |
18852 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18853 | |
18854 | # Set to yes if exported symbols are required. |
18855 | always_export_symbols=$always_export_symbols_GCJ |
18856 | |
18857 | # The commands to list exported symbols. |
18858 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18859 | |
18860 | # The commands to extract the exported symbol list from a shared archive. |
18861 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18862 | |
18863 | # Symbols that should not be listed in the preloaded symbols. |
18864 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18865 | |
18866 | # Symbols that must always be exported. |
18867 | include_expsyms=$lt_include_expsyms_GCJ |
18868 | |
18869 | # ### END LIBTOOL TAG CONFIG: $tagname |
18870 | |
18871 | __EOF__ |
18872 | |
18873 | |
18874 | else |
18875 | # If there is no Makefile yet, we rely on a make rule to execute |
18876 | # `config.status --recheck' to rerun these tests and create the |
18877 | # libtool script then. |
18878 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18879 | if test -f "$ltmain_in"; then |
18880 | test -f Makefile && make "$ltmain" |
18881 | fi |
18882 | fi |
18883 | |
18884 | |
18885 | ac_ext=c |
18886 | ac_cpp='$CPP $CPPFLAGS' |
18887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18890 | |
18891 | CC="$lt_save_CC" |
18892 | |
18893 | else |
18894 | tagname="" |
18895 | fi |
18896 | ;; |
18897 | |
18898 | RC) |
18899 | |
18900 | |
d9898ee8 |
18901 | # Source file extension for RC test sources. |
18902 | ac_ext=rc |
18903 | |
18904 | # Object file extension for compiled RC test sources. |
18905 | objext=o |
18906 | objext_RC=$objext |
18907 | |
18908 | # Code to be used in simple compile tests |
18909 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18910 | |
18911 | # Code to be used in simple link tests |
18912 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18913 | |
18914 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18915 | |
18916 | # If no C compiler was specified, use CC. |
18917 | LTCC=${LTCC-"$CC"} |
18918 | |
18919 | # If no C compiler flags were specified, use CFLAGS. |
18920 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18921 | |
18922 | # Allow CC to be a program name with arguments. |
18923 | compiler=$CC |
18924 | |
18925 | |
18926 | # save warnings/boilerplate of simple test code |
18927 | ac_outfile=conftest.$ac_objext |
18928 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18929 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18930 | _lt_compiler_boilerplate=`cat conftest.err` |
18931 | $rm conftest* |
18932 | |
18933 | ac_outfile=conftest.$ac_objext |
18934 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18935 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18936 | _lt_linker_boilerplate=`cat conftest.err` |
18937 | $rm conftest* |
18938 | |
18939 | |
18940 | # Allow CC to be a program name with arguments. |
18941 | lt_save_CC="$CC" |
18942 | CC=${RC-"windres"} |
18943 | compiler=$CC |
18944 | compiler_RC=$CC |
18945 | for cc_temp in $compiler""; do |
18946 | case $cc_temp in |
18947 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18948 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18949 | \-*) ;; |
18950 | *) break;; |
18951 | esac |
18952 | done |
18953 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18954 | |
18955 | lt_cv_prog_compiler_c_o_RC=yes |
18956 | |
18957 | # The else clause should only fire when bootstrapping the |
18958 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18959 | # with your package, and you will get complaints that there are |
18960 | # no rules to generate ltmain.sh. |
18961 | if test -f "$ltmain"; then |
18962 | # See if we are running on zsh, and set the options which allow our commands through |
18963 | # without removal of \ escapes. |
18964 | if test -n "${ZSH_VERSION+set}" ; then |
18965 | setopt NO_GLOB_SUBST |
18966 | fi |
18967 | # Now quote all the things that may contain metacharacters while being |
18968 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18969 | # variables and quote the copies for generation of the libtool script. |
18970 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18971 | SED SHELL STRIP \ |
18972 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18973 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18974 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18975 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18976 | lt_cv_sys_global_symbol_to_c_name_address \ |
18977 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18978 | old_postinstall_cmds old_postuninstall_cmds \ |
18979 | compiler_RC \ |
18980 | CC_RC \ |
18981 | LD_RC \ |
18982 | lt_prog_compiler_wl_RC \ |
18983 | lt_prog_compiler_pic_RC \ |
18984 | lt_prog_compiler_static_RC \ |
18985 | lt_prog_compiler_no_builtin_flag_RC \ |
18986 | export_dynamic_flag_spec_RC \ |
18987 | thread_safe_flag_spec_RC \ |
18988 | whole_archive_flag_spec_RC \ |
18989 | enable_shared_with_static_runtimes_RC \ |
18990 | old_archive_cmds_RC \ |
18991 | old_archive_from_new_cmds_RC \ |
18992 | predep_objects_RC \ |
18993 | postdep_objects_RC \ |
18994 | predeps_RC \ |
18995 | postdeps_RC \ |
18996 | compiler_lib_search_path_RC \ |
18997 | archive_cmds_RC \ |
18998 | archive_expsym_cmds_RC \ |
18999 | postinstall_cmds_RC \ |
19000 | postuninstall_cmds_RC \ |
19001 | old_archive_from_expsyms_cmds_RC \ |
19002 | allow_undefined_flag_RC \ |
19003 | no_undefined_flag_RC \ |
19004 | export_symbols_cmds_RC \ |
19005 | hardcode_libdir_flag_spec_RC \ |
19006 | hardcode_libdir_flag_spec_ld_RC \ |
19007 | hardcode_libdir_separator_RC \ |
19008 | hardcode_automatic_RC \ |
19009 | module_cmds_RC \ |
19010 | module_expsym_cmds_RC \ |
19011 | lt_cv_prog_compiler_c_o_RC \ |
19012 | exclude_expsyms_RC \ |
19013 | include_expsyms_RC; do |
19014 | |
19015 | case $var in |
19016 | old_archive_cmds_RC | \ |
19017 | old_archive_from_new_cmds_RC | \ |
19018 | archive_cmds_RC | \ |
19019 | archive_expsym_cmds_RC | \ |
19020 | module_cmds_RC | \ |
19021 | module_expsym_cmds_RC | \ |
19022 | old_archive_from_expsyms_cmds_RC | \ |
19023 | export_symbols_cmds_RC | \ |
19024 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19025 | postinstall_cmds | postuninstall_cmds | \ |
19026 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19027 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19028 | # Double-quote double-evaled strings. |
19029 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19030 | ;; |
19031 | *) |
19032 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19033 | ;; |
19034 | esac |
19035 | done |
19036 | |
19037 | case $lt_echo in |
19038 | *'\$0 --fallback-echo"') |
19039 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19040 | ;; |
19041 | esac |
19042 | |
19043 | cfgfile="$ofile" |
19044 | |
19045 | cat <<__EOF__ >> "$cfgfile" |
19046 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19047 | |
19048 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19049 | |
19050 | # Shell to use when invoking shell scripts. |
19051 | SHELL=$lt_SHELL |
19052 | |
19053 | # Whether or not to build shared libraries. |
19054 | build_libtool_libs=$enable_shared |
19055 | |
19056 | # Whether or not to build static libraries. |
19057 | build_old_libs=$enable_static |
19058 | |
19059 | # Whether or not to add -lc for building shared libraries. |
19060 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19061 | |
19062 | # Whether or not to disallow shared libs when runtime libs are static |
19063 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19064 | |
19065 | # Whether or not to optimize for fast installation. |
19066 | fast_install=$enable_fast_install |
19067 | |
19068 | # The host system. |
19069 | host_alias=$host_alias |
19070 | host=$host |
19071 | host_os=$host_os |
19072 | |
19073 | # The build system. |
19074 | build_alias=$build_alias |
19075 | build=$build |
19076 | build_os=$build_os |
19077 | |
19078 | # An echo program that does not interpret backslashes. |
19079 | echo=$lt_echo |
19080 | |
19081 | # The archiver. |
19082 | AR=$lt_AR |
19083 | AR_FLAGS=$lt_AR_FLAGS |
19084 | |
19085 | # A C compiler. |
19086 | LTCC=$lt_LTCC |
19087 | |
19088 | # LTCC compiler flags. |
19089 | LTCFLAGS=$lt_LTCFLAGS |
19090 | |
19091 | # A language-specific compiler. |
19092 | CC=$lt_compiler_RC |
19093 | |
19094 | # Is the compiler the GNU C compiler? |
19095 | with_gcc=$GCC_RC |
19096 | |
d9898ee8 |
19097 | # An ERE matcher. |
19098 | EGREP=$lt_EGREP |
19099 | |
19100 | # The linker used to build libraries. |
19101 | LD=$lt_LD_RC |
19102 | |
19103 | # Whether we need hard or soft links. |
19104 | LN_S=$lt_LN_S |
19105 | |
19106 | # A BSD-compatible nm program. |
19107 | NM=$lt_NM |
19108 | |
19109 | # A symbol stripping program |
19110 | STRIP=$lt_STRIP |
19111 | |
19112 | # Used to examine libraries when file_magic_cmd begins "file" |
19113 | MAGIC_CMD=$MAGIC_CMD |
19114 | |
19115 | # Used on cygwin: DLL creation program. |
19116 | DLLTOOL="$DLLTOOL" |
19117 | |
19118 | # Used on cygwin: object dumper. |
19119 | OBJDUMP="$OBJDUMP" |
19120 | |
19121 | # Used on cygwin: assembler. |
19122 | AS="$AS" |
19123 | |
19124 | # The name of the directory that contains temporary libtool files. |
19125 | objdir=$objdir |
19126 | |
19127 | # How to create reloadable object files. |
19128 | reload_flag=$lt_reload_flag |
19129 | reload_cmds=$lt_reload_cmds |
19130 | |
19131 | # How to pass a linker flag through the compiler. |
19132 | wl=$lt_lt_prog_compiler_wl_RC |
19133 | |
19134 | # Object file suffix (normally "o"). |
19135 | objext="$ac_objext" |
19136 | |
19137 | # Old archive suffix (normally "a"). |
19138 | libext="$libext" |
19139 | |
19140 | # Shared library suffix (normally ".so"). |
19141 | shrext_cmds='$shrext_cmds' |
19142 | |
19143 | # Executable file suffix (normally ""). |
19144 | exeext="$exeext" |
19145 | |
19146 | # Additional compiler flags for building library objects. |
19147 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19148 | pic_mode=$pic_mode |
19149 | |
19150 | # What is the maximum length of a command? |
19151 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19152 | |
19153 | # Does compiler simultaneously support -c and -o options? |
19154 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19155 | |
19156 | # Must we lock files when doing compilation? |
19157 | need_locks=$lt_need_locks |
19158 | |
19159 | # Do we need the lib prefix for modules? |
19160 | need_lib_prefix=$need_lib_prefix |
19161 | |
19162 | # Do we need a version for libraries? |
19163 | need_version=$need_version |
19164 | |
19165 | # Whether dlopen is supported. |
19166 | dlopen_support=$enable_dlopen |
19167 | |
19168 | # Whether dlopen of programs is supported. |
19169 | dlopen_self=$enable_dlopen_self |
19170 | |
19171 | # Whether dlopen of statically linked programs is supported. |
19172 | dlopen_self_static=$enable_dlopen_self_static |
19173 | |
19174 | # Compiler flag to prevent dynamic linking. |
19175 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19176 | |
19177 | # Compiler flag to turn off builtin functions. |
19178 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19179 | |
19180 | # Compiler flag to allow reflexive dlopens. |
19181 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19182 | |
19183 | # Compiler flag to generate shared objects directly from archives. |
19184 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19185 | |
19186 | # Compiler flag to generate thread-safe objects. |
19187 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19188 | |
19189 | # Library versioning type. |
19190 | version_type=$version_type |
19191 | |
19192 | # Format of library name prefix. |
19193 | libname_spec=$lt_libname_spec |
19194 | |
19195 | # List of archive names. First name is the real one, the rest are links. |
19196 | # The last name is the one that the linker finds with -lNAME. |
19197 | library_names_spec=$lt_library_names_spec |
19198 | |
19199 | # The coded name of the library, if different from the real name. |
19200 | soname_spec=$lt_soname_spec |
19201 | |
19202 | # Commands used to build and install an old-style archive. |
19203 | RANLIB=$lt_RANLIB |
19204 | old_archive_cmds=$lt_old_archive_cmds_RC |
19205 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19206 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19207 | |
19208 | # Create an old-style archive from a shared archive. |
19209 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19210 | |
19211 | # Create a temporary old-style archive to link instead of a shared archive. |
19212 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19213 | |
19214 | # Commands used to build and install a shared archive. |
19215 | archive_cmds=$lt_archive_cmds_RC |
19216 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19217 | postinstall_cmds=$lt_postinstall_cmds |
19218 | postuninstall_cmds=$lt_postuninstall_cmds |
19219 | |
19220 | # Commands used to build a loadable module (assumed same as above if empty) |
19221 | module_cmds=$lt_module_cmds_RC |
19222 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19223 | |
19224 | # Commands to strip libraries. |
19225 | old_striplib=$lt_old_striplib |
19226 | striplib=$lt_striplib |
19227 | |
19228 | # Dependencies to place before the objects being linked to create a |
19229 | # shared library. |
dd184caf |
19230 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19231 | |
19232 | # Dependencies to place after the objects being linked to create a |
19233 | # shared library. |
dd184caf |
19234 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19235 | |
19236 | # Dependencies to place before the objects being linked to create a |
19237 | # shared library. |
19238 | predeps=$lt_predeps_RC |
19239 | |
19240 | # Dependencies to place after the objects being linked to create a |
19241 | # shared library. |
19242 | postdeps=$lt_postdeps_RC |
19243 | |
19244 | # The library search path used internally by the compiler when linking |
19245 | # a shared library. |
dd184caf |
19246 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19247 | |
19248 | # Method to check whether dependent libraries are shared objects. |
19249 | deplibs_check_method=$lt_deplibs_check_method |
19250 | |
19251 | # Command to use when deplibs_check_method == file_magic. |
19252 | file_magic_cmd=$lt_file_magic_cmd |
19253 | |
19254 | # Flag that allows shared libraries with undefined symbols to be built. |
19255 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19256 | |
19257 | # Flag that forces no undefined symbols. |
19258 | no_undefined_flag=$lt_no_undefined_flag_RC |
19259 | |
19260 | # Commands used to finish a libtool library installation in a directory. |
19261 | finish_cmds=$lt_finish_cmds |
19262 | |
19263 | # Same as above, but a single script fragment to be evaled but not shown. |
19264 | finish_eval=$lt_finish_eval |
19265 | |
19266 | # Take the output of nm and produce a listing of raw symbols and C names. |
19267 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19268 | |
19269 | # Transform the output of nm in a proper C declaration |
19270 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19271 | |
19272 | # Transform the output of nm in a C name address pair |
19273 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19274 | |
19275 | # This is the shared library runtime path variable. |
19276 | runpath_var=$runpath_var |
19277 | |
19278 | # This is the shared library path variable. |
19279 | shlibpath_var=$shlibpath_var |
19280 | |
19281 | # Is shlibpath searched before the hard-coded library search path? |
19282 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19283 | |
19284 | # How to hardcode a shared library path into an executable. |
19285 | hardcode_action=$hardcode_action_RC |
19286 | |
19287 | # Whether we should hardcode library paths into libraries. |
19288 | hardcode_into_libs=$hardcode_into_libs |
19289 | |
19290 | # Flag to hardcode \$libdir into a binary during linking. |
19291 | # This must work even if \$libdir does not exist. |
19292 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19293 | |
19294 | # If ld is used when linking, flag to hardcode \$libdir into |
19295 | # a binary during linking. This must work even if \$libdir does |
19296 | # not exist. |
19297 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19298 | |
19299 | # Whether we need a single -rpath flag with a separated argument. |
19300 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19301 | |
19302 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19303 | # resulting binary. |
19304 | hardcode_direct=$hardcode_direct_RC |
19305 | |
19306 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19307 | # resulting binary. |
19308 | hardcode_minus_L=$hardcode_minus_L_RC |
19309 | |
19310 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19311 | # the resulting binary. |
19312 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19313 | |
19314 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19315 | # and all subsequent libraries and executables linked against it. |
19316 | hardcode_automatic=$hardcode_automatic_RC |
19317 | |
19318 | # Variables whose values should be saved in libtool wrapper scripts and |
19319 | # restored at relink time. |
19320 | variables_saved_for_relink="$variables_saved_for_relink" |
19321 | |
19322 | # Whether libtool must link a program against all its dependency libraries. |
19323 | link_all_deplibs=$link_all_deplibs_RC |
19324 | |
19325 | # Compile-time system search path for libraries |
dd184caf |
19326 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19327 | |
19328 | # Run-time system search path for libraries |
19329 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19330 | |
19331 | # Fix the shell variable \$srcfile for the compiler. |
19332 | fix_srcfile_path="$fix_srcfile_path_RC" |
19333 | |
19334 | # Set to yes if exported symbols are required. |
19335 | always_export_symbols=$always_export_symbols_RC |
19336 | |
19337 | # The commands to list exported symbols. |
19338 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19339 | |
19340 | # The commands to extract the exported symbol list from a shared archive. |
19341 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19342 | |
19343 | # Symbols that should not be listed in the preloaded symbols. |
19344 | exclude_expsyms=$lt_exclude_expsyms_RC |
19345 | |
19346 | # Symbols that must always be exported. |
19347 | include_expsyms=$lt_include_expsyms_RC |
19348 | |
19349 | # ### END LIBTOOL TAG CONFIG: $tagname |
19350 | |
19351 | __EOF__ |
19352 | |
19353 | |
19354 | else |
19355 | # If there is no Makefile yet, we rely on a make rule to execute |
19356 | # `config.status --recheck' to rerun these tests and create the |
19357 | # libtool script then. |
19358 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19359 | if test -f "$ltmain_in"; then |
19360 | test -f Makefile && make "$ltmain" |
19361 | fi |
19362 | fi |
19363 | |
19364 | |
19365 | ac_ext=c |
19366 | ac_cpp='$CPP $CPPFLAGS' |
19367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19370 | |
19371 | CC="$lt_save_CC" |
19372 | |
19373 | ;; |
19374 | |
19375 | *) |
19376 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19377 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19378 | { (exit 1); exit 1; }; } |
19379 | ;; |
19380 | esac |
19381 | |
19382 | # Append the new tag name to the list of available tags. |
19383 | if test -n "$tagname" ; then |
19384 | available_tags="$available_tags $tagname" |
19385 | fi |
19386 | fi |
19387 | done |
19388 | IFS="$lt_save_ifs" |
19389 | |
19390 | # Now substitute the updated list of available tags. |
19391 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19392 | mv "${ofile}T" "$ofile" |
19393 | chmod +x "$ofile" |
19394 | else |
19395 | rm -f "${ofile}T" |
19396 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19397 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19398 | { (exit 1); exit 1; }; } |
19399 | fi |
19400 | fi |
19401 | |
19402 | |
19403 | |
19404 | # This can be used to rebuild libtool when needed |
19405 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19406 | |
19407 | # Always use our own libtool. |
19408 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19409 | |
19410 | # Prevent multiple expansion |
19411 | |
19412 | |
19413 | |
19414 | |
19415 | |
19416 | |
19417 | |
19418 | |
19419 | |
19420 | |
19421 | |
19422 | |
19423 | |
19424 | |
19425 | |
19426 | |
19427 | |
19428 | |
19429 | |
19430 | |
19431 | |
19432 | if test x$GCC = xyes |
19433 | then |
19434 | CFLAGS="-Wall $CFLAGS" |
19435 | fi |
19436 | if test x$GXX = xyes |
19437 | then |
19438 | CXXFLAGS="-Wall $CXXFLAGS" |
19439 | fi |
19440 | |
19441 | CFLAGS="-I$srcdir/.. -I.. $CFLAGS" |
19442 | CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS" |
19443 | |
19444 | |
19445 | |
dd184caf |
19446 | # Check whether --with-db was given. |
d9898ee8 |
19447 | if test "${with_db+set}" = set; then |
dd184caf |
19448 | withval=$with_db; db="$withval" |
d9898ee8 |
19449 | else |
19450 | db="" |
dd184caf |
19451 | fi |
19452 | |
d9898ee8 |
19453 | |
19454 | . ../dbobj.config |
19455 | |
19456 | makedatprog_target=makedatprog |
19457 | case "$db" in |
19458 | gdbm) |
19459 | dblibrary=../gdbmobj/libgdbmobj.la |
19460 | LIBDB="" |
19461 | ;; |
19462 | db) |
19463 | dblibrary=../bdbobj/libbdbobj.la |
19464 | LIBGDBM="" |
19465 | ;; |
19466 | *) |
19467 | makedatprog_target="" |
19468 | esac |
19469 | |
19470 | |
19471 | |
19472 | |
19473 | |
19474 | |
dd184caf |
19475 | if test "$USE_GDBM" = 1; then |
d9898ee8 |
19476 | USE_GDBM_TRUE= |
19477 | USE_GDBM_FALSE='#' |
19478 | else |
19479 | USE_GDBM_TRUE='#' |
19480 | USE_GDBM_FALSE= |
19481 | fi |
19482 | |
dd184caf |
19483 | if test "$USE_DB" = 1; then |
d9898ee8 |
19484 | USE_DB_TRUE= |
19485 | USE_DB_FALSE='#' |
19486 | else |
19487 | USE_DB_TRUE='#' |
19488 | USE_DB_FALSE= |
19489 | fi |
19490 | |
19491 | |
19492 | |
dd184caf |
19493 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19494 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
19495 | if test "${ac_cv_header_stdc+set}" = set; then |
19496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19497 | else |
19498 | cat >conftest.$ac_ext <<_ACEOF |
19499 | /* confdefs.h. */ |
19500 | _ACEOF |
19501 | cat confdefs.h >>conftest.$ac_ext |
19502 | cat >>conftest.$ac_ext <<_ACEOF |
19503 | /* end confdefs.h. */ |
19504 | #include <stdlib.h> |
19505 | #include <stdarg.h> |
19506 | #include <string.h> |
19507 | #include <float.h> |
19508 | |
19509 | int |
19510 | main () |
19511 | { |
19512 | |
19513 | ; |
19514 | return 0; |
19515 | } |
19516 | _ACEOF |
19517 | rm -f conftest.$ac_objext |
dd184caf |
19518 | if { (ac_try="$ac_compile" |
19519 | case "(($ac_try" in |
19520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19521 | *) ac_try_echo=$ac_try;; |
19522 | esac |
19523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19524 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19525 | ac_status=$? |
19526 | grep -v '^ *+' conftest.er1 >conftest.err |
19527 | rm -f conftest.er1 |
19528 | cat conftest.err >&5 |
19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19530 | (exit $ac_status); } && { |
19531 | test -z "$ac_c_werror_flag" || |
19532 | test ! -s conftest.err |
19533 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19534 | ac_cv_header_stdc=yes |
19535 | else |
19536 | echo "$as_me: failed program was:" >&5 |
19537 | sed 's/^/| /' conftest.$ac_ext >&5 |
19538 | |
dd184caf |
19539 | ac_cv_header_stdc=no |
d9898ee8 |
19540 | fi |
dd184caf |
19541 | |
19542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19543 | |
19544 | if test $ac_cv_header_stdc = yes; then |
19545 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
19546 | cat >conftest.$ac_ext <<_ACEOF |
19547 | /* confdefs.h. */ |
19548 | _ACEOF |
19549 | cat confdefs.h >>conftest.$ac_ext |
19550 | cat >>conftest.$ac_ext <<_ACEOF |
19551 | /* end confdefs.h. */ |
19552 | #include <string.h> |
19553 | |
19554 | _ACEOF |
19555 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19556 | $EGREP "memchr" >/dev/null 2>&1; then |
19557 | : |
19558 | else |
19559 | ac_cv_header_stdc=no |
19560 | fi |
19561 | rm -f conftest* |
19562 | |
19563 | fi |
19564 | |
19565 | if test $ac_cv_header_stdc = yes; then |
19566 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
19567 | cat >conftest.$ac_ext <<_ACEOF |
19568 | /* confdefs.h. */ |
19569 | _ACEOF |
19570 | cat confdefs.h >>conftest.$ac_ext |
19571 | cat >>conftest.$ac_ext <<_ACEOF |
19572 | /* end confdefs.h. */ |
19573 | #include <stdlib.h> |
19574 | |
19575 | _ACEOF |
19576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19577 | $EGREP "free" >/dev/null 2>&1; then |
19578 | : |
19579 | else |
19580 | ac_cv_header_stdc=no |
19581 | fi |
19582 | rm -f conftest* |
19583 | |
19584 | fi |
19585 | |
19586 | if test $ac_cv_header_stdc = yes; then |
19587 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
19588 | if test "$cross_compiling" = yes; then |
19589 | : |
19590 | else |
19591 | cat >conftest.$ac_ext <<_ACEOF |
19592 | /* confdefs.h. */ |
19593 | _ACEOF |
19594 | cat confdefs.h >>conftest.$ac_ext |
19595 | cat >>conftest.$ac_ext <<_ACEOF |
19596 | /* end confdefs.h. */ |
19597 | #include <ctype.h> |
dd184caf |
19598 | #include <stdlib.h> |
d9898ee8 |
19599 | #if ((' ' & 0x0FF) == 0x020) |
19600 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
19601 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
19602 | #else |
19603 | # define ISLOWER(c) \ |
19604 | (('a' <= (c) && (c) <= 'i') \ |
19605 | || ('j' <= (c) && (c) <= 'r') \ |
19606 | || ('s' <= (c) && (c) <= 'z')) |
19607 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
19608 | #endif |
19609 | |
19610 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
19611 | int |
19612 | main () |
19613 | { |
19614 | int i; |
19615 | for (i = 0; i < 256; i++) |
19616 | if (XOR (islower (i), ISLOWER (i)) |
19617 | || toupper (i) != TOUPPER (i)) |
dd184caf |
19618 | return 2; |
19619 | return 0; |
d9898ee8 |
19620 | } |
19621 | _ACEOF |
19622 | rm -f conftest$ac_exeext |
dd184caf |
19623 | if { (ac_try="$ac_link" |
19624 | case "(($ac_try" in |
19625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19626 | *) ac_try_echo=$ac_try;; |
19627 | esac |
19628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19629 | (eval "$ac_link") 2>&5 |
d9898ee8 |
19630 | ac_status=$? |
19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19632 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
19633 | { (case "(($ac_try" in |
19634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19635 | *) ac_try_echo=$ac_try;; |
19636 | esac |
19637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19638 | (eval "$ac_try") 2>&5 |
d9898ee8 |
19639 | ac_status=$? |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19641 | (exit $ac_status); }; }; then |
19642 | : |
19643 | else |
19644 | echo "$as_me: program exited with status $ac_status" >&5 |
19645 | echo "$as_me: failed program was:" >&5 |
19646 | sed 's/^/| /' conftest.$ac_ext >&5 |
19647 | |
19648 | ( exit $ac_status ) |
19649 | ac_cv_header_stdc=no |
19650 | fi |
dd184caf |
19651 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19652 | fi |
dd184caf |
19653 | |
19654 | |
d9898ee8 |
19655 | fi |
19656 | fi |
dd184caf |
19657 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19658 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
19659 | if test $ac_cv_header_stdc = yes; then |
19660 | |
19661 | cat >>confdefs.h <<\_ACEOF |
19662 | #define STDC_HEADERS 1 |
19663 | _ACEOF |
19664 | |
19665 | fi |
19666 | |
19667 | |
19668 | for ac_header in unistd.h |
19669 | do |
19670 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
19671 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19672 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19674 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19676 | fi |
dd184caf |
19677 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19678 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19679 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19680 | else |
19681 | # Is the header compilable? |
dd184caf |
19682 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19683 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19684 | cat >conftest.$ac_ext <<_ACEOF |
19685 | /* confdefs.h. */ |
19686 | _ACEOF |
19687 | cat confdefs.h >>conftest.$ac_ext |
19688 | cat >>conftest.$ac_ext <<_ACEOF |
19689 | /* end confdefs.h. */ |
19690 | $ac_includes_default |
19691 | #include <$ac_header> |
19692 | _ACEOF |
19693 | rm -f conftest.$ac_objext |
dd184caf |
19694 | if { (ac_try="$ac_compile" |
19695 | case "(($ac_try" in |
19696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19697 | *) ac_try_echo=$ac_try;; |
19698 | esac |
19699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19700 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19701 | ac_status=$? |
19702 | grep -v '^ *+' conftest.er1 >conftest.err |
19703 | rm -f conftest.er1 |
19704 | cat conftest.err >&5 |
19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19706 | (exit $ac_status); } && { |
19707 | test -z "$ac_c_werror_flag" || |
19708 | test ! -s conftest.err |
19709 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19710 | ac_header_compiler=yes |
19711 | else |
19712 | echo "$as_me: failed program was:" >&5 |
19713 | sed 's/^/| /' conftest.$ac_ext >&5 |
19714 | |
dd184caf |
19715 | ac_header_compiler=no |
d9898ee8 |
19716 | fi |
dd184caf |
19717 | |
19718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19719 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19720 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19721 | |
19722 | # Is the header present? |
dd184caf |
19723 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19724 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19725 | cat >conftest.$ac_ext <<_ACEOF |
19726 | /* confdefs.h. */ |
19727 | _ACEOF |
19728 | cat confdefs.h >>conftest.$ac_ext |
19729 | cat >>conftest.$ac_ext <<_ACEOF |
19730 | /* end confdefs.h. */ |
19731 | #include <$ac_header> |
19732 | _ACEOF |
dd184caf |
19733 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19734 | case "(($ac_try" in |
19735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19736 | *) ac_try_echo=$ac_try;; |
19737 | esac |
19738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19740 | ac_status=$? |
19741 | grep -v '^ *+' conftest.er1 >conftest.err |
19742 | rm -f conftest.er1 |
19743 | cat conftest.err >&5 |
19744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19745 | (exit $ac_status); } >/dev/null && { |
19746 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19747 | test ! -s conftest.err |
19748 | }; then |
d9898ee8 |
19749 | ac_header_preproc=yes |
19750 | else |
19751 | echo "$as_me: failed program was:" >&5 |
19752 | sed 's/^/| /' conftest.$ac_ext >&5 |
19753 | |
19754 | ac_header_preproc=no |
19755 | fi |
dd184caf |
19756 | |
d9898ee8 |
19757 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
19758 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19759 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19760 | |
19761 | # So? What about this header? |
19762 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19763 | yes:no: ) |
19764 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19765 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19767 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19768 | ac_header_preproc=yes |
19769 | ;; |
19770 | no:yes:* ) |
19771 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19772 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19773 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19774 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19775 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19776 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19777 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19778 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19780 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19781 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19782 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
19783 | ( cat <<\_ASBOX |
d9898ee8 |
19784 | ## -------------------------------------------------- ## |
19785 | ## Report this to courier-users@lists.sourceforge.net ## |
19786 | ## -------------------------------------------------- ## |
19787 | _ASBOX |
dd184caf |
19788 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19789 | ;; |
19790 | esac |
dd184caf |
19791 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19793 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19795 | else |
19796 | eval "$as_ac_Header=\$ac_header_preproc" |
19797 | fi |
dd184caf |
19798 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19799 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19800 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19801 | |
19802 | fi |
19803 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19804 | cat >>confdefs.h <<_ACEOF |
19805 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19806 | _ACEOF |
19807 | |
19808 | fi |
19809 | |
19810 | done |
19811 | |
19812 | |
19813 | |
19814 | |
19815 | |
dd184caf |
19816 | # Check whether --with-makedatprog was given. |
d9898ee8 |
19817 | if test "${with_makedatprog+set}" = set; then |
dd184caf |
19818 | withval=$with_makedatprog; makedatprog="$withval" |
d9898ee8 |
19819 | else |
19820 | makedatprog="$bindir/makedatprog" |
dd184caf |
19821 | fi |
19822 | |
d9898ee8 |
19823 | |
19824 | makedatprogpath="$makedatprog" |
19825 | |
19826 | |
dd184caf |
19827 | ac_config_files="$ac_config_files Makefile makedat" |
19828 | |
d9898ee8 |
19829 | cat >confcache <<\_ACEOF |
19830 | # This file is a shell script that caches the results of configure |
19831 | # tests run on this system so they can be shared between configure |
19832 | # scripts and configure runs, see configure's option --config-cache. |
19833 | # It is not useful on other systems. If it contains results you don't |
19834 | # want to keep, you may remove or edit it. |
19835 | # |
19836 | # config.status only pays attention to the cache file if you give it |
19837 | # the --recheck option to rerun configure. |
19838 | # |
19839 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19840 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
19841 | # following values. |
19842 | |
19843 | _ACEOF |
19844 | |
19845 | # The following way of writing the cache mishandles newlines in values, |
19846 | # but we know of no workaround that is simple, portable, and efficient. |
dd184caf |
19847 | # So, we kill variables containing newlines. |
d9898ee8 |
19848 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19849 | # and sets the high bit in the cache file unless we assign to the vars. |
dd184caf |
19850 | ( |
19851 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
19852 | eval ac_val=\$$ac_var |
19853 | case $ac_val in #( |
19854 | *${as_nl}*) |
19855 | case $ac_var in #( |
19856 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
19857 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
19858 | esac |
19859 | case $ac_var in #( |
19860 | _ | IFS | as_nl) ;; #( |
19861 | *) $as_unset $ac_var ;; |
19862 | esac ;; |
19863 | esac |
19864 | done |
19865 | |
d9898ee8 |
19866 | (set) 2>&1 | |
dd184caf |
19867 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
19868 | *${as_nl}ac_space=\ *) |
d9898ee8 |
19869 | # `set' does not quote correctly, so add quotes (double-quote |
19870 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
19871 | sed -n \ |
19872 | "s/'/'\\\\''/g; |
19873 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
dd184caf |
19874 | ;; #( |
d9898ee8 |
19875 | *) |
19876 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
dd184caf |
19877 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
19878 | ;; |
dd184caf |
19879 | esac | |
19880 | sort |
19881 | ) | |
d9898ee8 |
19882 | sed ' |
dd184caf |
19883 | /^ac_cv_env_/b end |
d9898ee8 |
19884 | t clear |
dd184caf |
19885 | :clear |
d9898ee8 |
19886 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19887 | t end |
dd184caf |
19888 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19889 | :end' >>confcache |
19890 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
19891 | if test -w "$cache_file"; then |
19892 | test "x$cache_file" != "x/dev/null" && |
19893 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
19894 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
19895 | cat confcache >$cache_file |
19896 | else |
dd184caf |
19897 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
19898 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
19899 | fi |
19900 | fi |
19901 | rm -f confcache |
19902 | |
19903 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19904 | # Let make expand exec_prefix. |
19905 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19906 | |
d9898ee8 |
19907 | DEFS=-DHAVE_CONFIG_H |
19908 | |
19909 | ac_libobjs= |
19910 | ac_ltlibobjs= |
19911 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19912 | # 1. Remove the extension, and $U if already installed. |
dd184caf |
19913 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
19914 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
19915 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
19916 | # will be set to the directory where LIBOBJS objects are built. |
19917 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
19918 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
19919 | done |
19920 | LIBOBJS=$ac_libobjs |
19921 | |
19922 | LTLIBOBJS=$ac_ltlibobjs |
19923 | |
19924 | |
19925 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19926 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19927 | Usually this means the macro was only invoked conditionally." >&5 |
19928 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19929 | Usually this means the macro was only invoked conditionally." >&2;} |
19930 | { (exit 1); exit 1; }; } |
19931 | fi |
19932 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19933 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19934 | Usually this means the macro was only invoked conditionally." >&5 |
19935 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19936 | Usually this means the macro was only invoked conditionally." >&2;} |
19937 | { (exit 1); exit 1; }; } |
19938 | fi |
19939 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19940 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19941 | Usually this means the macro was only invoked conditionally." >&5 |
19942 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19943 | Usually this means the macro was only invoked conditionally." >&2;} |
19944 | { (exit 1); exit 1; }; } |
19945 | fi |
19946 | if test -z "${USE_GDBM_TRUE}" && test -z "${USE_GDBM_FALSE}"; then |
19947 | { { echo "$as_me:$LINENO: error: conditional \"USE_GDBM\" was never defined. |
19948 | Usually this means the macro was only invoked conditionally." >&5 |
19949 | echo "$as_me: error: conditional \"USE_GDBM\" was never defined. |
19950 | Usually this means the macro was only invoked conditionally." >&2;} |
19951 | { (exit 1); exit 1; }; } |
19952 | fi |
19953 | if test -z "${USE_DB_TRUE}" && test -z "${USE_DB_FALSE}"; then |
19954 | { { echo "$as_me:$LINENO: error: conditional \"USE_DB\" was never defined. |
19955 | Usually this means the macro was only invoked conditionally." >&5 |
19956 | echo "$as_me: error: conditional \"USE_DB\" was never defined. |
19957 | Usually this means the macro was only invoked conditionally." >&2;} |
19958 | { (exit 1); exit 1; }; } |
19959 | fi |
19960 | |
19961 | : ${CONFIG_STATUS=./config.status} |
19962 | ac_clean_files_save=$ac_clean_files |
19963 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
19964 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
19965 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
19966 | cat >$CONFIG_STATUS <<_ACEOF |
19967 | #! $SHELL |
19968 | # Generated by $as_me. |
19969 | # Run this file to recreate the current configuration. |
19970 | # Compiler output produced by configure, useful for debugging |
19971 | # configure, is in config.log if it exists. |
19972 | |
19973 | debug=false |
19974 | ac_cs_recheck=false |
19975 | ac_cs_silent=false |
19976 | SHELL=\${CONFIG_SHELL-$SHELL} |
19977 | _ACEOF |
19978 | |
19979 | cat >>$CONFIG_STATUS <<\_ACEOF |
19980 | ## --------------------- ## |
19981 | ## M4sh Initialization. ## |
19982 | ## --------------------- ## |
19983 | |
dd184caf |
19984 | # Be more Bourne compatible |
19985 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
19986 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19987 | emulate sh |
19988 | NULLCMD=: |
19989 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19990 | # is contrary to our usage. Disable this feature. |
19991 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
19992 | setopt NO_GLOB_SUBST |
19993 | else |
19994 | case `(set -o) 2>/dev/null` in |
19995 | *posix*) set -o posix ;; |
19996 | esac |
19997 | |
19998 | fi |
19999 | |
20000 | |
20001 | |
20002 | |
20003 | # PATH needs CR |
20004 | # Avoid depending upon Character Ranges. |
20005 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
20006 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
20007 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
20008 | as_cr_digits='0123456789' |
20009 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
20010 | |
20011 | # The user is always right. |
20012 | if test "${PATH_SEPARATOR+set}" != set; then |
20013 | echo "#! /bin/sh" >conf$$.sh |
20014 | echo "exit 0" >>conf$$.sh |
20015 | chmod +x conf$$.sh |
20016 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
20017 | PATH_SEPARATOR=';' |
20018 | else |
20019 | PATH_SEPARATOR=: |
20020 | fi |
20021 | rm -f conf$$.sh |
d9898ee8 |
20022 | fi |
d9898ee8 |
20023 | |
20024 | # Support unset when possible. |
20025 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
20026 | as_unset=unset |
20027 | else |
20028 | as_unset=false |
20029 | fi |
20030 | |
20031 | |
dd184caf |
20032 | # IFS |
20033 | # We need space, tab and new line, in precisely that order. Quoting is |
20034 | # there to prevent editors from complaining about space-tab. |
20035 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
20036 | # splitting by setting IFS to empty value.) |
20037 | as_nl=' |
20038 | ' |
20039 | IFS=" "" $as_nl" |
20040 | |
20041 | # Find who we are. Look in the path if we contain no directory separator. |
20042 | case $0 in |
20043 | *[\\/]* ) as_myself=$0 ;; |
20044 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20045 | for as_dir in $PATH |
20046 | do |
20047 | IFS=$as_save_IFS |
20048 | test -z "$as_dir" && as_dir=. |
20049 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
20050 | done |
20051 | IFS=$as_save_IFS |
20052 | |
20053 | ;; |
20054 | esac |
20055 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20056 | # in which case we are not to be found in the path. |
20057 | if test "x$as_myself" = x; then |
20058 | as_myself=$0 |
20059 | fi |
20060 | if test ! -f "$as_myself"; then |
20061 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
20062 | { (exit 1); exit 1; } |
20063 | fi |
20064 | |
d9898ee8 |
20065 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
20066 | for as_var in ENV MAIL MAILPATH |
20067 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
20068 | done |
d9898ee8 |
20069 | PS1='$ ' |
20070 | PS2='> ' |
20071 | PS4='+ ' |
20072 | |
20073 | # NLS nuisances. |
20074 | for as_var in \ |
20075 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
20076 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
20077 | LC_TELEPHONE LC_TIME |
20078 | do |
20079 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
20080 | eval $as_var=C; export $as_var |
20081 | else |
dd184caf |
20082 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
20083 | fi |
20084 | done |
20085 | |
20086 | # Required to use basename. |
dd184caf |
20087 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20088 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20089 | as_expr=expr |
20090 | else |
20091 | as_expr=false |
20092 | fi |
20093 | |
dd184caf |
20094 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
20095 | as_basename=basename |
20096 | else |
20097 | as_basename=false |
20098 | fi |
20099 | |
20100 | |
20101 | # Name of the executable. |
dd184caf |
20102 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
20103 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
20104 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
20105 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20106 | echo X/"$0" | |
dd184caf |
20107 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
20108 | s//\1/ |
20109 | q |
20110 | } |
20111 | /^X\/\(\/\/\)$/{ |
20112 | s//\1/ |
20113 | q |
20114 | } |
20115 | /^X\/\(\/\).*/{ |
20116 | s//\1/ |
20117 | q |
20118 | } |
20119 | s/.*/./; q'` |
d9898ee8 |
20120 | |
dd184caf |
20121 | # CDPATH. |
20122 | $as_unset CDPATH |
d9898ee8 |
20123 | |
20124 | |
d9898ee8 |
20125 | |
d9898ee8 |
20126 | as_lineno_1=$LINENO |
20127 | as_lineno_2=$LINENO |
d9898ee8 |
20128 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
20129 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
20130 | |
20131 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20132 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
20133 | # line-number line after each line using $LINENO; the second 'sed' |
20134 | # does the real work. The second script uses 'N' to pair each |
20135 | # line-number line with the line containing $LINENO, and appends |
20136 | # trailing '-' during substitution so that $LINENO is not a special |
20137 | # case at line end. |
d9898ee8 |
20138 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
20139 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
20140 | # E. McMahon (1931-1989) for sed's syntax. :-) |
20141 | sed -n ' |
20142 | p |
20143 | /[$]LINENO/= |
20144 | ' <$as_myself | |
d9898ee8 |
20145 | sed ' |
dd184caf |
20146 | s/[$]LINENO.*/&-/ |
20147 | t lineno |
20148 | b |
20149 | :lineno |
d9898ee8 |
20150 | N |
dd184caf |
20151 | :loop |
20152 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
20153 | t loop |
dd184caf |
20154 | s/-\n.*// |
d9898ee8 |
20155 | ' >$as_me.lineno && |
dd184caf |
20156 | chmod +x "$as_me.lineno" || |
20157 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
20158 | { (exit 1); exit 1; }; } |
20159 | |
20160 | # Don't try to exec as it changes $[0], causing all sort of problems |
20161 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
20162 | # original and so on. Autoconf is especially sensitive to this). |
20163 | . "./$as_me.lineno" |
d9898ee8 |
20164 | # Exit status is that of the last command. |
20165 | exit |
20166 | } |
20167 | |
20168 | |
dd184caf |
20169 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20170 | as_dirname=dirname |
20171 | else |
20172 | as_dirname=false |
20173 | fi |
20174 | |
20175 | ECHO_C= ECHO_N= ECHO_T= |
20176 | case `echo -n x` in |
20177 | -n*) |
20178 | case `echo 'x\c'` in |
20179 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
20180 | *) ECHO_C='\c';; |
20181 | esac;; |
20182 | *) |
20183 | ECHO_N='-n';; |
d9898ee8 |
20184 | esac |
20185 | |
dd184caf |
20186 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20187 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20188 | as_expr=expr |
20189 | else |
20190 | as_expr=false |
20191 | fi |
20192 | |
20193 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
20194 | if test -d conf$$.dir; then |
20195 | rm -f conf$$.dir/conf$$.file |
20196 | else |
20197 | rm -f conf$$.dir |
20198 | mkdir conf$$.dir |
20199 | fi |
d9898ee8 |
20200 | echo >conf$$.file |
20201 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
20202 | as_ln_s='ln -s' |
20203 | # ... but there are two gotchas: |
20204 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
20205 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
20206 | # In both cases, we have to default to `cp -p'. |
20207 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
20208 | as_ln_s='cp -p' |
d9898ee8 |
20209 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20210 | as_ln_s=ln |
20211 | else |
20212 | as_ln_s='cp -p' |
20213 | fi |
dd184caf |
20214 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20215 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
20216 | |
20217 | if mkdir -p . 2>/dev/null; then |
20218 | as_mkdir_p=: |
20219 | else |
20220 | test -d ./-p && rmdir ./-p |
20221 | as_mkdir_p=false |
20222 | fi |
20223 | |
dd184caf |
20224 | if test -x / >/dev/null 2>&1; then |
20225 | as_test_x='test -x' |
20226 | else |
20227 | if ls -dL / >/dev/null 2>&1; then |
20228 | as_ls_L_option=L |
20229 | else |
20230 | as_ls_L_option= |
20231 | fi |
20232 | as_test_x=' |
20233 | eval sh -c '\'' |
20234 | if test -d "$1"; then |
20235 | test -d "$1/."; |
20236 | else |
20237 | case $1 in |
20238 | -*)set "./$1";; |
20239 | esac; |
20240 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
20241 | ???[sx]*):;;*)false;;esac;fi |
20242 | '\'' sh |
20243 | ' |
20244 | fi |
20245 | as_executable_p=$as_test_x |
d9898ee8 |
20246 | |
20247 | # Sed expression to map a string onto a valid CPP name. |
20248 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
20249 | |
20250 | # Sed expression to map a string onto a valid variable name. |
20251 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
20252 | |
20253 | |
d9898ee8 |
20254 | exec 6>&1 |
20255 | |
dd184caf |
20256 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
20257 | # report actual input values of CONFIG_FILES etc. instead of their |
dd184caf |
20258 | # values after options handling. |
20259 | ac_log=" |
d9898ee8 |
20260 | This file was extended by makedat $as_me 0.60, which was |
dd184caf |
20261 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
20262 | |
20263 | CONFIG_FILES = $CONFIG_FILES |
20264 | CONFIG_HEADERS = $CONFIG_HEADERS |
20265 | CONFIG_LINKS = $CONFIG_LINKS |
20266 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
20267 | $ $0 $@ |
20268 | |
dd184caf |
20269 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20270 | " |
20271 | |
d9898ee8 |
20272 | _ACEOF |
20273 | |
dd184caf |
20274 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
20275 | # Files that config.status was made for. |
dd184caf |
20276 | config_files="$ac_config_files" |
20277 | config_headers="$ac_config_headers" |
20278 | config_commands="$ac_config_commands" |
d9898ee8 |
20279 | |
dd184caf |
20280 | _ACEOF |
d9898ee8 |
20281 | |
20282 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
20283 | ac_cs_usage="\ |
20284 | \`$as_me' instantiates files from templates according to the |
20285 | current configuration. |
20286 | |
20287 | Usage: $0 [OPTIONS] [FILE]... |
20288 | |
20289 | -h, --help print this help, then exit |
dd184caf |
20290 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
20291 | -q, --quiet do not print progress messages |
20292 | -d, --debug don't remove temporary files |
20293 | --recheck update $as_me by reconfiguring in the same conditions |
20294 | --file=FILE[:TEMPLATE] |
20295 | instantiate the configuration file FILE |
20296 | --header=FILE[:TEMPLATE] |
20297 | instantiate the configuration header FILE |
20298 | |
20299 | Configuration files: |
20300 | $config_files |
20301 | |
20302 | Configuration headers: |
20303 | $config_headers |
20304 | |
20305 | Configuration commands: |
20306 | $config_commands |
20307 | |
20308 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
20309 | |
dd184caf |
20310 | _ACEOF |
d9898ee8 |
20311 | cat >>$CONFIG_STATUS <<_ACEOF |
20312 | ac_cs_version="\\ |
20313 | makedat config.status 0.60 |
dd184caf |
20314 | configured by $0, generated by GNU Autoconf 2.61, |
20315 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
20316 | |
dd184caf |
20317 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
20318 | This config.status script is free software; the Free Software Foundation |
20319 | gives unlimited permission to copy, distribute and modify it." |
dd184caf |
20320 | |
20321 | ac_pwd='$ac_pwd' |
20322 | srcdir='$srcdir' |
20323 | INSTALL='$INSTALL' |
20324 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
20325 | _ACEOF |
20326 | |
20327 | cat >>$CONFIG_STATUS <<\_ACEOF |
20328 | # If no file are specified by the user, then we need to provide default |
20329 | # value. By we need to know if files were specified by the user. |
20330 | ac_need_defaults=: |
20331 | while test $# != 0 |
20332 | do |
20333 | case $1 in |
20334 | --*=*) |
dd184caf |
20335 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20336 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
20337 | ac_shift=: |
20338 | ;; |
dd184caf |
20339 | *) |
d9898ee8 |
20340 | ac_option=$1 |
20341 | ac_optarg=$2 |
20342 | ac_shift=shift |
20343 | ;; |
d9898ee8 |
20344 | esac |
20345 | |
20346 | case $ac_option in |
20347 | # Handling of the options. |
d9898ee8 |
20348 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20349 | ac_cs_recheck=: ;; |
dd184caf |
20350 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
20351 | echo "$ac_cs_version"; exit ;; |
20352 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
20353 | debug=: ;; |
20354 | --file | --fil | --fi | --f ) |
20355 | $ac_shift |
20356 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
20357 | ac_need_defaults=false;; |
20358 | --header | --heade | --head | --hea ) |
20359 | $ac_shift |
20360 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
20361 | ac_need_defaults=false;; |
dd184caf |
20362 | --he | --h) |
20363 | # Conflict between --help and --header |
20364 | { echo "$as_me: error: ambiguous option: $1 |
20365 | Try \`$0 --help' for more information." >&2 |
20366 | { (exit 1); exit 1; }; };; |
20367 | --help | --hel | -h ) |
20368 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
20369 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20370 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
20371 | ac_cs_silent=: ;; |
20372 | |
20373 | # This is an error. |
dd184caf |
20374 | -*) { echo "$as_me: error: unrecognized option: $1 |
20375 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
20376 | { (exit 1); exit 1; }; } ;; |
20377 | |
dd184caf |
20378 | *) ac_config_targets="$ac_config_targets $1" |
20379 | ac_need_defaults=false ;; |
d9898ee8 |
20380 | |
20381 | esac |
20382 | shift |
20383 | done |
20384 | |
20385 | ac_configure_extra_args= |
20386 | |
20387 | if $ac_cs_silent; then |
20388 | exec 6>/dev/null |
20389 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
20390 | fi |
20391 | |
20392 | _ACEOF |
20393 | cat >>$CONFIG_STATUS <<_ACEOF |
20394 | if \$ac_cs_recheck; then |
dd184caf |
20395 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20396 | CONFIG_SHELL=$SHELL |
20397 | export CONFIG_SHELL |
20398 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
20399 | fi |
20400 | |
20401 | _ACEOF |
dd184caf |
20402 | cat >>$CONFIG_STATUS <<\_ACEOF |
20403 | exec 5>>config.log |
20404 | { |
20405 | echo |
20406 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
20407 | ## Running $as_me. ## |
20408 | _ASBOX |
20409 | echo "$ac_log" |
20410 | } >&5 |
d9898ee8 |
20411 | |
dd184caf |
20412 | _ACEOF |
d9898ee8 |
20413 | cat >>$CONFIG_STATUS <<_ACEOF |
20414 | # |
dd184caf |
20415 | # INIT-COMMANDS |
d9898ee8 |
20416 | # |
d9898ee8 |
20417 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20418 | |
20419 | _ACEOF |
20420 | |
d9898ee8 |
20421 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20422 | |
20423 | # Handling of arguments. |
d9898ee8 |
20424 | for ac_config_target in $ac_config_targets |
20425 | do |
dd184caf |
20426 | case $ac_config_target in |
20427 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20428 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20429 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20430 | "makedat") CONFIG_FILES="$CONFIG_FILES makedat" ;; |
20431 | |
d9898ee8 |
20432 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20433 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20434 | { (exit 1); exit 1; }; };; |
20435 | esac |
20436 | done |
20437 | |
dd184caf |
20438 | |
d9898ee8 |
20439 | # If the user did not use the arguments to specify the items to instantiate, |
20440 | # then the envvar interface is used. Set only those that are not. |
20441 | # We use the long form for the default assignment because of an extremely |
20442 | # bizarre bug on SunOS 4.1.3. |
20443 | if $ac_need_defaults; then |
20444 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
20445 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
20446 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
20447 | fi |
20448 | |
20449 | # Have a temporary directory for convenience. Make it in the build tree |
dd184caf |
20450 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
20451 | # creating and moving files from /tmp can sometimes cause problems. |
dd184caf |
20452 | # Hook for its removal unless debugging. |
20453 | # Note that there is a small window in which the directory will not be cleaned: |
20454 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
20455 | $debug || |
20456 | { |
dd184caf |
20457 | tmp= |
20458 | trap 'exit_status=$? |
20459 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
20460 | ' 0 |
d9898ee8 |
20461 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
20462 | } |
d9898ee8 |
20463 | # Create a (secure) tmp directory for tmp files. |
20464 | |
20465 | { |
dd184caf |
20466 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
20467 | test -n "$tmp" && test -d "$tmp" |
20468 | } || |
20469 | { |
dd184caf |
20470 | tmp=./conf$$-$RANDOM |
20471 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
20472 | } || |
20473 | { |
20474 | echo "$me: cannot create a temporary directory in ." >&2 |
20475 | { (exit 1); exit 1; } |
20476 | } |
20477 | |
d9898ee8 |
20478 | # |
dd184caf |
20479 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
20480 | # |
20481 | |
20482 | # No need to generate the scripts if there are no CONFIG_FILES. |
20483 | # This happens for instance when ./config.status config.h |
dd184caf |
20484 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
20485 | |
20486 | _ACEOF |
20487 | |
dd184caf |
20488 | |
20489 | |
20490 | ac_delim='%!_!# ' |
20491 | for ac_last_try in false false false false false :; do |
20492 | cat >conf$$subs.sed <<_ACEOF |
20493 | SHELL!$SHELL$ac_delim |
20494 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
20495 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
20496 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
20497 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
20498 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
20499 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
20500 | exec_prefix!$exec_prefix$ac_delim |
20501 | prefix!$prefix$ac_delim |
20502 | program_transform_name!$program_transform_name$ac_delim |
20503 | bindir!$bindir$ac_delim |
20504 | sbindir!$sbindir$ac_delim |
20505 | libexecdir!$libexecdir$ac_delim |
20506 | datarootdir!$datarootdir$ac_delim |
20507 | datadir!$datadir$ac_delim |
20508 | sysconfdir!$sysconfdir$ac_delim |
20509 | sharedstatedir!$sharedstatedir$ac_delim |
20510 | localstatedir!$localstatedir$ac_delim |
20511 | includedir!$includedir$ac_delim |
20512 | oldincludedir!$oldincludedir$ac_delim |
20513 | docdir!$docdir$ac_delim |
20514 | infodir!$infodir$ac_delim |
20515 | htmldir!$htmldir$ac_delim |
20516 | dvidir!$dvidir$ac_delim |
20517 | pdfdir!$pdfdir$ac_delim |
20518 | psdir!$psdir$ac_delim |
20519 | libdir!$libdir$ac_delim |
20520 | localedir!$localedir$ac_delim |
20521 | mandir!$mandir$ac_delim |
20522 | DEFS!$DEFS$ac_delim |
20523 | ECHO_C!$ECHO_C$ac_delim |
20524 | ECHO_N!$ECHO_N$ac_delim |
20525 | ECHO_T!$ECHO_T$ac_delim |
20526 | LIBS!$LIBS$ac_delim |
20527 | build_alias!$build_alias$ac_delim |
20528 | host_alias!$host_alias$ac_delim |
20529 | target_alias!$target_alias$ac_delim |
20530 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
20531 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
20532 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
20533 | am__isrc!$am__isrc$ac_delim |
20534 | CYGPATH_W!$CYGPATH_W$ac_delim |
20535 | PACKAGE!$PACKAGE$ac_delim |
20536 | VERSION!$VERSION$ac_delim |
20537 | ACLOCAL!$ACLOCAL$ac_delim |
20538 | AUTOCONF!$AUTOCONF$ac_delim |
20539 | AUTOMAKE!$AUTOMAKE$ac_delim |
20540 | AUTOHEADER!$AUTOHEADER$ac_delim |
20541 | MAKEINFO!$MAKEINFO$ac_delim |
20542 | install_sh!$install_sh$ac_delim |
20543 | STRIP!$STRIP$ac_delim |
20544 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
20545 | mkdir_p!$mkdir_p$ac_delim |
20546 | AWK!$AWK$ac_delim |
20547 | SET_MAKE!$SET_MAKE$ac_delim |
20548 | am__leading_dot!$am__leading_dot$ac_delim |
20549 | AMTAR!$AMTAR$ac_delim |
20550 | am__tar!$am__tar$ac_delim |
20551 | am__untar!$am__untar$ac_delim |
20552 | CC!$CC$ac_delim |
20553 | CFLAGS!$CFLAGS$ac_delim |
20554 | LDFLAGS!$LDFLAGS$ac_delim |
20555 | CPPFLAGS!$CPPFLAGS$ac_delim |
20556 | ac_ct_CC!$ac_ct_CC$ac_delim |
20557 | EXEEXT!$EXEEXT$ac_delim |
20558 | OBJEXT!$OBJEXT$ac_delim |
20559 | DEPDIR!$DEPDIR$ac_delim |
20560 | am__include!$am__include$ac_delim |
20561 | am__quote!$am__quote$ac_delim |
20562 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
20563 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
20564 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
20565 | CCDEPMODE!$CCDEPMODE$ac_delim |
20566 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
20567 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
20568 | LN_S!$LN_S$ac_delim |
20569 | PERL!$PERL$ac_delim |
20570 | CAT!$CAT$ac_delim |
20571 | build!$build$ac_delim |
20572 | build_cpu!$build_cpu$ac_delim |
20573 | build_vendor!$build_vendor$ac_delim |
20574 | build_os!$build_os$ac_delim |
20575 | host!$host$ac_delim |
20576 | host_cpu!$host_cpu$ac_delim |
20577 | host_vendor!$host_vendor$ac_delim |
20578 | host_os!$host_os$ac_delim |
20579 | SED!$SED$ac_delim |
20580 | GREP!$GREP$ac_delim |
20581 | EGREP!$EGREP$ac_delim |
20582 | ECHO!$ECHO$ac_delim |
20583 | AR!$AR$ac_delim |
20584 | RANLIB!$RANLIB$ac_delim |
20585 | CPP!$CPP$ac_delim |
20586 | CXX!$CXX$ac_delim |
20587 | CXXFLAGS!$CXXFLAGS$ac_delim |
20588 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
20589 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
20590 | _ACEOF |
20591 | |
20592 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
20593 | break |
20594 | elif $ac_last_try; then |
20595 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20596 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20597 | { (exit 1); exit 1; }; } |
20598 | else |
20599 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
20600 | fi |
dd184caf |
20601 | done |
20602 | |
20603 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20604 | if test -n "$ac_eof"; then |
20605 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20606 | ac_eof=`expr $ac_eof + 1` |
20607 | fi |
20608 | |
20609 | cat >>$CONFIG_STATUS <<_ACEOF |
20610 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
20611 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20612 | _ACEOF |
20613 | sed ' |
20614 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20615 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20616 | :n |
20617 | t n |
20618 | s/'"$ac_delim"'$/,g/; t |
20619 | s/$/\\/; p |
20620 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20621 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20622 | rm -f conf$$subs.sed |
20623 | cat >>$CONFIG_STATUS <<_ACEOF |
20624 | CEOF$ac_eof |
20625 | _ACEOF |
20626 | |
20627 | |
20628 | ac_delim='%!_!# ' |
20629 | for ac_last_try in false false false false false :; do |
20630 | cat >conf$$subs.sed <<_ACEOF |
20631 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
20632 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
20633 | CXXCPP!$CXXCPP$ac_delim |
20634 | F77!$F77$ac_delim |
20635 | FFLAGS!$FFLAGS$ac_delim |
20636 | ac_ct_F77!$ac_ct_F77$ac_delim |
20637 | LIBTOOL!$LIBTOOL$ac_delim |
20638 | makedatprog_target!$makedatprog_target$ac_delim |
20639 | dblibrary!$dblibrary$ac_delim |
20640 | LIBGDBM!$LIBGDBM$ac_delim |
20641 | LIBDB!$LIBDB$ac_delim |
20642 | USE_GDBM_TRUE!$USE_GDBM_TRUE$ac_delim |
20643 | USE_GDBM_FALSE!$USE_GDBM_FALSE$ac_delim |
20644 | USE_DB_TRUE!$USE_DB_TRUE$ac_delim |
20645 | USE_DB_FALSE!$USE_DB_FALSE$ac_delim |
20646 | makedatprogpath!$makedatprogpath$ac_delim |
20647 | LIBOBJS!$LIBOBJS$ac_delim |
20648 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
20649 | _ACEOF |
20650 | |
20651 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then |
20652 | break |
20653 | elif $ac_last_try; then |
20654 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20655 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20656 | { (exit 1); exit 1; }; } |
20657 | else |
20658 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
20659 | fi |
20660 | done |
20661 | |
20662 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20663 | if test -n "$ac_eof"; then |
20664 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20665 | ac_eof=`expr $ac_eof + 1` |
20666 | fi |
d9898ee8 |
20667 | |
dd184caf |
20668 | cat >>$CONFIG_STATUS <<_ACEOF |
20669 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
20670 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
d9898ee8 |
20671 | _ACEOF |
dd184caf |
20672 | sed ' |
20673 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20674 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20675 | :n |
20676 | t n |
20677 | s/'"$ac_delim"'$/,g/; t |
20678 | s/$/\\/; p |
20679 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20680 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20681 | rm -f conf$$subs.sed |
20682 | cat >>$CONFIG_STATUS <<_ACEOF |
20683 | :end |
20684 | s/|#_!!_#|//g |
20685 | CEOF$ac_eof |
20686 | _ACEOF |
20687 | |
20688 | |
20689 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
20690 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
20691 | # trailing colons and then remove the whole line if VPATH becomes empty |
20692 | # (actually we leave an empty line to preserve line numbers). |
20693 | if test "x$srcdir" = x.; then |
20694 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
20695 | s/:*\$(srcdir):*/:/ |
20696 | s/:*\${srcdir}:*/:/ |
20697 | s/:*@srcdir@:*/:/ |
20698 | s/^\([^=]*=[ ]*\):*/\1/ |
20699 | s/:*$// |
20700 | s/^[^=]*=[ ]*$// |
20701 | }' |
20702 | fi |
20703 | |
d9898ee8 |
20704 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20705 | fi # test -n "$CONFIG_FILES" |
20706 | |
20707 | |
20708 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
20709 | do |
20710 | case $ac_tag in |
20711 | :[FHLC]) ac_mode=$ac_tag; continue;; |
20712 | esac |
20713 | case $ac_mode$ac_tag in |
20714 | :[FHL]*:*);; |
20715 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
20716 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
20717 | { (exit 1); exit 1; }; };; |
20718 | :[FH]-) ac_tag=-:-;; |
20719 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
d9898ee8 |
20720 | esac |
dd184caf |
20721 | ac_save_IFS=$IFS |
20722 | IFS=: |
20723 | set x $ac_tag |
20724 | IFS=$ac_save_IFS |
20725 | shift |
20726 | ac_file=$1 |
20727 | shift |
20728 | |
20729 | case $ac_mode in |
20730 | :L) ac_source=$1;; |
20731 | :[FH]) |
20732 | ac_file_inputs= |
20733 | for ac_f |
20734 | do |
20735 | case $ac_f in |
20736 | -) ac_f="$tmp/stdin";; |
20737 | *) # Look for the file first in the build tree, then in the source tree |
20738 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
20739 | # because $ac_f cannot contain `:'. |
20740 | test -f "$ac_f" || |
20741 | case $ac_f in |
20742 | [\\/$]*) false;; |
20743 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
20744 | esac || |
20745 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
20746 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
20747 | { (exit 1); exit 1; }; };; |
20748 | esac |
20749 | ac_file_inputs="$ac_file_inputs $ac_f" |
20750 | done |
20751 | |
20752 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20753 | # use $as_me), people would be surprised to read: |
20754 | # /* config.h. Generated by config.status. */ |
20755 | configure_input="Generated from "`IFS=: |
20756 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
20757 | if test x"$ac_file" != x-; then |
20758 | configure_input="$ac_file. $configure_input" |
20759 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20760 | echo "$as_me: creating $ac_file" >&6;} |
20761 | fi |
d9898ee8 |
20762 | |
dd184caf |
20763 | case $ac_tag in |
20764 | *:-:* | *:-) cat >"$tmp/stdin";; |
20765 | esac |
20766 | ;; |
20767 | esac |
20768 | |
20769 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
20770 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20771 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20772 | X"$ac_file" : 'X\(//\)$' \| \ |
dd184caf |
20773 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20774 | echo X"$ac_file" | |
dd184caf |
20775 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20776 | s//\1/ |
20777 | q |
20778 | } |
20779 | /^X\(\/\/\)[^/].*/{ |
20780 | s//\1/ |
20781 | q |
20782 | } |
20783 | /^X\(\/\/\)$/{ |
20784 | s//\1/ |
20785 | q |
20786 | } |
20787 | /^X\(\/\).*/{ |
20788 | s//\1/ |
20789 | q |
20790 | } |
20791 | s/.*/./; q'` |
20792 | { as_dir="$ac_dir" |
20793 | case $as_dir in #( |
20794 | -*) as_dir=./$as_dir;; |
20795 | esac |
20796 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
20797 | as_dirs= |
dd184caf |
20798 | while :; do |
20799 | case $as_dir in #( |
20800 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
20801 | *) as_qdir=$as_dir;; |
20802 | esac |
20803 | as_dirs="'$as_qdir' $as_dirs" |
20804 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
20805 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20806 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20807 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
20808 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20809 | echo X"$as_dir" | |
dd184caf |
20810 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20811 | s//\1/ |
20812 | q |
20813 | } |
20814 | /^X\(\/\/\)[^/].*/{ |
20815 | s//\1/ |
20816 | q |
20817 | } |
20818 | /^X\(\/\/\)$/{ |
20819 | s//\1/ |
20820 | q |
20821 | } |
20822 | /^X\(\/\).*/{ |
20823 | s//\1/ |
20824 | q |
20825 | } |
20826 | s/.*/./; q'` |
20827 | test -d "$as_dir" && break |
d9898ee8 |
20828 | done |
dd184caf |
20829 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
20830 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
20831 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
20832 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
20833 | ac_builddir=. |
20834 | |
dd184caf |
20835 | case "$ac_dir" in |
20836 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
20837 | *) |
d9898ee8 |
20838 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
20839 | # A ".." for each directory in $ac_dir_suffix. |
20840 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
20841 | case $ac_top_builddir_sub in |
20842 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
20843 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
20844 | esac ;; |
20845 | esac |
20846 | ac_abs_top_builddir=$ac_pwd |
20847 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
20848 | # for backward compatibility: |
20849 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
20850 | |
20851 | case $srcdir in |
dd184caf |
20852 | .) # We are building in place. |
d9898ee8 |
20853 | ac_srcdir=. |
dd184caf |
20854 | ac_top_srcdir=$ac_top_builddir_sub |
20855 | ac_abs_top_srcdir=$ac_pwd ;; |
20856 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
20857 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
20858 | ac_top_srcdir=$srcdir |
20859 | ac_abs_top_srcdir=$srcdir ;; |
20860 | *) # Relative name. |
20861 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
20862 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
20863 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
20864 | esac |
dd184caf |
20865 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
20866 | |
d9898ee8 |
20867 | |
dd184caf |
20868 | case $ac_mode in |
20869 | :F) |
20870 | # |
20871 | # CONFIG_FILE |
20872 | # |
d9898ee8 |
20873 | |
20874 | case $INSTALL in |
20875 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
dd184caf |
20876 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d9898ee8 |
20877 | esac |
dd184caf |
20878 | ac_MKDIR_P=$MKDIR_P |
20879 | case $MKDIR_P in |
20880 | [\\/$]* | ?:[\\/]* ) ;; |
20881 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
20882 | esac |
20883 | _ACEOF |
d9898ee8 |
20884 | |
dd184caf |
20885 | cat >>$CONFIG_STATUS <<\_ACEOF |
20886 | # If the template does not know about datarootdir, expand it. |
20887 | # FIXME: This hack should be removed a few years after 2.60. |
20888 | ac_datarootdir_hack=; ac_datarootdir_seen= |
20889 | |
20890 | case `sed -n '/datarootdir/ { |
20891 | p |
20892 | q |
20893 | } |
20894 | /@datadir@/p |
20895 | /@docdir@/p |
20896 | /@infodir@/p |
20897 | /@localedir@/p |
20898 | /@mandir@/p |
20899 | ' $ac_file_inputs` in |
20900 | *datarootdir*) ac_datarootdir_seen=yes;; |
20901 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
20902 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
20903 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 |
20904 | _ACEOF |
dd184caf |
20905 | cat >>$CONFIG_STATUS <<_ACEOF |
20906 | ac_datarootdir_hack=' |
20907 | s&@datadir@&$datadir&g |
20908 | s&@docdir@&$docdir&g |
20909 | s&@infodir@&$infodir&g |
20910 | s&@localedir@&$localedir&g |
20911 | s&@mandir@&$mandir&g |
20912 | s&\\\${datarootdir}&$datarootdir&g' ;; |
20913 | esac |
20914 | _ACEOF |
20915 | |
20916 | # Neutralize VPATH when `$srcdir' = `.'. |
20917 | # Shell code in configure.ac might set extrasub. |
20918 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
20919 | cat >>$CONFIG_STATUS <<_ACEOF |
20920 | sed "$ac_vpsub |
20921 | $extrasub |
20922 | _ACEOF |
20923 | cat >>$CONFIG_STATUS <<\_ACEOF |
20924 | :t |
20925 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
dd184caf |
20926 | s&@configure_input@&$configure_input&;t t |
20927 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
20928 | s&@srcdir@&$ac_srcdir&;t t |
20929 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
20930 | s&@top_srcdir@&$ac_top_srcdir&;t t |
20931 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
20932 | s&@builddir@&$ac_builddir&;t t |
20933 | s&@abs_builddir@&$ac_abs_builddir&;t t |
20934 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
20935 | s&@INSTALL@&$ac_INSTALL&;t t |
20936 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
20937 | $ac_datarootdir_hack |
20938 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
20939 | |
20940 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
20941 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
20942 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
20943 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
20944 | which seems to be undefined. Please make sure it is defined." >&5 |
20945 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
20946 | which seems to be undefined. Please make sure it is defined." >&2;} |
20947 | |
20948 | rm -f "$tmp/stdin" |
d9898ee8 |
20949 | case $ac_file in |
dd184caf |
20950 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
20951 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
20952 | esac |
dd184caf |
20953 | ;; |
20954 | :H) |
20955 | # |
20956 | # CONFIG_HEADER |
20957 | # |
d9898ee8 |
20958 | _ACEOF |
20959 | |
dd184caf |
20960 | # Transform confdefs.h into a sed script `conftest.defines', that |
20961 | # substitutes the proper values into config.h.in to produce config.h. |
20962 | rm -f conftest.defines conftest.tail |
20963 | # First, append a space to every undef/define line, to ease matching. |
20964 | echo 's/$/ /' >conftest.defines |
20965 | # Then, protect against being on the right side of a sed subst, or in |
20966 | # an unquoted here document, in config.status. If some macros were |
20967 | # called several times there might be several #defines for the same |
20968 | # symbol, which is useless. But do not sort them, since the last |
20969 | # AC_DEFINE must be honored. |
20970 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
20971 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
20972 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
20973 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
20974 | # just an empty string. |
20975 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
20976 | ac_dB='\\)[ (].*,\\1define\\2' |
20977 | ac_dC=' ' |
20978 | ac_dD=' ,' |
20979 | |
20980 | uniq confdefs.h | |
20981 | sed -n ' |
20982 | t rset |
20983 | :rset |
20984 | s/^[ ]*#[ ]*define[ ][ ]*// |
20985 | t ok |
20986 | d |
20987 | :ok |
20988 | s/[\\&,]/\\&/g |
20989 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
20990 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
20991 | ' >>conftest.defines |
20992 | |
20993 | # Remove the space that was appended to ease matching. |
20994 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
20995 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
20996 | # on some systems where configure will not decide to define it. |
dd184caf |
20997 | # (The regexp can be short, since the line contains either #define or #undef.) |
20998 | echo 's/ $// |
20999 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
21000 | |
21001 | # Break up conftest.defines: |
21002 | ac_max_sed_lines=50 |
21003 | |
21004 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
21005 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
21006 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
21007 | # et cetera. |
21008 | ac_in='$ac_file_inputs' |
21009 | ac_out='"$tmp/out1"' |
21010 | ac_nxt='"$tmp/out2"' |
21011 | |
21012 | while : |
d9898ee8 |
21013 | do |
dd184caf |
21014 | # Write a here document: |
21015 | cat >>$CONFIG_STATUS <<_ACEOF |
21016 | # First, check the format of the line: |
21017 | cat >"\$tmp/defines.sed" <<\\CEOF |
21018 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
21019 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
21020 | b |
21021 | :def |
21022 | _ACEOF |
21023 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
21024 | echo 'CEOF |
dd184caf |
21025 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
21026 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
21027 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
21028 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
21029 | rm -f conftest.defines |
21030 | mv conftest.tail conftest.defines |
21031 | done |
dd184caf |
21032 | rm -f conftest.defines conftest.tail |
d9898ee8 |
21033 | |
dd184caf |
21034 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
21035 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
21036 | if test x"$ac_file" != x-; then |
dd184caf |
21037 | echo "/* $configure_input */" >"$tmp/config.h" |
21038 | cat "$ac_result" >>"$tmp/config.h" |
21039 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
21040 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
21041 | echo "$as_me: $ac_file is unchanged" >&6;} |
21042 | else |
d9898ee8 |
21043 | rm -f $ac_file |
dd184caf |
21044 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
21045 | fi |
21046 | else |
dd184caf |
21047 | echo "/* $configure_input */" |
21048 | cat "$ac_result" |
d9898ee8 |
21049 | fi |
dd184caf |
21050 | rm -f "$tmp/out12" |
d9898ee8 |
21051 | # Compute $ac_file's index in $config_headers. |
21052 | _am_stamp_count=1 |
21053 | for _am_header in $config_headers :; do |
21054 | case $_am_header in |
21055 | $ac_file | $ac_file:* ) |
21056 | break ;; |
21057 | * ) |
21058 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21059 | esac |
21060 | done |
dd184caf |
21061 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
d9898ee8 |
21062 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21063 | X$ac_file : 'X\(//\)[^/]' \| \ |
21064 | X$ac_file : 'X\(//\)$' \| \ |
dd184caf |
21065 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21066 | echo X$ac_file | |
dd184caf |
21067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21068 | s//\1/ |
21069 | q |
21070 | } |
21071 | /^X\(\/\/\)[^/].*/{ |
21072 | s//\1/ |
21073 | q |
21074 | } |
21075 | /^X\(\/\/\)$/{ |
21076 | s//\1/ |
21077 | q |
21078 | } |
21079 | /^X\(\/\).*/{ |
21080 | s//\1/ |
21081 | q |
21082 | } |
21083 | s/.*/./; q'`/stamp-h$_am_stamp_count |
21084 | ;; |
d9898ee8 |
21085 | |
dd184caf |
21086 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
21087 | echo "$as_me: executing $ac_file commands" >&6;} |
21088 | ;; |
21089 | esac |
d9898ee8 |
21090 | |
21091 | |
dd184caf |
21092 | case $ac_file$ac_mode in |
21093 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
21094 | # Strip MF so we end up with the name of the file. |
21095 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
21096 | # Check whether this is an Automake generated Makefile or not. |
21097 | # We used to match only the files named `Makefile.in', but |
21098 | # some people rename them; so instead we look at the file content. |
21099 | # Grep'ing the first line is not enough: some people post-process |
21100 | # each Makefile.in and add a new line on top of each file to say so. |
dd184caf |
21101 | # Grep'ing the whole file is not good either: AIX grep has a line |
21102 | # limit of 2048, but all sed's we know have understand at least 4000. |
21103 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
21104 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
21105 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21106 | X"$mf" : 'X\(//\)[^/]' \| \ |
21107 | X"$mf" : 'X\(//\)$' \| \ |
dd184caf |
21108 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21109 | echo X"$mf" | |
dd184caf |
21110 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21111 | s//\1/ |
21112 | q |
21113 | } |
21114 | /^X\(\/\/\)[^/].*/{ |
21115 | s//\1/ |
21116 | q |
21117 | } |
21118 | /^X\(\/\/\)$/{ |
21119 | s//\1/ |
21120 | q |
21121 | } |
21122 | /^X\(\/\).*/{ |
21123 | s//\1/ |
21124 | q |
21125 | } |
21126 | s/.*/./; q'` |
d9898ee8 |
21127 | else |
21128 | continue |
21129 | fi |
21130 | # Extract the definition of DEPDIR, am__include, and am__quote |
21131 | # from the Makefile without running `make'. |
21132 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21133 | test -z "$DEPDIR" && continue |
21134 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21135 | test -z "am__include" && continue |
21136 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21137 | # When using ansi2knr, U may be empty or an underscore; expand it |
21138 | U=`sed -n 's/^U = //p' < "$mf"` |
21139 | # Find all dependency output files, they are included files with |
21140 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21141 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21142 | # expansion. |
21143 | for file in `sed -n " |
21144 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21145 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21146 | # Make sure the directory exists. |
21147 | test -f "$dirpart/$file" && continue |
dd184caf |
21148 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
21149 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21150 | X"$file" : 'X\(//\)[^/]' \| \ |
21151 | X"$file" : 'X\(//\)$' \| \ |
dd184caf |
21152 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21153 | echo X"$file" | |
dd184caf |
21154 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21155 | s//\1/ |
21156 | q |
21157 | } |
21158 | /^X\(\/\/\)[^/].*/{ |
21159 | s//\1/ |
21160 | q |
21161 | } |
21162 | /^X\(\/\/\)$/{ |
21163 | s//\1/ |
21164 | q |
21165 | } |
21166 | /^X\(\/\).*/{ |
21167 | s//\1/ |
21168 | q |
21169 | } |
21170 | s/.*/./; q'` |
21171 | { as_dir=$dirpart/$fdir |
21172 | case $as_dir in #( |
21173 | -*) as_dir=./$as_dir;; |
21174 | esac |
21175 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21176 | as_dirs= |
dd184caf |
21177 | while :; do |
21178 | case $as_dir in #( |
21179 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21180 | *) as_qdir=$as_dir;; |
21181 | esac |
21182 | as_dirs="'$as_qdir' $as_dirs" |
21183 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21184 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21185 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21186 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
21187 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21188 | echo X"$as_dir" | |
dd184caf |
21189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21190 | s//\1/ |
21191 | q |
21192 | } |
21193 | /^X\(\/\/\)[^/].*/{ |
21194 | s//\1/ |
21195 | q |
21196 | } |
21197 | /^X\(\/\/\)$/{ |
21198 | s//\1/ |
21199 | q |
21200 | } |
21201 | /^X\(\/\).*/{ |
21202 | s//\1/ |
21203 | q |
21204 | } |
21205 | s/.*/./; q'` |
21206 | test -d "$as_dir" && break |
d9898ee8 |
21207 | done |
dd184caf |
21208 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21209 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21210 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21211 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21212 | # echo "creating $dirpart/$file" |
21213 | echo '# dummy' > "$dirpart/$file" |
21214 | done |
21215 | done |
21216 | ;; |
dd184caf |
21217 | |
d9898ee8 |
21218 | esac |
dd184caf |
21219 | done # for ac_tag |
d9898ee8 |
21220 | |
d9898ee8 |
21221 | |
21222 | { (exit 0); exit 0; } |
21223 | _ACEOF |
21224 | chmod +x $CONFIG_STATUS |
21225 | ac_clean_files=$ac_clean_files_save |
21226 | |
21227 | |
21228 | # configure is writing to config.log, and then calls config.status. |
21229 | # config.status does its own redirection, appending to config.log. |
21230 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21231 | # by configure, so config.status won't be able to write to it; its |
21232 | # output is simply discarded. So we exec the FD to /dev/null, |
21233 | # effectively closing config.log, so it can be properly (re)opened and |
21234 | # appended to by config.status. When coming back to configure, we |
21235 | # need to make the FD available again. |
21236 | if test "$no_create" != yes; then |
21237 | ac_cs_success=: |
21238 | ac_config_status_args= |
21239 | test "$silent" = yes && |
21240 | ac_config_status_args="$ac_config_status_args --quiet" |
21241 | exec 5>/dev/null |
21242 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21243 | exec 5>>config.log |
21244 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21245 | # would make configure fail if this is the last instruction. |
21246 | $ac_cs_success || { (exit 1); exit 1; } |
21247 | fi |
21248 | |