d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
dd184caf |
3 | # Generated by GNU Autoconf 2.61 for courierlogger 0.10. |
d9898ee8 |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
dd184caf |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## |
13 | ## --------------------- ## |
14 | |
dd184caf |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh |
19 | NULLCMD=: |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
23 | setopt NO_GLOB_SUBST |
24 | else |
25 | case `(set -o) 2>/dev/null` in |
26 | *posix*) set -o posix ;; |
27 | esac |
28 | |
29 | fi |
30 | |
31 | |
32 | |
33 | |
34 | # PATH needs CR |
35 | # Avoid depending upon Character Ranges. |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
39 | as_cr_digits='0123456789' |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
41 | |
42 | # The user is always right. |
43 | if test "${PATH_SEPARATOR+set}" != set; then |
44 | echo "#! /bin/sh" >conf$$.sh |
45 | echo "exit 0" >>conf$$.sh |
46 | chmod +x conf$$.sh |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
48 | PATH_SEPARATOR=';' |
49 | else |
50 | PATH_SEPARATOR=: |
51 | fi |
52 | rm -f conf$$.sh |
d9898ee8 |
53 | fi |
d9898ee8 |
54 | |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
57 | as_unset=unset |
58 | else |
59 | as_unset=false |
60 | fi |
61 | |
62 | |
dd184caf |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is |
65 | # there to prevent editors from complaining about space-tab. |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
67 | # splitting by setting IFS to empty value.) |
68 | as_nl=' |
69 | ' |
70 | IFS=" "" $as_nl" |
71 | |
72 | # Find who we are. Look in the path if we contain no directory separator. |
73 | case $0 in |
74 | *[\\/]* ) as_myself=$0 ;; |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
76 | for as_dir in $PATH |
77 | do |
78 | IFS=$as_save_IFS |
79 | test -z "$as_dir" && as_dir=. |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 | done |
82 | IFS=$as_save_IFS |
83 | |
84 | ;; |
85 | esac |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
87 | # in which case we are not to be found in the path. |
88 | if test "x$as_myself" = x; then |
89 | as_myself=$0 |
90 | fi |
91 | if test ! -f "$as_myself"; then |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
93 | { (exit 1); exit 1; } |
94 | fi |
95 | |
d9898ee8 |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 | done |
d9898ee8 |
100 | PS1='$ ' |
101 | PS2='> ' |
102 | PS4='+ ' |
103 | |
104 | # NLS nuisances. |
105 | for as_var in \ |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
108 | LC_TELEPHONE LC_TIME |
109 | do |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
111 | eval $as_var=C; export $as_var |
112 | else |
dd184caf |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
dd184caf |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
120 | as_expr=expr |
121 | else |
122 | as_expr=false |
123 | fi |
124 | |
dd184caf |
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
126 | as_basename=basename |
127 | else |
128 | as_basename=false |
129 | fi |
130 | |
131 | |
132 | # Name of the executable. |
dd184caf |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
dd184caf |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ |
140 | q |
141 | } |
142 | /^X\/\(\/\/\)$/{ |
143 | s//\1/ |
144 | q |
145 | } |
146 | /^X\/\(\/\).*/{ |
147 | s//\1/ |
148 | q |
149 | } |
150 | s/.*/./; q'` |
d9898ee8 |
151 | |
dd184caf |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
dd184caf |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then |
158 | as_have_required=yes |
159 | else |
160 | as_have_required=no |
d9898ee8 |
161 | fi |
162 | |
dd184caf |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { |
165 | (exit \$1) |
166 | } |
167 | as_func_success () { |
168 | as_func_return 0 |
169 | } |
170 | as_func_failure () { |
171 | as_func_return 1 |
172 | } |
173 | as_func_ret_success () { |
174 | return 0 |
175 | } |
176 | as_func_ret_failure () { |
177 | return 1 |
178 | } |
d9898ee8 |
179 | |
dd184caf |
180 | exitcode=0 |
181 | if as_func_success; then |
182 | : |
183 | else |
184 | exitcode=1 |
185 | echo as_func_success failed. |
186 | fi |
d9898ee8 |
187 | |
dd184caf |
188 | if as_func_failure; then |
189 | exitcode=1 |
190 | echo as_func_failure succeeded. |
191 | fi |
192 | |
193 | if as_func_ret_success; then |
194 | : |
195 | else |
196 | exitcode=1 |
197 | echo as_func_ret_success failed. |
198 | fi |
199 | |
200 | if as_func_ret_failure; then |
201 | exitcode=1 |
202 | echo as_func_ret_failure succeeded. |
203 | fi |
204 | |
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
206 | : |
207 | else |
208 | exitcode=1 |
209 | echo positional parameters were not saved. |
210 | fi |
211 | |
212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
213 | |
214 | ( |
215 | as_lineno_1=\$LINENO |
216 | as_lineno_2=\$LINENO |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
219 | ") 2> /dev/null; then |
220 | : |
221 | else |
222 | as_candidate_shells= |
d9898ee8 |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 | do |
226 | IFS=$as_save_IFS |
227 | test -z "$as_dir" && as_dir=. |
dd184caf |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
dd184caf |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
232 | done;; |
233 | esac |
234 | done |
235 | IFS=$as_save_IFS |
236 | |
237 | |
238 | for as_shell in $as_candidate_shells $SHELL; do |
239 | # Try only shells that exist, to save several forks. |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
243 | emulate sh |
244 | NULLCMD=: |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
246 | # is contrary to our usage. Disable this feature. |
247 | alias -g '${1+"$@"}'='"$@"' |
248 | setopt NO_GLOB_SUBST |
249 | else |
250 | case `(set -o) 2>/dev/null` in |
251 | *posix*) set -o posix ;; |
252 | esac |
253 | |
254 | fi |
255 | |
256 | |
257 | : |
258 | _ASEOF |
259 | }; then |
260 | CONFIG_SHELL=$as_shell |
261 | as_have_required=yes |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
264 | emulate sh |
265 | NULLCMD=: |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
267 | # is contrary to our usage. Disable this feature. |
268 | alias -g '${1+"$@"}'='"$@"' |
269 | setopt NO_GLOB_SUBST |
270 | else |
271 | case `(set -o) 2>/dev/null` in |
272 | *posix*) set -o posix ;; |
273 | esac |
274 | |
275 | fi |
276 | |
277 | |
278 | : |
279 | (as_func_return () { |
280 | (exit $1) |
281 | } |
282 | as_func_success () { |
283 | as_func_return 0 |
284 | } |
285 | as_func_failure () { |
286 | as_func_return 1 |
287 | } |
288 | as_func_ret_success () { |
289 | return 0 |
290 | } |
291 | as_func_ret_failure () { |
292 | return 1 |
293 | } |
294 | |
295 | exitcode=0 |
296 | if as_func_success; then |
297 | : |
298 | else |
299 | exitcode=1 |
300 | echo as_func_success failed. |
301 | fi |
302 | |
303 | if as_func_failure; then |
304 | exitcode=1 |
305 | echo as_func_failure succeeded. |
306 | fi |
307 | |
308 | if as_func_ret_success; then |
309 | : |
310 | else |
311 | exitcode=1 |
312 | echo as_func_ret_success failed. |
313 | fi |
314 | |
315 | if as_func_ret_failure; then |
316 | exitcode=1 |
317 | echo as_func_ret_failure succeeded. |
318 | fi |
319 | |
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
321 | : |
322 | else |
323 | exitcode=1 |
324 | echo positional parameters were not saved. |
325 | fi |
326 | |
327 | test $exitcode = 0) || { (exit 1); exit 1; } |
328 | |
329 | ( |
d9898ee8 |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO |
d9898ee8 |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | |
335 | _ASEOF |
336 | }; then |
337 | break |
338 | fi |
339 | |
340 | fi |
341 | |
342 | done |
343 | |
344 | if test "x$CONFIG_SHELL" != x; then |
345 | for as_var in BASH_ENV ENV |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 | done |
348 | export CONFIG_SHELL |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
350 | fi |
351 | |
352 | |
353 | if test $as_have_required = no; then |
354 | echo This script requires a shell more modern than all the |
355 | echo shells that I found on your system. Please install a |
356 | echo modern shell, or manually run the script under such a |
357 | echo shell if you do have one. |
358 | { (exit 1); exit 1; } |
359 | fi |
360 | |
361 | |
362 | fi |
363 | |
364 | fi |
365 | |
366 | |
367 | |
368 | (eval "as_func_return () { |
369 | (exit \$1) |
370 | } |
371 | as_func_success () { |
372 | as_func_return 0 |
373 | } |
374 | as_func_failure () { |
375 | as_func_return 1 |
376 | } |
377 | as_func_ret_success () { |
378 | return 0 |
379 | } |
380 | as_func_ret_failure () { |
381 | return 1 |
382 | } |
383 | |
384 | exitcode=0 |
385 | if as_func_success; then |
386 | : |
387 | else |
388 | exitcode=1 |
389 | echo as_func_success failed. |
390 | fi |
391 | |
392 | if as_func_failure; then |
393 | exitcode=1 |
394 | echo as_func_failure succeeded. |
395 | fi |
396 | |
397 | if as_func_ret_success; then |
398 | : |
399 | else |
400 | exitcode=1 |
401 | echo as_func_ret_success failed. |
402 | fi |
403 | |
404 | if as_func_ret_failure; then |
405 | exitcode=1 |
406 | echo as_func_ret_failure succeeded. |
407 | fi |
408 | |
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
410 | : |
411 | else |
412 | exitcode=1 |
413 | echo positional parameters were not saved. |
414 | fi |
415 | |
416 | test \$exitcode = 0") || { |
417 | echo No shell found that supports shell functions. |
418 | echo Please tell autoconf@gnu.org about your system, |
419 | echo including any error possibly output before this |
420 | echo message |
421 | } |
422 | |
423 | |
424 | |
425 | as_lineno_1=$LINENO |
426 | as_lineno_2=$LINENO |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
431 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each |
434 | # line-number line with the line containing $LINENO, and appends |
435 | # trailing '-' during substitution so that $LINENO is not a special |
436 | # case at line end. |
d9898ee8 |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
440 | sed -n ' |
441 | p |
442 | /[$]LINENO/= |
443 | ' <$as_myself | |
d9898ee8 |
444 | sed ' |
dd184caf |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
dd184caf |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
dd184caf |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
dd184caf |
455 | chmod +x "$as_me.lineno" || |
d9898ee8 |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } |
458 | |
459 | # Don't try to exec as it changes $[0], causing all sort of problems |
460 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" |
d9898ee8 |
463 | # Exit status is that of the last command. |
464 | exit |
465 | } |
466 | |
467 | |
dd184caf |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname |
470 | else |
471 | as_dirname=false |
472 | fi |
473 | |
474 | ECHO_C= ECHO_N= ECHO_T= |
475 | case `echo -n x` in |
476 | -n*) |
477 | case `echo 'x\c'` in |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
479 | *) ECHO_C='\c';; |
480 | esac;; |
481 | *) |
482 | ECHO_N='-n';; |
d9898ee8 |
483 | esac |
484 | |
dd184caf |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
487 | as_expr=expr |
488 | else |
489 | as_expr=false |
490 | fi |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file |
495 | else |
496 | rm -f conf$$.dir |
497 | mkdir conf$$.dir |
498 | fi |
d9898ee8 |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
505 | # In both cases, we have to default to `cp -p'. |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
507 | as_ln_s='cp -p' |
d9898ee8 |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln |
510 | else |
511 | as_ln_s='cp -p' |
512 | fi |
dd184caf |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
515 | |
516 | if mkdir -p . 2>/dev/null; then |
517 | as_mkdir_p=: |
518 | else |
519 | test -d ./-p && rmdir ./-p |
520 | as_mkdir_p=false |
521 | fi |
522 | |
dd184caf |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' |
525 | else |
526 | if ls -dL / >/dev/null 2>&1; then |
527 | as_ls_L_option=L |
528 | else |
529 | as_ls_L_option= |
530 | fi |
531 | as_test_x=' |
532 | eval sh -c '\'' |
533 | if test -d "$1"; then |
534 | test -d "$1/."; |
535 | else |
536 | case $1 in |
537 | -*)set "./$1";; |
538 | esac; |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
540 | ???[sx]*):;;*)false;;esac;fi |
541 | '\'' sh |
542 | ' |
543 | fi |
544 | as_executable_p=$as_test_x |
d9898ee8 |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
548 | |
549 | # Sed expression to map a string onto a valid variable name. |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
551 | |
552 | |
d9898ee8 |
553 | |
554 | |
555 | # Check that we are running under the correct shell. |
556 | SHELL=${CONFIG_SHELL-/bin/sh} |
557 | |
558 | case X$ECHO in |
559 | X*--fallback-echo) |
560 | # Remove one level of quotation (which was required for Make). |
561 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
562 | ;; |
563 | esac |
564 | |
565 | echo=${ECHO-echo} |
566 | if test "X$1" = X--no-reexec; then |
567 | # Discard the --no-reexec flag, and continue. |
568 | shift |
569 | elif test "X$1" = X--fallback-echo; then |
570 | # Avoid inline document here, it may be left over |
571 | : |
572 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
573 | # Yippee, $echo works! |
574 | : |
575 | else |
576 | # Restart under the correct shell. |
577 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
578 | fi |
579 | |
580 | if test "X$1" = X--fallback-echo; then |
581 | # used as fallback echo |
582 | shift |
583 | cat <<EOF |
584 | $* |
585 | EOF |
586 | exit 0 |
587 | fi |
588 | |
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
590 | # if CDPATH is set. |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
592 | |
593 | if test -z "$ECHO"; then |
594 | if test "X${echo_test_string+set}" != Xset; then |
595 | # find a string as large as possible, as long as the shell can cope with it |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
599 | echo_test_string=`eval $cmd` && |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
601 | then |
602 | break |
603 | fi |
604 | done |
605 | fi |
606 | |
607 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
608 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
610 | : |
611 | else |
612 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
613 | # backslashes. This makes it impossible to quote backslashes using |
614 | # echo "$something" | sed 's/\\/\\\\/g' |
615 | # |
616 | # So, first we look for a working echo in the user's PATH. |
617 | |
618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
619 | for dir in $PATH /usr/ucb; do |
620 | IFS="$lt_save_ifs" |
621 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
622 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
623 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
624 | test "X$echo_testing_string" = "X$echo_test_string"; then |
625 | echo="$dir/echo" |
626 | break |
627 | fi |
628 | done |
629 | IFS="$lt_save_ifs" |
630 | |
631 | if test "X$echo" = Xecho; then |
632 | # We didn't find a better echo, so look for alternatives. |
633 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
634 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
635 | test "X$echo_testing_string" = "X$echo_test_string"; then |
636 | # This shell has a builtin print -r that does the trick. |
637 | echo='print -r' |
638 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
639 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
640 | # If we have ksh, try running configure again with it. |
641 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
642 | export ORIGINAL_CONFIG_SHELL |
643 | CONFIG_SHELL=/bin/ksh |
644 | export CONFIG_SHELL |
645 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
646 | else |
647 | # Try using printf. |
648 | echo='printf %s\n' |
649 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
650 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
652 | # Cool, printf works |
653 | : |
654 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
655 | test "X$echo_testing_string" = 'X\t' && |
656 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
657 | test "X$echo_testing_string" = "X$echo_test_string"; then |
658 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
659 | export CONFIG_SHELL |
660 | SHELL="$CONFIG_SHELL" |
661 | export SHELL |
662 | echo="$CONFIG_SHELL $0 --fallback-echo" |
663 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
664 | test "X$echo_testing_string" = 'X\t' && |
665 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
666 | test "X$echo_testing_string" = "X$echo_test_string"; then |
667 | echo="$CONFIG_SHELL $0 --fallback-echo" |
668 | else |
669 | # maybe with a smaller string... |
670 | prev=: |
671 | |
672 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
673 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
674 | then |
675 | break |
676 | fi |
677 | prev="$cmd" |
678 | done |
679 | |
680 | if test "$prev" != 'sed 50q "$0"'; then |
681 | echo_test_string=`eval $prev` |
682 | export echo_test_string |
683 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
684 | else |
685 | # Oops. We lost completely, so just stick with echo. |
686 | echo=echo |
687 | fi |
688 | fi |
689 | fi |
690 | fi |
691 | fi |
692 | fi |
693 | |
694 | # Copy echo and quote the copy suitably for passing to libtool from |
695 | # the Makefile, instead of quoting the original, which is used later. |
696 | ECHO=$echo |
697 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
698 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
699 | fi |
700 | |
701 | |
702 | |
703 | |
704 | tagnames=${tagnames+${tagnames},}CXX |
705 | |
706 | tagnames=${tagnames+${tagnames},}F77 |
707 | |
dd184caf |
708 | exec 7<&0 </dev/null 6>&1 |
709 | |
d9898ee8 |
710 | # Name of the host. |
711 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
712 | # so uname gets run too. |
713 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
714 | |
d9898ee8 |
715 | # |
716 | # Initializations. |
717 | # |
718 | ac_default_prefix=/usr/local |
dd184caf |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
dd184caf |
721 | LIBOBJS= |
d9898ee8 |
722 | cross_compiling=no |
723 | subdirs= |
724 | MFLAGS= |
725 | MAKEFLAGS= |
726 | SHELL=${CONFIG_SHELL-/bin/sh} |
727 | |
d9898ee8 |
728 | # Identity of this package. |
729 | PACKAGE_NAME='courierlogger' |
730 | PACKAGE_TARNAME='courierlogger' |
731 | PACKAGE_VERSION='0.10' |
732 | PACKAGE_STRING='courierlogger 0.10' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="logger.c" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
dd184caf |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
dd184caf |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
dd184caf |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
dd184caf |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
dd184caf |
753 | #ifdef HAVE_STRING_H |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
d9898ee8 |
755 | # include <memory.h> |
756 | # endif |
757 | # include <string.h> |
758 | #endif |
dd184caf |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
dd184caf |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
dd184caf |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
dd184caf |
772 | ac_subst_vars='SHELL |
773 | PATH_SEPARATOR |
774 | PACKAGE_NAME |
775 | PACKAGE_TARNAME |
776 | PACKAGE_VERSION |
777 | PACKAGE_STRING |
778 | PACKAGE_BUGREPORT |
779 | exec_prefix |
780 | prefix |
781 | program_transform_name |
782 | bindir |
783 | sbindir |
784 | libexecdir |
785 | datarootdir |
786 | datadir |
787 | sysconfdir |
788 | sharedstatedir |
789 | localstatedir |
790 | includedir |
791 | oldincludedir |
792 | docdir |
793 | infodir |
794 | htmldir |
795 | dvidir |
796 | pdfdir |
797 | psdir |
798 | libdir |
799 | localedir |
800 | mandir |
801 | DEFS |
802 | ECHO_C |
803 | ECHO_N |
804 | ECHO_T |
805 | LIBS |
806 | build_alias |
807 | host_alias |
808 | target_alias |
809 | INSTALL_PROGRAM |
810 | INSTALL_SCRIPT |
811 | INSTALL_DATA |
812 | am__isrc |
813 | CYGPATH_W |
814 | PACKAGE |
815 | VERSION |
816 | ACLOCAL |
817 | AUTOCONF |
818 | AUTOMAKE |
819 | AUTOHEADER |
820 | MAKEINFO |
821 | install_sh |
822 | STRIP |
823 | INSTALL_STRIP_PROGRAM |
824 | mkdir_p |
825 | AWK |
826 | SET_MAKE |
827 | am__leading_dot |
828 | AMTAR |
829 | am__tar |
830 | am__untar |
831 | CC |
832 | CFLAGS |
833 | LDFLAGS |
834 | CPPFLAGS |
835 | ac_ct_CC |
836 | EXEEXT |
837 | OBJEXT |
838 | DEPDIR |
839 | am__include |
840 | am__quote |
841 | AMDEP_TRUE |
842 | AMDEP_FALSE |
843 | AMDEPBACKSLASH |
844 | CCDEPMODE |
845 | am__fastdepCC_TRUE |
846 | am__fastdepCC_FALSE |
847 | LN_S |
848 | build |
849 | build_cpu |
850 | build_vendor |
851 | build_os |
852 | host |
853 | host_cpu |
854 | host_vendor |
855 | host_os |
856 | SED |
857 | GREP |
858 | EGREP |
859 | ECHO |
860 | AR |
861 | RANLIB |
862 | CPP |
863 | CXX |
864 | CXXFLAGS |
865 | ac_ct_CXX |
866 | CXXDEPMODE |
867 | am__fastdepCXX_TRUE |
868 | am__fastdepCXX_FALSE |
869 | CXXCPP |
870 | F77 |
871 | FFLAGS |
872 | ac_ct_F77 |
873 | LIBTOOL |
874 | HAVE_SGML_TRUE |
875 | HAVE_SGML_FALSE |
876 | LIBOBJS |
877 | LTLIBOBJS' |
d9898ee8 |
878 | ac_subst_files='' |
dd184caf |
879 | ac_precious_vars='build_alias |
880 | host_alias |
881 | target_alias |
882 | CC |
883 | CFLAGS |
884 | LDFLAGS |
885 | LIBS |
886 | CPPFLAGS |
887 | CPP |
888 | CXX |
889 | CXXFLAGS |
890 | CCC |
891 | CXXCPP |
892 | F77 |
893 | FFLAGS' |
894 | |
d9898ee8 |
895 | |
896 | # Initialize some variables set by options. |
897 | ac_init_help= |
898 | ac_init_version=false |
899 | # The variables have the same names as the options, with |
900 | # dashes changed to underlines. |
901 | cache_file=/dev/null |
902 | exec_prefix=NONE |
903 | no_create= |
904 | no_recursion= |
905 | prefix=NONE |
906 | program_prefix=NONE |
907 | program_suffix=NONE |
908 | program_transform_name=s,x,x, |
909 | silent= |
910 | site= |
911 | srcdir= |
912 | verbose= |
913 | x_includes=NONE |
914 | x_libraries=NONE |
915 | |
916 | # Installation directory options. |
917 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
918 | # and all the variables that are supposed to be based on exec_prefix |
919 | # by default will actually change. |
920 | # Use braces instead of parens because sh, perl, etc. also accept them. |
dd184caf |
921 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
922 | bindir='${exec_prefix}/bin' |
923 | sbindir='${exec_prefix}/sbin' |
924 | libexecdir='${exec_prefix}/libexec' |
dd184caf |
925 | datarootdir='${prefix}/share' |
926 | datadir='${datarootdir}' |
d9898ee8 |
927 | sysconfdir='${prefix}/etc' |
928 | sharedstatedir='${prefix}/com' |
929 | localstatedir='${prefix}/var' |
d9898ee8 |
930 | includedir='${prefix}/include' |
931 | oldincludedir='/usr/include' |
dd184caf |
932 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
933 | infodir='${datarootdir}/info' |
934 | htmldir='${docdir}' |
935 | dvidir='${docdir}' |
936 | pdfdir='${docdir}' |
937 | psdir='${docdir}' |
938 | libdir='${exec_prefix}/lib' |
939 | localedir='${datarootdir}/locale' |
940 | mandir='${datarootdir}/man' |
d9898ee8 |
941 | |
942 | ac_prev= |
dd184caf |
943 | ac_dashdash= |
d9898ee8 |
944 | for ac_option |
945 | do |
946 | # If the previous option needs an argument, assign it. |
947 | if test -n "$ac_prev"; then |
dd184caf |
948 | eval $ac_prev=\$ac_option |
d9898ee8 |
949 | ac_prev= |
950 | continue |
951 | fi |
952 | |
dd184caf |
953 | case $ac_option in |
954 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
955 | *) ac_optarg=yes ;; |
956 | esac |
d9898ee8 |
957 | |
958 | # Accept the important Cygnus configure options, so we can diagnose typos. |
959 | |
dd184caf |
960 | case $ac_dashdash$ac_option in |
961 | --) |
962 | ac_dashdash=yes ;; |
d9898ee8 |
963 | |
964 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
965 | ac_prev=bindir ;; |
966 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
967 | bindir=$ac_optarg ;; |
968 | |
969 | -build | --build | --buil | --bui | --bu) |
970 | ac_prev=build_alias ;; |
971 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
972 | build_alias=$ac_optarg ;; |
973 | |
974 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
975 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
976 | ac_prev=cache_file ;; |
977 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
978 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
979 | cache_file=$ac_optarg ;; |
980 | |
981 | --config-cache | -C) |
982 | cache_file=config.cache ;; |
983 | |
dd184caf |
984 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
985 | ac_prev=datadir ;; |
dd184caf |
986 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
987 | datadir=$ac_optarg ;; |
988 | |
dd184caf |
989 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
990 | | --dataroo | --dataro | --datar) |
991 | ac_prev=datarootdir ;; |
992 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
993 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
994 | datarootdir=$ac_optarg ;; |
995 | |
d9898ee8 |
996 | -disable-* | --disable-*) |
997 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
998 | # Reject names that are not valid shell variable names. |
dd184caf |
999 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1000 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1001 | { (exit 1); exit 1; }; } |
dd184caf |
1002 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1003 | eval enable_$ac_feature=no ;; |
1004 | |
1005 | -docdir | --docdir | --docdi | --doc | --do) |
1006 | ac_prev=docdir ;; |
1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1008 | docdir=$ac_optarg ;; |
1009 | |
1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1011 | ac_prev=dvidir ;; |
1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1013 | dvidir=$ac_optarg ;; |
d9898ee8 |
1014 | |
1015 | -enable-* | --enable-*) |
1016 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1017 | # Reject names that are not valid shell variable names. |
dd184caf |
1018 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1019 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1020 | { (exit 1); exit 1; }; } |
dd184caf |
1021 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1022 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1023 | |
1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1026 | | --exec | --exe | --ex) |
1027 | ac_prev=exec_prefix ;; |
1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1030 | | --exec=* | --exe=* | --ex=*) |
1031 | exec_prefix=$ac_optarg ;; |
1032 | |
1033 | -gas | --gas | --ga | --g) |
1034 | # Obsolete; use --with-gas. |
1035 | with_gas=yes ;; |
1036 | |
1037 | -help | --help | --hel | --he | -h) |
1038 | ac_init_help=long ;; |
1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1040 | ac_init_help=recursive ;; |
1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1042 | ac_init_help=short ;; |
1043 | |
1044 | -host | --host | --hos | --ho) |
1045 | ac_prev=host_alias ;; |
1046 | -host=* | --host=* | --hos=* | --ho=*) |
1047 | host_alias=$ac_optarg ;; |
1048 | |
dd184caf |
1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1050 | ac_prev=htmldir ;; |
1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1052 | | --ht=*) |
1053 | htmldir=$ac_optarg ;; |
1054 | |
d9898ee8 |
1055 | -includedir | --includedir | --includedi | --included | --include \ |
1056 | | --includ | --inclu | --incl | --inc) |
1057 | ac_prev=includedir ;; |
1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1060 | includedir=$ac_optarg ;; |
1061 | |
1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1063 | ac_prev=infodir ;; |
1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1065 | infodir=$ac_optarg ;; |
1066 | |
1067 | -libdir | --libdir | --libdi | --libd) |
1068 | ac_prev=libdir ;; |
1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1070 | libdir=$ac_optarg ;; |
1071 | |
1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1073 | | --libexe | --libex | --libe) |
1074 | ac_prev=libexecdir ;; |
1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1076 | | --libexe=* | --libex=* | --libe=*) |
1077 | libexecdir=$ac_optarg ;; |
1078 | |
dd184caf |
1079 | -localedir | --localedir | --localedi | --localed | --locale) |
1080 | ac_prev=localedir ;; |
1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1082 | localedir=$ac_optarg ;; |
1083 | |
d9898ee8 |
1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf |
1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1086 | ac_prev=localstatedir ;; |
1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
dd184caf |
1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1089 | localstatedir=$ac_optarg ;; |
1090 | |
1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1092 | ac_prev=mandir ;; |
1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1094 | mandir=$ac_optarg ;; |
1095 | |
1096 | -nfp | --nfp | --nf) |
1097 | # Obsolete; use --without-fp. |
1098 | with_fp=no ;; |
1099 | |
1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1101 | | --no-cr | --no-c | -n) |
1102 | no_create=yes ;; |
1103 | |
1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1106 | no_recursion=yes ;; |
1107 | |
1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1110 | | --oldin | --oldi | --old | --ol | --o) |
1111 | ac_prev=oldincludedir ;; |
1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1115 | oldincludedir=$ac_optarg ;; |
1116 | |
1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1118 | ac_prev=prefix ;; |
1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1120 | prefix=$ac_optarg ;; |
1121 | |
1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1123 | | --program-pre | --program-pr | --program-p) |
1124 | ac_prev=program_prefix ;; |
1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1127 | program_prefix=$ac_optarg ;; |
1128 | |
1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1130 | | --program-suf | --program-su | --program-s) |
1131 | ac_prev=program_suffix ;; |
1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1134 | program_suffix=$ac_optarg ;; |
1135 | |
1136 | -program-transform-name | --program-transform-name \ |
1137 | | --program-transform-nam | --program-transform-na \ |
1138 | | --program-transform-n | --program-transform- \ |
1139 | | --program-transform | --program-transfor \ |
1140 | | --program-transfo | --program-transf \ |
1141 | | --program-trans | --program-tran \ |
1142 | | --progr-tra | --program-tr | --program-t) |
1143 | ac_prev=program_transform_name ;; |
1144 | -program-transform-name=* | --program-transform-name=* \ |
1145 | | --program-transform-nam=* | --program-transform-na=* \ |
1146 | | --program-transform-n=* | --program-transform-=* \ |
1147 | | --program-transform=* | --program-transfor=* \ |
1148 | | --program-transfo=* | --program-transf=* \ |
1149 | | --program-trans=* | --program-tran=* \ |
1150 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1151 | program_transform_name=$ac_optarg ;; |
1152 | |
dd184caf |
1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1154 | ac_prev=pdfdir ;; |
1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1156 | pdfdir=$ac_optarg ;; |
1157 | |
1158 | -psdir | --psdir | --psdi | --psd | --ps) |
1159 | ac_prev=psdir ;; |
1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1161 | psdir=$ac_optarg ;; |
1162 | |
d9898ee8 |
1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1164 | | -silent | --silent | --silen | --sile | --sil) |
1165 | silent=yes ;; |
1166 | |
1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1168 | ac_prev=sbindir ;; |
1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1170 | | --sbi=* | --sb=*) |
1171 | sbindir=$ac_optarg ;; |
1172 | |
1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1175 | | --sharedst | --shareds | --shared | --share | --shar \ |
1176 | | --sha | --sh) |
1177 | ac_prev=sharedstatedir ;; |
1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1181 | | --sha=* | --sh=*) |
1182 | sharedstatedir=$ac_optarg ;; |
1183 | |
1184 | -site | --site | --sit) |
1185 | ac_prev=site ;; |
1186 | -site=* | --site=* | --sit=*) |
1187 | site=$ac_optarg ;; |
1188 | |
1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1190 | ac_prev=srcdir ;; |
1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1192 | srcdir=$ac_optarg ;; |
1193 | |
1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1195 | | --syscon | --sysco | --sysc | --sys | --sy) |
1196 | ac_prev=sysconfdir ;; |
1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1199 | sysconfdir=$ac_optarg ;; |
1200 | |
1201 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1202 | ac_prev=target_alias ;; |
1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1204 | target_alias=$ac_optarg ;; |
1205 | |
1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1207 | verbose=yes ;; |
1208 | |
1209 | -version | --version | --versio | --versi | --vers | -V) |
1210 | ac_init_version=: ;; |
1211 | |
1212 | -with-* | --with-*) |
1213 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1214 | # Reject names that are not valid shell variable names. |
dd184caf |
1215 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1216 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1217 | { (exit 1); exit 1; }; } |
dd184caf |
1218 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1219 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1220 | |
1221 | -without-* | --without-*) |
1222 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
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=no ;; |
d9898ee8 |
1229 | |
1230 | --x) |
1231 | # Obsolete; use --with-x. |
1232 | with_x=yes ;; |
1233 | |
1234 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1235 | | --x-incl | --x-inc | --x-in | --x-i) |
1236 | ac_prev=x_includes ;; |
1237 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1238 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1239 | x_includes=$ac_optarg ;; |
1240 | |
1241 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1242 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1243 | ac_prev=x_libraries ;; |
1244 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1245 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1246 | x_libraries=$ac_optarg ;; |
1247 | |
1248 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1249 | Try \`$0 --help' for more information." >&2 |
1250 | { (exit 1); exit 1; }; } |
1251 | ;; |
1252 | |
1253 | *=*) |
1254 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1255 | # Reject names that are not valid shell variable names. |
1256 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1257 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1258 | { (exit 1); exit 1; }; } |
dd184caf |
1259 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1260 | export $ac_envvar ;; |
1261 | |
1262 | *) |
1263 | # FIXME: should be removed in autoconf 3.0. |
1264 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1265 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1266 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1267 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1268 | ;; |
1269 | |
1270 | esac |
1271 | done |
1272 | |
1273 | if test -n "$ac_prev"; then |
1274 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1275 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1276 | { (exit 1); exit 1; }; } |
1277 | fi |
1278 | |
dd184caf |
1279 | # Be sure to have absolute directory names. |
1280 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1281 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1282 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1283 | libdir localedir mandir |
d9898ee8 |
1284 | do |
dd184caf |
1285 | eval ac_val=\$$ac_var |
d9898ee8 |
1286 | case $ac_val in |
dd184caf |
1287 | [\\/$]* | ?:[\\/]* ) continue;; |
1288 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1289 | esac |
dd184caf |
1290 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1291 | { (exit 1); exit 1; }; } |
d9898ee8 |
1292 | done |
1293 | |
1294 | # There might be people who depend on the old broken behavior: `$host' |
1295 | # used to hold the argument of --host etc. |
1296 | # FIXME: To remove some day. |
1297 | build=$build_alias |
1298 | host=$host_alias |
1299 | target=$target_alias |
1300 | |
1301 | # FIXME: To remove some day. |
1302 | if test "x$host_alias" != x; then |
1303 | if test "x$build_alias" = x; then |
1304 | cross_compiling=maybe |
1305 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1306 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1307 | elif test "x$build_alias" != "x$host_alias"; then |
1308 | cross_compiling=yes |
1309 | fi |
1310 | fi |
1311 | |
1312 | ac_tool_prefix= |
1313 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1314 | |
1315 | test "$silent" = yes && exec 6>/dev/null |
1316 | |
1317 | |
dd184caf |
1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1319 | ac_ls_di=`ls -di .` && |
1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1321 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1322 | { (exit 1); exit 1; }; } |
1323 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1324 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1325 | { (exit 1); exit 1; }; } |
1326 | |
1327 | |
d9898ee8 |
1328 | # Find the source files, if location was not specified. |
1329 | if test -z "$srcdir"; then |
1330 | ac_srcdir_defaulted=yes |
dd184caf |
1331 | # Try the directory containing this script, then the parent directory. |
1332 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1333 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1334 | X"$0" : 'X\(//\)[^/]' \| \ |
1335 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
1336 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1337 | echo X"$0" | |
dd184caf |
1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1339 | s//\1/ |
1340 | q |
1341 | } |
1342 | /^X\(\/\/\)[^/].*/{ |
1343 | s//\1/ |
1344 | q |
1345 | } |
1346 | /^X\(\/\/\)$/{ |
1347 | s//\1/ |
1348 | q |
1349 | } |
1350 | /^X\(\/\).*/{ |
1351 | s//\1/ |
1352 | q |
1353 | } |
1354 | s/.*/./; q'` |
d9898ee8 |
1355 | srcdir=$ac_confdir |
dd184caf |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1357 | srcdir=.. |
1358 | fi |
1359 | else |
1360 | ac_srcdir_defaulted=no |
1361 | fi |
dd184caf |
1362 | if test ! -r "$srcdir/$ac_unique_file"; then |
1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1364 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1365 | { (exit 1); exit 1; }; } |
d9898ee8 |
1366 | fi |
dd184caf |
1367 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1368 | ac_abs_confdir=`( |
1369 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1370 | { (exit 1); exit 1; }; } |
dd184caf |
1371 | pwd)` |
1372 | # When building in place, set srcdir=. |
1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1374 | srcdir=. |
1375 | fi |
1376 | # Remove unnecessary trailing slashes from srcdir. |
1377 | # Double slashes in file names in object file debugging info |
1378 | # mess up M-x gdb in Emacs. |
1379 | case $srcdir in |
1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1381 | esac |
1382 | for ac_var in $ac_precious_vars; do |
1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1384 | eval ac_env_${ac_var}_value=\$${ac_var} |
1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1387 | done |
d9898ee8 |
1388 | |
1389 | # |
1390 | # Report the --help message. |
1391 | # |
1392 | if test "$ac_init_help" = "long"; then |
1393 | # Omit some internal or obsolete options to make the list less imposing. |
1394 | # This message is too long to be a string in the A/UX 3.1 sh. |
1395 | cat <<_ACEOF |
1396 | \`configure' configures courierlogger 0.10 to adapt to many kinds of systems. |
1397 | |
1398 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1399 | |
1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1401 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1402 | |
1403 | Defaults for the options are specified in brackets. |
1404 | |
1405 | Configuration: |
1406 | -h, --help display this help and exit |
1407 | --help=short display options specific to this package |
1408 | --help=recursive display the short help of all the included packages |
1409 | -V, --version display version information and exit |
1410 | -q, --quiet, --silent do not print \`checking...' messages |
1411 | --cache-file=FILE cache test results in FILE [disabled] |
1412 | -C, --config-cache alias for \`--cache-file=config.cache' |
1413 | -n, --no-create do not create output files |
1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1415 | |
d9898ee8 |
1416 | Installation directories: |
1417 | --prefix=PREFIX install architecture-independent files in PREFIX |
1418 | [$ac_default_prefix] |
1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1420 | [PREFIX] |
1421 | |
1422 | By default, \`make install' will install all the files in |
1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1425 | for instance \`--prefix=\$HOME'. |
1426 | |
1427 | For better control, use the options below. |
1428 | |
1429 | Fine tuning of the installation directories: |
1430 | --bindir=DIR user executables [EPREFIX/bin] |
1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1432 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1436 | --libdir=DIR object code libraries [EPREFIX/lib] |
1437 | --includedir=DIR C header files [PREFIX/include] |
1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
dd184caf |
1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1441 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1443 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/courierlogger] |
1445 | --htmldir=DIR html documentation [DOCDIR] |
1446 | --dvidir=DIR dvi documentation [DOCDIR] |
1447 | --pdfdir=DIR pdf documentation [DOCDIR] |
1448 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1449 | _ACEOF |
1450 | |
1451 | cat <<\_ACEOF |
1452 | |
1453 | Program names: |
1454 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1455 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1456 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1457 | |
1458 | System types: |
1459 | --build=BUILD configure for building on BUILD [guessed] |
1460 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1461 | _ACEOF |
1462 | fi |
1463 | |
1464 | if test -n "$ac_init_help"; then |
1465 | case $ac_init_help in |
1466 | short | recursive ) echo "Configuration of courierlogger 0.10:";; |
1467 | esac |
1468 | cat <<\_ACEOF |
1469 | |
1470 | Optional Features: |
1471 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1472 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1473 | --disable-dependency-tracking speeds up one-time build |
1474 | --enable-dependency-tracking do not reject slow dependency extractors |
dd184caf |
1475 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1476 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1477 | --enable-fast-install[=PKGS] |
1478 | optimize for fast installation [default=yes] |
1479 | --disable-libtool-lock avoid locking (might break parallel builds) |
1480 | |
1481 | Optional Packages: |
1482 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1483 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1484 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1485 | --with-pic try to use only PIC/non-PIC objects [default=use |
1486 | both] |
dd184caf |
1487 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1488 | --with-syslog=XXX syslog facility [MAIL] |
1489 | |
1490 | Some influential environment variables: |
1491 | CC C compiler command |
1492 | CFLAGS C compiler flags |
1493 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1494 | nonstandard directory <lib dir> |
dd184caf |
1495 | LIBS libraries to pass to the linker, e.g. -l<library> |
1496 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1497 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1498 | CPP C preprocessor |
1499 | CXX C++ compiler command |
1500 | CXXFLAGS C++ compiler flags |
1501 | CXXCPP C++ preprocessor |
1502 | F77 Fortran 77 compiler command |
1503 | FFLAGS Fortran 77 compiler flags |
1504 | |
1505 | Use these variables to override the choices made by `configure' or to help |
1506 | it to find libraries and programs with nonstandard names/locations. |
1507 | |
1508 | Report bugs to <courier-users@lists.sourceforge.net>. |
1509 | _ACEOF |
dd184caf |
1510 | ac_status=$? |
d9898ee8 |
1511 | fi |
1512 | |
1513 | if test "$ac_init_help" = "recursive"; then |
1514 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1515 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd184caf |
1516 | test -d "$ac_dir" || continue |
d9898ee8 |
1517 | ac_builddir=. |
1518 | |
dd184caf |
1519 | case "$ac_dir" in |
1520 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1521 | *) |
d9898ee8 |
1522 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
1523 | # A ".." for each directory in $ac_dir_suffix. |
1524 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1525 | case $ac_top_builddir_sub in |
1526 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1527 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1528 | esac ;; |
1529 | esac |
1530 | ac_abs_top_builddir=$ac_pwd |
1531 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1532 | # for backward compatibility: |
1533 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1534 | |
1535 | case $srcdir in |
dd184caf |
1536 | .) # We are building in place. |
d9898ee8 |
1537 | ac_srcdir=. |
dd184caf |
1538 | ac_top_srcdir=$ac_top_builddir_sub |
1539 | ac_abs_top_srcdir=$ac_pwd ;; |
1540 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1541 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
1542 | ac_top_srcdir=$srcdir |
1543 | ac_abs_top_srcdir=$srcdir ;; |
1544 | *) # Relative name. |
1545 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1546 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1547 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1548 | esac |
dd184caf |
1549 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1550 | |
1551 | cd "$ac_dir" || { ac_status=$?; continue; } |
1552 | # Check for guested configure. |
1553 | if test -f "$ac_srcdir/configure.gnu"; then |
1554 | echo && |
1555 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1556 | elif test -f "$ac_srcdir/configure"; then |
1557 | echo && |
1558 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1559 | else |
1560 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf |
1561 | fi || ac_status=$? |
1562 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1563 | done |
1564 | fi |
1565 | |
dd184caf |
1566 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1567 | if $ac_init_version; then |
1568 | cat <<\_ACEOF |
1569 | courierlogger configure 0.10 |
dd184caf |
1570 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1571 | |
dd184caf |
1572 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1573 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1574 | This configure script is free software; the Free Software Foundation |
1575 | gives unlimited permission to copy, distribute and modify it. |
1576 | _ACEOF |
dd184caf |
1577 | exit |
d9898ee8 |
1578 | fi |
dd184caf |
1579 | cat >config.log <<_ACEOF |
d9898ee8 |
1580 | This file contains any messages produced by compilers while |
1581 | running configure, to aid debugging if configure makes a mistake. |
1582 | |
1583 | It was created by courierlogger $as_me 0.10, which was |
dd184caf |
1584 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1585 | |
1586 | $ $0 $@ |
1587 | |
1588 | _ACEOF |
dd184caf |
1589 | exec 5>>config.log |
d9898ee8 |
1590 | { |
1591 | cat <<_ASUNAME |
1592 | ## --------- ## |
1593 | ## Platform. ## |
1594 | ## --------- ## |
1595 | |
1596 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1597 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1598 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1599 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1600 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1601 | |
1602 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1603 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1604 | |
1605 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1606 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1607 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
dd184caf |
1608 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1609 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1610 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1611 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1612 | |
1613 | _ASUNAME |
1614 | |
1615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1616 | for as_dir in $PATH |
1617 | do |
1618 | IFS=$as_save_IFS |
1619 | test -z "$as_dir" && as_dir=. |
1620 | echo "PATH: $as_dir" |
1621 | done |
dd184caf |
1622 | IFS=$as_save_IFS |
d9898ee8 |
1623 | |
1624 | } >&5 |
1625 | |
1626 | cat >&5 <<_ACEOF |
1627 | |
1628 | |
1629 | ## ----------- ## |
1630 | ## Core tests. ## |
1631 | ## ----------- ## |
1632 | |
1633 | _ACEOF |
1634 | |
1635 | |
1636 | # Keep a trace of the command line. |
1637 | # Strip out --no-create and --no-recursion so they do not pile up. |
1638 | # Strip out --silent because we don't want to record it for future runs. |
1639 | # Also quote any args containing shell meta-characters. |
1640 | # Make two passes to allow for proper duplicate-argument suppression. |
1641 | ac_configure_args= |
1642 | ac_configure_args0= |
1643 | ac_configure_args1= |
d9898ee8 |
1644 | ac_must_keep_next=false |
1645 | for ac_pass in 1 2 |
1646 | do |
1647 | for ac_arg |
1648 | do |
1649 | case $ac_arg in |
1650 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1651 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1652 | | -silent | --silent | --silen | --sile | --sil) |
1653 | continue ;; |
dd184caf |
1654 | *\'*) |
d9898ee8 |
1655 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1656 | esac |
1657 | case $ac_pass in |
1658 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1659 | 2) |
1660 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1661 | if test $ac_must_keep_next = true; then |
1662 | ac_must_keep_next=false # Got value, back to normal. |
1663 | else |
1664 | case $ac_arg in |
1665 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1666 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1667 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1668 | | -with-* | --with-* | -without-* | --without-* | --x) |
1669 | case "$ac_configure_args0 " in |
1670 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1671 | esac |
1672 | ;; |
1673 | -* ) ac_must_keep_next=true ;; |
1674 | esac |
1675 | fi |
dd184caf |
1676 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1677 | ;; |
1678 | esac |
1679 | done |
1680 | done |
1681 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1682 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1683 | |
1684 | # When interrupted or exit'd, cleanup temporary files, and complete |
1685 | # config.log. We remove comments because anyway the quotes in there |
1686 | # would cause problems or look ugly. |
dd184caf |
1687 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1688 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1689 | trap 'exit_status=$? |
1690 | # Save into config.log some information that might help in debugging. |
1691 | { |
1692 | echo |
1693 | |
1694 | cat <<\_ASBOX |
1695 | ## ---------------- ## |
1696 | ## Cache variables. ## |
1697 | ## ---------------- ## |
1698 | _ASBOX |
1699 | echo |
1700 | # The following way of writing the cache mishandles newlines in values, |
dd184caf |
1701 | ( |
1702 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1703 | eval ac_val=\$$ac_var |
1704 | case $ac_val in #( |
1705 | *${as_nl}*) |
1706 | case $ac_var in #( |
1707 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1708 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1709 | esac |
1710 | case $ac_var in #( |
1711 | _ | IFS | as_nl) ;; #( |
1712 | *) $as_unset $ac_var ;; |
1713 | esac ;; |
1714 | esac |
1715 | done |
d9898ee8 |
1716 | (set) 2>&1 | |
dd184caf |
1717 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1718 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1719 | sed -n \ |
dd184caf |
1720 | "s/'\''/'\''\\\\'\'''\''/g; |
1721 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1722 | ;; #( |
d9898ee8 |
1723 | *) |
dd184caf |
1724 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1725 | ;; |
dd184caf |
1726 | esac | |
1727 | sort |
1728 | ) |
d9898ee8 |
1729 | echo |
1730 | |
1731 | cat <<\_ASBOX |
1732 | ## ----------------- ## |
1733 | ## Output variables. ## |
1734 | ## ----------------- ## |
1735 | _ASBOX |
1736 | echo |
1737 | for ac_var in $ac_subst_vars |
1738 | do |
dd184caf |
1739 | eval ac_val=\$$ac_var |
1740 | case $ac_val in |
1741 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1742 | esac |
1743 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1744 | done | sort |
1745 | echo |
1746 | |
1747 | if test -n "$ac_subst_files"; then |
1748 | cat <<\_ASBOX |
dd184caf |
1749 | ## ------------------- ## |
1750 | ## File substitutions. ## |
1751 | ## ------------------- ## |
d9898ee8 |
1752 | _ASBOX |
1753 | echo |
1754 | for ac_var in $ac_subst_files |
1755 | do |
dd184caf |
1756 | eval ac_val=\$$ac_var |
1757 | case $ac_val in |
1758 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1759 | esac |
1760 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1761 | done | sort |
1762 | echo |
1763 | fi |
1764 | |
1765 | if test -s confdefs.h; then |
1766 | cat <<\_ASBOX |
1767 | ## ----------- ## |
1768 | ## confdefs.h. ## |
1769 | ## ----------- ## |
1770 | _ASBOX |
1771 | echo |
dd184caf |
1772 | cat confdefs.h |
d9898ee8 |
1773 | echo |
1774 | fi |
1775 | test "$ac_signal" != 0 && |
1776 | echo "$as_me: caught signal $ac_signal" |
1777 | echo "$as_me: exit $exit_status" |
1778 | } >&5 |
dd184caf |
1779 | rm -f core *.core core.conftest.* && |
1780 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1781 | exit $exit_status |
dd184caf |
1782 | ' 0 |
d9898ee8 |
1783 | for ac_signal in 1 2 13 15; do |
1784 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1785 | done |
1786 | ac_signal=0 |
1787 | |
1788 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
dd184caf |
1789 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1790 | |
1791 | # Predefined preprocessor variables. |
1792 | |
1793 | cat >>confdefs.h <<_ACEOF |
1794 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1795 | _ACEOF |
1796 | |
1797 | |
1798 | cat >>confdefs.h <<_ACEOF |
1799 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1800 | _ACEOF |
1801 | |
1802 | |
1803 | cat >>confdefs.h <<_ACEOF |
1804 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1805 | _ACEOF |
1806 | |
1807 | |
1808 | cat >>confdefs.h <<_ACEOF |
1809 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1810 | _ACEOF |
1811 | |
1812 | |
1813 | cat >>confdefs.h <<_ACEOF |
1814 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1815 | _ACEOF |
1816 | |
1817 | |
1818 | # Let the site file select an alternate cache file if it wants to. |
1819 | # Prefer explicitly selected file to automatically selected ones. |
dd184caf |
1820 | if test -n "$CONFIG_SITE"; then |
1821 | set x "$CONFIG_SITE" |
1822 | elif test "x$prefix" != xNONE; then |
1823 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1824 | else |
1825 | set x "$ac_default_prefix/share/config.site" \ |
1826 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1827 | fi |
dd184caf |
1828 | shift |
1829 | for ac_site_file |
1830 | do |
d9898ee8 |
1831 | if test -r "$ac_site_file"; then |
1832 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1833 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1834 | sed 's/^/| /' "$ac_site_file" >&5 |
1835 | . "$ac_site_file" |
1836 | fi |
1837 | done |
1838 | |
1839 | if test -r "$cache_file"; then |
1840 | # Some versions of bash will fail to source /dev/null (special |
1841 | # files actually), so we avoid doing that. |
1842 | if test -f "$cache_file"; then |
1843 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1844 | echo "$as_me: loading cache $cache_file" >&6;} |
1845 | case $cache_file in |
dd184caf |
1846 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1847 | *) . "./$cache_file";; |
d9898ee8 |
1848 | esac |
1849 | fi |
1850 | else |
1851 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1852 | echo "$as_me: creating cache $cache_file" >&6;} |
1853 | >$cache_file |
1854 | fi |
1855 | |
1856 | # Check that the precious variables saved in the cache have kept the same |
1857 | # value. |
1858 | ac_cache_corrupted=false |
dd184caf |
1859 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1860 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1861 | eval ac_new_set=\$ac_env_${ac_var}_set |
dd184caf |
1862 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1863 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1864 | case $ac_old_set,$ac_new_set in |
1865 | set,) |
1866 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1867 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1868 | ac_cache_corrupted=: ;; |
1869 | ,set) |
1870 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1871 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1872 | ac_cache_corrupted=: ;; |
1873 | ,);; |
1874 | *) |
1875 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1876 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1877 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1878 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1879 | echo "$as_me: former value: $ac_old_val" >&2;} |
1880 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1881 | echo "$as_me: current value: $ac_new_val" >&2;} |
1882 | ac_cache_corrupted=: |
1883 | fi;; |
1884 | esac |
1885 | # Pass precious variables to config.status. |
1886 | if test "$ac_new_set" = set; then |
1887 | case $ac_new_val in |
dd184caf |
1888 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1889 | *) ac_arg=$ac_var=$ac_new_val ;; |
1890 | esac |
1891 | case " $ac_configure_args " in |
1892 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1893 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1894 | esac |
1895 | fi |
1896 | done |
1897 | if $ac_cache_corrupted; then |
1898 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1899 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1900 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1901 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1902 | { (exit 1); exit 1; }; } |
1903 | fi |
1904 | |
d9898ee8 |
1905 | |
1906 | |
1907 | |
1908 | |
1909 | |
1910 | |
1911 | |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
dd184caf |
1929 | ac_ext=c |
1930 | ac_cpp='$CPP $CPPFLAGS' |
1931 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1932 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1933 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1934 | |
1935 | |
1936 | |
1937 | >confdefs.h # Kill PACKAGE_ macros. |
1938 | LPATH="$PATH:/usr/local/bin" |
1939 | |
dd184caf |
1940 | am__api_version='1.10' |
1941 | |
d9898ee8 |
1942 | ac_aux_dir= |
dd184caf |
1943 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1944 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1945 | ac_aux_dir=$ac_dir |
1946 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1947 | break |
dd184caf |
1948 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1949 | ac_aux_dir=$ac_dir |
1950 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1951 | break |
dd184caf |
1952 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1953 | ac_aux_dir=$ac_dir |
1954 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1955 | break |
1956 | fi |
1957 | done |
1958 | if test -z "$ac_aux_dir"; then |
dd184caf |
1959 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1960 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1961 | { (exit 1); exit 1; }; } |
1962 | fi |
dd184caf |
1963 | |
1964 | # These three variables are undocumented and unsupported, |
1965 | # and are intended to be withdrawn in a future Autoconf release. |
1966 | # They can cause serious problems if a builder's source tree is in a directory |
1967 | # whose full name contains unusual characters. |
1968 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1969 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1970 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1971 | |
d9898ee8 |
1972 | |
1973 | # Find a good install program. We prefer a C program (faster), |
1974 | # so one script is as good as another. But avoid the broken or |
1975 | # incompatible versions: |
1976 | # SysV /etc/install, /usr/sbin/install |
1977 | # SunOS /usr/etc/install |
1978 | # IRIX /sbin/install |
1979 | # AIX /bin/install |
1980 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1981 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1982 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1983 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1984 | # OS/2's system install, which has a completely different semantic |
1985 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
1986 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1987 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
1988 | if test -z "$INSTALL"; then |
1989 | if test "${ac_cv_path_install+set}" = set; then |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1991 | else |
1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1993 | for as_dir in $PATH |
1994 | do |
1995 | IFS=$as_save_IFS |
1996 | test -z "$as_dir" && as_dir=. |
1997 | # Account for people who put trailing slashes in PATH elements. |
1998 | case $as_dir/ in |
1999 | ./ | .// | /cC/* | \ |
2000 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2001 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2002 | /usr/ucb/* ) ;; |
2003 | *) |
2004 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2005 | # Don't use installbsd from OSF since it installs stuff as root |
2006 | # by default. |
2007 | for ac_prog in ginstall scoinst install; do |
2008 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2009 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2010 | if test $ac_prog = install && |
2011 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2012 | # AIX install. It has an incompatible calling convention. |
2013 | : |
2014 | elif test $ac_prog = install && |
2015 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2016 | # program-specific install script used by HP pwplus--don't use. |
2017 | : |
2018 | else |
2019 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2020 | break 3 |
2021 | fi |
2022 | fi |
2023 | done |
2024 | done |
2025 | ;; |
2026 | esac |
2027 | done |
dd184caf |
2028 | IFS=$as_save_IFS |
d9898ee8 |
2029 | |
2030 | |
2031 | fi |
2032 | if test "${ac_cv_path_install+set}" = set; then |
2033 | INSTALL=$ac_cv_path_install |
2034 | else |
dd184caf |
2035 | # As a last resort, use the slow shell script. Don't cache a |
2036 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2037 | # break other packages using the cache if that directory is |
dd184caf |
2038 | # removed, or if the value is a relative name. |
d9898ee8 |
2039 | INSTALL=$ac_install_sh |
2040 | fi |
2041 | fi |
dd184caf |
2042 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2043 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2044 | |
2045 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2046 | # It thinks the first close brace ends the variable substitution. |
2047 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2048 | |
2049 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2050 | |
2051 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2052 | |
dd184caf |
2053 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2054 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2055 | # Just in case |
2056 | sleep 1 |
2057 | echo timestamp > conftest.file |
2058 | # Do `set' in a subshell so we don't clobber the current shell's |
2059 | # arguments. Must try -L first in case configure is actually a |
2060 | # symlink; some systems play weird games with the mod time of symlinks |
2061 | # (eg FreeBSD returns the mod time of the symlink's containing |
2062 | # directory). |
2063 | if ( |
2064 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2065 | if test "$*" = "X"; then |
2066 | # -L didn't work. |
2067 | set X `ls -t $srcdir/configure conftest.file` |
2068 | fi |
2069 | rm -f conftest.file |
2070 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2071 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2072 | |
2073 | # If neither matched, then we have a broken ls. This can happen |
2074 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2075 | # broken ls alias from the environment. This has actually |
2076 | # happened. Such a system could not be considered "sane". |
2077 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2078 | alias in your environment" >&5 |
2079 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2080 | alias in your environment" >&2;} |
2081 | { (exit 1); exit 1; }; } |
2082 | fi |
2083 | |
2084 | test "$2" = conftest.file |
2085 | ) |
2086 | then |
2087 | # Ok. |
2088 | : |
2089 | else |
2090 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2091 | Check your system clock" >&5 |
2092 | echo "$as_me: error: newly created file is older than distributed files! |
2093 | Check your system clock" >&2;} |
2094 | { (exit 1); exit 1; }; } |
2095 | fi |
dd184caf |
2096 | { echo "$as_me:$LINENO: result: yes" >&5 |
2097 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2098 | test "$program_prefix" != NONE && |
dd184caf |
2099 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2100 | # Use a double $ so make ignores it. |
2101 | test "$program_suffix" != NONE && |
dd184caf |
2102 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2103 | # Double any \ or $. echo might interpret backslashes. |
2104 | # By default was `s,x,x', remove it if useless. |
2105 | cat <<\_ACEOF >conftest.sed |
2106 | s/[\\$]/&&/g;s/;s,x,x,$// |
2107 | _ACEOF |
2108 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
dd184caf |
2109 | rm -f conftest.sed |
d9898ee8 |
2110 | |
2111 | # expand $ac_aux_dir to an absolute path |
2112 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2113 | |
2114 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2115 | # Use eval to expand $SHELL |
2116 | if eval "$MISSING --run true"; then |
2117 | am_missing_run="$MISSING --run " |
2118 | else |
2119 | am_missing_run= |
2120 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2121 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2122 | fi |
2123 | |
dd184caf |
2124 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2125 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2126 | if test -z "$MKDIR_P"; then |
2127 | if test "${ac_cv_path_mkdir+set}" = set; then |
2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2129 | else |
2130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2131 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2132 | do |
2133 | IFS=$as_save_IFS |
2134 | test -z "$as_dir" && as_dir=. |
2135 | for ac_prog in mkdir gmkdir; do |
2136 | for ac_exec_ext in '' $ac_executable_extensions; do |
2137 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2138 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2139 | 'mkdir (GNU coreutils) '* | \ |
2140 | 'mkdir (coreutils) '* | \ |
2141 | 'mkdir (fileutils) '4.1*) |
2142 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2143 | break 3;; |
2144 | esac |
2145 | done |
2146 | done |
2147 | done |
2148 | IFS=$as_save_IFS |
2149 | |
2150 | fi |
2151 | |
2152 | if test "${ac_cv_path_mkdir+set}" = set; then |
2153 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2154 | else |
dd184caf |
2155 | # As a last resort, use the slow shell script. Don't cache a |
2156 | # value for MKDIR_P within a source directory, because that will |
2157 | # break other packages using the cache if that directory is |
2158 | # removed, or if the value is a relative name. |
2159 | test -d ./--version && rmdir ./--version |
2160 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2161 | fi |
2162 | fi |
dd184caf |
2163 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2164 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2165 | |
2166 | mkdir_p="$MKDIR_P" |
2167 | case $mkdir_p in |
2168 | [\\/$]* | ?:[\\/]*) ;; |
2169 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2170 | esac |
d9898ee8 |
2171 | |
2172 | for ac_prog in gawk mawk nawk awk |
2173 | do |
2174 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2175 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2176 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2178 | if test "${ac_cv_prog_AWK+set}" = set; then |
2179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2180 | else |
2181 | if test -n "$AWK"; then |
2182 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2183 | else |
2184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2185 | for as_dir in $PATH |
2186 | do |
2187 | IFS=$as_save_IFS |
2188 | test -z "$as_dir" && as_dir=. |
2189 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2191 | ac_cv_prog_AWK="$ac_prog" |
2192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2193 | break 2 |
2194 | fi |
2195 | done |
2196 | done |
dd184caf |
2197 | IFS=$as_save_IFS |
d9898ee8 |
2198 | |
2199 | fi |
2200 | fi |
2201 | AWK=$ac_cv_prog_AWK |
2202 | if test -n "$AWK"; then |
dd184caf |
2203 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2204 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2205 | else |
dd184caf |
2206 | { echo "$as_me:$LINENO: result: no" >&5 |
2207 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2208 | fi |
2209 | |
dd184caf |
2210 | |
d9898ee8 |
2211 | test -n "$AWK" && break |
2212 | done |
2213 | |
dd184caf |
2214 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2215 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2216 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2217 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2219 | else |
2220 | cat >conftest.make <<\_ACEOF |
dd184caf |
2221 | SHELL = /bin/sh |
d9898ee8 |
2222 | all: |
dd184caf |
2223 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2224 | _ACEOF |
2225 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
dd184caf |
2226 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2227 | *@@@%%%=?*=@@@%%%*) |
2228 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2229 | *) |
2230 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2231 | esac |
d9898ee8 |
2232 | rm -f conftest.make |
2233 | fi |
dd184caf |
2234 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2235 | { echo "$as_me:$LINENO: result: yes" >&5 |
2236 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2237 | SET_MAKE= |
2238 | else |
dd184caf |
2239 | { echo "$as_me:$LINENO: result: no" >&5 |
2240 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2241 | SET_MAKE="MAKE=${MAKE-make}" |
2242 | fi |
2243 | |
2244 | rm -rf .tst 2>/dev/null |
2245 | mkdir .tst 2>/dev/null |
2246 | if test -d .tst; then |
2247 | am__leading_dot=. |
2248 | else |
2249 | am__leading_dot=_ |
2250 | fi |
2251 | rmdir .tst 2>/dev/null |
2252 | |
dd184caf |
2253 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2254 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2255 | # is not polluted with repeated "-I." |
2256 | am__isrc=' -I$(srcdir)' |
2257 | # test to see if srcdir already configured |
2258 | if test -f $srcdir/config.status; then |
2259 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2260 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2261 | { (exit 1); exit 1; }; } |
dd184caf |
2262 | fi |
d9898ee8 |
2263 | fi |
2264 | |
2265 | # test whether we have cygpath |
2266 | if test -z "$CYGPATH_W"; then |
2267 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2268 | CYGPATH_W='cygpath -w' |
2269 | else |
2270 | CYGPATH_W=echo |
2271 | fi |
2272 | fi |
2273 | |
2274 | |
2275 | # Define the identity of the package. |
2276 | PACKAGE='courierlogger' |
2277 | VERSION='0.10' |
2278 | |
2279 | |
2280 | # Some tools Automake needs. |
2281 | |
2282 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2283 | |
2284 | |
2285 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2286 | |
2287 | |
2288 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2289 | |
2290 | |
2291 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2292 | |
2293 | |
2294 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2295 | |
dd184caf |
2296 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2297 | |
2298 | # Installed binaries are usually stripped using `strip' when the user |
2299 | # run `make install-strip'. However `strip' might not be the right |
2300 | # tool to use in cross-compilation environments, therefore Automake |
2301 | # will honor the `STRIP' environment variable to overrule this program. |
2302 | if test "$cross_compiling" != no; then |
2303 | if test -n "$ac_tool_prefix"; then |
2304 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2305 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
2306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2308 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2310 | else |
2311 | if test -n "$STRIP"; then |
2312 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2313 | else |
2314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2315 | for as_dir in $PATH |
2316 | do |
2317 | IFS=$as_save_IFS |
2318 | test -z "$as_dir" && as_dir=. |
2319 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2321 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2323 | break 2 |
2324 | fi |
2325 | done |
2326 | done |
dd184caf |
2327 | IFS=$as_save_IFS |
d9898ee8 |
2328 | |
2329 | fi |
2330 | fi |
2331 | STRIP=$ac_cv_prog_STRIP |
2332 | if test -n "$STRIP"; then |
dd184caf |
2333 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2334 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2335 | else |
dd184caf |
2336 | { echo "$as_me:$LINENO: result: no" >&5 |
2337 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2338 | fi |
2339 | |
dd184caf |
2340 | |
d9898ee8 |
2341 | fi |
2342 | if test -z "$ac_cv_prog_STRIP"; then |
2343 | ac_ct_STRIP=$STRIP |
2344 | # Extract the first word of "strip", so it can be a program name with args. |
2345 | set dummy strip; ac_word=$2 |
dd184caf |
2346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2348 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2350 | else |
2351 | if test -n "$ac_ct_STRIP"; then |
2352 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2353 | else |
2354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2355 | for as_dir in $PATH |
2356 | do |
2357 | IFS=$as_save_IFS |
2358 | test -z "$as_dir" && as_dir=. |
2359 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2361 | ac_cv_prog_ac_ct_STRIP="strip" |
2362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2363 | break 2 |
2364 | fi |
2365 | done |
2366 | done |
dd184caf |
2367 | IFS=$as_save_IFS |
d9898ee8 |
2368 | |
d9898ee8 |
2369 | fi |
2370 | fi |
2371 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2372 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
2373 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2374 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2375 | else |
dd184caf |
2376 | { echo "$as_me:$LINENO: result: no" >&5 |
2377 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2378 | fi |
2379 | |
dd184caf |
2380 | if test "x$ac_ct_STRIP" = x; then |
2381 | STRIP=":" |
2382 | else |
2383 | case $cross_compiling:$ac_tool_warned in |
2384 | yes:) |
2385 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2386 | whose name does not start with the host triplet. If you think this |
2387 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2388 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2389 | whose name does not start with the host triplet. If you think this |
2390 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2391 | ac_tool_warned=yes ;; |
2392 | esac |
2393 | STRIP=$ac_ct_STRIP |
2394 | fi |
d9898ee8 |
2395 | else |
2396 | STRIP="$ac_cv_prog_STRIP" |
2397 | fi |
2398 | |
2399 | fi |
dd184caf |
2400 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2401 | |
2402 | # We need awk for the "check" target. The system "awk" is bad on |
2403 | # some platforms. |
2404 | # Always define AMTAR for backward compatibility. |
2405 | |
2406 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2407 | |
2408 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2409 | |
2410 | |
2411 | |
2412 | |
2413 | |
dd184caf |
2414 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 |
2415 | |
2416 | |
2417 | ac_ext=c |
2418 | ac_cpp='$CPP $CPPFLAGS' |
2419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2422 | if test -n "$ac_tool_prefix"; then |
2423 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2424 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
dd184caf |
2425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2427 | if test "${ac_cv_prog_CC+set}" = set; then |
2428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2429 | else |
2430 | if test -n "$CC"; then |
2431 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2432 | else |
2433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2434 | for as_dir in $PATH |
2435 | do |
2436 | IFS=$as_save_IFS |
2437 | test -z "$as_dir" && as_dir=. |
2438 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2440 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2442 | break 2 |
2443 | fi |
2444 | done |
2445 | done |
dd184caf |
2446 | IFS=$as_save_IFS |
d9898ee8 |
2447 | |
2448 | fi |
2449 | fi |
2450 | CC=$ac_cv_prog_CC |
2451 | if test -n "$CC"; then |
dd184caf |
2452 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2453 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2454 | else |
dd184caf |
2455 | { echo "$as_me:$LINENO: result: no" >&5 |
2456 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2457 | fi |
2458 | |
dd184caf |
2459 | |
d9898ee8 |
2460 | fi |
2461 | if test -z "$ac_cv_prog_CC"; then |
2462 | ac_ct_CC=$CC |
2463 | # Extract the first word of "gcc", so it can be a program name with args. |
2464 | set dummy gcc; ac_word=$2 |
dd184caf |
2465 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2467 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2469 | else |
2470 | if test -n "$ac_ct_CC"; then |
2471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2472 | else |
2473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2474 | for as_dir in $PATH |
2475 | do |
2476 | IFS=$as_save_IFS |
2477 | test -z "$as_dir" && as_dir=. |
2478 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2480 | ac_cv_prog_ac_ct_CC="gcc" |
2481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2482 | break 2 |
2483 | fi |
2484 | done |
2485 | done |
dd184caf |
2486 | IFS=$as_save_IFS |
d9898ee8 |
2487 | |
2488 | fi |
2489 | fi |
2490 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2491 | if test -n "$ac_ct_CC"; then |
dd184caf |
2492 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2493 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2494 | else |
dd184caf |
2495 | { echo "$as_me:$LINENO: result: no" >&5 |
2496 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2497 | fi |
2498 | |
dd184caf |
2499 | if test "x$ac_ct_CC" = x; then |
2500 | CC="" |
2501 | else |
2502 | case $cross_compiling:$ac_tool_warned in |
2503 | yes:) |
2504 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2505 | whose name does not start with the host triplet. If you think this |
2506 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2507 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2508 | whose name does not start with the host triplet. If you think this |
2509 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2510 | ac_tool_warned=yes ;; |
2511 | esac |
2512 | CC=$ac_ct_CC |
2513 | fi |
d9898ee8 |
2514 | else |
2515 | CC="$ac_cv_prog_CC" |
2516 | fi |
2517 | |
2518 | if test -z "$CC"; then |
dd184caf |
2519 | if test -n "$ac_tool_prefix"; then |
2520 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2521 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dd184caf |
2522 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2524 | if test "${ac_cv_prog_CC+set}" = set; then |
2525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2526 | else |
2527 | if test -n "$CC"; then |
2528 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2529 | else |
2530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2531 | for as_dir in $PATH |
2532 | do |
2533 | IFS=$as_save_IFS |
2534 | test -z "$as_dir" && as_dir=. |
2535 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2537 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2539 | break 2 |
2540 | fi |
2541 | done |
2542 | done |
dd184caf |
2543 | IFS=$as_save_IFS |
d9898ee8 |
2544 | |
2545 | fi |
2546 | fi |
2547 | CC=$ac_cv_prog_CC |
2548 | if test -n "$CC"; then |
dd184caf |
2549 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2550 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2551 | else |
dd184caf |
2552 | { echo "$as_me:$LINENO: result: no" >&5 |
2553 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2554 | fi |
2555 | |
d9898ee8 |
2556 | |
dd184caf |
2557 | fi |
d9898ee8 |
2558 | fi |
2559 | if test -z "$CC"; then |
2560 | # Extract the first word of "cc", so it can be a program name with args. |
2561 | set dummy cc; ac_word=$2 |
dd184caf |
2562 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2564 | if test "${ac_cv_prog_CC+set}" = set; then |
2565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2566 | else |
2567 | if test -n "$CC"; then |
2568 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2569 | else |
2570 | ac_prog_rejected=no |
2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2572 | for as_dir in $PATH |
2573 | do |
2574 | IFS=$as_save_IFS |
2575 | test -z "$as_dir" && as_dir=. |
2576 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2578 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2579 | ac_prog_rejected=yes |
2580 | continue |
2581 | fi |
2582 | ac_cv_prog_CC="cc" |
2583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2584 | break 2 |
2585 | fi |
2586 | done |
2587 | done |
dd184caf |
2588 | IFS=$as_save_IFS |
d9898ee8 |
2589 | |
2590 | if test $ac_prog_rejected = yes; then |
2591 | # We found a bogon in the path, so make sure we never use it. |
2592 | set dummy $ac_cv_prog_CC |
2593 | shift |
2594 | if test $# != 0; then |
2595 | # We chose a different compiler from the bogus one. |
2596 | # However, it has the same basename, so the bogon will be chosen |
2597 | # first if we set CC to just the basename; use the full file name. |
2598 | shift |
2599 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2600 | fi |
2601 | fi |
2602 | fi |
2603 | fi |
2604 | CC=$ac_cv_prog_CC |
2605 | if test -n "$CC"; then |
dd184caf |
2606 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2607 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2608 | else |
dd184caf |
2609 | { echo "$as_me:$LINENO: result: no" >&5 |
2610 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2611 | fi |
2612 | |
dd184caf |
2613 | |
d9898ee8 |
2614 | fi |
2615 | if test -z "$CC"; then |
2616 | if test -n "$ac_tool_prefix"; then |
dd184caf |
2617 | for ac_prog in cl.exe |
d9898ee8 |
2618 | do |
2619 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2620 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
2621 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2623 | if test "${ac_cv_prog_CC+set}" = set; then |
2624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2625 | else |
2626 | if test -n "$CC"; then |
2627 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2628 | else |
2629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2630 | for as_dir in $PATH |
2631 | do |
2632 | IFS=$as_save_IFS |
2633 | test -z "$as_dir" && as_dir=. |
2634 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2636 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2638 | break 2 |
2639 | fi |
2640 | done |
2641 | done |
dd184caf |
2642 | IFS=$as_save_IFS |
d9898ee8 |
2643 | |
2644 | fi |
2645 | fi |
2646 | CC=$ac_cv_prog_CC |
2647 | if test -n "$CC"; then |
dd184caf |
2648 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2649 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2650 | else |
dd184caf |
2651 | { echo "$as_me:$LINENO: result: no" >&5 |
2652 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2653 | fi |
2654 | |
dd184caf |
2655 | |
d9898ee8 |
2656 | test -n "$CC" && break |
2657 | done |
2658 | fi |
2659 | if test -z "$CC"; then |
2660 | ac_ct_CC=$CC |
dd184caf |
2661 | for ac_prog in cl.exe |
d9898ee8 |
2662 | do |
2663 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2664 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2665 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2667 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2669 | else |
2670 | if test -n "$ac_ct_CC"; then |
2671 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2672 | else |
2673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2674 | for as_dir in $PATH |
2675 | do |
2676 | IFS=$as_save_IFS |
2677 | test -z "$as_dir" && as_dir=. |
2678 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2680 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2682 | break 2 |
2683 | fi |
2684 | done |
2685 | done |
dd184caf |
2686 | IFS=$as_save_IFS |
d9898ee8 |
2687 | |
2688 | fi |
2689 | fi |
2690 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2691 | if test -n "$ac_ct_CC"; then |
dd184caf |
2692 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2693 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2694 | else |
dd184caf |
2695 | { echo "$as_me:$LINENO: result: no" >&5 |
2696 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2697 | fi |
2698 | |
dd184caf |
2699 | |
d9898ee8 |
2700 | test -n "$ac_ct_CC" && break |
2701 | done |
2702 | |
dd184caf |
2703 | if test "x$ac_ct_CC" = x; then |
2704 | CC="" |
2705 | else |
2706 | case $cross_compiling:$ac_tool_warned in |
2707 | yes:) |
2708 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2709 | whose name does not start with the host triplet. If you think this |
2710 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2711 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2712 | whose name does not start with the host triplet. If you think this |
2713 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2714 | ac_tool_warned=yes ;; |
2715 | esac |
2716 | CC=$ac_ct_CC |
2717 | fi |
d9898ee8 |
2718 | fi |
2719 | |
2720 | fi |
2721 | |
2722 | |
2723 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2724 | See \`config.log' for more details." >&5 |
2725 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2726 | See \`config.log' for more details." >&2;} |
2727 | { (exit 1); exit 1; }; } |
2728 | |
2729 | # Provide some information about the compiler. |
dd184caf |
2730 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2731 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
2732 | { (ac_try="$ac_compiler --version >&5" |
2733 | case "(($ac_try" in |
2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2735 | *) ac_try_echo=$ac_try;; |
2736 | esac |
2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2738 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2739 | ac_status=$? |
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2741 | (exit $ac_status); } |
dd184caf |
2742 | { (ac_try="$ac_compiler -v >&5" |
2743 | case "(($ac_try" in |
2744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2745 | *) ac_try_echo=$ac_try;; |
2746 | esac |
2747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2748 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2749 | ac_status=$? |
2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2751 | (exit $ac_status); } |
dd184caf |
2752 | { (ac_try="$ac_compiler -V >&5" |
2753 | case "(($ac_try" in |
2754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2755 | *) ac_try_echo=$ac_try;; |
2756 | esac |
2757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2758 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2759 | ac_status=$? |
2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2761 | (exit $ac_status); } |
2762 | |
2763 | cat >conftest.$ac_ext <<_ACEOF |
2764 | /* confdefs.h. */ |
2765 | _ACEOF |
2766 | cat confdefs.h >>conftest.$ac_ext |
2767 | cat >>conftest.$ac_ext <<_ACEOF |
2768 | /* end confdefs.h. */ |
2769 | |
2770 | int |
2771 | main () |
2772 | { |
2773 | |
2774 | ; |
2775 | return 0; |
2776 | } |
2777 | _ACEOF |
2778 | ac_clean_files_save=$ac_clean_files |
2779 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2780 | # Try to create an executable without -o first, disregard a.out. |
2781 | # It will help us diagnose broken compilers, and finding out an intuition |
2782 | # of exeext. |
dd184caf |
2783 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2784 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2785 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dd184caf |
2786 | # |
2787 | # List of possible output files, starting from the most likely. |
2788 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2789 | # only as a last resort. b.out is created by i960 compilers. |
2790 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2791 | # |
2792 | # The IRIX 6 linker writes into existing files which may not be |
2793 | # executable, retaining their permissions. Remove them first so a |
2794 | # subsequent execution test works. |
2795 | ac_rmfiles= |
2796 | for ac_file in $ac_files |
2797 | do |
2798 | case $ac_file in |
2799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2800 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2801 | esac |
2802 | done |
2803 | rm -f $ac_rmfiles |
2804 | |
2805 | if { (ac_try="$ac_link_default" |
2806 | case "(($ac_try" in |
2807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2808 | *) ac_try_echo=$ac_try;; |
2809 | esac |
2810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2811 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2812 | ac_status=$? |
2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2814 | (exit $ac_status); }; then |
dd184caf |
2815 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2816 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2817 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2818 | # so that the user can short-circuit this test for compilers unknown to |
2819 | # Autoconf. |
2820 | for ac_file in $ac_files '' |
d9898ee8 |
2821 | do |
2822 | test -f "$ac_file" || continue |
2823 | case $ac_file in |
dd184caf |
2824 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2825 | ;; |
2826 | [ab].out ) |
2827 | # We found the default executable, but exeext='' is most |
2828 | # certainly right. |
2829 | break;; |
2830 | *.* ) |
dd184caf |
2831 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2832 | then :; else |
2833 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2834 | fi |
2835 | # We set ac_cv_exeext here because the later test for it is not |
2836 | # safe: cross compilers may not add the suffix if given an `-o' |
2837 | # argument, so we may need to know it at that point already. |
2838 | # Even if this section looks crufty: it has the advantage of |
2839 | # actually working. |
d9898ee8 |
2840 | break;; |
2841 | * ) |
2842 | break;; |
2843 | esac |
2844 | done |
dd184caf |
2845 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2846 | |
d9898ee8 |
2847 | else |
dd184caf |
2848 | ac_file='' |
2849 | fi |
2850 | |
2851 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2852 | echo "${ECHO_T}$ac_file" >&6; } |
2853 | if test -z "$ac_file"; then |
d9898ee8 |
2854 | echo "$as_me: failed program was:" >&5 |
2855 | sed 's/^/| /' conftest.$ac_ext >&5 |
2856 | |
2857 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2858 | See \`config.log' for more details." >&5 |
2859 | echo "$as_me: error: C compiler cannot create executables |
2860 | See \`config.log' for more details." >&2;} |
2861 | { (exit 77); exit 77; }; } |
2862 | fi |
2863 | |
2864 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2865 | |
dd184caf |
2866 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2867 | # the compiler is broken, or we cross compile. |
dd184caf |
2868 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2869 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2870 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2871 | # If not cross compiling, check that we can run a simple program. |
2872 | if test "$cross_compiling" != yes; then |
2873 | if { ac_try='./$ac_file' |
dd184caf |
2874 | { (case "(($ac_try" in |
2875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2876 | *) ac_try_echo=$ac_try;; |
2877 | esac |
2878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2879 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2880 | ac_status=$? |
2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2882 | (exit $ac_status); }; }; then |
2883 | cross_compiling=no |
2884 | else |
2885 | if test "$cross_compiling" = maybe; then |
2886 | cross_compiling=yes |
2887 | else |
2888 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2889 | If you meant to cross compile, use \`--host'. |
2890 | See \`config.log' for more details." >&5 |
2891 | echo "$as_me: error: cannot run C compiled programs. |
2892 | If you meant to cross compile, use \`--host'. |
2893 | See \`config.log' for more details." >&2;} |
2894 | { (exit 1); exit 1; }; } |
2895 | fi |
2896 | fi |
2897 | fi |
dd184caf |
2898 | { echo "$as_me:$LINENO: result: yes" >&5 |
2899 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2900 | |
2901 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2902 | ac_clean_files=$ac_clean_files_save |
dd184caf |
2903 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2904 | # the compiler is broken, or we cross compile. |
dd184caf |
2905 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2906 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2907 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2908 | echo "${ECHO_T}$cross_compiling" >&6; } |
2909 | |
2910 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2911 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2912 | if { (ac_try="$ac_link" |
2913 | case "(($ac_try" in |
2914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2915 | *) ac_try_echo=$ac_try;; |
2916 | esac |
2917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2918 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2919 | ac_status=$? |
2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2921 | (exit $ac_status); }; then |
2922 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2923 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2924 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2925 | # `rm'. |
2926 | for ac_file in conftest.exe conftest conftest.*; do |
2927 | test -f "$ac_file" || continue |
2928 | case $ac_file in |
dd184caf |
2929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2930 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2931 | break;; |
2932 | * ) break;; |
2933 | esac |
2934 | done |
2935 | else |
2936 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2937 | See \`config.log' for more details." >&5 |
2938 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2939 | See \`config.log' for more details." >&2;} |
2940 | { (exit 1); exit 1; }; } |
2941 | fi |
2942 | |
2943 | rm -f conftest$ac_cv_exeext |
dd184caf |
2944 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2945 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
2946 | |
2947 | rm -f conftest.$ac_ext |
2948 | EXEEXT=$ac_cv_exeext |
2949 | ac_exeext=$EXEEXT |
dd184caf |
2950 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2951 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
2952 | if test "${ac_cv_objext+set}" = set; then |
2953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2954 | else |
2955 | cat >conftest.$ac_ext <<_ACEOF |
2956 | /* confdefs.h. */ |
2957 | _ACEOF |
2958 | cat confdefs.h >>conftest.$ac_ext |
2959 | cat >>conftest.$ac_ext <<_ACEOF |
2960 | /* end confdefs.h. */ |
2961 | |
2962 | int |
2963 | main () |
2964 | { |
2965 | |
2966 | ; |
2967 | return 0; |
2968 | } |
2969 | _ACEOF |
2970 | rm -f conftest.o conftest.obj |
dd184caf |
2971 | if { (ac_try="$ac_compile" |
2972 | case "(($ac_try" in |
2973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2974 | *) ac_try_echo=$ac_try;; |
2975 | esac |
2976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2977 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
2978 | ac_status=$? |
2979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2980 | (exit $ac_status); }; then |
dd184caf |
2981 | for ac_file in conftest.o conftest.obj conftest.*; do |
2982 | test -f "$ac_file" || continue; |
d9898ee8 |
2983 | case $ac_file in |
dd184caf |
2984 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
2985 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2986 | break;; |
2987 | esac |
2988 | done |
2989 | else |
2990 | echo "$as_me: failed program was:" >&5 |
2991 | sed 's/^/| /' conftest.$ac_ext >&5 |
2992 | |
2993 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2994 | See \`config.log' for more details." >&5 |
2995 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2996 | See \`config.log' for more details." >&2;} |
2997 | { (exit 1); exit 1; }; } |
2998 | fi |
2999 | |
3000 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3001 | fi |
dd184caf |
3002 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3003 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3004 | OBJEXT=$ac_cv_objext |
3005 | ac_objext=$OBJEXT |
dd184caf |
3006 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3007 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3008 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3010 | else |
3011 | cat >conftest.$ac_ext <<_ACEOF |
3012 | /* confdefs.h. */ |
3013 | _ACEOF |
3014 | cat confdefs.h >>conftest.$ac_ext |
3015 | cat >>conftest.$ac_ext <<_ACEOF |
3016 | /* end confdefs.h. */ |
3017 | |
3018 | int |
3019 | main () |
3020 | { |
3021 | #ifndef __GNUC__ |
3022 | choke me |
3023 | #endif |
3024 | |
3025 | ; |
3026 | return 0; |
3027 | } |
3028 | _ACEOF |
3029 | rm -f conftest.$ac_objext |
dd184caf |
3030 | if { (ac_try="$ac_compile" |
3031 | case "(($ac_try" in |
3032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3033 | *) ac_try_echo=$ac_try;; |
3034 | esac |
3035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3036 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3037 | ac_status=$? |
3038 | grep -v '^ *+' conftest.er1 >conftest.err |
3039 | rm -f conftest.er1 |
3040 | cat conftest.err >&5 |
3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3042 | (exit $ac_status); } && { |
3043 | test -z "$ac_c_werror_flag" || |
3044 | test ! -s conftest.err |
3045 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3046 | ac_compiler_gnu=yes |
3047 | else |
3048 | echo "$as_me: failed program was:" >&5 |
3049 | sed 's/^/| /' conftest.$ac_ext >&5 |
3050 | |
dd184caf |
3051 | ac_compiler_gnu=no |
d9898ee8 |
3052 | fi |
dd184caf |
3053 | |
3054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3055 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3056 | |
3057 | fi |
dd184caf |
3058 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3059 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3060 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3061 | ac_test_CFLAGS=${CFLAGS+set} |
3062 | ac_save_CFLAGS=$CFLAGS |
dd184caf |
3063 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3064 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3065 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3067 | else |
dd184caf |
3068 | ac_save_c_werror_flag=$ac_c_werror_flag |
3069 | ac_c_werror_flag=yes |
3070 | ac_cv_prog_cc_g=no |
3071 | CFLAGS="-g" |
3072 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3073 | /* confdefs.h. */ |
3074 | _ACEOF |
3075 | cat confdefs.h >>conftest.$ac_ext |
3076 | cat >>conftest.$ac_ext <<_ACEOF |
3077 | /* end confdefs.h. */ |
3078 | |
3079 | int |
3080 | main () |
3081 | { |
3082 | |
3083 | ; |
3084 | return 0; |
3085 | } |
3086 | _ACEOF |
3087 | rm -f conftest.$ac_objext |
dd184caf |
3088 | if { (ac_try="$ac_compile" |
3089 | case "(($ac_try" in |
3090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3091 | *) ac_try_echo=$ac_try;; |
3092 | esac |
3093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3094 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3095 | ac_status=$? |
3096 | grep -v '^ *+' conftest.er1 >conftest.err |
3097 | rm -f conftest.er1 |
3098 | cat conftest.err >&5 |
3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3100 | (exit $ac_status); } && { |
3101 | test -z "$ac_c_werror_flag" || |
3102 | test ! -s conftest.err |
3103 | } && test -s conftest.$ac_objext; then |
3104 | ac_cv_prog_cc_g=yes |
3105 | else |
3106 | echo "$as_me: failed program was:" >&5 |
3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
3108 | |
3109 | CFLAGS="" |
3110 | cat >conftest.$ac_ext <<_ACEOF |
3111 | /* confdefs.h. */ |
3112 | _ACEOF |
3113 | cat confdefs.h >>conftest.$ac_ext |
3114 | cat >>conftest.$ac_ext <<_ACEOF |
3115 | /* end confdefs.h. */ |
3116 | |
3117 | int |
3118 | main () |
3119 | { |
3120 | |
3121 | ; |
3122 | return 0; |
3123 | } |
3124 | _ACEOF |
3125 | rm -f conftest.$ac_objext |
3126 | if { (ac_try="$ac_compile" |
3127 | case "(($ac_try" in |
3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3129 | *) ac_try_echo=$ac_try;; |
3130 | esac |
3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3132 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3133 | ac_status=$? |
dd184caf |
3134 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | rm -f conftest.er1 |
3136 | cat conftest.err >&5 |
d9898ee8 |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3138 | (exit $ac_status); } && { |
3139 | test -z "$ac_c_werror_flag" || |
3140 | test ! -s conftest.err |
3141 | } && test -s conftest.$ac_objext; then |
3142 | : |
3143 | else |
3144 | echo "$as_me: failed program was:" >&5 |
3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
3146 | |
3147 | ac_c_werror_flag=$ac_save_c_werror_flag |
3148 | CFLAGS="-g" |
3149 | cat >conftest.$ac_ext <<_ACEOF |
3150 | /* confdefs.h. */ |
3151 | _ACEOF |
3152 | cat confdefs.h >>conftest.$ac_ext |
3153 | cat >>conftest.$ac_ext <<_ACEOF |
3154 | /* end confdefs.h. */ |
3155 | |
3156 | int |
3157 | main () |
3158 | { |
3159 | |
3160 | ; |
3161 | return 0; |
3162 | } |
3163 | _ACEOF |
3164 | rm -f conftest.$ac_objext |
3165 | if { (ac_try="$ac_compile" |
3166 | case "(($ac_try" in |
3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3168 | *) ac_try_echo=$ac_try;; |
3169 | esac |
3170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3171 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3172 | ac_status=$? |
dd184caf |
3173 | grep -v '^ *+' conftest.er1 >conftest.err |
3174 | rm -f conftest.er1 |
3175 | cat conftest.err >&5 |
d9898ee8 |
3176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3177 | (exit $ac_status); } && { |
3178 | test -z "$ac_c_werror_flag" || |
3179 | test ! -s conftest.err |
3180 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3181 | ac_cv_prog_cc_g=yes |
3182 | else |
3183 | echo "$as_me: failed program was:" >&5 |
3184 | sed 's/^/| /' conftest.$ac_ext >&5 |
3185 | |
dd184caf |
3186 | |
3187 | fi |
3188 | |
3189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3190 | fi |
3191 | |
3192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3193 | fi |
dd184caf |
3194 | |
3195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3196 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3197 | fi |
dd184caf |
3198 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3199 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3200 | if test "$ac_test_CFLAGS" = set; then |
3201 | CFLAGS=$ac_save_CFLAGS |
3202 | elif test $ac_cv_prog_cc_g = yes; then |
3203 | if test "$GCC" = yes; then |
3204 | CFLAGS="-g -O2" |
3205 | else |
3206 | CFLAGS="-g" |
3207 | fi |
3208 | else |
3209 | if test "$GCC" = yes; then |
3210 | CFLAGS="-O2" |
3211 | else |
3212 | CFLAGS= |
3213 | fi |
3214 | fi |
dd184caf |
3215 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3216 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3217 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3219 | else |
dd184caf |
3220 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3221 | ac_save_CC=$CC |
3222 | cat >conftest.$ac_ext <<_ACEOF |
3223 | /* confdefs.h. */ |
3224 | _ACEOF |
3225 | cat confdefs.h >>conftest.$ac_ext |
3226 | cat >>conftest.$ac_ext <<_ACEOF |
3227 | /* end confdefs.h. */ |
3228 | #include <stdarg.h> |
3229 | #include <stdio.h> |
3230 | #include <sys/types.h> |
3231 | #include <sys/stat.h> |
3232 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3233 | struct buf { int x; }; |
3234 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3235 | static char *e (p, i) |
3236 | char **p; |
3237 | int i; |
3238 | { |
3239 | return p[i]; |
3240 | } |
3241 | static char *f (char * (*g) (char **, int), char **p, ...) |
3242 | { |
3243 | char *s; |
3244 | va_list v; |
3245 | va_start (v,p); |
3246 | s = g (p, va_arg (v,int)); |
3247 | va_end (v); |
3248 | return s; |
3249 | } |
3250 | |
3251 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3252 | function prototypes and stuff, but not '\xHH' hex character constants. |
3253 | These don't provoke an error unfortunately, instead are silently treated |
dd184caf |
3254 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3255 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3256 | array size at least. It's necessary to write '\x00'==0 to get something |
dd184caf |
3257 | that's true only with -std. */ |
d9898ee8 |
3258 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3259 | |
dd184caf |
3260 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3261 | inside strings and character constants. */ |
3262 | #define FOO(x) 'x' |
3263 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3264 | |
d9898ee8 |
3265 | int test (int i, double x); |
3266 | struct s1 {int (*f) (int a);}; |
3267 | struct s2 {int (*f) (double a);}; |
3268 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3269 | int argc; |
3270 | char **argv; |
3271 | int |
3272 | main () |
3273 | { |
3274 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3275 | ; |
3276 | return 0; |
3277 | } |
3278 | _ACEOF |
dd184caf |
3279 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3280 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3281 | do |
3282 | CC="$ac_save_CC $ac_arg" |
3283 | rm -f conftest.$ac_objext |
dd184caf |
3284 | if { (ac_try="$ac_compile" |
3285 | case "(($ac_try" in |
3286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3287 | *) ac_try_echo=$ac_try;; |
3288 | esac |
3289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3290 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3291 | ac_status=$? |
3292 | grep -v '^ *+' conftest.er1 >conftest.err |
3293 | rm -f conftest.er1 |
3294 | cat conftest.err >&5 |
3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3296 | (exit $ac_status); } && { |
3297 | test -z "$ac_c_werror_flag" || |
3298 | test ! -s conftest.err |
3299 | } && test -s conftest.$ac_objext; then |
3300 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3301 | else |
3302 | echo "$as_me: failed program was:" >&5 |
3303 | sed 's/^/| /' conftest.$ac_ext >&5 |
3304 | |
dd184caf |
3305 | |
d9898ee8 |
3306 | fi |
dd184caf |
3307 | |
3308 | rm -f core conftest.err conftest.$ac_objext |
3309 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3310 | done |
dd184caf |
3311 | rm -f conftest.$ac_ext |
d9898ee8 |
3312 | CC=$ac_save_CC |
3313 | |
3314 | fi |
dd184caf |
3315 | # AC_CACHE_VAL |
3316 | case "x$ac_cv_prog_cc_c89" in |
3317 | x) |
3318 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3319 | echo "${ECHO_T}none needed" >&6; } ;; |
3320 | xno) |
3321 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3322 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3323 | *) |
dd184caf |
3324 | CC="$CC $ac_cv_prog_cc_c89" |
3325 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3326 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3327 | esac |
3328 | |
d9898ee8 |
3329 | |
d9898ee8 |
3330 | ac_ext=c |
3331 | ac_cpp='$CPP $CPPFLAGS' |
3332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3335 | DEPDIR="${am__leading_dot}deps" |
3336 | |
dd184caf |
3337 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3338 | |
3339 | |
3340 | am_make=${MAKE-make} |
3341 | cat > confinc << 'END' |
3342 | am__doit: |
3343 | @echo done |
3344 | .PHONY: am__doit |
3345 | END |
3346 | # If we don't find an include directive, just comment out the code. |
dd184caf |
3347 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3348 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3349 | am__include="#" |
3350 | am__quote= |
3351 | _am_result=none |
3352 | # First try GNU make style include. |
3353 | echo "include confinc" > confmf |
3354 | # We grep out `Entering directory' and `Leaving directory' |
3355 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3356 | # In particular we don't look at `^make:' because GNU make might |
3357 | # be invoked under some other name (usually "gmake"), in which |
3358 | # case it prints its new name instead of `make'. |
3359 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3360 | am__include=include |
3361 | am__quote= |
3362 | _am_result=GNU |
3363 | fi |
3364 | # Now try BSD make style include. |
3365 | if test "$am__include" = "#"; then |
3366 | echo '.include "confinc"' > confmf |
3367 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3368 | am__include=.include |
3369 | am__quote="\"" |
3370 | _am_result=BSD |
3371 | fi |
3372 | fi |
3373 | |
3374 | |
dd184caf |
3375 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3376 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3377 | rm -f confinc confmf |
3378 | |
dd184caf |
3379 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3380 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf |
3381 | enableval=$enable_dependency_tracking; |
3382 | fi |
d9898ee8 |
3383 | |
d9898ee8 |
3384 | if test "x$enable_dependency_tracking" != xno; then |
3385 | am_depcomp="$ac_aux_dir/depcomp" |
3386 | AMDEPBACKSLASH='\' |
3387 | fi |
dd184caf |
3388 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3389 | AMDEP_TRUE= |
3390 | AMDEP_FALSE='#' |
3391 | else |
3392 | AMDEP_TRUE='#' |
3393 | AMDEP_FALSE= |
3394 | fi |
3395 | |
3396 | |
3397 | |
d9898ee8 |
3398 | depcc="$CC" am_compiler_list= |
3399 | |
dd184caf |
3400 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3401 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3402 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3404 | else |
3405 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3406 | # We make a subdir and do the tests there. Otherwise we can end up |
3407 | # making bogus files that we don't know about and never remove. For |
3408 | # instance it was reported that on HP-UX the gcc test will end up |
3409 | # making a dummy file named `D' -- because `-MD' means `put the output |
3410 | # in D'. |
3411 | mkdir conftest.dir |
3412 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3413 | # using a relative directory. |
3414 | cp "$am_depcomp" conftest.dir |
3415 | cd conftest.dir |
3416 | # We will build objects and dependencies in a subdirectory because |
3417 | # it helps to detect inapplicable dependency modes. For instance |
3418 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3419 | # side effect of compilation, but ICC will put the dependencies in |
3420 | # the current directory while Tru64 will put them in the object |
3421 | # directory. |
3422 | mkdir sub |
3423 | |
3424 | am_cv_CC_dependencies_compiler_type=none |
3425 | if test "$am_compiler_list" = ""; then |
3426 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3427 | fi |
3428 | for depmode in $am_compiler_list; do |
3429 | # Setup a source with many dependencies, because some compilers |
3430 | # like to wrap large dependency lists on column 80 (with \), and |
3431 | # we should not choose a depcomp mode which is confused by this. |
3432 | # |
3433 | # We need to recreate these files for each test, as the compiler may |
3434 | # overwrite some of them when testing with obscure command lines. |
3435 | # This happens at least with the AIX C compiler. |
3436 | : > sub/conftest.c |
3437 | for i in 1 2 3 4 5 6; do |
3438 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3439 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3440 | # Solaris 8's {/usr,}/bin/sh. |
3441 | touch sub/conftst$i.h |
3442 | done |
3443 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3444 | |
3445 | case $depmode in |
3446 | nosideeffect) |
3447 | # after this tag, mechanisms are not by side-effect, so they'll |
3448 | # only be used when explicitly requested |
3449 | if test "x$enable_dependency_tracking" = xyes; then |
3450 | continue |
3451 | else |
3452 | break |
3453 | fi |
3454 | ;; |
3455 | none) break ;; |
3456 | esac |
3457 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3458 | # mode. It turns out that the SunPro C++ compiler does not properly |
3459 | # handle `-M -o', and we need to detect this. |
3460 | if depmode=$depmode \ |
3461 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3462 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3463 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3464 | >/dev/null 2>conftest.err && |
dd184caf |
3465 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3466 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3467 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3468 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3469 | # icc doesn't choke on unknown options, it will just issue warnings |
3470 | # or remarks (even with -Werror). So we grep stderr for any message |
3471 | # that says an option was ignored or not supported. |
3472 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3473 | # icc: Command line warning: ignoring option '-M'; no argument required |
3474 | # The diagnosis changed in icc 8.0: |
3475 | # icc: Command line remark: option '-MP' not supported |
3476 | if (grep 'ignoring option' conftest.err || |
3477 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3478 | am_cv_CC_dependencies_compiler_type=$depmode |
3479 | break |
3480 | fi |
3481 | fi |
3482 | done |
3483 | |
3484 | cd .. |
3485 | rm -rf conftest.dir |
3486 | else |
3487 | am_cv_CC_dependencies_compiler_type=none |
3488 | fi |
3489 | |
3490 | fi |
dd184caf |
3491 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3492 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3493 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3494 | |
dd184caf |
3495 | if |
d9898ee8 |
3496 | test "x$enable_dependency_tracking" != xno \ |
3497 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3498 | am__fastdepCC_TRUE= |
3499 | am__fastdepCC_FALSE='#' |
3500 | else |
3501 | am__fastdepCC_TRUE='#' |
3502 | am__fastdepCC_FALSE= |
3503 | fi |
3504 | |
3505 | |
3506 | # Find a good install program. We prefer a C program (faster), |
3507 | # so one script is as good as another. But avoid the broken or |
3508 | # incompatible versions: |
3509 | # SysV /etc/install, /usr/sbin/install |
3510 | # SunOS /usr/etc/install |
3511 | # IRIX /sbin/install |
3512 | # AIX /bin/install |
3513 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3514 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3515 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3516 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3517 | # OS/2's system install, which has a completely different semantic |
3518 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
3519 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3520 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
3521 | if test -z "$INSTALL"; then |
3522 | if test "${ac_cv_path_install+set}" = set; then |
3523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3524 | else |
3525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3526 | for as_dir in $PATH |
3527 | do |
3528 | IFS=$as_save_IFS |
3529 | test -z "$as_dir" && as_dir=. |
3530 | # Account for people who put trailing slashes in PATH elements. |
3531 | case $as_dir/ in |
3532 | ./ | .// | /cC/* | \ |
3533 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3534 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3535 | /usr/ucb/* ) ;; |
3536 | *) |
3537 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3538 | # Don't use installbsd from OSF since it installs stuff as root |
3539 | # by default. |
3540 | for ac_prog in ginstall scoinst install; do |
3541 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
3542 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3543 | if test $ac_prog = install && |
3544 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3545 | # AIX install. It has an incompatible calling convention. |
3546 | : |
3547 | elif test $ac_prog = install && |
3548 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3549 | # program-specific install script used by HP pwplus--don't use. |
3550 | : |
3551 | else |
3552 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3553 | break 3 |
3554 | fi |
3555 | fi |
3556 | done |
3557 | done |
3558 | ;; |
3559 | esac |
3560 | done |
dd184caf |
3561 | IFS=$as_save_IFS |
d9898ee8 |
3562 | |
3563 | |
3564 | fi |
3565 | if test "${ac_cv_path_install+set}" = set; then |
3566 | INSTALL=$ac_cv_path_install |
3567 | else |
dd184caf |
3568 | # As a last resort, use the slow shell script. Don't cache a |
3569 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
3570 | # break other packages using the cache if that directory is |
dd184caf |
3571 | # removed, or if the value is a relative name. |
d9898ee8 |
3572 | INSTALL=$ac_install_sh |
3573 | fi |
3574 | fi |
dd184caf |
3575 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3576 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
3577 | |
3578 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3579 | # It thinks the first close brace ends the variable substitution. |
3580 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3581 | |
3582 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3583 | |
3584 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3585 | |
dd184caf |
3586 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3587 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
3588 | LN_S=$as_ln_s |
3589 | if test "$LN_S" = "ln -s"; then |
dd184caf |
3590 | { echo "$as_me:$LINENO: result: yes" >&5 |
3591 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3592 | else |
dd184caf |
3593 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3594 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
3595 | fi |
3596 | |
dd184caf |
3597 | # Check whether --enable-shared was given. |
d9898ee8 |
3598 | if test "${enable_shared+set}" = set; then |
dd184caf |
3599 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
3600 | case $enableval in |
3601 | yes) enable_shared=yes ;; |
3602 | no) enable_shared=no ;; |
3603 | *) |
3604 | enable_shared=no |
3605 | # Look at the argument we got. We use all the common list separators. |
3606 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3607 | for pkg in $enableval; do |
3608 | IFS="$lt_save_ifs" |
3609 | if test "X$pkg" = "X$p"; then |
3610 | enable_shared=yes |
3611 | fi |
3612 | done |
3613 | IFS="$lt_save_ifs" |
3614 | ;; |
3615 | esac |
3616 | else |
3617 | enable_shared=yes |
dd184caf |
3618 | fi |
3619 | |
d9898ee8 |
3620 | |
dd184caf |
3621 | # Check whether --enable-static was given. |
d9898ee8 |
3622 | if test "${enable_static+set}" = set; then |
dd184caf |
3623 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
3624 | case $enableval in |
3625 | yes) enable_static=yes ;; |
3626 | no) enable_static=no ;; |
3627 | *) |
3628 | enable_static=no |
3629 | # Look at the argument we got. We use all the common list separators. |
3630 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3631 | for pkg in $enableval; do |
3632 | IFS="$lt_save_ifs" |
3633 | if test "X$pkg" = "X$p"; then |
3634 | enable_static=yes |
3635 | fi |
3636 | done |
3637 | IFS="$lt_save_ifs" |
3638 | ;; |
3639 | esac |
3640 | else |
3641 | enable_static=yes |
dd184caf |
3642 | fi |
3643 | |
d9898ee8 |
3644 | |
dd184caf |
3645 | # Check whether --enable-fast-install was given. |
d9898ee8 |
3646 | if test "${enable_fast_install+set}" = set; then |
dd184caf |
3647 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
3648 | case $enableval in |
3649 | yes) enable_fast_install=yes ;; |
3650 | no) enable_fast_install=no ;; |
3651 | *) |
3652 | enable_fast_install=no |
3653 | # Look at the argument we got. We use all the common list separators. |
3654 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3655 | for pkg in $enableval; do |
3656 | IFS="$lt_save_ifs" |
3657 | if test "X$pkg" = "X$p"; then |
3658 | enable_fast_install=yes |
3659 | fi |
3660 | done |
3661 | IFS="$lt_save_ifs" |
3662 | ;; |
3663 | esac |
3664 | else |
3665 | enable_fast_install=yes |
dd184caf |
3666 | fi |
3667 | |
d9898ee8 |
3668 | |
3669 | # Make sure we can run config.sub. |
dd184caf |
3670 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3671 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3672 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
3673 | { (exit 1); exit 1; }; } |
3674 | |
dd184caf |
3675 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3676 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
3677 | if test "${ac_cv_build+set}" = set; then |
3678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3679 | else |
dd184caf |
3680 | ac_build_alias=$build_alias |
3681 | test "x$ac_build_alias" = x && |
3682 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3683 | test "x$ac_build_alias" = x && |
d9898ee8 |
3684 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3685 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3686 | { (exit 1); exit 1; }; } |
dd184caf |
3687 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3688 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3689 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
3690 | { (exit 1); exit 1; }; } |
3691 | |
3692 | fi |
dd184caf |
3693 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3694 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3695 | case $ac_cv_build in |
3696 | *-*-*) ;; |
3697 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3698 | echo "$as_me: error: invalid value of canonical build" >&2;} |
3699 | { (exit 1); exit 1; }; };; |
3700 | esac |
d9898ee8 |
3701 | build=$ac_cv_build |
dd184caf |
3702 | ac_save_IFS=$IFS; IFS='-' |
3703 | set x $ac_cv_build |
3704 | shift |
3705 | build_cpu=$1 |
3706 | build_vendor=$2 |
3707 | shift; shift |
3708 | # Remember, the first character of IFS is used to create $*, |
3709 | # except with old shells: |
3710 | build_os=$* |
3711 | IFS=$ac_save_IFS |
3712 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3713 | |
3714 | |
3715 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3716 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
3717 | if test "${ac_cv_host+set}" = set; then |
3718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3719 | else |
dd184caf |
3720 | if test "x$host_alias" = x; then |
3721 | ac_cv_host=$ac_cv_build |
3722 | else |
3723 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3724 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3725 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
3726 | { (exit 1); exit 1; }; } |
dd184caf |
3727 | fi |
d9898ee8 |
3728 | |
3729 | fi |
dd184caf |
3730 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3731 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3732 | case $ac_cv_host in |
3733 | *-*-*) ;; |
3734 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3735 | echo "$as_me: error: invalid value of canonical host" >&2;} |
3736 | { (exit 1); exit 1; }; };; |
3737 | esac |
d9898ee8 |
3738 | host=$ac_cv_host |
dd184caf |
3739 | ac_save_IFS=$IFS; IFS='-' |
3740 | set x $ac_cv_host |
3741 | shift |
3742 | host_cpu=$1 |
3743 | host_vendor=$2 |
3744 | shift; shift |
3745 | # Remember, the first character of IFS is used to create $*, |
3746 | # except with old shells: |
3747 | host_os=$* |
3748 | IFS=$ac_save_IFS |
3749 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3750 | |
3751 | |
3752 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3753 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
3754 | if test "${lt_cv_path_SED+set}" = set; then |
3755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3756 | else |
3757 | # Loop through the user's path and test for sed and gsed. |
3758 | # Then use that list of sed's as ones to test for truncation. |
3759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3760 | for as_dir in $PATH |
3761 | do |
3762 | IFS=$as_save_IFS |
3763 | test -z "$as_dir" && as_dir=. |
3764 | for lt_ac_prog in sed gsed; do |
3765 | for ac_exec_ext in '' $ac_executable_extensions; do |
ac40fd9e |
3766 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3767 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3768 | fi |
3769 | done |
3770 | done |
3771 | done |
3772 | IFS=$as_save_IFS |
3773 | lt_ac_max=0 |
3774 | lt_ac_count=0 |
3775 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3776 | # along with /bin/sed that truncates output. |
3777 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3778 | test ! -f $lt_ac_sed && continue |
3779 | cat /dev/null > conftest.in |
3780 | lt_ac_count=0 |
3781 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3782 | # Check for GNU sed and select it if it is found. |
3783 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3784 | lt_cv_path_SED=$lt_ac_sed |
3785 | break |
3786 | fi |
3787 | while true; do |
3788 | cat conftest.in conftest.in >conftest.tmp |
3789 | mv conftest.tmp conftest.in |
3790 | cp conftest.in conftest.nl |
3791 | echo >>conftest.nl |
3792 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3793 | cmp -s conftest.out conftest.nl || break |
3794 | # 10000 chars as input seems more than enough |
3795 | test $lt_ac_count -gt 10 && break |
3796 | lt_ac_count=`expr $lt_ac_count + 1` |
3797 | if test $lt_ac_count -gt $lt_ac_max; then |
3798 | lt_ac_max=$lt_ac_count |
3799 | lt_cv_path_SED=$lt_ac_sed |
3800 | fi |
3801 | done |
3802 | done |
3803 | |
3804 | fi |
3805 | |
3806 | SED=$lt_cv_path_SED |
3807 | |
dd184caf |
3808 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3809 | echo "${ECHO_T}$SED" >&6; } |
3810 | |
3811 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3812 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3813 | if test "${ac_cv_path_GREP+set}" = set; then |
3814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3815 | else |
3816 | # Extract the first word of "grep ggrep" to use in msg output |
3817 | if test -z "$GREP"; then |
3818 | set dummy grep ggrep; ac_prog_name=$2 |
3819 | if test "${ac_cv_path_GREP+set}" = set; then |
3820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3821 | else |
3822 | ac_path_GREP_found=false |
3823 | # Loop through the user's path and test for each of PROGNAME-LIST |
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3825 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3826 | do |
3827 | IFS=$as_save_IFS |
3828 | test -z "$as_dir" && as_dir=. |
3829 | for ac_prog in grep ggrep; do |
3830 | for ac_exec_ext in '' $ac_executable_extensions; do |
3831 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3832 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3833 | # Check for GNU ac_path_GREP and select it if it is found. |
3834 | # Check for GNU $ac_path_GREP |
3835 | case `"$ac_path_GREP" --version 2>&1` in |
3836 | *GNU*) |
3837 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3838 | *) |
3839 | ac_count=0 |
3840 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3841 | while : |
3842 | do |
3843 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3844 | mv "conftest.tmp" "conftest.in" |
3845 | cp "conftest.in" "conftest.nl" |
3846 | echo 'GREP' >> "conftest.nl" |
3847 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3848 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3849 | ac_count=`expr $ac_count + 1` |
3850 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3851 | # Best one so far, save it but keep looking for a better one |
3852 | ac_cv_path_GREP="$ac_path_GREP" |
3853 | ac_path_GREP_max=$ac_count |
3854 | fi |
3855 | # 10*(2^10) chars as input seems more than enough |
3856 | test $ac_count -gt 10 && break |
3857 | done |
3858 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3859 | esac |
3860 | |
3861 | |
3862 | $ac_path_GREP_found && break 3 |
3863 | done |
3864 | done |
3865 | |
3866 | done |
3867 | IFS=$as_save_IFS |
3868 | |
3869 | |
3870 | fi |
3871 | |
3872 | GREP="$ac_cv_path_GREP" |
3873 | if test -z "$GREP"; then |
3874 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3875 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3876 | { (exit 1); exit 1; }; } |
3877 | fi |
3878 | |
3879 | else |
3880 | ac_cv_path_GREP=$GREP |
3881 | fi |
3882 | |
3883 | |
3884 | fi |
3885 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3886 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3887 | GREP="$ac_cv_path_GREP" |
3888 | |
d9898ee8 |
3889 | |
dd184caf |
3890 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3891 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3892 | if test "${ac_cv_path_EGREP+set}" = set; then |
3893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3894 | else |
3895 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3896 | then ac_cv_path_EGREP="$GREP -E" |
3897 | else |
3898 | # Extract the first word of "egrep" to use in msg output |
3899 | if test -z "$EGREP"; then |
3900 | set dummy egrep; ac_prog_name=$2 |
3901 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
3902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3903 | else |
dd184caf |
3904 | ac_path_EGREP_found=false |
3905 | # Loop through the user's path and test for each of PROGNAME-LIST |
3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3907 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3908 | do |
3909 | IFS=$as_save_IFS |
3910 | test -z "$as_dir" && as_dir=. |
3911 | for ac_prog in egrep; do |
3912 | for ac_exec_ext in '' $ac_executable_extensions; do |
3913 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3914 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3915 | # Check for GNU ac_path_EGREP and select it if it is found. |
3916 | # Check for GNU $ac_path_EGREP |
3917 | case `"$ac_path_EGREP" --version 2>&1` in |
3918 | *GNU*) |
3919 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3920 | *) |
3921 | ac_count=0 |
3922 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3923 | while : |
3924 | do |
3925 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3926 | mv "conftest.tmp" "conftest.in" |
3927 | cp "conftest.in" "conftest.nl" |
3928 | echo 'EGREP' >> "conftest.nl" |
3929 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3930 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3931 | ac_count=`expr $ac_count + 1` |
3932 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3933 | # Best one so far, save it but keep looking for a better one |
3934 | ac_cv_path_EGREP="$ac_path_EGREP" |
3935 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
3936 | fi |
dd184caf |
3937 | # 10*(2^10) chars as input seems more than enough |
3938 | test $ac_count -gt 10 && break |
3939 | done |
3940 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3941 | esac |
3942 | |
3943 | |
3944 | $ac_path_EGREP_found && break 3 |
3945 | done |
3946 | done |
3947 | |
3948 | done |
3949 | IFS=$as_save_IFS |
3950 | |
3951 | |
3952 | fi |
3953 | |
3954 | EGREP="$ac_cv_path_EGREP" |
3955 | if test -z "$EGREP"; then |
3956 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3957 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3958 | { (exit 1); exit 1; }; } |
3959 | fi |
3960 | |
3961 | else |
3962 | ac_cv_path_EGREP=$EGREP |
d9898ee8 |
3963 | fi |
dd184caf |
3964 | |
3965 | |
3966 | fi |
3967 | fi |
3968 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3969 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
3970 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
3971 | |
3972 | |
3973 | |
dd184caf |
3974 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
3975 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
3976 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
3977 | else |
3978 | with_gnu_ld=no |
dd184caf |
3979 | fi |
3980 | |
d9898ee8 |
3981 | ac_prog=ld |
3982 | if test "$GCC" = yes; then |
3983 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
3984 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3985 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
3986 | case $host in |
3987 | *-*-mingw*) |
3988 | # gcc leaves a trailing carriage return which upsets mingw |
3989 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3990 | *) |
3991 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3992 | esac |
3993 | case $ac_prog in |
3994 | # Accept absolute paths. |
3995 | [\\/]* | ?:[\\/]*) |
3996 | re_direlt='/[^/][^/]*/\.\./' |
3997 | # Canonicalize the pathname of ld |
3998 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3999 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4000 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4001 | done |
4002 | test -z "$LD" && LD="$ac_prog" |
4003 | ;; |
4004 | "") |
4005 | # If it fails, then pretend we aren't using GCC. |
4006 | ac_prog=ld |
4007 | ;; |
4008 | *) |
4009 | # If it is relative, then search for the first ld in PATH. |
4010 | with_gnu_ld=unknown |
4011 | ;; |
4012 | esac |
4013 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
4014 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4015 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4016 | else |
dd184caf |
4017 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4018 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4019 | fi |
4020 | if test "${lt_cv_path_LD+set}" = set; then |
4021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4022 | else |
4023 | if test -z "$LD"; then |
4024 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4025 | for ac_dir in $PATH; do |
4026 | IFS="$lt_save_ifs" |
4027 | test -z "$ac_dir" && ac_dir=. |
4028 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4029 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4030 | # Check to see if the program is GNU ld. I'd rather use --version, |
4031 | # but apparently some variants of GNU ld only accept -v. |
4032 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4033 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4034 | *GNU* | *'with BFD'*) |
4035 | test "$with_gnu_ld" != no && break |
4036 | ;; |
4037 | *) |
4038 | test "$with_gnu_ld" != yes && break |
4039 | ;; |
4040 | esac |
4041 | fi |
4042 | done |
4043 | IFS="$lt_save_ifs" |
4044 | else |
4045 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4046 | fi |
4047 | fi |
4048 | |
4049 | LD="$lt_cv_path_LD" |
4050 | if test -n "$LD"; then |
dd184caf |
4051 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4052 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4053 | else |
dd184caf |
4054 | { echo "$as_me:$LINENO: result: no" >&5 |
4055 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4056 | fi |
4057 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4058 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4059 | { (exit 1); exit 1; }; } |
dd184caf |
4060 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4061 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4062 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4064 | else |
4065 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4066 | case `$LD -v 2>&1 </dev/null` in |
4067 | *GNU* | *'with BFD'*) |
4068 | lt_cv_prog_gnu_ld=yes |
4069 | ;; |
4070 | *) |
4071 | lt_cv_prog_gnu_ld=no |
4072 | ;; |
4073 | esac |
4074 | fi |
dd184caf |
4075 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4076 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4077 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4078 | |
4079 | |
dd184caf |
4080 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4081 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4082 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4084 | else |
4085 | lt_cv_ld_reload_flag='-r' |
4086 | fi |
dd184caf |
4087 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4088 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4089 | reload_flag=$lt_cv_ld_reload_flag |
4090 | case $reload_flag in |
4091 | "" | " "*) ;; |
4092 | *) reload_flag=" $reload_flag" ;; |
4093 | esac |
4094 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4095 | case $host_os in |
4096 | darwin*) |
4097 | if test "$GCC" = yes; then |
4098 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4099 | else |
4100 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4101 | fi |
4102 | ;; |
4103 | esac |
4104 | |
dd184caf |
4105 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4106 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4107 | if test "${lt_cv_path_NM+set}" = set; then |
4108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4109 | else |
4110 | if test -n "$NM"; then |
4111 | # Let the user override the test. |
4112 | lt_cv_path_NM="$NM" |
4113 | else |
4114 | lt_nm_to_check="${ac_tool_prefix}nm" |
4115 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4116 | lt_nm_to_check="$lt_nm_to_check nm" |
4117 | fi |
4118 | for lt_tmp_nm in $lt_nm_to_check; do |
4119 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4120 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4121 | IFS="$lt_save_ifs" |
4122 | test -z "$ac_dir" && ac_dir=. |
4123 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4124 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4125 | # Check to see if the nm accepts a BSD-compat flag. |
4126 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4127 | # nm: unknown option "B" ignored |
4128 | # Tru64's nm complains that /dev/null is an invalid object file |
4129 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4130 | */dev/null* | *'Invalid file or object type'*) |
4131 | lt_cv_path_NM="$tmp_nm -B" |
4132 | break |
4133 | ;; |
4134 | *) |
4135 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4136 | */dev/null*) |
4137 | lt_cv_path_NM="$tmp_nm -p" |
4138 | break |
4139 | ;; |
4140 | *) |
4141 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4142 | continue # so that we can try to find one that supports BSD flags |
4143 | ;; |
4144 | esac |
4145 | ;; |
4146 | esac |
4147 | fi |
4148 | done |
4149 | IFS="$lt_save_ifs" |
4150 | done |
4151 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4152 | fi |
4153 | fi |
dd184caf |
4154 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4155 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4156 | NM="$lt_cv_path_NM" |
4157 | |
ac40fd9e |
4158 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
4159 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4160 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4162 | else |
4163 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4164 | lt_cv_file_magic_test_file= |
4165 | lt_cv_deplibs_check_method='unknown' |
4166 | # Need to set the preceding variable on all platforms that support |
4167 | # interlibrary dependencies. |
4168 | # 'none' -- dependencies not supported. |
4169 | # `unknown' -- same as none, but documents that we really don't know. |
4170 | # 'pass_all' -- all dependencies passed with no checks. |
4171 | # 'test_compile' -- check by making test program. |
4172 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4173 | # which responds to the $file_magic_cmd with a given extended regex. |
4174 | # If you have `file' or equivalent on your system and you're not sure |
4175 | # whether `pass_all' will *always* work, you probably want this one. |
4176 | |
4177 | case $host_os in |
4178 | aix4* | aix5*) |
4179 | lt_cv_deplibs_check_method=pass_all |
4180 | ;; |
4181 | |
4182 | beos*) |
4183 | lt_cv_deplibs_check_method=pass_all |
4184 | ;; |
4185 | |
4186 | bsdi[45]*) |
4187 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4188 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4189 | lt_cv_file_magic_test_file=/shlib/libc.so |
4190 | ;; |
4191 | |
4192 | cygwin*) |
4193 | # func_win32_libid is a shell function defined in ltmain.sh |
4194 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4195 | lt_cv_file_magic_cmd='func_win32_libid' |
4196 | ;; |
4197 | |
4198 | mingw* | pw32*) |
4199 | # Base MSYS/MinGW do not provide the 'file' command needed by |
ac40fd9e |
4200 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4201 | # unless we find 'file', for example because we are cross-compiling. |
4202 | if ( file / ) >/dev/null 2>&1; then |
4203 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4204 | lt_cv_file_magic_cmd='func_win32_libid' |
4205 | else |
4206 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4207 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4208 | fi |
d9898ee8 |
4209 | ;; |
4210 | |
4211 | darwin* | rhapsody*) |
4212 | lt_cv_deplibs_check_method=pass_all |
4213 | ;; |
4214 | |
ac40fd9e |
4215 | freebsd* | dragonfly*) |
d9898ee8 |
4216 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4217 | case $host_cpu in |
4218 | i*86 ) |
4219 | # Not sure whether the presence of OpenBSD here was a mistake. |
4220 | # Let's accept both of them until this is cleared up. |
4221 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4222 | lt_cv_file_magic_cmd=/usr/bin/file |
4223 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4224 | ;; |
4225 | esac |
4226 | else |
4227 | lt_cv_deplibs_check_method=pass_all |
4228 | fi |
4229 | ;; |
4230 | |
4231 | gnu*) |
4232 | lt_cv_deplibs_check_method=pass_all |
4233 | ;; |
4234 | |
4235 | hpux10.20* | hpux11*) |
4236 | lt_cv_file_magic_cmd=/usr/bin/file |
4237 | case $host_cpu in |
4238 | ia64*) |
4239 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4240 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4241 | ;; |
4242 | hppa*64*) |
4243 | 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]' |
4244 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4245 | ;; |
4246 | *) |
4247 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4248 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4249 | ;; |
4250 | esac |
4251 | ;; |
4252 | |
ac40fd9e |
4253 | interix[3-9]*) |
d9898ee8 |
4254 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4255 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4256 | ;; |
4257 | |
4258 | irix5* | irix6* | nonstopux*) |
4259 | case $LD in |
4260 | *-32|*"-32 ") libmagic=32-bit;; |
4261 | *-n32|*"-n32 ") libmagic=N32;; |
4262 | *-64|*"-64 ") libmagic=64-bit;; |
4263 | *) libmagic=never-match;; |
4264 | esac |
4265 | lt_cv_deplibs_check_method=pass_all |
4266 | ;; |
4267 | |
4268 | # This must be Linux ELF. |
ac40fd9e |
4269 | linux* | k*bsd*-gnu) |
d9898ee8 |
4270 | lt_cv_deplibs_check_method=pass_all |
4271 | ;; |
4272 | |
4273 | netbsd*) |
4274 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4275 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4276 | else |
4277 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4278 | fi |
4279 | ;; |
4280 | |
4281 | newos6*) |
4282 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4283 | lt_cv_file_magic_cmd=/usr/bin/file |
4284 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4285 | ;; |
4286 | |
4287 | nto-qnx*) |
4288 | lt_cv_deplibs_check_method=unknown |
4289 | ;; |
4290 | |
4291 | openbsd*) |
4292 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4293 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4294 | else |
4295 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4296 | fi |
4297 | ;; |
4298 | |
4299 | osf3* | osf4* | osf5*) |
4300 | lt_cv_deplibs_check_method=pass_all |
4301 | ;; |
4302 | |
ac40fd9e |
4303 | rdos*) |
4304 | lt_cv_deplibs_check_method=pass_all |
4305 | ;; |
4306 | |
d9898ee8 |
4307 | solaris*) |
4308 | lt_cv_deplibs_check_method=pass_all |
4309 | ;; |
4310 | |
4311 | sysv4 | sysv4.3*) |
4312 | case $host_vendor in |
4313 | motorola) |
4314 | 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]' |
4315 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4316 | ;; |
4317 | ncr) |
4318 | lt_cv_deplibs_check_method=pass_all |
4319 | ;; |
4320 | sequent) |
4321 | lt_cv_file_magic_cmd='/bin/file' |
4322 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4323 | ;; |
4324 | sni) |
4325 | lt_cv_file_magic_cmd='/bin/file' |
4326 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4327 | lt_cv_file_magic_test_file=/lib/libc.so |
4328 | ;; |
4329 | siemens) |
4330 | lt_cv_deplibs_check_method=pass_all |
4331 | ;; |
4332 | pc) |
4333 | lt_cv_deplibs_check_method=pass_all |
4334 | ;; |
4335 | esac |
4336 | ;; |
4337 | |
4338 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4339 | lt_cv_deplibs_check_method=pass_all |
4340 | ;; |
4341 | esac |
4342 | |
4343 | fi |
dd184caf |
4344 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4345 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4346 | file_magic_cmd=$lt_cv_file_magic_cmd |
4347 | deplibs_check_method=$lt_cv_deplibs_check_method |
4348 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4349 | |
4350 | |
4351 | |
4352 | |
4353 | # If no C compiler was specified, use CC. |
4354 | LTCC=${LTCC-"$CC"} |
4355 | |
4356 | # If no C compiler flags were specified, use CFLAGS. |
4357 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4358 | |
4359 | # Allow CC to be a program name with arguments. |
4360 | compiler=$CC |
4361 | |
4362 | |
dd184caf |
4363 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4364 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
4365 | enableval=$enable_libtool_lock; |
4366 | fi |
d9898ee8 |
4367 | |
d9898ee8 |
4368 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4369 | |
4370 | # Some flags need to be propagated to the compiler or linker for good |
4371 | # libtool support. |
4372 | case $host in |
4373 | ia64-*-hpux*) |
4374 | # Find out which ABI we are using. |
4375 | echo 'int i;' > conftest.$ac_ext |
4376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4377 | (eval $ac_compile) 2>&5 |
4378 | ac_status=$? |
4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4380 | (exit $ac_status); }; then |
4381 | case `/usr/bin/file conftest.$ac_objext` in |
4382 | *ELF-32*) |
4383 | HPUX_IA64_MODE="32" |
4384 | ;; |
4385 | *ELF-64*) |
4386 | HPUX_IA64_MODE="64" |
4387 | ;; |
4388 | esac |
4389 | fi |
4390 | rm -rf conftest* |
4391 | ;; |
4392 | *-*-irix6*) |
4393 | # Find out which ABI we are using. |
ac40fd9e |
4394 | echo '#line 4394 "configure"' > conftest.$ac_ext |
d9898ee8 |
4395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4396 | (eval $ac_compile) 2>&5 |
4397 | ac_status=$? |
4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4399 | (exit $ac_status); }; then |
4400 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4401 | case `/usr/bin/file conftest.$ac_objext` in |
4402 | *32-bit*) |
4403 | LD="${LD-ld} -melf32bsmip" |
4404 | ;; |
4405 | *N32*) |
4406 | LD="${LD-ld} -melf32bmipn32" |
4407 | ;; |
4408 | *64-bit*) |
4409 | LD="${LD-ld} -melf64bmip" |
4410 | ;; |
4411 | esac |
4412 | else |
4413 | case `/usr/bin/file conftest.$ac_objext` in |
4414 | *32-bit*) |
4415 | LD="${LD-ld} -32" |
4416 | ;; |
4417 | *N32*) |
4418 | LD="${LD-ld} -n32" |
4419 | ;; |
4420 | *64-bit*) |
4421 | LD="${LD-ld} -64" |
4422 | ;; |
4423 | esac |
4424 | fi |
4425 | fi |
4426 | rm -rf conftest* |
4427 | ;; |
4428 | |
ac40fd9e |
4429 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
4430 | s390*-*linux*|sparc*-*linux*) |
d9898ee8 |
4431 | # Find out which ABI we are using. |
4432 | echo 'int i;' > conftest.$ac_ext |
4433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4434 | (eval $ac_compile) 2>&5 |
4435 | ac_status=$? |
4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4437 | (exit $ac_status); }; then |
4438 | case `/usr/bin/file conftest.o` in |
4439 | *32-bit*) |
4440 | case $host in |
ac40fd9e |
4441 | x86_64-*kfreebsd*-gnu) |
4442 | LD="${LD-ld} -m elf_i386_fbsd" |
4443 | ;; |
d9898ee8 |
4444 | x86_64-*linux*) |
4445 | LD="${LD-ld} -m elf_i386" |
4446 | ;; |
4447 | ppc64-*linux*|powerpc64-*linux*) |
4448 | LD="${LD-ld} -m elf32ppclinux" |
4449 | ;; |
4450 | s390x-*linux*) |
4451 | LD="${LD-ld} -m elf_s390" |
4452 | ;; |
4453 | sparc64-*linux*) |
4454 | LD="${LD-ld} -m elf32_sparc" |
4455 | ;; |
4456 | esac |
4457 | ;; |
4458 | *64-bit*) |
ac40fd9e |
4459 | libsuff=64 |
d9898ee8 |
4460 | case $host in |
ac40fd9e |
4461 | x86_64-*kfreebsd*-gnu) |
4462 | LD="${LD-ld} -m elf_x86_64_fbsd" |
4463 | ;; |
d9898ee8 |
4464 | x86_64-*linux*) |
4465 | LD="${LD-ld} -m elf_x86_64" |
4466 | ;; |
4467 | ppc*-*linux*|powerpc*-*linux*) |
4468 | LD="${LD-ld} -m elf64ppc" |
4469 | ;; |
4470 | s390*-*linux*) |
4471 | LD="${LD-ld} -m elf64_s390" |
4472 | ;; |
4473 | sparc*-*linux*) |
4474 | LD="${LD-ld} -m elf64_sparc" |
4475 | ;; |
4476 | esac |
4477 | ;; |
4478 | esac |
4479 | fi |
4480 | rm -rf conftest* |
4481 | ;; |
4482 | |
4483 | *-*-sco3.2v5*) |
4484 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4485 | SAVE_CFLAGS="$CFLAGS" |
4486 | CFLAGS="$CFLAGS -belf" |
dd184caf |
4487 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4488 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
4489 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4491 | else |
4492 | ac_ext=c |
4493 | ac_cpp='$CPP $CPPFLAGS' |
4494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4497 | |
4498 | cat >conftest.$ac_ext <<_ACEOF |
4499 | /* confdefs.h. */ |
4500 | _ACEOF |
4501 | cat confdefs.h >>conftest.$ac_ext |
4502 | cat >>conftest.$ac_ext <<_ACEOF |
4503 | /* end confdefs.h. */ |
4504 | |
4505 | int |
4506 | main () |
4507 | { |
4508 | |
4509 | ; |
4510 | return 0; |
4511 | } |
4512 | _ACEOF |
4513 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
4514 | if { (ac_try="$ac_link" |
4515 | case "(($ac_try" in |
4516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4517 | *) ac_try_echo=$ac_try;; |
4518 | esac |
4519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4520 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4521 | ac_status=$? |
4522 | grep -v '^ *+' conftest.er1 >conftest.err |
4523 | rm -f conftest.er1 |
4524 | cat conftest.err >&5 |
4525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4526 | (exit $ac_status); } && { |
4527 | test -z "$ac_c_werror_flag" || |
4528 | test ! -s conftest.err |
4529 | } && test -s conftest$ac_exeext && |
4530 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4531 | lt_cv_cc_needs_belf=yes |
4532 | else |
4533 | echo "$as_me: failed program was:" >&5 |
4534 | sed 's/^/| /' conftest.$ac_ext >&5 |
4535 | |
dd184caf |
4536 | lt_cv_cc_needs_belf=no |
d9898ee8 |
4537 | fi |
dd184caf |
4538 | |
4539 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4540 | conftest$ac_exeext conftest.$ac_ext |
4541 | ac_ext=c |
4542 | ac_cpp='$CPP $CPPFLAGS' |
4543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4546 | |
4547 | fi |
dd184caf |
4548 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4549 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
4550 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4551 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4552 | CFLAGS="$SAVE_CFLAGS" |
4553 | fi |
4554 | ;; |
4555 | sparc*-*solaris*) |
4556 | # Find out which ABI we are using. |
4557 | echo 'int i;' > conftest.$ac_ext |
4558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4559 | (eval $ac_compile) 2>&5 |
4560 | ac_status=$? |
4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4562 | (exit $ac_status); }; then |
4563 | case `/usr/bin/file conftest.o` in |
4564 | *64-bit*) |
4565 | case $lt_cv_prog_gnu_ld in |
4566 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4567 | *) LD="${LD-ld} -64" ;; |
4568 | esac |
4569 | ;; |
4570 | esac |
4571 | fi |
4572 | rm -rf conftest* |
4573 | ;; |
4574 | |
4575 | |
4576 | esac |
4577 | |
4578 | need_locks="$enable_libtool_lock" |
4579 | |
4580 | |
4581 | ac_ext=c |
4582 | ac_cpp='$CPP $CPPFLAGS' |
4583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
dd184caf |
4586 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4587 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
4588 | # On Suns, sometimes $CPP names a directory. |
4589 | if test -n "$CPP" && test -d "$CPP"; then |
4590 | CPP= |
4591 | fi |
4592 | if test -z "$CPP"; then |
4593 | if test "${ac_cv_prog_CPP+set}" = set; then |
4594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4595 | else |
4596 | # Double quotes because CPP needs to be expanded |
4597 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4598 | do |
4599 | ac_preproc_ok=false |
4600 | for ac_c_preproc_warn_flag in '' yes |
4601 | do |
4602 | # Use a header file that comes with gcc, so configuring glibc |
4603 | # with a fresh cross-compiler works. |
4604 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4605 | # <limits.h> exists even on freestanding compilers. |
4606 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4607 | # not just through cpp. "Syntax error" is here to catch this case. |
4608 | cat >conftest.$ac_ext <<_ACEOF |
4609 | /* confdefs.h. */ |
4610 | _ACEOF |
4611 | cat confdefs.h >>conftest.$ac_ext |
4612 | cat >>conftest.$ac_ext <<_ACEOF |
4613 | /* end confdefs.h. */ |
4614 | #ifdef __STDC__ |
4615 | # include <limits.h> |
4616 | #else |
4617 | # include <assert.h> |
4618 | #endif |
4619 | Syntax error |
4620 | _ACEOF |
dd184caf |
4621 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4622 | case "(($ac_try" in |
4623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4624 | *) ac_try_echo=$ac_try;; |
4625 | esac |
4626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4627 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4628 | ac_status=$? |
4629 | grep -v '^ *+' conftest.er1 >conftest.err |
4630 | rm -f conftest.er1 |
4631 | cat conftest.err >&5 |
4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4633 | (exit $ac_status); } >/dev/null && { |
4634 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4635 | test ! -s conftest.err |
4636 | }; then |
d9898ee8 |
4637 | : |
4638 | else |
4639 | echo "$as_me: failed program was:" >&5 |
4640 | sed 's/^/| /' conftest.$ac_ext >&5 |
4641 | |
4642 | # Broken: fails on valid input. |
4643 | continue |
4644 | fi |
dd184caf |
4645 | |
d9898ee8 |
4646 | rm -f conftest.err conftest.$ac_ext |
4647 | |
dd184caf |
4648 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4649 | # can be detected and how. |
4650 | cat >conftest.$ac_ext <<_ACEOF |
4651 | /* confdefs.h. */ |
4652 | _ACEOF |
4653 | cat confdefs.h >>conftest.$ac_ext |
4654 | cat >>conftest.$ac_ext <<_ACEOF |
4655 | /* end confdefs.h. */ |
4656 | #include <ac_nonexistent.h> |
4657 | _ACEOF |
dd184caf |
4658 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4659 | case "(($ac_try" in |
4660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4661 | *) ac_try_echo=$ac_try;; |
4662 | esac |
4663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4664 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4665 | ac_status=$? |
4666 | grep -v '^ *+' conftest.er1 >conftest.err |
4667 | rm -f conftest.er1 |
4668 | cat conftest.err >&5 |
4669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4670 | (exit $ac_status); } >/dev/null && { |
4671 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4672 | test ! -s conftest.err |
4673 | }; then |
d9898ee8 |
4674 | # Broken: success on invalid input. |
4675 | continue |
4676 | else |
4677 | echo "$as_me: failed program was:" >&5 |
4678 | sed 's/^/| /' conftest.$ac_ext >&5 |
4679 | |
4680 | # Passes both tests. |
4681 | ac_preproc_ok=: |
4682 | break |
4683 | fi |
dd184caf |
4684 | |
d9898ee8 |
4685 | rm -f conftest.err conftest.$ac_ext |
4686 | |
4687 | done |
4688 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4689 | rm -f conftest.err conftest.$ac_ext |
4690 | if $ac_preproc_ok; then |
4691 | break |
4692 | fi |
4693 | |
4694 | done |
4695 | ac_cv_prog_CPP=$CPP |
4696 | |
4697 | fi |
4698 | CPP=$ac_cv_prog_CPP |
4699 | else |
4700 | ac_cv_prog_CPP=$CPP |
4701 | fi |
dd184caf |
4702 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4703 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
4704 | ac_preproc_ok=false |
4705 | for ac_c_preproc_warn_flag in '' yes |
4706 | do |
4707 | # Use a header file that comes with gcc, so configuring glibc |
4708 | # with a fresh cross-compiler works. |
4709 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4710 | # <limits.h> exists even on freestanding compilers. |
4711 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4712 | # not just through cpp. "Syntax error" is here to catch this case. |
4713 | cat >conftest.$ac_ext <<_ACEOF |
4714 | /* confdefs.h. */ |
4715 | _ACEOF |
4716 | cat confdefs.h >>conftest.$ac_ext |
4717 | cat >>conftest.$ac_ext <<_ACEOF |
4718 | /* end confdefs.h. */ |
4719 | #ifdef __STDC__ |
4720 | # include <limits.h> |
4721 | #else |
4722 | # include <assert.h> |
4723 | #endif |
4724 | Syntax error |
4725 | _ACEOF |
dd184caf |
4726 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4727 | case "(($ac_try" in |
4728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4729 | *) ac_try_echo=$ac_try;; |
4730 | esac |
4731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4732 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4733 | ac_status=$? |
4734 | grep -v '^ *+' conftest.er1 >conftest.err |
4735 | rm -f conftest.er1 |
4736 | cat conftest.err >&5 |
4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4738 | (exit $ac_status); } >/dev/null && { |
4739 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4740 | test ! -s conftest.err |
4741 | }; then |
d9898ee8 |
4742 | : |
4743 | else |
4744 | echo "$as_me: failed program was:" >&5 |
4745 | sed 's/^/| /' conftest.$ac_ext >&5 |
4746 | |
4747 | # Broken: fails on valid input. |
4748 | continue |
4749 | fi |
dd184caf |
4750 | |
d9898ee8 |
4751 | rm -f conftest.err conftest.$ac_ext |
4752 | |
dd184caf |
4753 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4754 | # can be detected and how. |
4755 | cat >conftest.$ac_ext <<_ACEOF |
4756 | /* confdefs.h. */ |
4757 | _ACEOF |
4758 | cat confdefs.h >>conftest.$ac_ext |
4759 | cat >>conftest.$ac_ext <<_ACEOF |
4760 | /* end confdefs.h. */ |
4761 | #include <ac_nonexistent.h> |
4762 | _ACEOF |
dd184caf |
4763 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4764 | case "(($ac_try" in |
4765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4766 | *) ac_try_echo=$ac_try;; |
4767 | esac |
4768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4769 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4770 | ac_status=$? |
4771 | grep -v '^ *+' conftest.er1 >conftest.err |
4772 | rm -f conftest.er1 |
4773 | cat conftest.err >&5 |
4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4775 | (exit $ac_status); } >/dev/null && { |
4776 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4777 | test ! -s conftest.err |
4778 | }; then |
d9898ee8 |
4779 | # Broken: success on invalid input. |
4780 | continue |
4781 | else |
4782 | echo "$as_me: failed program was:" >&5 |
4783 | sed 's/^/| /' conftest.$ac_ext >&5 |
4784 | |
4785 | # Passes both tests. |
4786 | ac_preproc_ok=: |
4787 | break |
4788 | fi |
dd184caf |
4789 | |
d9898ee8 |
4790 | rm -f conftest.err conftest.$ac_ext |
4791 | |
4792 | done |
4793 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4794 | rm -f conftest.err conftest.$ac_ext |
4795 | if $ac_preproc_ok; then |
4796 | : |
4797 | else |
4798 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4799 | See \`config.log' for more details." >&5 |
4800 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4801 | See \`config.log' for more details." >&2;} |
4802 | { (exit 1); exit 1; }; } |
4803 | fi |
4804 | |
4805 | ac_ext=c |
4806 | ac_cpp='$CPP $CPPFLAGS' |
4807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4810 | |
4811 | |
dd184caf |
4812 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4813 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
4814 | if test "${ac_cv_header_stdc+set}" = set; then |
4815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4816 | else |
4817 | cat >conftest.$ac_ext <<_ACEOF |
4818 | /* confdefs.h. */ |
4819 | _ACEOF |
4820 | cat confdefs.h >>conftest.$ac_ext |
4821 | cat >>conftest.$ac_ext <<_ACEOF |
4822 | /* end confdefs.h. */ |
4823 | #include <stdlib.h> |
4824 | #include <stdarg.h> |
4825 | #include <string.h> |
4826 | #include <float.h> |
4827 | |
4828 | int |
4829 | main () |
4830 | { |
4831 | |
4832 | ; |
4833 | return 0; |
4834 | } |
4835 | _ACEOF |
4836 | rm -f conftest.$ac_objext |
dd184caf |
4837 | if { (ac_try="$ac_compile" |
4838 | case "(($ac_try" in |
4839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4840 | *) ac_try_echo=$ac_try;; |
4841 | esac |
4842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4843 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4844 | ac_status=$? |
4845 | grep -v '^ *+' conftest.er1 >conftest.err |
4846 | rm -f conftest.er1 |
4847 | cat conftest.err >&5 |
4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4849 | (exit $ac_status); } && { |
4850 | test -z "$ac_c_werror_flag" || |
4851 | test ! -s conftest.err |
4852 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4853 | ac_cv_header_stdc=yes |
4854 | else |
4855 | echo "$as_me: failed program was:" >&5 |
4856 | sed 's/^/| /' conftest.$ac_ext >&5 |
4857 | |
dd184caf |
4858 | ac_cv_header_stdc=no |
d9898ee8 |
4859 | fi |
dd184caf |
4860 | |
4861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4862 | |
4863 | if test $ac_cv_header_stdc = yes; then |
4864 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4865 | cat >conftest.$ac_ext <<_ACEOF |
4866 | /* confdefs.h. */ |
4867 | _ACEOF |
4868 | cat confdefs.h >>conftest.$ac_ext |
4869 | cat >>conftest.$ac_ext <<_ACEOF |
4870 | /* end confdefs.h. */ |
4871 | #include <string.h> |
4872 | |
4873 | _ACEOF |
4874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4875 | $EGREP "memchr" >/dev/null 2>&1; then |
4876 | : |
4877 | else |
4878 | ac_cv_header_stdc=no |
4879 | fi |
4880 | rm -f conftest* |
4881 | |
4882 | fi |
4883 | |
4884 | if test $ac_cv_header_stdc = yes; then |
4885 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4886 | cat >conftest.$ac_ext <<_ACEOF |
4887 | /* confdefs.h. */ |
4888 | _ACEOF |
4889 | cat confdefs.h >>conftest.$ac_ext |
4890 | cat >>conftest.$ac_ext <<_ACEOF |
4891 | /* end confdefs.h. */ |
4892 | #include <stdlib.h> |
4893 | |
4894 | _ACEOF |
4895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4896 | $EGREP "free" >/dev/null 2>&1; then |
4897 | : |
4898 | else |
4899 | ac_cv_header_stdc=no |
4900 | fi |
4901 | rm -f conftest* |
4902 | |
4903 | fi |
4904 | |
4905 | if test $ac_cv_header_stdc = yes; then |
4906 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4907 | if test "$cross_compiling" = yes; then |
4908 | : |
4909 | else |
4910 | cat >conftest.$ac_ext <<_ACEOF |
4911 | /* confdefs.h. */ |
4912 | _ACEOF |
4913 | cat confdefs.h >>conftest.$ac_ext |
4914 | cat >>conftest.$ac_ext <<_ACEOF |
4915 | /* end confdefs.h. */ |
4916 | #include <ctype.h> |
dd184caf |
4917 | #include <stdlib.h> |
d9898ee8 |
4918 | #if ((' ' & 0x0FF) == 0x020) |
4919 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4920 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4921 | #else |
4922 | # define ISLOWER(c) \ |
4923 | (('a' <= (c) && (c) <= 'i') \ |
4924 | || ('j' <= (c) && (c) <= 'r') \ |
4925 | || ('s' <= (c) && (c) <= 'z')) |
4926 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4927 | #endif |
4928 | |
4929 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4930 | int |
4931 | main () |
4932 | { |
4933 | int i; |
4934 | for (i = 0; i < 256; i++) |
4935 | if (XOR (islower (i), ISLOWER (i)) |
4936 | || toupper (i) != TOUPPER (i)) |
dd184caf |
4937 | return 2; |
4938 | return 0; |
d9898ee8 |
4939 | } |
4940 | _ACEOF |
4941 | rm -f conftest$ac_exeext |
dd184caf |
4942 | if { (ac_try="$ac_link" |
4943 | case "(($ac_try" in |
4944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4945 | *) ac_try_echo=$ac_try;; |
4946 | esac |
4947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4948 | (eval "$ac_link") 2>&5 |
d9898ee8 |
4949 | ac_status=$? |
4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
4952 | { (case "(($ac_try" in |
4953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4954 | *) ac_try_echo=$ac_try;; |
4955 | esac |
4956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4957 | (eval "$ac_try") 2>&5 |
d9898ee8 |
4958 | ac_status=$? |
4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4960 | (exit $ac_status); }; }; then |
4961 | : |
4962 | else |
4963 | echo "$as_me: program exited with status $ac_status" >&5 |
4964 | echo "$as_me: failed program was:" >&5 |
4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
4966 | |
4967 | ( exit $ac_status ) |
4968 | ac_cv_header_stdc=no |
4969 | fi |
dd184caf |
4970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4971 | fi |
dd184caf |
4972 | |
4973 | |
d9898ee8 |
4974 | fi |
4975 | fi |
dd184caf |
4976 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4977 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
4978 | if test $ac_cv_header_stdc = yes; then |
4979 | |
4980 | cat >>confdefs.h <<\_ACEOF |
4981 | #define STDC_HEADERS 1 |
4982 | _ACEOF |
4983 | |
4984 | fi |
4985 | |
4986 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4987 | |
4988 | |
4989 | |
4990 | |
4991 | |
4992 | |
4993 | |
4994 | |
4995 | |
4996 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4997 | inttypes.h stdint.h unistd.h |
4998 | do |
4999 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5000 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5001 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5004 | else |
5005 | cat >conftest.$ac_ext <<_ACEOF |
5006 | /* confdefs.h. */ |
5007 | _ACEOF |
5008 | cat confdefs.h >>conftest.$ac_ext |
5009 | cat >>conftest.$ac_ext <<_ACEOF |
5010 | /* end confdefs.h. */ |
5011 | $ac_includes_default |
5012 | |
5013 | #include <$ac_header> |
5014 | _ACEOF |
5015 | rm -f conftest.$ac_objext |
dd184caf |
5016 | if { (ac_try="$ac_compile" |
5017 | case "(($ac_try" in |
5018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5019 | *) ac_try_echo=$ac_try;; |
5020 | esac |
5021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5022 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5023 | ac_status=$? |
5024 | grep -v '^ *+' conftest.er1 >conftest.err |
5025 | rm -f conftest.er1 |
5026 | cat conftest.err >&5 |
5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5028 | (exit $ac_status); } && { |
5029 | test -z "$ac_c_werror_flag" || |
5030 | test ! -s conftest.err |
5031 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5032 | eval "$as_ac_Header=yes" |
5033 | else |
5034 | echo "$as_me: failed program was:" >&5 |
5035 | sed 's/^/| /' conftest.$ac_ext >&5 |
5036 | |
dd184caf |
5037 | eval "$as_ac_Header=no" |
d9898ee8 |
5038 | fi |
dd184caf |
5039 | |
5040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5041 | fi |
dd184caf |
5042 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5043 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5044 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5045 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5046 | cat >>confdefs.h <<_ACEOF |
5047 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5048 | _ACEOF |
5049 | |
5050 | fi |
5051 | |
5052 | done |
5053 | |
5054 | |
5055 | |
5056 | for ac_header in dlfcn.h |
5057 | do |
5058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5059 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5060 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5061 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5062 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5064 | fi |
dd184caf |
5065 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5066 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5067 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5068 | else |
5069 | # Is the header compilable? |
dd184caf |
5070 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5071 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5072 | cat >conftest.$ac_ext <<_ACEOF |
5073 | /* confdefs.h. */ |
5074 | _ACEOF |
5075 | cat confdefs.h >>conftest.$ac_ext |
5076 | cat >>conftest.$ac_ext <<_ACEOF |
5077 | /* end confdefs.h. */ |
5078 | $ac_includes_default |
5079 | #include <$ac_header> |
5080 | _ACEOF |
5081 | rm -f conftest.$ac_objext |
dd184caf |
5082 | if { (ac_try="$ac_compile" |
5083 | case "(($ac_try" in |
5084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5085 | *) ac_try_echo=$ac_try;; |
5086 | esac |
5087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5088 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5089 | ac_status=$? |
5090 | grep -v '^ *+' conftest.er1 >conftest.err |
5091 | rm -f conftest.er1 |
5092 | cat conftest.err >&5 |
5093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5094 | (exit $ac_status); } && { |
5095 | test -z "$ac_c_werror_flag" || |
5096 | test ! -s conftest.err |
5097 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5098 | ac_header_compiler=yes |
5099 | else |
5100 | echo "$as_me: failed program was:" >&5 |
5101 | sed 's/^/| /' conftest.$ac_ext >&5 |
5102 | |
dd184caf |
5103 | ac_header_compiler=no |
d9898ee8 |
5104 | fi |
dd184caf |
5105 | |
5106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5107 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5108 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5109 | |
5110 | # Is the header present? |
dd184caf |
5111 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5113 | cat >conftest.$ac_ext <<_ACEOF |
5114 | /* confdefs.h. */ |
5115 | _ACEOF |
5116 | cat confdefs.h >>conftest.$ac_ext |
5117 | cat >>conftest.$ac_ext <<_ACEOF |
5118 | /* end confdefs.h. */ |
5119 | #include <$ac_header> |
5120 | _ACEOF |
dd184caf |
5121 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5122 | case "(($ac_try" in |
5123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5124 | *) ac_try_echo=$ac_try;; |
5125 | esac |
5126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5127 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5128 | ac_status=$? |
5129 | grep -v '^ *+' conftest.er1 >conftest.err |
5130 | rm -f conftest.er1 |
5131 | cat conftest.err >&5 |
5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5133 | (exit $ac_status); } >/dev/null && { |
5134 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5135 | test ! -s conftest.err |
5136 | }; then |
d9898ee8 |
5137 | ac_header_preproc=yes |
5138 | else |
5139 | echo "$as_me: failed program was:" >&5 |
5140 | sed 's/^/| /' conftest.$ac_ext >&5 |
5141 | |
5142 | ac_header_preproc=no |
5143 | fi |
dd184caf |
5144 | |
d9898ee8 |
5145 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
5146 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5147 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5148 | |
5149 | # So? What about this header? |
5150 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5151 | yes:no: ) |
5152 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5153 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5154 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5155 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5156 | ac_header_preproc=yes |
5157 | ;; |
5158 | no:yes:* ) |
5159 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5160 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5161 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5162 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5163 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5164 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5165 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5166 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5168 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5169 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5170 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
5171 | ( cat <<\_ASBOX |
d9898ee8 |
5172 | ## -------------------------------------------------- ## |
5173 | ## Report this to courier-users@lists.sourceforge.net ## |
5174 | ## -------------------------------------------------- ## |
5175 | _ASBOX |
dd184caf |
5176 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5177 | ;; |
5178 | esac |
dd184caf |
5179 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5181 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5183 | else |
5184 | eval "$as_ac_Header=\$ac_header_preproc" |
5185 | fi |
dd184caf |
5186 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5187 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5188 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5189 | |
5190 | fi |
5191 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5192 | cat >>confdefs.h <<_ACEOF |
5193 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5194 | _ACEOF |
5195 | |
5196 | fi |
5197 | |
5198 | done |
5199 | |
dd184caf |
5200 | ac_ext=cpp |
d9898ee8 |
5201 | ac_cpp='$CXXCPP $CPPFLAGS' |
5202 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5203 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5204 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5205 | if test -z "$CXX"; then |
5206 | if test -n "$CCC"; then |
5207 | CXX=$CCC |
5208 | else |
5209 | if test -n "$ac_tool_prefix"; then |
5210 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5211 | do |
d9898ee8 |
5212 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5213 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5214 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5216 | if test "${ac_cv_prog_CXX+set}" = set; then |
5217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5218 | else |
5219 | if test -n "$CXX"; then |
5220 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5221 | else |
5222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5223 | for as_dir in $PATH |
5224 | do |
5225 | IFS=$as_save_IFS |
5226 | test -z "$as_dir" && as_dir=. |
5227 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5229 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5231 | break 2 |
5232 | fi |
5233 | done |
5234 | done |
dd184caf |
5235 | IFS=$as_save_IFS |
d9898ee8 |
5236 | |
5237 | fi |
5238 | fi |
5239 | CXX=$ac_cv_prog_CXX |
5240 | if test -n "$CXX"; then |
dd184caf |
5241 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5242 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5243 | else |
dd184caf |
5244 | { echo "$as_me:$LINENO: result: no" >&5 |
5245 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5246 | fi |
5247 | |
dd184caf |
5248 | |
d9898ee8 |
5249 | test -n "$CXX" && break |
5250 | done |
5251 | fi |
5252 | if test -z "$CXX"; then |
5253 | ac_ct_CXX=$CXX |
dd184caf |
5254 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5255 | do |
5256 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5257 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5258 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5260 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5262 | else |
5263 | if test -n "$ac_ct_CXX"; then |
5264 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5265 | else |
5266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5267 | for as_dir in $PATH |
5268 | do |
5269 | IFS=$as_save_IFS |
5270 | test -z "$as_dir" && as_dir=. |
5271 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5273 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5275 | break 2 |
5276 | fi |
5277 | done |
5278 | done |
dd184caf |
5279 | IFS=$as_save_IFS |
d9898ee8 |
5280 | |
5281 | fi |
5282 | fi |
5283 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5284 | if test -n "$ac_ct_CXX"; then |
dd184caf |
5285 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5286 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5287 | else |
dd184caf |
5288 | { echo "$as_me:$LINENO: result: no" >&5 |
5289 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5290 | fi |
5291 | |
dd184caf |
5292 | |
d9898ee8 |
5293 | test -n "$ac_ct_CXX" && break |
5294 | done |
d9898ee8 |
5295 | |
dd184caf |
5296 | if test "x$ac_ct_CXX" = x; then |
5297 | CXX="g++" |
5298 | else |
5299 | case $cross_compiling:$ac_tool_warned in |
5300 | yes:) |
5301 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5302 | whose name does not start with the host triplet. If you think this |
5303 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5304 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5305 | whose name does not start with the host triplet. If you think this |
5306 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5307 | ac_tool_warned=yes ;; |
5308 | esac |
5309 | CXX=$ac_ct_CXX |
5310 | fi |
d9898ee8 |
5311 | fi |
5312 | |
dd184caf |
5313 | fi |
5314 | fi |
d9898ee8 |
5315 | # Provide some information about the compiler. |
dd184caf |
5316 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5317 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
5318 | { (ac_try="$ac_compiler --version >&5" |
5319 | case "(($ac_try" in |
5320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5321 | *) ac_try_echo=$ac_try;; |
5322 | esac |
5323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5324 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5325 | ac_status=$? |
5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5327 | (exit $ac_status); } |
dd184caf |
5328 | { (ac_try="$ac_compiler -v >&5" |
5329 | case "(($ac_try" in |
5330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5331 | *) ac_try_echo=$ac_try;; |
5332 | esac |
5333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5334 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5335 | ac_status=$? |
5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5337 | (exit $ac_status); } |
dd184caf |
5338 | { (ac_try="$ac_compiler -V >&5" |
5339 | case "(($ac_try" in |
5340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5341 | *) ac_try_echo=$ac_try;; |
5342 | esac |
5343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5344 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5345 | ac_status=$? |
5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5347 | (exit $ac_status); } |
5348 | |
dd184caf |
5349 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5350 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5351 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5353 | else |
5354 | cat >conftest.$ac_ext <<_ACEOF |
5355 | /* confdefs.h. */ |
5356 | _ACEOF |
5357 | cat confdefs.h >>conftest.$ac_ext |
5358 | cat >>conftest.$ac_ext <<_ACEOF |
5359 | /* end confdefs.h. */ |
5360 | |
5361 | int |
5362 | main () |
5363 | { |
5364 | #ifndef __GNUC__ |
5365 | choke me |
5366 | #endif |
5367 | |
5368 | ; |
5369 | return 0; |
5370 | } |
5371 | _ACEOF |
5372 | rm -f conftest.$ac_objext |
dd184caf |
5373 | if { (ac_try="$ac_compile" |
5374 | case "(($ac_try" in |
5375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5376 | *) ac_try_echo=$ac_try;; |
5377 | esac |
5378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5379 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5380 | ac_status=$? |
5381 | grep -v '^ *+' conftest.er1 >conftest.err |
5382 | rm -f conftest.er1 |
5383 | cat conftest.err >&5 |
5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5385 | (exit $ac_status); } && { |
5386 | test -z "$ac_cxx_werror_flag" || |
5387 | test ! -s conftest.err |
5388 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5389 | ac_compiler_gnu=yes |
5390 | else |
5391 | echo "$as_me: failed program was:" >&5 |
5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
5393 | |
dd184caf |
5394 | ac_compiler_gnu=no |
d9898ee8 |
5395 | fi |
dd184caf |
5396 | |
5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5398 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5399 | |
5400 | fi |
dd184caf |
5401 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5402 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5403 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5404 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5405 | ac_save_CXXFLAGS=$CXXFLAGS |
dd184caf |
5406 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5407 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5408 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5410 | else |
dd184caf |
5411 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5412 | ac_cxx_werror_flag=yes |
5413 | ac_cv_prog_cxx_g=no |
5414 | CXXFLAGS="-g" |
5415 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5416 | /* confdefs.h. */ |
5417 | _ACEOF |
5418 | cat confdefs.h >>conftest.$ac_ext |
5419 | cat >>conftest.$ac_ext <<_ACEOF |
5420 | /* end confdefs.h. */ |
5421 | |
5422 | int |
5423 | main () |
5424 | { |
5425 | |
5426 | ; |
5427 | return 0; |
5428 | } |
5429 | _ACEOF |
5430 | rm -f conftest.$ac_objext |
dd184caf |
5431 | if { (ac_try="$ac_compile" |
5432 | case "(($ac_try" in |
5433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5434 | *) ac_try_echo=$ac_try;; |
5435 | esac |
5436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5437 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5438 | ac_status=$? |
5439 | grep -v '^ *+' conftest.er1 >conftest.err |
5440 | rm -f conftest.er1 |
5441 | cat conftest.err >&5 |
5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5443 | (exit $ac_status); } && { |
5444 | test -z "$ac_cxx_werror_flag" || |
5445 | test ! -s conftest.err |
5446 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5447 | ac_cv_prog_cxx_g=yes |
5448 | else |
5449 | echo "$as_me: failed program was:" >&5 |
5450 | sed 's/^/| /' conftest.$ac_ext >&5 |
5451 | |
dd184caf |
5452 | CXXFLAGS="" |
5453 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5454 | /* confdefs.h. */ |
5455 | _ACEOF |
5456 | cat confdefs.h >>conftest.$ac_ext |
5457 | cat >>conftest.$ac_ext <<_ACEOF |
5458 | /* end confdefs.h. */ |
dd184caf |
5459 | |
d9898ee8 |
5460 | int |
5461 | main () |
5462 | { |
dd184caf |
5463 | |
d9898ee8 |
5464 | ; |
5465 | return 0; |
5466 | } |
5467 | _ACEOF |
5468 | rm -f conftest.$ac_objext |
dd184caf |
5469 | if { (ac_try="$ac_compile" |
5470 | case "(($ac_try" in |
5471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5472 | *) ac_try_echo=$ac_try;; |
5473 | esac |
5474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5475 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5476 | ac_status=$? |
5477 | grep -v '^ *+' conftest.er1 >conftest.err |
5478 | rm -f conftest.er1 |
5479 | cat conftest.err >&5 |
5480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5481 | (exit $ac_status); } && { |
5482 | test -z "$ac_cxx_werror_flag" || |
5483 | test ! -s conftest.err |
5484 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5485 | : |
5486 | else |
5487 | echo "$as_me: failed program was:" >&5 |
5488 | sed 's/^/| /' conftest.$ac_ext >&5 |
5489 | |
dd184caf |
5490 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5491 | CXXFLAGS="-g" |
5492 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5493 | /* confdefs.h. */ |
5494 | _ACEOF |
5495 | cat confdefs.h >>conftest.$ac_ext |
5496 | cat >>conftest.$ac_ext <<_ACEOF |
5497 | /* end confdefs.h. */ |
dd184caf |
5498 | |
d9898ee8 |
5499 | int |
5500 | main () |
5501 | { |
dd184caf |
5502 | |
d9898ee8 |
5503 | ; |
5504 | return 0; |
5505 | } |
5506 | _ACEOF |
5507 | rm -f conftest.$ac_objext |
dd184caf |
5508 | if { (ac_try="$ac_compile" |
5509 | case "(($ac_try" in |
5510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5511 | *) ac_try_echo=$ac_try;; |
5512 | esac |
5513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5514 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5515 | ac_status=$? |
5516 | grep -v '^ *+' conftest.er1 >conftest.err |
5517 | rm -f conftest.er1 |
5518 | cat conftest.err >&5 |
5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5520 | (exit $ac_status); } && { |
5521 | test -z "$ac_cxx_werror_flag" || |
5522 | test ! -s conftest.err |
5523 | } && test -s conftest.$ac_objext; then |
5524 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5525 | else |
5526 | echo "$as_me: failed program was:" >&5 |
5527 | sed 's/^/| /' conftest.$ac_ext >&5 |
5528 | |
dd184caf |
5529 | |
d9898ee8 |
5530 | fi |
dd184caf |
5531 | |
5532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5533 | fi |
5534 | |
5535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5536 | fi |
5537 | |
dd184caf |
5538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5539 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5540 | fi |
5541 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5542 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5543 | if test "$ac_test_CXXFLAGS" = set; then |
5544 | CXXFLAGS=$ac_save_CXXFLAGS |
5545 | elif test $ac_cv_prog_cxx_g = yes; then |
5546 | if test "$GXX" = yes; then |
5547 | CXXFLAGS="-g -O2" |
5548 | else |
5549 | CXXFLAGS="-g" |
5550 | fi |
5551 | else |
5552 | if test "$GXX" = yes; then |
5553 | CXXFLAGS="-O2" |
5554 | else |
5555 | CXXFLAGS= |
5556 | fi |
5557 | fi |
5558 | ac_ext=cpp |
d9898ee8 |
5559 | ac_cpp='$CXXCPP $CPPFLAGS' |
5560 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5561 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5562 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5563 | |
5564 | depcc="$CXX" am_compiler_list= |
5565 | |
dd184caf |
5566 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5567 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5568 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5570 | else |
5571 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5572 | # We make a subdir and do the tests there. Otherwise we can end up |
5573 | # making bogus files that we don't know about and never remove. For |
5574 | # instance it was reported that on HP-UX the gcc test will end up |
5575 | # making a dummy file named `D' -- because `-MD' means `put the output |
5576 | # in D'. |
5577 | mkdir conftest.dir |
5578 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5579 | # using a relative directory. |
5580 | cp "$am_depcomp" conftest.dir |
5581 | cd conftest.dir |
5582 | # We will build objects and dependencies in a subdirectory because |
5583 | # it helps to detect inapplicable dependency modes. For instance |
5584 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5585 | # side effect of compilation, but ICC will put the dependencies in |
5586 | # the current directory while Tru64 will put them in the object |
5587 | # directory. |
5588 | mkdir sub |
5589 | |
5590 | am_cv_CXX_dependencies_compiler_type=none |
5591 | if test "$am_compiler_list" = ""; then |
5592 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5593 | fi |
5594 | for depmode in $am_compiler_list; do |
5595 | # Setup a source with many dependencies, because some compilers |
5596 | # like to wrap large dependency lists on column 80 (with \), and |
5597 | # we should not choose a depcomp mode which is confused by this. |
5598 | # |
5599 | # We need to recreate these files for each test, as the compiler may |
5600 | # overwrite some of them when testing with obscure command lines. |
5601 | # This happens at least with the AIX C compiler. |
5602 | : > sub/conftest.c |
5603 | for i in 1 2 3 4 5 6; do |
5604 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5605 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5606 | # Solaris 8's {/usr,}/bin/sh. |
5607 | touch sub/conftst$i.h |
5608 | done |
5609 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5610 | |
5611 | case $depmode in |
5612 | nosideeffect) |
5613 | # after this tag, mechanisms are not by side-effect, so they'll |
5614 | # only be used when explicitly requested |
5615 | if test "x$enable_dependency_tracking" = xyes; then |
5616 | continue |
5617 | else |
5618 | break |
5619 | fi |
5620 | ;; |
5621 | none) break ;; |
5622 | esac |
5623 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5624 | # mode. It turns out that the SunPro C++ compiler does not properly |
5625 | # handle `-M -o', and we need to detect this. |
5626 | if depmode=$depmode \ |
5627 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5628 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5629 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5630 | >/dev/null 2>conftest.err && |
dd184caf |
5631 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5632 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5633 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5634 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5635 | # icc doesn't choke on unknown options, it will just issue warnings |
5636 | # or remarks (even with -Werror). So we grep stderr for any message |
5637 | # that says an option was ignored or not supported. |
5638 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5639 | # icc: Command line warning: ignoring option '-M'; no argument required |
5640 | # The diagnosis changed in icc 8.0: |
5641 | # icc: Command line remark: option '-MP' not supported |
5642 | if (grep 'ignoring option' conftest.err || |
5643 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5644 | am_cv_CXX_dependencies_compiler_type=$depmode |
5645 | break |
5646 | fi |
5647 | fi |
5648 | done |
5649 | |
5650 | cd .. |
5651 | rm -rf conftest.dir |
5652 | else |
5653 | am_cv_CXX_dependencies_compiler_type=none |
5654 | fi |
5655 | |
5656 | fi |
dd184caf |
5657 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5658 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5659 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5660 | |
dd184caf |
5661 | if |
d9898ee8 |
5662 | test "x$enable_dependency_tracking" != xno \ |
5663 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5664 | am__fastdepCXX_TRUE= |
5665 | am__fastdepCXX_FALSE='#' |
5666 | else |
5667 | am__fastdepCXX_TRUE='#' |
5668 | am__fastdepCXX_FALSE= |
5669 | fi |
5670 | |
5671 | |
5672 | |
5673 | |
5674 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5675 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5676 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
5677 | ac_ext=cpp |
d9898ee8 |
5678 | ac_cpp='$CXXCPP $CPPFLAGS' |
5679 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5680 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5681 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5682 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5683 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5684 | if test -z "$CXXCPP"; then |
5685 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5687 | else |
5688 | # Double quotes because CXXCPP needs to be expanded |
5689 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5690 | do |
5691 | ac_preproc_ok=false |
5692 | for ac_cxx_preproc_warn_flag in '' yes |
5693 | do |
5694 | # Use a header file that comes with gcc, so configuring glibc |
5695 | # with a fresh cross-compiler works. |
5696 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5697 | # <limits.h> exists even on freestanding compilers. |
5698 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5699 | # not just through cpp. "Syntax error" is here to catch this case. |
5700 | cat >conftest.$ac_ext <<_ACEOF |
5701 | /* confdefs.h. */ |
5702 | _ACEOF |
5703 | cat confdefs.h >>conftest.$ac_ext |
5704 | cat >>conftest.$ac_ext <<_ACEOF |
5705 | /* end confdefs.h. */ |
5706 | #ifdef __STDC__ |
5707 | # include <limits.h> |
5708 | #else |
5709 | # include <assert.h> |
5710 | #endif |
5711 | Syntax error |
5712 | _ACEOF |
dd184caf |
5713 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5714 | case "(($ac_try" in |
5715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5716 | *) ac_try_echo=$ac_try;; |
5717 | esac |
5718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5719 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5720 | ac_status=$? |
5721 | grep -v '^ *+' conftest.er1 >conftest.err |
5722 | rm -f conftest.er1 |
5723 | cat conftest.err >&5 |
5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5725 | (exit $ac_status); } >/dev/null && { |
5726 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5727 | test ! -s conftest.err |
5728 | }; then |
d9898ee8 |
5729 | : |
5730 | else |
5731 | echo "$as_me: failed program was:" >&5 |
5732 | sed 's/^/| /' conftest.$ac_ext >&5 |
5733 | |
5734 | # Broken: fails on valid input. |
5735 | continue |
5736 | fi |
dd184caf |
5737 | |
d9898ee8 |
5738 | rm -f conftest.err conftest.$ac_ext |
5739 | |
dd184caf |
5740 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5741 | # can be detected and how. |
5742 | cat >conftest.$ac_ext <<_ACEOF |
5743 | /* confdefs.h. */ |
5744 | _ACEOF |
5745 | cat confdefs.h >>conftest.$ac_ext |
5746 | cat >>conftest.$ac_ext <<_ACEOF |
5747 | /* end confdefs.h. */ |
5748 | #include <ac_nonexistent.h> |
5749 | _ACEOF |
dd184caf |
5750 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5751 | case "(($ac_try" in |
5752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5753 | *) ac_try_echo=$ac_try;; |
5754 | esac |
5755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5756 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5757 | ac_status=$? |
5758 | grep -v '^ *+' conftest.er1 >conftest.err |
5759 | rm -f conftest.er1 |
5760 | cat conftest.err >&5 |
5761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5762 | (exit $ac_status); } >/dev/null && { |
5763 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5764 | test ! -s conftest.err |
5765 | }; then |
d9898ee8 |
5766 | # Broken: success on invalid input. |
5767 | continue |
5768 | else |
5769 | echo "$as_me: failed program was:" >&5 |
5770 | sed 's/^/| /' conftest.$ac_ext >&5 |
5771 | |
5772 | # Passes both tests. |
5773 | ac_preproc_ok=: |
5774 | break |
5775 | fi |
dd184caf |
5776 | |
d9898ee8 |
5777 | rm -f conftest.err conftest.$ac_ext |
5778 | |
5779 | done |
5780 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5781 | rm -f conftest.err conftest.$ac_ext |
5782 | if $ac_preproc_ok; then |
5783 | break |
5784 | fi |
5785 | |
5786 | done |
5787 | ac_cv_prog_CXXCPP=$CXXCPP |
5788 | |
5789 | fi |
5790 | CXXCPP=$ac_cv_prog_CXXCPP |
5791 | else |
5792 | ac_cv_prog_CXXCPP=$CXXCPP |
5793 | fi |
dd184caf |
5794 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5795 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
5796 | ac_preproc_ok=false |
5797 | for ac_cxx_preproc_warn_flag in '' yes |
5798 | do |
5799 | # Use a header file that comes with gcc, so configuring glibc |
5800 | # with a fresh cross-compiler works. |
5801 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5802 | # <limits.h> exists even on freestanding compilers. |
5803 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5804 | # not just through cpp. "Syntax error" is here to catch this case. |
5805 | cat >conftest.$ac_ext <<_ACEOF |
5806 | /* confdefs.h. */ |
5807 | _ACEOF |
5808 | cat confdefs.h >>conftest.$ac_ext |
5809 | cat >>conftest.$ac_ext <<_ACEOF |
5810 | /* end confdefs.h. */ |
5811 | #ifdef __STDC__ |
5812 | # include <limits.h> |
5813 | #else |
5814 | # include <assert.h> |
5815 | #endif |
5816 | Syntax error |
5817 | _ACEOF |
dd184caf |
5818 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5819 | case "(($ac_try" in |
5820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5821 | *) ac_try_echo=$ac_try;; |
5822 | esac |
5823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5824 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5825 | ac_status=$? |
5826 | grep -v '^ *+' conftest.er1 >conftest.err |
5827 | rm -f conftest.er1 |
5828 | cat conftest.err >&5 |
5829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5830 | (exit $ac_status); } >/dev/null && { |
5831 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5832 | test ! -s conftest.err |
5833 | }; then |
d9898ee8 |
5834 | : |
5835 | else |
5836 | echo "$as_me: failed program was:" >&5 |
5837 | sed 's/^/| /' conftest.$ac_ext >&5 |
5838 | |
5839 | # Broken: fails on valid input. |
5840 | continue |
5841 | fi |
dd184caf |
5842 | |
d9898ee8 |
5843 | rm -f conftest.err conftest.$ac_ext |
5844 | |
dd184caf |
5845 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5846 | # can be detected and how. |
5847 | cat >conftest.$ac_ext <<_ACEOF |
5848 | /* confdefs.h. */ |
5849 | _ACEOF |
5850 | cat confdefs.h >>conftest.$ac_ext |
5851 | cat >>conftest.$ac_ext <<_ACEOF |
5852 | /* end confdefs.h. */ |
5853 | #include <ac_nonexistent.h> |
5854 | _ACEOF |
dd184caf |
5855 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5856 | case "(($ac_try" in |
5857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5858 | *) ac_try_echo=$ac_try;; |
5859 | esac |
5860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5861 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5862 | ac_status=$? |
5863 | grep -v '^ *+' conftest.er1 >conftest.err |
5864 | rm -f conftest.er1 |
5865 | cat conftest.err >&5 |
5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5867 | (exit $ac_status); } >/dev/null && { |
5868 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5869 | test ! -s conftest.err |
5870 | }; then |
d9898ee8 |
5871 | # Broken: success on invalid input. |
5872 | continue |
5873 | else |
5874 | echo "$as_me: failed program was:" >&5 |
5875 | sed 's/^/| /' conftest.$ac_ext >&5 |
5876 | |
5877 | # Passes both tests. |
5878 | ac_preproc_ok=: |
5879 | break |
5880 | fi |
dd184caf |
5881 | |
d9898ee8 |
5882 | rm -f conftest.err conftest.$ac_ext |
5883 | |
5884 | done |
5885 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5886 | rm -f conftest.err conftest.$ac_ext |
5887 | if $ac_preproc_ok; then |
5888 | : |
5889 | else |
5890 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5891 | See \`config.log' for more details." >&5 |
5892 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5893 | See \`config.log' for more details." >&2;} |
5894 | { (exit 1); exit 1; }; } |
5895 | fi |
5896 | |
dd184caf |
5897 | ac_ext=cpp |
d9898ee8 |
5898 | ac_cpp='$CXXCPP $CPPFLAGS' |
5899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5901 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5902 | |
5903 | fi |
5904 | |
5905 | |
5906 | ac_ext=f |
5907 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5908 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5909 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5910 | if test -n "$ac_tool_prefix"; then |
dd184caf |
5911 | 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 |
5912 | do |
5913 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5914 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5915 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5917 | if test "${ac_cv_prog_F77+set}" = set; then |
5918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5919 | else |
5920 | if test -n "$F77"; then |
5921 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5922 | else |
5923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5924 | for as_dir in $PATH |
5925 | do |
5926 | IFS=$as_save_IFS |
5927 | test -z "$as_dir" && as_dir=. |
5928 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5930 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5932 | break 2 |
5933 | fi |
5934 | done |
5935 | done |
dd184caf |
5936 | IFS=$as_save_IFS |
d9898ee8 |
5937 | |
5938 | fi |
5939 | fi |
5940 | F77=$ac_cv_prog_F77 |
5941 | if test -n "$F77"; then |
dd184caf |
5942 | { echo "$as_me:$LINENO: result: $F77" >&5 |
5943 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
5944 | else |
dd184caf |
5945 | { echo "$as_me:$LINENO: result: no" >&5 |
5946 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5947 | fi |
5948 | |
dd184caf |
5949 | |
d9898ee8 |
5950 | test -n "$F77" && break |
5951 | done |
5952 | fi |
5953 | if test -z "$F77"; then |
5954 | ac_ct_F77=$F77 |
dd184caf |
5955 | 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 |
5956 | do |
5957 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5958 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5959 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5961 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5963 | else |
5964 | if test -n "$ac_ct_F77"; then |
5965 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5966 | else |
5967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5968 | for as_dir in $PATH |
5969 | do |
5970 | IFS=$as_save_IFS |
5971 | test -z "$as_dir" && as_dir=. |
5972 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5974 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5976 | break 2 |
5977 | fi |
5978 | done |
5979 | done |
dd184caf |
5980 | IFS=$as_save_IFS |
d9898ee8 |
5981 | |
5982 | fi |
5983 | fi |
5984 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5985 | if test -n "$ac_ct_F77"; then |
dd184caf |
5986 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5987 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
5988 | else |
dd184caf |
5989 | { echo "$as_me:$LINENO: result: no" >&5 |
5990 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5991 | fi |
5992 | |
dd184caf |
5993 | |
d9898ee8 |
5994 | test -n "$ac_ct_F77" && break |
5995 | done |
5996 | |
dd184caf |
5997 | if test "x$ac_ct_F77" = x; then |
5998 | F77="" |
5999 | else |
6000 | case $cross_compiling:$ac_tool_warned in |
6001 | yes:) |
6002 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6003 | whose name does not start with the host triplet. If you think this |
6004 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6005 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6006 | whose name does not start with the host triplet. If you think this |
6007 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6008 | ac_tool_warned=yes ;; |
6009 | esac |
6010 | F77=$ac_ct_F77 |
6011 | fi |
d9898ee8 |
6012 | fi |
6013 | |
6014 | |
6015 | # Provide some information about the compiler. |
dd184caf |
6016 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6017 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
6018 | { (ac_try="$ac_compiler --version >&5" |
6019 | case "(($ac_try" in |
6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6021 | *) ac_try_echo=$ac_try;; |
6022 | esac |
6023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6024 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6025 | ac_status=$? |
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6027 | (exit $ac_status); } |
dd184caf |
6028 | { (ac_try="$ac_compiler -v >&5" |
6029 | case "(($ac_try" in |
6030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6031 | *) ac_try_echo=$ac_try;; |
6032 | esac |
6033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6034 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6035 | ac_status=$? |
6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6037 | (exit $ac_status); } |
dd184caf |
6038 | { (ac_try="$ac_compiler -V >&5" |
6039 | case "(($ac_try" in |
6040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6041 | *) ac_try_echo=$ac_try;; |
6042 | esac |
6043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6044 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6045 | ac_status=$? |
6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6047 | (exit $ac_status); } |
6048 | rm -f a.out |
6049 | |
6050 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6051 | # input file. (Note that this only needs to work for GNU compilers.) |
6052 | ac_save_ext=$ac_ext |
6053 | ac_ext=F |
dd184caf |
6054 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6055 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6056 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6058 | else |
6059 | cat >conftest.$ac_ext <<_ACEOF |
6060 | program main |
6061 | #ifndef __GNUC__ |
6062 | choke me |
6063 | #endif |
6064 | |
6065 | end |
6066 | _ACEOF |
6067 | rm -f conftest.$ac_objext |
dd184caf |
6068 | if { (ac_try="$ac_compile" |
6069 | case "(($ac_try" in |
6070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6071 | *) ac_try_echo=$ac_try;; |
6072 | esac |
6073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6074 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6075 | ac_status=$? |
6076 | grep -v '^ *+' conftest.er1 >conftest.err |
6077 | rm -f conftest.er1 |
6078 | cat conftest.err >&5 |
6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6080 | (exit $ac_status); } && { |
6081 | test -z "$ac_f77_werror_flag" || |
6082 | test ! -s conftest.err |
6083 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6084 | ac_compiler_gnu=yes |
6085 | else |
6086 | echo "$as_me: failed program was:" >&5 |
6087 | sed 's/^/| /' conftest.$ac_ext >&5 |
6088 | |
dd184caf |
6089 | ac_compiler_gnu=no |
d9898ee8 |
6090 | fi |
dd184caf |
6091 | |
6092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6093 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6094 | |
6095 | fi |
dd184caf |
6096 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6097 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6098 | ac_ext=$ac_save_ext |
6099 | ac_test_FFLAGS=${FFLAGS+set} |
6100 | ac_save_FFLAGS=$FFLAGS |
6101 | FFLAGS= |
dd184caf |
6102 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6103 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6104 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6106 | else |
6107 | FFLAGS=-g |
6108 | cat >conftest.$ac_ext <<_ACEOF |
6109 | program main |
6110 | |
6111 | end |
6112 | _ACEOF |
6113 | rm -f conftest.$ac_objext |
dd184caf |
6114 | if { (ac_try="$ac_compile" |
6115 | case "(($ac_try" in |
6116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6117 | *) ac_try_echo=$ac_try;; |
6118 | esac |
6119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6120 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6121 | ac_status=$? |
6122 | grep -v '^ *+' conftest.er1 >conftest.err |
6123 | rm -f conftest.er1 |
6124 | cat conftest.err >&5 |
6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6126 | (exit $ac_status); } && { |
6127 | test -z "$ac_f77_werror_flag" || |
6128 | test ! -s conftest.err |
6129 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6130 | ac_cv_prog_f77_g=yes |
6131 | else |
6132 | echo "$as_me: failed program was:" >&5 |
6133 | sed 's/^/| /' conftest.$ac_ext >&5 |
6134 | |
dd184caf |
6135 | ac_cv_prog_f77_g=no |
d9898ee8 |
6136 | fi |
dd184caf |
6137 | |
6138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6139 | |
6140 | fi |
dd184caf |
6141 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6142 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6143 | if test "$ac_test_FFLAGS" = set; then |
6144 | FFLAGS=$ac_save_FFLAGS |
6145 | elif test $ac_cv_prog_f77_g = yes; then |
6146 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6147 | FFLAGS="-g -O2" |
6148 | else |
6149 | FFLAGS="-g" |
6150 | fi |
6151 | else |
6152 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6153 | FFLAGS="-O2" |
6154 | else |
6155 | FFLAGS= |
6156 | fi |
6157 | fi |
6158 | |
6159 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6160 | ac_ext=c |
6161 | ac_cpp='$CPP $CPPFLAGS' |
6162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6165 | |
6166 | |
6167 | |
6168 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6169 | |
6170 | # find the maximum length of command line arguments |
dd184caf |
6171 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6172 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6173 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6175 | else |
6176 | i=0 |
6177 | teststring="ABCD" |
6178 | |
6179 | case $build_os in |
6180 | msdosdjgpp*) |
6181 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6182 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6183 | # during glob expansion). Even if it were fixed, the result of this |
6184 | # check would be larger than it should be. |
6185 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6186 | ;; |
6187 | |
6188 | gnu*) |
6189 | # Under GNU Hurd, this test is not required because there is |
6190 | # no limit to the length of command line arguments. |
6191 | # Libtool will interpret -1 as no limit whatsoever |
6192 | lt_cv_sys_max_cmd_len=-1; |
6193 | ;; |
6194 | |
6195 | cygwin* | mingw*) |
6196 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6197 | # about 5 minutes as the teststring grows exponentially. |
6198 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6199 | # you end up with a "frozen" computer, even though with patience |
6200 | # the test eventually succeeds (with a max line length of 256k). |
6201 | # Instead, let's just punt: use the minimum linelength reported by |
6202 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6203 | lt_cv_sys_max_cmd_len=8192; |
6204 | ;; |
6205 | |
6206 | amigaos*) |
6207 | # On AmigaOS with pdksh, this test takes hours, literally. |
6208 | # So we just punt and use a minimum line length of 8192. |
6209 | lt_cv_sys_max_cmd_len=8192; |
6210 | ;; |
6211 | |
6212 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6213 | # This has been around since 386BSD, at least. Likely further. |
6214 | if test -x /sbin/sysctl; then |
6215 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6216 | elif test -x /usr/sbin/sysctl; then |
6217 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6218 | else |
6219 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6220 | fi |
6221 | # And add a safety zone |
6222 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6223 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6224 | ;; |
6225 | |
6226 | interix*) |
6227 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6228 | lt_cv_sys_max_cmd_len=196608 |
6229 | ;; |
6230 | |
6231 | osf*) |
6232 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6233 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6234 | # nice to cause kernel panics so lets avoid the loop below. |
6235 | # First set a reasonable default. |
6236 | lt_cv_sys_max_cmd_len=16384 |
6237 | # |
6238 | if test -x /sbin/sysconfig; then |
6239 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6240 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6241 | esac |
6242 | fi |
6243 | ;; |
6244 | sco3.2v5*) |
6245 | lt_cv_sys_max_cmd_len=102400 |
6246 | ;; |
6247 | sysv5* | sco5v6* | sysv4.2uw2*) |
6248 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6249 | if test -n "$kargmax"; then |
6250 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6251 | else |
6252 | lt_cv_sys_max_cmd_len=32768 |
6253 | fi |
6254 | ;; |
6255 | *) |
ac40fd9e |
6256 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6257 | if test -n "$lt_cv_sys_max_cmd_len"; then |
6258 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6259 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6260 | else |
6261 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6262 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
d9898ee8 |
6263 | = "XX$teststring") >/dev/null 2>&1 && |
ac40fd9e |
6264 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6265 | lt_cv_sys_max_cmd_len=$new_result && |
6266 | test $i != 17 # 1/2 MB should be enough |
6267 | do |
6268 | i=`expr $i + 1` |
6269 | teststring=$teststring$teststring |
6270 | done |
6271 | teststring= |
6272 | # Add a significant safety factor because C++ compilers can tack on massive |
6273 | # amounts of additional arguments before passing them to the linker. |
6274 | # It appears as though 1/2 is a usable value. |
6275 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6276 | fi |
d9898ee8 |
6277 | ;; |
6278 | esac |
6279 | |
6280 | fi |
6281 | |
6282 | if test -n $lt_cv_sys_max_cmd_len ; then |
dd184caf |
6283 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6284 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6285 | else |
dd184caf |
6286 | { echo "$as_me:$LINENO: result: none" >&5 |
6287 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6288 | fi |
6289 | |
6290 | |
6291 | |
6292 | |
ac40fd9e |
6293 | |
d9898ee8 |
6294 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
dd184caf |
6295 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6296 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6297 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6299 | else |
6300 | |
6301 | # These are sane defaults that work on at least a few old systems. |
6302 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6303 | |
6304 | # Character class describing NM global symbol codes. |
6305 | symcode='[BCDEGRST]' |
6306 | |
6307 | # Regexp to match symbols that can be accessed directly from C. |
6308 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6309 | |
6310 | # Transform an extracted symbol line into a proper C declaration |
6311 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6312 | |
6313 | # Transform an extracted symbol line into symbol name and symbol address |
6314 | 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'" |
6315 | |
6316 | # Define system-specific variables. |
6317 | case $host_os in |
6318 | aix*) |
6319 | symcode='[BCDT]' |
6320 | ;; |
6321 | cygwin* | mingw* | pw32*) |
6322 | symcode='[ABCDGISTW]' |
6323 | ;; |
6324 | hpux*) # Its linker distinguishes data from code symbols |
6325 | if test "$host_cpu" = ia64; then |
6326 | symcode='[ABCDEGRST]' |
6327 | fi |
6328 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6329 | 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'" |
6330 | ;; |
ac40fd9e |
6331 | linux* | k*bsd*-gnu) |
d9898ee8 |
6332 | if test "$host_cpu" = ia64; then |
6333 | symcode='[ABCDGIRSTW]' |
6334 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6335 | 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'" |
6336 | fi |
6337 | ;; |
6338 | irix* | nonstopux*) |
6339 | symcode='[BCDEGRST]' |
6340 | ;; |
6341 | osf*) |
6342 | symcode='[BCDEGQRST]' |
6343 | ;; |
6344 | solaris*) |
6345 | symcode='[BDRT]' |
6346 | ;; |
6347 | sco3.2v5*) |
6348 | symcode='[DT]' |
6349 | ;; |
6350 | sysv4.2uw2*) |
6351 | symcode='[DT]' |
6352 | ;; |
6353 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6354 | symcode='[ABDT]' |
6355 | ;; |
6356 | sysv4) |
6357 | symcode='[DFNSTU]' |
6358 | ;; |
6359 | esac |
6360 | |
6361 | # Handle CRLF in mingw tool chain |
6362 | opt_cr= |
6363 | case $build_os in |
6364 | mingw*) |
6365 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6366 | ;; |
6367 | esac |
6368 | |
6369 | # If we're using GNU nm, then use its standard symbol codes. |
6370 | case `$NM -V 2>&1` in |
6371 | *GNU* | *'with BFD'*) |
6372 | symcode='[ABCDGIRSTW]' ;; |
6373 | esac |
6374 | |
6375 | # Try without a prefix undercore, then with it. |
6376 | for ac_symprfx in "" "_"; do |
6377 | |
6378 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6379 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6380 | |
6381 | # Write the raw and C identifiers. |
6382 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6383 | |
6384 | # Check to see that the pipe works correctly. |
6385 | pipe_works=no |
6386 | |
6387 | rm -f conftest* |
6388 | cat > conftest.$ac_ext <<EOF |
6389 | #ifdef __cplusplus |
6390 | extern "C" { |
6391 | #endif |
6392 | char nm_test_var; |
6393 | void nm_test_func(){} |
6394 | #ifdef __cplusplus |
6395 | } |
6396 | #endif |
6397 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6398 | EOF |
6399 | |
6400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6401 | (eval $ac_compile) 2>&5 |
6402 | ac_status=$? |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6404 | (exit $ac_status); }; then |
6405 | # Now try to grab the symbols. |
6406 | nlist=conftest.nm |
6407 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6408 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6409 | ac_status=$? |
6410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6411 | (exit $ac_status); } && test -s "$nlist"; then |
6412 | # Try sorting and uniquifying the output. |
6413 | if sort "$nlist" | uniq > "$nlist"T; then |
6414 | mv -f "$nlist"T "$nlist" |
6415 | else |
6416 | rm -f "$nlist"T |
6417 | fi |
6418 | |
6419 | # Make sure that we snagged all the symbols we need. |
6420 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6421 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6422 | cat <<EOF > conftest.$ac_ext |
6423 | #ifdef __cplusplus |
6424 | extern "C" { |
6425 | #endif |
6426 | |
6427 | EOF |
6428 | # Now generate the symbol file. |
6429 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6430 | |
6431 | cat <<EOF >> conftest.$ac_ext |
6432 | #if defined (__STDC__) && __STDC__ |
6433 | # define lt_ptr_t void * |
6434 | #else |
6435 | # define lt_ptr_t char * |
6436 | # define const |
6437 | #endif |
6438 | |
6439 | /* The mapping between symbol names and symbols. */ |
6440 | const struct { |
6441 | const char *name; |
6442 | lt_ptr_t address; |
6443 | } |
6444 | lt_preloaded_symbols[] = |
6445 | { |
6446 | EOF |
6447 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6448 | cat <<\EOF >> conftest.$ac_ext |
6449 | {0, (lt_ptr_t) 0} |
6450 | }; |
6451 | |
6452 | #ifdef __cplusplus |
6453 | } |
6454 | #endif |
6455 | EOF |
6456 | # Now try linking the two files. |
6457 | mv conftest.$ac_objext conftstm.$ac_objext |
6458 | lt_save_LIBS="$LIBS" |
6459 | lt_save_CFLAGS="$CFLAGS" |
6460 | LIBS="conftstm.$ac_objext" |
6461 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6463 | (eval $ac_link) 2>&5 |
6464 | ac_status=$? |
6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6466 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6467 | pipe_works=yes |
6468 | fi |
6469 | LIBS="$lt_save_LIBS" |
6470 | CFLAGS="$lt_save_CFLAGS" |
6471 | else |
6472 | echo "cannot find nm_test_func in $nlist" >&5 |
6473 | fi |
6474 | else |
6475 | echo "cannot find nm_test_var in $nlist" >&5 |
6476 | fi |
6477 | else |
6478 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6479 | fi |
6480 | else |
6481 | echo "$progname: failed program was:" >&5 |
6482 | cat conftest.$ac_ext >&5 |
6483 | fi |
6484 | rm -f conftest* conftst* |
6485 | |
6486 | # Do not use the global_symbol_pipe unless it works. |
6487 | if test "$pipe_works" = yes; then |
6488 | break |
6489 | else |
6490 | lt_cv_sys_global_symbol_pipe= |
6491 | fi |
6492 | done |
6493 | |
6494 | fi |
6495 | |
6496 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6497 | lt_cv_sys_global_symbol_to_cdecl= |
6498 | fi |
6499 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
dd184caf |
6500 | { echo "$as_me:$LINENO: result: failed" >&5 |
6501 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6502 | else |
dd184caf |
6503 | { echo "$as_me:$LINENO: result: ok" >&5 |
6504 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6505 | fi |
6506 | |
dd184caf |
6507 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6508 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6509 | if test "${lt_cv_objdir+set}" = set; then |
6510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6511 | else |
6512 | rm -f .libs 2>/dev/null |
6513 | mkdir .libs 2>/dev/null |
6514 | if test -d .libs; then |
6515 | lt_cv_objdir=.libs |
6516 | else |
6517 | # MS-DOS does not allow filenames that begin with a dot. |
6518 | lt_cv_objdir=_libs |
6519 | fi |
6520 | rmdir .libs 2>/dev/null |
6521 | fi |
dd184caf |
6522 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6523 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6524 | objdir=$lt_cv_objdir |
6525 | |
6526 | |
6527 | |
6528 | |
6529 | |
6530 | case $host_os in |
6531 | aix3*) |
6532 | # AIX sometimes has problems with the GCC collect2 program. For some |
6533 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6534 | # vanish in a puff of smoke. |
6535 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6536 | COLLECT_NAMES= |
6537 | export COLLECT_NAMES |
6538 | fi |
6539 | ;; |
6540 | esac |
6541 | |
6542 | # Sed substitution that helps us do robust quoting. It backslashifies |
6543 | # metacharacters that are still active within double-quoted strings. |
6544 | Xsed='sed -e 1s/^X//' |
6545 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6546 | |
6547 | # Same as above, but do not quote variable references. |
6548 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6549 | |
6550 | # Sed substitution to delay expansion of an escaped shell variable in a |
6551 | # double_quote_subst'ed string. |
6552 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6553 | |
6554 | # Sed substitution to avoid accidental globbing in evaled expressions |
6555 | no_glob_subst='s/\*/\\\*/g' |
6556 | |
6557 | # Constants: |
6558 | rm="rm -f" |
6559 | |
6560 | # Global variables: |
6561 | default_ofile=libtool |
6562 | can_build_shared=yes |
6563 | |
6564 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6565 | # which needs '.lib'). |
6566 | libext=a |
6567 | ltmain="$ac_aux_dir/ltmain.sh" |
6568 | ofile="$default_ofile" |
6569 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6570 | |
6571 | if test -n "$ac_tool_prefix"; then |
6572 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6573 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
dd184caf |
6574 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6576 | if test "${ac_cv_prog_AR+set}" = set; then |
6577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6578 | else |
6579 | if test -n "$AR"; then |
6580 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6581 | else |
6582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6583 | for as_dir in $PATH |
6584 | do |
6585 | IFS=$as_save_IFS |
6586 | test -z "$as_dir" && as_dir=. |
6587 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6589 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6591 | break 2 |
6592 | fi |
6593 | done |
6594 | done |
dd184caf |
6595 | IFS=$as_save_IFS |
d9898ee8 |
6596 | |
6597 | fi |
6598 | fi |
6599 | AR=$ac_cv_prog_AR |
6600 | if test -n "$AR"; then |
dd184caf |
6601 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6602 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6603 | else |
dd184caf |
6604 | { echo "$as_me:$LINENO: result: no" >&5 |
6605 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6606 | fi |
6607 | |
dd184caf |
6608 | |
d9898ee8 |
6609 | fi |
6610 | if test -z "$ac_cv_prog_AR"; then |
6611 | ac_ct_AR=$AR |
6612 | # Extract the first word of "ar", so it can be a program name with args. |
6613 | set dummy ar; ac_word=$2 |
dd184caf |
6614 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6616 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6618 | else |
6619 | if test -n "$ac_ct_AR"; then |
6620 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6621 | else |
6622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6623 | for as_dir in $PATH |
6624 | do |
6625 | IFS=$as_save_IFS |
6626 | test -z "$as_dir" && as_dir=. |
6627 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6629 | ac_cv_prog_ac_ct_AR="ar" |
6630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6631 | break 2 |
6632 | fi |
6633 | done |
6634 | done |
dd184caf |
6635 | IFS=$as_save_IFS |
d9898ee8 |
6636 | |
d9898ee8 |
6637 | fi |
6638 | fi |
6639 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6640 | if test -n "$ac_ct_AR"; then |
dd184caf |
6641 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6642 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6643 | else |
dd184caf |
6644 | { echo "$as_me:$LINENO: result: no" >&5 |
6645 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6646 | fi |
6647 | |
dd184caf |
6648 | if test "x$ac_ct_AR" = x; then |
6649 | AR="false" |
6650 | else |
6651 | case $cross_compiling:$ac_tool_warned in |
6652 | yes:) |
6653 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6654 | whose name does not start with the host triplet. If you think this |
6655 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6656 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6657 | whose name does not start with the host triplet. If you think this |
6658 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6659 | ac_tool_warned=yes ;; |
6660 | esac |
6661 | AR=$ac_ct_AR |
6662 | fi |
d9898ee8 |
6663 | else |
6664 | AR="$ac_cv_prog_AR" |
6665 | fi |
6666 | |
6667 | if test -n "$ac_tool_prefix"; then |
6668 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6669 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
dd184caf |
6670 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6672 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6674 | else |
6675 | if test -n "$RANLIB"; then |
6676 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6677 | else |
6678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6679 | for as_dir in $PATH |
6680 | do |
6681 | IFS=$as_save_IFS |
6682 | test -z "$as_dir" && as_dir=. |
6683 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6685 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6687 | break 2 |
6688 | fi |
6689 | done |
6690 | done |
dd184caf |
6691 | IFS=$as_save_IFS |
d9898ee8 |
6692 | |
6693 | fi |
6694 | fi |
6695 | RANLIB=$ac_cv_prog_RANLIB |
6696 | if test -n "$RANLIB"; then |
dd184caf |
6697 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6698 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6699 | else |
dd184caf |
6700 | { echo "$as_me:$LINENO: result: no" >&5 |
6701 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6702 | fi |
6703 | |
dd184caf |
6704 | |
d9898ee8 |
6705 | fi |
6706 | if test -z "$ac_cv_prog_RANLIB"; then |
6707 | ac_ct_RANLIB=$RANLIB |
6708 | # Extract the first word of "ranlib", so it can be a program name with args. |
6709 | set dummy ranlib; ac_word=$2 |
dd184caf |
6710 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6712 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6714 | else |
6715 | if test -n "$ac_ct_RANLIB"; then |
6716 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6717 | else |
6718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6719 | for as_dir in $PATH |
6720 | do |
6721 | IFS=$as_save_IFS |
6722 | test -z "$as_dir" && as_dir=. |
6723 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6725 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6727 | break 2 |
6728 | fi |
6729 | done |
6730 | done |
dd184caf |
6731 | IFS=$as_save_IFS |
d9898ee8 |
6732 | |
d9898ee8 |
6733 | fi |
6734 | fi |
6735 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6736 | if test -n "$ac_ct_RANLIB"; then |
dd184caf |
6737 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6738 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6739 | else |
dd184caf |
6740 | { echo "$as_me:$LINENO: result: no" >&5 |
6741 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6742 | fi |
6743 | |
dd184caf |
6744 | if test "x$ac_ct_RANLIB" = x; then |
6745 | RANLIB=":" |
6746 | else |
6747 | case $cross_compiling:$ac_tool_warned in |
6748 | yes:) |
6749 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6750 | whose name does not start with the host triplet. If you think this |
6751 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6752 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6753 | whose name does not start with the host triplet. If you think this |
6754 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6755 | ac_tool_warned=yes ;; |
6756 | esac |
6757 | RANLIB=$ac_ct_RANLIB |
6758 | fi |
d9898ee8 |
6759 | else |
6760 | RANLIB="$ac_cv_prog_RANLIB" |
6761 | fi |
6762 | |
6763 | if test -n "$ac_tool_prefix"; then |
6764 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6765 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
6766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6768 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6770 | else |
6771 | if test -n "$STRIP"; then |
6772 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6773 | else |
6774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6775 | for as_dir in $PATH |
6776 | do |
6777 | IFS=$as_save_IFS |
6778 | test -z "$as_dir" && as_dir=. |
6779 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6781 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6783 | break 2 |
6784 | fi |
6785 | done |
6786 | done |
dd184caf |
6787 | IFS=$as_save_IFS |
d9898ee8 |
6788 | |
6789 | fi |
6790 | fi |
6791 | STRIP=$ac_cv_prog_STRIP |
6792 | if test -n "$STRIP"; then |
dd184caf |
6793 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6794 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
6795 | else |
dd184caf |
6796 | { echo "$as_me:$LINENO: result: no" >&5 |
6797 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6798 | fi |
6799 | |
dd184caf |
6800 | |
d9898ee8 |
6801 | fi |
6802 | if test -z "$ac_cv_prog_STRIP"; then |
6803 | ac_ct_STRIP=$STRIP |
6804 | # Extract the first word of "strip", so it can be a program name with args. |
6805 | set dummy strip; ac_word=$2 |
dd184caf |
6806 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6808 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6810 | else |
6811 | if test -n "$ac_ct_STRIP"; then |
6812 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6813 | else |
6814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6815 | for as_dir in $PATH |
6816 | do |
6817 | IFS=$as_save_IFS |
6818 | test -z "$as_dir" && as_dir=. |
6819 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6821 | ac_cv_prog_ac_ct_STRIP="strip" |
6822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6823 | break 2 |
6824 | fi |
6825 | done |
6826 | done |
dd184caf |
6827 | IFS=$as_save_IFS |
d9898ee8 |
6828 | |
d9898ee8 |
6829 | fi |
6830 | fi |
6831 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6832 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
6833 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6834 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
6835 | else |
dd184caf |
6836 | { echo "$as_me:$LINENO: result: no" >&5 |
6837 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6838 | fi |
6839 | |
dd184caf |
6840 | if test "x$ac_ct_STRIP" = x; then |
6841 | STRIP=":" |
6842 | else |
6843 | case $cross_compiling:$ac_tool_warned in |
6844 | yes:) |
6845 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6846 | whose name does not start with the host triplet. If you think this |
6847 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6848 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6849 | whose name does not start with the host triplet. If you think this |
6850 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6851 | ac_tool_warned=yes ;; |
6852 | esac |
6853 | STRIP=$ac_ct_STRIP |
6854 | fi |
d9898ee8 |
6855 | else |
6856 | STRIP="$ac_cv_prog_STRIP" |
6857 | fi |
6858 | |
6859 | |
6860 | old_CC="$CC" |
6861 | old_CFLAGS="$CFLAGS" |
6862 | |
6863 | # Set sane defaults for various variables |
6864 | test -z "$AR" && AR=ar |
6865 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6866 | test -z "$AS" && AS=as |
6867 | test -z "$CC" && CC=cc |
6868 | test -z "$LTCC" && LTCC=$CC |
6869 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6870 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6871 | test -z "$LD" && LD=ld |
6872 | test -z "$LN_S" && LN_S="ln -s" |
6873 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6874 | test -z "$NM" && NM=nm |
6875 | test -z "$SED" && SED=sed |
6876 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6877 | test -z "$RANLIB" && RANLIB=: |
6878 | test -z "$STRIP" && STRIP=: |
6879 | test -z "$ac_objext" && ac_objext=o |
6880 | |
6881 | # Determine commands to create old-style static archives. |
ac40fd9e |
6882 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d9898ee8 |
6883 | old_postinstall_cmds='chmod 644 $oldlib' |
6884 | old_postuninstall_cmds= |
6885 | |
6886 | if test -n "$RANLIB"; then |
6887 | case $host_os in |
6888 | openbsd*) |
6889 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6890 | ;; |
6891 | *) |
6892 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6893 | ;; |
6894 | esac |
6895 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6896 | fi |
6897 | |
6898 | for cc_temp in $compiler""; do |
6899 | case $cc_temp in |
6900 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6901 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6902 | \-*) ;; |
6903 | *) break;; |
6904 | esac |
6905 | done |
6906 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6907 | |
6908 | |
6909 | # Only perform the check for file, if the check method requires it |
6910 | case $deplibs_check_method in |
6911 | file_magic*) |
6912 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dd184caf |
6913 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6914 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
6915 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6917 | else |
6918 | case $MAGIC_CMD in |
6919 | [\\/*] | ?:[\\/]*) |
6920 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6921 | ;; |
6922 | *) |
6923 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6924 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6925 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6926 | for ac_dir in $ac_dummy; do |
6927 | IFS="$lt_save_ifs" |
6928 | test -z "$ac_dir" && ac_dir=. |
6929 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6930 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6931 | if test -n "$file_magic_test_file"; then |
6932 | case $deplibs_check_method in |
6933 | "file_magic "*) |
6934 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6935 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6936 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6937 | $EGREP "$file_magic_regex" > /dev/null; then |
6938 | : |
6939 | else |
6940 | cat <<EOF 1>&2 |
6941 | |
6942 | *** Warning: the command libtool uses to detect shared libraries, |
6943 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6944 | *** The result is that libtool may fail to recognize shared libraries |
6945 | *** as such. This will affect the creation of libtool libraries that |
6946 | *** depend on shared libraries, but programs linked with such libtool |
6947 | *** libraries will work regardless of this problem. Nevertheless, you |
6948 | *** may want to report the problem to your system manager and/or to |
6949 | *** bug-libtool@gnu.org |
6950 | |
6951 | EOF |
6952 | fi ;; |
6953 | esac |
6954 | fi |
6955 | break |
6956 | fi |
6957 | done |
6958 | IFS="$lt_save_ifs" |
6959 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6960 | ;; |
6961 | esac |
6962 | fi |
6963 | |
6964 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6965 | if test -n "$MAGIC_CMD"; then |
dd184caf |
6966 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6967 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
6968 | else |
dd184caf |
6969 | { echo "$as_me:$LINENO: result: no" >&5 |
6970 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6971 | fi |
6972 | |
6973 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6974 | if test -n "$ac_tool_prefix"; then |
dd184caf |
6975 | { echo "$as_me:$LINENO: checking for file" >&5 |
6976 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
6977 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6979 | else |
6980 | case $MAGIC_CMD in |
6981 | [\\/*] | ?:[\\/]*) |
6982 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6983 | ;; |
6984 | *) |
6985 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6986 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6987 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6988 | for ac_dir in $ac_dummy; do |
6989 | IFS="$lt_save_ifs" |
6990 | test -z "$ac_dir" && ac_dir=. |
6991 | if test -f $ac_dir/file; then |
6992 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6993 | if test -n "$file_magic_test_file"; then |
6994 | case $deplibs_check_method in |
6995 | "file_magic "*) |
6996 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6997 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6998 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6999 | $EGREP "$file_magic_regex" > /dev/null; then |
7000 | : |
7001 | else |
7002 | cat <<EOF 1>&2 |
7003 | |
7004 | *** Warning: the command libtool uses to detect shared libraries, |
7005 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7006 | *** The result is that libtool may fail to recognize shared libraries |
7007 | *** as such. This will affect the creation of libtool libraries that |
7008 | *** depend on shared libraries, but programs linked with such libtool |
7009 | *** libraries will work regardless of this problem. Nevertheless, you |
7010 | *** may want to report the problem to your system manager and/or to |
7011 | *** bug-libtool@gnu.org |
7012 | |
7013 | EOF |
7014 | fi ;; |
7015 | esac |
7016 | fi |
7017 | break |
7018 | fi |
7019 | done |
7020 | IFS="$lt_save_ifs" |
7021 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7022 | ;; |
7023 | esac |
7024 | fi |
7025 | |
7026 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7027 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7028 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7029 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7030 | else |
dd184caf |
7031 | { echo "$as_me:$LINENO: result: no" >&5 |
7032 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7033 | fi |
7034 | |
7035 | else |
7036 | MAGIC_CMD=: |
7037 | fi |
7038 | fi |
7039 | |
7040 | fi |
7041 | ;; |
7042 | esac |
7043 | |
7044 | enable_dlopen=no |
7045 | enable_win32_dll=no |
7046 | |
dd184caf |
7047 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7048 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
7049 | enableval=$enable_libtool_lock; |
7050 | fi |
d9898ee8 |
7051 | |
d9898ee8 |
7052 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7053 | |
7054 | |
dd184caf |
7055 | # Check whether --with-pic was given. |
d9898ee8 |
7056 | if test "${with_pic+set}" = set; then |
dd184caf |
7057 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7058 | else |
7059 | pic_mode=default |
dd184caf |
7060 | fi |
7061 | |
d9898ee8 |
7062 | test -z "$pic_mode" && pic_mode=default |
7063 | |
7064 | # Use C for the default configuration in the libtool script |
7065 | tagname= |
7066 | lt_save_CC="$CC" |
7067 | ac_ext=c |
7068 | ac_cpp='$CPP $CPPFLAGS' |
7069 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7070 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7071 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7072 | |
7073 | |
7074 | # Source file extension for C test sources. |
7075 | ac_ext=c |
7076 | |
7077 | # Object file extension for compiled C test sources. |
7078 | objext=o |
7079 | objext=$objext |
7080 | |
7081 | # Code to be used in simple compile tests |
ac40fd9e |
7082 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 |
7083 | |
7084 | # Code to be used in simple link tests |
ac40fd9e |
7085 | lt_simple_link_test_code='int main(){return(0);}' |
d9898ee8 |
7086 | |
7087 | |
7088 | # If no C compiler was specified, use CC. |
7089 | LTCC=${LTCC-"$CC"} |
7090 | |
7091 | # If no C compiler flags were specified, use CFLAGS. |
7092 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7093 | |
7094 | # Allow CC to be a program name with arguments. |
7095 | compiler=$CC |
7096 | |
7097 | |
7098 | # save warnings/boilerplate of simple test code |
7099 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7100 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
7101 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7102 | _lt_compiler_boilerplate=`cat conftest.err` |
7103 | $rm conftest* |
7104 | |
7105 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7106 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
7107 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7108 | _lt_linker_boilerplate=`cat conftest.err` |
7109 | $rm conftest* |
7110 | |
7111 | |
7112 | |
7113 | lt_prog_compiler_no_builtin_flag= |
7114 | |
7115 | if test "$GCC" = yes; then |
7116 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7117 | |
7118 | |
dd184caf |
7119 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7120 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7121 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7123 | else |
7124 | lt_cv_prog_compiler_rtti_exceptions=no |
7125 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7126 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7127 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7128 | # Insert the option either (1) after the last *FLAGS variable, or |
7129 | # (2) before a word containing "conftest.", or (3) at the end. |
7130 | # Note that $ac_compile itself does not contain backslashes and begins |
7131 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7132 | # The option is referenced via a variable to avoid confusing sed. |
7133 | lt_compile=`echo "$ac_compile" | $SED \ |
7134 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7135 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7136 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7137 | (eval echo "\"\$as_me:7137: $lt_compile\"" >&5) |
d9898ee8 |
7138 | (eval "$lt_compile" 2>conftest.err) |
7139 | ac_status=$? |
7140 | cat conftest.err >&5 |
ac40fd9e |
7141 | echo "$as_me:7141: \$? = $ac_status" >&5 |
d9898ee8 |
7142 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7143 | # The compiler can only warn and ignore the option if not recognized |
7144 | # So say no if there are warnings other than the usual output. |
7145 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7146 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7147 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7148 | lt_cv_prog_compiler_rtti_exceptions=yes |
7149 | fi |
7150 | fi |
7151 | $rm conftest* |
7152 | |
7153 | fi |
dd184caf |
7154 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7155 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7156 | |
7157 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7158 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7159 | else |
7160 | : |
7161 | fi |
7162 | |
7163 | fi |
7164 | |
7165 | lt_prog_compiler_wl= |
7166 | lt_prog_compiler_pic= |
7167 | lt_prog_compiler_static= |
7168 | |
dd184caf |
7169 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7170 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7171 | |
7172 | if test "$GCC" = yes; then |
7173 | lt_prog_compiler_wl='-Wl,' |
7174 | lt_prog_compiler_static='-static' |
7175 | |
7176 | case $host_os in |
7177 | aix*) |
7178 | # All AIX code is PIC. |
7179 | if test "$host_cpu" = ia64; then |
7180 | # AIX 5 now supports IA64 processor |
7181 | lt_prog_compiler_static='-Bstatic' |
7182 | fi |
7183 | ;; |
7184 | |
7185 | amigaos*) |
7186 | # FIXME: we need at least 68020 code to build shared libraries, but |
7187 | # adding the `-m68020' flag to GCC prevents building anything better, |
7188 | # like `-m68040'. |
7189 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7190 | ;; |
7191 | |
ac40fd9e |
7192 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
7193 | # PIC is the default for these OSes. |
7194 | ;; |
7195 | |
ac40fd9e |
7196 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
7197 | # This hack is so that the source file can tell whether it is being |
7198 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
7199 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7200 | # (--disable-auto-import) libraries |
d9898ee8 |
7201 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7202 | ;; |
7203 | |
7204 | darwin* | rhapsody*) |
7205 | # PIC is the default on this platform |
7206 | # Common symbols not allowed in MH_DYLIB files |
7207 | lt_prog_compiler_pic='-fno-common' |
7208 | ;; |
7209 | |
ac40fd9e |
7210 | interix[3-9]*) |
d9898ee8 |
7211 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7212 | # Instead, we relocate shared libraries at runtime. |
7213 | ;; |
7214 | |
7215 | msdosdjgpp*) |
7216 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7217 | # on systems that don't support them. |
7218 | lt_prog_compiler_can_build_shared=no |
7219 | enable_shared=no |
7220 | ;; |
7221 | |
7222 | sysv4*MP*) |
7223 | if test -d /usr/nec; then |
7224 | lt_prog_compiler_pic=-Kconform_pic |
7225 | fi |
7226 | ;; |
7227 | |
7228 | hpux*) |
7229 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7230 | # not for PA HP-UX. |
7231 | case $host_cpu in |
7232 | hppa*64*|ia64*) |
7233 | # +Z the default |
7234 | ;; |
7235 | *) |
7236 | lt_prog_compiler_pic='-fPIC' |
7237 | ;; |
7238 | esac |
7239 | ;; |
7240 | |
7241 | *) |
7242 | lt_prog_compiler_pic='-fPIC' |
7243 | ;; |
7244 | esac |
7245 | else |
7246 | # PORTME Check for flag to pass linker flags through the system compiler. |
7247 | case $host_os in |
7248 | aix*) |
7249 | lt_prog_compiler_wl='-Wl,' |
7250 | if test "$host_cpu" = ia64; then |
7251 | # AIX 5 now supports IA64 processor |
7252 | lt_prog_compiler_static='-Bstatic' |
7253 | else |
7254 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7255 | fi |
7256 | ;; |
7257 | darwin*) |
7258 | # PIC is the default on this platform |
7259 | # Common symbols not allowed in MH_DYLIB files |
7260 | case $cc_basename in |
7261 | xlc*) |
7262 | lt_prog_compiler_pic='-qnocommon' |
7263 | lt_prog_compiler_wl='-Wl,' |
7264 | ;; |
7265 | esac |
7266 | ;; |
7267 | |
ac40fd9e |
7268 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
7269 | # This hack is so that the source file can tell whether it is being |
7270 | # built for inclusion in a dll (and should export symbols for example). |
7271 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7272 | ;; |
7273 | |
7274 | hpux9* | hpux10* | hpux11*) |
7275 | lt_prog_compiler_wl='-Wl,' |
7276 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7277 | # not for PA HP-UX. |
7278 | case $host_cpu in |
7279 | hppa*64*|ia64*) |
7280 | # +Z the default |
7281 | ;; |
7282 | *) |
7283 | lt_prog_compiler_pic='+Z' |
7284 | ;; |
7285 | esac |
7286 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7287 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7288 | ;; |
7289 | |
7290 | irix5* | irix6* | nonstopux*) |
7291 | lt_prog_compiler_wl='-Wl,' |
7292 | # PIC (with -KPIC) is the default. |
7293 | lt_prog_compiler_static='-non_shared' |
7294 | ;; |
7295 | |
7296 | newsos6) |
7297 | lt_prog_compiler_pic='-KPIC' |
7298 | lt_prog_compiler_static='-Bstatic' |
7299 | ;; |
7300 | |
ac40fd9e |
7301 | linux* | k*bsd*-gnu) |
d9898ee8 |
7302 | case $cc_basename in |
7303 | icc* | ecc*) |
7304 | lt_prog_compiler_wl='-Wl,' |
7305 | lt_prog_compiler_pic='-KPIC' |
7306 | lt_prog_compiler_static='-static' |
7307 | ;; |
7308 | pgcc* | pgf77* | pgf90* | pgf95*) |
7309 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7310 | # which looks to be a dead project) |
7311 | lt_prog_compiler_wl='-Wl,' |
7312 | lt_prog_compiler_pic='-fpic' |
7313 | lt_prog_compiler_static='-Bstatic' |
7314 | ;; |
7315 | ccc*) |
7316 | lt_prog_compiler_wl='-Wl,' |
7317 | # All Alpha code is PIC. |
7318 | lt_prog_compiler_static='-non_shared' |
7319 | ;; |
ac40fd9e |
7320 | *) |
7321 | case `$CC -V 2>&1 | sed 5q` in |
7322 | *Sun\ C*) |
7323 | # Sun C 5.9 |
7324 | lt_prog_compiler_pic='-KPIC' |
7325 | lt_prog_compiler_static='-Bstatic' |
7326 | lt_prog_compiler_wl='-Wl,' |
7327 | ;; |
7328 | *Sun\ F*) |
7329 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
7330 | lt_prog_compiler_pic='-KPIC' |
7331 | lt_prog_compiler_static='-Bstatic' |
7332 | lt_prog_compiler_wl='' |
7333 | ;; |
7334 | esac |
7335 | ;; |
d9898ee8 |
7336 | esac |
7337 | ;; |
7338 | |
7339 | osf3* | osf4* | osf5*) |
7340 | lt_prog_compiler_wl='-Wl,' |
7341 | # All OSF/1 code is PIC. |
7342 | lt_prog_compiler_static='-non_shared' |
7343 | ;; |
7344 | |
ac40fd9e |
7345 | rdos*) |
7346 | lt_prog_compiler_static='-non_shared' |
7347 | ;; |
7348 | |
d9898ee8 |
7349 | solaris*) |
7350 | lt_prog_compiler_pic='-KPIC' |
7351 | lt_prog_compiler_static='-Bstatic' |
7352 | case $cc_basename in |
7353 | f77* | f90* | f95*) |
7354 | lt_prog_compiler_wl='-Qoption ld ';; |
7355 | *) |
7356 | lt_prog_compiler_wl='-Wl,';; |
7357 | esac |
7358 | ;; |
7359 | |
7360 | sunos4*) |
7361 | lt_prog_compiler_wl='-Qoption ld ' |
7362 | lt_prog_compiler_pic='-PIC' |
7363 | lt_prog_compiler_static='-Bstatic' |
7364 | ;; |
7365 | |
7366 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7367 | lt_prog_compiler_wl='-Wl,' |
7368 | lt_prog_compiler_pic='-KPIC' |
7369 | lt_prog_compiler_static='-Bstatic' |
7370 | ;; |
7371 | |
7372 | sysv4*MP*) |
7373 | if test -d /usr/nec ;then |
7374 | lt_prog_compiler_pic='-Kconform_pic' |
7375 | lt_prog_compiler_static='-Bstatic' |
7376 | fi |
7377 | ;; |
7378 | |
7379 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7380 | lt_prog_compiler_wl='-Wl,' |
7381 | lt_prog_compiler_pic='-KPIC' |
7382 | lt_prog_compiler_static='-Bstatic' |
7383 | ;; |
7384 | |
7385 | unicos*) |
7386 | lt_prog_compiler_wl='-Wl,' |
7387 | lt_prog_compiler_can_build_shared=no |
7388 | ;; |
7389 | |
7390 | uts4*) |
7391 | lt_prog_compiler_pic='-pic' |
7392 | lt_prog_compiler_static='-Bstatic' |
7393 | ;; |
7394 | |
7395 | *) |
7396 | lt_prog_compiler_can_build_shared=no |
7397 | ;; |
7398 | esac |
7399 | fi |
7400 | |
dd184caf |
7401 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7402 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7403 | |
7404 | # |
7405 | # Check to make sure the PIC flag actually works. |
7406 | # |
7407 | if test -n "$lt_prog_compiler_pic"; then |
7408 | |
dd184caf |
7409 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7410 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7411 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7413 | else |
7414 | lt_prog_compiler_pic_works=no |
7415 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
7416 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7417 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7418 | # Insert the option either (1) after the last *FLAGS variable, or |
7419 | # (2) before a word containing "conftest.", or (3) at the end. |
7420 | # Note that $ac_compile itself does not contain backslashes and begins |
7421 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7422 | # The option is referenced via a variable to avoid confusing sed. |
7423 | lt_compile=`echo "$ac_compile" | $SED \ |
7424 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7425 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7426 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7427 | (eval echo "\"\$as_me:7427: $lt_compile\"" >&5) |
d9898ee8 |
7428 | (eval "$lt_compile" 2>conftest.err) |
7429 | ac_status=$? |
7430 | cat conftest.err >&5 |
ac40fd9e |
7431 | echo "$as_me:7431: \$? = $ac_status" >&5 |
d9898ee8 |
7432 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7433 | # The compiler can only warn and ignore the option if not recognized |
7434 | # So say no if there are warnings other than the usual output. |
7435 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7436 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7437 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7438 | lt_prog_compiler_pic_works=yes |
7439 | fi |
7440 | fi |
7441 | $rm conftest* |
7442 | |
7443 | fi |
dd184caf |
7444 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7445 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7446 | |
7447 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7448 | case $lt_prog_compiler_pic in |
7449 | "" | " "*) ;; |
7450 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7451 | esac |
7452 | else |
7453 | lt_prog_compiler_pic= |
7454 | lt_prog_compiler_can_build_shared=no |
7455 | fi |
7456 | |
7457 | fi |
7458 | case $host_os in |
7459 | # For platforms which do not support PIC, -DPIC is meaningless: |
7460 | *djgpp*) |
7461 | lt_prog_compiler_pic= |
7462 | ;; |
7463 | *) |
7464 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7465 | ;; |
7466 | esac |
7467 | |
7468 | # |
7469 | # Check to make sure the static flag actually works. |
7470 | # |
7471 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
dd184caf |
7472 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7473 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7474 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7476 | else |
7477 | lt_prog_compiler_static_works=no |
7478 | save_LDFLAGS="$LDFLAGS" |
7479 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
7480 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
7481 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7482 | # The linker can only warn and ignore the option if not recognized |
7483 | # So say no if there are warnings |
7484 | if test -s conftest.err; then |
7485 | # Append any errors to the config.log. |
7486 | cat conftest.err 1>&5 |
7487 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7488 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7489 | if diff conftest.exp conftest.er2 >/dev/null; then |
7490 | lt_prog_compiler_static_works=yes |
7491 | fi |
7492 | else |
7493 | lt_prog_compiler_static_works=yes |
7494 | fi |
7495 | fi |
7496 | $rm conftest* |
7497 | LDFLAGS="$save_LDFLAGS" |
7498 | |
7499 | fi |
dd184caf |
7500 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7501 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7502 | |
7503 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7504 | : |
7505 | else |
7506 | lt_prog_compiler_static= |
7507 | fi |
7508 | |
7509 | |
dd184caf |
7510 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7511 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7512 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7514 | else |
7515 | lt_cv_prog_compiler_c_o=no |
7516 | $rm -r conftest 2>/dev/null |
7517 | mkdir conftest |
7518 | cd conftest |
7519 | mkdir out |
ac40fd9e |
7520 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
7521 | |
7522 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7523 | # Insert the option either (1) after the last *FLAGS variable, or |
7524 | # (2) before a word containing "conftest.", or (3) at the end. |
7525 | # Note that $ac_compile itself does not contain backslashes and begins |
7526 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7527 | lt_compile=`echo "$ac_compile" | $SED \ |
7528 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7529 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7530 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
7531 | (eval echo "\"\$as_me:7531: $lt_compile\"" >&5) |
d9898ee8 |
7532 | (eval "$lt_compile" 2>out/conftest.err) |
7533 | ac_status=$? |
7534 | cat out/conftest.err >&5 |
ac40fd9e |
7535 | echo "$as_me:7535: \$? = $ac_status" >&5 |
d9898ee8 |
7536 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7537 | then |
7538 | # The compiler can only warn and ignore the option if not recognized |
7539 | # So say no if there are warnings |
7540 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7541 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7542 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7543 | lt_cv_prog_compiler_c_o=yes |
7544 | fi |
7545 | fi |
7546 | chmod u+w . 2>&5 |
7547 | $rm conftest* |
7548 | # SGI C++ compiler will create directory out/ii_files/ for |
7549 | # template instantiation |
7550 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7551 | $rm out/* && rmdir out |
7552 | cd .. |
7553 | rmdir conftest |
7554 | $rm conftest* |
7555 | |
7556 | fi |
dd184caf |
7557 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7558 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7559 | |
7560 | |
7561 | hard_links="nottested" |
7562 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7563 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
7564 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7565 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7566 | hard_links=yes |
7567 | $rm conftest* |
7568 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7569 | touch conftest.a |
7570 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7571 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
7572 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7573 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7574 | if test "$hard_links" = no; then |
7575 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7576 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7577 | need_locks=warn |
7578 | fi |
7579 | else |
7580 | need_locks=no |
7581 | fi |
7582 | |
dd184caf |
7583 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7584 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7585 | |
7586 | runpath_var= |
7587 | allow_undefined_flag= |
7588 | enable_shared_with_static_runtimes=no |
7589 | archive_cmds= |
7590 | archive_expsym_cmds= |
7591 | old_archive_From_new_cmds= |
7592 | old_archive_from_expsyms_cmds= |
7593 | export_dynamic_flag_spec= |
7594 | whole_archive_flag_spec= |
7595 | thread_safe_flag_spec= |
7596 | hardcode_libdir_flag_spec= |
7597 | hardcode_libdir_flag_spec_ld= |
7598 | hardcode_libdir_separator= |
7599 | hardcode_direct=no |
7600 | hardcode_minus_L=no |
7601 | hardcode_shlibpath_var=unsupported |
7602 | link_all_deplibs=unknown |
7603 | hardcode_automatic=no |
7604 | module_cmds= |
7605 | module_expsym_cmds= |
7606 | always_export_symbols=no |
7607 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7608 | # include_expsyms should be a list of space-separated symbols to be *always* |
7609 | # included in the symbol list |
7610 | include_expsyms= |
7611 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7612 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7613 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7614 | # as well as any symbol that contains `d'. |
7615 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7616 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7617 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7618 | # the symbol is explicitly referenced. Since portable code cannot |
7619 | # rely on this symbol name, it's probably fine to never include it in |
7620 | # preloaded symbol tables. |
7621 | extract_expsyms_cmds= |
7622 | # Just being paranoid about ensuring that cc_basename is set. |
7623 | for cc_temp in $compiler""; do |
7624 | case $cc_temp in |
7625 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7626 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7627 | \-*) ;; |
7628 | *) break;; |
7629 | esac |
7630 | done |
7631 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7632 | |
7633 | case $host_os in |
7634 | cygwin* | mingw* | pw32*) |
7635 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7636 | # When not using gcc, we currently assume that we are using |
7637 | # Microsoft Visual C++. |
7638 | if test "$GCC" != yes; then |
7639 | with_gnu_ld=no |
7640 | fi |
7641 | ;; |
7642 | interix*) |
7643 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7644 | with_gnu_ld=yes |
7645 | ;; |
7646 | openbsd*) |
7647 | with_gnu_ld=no |
7648 | ;; |
7649 | esac |
7650 | |
7651 | ld_shlibs=yes |
7652 | if test "$with_gnu_ld" = yes; then |
7653 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7654 | wlarc='${wl}' |
7655 | |
7656 | # Set some defaults for GNU ld with shared library support. These |
7657 | # are reset later if shared libraries are not supported. Putting them |
7658 | # here allows them to be overridden if necessary. |
7659 | runpath_var=LD_RUN_PATH |
7660 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7661 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7662 | # ancient GNU ld didn't support --whole-archive et. al. |
7663 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7664 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7665 | else |
7666 | whole_archive_flag_spec= |
7667 | fi |
7668 | supports_anon_versioning=no |
7669 | case `$LD -v 2>/dev/null` in |
7670 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7671 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7672 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7673 | *\ 2.11.*) ;; # other 2.11 versions |
7674 | *) supports_anon_versioning=yes ;; |
7675 | esac |
7676 | |
7677 | # See if GNU ld supports shared libraries. |
7678 | case $host_os in |
7679 | aix3* | aix4* | aix5*) |
7680 | # On AIX/PPC, the GNU linker is very broken |
7681 | if test "$host_cpu" != ia64; then |
7682 | ld_shlibs=no |
7683 | cat <<EOF 1>&2 |
7684 | |
7685 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7686 | *** to be unable to reliably create shared libraries on AIX. |
7687 | *** Therefore, libtool is disabling shared libraries support. If you |
7688 | *** really care for shared libraries, you may want to modify your PATH |
7689 | *** so that a non-GNU linker is found, and then restart. |
7690 | |
7691 | EOF |
7692 | fi |
7693 | ;; |
7694 | |
7695 | amigaos*) |
7696 | 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)' |
7697 | hardcode_libdir_flag_spec='-L$libdir' |
7698 | hardcode_minus_L=yes |
7699 | |
7700 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7701 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7702 | # to version 4, is to share data among multiple programs linked |
7703 | # with the same dynamic library. Since this doesn't match the |
7704 | # behavior of shared libraries on other platforms, we can't use |
7705 | # them. |
7706 | ld_shlibs=no |
7707 | ;; |
7708 | |
7709 | beos*) |
7710 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7711 | allow_undefined_flag=unsupported |
7712 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7713 | # support --undefined. This deserves some investigation. FIXME |
7714 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7715 | else |
7716 | ld_shlibs=no |
7717 | fi |
7718 | ;; |
7719 | |
7720 | cygwin* | mingw* | pw32*) |
7721 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7722 | # as there is no search path for DLLs. |
7723 | hardcode_libdir_flag_spec='-L$libdir' |
7724 | allow_undefined_flag=unsupported |
7725 | always_export_symbols=no |
7726 | enable_shared_with_static_runtimes=yes |
ac40fd9e |
7727 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
7728 | |
7729 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7730 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7731 | # If the export-symbols file already is a .def file (1st line |
7732 | # is EXPORTS), use it as is; otherwise, prepend... |
7733 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7734 | cp $export_symbols $output_objdir/$soname.def; |
7735 | else |
7736 | echo EXPORTS > $output_objdir/$soname.def; |
7737 | cat $export_symbols >> $output_objdir/$soname.def; |
7738 | fi~ |
7739 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7740 | else |
7741 | ld_shlibs=no |
7742 | fi |
7743 | ;; |
7744 | |
ac40fd9e |
7745 | interix[3-9]*) |
d9898ee8 |
7746 | hardcode_direct=no |
7747 | hardcode_shlibpath_var=no |
7748 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7749 | export_dynamic_flag_spec='${wl}-E' |
7750 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7751 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7752 | # default) and relocated if they conflict, which is a slow very memory |
7753 | # consuming and fragmenting process. To avoid this, we pick a random, |
7754 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7755 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7756 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7757 | 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' |
7758 | ;; |
7759 | |
ac40fd9e |
7760 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
7761 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7762 | tmp_addflag= |
7763 | case $cc_basename,$host_cpu in |
7764 | pgcc*) # Portland Group C compiler |
7765 | 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' |
7766 | tmp_addflag=' $pic_flag' |
7767 | ;; |
7768 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7769 | 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' |
7770 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7771 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7772 | tmp_addflag=' -i_dynamic' ;; |
7773 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7774 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7775 | ifc* | ifort*) # Intel Fortran compiler |
7776 | tmp_addflag=' -nofor_main' ;; |
7777 | esac |
ac40fd9e |
7778 | case `$CC -V 2>&1 | sed 5q` in |
7779 | *Sun\ C*) # Sun C 5.9 |
7780 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7781 | tmp_sharedflag='-G' ;; |
7782 | *Sun\ F*) # Sun Fortran 8.3 |
7783 | tmp_sharedflag='-G' ;; |
7784 | *) |
7785 | tmp_sharedflag='-shared' ;; |
7786 | esac |
7787 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
7788 | |
7789 | if test $supports_anon_versioning = yes; then |
7790 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7791 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7792 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
7793 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
7794 | fi |
7795 | else |
7796 | ld_shlibs=no |
7797 | fi |
7798 | ;; |
7799 | |
7800 | netbsd*) |
7801 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7802 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7803 | wlarc= |
7804 | else |
7805 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7806 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7807 | fi |
7808 | ;; |
7809 | |
7810 | solaris*) |
7811 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7812 | ld_shlibs=no |
7813 | cat <<EOF 1>&2 |
7814 | |
7815 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7816 | *** create shared libraries on Solaris systems. Therefore, libtool |
7817 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7818 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7819 | *** your PATH or compiler configuration so that the native linker is |
7820 | *** used, and then restart. |
7821 | |
7822 | EOF |
7823 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7824 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7825 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7826 | else |
7827 | ld_shlibs=no |
7828 | fi |
7829 | ;; |
7830 | |
7831 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7832 | case `$LD -v 2>&1` in |
7833 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7834 | ld_shlibs=no |
7835 | cat <<_LT_EOF 1>&2 |
7836 | |
7837 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7838 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7839 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7840 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7841 | *** your PATH or compiler configuration so that the native linker is |
7842 | *** used, and then restart. |
7843 | |
7844 | _LT_EOF |
7845 | ;; |
7846 | *) |
7847 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7848 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7849 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7850 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7851 | else |
7852 | ld_shlibs=no |
7853 | fi |
7854 | ;; |
7855 | esac |
7856 | ;; |
7857 | |
7858 | sunos4*) |
7859 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7860 | wlarc= |
7861 | hardcode_direct=yes |
7862 | hardcode_shlibpath_var=no |
7863 | ;; |
7864 | |
7865 | *) |
7866 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7867 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7868 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7869 | else |
7870 | ld_shlibs=no |
7871 | fi |
7872 | ;; |
7873 | esac |
7874 | |
7875 | if test "$ld_shlibs" = no; then |
7876 | runpath_var= |
7877 | hardcode_libdir_flag_spec= |
7878 | export_dynamic_flag_spec= |
7879 | whole_archive_flag_spec= |
7880 | fi |
7881 | else |
7882 | # PORTME fill in a description of your system's linker (not GNU ld) |
7883 | case $host_os in |
7884 | aix3*) |
7885 | allow_undefined_flag=unsupported |
7886 | always_export_symbols=yes |
7887 | 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' |
7888 | # Note: this linker hardcodes the directories in LIBPATH if there |
7889 | # are no directories specified by -L. |
7890 | hardcode_minus_L=yes |
7891 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7892 | # Neither direct hardcoding nor static linking is supported with a |
7893 | # broken collect2. |
7894 | hardcode_direct=unsupported |
7895 | fi |
7896 | ;; |
7897 | |
7898 | aix4* | aix5*) |
7899 | if test "$host_cpu" = ia64; then |
7900 | # On IA64, the linker does run time linking by default, so we don't |
7901 | # have to do anything special. |
7902 | aix_use_runtimelinking=no |
7903 | exp_sym_flag='-Bexport' |
7904 | no_entry_flag="" |
7905 | else |
7906 | # If we're using GNU nm, then we don't want the "-C" option. |
7907 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7908 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7909 | 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' |
7910 | else |
7911 | 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' |
7912 | fi |
7913 | aix_use_runtimelinking=no |
7914 | |
7915 | # Test if we are trying to use run time linking or normal |
7916 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7917 | # need to do runtime linking. |
7918 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7919 | for ld_flag in $LDFLAGS; do |
7920 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7921 | aix_use_runtimelinking=yes |
7922 | break |
7923 | fi |
7924 | done |
7925 | ;; |
7926 | esac |
7927 | |
7928 | exp_sym_flag='-bexport' |
7929 | no_entry_flag='-bnoentry' |
7930 | fi |
7931 | |
7932 | # When large executables or shared objects are built, AIX ld can |
7933 | # have problems creating the table of contents. If linking a library |
7934 | # or program results in "error TOC overflow" add -mminimal-toc to |
7935 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7936 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7937 | |
7938 | archive_cmds='' |
7939 | hardcode_direct=yes |
7940 | hardcode_libdir_separator=':' |
7941 | link_all_deplibs=yes |
7942 | |
7943 | if test "$GCC" = yes; then |
7944 | case $host_os in aix4.[012]|aix4.[012].*) |
7945 | # We only want to do this on AIX 4.2 and lower, the check |
7946 | # below for broken collect2 doesn't work under 4.3+ |
7947 | collect2name=`${CC} -print-prog-name=collect2` |
7948 | if test -f "$collect2name" && \ |
7949 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7950 | then |
7951 | # We have reworked collect2 |
ac40fd9e |
7952 | : |
d9898ee8 |
7953 | else |
7954 | # We have old collect2 |
7955 | hardcode_direct=unsupported |
7956 | # It fails to find uninstalled libraries when the uninstalled |
7957 | # path is not listed in the libpath. Setting hardcode_minus_L |
7958 | # to unsupported forces relinking |
7959 | hardcode_minus_L=yes |
7960 | hardcode_libdir_flag_spec='-L$libdir' |
7961 | hardcode_libdir_separator= |
7962 | fi |
7963 | ;; |
7964 | esac |
7965 | shared_flag='-shared' |
7966 | if test "$aix_use_runtimelinking" = yes; then |
7967 | shared_flag="$shared_flag "'${wl}-G' |
7968 | fi |
7969 | else |
7970 | # not using gcc |
7971 | if test "$host_cpu" = ia64; then |
7972 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7973 | # chokes on -Wl,-G. The following line is correct: |
7974 | shared_flag='-G' |
7975 | else |
7976 | if test "$aix_use_runtimelinking" = yes; then |
7977 | shared_flag='${wl}-G' |
7978 | else |
7979 | shared_flag='${wl}-bM:SRE' |
7980 | fi |
7981 | fi |
7982 | fi |
7983 | |
7984 | # It seems that -bexpall does not export symbols beginning with |
7985 | # underscore (_), so it is better to generate a list of symbols to export. |
7986 | always_export_symbols=yes |
7987 | if test "$aix_use_runtimelinking" = yes; then |
7988 | # Warning - without using the other runtime loading flags (-brtl), |
7989 | # -berok will link without error, but may produce a broken library. |
7990 | allow_undefined_flag='-berok' |
7991 | # Determine the default libpath from the value encoded in an empty executable. |
7992 | cat >conftest.$ac_ext <<_ACEOF |
7993 | /* confdefs.h. */ |
7994 | _ACEOF |
7995 | cat confdefs.h >>conftest.$ac_ext |
7996 | cat >>conftest.$ac_ext <<_ACEOF |
7997 | /* end confdefs.h. */ |
7998 | |
7999 | int |
8000 | main () |
8001 | { |
8002 | |
8003 | ; |
8004 | return 0; |
8005 | } |
8006 | _ACEOF |
8007 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8008 | if { (ac_try="$ac_link" |
8009 | case "(($ac_try" in |
8010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8011 | *) ac_try_echo=$ac_try;; |
8012 | esac |
8013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8014 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8015 | ac_status=$? |
8016 | grep -v '^ *+' conftest.er1 >conftest.err |
8017 | rm -f conftest.er1 |
8018 | cat conftest.err >&5 |
8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8020 | (exit $ac_status); } && { |
8021 | test -z "$ac_c_werror_flag" || |
8022 | test ! -s conftest.err |
8023 | } && test -s conftest$ac_exeext && |
8024 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8025 | |
ac40fd9e |
8026 | lt_aix_libpath_sed=' |
8027 | /Import File Strings/,/^$/ { |
8028 | /^0/ { |
8029 | s/^0 *\(.*\)$/\1/ |
8030 | p |
8031 | } |
8032 | }' |
8033 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
8034 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
8035 | if test -z "$aix_libpath"; then |
8036 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8037 | fi |
d9898ee8 |
8038 | else |
8039 | echo "$as_me: failed program was:" >&5 |
8040 | sed 's/^/| /' conftest.$ac_ext >&5 |
8041 | |
dd184caf |
8042 | |
d9898ee8 |
8043 | fi |
dd184caf |
8044 | |
8045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8046 | conftest$ac_exeext conftest.$ac_ext |
8047 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8048 | |
8049 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8050 | 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" |
8051 | else |
8052 | if test "$host_cpu" = ia64; then |
8053 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8054 | allow_undefined_flag="-z nodefs" |
8055 | 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" |
8056 | else |
8057 | # Determine the default libpath from the value encoded in an empty executable. |
8058 | cat >conftest.$ac_ext <<_ACEOF |
8059 | /* confdefs.h. */ |
8060 | _ACEOF |
8061 | cat confdefs.h >>conftest.$ac_ext |
8062 | cat >>conftest.$ac_ext <<_ACEOF |
8063 | /* end confdefs.h. */ |
8064 | |
8065 | int |
8066 | main () |
8067 | { |
8068 | |
8069 | ; |
8070 | return 0; |
8071 | } |
8072 | _ACEOF |
8073 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8074 | if { (ac_try="$ac_link" |
8075 | case "(($ac_try" in |
8076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8077 | *) ac_try_echo=$ac_try;; |
8078 | esac |
8079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8080 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8081 | ac_status=$? |
8082 | grep -v '^ *+' conftest.er1 >conftest.err |
8083 | rm -f conftest.er1 |
8084 | cat conftest.err >&5 |
8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8086 | (exit $ac_status); } && { |
8087 | test -z "$ac_c_werror_flag" || |
8088 | test ! -s conftest.err |
8089 | } && test -s conftest$ac_exeext && |
8090 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8091 | |
ac40fd9e |
8092 | lt_aix_libpath_sed=' |
8093 | /Import File Strings/,/^$/ { |
8094 | /^0/ { |
8095 | s/^0 *\(.*\)$/\1/ |
8096 | p |
8097 | } |
8098 | }' |
8099 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
8100 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
8101 | if test -z "$aix_libpath"; then |
8102 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8103 | fi |
d9898ee8 |
8104 | else |
8105 | echo "$as_me: failed program was:" >&5 |
8106 | sed 's/^/| /' conftest.$ac_ext >&5 |
8107 | |
dd184caf |
8108 | |
d9898ee8 |
8109 | fi |
dd184caf |
8110 | |
8111 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8112 | conftest$ac_exeext conftest.$ac_ext |
8113 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8114 | |
8115 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8116 | # Warning - without using the other run time loading flags, |
8117 | # -berok will link without error, but may produce a broken library. |
8118 | no_undefined_flag=' ${wl}-bernotok' |
8119 | allow_undefined_flag=' ${wl}-berok' |
8120 | # Exported symbols can be pulled into shared objects from archives |
8121 | whole_archive_flag_spec='$convenience' |
8122 | archive_cmds_need_lc=yes |
8123 | # This is similar to how AIX traditionally builds its shared libraries. |
8124 | 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' |
8125 | fi |
8126 | fi |
8127 | ;; |
8128 | |
8129 | amigaos*) |
8130 | 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)' |
8131 | hardcode_libdir_flag_spec='-L$libdir' |
8132 | hardcode_minus_L=yes |
8133 | # see comment about different semantics on the GNU ld section |
8134 | ld_shlibs=no |
8135 | ;; |
8136 | |
8137 | bsdi[45]*) |
8138 | export_dynamic_flag_spec=-rdynamic |
8139 | ;; |
8140 | |
8141 | cygwin* | mingw* | pw32*) |
8142 | # When not using gcc, we currently assume that we are using |
8143 | # Microsoft Visual C++. |
8144 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8145 | # no search path for DLLs. |
8146 | hardcode_libdir_flag_spec=' ' |
8147 | allow_undefined_flag=unsupported |
8148 | # Tell ltmain to make .lib files, not .a files. |
8149 | libext=lib |
8150 | # Tell ltmain to make .dll files, not .so files. |
8151 | shrext_cmds=".dll" |
8152 | # FIXME: Setting linknames here is a bad hack. |
8153 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8154 | # The linker will automatically build a .lib file if we build a DLL. |
8155 | old_archive_From_new_cmds='true' |
8156 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
8157 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
8158 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8159 | enable_shared_with_static_runtimes=yes |
8160 | ;; |
8161 | |
8162 | darwin* | rhapsody*) |
8163 | case $host_os in |
8164 | rhapsody* | darwin1.[012]) |
8165 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8166 | ;; |
8167 | *) # Darwin 1.3 on |
8168 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8169 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8170 | else |
8171 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8172 | 10.[012]) |
8173 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8174 | ;; |
8175 | 10.*) |
8176 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8177 | ;; |
8178 | esac |
8179 | fi |
8180 | ;; |
8181 | esac |
8182 | archive_cmds_need_lc=no |
8183 | hardcode_direct=no |
8184 | hardcode_automatic=yes |
8185 | hardcode_shlibpath_var=unsupported |
8186 | whole_archive_flag_spec='' |
8187 | link_all_deplibs=yes |
8188 | if test "$GCC" = yes ; then |
8189 | output_verbose_link_cmd='echo' |
8190 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8191 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8192 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8193 | 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}' |
8194 | 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}' |
8195 | else |
8196 | case $cc_basename in |
8197 | xlc*) |
8198 | output_verbose_link_cmd='echo' |
ac40fd9e |
8199 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
8200 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8201 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
8202 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
d9898ee8 |
8203 | 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}' |
8204 | ;; |
8205 | *) |
8206 | ld_shlibs=no |
8207 | ;; |
8208 | esac |
8209 | fi |
8210 | ;; |
8211 | |
8212 | dgux*) |
8213 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8214 | hardcode_libdir_flag_spec='-L$libdir' |
8215 | hardcode_shlibpath_var=no |
8216 | ;; |
8217 | |
8218 | freebsd1*) |
8219 | ld_shlibs=no |
8220 | ;; |
8221 | |
8222 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8223 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8224 | # does not break anything, and helps significantly (at the cost of a little |
8225 | # extra space). |
8226 | freebsd2.2*) |
8227 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8228 | hardcode_libdir_flag_spec='-R$libdir' |
8229 | hardcode_direct=yes |
8230 | hardcode_shlibpath_var=no |
8231 | ;; |
8232 | |
8233 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8234 | freebsd2*) |
8235 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8236 | hardcode_direct=yes |
8237 | hardcode_minus_L=yes |
8238 | hardcode_shlibpath_var=no |
8239 | ;; |
8240 | |
8241 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
8242 | freebsd* | dragonfly*) |
d9898ee8 |
8243 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8244 | hardcode_libdir_flag_spec='-R$libdir' |
8245 | hardcode_direct=yes |
8246 | hardcode_shlibpath_var=no |
8247 | ;; |
8248 | |
8249 | hpux9*) |
8250 | if test "$GCC" = yes; then |
8251 | 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' |
8252 | else |
8253 | 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' |
8254 | fi |
8255 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8256 | hardcode_libdir_separator=: |
8257 | hardcode_direct=yes |
8258 | |
8259 | # hardcode_minus_L: Not really in the search PATH, |
8260 | # but as the default location of the library. |
8261 | hardcode_minus_L=yes |
8262 | export_dynamic_flag_spec='${wl}-E' |
8263 | ;; |
8264 | |
8265 | hpux10*) |
8266 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8267 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8268 | else |
8269 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8270 | fi |
8271 | if test "$with_gnu_ld" = no; then |
8272 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8273 | hardcode_libdir_separator=: |
8274 | |
8275 | hardcode_direct=yes |
8276 | export_dynamic_flag_spec='${wl}-E' |
8277 | |
8278 | # hardcode_minus_L: Not really in the search PATH, |
8279 | # but as the default location of the library. |
8280 | hardcode_minus_L=yes |
8281 | fi |
8282 | ;; |
8283 | |
8284 | hpux11*) |
8285 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8286 | case $host_cpu in |
8287 | hppa*64*) |
8288 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8289 | ;; |
8290 | ia64*) |
8291 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8292 | ;; |
8293 | *) |
8294 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8295 | ;; |
8296 | esac |
8297 | else |
8298 | case $host_cpu in |
8299 | hppa*64*) |
8300 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8301 | ;; |
8302 | ia64*) |
8303 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8304 | ;; |
8305 | *) |
8306 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8307 | ;; |
8308 | esac |
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 | case $host_cpu in |
8315 | hppa*64*|ia64*) |
8316 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8317 | hardcode_direct=no |
8318 | hardcode_shlibpath_var=no |
8319 | ;; |
8320 | *) |
8321 | hardcode_direct=yes |
8322 | export_dynamic_flag_spec='${wl}-E' |
8323 | |
8324 | # hardcode_minus_L: Not really in the search PATH, |
8325 | # but as the default location of the library. |
8326 | hardcode_minus_L=yes |
8327 | ;; |
8328 | esac |
8329 | fi |
8330 | ;; |
8331 | |
8332 | irix5* | irix6* | nonstopux*) |
8333 | if test "$GCC" = yes; then |
8334 | 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' |
8335 | else |
8336 | 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' |
8337 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8338 | fi |
8339 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8340 | hardcode_libdir_separator=: |
8341 | link_all_deplibs=yes |
8342 | ;; |
8343 | |
8344 | netbsd*) |
8345 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8346 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8347 | else |
8348 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8349 | fi |
8350 | hardcode_libdir_flag_spec='-R$libdir' |
8351 | hardcode_direct=yes |
8352 | hardcode_shlibpath_var=no |
8353 | ;; |
8354 | |
8355 | newsos6) |
8356 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8357 | hardcode_direct=yes |
8358 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8359 | hardcode_libdir_separator=: |
8360 | hardcode_shlibpath_var=no |
8361 | ;; |
8362 | |
8363 | openbsd*) |
ac40fd9e |
8364 | if test -f /usr/libexec/ld.so; then |
8365 | hardcode_direct=yes |
8366 | hardcode_shlibpath_var=no |
8367 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8368 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8369 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8370 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8371 | export_dynamic_flag_spec='${wl}-E' |
8372 | else |
8373 | case $host_os in |
8374 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8375 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8376 | hardcode_libdir_flag_spec='-R$libdir' |
8377 | ;; |
8378 | *) |
8379 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8380 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8381 | ;; |
8382 | esac |
8383 | fi |
d9898ee8 |
8384 | else |
ac40fd9e |
8385 | ld_shlibs=no |
d9898ee8 |
8386 | fi |
8387 | ;; |
8388 | |
8389 | os2*) |
8390 | hardcode_libdir_flag_spec='-L$libdir' |
8391 | hardcode_minus_L=yes |
8392 | allow_undefined_flag=unsupported |
8393 | 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' |
8394 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8395 | ;; |
8396 | |
8397 | osf3*) |
8398 | if test "$GCC" = yes; then |
8399 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8400 | 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' |
8401 | else |
8402 | allow_undefined_flag=' -expect_unresolved \*' |
8403 | 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' |
8404 | fi |
8405 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8406 | hardcode_libdir_separator=: |
8407 | ;; |
8408 | |
8409 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8410 | if test "$GCC" = yes; then |
8411 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8412 | 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' |
8413 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8414 | else |
8415 | allow_undefined_flag=' -expect_unresolved \*' |
8416 | 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' |
8417 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8418 | $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' |
8419 | |
8420 | # Both c and cxx compiler support -rpath directly |
8421 | hardcode_libdir_flag_spec='-rpath $libdir' |
8422 | fi |
8423 | hardcode_libdir_separator=: |
8424 | ;; |
8425 | |
8426 | solaris*) |
8427 | no_undefined_flag=' -z text' |
8428 | if test "$GCC" = yes; then |
8429 | wlarc='${wl}' |
8430 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8431 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8432 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8433 | else |
8434 | wlarc='' |
8435 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8436 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8437 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8438 | fi |
8439 | hardcode_libdir_flag_spec='-R$libdir' |
8440 | hardcode_shlibpath_var=no |
8441 | case $host_os in |
8442 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8443 | *) |
ac40fd9e |
8444 | # The compiler driver will combine and reorder linker options, |
8445 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
8446 | # but is careful enough not to reorder. |
d9898ee8 |
8447 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
8448 | if test "$GCC" = yes; then |
8449 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
8450 | else |
8451 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
8452 | fi |
8453 | ;; |
d9898ee8 |
8454 | esac |
8455 | link_all_deplibs=yes |
8456 | ;; |
8457 | |
8458 | sunos4*) |
8459 | if test "x$host_vendor" = xsequent; then |
8460 | # Use $CC to link under sequent, because it throws in some extra .o |
8461 | # files that make .init and .fini sections work. |
8462 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8463 | else |
8464 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8465 | fi |
8466 | hardcode_libdir_flag_spec='-L$libdir' |
8467 | hardcode_direct=yes |
8468 | hardcode_minus_L=yes |
8469 | hardcode_shlibpath_var=no |
8470 | ;; |
8471 | |
8472 | sysv4) |
8473 | case $host_vendor in |
8474 | sni) |
8475 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8476 | hardcode_direct=yes # is this really true??? |
8477 | ;; |
8478 | siemens) |
8479 | ## LD is ld it makes a PLAMLIB |
8480 | ## CC just makes a GrossModule. |
8481 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8482 | reload_cmds='$CC -r -o $output$reload_objs' |
8483 | hardcode_direct=no |
8484 | ;; |
8485 | motorola) |
8486 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8487 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8488 | ;; |
8489 | esac |
8490 | runpath_var='LD_RUN_PATH' |
8491 | hardcode_shlibpath_var=no |
8492 | ;; |
8493 | |
8494 | sysv4.3*) |
8495 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8496 | hardcode_shlibpath_var=no |
8497 | export_dynamic_flag_spec='-Bexport' |
8498 | ;; |
8499 | |
8500 | sysv4*MP*) |
8501 | if test -d /usr/nec; then |
8502 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8503 | hardcode_shlibpath_var=no |
8504 | runpath_var=LD_RUN_PATH |
8505 | hardcode_runpath_var=yes |
8506 | ld_shlibs=yes |
8507 | fi |
8508 | ;; |
8509 | |
ac40fd9e |
8510 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
8511 | no_undefined_flag='${wl}-z,text' |
8512 | archive_cmds_need_lc=no |
8513 | hardcode_shlibpath_var=no |
8514 | runpath_var='LD_RUN_PATH' |
8515 | |
8516 | if test "$GCC" = yes; then |
8517 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8518 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8519 | else |
8520 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8521 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8522 | fi |
8523 | ;; |
8524 | |
8525 | sysv5* | sco3.2v5* | sco5v6*) |
8526 | # Note: We can NOT use -z defs as we might desire, because we do not |
8527 | # link with -lc, and that would cause any symbols used from libc to |
8528 | # always be unresolved, which means just about no library would |
8529 | # ever link correctly. If we're not using GNU ld we use -z text |
8530 | # though, which does catch some bad symbols but isn't as heavy-handed |
8531 | # as -z defs. |
8532 | no_undefined_flag='${wl}-z,text' |
8533 | allow_undefined_flag='${wl}-z,nodefs' |
8534 | archive_cmds_need_lc=no |
8535 | hardcode_shlibpath_var=no |
8536 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8537 | hardcode_libdir_separator=':' |
8538 | link_all_deplibs=yes |
8539 | export_dynamic_flag_spec='${wl}-Bexport' |
8540 | runpath_var='LD_RUN_PATH' |
8541 | |
8542 | if test "$GCC" = yes; then |
8543 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8544 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8545 | else |
8546 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8547 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8548 | fi |
8549 | ;; |
8550 | |
8551 | uts4*) |
8552 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8553 | hardcode_libdir_flag_spec='-L$libdir' |
8554 | hardcode_shlibpath_var=no |
8555 | ;; |
8556 | |
8557 | *) |
8558 | ld_shlibs=no |
8559 | ;; |
8560 | esac |
8561 | fi |
8562 | |
dd184caf |
8563 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8564 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8565 | test "$ld_shlibs" = no && can_build_shared=no |
8566 | |
8567 | # |
8568 | # Do we need to explicitly link libc? |
8569 | # |
8570 | case "x$archive_cmds_need_lc" in |
8571 | x|xyes) |
8572 | # Assume -lc should be added |
8573 | archive_cmds_need_lc=yes |
8574 | |
8575 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8576 | case $archive_cmds in |
8577 | *'~'*) |
8578 | # FIXME: we may have to deal with multi-command sequences. |
8579 | ;; |
8580 | '$CC '*) |
8581 | # Test whether the compiler implicitly links with -lc since on some |
8582 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8583 | # to ld, don't add -lc before -lgcc. |
dd184caf |
8584 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8585 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8586 | $rm conftest* |
ac40fd9e |
8587 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
8588 | |
8589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8590 | (eval $ac_compile) 2>&5 |
8591 | ac_status=$? |
8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8593 | (exit $ac_status); } 2>conftest.err; then |
8594 | soname=conftest |
8595 | lib=conftest |
8596 | libobjs=conftest.$ac_objext |
8597 | deplibs= |
8598 | wl=$lt_prog_compiler_wl |
8599 | pic_flag=$lt_prog_compiler_pic |
8600 | compiler_flags=-v |
8601 | linker_flags=-v |
8602 | verstring= |
8603 | output_objdir=. |
8604 | libname=conftest |
8605 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8606 | allow_undefined_flag= |
8607 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8608 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8609 | ac_status=$? |
8610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8611 | (exit $ac_status); } |
8612 | then |
8613 | archive_cmds_need_lc=no |
8614 | else |
8615 | archive_cmds_need_lc=yes |
8616 | fi |
8617 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8618 | else |
8619 | cat conftest.err 1>&5 |
8620 | fi |
8621 | $rm conftest* |
dd184caf |
8622 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8623 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8624 | ;; |
8625 | esac |
8626 | fi |
8627 | ;; |
8628 | esac |
8629 | |
dd184caf |
8630 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8631 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8632 | library_names_spec= |
8633 | libname_spec='lib$name' |
8634 | soname_spec= |
8635 | shrext_cmds=".so" |
8636 | postinstall_cmds= |
8637 | postuninstall_cmds= |
8638 | finish_cmds= |
8639 | finish_eval= |
8640 | shlibpath_var= |
8641 | shlibpath_overrides_runpath=unknown |
8642 | version_type=none |
8643 | dynamic_linker="$host_os ld.so" |
8644 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
8645 | |
d9898ee8 |
8646 | if test "$GCC" = yes; then |
ac40fd9e |
8647 | case $host_os in |
8648 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
8649 | *) lt_awk_arg="/^libraries:/" ;; |
8650 | esac |
8651 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8652 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
d9898ee8 |
8653 | # if the path contains ";" then we assume it to be the separator |
8654 | # otherwise default to the standard path separator (i.e. ":") - it is |
8655 | # assumed that no part of a normal pathname contains ";" but that should |
8656 | # okay in the real world where ";" in dirpaths is itself problematic. |
ac40fd9e |
8657 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 |
8658 | else |
ac40fd9e |
8659 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 |
8660 | fi |
ac40fd9e |
8661 | # Ok, now we have the path, separated by spaces, we can step through it |
8662 | # and add multilib dir if necessary. |
8663 | lt_tmp_lt_search_path_spec= |
8664 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
8665 | for lt_sys_path in $lt_search_path_spec; do |
8666 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
8667 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
8668 | else |
8669 | test -d "$lt_sys_path" && \ |
8670 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
8671 | fi |
8672 | done |
8673 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
8674 | BEGIN {RS=" "; FS="/|\n";} { |
8675 | lt_foo=""; |
8676 | lt_count=0; |
8677 | for (lt_i = NF; lt_i > 0; lt_i--) { |
8678 | if ($lt_i != "" && $lt_i != ".") { |
8679 | if ($lt_i == "..") { |
8680 | lt_count++; |
8681 | } else { |
8682 | if (lt_count == 0) { |
8683 | lt_foo="/" $lt_i lt_foo; |
8684 | } else { |
8685 | lt_count--; |
8686 | } |
8687 | } |
8688 | } |
8689 | } |
8690 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
8691 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
8692 | }'` |
8693 | sys_lib_search_path_spec=`echo $lt_search_path_spec` |
d9898ee8 |
8694 | else |
8695 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8696 | fi |
8697 | need_lib_prefix=unknown |
8698 | hardcode_into_libs=no |
8699 | |
8700 | # when you set need_version to no, make sure it does not cause -set_version |
8701 | # flags to be left without arguments |
8702 | need_version=unknown |
8703 | |
8704 | case $host_os in |
8705 | aix3*) |
8706 | version_type=linux |
8707 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8708 | shlibpath_var=LIBPATH |
8709 | |
8710 | # AIX 3 has no versioning support, so we append a major version to the name. |
8711 | soname_spec='${libname}${release}${shared_ext}$major' |
8712 | ;; |
8713 | |
8714 | aix4* | aix5*) |
8715 | version_type=linux |
8716 | need_lib_prefix=no |
8717 | need_version=no |
8718 | hardcode_into_libs=yes |
8719 | if test "$host_cpu" = ia64; then |
8720 | # AIX 5 supports IA64 |
8721 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8722 | shlibpath_var=LD_LIBRARY_PATH |
8723 | else |
8724 | # With GCC up to 2.95.x, collect2 would create an import file |
8725 | # for dependence libraries. The import file would start with |
8726 | # the line `#! .'. This would cause the generated library to |
8727 | # depend on `.', always an invalid library. This was fixed in |
8728 | # development snapshots of GCC prior to 3.0. |
8729 | case $host_os in |
8730 | aix4 | aix4.[01] | aix4.[01].*) |
8731 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8732 | echo ' yes ' |
8733 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8734 | : |
8735 | else |
8736 | can_build_shared=no |
8737 | fi |
8738 | ;; |
8739 | esac |
8740 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8741 | # soname into executable. Probably we can add versioning support to |
8742 | # collect2, so additional links can be useful in future. |
8743 | if test "$aix_use_runtimelinking" = yes; then |
8744 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8745 | # instead of lib<name>.a to let people know that these are not |
8746 | # typical AIX shared libraries. |
8747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8748 | else |
8749 | # We preserve .a as extension for shared libraries through AIX4.2 |
8750 | # and later when we are not doing run time linking. |
8751 | library_names_spec='${libname}${release}.a $libname.a' |
8752 | soname_spec='${libname}${release}${shared_ext}$major' |
8753 | fi |
8754 | shlibpath_var=LIBPATH |
8755 | fi |
8756 | ;; |
8757 | |
8758 | amigaos*) |
8759 | library_names_spec='$libname.ixlibrary $libname.a' |
8760 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8761 | 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' |
8762 | ;; |
8763 | |
8764 | beos*) |
8765 | library_names_spec='${libname}${shared_ext}' |
8766 | dynamic_linker="$host_os ld.so" |
8767 | shlibpath_var=LIBRARY_PATH |
8768 | ;; |
8769 | |
8770 | bsdi[45]*) |
8771 | version_type=linux |
8772 | need_version=no |
8773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8774 | soname_spec='${libname}${release}${shared_ext}$major' |
8775 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8776 | shlibpath_var=LD_LIBRARY_PATH |
8777 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8778 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8779 | # the default ld.so.conf also contains /usr/contrib/lib and |
8780 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8781 | # libtool to hard-code these into programs |
8782 | ;; |
8783 | |
8784 | cygwin* | mingw* | pw32*) |
8785 | version_type=windows |
8786 | shrext_cmds=".dll" |
8787 | need_version=no |
8788 | need_lib_prefix=no |
8789 | |
8790 | case $GCC,$host_os in |
8791 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8792 | library_names_spec='$libname.dll.a' |
8793 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8794 | postinstall_cmds='base_file=`basename \${file}`~ |
8795 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8796 | dldir=$destdir/`dirname \$dlpath`~ |
8797 | test -d \$dldir || mkdir -p \$dldir~ |
8798 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8799 | chmod a+x \$dldir/$dlname' |
8800 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8801 | dlpath=$dir/\$dldll~ |
8802 | $rm \$dlpath' |
8803 | shlibpath_overrides_runpath=yes |
8804 | |
8805 | case $host_os in |
8806 | cygwin*) |
8807 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8808 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8809 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8810 | ;; |
8811 | mingw*) |
8812 | # MinGW DLLs use traditional 'lib' prefix |
8813 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8814 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8815 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8816 | # It is most probably a Windows format PATH printed by |
8817 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8818 | # path with ; separators, and with drive letters. We can handle the |
8819 | # drive letters (cygwin fileutils understands them), so leave them, |
8820 | # especially as we might pass files found there to a mingw objdump, |
8821 | # which wouldn't understand a cygwinified path. Ahh. |
8822 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8823 | else |
8824 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8825 | fi |
8826 | ;; |
8827 | pw32*) |
8828 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8829 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8830 | ;; |
8831 | esac |
8832 | ;; |
8833 | |
8834 | *) |
8835 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8836 | ;; |
8837 | esac |
8838 | dynamic_linker='Win32 ld.exe' |
8839 | # FIXME: first we should search . and the directory the executable is in |
8840 | shlibpath_var=PATH |
8841 | ;; |
8842 | |
8843 | darwin* | rhapsody*) |
8844 | dynamic_linker="$host_os dyld" |
8845 | version_type=darwin |
8846 | need_lib_prefix=no |
8847 | need_version=no |
8848 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8849 | soname_spec='${libname}${release}${major}$shared_ext' |
8850 | shlibpath_overrides_runpath=yes |
8851 | shlibpath_var=DYLD_LIBRARY_PATH |
8852 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
8853 | |
8854 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 |
8855 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8856 | ;; |
8857 | |
8858 | dgux*) |
8859 | version_type=linux |
8860 | need_lib_prefix=no |
8861 | need_version=no |
8862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8863 | soname_spec='${libname}${release}${shared_ext}$major' |
8864 | shlibpath_var=LD_LIBRARY_PATH |
8865 | ;; |
8866 | |
8867 | freebsd1*) |
8868 | dynamic_linker=no |
8869 | ;; |
8870 | |
d9898ee8 |
8871 | freebsd* | dragonfly*) |
8872 | # DragonFly does not have aout. When/if they implement a new |
8873 | # versioning mechanism, adjust this. |
8874 | if test -x /usr/bin/objformat; then |
8875 | objformat=`/usr/bin/objformat` |
8876 | else |
8877 | case $host_os in |
8878 | freebsd[123]*) objformat=aout ;; |
8879 | *) objformat=elf ;; |
8880 | esac |
8881 | fi |
8882 | version_type=freebsd-$objformat |
8883 | case $version_type in |
8884 | freebsd-elf*) |
8885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8886 | need_version=no |
8887 | need_lib_prefix=no |
8888 | ;; |
8889 | freebsd-*) |
8890 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8891 | need_version=yes |
8892 | ;; |
8893 | esac |
8894 | shlibpath_var=LD_LIBRARY_PATH |
8895 | case $host_os in |
8896 | freebsd2*) |
8897 | shlibpath_overrides_runpath=yes |
8898 | ;; |
8899 | freebsd3.[01]* | freebsdelf3.[01]*) |
8900 | shlibpath_overrides_runpath=yes |
8901 | hardcode_into_libs=yes |
8902 | ;; |
8903 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8904 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8905 | shlibpath_overrides_runpath=no |
8906 | hardcode_into_libs=yes |
8907 | ;; |
ac40fd9e |
8908 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
8909 | shlibpath_overrides_runpath=yes |
8910 | hardcode_into_libs=yes |
8911 | ;; |
8912 | esac |
8913 | ;; |
8914 | |
8915 | gnu*) |
8916 | version_type=linux |
8917 | need_lib_prefix=no |
8918 | need_version=no |
8919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8920 | soname_spec='${libname}${release}${shared_ext}$major' |
8921 | shlibpath_var=LD_LIBRARY_PATH |
8922 | hardcode_into_libs=yes |
8923 | ;; |
8924 | |
8925 | hpux9* | hpux10* | hpux11*) |
8926 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8927 | # link against other versions. |
8928 | version_type=sunos |
8929 | need_lib_prefix=no |
8930 | need_version=no |
8931 | case $host_cpu in |
8932 | ia64*) |
8933 | shrext_cmds='.so' |
8934 | hardcode_into_libs=yes |
8935 | dynamic_linker="$host_os dld.so" |
8936 | shlibpath_var=LD_LIBRARY_PATH |
8937 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8939 | soname_spec='${libname}${release}${shared_ext}$major' |
8940 | if test "X$HPUX_IA64_MODE" = X32; then |
8941 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8942 | else |
8943 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8944 | fi |
8945 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8946 | ;; |
8947 | hppa*64*) |
8948 | shrext_cmds='.sl' |
8949 | hardcode_into_libs=yes |
8950 | dynamic_linker="$host_os dld.sl" |
8951 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8952 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8953 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8954 | soname_spec='${libname}${release}${shared_ext}$major' |
8955 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8956 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8957 | ;; |
8958 | *) |
8959 | shrext_cmds='.sl' |
8960 | dynamic_linker="$host_os dld.sl" |
8961 | shlibpath_var=SHLIB_PATH |
8962 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8964 | soname_spec='${libname}${release}${shared_ext}$major' |
8965 | ;; |
8966 | esac |
8967 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8968 | postinstall_cmds='chmod 555 $lib' |
8969 | ;; |
8970 | |
ac40fd9e |
8971 | interix[3-9]*) |
d9898ee8 |
8972 | version_type=linux |
8973 | need_lib_prefix=no |
8974 | need_version=no |
8975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8976 | soname_spec='${libname}${release}${shared_ext}$major' |
8977 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8978 | shlibpath_var=LD_LIBRARY_PATH |
8979 | shlibpath_overrides_runpath=no |
8980 | hardcode_into_libs=yes |
8981 | ;; |
8982 | |
8983 | irix5* | irix6* | nonstopux*) |
8984 | case $host_os in |
8985 | nonstopux*) version_type=nonstopux ;; |
8986 | *) |
8987 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8988 | version_type=linux |
8989 | else |
8990 | version_type=irix |
8991 | fi ;; |
8992 | esac |
8993 | need_lib_prefix=no |
8994 | need_version=no |
8995 | soname_spec='${libname}${release}${shared_ext}$major' |
8996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8997 | case $host_os in |
8998 | irix5* | nonstopux*) |
8999 | libsuff= shlibsuff= |
9000 | ;; |
9001 | *) |
9002 | case $LD in # libtool.m4 will add one of these switches to LD |
9003 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9004 | libsuff= shlibsuff= libmagic=32-bit;; |
9005 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9006 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9007 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9008 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9009 | *) libsuff= shlibsuff= libmagic=never-match;; |
9010 | esac |
9011 | ;; |
9012 | esac |
9013 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9014 | shlibpath_overrides_runpath=no |
9015 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9016 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9017 | hardcode_into_libs=yes |
9018 | ;; |
9019 | |
9020 | # No shared lib support for Linux oldld, aout, or coff. |
9021 | linux*oldld* | linux*aout* | linux*coff*) |
9022 | dynamic_linker=no |
9023 | ;; |
9024 | |
9025 | # This must be Linux ELF. |
ac40fd9e |
9026 | linux* | k*bsd*-gnu) |
d9898ee8 |
9027 | version_type=linux |
9028 | need_lib_prefix=no |
9029 | need_version=no |
9030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9031 | soname_spec='${libname}${release}${shared_ext}$major' |
9032 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9033 | shlibpath_var=LD_LIBRARY_PATH |
9034 | shlibpath_overrides_runpath=no |
9035 | # This implies no fast_install, which is unacceptable. |
9036 | # Some rework will be needed to allow for fast_install |
9037 | # before this can be enabled. |
9038 | hardcode_into_libs=yes |
ac40fd9e |
9039 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9040 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
9041 | |
9042 | # Append ld.so.conf contents to the search path |
9043 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
9044 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
9045 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
9046 | fi |
9047 | |
9048 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9049 | # powerpc, because MkLinux only supported shared libraries with the |
9050 | # GNU dynamic linker. Since this was broken with cross compilers, |
9051 | # most powerpc-linux boxes support dynamic linking these days and |
9052 | # people can always --disable-shared, the test was removed, and we |
9053 | # assume the GNU/Linux dynamic linker is in use. |
9054 | dynamic_linker='GNU/Linux ld.so' |
9055 | ;; |
9056 | |
d9898ee8 |
9057 | netbsd*) |
9058 | version_type=sunos |
9059 | need_lib_prefix=no |
9060 | need_version=no |
9061 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9063 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9064 | dynamic_linker='NetBSD (a.out) ld.so' |
9065 | else |
9066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9067 | soname_spec='${libname}${release}${shared_ext}$major' |
9068 | dynamic_linker='NetBSD ld.elf_so' |
9069 | fi |
9070 | shlibpath_var=LD_LIBRARY_PATH |
9071 | shlibpath_overrides_runpath=yes |
9072 | hardcode_into_libs=yes |
9073 | ;; |
9074 | |
9075 | newsos6) |
9076 | version_type=linux |
9077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9078 | shlibpath_var=LD_LIBRARY_PATH |
9079 | shlibpath_overrides_runpath=yes |
9080 | ;; |
9081 | |
9082 | nto-qnx*) |
9083 | version_type=linux |
9084 | need_lib_prefix=no |
9085 | need_version=no |
9086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9087 | soname_spec='${libname}${release}${shared_ext}$major' |
9088 | shlibpath_var=LD_LIBRARY_PATH |
9089 | shlibpath_overrides_runpath=yes |
9090 | ;; |
9091 | |
9092 | openbsd*) |
9093 | version_type=sunos |
9094 | sys_lib_dlsearch_path_spec="/usr/lib" |
9095 | need_lib_prefix=no |
9096 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9097 | case $host_os in |
9098 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9099 | *) need_version=no ;; |
9100 | esac |
9101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9102 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9103 | shlibpath_var=LD_LIBRARY_PATH |
9104 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9105 | case $host_os in |
9106 | openbsd2.[89] | openbsd2.[89].*) |
9107 | shlibpath_overrides_runpath=no |
9108 | ;; |
9109 | *) |
9110 | shlibpath_overrides_runpath=yes |
9111 | ;; |
9112 | esac |
9113 | else |
9114 | shlibpath_overrides_runpath=yes |
9115 | fi |
9116 | ;; |
9117 | |
9118 | os2*) |
9119 | libname_spec='$name' |
9120 | shrext_cmds=".dll" |
9121 | need_lib_prefix=no |
9122 | library_names_spec='$libname${shared_ext} $libname.a' |
9123 | dynamic_linker='OS/2 ld.exe' |
9124 | shlibpath_var=LIBPATH |
9125 | ;; |
9126 | |
9127 | osf3* | osf4* | osf5*) |
9128 | version_type=osf |
9129 | need_lib_prefix=no |
9130 | need_version=no |
9131 | soname_spec='${libname}${release}${shared_ext}$major' |
9132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9133 | shlibpath_var=LD_LIBRARY_PATH |
9134 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9135 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9136 | ;; |
9137 | |
ac40fd9e |
9138 | rdos*) |
9139 | dynamic_linker=no |
9140 | ;; |
9141 | |
d9898ee8 |
9142 | solaris*) |
9143 | version_type=linux |
9144 | need_lib_prefix=no |
9145 | need_version=no |
9146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9147 | soname_spec='${libname}${release}${shared_ext}$major' |
9148 | shlibpath_var=LD_LIBRARY_PATH |
9149 | shlibpath_overrides_runpath=yes |
9150 | hardcode_into_libs=yes |
9151 | # ldd complains unless libraries are executable |
9152 | postinstall_cmds='chmod +x $lib' |
9153 | ;; |
9154 | |
9155 | sunos4*) |
9156 | version_type=sunos |
9157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9158 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9159 | shlibpath_var=LD_LIBRARY_PATH |
9160 | shlibpath_overrides_runpath=yes |
9161 | if test "$with_gnu_ld" = yes; then |
9162 | need_lib_prefix=no |
9163 | fi |
9164 | need_version=yes |
9165 | ;; |
9166 | |
9167 | sysv4 | sysv4.3*) |
9168 | version_type=linux |
9169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9170 | soname_spec='${libname}${release}${shared_ext}$major' |
9171 | shlibpath_var=LD_LIBRARY_PATH |
9172 | case $host_vendor in |
9173 | sni) |
9174 | shlibpath_overrides_runpath=no |
9175 | need_lib_prefix=no |
9176 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9177 | runpath_var=LD_RUN_PATH |
9178 | ;; |
9179 | siemens) |
9180 | need_lib_prefix=no |
9181 | ;; |
9182 | motorola) |
9183 | need_lib_prefix=no |
9184 | need_version=no |
9185 | shlibpath_overrides_runpath=no |
9186 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9187 | ;; |
9188 | esac |
9189 | ;; |
9190 | |
9191 | sysv4*MP*) |
9192 | if test -d /usr/nec ;then |
9193 | version_type=linux |
9194 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9195 | soname_spec='$libname${shared_ext}.$major' |
9196 | shlibpath_var=LD_LIBRARY_PATH |
9197 | fi |
9198 | ;; |
9199 | |
9200 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9201 | version_type=freebsd-elf |
9202 | need_lib_prefix=no |
9203 | need_version=no |
9204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9205 | soname_spec='${libname}${release}${shared_ext}$major' |
9206 | shlibpath_var=LD_LIBRARY_PATH |
9207 | hardcode_into_libs=yes |
9208 | if test "$with_gnu_ld" = yes; then |
9209 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9210 | shlibpath_overrides_runpath=no |
9211 | else |
9212 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9213 | shlibpath_overrides_runpath=yes |
9214 | case $host_os in |
9215 | sco3.2v5*) |
9216 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9217 | ;; |
9218 | esac |
9219 | fi |
9220 | sys_lib_dlsearch_path_spec='/usr/lib' |
9221 | ;; |
9222 | |
9223 | uts4*) |
9224 | version_type=linux |
9225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9226 | soname_spec='${libname}${release}${shared_ext}$major' |
9227 | shlibpath_var=LD_LIBRARY_PATH |
9228 | ;; |
9229 | |
9230 | *) |
9231 | dynamic_linker=no |
9232 | ;; |
9233 | esac |
dd184caf |
9234 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9235 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9236 | test "$dynamic_linker" = no && can_build_shared=no |
9237 | |
9238 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9239 | if test "$GCC" = yes; then |
9240 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9241 | fi |
9242 | |
dd184caf |
9243 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9244 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9245 | hardcode_action= |
9246 | if test -n "$hardcode_libdir_flag_spec" || \ |
9247 | test -n "$runpath_var" || \ |
9248 | test "X$hardcode_automatic" = "Xyes" ; then |
9249 | |
9250 | # We can hardcode non-existant directories. |
9251 | if test "$hardcode_direct" != no && |
9252 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9253 | # have to relink, otherwise we might link with an installed library |
9254 | # when we should be linking with a yet-to-be-installed one |
9255 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9256 | test "$hardcode_minus_L" != no; then |
9257 | # Linking always hardcodes the temporary library directory. |
9258 | hardcode_action=relink |
9259 | else |
9260 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9261 | hardcode_action=immediate |
9262 | fi |
9263 | else |
9264 | # We cannot hardcode anything, or else we can only hardcode existing |
9265 | # directories. |
9266 | hardcode_action=unsupported |
9267 | fi |
dd184caf |
9268 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9269 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9270 | |
9271 | if test "$hardcode_action" = relink; then |
9272 | # Fast installation is not supported |
9273 | enable_fast_install=no |
9274 | elif test "$shlibpath_overrides_runpath" = yes || |
9275 | test "$enable_shared" = no; then |
9276 | # Fast installation is not necessary |
9277 | enable_fast_install=needless |
9278 | fi |
9279 | |
9280 | striplib= |
9281 | old_striplib= |
dd184caf |
9282 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9283 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9284 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9285 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9286 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
dd184caf |
9287 | { echo "$as_me:$LINENO: result: yes" >&5 |
9288 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9289 | else |
9290 | # FIXME - insert some real tests, host_os isn't really good enough |
9291 | case $host_os in |
9292 | darwin*) |
9293 | if test -n "$STRIP" ; then |
9294 | striplib="$STRIP -x" |
ac40fd9e |
9295 | old_striplib="$STRIP -S" |
dd184caf |
9296 | { echo "$as_me:$LINENO: result: yes" >&5 |
9297 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9298 | else |
dd184caf |
9299 | { echo "$as_me:$LINENO: result: no" >&5 |
9300 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9301 | fi |
9302 | ;; |
9303 | *) |
dd184caf |
9304 | { echo "$as_me:$LINENO: result: no" >&5 |
9305 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9306 | ;; |
9307 | esac |
9308 | fi |
9309 | |
9310 | if test "x$enable_dlopen" != xyes; then |
9311 | enable_dlopen=unknown |
9312 | enable_dlopen_self=unknown |
9313 | enable_dlopen_self_static=unknown |
9314 | else |
9315 | lt_cv_dlopen=no |
9316 | lt_cv_dlopen_libs= |
9317 | |
9318 | case $host_os in |
9319 | beos*) |
9320 | lt_cv_dlopen="load_add_on" |
9321 | lt_cv_dlopen_libs= |
9322 | lt_cv_dlopen_self=yes |
9323 | ;; |
9324 | |
9325 | mingw* | pw32*) |
9326 | lt_cv_dlopen="LoadLibrary" |
9327 | lt_cv_dlopen_libs= |
9328 | ;; |
9329 | |
9330 | cygwin*) |
9331 | lt_cv_dlopen="dlopen" |
9332 | lt_cv_dlopen_libs= |
9333 | ;; |
9334 | |
9335 | darwin*) |
9336 | # if libdl is installed we need to link against it |
dd184caf |
9337 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9338 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9339 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9341 | else |
9342 | ac_check_lib_save_LIBS=$LIBS |
9343 | LIBS="-ldl $LIBS" |
9344 | cat >conftest.$ac_ext <<_ACEOF |
9345 | /* confdefs.h. */ |
9346 | _ACEOF |
9347 | cat confdefs.h >>conftest.$ac_ext |
9348 | cat >>conftest.$ac_ext <<_ACEOF |
9349 | /* end confdefs.h. */ |
9350 | |
dd184caf |
9351 | /* Override any GCC internal prototype to avoid an error. |
9352 | Use char because int might match the return type of a GCC |
9353 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9354 | #ifdef __cplusplus |
9355 | extern "C" |
9356 | #endif |
d9898ee8 |
9357 | char dlopen (); |
9358 | int |
9359 | main () |
9360 | { |
dd184caf |
9361 | return dlopen (); |
d9898ee8 |
9362 | ; |
9363 | return 0; |
9364 | } |
9365 | _ACEOF |
9366 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9367 | if { (ac_try="$ac_link" |
9368 | case "(($ac_try" in |
9369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9370 | *) ac_try_echo=$ac_try;; |
9371 | esac |
9372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9373 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9374 | ac_status=$? |
9375 | grep -v '^ *+' conftest.er1 >conftest.err |
9376 | rm -f conftest.er1 |
9377 | cat conftest.err >&5 |
9378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9379 | (exit $ac_status); } && { |
9380 | test -z "$ac_c_werror_flag" || |
9381 | test ! -s conftest.err |
9382 | } && test -s conftest$ac_exeext && |
9383 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9384 | ac_cv_lib_dl_dlopen=yes |
9385 | else |
9386 | echo "$as_me: failed program was:" >&5 |
9387 | sed 's/^/| /' conftest.$ac_ext >&5 |
9388 | |
dd184caf |
9389 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9390 | fi |
dd184caf |
9391 | |
9392 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9393 | conftest$ac_exeext conftest.$ac_ext |
9394 | LIBS=$ac_check_lib_save_LIBS |
9395 | fi |
dd184caf |
9396 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9397 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9398 | if test $ac_cv_lib_dl_dlopen = yes; then |
9399 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9400 | else |
9401 | |
9402 | lt_cv_dlopen="dyld" |
9403 | lt_cv_dlopen_libs= |
9404 | lt_cv_dlopen_self=yes |
9405 | |
9406 | fi |
9407 | |
9408 | ;; |
9409 | |
9410 | *) |
dd184caf |
9411 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9412 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9413 | if test "${ac_cv_func_shl_load+set}" = set; then |
9414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9415 | else |
9416 | cat >conftest.$ac_ext <<_ACEOF |
9417 | /* confdefs.h. */ |
9418 | _ACEOF |
9419 | cat confdefs.h >>conftest.$ac_ext |
9420 | cat >>conftest.$ac_ext <<_ACEOF |
9421 | /* end confdefs.h. */ |
9422 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9424 | #define shl_load innocuous_shl_load |
9425 | |
9426 | /* System header to define __stub macros and hopefully few prototypes, |
9427 | which can conflict with char shl_load (); below. |
9428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9429 | <limits.h> exists even on freestanding compilers. */ |
9430 | |
9431 | #ifdef __STDC__ |
9432 | # include <limits.h> |
9433 | #else |
9434 | # include <assert.h> |
9435 | #endif |
9436 | |
9437 | #undef shl_load |
9438 | |
dd184caf |
9439 | /* Override any GCC internal prototype to avoid an error. |
9440 | Use char because int might match the return type of a GCC |
9441 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9442 | #ifdef __cplusplus |
9443 | extern "C" |
d9898ee8 |
9444 | #endif |
d9898ee8 |
9445 | char shl_load (); |
9446 | /* The GNU C library defines this for functions which it implements |
9447 | to always fail with ENOSYS. Some functions are actually named |
9448 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9449 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9450 | choke me |
d9898ee8 |
9451 | #endif |
9452 | |
9453 | int |
9454 | main () |
9455 | { |
dd184caf |
9456 | return shl_load (); |
d9898ee8 |
9457 | ; |
9458 | return 0; |
9459 | } |
9460 | _ACEOF |
9461 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9462 | if { (ac_try="$ac_link" |
9463 | case "(($ac_try" in |
9464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9465 | *) ac_try_echo=$ac_try;; |
9466 | esac |
9467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9468 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9469 | ac_status=$? |
9470 | grep -v '^ *+' conftest.er1 >conftest.err |
9471 | rm -f conftest.er1 |
9472 | cat conftest.err >&5 |
9473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9474 | (exit $ac_status); } && { |
9475 | test -z "$ac_c_werror_flag" || |
9476 | test ! -s conftest.err |
9477 | } && test -s conftest$ac_exeext && |
9478 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9479 | ac_cv_func_shl_load=yes |
9480 | else |
9481 | echo "$as_me: failed program was:" >&5 |
9482 | sed 's/^/| /' conftest.$ac_ext >&5 |
9483 | |
dd184caf |
9484 | ac_cv_func_shl_load=no |
d9898ee8 |
9485 | fi |
dd184caf |
9486 | |
9487 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9488 | conftest$ac_exeext conftest.$ac_ext |
9489 | fi |
dd184caf |
9490 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9491 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9492 | if test $ac_cv_func_shl_load = yes; then |
9493 | lt_cv_dlopen="shl_load" |
9494 | else |
dd184caf |
9495 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9496 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9497 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9499 | else |
9500 | ac_check_lib_save_LIBS=$LIBS |
9501 | LIBS="-ldld $LIBS" |
9502 | cat >conftest.$ac_ext <<_ACEOF |
9503 | /* confdefs.h. */ |
9504 | _ACEOF |
9505 | cat confdefs.h >>conftest.$ac_ext |
9506 | cat >>conftest.$ac_ext <<_ACEOF |
9507 | /* end confdefs.h. */ |
9508 | |
dd184caf |
9509 | /* Override any GCC internal prototype to avoid an error. |
9510 | Use char because int might match the return type of a GCC |
9511 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9512 | #ifdef __cplusplus |
9513 | extern "C" |
9514 | #endif |
d9898ee8 |
9515 | char shl_load (); |
9516 | int |
9517 | main () |
9518 | { |
dd184caf |
9519 | return shl_load (); |
d9898ee8 |
9520 | ; |
9521 | return 0; |
9522 | } |
9523 | _ACEOF |
9524 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9525 | if { (ac_try="$ac_link" |
9526 | case "(($ac_try" in |
9527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9528 | *) ac_try_echo=$ac_try;; |
9529 | esac |
9530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9531 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9532 | ac_status=$? |
9533 | grep -v '^ *+' conftest.er1 >conftest.err |
9534 | rm -f conftest.er1 |
9535 | cat conftest.err >&5 |
9536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9537 | (exit $ac_status); } && { |
9538 | test -z "$ac_c_werror_flag" || |
9539 | test ! -s conftest.err |
9540 | } && test -s conftest$ac_exeext && |
9541 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9542 | ac_cv_lib_dld_shl_load=yes |
9543 | else |
9544 | echo "$as_me: failed program was:" >&5 |
9545 | sed 's/^/| /' conftest.$ac_ext >&5 |
9546 | |
dd184caf |
9547 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9548 | fi |
dd184caf |
9549 | |
9550 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9551 | conftest$ac_exeext conftest.$ac_ext |
9552 | LIBS=$ac_check_lib_save_LIBS |
9553 | fi |
dd184caf |
9554 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9555 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9556 | if test $ac_cv_lib_dld_shl_load = yes; then |
9557 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9558 | else |
dd184caf |
9559 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9560 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9561 | if test "${ac_cv_func_dlopen+set}" = set; then |
9562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9563 | else |
9564 | cat >conftest.$ac_ext <<_ACEOF |
9565 | /* confdefs.h. */ |
9566 | _ACEOF |
9567 | cat confdefs.h >>conftest.$ac_ext |
9568 | cat >>conftest.$ac_ext <<_ACEOF |
9569 | /* end confdefs.h. */ |
9570 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9571 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9572 | #define dlopen innocuous_dlopen |
9573 | |
9574 | /* System header to define __stub macros and hopefully few prototypes, |
9575 | which can conflict with char dlopen (); below. |
9576 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9577 | <limits.h> exists even on freestanding compilers. */ |
9578 | |
9579 | #ifdef __STDC__ |
9580 | # include <limits.h> |
9581 | #else |
9582 | # include <assert.h> |
9583 | #endif |
9584 | |
9585 | #undef dlopen |
9586 | |
dd184caf |
9587 | /* Override any GCC internal prototype to avoid an error. |
9588 | Use char because int might match the return type of a GCC |
9589 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9590 | #ifdef __cplusplus |
9591 | extern "C" |
d9898ee8 |
9592 | #endif |
d9898ee8 |
9593 | char dlopen (); |
9594 | /* The GNU C library defines this for functions which it implements |
9595 | to always fail with ENOSYS. Some functions are actually named |
9596 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9597 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9598 | choke me |
d9898ee8 |
9599 | #endif |
9600 | |
9601 | int |
9602 | main () |
9603 | { |
dd184caf |
9604 | return dlopen (); |
d9898ee8 |
9605 | ; |
9606 | return 0; |
9607 | } |
9608 | _ACEOF |
9609 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9610 | if { (ac_try="$ac_link" |
9611 | case "(($ac_try" in |
9612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9613 | *) ac_try_echo=$ac_try;; |
9614 | esac |
9615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9616 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9617 | ac_status=$? |
9618 | grep -v '^ *+' conftest.er1 >conftest.err |
9619 | rm -f conftest.er1 |
9620 | cat conftest.err >&5 |
9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9622 | (exit $ac_status); } && { |
9623 | test -z "$ac_c_werror_flag" || |
9624 | test ! -s conftest.err |
9625 | } && test -s conftest$ac_exeext && |
9626 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9627 | ac_cv_func_dlopen=yes |
9628 | else |
9629 | echo "$as_me: failed program was:" >&5 |
9630 | sed 's/^/| /' conftest.$ac_ext >&5 |
9631 | |
dd184caf |
9632 | ac_cv_func_dlopen=no |
d9898ee8 |
9633 | fi |
dd184caf |
9634 | |
9635 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9636 | conftest$ac_exeext conftest.$ac_ext |
9637 | fi |
dd184caf |
9638 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9639 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9640 | if test $ac_cv_func_dlopen = yes; then |
9641 | lt_cv_dlopen="dlopen" |
9642 | else |
dd184caf |
9643 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9644 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9645 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9647 | else |
9648 | ac_check_lib_save_LIBS=$LIBS |
9649 | LIBS="-ldl $LIBS" |
9650 | cat >conftest.$ac_ext <<_ACEOF |
9651 | /* confdefs.h. */ |
9652 | _ACEOF |
9653 | cat confdefs.h >>conftest.$ac_ext |
9654 | cat >>conftest.$ac_ext <<_ACEOF |
9655 | /* end confdefs.h. */ |
9656 | |
dd184caf |
9657 | /* Override any GCC internal prototype to avoid an error. |
9658 | Use char because int might match the return type of a GCC |
9659 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9660 | #ifdef __cplusplus |
9661 | extern "C" |
9662 | #endif |
d9898ee8 |
9663 | char dlopen (); |
9664 | int |
9665 | main () |
9666 | { |
dd184caf |
9667 | return dlopen (); |
d9898ee8 |
9668 | ; |
9669 | return 0; |
9670 | } |
9671 | _ACEOF |
9672 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9673 | if { (ac_try="$ac_link" |
9674 | case "(($ac_try" in |
9675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9676 | *) ac_try_echo=$ac_try;; |
9677 | esac |
9678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9679 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9680 | ac_status=$? |
9681 | grep -v '^ *+' conftest.er1 >conftest.err |
9682 | rm -f conftest.er1 |
9683 | cat conftest.err >&5 |
9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9685 | (exit $ac_status); } && { |
9686 | test -z "$ac_c_werror_flag" || |
9687 | test ! -s conftest.err |
9688 | } && test -s conftest$ac_exeext && |
9689 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9690 | ac_cv_lib_dl_dlopen=yes |
9691 | else |
9692 | echo "$as_me: failed program was:" >&5 |
9693 | sed 's/^/| /' conftest.$ac_ext >&5 |
9694 | |
dd184caf |
9695 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9696 | fi |
dd184caf |
9697 | |
9698 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9699 | conftest$ac_exeext conftest.$ac_ext |
9700 | LIBS=$ac_check_lib_save_LIBS |
9701 | fi |
dd184caf |
9702 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9703 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9704 | if test $ac_cv_lib_dl_dlopen = yes; then |
9705 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9706 | else |
dd184caf |
9707 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9708 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9709 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9711 | else |
9712 | ac_check_lib_save_LIBS=$LIBS |
9713 | LIBS="-lsvld $LIBS" |
9714 | cat >conftest.$ac_ext <<_ACEOF |
9715 | /* confdefs.h. */ |
9716 | _ACEOF |
9717 | cat confdefs.h >>conftest.$ac_ext |
9718 | cat >>conftest.$ac_ext <<_ACEOF |
9719 | /* end confdefs.h. */ |
9720 | |
dd184caf |
9721 | /* Override any GCC internal prototype to avoid an error. |
9722 | Use char because int might match the return type of a GCC |
9723 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9724 | #ifdef __cplusplus |
9725 | extern "C" |
9726 | #endif |
d9898ee8 |
9727 | char dlopen (); |
9728 | int |
9729 | main () |
9730 | { |
dd184caf |
9731 | return dlopen (); |
d9898ee8 |
9732 | ; |
9733 | return 0; |
9734 | } |
9735 | _ACEOF |
9736 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9737 | if { (ac_try="$ac_link" |
9738 | case "(($ac_try" in |
9739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9740 | *) ac_try_echo=$ac_try;; |
9741 | esac |
9742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9743 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9744 | ac_status=$? |
9745 | grep -v '^ *+' conftest.er1 >conftest.err |
9746 | rm -f conftest.er1 |
9747 | cat conftest.err >&5 |
9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9749 | (exit $ac_status); } && { |
9750 | test -z "$ac_c_werror_flag" || |
9751 | test ! -s conftest.err |
9752 | } && test -s conftest$ac_exeext && |
9753 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9754 | ac_cv_lib_svld_dlopen=yes |
9755 | else |
9756 | echo "$as_me: failed program was:" >&5 |
9757 | sed 's/^/| /' conftest.$ac_ext >&5 |
9758 | |
dd184caf |
9759 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9760 | fi |
dd184caf |
9761 | |
9762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9763 | conftest$ac_exeext conftest.$ac_ext |
9764 | LIBS=$ac_check_lib_save_LIBS |
9765 | fi |
dd184caf |
9766 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9767 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9768 | if test $ac_cv_lib_svld_dlopen = yes; then |
9769 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9770 | else |
dd184caf |
9771 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9772 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9773 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9775 | else |
9776 | ac_check_lib_save_LIBS=$LIBS |
9777 | LIBS="-ldld $LIBS" |
9778 | cat >conftest.$ac_ext <<_ACEOF |
9779 | /* confdefs.h. */ |
9780 | _ACEOF |
9781 | cat confdefs.h >>conftest.$ac_ext |
9782 | cat >>conftest.$ac_ext <<_ACEOF |
9783 | /* end confdefs.h. */ |
9784 | |
dd184caf |
9785 | /* Override any GCC internal prototype to avoid an error. |
9786 | Use char because int might match the return type of a GCC |
9787 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9788 | #ifdef __cplusplus |
9789 | extern "C" |
9790 | #endif |
d9898ee8 |
9791 | char dld_link (); |
9792 | int |
9793 | main () |
9794 | { |
dd184caf |
9795 | return dld_link (); |
d9898ee8 |
9796 | ; |
9797 | return 0; |
9798 | } |
9799 | _ACEOF |
9800 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9801 | if { (ac_try="$ac_link" |
9802 | case "(($ac_try" in |
9803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9804 | *) ac_try_echo=$ac_try;; |
9805 | esac |
9806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9807 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9808 | ac_status=$? |
9809 | grep -v '^ *+' conftest.er1 >conftest.err |
9810 | rm -f conftest.er1 |
9811 | cat conftest.err >&5 |
9812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9813 | (exit $ac_status); } && { |
9814 | test -z "$ac_c_werror_flag" || |
9815 | test ! -s conftest.err |
9816 | } && test -s conftest$ac_exeext && |
9817 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9818 | ac_cv_lib_dld_dld_link=yes |
9819 | else |
9820 | echo "$as_me: failed program was:" >&5 |
9821 | sed 's/^/| /' conftest.$ac_ext >&5 |
9822 | |
dd184caf |
9823 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9824 | fi |
dd184caf |
9825 | |
9826 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9827 | conftest$ac_exeext conftest.$ac_ext |
9828 | LIBS=$ac_check_lib_save_LIBS |
9829 | fi |
dd184caf |
9830 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9831 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9832 | if test $ac_cv_lib_dld_dld_link = yes; then |
9833 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9834 | fi |
9835 | |
9836 | |
9837 | fi |
9838 | |
9839 | |
9840 | fi |
9841 | |
9842 | |
9843 | fi |
9844 | |
9845 | |
9846 | fi |
9847 | |
9848 | |
9849 | fi |
9850 | |
9851 | ;; |
9852 | esac |
9853 | |
9854 | if test "x$lt_cv_dlopen" != xno; then |
9855 | enable_dlopen=yes |
9856 | else |
9857 | enable_dlopen=no |
9858 | fi |
9859 | |
9860 | case $lt_cv_dlopen in |
9861 | dlopen) |
9862 | save_CPPFLAGS="$CPPFLAGS" |
9863 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9864 | |
9865 | save_LDFLAGS="$LDFLAGS" |
9866 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9867 | |
9868 | save_LIBS="$LIBS" |
9869 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9870 | |
dd184caf |
9871 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9872 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9873 | if test "${lt_cv_dlopen_self+set}" = set; then |
9874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9875 | else |
9876 | if test "$cross_compiling" = yes; then : |
9877 | lt_cv_dlopen_self=cross |
9878 | else |
9879 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9880 | lt_status=$lt_dlunknown |
9881 | cat > conftest.$ac_ext <<EOF |
ac40fd9e |
9882 | #line 9882 "configure" |
d9898ee8 |
9883 | #include "confdefs.h" |
9884 | |
9885 | #if HAVE_DLFCN_H |
9886 | #include <dlfcn.h> |
9887 | #endif |
9888 | |
9889 | #include <stdio.h> |
9890 | |
9891 | #ifdef RTLD_GLOBAL |
9892 | # define LT_DLGLOBAL RTLD_GLOBAL |
9893 | #else |
9894 | # ifdef DL_GLOBAL |
9895 | # define LT_DLGLOBAL DL_GLOBAL |
9896 | # else |
9897 | # define LT_DLGLOBAL 0 |
9898 | # endif |
9899 | #endif |
9900 | |
9901 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9902 | find out it does not work in some platform. */ |
9903 | #ifndef LT_DLLAZY_OR_NOW |
9904 | # ifdef RTLD_LAZY |
9905 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9906 | # else |
9907 | # ifdef DL_LAZY |
9908 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9909 | # else |
9910 | # ifdef RTLD_NOW |
9911 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9912 | # else |
9913 | # ifdef DL_NOW |
9914 | # define LT_DLLAZY_OR_NOW DL_NOW |
9915 | # else |
9916 | # define LT_DLLAZY_OR_NOW 0 |
9917 | # endif |
9918 | # endif |
9919 | # endif |
9920 | # endif |
9921 | #endif |
9922 | |
9923 | #ifdef __cplusplus |
9924 | extern "C" void exit (int); |
9925 | #endif |
9926 | |
9927 | void fnord() { int i=42;} |
9928 | int main () |
9929 | { |
9930 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9931 | int status = $lt_dlunknown; |
9932 | |
9933 | if (self) |
9934 | { |
9935 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9936 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9937 | /* dlclose (self); */ |
9938 | } |
9939 | else |
9940 | puts (dlerror ()); |
9941 | |
9942 | exit (status); |
9943 | } |
9944 | EOF |
9945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9946 | (eval $ac_link) 2>&5 |
9947 | ac_status=$? |
9948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9949 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9950 | (./conftest; exit; ) >&5 2>/dev/null |
9951 | lt_status=$? |
9952 | case x$lt_status in |
9953 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9954 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9955 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9956 | esac |
9957 | else : |
9958 | # compilation failed |
9959 | lt_cv_dlopen_self=no |
9960 | fi |
9961 | fi |
9962 | rm -fr conftest* |
9963 | |
9964 | |
9965 | fi |
dd184caf |
9966 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9967 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
9968 | |
9969 | if test "x$lt_cv_dlopen_self" = xyes; then |
9970 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
dd184caf |
9971 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9972 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9973 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9975 | else |
9976 | if test "$cross_compiling" = yes; then : |
9977 | lt_cv_dlopen_self_static=cross |
9978 | else |
9979 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9980 | lt_status=$lt_dlunknown |
9981 | cat > conftest.$ac_ext <<EOF |
ac40fd9e |
9982 | #line 9982 "configure" |
d9898ee8 |
9983 | #include "confdefs.h" |
9984 | |
9985 | #if HAVE_DLFCN_H |
9986 | #include <dlfcn.h> |
9987 | #endif |
9988 | |
9989 | #include <stdio.h> |
9990 | |
9991 | #ifdef RTLD_GLOBAL |
9992 | # define LT_DLGLOBAL RTLD_GLOBAL |
9993 | #else |
9994 | # ifdef DL_GLOBAL |
9995 | # define LT_DLGLOBAL DL_GLOBAL |
9996 | # else |
9997 | # define LT_DLGLOBAL 0 |
9998 | # endif |
9999 | #endif |
10000 | |
10001 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10002 | find out it does not work in some platform. */ |
10003 | #ifndef LT_DLLAZY_OR_NOW |
10004 | # ifdef RTLD_LAZY |
10005 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10006 | # else |
10007 | # ifdef DL_LAZY |
10008 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10009 | # else |
10010 | # ifdef RTLD_NOW |
10011 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10012 | # else |
10013 | # ifdef DL_NOW |
10014 | # define LT_DLLAZY_OR_NOW DL_NOW |
10015 | # else |
10016 | # define LT_DLLAZY_OR_NOW 0 |
10017 | # endif |
10018 | # endif |
10019 | # endif |
10020 | # endif |
10021 | #endif |
10022 | |
10023 | #ifdef __cplusplus |
10024 | extern "C" void exit (int); |
10025 | #endif |
10026 | |
10027 | void fnord() { int i=42;} |
10028 | int main () |
10029 | { |
10030 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10031 | int status = $lt_dlunknown; |
10032 | |
10033 | if (self) |
10034 | { |
10035 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10036 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10037 | /* dlclose (self); */ |
10038 | } |
10039 | else |
10040 | puts (dlerror ()); |
10041 | |
10042 | exit (status); |
10043 | } |
10044 | EOF |
10045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10046 | (eval $ac_link) 2>&5 |
10047 | ac_status=$? |
10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10049 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10050 | (./conftest; exit; ) >&5 2>/dev/null |
10051 | lt_status=$? |
10052 | case x$lt_status in |
10053 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10054 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10055 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10056 | esac |
10057 | else : |
10058 | # compilation failed |
10059 | lt_cv_dlopen_self_static=no |
10060 | fi |
10061 | fi |
10062 | rm -fr conftest* |
10063 | |
10064 | |
10065 | fi |
dd184caf |
10066 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10067 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10068 | fi |
10069 | |
10070 | CPPFLAGS="$save_CPPFLAGS" |
10071 | LDFLAGS="$save_LDFLAGS" |
10072 | LIBS="$save_LIBS" |
10073 | ;; |
10074 | esac |
10075 | |
10076 | case $lt_cv_dlopen_self in |
10077 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10078 | *) enable_dlopen_self=unknown ;; |
10079 | esac |
10080 | |
10081 | case $lt_cv_dlopen_self_static in |
10082 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10083 | *) enable_dlopen_self_static=unknown ;; |
10084 | esac |
10085 | fi |
10086 | |
10087 | |
10088 | # Report which library types will actually be built |
dd184caf |
10089 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10090 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10091 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10092 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10093 | |
dd184caf |
10094 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10095 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10096 | test "$can_build_shared" = "no" && enable_shared=no |
10097 | |
10098 | # On AIX, shared libraries and static libraries use the same namespace, and |
10099 | # are all built from PIC. |
10100 | case $host_os in |
10101 | aix3*) |
10102 | test "$enable_shared" = yes && enable_static=no |
10103 | if test -n "$RANLIB"; then |
10104 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10105 | postinstall_cmds='$RANLIB $lib' |
10106 | fi |
10107 | ;; |
10108 | |
10109 | aix4* | aix5*) |
10110 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10111 | test "$enable_shared" = yes && enable_static=no |
10112 | fi |
10113 | ;; |
10114 | esac |
dd184caf |
10115 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10116 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10117 | |
dd184caf |
10118 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10119 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10120 | # Make sure either enable_shared or enable_static is yes. |
10121 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
10122 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10123 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10124 | |
10125 | # The else clause should only fire when bootstrapping the |
10126 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10127 | # with your package, and you will get complaints that there are |
10128 | # no rules to generate ltmain.sh. |
10129 | if test -f "$ltmain"; then |
10130 | # See if we are running on zsh, and set the options which allow our commands through |
10131 | # without removal of \ escapes. |
10132 | if test -n "${ZSH_VERSION+set}" ; then |
10133 | setopt NO_GLOB_SUBST |
10134 | fi |
10135 | # Now quote all the things that may contain metacharacters while being |
10136 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10137 | # variables and quote the copies for generation of the libtool script. |
10138 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10139 | SED SHELL STRIP \ |
10140 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10141 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10142 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10143 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10144 | lt_cv_sys_global_symbol_to_c_name_address \ |
10145 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10146 | old_postinstall_cmds old_postuninstall_cmds \ |
10147 | compiler \ |
10148 | CC \ |
10149 | LD \ |
10150 | lt_prog_compiler_wl \ |
10151 | lt_prog_compiler_pic \ |
10152 | lt_prog_compiler_static \ |
10153 | lt_prog_compiler_no_builtin_flag \ |
10154 | export_dynamic_flag_spec \ |
10155 | thread_safe_flag_spec \ |
10156 | whole_archive_flag_spec \ |
10157 | enable_shared_with_static_runtimes \ |
10158 | old_archive_cmds \ |
10159 | old_archive_from_new_cmds \ |
10160 | predep_objects \ |
10161 | postdep_objects \ |
10162 | predeps \ |
10163 | postdeps \ |
10164 | compiler_lib_search_path \ |
10165 | archive_cmds \ |
10166 | archive_expsym_cmds \ |
10167 | postinstall_cmds \ |
10168 | postuninstall_cmds \ |
10169 | old_archive_from_expsyms_cmds \ |
10170 | allow_undefined_flag \ |
10171 | no_undefined_flag \ |
10172 | export_symbols_cmds \ |
10173 | hardcode_libdir_flag_spec \ |
10174 | hardcode_libdir_flag_spec_ld \ |
10175 | hardcode_libdir_separator \ |
10176 | hardcode_automatic \ |
10177 | module_cmds \ |
10178 | module_expsym_cmds \ |
10179 | lt_cv_prog_compiler_c_o \ |
ac40fd9e |
10180 | fix_srcfile_path \ |
d9898ee8 |
10181 | exclude_expsyms \ |
10182 | include_expsyms; do |
10183 | |
10184 | case $var in |
10185 | old_archive_cmds | \ |
10186 | old_archive_from_new_cmds | \ |
10187 | archive_cmds | \ |
10188 | archive_expsym_cmds | \ |
10189 | module_cmds | \ |
10190 | module_expsym_cmds | \ |
10191 | old_archive_from_expsyms_cmds | \ |
10192 | export_symbols_cmds | \ |
10193 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10194 | postinstall_cmds | postuninstall_cmds | \ |
10195 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10196 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10197 | # Double-quote double-evaled strings. |
10198 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10199 | ;; |
10200 | *) |
10201 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10202 | ;; |
10203 | esac |
10204 | done |
10205 | |
10206 | case $lt_echo in |
10207 | *'\$0 --fallback-echo"') |
10208 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10209 | ;; |
10210 | esac |
10211 | |
10212 | cfgfile="${ofile}T" |
10213 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10214 | $rm -f "$cfgfile" |
10215 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10216 | echo "$as_me: creating $ofile" >&6;} |
10217 | |
10218 | cat <<__EOF__ >> "$cfgfile" |
10219 | #! $SHELL |
10220 | |
10221 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10222 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10223 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10224 | # |
ac40fd9e |
10225 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
d9898ee8 |
10226 | # Free Software Foundation, Inc. |
10227 | # |
10228 | # This file is part of GNU Libtool: |
10229 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10230 | # |
10231 | # This program is free software; you can redistribute it and/or modify |
10232 | # it under the terms of the GNU General Public License as published by |
10233 | # the Free Software Foundation; either version 2 of the License, or |
10234 | # (at your option) any later version. |
10235 | # |
10236 | # This program is distributed in the hope that it will be useful, but |
10237 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10238 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10239 | # General Public License for more details. |
10240 | # |
10241 | # You should have received a copy of the GNU General Public License |
10242 | # along with this program; if not, write to the Free Software |
10243 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10244 | # |
10245 | # As a special exception to the GNU General Public License, if you |
10246 | # distribute this file as part of a program that contains a |
10247 | # configuration script generated by Autoconf, you may include it under |
10248 | # the same distribution terms that you use for the rest of that program. |
10249 | |
10250 | # A sed program that does not truncate output. |
10251 | SED=$lt_SED |
10252 | |
10253 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10254 | Xsed="$SED -e 1s/^X//" |
10255 | |
10256 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10257 | # if CDPATH is set. |
10258 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10259 | |
10260 | # The names of the tagged configurations supported by this script. |
10261 | available_tags= |
10262 | |
10263 | # ### BEGIN LIBTOOL CONFIG |
10264 | |
10265 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10266 | |
10267 | # Shell to use when invoking shell scripts. |
10268 | SHELL=$lt_SHELL |
10269 | |
10270 | # Whether or not to build shared libraries. |
10271 | build_libtool_libs=$enable_shared |
10272 | |
10273 | # Whether or not to build static libraries. |
10274 | build_old_libs=$enable_static |
10275 | |
10276 | # Whether or not to add -lc for building shared libraries. |
10277 | build_libtool_need_lc=$archive_cmds_need_lc |
10278 | |
10279 | # Whether or not to disallow shared libs when runtime libs are static |
10280 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10281 | |
10282 | # Whether or not to optimize for fast installation. |
10283 | fast_install=$enable_fast_install |
10284 | |
10285 | # The host system. |
10286 | host_alias=$host_alias |
10287 | host=$host |
10288 | host_os=$host_os |
10289 | |
10290 | # The build system. |
10291 | build_alias=$build_alias |
10292 | build=$build |
10293 | build_os=$build_os |
10294 | |
10295 | # An echo program that does not interpret backslashes. |
10296 | echo=$lt_echo |
10297 | |
10298 | # The archiver. |
10299 | AR=$lt_AR |
10300 | AR_FLAGS=$lt_AR_FLAGS |
10301 | |
10302 | # A C compiler. |
10303 | LTCC=$lt_LTCC |
10304 | |
10305 | # LTCC compiler flags. |
10306 | LTCFLAGS=$lt_LTCFLAGS |
10307 | |
10308 | # A language-specific compiler. |
10309 | CC=$lt_compiler |
10310 | |
10311 | # Is the compiler the GNU C compiler? |
10312 | with_gcc=$GCC |
10313 | |
d9898ee8 |
10314 | # An ERE matcher. |
10315 | EGREP=$lt_EGREP |
10316 | |
10317 | # The linker used to build libraries. |
10318 | LD=$lt_LD |
10319 | |
10320 | # Whether we need hard or soft links. |
10321 | LN_S=$lt_LN_S |
10322 | |
10323 | # A BSD-compatible nm program. |
10324 | NM=$lt_NM |
10325 | |
10326 | # A symbol stripping program |
10327 | STRIP=$lt_STRIP |
10328 | |
10329 | # Used to examine libraries when file_magic_cmd begins "file" |
10330 | MAGIC_CMD=$MAGIC_CMD |
10331 | |
10332 | # Used on cygwin: DLL creation program. |
10333 | DLLTOOL="$DLLTOOL" |
10334 | |
10335 | # Used on cygwin: object dumper. |
10336 | OBJDUMP="$OBJDUMP" |
10337 | |
10338 | # Used on cygwin: assembler. |
10339 | AS="$AS" |
10340 | |
10341 | # The name of the directory that contains temporary libtool files. |
10342 | objdir=$objdir |
10343 | |
10344 | # How to create reloadable object files. |
10345 | reload_flag=$lt_reload_flag |
10346 | reload_cmds=$lt_reload_cmds |
10347 | |
10348 | # How to pass a linker flag through the compiler. |
10349 | wl=$lt_lt_prog_compiler_wl |
10350 | |
10351 | # Object file suffix (normally "o"). |
10352 | objext="$ac_objext" |
10353 | |
10354 | # Old archive suffix (normally "a"). |
10355 | libext="$libext" |
10356 | |
10357 | # Shared library suffix (normally ".so"). |
10358 | shrext_cmds='$shrext_cmds' |
10359 | |
10360 | # Executable file suffix (normally ""). |
10361 | exeext="$exeext" |
10362 | |
10363 | # Additional compiler flags for building library objects. |
10364 | pic_flag=$lt_lt_prog_compiler_pic |
10365 | pic_mode=$pic_mode |
10366 | |
10367 | # What is the maximum length of a command? |
10368 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10369 | |
10370 | # Does compiler simultaneously support -c and -o options? |
10371 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10372 | |
10373 | # Must we lock files when doing compilation? |
10374 | need_locks=$lt_need_locks |
10375 | |
10376 | # Do we need the lib prefix for modules? |
10377 | need_lib_prefix=$need_lib_prefix |
10378 | |
10379 | # Do we need a version for libraries? |
10380 | need_version=$need_version |
10381 | |
10382 | # Whether dlopen is supported. |
10383 | dlopen_support=$enable_dlopen |
10384 | |
10385 | # Whether dlopen of programs is supported. |
10386 | dlopen_self=$enable_dlopen_self |
10387 | |
10388 | # Whether dlopen of statically linked programs is supported. |
10389 | dlopen_self_static=$enable_dlopen_self_static |
10390 | |
10391 | # Compiler flag to prevent dynamic linking. |
10392 | link_static_flag=$lt_lt_prog_compiler_static |
10393 | |
10394 | # Compiler flag to turn off builtin functions. |
10395 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10396 | |
10397 | # Compiler flag to allow reflexive dlopens. |
10398 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10399 | |
10400 | # Compiler flag to generate shared objects directly from archives. |
10401 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10402 | |
10403 | # Compiler flag to generate thread-safe objects. |
10404 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10405 | |
10406 | # Library versioning type. |
10407 | version_type=$version_type |
10408 | |
10409 | # Format of library name prefix. |
10410 | libname_spec=$lt_libname_spec |
10411 | |
10412 | # List of archive names. First name is the real one, the rest are links. |
10413 | # The last name is the one that the linker finds with -lNAME. |
10414 | library_names_spec=$lt_library_names_spec |
10415 | |
10416 | # The coded name of the library, if different from the real name. |
10417 | soname_spec=$lt_soname_spec |
10418 | |
10419 | # Commands used to build and install an old-style archive. |
10420 | RANLIB=$lt_RANLIB |
10421 | old_archive_cmds=$lt_old_archive_cmds |
10422 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10423 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10424 | |
10425 | # Create an old-style archive from a shared archive. |
10426 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10427 | |
10428 | # Create a temporary old-style archive to link instead of a shared archive. |
10429 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10430 | |
10431 | # Commands used to build and install a shared archive. |
10432 | archive_cmds=$lt_archive_cmds |
10433 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10434 | postinstall_cmds=$lt_postinstall_cmds |
10435 | postuninstall_cmds=$lt_postuninstall_cmds |
10436 | |
10437 | # Commands used to build a loadable module (assumed same as above if empty) |
10438 | module_cmds=$lt_module_cmds |
10439 | module_expsym_cmds=$lt_module_expsym_cmds |
10440 | |
10441 | # Commands to strip libraries. |
10442 | old_striplib=$lt_old_striplib |
10443 | striplib=$lt_striplib |
10444 | |
10445 | # Dependencies to place before the objects being linked to create a |
10446 | # shared library. |
dd184caf |
10447 | predep_objects=$lt_predep_objects |
d9898ee8 |
10448 | |
10449 | # Dependencies to place after the objects being linked to create a |
10450 | # shared library. |
dd184caf |
10451 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10452 | |
10453 | # Dependencies to place before the objects being linked to create a |
10454 | # shared library. |
10455 | predeps=$lt_predeps |
10456 | |
10457 | # Dependencies to place after the objects being linked to create a |
10458 | # shared library. |
10459 | postdeps=$lt_postdeps |
10460 | |
10461 | # The library search path used internally by the compiler when linking |
10462 | # a shared library. |
dd184caf |
10463 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10464 | |
10465 | # Method to check whether dependent libraries are shared objects. |
10466 | deplibs_check_method=$lt_deplibs_check_method |
10467 | |
10468 | # Command to use when deplibs_check_method == file_magic. |
10469 | file_magic_cmd=$lt_file_magic_cmd |
10470 | |
10471 | # Flag that allows shared libraries with undefined symbols to be built. |
10472 | allow_undefined_flag=$lt_allow_undefined_flag |
10473 | |
10474 | # Flag that forces no undefined symbols. |
10475 | no_undefined_flag=$lt_no_undefined_flag |
10476 | |
10477 | # Commands used to finish a libtool library installation in a directory. |
10478 | finish_cmds=$lt_finish_cmds |
10479 | |
10480 | # Same as above, but a single script fragment to be evaled but not shown. |
10481 | finish_eval=$lt_finish_eval |
10482 | |
10483 | # Take the output of nm and produce a listing of raw symbols and C names. |
10484 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10485 | |
10486 | # Transform the output of nm in a proper C declaration |
10487 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10488 | |
10489 | # Transform the output of nm in a C name address pair |
10490 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10491 | |
10492 | # This is the shared library runtime path variable. |
10493 | runpath_var=$runpath_var |
10494 | |
10495 | # This is the shared library path variable. |
10496 | shlibpath_var=$shlibpath_var |
10497 | |
10498 | # Is shlibpath searched before the hard-coded library search path? |
10499 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10500 | |
10501 | # How to hardcode a shared library path into an executable. |
10502 | hardcode_action=$hardcode_action |
10503 | |
10504 | # Whether we should hardcode library paths into libraries. |
10505 | hardcode_into_libs=$hardcode_into_libs |
10506 | |
10507 | # Flag to hardcode \$libdir into a binary during linking. |
10508 | # This must work even if \$libdir does not exist. |
10509 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10510 | |
10511 | # If ld is used when linking, flag to hardcode \$libdir into |
10512 | # a binary during linking. This must work even if \$libdir does |
10513 | # not exist. |
10514 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10515 | |
10516 | # Whether we need a single -rpath flag with a separated argument. |
10517 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10518 | |
10519 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10520 | # resulting binary. |
10521 | hardcode_direct=$hardcode_direct |
10522 | |
10523 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10524 | # resulting binary. |
10525 | hardcode_minus_L=$hardcode_minus_L |
10526 | |
10527 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10528 | # the resulting binary. |
10529 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10530 | |
10531 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10532 | # and all subsequent libraries and executables linked against it. |
10533 | hardcode_automatic=$hardcode_automatic |
10534 | |
10535 | # Variables whose values should be saved in libtool wrapper scripts and |
10536 | # restored at relink time. |
10537 | variables_saved_for_relink="$variables_saved_for_relink" |
10538 | |
10539 | # Whether libtool must link a program against all its dependency libraries. |
10540 | link_all_deplibs=$link_all_deplibs |
10541 | |
10542 | # Compile-time system search path for libraries |
dd184caf |
10543 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10544 | |
10545 | # Run-time system search path for libraries |
10546 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10547 | |
10548 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
10549 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
10550 | |
10551 | # Set to yes if exported symbols are required. |
10552 | always_export_symbols=$always_export_symbols |
10553 | |
10554 | # The commands to list exported symbols. |
10555 | export_symbols_cmds=$lt_export_symbols_cmds |
10556 | |
10557 | # The commands to extract the exported symbol list from a shared archive. |
10558 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10559 | |
10560 | # Symbols that should not be listed in the preloaded symbols. |
10561 | exclude_expsyms=$lt_exclude_expsyms |
10562 | |
10563 | # Symbols that must always be exported. |
10564 | include_expsyms=$lt_include_expsyms |
10565 | |
10566 | # ### END LIBTOOL CONFIG |
10567 | |
10568 | __EOF__ |
10569 | |
10570 | |
10571 | case $host_os in |
10572 | aix3*) |
10573 | cat <<\EOF >> "$cfgfile" |
10574 | |
10575 | # AIX sometimes has problems with the GCC collect2 program. For some |
10576 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10577 | # vanish in a puff of smoke. |
10578 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10579 | COLLECT_NAMES= |
10580 | export COLLECT_NAMES |
10581 | fi |
10582 | EOF |
10583 | ;; |
10584 | esac |
10585 | |
10586 | # We use sed instead of cat because bash on DJGPP gets confused if |
10587 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10588 | # text mode, it properly converts lines to CR/LF. This bash problem |
10589 | # is reportedly fixed, but why not run on old versions too? |
10590 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10591 | |
10592 | mv -f "$cfgfile" "$ofile" || \ |
10593 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10594 | chmod +x "$ofile" |
10595 | |
10596 | else |
10597 | # If there is no Makefile yet, we rely on a make rule to execute |
10598 | # `config.status --recheck' to rerun these tests and create the |
10599 | # libtool script then. |
10600 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10601 | if test -f "$ltmain_in"; then |
10602 | test -f Makefile && make "$ltmain" |
10603 | fi |
10604 | fi |
10605 | |
10606 | |
10607 | ac_ext=c |
10608 | ac_cpp='$CPP $CPPFLAGS' |
10609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10612 | |
10613 | CC="$lt_save_CC" |
10614 | |
10615 | |
dd184caf |
10616 | # Check whether --with-tags was given. |
d9898ee8 |
10617 | if test "${with_tags+set}" = set; then |
dd184caf |
10618 | withval=$with_tags; tagnames="$withval" |
10619 | fi |
10620 | |
d9898ee8 |
10621 | |
10622 | if test -f "$ltmain" && test -n "$tagnames"; then |
10623 | if test ! -f "${ofile}"; then |
10624 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10625 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10626 | fi |
10627 | |
10628 | if test -z "$LTCC"; then |
10629 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10630 | if test -z "$LTCC"; then |
10631 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10632 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10633 | else |
10634 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10635 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10636 | fi |
10637 | fi |
10638 | if test -z "$LTCFLAGS"; then |
10639 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10640 | fi |
10641 | |
10642 | # Extract list of available tagged configurations in $ofile. |
10643 | # Note that this assumes the entire list is on one line. |
10644 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10645 | |
10646 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10647 | for tagname in $tagnames; do |
10648 | IFS="$lt_save_ifs" |
10649 | # Check whether tagname contains only valid characters |
10650 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10651 | "") ;; |
10652 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10653 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10654 | { (exit 1); exit 1; }; } |
10655 | ;; |
10656 | esac |
10657 | |
10658 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10659 | then |
10660 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10661 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10662 | { (exit 1); exit 1; }; } |
10663 | fi |
10664 | |
10665 | # Update the list of available tags. |
10666 | if test -n "$tagname"; then |
10667 | echo appending configuration tag \"$tagname\" to $ofile |
10668 | |
10669 | case $tagname in |
10670 | CXX) |
10671 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10672 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10673 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
10674 | ac_ext=cpp |
d9898ee8 |
10675 | ac_cpp='$CXXCPP $CPPFLAGS' |
10676 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10677 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10678 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10679 | |
10680 | |
10681 | |
10682 | |
10683 | archive_cmds_need_lc_CXX=no |
10684 | allow_undefined_flag_CXX= |
10685 | always_export_symbols_CXX=no |
10686 | archive_expsym_cmds_CXX= |
10687 | export_dynamic_flag_spec_CXX= |
10688 | hardcode_direct_CXX=no |
10689 | hardcode_libdir_flag_spec_CXX= |
10690 | hardcode_libdir_flag_spec_ld_CXX= |
10691 | hardcode_libdir_separator_CXX= |
10692 | hardcode_minus_L_CXX=no |
10693 | hardcode_shlibpath_var_CXX=unsupported |
10694 | hardcode_automatic_CXX=no |
10695 | module_cmds_CXX= |
10696 | module_expsym_cmds_CXX= |
10697 | link_all_deplibs_CXX=unknown |
10698 | old_archive_cmds_CXX=$old_archive_cmds |
10699 | no_undefined_flag_CXX= |
10700 | whole_archive_flag_spec_CXX= |
10701 | enable_shared_with_static_runtimes_CXX=no |
10702 | |
10703 | # Dependencies to place before and after the object being linked: |
10704 | predep_objects_CXX= |
10705 | postdep_objects_CXX= |
10706 | predeps_CXX= |
10707 | postdeps_CXX= |
10708 | compiler_lib_search_path_CXX= |
10709 | |
10710 | # Source file extension for C++ test sources. |
10711 | ac_ext=cpp |
10712 | |
10713 | # Object file extension for compiled C++ test sources. |
10714 | objext=o |
10715 | objext_CXX=$objext |
10716 | |
10717 | # Code to be used in simple compile tests |
ac40fd9e |
10718 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 |
10719 | |
10720 | # Code to be used in simple link tests |
ac40fd9e |
10721 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
d9898ee8 |
10722 | |
10723 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10724 | |
10725 | # If no C compiler was specified, use CC. |
10726 | LTCC=${LTCC-"$CC"} |
10727 | |
10728 | # If no C compiler flags were specified, use CFLAGS. |
10729 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10730 | |
10731 | # Allow CC to be a program name with arguments. |
10732 | compiler=$CC |
10733 | |
10734 | |
10735 | # save warnings/boilerplate of simple test code |
10736 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
10737 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
10738 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10739 | _lt_compiler_boilerplate=`cat conftest.err` |
10740 | $rm conftest* |
10741 | |
10742 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
10743 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
10744 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10745 | _lt_linker_boilerplate=`cat conftest.err` |
10746 | $rm conftest* |
10747 | |
10748 | |
10749 | # Allow CC to be a program name with arguments. |
10750 | lt_save_CC=$CC |
10751 | lt_save_LD=$LD |
10752 | lt_save_GCC=$GCC |
10753 | GCC=$GXX |
10754 | lt_save_with_gnu_ld=$with_gnu_ld |
10755 | lt_save_path_LD=$lt_cv_path_LD |
10756 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10757 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10758 | else |
10759 | $as_unset lt_cv_prog_gnu_ld |
10760 | fi |
10761 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10762 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10763 | else |
10764 | $as_unset lt_cv_path_LD |
10765 | fi |
10766 | test -z "${LDCXX+set}" || LD=$LDCXX |
10767 | CC=${CXX-"c++"} |
10768 | compiler=$CC |
10769 | compiler_CXX=$CC |
10770 | for cc_temp in $compiler""; do |
10771 | case $cc_temp in |
10772 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10773 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10774 | \-*) ;; |
10775 | *) break;; |
10776 | esac |
10777 | done |
10778 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10779 | |
10780 | |
10781 | # We don't want -fno-exception wen compiling C++ code, so set the |
10782 | # no_builtin_flag separately |
10783 | if test "$GXX" = yes; then |
10784 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10785 | else |
10786 | lt_prog_compiler_no_builtin_flag_CXX= |
10787 | fi |
10788 | |
10789 | if test "$GXX" = yes; then |
10790 | # Set up default GNU C++ configuration |
10791 | |
10792 | |
dd184caf |
10793 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
10794 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
10795 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
10796 | else |
10797 | with_gnu_ld=no |
dd184caf |
10798 | fi |
10799 | |
d9898ee8 |
10800 | ac_prog=ld |
10801 | if test "$GCC" = yes; then |
10802 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
10803 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10804 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
10805 | case $host in |
10806 | *-*-mingw*) |
10807 | # gcc leaves a trailing carriage return which upsets mingw |
10808 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10809 | *) |
10810 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10811 | esac |
10812 | case $ac_prog in |
10813 | # Accept absolute paths. |
10814 | [\\/]* | ?:[\\/]*) |
10815 | re_direlt='/[^/][^/]*/\.\./' |
10816 | # Canonicalize the pathname of ld |
10817 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10818 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10819 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10820 | done |
10821 | test -z "$LD" && LD="$ac_prog" |
10822 | ;; |
10823 | "") |
10824 | # If it fails, then pretend we aren't using GCC. |
10825 | ac_prog=ld |
10826 | ;; |
10827 | *) |
10828 | # If it is relative, then search for the first ld in PATH. |
10829 | with_gnu_ld=unknown |
10830 | ;; |
10831 | esac |
10832 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
10833 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10834 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10835 | else |
dd184caf |
10836 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10837 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10838 | fi |
10839 | if test "${lt_cv_path_LD+set}" = set; then |
10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10841 | else |
10842 | if test -z "$LD"; then |
10843 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10844 | for ac_dir in $PATH; do |
10845 | IFS="$lt_save_ifs" |
10846 | test -z "$ac_dir" && ac_dir=. |
10847 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10848 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10849 | # Check to see if the program is GNU ld. I'd rather use --version, |
10850 | # but apparently some variants of GNU ld only accept -v. |
10851 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10852 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10853 | *GNU* | *'with BFD'*) |
10854 | test "$with_gnu_ld" != no && break |
10855 | ;; |
10856 | *) |
10857 | test "$with_gnu_ld" != yes && break |
10858 | ;; |
10859 | esac |
10860 | fi |
10861 | done |
10862 | IFS="$lt_save_ifs" |
10863 | else |
10864 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10865 | fi |
10866 | fi |
10867 | |
10868 | LD="$lt_cv_path_LD" |
10869 | if test -n "$LD"; then |
dd184caf |
10870 | { echo "$as_me:$LINENO: result: $LD" >&5 |
10871 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
10872 | else |
dd184caf |
10873 | { echo "$as_me:$LINENO: result: no" >&5 |
10874 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
10875 | fi |
10876 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10877 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10878 | { (exit 1); exit 1; }; } |
dd184caf |
10879 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10880 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10881 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10883 | else |
10884 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10885 | case `$LD -v 2>&1 </dev/null` in |
10886 | *GNU* | *'with BFD'*) |
10887 | lt_cv_prog_gnu_ld=yes |
10888 | ;; |
10889 | *) |
10890 | lt_cv_prog_gnu_ld=no |
10891 | ;; |
10892 | esac |
10893 | fi |
dd184caf |
10894 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10895 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
10896 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10897 | |
10898 | |
10899 | |
10900 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10901 | # archiving commands below assume that GNU ld is being used. |
10902 | if test "$with_gnu_ld" = yes; then |
10903 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10904 | 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' |
10905 | |
10906 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10907 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10908 | |
10909 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10910 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10911 | # investigate it a little bit more. (MM) |
10912 | wlarc='${wl}' |
10913 | |
10914 | # ancient GNU ld didn't support --whole-archive et. al. |
10915 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10916 | grep 'no-whole-archive' > /dev/null; then |
10917 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10918 | else |
10919 | whole_archive_flag_spec_CXX= |
10920 | fi |
10921 | else |
10922 | with_gnu_ld=no |
10923 | wlarc= |
10924 | |
10925 | # A generic and very simple default shared library creation |
10926 | # command for GNU C++ for the case where it uses the native |
10927 | # linker, instead of GNU ld. If possible, this setting should |
10928 | # overridden to take advantage of the native linker features on |
10929 | # the platform it is being used on. |
10930 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10931 | fi |
10932 | |
10933 | # Commands to make compiler produce verbose output that lists |
10934 | # what "hidden" libraries, object files and flags are used when |
10935 | # linking a shared library. |
10936 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10937 | |
10938 | else |
10939 | GXX=no |
10940 | with_gnu_ld=no |
10941 | wlarc= |
10942 | fi |
10943 | |
10944 | # PORTME: fill in a description of your system's C++ link characteristics |
dd184caf |
10945 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10946 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10947 | ld_shlibs_CXX=yes |
10948 | case $host_os in |
10949 | aix3*) |
10950 | # FIXME: insert proper C++ library support |
10951 | ld_shlibs_CXX=no |
10952 | ;; |
10953 | aix4* | aix5*) |
10954 | if test "$host_cpu" = ia64; then |
10955 | # On IA64, the linker does run time linking by default, so we don't |
10956 | # have to do anything special. |
10957 | aix_use_runtimelinking=no |
10958 | exp_sym_flag='-Bexport' |
10959 | no_entry_flag="" |
10960 | else |
10961 | aix_use_runtimelinking=no |
10962 | |
10963 | # Test if we are trying to use run time linking or normal |
10964 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10965 | # need to do runtime linking. |
10966 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10967 | for ld_flag in $LDFLAGS; do |
10968 | case $ld_flag in |
10969 | *-brtl*) |
10970 | aix_use_runtimelinking=yes |
10971 | break |
10972 | ;; |
10973 | esac |
10974 | done |
10975 | ;; |
10976 | esac |
10977 | |
10978 | exp_sym_flag='-bexport' |
10979 | no_entry_flag='-bnoentry' |
10980 | fi |
10981 | |
10982 | # When large executables or shared objects are built, AIX ld can |
10983 | # have problems creating the table of contents. If linking a library |
10984 | # or program results in "error TOC overflow" add -mminimal-toc to |
10985 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10986 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10987 | |
10988 | archive_cmds_CXX='' |
10989 | hardcode_direct_CXX=yes |
10990 | hardcode_libdir_separator_CXX=':' |
10991 | link_all_deplibs_CXX=yes |
10992 | |
10993 | if test "$GXX" = yes; then |
10994 | case $host_os in aix4.[012]|aix4.[012].*) |
10995 | # We only want to do this on AIX 4.2 and lower, the check |
10996 | # below for broken collect2 doesn't work under 4.3+ |
10997 | collect2name=`${CC} -print-prog-name=collect2` |
10998 | if test -f "$collect2name" && \ |
10999 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11000 | then |
11001 | # We have reworked collect2 |
ac40fd9e |
11002 | : |
d9898ee8 |
11003 | else |
11004 | # We have old collect2 |
11005 | hardcode_direct_CXX=unsupported |
11006 | # It fails to find uninstalled libraries when the uninstalled |
11007 | # path is not listed in the libpath. Setting hardcode_minus_L |
11008 | # to unsupported forces relinking |
11009 | hardcode_minus_L_CXX=yes |
11010 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11011 | hardcode_libdir_separator_CXX= |
11012 | fi |
11013 | ;; |
11014 | esac |
11015 | shared_flag='-shared' |
11016 | if test "$aix_use_runtimelinking" = yes; then |
11017 | shared_flag="$shared_flag "'${wl}-G' |
11018 | fi |
11019 | else |
11020 | # not using gcc |
11021 | if test "$host_cpu" = ia64; then |
11022 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11023 | # chokes on -Wl,-G. The following line is correct: |
11024 | shared_flag='-G' |
11025 | else |
11026 | if test "$aix_use_runtimelinking" = yes; then |
11027 | shared_flag='${wl}-G' |
11028 | else |
11029 | shared_flag='${wl}-bM:SRE' |
11030 | fi |
11031 | fi |
11032 | fi |
11033 | |
11034 | # It seems that -bexpall does not export symbols beginning with |
11035 | # underscore (_), so it is better to generate a list of symbols to export. |
11036 | always_export_symbols_CXX=yes |
11037 | if test "$aix_use_runtimelinking" = yes; then |
11038 | # Warning - without using the other runtime loading flags (-brtl), |
11039 | # -berok will link without error, but may produce a broken library. |
11040 | allow_undefined_flag_CXX='-berok' |
11041 | # Determine the default libpath from the value encoded in an empty executable. |
11042 | cat >conftest.$ac_ext <<_ACEOF |
11043 | /* confdefs.h. */ |
11044 | _ACEOF |
11045 | cat confdefs.h >>conftest.$ac_ext |
11046 | cat >>conftest.$ac_ext <<_ACEOF |
11047 | /* end confdefs.h. */ |
11048 | |
11049 | int |
11050 | main () |
11051 | { |
11052 | |
11053 | ; |
11054 | return 0; |
11055 | } |
11056 | _ACEOF |
11057 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11058 | if { (ac_try="$ac_link" |
11059 | case "(($ac_try" in |
11060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11061 | *) ac_try_echo=$ac_try;; |
11062 | esac |
11063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11064 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11065 | ac_status=$? |
11066 | grep -v '^ *+' conftest.er1 >conftest.err |
11067 | rm -f conftest.er1 |
11068 | cat conftest.err >&5 |
11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11070 | (exit $ac_status); } && { |
11071 | test -z "$ac_cxx_werror_flag" || |
11072 | test ! -s conftest.err |
11073 | } && test -s conftest$ac_exeext && |
11074 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11075 | |
ac40fd9e |
11076 | lt_aix_libpath_sed=' |
11077 | /Import File Strings/,/^$/ { |
11078 | /^0/ { |
11079 | s/^0 *\(.*\)$/\1/ |
11080 | p |
11081 | } |
11082 | }' |
11083 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
11084 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
11085 | if test -z "$aix_libpath"; then |
11086 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11087 | fi |
d9898ee8 |
11088 | else |
11089 | echo "$as_me: failed program was:" >&5 |
11090 | sed 's/^/| /' conftest.$ac_ext >&5 |
11091 | |
dd184caf |
11092 | |
d9898ee8 |
11093 | fi |
dd184caf |
11094 | |
11095 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11096 | conftest$ac_exeext conftest.$ac_ext |
11097 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11098 | |
11099 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11100 | |
11101 | 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" |
11102 | else |
11103 | if test "$host_cpu" = ia64; then |
11104 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11105 | allow_undefined_flag_CXX="-z nodefs" |
11106 | 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" |
11107 | else |
11108 | # Determine the default libpath from the value encoded in an empty executable. |
11109 | cat >conftest.$ac_ext <<_ACEOF |
11110 | /* confdefs.h. */ |
11111 | _ACEOF |
11112 | cat confdefs.h >>conftest.$ac_ext |
11113 | cat >>conftest.$ac_ext <<_ACEOF |
11114 | /* end confdefs.h. */ |
11115 | |
11116 | int |
11117 | main () |
11118 | { |
11119 | |
11120 | ; |
11121 | return 0; |
11122 | } |
11123 | _ACEOF |
11124 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11125 | if { (ac_try="$ac_link" |
11126 | case "(($ac_try" in |
11127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11128 | *) ac_try_echo=$ac_try;; |
11129 | esac |
11130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11131 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11132 | ac_status=$? |
11133 | grep -v '^ *+' conftest.er1 >conftest.err |
11134 | rm -f conftest.er1 |
11135 | cat conftest.err >&5 |
11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11137 | (exit $ac_status); } && { |
11138 | test -z "$ac_cxx_werror_flag" || |
11139 | test ! -s conftest.err |
11140 | } && test -s conftest$ac_exeext && |
11141 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11142 | |
ac40fd9e |
11143 | lt_aix_libpath_sed=' |
11144 | /Import File Strings/,/^$/ { |
11145 | /^0/ { |
11146 | s/^0 *\(.*\)$/\1/ |
11147 | p |
11148 | } |
11149 | }' |
11150 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
11151 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
11152 | if test -z "$aix_libpath"; then |
11153 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11154 | fi |
d9898ee8 |
11155 | else |
11156 | echo "$as_me: failed program was:" >&5 |
11157 | sed 's/^/| /' conftest.$ac_ext >&5 |
11158 | |
dd184caf |
11159 | |
d9898ee8 |
11160 | fi |
dd184caf |
11161 | |
11162 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11163 | conftest$ac_exeext conftest.$ac_ext |
11164 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11165 | |
11166 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11167 | # Warning - without using the other run time loading flags, |
11168 | # -berok will link without error, but may produce a broken library. |
11169 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11170 | allow_undefined_flag_CXX=' ${wl}-berok' |
11171 | # Exported symbols can be pulled into shared objects from archives |
11172 | whole_archive_flag_spec_CXX='$convenience' |
11173 | archive_cmds_need_lc_CXX=yes |
11174 | # This is similar to how AIX traditionally builds its shared libraries. |
11175 | 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' |
11176 | fi |
11177 | fi |
11178 | ;; |
11179 | |
11180 | beos*) |
11181 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11182 | allow_undefined_flag_CXX=unsupported |
11183 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11184 | # support --undefined. This deserves some investigation. FIXME |
11185 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11186 | else |
11187 | ld_shlibs_CXX=no |
11188 | fi |
11189 | ;; |
11190 | |
11191 | chorus*) |
11192 | case $cc_basename in |
11193 | *) |
11194 | # FIXME: insert proper C++ library support |
11195 | ld_shlibs_CXX=no |
11196 | ;; |
11197 | esac |
11198 | ;; |
11199 | |
11200 | cygwin* | mingw* | pw32*) |
11201 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11202 | # as there is no search path for DLLs. |
11203 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11204 | allow_undefined_flag_CXX=unsupported |
11205 | always_export_symbols_CXX=no |
11206 | enable_shared_with_static_runtimes_CXX=yes |
11207 | |
11208 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11209 | 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' |
11210 | # If the export-symbols file already is a .def file (1st line |
11211 | # is EXPORTS), use it as is; otherwise, prepend... |
11212 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11213 | cp $export_symbols $output_objdir/$soname.def; |
11214 | else |
11215 | echo EXPORTS > $output_objdir/$soname.def; |
11216 | cat $export_symbols >> $output_objdir/$soname.def; |
11217 | fi~ |
11218 | $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' |
11219 | else |
11220 | ld_shlibs_CXX=no |
11221 | fi |
11222 | ;; |
11223 | darwin* | rhapsody*) |
11224 | case $host_os in |
11225 | rhapsody* | darwin1.[012]) |
11226 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11227 | ;; |
11228 | *) # Darwin 1.3 on |
11229 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11230 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11231 | else |
11232 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11233 | 10.[012]) |
11234 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11235 | ;; |
11236 | 10.*) |
11237 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11238 | ;; |
11239 | esac |
11240 | fi |
11241 | ;; |
11242 | esac |
11243 | archive_cmds_need_lc_CXX=no |
11244 | hardcode_direct_CXX=no |
11245 | hardcode_automatic_CXX=yes |
11246 | hardcode_shlibpath_var_CXX=unsupported |
11247 | whole_archive_flag_spec_CXX='' |
11248 | link_all_deplibs_CXX=yes |
11249 | |
11250 | if test "$GXX" = yes ; then |
11251 | lt_int_apple_cc_single_mod=no |
11252 | output_verbose_link_cmd='echo' |
11253 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11254 | lt_int_apple_cc_single_mod=yes |
11255 | fi |
11256 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11257 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11258 | else |
11259 | 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' |
11260 | fi |
11261 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11262 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11263 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11264 | 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}' |
11265 | else |
11266 | 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}' |
11267 | fi |
11268 | 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}' |
11269 | else |
11270 | case $cc_basename in |
11271 | xlc*) |
11272 | output_verbose_link_cmd='echo' |
ac40fd9e |
11273 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
11274 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11275 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
11276 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
d9898ee8 |
11277 | 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}' |
11278 | ;; |
11279 | *) |
11280 | ld_shlibs_CXX=no |
11281 | ;; |
11282 | esac |
11283 | fi |
11284 | ;; |
11285 | |
11286 | dgux*) |
11287 | case $cc_basename in |
11288 | ec++*) |
11289 | # FIXME: insert proper C++ library support |
11290 | ld_shlibs_CXX=no |
11291 | ;; |
11292 | ghcx*) |
11293 | # Green Hills C++ Compiler |
11294 | # FIXME: insert proper C++ library support |
11295 | ld_shlibs_CXX=no |
11296 | ;; |
11297 | *) |
11298 | # FIXME: insert proper C++ library support |
11299 | ld_shlibs_CXX=no |
11300 | ;; |
11301 | esac |
11302 | ;; |
11303 | freebsd[12]*) |
11304 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11305 | ld_shlibs_CXX=no |
11306 | ;; |
11307 | freebsd-elf*) |
11308 | archive_cmds_need_lc_CXX=no |
11309 | ;; |
ac40fd9e |
11310 | freebsd* | dragonfly*) |
d9898ee8 |
11311 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11312 | # conventions |
11313 | ld_shlibs_CXX=yes |
11314 | ;; |
11315 | gnu*) |
11316 | ;; |
11317 | hpux9*) |
11318 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11319 | hardcode_libdir_separator_CXX=: |
11320 | export_dynamic_flag_spec_CXX='${wl}-E' |
11321 | hardcode_direct_CXX=yes |
11322 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11323 | # but as the default |
11324 | # location of the library. |
11325 | |
11326 | case $cc_basename in |
11327 | CC*) |
11328 | # FIXME: insert proper C++ library support |
11329 | ld_shlibs_CXX=no |
11330 | ;; |
11331 | aCC*) |
11332 | 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' |
11333 | # Commands to make compiler produce verbose output that lists |
11334 | # what "hidden" libraries, object files and flags are used when |
11335 | # linking a shared library. |
11336 | # |
11337 | # There doesn't appear to be a way to prevent this compiler from |
11338 | # explicitly linking system object files so we need to strip them |
11339 | # from the output so that they don't get included in the library |
11340 | # dependencies. |
11341 | 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' |
11342 | ;; |
11343 | *) |
11344 | if test "$GXX" = yes; then |
11345 | 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' |
11346 | else |
11347 | # FIXME: insert proper C++ library support |
11348 | ld_shlibs_CXX=no |
11349 | fi |
11350 | ;; |
11351 | esac |
11352 | ;; |
11353 | hpux10*|hpux11*) |
11354 | if test $with_gnu_ld = no; then |
11355 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11356 | hardcode_libdir_separator_CXX=: |
11357 | |
11358 | case $host_cpu in |
ac40fd9e |
11359 | hppa*64*|ia64*) ;; |
d9898ee8 |
11360 | *) |
11361 | export_dynamic_flag_spec_CXX='${wl}-E' |
11362 | ;; |
11363 | esac |
11364 | fi |
11365 | case $host_cpu in |
11366 | hppa*64*|ia64*) |
11367 | hardcode_direct_CXX=no |
11368 | hardcode_shlibpath_var_CXX=no |
11369 | ;; |
11370 | *) |
11371 | hardcode_direct_CXX=yes |
11372 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11373 | # but as the default |
11374 | # location of the library. |
11375 | ;; |
11376 | esac |
11377 | |
11378 | case $cc_basename in |
11379 | CC*) |
11380 | # FIXME: insert proper C++ library support |
11381 | ld_shlibs_CXX=no |
11382 | ;; |
11383 | aCC*) |
11384 | case $host_cpu in |
11385 | hppa*64*) |
11386 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11387 | ;; |
11388 | ia64*) |
11389 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11390 | ;; |
11391 | *) |
11392 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11393 | ;; |
11394 | esac |
11395 | # Commands to make compiler produce verbose output that lists |
11396 | # what "hidden" libraries, object files and flags are used when |
11397 | # linking a shared library. |
11398 | # |
11399 | # There doesn't appear to be a way to prevent this compiler from |
11400 | # explicitly linking system object files so we need to strip them |
11401 | # from the output so that they don't get included in the library |
11402 | # dependencies. |
11403 | 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' |
11404 | ;; |
11405 | *) |
11406 | if test "$GXX" = yes; then |
11407 | if test $with_gnu_ld = no; then |
11408 | case $host_cpu in |
11409 | hppa*64*) |
11410 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11411 | ;; |
11412 | ia64*) |
11413 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11414 | ;; |
11415 | *) |
11416 | 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' |
11417 | ;; |
11418 | esac |
11419 | fi |
11420 | else |
11421 | # FIXME: insert proper C++ library support |
11422 | ld_shlibs_CXX=no |
11423 | fi |
11424 | ;; |
11425 | esac |
11426 | ;; |
ac40fd9e |
11427 | interix[3-9]*) |
d9898ee8 |
11428 | hardcode_direct_CXX=no |
11429 | hardcode_shlibpath_var_CXX=no |
11430 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11431 | export_dynamic_flag_spec_CXX='${wl}-E' |
11432 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11433 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11434 | # default) and relocated if they conflict, which is a slow very memory |
11435 | # consuming and fragmenting process. To avoid this, we pick a random, |
11436 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11437 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11438 | 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' |
11439 | 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' |
11440 | ;; |
11441 | irix5* | irix6*) |
11442 | case $cc_basename in |
11443 | CC*) |
11444 | # SGI C++ |
11445 | 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' |
11446 | |
11447 | # Archives containing C++ object files must be created using |
11448 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11449 | # necessary to make sure instantiated templates are included |
11450 | # in the archive. |
11451 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11452 | ;; |
11453 | *) |
11454 | if test "$GXX" = yes; then |
11455 | if test "$with_gnu_ld" = no; then |
11456 | 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' |
11457 | else |
11458 | 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' |
11459 | fi |
11460 | fi |
11461 | link_all_deplibs_CXX=yes |
11462 | ;; |
11463 | esac |
11464 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11465 | hardcode_libdir_separator_CXX=: |
11466 | ;; |
ac40fd9e |
11467 | linux* | k*bsd*-gnu) |
d9898ee8 |
11468 | case $cc_basename in |
11469 | KCC*) |
11470 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11471 | |
11472 | # KCC will only create a shared library if the output file |
11473 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11474 | # to its proper name (with version) after linking. |
11475 | 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' |
11476 | 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' |
11477 | # Commands to make compiler produce verbose output that lists |
11478 | # what "hidden" libraries, object files and flags are used when |
11479 | # linking a shared library. |
11480 | # |
11481 | # There doesn't appear to be a way to prevent this compiler from |
11482 | # explicitly linking system object files so we need to strip them |
11483 | # from the output so that they don't get included in the library |
11484 | # dependencies. |
11485 | 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' |
11486 | |
11487 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11488 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11489 | |
11490 | # Archives containing C++ object files must be created using |
11491 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11492 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11493 | ;; |
11494 | icpc*) |
11495 | # Intel C++ |
11496 | with_gnu_ld=yes |
11497 | # version 8.0 and above of icpc choke on multiply defined symbols |
11498 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11499 | # earlier do not add the objects themselves. |
11500 | case `$CC -V 2>&1` in |
11501 | *"Version 7."*) |
11502 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11503 | 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' |
11504 | ;; |
11505 | *) # Version 8.0 or newer |
11506 | tmp_idyn= |
11507 | case $host_cpu in |
11508 | ia64*) tmp_idyn=' -i_dynamic';; |
11509 | esac |
11510 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11511 | 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' |
11512 | ;; |
11513 | esac |
11514 | archive_cmds_need_lc_CXX=no |
11515 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11516 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11517 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11518 | ;; |
11519 | pgCC*) |
11520 | # Portland Group C++ compiler |
11521 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11522 | 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' |
11523 | |
11524 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11525 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11526 | 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' |
11527 | ;; |
11528 | cxx*) |
11529 | # Compaq C++ |
11530 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11531 | 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' |
11532 | |
11533 | runpath_var=LD_RUN_PATH |
11534 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11535 | hardcode_libdir_separator_CXX=: |
11536 | |
11537 | # Commands to make compiler produce verbose output that lists |
11538 | # what "hidden" libraries, object files and flags are used when |
11539 | # linking a shared library. |
11540 | # |
11541 | # There doesn't appear to be a way to prevent this compiler from |
11542 | # explicitly linking system object files so we need to strip them |
11543 | # from the output so that they don't get included in the library |
11544 | # dependencies. |
11545 | 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' |
11546 | ;; |
ac40fd9e |
11547 | *) |
11548 | case `$CC -V 2>&1 | sed 5q` in |
11549 | *Sun\ C*) |
11550 | # Sun C++ 5.9 |
11551 | no_undefined_flag_CXX=' -zdefs' |
11552 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11553 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
11554 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11555 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
11556 | |
11557 | # Not sure whether something based on |
11558 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
11559 | # would be better. |
11560 | output_verbose_link_cmd='echo' |
11561 | |
11562 | # Archives containing C++ object files must be created using |
11563 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11564 | # necessary to make sure instantiated templates are included |
11565 | # in the archive. |
11566 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11567 | ;; |
11568 | esac |
11569 | ;; |
d9898ee8 |
11570 | esac |
11571 | ;; |
11572 | lynxos*) |
11573 | # FIXME: insert proper C++ library support |
11574 | ld_shlibs_CXX=no |
11575 | ;; |
11576 | m88k*) |
11577 | # FIXME: insert proper C++ library support |
11578 | ld_shlibs_CXX=no |
11579 | ;; |
11580 | mvs*) |
11581 | case $cc_basename in |
11582 | cxx*) |
11583 | # FIXME: insert proper C++ library support |
11584 | ld_shlibs_CXX=no |
11585 | ;; |
11586 | *) |
11587 | # FIXME: insert proper C++ library support |
11588 | ld_shlibs_CXX=no |
11589 | ;; |
11590 | esac |
11591 | ;; |
11592 | netbsd*) |
11593 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11594 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11595 | wlarc= |
11596 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11597 | hardcode_direct_CXX=yes |
11598 | hardcode_shlibpath_var_CXX=no |
11599 | fi |
11600 | # Workaround some broken pre-1.5 toolchains |
11601 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11602 | ;; |
11603 | openbsd2*) |
11604 | # C++ shared libraries are fairly broken |
11605 | ld_shlibs_CXX=no |
11606 | ;; |
11607 | openbsd*) |
ac40fd9e |
11608 | if test -f /usr/libexec/ld.so; then |
11609 | hardcode_direct_CXX=yes |
11610 | hardcode_shlibpath_var_CXX=no |
11611 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11612 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11613 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11614 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11615 | export_dynamic_flag_spec_CXX='${wl}-E' |
11616 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11617 | fi |
11618 | output_verbose_link_cmd='echo' |
11619 | else |
11620 | ld_shlibs_CXX=no |
d9898ee8 |
11621 | fi |
d9898ee8 |
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 | *) |
ac40fd9e |
11783 | # The compiler driver will combine and reorder linker options, |
11784 | # but understands `-z linker_flag'. |
d9898ee8 |
11785 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
11786 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
d9898ee8 |
11787 | ;; |
11788 | esac |
11789 | link_all_deplibs_CXX=yes |
11790 | |
11791 | output_verbose_link_cmd='echo' |
11792 | |
11793 | # Archives containing C++ object files must be created using |
11794 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11795 | # necessary to make sure instantiated templates are included |
11796 | # in the archive. |
11797 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11798 | ;; |
11799 | gcx*) |
11800 | # Green Hills C++ Compiler |
11801 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11802 | |
11803 | # The C++ compiler must be used to create the archive. |
11804 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11805 | ;; |
11806 | *) |
11807 | # GNU C++ compiler with Solaris linker |
11808 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11809 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11810 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11811 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11812 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11813 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11814 | |
11815 | # Commands to make compiler produce verbose output that lists |
11816 | # what "hidden" libraries, object files and flags are used when |
11817 | # linking a shared library. |
11818 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11819 | else |
11820 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11821 | # platform. |
11822 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11823 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11824 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11825 | |
11826 | # Commands to make compiler produce verbose output that lists |
11827 | # what "hidden" libraries, object files and flags are used when |
11828 | # linking a shared library. |
11829 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11830 | fi |
11831 | |
11832 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
ac40fd9e |
11833 | case $host_os in |
11834 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11835 | *) |
11836 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
11837 | ;; |
11838 | esac |
d9898ee8 |
11839 | fi |
11840 | ;; |
11841 | esac |
11842 | ;; |
11843 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11844 | no_undefined_flag_CXX='${wl}-z,text' |
11845 | archive_cmds_need_lc_CXX=no |
11846 | hardcode_shlibpath_var_CXX=no |
11847 | runpath_var='LD_RUN_PATH' |
11848 | |
11849 | case $cc_basename in |
11850 | CC*) |
11851 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11852 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11853 | ;; |
11854 | *) |
11855 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11856 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11857 | ;; |
11858 | esac |
11859 | ;; |
11860 | sysv5* | sco3.2v5* | sco5v6*) |
11861 | # Note: We can NOT use -z defs as we might desire, because we do not |
11862 | # link with -lc, and that would cause any symbols used from libc to |
11863 | # always be unresolved, which means just about no library would |
11864 | # ever link correctly. If we're not using GNU ld we use -z text |
11865 | # though, which does catch some bad symbols but isn't as heavy-handed |
11866 | # as -z defs. |
11867 | # For security reasons, it is highly recommended that you always |
11868 | # use absolute paths for naming shared libraries, and exclude the |
11869 | # DT_RUNPATH tag from executables and libraries. But doing so |
11870 | # requires that you compile everything twice, which is a pain. |
11871 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11872 | # non-empty value in the environment. Most likely only useful for |
11873 | # creating official distributions of packages. |
11874 | # This is a hack until libtool officially supports absolute path |
11875 | # names for shared libraries. |
11876 | no_undefined_flag_CXX='${wl}-z,text' |
11877 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11878 | archive_cmds_need_lc_CXX=no |
11879 | hardcode_shlibpath_var_CXX=no |
11880 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11881 | hardcode_libdir_separator_CXX=':' |
11882 | link_all_deplibs_CXX=yes |
11883 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11884 | runpath_var='LD_RUN_PATH' |
11885 | |
11886 | case $cc_basename in |
11887 | CC*) |
11888 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11889 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11890 | ;; |
11891 | *) |
11892 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11893 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11894 | ;; |
11895 | esac |
11896 | ;; |
11897 | tandem*) |
11898 | case $cc_basename in |
11899 | NCC*) |
11900 | # NonStop-UX NCC 3.20 |
11901 | # FIXME: insert proper C++ library support |
11902 | ld_shlibs_CXX=no |
11903 | ;; |
11904 | *) |
11905 | # FIXME: insert proper C++ library support |
11906 | ld_shlibs_CXX=no |
11907 | ;; |
11908 | esac |
11909 | ;; |
11910 | vxworks*) |
11911 | # FIXME: insert proper C++ library support |
11912 | ld_shlibs_CXX=no |
11913 | ;; |
11914 | *) |
11915 | # FIXME: insert proper C++ library support |
11916 | ld_shlibs_CXX=no |
11917 | ;; |
11918 | esac |
dd184caf |
11919 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11920 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
11921 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11922 | |
11923 | GCC_CXX="$GXX" |
11924 | LD_CXX="$LD" |
11925 | |
11926 | |
11927 | cat > conftest.$ac_ext <<EOF |
11928 | class Foo |
11929 | { |
11930 | public: |
11931 | Foo (void) { a = 0; } |
11932 | private: |
11933 | int a; |
11934 | }; |
11935 | EOF |
11936 | |
11937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11938 | (eval $ac_compile) 2>&5 |
11939 | ac_status=$? |
11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11941 | (exit $ac_status); }; then |
11942 | # Parse the compiler output and extract the necessary |
11943 | # objects, libraries and library flags. |
11944 | |
11945 | # Sentinel used to keep track of whether or not we are before |
11946 | # the conftest object file. |
11947 | pre_test_object_deps_done=no |
11948 | |
11949 | # The `*' in the case matches for architectures that use `case' in |
11950 | # $output_verbose_cmd can trigger glob expansion during the loop |
11951 | # eval without this substitution. |
11952 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11953 | |
11954 | for p in `eval $output_verbose_link_cmd`; do |
11955 | case $p in |
11956 | |
11957 | -L* | -R* | -l*) |
11958 | # Some compilers place space between "-{L,R}" and the path. |
11959 | # Remove the space. |
11960 | if test $p = "-L" \ |
11961 | || test $p = "-R"; then |
11962 | prev=$p |
11963 | continue |
11964 | else |
11965 | prev= |
11966 | fi |
11967 | |
11968 | if test "$pre_test_object_deps_done" = no; then |
11969 | case $p in |
11970 | -L* | -R*) |
11971 | # Internal compiler library paths should come after those |
11972 | # provided the user. The postdeps already come after the |
11973 | # user supplied libs so there is no need to process them. |
11974 | if test -z "$compiler_lib_search_path_CXX"; then |
11975 | compiler_lib_search_path_CXX="${prev}${p}" |
11976 | else |
11977 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11978 | fi |
11979 | ;; |
11980 | # The "-l" case would never come before the object being |
11981 | # linked, so don't bother handling this case. |
11982 | esac |
11983 | else |
11984 | if test -z "$postdeps_CXX"; then |
11985 | postdeps_CXX="${prev}${p}" |
11986 | else |
11987 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11988 | fi |
11989 | fi |
11990 | ;; |
11991 | |
11992 | *.$objext) |
11993 | # This assumes that the test object file only shows up |
11994 | # once in the compiler output. |
11995 | if test "$p" = "conftest.$objext"; then |
11996 | pre_test_object_deps_done=yes |
11997 | continue |
11998 | fi |
11999 | |
12000 | if test "$pre_test_object_deps_done" = no; then |
12001 | if test -z "$predep_objects_CXX"; then |
12002 | predep_objects_CXX="$p" |
12003 | else |
12004 | predep_objects_CXX="$predep_objects_CXX $p" |
12005 | fi |
12006 | else |
12007 | if test -z "$postdep_objects_CXX"; then |
12008 | postdep_objects_CXX="$p" |
12009 | else |
12010 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12011 | fi |
12012 | fi |
12013 | ;; |
12014 | |
12015 | *) ;; # Ignore the rest. |
12016 | |
12017 | esac |
12018 | done |
12019 | |
12020 | # Clean up. |
12021 | rm -f a.out a.exe |
12022 | else |
12023 | echo "libtool.m4: error: problem compiling CXX test program" |
12024 | fi |
12025 | |
12026 | $rm -f confest.$objext |
12027 | |
12028 | # PORTME: override above test on systems where it is broken |
12029 | case $host_os in |
ac40fd9e |
12030 | interix[3-9]*) |
d9898ee8 |
12031 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12032 | # hack all around it, let's just trust "g++" to DTRT. |
12033 | predep_objects_CXX= |
12034 | postdep_objects_CXX= |
12035 | postdeps_CXX= |
12036 | ;; |
12037 | |
ac40fd9e |
12038 | linux*) |
12039 | case `$CC -V 2>&1 | sed 5q` in |
12040 | *Sun\ C*) |
12041 | # Sun C++ 5.9 |
12042 | # |
12043 | # The more standards-conforming stlport4 library is |
12044 | # incompatible with the Cstd library. Avoid specifying |
12045 | # it if it's in CXXFLAGS. Ignore libCrun as |
12046 | # -library=stlport4 depends on it. |
12047 | case " $CXX $CXXFLAGS " in |
12048 | *" -library=stlport4 "*) |
12049 | solaris_use_stlport4=yes |
12050 | ;; |
12051 | esac |
12052 | if test "$solaris_use_stlport4" != yes; then |
12053 | postdeps_CXX='-library=Cstd -library=Crun' |
12054 | fi |
12055 | ;; |
12056 | esac |
12057 | ;; |
12058 | |
d9898ee8 |
12059 | solaris*) |
12060 | case $cc_basename in |
12061 | CC*) |
ac40fd9e |
12062 | # The more standards-conforming stlport4 library is |
12063 | # incompatible with the Cstd library. Avoid specifying |
12064 | # it if it's in CXXFLAGS. Ignore libCrun as |
12065 | # -library=stlport4 depends on it. |
12066 | case " $CXX $CXXFLAGS " in |
12067 | *" -library=stlport4 "*) |
12068 | solaris_use_stlport4=yes |
12069 | ;; |
12070 | esac |
12071 | |
d9898ee8 |
12072 | # Adding this requires a known-good setup of shared libraries for |
12073 | # Sun compiler versions before 5.6, else PIC objects from an old |
12074 | # archive will be linked into the output, leading to subtle bugs. |
ac40fd9e |
12075 | if test "$solaris_use_stlport4" != yes; then |
12076 | postdeps_CXX='-library=Cstd -library=Crun' |
12077 | fi |
d9898ee8 |
12078 | ;; |
12079 | esac |
12080 | ;; |
12081 | esac |
12082 | |
12083 | |
12084 | case " $postdeps_CXX " in |
12085 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12086 | esac |
12087 | |
12088 | lt_prog_compiler_wl_CXX= |
12089 | lt_prog_compiler_pic_CXX= |
12090 | lt_prog_compiler_static_CXX= |
12091 | |
dd184caf |
12092 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12093 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12094 | |
12095 | # C++ specific cases for pic, static, wl, etc. |
12096 | if test "$GXX" = yes; then |
12097 | lt_prog_compiler_wl_CXX='-Wl,' |
12098 | lt_prog_compiler_static_CXX='-static' |
12099 | |
12100 | case $host_os in |
12101 | aix*) |
12102 | # All AIX code is PIC. |
12103 | if test "$host_cpu" = ia64; then |
12104 | # AIX 5 now supports IA64 processor |
12105 | lt_prog_compiler_static_CXX='-Bstatic' |
12106 | fi |
12107 | ;; |
12108 | amigaos*) |
12109 | # FIXME: we need at least 68020 code to build shared libraries, but |
12110 | # adding the `-m68020' flag to GCC prevents building anything better, |
12111 | # like `-m68040'. |
12112 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12113 | ;; |
ac40fd9e |
12114 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
12115 | # PIC is the default for these OSes. |
12116 | ;; |
ac40fd9e |
12117 | mingw* | cygwin* | os2* | pw32*) |
d9898ee8 |
12118 | # This hack is so that the source file can tell whether it is being |
12119 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
12120 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
12121 | # (--disable-auto-import) libraries |
d9898ee8 |
12122 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12123 | ;; |
12124 | darwin* | rhapsody*) |
12125 | # PIC is the default on this platform |
12126 | # Common symbols not allowed in MH_DYLIB files |
12127 | lt_prog_compiler_pic_CXX='-fno-common' |
12128 | ;; |
12129 | *djgpp*) |
12130 | # DJGPP does not support shared libraries at all |
12131 | lt_prog_compiler_pic_CXX= |
12132 | ;; |
ac40fd9e |
12133 | interix[3-9]*) |
d9898ee8 |
12134 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12135 | # Instead, we relocate shared libraries at runtime. |
12136 | ;; |
12137 | sysv4*MP*) |
12138 | if test -d /usr/nec; then |
12139 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12140 | fi |
12141 | ;; |
12142 | hpux*) |
12143 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12144 | # not for PA HP-UX. |
12145 | case $host_cpu in |
12146 | hppa*64*|ia64*) |
12147 | ;; |
12148 | *) |
12149 | lt_prog_compiler_pic_CXX='-fPIC' |
12150 | ;; |
12151 | esac |
12152 | ;; |
12153 | *) |
12154 | lt_prog_compiler_pic_CXX='-fPIC' |
12155 | ;; |
12156 | esac |
12157 | else |
12158 | case $host_os in |
12159 | aix4* | aix5*) |
12160 | # All AIX code is PIC. |
12161 | if test "$host_cpu" = ia64; then |
12162 | # AIX 5 now supports IA64 processor |
12163 | lt_prog_compiler_static_CXX='-Bstatic' |
12164 | else |
12165 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12166 | fi |
12167 | ;; |
12168 | chorus*) |
12169 | case $cc_basename in |
12170 | cxch68*) |
12171 | # Green Hills C++ Compiler |
12172 | # _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" |
12173 | ;; |
12174 | esac |
12175 | ;; |
12176 | darwin*) |
12177 | # PIC is the default on this platform |
12178 | # Common symbols not allowed in MH_DYLIB files |
12179 | case $cc_basename in |
12180 | xlc*) |
12181 | lt_prog_compiler_pic_CXX='-qnocommon' |
12182 | lt_prog_compiler_wl_CXX='-Wl,' |
12183 | ;; |
12184 | esac |
12185 | ;; |
12186 | dgux*) |
12187 | case $cc_basename in |
12188 | ec++*) |
12189 | lt_prog_compiler_pic_CXX='-KPIC' |
12190 | ;; |
12191 | ghcx*) |
12192 | # Green Hills C++ Compiler |
12193 | lt_prog_compiler_pic_CXX='-pic' |
12194 | ;; |
12195 | *) |
12196 | ;; |
12197 | esac |
12198 | ;; |
ac40fd9e |
12199 | freebsd* | dragonfly*) |
d9898ee8 |
12200 | # FreeBSD uses GNU C++ |
12201 | ;; |
12202 | hpux9* | hpux10* | hpux11*) |
12203 | case $cc_basename in |
12204 | CC*) |
12205 | lt_prog_compiler_wl_CXX='-Wl,' |
12206 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12207 | if test "$host_cpu" != ia64; then |
12208 | lt_prog_compiler_pic_CXX='+Z' |
12209 | fi |
12210 | ;; |
12211 | aCC*) |
12212 | lt_prog_compiler_wl_CXX='-Wl,' |
12213 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12214 | case $host_cpu in |
12215 | hppa*64*|ia64*) |
12216 | # +Z the default |
12217 | ;; |
12218 | *) |
12219 | lt_prog_compiler_pic_CXX='+Z' |
12220 | ;; |
12221 | esac |
12222 | ;; |
12223 | *) |
12224 | ;; |
12225 | esac |
12226 | ;; |
12227 | interix*) |
12228 | # This is c89, which is MS Visual C++ (no shared libs) |
12229 | # Anyone wants to do a port? |
12230 | ;; |
12231 | irix5* | irix6* | nonstopux*) |
12232 | case $cc_basename in |
12233 | CC*) |
12234 | lt_prog_compiler_wl_CXX='-Wl,' |
12235 | lt_prog_compiler_static_CXX='-non_shared' |
12236 | # CC pic flag -KPIC is the default. |
12237 | ;; |
12238 | *) |
12239 | ;; |
12240 | esac |
12241 | ;; |
ac40fd9e |
12242 | linux* | k*bsd*-gnu) |
d9898ee8 |
12243 | case $cc_basename in |
12244 | KCC*) |
12245 | # KAI C++ Compiler |
12246 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12247 | lt_prog_compiler_pic_CXX='-fPIC' |
12248 | ;; |
12249 | icpc* | ecpc*) |
12250 | # Intel C++ |
12251 | lt_prog_compiler_wl_CXX='-Wl,' |
12252 | lt_prog_compiler_pic_CXX='-KPIC' |
12253 | lt_prog_compiler_static_CXX='-static' |
12254 | ;; |
12255 | pgCC*) |
12256 | # Portland Group C++ compiler. |
12257 | lt_prog_compiler_wl_CXX='-Wl,' |
12258 | lt_prog_compiler_pic_CXX='-fpic' |
12259 | lt_prog_compiler_static_CXX='-Bstatic' |
12260 | ;; |
12261 | cxx*) |
12262 | # Compaq C++ |
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 | *) |
ac40fd9e |
12269 | case `$CC -V 2>&1 | sed 5q` in |
12270 | *Sun\ C*) |
12271 | # Sun C++ 5.9 |
12272 | lt_prog_compiler_pic_CXX='-KPIC' |
12273 | lt_prog_compiler_static_CXX='-Bstatic' |
12274 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12275 | ;; |
12276 | esac |
d9898ee8 |
12277 | ;; |
12278 | esac |
12279 | ;; |
12280 | lynxos*) |
12281 | ;; |
12282 | m88k*) |
12283 | ;; |
12284 | mvs*) |
12285 | case $cc_basename in |
12286 | cxx*) |
12287 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12288 | ;; |
12289 | *) |
12290 | ;; |
12291 | esac |
12292 | ;; |
12293 | netbsd*) |
12294 | ;; |
12295 | osf3* | osf4* | osf5*) |
12296 | case $cc_basename in |
12297 | KCC*) |
12298 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12299 | ;; |
12300 | RCC*) |
12301 | # Rational C++ 2.4.1 |
12302 | lt_prog_compiler_pic_CXX='-pic' |
12303 | ;; |
12304 | cxx*) |
12305 | # Digital/Compaq C++ |
12306 | lt_prog_compiler_wl_CXX='-Wl,' |
12307 | # Make sure the PIC flag is empty. It appears that all Alpha |
12308 | # Linux and Compaq Tru64 Unix objects are PIC. |
12309 | lt_prog_compiler_pic_CXX= |
12310 | lt_prog_compiler_static_CXX='-non_shared' |
12311 | ;; |
12312 | *) |
12313 | ;; |
12314 | esac |
12315 | ;; |
12316 | psos*) |
12317 | ;; |
12318 | solaris*) |
12319 | case $cc_basename in |
12320 | CC*) |
12321 | # Sun C++ 4.2, 5.x and Centerline C++ |
12322 | lt_prog_compiler_pic_CXX='-KPIC' |
12323 | lt_prog_compiler_static_CXX='-Bstatic' |
12324 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12325 | ;; |
12326 | gcx*) |
12327 | # Green Hills C++ Compiler |
12328 | lt_prog_compiler_pic_CXX='-PIC' |
12329 | ;; |
12330 | *) |
12331 | ;; |
12332 | esac |
12333 | ;; |
12334 | sunos4*) |
12335 | case $cc_basename in |
12336 | CC*) |
12337 | # Sun C++ 4.x |
12338 | lt_prog_compiler_pic_CXX='-pic' |
12339 | lt_prog_compiler_static_CXX='-Bstatic' |
12340 | ;; |
12341 | lcc*) |
12342 | # Lucid |
12343 | lt_prog_compiler_pic_CXX='-pic' |
12344 | ;; |
12345 | *) |
12346 | ;; |
12347 | esac |
12348 | ;; |
12349 | tandem*) |
12350 | case $cc_basename in |
12351 | NCC*) |
12352 | # NonStop-UX NCC 3.20 |
12353 | lt_prog_compiler_pic_CXX='-KPIC' |
12354 | ;; |
12355 | *) |
12356 | ;; |
12357 | esac |
12358 | ;; |
12359 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12360 | case $cc_basename in |
12361 | CC*) |
12362 | lt_prog_compiler_wl_CXX='-Wl,' |
12363 | lt_prog_compiler_pic_CXX='-KPIC' |
12364 | lt_prog_compiler_static_CXX='-Bstatic' |
12365 | ;; |
12366 | esac |
12367 | ;; |
12368 | vxworks*) |
12369 | ;; |
12370 | *) |
12371 | lt_prog_compiler_can_build_shared_CXX=no |
12372 | ;; |
12373 | esac |
12374 | fi |
12375 | |
dd184caf |
12376 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12377 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12378 | |
12379 | # |
12380 | # Check to make sure the PIC flag actually works. |
12381 | # |
12382 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12383 | |
dd184caf |
12384 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12385 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12386 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12388 | else |
12389 | lt_prog_compiler_pic_works_CXX=no |
12390 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
12391 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12392 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12393 | # Insert the option either (1) after the last *FLAGS variable, or |
12394 | # (2) before a word containing "conftest.", or (3) at the end. |
12395 | # Note that $ac_compile itself does not contain backslashes and begins |
12396 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12397 | # The option is referenced via a variable to avoid confusing sed. |
12398 | lt_compile=`echo "$ac_compile" | $SED \ |
12399 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12400 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12401 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
12402 | (eval echo "\"\$as_me:12402: $lt_compile\"" >&5) |
d9898ee8 |
12403 | (eval "$lt_compile" 2>conftest.err) |
12404 | ac_status=$? |
12405 | cat conftest.err >&5 |
ac40fd9e |
12406 | echo "$as_me:12406: \$? = $ac_status" >&5 |
d9898ee8 |
12407 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12408 | # The compiler can only warn and ignore the option if not recognized |
12409 | # So say no if there are warnings other than the usual output. |
12410 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12411 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12412 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12413 | lt_prog_compiler_pic_works_CXX=yes |
12414 | fi |
12415 | fi |
12416 | $rm conftest* |
12417 | |
12418 | fi |
dd184caf |
12419 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12420 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12421 | |
12422 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12423 | case $lt_prog_compiler_pic_CXX in |
12424 | "" | " "*) ;; |
12425 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12426 | esac |
12427 | else |
12428 | lt_prog_compiler_pic_CXX= |
12429 | lt_prog_compiler_can_build_shared_CXX=no |
12430 | fi |
12431 | |
12432 | fi |
12433 | case $host_os in |
12434 | # For platforms which do not support PIC, -DPIC is meaningless: |
12435 | *djgpp*) |
12436 | lt_prog_compiler_pic_CXX= |
12437 | ;; |
12438 | *) |
12439 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12440 | ;; |
12441 | esac |
12442 | |
12443 | # |
12444 | # Check to make sure the static flag actually works. |
12445 | # |
12446 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
dd184caf |
12447 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12448 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12449 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12451 | else |
12452 | lt_prog_compiler_static_works_CXX=no |
12453 | save_LDFLAGS="$LDFLAGS" |
12454 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
12455 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
12456 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12457 | # The linker can only warn and ignore the option if not recognized |
12458 | # So say no if there are warnings |
12459 | if test -s conftest.err; then |
12460 | # Append any errors to the config.log. |
12461 | cat conftest.err 1>&5 |
12462 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12463 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12464 | if diff conftest.exp conftest.er2 >/dev/null; then |
12465 | lt_prog_compiler_static_works_CXX=yes |
12466 | fi |
12467 | else |
12468 | lt_prog_compiler_static_works_CXX=yes |
12469 | fi |
12470 | fi |
12471 | $rm conftest* |
12472 | LDFLAGS="$save_LDFLAGS" |
12473 | |
12474 | fi |
dd184caf |
12475 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12476 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12477 | |
12478 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12479 | : |
12480 | else |
12481 | lt_prog_compiler_static_CXX= |
12482 | fi |
12483 | |
12484 | |
dd184caf |
12485 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12486 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12487 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12489 | else |
12490 | lt_cv_prog_compiler_c_o_CXX=no |
12491 | $rm -r conftest 2>/dev/null |
12492 | mkdir conftest |
12493 | cd conftest |
12494 | mkdir out |
ac40fd9e |
12495 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12496 | |
12497 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12498 | # Insert the option either (1) after the last *FLAGS variable, or |
12499 | # (2) before a word containing "conftest.", or (3) at the end. |
12500 | # Note that $ac_compile itself does not contain backslashes and begins |
12501 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12502 | lt_compile=`echo "$ac_compile" | $SED \ |
12503 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12504 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12505 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
12506 | (eval echo "\"\$as_me:12506: $lt_compile\"" >&5) |
d9898ee8 |
12507 | (eval "$lt_compile" 2>out/conftest.err) |
12508 | ac_status=$? |
12509 | cat out/conftest.err >&5 |
ac40fd9e |
12510 | echo "$as_me:12510: \$? = $ac_status" >&5 |
d9898ee8 |
12511 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12512 | then |
12513 | # The compiler can only warn and ignore the option if not recognized |
12514 | # So say no if there are warnings |
12515 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12516 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12517 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12518 | lt_cv_prog_compiler_c_o_CXX=yes |
12519 | fi |
12520 | fi |
12521 | chmod u+w . 2>&5 |
12522 | $rm conftest* |
12523 | # SGI C++ compiler will create directory out/ii_files/ for |
12524 | # template instantiation |
12525 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12526 | $rm out/* && rmdir out |
12527 | cd .. |
12528 | rmdir conftest |
12529 | $rm conftest* |
12530 | |
12531 | fi |
dd184caf |
12532 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12533 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12534 | |
12535 | |
12536 | hard_links="nottested" |
12537 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12538 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
12539 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12540 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12541 | hard_links=yes |
12542 | $rm conftest* |
12543 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12544 | touch conftest.a |
12545 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12546 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
12547 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12548 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12549 | if test "$hard_links" = no; then |
12550 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12551 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12552 | need_locks=warn |
12553 | fi |
12554 | else |
12555 | need_locks=no |
12556 | fi |
12557 | |
dd184caf |
12558 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12559 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12560 | |
12561 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12562 | case $host_os in |
12563 | aix4* | aix5*) |
12564 | # If we're using GNU nm, then we don't want the "-C" option. |
12565 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12566 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12567 | 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' |
12568 | else |
12569 | 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' |
12570 | fi |
12571 | ;; |
12572 | pw32*) |
12573 | export_symbols_cmds_CXX="$ltdll_cmds" |
12574 | ;; |
12575 | cygwin* | mingw*) |
ac40fd9e |
12576 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
12577 | ;; |
12578 | *) |
12579 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12580 | ;; |
12581 | esac |
12582 | |
dd184caf |
12583 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12584 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12585 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12586 | |
12587 | # |
12588 | # Do we need to explicitly link libc? |
12589 | # |
12590 | case "x$archive_cmds_need_lc_CXX" in |
12591 | x|xyes) |
12592 | # Assume -lc should be added |
12593 | archive_cmds_need_lc_CXX=yes |
12594 | |
12595 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12596 | case $archive_cmds_CXX in |
12597 | *'~'*) |
12598 | # FIXME: we may have to deal with multi-command sequences. |
12599 | ;; |
12600 | '$CC '*) |
12601 | # Test whether the compiler implicitly links with -lc since on some |
12602 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12603 | # to ld, don't add -lc before -lgcc. |
dd184caf |
12604 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12605 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12606 | $rm conftest* |
ac40fd9e |
12607 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
12608 | |
12609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12610 | (eval $ac_compile) 2>&5 |
12611 | ac_status=$? |
12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12613 | (exit $ac_status); } 2>conftest.err; then |
12614 | soname=conftest |
12615 | lib=conftest |
12616 | libobjs=conftest.$ac_objext |
12617 | deplibs= |
12618 | wl=$lt_prog_compiler_wl_CXX |
12619 | pic_flag=$lt_prog_compiler_pic_CXX |
12620 | compiler_flags=-v |
12621 | linker_flags=-v |
12622 | verstring= |
12623 | output_objdir=. |
12624 | libname=conftest |
12625 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12626 | allow_undefined_flag_CXX= |
12627 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12628 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12629 | ac_status=$? |
12630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12631 | (exit $ac_status); } |
12632 | then |
12633 | archive_cmds_need_lc_CXX=no |
12634 | else |
12635 | archive_cmds_need_lc_CXX=yes |
12636 | fi |
12637 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12638 | else |
12639 | cat conftest.err 1>&5 |
12640 | fi |
12641 | $rm conftest* |
dd184caf |
12642 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12643 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12644 | ;; |
12645 | esac |
12646 | fi |
12647 | ;; |
12648 | esac |
12649 | |
dd184caf |
12650 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12651 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12652 | library_names_spec= |
12653 | libname_spec='lib$name' |
12654 | soname_spec= |
12655 | shrext_cmds=".so" |
12656 | postinstall_cmds= |
12657 | postuninstall_cmds= |
12658 | finish_cmds= |
12659 | finish_eval= |
12660 | shlibpath_var= |
12661 | shlibpath_overrides_runpath=unknown |
12662 | version_type=none |
12663 | dynamic_linker="$host_os ld.so" |
12664 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
12665 | |
d9898ee8 |
12666 | need_lib_prefix=unknown |
12667 | hardcode_into_libs=no |
12668 | |
12669 | # when you set need_version to no, make sure it does not cause -set_version |
12670 | # flags to be left without arguments |
12671 | need_version=unknown |
12672 | |
12673 | case $host_os in |
12674 | aix3*) |
12675 | version_type=linux |
12676 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12677 | shlibpath_var=LIBPATH |
12678 | |
12679 | # AIX 3 has no versioning support, so we append a major version to the name. |
12680 | soname_spec='${libname}${release}${shared_ext}$major' |
12681 | ;; |
12682 | |
12683 | aix4* | aix5*) |
12684 | version_type=linux |
12685 | need_lib_prefix=no |
12686 | need_version=no |
12687 | hardcode_into_libs=yes |
12688 | if test "$host_cpu" = ia64; then |
12689 | # AIX 5 supports IA64 |
12690 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12691 | shlibpath_var=LD_LIBRARY_PATH |
12692 | else |
12693 | # With GCC up to 2.95.x, collect2 would create an import file |
12694 | # for dependence libraries. The import file would start with |
12695 | # the line `#! .'. This would cause the generated library to |
12696 | # depend on `.', always an invalid library. This was fixed in |
12697 | # development snapshots of GCC prior to 3.0. |
12698 | case $host_os in |
12699 | aix4 | aix4.[01] | aix4.[01].*) |
12700 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12701 | echo ' yes ' |
12702 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12703 | : |
12704 | else |
12705 | can_build_shared=no |
12706 | fi |
12707 | ;; |
12708 | esac |
12709 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12710 | # soname into executable. Probably we can add versioning support to |
12711 | # collect2, so additional links can be useful in future. |
12712 | if test "$aix_use_runtimelinking" = yes; then |
12713 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12714 | # instead of lib<name>.a to let people know that these are not |
12715 | # typical AIX shared libraries. |
12716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12717 | else |
12718 | # We preserve .a as extension for shared libraries through AIX4.2 |
12719 | # and later when we are not doing run time linking. |
12720 | library_names_spec='${libname}${release}.a $libname.a' |
12721 | soname_spec='${libname}${release}${shared_ext}$major' |
12722 | fi |
12723 | shlibpath_var=LIBPATH |
12724 | fi |
12725 | ;; |
12726 | |
12727 | amigaos*) |
12728 | library_names_spec='$libname.ixlibrary $libname.a' |
12729 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12730 | 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' |
12731 | ;; |
12732 | |
12733 | beos*) |
12734 | library_names_spec='${libname}${shared_ext}' |
12735 | dynamic_linker="$host_os ld.so" |
12736 | shlibpath_var=LIBRARY_PATH |
12737 | ;; |
12738 | |
12739 | bsdi[45]*) |
12740 | version_type=linux |
12741 | need_version=no |
12742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12743 | soname_spec='${libname}${release}${shared_ext}$major' |
12744 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12745 | shlibpath_var=LD_LIBRARY_PATH |
12746 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12747 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12748 | # the default ld.so.conf also contains /usr/contrib/lib and |
12749 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12750 | # libtool to hard-code these into programs |
12751 | ;; |
12752 | |
12753 | cygwin* | mingw* | pw32*) |
12754 | version_type=windows |
12755 | shrext_cmds=".dll" |
12756 | need_version=no |
12757 | need_lib_prefix=no |
12758 | |
12759 | case $GCC,$host_os in |
12760 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12761 | library_names_spec='$libname.dll.a' |
12762 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12763 | postinstall_cmds='base_file=`basename \${file}`~ |
12764 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12765 | dldir=$destdir/`dirname \$dlpath`~ |
12766 | test -d \$dldir || mkdir -p \$dldir~ |
12767 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12768 | chmod a+x \$dldir/$dlname' |
12769 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12770 | dlpath=$dir/\$dldll~ |
12771 | $rm \$dlpath' |
12772 | shlibpath_overrides_runpath=yes |
12773 | |
12774 | case $host_os in |
12775 | cygwin*) |
12776 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12777 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12778 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12779 | ;; |
12780 | mingw*) |
12781 | # MinGW DLLs use traditional 'lib' prefix |
12782 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12783 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12784 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12785 | # It is most probably a Windows format PATH printed by |
12786 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12787 | # path with ; separators, and with drive letters. We can handle the |
12788 | # drive letters (cygwin fileutils understands them), so leave them, |
12789 | # especially as we might pass files found there to a mingw objdump, |
12790 | # which wouldn't understand a cygwinified path. Ahh. |
12791 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12792 | else |
12793 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12794 | fi |
12795 | ;; |
12796 | pw32*) |
12797 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12798 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12799 | ;; |
12800 | esac |
12801 | ;; |
12802 | |
12803 | *) |
12804 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12805 | ;; |
12806 | esac |
12807 | dynamic_linker='Win32 ld.exe' |
12808 | # FIXME: first we should search . and the directory the executable is in |
12809 | shlibpath_var=PATH |
12810 | ;; |
12811 | |
12812 | darwin* | rhapsody*) |
12813 | dynamic_linker="$host_os dyld" |
12814 | version_type=darwin |
12815 | need_lib_prefix=no |
12816 | need_version=no |
12817 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12818 | soname_spec='${libname}${release}${major}$shared_ext' |
12819 | shlibpath_overrides_runpath=yes |
12820 | shlibpath_var=DYLD_LIBRARY_PATH |
12821 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
12822 | |
d9898ee8 |
12823 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12824 | ;; |
12825 | |
12826 | dgux*) |
12827 | version_type=linux |
12828 | need_lib_prefix=no |
12829 | need_version=no |
12830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12831 | soname_spec='${libname}${release}${shared_ext}$major' |
12832 | shlibpath_var=LD_LIBRARY_PATH |
12833 | ;; |
12834 | |
12835 | freebsd1*) |
12836 | dynamic_linker=no |
12837 | ;; |
12838 | |
d9898ee8 |
12839 | freebsd* | dragonfly*) |
12840 | # DragonFly does not have aout. When/if they implement a new |
12841 | # versioning mechanism, adjust this. |
12842 | if test -x /usr/bin/objformat; then |
12843 | objformat=`/usr/bin/objformat` |
12844 | else |
12845 | case $host_os in |
12846 | freebsd[123]*) objformat=aout ;; |
12847 | *) objformat=elf ;; |
12848 | esac |
12849 | fi |
12850 | version_type=freebsd-$objformat |
12851 | case $version_type in |
12852 | freebsd-elf*) |
12853 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12854 | need_version=no |
12855 | need_lib_prefix=no |
12856 | ;; |
12857 | freebsd-*) |
12858 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12859 | need_version=yes |
12860 | ;; |
12861 | esac |
12862 | shlibpath_var=LD_LIBRARY_PATH |
12863 | case $host_os in |
12864 | freebsd2*) |
12865 | shlibpath_overrides_runpath=yes |
12866 | ;; |
12867 | freebsd3.[01]* | freebsdelf3.[01]*) |
12868 | shlibpath_overrides_runpath=yes |
12869 | hardcode_into_libs=yes |
12870 | ;; |
12871 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12872 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12873 | shlibpath_overrides_runpath=no |
12874 | hardcode_into_libs=yes |
12875 | ;; |
ac40fd9e |
12876 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
12877 | shlibpath_overrides_runpath=yes |
12878 | hardcode_into_libs=yes |
12879 | ;; |
12880 | esac |
12881 | ;; |
12882 | |
12883 | gnu*) |
12884 | version_type=linux |
12885 | need_lib_prefix=no |
12886 | need_version=no |
12887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12888 | soname_spec='${libname}${release}${shared_ext}$major' |
12889 | shlibpath_var=LD_LIBRARY_PATH |
12890 | hardcode_into_libs=yes |
12891 | ;; |
12892 | |
12893 | hpux9* | hpux10* | hpux11*) |
12894 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12895 | # link against other versions. |
12896 | version_type=sunos |
12897 | need_lib_prefix=no |
12898 | need_version=no |
12899 | case $host_cpu in |
12900 | ia64*) |
12901 | shrext_cmds='.so' |
12902 | hardcode_into_libs=yes |
12903 | dynamic_linker="$host_os dld.so" |
12904 | shlibpath_var=LD_LIBRARY_PATH |
12905 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12907 | soname_spec='${libname}${release}${shared_ext}$major' |
12908 | if test "X$HPUX_IA64_MODE" = X32; then |
12909 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12910 | else |
12911 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12912 | fi |
12913 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12914 | ;; |
12915 | hppa*64*) |
12916 | shrext_cmds='.sl' |
12917 | hardcode_into_libs=yes |
12918 | dynamic_linker="$host_os dld.sl" |
12919 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12920 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12922 | soname_spec='${libname}${release}${shared_ext}$major' |
12923 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12924 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12925 | ;; |
12926 | *) |
12927 | shrext_cmds='.sl' |
12928 | dynamic_linker="$host_os dld.sl" |
12929 | shlibpath_var=SHLIB_PATH |
12930 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12932 | soname_spec='${libname}${release}${shared_ext}$major' |
12933 | ;; |
12934 | esac |
12935 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12936 | postinstall_cmds='chmod 555 $lib' |
12937 | ;; |
12938 | |
ac40fd9e |
12939 | interix[3-9]*) |
d9898ee8 |
12940 | version_type=linux |
12941 | need_lib_prefix=no |
12942 | need_version=no |
12943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12944 | soname_spec='${libname}${release}${shared_ext}$major' |
12945 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12946 | shlibpath_var=LD_LIBRARY_PATH |
12947 | shlibpath_overrides_runpath=no |
12948 | hardcode_into_libs=yes |
12949 | ;; |
12950 | |
12951 | irix5* | irix6* | nonstopux*) |
12952 | case $host_os in |
12953 | nonstopux*) version_type=nonstopux ;; |
12954 | *) |
12955 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12956 | version_type=linux |
12957 | else |
12958 | version_type=irix |
12959 | fi ;; |
12960 | esac |
12961 | need_lib_prefix=no |
12962 | need_version=no |
12963 | soname_spec='${libname}${release}${shared_ext}$major' |
12964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12965 | case $host_os in |
12966 | irix5* | nonstopux*) |
12967 | libsuff= shlibsuff= |
12968 | ;; |
12969 | *) |
12970 | case $LD in # libtool.m4 will add one of these switches to LD |
12971 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12972 | libsuff= shlibsuff= libmagic=32-bit;; |
12973 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12974 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12975 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12976 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12977 | *) libsuff= shlibsuff= libmagic=never-match;; |
12978 | esac |
12979 | ;; |
12980 | esac |
12981 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12982 | shlibpath_overrides_runpath=no |
12983 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12984 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12985 | hardcode_into_libs=yes |
12986 | ;; |
12987 | |
12988 | # No shared lib support for Linux oldld, aout, or coff. |
12989 | linux*oldld* | linux*aout* | linux*coff*) |
12990 | dynamic_linker=no |
12991 | ;; |
12992 | |
12993 | # This must be Linux ELF. |
ac40fd9e |
12994 | linux* | k*bsd*-gnu) |
d9898ee8 |
12995 | version_type=linux |
12996 | need_lib_prefix=no |
12997 | need_version=no |
12998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12999 | soname_spec='${libname}${release}${shared_ext}$major' |
13000 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13001 | shlibpath_var=LD_LIBRARY_PATH |
13002 | shlibpath_overrides_runpath=no |
13003 | # This implies no fast_install, which is unacceptable. |
13004 | # Some rework will be needed to allow for fast_install |
13005 | # before this can be enabled. |
13006 | hardcode_into_libs=yes |
ac40fd9e |
13007 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13008 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
13009 | |
13010 | # Append ld.so.conf contents to the search path |
13011 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
13012 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
13013 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
13014 | fi |
13015 | |
13016 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13017 | # powerpc, because MkLinux only supported shared libraries with the |
13018 | # GNU dynamic linker. Since this was broken with cross compilers, |
13019 | # most powerpc-linux boxes support dynamic linking these days and |
13020 | # people can always --disable-shared, the test was removed, and we |
13021 | # assume the GNU/Linux dynamic linker is in use. |
13022 | dynamic_linker='GNU/Linux ld.so' |
13023 | ;; |
13024 | |
d9898ee8 |
13025 | netbsd*) |
13026 | version_type=sunos |
13027 | need_lib_prefix=no |
13028 | need_version=no |
13029 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13031 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13032 | dynamic_linker='NetBSD (a.out) ld.so' |
13033 | else |
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 | dynamic_linker='NetBSD ld.elf_so' |
13037 | fi |
13038 | shlibpath_var=LD_LIBRARY_PATH |
13039 | shlibpath_overrides_runpath=yes |
13040 | hardcode_into_libs=yes |
13041 | ;; |
13042 | |
13043 | newsos6) |
13044 | version_type=linux |
13045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13046 | shlibpath_var=LD_LIBRARY_PATH |
13047 | shlibpath_overrides_runpath=yes |
13048 | ;; |
13049 | |
13050 | nto-qnx*) |
13051 | version_type=linux |
13052 | need_lib_prefix=no |
13053 | need_version=no |
13054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13055 | soname_spec='${libname}${release}${shared_ext}$major' |
13056 | shlibpath_var=LD_LIBRARY_PATH |
13057 | shlibpath_overrides_runpath=yes |
13058 | ;; |
13059 | |
13060 | openbsd*) |
13061 | version_type=sunos |
13062 | sys_lib_dlsearch_path_spec="/usr/lib" |
13063 | need_lib_prefix=no |
13064 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13065 | case $host_os in |
13066 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13067 | *) need_version=no ;; |
13068 | esac |
13069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13070 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13071 | shlibpath_var=LD_LIBRARY_PATH |
13072 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13073 | case $host_os in |
13074 | openbsd2.[89] | openbsd2.[89].*) |
13075 | shlibpath_overrides_runpath=no |
13076 | ;; |
13077 | *) |
13078 | shlibpath_overrides_runpath=yes |
13079 | ;; |
13080 | esac |
13081 | else |
13082 | shlibpath_overrides_runpath=yes |
13083 | fi |
13084 | ;; |
13085 | |
13086 | os2*) |
13087 | libname_spec='$name' |
13088 | shrext_cmds=".dll" |
13089 | need_lib_prefix=no |
13090 | library_names_spec='$libname${shared_ext} $libname.a' |
13091 | dynamic_linker='OS/2 ld.exe' |
13092 | shlibpath_var=LIBPATH |
13093 | ;; |
13094 | |
13095 | osf3* | osf4* | osf5*) |
13096 | version_type=osf |
13097 | need_lib_prefix=no |
13098 | need_version=no |
13099 | soname_spec='${libname}${release}${shared_ext}$major' |
13100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13101 | shlibpath_var=LD_LIBRARY_PATH |
13102 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13103 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13104 | ;; |
13105 | |
ac40fd9e |
13106 | rdos*) |
13107 | dynamic_linker=no |
13108 | ;; |
13109 | |
d9898ee8 |
13110 | solaris*) |
13111 | version_type=linux |
13112 | need_lib_prefix=no |
13113 | need_version=no |
13114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13115 | soname_spec='${libname}${release}${shared_ext}$major' |
13116 | shlibpath_var=LD_LIBRARY_PATH |
13117 | shlibpath_overrides_runpath=yes |
13118 | hardcode_into_libs=yes |
13119 | # ldd complains unless libraries are executable |
13120 | postinstall_cmds='chmod +x $lib' |
13121 | ;; |
13122 | |
13123 | sunos4*) |
13124 | version_type=sunos |
13125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13126 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13127 | shlibpath_var=LD_LIBRARY_PATH |
13128 | shlibpath_overrides_runpath=yes |
13129 | if test "$with_gnu_ld" = yes; then |
13130 | need_lib_prefix=no |
13131 | fi |
13132 | need_version=yes |
13133 | ;; |
13134 | |
13135 | sysv4 | sysv4.3*) |
13136 | version_type=linux |
13137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13138 | soname_spec='${libname}${release}${shared_ext}$major' |
13139 | shlibpath_var=LD_LIBRARY_PATH |
13140 | case $host_vendor in |
13141 | sni) |
13142 | shlibpath_overrides_runpath=no |
13143 | need_lib_prefix=no |
13144 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13145 | runpath_var=LD_RUN_PATH |
13146 | ;; |
13147 | siemens) |
13148 | need_lib_prefix=no |
13149 | ;; |
13150 | motorola) |
13151 | need_lib_prefix=no |
13152 | need_version=no |
13153 | shlibpath_overrides_runpath=no |
13154 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13155 | ;; |
13156 | esac |
13157 | ;; |
13158 | |
13159 | sysv4*MP*) |
13160 | if test -d /usr/nec ;then |
13161 | version_type=linux |
13162 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13163 | soname_spec='$libname${shared_ext}.$major' |
13164 | shlibpath_var=LD_LIBRARY_PATH |
13165 | fi |
13166 | ;; |
13167 | |
13168 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13169 | version_type=freebsd-elf |
13170 | need_lib_prefix=no |
13171 | need_version=no |
13172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13173 | soname_spec='${libname}${release}${shared_ext}$major' |
13174 | shlibpath_var=LD_LIBRARY_PATH |
13175 | hardcode_into_libs=yes |
13176 | if test "$with_gnu_ld" = yes; then |
13177 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13178 | shlibpath_overrides_runpath=no |
13179 | else |
13180 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13181 | shlibpath_overrides_runpath=yes |
13182 | case $host_os in |
13183 | sco3.2v5*) |
13184 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13185 | ;; |
13186 | esac |
13187 | fi |
13188 | sys_lib_dlsearch_path_spec='/usr/lib' |
13189 | ;; |
13190 | |
13191 | uts4*) |
13192 | version_type=linux |
13193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13194 | soname_spec='${libname}${release}${shared_ext}$major' |
13195 | shlibpath_var=LD_LIBRARY_PATH |
13196 | ;; |
13197 | |
13198 | *) |
13199 | dynamic_linker=no |
13200 | ;; |
13201 | esac |
dd184caf |
13202 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13203 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13204 | test "$dynamic_linker" = no && can_build_shared=no |
13205 | |
13206 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13207 | if test "$GCC" = yes; then |
13208 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13209 | fi |
13210 | |
dd184caf |
13211 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13212 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13213 | hardcode_action_CXX= |
13214 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13215 | test -n "$runpath_var_CXX" || \ |
13216 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13217 | |
13218 | # We can hardcode non-existant directories. |
13219 | if test "$hardcode_direct_CXX" != no && |
13220 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13221 | # have to relink, otherwise we might link with an installed library |
13222 | # when we should be linking with a yet-to-be-installed one |
13223 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13224 | test "$hardcode_minus_L_CXX" != no; then |
13225 | # Linking always hardcodes the temporary library directory. |
13226 | hardcode_action_CXX=relink |
13227 | else |
13228 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13229 | hardcode_action_CXX=immediate |
13230 | fi |
13231 | else |
13232 | # We cannot hardcode anything, or else we can only hardcode existing |
13233 | # directories. |
13234 | hardcode_action_CXX=unsupported |
13235 | fi |
dd184caf |
13236 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13237 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13238 | |
13239 | if test "$hardcode_action_CXX" = relink; then |
13240 | # Fast installation is not supported |
13241 | enable_fast_install=no |
13242 | elif test "$shlibpath_overrides_runpath" = yes || |
13243 | test "$enable_shared" = no; then |
13244 | # Fast installation is not necessary |
13245 | enable_fast_install=needless |
13246 | fi |
13247 | |
13248 | |
13249 | # The else clause should only fire when bootstrapping the |
13250 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13251 | # with your package, and you will get complaints that there are |
13252 | # no rules to generate ltmain.sh. |
13253 | if test -f "$ltmain"; then |
13254 | # See if we are running on zsh, and set the options which allow our commands through |
13255 | # without removal of \ escapes. |
13256 | if test -n "${ZSH_VERSION+set}" ; then |
13257 | setopt NO_GLOB_SUBST |
13258 | fi |
13259 | # Now quote all the things that may contain metacharacters while being |
13260 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13261 | # variables and quote the copies for generation of the libtool script. |
13262 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13263 | SED SHELL STRIP \ |
13264 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13265 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13266 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13267 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13268 | lt_cv_sys_global_symbol_to_c_name_address \ |
13269 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13270 | old_postinstall_cmds old_postuninstall_cmds \ |
13271 | compiler_CXX \ |
13272 | CC_CXX \ |
13273 | LD_CXX \ |
13274 | lt_prog_compiler_wl_CXX \ |
13275 | lt_prog_compiler_pic_CXX \ |
13276 | lt_prog_compiler_static_CXX \ |
13277 | lt_prog_compiler_no_builtin_flag_CXX \ |
13278 | export_dynamic_flag_spec_CXX \ |
13279 | thread_safe_flag_spec_CXX \ |
13280 | whole_archive_flag_spec_CXX \ |
13281 | enable_shared_with_static_runtimes_CXX \ |
13282 | old_archive_cmds_CXX \ |
13283 | old_archive_from_new_cmds_CXX \ |
13284 | predep_objects_CXX \ |
13285 | postdep_objects_CXX \ |
13286 | predeps_CXX \ |
13287 | postdeps_CXX \ |
13288 | compiler_lib_search_path_CXX \ |
13289 | archive_cmds_CXX \ |
13290 | archive_expsym_cmds_CXX \ |
13291 | postinstall_cmds_CXX \ |
13292 | postuninstall_cmds_CXX \ |
13293 | old_archive_from_expsyms_cmds_CXX \ |
13294 | allow_undefined_flag_CXX \ |
13295 | no_undefined_flag_CXX \ |
13296 | export_symbols_cmds_CXX \ |
13297 | hardcode_libdir_flag_spec_CXX \ |
13298 | hardcode_libdir_flag_spec_ld_CXX \ |
13299 | hardcode_libdir_separator_CXX \ |
13300 | hardcode_automatic_CXX \ |
13301 | module_cmds_CXX \ |
13302 | module_expsym_cmds_CXX \ |
13303 | lt_cv_prog_compiler_c_o_CXX \ |
ac40fd9e |
13304 | fix_srcfile_path_CXX \ |
d9898ee8 |
13305 | exclude_expsyms_CXX \ |
13306 | include_expsyms_CXX; do |
13307 | |
13308 | case $var in |
13309 | old_archive_cmds_CXX | \ |
13310 | old_archive_from_new_cmds_CXX | \ |
13311 | archive_cmds_CXX | \ |
13312 | archive_expsym_cmds_CXX | \ |
13313 | module_cmds_CXX | \ |
13314 | module_expsym_cmds_CXX | \ |
13315 | old_archive_from_expsyms_cmds_CXX | \ |
13316 | export_symbols_cmds_CXX | \ |
13317 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13318 | postinstall_cmds | postuninstall_cmds | \ |
13319 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13320 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13321 | # Double-quote double-evaled strings. |
13322 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13323 | ;; |
13324 | *) |
13325 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13326 | ;; |
13327 | esac |
13328 | done |
13329 | |
13330 | case $lt_echo in |
13331 | *'\$0 --fallback-echo"') |
13332 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13333 | ;; |
13334 | esac |
13335 | |
13336 | cfgfile="$ofile" |
13337 | |
13338 | cat <<__EOF__ >> "$cfgfile" |
13339 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13340 | |
13341 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13342 | |
13343 | # Shell to use when invoking shell scripts. |
13344 | SHELL=$lt_SHELL |
13345 | |
13346 | # Whether or not to build shared libraries. |
13347 | build_libtool_libs=$enable_shared |
13348 | |
13349 | # Whether or not to build static libraries. |
13350 | build_old_libs=$enable_static |
13351 | |
13352 | # Whether or not to add -lc for building shared libraries. |
13353 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13354 | |
13355 | # Whether or not to disallow shared libs when runtime libs are static |
13356 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13357 | |
13358 | # Whether or not to optimize for fast installation. |
13359 | fast_install=$enable_fast_install |
13360 | |
13361 | # The host system. |
13362 | host_alias=$host_alias |
13363 | host=$host |
13364 | host_os=$host_os |
13365 | |
13366 | # The build system. |
13367 | build_alias=$build_alias |
13368 | build=$build |
13369 | build_os=$build_os |
13370 | |
13371 | # An echo program that does not interpret backslashes. |
13372 | echo=$lt_echo |
13373 | |
13374 | # The archiver. |
13375 | AR=$lt_AR |
13376 | AR_FLAGS=$lt_AR_FLAGS |
13377 | |
13378 | # A C compiler. |
13379 | LTCC=$lt_LTCC |
13380 | |
13381 | # LTCC compiler flags. |
13382 | LTCFLAGS=$lt_LTCFLAGS |
13383 | |
13384 | # A language-specific compiler. |
13385 | CC=$lt_compiler_CXX |
13386 | |
13387 | # Is the compiler the GNU C compiler? |
13388 | with_gcc=$GCC_CXX |
13389 | |
d9898ee8 |
13390 | # An ERE matcher. |
13391 | EGREP=$lt_EGREP |
13392 | |
13393 | # The linker used to build libraries. |
13394 | LD=$lt_LD_CXX |
13395 | |
13396 | # Whether we need hard or soft links. |
13397 | LN_S=$lt_LN_S |
13398 | |
13399 | # A BSD-compatible nm program. |
13400 | NM=$lt_NM |
13401 | |
13402 | # A symbol stripping program |
13403 | STRIP=$lt_STRIP |
13404 | |
13405 | # Used to examine libraries when file_magic_cmd begins "file" |
13406 | MAGIC_CMD=$MAGIC_CMD |
13407 | |
13408 | # Used on cygwin: DLL creation program. |
13409 | DLLTOOL="$DLLTOOL" |
13410 | |
13411 | # Used on cygwin: object dumper. |
13412 | OBJDUMP="$OBJDUMP" |
13413 | |
13414 | # Used on cygwin: assembler. |
13415 | AS="$AS" |
13416 | |
13417 | # The name of the directory that contains temporary libtool files. |
13418 | objdir=$objdir |
13419 | |
13420 | # How to create reloadable object files. |
13421 | reload_flag=$lt_reload_flag |
13422 | reload_cmds=$lt_reload_cmds |
13423 | |
13424 | # How to pass a linker flag through the compiler. |
13425 | wl=$lt_lt_prog_compiler_wl_CXX |
13426 | |
13427 | # Object file suffix (normally "o"). |
13428 | objext="$ac_objext" |
13429 | |
13430 | # Old archive suffix (normally "a"). |
13431 | libext="$libext" |
13432 | |
13433 | # Shared library suffix (normally ".so"). |
13434 | shrext_cmds='$shrext_cmds' |
13435 | |
13436 | # Executable file suffix (normally ""). |
13437 | exeext="$exeext" |
13438 | |
13439 | # Additional compiler flags for building library objects. |
13440 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13441 | pic_mode=$pic_mode |
13442 | |
13443 | # What is the maximum length of a command? |
13444 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13445 | |
13446 | # Does compiler simultaneously support -c and -o options? |
13447 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13448 | |
13449 | # Must we lock files when doing compilation? |
13450 | need_locks=$lt_need_locks |
13451 | |
13452 | # Do we need the lib prefix for modules? |
13453 | need_lib_prefix=$need_lib_prefix |
13454 | |
13455 | # Do we need a version for libraries? |
13456 | need_version=$need_version |
13457 | |
13458 | # Whether dlopen is supported. |
13459 | dlopen_support=$enable_dlopen |
13460 | |
13461 | # Whether dlopen of programs is supported. |
13462 | dlopen_self=$enable_dlopen_self |
13463 | |
13464 | # Whether dlopen of statically linked programs is supported. |
13465 | dlopen_self_static=$enable_dlopen_self_static |
13466 | |
13467 | # Compiler flag to prevent dynamic linking. |
13468 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13469 | |
13470 | # Compiler flag to turn off builtin functions. |
13471 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13472 | |
13473 | # Compiler flag to allow reflexive dlopens. |
13474 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13475 | |
13476 | # Compiler flag to generate shared objects directly from archives. |
13477 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13478 | |
13479 | # Compiler flag to generate thread-safe objects. |
13480 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13481 | |
13482 | # Library versioning type. |
13483 | version_type=$version_type |
13484 | |
13485 | # Format of library name prefix. |
13486 | libname_spec=$lt_libname_spec |
13487 | |
13488 | # List of archive names. First name is the real one, the rest are links. |
13489 | # The last name is the one that the linker finds with -lNAME. |
13490 | library_names_spec=$lt_library_names_spec |
13491 | |
13492 | # The coded name of the library, if different from the real name. |
13493 | soname_spec=$lt_soname_spec |
13494 | |
13495 | # Commands used to build and install an old-style archive. |
13496 | RANLIB=$lt_RANLIB |
13497 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13498 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13499 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13500 | |
13501 | # Create an old-style archive from a shared archive. |
13502 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13503 | |
13504 | # Create a temporary old-style archive to link instead of a shared archive. |
13505 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13506 | |
13507 | # Commands used to build and install a shared archive. |
13508 | archive_cmds=$lt_archive_cmds_CXX |
13509 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13510 | postinstall_cmds=$lt_postinstall_cmds |
13511 | postuninstall_cmds=$lt_postuninstall_cmds |
13512 | |
13513 | # Commands used to build a loadable module (assumed same as above if empty) |
13514 | module_cmds=$lt_module_cmds_CXX |
13515 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13516 | |
13517 | # Commands to strip libraries. |
13518 | old_striplib=$lt_old_striplib |
13519 | striplib=$lt_striplib |
13520 | |
13521 | # Dependencies to place before the objects being linked to create a |
13522 | # shared library. |
dd184caf |
13523 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13524 | |
13525 | # Dependencies to place after the objects being linked to create a |
13526 | # shared library. |
dd184caf |
13527 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13528 | |
13529 | # Dependencies to place before the objects being linked to create a |
13530 | # shared library. |
13531 | predeps=$lt_predeps_CXX |
13532 | |
13533 | # Dependencies to place after the objects being linked to create a |
13534 | # shared library. |
13535 | postdeps=$lt_postdeps_CXX |
13536 | |
13537 | # The library search path used internally by the compiler when linking |
13538 | # a shared library. |
dd184caf |
13539 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13540 | |
13541 | # Method to check whether dependent libraries are shared objects. |
13542 | deplibs_check_method=$lt_deplibs_check_method |
13543 | |
13544 | # Command to use when deplibs_check_method == file_magic. |
13545 | file_magic_cmd=$lt_file_magic_cmd |
13546 | |
13547 | # Flag that allows shared libraries with undefined symbols to be built. |
13548 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13549 | |
13550 | # Flag that forces no undefined symbols. |
13551 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13552 | |
13553 | # Commands used to finish a libtool library installation in a directory. |
13554 | finish_cmds=$lt_finish_cmds |
13555 | |
13556 | # Same as above, but a single script fragment to be evaled but not shown. |
13557 | finish_eval=$lt_finish_eval |
13558 | |
13559 | # Take the output of nm and produce a listing of raw symbols and C names. |
13560 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13561 | |
13562 | # Transform the output of nm in a proper C declaration |
13563 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13564 | |
13565 | # Transform the output of nm in a C name address pair |
13566 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13567 | |
13568 | # This is the shared library runtime path variable. |
13569 | runpath_var=$runpath_var |
13570 | |
13571 | # This is the shared library path variable. |
13572 | shlibpath_var=$shlibpath_var |
13573 | |
13574 | # Is shlibpath searched before the hard-coded library search path? |
13575 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13576 | |
13577 | # How to hardcode a shared library path into an executable. |
13578 | hardcode_action=$hardcode_action_CXX |
13579 | |
13580 | # Whether we should hardcode library paths into libraries. |
13581 | hardcode_into_libs=$hardcode_into_libs |
13582 | |
13583 | # Flag to hardcode \$libdir into a binary during linking. |
13584 | # This must work even if \$libdir does not exist. |
13585 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13586 | |
13587 | # If ld is used when linking, flag to hardcode \$libdir into |
13588 | # a binary during linking. This must work even if \$libdir does |
13589 | # not exist. |
13590 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13591 | |
13592 | # Whether we need a single -rpath flag with a separated argument. |
13593 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13594 | |
13595 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13596 | # resulting binary. |
13597 | hardcode_direct=$hardcode_direct_CXX |
13598 | |
13599 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13600 | # resulting binary. |
13601 | hardcode_minus_L=$hardcode_minus_L_CXX |
13602 | |
13603 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13604 | # the resulting binary. |
13605 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13606 | |
13607 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13608 | # and all subsequent libraries and executables linked against it. |
13609 | hardcode_automatic=$hardcode_automatic_CXX |
13610 | |
13611 | # Variables whose values should be saved in libtool wrapper scripts and |
13612 | # restored at relink time. |
13613 | variables_saved_for_relink="$variables_saved_for_relink" |
13614 | |
13615 | # Whether libtool must link a program against all its dependency libraries. |
13616 | link_all_deplibs=$link_all_deplibs_CXX |
13617 | |
13618 | # Compile-time system search path for libraries |
dd184caf |
13619 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13620 | |
13621 | # Run-time system search path for libraries |
13622 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13623 | |
13624 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
13625 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
13626 | |
13627 | # Set to yes if exported symbols are required. |
13628 | always_export_symbols=$always_export_symbols_CXX |
13629 | |
13630 | # The commands to list exported symbols. |
13631 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13632 | |
13633 | # The commands to extract the exported symbol list from a shared archive. |
13634 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13635 | |
13636 | # Symbols that should not be listed in the preloaded symbols. |
13637 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13638 | |
13639 | # Symbols that must always be exported. |
13640 | include_expsyms=$lt_include_expsyms_CXX |
13641 | |
13642 | # ### END LIBTOOL TAG CONFIG: $tagname |
13643 | |
13644 | __EOF__ |
13645 | |
13646 | |
13647 | else |
13648 | # If there is no Makefile yet, we rely on a make rule to execute |
13649 | # `config.status --recheck' to rerun these tests and create the |
13650 | # libtool script then. |
13651 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13652 | if test -f "$ltmain_in"; then |
13653 | test -f Makefile && make "$ltmain" |
13654 | fi |
13655 | fi |
13656 | |
13657 | |
13658 | ac_ext=c |
13659 | ac_cpp='$CPP $CPPFLAGS' |
13660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13663 | |
13664 | CC=$lt_save_CC |
13665 | LDCXX=$LD |
13666 | LD=$lt_save_LD |
13667 | GCC=$lt_save_GCC |
13668 | with_gnu_ldcxx=$with_gnu_ld |
13669 | with_gnu_ld=$lt_save_with_gnu_ld |
13670 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13671 | lt_cv_path_LD=$lt_save_path_LD |
13672 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13673 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13674 | |
13675 | else |
13676 | tagname="" |
13677 | fi |
13678 | ;; |
13679 | |
13680 | F77) |
13681 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13682 | |
13683 | ac_ext=f |
13684 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13685 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13686 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13687 | |
13688 | |
13689 | archive_cmds_need_lc_F77=no |
13690 | allow_undefined_flag_F77= |
13691 | always_export_symbols_F77=no |
13692 | archive_expsym_cmds_F77= |
13693 | export_dynamic_flag_spec_F77= |
13694 | hardcode_direct_F77=no |
13695 | hardcode_libdir_flag_spec_F77= |
13696 | hardcode_libdir_flag_spec_ld_F77= |
13697 | hardcode_libdir_separator_F77= |
13698 | hardcode_minus_L_F77=no |
13699 | hardcode_automatic_F77=no |
13700 | module_cmds_F77= |
13701 | module_expsym_cmds_F77= |
13702 | link_all_deplibs_F77=unknown |
13703 | old_archive_cmds_F77=$old_archive_cmds |
13704 | no_undefined_flag_F77= |
13705 | whole_archive_flag_spec_F77= |
13706 | enable_shared_with_static_runtimes_F77=no |
13707 | |
13708 | # Source file extension for f77 test sources. |
13709 | ac_ext=f |
13710 | |
13711 | # Object file extension for compiled f77 test sources. |
13712 | objext=o |
13713 | objext_F77=$objext |
13714 | |
13715 | # Code to be used in simple compile tests |
ac40fd9e |
13716 | lt_simple_compile_test_code="\ |
13717 | subroutine t |
13718 | return |
13719 | end |
13720 | " |
d9898ee8 |
13721 | |
13722 | # Code to be used in simple link tests |
ac40fd9e |
13723 | lt_simple_link_test_code="\ |
13724 | program t |
13725 | end |
13726 | " |
d9898ee8 |
13727 | |
13728 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13729 | |
13730 | # If no C compiler was specified, use CC. |
13731 | LTCC=${LTCC-"$CC"} |
13732 | |
13733 | # If no C compiler flags were specified, use CFLAGS. |
13734 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13735 | |
13736 | # Allow CC to be a program name with arguments. |
13737 | compiler=$CC |
13738 | |
13739 | |
13740 | # save warnings/boilerplate of simple test code |
13741 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
13742 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
13743 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13744 | _lt_compiler_boilerplate=`cat conftest.err` |
13745 | $rm conftest* |
13746 | |
13747 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
13748 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
13749 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13750 | _lt_linker_boilerplate=`cat conftest.err` |
13751 | $rm conftest* |
13752 | |
13753 | |
13754 | # Allow CC to be a program name with arguments. |
13755 | lt_save_CC="$CC" |
13756 | CC=${F77-"f77"} |
13757 | compiler=$CC |
13758 | compiler_F77=$CC |
13759 | for cc_temp in $compiler""; do |
13760 | case $cc_temp in |
13761 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13762 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13763 | \-*) ;; |
13764 | *) break;; |
13765 | esac |
13766 | done |
13767 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13768 | |
13769 | |
dd184caf |
13770 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13771 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13772 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13773 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13774 | |
dd184caf |
13775 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13776 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13777 | test "$can_build_shared" = "no" && enable_shared=no |
13778 | |
13779 | # On AIX, shared libraries and static libraries use the same namespace, and |
13780 | # are all built from PIC. |
13781 | case $host_os in |
13782 | aix3*) |
13783 | test "$enable_shared" = yes && enable_static=no |
13784 | if test -n "$RANLIB"; then |
13785 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13786 | postinstall_cmds='$RANLIB $lib' |
13787 | fi |
13788 | ;; |
13789 | aix4* | aix5*) |
13790 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13791 | test "$enable_shared" = yes && enable_static=no |
13792 | fi |
13793 | ;; |
13794 | esac |
dd184caf |
13795 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13796 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13797 | |
dd184caf |
13798 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13799 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13800 | # Make sure either enable_shared or enable_static is yes. |
13801 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
13802 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13803 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13804 | |
13805 | GCC_F77="$G77" |
13806 | LD_F77="$LD" |
13807 | |
13808 | lt_prog_compiler_wl_F77= |
13809 | lt_prog_compiler_pic_F77= |
13810 | lt_prog_compiler_static_F77= |
13811 | |
dd184caf |
13812 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13813 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13814 | |
13815 | if test "$GCC" = yes; then |
13816 | lt_prog_compiler_wl_F77='-Wl,' |
13817 | lt_prog_compiler_static_F77='-static' |
13818 | |
13819 | case $host_os in |
13820 | aix*) |
13821 | # All AIX code is PIC. |
13822 | if test "$host_cpu" = ia64; then |
13823 | # AIX 5 now supports IA64 processor |
13824 | lt_prog_compiler_static_F77='-Bstatic' |
13825 | fi |
13826 | ;; |
13827 | |
13828 | amigaos*) |
13829 | # FIXME: we need at least 68020 code to build shared libraries, but |
13830 | # adding the `-m68020' flag to GCC prevents building anything better, |
13831 | # like `-m68040'. |
13832 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13833 | ;; |
13834 | |
ac40fd9e |
13835 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
13836 | # PIC is the default for these OSes. |
13837 | ;; |
13838 | |
ac40fd9e |
13839 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
13840 | # This hack is so that the source file can tell whether it is being |
13841 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
13842 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
13843 | # (--disable-auto-import) libraries |
d9898ee8 |
13844 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13845 | ;; |
13846 | |
13847 | darwin* | rhapsody*) |
13848 | # PIC is the default on this platform |
13849 | # Common symbols not allowed in MH_DYLIB files |
13850 | lt_prog_compiler_pic_F77='-fno-common' |
13851 | ;; |
13852 | |
ac40fd9e |
13853 | interix[3-9]*) |
d9898ee8 |
13854 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13855 | # Instead, we relocate shared libraries at runtime. |
13856 | ;; |
13857 | |
13858 | msdosdjgpp*) |
13859 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13860 | # on systems that don't support them. |
13861 | lt_prog_compiler_can_build_shared_F77=no |
13862 | enable_shared=no |
13863 | ;; |
13864 | |
13865 | sysv4*MP*) |
13866 | if test -d /usr/nec; then |
13867 | lt_prog_compiler_pic_F77=-Kconform_pic |
13868 | fi |
13869 | ;; |
13870 | |
13871 | hpux*) |
13872 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13873 | # not for PA HP-UX. |
13874 | case $host_cpu in |
13875 | hppa*64*|ia64*) |
13876 | # +Z the default |
13877 | ;; |
13878 | *) |
13879 | lt_prog_compiler_pic_F77='-fPIC' |
13880 | ;; |
13881 | esac |
13882 | ;; |
13883 | |
13884 | *) |
13885 | lt_prog_compiler_pic_F77='-fPIC' |
13886 | ;; |
13887 | esac |
13888 | else |
13889 | # PORTME Check for flag to pass linker flags through the system compiler. |
13890 | case $host_os in |
13891 | aix*) |
13892 | lt_prog_compiler_wl_F77='-Wl,' |
13893 | if test "$host_cpu" = ia64; then |
13894 | # AIX 5 now supports IA64 processor |
13895 | lt_prog_compiler_static_F77='-Bstatic' |
13896 | else |
13897 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13898 | fi |
13899 | ;; |
13900 | darwin*) |
13901 | # PIC is the default on this platform |
13902 | # Common symbols not allowed in MH_DYLIB files |
13903 | case $cc_basename in |
13904 | xlc*) |
13905 | lt_prog_compiler_pic_F77='-qnocommon' |
13906 | lt_prog_compiler_wl_F77='-Wl,' |
13907 | ;; |
13908 | esac |
13909 | ;; |
13910 | |
ac40fd9e |
13911 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
13912 | # This hack is so that the source file can tell whether it is being |
13913 | # built for inclusion in a dll (and should export symbols for example). |
13914 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13915 | ;; |
13916 | |
13917 | hpux9* | hpux10* | hpux11*) |
13918 | lt_prog_compiler_wl_F77='-Wl,' |
13919 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13920 | # not for PA HP-UX. |
13921 | case $host_cpu in |
13922 | hppa*64*|ia64*) |
13923 | # +Z the default |
13924 | ;; |
13925 | *) |
13926 | lt_prog_compiler_pic_F77='+Z' |
13927 | ;; |
13928 | esac |
13929 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13930 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13931 | ;; |
13932 | |
13933 | irix5* | irix6* | nonstopux*) |
13934 | lt_prog_compiler_wl_F77='-Wl,' |
13935 | # PIC (with -KPIC) is the default. |
13936 | lt_prog_compiler_static_F77='-non_shared' |
13937 | ;; |
13938 | |
13939 | newsos6) |
13940 | lt_prog_compiler_pic_F77='-KPIC' |
13941 | lt_prog_compiler_static_F77='-Bstatic' |
13942 | ;; |
13943 | |
ac40fd9e |
13944 | linux* | k*bsd*-gnu) |
d9898ee8 |
13945 | case $cc_basename in |
13946 | icc* | ecc*) |
13947 | lt_prog_compiler_wl_F77='-Wl,' |
13948 | lt_prog_compiler_pic_F77='-KPIC' |
13949 | lt_prog_compiler_static_F77='-static' |
13950 | ;; |
13951 | pgcc* | pgf77* | pgf90* | pgf95*) |
13952 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13953 | # which looks to be a dead project) |
13954 | lt_prog_compiler_wl_F77='-Wl,' |
13955 | lt_prog_compiler_pic_F77='-fpic' |
13956 | lt_prog_compiler_static_F77='-Bstatic' |
13957 | ;; |
13958 | ccc*) |
13959 | lt_prog_compiler_wl_F77='-Wl,' |
13960 | # All Alpha code is PIC. |
13961 | lt_prog_compiler_static_F77='-non_shared' |
13962 | ;; |
ac40fd9e |
13963 | *) |
13964 | case `$CC -V 2>&1 | sed 5q` in |
13965 | *Sun\ C*) |
13966 | # Sun C 5.9 |
13967 | lt_prog_compiler_pic_F77='-KPIC' |
13968 | lt_prog_compiler_static_F77='-Bstatic' |
13969 | lt_prog_compiler_wl_F77='-Wl,' |
13970 | ;; |
13971 | *Sun\ F*) |
13972 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
13973 | lt_prog_compiler_pic_F77='-KPIC' |
13974 | lt_prog_compiler_static_F77='-Bstatic' |
13975 | lt_prog_compiler_wl_F77='' |
13976 | ;; |
13977 | esac |
13978 | ;; |
d9898ee8 |
13979 | esac |
13980 | ;; |
13981 | |
13982 | osf3* | osf4* | osf5*) |
13983 | lt_prog_compiler_wl_F77='-Wl,' |
13984 | # All OSF/1 code is PIC. |
13985 | lt_prog_compiler_static_F77='-non_shared' |
13986 | ;; |
13987 | |
ac40fd9e |
13988 | rdos*) |
13989 | lt_prog_compiler_static_F77='-non_shared' |
13990 | ;; |
13991 | |
d9898ee8 |
13992 | solaris*) |
13993 | lt_prog_compiler_pic_F77='-KPIC' |
13994 | lt_prog_compiler_static_F77='-Bstatic' |
13995 | case $cc_basename in |
13996 | f77* | f90* | f95*) |
13997 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13998 | *) |
13999 | lt_prog_compiler_wl_F77='-Wl,';; |
14000 | esac |
14001 | ;; |
14002 | |
14003 | sunos4*) |
14004 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14005 | lt_prog_compiler_pic_F77='-PIC' |
14006 | lt_prog_compiler_static_F77='-Bstatic' |
14007 | ;; |
14008 | |
14009 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14010 | lt_prog_compiler_wl_F77='-Wl,' |
14011 | lt_prog_compiler_pic_F77='-KPIC' |
14012 | lt_prog_compiler_static_F77='-Bstatic' |
14013 | ;; |
14014 | |
14015 | sysv4*MP*) |
14016 | if test -d /usr/nec ;then |
14017 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14018 | lt_prog_compiler_static_F77='-Bstatic' |
14019 | fi |
14020 | ;; |
14021 | |
14022 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14023 | lt_prog_compiler_wl_F77='-Wl,' |
14024 | lt_prog_compiler_pic_F77='-KPIC' |
14025 | lt_prog_compiler_static_F77='-Bstatic' |
14026 | ;; |
14027 | |
14028 | unicos*) |
14029 | lt_prog_compiler_wl_F77='-Wl,' |
14030 | lt_prog_compiler_can_build_shared_F77=no |
14031 | ;; |
14032 | |
14033 | uts4*) |
14034 | lt_prog_compiler_pic_F77='-pic' |
14035 | lt_prog_compiler_static_F77='-Bstatic' |
14036 | ;; |
14037 | |
14038 | *) |
14039 | lt_prog_compiler_can_build_shared_F77=no |
14040 | ;; |
14041 | esac |
14042 | fi |
14043 | |
dd184caf |
14044 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14045 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
14046 | |
14047 | # |
14048 | # Check to make sure the PIC flag actually works. |
14049 | # |
14050 | if test -n "$lt_prog_compiler_pic_F77"; then |
14051 | |
dd184caf |
14052 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14053 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
14054 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14056 | else |
14057 | lt_prog_compiler_pic_works_F77=no |
14058 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
14059 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
14060 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14061 | # Insert the option either (1) after the last *FLAGS variable, or |
14062 | # (2) before a word containing "conftest.", or (3) at the end. |
14063 | # Note that $ac_compile itself does not contain backslashes and begins |
14064 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14065 | # The option is referenced via a variable to avoid confusing sed. |
14066 | lt_compile=`echo "$ac_compile" | $SED \ |
14067 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14068 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14069 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
14070 | (eval echo "\"\$as_me:14070: $lt_compile\"" >&5) |
d9898ee8 |
14071 | (eval "$lt_compile" 2>conftest.err) |
14072 | ac_status=$? |
14073 | cat conftest.err >&5 |
ac40fd9e |
14074 | echo "$as_me:14074: \$? = $ac_status" >&5 |
d9898ee8 |
14075 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14076 | # The compiler can only warn and ignore the option if not recognized |
14077 | # So say no if there are warnings other than the usual output. |
14078 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14079 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14080 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14081 | lt_prog_compiler_pic_works_F77=yes |
14082 | fi |
14083 | fi |
14084 | $rm conftest* |
14085 | |
14086 | fi |
dd184caf |
14087 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14088 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14089 | |
14090 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14091 | case $lt_prog_compiler_pic_F77 in |
14092 | "" | " "*) ;; |
14093 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14094 | esac |
14095 | else |
14096 | lt_prog_compiler_pic_F77= |
14097 | lt_prog_compiler_can_build_shared_F77=no |
14098 | fi |
14099 | |
14100 | fi |
14101 | case $host_os in |
14102 | # For platforms which do not support PIC, -DPIC is meaningless: |
14103 | *djgpp*) |
14104 | lt_prog_compiler_pic_F77= |
14105 | ;; |
14106 | *) |
14107 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14108 | ;; |
14109 | esac |
14110 | |
14111 | # |
14112 | # Check to make sure the static flag actually works. |
14113 | # |
14114 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
dd184caf |
14115 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14116 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14117 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14119 | else |
14120 | lt_prog_compiler_static_works_F77=no |
14121 | save_LDFLAGS="$LDFLAGS" |
14122 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
14123 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
14124 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14125 | # The linker can only warn and ignore the option if not recognized |
14126 | # So say no if there are warnings |
14127 | if test -s conftest.err; then |
14128 | # Append any errors to the config.log. |
14129 | cat conftest.err 1>&5 |
14130 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14131 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14132 | if diff conftest.exp conftest.er2 >/dev/null; then |
14133 | lt_prog_compiler_static_works_F77=yes |
14134 | fi |
14135 | else |
14136 | lt_prog_compiler_static_works_F77=yes |
14137 | fi |
14138 | fi |
14139 | $rm conftest* |
14140 | LDFLAGS="$save_LDFLAGS" |
14141 | |
14142 | fi |
dd184caf |
14143 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14144 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14145 | |
14146 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14147 | : |
14148 | else |
14149 | lt_prog_compiler_static_F77= |
14150 | fi |
14151 | |
14152 | |
dd184caf |
14153 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14154 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14155 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14157 | else |
14158 | lt_cv_prog_compiler_c_o_F77=no |
14159 | $rm -r conftest 2>/dev/null |
14160 | mkdir conftest |
14161 | cd conftest |
14162 | mkdir out |
ac40fd9e |
14163 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
14164 | |
14165 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14166 | # Insert the option either (1) after the last *FLAGS variable, or |
14167 | # (2) before a word containing "conftest.", or (3) at the end. |
14168 | # Note that $ac_compile itself does not contain backslashes and begins |
14169 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14170 | lt_compile=`echo "$ac_compile" | $SED \ |
14171 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14172 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14173 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
14174 | (eval echo "\"\$as_me:14174: $lt_compile\"" >&5) |
d9898ee8 |
14175 | (eval "$lt_compile" 2>out/conftest.err) |
14176 | ac_status=$? |
14177 | cat out/conftest.err >&5 |
ac40fd9e |
14178 | echo "$as_me:14178: \$? = $ac_status" >&5 |
d9898ee8 |
14179 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14180 | then |
14181 | # The compiler can only warn and ignore the option if not recognized |
14182 | # So say no if there are warnings |
14183 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14184 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14185 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14186 | lt_cv_prog_compiler_c_o_F77=yes |
14187 | fi |
14188 | fi |
14189 | chmod u+w . 2>&5 |
14190 | $rm conftest* |
14191 | # SGI C++ compiler will create directory out/ii_files/ for |
14192 | # template instantiation |
14193 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14194 | $rm out/* && rmdir out |
14195 | cd .. |
14196 | rmdir conftest |
14197 | $rm conftest* |
14198 | |
14199 | fi |
dd184caf |
14200 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14201 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14202 | |
14203 | |
14204 | hard_links="nottested" |
14205 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14206 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
14207 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14208 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14209 | hard_links=yes |
14210 | $rm conftest* |
14211 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14212 | touch conftest.a |
14213 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14214 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
14215 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14216 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14217 | if test "$hard_links" = no; then |
14218 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14219 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14220 | need_locks=warn |
14221 | fi |
14222 | else |
14223 | need_locks=no |
14224 | fi |
14225 | |
dd184caf |
14226 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14227 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14228 | |
14229 | runpath_var= |
14230 | allow_undefined_flag_F77= |
14231 | enable_shared_with_static_runtimes_F77=no |
14232 | archive_cmds_F77= |
14233 | archive_expsym_cmds_F77= |
14234 | old_archive_From_new_cmds_F77= |
14235 | old_archive_from_expsyms_cmds_F77= |
14236 | export_dynamic_flag_spec_F77= |
14237 | whole_archive_flag_spec_F77= |
14238 | thread_safe_flag_spec_F77= |
14239 | hardcode_libdir_flag_spec_F77= |
14240 | hardcode_libdir_flag_spec_ld_F77= |
14241 | hardcode_libdir_separator_F77= |
14242 | hardcode_direct_F77=no |
14243 | hardcode_minus_L_F77=no |
14244 | hardcode_shlibpath_var_F77=unsupported |
14245 | link_all_deplibs_F77=unknown |
14246 | hardcode_automatic_F77=no |
14247 | module_cmds_F77= |
14248 | module_expsym_cmds_F77= |
14249 | always_export_symbols_F77=no |
14250 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14251 | # include_expsyms should be a list of space-separated symbols to be *always* |
14252 | # included in the symbol list |
14253 | include_expsyms_F77= |
14254 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14255 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14256 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14257 | # as well as any symbol that contains `d'. |
14258 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14259 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14260 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14261 | # the symbol is explicitly referenced. Since portable code cannot |
14262 | # rely on this symbol name, it's probably fine to never include it in |
14263 | # preloaded symbol tables. |
14264 | extract_expsyms_cmds= |
14265 | # Just being paranoid about ensuring that cc_basename is set. |
14266 | for cc_temp in $compiler""; do |
14267 | case $cc_temp in |
14268 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14269 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14270 | \-*) ;; |
14271 | *) break;; |
14272 | esac |
14273 | done |
14274 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14275 | |
14276 | case $host_os in |
14277 | cygwin* | mingw* | pw32*) |
14278 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14279 | # When not using gcc, we currently assume that we are using |
14280 | # Microsoft Visual C++. |
14281 | if test "$GCC" != yes; then |
14282 | with_gnu_ld=no |
14283 | fi |
14284 | ;; |
14285 | interix*) |
14286 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14287 | with_gnu_ld=yes |
14288 | ;; |
14289 | openbsd*) |
14290 | with_gnu_ld=no |
14291 | ;; |
14292 | esac |
14293 | |
14294 | ld_shlibs_F77=yes |
14295 | if test "$with_gnu_ld" = yes; then |
14296 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14297 | wlarc='${wl}' |
14298 | |
14299 | # Set some defaults for GNU ld with shared library support. These |
14300 | # are reset later if shared libraries are not supported. Putting them |
14301 | # here allows them to be overridden if necessary. |
14302 | runpath_var=LD_RUN_PATH |
14303 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14304 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14305 | # ancient GNU ld didn't support --whole-archive et. al. |
14306 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14307 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14308 | else |
14309 | whole_archive_flag_spec_F77= |
14310 | fi |
14311 | supports_anon_versioning=no |
14312 | case `$LD -v 2>/dev/null` in |
14313 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14314 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14315 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14316 | *\ 2.11.*) ;; # other 2.11 versions |
14317 | *) supports_anon_versioning=yes ;; |
14318 | esac |
14319 | |
14320 | # See if GNU ld supports shared libraries. |
14321 | case $host_os in |
14322 | aix3* | aix4* | aix5*) |
14323 | # On AIX/PPC, the GNU linker is very broken |
14324 | if test "$host_cpu" != ia64; then |
14325 | ld_shlibs_F77=no |
14326 | cat <<EOF 1>&2 |
14327 | |
14328 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14329 | *** to be unable to reliably create shared libraries on AIX. |
14330 | *** Therefore, libtool is disabling shared libraries support. If you |
14331 | *** really care for shared libraries, you may want to modify your PATH |
14332 | *** so that a non-GNU linker is found, and then restart. |
14333 | |
14334 | EOF |
14335 | fi |
14336 | ;; |
14337 | |
14338 | amigaos*) |
14339 | 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)' |
14340 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14341 | hardcode_minus_L_F77=yes |
14342 | |
14343 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14344 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14345 | # to version 4, is to share data among multiple programs linked |
14346 | # with the same dynamic library. Since this doesn't match the |
14347 | # behavior of shared libraries on other platforms, we can't use |
14348 | # them. |
14349 | ld_shlibs_F77=no |
14350 | ;; |
14351 | |
14352 | beos*) |
14353 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14354 | allow_undefined_flag_F77=unsupported |
14355 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14356 | # support --undefined. This deserves some investigation. FIXME |
14357 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14358 | else |
14359 | ld_shlibs_F77=no |
14360 | fi |
14361 | ;; |
14362 | |
14363 | cygwin* | mingw* | pw32*) |
14364 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14365 | # as there is no search path for DLLs. |
14366 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14367 | allow_undefined_flag_F77=unsupported |
14368 | always_export_symbols_F77=no |
14369 | enable_shared_with_static_runtimes_F77=yes |
ac40fd9e |
14370 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
14371 | |
14372 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14373 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14374 | # If the export-symbols file already is a .def file (1st line |
14375 | # is EXPORTS), use it as is; otherwise, prepend... |
14376 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14377 | cp $export_symbols $output_objdir/$soname.def; |
14378 | else |
14379 | echo EXPORTS > $output_objdir/$soname.def; |
14380 | cat $export_symbols >> $output_objdir/$soname.def; |
14381 | fi~ |
14382 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14383 | else |
14384 | ld_shlibs_F77=no |
14385 | fi |
14386 | ;; |
14387 | |
ac40fd9e |
14388 | interix[3-9]*) |
d9898ee8 |
14389 | hardcode_direct_F77=no |
14390 | hardcode_shlibpath_var_F77=no |
14391 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14392 | export_dynamic_flag_spec_F77='${wl}-E' |
14393 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14394 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14395 | # default) and relocated if they conflict, which is a slow very memory |
14396 | # consuming and fragmenting process. To avoid this, we pick a random, |
14397 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14398 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14399 | 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' |
14400 | 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' |
14401 | ;; |
14402 | |
ac40fd9e |
14403 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
14404 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14405 | tmp_addflag= |
14406 | case $cc_basename,$host_cpu in |
14407 | pgcc*) # Portland Group C compiler |
14408 | 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' |
14409 | tmp_addflag=' $pic_flag' |
14410 | ;; |
14411 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14412 | 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' |
14413 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14414 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14415 | tmp_addflag=' -i_dynamic' ;; |
14416 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14417 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14418 | ifc* | ifort*) # Intel Fortran compiler |
14419 | tmp_addflag=' -nofor_main' ;; |
14420 | esac |
ac40fd9e |
14421 | case `$CC -V 2>&1 | sed 5q` in |
14422 | *Sun\ C*) # Sun C 5.9 |
14423 | whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14424 | tmp_sharedflag='-G' ;; |
14425 | *Sun\ F*) # Sun Fortran 8.3 |
14426 | tmp_sharedflag='-G' ;; |
14427 | *) |
14428 | tmp_sharedflag='-shared' ;; |
14429 | esac |
14430 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
14431 | |
14432 | if test $supports_anon_versioning = yes; then |
14433 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14434 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14435 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
14436 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
14437 | fi |
14438 | else |
14439 | ld_shlibs_F77=no |
14440 | fi |
14441 | ;; |
14442 | |
14443 | netbsd*) |
14444 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14445 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14446 | wlarc= |
14447 | else |
14448 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14449 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14450 | fi |
14451 | ;; |
14452 | |
14453 | solaris*) |
14454 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14455 | ld_shlibs_F77=no |
14456 | cat <<EOF 1>&2 |
14457 | |
14458 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14459 | *** create shared libraries on Solaris systems. Therefore, libtool |
14460 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14461 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14462 | *** your PATH or compiler configuration so that the native linker is |
14463 | *** used, and then restart. |
14464 | |
14465 | EOF |
14466 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14467 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14468 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14469 | else |
14470 | ld_shlibs_F77=no |
14471 | fi |
14472 | ;; |
14473 | |
14474 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14475 | case `$LD -v 2>&1` in |
14476 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14477 | ld_shlibs_F77=no |
14478 | cat <<_LT_EOF 1>&2 |
14479 | |
14480 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14481 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14482 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14483 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14484 | *** your PATH or compiler configuration so that the native linker is |
14485 | *** used, and then restart. |
14486 | |
14487 | _LT_EOF |
14488 | ;; |
14489 | *) |
14490 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14491 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14492 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14493 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14494 | else |
14495 | ld_shlibs_F77=no |
14496 | fi |
14497 | ;; |
14498 | esac |
14499 | ;; |
14500 | |
14501 | sunos4*) |
14502 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14503 | wlarc= |
14504 | hardcode_direct_F77=yes |
14505 | hardcode_shlibpath_var_F77=no |
14506 | ;; |
14507 | |
14508 | *) |
14509 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14510 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14511 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14512 | else |
14513 | ld_shlibs_F77=no |
14514 | fi |
14515 | ;; |
14516 | esac |
14517 | |
14518 | if test "$ld_shlibs_F77" = no; then |
14519 | runpath_var= |
14520 | hardcode_libdir_flag_spec_F77= |
14521 | export_dynamic_flag_spec_F77= |
14522 | whole_archive_flag_spec_F77= |
14523 | fi |
14524 | else |
14525 | # PORTME fill in a description of your system's linker (not GNU ld) |
14526 | case $host_os in |
14527 | aix3*) |
14528 | allow_undefined_flag_F77=unsupported |
14529 | always_export_symbols_F77=yes |
14530 | 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' |
14531 | # Note: this linker hardcodes the directories in LIBPATH if there |
14532 | # are no directories specified by -L. |
14533 | hardcode_minus_L_F77=yes |
14534 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14535 | # Neither direct hardcoding nor static linking is supported with a |
14536 | # broken collect2. |
14537 | hardcode_direct_F77=unsupported |
14538 | fi |
14539 | ;; |
14540 | |
14541 | aix4* | aix5*) |
14542 | if test "$host_cpu" = ia64; then |
14543 | # On IA64, the linker does run time linking by default, so we don't |
14544 | # have to do anything special. |
14545 | aix_use_runtimelinking=no |
14546 | exp_sym_flag='-Bexport' |
14547 | no_entry_flag="" |
14548 | else |
14549 | # If we're using GNU nm, then we don't want the "-C" option. |
14550 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14551 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14552 | 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' |
14553 | else |
14554 | 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' |
14555 | fi |
14556 | aix_use_runtimelinking=no |
14557 | |
14558 | # Test if we are trying to use run time linking or normal |
14559 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14560 | # need to do runtime linking. |
14561 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14562 | for ld_flag in $LDFLAGS; do |
14563 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14564 | aix_use_runtimelinking=yes |
14565 | break |
14566 | fi |
14567 | done |
14568 | ;; |
14569 | esac |
14570 | |
14571 | exp_sym_flag='-bexport' |
14572 | no_entry_flag='-bnoentry' |
14573 | fi |
14574 | |
14575 | # When large executables or shared objects are built, AIX ld can |
14576 | # have problems creating the table of contents. If linking a library |
14577 | # or program results in "error TOC overflow" add -mminimal-toc to |
14578 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14579 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14580 | |
14581 | archive_cmds_F77='' |
14582 | hardcode_direct_F77=yes |
14583 | hardcode_libdir_separator_F77=':' |
14584 | link_all_deplibs_F77=yes |
14585 | |
14586 | if test "$GCC" = yes; then |
14587 | case $host_os in aix4.[012]|aix4.[012].*) |
14588 | # We only want to do this on AIX 4.2 and lower, the check |
14589 | # below for broken collect2 doesn't work under 4.3+ |
14590 | collect2name=`${CC} -print-prog-name=collect2` |
14591 | if test -f "$collect2name" && \ |
14592 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14593 | then |
14594 | # We have reworked collect2 |
ac40fd9e |
14595 | : |
d9898ee8 |
14596 | else |
14597 | # We have old collect2 |
14598 | hardcode_direct_F77=unsupported |
14599 | # It fails to find uninstalled libraries when the uninstalled |
14600 | # path is not listed in the libpath. Setting hardcode_minus_L |
14601 | # to unsupported forces relinking |
14602 | hardcode_minus_L_F77=yes |
14603 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14604 | hardcode_libdir_separator_F77= |
14605 | fi |
14606 | ;; |
14607 | esac |
14608 | shared_flag='-shared' |
14609 | if test "$aix_use_runtimelinking" = yes; then |
14610 | shared_flag="$shared_flag "'${wl}-G' |
14611 | fi |
14612 | else |
14613 | # not using gcc |
14614 | if test "$host_cpu" = ia64; then |
14615 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14616 | # chokes on -Wl,-G. The following line is correct: |
14617 | shared_flag='-G' |
14618 | else |
14619 | if test "$aix_use_runtimelinking" = yes; then |
14620 | shared_flag='${wl}-G' |
14621 | else |
14622 | shared_flag='${wl}-bM:SRE' |
14623 | fi |
14624 | fi |
14625 | fi |
14626 | |
14627 | # It seems that -bexpall does not export symbols beginning with |
14628 | # underscore (_), so it is better to generate a list of symbols to export. |
14629 | always_export_symbols_F77=yes |
14630 | if test "$aix_use_runtimelinking" = yes; then |
14631 | # Warning - without using the other runtime loading flags (-brtl), |
14632 | # -berok will link without error, but may produce a broken library. |
14633 | allow_undefined_flag_F77='-berok' |
14634 | # Determine the default libpath from the value encoded in an empty executable. |
14635 | cat >conftest.$ac_ext <<_ACEOF |
14636 | program main |
14637 | |
14638 | end |
14639 | _ACEOF |
14640 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14641 | if { (ac_try="$ac_link" |
14642 | case "(($ac_try" in |
14643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14644 | *) ac_try_echo=$ac_try;; |
14645 | esac |
14646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14647 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14648 | ac_status=$? |
14649 | grep -v '^ *+' conftest.er1 >conftest.err |
14650 | rm -f conftest.er1 |
14651 | cat conftest.err >&5 |
14652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14653 | (exit $ac_status); } && { |
14654 | test -z "$ac_f77_werror_flag" || |
14655 | test ! -s conftest.err |
14656 | } && test -s conftest$ac_exeext && |
14657 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14658 | |
ac40fd9e |
14659 | lt_aix_libpath_sed=' |
14660 | /Import File Strings/,/^$/ { |
14661 | /^0/ { |
14662 | s/^0 *\(.*\)$/\1/ |
14663 | p |
14664 | } |
14665 | }' |
14666 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
14667 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
14668 | if test -z "$aix_libpath"; then |
14669 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
14670 | fi |
d9898ee8 |
14671 | else |
14672 | echo "$as_me: failed program was:" >&5 |
14673 | sed 's/^/| /' conftest.$ac_ext >&5 |
14674 | |
dd184caf |
14675 | |
d9898ee8 |
14676 | fi |
dd184caf |
14677 | |
14678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14679 | conftest$ac_exeext conftest.$ac_ext |
14680 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14681 | |
14682 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14683 | 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" |
14684 | else |
14685 | if test "$host_cpu" = ia64; then |
14686 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14687 | allow_undefined_flag_F77="-z nodefs" |
14688 | 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" |
14689 | else |
14690 | # Determine the default libpath from the value encoded in an empty executable. |
14691 | cat >conftest.$ac_ext <<_ACEOF |
14692 | program main |
14693 | |
14694 | end |
14695 | _ACEOF |
14696 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14697 | if { (ac_try="$ac_link" |
14698 | case "(($ac_try" in |
14699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14700 | *) ac_try_echo=$ac_try;; |
14701 | esac |
14702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14703 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14704 | ac_status=$? |
14705 | grep -v '^ *+' conftest.er1 >conftest.err |
14706 | rm -f conftest.er1 |
14707 | cat conftest.err >&5 |
14708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14709 | (exit $ac_status); } && { |
14710 | test -z "$ac_f77_werror_flag" || |
14711 | test ! -s conftest.err |
14712 | } && test -s conftest$ac_exeext && |
14713 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14714 | |
ac40fd9e |
14715 | lt_aix_libpath_sed=' |
14716 | /Import File Strings/,/^$/ { |
14717 | /^0/ { |
14718 | s/^0 *\(.*\)$/\1/ |
14719 | p |
14720 | } |
14721 | }' |
14722 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
14723 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
14724 | if test -z "$aix_libpath"; then |
14725 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
14726 | fi |
d9898ee8 |
14727 | else |
14728 | echo "$as_me: failed program was:" >&5 |
14729 | sed 's/^/| /' conftest.$ac_ext >&5 |
14730 | |
dd184caf |
14731 | |
d9898ee8 |
14732 | fi |
dd184caf |
14733 | |
14734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14735 | conftest$ac_exeext conftest.$ac_ext |
14736 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14737 | |
14738 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14739 | # Warning - without using the other run time loading flags, |
14740 | # -berok will link without error, but may produce a broken library. |
14741 | no_undefined_flag_F77=' ${wl}-bernotok' |
14742 | allow_undefined_flag_F77=' ${wl}-berok' |
14743 | # Exported symbols can be pulled into shared objects from archives |
14744 | whole_archive_flag_spec_F77='$convenience' |
14745 | archive_cmds_need_lc_F77=yes |
14746 | # This is similar to how AIX traditionally builds its shared libraries. |
14747 | 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' |
14748 | fi |
14749 | fi |
14750 | ;; |
14751 | |
14752 | amigaos*) |
14753 | 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)' |
14754 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14755 | hardcode_minus_L_F77=yes |
14756 | # see comment about different semantics on the GNU ld section |
14757 | ld_shlibs_F77=no |
14758 | ;; |
14759 | |
14760 | bsdi[45]*) |
14761 | export_dynamic_flag_spec_F77=-rdynamic |
14762 | ;; |
14763 | |
14764 | cygwin* | mingw* | pw32*) |
14765 | # When not using gcc, we currently assume that we are using |
14766 | # Microsoft Visual C++. |
14767 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14768 | # no search path for DLLs. |
14769 | hardcode_libdir_flag_spec_F77=' ' |
14770 | allow_undefined_flag_F77=unsupported |
14771 | # Tell ltmain to make .lib files, not .a files. |
14772 | libext=lib |
14773 | # Tell ltmain to make .dll files, not .so files. |
14774 | shrext_cmds=".dll" |
14775 | # FIXME: Setting linknames here is a bad hack. |
14776 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14777 | # The linker will automatically build a .lib file if we build a DLL. |
14778 | old_archive_From_new_cmds_F77='true' |
14779 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
14780 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
14781 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14782 | enable_shared_with_static_runtimes_F77=yes |
14783 | ;; |
14784 | |
14785 | darwin* | rhapsody*) |
14786 | case $host_os in |
14787 | rhapsody* | darwin1.[012]) |
14788 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14789 | ;; |
14790 | *) # Darwin 1.3 on |
14791 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14792 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14793 | else |
14794 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14795 | 10.[012]) |
14796 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14797 | ;; |
14798 | 10.*) |
14799 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14800 | ;; |
14801 | esac |
14802 | fi |
14803 | ;; |
14804 | esac |
14805 | archive_cmds_need_lc_F77=no |
14806 | hardcode_direct_F77=no |
14807 | hardcode_automatic_F77=yes |
14808 | hardcode_shlibpath_var_F77=unsupported |
14809 | whole_archive_flag_spec_F77='' |
14810 | link_all_deplibs_F77=yes |
14811 | if test "$GCC" = yes ; then |
14812 | output_verbose_link_cmd='echo' |
14813 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14814 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14815 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14816 | 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}' |
14817 | 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}' |
14818 | else |
14819 | case $cc_basename in |
14820 | xlc*) |
14821 | output_verbose_link_cmd='echo' |
ac40fd9e |
14822 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
14823 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14824 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
14825 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
d9898ee8 |
14826 | 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}' |
14827 | ;; |
14828 | *) |
14829 | ld_shlibs_F77=no |
14830 | ;; |
14831 | esac |
14832 | fi |
14833 | ;; |
14834 | |
14835 | dgux*) |
14836 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14837 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14838 | hardcode_shlibpath_var_F77=no |
14839 | ;; |
14840 | |
14841 | freebsd1*) |
14842 | ld_shlibs_F77=no |
14843 | ;; |
14844 | |
14845 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14846 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14847 | # does not break anything, and helps significantly (at the cost of a little |
14848 | # extra space). |
14849 | freebsd2.2*) |
14850 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14851 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14852 | hardcode_direct_F77=yes |
14853 | hardcode_shlibpath_var_F77=no |
14854 | ;; |
14855 | |
14856 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14857 | freebsd2*) |
14858 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14859 | hardcode_direct_F77=yes |
14860 | hardcode_minus_L_F77=yes |
14861 | hardcode_shlibpath_var_F77=no |
14862 | ;; |
14863 | |
14864 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
14865 | freebsd* | dragonfly*) |
d9898ee8 |
14866 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14867 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14868 | hardcode_direct_F77=yes |
14869 | hardcode_shlibpath_var_F77=no |
14870 | ;; |
14871 | |
14872 | hpux9*) |
14873 | if test "$GCC" = yes; then |
14874 | 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' |
14875 | else |
14876 | 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' |
14877 | fi |
14878 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14879 | hardcode_libdir_separator_F77=: |
14880 | hardcode_direct_F77=yes |
14881 | |
14882 | # hardcode_minus_L: Not really in the search PATH, |
14883 | # but as the default location of the library. |
14884 | hardcode_minus_L_F77=yes |
14885 | export_dynamic_flag_spec_F77='${wl}-E' |
14886 | ;; |
14887 | |
14888 | hpux10*) |
14889 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14890 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14891 | else |
14892 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14893 | fi |
14894 | if test "$with_gnu_ld" = no; then |
14895 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14896 | hardcode_libdir_separator_F77=: |
14897 | |
14898 | hardcode_direct_F77=yes |
14899 | export_dynamic_flag_spec_F77='${wl}-E' |
14900 | |
14901 | # hardcode_minus_L: Not really in the search PATH, |
14902 | # but as the default location of the library. |
14903 | hardcode_minus_L_F77=yes |
14904 | fi |
14905 | ;; |
14906 | |
14907 | hpux11*) |
14908 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14909 | case $host_cpu in |
14910 | hppa*64*) |
14911 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14912 | ;; |
14913 | ia64*) |
14914 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14915 | ;; |
14916 | *) |
14917 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14918 | ;; |
14919 | esac |
14920 | else |
14921 | case $host_cpu in |
14922 | hppa*64*) |
14923 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14924 | ;; |
14925 | ia64*) |
14926 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14927 | ;; |
14928 | *) |
14929 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14930 | ;; |
14931 | esac |
14932 | fi |
14933 | if test "$with_gnu_ld" = no; then |
14934 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14935 | hardcode_libdir_separator_F77=: |
14936 | |
14937 | case $host_cpu in |
14938 | hppa*64*|ia64*) |
14939 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14940 | hardcode_direct_F77=no |
14941 | hardcode_shlibpath_var_F77=no |
14942 | ;; |
14943 | *) |
14944 | hardcode_direct_F77=yes |
14945 | export_dynamic_flag_spec_F77='${wl}-E' |
14946 | |
14947 | # hardcode_minus_L: Not really in the search PATH, |
14948 | # but as the default location of the library. |
14949 | hardcode_minus_L_F77=yes |
14950 | ;; |
14951 | esac |
14952 | fi |
14953 | ;; |
14954 | |
14955 | irix5* | irix6* | nonstopux*) |
14956 | if test "$GCC" = yes; then |
14957 | 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' |
14958 | else |
14959 | 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' |
14960 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14961 | fi |
14962 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14963 | hardcode_libdir_separator_F77=: |
14964 | link_all_deplibs_F77=yes |
14965 | ;; |
14966 | |
14967 | netbsd*) |
14968 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14969 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14970 | else |
14971 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14972 | fi |
14973 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14974 | hardcode_direct_F77=yes |
14975 | hardcode_shlibpath_var_F77=no |
14976 | ;; |
14977 | |
14978 | newsos6) |
14979 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14980 | hardcode_direct_F77=yes |
14981 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14982 | hardcode_libdir_separator_F77=: |
14983 | hardcode_shlibpath_var_F77=no |
14984 | ;; |
14985 | |
14986 | openbsd*) |
ac40fd9e |
14987 | if test -f /usr/libexec/ld.so; then |
14988 | hardcode_direct_F77=yes |
14989 | hardcode_shlibpath_var_F77=no |
14990 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14991 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14992 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14993 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14994 | export_dynamic_flag_spec_F77='${wl}-E' |
14995 | else |
14996 | case $host_os in |
14997 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14998 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14999 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15000 | ;; |
15001 | *) |
15002 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15003 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15004 | ;; |
15005 | esac |
15006 | fi |
d9898ee8 |
15007 | else |
ac40fd9e |
15008 | ld_shlibs_F77=no |
d9898ee8 |
15009 | fi |
15010 | ;; |
15011 | |
15012 | os2*) |
15013 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15014 | hardcode_minus_L_F77=yes |
15015 | allow_undefined_flag_F77=unsupported |
15016 | 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' |
15017 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15018 | ;; |
15019 | |
15020 | osf3*) |
15021 | if test "$GCC" = yes; then |
15022 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15023 | 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' |
15024 | else |
15025 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15026 | 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' |
15027 | fi |
15028 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15029 | hardcode_libdir_separator_F77=: |
15030 | ;; |
15031 | |
15032 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15033 | if test "$GCC" = yes; then |
15034 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15035 | 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' |
15036 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15037 | else |
15038 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15039 | 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' |
15040 | 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~ |
15041 | $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' |
15042 | |
15043 | # Both c and cxx compiler support -rpath directly |
15044 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15045 | fi |
15046 | hardcode_libdir_separator_F77=: |
15047 | ;; |
15048 | |
15049 | solaris*) |
15050 | no_undefined_flag_F77=' -z text' |
15051 | if test "$GCC" = yes; then |
15052 | wlarc='${wl}' |
15053 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15054 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15055 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15056 | else |
15057 | wlarc='' |
15058 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15059 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15060 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15061 | fi |
15062 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15063 | hardcode_shlibpath_var_F77=no |
15064 | case $host_os in |
15065 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15066 | *) |
ac40fd9e |
15067 | # The compiler driver will combine and reorder linker options, |
15068 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
15069 | # but is careful enough not to reorder. |
d9898ee8 |
15070 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
15071 | if test "$GCC" = yes; then |
15072 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
15073 | else |
15074 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' |
15075 | fi |
15076 | ;; |
d9898ee8 |
15077 | esac |
15078 | link_all_deplibs_F77=yes |
15079 | ;; |
15080 | |
15081 | sunos4*) |
15082 | if test "x$host_vendor" = xsequent; then |
15083 | # Use $CC to link under sequent, because it throws in some extra .o |
15084 | # files that make .init and .fini sections work. |
15085 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15086 | else |
15087 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15088 | fi |
15089 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15090 | hardcode_direct_F77=yes |
15091 | hardcode_minus_L_F77=yes |
15092 | hardcode_shlibpath_var_F77=no |
15093 | ;; |
15094 | |
15095 | sysv4) |
15096 | case $host_vendor in |
15097 | sni) |
15098 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15099 | hardcode_direct_F77=yes # is this really true??? |
15100 | ;; |
15101 | siemens) |
15102 | ## LD is ld it makes a PLAMLIB |
15103 | ## CC just makes a GrossModule. |
15104 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15105 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15106 | hardcode_direct_F77=no |
15107 | ;; |
15108 | motorola) |
15109 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15110 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15111 | ;; |
15112 | esac |
15113 | runpath_var='LD_RUN_PATH' |
15114 | hardcode_shlibpath_var_F77=no |
15115 | ;; |
15116 | |
15117 | sysv4.3*) |
15118 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15119 | hardcode_shlibpath_var_F77=no |
15120 | export_dynamic_flag_spec_F77='-Bexport' |
15121 | ;; |
15122 | |
15123 | sysv4*MP*) |
15124 | if test -d /usr/nec; then |
15125 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15126 | hardcode_shlibpath_var_F77=no |
15127 | runpath_var=LD_RUN_PATH |
15128 | hardcode_runpath_var=yes |
15129 | ld_shlibs_F77=yes |
15130 | fi |
15131 | ;; |
15132 | |
ac40fd9e |
15133 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
15134 | no_undefined_flag_F77='${wl}-z,text' |
15135 | archive_cmds_need_lc_F77=no |
15136 | hardcode_shlibpath_var_F77=no |
15137 | runpath_var='LD_RUN_PATH' |
15138 | |
15139 | if test "$GCC" = yes; then |
15140 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15141 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15142 | else |
15143 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15144 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15145 | fi |
15146 | ;; |
15147 | |
15148 | sysv5* | sco3.2v5* | sco5v6*) |
15149 | # Note: We can NOT use -z defs as we might desire, because we do not |
15150 | # link with -lc, and that would cause any symbols used from libc to |
15151 | # always be unresolved, which means just about no library would |
15152 | # ever link correctly. If we're not using GNU ld we use -z text |
15153 | # though, which does catch some bad symbols but isn't as heavy-handed |
15154 | # as -z defs. |
15155 | no_undefined_flag_F77='${wl}-z,text' |
15156 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15157 | archive_cmds_need_lc_F77=no |
15158 | hardcode_shlibpath_var_F77=no |
15159 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15160 | hardcode_libdir_separator_F77=':' |
15161 | link_all_deplibs_F77=yes |
15162 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15163 | runpath_var='LD_RUN_PATH' |
15164 | |
15165 | if test "$GCC" = yes; then |
15166 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15167 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15168 | else |
15169 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15170 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15171 | fi |
15172 | ;; |
15173 | |
15174 | uts4*) |
15175 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15176 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15177 | hardcode_shlibpath_var_F77=no |
15178 | ;; |
15179 | |
15180 | *) |
15181 | ld_shlibs_F77=no |
15182 | ;; |
15183 | esac |
15184 | fi |
15185 | |
dd184caf |
15186 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15187 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15188 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15189 | |
15190 | # |
15191 | # Do we need to explicitly link libc? |
15192 | # |
15193 | case "x$archive_cmds_need_lc_F77" in |
15194 | x|xyes) |
15195 | # Assume -lc should be added |
15196 | archive_cmds_need_lc_F77=yes |
15197 | |
15198 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15199 | case $archive_cmds_F77 in |
15200 | *'~'*) |
15201 | # FIXME: we may have to deal with multi-command sequences. |
15202 | ;; |
15203 | '$CC '*) |
15204 | # Test whether the compiler implicitly links with -lc since on some |
15205 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15206 | # to ld, don't add -lc before -lgcc. |
dd184caf |
15207 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15208 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15209 | $rm conftest* |
ac40fd9e |
15210 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
15211 | |
15212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15213 | (eval $ac_compile) 2>&5 |
15214 | ac_status=$? |
15215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15216 | (exit $ac_status); } 2>conftest.err; then |
15217 | soname=conftest |
15218 | lib=conftest |
15219 | libobjs=conftest.$ac_objext |
15220 | deplibs= |
15221 | wl=$lt_prog_compiler_wl_F77 |
15222 | pic_flag=$lt_prog_compiler_pic_F77 |
15223 | compiler_flags=-v |
15224 | linker_flags=-v |
15225 | verstring= |
15226 | output_objdir=. |
15227 | libname=conftest |
15228 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15229 | allow_undefined_flag_F77= |
15230 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15231 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15232 | ac_status=$? |
15233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15234 | (exit $ac_status); } |
15235 | then |
15236 | archive_cmds_need_lc_F77=no |
15237 | else |
15238 | archive_cmds_need_lc_F77=yes |
15239 | fi |
15240 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15241 | else |
15242 | cat conftest.err 1>&5 |
15243 | fi |
15244 | $rm conftest* |
dd184caf |
15245 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15246 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15247 | ;; |
15248 | esac |
15249 | fi |
15250 | ;; |
15251 | esac |
15252 | |
dd184caf |
15253 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15254 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15255 | library_names_spec= |
15256 | libname_spec='lib$name' |
15257 | soname_spec= |
15258 | shrext_cmds=".so" |
15259 | postinstall_cmds= |
15260 | postuninstall_cmds= |
15261 | finish_cmds= |
15262 | finish_eval= |
15263 | shlibpath_var= |
15264 | shlibpath_overrides_runpath=unknown |
15265 | version_type=none |
15266 | dynamic_linker="$host_os ld.so" |
15267 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
15268 | |
d9898ee8 |
15269 | need_lib_prefix=unknown |
15270 | hardcode_into_libs=no |
15271 | |
15272 | # when you set need_version to no, make sure it does not cause -set_version |
15273 | # flags to be left without arguments |
15274 | need_version=unknown |
15275 | |
15276 | case $host_os in |
15277 | aix3*) |
15278 | version_type=linux |
15279 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15280 | shlibpath_var=LIBPATH |
15281 | |
15282 | # AIX 3 has no versioning support, so we append a major version to the name. |
15283 | soname_spec='${libname}${release}${shared_ext}$major' |
15284 | ;; |
15285 | |
15286 | aix4* | aix5*) |
15287 | version_type=linux |
15288 | need_lib_prefix=no |
15289 | need_version=no |
15290 | hardcode_into_libs=yes |
15291 | if test "$host_cpu" = ia64; then |
15292 | # AIX 5 supports IA64 |
15293 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15294 | shlibpath_var=LD_LIBRARY_PATH |
15295 | else |
15296 | # With GCC up to 2.95.x, collect2 would create an import file |
15297 | # for dependence libraries. The import file would start with |
15298 | # the line `#! .'. This would cause the generated library to |
15299 | # depend on `.', always an invalid library. This was fixed in |
15300 | # development snapshots of GCC prior to 3.0. |
15301 | case $host_os in |
15302 | aix4 | aix4.[01] | aix4.[01].*) |
15303 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15304 | echo ' yes ' |
15305 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15306 | : |
15307 | else |
15308 | can_build_shared=no |
15309 | fi |
15310 | ;; |
15311 | esac |
15312 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15313 | # soname into executable. Probably we can add versioning support to |
15314 | # collect2, so additional links can be useful in future. |
15315 | if test "$aix_use_runtimelinking" = yes; then |
15316 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15317 | # instead of lib<name>.a to let people know that these are not |
15318 | # typical AIX shared libraries. |
15319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15320 | else |
15321 | # We preserve .a as extension for shared libraries through AIX4.2 |
15322 | # and later when we are not doing run time linking. |
15323 | library_names_spec='${libname}${release}.a $libname.a' |
15324 | soname_spec='${libname}${release}${shared_ext}$major' |
15325 | fi |
15326 | shlibpath_var=LIBPATH |
15327 | fi |
15328 | ;; |
15329 | |
15330 | amigaos*) |
15331 | library_names_spec='$libname.ixlibrary $libname.a' |
15332 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15333 | 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' |
15334 | ;; |
15335 | |
15336 | beos*) |
15337 | library_names_spec='${libname}${shared_ext}' |
15338 | dynamic_linker="$host_os ld.so" |
15339 | shlibpath_var=LIBRARY_PATH |
15340 | ;; |
15341 | |
15342 | bsdi[45]*) |
15343 | version_type=linux |
15344 | need_version=no |
15345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15346 | soname_spec='${libname}${release}${shared_ext}$major' |
15347 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15348 | shlibpath_var=LD_LIBRARY_PATH |
15349 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15350 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15351 | # the default ld.so.conf also contains /usr/contrib/lib and |
15352 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15353 | # libtool to hard-code these into programs |
15354 | ;; |
15355 | |
15356 | cygwin* | mingw* | pw32*) |
15357 | version_type=windows |
15358 | shrext_cmds=".dll" |
15359 | need_version=no |
15360 | need_lib_prefix=no |
15361 | |
15362 | case $GCC,$host_os in |
15363 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15364 | library_names_spec='$libname.dll.a' |
15365 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15366 | postinstall_cmds='base_file=`basename \${file}`~ |
15367 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15368 | dldir=$destdir/`dirname \$dlpath`~ |
15369 | test -d \$dldir || mkdir -p \$dldir~ |
15370 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15371 | chmod a+x \$dldir/$dlname' |
15372 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15373 | dlpath=$dir/\$dldll~ |
15374 | $rm \$dlpath' |
15375 | shlibpath_overrides_runpath=yes |
15376 | |
15377 | case $host_os in |
15378 | cygwin*) |
15379 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15380 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15381 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15382 | ;; |
15383 | mingw*) |
15384 | # MinGW DLLs use traditional 'lib' prefix |
15385 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15386 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15387 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15388 | # It is most probably a Windows format PATH printed by |
15389 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15390 | # path with ; separators, and with drive letters. We can handle the |
15391 | # drive letters (cygwin fileutils understands them), so leave them, |
15392 | # especially as we might pass files found there to a mingw objdump, |
15393 | # which wouldn't understand a cygwinified path. Ahh. |
15394 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15395 | else |
15396 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15397 | fi |
15398 | ;; |
15399 | pw32*) |
15400 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15401 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15402 | ;; |
15403 | esac |
15404 | ;; |
15405 | |
15406 | *) |
15407 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15408 | ;; |
15409 | esac |
15410 | dynamic_linker='Win32 ld.exe' |
15411 | # FIXME: first we should search . and the directory the executable is in |
15412 | shlibpath_var=PATH |
15413 | ;; |
15414 | |
15415 | darwin* | rhapsody*) |
15416 | dynamic_linker="$host_os dyld" |
15417 | version_type=darwin |
15418 | need_lib_prefix=no |
15419 | need_version=no |
15420 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15421 | soname_spec='${libname}${release}${major}$shared_ext' |
15422 | shlibpath_overrides_runpath=yes |
15423 | shlibpath_var=DYLD_LIBRARY_PATH |
15424 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
15425 | |
d9898ee8 |
15426 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15427 | ;; |
15428 | |
15429 | dgux*) |
15430 | version_type=linux |
15431 | need_lib_prefix=no |
15432 | need_version=no |
15433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15434 | soname_spec='${libname}${release}${shared_ext}$major' |
15435 | shlibpath_var=LD_LIBRARY_PATH |
15436 | ;; |
15437 | |
15438 | freebsd1*) |
15439 | dynamic_linker=no |
15440 | ;; |
15441 | |
d9898ee8 |
15442 | freebsd* | dragonfly*) |
15443 | # DragonFly does not have aout. When/if they implement a new |
15444 | # versioning mechanism, adjust this. |
15445 | if test -x /usr/bin/objformat; then |
15446 | objformat=`/usr/bin/objformat` |
15447 | else |
15448 | case $host_os in |
15449 | freebsd[123]*) objformat=aout ;; |
15450 | *) objformat=elf ;; |
15451 | esac |
15452 | fi |
15453 | version_type=freebsd-$objformat |
15454 | case $version_type in |
15455 | freebsd-elf*) |
15456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15457 | need_version=no |
15458 | need_lib_prefix=no |
15459 | ;; |
15460 | freebsd-*) |
15461 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15462 | need_version=yes |
15463 | ;; |
15464 | esac |
15465 | shlibpath_var=LD_LIBRARY_PATH |
15466 | case $host_os in |
15467 | freebsd2*) |
15468 | shlibpath_overrides_runpath=yes |
15469 | ;; |
15470 | freebsd3.[01]* | freebsdelf3.[01]*) |
15471 | shlibpath_overrides_runpath=yes |
15472 | hardcode_into_libs=yes |
15473 | ;; |
15474 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15475 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15476 | shlibpath_overrides_runpath=no |
15477 | hardcode_into_libs=yes |
15478 | ;; |
ac40fd9e |
15479 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
15480 | shlibpath_overrides_runpath=yes |
15481 | hardcode_into_libs=yes |
15482 | ;; |
15483 | esac |
15484 | ;; |
15485 | |
15486 | gnu*) |
15487 | version_type=linux |
15488 | need_lib_prefix=no |
15489 | need_version=no |
15490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15491 | soname_spec='${libname}${release}${shared_ext}$major' |
15492 | shlibpath_var=LD_LIBRARY_PATH |
15493 | hardcode_into_libs=yes |
15494 | ;; |
15495 | |
15496 | hpux9* | hpux10* | hpux11*) |
15497 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15498 | # link against other versions. |
15499 | version_type=sunos |
15500 | need_lib_prefix=no |
15501 | need_version=no |
15502 | case $host_cpu in |
15503 | ia64*) |
15504 | shrext_cmds='.so' |
15505 | hardcode_into_libs=yes |
15506 | dynamic_linker="$host_os dld.so" |
15507 | shlibpath_var=LD_LIBRARY_PATH |
15508 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15510 | soname_spec='${libname}${release}${shared_ext}$major' |
15511 | if test "X$HPUX_IA64_MODE" = X32; then |
15512 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15513 | else |
15514 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15515 | fi |
15516 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15517 | ;; |
15518 | hppa*64*) |
15519 | shrext_cmds='.sl' |
15520 | hardcode_into_libs=yes |
15521 | dynamic_linker="$host_os dld.sl" |
15522 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15523 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15525 | soname_spec='${libname}${release}${shared_ext}$major' |
15526 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15527 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15528 | ;; |
15529 | *) |
15530 | shrext_cmds='.sl' |
15531 | dynamic_linker="$host_os dld.sl" |
15532 | shlibpath_var=SHLIB_PATH |
15533 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15535 | soname_spec='${libname}${release}${shared_ext}$major' |
15536 | ;; |
15537 | esac |
15538 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15539 | postinstall_cmds='chmod 555 $lib' |
15540 | ;; |
15541 | |
ac40fd9e |
15542 | interix[3-9]*) |
d9898ee8 |
15543 | version_type=linux |
15544 | need_lib_prefix=no |
15545 | need_version=no |
15546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15547 | soname_spec='${libname}${release}${shared_ext}$major' |
15548 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15549 | shlibpath_var=LD_LIBRARY_PATH |
15550 | shlibpath_overrides_runpath=no |
15551 | hardcode_into_libs=yes |
15552 | ;; |
15553 | |
15554 | irix5* | irix6* | nonstopux*) |
15555 | case $host_os in |
15556 | nonstopux*) version_type=nonstopux ;; |
15557 | *) |
15558 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15559 | version_type=linux |
15560 | else |
15561 | version_type=irix |
15562 | fi ;; |
15563 | esac |
15564 | need_lib_prefix=no |
15565 | need_version=no |
15566 | soname_spec='${libname}${release}${shared_ext}$major' |
15567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15568 | case $host_os in |
15569 | irix5* | nonstopux*) |
15570 | libsuff= shlibsuff= |
15571 | ;; |
15572 | *) |
15573 | case $LD in # libtool.m4 will add one of these switches to LD |
15574 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15575 | libsuff= shlibsuff= libmagic=32-bit;; |
15576 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15577 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15578 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15579 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15580 | *) libsuff= shlibsuff= libmagic=never-match;; |
15581 | esac |
15582 | ;; |
15583 | esac |
15584 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15585 | shlibpath_overrides_runpath=no |
15586 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15587 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15588 | hardcode_into_libs=yes |
15589 | ;; |
15590 | |
15591 | # No shared lib support for Linux oldld, aout, or coff. |
15592 | linux*oldld* | linux*aout* | linux*coff*) |
15593 | dynamic_linker=no |
15594 | ;; |
15595 | |
15596 | # This must be Linux ELF. |
ac40fd9e |
15597 | linux* | k*bsd*-gnu) |
d9898ee8 |
15598 | version_type=linux |
15599 | need_lib_prefix=no |
15600 | need_version=no |
15601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15602 | soname_spec='${libname}${release}${shared_ext}$major' |
15603 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15604 | shlibpath_var=LD_LIBRARY_PATH |
15605 | shlibpath_overrides_runpath=no |
15606 | # This implies no fast_install, which is unacceptable. |
15607 | # Some rework will be needed to allow for fast_install |
15608 | # before this can be enabled. |
15609 | hardcode_into_libs=yes |
ac40fd9e |
15610 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15611 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
15612 | |
15613 | # Append ld.so.conf contents to the search path |
15614 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
15615 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
15616 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
15617 | fi |
15618 | |
15619 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15620 | # powerpc, because MkLinux only supported shared libraries with the |
15621 | # GNU dynamic linker. Since this was broken with cross compilers, |
15622 | # most powerpc-linux boxes support dynamic linking these days and |
15623 | # people can always --disable-shared, the test was removed, and we |
15624 | # assume the GNU/Linux dynamic linker is in use. |
15625 | dynamic_linker='GNU/Linux ld.so' |
15626 | ;; |
15627 | |
d9898ee8 |
15628 | netbsd*) |
15629 | version_type=sunos |
15630 | need_lib_prefix=no |
15631 | need_version=no |
15632 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15634 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15635 | dynamic_linker='NetBSD (a.out) ld.so' |
15636 | else |
15637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15638 | soname_spec='${libname}${release}${shared_ext}$major' |
15639 | dynamic_linker='NetBSD ld.elf_so' |
15640 | fi |
15641 | shlibpath_var=LD_LIBRARY_PATH |
15642 | shlibpath_overrides_runpath=yes |
15643 | hardcode_into_libs=yes |
15644 | ;; |
15645 | |
15646 | newsos6) |
15647 | version_type=linux |
15648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15649 | shlibpath_var=LD_LIBRARY_PATH |
15650 | shlibpath_overrides_runpath=yes |
15651 | ;; |
15652 | |
15653 | nto-qnx*) |
15654 | version_type=linux |
15655 | need_lib_prefix=no |
15656 | need_version=no |
15657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15658 | soname_spec='${libname}${release}${shared_ext}$major' |
15659 | shlibpath_var=LD_LIBRARY_PATH |
15660 | shlibpath_overrides_runpath=yes |
15661 | ;; |
15662 | |
15663 | openbsd*) |
15664 | version_type=sunos |
15665 | sys_lib_dlsearch_path_spec="/usr/lib" |
15666 | need_lib_prefix=no |
15667 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15668 | case $host_os in |
15669 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15670 | *) need_version=no ;; |
15671 | esac |
15672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15673 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15674 | shlibpath_var=LD_LIBRARY_PATH |
15675 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15676 | case $host_os in |
15677 | openbsd2.[89] | openbsd2.[89].*) |
15678 | shlibpath_overrides_runpath=no |
15679 | ;; |
15680 | *) |
15681 | shlibpath_overrides_runpath=yes |
15682 | ;; |
15683 | esac |
15684 | else |
15685 | shlibpath_overrides_runpath=yes |
15686 | fi |
15687 | ;; |
15688 | |
15689 | os2*) |
15690 | libname_spec='$name' |
15691 | shrext_cmds=".dll" |
15692 | need_lib_prefix=no |
15693 | library_names_spec='$libname${shared_ext} $libname.a' |
15694 | dynamic_linker='OS/2 ld.exe' |
15695 | shlibpath_var=LIBPATH |
15696 | ;; |
15697 | |
15698 | osf3* | osf4* | osf5*) |
15699 | version_type=osf |
15700 | need_lib_prefix=no |
15701 | need_version=no |
15702 | soname_spec='${libname}${release}${shared_ext}$major' |
15703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15704 | shlibpath_var=LD_LIBRARY_PATH |
15705 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15706 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15707 | ;; |
15708 | |
ac40fd9e |
15709 | rdos*) |
15710 | dynamic_linker=no |
15711 | ;; |
15712 | |
d9898ee8 |
15713 | solaris*) |
15714 | version_type=linux |
15715 | need_lib_prefix=no |
15716 | need_version=no |
15717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15718 | soname_spec='${libname}${release}${shared_ext}$major' |
15719 | shlibpath_var=LD_LIBRARY_PATH |
15720 | shlibpath_overrides_runpath=yes |
15721 | hardcode_into_libs=yes |
15722 | # ldd complains unless libraries are executable |
15723 | postinstall_cmds='chmod +x $lib' |
15724 | ;; |
15725 | |
15726 | sunos4*) |
15727 | version_type=sunos |
15728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15729 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15730 | shlibpath_var=LD_LIBRARY_PATH |
15731 | shlibpath_overrides_runpath=yes |
15732 | if test "$with_gnu_ld" = yes; then |
15733 | need_lib_prefix=no |
15734 | fi |
15735 | need_version=yes |
15736 | ;; |
15737 | |
15738 | sysv4 | sysv4.3*) |
15739 | version_type=linux |
15740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15741 | soname_spec='${libname}${release}${shared_ext}$major' |
15742 | shlibpath_var=LD_LIBRARY_PATH |
15743 | case $host_vendor in |
15744 | sni) |
15745 | shlibpath_overrides_runpath=no |
15746 | need_lib_prefix=no |
15747 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15748 | runpath_var=LD_RUN_PATH |
15749 | ;; |
15750 | siemens) |
15751 | need_lib_prefix=no |
15752 | ;; |
15753 | motorola) |
15754 | need_lib_prefix=no |
15755 | need_version=no |
15756 | shlibpath_overrides_runpath=no |
15757 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15758 | ;; |
15759 | esac |
15760 | ;; |
15761 | |
15762 | sysv4*MP*) |
15763 | if test -d /usr/nec ;then |
15764 | version_type=linux |
15765 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15766 | soname_spec='$libname${shared_ext}.$major' |
15767 | shlibpath_var=LD_LIBRARY_PATH |
15768 | fi |
15769 | ;; |
15770 | |
15771 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15772 | version_type=freebsd-elf |
15773 | need_lib_prefix=no |
15774 | need_version=no |
15775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15776 | soname_spec='${libname}${release}${shared_ext}$major' |
15777 | shlibpath_var=LD_LIBRARY_PATH |
15778 | hardcode_into_libs=yes |
15779 | if test "$with_gnu_ld" = yes; then |
15780 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15781 | shlibpath_overrides_runpath=no |
15782 | else |
15783 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15784 | shlibpath_overrides_runpath=yes |
15785 | case $host_os in |
15786 | sco3.2v5*) |
15787 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15788 | ;; |
15789 | esac |
15790 | fi |
15791 | sys_lib_dlsearch_path_spec='/usr/lib' |
15792 | ;; |
15793 | |
15794 | uts4*) |
15795 | version_type=linux |
15796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15797 | soname_spec='${libname}${release}${shared_ext}$major' |
15798 | shlibpath_var=LD_LIBRARY_PATH |
15799 | ;; |
15800 | |
15801 | *) |
15802 | dynamic_linker=no |
15803 | ;; |
15804 | esac |
dd184caf |
15805 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15806 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15807 | test "$dynamic_linker" = no && can_build_shared=no |
15808 | |
15809 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15810 | if test "$GCC" = yes; then |
15811 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15812 | fi |
15813 | |
dd184caf |
15814 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15815 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15816 | hardcode_action_F77= |
15817 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15818 | test -n "$runpath_var_F77" || \ |
15819 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15820 | |
15821 | # We can hardcode non-existant directories. |
15822 | if test "$hardcode_direct_F77" != no && |
15823 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15824 | # have to relink, otherwise we might link with an installed library |
15825 | # when we should be linking with a yet-to-be-installed one |
15826 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15827 | test "$hardcode_minus_L_F77" != no; then |
15828 | # Linking always hardcodes the temporary library directory. |
15829 | hardcode_action_F77=relink |
15830 | else |
15831 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15832 | hardcode_action_F77=immediate |
15833 | fi |
15834 | else |
15835 | # We cannot hardcode anything, or else we can only hardcode existing |
15836 | # directories. |
15837 | hardcode_action_F77=unsupported |
15838 | fi |
dd184caf |
15839 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15840 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15841 | |
15842 | if test "$hardcode_action_F77" = relink; then |
15843 | # Fast installation is not supported |
15844 | enable_fast_install=no |
15845 | elif test "$shlibpath_overrides_runpath" = yes || |
15846 | test "$enable_shared" = no; then |
15847 | # Fast installation is not necessary |
15848 | enable_fast_install=needless |
15849 | fi |
15850 | |
15851 | |
15852 | # The else clause should only fire when bootstrapping the |
15853 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15854 | # with your package, and you will get complaints that there are |
15855 | # no rules to generate ltmain.sh. |
15856 | if test -f "$ltmain"; then |
15857 | # See if we are running on zsh, and set the options which allow our commands through |
15858 | # without removal of \ escapes. |
15859 | if test -n "${ZSH_VERSION+set}" ; then |
15860 | setopt NO_GLOB_SUBST |
15861 | fi |
15862 | # Now quote all the things that may contain metacharacters while being |
15863 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15864 | # variables and quote the copies for generation of the libtool script. |
15865 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15866 | SED SHELL STRIP \ |
15867 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15868 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15869 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15870 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15871 | lt_cv_sys_global_symbol_to_c_name_address \ |
15872 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15873 | old_postinstall_cmds old_postuninstall_cmds \ |
15874 | compiler_F77 \ |
15875 | CC_F77 \ |
15876 | LD_F77 \ |
15877 | lt_prog_compiler_wl_F77 \ |
15878 | lt_prog_compiler_pic_F77 \ |
15879 | lt_prog_compiler_static_F77 \ |
15880 | lt_prog_compiler_no_builtin_flag_F77 \ |
15881 | export_dynamic_flag_spec_F77 \ |
15882 | thread_safe_flag_spec_F77 \ |
15883 | whole_archive_flag_spec_F77 \ |
15884 | enable_shared_with_static_runtimes_F77 \ |
15885 | old_archive_cmds_F77 \ |
15886 | old_archive_from_new_cmds_F77 \ |
15887 | predep_objects_F77 \ |
15888 | postdep_objects_F77 \ |
15889 | predeps_F77 \ |
15890 | postdeps_F77 \ |
15891 | compiler_lib_search_path_F77 \ |
15892 | archive_cmds_F77 \ |
15893 | archive_expsym_cmds_F77 \ |
15894 | postinstall_cmds_F77 \ |
15895 | postuninstall_cmds_F77 \ |
15896 | old_archive_from_expsyms_cmds_F77 \ |
15897 | allow_undefined_flag_F77 \ |
15898 | no_undefined_flag_F77 \ |
15899 | export_symbols_cmds_F77 \ |
15900 | hardcode_libdir_flag_spec_F77 \ |
15901 | hardcode_libdir_flag_spec_ld_F77 \ |
15902 | hardcode_libdir_separator_F77 \ |
15903 | hardcode_automatic_F77 \ |
15904 | module_cmds_F77 \ |
15905 | module_expsym_cmds_F77 \ |
15906 | lt_cv_prog_compiler_c_o_F77 \ |
ac40fd9e |
15907 | fix_srcfile_path_F77 \ |
d9898ee8 |
15908 | exclude_expsyms_F77 \ |
15909 | include_expsyms_F77; do |
15910 | |
15911 | case $var in |
15912 | old_archive_cmds_F77 | \ |
15913 | old_archive_from_new_cmds_F77 | \ |
15914 | archive_cmds_F77 | \ |
15915 | archive_expsym_cmds_F77 | \ |
15916 | module_cmds_F77 | \ |
15917 | module_expsym_cmds_F77 | \ |
15918 | old_archive_from_expsyms_cmds_F77 | \ |
15919 | export_symbols_cmds_F77 | \ |
15920 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15921 | postinstall_cmds | postuninstall_cmds | \ |
15922 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15923 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15924 | # Double-quote double-evaled strings. |
15925 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15926 | ;; |
15927 | *) |
15928 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15929 | ;; |
15930 | esac |
15931 | done |
15932 | |
15933 | case $lt_echo in |
15934 | *'\$0 --fallback-echo"') |
15935 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15936 | ;; |
15937 | esac |
15938 | |
15939 | cfgfile="$ofile" |
15940 | |
15941 | cat <<__EOF__ >> "$cfgfile" |
15942 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15943 | |
15944 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15945 | |
15946 | # Shell to use when invoking shell scripts. |
15947 | SHELL=$lt_SHELL |
15948 | |
15949 | # Whether or not to build shared libraries. |
15950 | build_libtool_libs=$enable_shared |
15951 | |
15952 | # Whether or not to build static libraries. |
15953 | build_old_libs=$enable_static |
15954 | |
15955 | # Whether or not to add -lc for building shared libraries. |
15956 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15957 | |
15958 | # Whether or not to disallow shared libs when runtime libs are static |
15959 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15960 | |
15961 | # Whether or not to optimize for fast installation. |
15962 | fast_install=$enable_fast_install |
15963 | |
15964 | # The host system. |
15965 | host_alias=$host_alias |
15966 | host=$host |
15967 | host_os=$host_os |
15968 | |
15969 | # The build system. |
15970 | build_alias=$build_alias |
15971 | build=$build |
15972 | build_os=$build_os |
15973 | |
15974 | # An echo program that does not interpret backslashes. |
15975 | echo=$lt_echo |
15976 | |
15977 | # The archiver. |
15978 | AR=$lt_AR |
15979 | AR_FLAGS=$lt_AR_FLAGS |
15980 | |
15981 | # A C compiler. |
15982 | LTCC=$lt_LTCC |
15983 | |
15984 | # LTCC compiler flags. |
15985 | LTCFLAGS=$lt_LTCFLAGS |
15986 | |
15987 | # A language-specific compiler. |
15988 | CC=$lt_compiler_F77 |
15989 | |
15990 | # Is the compiler the GNU C compiler? |
15991 | with_gcc=$GCC_F77 |
15992 | |
d9898ee8 |
15993 | # An ERE matcher. |
15994 | EGREP=$lt_EGREP |
15995 | |
15996 | # The linker used to build libraries. |
15997 | LD=$lt_LD_F77 |
15998 | |
15999 | # Whether we need hard or soft links. |
16000 | LN_S=$lt_LN_S |
16001 | |
16002 | # A BSD-compatible nm program. |
16003 | NM=$lt_NM |
16004 | |
16005 | # A symbol stripping program |
16006 | STRIP=$lt_STRIP |
16007 | |
16008 | # Used to examine libraries when file_magic_cmd begins "file" |
16009 | MAGIC_CMD=$MAGIC_CMD |
16010 | |
16011 | # Used on cygwin: DLL creation program. |
16012 | DLLTOOL="$DLLTOOL" |
16013 | |
16014 | # Used on cygwin: object dumper. |
16015 | OBJDUMP="$OBJDUMP" |
16016 | |
16017 | # Used on cygwin: assembler. |
16018 | AS="$AS" |
16019 | |
16020 | # The name of the directory that contains temporary libtool files. |
16021 | objdir=$objdir |
16022 | |
16023 | # How to create reloadable object files. |
16024 | reload_flag=$lt_reload_flag |
16025 | reload_cmds=$lt_reload_cmds |
16026 | |
16027 | # How to pass a linker flag through the compiler. |
16028 | wl=$lt_lt_prog_compiler_wl_F77 |
16029 | |
16030 | # Object file suffix (normally "o"). |
16031 | objext="$ac_objext" |
16032 | |
16033 | # Old archive suffix (normally "a"). |
16034 | libext="$libext" |
16035 | |
16036 | # Shared library suffix (normally ".so"). |
16037 | shrext_cmds='$shrext_cmds' |
16038 | |
16039 | # Executable file suffix (normally ""). |
16040 | exeext="$exeext" |
16041 | |
16042 | # Additional compiler flags for building library objects. |
16043 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16044 | pic_mode=$pic_mode |
16045 | |
16046 | # What is the maximum length of a command? |
16047 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16048 | |
16049 | # Does compiler simultaneously support -c and -o options? |
16050 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16051 | |
16052 | # Must we lock files when doing compilation? |
16053 | need_locks=$lt_need_locks |
16054 | |
16055 | # Do we need the lib prefix for modules? |
16056 | need_lib_prefix=$need_lib_prefix |
16057 | |
16058 | # Do we need a version for libraries? |
16059 | need_version=$need_version |
16060 | |
16061 | # Whether dlopen is supported. |
16062 | dlopen_support=$enable_dlopen |
16063 | |
16064 | # Whether dlopen of programs is supported. |
16065 | dlopen_self=$enable_dlopen_self |
16066 | |
16067 | # Whether dlopen of statically linked programs is supported. |
16068 | dlopen_self_static=$enable_dlopen_self_static |
16069 | |
16070 | # Compiler flag to prevent dynamic linking. |
16071 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16072 | |
16073 | # Compiler flag to turn off builtin functions. |
16074 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16075 | |
16076 | # Compiler flag to allow reflexive dlopens. |
16077 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16078 | |
16079 | # Compiler flag to generate shared objects directly from archives. |
16080 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16081 | |
16082 | # Compiler flag to generate thread-safe objects. |
16083 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16084 | |
16085 | # Library versioning type. |
16086 | version_type=$version_type |
16087 | |
16088 | # Format of library name prefix. |
16089 | libname_spec=$lt_libname_spec |
16090 | |
16091 | # List of archive names. First name is the real one, the rest are links. |
16092 | # The last name is the one that the linker finds with -lNAME. |
16093 | library_names_spec=$lt_library_names_spec |
16094 | |
16095 | # The coded name of the library, if different from the real name. |
16096 | soname_spec=$lt_soname_spec |
16097 | |
16098 | # Commands used to build and install an old-style archive. |
16099 | RANLIB=$lt_RANLIB |
16100 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16101 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16102 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16103 | |
16104 | # Create an old-style archive from a shared archive. |
16105 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16106 | |
16107 | # Create a temporary old-style archive to link instead of a shared archive. |
16108 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16109 | |
16110 | # Commands used to build and install a shared archive. |
16111 | archive_cmds=$lt_archive_cmds_F77 |
16112 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16113 | postinstall_cmds=$lt_postinstall_cmds |
16114 | postuninstall_cmds=$lt_postuninstall_cmds |
16115 | |
16116 | # Commands used to build a loadable module (assumed same as above if empty) |
16117 | module_cmds=$lt_module_cmds_F77 |
16118 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16119 | |
16120 | # Commands to strip libraries. |
16121 | old_striplib=$lt_old_striplib |
16122 | striplib=$lt_striplib |
16123 | |
16124 | # Dependencies to place before the objects being linked to create a |
16125 | # shared library. |
dd184caf |
16126 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16127 | |
16128 | # Dependencies to place after the objects being linked to create a |
16129 | # shared library. |
dd184caf |
16130 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16131 | |
16132 | # Dependencies to place before the objects being linked to create a |
16133 | # shared library. |
16134 | predeps=$lt_predeps_F77 |
16135 | |
16136 | # Dependencies to place after the objects being linked to create a |
16137 | # shared library. |
16138 | postdeps=$lt_postdeps_F77 |
16139 | |
16140 | # The library search path used internally by the compiler when linking |
16141 | # a shared library. |
dd184caf |
16142 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16143 | |
16144 | # Method to check whether dependent libraries are shared objects. |
16145 | deplibs_check_method=$lt_deplibs_check_method |
16146 | |
16147 | # Command to use when deplibs_check_method == file_magic. |
16148 | file_magic_cmd=$lt_file_magic_cmd |
16149 | |
16150 | # Flag that allows shared libraries with undefined symbols to be built. |
16151 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16152 | |
16153 | # Flag that forces no undefined symbols. |
16154 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16155 | |
16156 | # Commands used to finish a libtool library installation in a directory. |
16157 | finish_cmds=$lt_finish_cmds |
16158 | |
16159 | # Same as above, but a single script fragment to be evaled but not shown. |
16160 | finish_eval=$lt_finish_eval |
16161 | |
16162 | # Take the output of nm and produce a listing of raw symbols and C names. |
16163 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16164 | |
16165 | # Transform the output of nm in a proper C declaration |
16166 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16167 | |
16168 | # Transform the output of nm in a C name address pair |
16169 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16170 | |
16171 | # This is the shared library runtime path variable. |
16172 | runpath_var=$runpath_var |
16173 | |
16174 | # This is the shared library path variable. |
16175 | shlibpath_var=$shlibpath_var |
16176 | |
16177 | # Is shlibpath searched before the hard-coded library search path? |
16178 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16179 | |
16180 | # How to hardcode a shared library path into an executable. |
16181 | hardcode_action=$hardcode_action_F77 |
16182 | |
16183 | # Whether we should hardcode library paths into libraries. |
16184 | hardcode_into_libs=$hardcode_into_libs |
16185 | |
16186 | # Flag to hardcode \$libdir into a binary during linking. |
16187 | # This must work even if \$libdir does not exist. |
16188 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16189 | |
16190 | # If ld is used when linking, flag to hardcode \$libdir into |
16191 | # a binary during linking. This must work even if \$libdir does |
16192 | # not exist. |
16193 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16194 | |
16195 | # Whether we need a single -rpath flag with a separated argument. |
16196 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16197 | |
16198 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16199 | # resulting binary. |
16200 | hardcode_direct=$hardcode_direct_F77 |
16201 | |
16202 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16203 | # resulting binary. |
16204 | hardcode_minus_L=$hardcode_minus_L_F77 |
16205 | |
16206 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16207 | # the resulting binary. |
16208 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16209 | |
16210 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16211 | # and all subsequent libraries and executables linked against it. |
16212 | hardcode_automatic=$hardcode_automatic_F77 |
16213 | |
16214 | # Variables whose values should be saved in libtool wrapper scripts and |
16215 | # restored at relink time. |
16216 | variables_saved_for_relink="$variables_saved_for_relink" |
16217 | |
16218 | # Whether libtool must link a program against all its dependency libraries. |
16219 | link_all_deplibs=$link_all_deplibs_F77 |
16220 | |
16221 | # Compile-time system search path for libraries |
dd184caf |
16222 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16223 | |
16224 | # Run-time system search path for libraries |
16225 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16226 | |
16227 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
16228 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
16229 | |
16230 | # Set to yes if exported symbols are required. |
16231 | always_export_symbols=$always_export_symbols_F77 |
16232 | |
16233 | # The commands to list exported symbols. |
16234 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16235 | |
16236 | # The commands to extract the exported symbol list from a shared archive. |
16237 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16238 | |
16239 | # Symbols that should not be listed in the preloaded symbols. |
16240 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16241 | |
16242 | # Symbols that must always be exported. |
16243 | include_expsyms=$lt_include_expsyms_F77 |
16244 | |
16245 | # ### END LIBTOOL TAG CONFIG: $tagname |
16246 | |
16247 | __EOF__ |
16248 | |
16249 | |
16250 | else |
16251 | # If there is no Makefile yet, we rely on a make rule to execute |
16252 | # `config.status --recheck' to rerun these tests and create the |
16253 | # libtool script then. |
16254 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16255 | if test -f "$ltmain_in"; then |
16256 | test -f Makefile && make "$ltmain" |
16257 | fi |
16258 | fi |
16259 | |
16260 | |
16261 | ac_ext=c |
16262 | ac_cpp='$CPP $CPPFLAGS' |
16263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16266 | |
16267 | CC="$lt_save_CC" |
16268 | |
16269 | else |
16270 | tagname="" |
16271 | fi |
16272 | ;; |
16273 | |
16274 | GCJ) |
16275 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16276 | |
16277 | |
d9898ee8 |
16278 | # Source file extension for Java test sources. |
16279 | ac_ext=java |
16280 | |
16281 | # Object file extension for compiled Java test sources. |
16282 | objext=o |
16283 | objext_GCJ=$objext |
16284 | |
16285 | # Code to be used in simple compile tests |
ac40fd9e |
16286 | lt_simple_compile_test_code="class foo {}" |
d9898ee8 |
16287 | |
16288 | # Code to be used in simple link tests |
ac40fd9e |
16289 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' |
d9898ee8 |
16290 | |
16291 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16292 | |
16293 | # If no C compiler was specified, use CC. |
16294 | LTCC=${LTCC-"$CC"} |
16295 | |
16296 | # If no C compiler flags were specified, use CFLAGS. |
16297 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16298 | |
16299 | # Allow CC to be a program name with arguments. |
16300 | compiler=$CC |
16301 | |
16302 | |
16303 | # save warnings/boilerplate of simple test code |
16304 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16305 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
16306 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16307 | _lt_compiler_boilerplate=`cat conftest.err` |
16308 | $rm conftest* |
16309 | |
16310 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16311 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
16312 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16313 | _lt_linker_boilerplate=`cat conftest.err` |
16314 | $rm conftest* |
16315 | |
16316 | |
16317 | # Allow CC to be a program name with arguments. |
16318 | lt_save_CC="$CC" |
16319 | CC=${GCJ-"gcj"} |
16320 | compiler=$CC |
16321 | compiler_GCJ=$CC |
16322 | for cc_temp in $compiler""; do |
16323 | case $cc_temp in |
16324 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16325 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16326 | \-*) ;; |
16327 | *) break;; |
16328 | esac |
16329 | done |
16330 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16331 | |
16332 | |
16333 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16334 | archive_cmds_need_lc_GCJ=no |
16335 | |
16336 | old_archive_cmds_GCJ=$old_archive_cmds |
16337 | |
16338 | |
16339 | lt_prog_compiler_no_builtin_flag_GCJ= |
16340 | |
16341 | if test "$GCC" = yes; then |
16342 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16343 | |
16344 | |
dd184caf |
16345 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16346 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16347 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16349 | else |
16350 | lt_cv_prog_compiler_rtti_exceptions=no |
16351 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16352 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16353 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16354 | # Insert the option either (1) after the last *FLAGS variable, or |
16355 | # (2) before a word containing "conftest.", or (3) at the end. |
16356 | # Note that $ac_compile itself does not contain backslashes and begins |
16357 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16358 | # The option is referenced via a variable to avoid confusing sed. |
16359 | lt_compile=`echo "$ac_compile" | $SED \ |
16360 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16361 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16362 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16363 | (eval echo "\"\$as_me:16363: $lt_compile\"" >&5) |
d9898ee8 |
16364 | (eval "$lt_compile" 2>conftest.err) |
16365 | ac_status=$? |
16366 | cat conftest.err >&5 |
ac40fd9e |
16367 | echo "$as_me:16367: \$? = $ac_status" >&5 |
d9898ee8 |
16368 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16369 | # The compiler can only warn and ignore the option if not recognized |
16370 | # So say no if there are warnings other than the usual output. |
16371 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16372 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16373 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16374 | lt_cv_prog_compiler_rtti_exceptions=yes |
16375 | fi |
16376 | fi |
16377 | $rm conftest* |
16378 | |
16379 | fi |
dd184caf |
16380 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16381 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16382 | |
16383 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16384 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16385 | else |
16386 | : |
16387 | fi |
16388 | |
16389 | fi |
16390 | |
16391 | lt_prog_compiler_wl_GCJ= |
16392 | lt_prog_compiler_pic_GCJ= |
16393 | lt_prog_compiler_static_GCJ= |
16394 | |
dd184caf |
16395 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16396 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16397 | |
16398 | if test "$GCC" = yes; then |
16399 | lt_prog_compiler_wl_GCJ='-Wl,' |
16400 | lt_prog_compiler_static_GCJ='-static' |
16401 | |
16402 | case $host_os in |
16403 | aix*) |
16404 | # All AIX code is PIC. |
16405 | if test "$host_cpu" = ia64; then |
16406 | # AIX 5 now supports IA64 processor |
16407 | lt_prog_compiler_static_GCJ='-Bstatic' |
16408 | fi |
16409 | ;; |
16410 | |
16411 | amigaos*) |
16412 | # FIXME: we need at least 68020 code to build shared libraries, but |
16413 | # adding the `-m68020' flag to GCC prevents building anything better, |
16414 | # like `-m68040'. |
16415 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16416 | ;; |
16417 | |
ac40fd9e |
16418 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 |
16419 | # PIC is the default for these OSes. |
16420 | ;; |
16421 | |
ac40fd9e |
16422 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
16423 | # This hack is so that the source file can tell whether it is being |
16424 | # built for inclusion in a dll (and should export symbols for example). |
ac40fd9e |
16425 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
16426 | # (--disable-auto-import) libraries |
d9898ee8 |
16427 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16428 | ;; |
16429 | |
16430 | darwin* | rhapsody*) |
16431 | # PIC is the default on this platform |
16432 | # Common symbols not allowed in MH_DYLIB files |
16433 | lt_prog_compiler_pic_GCJ='-fno-common' |
16434 | ;; |
16435 | |
ac40fd9e |
16436 | interix[3-9]*) |
d9898ee8 |
16437 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16438 | # Instead, we relocate shared libraries at runtime. |
16439 | ;; |
16440 | |
16441 | msdosdjgpp*) |
16442 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16443 | # on systems that don't support them. |
16444 | lt_prog_compiler_can_build_shared_GCJ=no |
16445 | enable_shared=no |
16446 | ;; |
16447 | |
16448 | sysv4*MP*) |
16449 | if test -d /usr/nec; then |
16450 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16451 | fi |
16452 | ;; |
16453 | |
16454 | hpux*) |
16455 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16456 | # not for PA HP-UX. |
16457 | case $host_cpu in |
16458 | hppa*64*|ia64*) |
16459 | # +Z the default |
16460 | ;; |
16461 | *) |
16462 | lt_prog_compiler_pic_GCJ='-fPIC' |
16463 | ;; |
16464 | esac |
16465 | ;; |
16466 | |
16467 | *) |
16468 | lt_prog_compiler_pic_GCJ='-fPIC' |
16469 | ;; |
16470 | esac |
16471 | else |
16472 | # PORTME Check for flag to pass linker flags through the system compiler. |
16473 | case $host_os in |
16474 | aix*) |
16475 | lt_prog_compiler_wl_GCJ='-Wl,' |
16476 | if test "$host_cpu" = ia64; then |
16477 | # AIX 5 now supports IA64 processor |
16478 | lt_prog_compiler_static_GCJ='-Bstatic' |
16479 | else |
16480 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16481 | fi |
16482 | ;; |
16483 | darwin*) |
16484 | # PIC is the default on this platform |
16485 | # Common symbols not allowed in MH_DYLIB files |
16486 | case $cc_basename in |
16487 | xlc*) |
16488 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16489 | lt_prog_compiler_wl_GCJ='-Wl,' |
16490 | ;; |
16491 | esac |
16492 | ;; |
16493 | |
ac40fd9e |
16494 | mingw* | cygwin* | pw32* | os2*) |
d9898ee8 |
16495 | # This hack is so that the source file can tell whether it is being |
16496 | # built for inclusion in a dll (and should export symbols for example). |
16497 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16498 | ;; |
16499 | |
16500 | hpux9* | hpux10* | hpux11*) |
16501 | lt_prog_compiler_wl_GCJ='-Wl,' |
16502 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16503 | # not for PA HP-UX. |
16504 | case $host_cpu in |
16505 | hppa*64*|ia64*) |
16506 | # +Z the default |
16507 | ;; |
16508 | *) |
16509 | lt_prog_compiler_pic_GCJ='+Z' |
16510 | ;; |
16511 | esac |
16512 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16513 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16514 | ;; |
16515 | |
16516 | irix5* | irix6* | nonstopux*) |
16517 | lt_prog_compiler_wl_GCJ='-Wl,' |
16518 | # PIC (with -KPIC) is the default. |
16519 | lt_prog_compiler_static_GCJ='-non_shared' |
16520 | ;; |
16521 | |
16522 | newsos6) |
16523 | lt_prog_compiler_pic_GCJ='-KPIC' |
16524 | lt_prog_compiler_static_GCJ='-Bstatic' |
16525 | ;; |
16526 | |
ac40fd9e |
16527 | linux* | k*bsd*-gnu) |
d9898ee8 |
16528 | case $cc_basename in |
16529 | icc* | ecc*) |
16530 | lt_prog_compiler_wl_GCJ='-Wl,' |
16531 | lt_prog_compiler_pic_GCJ='-KPIC' |
16532 | lt_prog_compiler_static_GCJ='-static' |
16533 | ;; |
16534 | pgcc* | pgf77* | pgf90* | pgf95*) |
16535 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16536 | # which looks to be a dead project) |
16537 | lt_prog_compiler_wl_GCJ='-Wl,' |
16538 | lt_prog_compiler_pic_GCJ='-fpic' |
16539 | lt_prog_compiler_static_GCJ='-Bstatic' |
16540 | ;; |
16541 | ccc*) |
16542 | lt_prog_compiler_wl_GCJ='-Wl,' |
16543 | # All Alpha code is PIC. |
16544 | lt_prog_compiler_static_GCJ='-non_shared' |
16545 | ;; |
ac40fd9e |
16546 | *) |
16547 | case `$CC -V 2>&1 | sed 5q` in |
16548 | *Sun\ C*) |
16549 | # Sun C 5.9 |
16550 | lt_prog_compiler_pic_GCJ='-KPIC' |
16551 | lt_prog_compiler_static_GCJ='-Bstatic' |
16552 | lt_prog_compiler_wl_GCJ='-Wl,' |
16553 | ;; |
16554 | *Sun\ F*) |
16555 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
16556 | lt_prog_compiler_pic_GCJ='-KPIC' |
16557 | lt_prog_compiler_static_GCJ='-Bstatic' |
16558 | lt_prog_compiler_wl_GCJ='' |
16559 | ;; |
16560 | esac |
16561 | ;; |
d9898ee8 |
16562 | esac |
16563 | ;; |
16564 | |
16565 | osf3* | osf4* | osf5*) |
16566 | lt_prog_compiler_wl_GCJ='-Wl,' |
16567 | # All OSF/1 code is PIC. |
16568 | lt_prog_compiler_static_GCJ='-non_shared' |
16569 | ;; |
16570 | |
ac40fd9e |
16571 | rdos*) |
16572 | lt_prog_compiler_static_GCJ='-non_shared' |
16573 | ;; |
16574 | |
d9898ee8 |
16575 | solaris*) |
16576 | lt_prog_compiler_pic_GCJ='-KPIC' |
16577 | lt_prog_compiler_static_GCJ='-Bstatic' |
16578 | case $cc_basename in |
16579 | f77* | f90* | f95*) |
16580 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16581 | *) |
16582 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16583 | esac |
16584 | ;; |
16585 | |
16586 | sunos4*) |
16587 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16588 | lt_prog_compiler_pic_GCJ='-PIC' |
16589 | lt_prog_compiler_static_GCJ='-Bstatic' |
16590 | ;; |
16591 | |
16592 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16593 | lt_prog_compiler_wl_GCJ='-Wl,' |
16594 | lt_prog_compiler_pic_GCJ='-KPIC' |
16595 | lt_prog_compiler_static_GCJ='-Bstatic' |
16596 | ;; |
16597 | |
16598 | sysv4*MP*) |
16599 | if test -d /usr/nec ;then |
16600 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16601 | lt_prog_compiler_static_GCJ='-Bstatic' |
16602 | fi |
16603 | ;; |
16604 | |
16605 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16606 | lt_prog_compiler_wl_GCJ='-Wl,' |
16607 | lt_prog_compiler_pic_GCJ='-KPIC' |
16608 | lt_prog_compiler_static_GCJ='-Bstatic' |
16609 | ;; |
16610 | |
16611 | unicos*) |
16612 | lt_prog_compiler_wl_GCJ='-Wl,' |
16613 | lt_prog_compiler_can_build_shared_GCJ=no |
16614 | ;; |
16615 | |
16616 | uts4*) |
16617 | lt_prog_compiler_pic_GCJ='-pic' |
16618 | lt_prog_compiler_static_GCJ='-Bstatic' |
16619 | ;; |
16620 | |
16621 | *) |
16622 | lt_prog_compiler_can_build_shared_GCJ=no |
16623 | ;; |
16624 | esac |
16625 | fi |
16626 | |
dd184caf |
16627 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16628 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16629 | |
16630 | # |
16631 | # Check to make sure the PIC flag actually works. |
16632 | # |
16633 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16634 | |
dd184caf |
16635 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16636 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16637 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16639 | else |
16640 | lt_prog_compiler_pic_works_GCJ=no |
16641 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
16642 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16643 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16644 | # Insert the option either (1) after the last *FLAGS variable, or |
16645 | # (2) before a word containing "conftest.", or (3) at the end. |
16646 | # Note that $ac_compile itself does not contain backslashes and begins |
16647 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16648 | # The option is referenced via a variable to avoid confusing sed. |
16649 | lt_compile=`echo "$ac_compile" | $SED \ |
16650 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16651 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16652 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16653 | (eval echo "\"\$as_me:16653: $lt_compile\"" >&5) |
d9898ee8 |
16654 | (eval "$lt_compile" 2>conftest.err) |
16655 | ac_status=$? |
16656 | cat conftest.err >&5 |
ac40fd9e |
16657 | echo "$as_me:16657: \$? = $ac_status" >&5 |
d9898ee8 |
16658 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16659 | # The compiler can only warn and ignore the option if not recognized |
16660 | # So say no if there are warnings other than the usual output. |
16661 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16662 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16663 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16664 | lt_prog_compiler_pic_works_GCJ=yes |
16665 | fi |
16666 | fi |
16667 | $rm conftest* |
16668 | |
16669 | fi |
dd184caf |
16670 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16671 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16672 | |
16673 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16674 | case $lt_prog_compiler_pic_GCJ in |
16675 | "" | " "*) ;; |
16676 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16677 | esac |
16678 | else |
16679 | lt_prog_compiler_pic_GCJ= |
16680 | lt_prog_compiler_can_build_shared_GCJ=no |
16681 | fi |
16682 | |
16683 | fi |
16684 | case $host_os in |
16685 | # For platforms which do not support PIC, -DPIC is meaningless: |
16686 | *djgpp*) |
16687 | lt_prog_compiler_pic_GCJ= |
16688 | ;; |
16689 | *) |
16690 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16691 | ;; |
16692 | esac |
16693 | |
16694 | # |
16695 | # Check to make sure the static flag actually works. |
16696 | # |
16697 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
dd184caf |
16698 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16699 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16700 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16702 | else |
16703 | lt_prog_compiler_static_works_GCJ=no |
16704 | save_LDFLAGS="$LDFLAGS" |
16705 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ac40fd9e |
16706 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 |
16707 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16708 | # The linker can only warn and ignore the option if not recognized |
16709 | # So say no if there are warnings |
16710 | if test -s conftest.err; then |
16711 | # Append any errors to the config.log. |
16712 | cat conftest.err 1>&5 |
16713 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16714 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16715 | if diff conftest.exp conftest.er2 >/dev/null; then |
16716 | lt_prog_compiler_static_works_GCJ=yes |
16717 | fi |
16718 | else |
16719 | lt_prog_compiler_static_works_GCJ=yes |
16720 | fi |
16721 | fi |
16722 | $rm conftest* |
16723 | LDFLAGS="$save_LDFLAGS" |
16724 | |
16725 | fi |
dd184caf |
16726 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16727 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16728 | |
16729 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16730 | : |
16731 | else |
16732 | lt_prog_compiler_static_GCJ= |
16733 | fi |
16734 | |
16735 | |
dd184caf |
16736 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16737 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16738 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16740 | else |
16741 | lt_cv_prog_compiler_c_o_GCJ=no |
16742 | $rm -r conftest 2>/dev/null |
16743 | mkdir conftest |
16744 | cd conftest |
16745 | mkdir out |
ac40fd9e |
16746 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
16747 | |
16748 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16749 | # Insert the option either (1) after the last *FLAGS variable, or |
16750 | # (2) before a word containing "conftest.", or (3) at the end. |
16751 | # Note that $ac_compile itself does not contain backslashes and begins |
16752 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16753 | lt_compile=`echo "$ac_compile" | $SED \ |
16754 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16755 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16756 | -e 's:$: $lt_compiler_flag:'` |
ac40fd9e |
16757 | (eval echo "\"\$as_me:16757: $lt_compile\"" >&5) |
d9898ee8 |
16758 | (eval "$lt_compile" 2>out/conftest.err) |
16759 | ac_status=$? |
16760 | cat out/conftest.err >&5 |
ac40fd9e |
16761 | echo "$as_me:16761: \$? = $ac_status" >&5 |
d9898ee8 |
16762 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16763 | then |
16764 | # The compiler can only warn and ignore the option if not recognized |
16765 | # So say no if there are warnings |
16766 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16767 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16768 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16769 | lt_cv_prog_compiler_c_o_GCJ=yes |
16770 | fi |
16771 | fi |
16772 | chmod u+w . 2>&5 |
16773 | $rm conftest* |
16774 | # SGI C++ compiler will create directory out/ii_files/ for |
16775 | # template instantiation |
16776 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16777 | $rm out/* && rmdir out |
16778 | cd .. |
16779 | rmdir conftest |
16780 | $rm conftest* |
16781 | |
16782 | fi |
dd184caf |
16783 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16784 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16785 | |
16786 | |
16787 | hard_links="nottested" |
16788 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16789 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
16790 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16791 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16792 | hard_links=yes |
16793 | $rm conftest* |
16794 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16795 | touch conftest.a |
16796 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16797 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
16798 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16799 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16800 | if test "$hard_links" = no; then |
16801 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16802 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16803 | need_locks=warn |
16804 | fi |
16805 | else |
16806 | need_locks=no |
16807 | fi |
16808 | |
dd184caf |
16809 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16810 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16811 | |
16812 | runpath_var= |
16813 | allow_undefined_flag_GCJ= |
16814 | enable_shared_with_static_runtimes_GCJ=no |
16815 | archive_cmds_GCJ= |
16816 | archive_expsym_cmds_GCJ= |
16817 | old_archive_From_new_cmds_GCJ= |
16818 | old_archive_from_expsyms_cmds_GCJ= |
16819 | export_dynamic_flag_spec_GCJ= |
16820 | whole_archive_flag_spec_GCJ= |
16821 | thread_safe_flag_spec_GCJ= |
16822 | hardcode_libdir_flag_spec_GCJ= |
16823 | hardcode_libdir_flag_spec_ld_GCJ= |
16824 | hardcode_libdir_separator_GCJ= |
16825 | hardcode_direct_GCJ=no |
16826 | hardcode_minus_L_GCJ=no |
16827 | hardcode_shlibpath_var_GCJ=unsupported |
16828 | link_all_deplibs_GCJ=unknown |
16829 | hardcode_automatic_GCJ=no |
16830 | module_cmds_GCJ= |
16831 | module_expsym_cmds_GCJ= |
16832 | always_export_symbols_GCJ=no |
16833 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16834 | # include_expsyms should be a list of space-separated symbols to be *always* |
16835 | # included in the symbol list |
16836 | include_expsyms_GCJ= |
16837 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16838 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16839 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16840 | # as well as any symbol that contains `d'. |
16841 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16842 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16843 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16844 | # the symbol is explicitly referenced. Since portable code cannot |
16845 | # rely on this symbol name, it's probably fine to never include it in |
16846 | # preloaded symbol tables. |
16847 | extract_expsyms_cmds= |
16848 | # Just being paranoid about ensuring that cc_basename is set. |
16849 | for cc_temp in $compiler""; do |
16850 | case $cc_temp in |
16851 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16852 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16853 | \-*) ;; |
16854 | *) break;; |
16855 | esac |
16856 | done |
16857 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16858 | |
16859 | case $host_os in |
16860 | cygwin* | mingw* | pw32*) |
16861 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16862 | # When not using gcc, we currently assume that we are using |
16863 | # Microsoft Visual C++. |
16864 | if test "$GCC" != yes; then |
16865 | with_gnu_ld=no |
16866 | fi |
16867 | ;; |
16868 | interix*) |
16869 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16870 | with_gnu_ld=yes |
16871 | ;; |
16872 | openbsd*) |
16873 | with_gnu_ld=no |
16874 | ;; |
16875 | esac |
16876 | |
16877 | ld_shlibs_GCJ=yes |
16878 | if test "$with_gnu_ld" = yes; then |
16879 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16880 | wlarc='${wl}' |
16881 | |
16882 | # Set some defaults for GNU ld with shared library support. These |
16883 | # are reset later if shared libraries are not supported. Putting them |
16884 | # here allows them to be overridden if necessary. |
16885 | runpath_var=LD_RUN_PATH |
16886 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16887 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16888 | # ancient GNU ld didn't support --whole-archive et. al. |
16889 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16890 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16891 | else |
16892 | whole_archive_flag_spec_GCJ= |
16893 | fi |
16894 | supports_anon_versioning=no |
16895 | case `$LD -v 2>/dev/null` in |
16896 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16897 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16898 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16899 | *\ 2.11.*) ;; # other 2.11 versions |
16900 | *) supports_anon_versioning=yes ;; |
16901 | esac |
16902 | |
16903 | # See if GNU ld supports shared libraries. |
16904 | case $host_os in |
16905 | aix3* | aix4* | aix5*) |
16906 | # On AIX/PPC, the GNU linker is very broken |
16907 | if test "$host_cpu" != ia64; then |
16908 | ld_shlibs_GCJ=no |
16909 | cat <<EOF 1>&2 |
16910 | |
16911 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16912 | *** to be unable to reliably create shared libraries on AIX. |
16913 | *** Therefore, libtool is disabling shared libraries support. If you |
16914 | *** really care for shared libraries, you may want to modify your PATH |
16915 | *** so that a non-GNU linker is found, and then restart. |
16916 | |
16917 | EOF |
16918 | fi |
16919 | ;; |
16920 | |
16921 | amigaos*) |
16922 | 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)' |
16923 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16924 | hardcode_minus_L_GCJ=yes |
16925 | |
16926 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16927 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16928 | # to version 4, is to share data among multiple programs linked |
16929 | # with the same dynamic library. Since this doesn't match the |
16930 | # behavior of shared libraries on other platforms, we can't use |
16931 | # them. |
16932 | ld_shlibs_GCJ=no |
16933 | ;; |
16934 | |
16935 | beos*) |
16936 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16937 | allow_undefined_flag_GCJ=unsupported |
16938 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16939 | # support --undefined. This deserves some investigation. FIXME |
16940 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16941 | else |
16942 | ld_shlibs_GCJ=no |
16943 | fi |
16944 | ;; |
16945 | |
16946 | cygwin* | mingw* | pw32*) |
16947 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16948 | # as there is no search path for DLLs. |
16949 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16950 | allow_undefined_flag_GCJ=unsupported |
16951 | always_export_symbols_GCJ=no |
16952 | enable_shared_with_static_runtimes_GCJ=yes |
ac40fd9e |
16953 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d9898ee8 |
16954 | |
16955 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16956 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16957 | # If the export-symbols file already is a .def file (1st line |
16958 | # is EXPORTS), use it as is; otherwise, prepend... |
16959 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16960 | cp $export_symbols $output_objdir/$soname.def; |
16961 | else |
16962 | echo EXPORTS > $output_objdir/$soname.def; |
16963 | cat $export_symbols >> $output_objdir/$soname.def; |
16964 | fi~ |
16965 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16966 | else |
16967 | ld_shlibs_GCJ=no |
16968 | fi |
16969 | ;; |
16970 | |
ac40fd9e |
16971 | interix[3-9]*) |
d9898ee8 |
16972 | hardcode_direct_GCJ=no |
16973 | hardcode_shlibpath_var_GCJ=no |
16974 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16975 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16976 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16977 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16978 | # default) and relocated if they conflict, which is a slow very memory |
16979 | # consuming and fragmenting process. To avoid this, we pick a random, |
16980 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16981 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16982 | 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' |
16983 | 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' |
16984 | ;; |
16985 | |
ac40fd9e |
16986 | gnu* | linux* | k*bsd*-gnu) |
d9898ee8 |
16987 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16988 | tmp_addflag= |
16989 | case $cc_basename,$host_cpu in |
16990 | pgcc*) # Portland Group C compiler |
16991 | 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' |
16992 | tmp_addflag=' $pic_flag' |
16993 | ;; |
16994 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16995 | 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' |
16996 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16997 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16998 | tmp_addflag=' -i_dynamic' ;; |
16999 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17000 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17001 | ifc* | ifort*) # Intel Fortran compiler |
17002 | tmp_addflag=' -nofor_main' ;; |
17003 | esac |
ac40fd9e |
17004 | case `$CC -V 2>&1 | sed 5q` in |
17005 | *Sun\ C*) # Sun C 5.9 |
17006 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
17007 | tmp_sharedflag='-G' ;; |
17008 | *Sun\ F*) # Sun Fortran 8.3 |
17009 | tmp_sharedflag='-G' ;; |
17010 | *) |
17011 | tmp_sharedflag='-shared' ;; |
17012 | esac |
17013 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 |
17014 | |
17015 | if test $supports_anon_versioning = yes; then |
17016 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17017 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17018 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
ac40fd9e |
17019 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
d9898ee8 |
17020 | fi |
17021 | else |
17022 | ld_shlibs_GCJ=no |
17023 | fi |
17024 | ;; |
17025 | |
17026 | netbsd*) |
17027 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17028 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17029 | wlarc= |
17030 | else |
17031 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17032 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17033 | fi |
17034 | ;; |
17035 | |
17036 | solaris*) |
17037 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17038 | ld_shlibs_GCJ=no |
17039 | cat <<EOF 1>&2 |
17040 | |
17041 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17042 | *** create shared libraries on Solaris systems. Therefore, libtool |
17043 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17044 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17045 | *** your PATH or compiler configuration so that the native linker is |
17046 | *** used, and then restart. |
17047 | |
17048 | EOF |
17049 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17050 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17051 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17052 | else |
17053 | ld_shlibs_GCJ=no |
17054 | fi |
17055 | ;; |
17056 | |
17057 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17058 | case `$LD -v 2>&1` in |
17059 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17060 | ld_shlibs_GCJ=no |
17061 | cat <<_LT_EOF 1>&2 |
17062 | |
17063 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17064 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17065 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17066 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17067 | *** your PATH or compiler configuration so that the native linker is |
17068 | *** used, and then restart. |
17069 | |
17070 | _LT_EOF |
17071 | ;; |
17072 | *) |
17073 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17074 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17075 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17076 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17077 | else |
17078 | ld_shlibs_GCJ=no |
17079 | fi |
17080 | ;; |
17081 | esac |
17082 | ;; |
17083 | |
17084 | sunos4*) |
17085 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17086 | wlarc= |
17087 | hardcode_direct_GCJ=yes |
17088 | hardcode_shlibpath_var_GCJ=no |
17089 | ;; |
17090 | |
17091 | *) |
17092 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17093 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17094 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17095 | else |
17096 | ld_shlibs_GCJ=no |
17097 | fi |
17098 | ;; |
17099 | esac |
17100 | |
17101 | if test "$ld_shlibs_GCJ" = no; then |
17102 | runpath_var= |
17103 | hardcode_libdir_flag_spec_GCJ= |
17104 | export_dynamic_flag_spec_GCJ= |
17105 | whole_archive_flag_spec_GCJ= |
17106 | fi |
17107 | else |
17108 | # PORTME fill in a description of your system's linker (not GNU ld) |
17109 | case $host_os in |
17110 | aix3*) |
17111 | allow_undefined_flag_GCJ=unsupported |
17112 | always_export_symbols_GCJ=yes |
17113 | 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' |
17114 | # Note: this linker hardcodes the directories in LIBPATH if there |
17115 | # are no directories specified by -L. |
17116 | hardcode_minus_L_GCJ=yes |
17117 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17118 | # Neither direct hardcoding nor static linking is supported with a |
17119 | # broken collect2. |
17120 | hardcode_direct_GCJ=unsupported |
17121 | fi |
17122 | ;; |
17123 | |
17124 | aix4* | aix5*) |
17125 | if test "$host_cpu" = ia64; then |
17126 | # On IA64, the linker does run time linking by default, so we don't |
17127 | # have to do anything special. |
17128 | aix_use_runtimelinking=no |
17129 | exp_sym_flag='-Bexport' |
17130 | no_entry_flag="" |
17131 | else |
17132 | # If we're using GNU nm, then we don't want the "-C" option. |
17133 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17134 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17135 | 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' |
17136 | else |
17137 | 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' |
17138 | fi |
17139 | aix_use_runtimelinking=no |
17140 | |
17141 | # Test if we are trying to use run time linking or normal |
17142 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17143 | # need to do runtime linking. |
17144 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17145 | for ld_flag in $LDFLAGS; do |
17146 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17147 | aix_use_runtimelinking=yes |
17148 | break |
17149 | fi |
17150 | done |
17151 | ;; |
17152 | esac |
17153 | |
17154 | exp_sym_flag='-bexport' |
17155 | no_entry_flag='-bnoentry' |
17156 | fi |
17157 | |
17158 | # When large executables or shared objects are built, AIX ld can |
17159 | # have problems creating the table of contents. If linking a library |
17160 | # or program results in "error TOC overflow" add -mminimal-toc to |
17161 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17162 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17163 | |
17164 | archive_cmds_GCJ='' |
17165 | hardcode_direct_GCJ=yes |
17166 | hardcode_libdir_separator_GCJ=':' |
17167 | link_all_deplibs_GCJ=yes |
17168 | |
17169 | if test "$GCC" = yes; then |
17170 | case $host_os in aix4.[012]|aix4.[012].*) |
17171 | # We only want to do this on AIX 4.2 and lower, the check |
17172 | # below for broken collect2 doesn't work under 4.3+ |
17173 | collect2name=`${CC} -print-prog-name=collect2` |
17174 | if test -f "$collect2name" && \ |
17175 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17176 | then |
17177 | # We have reworked collect2 |
ac40fd9e |
17178 | : |
d9898ee8 |
17179 | else |
17180 | # We have old collect2 |
17181 | hardcode_direct_GCJ=unsupported |
17182 | # It fails to find uninstalled libraries when the uninstalled |
17183 | # path is not listed in the libpath. Setting hardcode_minus_L |
17184 | # to unsupported forces relinking |
17185 | hardcode_minus_L_GCJ=yes |
17186 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17187 | hardcode_libdir_separator_GCJ= |
17188 | fi |
17189 | ;; |
17190 | esac |
17191 | shared_flag='-shared' |
17192 | if test "$aix_use_runtimelinking" = yes; then |
17193 | shared_flag="$shared_flag "'${wl}-G' |
17194 | fi |
17195 | else |
17196 | # not using gcc |
17197 | if test "$host_cpu" = ia64; then |
17198 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17199 | # chokes on -Wl,-G. The following line is correct: |
17200 | shared_flag='-G' |
17201 | else |
17202 | if test "$aix_use_runtimelinking" = yes; then |
17203 | shared_flag='${wl}-G' |
17204 | else |
17205 | shared_flag='${wl}-bM:SRE' |
17206 | fi |
17207 | fi |
17208 | fi |
17209 | |
17210 | # It seems that -bexpall does not export symbols beginning with |
17211 | # underscore (_), so it is better to generate a list of symbols to export. |
17212 | always_export_symbols_GCJ=yes |
17213 | if test "$aix_use_runtimelinking" = yes; then |
17214 | # Warning - without using the other runtime loading flags (-brtl), |
17215 | # -berok will link without error, but may produce a broken library. |
17216 | allow_undefined_flag_GCJ='-berok' |
17217 | # Determine the default libpath from the value encoded in an empty executable. |
17218 | cat >conftest.$ac_ext <<_ACEOF |
17219 | /* confdefs.h. */ |
17220 | _ACEOF |
17221 | cat confdefs.h >>conftest.$ac_ext |
17222 | cat >>conftest.$ac_ext <<_ACEOF |
17223 | /* end confdefs.h. */ |
17224 | |
17225 | int |
17226 | main () |
17227 | { |
17228 | |
17229 | ; |
17230 | return 0; |
17231 | } |
17232 | _ACEOF |
17233 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17234 | if { (ac_try="$ac_link" |
17235 | case "(($ac_try" in |
17236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17237 | *) ac_try_echo=$ac_try;; |
17238 | esac |
17239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17240 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17241 | ac_status=$? |
17242 | grep -v '^ *+' conftest.er1 >conftest.err |
17243 | rm -f conftest.er1 |
17244 | cat conftest.err >&5 |
17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17246 | (exit $ac_status); } && { |
17247 | test -z "$ac_c_werror_flag" || |
17248 | test ! -s conftest.err |
17249 | } && test -s conftest$ac_exeext && |
17250 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17251 | |
ac40fd9e |
17252 | lt_aix_libpath_sed=' |
17253 | /Import File Strings/,/^$/ { |
17254 | /^0/ { |
17255 | s/^0 *\(.*\)$/\1/ |
17256 | p |
17257 | } |
17258 | }' |
17259 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
17260 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
17261 | if test -z "$aix_libpath"; then |
17262 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17263 | fi |
d9898ee8 |
17264 | else |
17265 | echo "$as_me: failed program was:" >&5 |
17266 | sed 's/^/| /' conftest.$ac_ext >&5 |
17267 | |
dd184caf |
17268 | |
d9898ee8 |
17269 | fi |
dd184caf |
17270 | |
17271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17272 | conftest$ac_exeext conftest.$ac_ext |
17273 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17274 | |
17275 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17276 | 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" |
17277 | else |
17278 | if test "$host_cpu" = ia64; then |
17279 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17280 | allow_undefined_flag_GCJ="-z nodefs" |
17281 | 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" |
17282 | else |
17283 | # Determine the default libpath from the value encoded in an empty executable. |
17284 | cat >conftest.$ac_ext <<_ACEOF |
17285 | /* confdefs.h. */ |
17286 | _ACEOF |
17287 | cat confdefs.h >>conftest.$ac_ext |
17288 | cat >>conftest.$ac_ext <<_ACEOF |
17289 | /* end confdefs.h. */ |
17290 | |
17291 | int |
17292 | main () |
17293 | { |
17294 | |
17295 | ; |
17296 | return 0; |
17297 | } |
17298 | _ACEOF |
17299 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17300 | if { (ac_try="$ac_link" |
17301 | case "(($ac_try" in |
17302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17303 | *) ac_try_echo=$ac_try;; |
17304 | esac |
17305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17306 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17307 | ac_status=$? |
17308 | grep -v '^ *+' conftest.er1 >conftest.err |
17309 | rm -f conftest.er1 |
17310 | cat conftest.err >&5 |
17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17312 | (exit $ac_status); } && { |
17313 | test -z "$ac_c_werror_flag" || |
17314 | test ! -s conftest.err |
17315 | } && test -s conftest$ac_exeext && |
17316 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17317 | |
ac40fd9e |
17318 | lt_aix_libpath_sed=' |
17319 | /Import File Strings/,/^$/ { |
17320 | /^0/ { |
17321 | s/^0 *\(.*\)$/\1/ |
17322 | p |
17323 | } |
17324 | }' |
17325 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
d9898ee8 |
17326 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e |
17327 | if test -z "$aix_libpath"; then |
17328 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17329 | fi |
d9898ee8 |
17330 | else |
17331 | echo "$as_me: failed program was:" >&5 |
17332 | sed 's/^/| /' conftest.$ac_ext >&5 |
17333 | |
dd184caf |
17334 | |
d9898ee8 |
17335 | fi |
dd184caf |
17336 | |
17337 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17338 | conftest$ac_exeext conftest.$ac_ext |
17339 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17340 | |
17341 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17342 | # Warning - without using the other run time loading flags, |
17343 | # -berok will link without error, but may produce a broken library. |
17344 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17345 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17346 | # Exported symbols can be pulled into shared objects from archives |
17347 | whole_archive_flag_spec_GCJ='$convenience' |
17348 | archive_cmds_need_lc_GCJ=yes |
17349 | # This is similar to how AIX traditionally builds its shared libraries. |
17350 | 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' |
17351 | fi |
17352 | fi |
17353 | ;; |
17354 | |
17355 | amigaos*) |
17356 | 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)' |
17357 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17358 | hardcode_minus_L_GCJ=yes |
17359 | # see comment about different semantics on the GNU ld section |
17360 | ld_shlibs_GCJ=no |
17361 | ;; |
17362 | |
17363 | bsdi[45]*) |
17364 | export_dynamic_flag_spec_GCJ=-rdynamic |
17365 | ;; |
17366 | |
17367 | cygwin* | mingw* | pw32*) |
17368 | # When not using gcc, we currently assume that we are using |
17369 | # Microsoft Visual C++. |
17370 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17371 | # no search path for DLLs. |
17372 | hardcode_libdir_flag_spec_GCJ=' ' |
17373 | allow_undefined_flag_GCJ=unsupported |
17374 | # Tell ltmain to make .lib files, not .a files. |
17375 | libext=lib |
17376 | # Tell ltmain to make .dll files, not .so files. |
17377 | shrext_cmds=".dll" |
17378 | # FIXME: Setting linknames here is a bad hack. |
17379 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17380 | # The linker will automatically build a .lib file if we build a DLL. |
17381 | old_archive_From_new_cmds_GCJ='true' |
17382 | # FIXME: Should let the user specify the lib program. |
ac40fd9e |
17383 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' |
d9898ee8 |
17384 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17385 | enable_shared_with_static_runtimes_GCJ=yes |
17386 | ;; |
17387 | |
17388 | darwin* | rhapsody*) |
17389 | case $host_os in |
17390 | rhapsody* | darwin1.[012]) |
17391 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17392 | ;; |
17393 | *) # Darwin 1.3 on |
17394 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17395 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17396 | else |
17397 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17398 | 10.[012]) |
17399 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17400 | ;; |
17401 | 10.*) |
17402 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17403 | ;; |
17404 | esac |
17405 | fi |
17406 | ;; |
17407 | esac |
17408 | archive_cmds_need_lc_GCJ=no |
17409 | hardcode_direct_GCJ=no |
17410 | hardcode_automatic_GCJ=yes |
17411 | hardcode_shlibpath_var_GCJ=unsupported |
17412 | whole_archive_flag_spec_GCJ='' |
17413 | link_all_deplibs_GCJ=yes |
17414 | if test "$GCC" = yes ; then |
17415 | output_verbose_link_cmd='echo' |
17416 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17417 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17418 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17419 | 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}' |
17420 | 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}' |
17421 | else |
17422 | case $cc_basename in |
17423 | xlc*) |
17424 | output_verbose_link_cmd='echo' |
ac40fd9e |
17425 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
d9898ee8 |
17426 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17427 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
ac40fd9e |
17428 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
d9898ee8 |
17429 | 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}' |
17430 | ;; |
17431 | *) |
17432 | ld_shlibs_GCJ=no |
17433 | ;; |
17434 | esac |
17435 | fi |
17436 | ;; |
17437 | |
17438 | dgux*) |
17439 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17440 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17441 | hardcode_shlibpath_var_GCJ=no |
17442 | ;; |
17443 | |
17444 | freebsd1*) |
17445 | ld_shlibs_GCJ=no |
17446 | ;; |
17447 | |
17448 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17449 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17450 | # does not break anything, and helps significantly (at the cost of a little |
17451 | # extra space). |
17452 | freebsd2.2*) |
17453 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17454 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17455 | hardcode_direct_GCJ=yes |
17456 | hardcode_shlibpath_var_GCJ=no |
17457 | ;; |
17458 | |
17459 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17460 | freebsd2*) |
17461 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17462 | hardcode_direct_GCJ=yes |
17463 | hardcode_minus_L_GCJ=yes |
17464 | hardcode_shlibpath_var_GCJ=no |
17465 | ;; |
17466 | |
17467 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ac40fd9e |
17468 | freebsd* | dragonfly*) |
d9898ee8 |
17469 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17470 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17471 | hardcode_direct_GCJ=yes |
17472 | hardcode_shlibpath_var_GCJ=no |
17473 | ;; |
17474 | |
17475 | hpux9*) |
17476 | if test "$GCC" = yes; then |
17477 | 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' |
17478 | else |
17479 | 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' |
17480 | fi |
17481 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17482 | hardcode_libdir_separator_GCJ=: |
17483 | hardcode_direct_GCJ=yes |
17484 | |
17485 | # hardcode_minus_L: Not really in the search PATH, |
17486 | # but as the default location of the library. |
17487 | hardcode_minus_L_GCJ=yes |
17488 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17489 | ;; |
17490 | |
17491 | hpux10*) |
17492 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17493 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17494 | else |
17495 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17496 | fi |
17497 | if test "$with_gnu_ld" = no; then |
17498 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17499 | hardcode_libdir_separator_GCJ=: |
17500 | |
17501 | hardcode_direct_GCJ=yes |
17502 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17503 | |
17504 | # hardcode_minus_L: Not really in the search PATH, |
17505 | # but as the default location of the library. |
17506 | hardcode_minus_L_GCJ=yes |
17507 | fi |
17508 | ;; |
17509 | |
17510 | hpux11*) |
17511 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17512 | case $host_cpu in |
17513 | hppa*64*) |
17514 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17515 | ;; |
17516 | ia64*) |
17517 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17518 | ;; |
17519 | *) |
17520 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17521 | ;; |
17522 | esac |
17523 | else |
17524 | case $host_cpu in |
17525 | hppa*64*) |
17526 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17527 | ;; |
17528 | ia64*) |
17529 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17530 | ;; |
17531 | *) |
17532 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17533 | ;; |
17534 | esac |
17535 | fi |
17536 | if test "$with_gnu_ld" = no; then |
17537 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17538 | hardcode_libdir_separator_GCJ=: |
17539 | |
17540 | case $host_cpu in |
17541 | hppa*64*|ia64*) |
17542 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17543 | hardcode_direct_GCJ=no |
17544 | hardcode_shlibpath_var_GCJ=no |
17545 | ;; |
17546 | *) |
17547 | hardcode_direct_GCJ=yes |
17548 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17549 | |
17550 | # hardcode_minus_L: Not really in the search PATH, |
17551 | # but as the default location of the library. |
17552 | hardcode_minus_L_GCJ=yes |
17553 | ;; |
17554 | esac |
17555 | fi |
17556 | ;; |
17557 | |
17558 | irix5* | irix6* | nonstopux*) |
17559 | if test "$GCC" = yes; then |
17560 | 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' |
17561 | else |
17562 | 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' |
17563 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17564 | fi |
17565 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17566 | hardcode_libdir_separator_GCJ=: |
17567 | link_all_deplibs_GCJ=yes |
17568 | ;; |
17569 | |
17570 | netbsd*) |
17571 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17572 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17573 | else |
17574 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17575 | fi |
17576 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17577 | hardcode_direct_GCJ=yes |
17578 | hardcode_shlibpath_var_GCJ=no |
17579 | ;; |
17580 | |
17581 | newsos6) |
17582 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17583 | hardcode_direct_GCJ=yes |
17584 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17585 | hardcode_libdir_separator_GCJ=: |
17586 | hardcode_shlibpath_var_GCJ=no |
17587 | ;; |
17588 | |
17589 | openbsd*) |
ac40fd9e |
17590 | if test -f /usr/libexec/ld.so; then |
17591 | hardcode_direct_GCJ=yes |
17592 | hardcode_shlibpath_var_GCJ=no |
17593 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17594 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17595 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17596 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17597 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17598 | else |
17599 | case $host_os in |
17600 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17601 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17602 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17603 | ;; |
17604 | *) |
17605 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17606 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17607 | ;; |
17608 | esac |
17609 | fi |
d9898ee8 |
17610 | else |
ac40fd9e |
17611 | ld_shlibs_GCJ=no |
d9898ee8 |
17612 | fi |
17613 | ;; |
17614 | |
17615 | os2*) |
17616 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17617 | hardcode_minus_L_GCJ=yes |
17618 | allow_undefined_flag_GCJ=unsupported |
17619 | 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' |
17620 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17621 | ;; |
17622 | |
17623 | osf3*) |
17624 | if test "$GCC" = yes; then |
17625 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17626 | 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' |
17627 | else |
17628 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17629 | 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' |
17630 | fi |
17631 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17632 | hardcode_libdir_separator_GCJ=: |
17633 | ;; |
17634 | |
17635 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17636 | if test "$GCC" = yes; then |
17637 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17638 | 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' |
17639 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17640 | else |
17641 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17642 | 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' |
17643 | 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~ |
17644 | $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' |
17645 | |
17646 | # Both c and cxx compiler support -rpath directly |
17647 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17648 | fi |
17649 | hardcode_libdir_separator_GCJ=: |
17650 | ;; |
17651 | |
17652 | solaris*) |
17653 | no_undefined_flag_GCJ=' -z text' |
17654 | if test "$GCC" = yes; then |
17655 | wlarc='${wl}' |
17656 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17657 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17658 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17659 | else |
17660 | wlarc='' |
17661 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17662 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17663 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17664 | fi |
17665 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17666 | hardcode_shlibpath_var_GCJ=no |
17667 | case $host_os in |
17668 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17669 | *) |
ac40fd9e |
17670 | # The compiler driver will combine and reorder linker options, |
17671 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
17672 | # but is careful enough not to reorder. |
d9898ee8 |
17673 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e |
17674 | if test "$GCC" = yes; then |
17675 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
17676 | else |
17677 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' |
17678 | fi |
17679 | ;; |
d9898ee8 |
17680 | esac |
17681 | link_all_deplibs_GCJ=yes |
17682 | ;; |
17683 | |
17684 | sunos4*) |
17685 | if test "x$host_vendor" = xsequent; then |
17686 | # Use $CC to link under sequent, because it throws in some extra .o |
17687 | # files that make .init and .fini sections work. |
17688 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17689 | else |
17690 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17691 | fi |
17692 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17693 | hardcode_direct_GCJ=yes |
17694 | hardcode_minus_L_GCJ=yes |
17695 | hardcode_shlibpath_var_GCJ=no |
17696 | ;; |
17697 | |
17698 | sysv4) |
17699 | case $host_vendor in |
17700 | sni) |
17701 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17702 | hardcode_direct_GCJ=yes # is this really true??? |
17703 | ;; |
17704 | siemens) |
17705 | ## LD is ld it makes a PLAMLIB |
17706 | ## CC just makes a GrossModule. |
17707 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17708 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17709 | hardcode_direct_GCJ=no |
17710 | ;; |
17711 | motorola) |
17712 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17713 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17714 | ;; |
17715 | esac |
17716 | runpath_var='LD_RUN_PATH' |
17717 | hardcode_shlibpath_var_GCJ=no |
17718 | ;; |
17719 | |
17720 | sysv4.3*) |
17721 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17722 | hardcode_shlibpath_var_GCJ=no |
17723 | export_dynamic_flag_spec_GCJ='-Bexport' |
17724 | ;; |
17725 | |
17726 | sysv4*MP*) |
17727 | if test -d /usr/nec; then |
17728 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17729 | hardcode_shlibpath_var_GCJ=no |
17730 | runpath_var=LD_RUN_PATH |
17731 | hardcode_runpath_var=yes |
17732 | ld_shlibs_GCJ=yes |
17733 | fi |
17734 | ;; |
17735 | |
ac40fd9e |
17736 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d9898ee8 |
17737 | no_undefined_flag_GCJ='${wl}-z,text' |
17738 | archive_cmds_need_lc_GCJ=no |
17739 | hardcode_shlibpath_var_GCJ=no |
17740 | runpath_var='LD_RUN_PATH' |
17741 | |
17742 | if test "$GCC" = yes; then |
17743 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17744 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17745 | else |
17746 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17747 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17748 | fi |
17749 | ;; |
17750 | |
17751 | sysv5* | sco3.2v5* | sco5v6*) |
17752 | # Note: We can NOT use -z defs as we might desire, because we do not |
17753 | # link with -lc, and that would cause any symbols used from libc to |
17754 | # always be unresolved, which means just about no library would |
17755 | # ever link correctly. If we're not using GNU ld we use -z text |
17756 | # though, which does catch some bad symbols but isn't as heavy-handed |
17757 | # as -z defs. |
17758 | no_undefined_flag_GCJ='${wl}-z,text' |
17759 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17760 | archive_cmds_need_lc_GCJ=no |
17761 | hardcode_shlibpath_var_GCJ=no |
17762 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17763 | hardcode_libdir_separator_GCJ=':' |
17764 | link_all_deplibs_GCJ=yes |
17765 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17766 | runpath_var='LD_RUN_PATH' |
17767 | |
17768 | if test "$GCC" = yes; then |
17769 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17770 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17771 | else |
17772 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17773 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17774 | fi |
17775 | ;; |
17776 | |
17777 | uts4*) |
17778 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17779 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17780 | hardcode_shlibpath_var_GCJ=no |
17781 | ;; |
17782 | |
17783 | *) |
17784 | ld_shlibs_GCJ=no |
17785 | ;; |
17786 | esac |
17787 | fi |
17788 | |
dd184caf |
17789 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17790 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17791 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17792 | |
17793 | # |
17794 | # Do we need to explicitly link libc? |
17795 | # |
17796 | case "x$archive_cmds_need_lc_GCJ" in |
17797 | x|xyes) |
17798 | # Assume -lc should be added |
17799 | archive_cmds_need_lc_GCJ=yes |
17800 | |
17801 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17802 | case $archive_cmds_GCJ in |
17803 | *'~'*) |
17804 | # FIXME: we may have to deal with multi-command sequences. |
17805 | ;; |
17806 | '$CC '*) |
17807 | # Test whether the compiler implicitly links with -lc since on some |
17808 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17809 | # to ld, don't add -lc before -lgcc. |
dd184caf |
17810 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17811 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17812 | $rm conftest* |
ac40fd9e |
17813 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 |
17814 | |
17815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17816 | (eval $ac_compile) 2>&5 |
17817 | ac_status=$? |
17818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17819 | (exit $ac_status); } 2>conftest.err; then |
17820 | soname=conftest |
17821 | lib=conftest |
17822 | libobjs=conftest.$ac_objext |
17823 | deplibs= |
17824 | wl=$lt_prog_compiler_wl_GCJ |
17825 | pic_flag=$lt_prog_compiler_pic_GCJ |
17826 | compiler_flags=-v |
17827 | linker_flags=-v |
17828 | verstring= |
17829 | output_objdir=. |
17830 | libname=conftest |
17831 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17832 | allow_undefined_flag_GCJ= |
17833 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17834 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17835 | ac_status=$? |
17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17837 | (exit $ac_status); } |
17838 | then |
17839 | archive_cmds_need_lc_GCJ=no |
17840 | else |
17841 | archive_cmds_need_lc_GCJ=yes |
17842 | fi |
17843 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17844 | else |
17845 | cat conftest.err 1>&5 |
17846 | fi |
17847 | $rm conftest* |
dd184caf |
17848 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17849 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17850 | ;; |
17851 | esac |
17852 | fi |
17853 | ;; |
17854 | esac |
17855 | |
dd184caf |
17856 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17857 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17858 | library_names_spec= |
17859 | libname_spec='lib$name' |
17860 | soname_spec= |
17861 | shrext_cmds=".so" |
17862 | postinstall_cmds= |
17863 | postuninstall_cmds= |
17864 | finish_cmds= |
17865 | finish_eval= |
17866 | shlibpath_var= |
17867 | shlibpath_overrides_runpath=unknown |
17868 | version_type=none |
17869 | dynamic_linker="$host_os ld.so" |
17870 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
ac40fd9e |
17871 | |
d9898ee8 |
17872 | need_lib_prefix=unknown |
17873 | hardcode_into_libs=no |
17874 | |
17875 | # when you set need_version to no, make sure it does not cause -set_version |
17876 | # flags to be left without arguments |
17877 | need_version=unknown |
17878 | |
17879 | case $host_os in |
17880 | aix3*) |
17881 | version_type=linux |
17882 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17883 | shlibpath_var=LIBPATH |
17884 | |
17885 | # AIX 3 has no versioning support, so we append a major version to the name. |
17886 | soname_spec='${libname}${release}${shared_ext}$major' |
17887 | ;; |
17888 | |
17889 | aix4* | aix5*) |
17890 | version_type=linux |
17891 | need_lib_prefix=no |
17892 | need_version=no |
17893 | hardcode_into_libs=yes |
17894 | if test "$host_cpu" = ia64; then |
17895 | # AIX 5 supports IA64 |
17896 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17897 | shlibpath_var=LD_LIBRARY_PATH |
17898 | else |
17899 | # With GCC up to 2.95.x, collect2 would create an import file |
17900 | # for dependence libraries. The import file would start with |
17901 | # the line `#! .'. This would cause the generated library to |
17902 | # depend on `.', always an invalid library. This was fixed in |
17903 | # development snapshots of GCC prior to 3.0. |
17904 | case $host_os in |
17905 | aix4 | aix4.[01] | aix4.[01].*) |
17906 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17907 | echo ' yes ' |
17908 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17909 | : |
17910 | else |
17911 | can_build_shared=no |
17912 | fi |
17913 | ;; |
17914 | esac |
17915 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17916 | # soname into executable. Probably we can add versioning support to |
17917 | # collect2, so additional links can be useful in future. |
17918 | if test "$aix_use_runtimelinking" = yes; then |
17919 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17920 | # instead of lib<name>.a to let people know that these are not |
17921 | # typical AIX shared libraries. |
17922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17923 | else |
17924 | # We preserve .a as extension for shared libraries through AIX4.2 |
17925 | # and later when we are not doing run time linking. |
17926 | library_names_spec='${libname}${release}.a $libname.a' |
17927 | soname_spec='${libname}${release}${shared_ext}$major' |
17928 | fi |
17929 | shlibpath_var=LIBPATH |
17930 | fi |
17931 | ;; |
17932 | |
17933 | amigaos*) |
17934 | library_names_spec='$libname.ixlibrary $libname.a' |
17935 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17936 | 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' |
17937 | ;; |
17938 | |
17939 | beos*) |
17940 | library_names_spec='${libname}${shared_ext}' |
17941 | dynamic_linker="$host_os ld.so" |
17942 | shlibpath_var=LIBRARY_PATH |
17943 | ;; |
17944 | |
17945 | bsdi[45]*) |
17946 | version_type=linux |
17947 | need_version=no |
17948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17949 | soname_spec='${libname}${release}${shared_ext}$major' |
17950 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17951 | shlibpath_var=LD_LIBRARY_PATH |
17952 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17953 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17954 | # the default ld.so.conf also contains /usr/contrib/lib and |
17955 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17956 | # libtool to hard-code these into programs |
17957 | ;; |
17958 | |
17959 | cygwin* | mingw* | pw32*) |
17960 | version_type=windows |
17961 | shrext_cmds=".dll" |
17962 | need_version=no |
17963 | need_lib_prefix=no |
17964 | |
17965 | case $GCC,$host_os in |
17966 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17967 | library_names_spec='$libname.dll.a' |
17968 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17969 | postinstall_cmds='base_file=`basename \${file}`~ |
17970 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17971 | dldir=$destdir/`dirname \$dlpath`~ |
17972 | test -d \$dldir || mkdir -p \$dldir~ |
17973 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17974 | chmod a+x \$dldir/$dlname' |
17975 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17976 | dlpath=$dir/\$dldll~ |
17977 | $rm \$dlpath' |
17978 | shlibpath_overrides_runpath=yes |
17979 | |
17980 | case $host_os in |
17981 | cygwin*) |
17982 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17983 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17984 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17985 | ;; |
17986 | mingw*) |
17987 | # MinGW DLLs use traditional 'lib' prefix |
17988 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17989 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17990 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17991 | # It is most probably a Windows format PATH printed by |
17992 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17993 | # path with ; separators, and with drive letters. We can handle the |
17994 | # drive letters (cygwin fileutils understands them), so leave them, |
17995 | # especially as we might pass files found there to a mingw objdump, |
17996 | # which wouldn't understand a cygwinified path. Ahh. |
17997 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17998 | else |
17999 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18000 | fi |
18001 | ;; |
18002 | pw32*) |
18003 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18004 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18005 | ;; |
18006 | esac |
18007 | ;; |
18008 | |
18009 | *) |
18010 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18011 | ;; |
18012 | esac |
18013 | dynamic_linker='Win32 ld.exe' |
18014 | # FIXME: first we should search . and the directory the executable is in |
18015 | shlibpath_var=PATH |
18016 | ;; |
18017 | |
18018 | darwin* | rhapsody*) |
18019 | dynamic_linker="$host_os dyld" |
18020 | version_type=darwin |
18021 | need_lib_prefix=no |
18022 | need_version=no |
18023 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18024 | soname_spec='${libname}${release}${major}$shared_ext' |
18025 | shlibpath_overrides_runpath=yes |
18026 | shlibpath_var=DYLD_LIBRARY_PATH |
18027 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ac40fd9e |
18028 | |
d9898ee8 |
18029 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18030 | ;; |
18031 | |
18032 | dgux*) |
18033 | version_type=linux |
18034 | need_lib_prefix=no |
18035 | need_version=no |
18036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18037 | soname_spec='${libname}${release}${shared_ext}$major' |
18038 | shlibpath_var=LD_LIBRARY_PATH |
18039 | ;; |
18040 | |
18041 | freebsd1*) |
18042 | dynamic_linker=no |
18043 | ;; |
18044 | |
d9898ee8 |
18045 | freebsd* | dragonfly*) |
18046 | # DragonFly does not have aout. When/if they implement a new |
18047 | # versioning mechanism, adjust this. |
18048 | if test -x /usr/bin/objformat; then |
18049 | objformat=`/usr/bin/objformat` |
18050 | else |
18051 | case $host_os in |
18052 | freebsd[123]*) objformat=aout ;; |
18053 | *) objformat=elf ;; |
18054 | esac |
18055 | fi |
18056 | version_type=freebsd-$objformat |
18057 | case $version_type in |
18058 | freebsd-elf*) |
18059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18060 | need_version=no |
18061 | need_lib_prefix=no |
18062 | ;; |
18063 | freebsd-*) |
18064 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18065 | need_version=yes |
18066 | ;; |
18067 | esac |
18068 | shlibpath_var=LD_LIBRARY_PATH |
18069 | case $host_os in |
18070 | freebsd2*) |
18071 | shlibpath_overrides_runpath=yes |
18072 | ;; |
18073 | freebsd3.[01]* | freebsdelf3.[01]*) |
18074 | shlibpath_overrides_runpath=yes |
18075 | hardcode_into_libs=yes |
18076 | ;; |
18077 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18078 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18079 | shlibpath_overrides_runpath=no |
18080 | hardcode_into_libs=yes |
18081 | ;; |
ac40fd9e |
18082 | *) # from 4.6 on, and DragonFly |
d9898ee8 |
18083 | shlibpath_overrides_runpath=yes |
18084 | hardcode_into_libs=yes |
18085 | ;; |
18086 | esac |
18087 | ;; |
18088 | |
18089 | gnu*) |
18090 | version_type=linux |
18091 | need_lib_prefix=no |
18092 | need_version=no |
18093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18094 | soname_spec='${libname}${release}${shared_ext}$major' |
18095 | shlibpath_var=LD_LIBRARY_PATH |
18096 | hardcode_into_libs=yes |
18097 | ;; |
18098 | |
18099 | hpux9* | hpux10* | hpux11*) |
18100 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18101 | # link against other versions. |
18102 | version_type=sunos |
18103 | need_lib_prefix=no |
18104 | need_version=no |
18105 | case $host_cpu in |
18106 | ia64*) |
18107 | shrext_cmds='.so' |
18108 | hardcode_into_libs=yes |
18109 | dynamic_linker="$host_os dld.so" |
18110 | shlibpath_var=LD_LIBRARY_PATH |
18111 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18113 | soname_spec='${libname}${release}${shared_ext}$major' |
18114 | if test "X$HPUX_IA64_MODE" = X32; then |
18115 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18116 | else |
18117 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18118 | fi |
18119 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18120 | ;; |
18121 | hppa*64*) |
18122 | shrext_cmds='.sl' |
18123 | hardcode_into_libs=yes |
18124 | dynamic_linker="$host_os dld.sl" |
18125 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18126 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18128 | soname_spec='${libname}${release}${shared_ext}$major' |
18129 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18130 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18131 | ;; |
18132 | *) |
18133 | shrext_cmds='.sl' |
18134 | dynamic_linker="$host_os dld.sl" |
18135 | shlibpath_var=SHLIB_PATH |
18136 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18138 | soname_spec='${libname}${release}${shared_ext}$major' |
18139 | ;; |
18140 | esac |
18141 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18142 | postinstall_cmds='chmod 555 $lib' |
18143 | ;; |
18144 | |
ac40fd9e |
18145 | interix[3-9]*) |
d9898ee8 |
18146 | version_type=linux |
18147 | need_lib_prefix=no |
18148 | need_version=no |
18149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18150 | soname_spec='${libname}${release}${shared_ext}$major' |
18151 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18152 | shlibpath_var=LD_LIBRARY_PATH |
18153 | shlibpath_overrides_runpath=no |
18154 | hardcode_into_libs=yes |
18155 | ;; |
18156 | |
18157 | irix5* | irix6* | nonstopux*) |
18158 | case $host_os in |
18159 | nonstopux*) version_type=nonstopux ;; |
18160 | *) |
18161 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18162 | version_type=linux |
18163 | else |
18164 | version_type=irix |
18165 | fi ;; |
18166 | esac |
18167 | need_lib_prefix=no |
18168 | need_version=no |
18169 | soname_spec='${libname}${release}${shared_ext}$major' |
18170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18171 | case $host_os in |
18172 | irix5* | nonstopux*) |
18173 | libsuff= shlibsuff= |
18174 | ;; |
18175 | *) |
18176 | case $LD in # libtool.m4 will add one of these switches to LD |
18177 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18178 | libsuff= shlibsuff= libmagic=32-bit;; |
18179 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18180 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18181 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18182 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18183 | *) libsuff= shlibsuff= libmagic=never-match;; |
18184 | esac |
18185 | ;; |
18186 | esac |
18187 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18188 | shlibpath_overrides_runpath=no |
18189 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18190 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18191 | hardcode_into_libs=yes |
18192 | ;; |
18193 | |
18194 | # No shared lib support for Linux oldld, aout, or coff. |
18195 | linux*oldld* | linux*aout* | linux*coff*) |
18196 | dynamic_linker=no |
18197 | ;; |
18198 | |
18199 | # This must be Linux ELF. |
ac40fd9e |
18200 | linux* | k*bsd*-gnu) |
d9898ee8 |
18201 | version_type=linux |
18202 | need_lib_prefix=no |
18203 | need_version=no |
18204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18205 | soname_spec='${libname}${release}${shared_ext}$major' |
18206 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18207 | shlibpath_var=LD_LIBRARY_PATH |
18208 | shlibpath_overrides_runpath=no |
18209 | # This implies no fast_install, which is unacceptable. |
18210 | # Some rework will be needed to allow for fast_install |
18211 | # before this can be enabled. |
18212 | hardcode_into_libs=yes |
ac40fd9e |
18213 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18214 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
d9898ee8 |
18215 | |
18216 | # Append ld.so.conf contents to the search path |
18217 | if test -f /etc/ld.so.conf; then |
ac40fd9e |
18218 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
18219 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 |
18220 | fi |
18221 | |
18222 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18223 | # powerpc, because MkLinux only supported shared libraries with the |
18224 | # GNU dynamic linker. Since this was broken with cross compilers, |
18225 | # most powerpc-linux boxes support dynamic linking these days and |
18226 | # people can always --disable-shared, the test was removed, and we |
18227 | # assume the GNU/Linux dynamic linker is in use. |
18228 | dynamic_linker='GNU/Linux ld.so' |
18229 | ;; |
18230 | |
d9898ee8 |
18231 | netbsd*) |
18232 | version_type=sunos |
18233 | need_lib_prefix=no |
18234 | need_version=no |
18235 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18237 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18238 | dynamic_linker='NetBSD (a.out) ld.so' |
18239 | else |
18240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18241 | soname_spec='${libname}${release}${shared_ext}$major' |
18242 | dynamic_linker='NetBSD ld.elf_so' |
18243 | fi |
18244 | shlibpath_var=LD_LIBRARY_PATH |
18245 | shlibpath_overrides_runpath=yes |
18246 | hardcode_into_libs=yes |
18247 | ;; |
18248 | |
18249 | newsos6) |
18250 | version_type=linux |
18251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18252 | shlibpath_var=LD_LIBRARY_PATH |
18253 | shlibpath_overrides_runpath=yes |
18254 | ;; |
18255 | |
18256 | nto-qnx*) |
18257 | version_type=linux |
18258 | need_lib_prefix=no |
18259 | need_version=no |
18260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18261 | soname_spec='${libname}${release}${shared_ext}$major' |
18262 | shlibpath_var=LD_LIBRARY_PATH |
18263 | shlibpath_overrides_runpath=yes |
18264 | ;; |
18265 | |
18266 | openbsd*) |
18267 | version_type=sunos |
18268 | sys_lib_dlsearch_path_spec="/usr/lib" |
18269 | need_lib_prefix=no |
18270 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18271 | case $host_os in |
18272 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18273 | *) need_version=no ;; |
18274 | esac |
18275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18277 | shlibpath_var=LD_LIBRARY_PATH |
18278 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18279 | case $host_os in |
18280 | openbsd2.[89] | openbsd2.[89].*) |
18281 | shlibpath_overrides_runpath=no |
18282 | ;; |
18283 | *) |
18284 | shlibpath_overrides_runpath=yes |
18285 | ;; |
18286 | esac |
18287 | else |
18288 | shlibpath_overrides_runpath=yes |
18289 | fi |
18290 | ;; |
18291 | |
18292 | os2*) |
18293 | libname_spec='$name' |
18294 | shrext_cmds=".dll" |
18295 | need_lib_prefix=no |
18296 | library_names_spec='$libname${shared_ext} $libname.a' |
18297 | dynamic_linker='OS/2 ld.exe' |
18298 | shlibpath_var=LIBPATH |
18299 | ;; |
18300 | |
18301 | osf3* | osf4* | osf5*) |
18302 | version_type=osf |
18303 | need_lib_prefix=no |
18304 | need_version=no |
18305 | soname_spec='${libname}${release}${shared_ext}$major' |
18306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18307 | shlibpath_var=LD_LIBRARY_PATH |
18308 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18309 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18310 | ;; |
18311 | |
ac40fd9e |
18312 | rdos*) |
18313 | dynamic_linker=no |
18314 | ;; |
18315 | |
d9898ee8 |
18316 | solaris*) |
18317 | version_type=linux |
18318 | need_lib_prefix=no |
18319 | need_version=no |
18320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18321 | soname_spec='${libname}${release}${shared_ext}$major' |
18322 | shlibpath_var=LD_LIBRARY_PATH |
18323 | shlibpath_overrides_runpath=yes |
18324 | hardcode_into_libs=yes |
18325 | # ldd complains unless libraries are executable |
18326 | postinstall_cmds='chmod +x $lib' |
18327 | ;; |
18328 | |
18329 | sunos4*) |
18330 | version_type=sunos |
18331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18332 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18333 | shlibpath_var=LD_LIBRARY_PATH |
18334 | shlibpath_overrides_runpath=yes |
18335 | if test "$with_gnu_ld" = yes; then |
18336 | need_lib_prefix=no |
18337 | fi |
18338 | need_version=yes |
18339 | ;; |
18340 | |
18341 | sysv4 | sysv4.3*) |
18342 | version_type=linux |
18343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18344 | soname_spec='${libname}${release}${shared_ext}$major' |
18345 | shlibpath_var=LD_LIBRARY_PATH |
18346 | case $host_vendor in |
18347 | sni) |
18348 | shlibpath_overrides_runpath=no |
18349 | need_lib_prefix=no |
18350 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18351 | runpath_var=LD_RUN_PATH |
18352 | ;; |
18353 | siemens) |
18354 | need_lib_prefix=no |
18355 | ;; |
18356 | motorola) |
18357 | need_lib_prefix=no |
18358 | need_version=no |
18359 | shlibpath_overrides_runpath=no |
18360 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18361 | ;; |
18362 | esac |
18363 | ;; |
18364 | |
18365 | sysv4*MP*) |
18366 | if test -d /usr/nec ;then |
18367 | version_type=linux |
18368 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18369 | soname_spec='$libname${shared_ext}.$major' |
18370 | shlibpath_var=LD_LIBRARY_PATH |
18371 | fi |
18372 | ;; |
18373 | |
18374 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18375 | version_type=freebsd-elf |
18376 | need_lib_prefix=no |
18377 | need_version=no |
18378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18379 | soname_spec='${libname}${release}${shared_ext}$major' |
18380 | shlibpath_var=LD_LIBRARY_PATH |
18381 | hardcode_into_libs=yes |
18382 | if test "$with_gnu_ld" = yes; then |
18383 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18384 | shlibpath_overrides_runpath=no |
18385 | else |
18386 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18387 | shlibpath_overrides_runpath=yes |
18388 | case $host_os in |
18389 | sco3.2v5*) |
18390 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18391 | ;; |
18392 | esac |
18393 | fi |
18394 | sys_lib_dlsearch_path_spec='/usr/lib' |
18395 | ;; |
18396 | |
18397 | uts4*) |
18398 | version_type=linux |
18399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18400 | soname_spec='${libname}${release}${shared_ext}$major' |
18401 | shlibpath_var=LD_LIBRARY_PATH |
18402 | ;; |
18403 | |
18404 | *) |
18405 | dynamic_linker=no |
18406 | ;; |
18407 | esac |
dd184caf |
18408 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18409 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18410 | test "$dynamic_linker" = no && can_build_shared=no |
18411 | |
18412 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18413 | if test "$GCC" = yes; then |
18414 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18415 | fi |
18416 | |
dd184caf |
18417 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18418 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18419 | hardcode_action_GCJ= |
18420 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18421 | test -n "$runpath_var_GCJ" || \ |
18422 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18423 | |
18424 | # We can hardcode non-existant directories. |
18425 | if test "$hardcode_direct_GCJ" != no && |
18426 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18427 | # have to relink, otherwise we might link with an installed library |
18428 | # when we should be linking with a yet-to-be-installed one |
18429 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18430 | test "$hardcode_minus_L_GCJ" != no; then |
18431 | # Linking always hardcodes the temporary library directory. |
18432 | hardcode_action_GCJ=relink |
18433 | else |
18434 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18435 | hardcode_action_GCJ=immediate |
18436 | fi |
18437 | else |
18438 | # We cannot hardcode anything, or else we can only hardcode existing |
18439 | # directories. |
18440 | hardcode_action_GCJ=unsupported |
18441 | fi |
dd184caf |
18442 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18443 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18444 | |
18445 | if test "$hardcode_action_GCJ" = relink; then |
18446 | # Fast installation is not supported |
18447 | enable_fast_install=no |
18448 | elif test "$shlibpath_overrides_runpath" = yes || |
18449 | test "$enable_shared" = no; then |
18450 | # Fast installation is not necessary |
18451 | enable_fast_install=needless |
18452 | fi |
18453 | |
18454 | |
18455 | # The else clause should only fire when bootstrapping the |
18456 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18457 | # with your package, and you will get complaints that there are |
18458 | # no rules to generate ltmain.sh. |
18459 | if test -f "$ltmain"; then |
18460 | # See if we are running on zsh, and set the options which allow our commands through |
18461 | # without removal of \ escapes. |
18462 | if test -n "${ZSH_VERSION+set}" ; then |
18463 | setopt NO_GLOB_SUBST |
18464 | fi |
18465 | # Now quote all the things that may contain metacharacters while being |
18466 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18467 | # variables and quote the copies for generation of the libtool script. |
18468 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18469 | SED SHELL STRIP \ |
18470 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18471 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18472 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18473 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18474 | lt_cv_sys_global_symbol_to_c_name_address \ |
18475 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18476 | old_postinstall_cmds old_postuninstall_cmds \ |
18477 | compiler_GCJ \ |
18478 | CC_GCJ \ |
18479 | LD_GCJ \ |
18480 | lt_prog_compiler_wl_GCJ \ |
18481 | lt_prog_compiler_pic_GCJ \ |
18482 | lt_prog_compiler_static_GCJ \ |
18483 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18484 | export_dynamic_flag_spec_GCJ \ |
18485 | thread_safe_flag_spec_GCJ \ |
18486 | whole_archive_flag_spec_GCJ \ |
18487 | enable_shared_with_static_runtimes_GCJ \ |
18488 | old_archive_cmds_GCJ \ |
18489 | old_archive_from_new_cmds_GCJ \ |
18490 | predep_objects_GCJ \ |
18491 | postdep_objects_GCJ \ |
18492 | predeps_GCJ \ |
18493 | postdeps_GCJ \ |
18494 | compiler_lib_search_path_GCJ \ |
18495 | archive_cmds_GCJ \ |
18496 | archive_expsym_cmds_GCJ \ |
18497 | postinstall_cmds_GCJ \ |
18498 | postuninstall_cmds_GCJ \ |
18499 | old_archive_from_expsyms_cmds_GCJ \ |
18500 | allow_undefined_flag_GCJ \ |
18501 | no_undefined_flag_GCJ \ |
18502 | export_symbols_cmds_GCJ \ |
18503 | hardcode_libdir_flag_spec_GCJ \ |
18504 | hardcode_libdir_flag_spec_ld_GCJ \ |
18505 | hardcode_libdir_separator_GCJ \ |
18506 | hardcode_automatic_GCJ \ |
18507 | module_cmds_GCJ \ |
18508 | module_expsym_cmds_GCJ \ |
18509 | lt_cv_prog_compiler_c_o_GCJ \ |
ac40fd9e |
18510 | fix_srcfile_path_GCJ \ |
d9898ee8 |
18511 | exclude_expsyms_GCJ \ |
18512 | include_expsyms_GCJ; do |
18513 | |
18514 | case $var in |
18515 | old_archive_cmds_GCJ | \ |
18516 | old_archive_from_new_cmds_GCJ | \ |
18517 | archive_cmds_GCJ | \ |
18518 | archive_expsym_cmds_GCJ | \ |
18519 | module_cmds_GCJ | \ |
18520 | module_expsym_cmds_GCJ | \ |
18521 | old_archive_from_expsyms_cmds_GCJ | \ |
18522 | export_symbols_cmds_GCJ | \ |
18523 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18524 | postinstall_cmds | postuninstall_cmds | \ |
18525 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18526 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18527 | # Double-quote double-evaled strings. |
18528 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18529 | ;; |
18530 | *) |
18531 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18532 | ;; |
18533 | esac |
18534 | done |
18535 | |
18536 | case $lt_echo in |
18537 | *'\$0 --fallback-echo"') |
18538 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18539 | ;; |
18540 | esac |
18541 | |
18542 | cfgfile="$ofile" |
18543 | |
18544 | cat <<__EOF__ >> "$cfgfile" |
18545 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18546 | |
18547 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18548 | |
18549 | # Shell to use when invoking shell scripts. |
18550 | SHELL=$lt_SHELL |
18551 | |
18552 | # Whether or not to build shared libraries. |
18553 | build_libtool_libs=$enable_shared |
18554 | |
18555 | # Whether or not to build static libraries. |
18556 | build_old_libs=$enable_static |
18557 | |
18558 | # Whether or not to add -lc for building shared libraries. |
18559 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18560 | |
18561 | # Whether or not to disallow shared libs when runtime libs are static |
18562 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18563 | |
18564 | # Whether or not to optimize for fast installation. |
18565 | fast_install=$enable_fast_install |
18566 | |
18567 | # The host system. |
18568 | host_alias=$host_alias |
18569 | host=$host |
18570 | host_os=$host_os |
18571 | |
18572 | # The build system. |
18573 | build_alias=$build_alias |
18574 | build=$build |
18575 | build_os=$build_os |
18576 | |
18577 | # An echo program that does not interpret backslashes. |
18578 | echo=$lt_echo |
18579 | |
18580 | # The archiver. |
18581 | AR=$lt_AR |
18582 | AR_FLAGS=$lt_AR_FLAGS |
18583 | |
18584 | # A C compiler. |
18585 | LTCC=$lt_LTCC |
18586 | |
18587 | # LTCC compiler flags. |
18588 | LTCFLAGS=$lt_LTCFLAGS |
18589 | |
18590 | # A language-specific compiler. |
18591 | CC=$lt_compiler_GCJ |
18592 | |
18593 | # Is the compiler the GNU C compiler? |
18594 | with_gcc=$GCC_GCJ |
18595 | |
d9898ee8 |
18596 | # An ERE matcher. |
18597 | EGREP=$lt_EGREP |
18598 | |
18599 | # The linker used to build libraries. |
18600 | LD=$lt_LD_GCJ |
18601 | |
18602 | # Whether we need hard or soft links. |
18603 | LN_S=$lt_LN_S |
18604 | |
18605 | # A BSD-compatible nm program. |
18606 | NM=$lt_NM |
18607 | |
18608 | # A symbol stripping program |
18609 | STRIP=$lt_STRIP |
18610 | |
18611 | # Used to examine libraries when file_magic_cmd begins "file" |
18612 | MAGIC_CMD=$MAGIC_CMD |
18613 | |
18614 | # Used on cygwin: DLL creation program. |
18615 | DLLTOOL="$DLLTOOL" |
18616 | |
18617 | # Used on cygwin: object dumper. |
18618 | OBJDUMP="$OBJDUMP" |
18619 | |
18620 | # Used on cygwin: assembler. |
18621 | AS="$AS" |
18622 | |
18623 | # The name of the directory that contains temporary libtool files. |
18624 | objdir=$objdir |
18625 | |
18626 | # How to create reloadable object files. |
18627 | reload_flag=$lt_reload_flag |
18628 | reload_cmds=$lt_reload_cmds |
18629 | |
18630 | # How to pass a linker flag through the compiler. |
18631 | wl=$lt_lt_prog_compiler_wl_GCJ |
18632 | |
18633 | # Object file suffix (normally "o"). |
18634 | objext="$ac_objext" |
18635 | |
18636 | # Old archive suffix (normally "a"). |
18637 | libext="$libext" |
18638 | |
18639 | # Shared library suffix (normally ".so"). |
18640 | shrext_cmds='$shrext_cmds' |
18641 | |
18642 | # Executable file suffix (normally ""). |
18643 | exeext="$exeext" |
18644 | |
18645 | # Additional compiler flags for building library objects. |
18646 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18647 | pic_mode=$pic_mode |
18648 | |
18649 | # What is the maximum length of a command? |
18650 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18651 | |
18652 | # Does compiler simultaneously support -c and -o options? |
18653 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18654 | |
18655 | # Must we lock files when doing compilation? |
18656 | need_locks=$lt_need_locks |
18657 | |
18658 | # Do we need the lib prefix for modules? |
18659 | need_lib_prefix=$need_lib_prefix |
18660 | |
18661 | # Do we need a version for libraries? |
18662 | need_version=$need_version |
18663 | |
18664 | # Whether dlopen is supported. |
18665 | dlopen_support=$enable_dlopen |
18666 | |
18667 | # Whether dlopen of programs is supported. |
18668 | dlopen_self=$enable_dlopen_self |
18669 | |
18670 | # Whether dlopen of statically linked programs is supported. |
18671 | dlopen_self_static=$enable_dlopen_self_static |
18672 | |
18673 | # Compiler flag to prevent dynamic linking. |
18674 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18675 | |
18676 | # Compiler flag to turn off builtin functions. |
18677 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18678 | |
18679 | # Compiler flag to allow reflexive dlopens. |
18680 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18681 | |
18682 | # Compiler flag to generate shared objects directly from archives. |
18683 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18684 | |
18685 | # Compiler flag to generate thread-safe objects. |
18686 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18687 | |
18688 | # Library versioning type. |
18689 | version_type=$version_type |
18690 | |
18691 | # Format of library name prefix. |
18692 | libname_spec=$lt_libname_spec |
18693 | |
18694 | # List of archive names. First name is the real one, the rest are links. |
18695 | # The last name is the one that the linker finds with -lNAME. |
18696 | library_names_spec=$lt_library_names_spec |
18697 | |
18698 | # The coded name of the library, if different from the real name. |
18699 | soname_spec=$lt_soname_spec |
18700 | |
18701 | # Commands used to build and install an old-style archive. |
18702 | RANLIB=$lt_RANLIB |
18703 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18704 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18705 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18706 | |
18707 | # Create an old-style archive from a shared archive. |
18708 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18709 | |
18710 | # Create a temporary old-style archive to link instead of a shared archive. |
18711 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18712 | |
18713 | # Commands used to build and install a shared archive. |
18714 | archive_cmds=$lt_archive_cmds_GCJ |
18715 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18716 | postinstall_cmds=$lt_postinstall_cmds |
18717 | postuninstall_cmds=$lt_postuninstall_cmds |
18718 | |
18719 | # Commands used to build a loadable module (assumed same as above if empty) |
18720 | module_cmds=$lt_module_cmds_GCJ |
18721 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18722 | |
18723 | # Commands to strip libraries. |
18724 | old_striplib=$lt_old_striplib |
18725 | striplib=$lt_striplib |
18726 | |
18727 | # Dependencies to place before the objects being linked to create a |
18728 | # shared library. |
dd184caf |
18729 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18730 | |
18731 | # Dependencies to place after the objects being linked to create a |
18732 | # shared library. |
dd184caf |
18733 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18734 | |
18735 | # Dependencies to place before the objects being linked to create a |
18736 | # shared library. |
18737 | predeps=$lt_predeps_GCJ |
18738 | |
18739 | # Dependencies to place after the objects being linked to create a |
18740 | # shared library. |
18741 | postdeps=$lt_postdeps_GCJ |
18742 | |
18743 | # The library search path used internally by the compiler when linking |
18744 | # a shared library. |
dd184caf |
18745 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18746 | |
18747 | # Method to check whether dependent libraries are shared objects. |
18748 | deplibs_check_method=$lt_deplibs_check_method |
18749 | |
18750 | # Command to use when deplibs_check_method == file_magic. |
18751 | file_magic_cmd=$lt_file_magic_cmd |
18752 | |
18753 | # Flag that allows shared libraries with undefined symbols to be built. |
18754 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18755 | |
18756 | # Flag that forces no undefined symbols. |
18757 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18758 | |
18759 | # Commands used to finish a libtool library installation in a directory. |
18760 | finish_cmds=$lt_finish_cmds |
18761 | |
18762 | # Same as above, but a single script fragment to be evaled but not shown. |
18763 | finish_eval=$lt_finish_eval |
18764 | |
18765 | # Take the output of nm and produce a listing of raw symbols and C names. |
18766 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18767 | |
18768 | # Transform the output of nm in a proper C declaration |
18769 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18770 | |
18771 | # Transform the output of nm in a C name address pair |
18772 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18773 | |
18774 | # This is the shared library runtime path variable. |
18775 | runpath_var=$runpath_var |
18776 | |
18777 | # This is the shared library path variable. |
18778 | shlibpath_var=$shlibpath_var |
18779 | |
18780 | # Is shlibpath searched before the hard-coded library search path? |
18781 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18782 | |
18783 | # How to hardcode a shared library path into an executable. |
18784 | hardcode_action=$hardcode_action_GCJ |
18785 | |
18786 | # Whether we should hardcode library paths into libraries. |
18787 | hardcode_into_libs=$hardcode_into_libs |
18788 | |
18789 | # Flag to hardcode \$libdir into a binary during linking. |
18790 | # This must work even if \$libdir does not exist. |
18791 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18792 | |
18793 | # If ld is used when linking, flag to hardcode \$libdir into |
18794 | # a binary during linking. This must work even if \$libdir does |
18795 | # not exist. |
18796 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18797 | |
18798 | # Whether we need a single -rpath flag with a separated argument. |
18799 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18800 | |
18801 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18802 | # resulting binary. |
18803 | hardcode_direct=$hardcode_direct_GCJ |
18804 | |
18805 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18806 | # resulting binary. |
18807 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18808 | |
18809 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18810 | # the resulting binary. |
18811 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18812 | |
18813 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18814 | # and all subsequent libraries and executables linked against it. |
18815 | hardcode_automatic=$hardcode_automatic_GCJ |
18816 | |
18817 | # Variables whose values should be saved in libtool wrapper scripts and |
18818 | # restored at relink time. |
18819 | variables_saved_for_relink="$variables_saved_for_relink" |
18820 | |
18821 | # Whether libtool must link a program against all its dependency libraries. |
18822 | link_all_deplibs=$link_all_deplibs_GCJ |
18823 | |
18824 | # Compile-time system search path for libraries |
dd184caf |
18825 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18826 | |
18827 | # Run-time system search path for libraries |
18828 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18829 | |
18830 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
18831 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
18832 | |
18833 | # Set to yes if exported symbols are required. |
18834 | always_export_symbols=$always_export_symbols_GCJ |
18835 | |
18836 | # The commands to list exported symbols. |
18837 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18838 | |
18839 | # The commands to extract the exported symbol list from a shared archive. |
18840 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18841 | |
18842 | # Symbols that should not be listed in the preloaded symbols. |
18843 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18844 | |
18845 | # Symbols that must always be exported. |
18846 | include_expsyms=$lt_include_expsyms_GCJ |
18847 | |
18848 | # ### END LIBTOOL TAG CONFIG: $tagname |
18849 | |
18850 | __EOF__ |
18851 | |
18852 | |
18853 | else |
18854 | # If there is no Makefile yet, we rely on a make rule to execute |
18855 | # `config.status --recheck' to rerun these tests and create the |
18856 | # libtool script then. |
18857 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18858 | if test -f "$ltmain_in"; then |
18859 | test -f Makefile && make "$ltmain" |
18860 | fi |
18861 | fi |
18862 | |
18863 | |
18864 | ac_ext=c |
18865 | ac_cpp='$CPP $CPPFLAGS' |
18866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18869 | |
18870 | CC="$lt_save_CC" |
18871 | |
18872 | else |
18873 | tagname="" |
18874 | fi |
18875 | ;; |
18876 | |
18877 | RC) |
18878 | |
18879 | |
d9898ee8 |
18880 | # Source file extension for RC test sources. |
18881 | ac_ext=rc |
18882 | |
18883 | # Object file extension for compiled RC test sources. |
18884 | objext=o |
18885 | objext_RC=$objext |
18886 | |
18887 | # Code to be used in simple compile tests |
ac40fd9e |
18888 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
d9898ee8 |
18889 | |
18890 | # Code to be used in simple link tests |
18891 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18892 | |
18893 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18894 | |
18895 | # If no C compiler was specified, use CC. |
18896 | LTCC=${LTCC-"$CC"} |
18897 | |
18898 | # If no C compiler flags were specified, use CFLAGS. |
18899 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18900 | |
18901 | # Allow CC to be a program name with arguments. |
18902 | compiler=$CC |
18903 | |
18904 | |
18905 | # save warnings/boilerplate of simple test code |
18906 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
18907 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 |
18908 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18909 | _lt_compiler_boilerplate=`cat conftest.err` |
18910 | $rm conftest* |
18911 | |
18912 | ac_outfile=conftest.$ac_objext |
ac40fd9e |
18913 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 |
18914 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18915 | _lt_linker_boilerplate=`cat conftest.err` |
18916 | $rm conftest* |
18917 | |
18918 | |
18919 | # Allow CC to be a program name with arguments. |
18920 | lt_save_CC="$CC" |
18921 | CC=${RC-"windres"} |
18922 | compiler=$CC |
18923 | compiler_RC=$CC |
18924 | for cc_temp in $compiler""; do |
18925 | case $cc_temp in |
18926 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18927 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18928 | \-*) ;; |
18929 | *) break;; |
18930 | esac |
18931 | done |
18932 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18933 | |
18934 | lt_cv_prog_compiler_c_o_RC=yes |
18935 | |
18936 | # The else clause should only fire when bootstrapping the |
18937 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18938 | # with your package, and you will get complaints that there are |
18939 | # no rules to generate ltmain.sh. |
18940 | if test -f "$ltmain"; then |
18941 | # See if we are running on zsh, and set the options which allow our commands through |
18942 | # without removal of \ escapes. |
18943 | if test -n "${ZSH_VERSION+set}" ; then |
18944 | setopt NO_GLOB_SUBST |
18945 | fi |
18946 | # Now quote all the things that may contain metacharacters while being |
18947 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18948 | # variables and quote the copies for generation of the libtool script. |
18949 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18950 | SED SHELL STRIP \ |
18951 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18952 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18953 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18954 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18955 | lt_cv_sys_global_symbol_to_c_name_address \ |
18956 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18957 | old_postinstall_cmds old_postuninstall_cmds \ |
18958 | compiler_RC \ |
18959 | CC_RC \ |
18960 | LD_RC \ |
18961 | lt_prog_compiler_wl_RC \ |
18962 | lt_prog_compiler_pic_RC \ |
18963 | lt_prog_compiler_static_RC \ |
18964 | lt_prog_compiler_no_builtin_flag_RC \ |
18965 | export_dynamic_flag_spec_RC \ |
18966 | thread_safe_flag_spec_RC \ |
18967 | whole_archive_flag_spec_RC \ |
18968 | enable_shared_with_static_runtimes_RC \ |
18969 | old_archive_cmds_RC \ |
18970 | old_archive_from_new_cmds_RC \ |
18971 | predep_objects_RC \ |
18972 | postdep_objects_RC \ |
18973 | predeps_RC \ |
18974 | postdeps_RC \ |
18975 | compiler_lib_search_path_RC \ |
18976 | archive_cmds_RC \ |
18977 | archive_expsym_cmds_RC \ |
18978 | postinstall_cmds_RC \ |
18979 | postuninstall_cmds_RC \ |
18980 | old_archive_from_expsyms_cmds_RC \ |
18981 | allow_undefined_flag_RC \ |
18982 | no_undefined_flag_RC \ |
18983 | export_symbols_cmds_RC \ |
18984 | hardcode_libdir_flag_spec_RC \ |
18985 | hardcode_libdir_flag_spec_ld_RC \ |
18986 | hardcode_libdir_separator_RC \ |
18987 | hardcode_automatic_RC \ |
18988 | module_cmds_RC \ |
18989 | module_expsym_cmds_RC \ |
18990 | lt_cv_prog_compiler_c_o_RC \ |
ac40fd9e |
18991 | fix_srcfile_path_RC \ |
d9898ee8 |
18992 | exclude_expsyms_RC \ |
18993 | include_expsyms_RC; do |
18994 | |
18995 | case $var in |
18996 | old_archive_cmds_RC | \ |
18997 | old_archive_from_new_cmds_RC | \ |
18998 | archive_cmds_RC | \ |
18999 | archive_expsym_cmds_RC | \ |
19000 | module_cmds_RC | \ |
19001 | module_expsym_cmds_RC | \ |
19002 | old_archive_from_expsyms_cmds_RC | \ |
19003 | export_symbols_cmds_RC | \ |
19004 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19005 | postinstall_cmds | postuninstall_cmds | \ |
19006 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19007 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19008 | # Double-quote double-evaled strings. |
19009 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19010 | ;; |
19011 | *) |
19012 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19013 | ;; |
19014 | esac |
19015 | done |
19016 | |
19017 | case $lt_echo in |
19018 | *'\$0 --fallback-echo"') |
19019 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19020 | ;; |
19021 | esac |
19022 | |
19023 | cfgfile="$ofile" |
19024 | |
19025 | cat <<__EOF__ >> "$cfgfile" |
19026 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19027 | |
19028 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19029 | |
19030 | # Shell to use when invoking shell scripts. |
19031 | SHELL=$lt_SHELL |
19032 | |
19033 | # Whether or not to build shared libraries. |
19034 | build_libtool_libs=$enable_shared |
19035 | |
19036 | # Whether or not to build static libraries. |
19037 | build_old_libs=$enable_static |
19038 | |
19039 | # Whether or not to add -lc for building shared libraries. |
19040 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19041 | |
19042 | # Whether or not to disallow shared libs when runtime libs are static |
19043 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19044 | |
19045 | # Whether or not to optimize for fast installation. |
19046 | fast_install=$enable_fast_install |
19047 | |
19048 | # The host system. |
19049 | host_alias=$host_alias |
19050 | host=$host |
19051 | host_os=$host_os |
19052 | |
19053 | # The build system. |
19054 | build_alias=$build_alias |
19055 | build=$build |
19056 | build_os=$build_os |
19057 | |
19058 | # An echo program that does not interpret backslashes. |
19059 | echo=$lt_echo |
19060 | |
19061 | # The archiver. |
19062 | AR=$lt_AR |
19063 | AR_FLAGS=$lt_AR_FLAGS |
19064 | |
19065 | # A C compiler. |
19066 | LTCC=$lt_LTCC |
19067 | |
19068 | # LTCC compiler flags. |
19069 | LTCFLAGS=$lt_LTCFLAGS |
19070 | |
19071 | # A language-specific compiler. |
19072 | CC=$lt_compiler_RC |
19073 | |
19074 | # Is the compiler the GNU C compiler? |
19075 | with_gcc=$GCC_RC |
19076 | |
d9898ee8 |
19077 | # An ERE matcher. |
19078 | EGREP=$lt_EGREP |
19079 | |
19080 | # The linker used to build libraries. |
19081 | LD=$lt_LD_RC |
19082 | |
19083 | # Whether we need hard or soft links. |
19084 | LN_S=$lt_LN_S |
19085 | |
19086 | # A BSD-compatible nm program. |
19087 | NM=$lt_NM |
19088 | |
19089 | # A symbol stripping program |
19090 | STRIP=$lt_STRIP |
19091 | |
19092 | # Used to examine libraries when file_magic_cmd begins "file" |
19093 | MAGIC_CMD=$MAGIC_CMD |
19094 | |
19095 | # Used on cygwin: DLL creation program. |
19096 | DLLTOOL="$DLLTOOL" |
19097 | |
19098 | # Used on cygwin: object dumper. |
19099 | OBJDUMP="$OBJDUMP" |
19100 | |
19101 | # Used on cygwin: assembler. |
19102 | AS="$AS" |
19103 | |
19104 | # The name of the directory that contains temporary libtool files. |
19105 | objdir=$objdir |
19106 | |
19107 | # How to create reloadable object files. |
19108 | reload_flag=$lt_reload_flag |
19109 | reload_cmds=$lt_reload_cmds |
19110 | |
19111 | # How to pass a linker flag through the compiler. |
19112 | wl=$lt_lt_prog_compiler_wl_RC |
19113 | |
19114 | # Object file suffix (normally "o"). |
19115 | objext="$ac_objext" |
19116 | |
19117 | # Old archive suffix (normally "a"). |
19118 | libext="$libext" |
19119 | |
19120 | # Shared library suffix (normally ".so"). |
19121 | shrext_cmds='$shrext_cmds' |
19122 | |
19123 | # Executable file suffix (normally ""). |
19124 | exeext="$exeext" |
19125 | |
19126 | # Additional compiler flags for building library objects. |
19127 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19128 | pic_mode=$pic_mode |
19129 | |
19130 | # What is the maximum length of a command? |
19131 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19132 | |
19133 | # Does compiler simultaneously support -c and -o options? |
19134 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19135 | |
19136 | # Must we lock files when doing compilation? |
19137 | need_locks=$lt_need_locks |
19138 | |
19139 | # Do we need the lib prefix for modules? |
19140 | need_lib_prefix=$need_lib_prefix |
19141 | |
19142 | # Do we need a version for libraries? |
19143 | need_version=$need_version |
19144 | |
19145 | # Whether dlopen is supported. |
19146 | dlopen_support=$enable_dlopen |
19147 | |
19148 | # Whether dlopen of programs is supported. |
19149 | dlopen_self=$enable_dlopen_self |
19150 | |
19151 | # Whether dlopen of statically linked programs is supported. |
19152 | dlopen_self_static=$enable_dlopen_self_static |
19153 | |
19154 | # Compiler flag to prevent dynamic linking. |
19155 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19156 | |
19157 | # Compiler flag to turn off builtin functions. |
19158 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19159 | |
19160 | # Compiler flag to allow reflexive dlopens. |
19161 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19162 | |
19163 | # Compiler flag to generate shared objects directly from archives. |
19164 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19165 | |
19166 | # Compiler flag to generate thread-safe objects. |
19167 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19168 | |
19169 | # Library versioning type. |
19170 | version_type=$version_type |
19171 | |
19172 | # Format of library name prefix. |
19173 | libname_spec=$lt_libname_spec |
19174 | |
19175 | # List of archive names. First name is the real one, the rest are links. |
19176 | # The last name is the one that the linker finds with -lNAME. |
19177 | library_names_spec=$lt_library_names_spec |
19178 | |
19179 | # The coded name of the library, if different from the real name. |
19180 | soname_spec=$lt_soname_spec |
19181 | |
19182 | # Commands used to build and install an old-style archive. |
19183 | RANLIB=$lt_RANLIB |
19184 | old_archive_cmds=$lt_old_archive_cmds_RC |
19185 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19186 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19187 | |
19188 | # Create an old-style archive from a shared archive. |
19189 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19190 | |
19191 | # Create a temporary old-style archive to link instead of a shared archive. |
19192 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19193 | |
19194 | # Commands used to build and install a shared archive. |
19195 | archive_cmds=$lt_archive_cmds_RC |
19196 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19197 | postinstall_cmds=$lt_postinstall_cmds |
19198 | postuninstall_cmds=$lt_postuninstall_cmds |
19199 | |
19200 | # Commands used to build a loadable module (assumed same as above if empty) |
19201 | module_cmds=$lt_module_cmds_RC |
19202 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19203 | |
19204 | # Commands to strip libraries. |
19205 | old_striplib=$lt_old_striplib |
19206 | striplib=$lt_striplib |
19207 | |
19208 | # Dependencies to place before the objects being linked to create a |
19209 | # shared library. |
dd184caf |
19210 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19211 | |
19212 | # Dependencies to place after the objects being linked to create a |
19213 | # shared library. |
dd184caf |
19214 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19215 | |
19216 | # Dependencies to place before the objects being linked to create a |
19217 | # shared library. |
19218 | predeps=$lt_predeps_RC |
19219 | |
19220 | # Dependencies to place after the objects being linked to create a |
19221 | # shared library. |
19222 | postdeps=$lt_postdeps_RC |
19223 | |
19224 | # The library search path used internally by the compiler when linking |
19225 | # a shared library. |
dd184caf |
19226 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19227 | |
19228 | # Method to check whether dependent libraries are shared objects. |
19229 | deplibs_check_method=$lt_deplibs_check_method |
19230 | |
19231 | # Command to use when deplibs_check_method == file_magic. |
19232 | file_magic_cmd=$lt_file_magic_cmd |
19233 | |
19234 | # Flag that allows shared libraries with undefined symbols to be built. |
19235 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19236 | |
19237 | # Flag that forces no undefined symbols. |
19238 | no_undefined_flag=$lt_no_undefined_flag_RC |
19239 | |
19240 | # Commands used to finish a libtool library installation in a directory. |
19241 | finish_cmds=$lt_finish_cmds |
19242 | |
19243 | # Same as above, but a single script fragment to be evaled but not shown. |
19244 | finish_eval=$lt_finish_eval |
19245 | |
19246 | # Take the output of nm and produce a listing of raw symbols and C names. |
19247 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19248 | |
19249 | # Transform the output of nm in a proper C declaration |
19250 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19251 | |
19252 | # Transform the output of nm in a C name address pair |
19253 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19254 | |
19255 | # This is the shared library runtime path variable. |
19256 | runpath_var=$runpath_var |
19257 | |
19258 | # This is the shared library path variable. |
19259 | shlibpath_var=$shlibpath_var |
19260 | |
19261 | # Is shlibpath searched before the hard-coded library search path? |
19262 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19263 | |
19264 | # How to hardcode a shared library path into an executable. |
19265 | hardcode_action=$hardcode_action_RC |
19266 | |
19267 | # Whether we should hardcode library paths into libraries. |
19268 | hardcode_into_libs=$hardcode_into_libs |
19269 | |
19270 | # Flag to hardcode \$libdir into a binary during linking. |
19271 | # This must work even if \$libdir does not exist. |
19272 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19273 | |
19274 | # If ld is used when linking, flag to hardcode \$libdir into |
19275 | # a binary during linking. This must work even if \$libdir does |
19276 | # not exist. |
19277 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19278 | |
19279 | # Whether we need a single -rpath flag with a separated argument. |
19280 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19281 | |
19282 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19283 | # resulting binary. |
19284 | hardcode_direct=$hardcode_direct_RC |
19285 | |
19286 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19287 | # resulting binary. |
19288 | hardcode_minus_L=$hardcode_minus_L_RC |
19289 | |
19290 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19291 | # the resulting binary. |
19292 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19293 | |
19294 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19295 | # and all subsequent libraries and executables linked against it. |
19296 | hardcode_automatic=$hardcode_automatic_RC |
19297 | |
19298 | # Variables whose values should be saved in libtool wrapper scripts and |
19299 | # restored at relink time. |
19300 | variables_saved_for_relink="$variables_saved_for_relink" |
19301 | |
19302 | # Whether libtool must link a program against all its dependency libraries. |
19303 | link_all_deplibs=$link_all_deplibs_RC |
19304 | |
19305 | # Compile-time system search path for libraries |
dd184caf |
19306 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19307 | |
19308 | # Run-time system search path for libraries |
19309 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19310 | |
19311 | # Fix the shell variable \$srcfile for the compiler. |
ac40fd9e |
19312 | fix_srcfile_path=$lt_fix_srcfile_path |
d9898ee8 |
19313 | |
19314 | # Set to yes if exported symbols are required. |
19315 | always_export_symbols=$always_export_symbols_RC |
19316 | |
19317 | # The commands to list exported symbols. |
19318 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19319 | |
19320 | # The commands to extract the exported symbol list from a shared archive. |
19321 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19322 | |
19323 | # Symbols that should not be listed in the preloaded symbols. |
19324 | exclude_expsyms=$lt_exclude_expsyms_RC |
19325 | |
19326 | # Symbols that must always be exported. |
19327 | include_expsyms=$lt_include_expsyms_RC |
19328 | |
19329 | # ### END LIBTOOL TAG CONFIG: $tagname |
19330 | |
19331 | __EOF__ |
19332 | |
19333 | |
19334 | else |
19335 | # If there is no Makefile yet, we rely on a make rule to execute |
19336 | # `config.status --recheck' to rerun these tests and create the |
19337 | # libtool script then. |
19338 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19339 | if test -f "$ltmain_in"; then |
19340 | test -f Makefile && make "$ltmain" |
19341 | fi |
19342 | fi |
19343 | |
19344 | |
19345 | ac_ext=c |
19346 | ac_cpp='$CPP $CPPFLAGS' |
19347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19350 | |
19351 | CC="$lt_save_CC" |
19352 | |
19353 | ;; |
19354 | |
19355 | *) |
19356 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19357 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19358 | { (exit 1); exit 1; }; } |
19359 | ;; |
19360 | esac |
19361 | |
19362 | # Append the new tag name to the list of available tags. |
19363 | if test -n "$tagname" ; then |
19364 | available_tags="$available_tags $tagname" |
19365 | fi |
19366 | fi |
19367 | done |
19368 | IFS="$lt_save_ifs" |
19369 | |
19370 | # Now substitute the updated list of available tags. |
19371 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19372 | mv "${ofile}T" "$ofile" |
19373 | chmod +x "$ofile" |
19374 | else |
19375 | rm -f "${ofile}T" |
19376 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19377 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19378 | { (exit 1); exit 1; }; } |
19379 | fi |
19380 | fi |
19381 | |
19382 | |
19383 | |
19384 | # This can be used to rebuild libtool when needed |
19385 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19386 | |
19387 | # Always use our own libtool. |
19388 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19389 | |
19390 | # Prevent multiple expansion |
19391 | |
19392 | |
19393 | |
19394 | |
19395 | |
19396 | |
19397 | |
19398 | |
19399 | |
19400 | |
19401 | |
19402 | |
19403 | |
19404 | |
19405 | |
19406 | |
19407 | |
19408 | |
19409 | |
19410 | |
19411 | |
19412 | if test x$GCC = xyes |
19413 | then |
19414 | CFLAGS="-Wall $CFLAGS" |
19415 | fi |
19416 | if test x$GXX = xyes |
19417 | then |
19418 | CXXFLAGS="-Wall $CXXFLAGS" |
19419 | fi |
19420 | |
dd184caf |
19421 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
19422 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
d9898ee8 |
19423 | if test "${ac_cv_c_const+set}" = set; then |
19424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19425 | else |
19426 | cat >conftest.$ac_ext <<_ACEOF |
19427 | /* confdefs.h. */ |
19428 | _ACEOF |
19429 | cat confdefs.h >>conftest.$ac_ext |
19430 | cat >>conftest.$ac_ext <<_ACEOF |
19431 | /* end confdefs.h. */ |
19432 | |
19433 | int |
19434 | main () |
19435 | { |
19436 | /* FIXME: Include the comments suggested by Paul. */ |
19437 | #ifndef __cplusplus |
19438 | /* Ultrix mips cc rejects this. */ |
19439 | typedef int charset[2]; |
dd184caf |
19440 | const charset cs; |
d9898ee8 |
19441 | /* SunOS 4.1.1 cc rejects this. */ |
dd184caf |
19442 | char const *const *pcpcc; |
19443 | char **ppc; |
d9898ee8 |
19444 | /* NEC SVR4.0.2 mips cc rejects this. */ |
19445 | struct point {int x, y;}; |
19446 | static struct point const zero = {0,0}; |
19447 | /* AIX XL C 1.02.0.0 rejects this. |
19448 | It does not let you subtract one const X* pointer from another in |
19449 | an arm of an if-expression whose if-part is not a constant |
19450 | expression */ |
19451 | const char *g = "string"; |
dd184caf |
19452 | pcpcc = &g + (g ? g-g : 0); |
d9898ee8 |
19453 | /* HPUX 7.0 cc rejects these. */ |
dd184caf |
19454 | ++pcpcc; |
19455 | ppc = (char**) pcpcc; |
19456 | pcpcc = (char const *const *) ppc; |
d9898ee8 |
19457 | { /* SCO 3.2v4 cc rejects this. */ |
19458 | char *t; |
19459 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
19460 | |
19461 | *t++ = 0; |
dd184caf |
19462 | if (s) return 0; |
d9898ee8 |
19463 | } |
19464 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
19465 | int x[] = {25, 17}; |
19466 | const int *foo = &x[0]; |
19467 | ++foo; |
19468 | } |
19469 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
19470 | typedef const int *iptr; |
19471 | iptr p = 0; |
19472 | ++p; |
19473 | } |
19474 | { /* AIX XL C 1.02.0.0 rejects this saying |
19475 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
19476 | struct s { int j; const int *ap[3]; }; |
19477 | struct s *b; b->j = 5; |
19478 | } |
19479 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
19480 | const int foo = 10; |
dd184caf |
19481 | if (!foo) return 0; |
d9898ee8 |
19482 | } |
dd184caf |
19483 | return !cs[0] && !zero.x; |
d9898ee8 |
19484 | #endif |
19485 | |
19486 | ; |
19487 | return 0; |
19488 | } |
19489 | _ACEOF |
19490 | rm -f conftest.$ac_objext |
dd184caf |
19491 | if { (ac_try="$ac_compile" |
19492 | case "(($ac_try" in |
19493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19494 | *) ac_try_echo=$ac_try;; |
19495 | esac |
19496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19497 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19498 | ac_status=$? |
19499 | grep -v '^ *+' conftest.er1 >conftest.err |
19500 | rm -f conftest.er1 |
19501 | cat conftest.err >&5 |
19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19503 | (exit $ac_status); } && { |
19504 | test -z "$ac_c_werror_flag" || |
19505 | test ! -s conftest.err |
19506 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19507 | ac_cv_c_const=yes |
19508 | else |
19509 | echo "$as_me: failed program was:" >&5 |
19510 | sed 's/^/| /' conftest.$ac_ext >&5 |
19511 | |
dd184caf |
19512 | ac_cv_c_const=no |
d9898ee8 |
19513 | fi |
dd184caf |
19514 | |
19515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19516 | fi |
dd184caf |
19517 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
19518 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
d9898ee8 |
19519 | if test $ac_cv_c_const = no; then |
19520 | |
19521 | cat >>confdefs.h <<\_ACEOF |
19522 | #define const |
19523 | _ACEOF |
19524 | |
19525 | fi |
19526 | |
dd184caf |
19527 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19528 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
19529 | if test "${ac_cv_header_stdc+set}" = set; then |
19530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19531 | else |
19532 | cat >conftest.$ac_ext <<_ACEOF |
19533 | /* confdefs.h. */ |
19534 | _ACEOF |
19535 | cat confdefs.h >>conftest.$ac_ext |
19536 | cat >>conftest.$ac_ext <<_ACEOF |
19537 | /* end confdefs.h. */ |
19538 | #include <stdlib.h> |
19539 | #include <stdarg.h> |
19540 | #include <string.h> |
19541 | #include <float.h> |
19542 | |
19543 | int |
19544 | main () |
19545 | { |
19546 | |
19547 | ; |
19548 | return 0; |
19549 | } |
19550 | _ACEOF |
19551 | rm -f conftest.$ac_objext |
dd184caf |
19552 | if { (ac_try="$ac_compile" |
19553 | case "(($ac_try" in |
19554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19555 | *) ac_try_echo=$ac_try;; |
19556 | esac |
19557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19558 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19559 | ac_status=$? |
19560 | grep -v '^ *+' conftest.er1 >conftest.err |
19561 | rm -f conftest.er1 |
19562 | cat conftest.err >&5 |
19563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19564 | (exit $ac_status); } && { |
19565 | test -z "$ac_c_werror_flag" || |
19566 | test ! -s conftest.err |
19567 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19568 | ac_cv_header_stdc=yes |
19569 | else |
19570 | echo "$as_me: failed program was:" >&5 |
19571 | sed 's/^/| /' conftest.$ac_ext >&5 |
19572 | |
dd184caf |
19573 | ac_cv_header_stdc=no |
d9898ee8 |
19574 | fi |
dd184caf |
19575 | |
19576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19577 | |
19578 | if test $ac_cv_header_stdc = yes; then |
19579 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
19580 | cat >conftest.$ac_ext <<_ACEOF |
19581 | /* confdefs.h. */ |
19582 | _ACEOF |
19583 | cat confdefs.h >>conftest.$ac_ext |
19584 | cat >>conftest.$ac_ext <<_ACEOF |
19585 | /* end confdefs.h. */ |
19586 | #include <string.h> |
19587 | |
19588 | _ACEOF |
19589 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19590 | $EGREP "memchr" >/dev/null 2>&1; then |
19591 | : |
19592 | else |
19593 | ac_cv_header_stdc=no |
19594 | fi |
19595 | rm -f conftest* |
19596 | |
19597 | fi |
19598 | |
19599 | if test $ac_cv_header_stdc = yes; then |
19600 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
19601 | cat >conftest.$ac_ext <<_ACEOF |
19602 | /* confdefs.h. */ |
19603 | _ACEOF |
19604 | cat confdefs.h >>conftest.$ac_ext |
19605 | cat >>conftest.$ac_ext <<_ACEOF |
19606 | /* end confdefs.h. */ |
19607 | #include <stdlib.h> |
19608 | |
19609 | _ACEOF |
19610 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19611 | $EGREP "free" >/dev/null 2>&1; then |
19612 | : |
19613 | else |
19614 | ac_cv_header_stdc=no |
19615 | fi |
19616 | rm -f conftest* |
19617 | |
19618 | fi |
19619 | |
19620 | if test $ac_cv_header_stdc = yes; then |
19621 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
19622 | if test "$cross_compiling" = yes; then |
19623 | : |
19624 | else |
19625 | cat >conftest.$ac_ext <<_ACEOF |
19626 | /* confdefs.h. */ |
19627 | _ACEOF |
19628 | cat confdefs.h >>conftest.$ac_ext |
19629 | cat >>conftest.$ac_ext <<_ACEOF |
19630 | /* end confdefs.h. */ |
19631 | #include <ctype.h> |
dd184caf |
19632 | #include <stdlib.h> |
d9898ee8 |
19633 | #if ((' ' & 0x0FF) == 0x020) |
19634 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
19635 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
19636 | #else |
19637 | # define ISLOWER(c) \ |
19638 | (('a' <= (c) && (c) <= 'i') \ |
19639 | || ('j' <= (c) && (c) <= 'r') \ |
19640 | || ('s' <= (c) && (c) <= 'z')) |
19641 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
19642 | #endif |
19643 | |
19644 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
19645 | int |
19646 | main () |
19647 | { |
19648 | int i; |
19649 | for (i = 0; i < 256; i++) |
19650 | if (XOR (islower (i), ISLOWER (i)) |
19651 | || toupper (i) != TOUPPER (i)) |
dd184caf |
19652 | return 2; |
19653 | return 0; |
d9898ee8 |
19654 | } |
19655 | _ACEOF |
19656 | rm -f conftest$ac_exeext |
dd184caf |
19657 | if { (ac_try="$ac_link" |
19658 | case "(($ac_try" in |
19659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19660 | *) ac_try_echo=$ac_try;; |
19661 | esac |
19662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19663 | (eval "$ac_link") 2>&5 |
d9898ee8 |
19664 | ac_status=$? |
19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
19667 | { (case "(($ac_try" in |
19668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19669 | *) ac_try_echo=$ac_try;; |
19670 | esac |
19671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19672 | (eval "$ac_try") 2>&5 |
d9898ee8 |
19673 | ac_status=$? |
19674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19675 | (exit $ac_status); }; }; then |
19676 | : |
19677 | else |
19678 | echo "$as_me: program exited with status $ac_status" >&5 |
19679 | echo "$as_me: failed program was:" >&5 |
19680 | sed 's/^/| /' conftest.$ac_ext >&5 |
19681 | |
19682 | ( exit $ac_status ) |
19683 | ac_cv_header_stdc=no |
19684 | fi |
dd184caf |
19685 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19686 | fi |
dd184caf |
19687 | |
19688 | |
d9898ee8 |
19689 | fi |
19690 | fi |
dd184caf |
19691 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19692 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
19693 | if test $ac_cv_header_stdc = yes; then |
19694 | |
19695 | cat >>confdefs.h <<\_ACEOF |
19696 | #define STDC_HEADERS 1 |
19697 | _ACEOF |
19698 | |
19699 | fi |
19700 | |
19701 | |
19702 | |
19703 | |
19704 | for ac_header in fcntl.h string.h syslog.h |
19705 | do |
19706 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
19707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19712 | fi |
dd184caf |
19713 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19714 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19715 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19716 | else |
19717 | # Is the header compilable? |
dd184caf |
19718 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19719 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19720 | cat >conftest.$ac_ext <<_ACEOF |
19721 | /* confdefs.h. */ |
19722 | _ACEOF |
19723 | cat confdefs.h >>conftest.$ac_ext |
19724 | cat >>conftest.$ac_ext <<_ACEOF |
19725 | /* end confdefs.h. */ |
19726 | $ac_includes_default |
19727 | #include <$ac_header> |
19728 | _ACEOF |
19729 | rm -f conftest.$ac_objext |
dd184caf |
19730 | if { (ac_try="$ac_compile" |
19731 | case "(($ac_try" in |
19732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19733 | *) ac_try_echo=$ac_try;; |
19734 | esac |
19735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19736 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19737 | ac_status=$? |
19738 | grep -v '^ *+' conftest.er1 >conftest.err |
19739 | rm -f conftest.er1 |
19740 | cat conftest.err >&5 |
19741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19742 | (exit $ac_status); } && { |
19743 | test -z "$ac_c_werror_flag" || |
19744 | test ! -s conftest.err |
19745 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19746 | ac_header_compiler=yes |
19747 | else |
19748 | echo "$as_me: failed program was:" >&5 |
19749 | sed 's/^/| /' conftest.$ac_ext >&5 |
19750 | |
dd184caf |
19751 | ac_header_compiler=no |
d9898ee8 |
19752 | fi |
dd184caf |
19753 | |
19754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19755 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19756 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19757 | |
19758 | # Is the header present? |
dd184caf |
19759 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19760 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19761 | cat >conftest.$ac_ext <<_ACEOF |
19762 | /* confdefs.h. */ |
19763 | _ACEOF |
19764 | cat confdefs.h >>conftest.$ac_ext |
19765 | cat >>conftest.$ac_ext <<_ACEOF |
19766 | /* end confdefs.h. */ |
19767 | #include <$ac_header> |
19768 | _ACEOF |
dd184caf |
19769 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19770 | case "(($ac_try" in |
19771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19772 | *) ac_try_echo=$ac_try;; |
19773 | esac |
19774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19775 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19776 | ac_status=$? |
19777 | grep -v '^ *+' conftest.er1 >conftest.err |
19778 | rm -f conftest.er1 |
19779 | cat conftest.err >&5 |
19780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19781 | (exit $ac_status); } >/dev/null && { |
19782 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19783 | test ! -s conftest.err |
19784 | }; then |
d9898ee8 |
19785 | ac_header_preproc=yes |
19786 | else |
19787 | echo "$as_me: failed program was:" >&5 |
19788 | sed 's/^/| /' conftest.$ac_ext >&5 |
19789 | |
19790 | ac_header_preproc=no |
19791 | fi |
dd184caf |
19792 | |
d9898ee8 |
19793 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
19794 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19795 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19796 | |
19797 | # So? What about this header? |
19798 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19799 | yes:no: ) |
19800 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19801 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19803 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19804 | ac_header_preproc=yes |
19805 | ;; |
19806 | no:yes:* ) |
19807 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19808 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19809 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19810 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19811 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19812 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19813 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19814 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19816 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19817 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19818 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
19819 | ( cat <<\_ASBOX |
d9898ee8 |
19820 | ## -------------------------------------------------- ## |
19821 | ## Report this to courier-users@lists.sourceforge.net ## |
19822 | ## -------------------------------------------------- ## |
19823 | _ASBOX |
dd184caf |
19824 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19825 | ;; |
19826 | esac |
dd184caf |
19827 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19829 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19831 | else |
19832 | eval "$as_ac_Header=\$ac_header_preproc" |
19833 | fi |
dd184caf |
19834 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19835 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19836 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19837 | |
19838 | fi |
19839 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19840 | cat >>confdefs.h <<_ACEOF |
19841 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19842 | _ACEOF |
19843 | |
19844 | fi |
19845 | |
19846 | done |
19847 | |
dd184caf |
19848 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19849 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
d9898ee8 |
19850 | if test "${ac_cv_type_uid_t+set}" = set; then |
19851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19852 | else |
19853 | cat >conftest.$ac_ext <<_ACEOF |
19854 | /* confdefs.h. */ |
19855 | _ACEOF |
19856 | cat confdefs.h >>conftest.$ac_ext |
19857 | cat >>conftest.$ac_ext <<_ACEOF |
19858 | /* end confdefs.h. */ |
19859 | #include <sys/types.h> |
19860 | |
19861 | _ACEOF |
19862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19863 | $EGREP "uid_t" >/dev/null 2>&1; then |
19864 | ac_cv_type_uid_t=yes |
19865 | else |
19866 | ac_cv_type_uid_t=no |
19867 | fi |
19868 | rm -f conftest* |
19869 | |
19870 | fi |
dd184caf |
19871 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19872 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
d9898ee8 |
19873 | if test $ac_cv_type_uid_t = no; then |
19874 | |
19875 | cat >>confdefs.h <<\_ACEOF |
19876 | #define uid_t int |
19877 | _ACEOF |
19878 | |
19879 | |
19880 | cat >>confdefs.h <<\_ACEOF |
19881 | #define gid_t int |
19882 | _ACEOF |
19883 | |
19884 | fi |
19885 | |
19886 | |
19887 | for ac_func in strchr |
19888 | do |
19889 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
19890 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19891 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
19892 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19894 | else |
19895 | cat >conftest.$ac_ext <<_ACEOF |
19896 | /* confdefs.h. */ |
19897 | _ACEOF |
19898 | cat confdefs.h >>conftest.$ac_ext |
19899 | cat >>conftest.$ac_ext <<_ACEOF |
19900 | /* end confdefs.h. */ |
19901 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19902 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19903 | #define $ac_func innocuous_$ac_func |
19904 | |
19905 | /* System header to define __stub macros and hopefully few prototypes, |
19906 | which can conflict with char $ac_func (); below. |
19907 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19908 | <limits.h> exists even on freestanding compilers. */ |
19909 | |
19910 | #ifdef __STDC__ |
19911 | # include <limits.h> |
19912 | #else |
19913 | # include <assert.h> |
19914 | #endif |
19915 | |
19916 | #undef $ac_func |
19917 | |
dd184caf |
19918 | /* Override any GCC internal prototype to avoid an error. |
19919 | Use char because int might match the return type of a GCC |
19920 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
19921 | #ifdef __cplusplus |
19922 | extern "C" |
d9898ee8 |
19923 | #endif |
d9898ee8 |
19924 | char $ac_func (); |
19925 | /* The GNU C library defines this for functions which it implements |
19926 | to always fail with ENOSYS. Some functions are actually named |
19927 | something starting with __ and the normal name is an alias. */ |
dd184caf |
19928 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
19929 | choke me |
d9898ee8 |
19930 | #endif |
19931 | |
19932 | int |
19933 | main () |
19934 | { |
dd184caf |
19935 | return $ac_func (); |
d9898ee8 |
19936 | ; |
19937 | return 0; |
19938 | } |
19939 | _ACEOF |
19940 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
19941 | if { (ac_try="$ac_link" |
19942 | case "(($ac_try" in |
19943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19944 | *) ac_try_echo=$ac_try;; |
19945 | esac |
19946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19947 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
19948 | ac_status=$? |
19949 | grep -v '^ *+' conftest.er1 >conftest.err |
19950 | rm -f conftest.er1 |
19951 | cat conftest.err >&5 |
19952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19953 | (exit $ac_status); } && { |
19954 | test -z "$ac_c_werror_flag" || |
19955 | test ! -s conftest.err |
19956 | } && test -s conftest$ac_exeext && |
19957 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
19958 | eval "$as_ac_var=yes" |
19959 | else |
19960 | echo "$as_me: failed program was:" >&5 |
19961 | sed 's/^/| /' conftest.$ac_ext >&5 |
19962 | |
dd184caf |
19963 | eval "$as_ac_var=no" |
d9898ee8 |
19964 | fi |
dd184caf |
19965 | |
19966 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
19967 | conftest$ac_exeext conftest.$ac_ext |
19968 | fi |
dd184caf |
19969 | ac_res=`eval echo '${'$as_ac_var'}'` |
19970 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19971 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19972 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19973 | cat >>confdefs.h <<_ACEOF |
19974 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19975 | _ACEOF |
19976 | |
19977 | fi |
19978 | done |
19979 | |
19980 | |
19981 | |
dd184caf |
19982 | # Check whether --with-syslog was given. |
d9898ee8 |
19983 | if test "${with_syslog+set}" = set; then |
dd184caf |
19984 | withval=$with_syslog; logdest="LOG_$withval" |
d9898ee8 |
19985 | else |
19986 | logdest="LOG_MAIL" |
dd184caf |
19987 | fi |
19988 | |
d9898ee8 |
19989 | |
19990 | |
19991 | cat >>confdefs.h <<_ACEOF |
19992 | #define LOG_DEST $logdest |
19993 | _ACEOF |
19994 | |
dd184caf |
19995 | if test -d ${srcdir}/../docbook; then |
d9898ee8 |
19996 | HAVE_SGML_TRUE= |
19997 | HAVE_SGML_FALSE='#' |
19998 | else |
19999 | HAVE_SGML_TRUE='#' |
20000 | HAVE_SGML_FALSE= |
20001 | fi |
20002 | |
dd184caf |
20003 | ac_config_files="$ac_config_files Makefile" |
20004 | |
d9898ee8 |
20005 | cat >confcache <<\_ACEOF |
20006 | # This file is a shell script that caches the results of configure |
20007 | # tests run on this system so they can be shared between configure |
20008 | # scripts and configure runs, see configure's option --config-cache. |
20009 | # It is not useful on other systems. If it contains results you don't |
20010 | # want to keep, you may remove or edit it. |
20011 | # |
20012 | # config.status only pays attention to the cache file if you give it |
20013 | # the --recheck option to rerun configure. |
20014 | # |
20015 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
20016 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
20017 | # following values. |
20018 | |
20019 | _ACEOF |
20020 | |
20021 | # The following way of writing the cache mishandles newlines in values, |
20022 | # but we know of no workaround that is simple, portable, and efficient. |
dd184caf |
20023 | # So, we kill variables containing newlines. |
d9898ee8 |
20024 | # Ultrix sh set writes to stderr and can't be redirected directly, |
20025 | # and sets the high bit in the cache file unless we assign to the vars. |
dd184caf |
20026 | ( |
20027 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
20028 | eval ac_val=\$$ac_var |
20029 | case $ac_val in #( |
20030 | *${as_nl}*) |
20031 | case $ac_var in #( |
20032 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
20033 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
20034 | esac |
20035 | case $ac_var in #( |
20036 | _ | IFS | as_nl) ;; #( |
20037 | *) $as_unset $ac_var ;; |
20038 | esac ;; |
20039 | esac |
20040 | done |
20041 | |
d9898ee8 |
20042 | (set) 2>&1 | |
dd184caf |
20043 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
20044 | *${as_nl}ac_space=\ *) |
d9898ee8 |
20045 | # `set' does not quote correctly, so add quotes (double-quote |
20046 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
20047 | sed -n \ |
20048 | "s/'/'\\\\''/g; |
20049 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
dd184caf |
20050 | ;; #( |
d9898ee8 |
20051 | *) |
20052 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
dd184caf |
20053 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
20054 | ;; |
dd184caf |
20055 | esac | |
20056 | sort |
20057 | ) | |
d9898ee8 |
20058 | sed ' |
dd184caf |
20059 | /^ac_cv_env_/b end |
d9898ee8 |
20060 | t clear |
dd184caf |
20061 | :clear |
d9898ee8 |
20062 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
20063 | t end |
dd184caf |
20064 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
20065 | :end' >>confcache |
20066 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
20067 | if test -w "$cache_file"; then |
20068 | test "x$cache_file" != "x/dev/null" && |
20069 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
20070 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
20071 | cat confcache >$cache_file |
20072 | else |
dd184caf |
20073 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
20074 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
20075 | fi |
20076 | fi |
20077 | rm -f confcache |
20078 | |
20079 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20080 | # Let make expand exec_prefix. |
20081 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
20082 | |
d9898ee8 |
20083 | DEFS=-DHAVE_CONFIG_H |
20084 | |
20085 | ac_libobjs= |
20086 | ac_ltlibobjs= |
20087 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
20088 | # 1. Remove the extension, and $U if already installed. |
dd184caf |
20089 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
20090 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
20091 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
20092 | # will be set to the directory where LIBOBJS objects are built. |
20093 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
20094 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
20095 | done |
20096 | LIBOBJS=$ac_libobjs |
20097 | |
20098 | LTLIBOBJS=$ac_ltlibobjs |
20099 | |
20100 | |
20101 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20102 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
20103 | Usually this means the macro was only invoked conditionally." >&5 |
20104 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
20105 | Usually this means the macro was only invoked conditionally." >&2;} |
20106 | { (exit 1); exit 1; }; } |
20107 | fi |
20108 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20109 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
20110 | Usually this means the macro was only invoked conditionally." >&5 |
20111 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
20112 | Usually this means the macro was only invoked conditionally." >&2;} |
20113 | { (exit 1); exit 1; }; } |
20114 | fi |
20115 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20116 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
20117 | Usually this means the macro was only invoked conditionally." >&5 |
20118 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
20119 | Usually this means the macro was only invoked conditionally." >&2;} |
20120 | { (exit 1); exit 1; }; } |
20121 | fi |
20122 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
20123 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
20124 | Usually this means the macro was only invoked conditionally." >&5 |
20125 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
20126 | Usually this means the macro was only invoked conditionally." >&2;} |
20127 | { (exit 1); exit 1; }; } |
20128 | fi |
20129 | |
20130 | : ${CONFIG_STATUS=./config.status} |
20131 | ac_clean_files_save=$ac_clean_files |
20132 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
20133 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
20134 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
20135 | cat >$CONFIG_STATUS <<_ACEOF |
20136 | #! $SHELL |
20137 | # Generated by $as_me. |
20138 | # Run this file to recreate the current configuration. |
20139 | # Compiler output produced by configure, useful for debugging |
20140 | # configure, is in config.log if it exists. |
20141 | |
20142 | debug=false |
20143 | ac_cs_recheck=false |
20144 | ac_cs_silent=false |
20145 | SHELL=\${CONFIG_SHELL-$SHELL} |
20146 | _ACEOF |
20147 | |
20148 | cat >>$CONFIG_STATUS <<\_ACEOF |
20149 | ## --------------------- ## |
20150 | ## M4sh Initialization. ## |
20151 | ## --------------------- ## |
20152 | |
dd184caf |
20153 | # Be more Bourne compatible |
20154 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
20155 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
20156 | emulate sh |
20157 | NULLCMD=: |
20158 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20159 | # is contrary to our usage. Disable this feature. |
20160 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
20161 | setopt NO_GLOB_SUBST |
20162 | else |
20163 | case `(set -o) 2>/dev/null` in |
20164 | *posix*) set -o posix ;; |
20165 | esac |
20166 | |
20167 | fi |
20168 | |
20169 | |
20170 | |
20171 | |
20172 | # PATH needs CR |
20173 | # Avoid depending upon Character Ranges. |
20174 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
20175 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
20176 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
20177 | as_cr_digits='0123456789' |
20178 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
20179 | |
20180 | # The user is always right. |
20181 | if test "${PATH_SEPARATOR+set}" != set; then |
20182 | echo "#! /bin/sh" >conf$$.sh |
20183 | echo "exit 0" >>conf$$.sh |
20184 | chmod +x conf$$.sh |
20185 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
20186 | PATH_SEPARATOR=';' |
20187 | else |
20188 | PATH_SEPARATOR=: |
20189 | fi |
20190 | rm -f conf$$.sh |
d9898ee8 |
20191 | fi |
d9898ee8 |
20192 | |
20193 | # Support unset when possible. |
20194 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
20195 | as_unset=unset |
20196 | else |
20197 | as_unset=false |
20198 | fi |
20199 | |
20200 | |
dd184caf |
20201 | # IFS |
20202 | # We need space, tab and new line, in precisely that order. Quoting is |
20203 | # there to prevent editors from complaining about space-tab. |
20204 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
20205 | # splitting by setting IFS to empty value.) |
20206 | as_nl=' |
20207 | ' |
20208 | IFS=" "" $as_nl" |
20209 | |
20210 | # Find who we are. Look in the path if we contain no directory separator. |
20211 | case $0 in |
20212 | *[\\/]* ) as_myself=$0 ;; |
20213 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20214 | for as_dir in $PATH |
20215 | do |
20216 | IFS=$as_save_IFS |
20217 | test -z "$as_dir" && as_dir=. |
20218 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
20219 | done |
20220 | IFS=$as_save_IFS |
20221 | |
20222 | ;; |
20223 | esac |
20224 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20225 | # in which case we are not to be found in the path. |
20226 | if test "x$as_myself" = x; then |
20227 | as_myself=$0 |
20228 | fi |
20229 | if test ! -f "$as_myself"; then |
20230 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
20231 | { (exit 1); exit 1; } |
20232 | fi |
20233 | |
d9898ee8 |
20234 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
20235 | for as_var in ENV MAIL MAILPATH |
20236 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
20237 | done |
d9898ee8 |
20238 | PS1='$ ' |
20239 | PS2='> ' |
20240 | PS4='+ ' |
20241 | |
20242 | # NLS nuisances. |
20243 | for as_var in \ |
20244 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
20245 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
20246 | LC_TELEPHONE LC_TIME |
20247 | do |
20248 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
20249 | eval $as_var=C; export $as_var |
20250 | else |
dd184caf |
20251 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
20252 | fi |
20253 | done |
20254 | |
20255 | # Required to use basename. |
dd184caf |
20256 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20257 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20258 | as_expr=expr |
20259 | else |
20260 | as_expr=false |
20261 | fi |
20262 | |
dd184caf |
20263 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
20264 | as_basename=basename |
20265 | else |
20266 | as_basename=false |
20267 | fi |
20268 | |
20269 | |
20270 | # Name of the executable. |
dd184caf |
20271 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
20272 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
20273 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
20274 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20275 | echo X/"$0" | |
dd184caf |
20276 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
20277 | s//\1/ |
20278 | q |
20279 | } |
20280 | /^X\/\(\/\/\)$/{ |
20281 | s//\1/ |
20282 | q |
20283 | } |
20284 | /^X\/\(\/\).*/{ |
20285 | s//\1/ |
20286 | q |
20287 | } |
20288 | s/.*/./; q'` |
d9898ee8 |
20289 | |
dd184caf |
20290 | # CDPATH. |
20291 | $as_unset CDPATH |
d9898ee8 |
20292 | |
20293 | |
d9898ee8 |
20294 | |
d9898ee8 |
20295 | as_lineno_1=$LINENO |
20296 | as_lineno_2=$LINENO |
d9898ee8 |
20297 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
20298 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
20299 | |
20300 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20301 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
20302 | # line-number line after each line using $LINENO; the second 'sed' |
20303 | # does the real work. The second script uses 'N' to pair each |
20304 | # line-number line with the line containing $LINENO, and appends |
20305 | # trailing '-' during substitution so that $LINENO is not a special |
20306 | # case at line end. |
d9898ee8 |
20307 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
20308 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
20309 | # E. McMahon (1931-1989) for sed's syntax. :-) |
20310 | sed -n ' |
20311 | p |
20312 | /[$]LINENO/= |
20313 | ' <$as_myself | |
d9898ee8 |
20314 | sed ' |
dd184caf |
20315 | s/[$]LINENO.*/&-/ |
20316 | t lineno |
20317 | b |
20318 | :lineno |
d9898ee8 |
20319 | N |
dd184caf |
20320 | :loop |
20321 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
20322 | t loop |
dd184caf |
20323 | s/-\n.*// |
d9898ee8 |
20324 | ' >$as_me.lineno && |
dd184caf |
20325 | chmod +x "$as_me.lineno" || |
20326 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
20327 | { (exit 1); exit 1; }; } |
20328 | |
20329 | # Don't try to exec as it changes $[0], causing all sort of problems |
20330 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
20331 | # original and so on. Autoconf is especially sensitive to this). |
20332 | . "./$as_me.lineno" |
d9898ee8 |
20333 | # Exit status is that of the last command. |
20334 | exit |
20335 | } |
20336 | |
20337 | |
dd184caf |
20338 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20339 | as_dirname=dirname |
20340 | else |
20341 | as_dirname=false |
20342 | fi |
20343 | |
20344 | ECHO_C= ECHO_N= ECHO_T= |
20345 | case `echo -n x` in |
20346 | -n*) |
20347 | case `echo 'x\c'` in |
20348 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
20349 | *) ECHO_C='\c';; |
20350 | esac;; |
20351 | *) |
20352 | ECHO_N='-n';; |
d9898ee8 |
20353 | esac |
20354 | |
dd184caf |
20355 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20356 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20357 | as_expr=expr |
20358 | else |
20359 | as_expr=false |
20360 | fi |
20361 | |
20362 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
20363 | if test -d conf$$.dir; then |
20364 | rm -f conf$$.dir/conf$$.file |
20365 | else |
20366 | rm -f conf$$.dir |
20367 | mkdir conf$$.dir |
20368 | fi |
d9898ee8 |
20369 | echo >conf$$.file |
20370 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
20371 | as_ln_s='ln -s' |
20372 | # ... but there are two gotchas: |
20373 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
20374 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
20375 | # In both cases, we have to default to `cp -p'. |
20376 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
20377 | as_ln_s='cp -p' |
d9898ee8 |
20378 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20379 | as_ln_s=ln |
20380 | else |
20381 | as_ln_s='cp -p' |
20382 | fi |
dd184caf |
20383 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20384 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
20385 | |
20386 | if mkdir -p . 2>/dev/null; then |
20387 | as_mkdir_p=: |
20388 | else |
20389 | test -d ./-p && rmdir ./-p |
20390 | as_mkdir_p=false |
20391 | fi |
20392 | |
dd184caf |
20393 | if test -x / >/dev/null 2>&1; then |
20394 | as_test_x='test -x' |
20395 | else |
20396 | if ls -dL / >/dev/null 2>&1; then |
20397 | as_ls_L_option=L |
20398 | else |
20399 | as_ls_L_option= |
20400 | fi |
20401 | as_test_x=' |
20402 | eval sh -c '\'' |
20403 | if test -d "$1"; then |
20404 | test -d "$1/."; |
20405 | else |
20406 | case $1 in |
20407 | -*)set "./$1";; |
20408 | esac; |
20409 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
20410 | ???[sx]*):;;*)false;;esac;fi |
20411 | '\'' sh |
20412 | ' |
20413 | fi |
20414 | as_executable_p=$as_test_x |
d9898ee8 |
20415 | |
20416 | # Sed expression to map a string onto a valid CPP name. |
20417 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
20418 | |
20419 | # Sed expression to map a string onto a valid variable name. |
20420 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
20421 | |
20422 | |
d9898ee8 |
20423 | exec 6>&1 |
20424 | |
dd184caf |
20425 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
20426 | # report actual input values of CONFIG_FILES etc. instead of their |
dd184caf |
20427 | # values after options handling. |
20428 | ac_log=" |
d9898ee8 |
20429 | This file was extended by courierlogger $as_me 0.10, which was |
dd184caf |
20430 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
20431 | |
20432 | CONFIG_FILES = $CONFIG_FILES |
20433 | CONFIG_HEADERS = $CONFIG_HEADERS |
20434 | CONFIG_LINKS = $CONFIG_LINKS |
20435 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
20436 | $ $0 $@ |
20437 | |
dd184caf |
20438 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20439 | " |
20440 | |
d9898ee8 |
20441 | _ACEOF |
20442 | |
dd184caf |
20443 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
20444 | # Files that config.status was made for. |
dd184caf |
20445 | config_files="$ac_config_files" |
20446 | config_headers="$ac_config_headers" |
20447 | config_commands="$ac_config_commands" |
d9898ee8 |
20448 | |
dd184caf |
20449 | _ACEOF |
d9898ee8 |
20450 | |
20451 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
20452 | ac_cs_usage="\ |
20453 | \`$as_me' instantiates files from templates according to the |
20454 | current configuration. |
20455 | |
20456 | Usage: $0 [OPTIONS] [FILE]... |
20457 | |
20458 | -h, --help print this help, then exit |
dd184caf |
20459 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
20460 | -q, --quiet do not print progress messages |
20461 | -d, --debug don't remove temporary files |
20462 | --recheck update $as_me by reconfiguring in the same conditions |
20463 | --file=FILE[:TEMPLATE] |
20464 | instantiate the configuration file FILE |
20465 | --header=FILE[:TEMPLATE] |
20466 | instantiate the configuration header FILE |
20467 | |
20468 | Configuration files: |
20469 | $config_files |
20470 | |
20471 | Configuration headers: |
20472 | $config_headers |
20473 | |
20474 | Configuration commands: |
20475 | $config_commands |
20476 | |
20477 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
20478 | |
dd184caf |
20479 | _ACEOF |
d9898ee8 |
20480 | cat >>$CONFIG_STATUS <<_ACEOF |
20481 | ac_cs_version="\\ |
20482 | courierlogger config.status 0.10 |
dd184caf |
20483 | configured by $0, generated by GNU Autoconf 2.61, |
20484 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
20485 | |
dd184caf |
20486 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
20487 | This config.status script is free software; the Free Software Foundation |
20488 | gives unlimited permission to copy, distribute and modify it." |
dd184caf |
20489 | |
20490 | ac_pwd='$ac_pwd' |
20491 | srcdir='$srcdir' |
20492 | INSTALL='$INSTALL' |
20493 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
20494 | _ACEOF |
20495 | |
20496 | cat >>$CONFIG_STATUS <<\_ACEOF |
20497 | # If no file are specified by the user, then we need to provide default |
20498 | # value. By we need to know if files were specified by the user. |
20499 | ac_need_defaults=: |
20500 | while test $# != 0 |
20501 | do |
20502 | case $1 in |
20503 | --*=*) |
dd184caf |
20504 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20505 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
20506 | ac_shift=: |
20507 | ;; |
dd184caf |
20508 | *) |
d9898ee8 |
20509 | ac_option=$1 |
20510 | ac_optarg=$2 |
20511 | ac_shift=shift |
20512 | ;; |
d9898ee8 |
20513 | esac |
20514 | |
20515 | case $ac_option in |
20516 | # Handling of the options. |
d9898ee8 |
20517 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20518 | ac_cs_recheck=: ;; |
dd184caf |
20519 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
20520 | echo "$ac_cs_version"; exit ;; |
20521 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
20522 | debug=: ;; |
20523 | --file | --fil | --fi | --f ) |
20524 | $ac_shift |
20525 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
20526 | ac_need_defaults=false;; |
20527 | --header | --heade | --head | --hea ) |
20528 | $ac_shift |
20529 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
20530 | ac_need_defaults=false;; |
dd184caf |
20531 | --he | --h) |
20532 | # Conflict between --help and --header |
20533 | { echo "$as_me: error: ambiguous option: $1 |
20534 | Try \`$0 --help' for more information." >&2 |
20535 | { (exit 1); exit 1; }; };; |
20536 | --help | --hel | -h ) |
20537 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
20538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20539 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
20540 | ac_cs_silent=: ;; |
20541 | |
20542 | # This is an error. |
dd184caf |
20543 | -*) { echo "$as_me: error: unrecognized option: $1 |
20544 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
20545 | { (exit 1); exit 1; }; } ;; |
20546 | |
dd184caf |
20547 | *) ac_config_targets="$ac_config_targets $1" |
20548 | ac_need_defaults=false ;; |
d9898ee8 |
20549 | |
20550 | esac |
20551 | shift |
20552 | done |
20553 | |
20554 | ac_configure_extra_args= |
20555 | |
20556 | if $ac_cs_silent; then |
20557 | exec 6>/dev/null |
20558 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
20559 | fi |
20560 | |
20561 | _ACEOF |
20562 | cat >>$CONFIG_STATUS <<_ACEOF |
20563 | if \$ac_cs_recheck; then |
dd184caf |
20564 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20565 | CONFIG_SHELL=$SHELL |
20566 | export CONFIG_SHELL |
20567 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
20568 | fi |
20569 | |
20570 | _ACEOF |
dd184caf |
20571 | cat >>$CONFIG_STATUS <<\_ACEOF |
20572 | exec 5>>config.log |
20573 | { |
20574 | echo |
20575 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
20576 | ## Running $as_me. ## |
20577 | _ASBOX |
20578 | echo "$ac_log" |
20579 | } >&5 |
d9898ee8 |
20580 | |
dd184caf |
20581 | _ACEOF |
d9898ee8 |
20582 | cat >>$CONFIG_STATUS <<_ACEOF |
20583 | # |
dd184caf |
20584 | # INIT-COMMANDS |
d9898ee8 |
20585 | # |
d9898ee8 |
20586 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20587 | |
20588 | _ACEOF |
20589 | |
d9898ee8 |
20590 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20591 | |
20592 | # Handling of arguments. |
d9898ee8 |
20593 | for ac_config_target in $ac_config_targets |
20594 | do |
dd184caf |
20595 | case $ac_config_target in |
20596 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20597 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20598 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20599 | |
d9898ee8 |
20600 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20601 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20602 | { (exit 1); exit 1; }; };; |
20603 | esac |
20604 | done |
20605 | |
dd184caf |
20606 | |
d9898ee8 |
20607 | # If the user did not use the arguments to specify the items to instantiate, |
20608 | # then the envvar interface is used. Set only those that are not. |
20609 | # We use the long form for the default assignment because of an extremely |
20610 | # bizarre bug on SunOS 4.1.3. |
20611 | if $ac_need_defaults; then |
20612 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
20613 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
20614 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
20615 | fi |
20616 | |
20617 | # Have a temporary directory for convenience. Make it in the build tree |
dd184caf |
20618 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
20619 | # creating and moving files from /tmp can sometimes cause problems. |
dd184caf |
20620 | # Hook for its removal unless debugging. |
20621 | # Note that there is a small window in which the directory will not be cleaned: |
20622 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
20623 | $debug || |
20624 | { |
dd184caf |
20625 | tmp= |
20626 | trap 'exit_status=$? |
20627 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
20628 | ' 0 |
d9898ee8 |
20629 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
20630 | } |
d9898ee8 |
20631 | # Create a (secure) tmp directory for tmp files. |
20632 | |
20633 | { |
dd184caf |
20634 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
20635 | test -n "$tmp" && test -d "$tmp" |
20636 | } || |
20637 | { |
dd184caf |
20638 | tmp=./conf$$-$RANDOM |
20639 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
20640 | } || |
20641 | { |
20642 | echo "$me: cannot create a temporary directory in ." >&2 |
20643 | { (exit 1); exit 1; } |
20644 | } |
20645 | |
d9898ee8 |
20646 | # |
dd184caf |
20647 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
20648 | # |
20649 | |
20650 | # No need to generate the scripts if there are no CONFIG_FILES. |
20651 | # This happens for instance when ./config.status config.h |
dd184caf |
20652 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
20653 | |
20654 | _ACEOF |
20655 | |
dd184caf |
20656 | |
20657 | |
20658 | ac_delim='%!_!# ' |
20659 | for ac_last_try in false false false false false :; do |
20660 | cat >conf$$subs.sed <<_ACEOF |
20661 | SHELL!$SHELL$ac_delim |
20662 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
20663 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
20664 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
20665 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
20666 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
20667 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
20668 | exec_prefix!$exec_prefix$ac_delim |
20669 | prefix!$prefix$ac_delim |
20670 | program_transform_name!$program_transform_name$ac_delim |
20671 | bindir!$bindir$ac_delim |
20672 | sbindir!$sbindir$ac_delim |
20673 | libexecdir!$libexecdir$ac_delim |
20674 | datarootdir!$datarootdir$ac_delim |
20675 | datadir!$datadir$ac_delim |
20676 | sysconfdir!$sysconfdir$ac_delim |
20677 | sharedstatedir!$sharedstatedir$ac_delim |
20678 | localstatedir!$localstatedir$ac_delim |
20679 | includedir!$includedir$ac_delim |
20680 | oldincludedir!$oldincludedir$ac_delim |
20681 | docdir!$docdir$ac_delim |
20682 | infodir!$infodir$ac_delim |
20683 | htmldir!$htmldir$ac_delim |
20684 | dvidir!$dvidir$ac_delim |
20685 | pdfdir!$pdfdir$ac_delim |
20686 | psdir!$psdir$ac_delim |
20687 | libdir!$libdir$ac_delim |
20688 | localedir!$localedir$ac_delim |
20689 | mandir!$mandir$ac_delim |
20690 | DEFS!$DEFS$ac_delim |
20691 | ECHO_C!$ECHO_C$ac_delim |
20692 | ECHO_N!$ECHO_N$ac_delim |
20693 | ECHO_T!$ECHO_T$ac_delim |
20694 | LIBS!$LIBS$ac_delim |
20695 | build_alias!$build_alias$ac_delim |
20696 | host_alias!$host_alias$ac_delim |
20697 | target_alias!$target_alias$ac_delim |
20698 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
20699 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
20700 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
20701 | am__isrc!$am__isrc$ac_delim |
20702 | CYGPATH_W!$CYGPATH_W$ac_delim |
20703 | PACKAGE!$PACKAGE$ac_delim |
20704 | VERSION!$VERSION$ac_delim |
20705 | ACLOCAL!$ACLOCAL$ac_delim |
20706 | AUTOCONF!$AUTOCONF$ac_delim |
20707 | AUTOMAKE!$AUTOMAKE$ac_delim |
20708 | AUTOHEADER!$AUTOHEADER$ac_delim |
20709 | MAKEINFO!$MAKEINFO$ac_delim |
20710 | install_sh!$install_sh$ac_delim |
20711 | STRIP!$STRIP$ac_delim |
20712 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
20713 | mkdir_p!$mkdir_p$ac_delim |
20714 | AWK!$AWK$ac_delim |
20715 | SET_MAKE!$SET_MAKE$ac_delim |
20716 | am__leading_dot!$am__leading_dot$ac_delim |
20717 | AMTAR!$AMTAR$ac_delim |
20718 | am__tar!$am__tar$ac_delim |
20719 | am__untar!$am__untar$ac_delim |
20720 | CC!$CC$ac_delim |
20721 | CFLAGS!$CFLAGS$ac_delim |
20722 | LDFLAGS!$LDFLAGS$ac_delim |
20723 | CPPFLAGS!$CPPFLAGS$ac_delim |
20724 | ac_ct_CC!$ac_ct_CC$ac_delim |
20725 | EXEEXT!$EXEEXT$ac_delim |
20726 | OBJEXT!$OBJEXT$ac_delim |
20727 | DEPDIR!$DEPDIR$ac_delim |
20728 | am__include!$am__include$ac_delim |
20729 | am__quote!$am__quote$ac_delim |
20730 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
20731 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
20732 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
20733 | CCDEPMODE!$CCDEPMODE$ac_delim |
20734 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
20735 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
20736 | LN_S!$LN_S$ac_delim |
20737 | build!$build$ac_delim |
20738 | build_cpu!$build_cpu$ac_delim |
20739 | build_vendor!$build_vendor$ac_delim |
20740 | build_os!$build_os$ac_delim |
20741 | host!$host$ac_delim |
20742 | host_cpu!$host_cpu$ac_delim |
20743 | host_vendor!$host_vendor$ac_delim |
20744 | host_os!$host_os$ac_delim |
20745 | SED!$SED$ac_delim |
20746 | GREP!$GREP$ac_delim |
20747 | EGREP!$EGREP$ac_delim |
20748 | ECHO!$ECHO$ac_delim |
20749 | AR!$AR$ac_delim |
20750 | RANLIB!$RANLIB$ac_delim |
20751 | CPP!$CPP$ac_delim |
20752 | CXX!$CXX$ac_delim |
20753 | CXXFLAGS!$CXXFLAGS$ac_delim |
20754 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
20755 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
20756 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
20757 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
20758 | _ACEOF |
20759 | |
20760 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
20761 | break |
20762 | elif $ac_last_try; then |
20763 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20764 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20765 | { (exit 1); exit 1; }; } |
20766 | else |
20767 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
20768 | fi |
dd184caf |
20769 | done |
20770 | |
20771 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20772 | if test -n "$ac_eof"; then |
20773 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20774 | ac_eof=`expr $ac_eof + 1` |
20775 | fi |
d9898ee8 |
20776 | |
dd184caf |
20777 | cat >>$CONFIG_STATUS <<_ACEOF |
20778 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
20779 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20780 | _ACEOF |
20781 | sed ' |
20782 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20783 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20784 | :n |
20785 | t n |
20786 | s/'"$ac_delim"'$/,g/; t |
20787 | s/$/\\/; p |
20788 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20789 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20790 | rm -f conf$$subs.sed |
20791 | cat >>$CONFIG_STATUS <<_ACEOF |
20792 | CEOF$ac_eof |
d9898ee8 |
20793 | _ACEOF |
dd184caf |
20794 | |
20795 | |
20796 | ac_delim='%!_!# ' |
20797 | for ac_last_try in false false false false false :; do |
20798 | cat >conf$$subs.sed <<_ACEOF |
20799 | CXXCPP!$CXXCPP$ac_delim |
20800 | F77!$F77$ac_delim |
20801 | FFLAGS!$FFLAGS$ac_delim |
20802 | ac_ct_F77!$ac_ct_F77$ac_delim |
20803 | LIBTOOL!$LIBTOOL$ac_delim |
20804 | HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim |
20805 | HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim |
20806 | LIBOBJS!$LIBOBJS$ac_delim |
20807 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
20808 | _ACEOF |
20809 | |
20810 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then |
20811 | break |
20812 | elif $ac_last_try; then |
20813 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20814 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20815 | { (exit 1); exit 1; }; } |
20816 | else |
20817 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
20818 | fi |
20819 | done |
20820 | |
20821 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20822 | if test -n "$ac_eof"; then |
20823 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20824 | ac_eof=`expr $ac_eof + 1` |
20825 | fi |
20826 | |
20827 | cat >>$CONFIG_STATUS <<_ACEOF |
20828 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
20829 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
20830 | _ACEOF |
20831 | sed ' |
20832 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20833 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20834 | :n |
20835 | t n |
20836 | s/'"$ac_delim"'$/,g/; t |
20837 | s/$/\\/; p |
20838 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20839 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20840 | rm -f conf$$subs.sed |
20841 | cat >>$CONFIG_STATUS <<_ACEOF |
20842 | :end |
20843 | s/|#_!!_#|//g |
20844 | CEOF$ac_eof |
20845 | _ACEOF |
20846 | |
20847 | |
20848 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
20849 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
20850 | # trailing colons and then remove the whole line if VPATH becomes empty |
20851 | # (actually we leave an empty line to preserve line numbers). |
20852 | if test "x$srcdir" = x.; then |
20853 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
20854 | s/:*\$(srcdir):*/:/ |
20855 | s/:*\${srcdir}:*/:/ |
20856 | s/:*@srcdir@:*/:/ |
20857 | s/^\([^=]*=[ ]*\):*/\1/ |
20858 | s/:*$// |
20859 | s/^[^=]*=[ ]*$// |
20860 | }' |
20861 | fi |
20862 | |
d9898ee8 |
20863 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20864 | fi # test -n "$CONFIG_FILES" |
20865 | |
20866 | |
20867 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
20868 | do |
20869 | case $ac_tag in |
20870 | :[FHLC]) ac_mode=$ac_tag; continue;; |
20871 | esac |
20872 | case $ac_mode$ac_tag in |
20873 | :[FHL]*:*);; |
20874 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
20875 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
20876 | { (exit 1); exit 1; }; };; |
20877 | :[FH]-) ac_tag=-:-;; |
20878 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
20879 | esac |
20880 | ac_save_IFS=$IFS |
20881 | IFS=: |
20882 | set x $ac_tag |
20883 | IFS=$ac_save_IFS |
20884 | shift |
20885 | ac_file=$1 |
20886 | shift |
20887 | |
20888 | case $ac_mode in |
20889 | :L) ac_source=$1;; |
20890 | :[FH]) |
20891 | ac_file_inputs= |
20892 | for ac_f |
20893 | do |
20894 | case $ac_f in |
20895 | -) ac_f="$tmp/stdin";; |
20896 | *) # Look for the file first in the build tree, then in the source tree |
20897 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
20898 | # because $ac_f cannot contain `:'. |
20899 | test -f "$ac_f" || |
20900 | case $ac_f in |
20901 | [\\/$]*) false;; |
20902 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
20903 | esac || |
20904 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
20905 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
20906 | { (exit 1); exit 1; }; };; |
20907 | esac |
20908 | ac_file_inputs="$ac_file_inputs $ac_f" |
20909 | done |
20910 | |
20911 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20912 | # use $as_me), people would be surprised to read: |
20913 | # /* config.h. Generated by config.status. */ |
20914 | configure_input="Generated from "`IFS=: |
20915 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
20916 | if test x"$ac_file" != x-; then |
20917 | configure_input="$ac_file. $configure_input" |
20918 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20919 | echo "$as_me: creating $ac_file" >&6;} |
20920 | fi |
20921 | |
20922 | case $ac_tag in |
20923 | *:-:* | *:-) cat >"$tmp/stdin";; |
20924 | esac |
20925 | ;; |
d9898ee8 |
20926 | esac |
20927 | |
dd184caf |
20928 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
20929 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20930 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20931 | X"$ac_file" : 'X\(//\)$' \| \ |
dd184caf |
20932 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20933 | echo X"$ac_file" | |
dd184caf |
20934 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20935 | s//\1/ |
20936 | q |
20937 | } |
20938 | /^X\(\/\/\)[^/].*/{ |
20939 | s//\1/ |
20940 | q |
20941 | } |
20942 | /^X\(\/\/\)$/{ |
20943 | s//\1/ |
20944 | q |
20945 | } |
20946 | /^X\(\/\).*/{ |
20947 | s//\1/ |
20948 | q |
20949 | } |
20950 | s/.*/./; q'` |
20951 | { as_dir="$ac_dir" |
20952 | case $as_dir in #( |
20953 | -*) as_dir=./$as_dir;; |
20954 | esac |
20955 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
20956 | as_dirs= |
dd184caf |
20957 | while :; do |
20958 | case $as_dir in #( |
20959 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
20960 | *) as_qdir=$as_dir;; |
20961 | esac |
20962 | as_dirs="'$as_qdir' $as_dirs" |
20963 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
20964 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20965 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20966 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
20967 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20968 | echo X"$as_dir" | |
dd184caf |
20969 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20970 | s//\1/ |
20971 | q |
20972 | } |
20973 | /^X\(\/\/\)[^/].*/{ |
20974 | s//\1/ |
20975 | q |
20976 | } |
20977 | /^X\(\/\/\)$/{ |
20978 | s//\1/ |
20979 | q |
20980 | } |
20981 | /^X\(\/\).*/{ |
20982 | s//\1/ |
20983 | q |
20984 | } |
20985 | s/.*/./; q'` |
20986 | test -d "$as_dir" && break |
d9898ee8 |
20987 | done |
dd184caf |
20988 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
20989 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
20990 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
20991 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
20992 | ac_builddir=. |
20993 | |
dd184caf |
20994 | case "$ac_dir" in |
20995 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
20996 | *) |
d9898ee8 |
20997 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
20998 | # A ".." for each directory in $ac_dir_suffix. |
20999 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
21000 | case $ac_top_builddir_sub in |
21001 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
21002 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
21003 | esac ;; |
21004 | esac |
21005 | ac_abs_top_builddir=$ac_pwd |
21006 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
21007 | # for backward compatibility: |
21008 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
21009 | |
21010 | case $srcdir in |
dd184caf |
21011 | .) # We are building in place. |
d9898ee8 |
21012 | ac_srcdir=. |
dd184caf |
21013 | ac_top_srcdir=$ac_top_builddir_sub |
21014 | ac_abs_top_srcdir=$ac_pwd ;; |
21015 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
21016 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
21017 | ac_top_srcdir=$srcdir |
21018 | ac_abs_top_srcdir=$srcdir ;; |
21019 | *) # Relative name. |
21020 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
21021 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
21022 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
21023 | esac |
dd184caf |
21024 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
21025 | |
d9898ee8 |
21026 | |
dd184caf |
21027 | case $ac_mode in |
21028 | :F) |
21029 | # |
21030 | # CONFIG_FILE |
21031 | # |
d9898ee8 |
21032 | |
21033 | case $INSTALL in |
21034 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
dd184caf |
21035 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d9898ee8 |
21036 | esac |
dd184caf |
21037 | ac_MKDIR_P=$MKDIR_P |
21038 | case $MKDIR_P in |
21039 | [\\/$]* | ?:[\\/]* ) ;; |
21040 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
21041 | esac |
21042 | _ACEOF |
d9898ee8 |
21043 | |
dd184caf |
21044 | cat >>$CONFIG_STATUS <<\_ACEOF |
21045 | # If the template does not know about datarootdir, expand it. |
21046 | # FIXME: This hack should be removed a few years after 2.60. |
21047 | ac_datarootdir_hack=; ac_datarootdir_seen= |
21048 | |
21049 | case `sed -n '/datarootdir/ { |
21050 | p |
21051 | q |
21052 | } |
21053 | /@datadir@/p |
21054 | /@docdir@/p |
21055 | /@infodir@/p |
21056 | /@localedir@/p |
21057 | /@mandir@/p |
21058 | ' $ac_file_inputs` in |
21059 | *datarootdir*) ac_datarootdir_seen=yes;; |
21060 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
21061 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
21062 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 |
21063 | _ACEOF |
dd184caf |
21064 | cat >>$CONFIG_STATUS <<_ACEOF |
21065 | ac_datarootdir_hack=' |
21066 | s&@datadir@&$datadir&g |
21067 | s&@docdir@&$docdir&g |
21068 | s&@infodir@&$infodir&g |
21069 | s&@localedir@&$localedir&g |
21070 | s&@mandir@&$mandir&g |
21071 | s&\\\${datarootdir}&$datarootdir&g' ;; |
21072 | esac |
21073 | _ACEOF |
21074 | |
21075 | # Neutralize VPATH when `$srcdir' = `.'. |
21076 | # Shell code in configure.ac might set extrasub. |
21077 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
21078 | cat >>$CONFIG_STATUS <<_ACEOF |
21079 | sed "$ac_vpsub |
21080 | $extrasub |
21081 | _ACEOF |
21082 | cat >>$CONFIG_STATUS <<\_ACEOF |
21083 | :t |
21084 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
dd184caf |
21085 | s&@configure_input@&$configure_input&;t t |
21086 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
21087 | s&@srcdir@&$ac_srcdir&;t t |
21088 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
21089 | s&@top_srcdir@&$ac_top_srcdir&;t t |
21090 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
21091 | s&@builddir@&$ac_builddir&;t t |
21092 | s&@abs_builddir@&$ac_abs_builddir&;t t |
21093 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
21094 | s&@INSTALL@&$ac_INSTALL&;t t |
21095 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
21096 | $ac_datarootdir_hack |
21097 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
21098 | |
21099 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
21100 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
21101 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
21102 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
21103 | which seems to be undefined. Please make sure it is defined." >&5 |
21104 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
21105 | which seems to be undefined. Please make sure it is defined." >&2;} |
21106 | |
21107 | rm -f "$tmp/stdin" |
d9898ee8 |
21108 | case $ac_file in |
dd184caf |
21109 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
21110 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
21111 | esac |
dd184caf |
21112 | ;; |
21113 | :H) |
21114 | # |
21115 | # CONFIG_HEADER |
21116 | # |
d9898ee8 |
21117 | _ACEOF |
21118 | |
dd184caf |
21119 | # Transform confdefs.h into a sed script `conftest.defines', that |
21120 | # substitutes the proper values into config.h.in to produce config.h. |
21121 | rm -f conftest.defines conftest.tail |
21122 | # First, append a space to every undef/define line, to ease matching. |
21123 | echo 's/$/ /' >conftest.defines |
21124 | # Then, protect against being on the right side of a sed subst, or in |
21125 | # an unquoted here document, in config.status. If some macros were |
21126 | # called several times there might be several #defines for the same |
21127 | # symbol, which is useless. But do not sort them, since the last |
21128 | # AC_DEFINE must be honored. |
21129 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
21130 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
21131 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
21132 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
21133 | # just an empty string. |
21134 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
21135 | ac_dB='\\)[ (].*,\\1define\\2' |
21136 | ac_dC=' ' |
21137 | ac_dD=' ,' |
21138 | |
21139 | uniq confdefs.h | |
21140 | sed -n ' |
21141 | t rset |
21142 | :rset |
21143 | s/^[ ]*#[ ]*define[ ][ ]*// |
21144 | t ok |
21145 | d |
21146 | :ok |
21147 | s/[\\&,]/\\&/g |
21148 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
21149 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
21150 | ' >>conftest.defines |
21151 | |
21152 | # Remove the space that was appended to ease matching. |
21153 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
21154 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
21155 | # on some systems where configure will not decide to define it. |
dd184caf |
21156 | # (The regexp can be short, since the line contains either #define or #undef.) |
21157 | echo 's/ $// |
21158 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
21159 | |
21160 | # Break up conftest.defines: |
21161 | ac_max_sed_lines=50 |
21162 | |
21163 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
21164 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
21165 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
21166 | # et cetera. |
21167 | ac_in='$ac_file_inputs' |
21168 | ac_out='"$tmp/out1"' |
21169 | ac_nxt='"$tmp/out2"' |
21170 | |
21171 | while : |
d9898ee8 |
21172 | do |
dd184caf |
21173 | # Write a here document: |
21174 | cat >>$CONFIG_STATUS <<_ACEOF |
21175 | # First, check the format of the line: |
21176 | cat >"\$tmp/defines.sed" <<\\CEOF |
21177 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
21178 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
21179 | b |
21180 | :def |
21181 | _ACEOF |
21182 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
21183 | echo 'CEOF |
dd184caf |
21184 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
21185 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
21186 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
21187 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
21188 | rm -f conftest.defines |
21189 | mv conftest.tail conftest.defines |
21190 | done |
dd184caf |
21191 | rm -f conftest.defines conftest.tail |
d9898ee8 |
21192 | |
dd184caf |
21193 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
21194 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
21195 | if test x"$ac_file" != x-; then |
dd184caf |
21196 | echo "/* $configure_input */" >"$tmp/config.h" |
21197 | cat "$ac_result" >>"$tmp/config.h" |
21198 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
21199 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
21200 | echo "$as_me: $ac_file is unchanged" >&6;} |
21201 | else |
d9898ee8 |
21202 | rm -f $ac_file |
dd184caf |
21203 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
21204 | fi |
21205 | else |
dd184caf |
21206 | echo "/* $configure_input */" |
21207 | cat "$ac_result" |
d9898ee8 |
21208 | fi |
dd184caf |
21209 | rm -f "$tmp/out12" |
d9898ee8 |
21210 | # Compute $ac_file's index in $config_headers. |
ac40fd9e |
21211 | _am_arg=$ac_file |
d9898ee8 |
21212 | _am_stamp_count=1 |
21213 | for _am_header in $config_headers :; do |
21214 | case $_am_header in |
ac40fd9e |
21215 | $_am_arg | $_am_arg:* ) |
d9898ee8 |
21216 | break ;; |
21217 | * ) |
21218 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21219 | esac |
21220 | done |
ac40fd9e |
21221 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
21222 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21223 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
21224 | X"$_am_arg" : 'X\(//\)$' \| \ |
21225 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
21226 | echo X"$_am_arg" | |
dd184caf |
21227 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21228 | s//\1/ |
21229 | q |
21230 | } |
21231 | /^X\(\/\/\)[^/].*/{ |
21232 | s//\1/ |
21233 | q |
21234 | } |
21235 | /^X\(\/\/\)$/{ |
21236 | s//\1/ |
21237 | q |
21238 | } |
21239 | /^X\(\/\).*/{ |
21240 | s//\1/ |
21241 | q |
21242 | } |
21243 | s/.*/./; q'`/stamp-h$_am_stamp_count |
21244 | ;; |
d9898ee8 |
21245 | |
dd184caf |
21246 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
21247 | echo "$as_me: executing $ac_file commands" >&6;} |
21248 | ;; |
21249 | esac |
d9898ee8 |
21250 | |
21251 | |
dd184caf |
21252 | case $ac_file$ac_mode in |
21253 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
21254 | # Strip MF so we end up with the name of the file. |
21255 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
21256 | # Check whether this is an Automake generated Makefile or not. |
21257 | # We used to match only the files named `Makefile.in', but |
21258 | # some people rename them; so instead we look at the file content. |
21259 | # Grep'ing the first line is not enough: some people post-process |
21260 | # each Makefile.in and add a new line on top of each file to say so. |
dd184caf |
21261 | # Grep'ing the whole file is not good either: AIX grep has a line |
21262 | # limit of 2048, but all sed's we know have understand at least 4000. |
ac40fd9e |
21263 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
dd184caf |
21264 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
21265 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21266 | X"$mf" : 'X\(//\)[^/]' \| \ |
21267 | X"$mf" : 'X\(//\)$' \| \ |
dd184caf |
21268 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21269 | echo X"$mf" | |
dd184caf |
21270 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21271 | s//\1/ |
21272 | q |
21273 | } |
21274 | /^X\(\/\/\)[^/].*/{ |
21275 | s//\1/ |
21276 | q |
21277 | } |
21278 | /^X\(\/\/\)$/{ |
21279 | s//\1/ |
21280 | q |
21281 | } |
21282 | /^X\(\/\).*/{ |
21283 | s//\1/ |
21284 | q |
21285 | } |
21286 | s/.*/./; q'` |
d9898ee8 |
21287 | else |
21288 | continue |
21289 | fi |
21290 | # Extract the definition of DEPDIR, am__include, and am__quote |
21291 | # from the Makefile without running `make'. |
21292 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21293 | test -z "$DEPDIR" && continue |
21294 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21295 | test -z "am__include" && continue |
21296 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21297 | # When using ansi2knr, U may be empty or an underscore; expand it |
21298 | U=`sed -n 's/^U = //p' < "$mf"` |
21299 | # Find all dependency output files, they are included files with |
21300 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21301 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21302 | # expansion. |
21303 | for file in `sed -n " |
21304 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21305 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21306 | # Make sure the directory exists. |
21307 | test -f "$dirpart/$file" && continue |
dd184caf |
21308 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
21309 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21310 | X"$file" : 'X\(//\)[^/]' \| \ |
21311 | X"$file" : 'X\(//\)$' \| \ |
dd184caf |
21312 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21313 | echo X"$file" | |
dd184caf |
21314 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21315 | s//\1/ |
21316 | q |
21317 | } |
21318 | /^X\(\/\/\)[^/].*/{ |
21319 | s//\1/ |
21320 | q |
21321 | } |
21322 | /^X\(\/\/\)$/{ |
21323 | s//\1/ |
21324 | q |
21325 | } |
21326 | /^X\(\/\).*/{ |
21327 | s//\1/ |
21328 | q |
21329 | } |
21330 | s/.*/./; q'` |
21331 | { as_dir=$dirpart/$fdir |
21332 | case $as_dir in #( |
21333 | -*) as_dir=./$as_dir;; |
21334 | esac |
21335 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21336 | as_dirs= |
dd184caf |
21337 | while :; do |
21338 | case $as_dir in #( |
21339 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21340 | *) as_qdir=$as_dir;; |
21341 | esac |
21342 | as_dirs="'$as_qdir' $as_dirs" |
21343 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21344 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21345 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21346 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
21347 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21348 | echo X"$as_dir" | |
dd184caf |
21349 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21350 | s//\1/ |
21351 | q |
21352 | } |
21353 | /^X\(\/\/\)[^/].*/{ |
21354 | s//\1/ |
21355 | q |
21356 | } |
21357 | /^X\(\/\/\)$/{ |
21358 | s//\1/ |
21359 | q |
21360 | } |
21361 | /^X\(\/\).*/{ |
21362 | s//\1/ |
21363 | q |
21364 | } |
21365 | s/.*/./; q'` |
21366 | test -d "$as_dir" && break |
d9898ee8 |
21367 | done |
dd184caf |
21368 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21369 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21370 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21371 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21372 | # echo "creating $dirpart/$file" |
21373 | echo '# dummy' > "$dirpart/$file" |
21374 | done |
21375 | done |
21376 | ;; |
dd184caf |
21377 | |
d9898ee8 |
21378 | esac |
dd184caf |
21379 | done # for ac_tag |
d9898ee8 |
21380 | |
d9898ee8 |
21381 | |
21382 | { (exit 0); exit 0; } |
21383 | _ACEOF |
21384 | chmod +x $CONFIG_STATUS |
21385 | ac_clean_files=$ac_clean_files_save |
21386 | |
21387 | |
21388 | # configure is writing to config.log, and then calls config.status. |
21389 | # config.status does its own redirection, appending to config.log. |
21390 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21391 | # by configure, so config.status won't be able to write to it; its |
21392 | # output is simply discarded. So we exec the FD to /dev/null, |
21393 | # effectively closing config.log, so it can be properly (re)opened and |
21394 | # appended to by config.status. When coming back to configure, we |
21395 | # need to make the FD available again. |
21396 | if test "$no_create" != yes; then |
21397 | ac_cs_success=: |
21398 | ac_config_status_args= |
21399 | test "$silent" = yes && |
21400 | ac_config_status_args="$ac_config_status_args --quiet" |
21401 | exec 5>/dev/null |
21402 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21403 | exec 5>>config.log |
21404 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21405 | # would make configure fail if this is the last instruction. |
21406 | $ac_cs_success || { (exit 1); exit 1; } |
21407 | fi |
21408 | |