Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 fi
25 BIN_SH=xpg4; export BIN_SH # for Tru64
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28
29 # PATH needs CR
30 # Avoid depending upon Character Ranges.
31 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34 as_cr_digits='0123456789'
35 as_cr_alnum=$as_cr_Letters$as_cr_digits
36
37 # The user is always right.
38 if test "${PATH_SEPARATOR+set}" != set; then
39 echo "#! /bin/sh" >conf$$.sh
40 echo "exit 0" >>conf$$.sh
41 chmod +x conf$$.sh
42 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43 PATH_SEPARATOR=';'
44 else
45 PATH_SEPARATOR=:
46 fi
47 rm -f conf$$.sh
48 fi
49
50 # Support unset when possible.
51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52 as_unset=unset
53 else
54 as_unset=false
55 fi
56
57
58 # IFS
59 # We need space, tab and new line, in precisely that order. Quoting is
60 # there to prevent editors from complaining about space-tab.
61 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
62 # splitting by setting IFS to empty value.)
63 as_nl='
64 '
65 IFS=" "" $as_nl"
66
67 # Find who we are. Look in the path if we contain no directory separator.
68 case $0 in
69 *[\\/]* ) as_myself=$0 ;;
70 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71 for as_dir in $PATH
72 do
73 IFS=$as_save_IFS
74 test -z "$as_dir" && as_dir=.
75 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
76 done
77 IFS=$as_save_IFS
78
79 ;;
80 esac
81 # We did not find ourselves, most probably we were run as `sh COMMAND'
82 # in which case we are not to be found in the path.
83 if test "x$as_myself" = x; then
84 as_myself=$0
85 fi
86 if test ! -f "$as_myself"; then
87 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
88 { (exit 1); exit 1; }
89 fi
90
91 # Work around bugs in pre-3.0 UWIN ksh.
92 for as_var in ENV MAIL MAILPATH
93 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
94 done
95 PS1='$ '
96 PS2='> '
97 PS4='+ '
98
99 # NLS nuisances.
100 for as_var in \
101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
103 LC_TELEPHONE LC_TIME
104 do
105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106 eval $as_var=C; export $as_var
107 else
108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 fi
110 done
111
112 # Required to use basename.
113 if expr a : '\(a\)' >/dev/null 2>&1 &&
114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
115 as_expr=expr
116 else
117 as_expr=false
118 fi
119
120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
121 as_basename=basename
122 else
123 as_basename=false
124 fi
125
126
127 # Name of the executable.
128 as_me=`$as_basename -- "$0" ||
129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130 X"$0" : 'X\(//\)$' \| \
131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 echo X/"$0" |
133 sed '/^.*\/\([^/][^/]*\)\/*$/{
134 s//\1/
135 q
136 }
137 /^X\/\(\/\/\)$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\).*/{
142 s//\1/
143 q
144 }
145 s/.*/./; q'`
146
147 # CDPATH.
148 $as_unset CDPATH
149
150
151 if test "x$CONFIG_SHELL" = x; then
152 if (eval ":") 2>/dev/null; then
153 as_have_required=yes
154 else
155 as_have_required=no
156 fi
157
158 if test $as_have_required = yes && (eval ":
159 (as_func_return () {
160 (exit \$1)
161 }
162 as_func_success () {
163 as_func_return 0
164 }
165 as_func_failure () {
166 as_func_return 1
167 }
168 as_func_ret_success () {
169 return 0
170 }
171 as_func_ret_failure () {
172 return 1
173 }
174
175 exitcode=0
176 if as_func_success; then
177 :
178 else
179 exitcode=1
180 echo as_func_success failed.
181 fi
182
183 if as_func_failure; then
184 exitcode=1
185 echo as_func_failure succeeded.
186 fi
187
188 if as_func_ret_success; then
189 :
190 else
191 exitcode=1
192 echo as_func_ret_success failed.
193 fi
194
195 if as_func_ret_failure; then
196 exitcode=1
197 echo as_func_ret_failure succeeded.
198 fi
199
200 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
201 :
202 else
203 exitcode=1
204 echo positional parameters were not saved.
205 fi
206
207 test \$exitcode = 0) || { (exit 1); exit 1; }
208
209 (
210 as_lineno_1=\$LINENO
211 as_lineno_2=\$LINENO
212 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214 ") 2> /dev/null; then
215 :
216 else
217 as_candidate_shells=
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 do
221 IFS=$as_save_IFS
222 test -z "$as_dir" && as_dir=.
223 case $as_dir in
224 /*)
225 for as_base in sh bash ksh sh5; do
226 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
227 done;;
228 esac
229 done
230 IFS=$as_save_IFS
231
232
233 for as_shell in $as_candidate_shells $SHELL; do
234 # Try only shells that exist, to save several forks.
235 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236 { ("$as_shell") 2> /dev/null <<\_ASEOF
237 # Be Bourne compatible
238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
239 emulate sh
240 NULLCMD=:
241 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242 # is contrary to our usage. Disable this feature.
243 alias -g '${1+"$@"}'='"$@"'
244 setopt NO_GLOB_SUBST
245 else
246 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 fi
248 BIN_SH=xpg4; export BIN_SH # for Tru64
249 DUALCASE=1; export DUALCASE # for MKS sh
250
251 :
252 _ASEOF
253 }; then
254 CONFIG_SHELL=$as_shell
255 as_have_required=yes
256 if { "$as_shell" 2> /dev/null <<\_ASEOF
257 # Be Bourne compatible
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259 emulate sh
260 NULLCMD=:
261 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262 # is contrary to our usage. Disable this feature.
263 alias -g '${1+"$@"}'='"$@"'
264 setopt NO_GLOB_SUBST
265 else
266 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 fi
268 BIN_SH=xpg4; export BIN_SH # for Tru64
269 DUALCASE=1; export DUALCASE # for MKS sh
270
271 :
272 (as_func_return () {
273 (exit $1)
274 }
275 as_func_success () {
276 as_func_return 0
277 }
278 as_func_failure () {
279 as_func_return 1
280 }
281 as_func_ret_success () {
282 return 0
283 }
284 as_func_ret_failure () {
285 return 1
286 }
287
288 exitcode=0
289 if as_func_success; then
290 :
291 else
292 exitcode=1
293 echo as_func_success failed.
294 fi
295
296 if as_func_failure; then
297 exitcode=1
298 echo as_func_failure succeeded.
299 fi
300
301 if as_func_ret_success; then
302 :
303 else
304 exitcode=1
305 echo as_func_ret_success failed.
306 fi
307
308 if as_func_ret_failure; then
309 exitcode=1
310 echo as_func_ret_failure succeeded.
311 fi
312
313 if ( set x; as_func_ret_success y && test x = "$1" ); then
314 :
315 else
316 exitcode=1
317 echo positional parameters were not saved.
318 fi
319
320 test $exitcode = 0) || { (exit 1); exit 1; }
321
322 (
323 as_lineno_1=$LINENO
324 as_lineno_2=$LINENO
325 test "x$as_lineno_1" != "x$as_lineno_2" &&
326 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
327
328 _ASEOF
329 }; then
330 break
331 fi
332
333 fi
334
335 done
336
337 if test "x$CONFIG_SHELL" != x; then
338 for as_var in BASH_ENV ENV
339 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
340 done
341 export CONFIG_SHELL
342 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
343 fi
344
345
346 if test $as_have_required = no; then
347 echo This script requires a shell more modern than all the
348 echo shells that I found on your system. Please install a
349 echo modern shell, or manually run the script under such a
350 echo shell if you do have one.
351 { (exit 1); exit 1; }
352 fi
353
354
355 fi
356
357 fi
358
359
360
361 (eval "as_func_return () {
362 (exit \$1)
363 }
364 as_func_success () {
365 as_func_return 0
366 }
367 as_func_failure () {
368 as_func_return 1
369 }
370 as_func_ret_success () {
371 return 0
372 }
373 as_func_ret_failure () {
374 return 1
375 }
376
377 exitcode=0
378 if as_func_success; then
379 :
380 else
381 exitcode=1
382 echo as_func_success failed.
383 fi
384
385 if as_func_failure; then
386 exitcode=1
387 echo as_func_failure succeeded.
388 fi
389
390 if as_func_ret_success; then
391 :
392 else
393 exitcode=1
394 echo as_func_ret_success failed.
395 fi
396
397 if as_func_ret_failure; then
398 exitcode=1
399 echo as_func_ret_failure succeeded.
400 fi
401
402 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
403 :
404 else
405 exitcode=1
406 echo positional parameters were not saved.
407 fi
408
409 test \$exitcode = 0") || {
410 echo No shell found that supports shell functions.
411 echo Please tell [email protected] about your system,
412 echo including any error possibly output before this
413 echo message
414 }
415
416
417
418 as_lineno_1=$LINENO
419 as_lineno_2=$LINENO
420 test "x$as_lineno_1" != "x$as_lineno_2" &&
421 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422
423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424 # uniformly replaced by the line number. The first 'sed' inserts a
425 # line-number line after each line using $LINENO; the second 'sed'
426 # does the real work. The second script uses 'N' to pair each
427 # line-number line with the line containing $LINENO, and appends
428 # trailing '-' during substitution so that $LINENO is not a special
429 # case at line end.
430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431 # scripts with optimization help from Paolo Bonzini. Blame Lee
432 # E. McMahon (1931-1989) for sed's syntax. :-)
433 sed -n '
434 p
435 /[$]LINENO/=
436 ' <$as_myself |
437 sed '
438 s/[$]LINENO.*/&-/
439 t lineno
440 b
441 :lineno
442 N
443 :loop
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 t loop
446 s/-\n.*//
447 ' >$as_me.lineno &&
448 chmod +x "$as_me.lineno" ||
449 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450 { (exit 1); exit 1; }; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460
461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
462 as_dirname=dirname
463 else
464 as_dirname=false
465 fi
466
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in
469 -n*)
470 case `echo 'x\c'` in
471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 *) ECHO_C='\c';;
473 esac;;
474 *)
475 ECHO_N='-n';;
476 esac
477
478 if expr a : '\(a\)' >/dev/null 2>&1 &&
479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
480 as_expr=expr
481 else
482 as_expr=false
483 fi
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir
491 fi
492 echo >conf$$.file
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
508
509 if mkdir -p . 2>/dev/null; then
510 as_mkdir_p=:
511 else
512 test -d ./-p && rmdir ./-p
513 as_mkdir_p=false
514 fi
515
516 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
517 # systems may use methods other than mode bits to determine executability.
518 cat >conf$$.file <<_ASEOF
519 #! /bin/sh
520 exit 0
521 _ASEOF
522 chmod +x conf$$.file
523 if test -x conf$$.file >/dev/null 2>&1; then
524 as_executable_p="test -x"
525 else
526 as_executable_p=:
527 fi
528 rm -f conf$$.file
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538
539 # Check that we are running under the correct shell.
540 SHELL=${CONFIG_SHELL-/bin/sh}
541
542 case X$ECHO in
543 X*--fallback-echo)
544 # Remove one level of quotation (which was required for Make).
545 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 ;;
547 esac
548
549 echo=${ECHO-echo}
550 if test "X$1" = X--no-reexec; then
551 # Discard the --no-reexec flag, and continue.
552 shift
553 elif test "X$1" = X--fallback-echo; then
554 # Avoid inline document here, it may be left over
555 :
556 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557 # Yippee, $echo works!
558 :
559 else
560 # Restart under the correct shell.
561 exec $SHELL "$0" --no-reexec ${1+"$@"}
562 fi
563
564 if test "X$1" = X--fallback-echo; then
565 # used as fallback echo
566 shift
567 cat <<EOF
568 $*
569 EOF
570 exit 0
571 fi
572
573 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 # if CDPATH is set.
575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576
577 if test -z "$ECHO"; then
578 if test "X${echo_test_string+set}" != Xset; then
579 # find a string as large as possible, as long as the shell can cope with it
580 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
583 echo_test_string=`eval $cmd` &&
584 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
585 then
586 break
587 fi
588 done
589 fi
590
591 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
594 :
595 else
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
599 #
600 # So, first we look for a working echo in the user's PATH.
601
602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603 for dir in $PATH /usr/ucb; do
604 IFS="$lt_save_ifs"
605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 echo="$dir/echo"
610 break
611 fi
612 done
613 IFS="$lt_save_ifs"
614
615 if test "X$echo" = Xecho; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
621 echo='print -r'
622 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
623 test "X$CONFIG_SHELL" != X/bin/ksh; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL=/bin/ksh
628 export CONFIG_SHELL
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
630 else
631 # Try using printf.
632 echo='printf %s\n'
633 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # Cool, printf works
637 :
638 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 export CONFIG_SHELL
644 SHELL="$CONFIG_SHELL"
645 export SHELL
646 echo="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 echo="$CONFIG_SHELL $0 --fallback-echo"
652 else
653 # maybe with a smaller string...
654 prev=:
655
656 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
658 then
659 break
660 fi
661 prev="$cmd"
662 done
663
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 else
669 # Oops. We lost completely, so just stick with echo.
670 echo=echo
671 fi
672 fi
673 fi
674 fi
675 fi
676 fi
677
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
680 ECHO=$echo
681 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 fi
684
685
686
687
688 tagnames=${tagnames+${tagnames},}CXX
689
690 tagnames=${tagnames+${tagnames},}F77
691
692 exec 7<&0 </dev/null 6>&1
693
694 # Name of the host.
695 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
698
699 #
700 # Initializations.
701 #
702 ac_default_prefix=/usr/local
703 ac_clean_files=
704 ac_config_libobj_dir=.
705 LIBOBJS=
706 cross_compiling=no
707 subdirs=
708 MFLAGS=
709 MAKEFLAGS=
710 SHELL=${CONFIG_SHELL-/bin/sh}
711
712 # Identity of this package.
713 PACKAGE_NAME=
714 PACKAGE_TARNAME=
715 PACKAGE_VERSION=
716 PACKAGE_STRING=
717 PACKAGE_BUGREPORT=
718
719 ac_unique_file="./Makefile.am"
720 # Factoring default headers for most tests.
721 ac_includes_default="\
722 #include <stdio.h>
723 #if HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #if HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #if STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # if HAVE_STDLIB_H
734 # include <stdlib.h>
735 # endif
736 #endif
737 #if HAVE_STRING_H
738 # if !STDC_HEADERS && HAVE_MEMORY_H
739 # include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #if HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #if HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #if HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #if HAVE_UNISTD_H
753 # include <unistd.h>
754 #endif"
755
756 ac_subst_vars='SHELL
757 PATH_SEPARATOR
758 PACKAGE_NAME
759 PACKAGE_TARNAME
760 PACKAGE_VERSION
761 PACKAGE_STRING
762 PACKAGE_BUGREPORT
763 exec_prefix
764 prefix
765 program_transform_name
766 bindir
767 sbindir
768 libexecdir
769 datarootdir
770 datadir
771 sysconfdir
772 sharedstatedir
773 localstatedir
774 includedir
775 oldincludedir
776 docdir
777 infodir
778 htmldir
779 dvidir
780 pdfdir
781 psdir
782 libdir
783 localedir
784 mandir
785 DEFS
786 ECHO_C
787 ECHO_N
788 ECHO_T
789 LIBS
790 build_alias
791 host_alias
792 target_alias
793 FREEFEM_MAJOR_VERSION
794 FREEFEM_MINOR_VERSION
795 FREEFEM_MICRO_VERSION
796 FREEFEM_VERSION
797 LT_RELEASE
798 LT_CURRENT
799 LT_REVISION
800 LT_AGE
801 build
802 build_cpu
803 build_vendor
804 build_os
805 host
806 host_cpu
807 host_vendor
808 host_os
809 target
810 target_cpu
811 target_vendor
812 target_os
813 INSTALL_PROGRAM
814 INSTALL_SCRIPT
815 INSTALL_DATA
816 CYGPATH_W
817 PACKAGE
818 VERSION
819 ACLOCAL
820 AUTOCONF
821 AUTOMAKE
822 AUTOHEADER
823 MAKEINFO
824 install_sh
825 STRIP
826 INSTALL_STRIP_PROGRAM
827 mkdir_p
828 AWK
829 SET_MAKE
830 am__leading_dot
831 AMTAR
832 am__tar
833 am__untar
834 CC
835 CFLAGS
836 LDFLAGS
837 CPPFLAGS
838 ac_ct_CC
839 EXEEXT
840 OBJEXT
841 DEPDIR
842 am__include
843 am__quote
844 AMDEP_TRUE
845 AMDEP_FALSE
846 AMDEPBACKSLASH
847 CCDEPMODE
848 am__fastdepCC_TRUE
849 am__fastdepCC_FALSE
850 GREP
851 EGREP
852 LN_S
853 ECHO
854 AR
855 RANLIB
856 CPP
857 CXX
858 CXXFLAGS
859 ac_ct_CXX
860 CXXDEPMODE
861 am__fastdepCXX_TRUE
862 am__fastdepCXX_FALSE
863 CXXCPP
864 F77
865 FFLAGS
866 ac_ct_F77
867 LIBTOOL
868 XMKMF
869 X_CFLAGS
870 X_PRE_LIBS
871 X_LIBS
872 X_EXTRA_LIBS
873 topdir
874 KFEM_LIBS
875 KFEM_INCLUDES
876 LIBOBJS
877 LTLIBOBJS'
878 ac_subst_files=''
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CC
883 CFLAGS
884 LDFLAGS
885 CPPFLAGS
886 CPP
887 CXX
888 CXXFLAGS
889 CCC
890 CXXCPP
891 F77
892 FFLAGS
893 XMKMF'
894
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.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE}'
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'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
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
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
988
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
996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
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 ;;
1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
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
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
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
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
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
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
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.
1215 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package| sed 's/-/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/-/_/g'`
1228 eval with_$ac_package=no ;;
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; }; }
1259 eval $ac_envvar=\$ac_optarg
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
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
1284 do
1285 eval ac_val=\$$ac_var
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
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
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
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 echo X"$0" |
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'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
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
1365 { (exit 1); exit 1; }; }
1366 fi
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
1370 { (exit 1); exit 1; }; }
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
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 this package 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
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]
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]
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/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
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 X features:
1459 --x-includes=DIR X include files are in DIR
1460 --x-libraries=DIR X library files are in DIR
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 --target=TARGET configure for building compilers for TARGET [HOST]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-dependency-tracking speeds up one-time build
1481 --enable-dependency-tracking do not reject slow dependency extractors
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --with-kde compile with kde support freefem will be a library: libfem.a
1484
1485 Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-tags[=TAGS] include additional configurations [automatic]
1492 --with-x use the X Window System
1493 --with-optimization Experimental add additional flags to optimize the code. Depends on the compiler
1494
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CPP C preprocessor
1503 CXX C++ compiler command
1504 CXXFLAGS C++ compiler flags
1505 CXXCPP C++ preprocessor
1506 F77 Fortran 77 compiler command
1507 FFLAGS Fortran 77 compiler flags
1508 XMKMF Path to xmkmf, Makefile generator for X Window System
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" || continue
1521 ac_builddir=.
1522
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *)
1526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1538
1539 case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1568 fi
1569
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572 cat <<\_ACEOF
1573 configure
1574 generated by GNU Autoconf 2.60
1575
1576 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1577 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1578 This configure script is free software; the Free Software Foundation
1579 gives unlimited permission to copy, distribute and modify it.
1580 _ACEOF
1581 exit
1582 fi
1583 cat >config.log <<_ACEOF
1584 This file contains any messages produced by compilers while
1585 running configure, to aid debugging if configure makes a mistake.
1586
1587 It was created by $as_me, which was
1588 generated by GNU Autoconf 2.60. Invocation command line was
1589
1590 $ $0 $@
1591
1592 _ACEOF
1593 exec 5>>config.log
1594 {
1595 cat <<_ASUNAME
1596 ## --------- ##
1597 ## Platform. ##
1598 ## --------- ##
1599
1600 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1605
1606 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1608
1609 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1612 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1613 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616
1617 _ASUNAME
1618
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 echo "PATH: $as_dir"
1625 done
1626 IFS=$as_save_IFS
1627
1628 } >&5
1629
1630 cat >&5 <<_ACEOF
1631
1632
1633 ## ----------- ##
1634 ## Core tests. ##
1635 ## ----------- ##
1636
1637 _ACEOF
1638
1639
1640 # Keep a trace of the command line.
1641 # Strip out --no-create and --no-recursion so they do not pile up.
1642 # Strip out --silent because we don't want to record it for future runs.
1643 # Also quote any args containing shell meta-characters.
1644 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_configure_args=
1646 ac_configure_args0=
1647 ac_configure_args1=
1648 ac_must_keep_next=false
1649 for ac_pass in 1 2
1650 do
1651 for ac_arg
1652 do
1653 case $ac_arg in
1654 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1656 | -silent | --silent | --silen | --sile | --sil)
1657 continue ;;
1658 *\'*)
1659 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 esac
1661 case $ac_pass in
1662 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 2)
1664 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true; then
1666 ac_must_keep_next=false # Got value, back to normal.
1667 else
1668 case $ac_arg in
1669 *=* | --config-cache | -C | -disable-* | --disable-* \
1670 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1671 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1672 | -with-* | --with-* | -without-* | --without-* | --x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 esac
1676 ;;
1677 -* ) ac_must_keep_next=true ;;
1678 esac
1679 fi
1680 ac_configure_args="$ac_configure_args '$ac_arg'"
1681 ;;
1682 esac
1683 done
1684 done
1685 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1686 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687
1688 # When interrupted or exit'd, cleanup temporary files, and complete
1689 # config.log. We remove comments because anyway the quotes in there
1690 # would cause problems or look ugly.
1691 # WARNING: Use '\'' to represent an apostrophe within the trap.
1692 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1693 trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1695 {
1696 echo
1697
1698 cat <<\_ASBOX
1699 ## ---------------- ##
1700 ## Cache variables. ##
1701 ## ---------------- ##
1702 _ASBOX
1703 echo
1704 # The following way of writing the cache mishandles newlines in values,
1705 (
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1708 case $ac_val in #(
1709 *${as_nl}*)
1710 case $ac_var in #(
1711 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 esac
1714 case $ac_var in #(
1715 _ | IFS | as_nl) ;; #(
1716 *) $as_unset $ac_var ;;
1717 esac ;;
1718 esac
1719 done
1720 (set) 2>&1 |
1721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1722 *${as_nl}ac_space=\ *)
1723 sed -n \
1724 "s/'\''/'\''\\\\'\'''\''/g;
1725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1726 ;; #(
1727 *)
1728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ;;
1730 esac |
1731 sort
1732 )
1733 echo
1734
1735 cat <<\_ASBOX
1736 ## ----------------- ##
1737 ## Output variables. ##
1738 ## ----------------- ##
1739 _ASBOX
1740 echo
1741 for ac_var in $ac_subst_vars
1742 do
1743 eval ac_val=\$$ac_var
1744 case $ac_val in
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 esac
1747 echo "$ac_var='\''$ac_val'\''"
1748 done | sort
1749 echo
1750
1751 if test -n "$ac_subst_files"; then
1752 cat <<\_ASBOX
1753 ## ------------------- ##
1754 ## File substitutions. ##
1755 ## ------------------- ##
1756 _ASBOX
1757 echo
1758 for ac_var in $ac_subst_files
1759 do
1760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 echo "$ac_var='\''$ac_val'\''"
1765 done | sort
1766 echo
1767 fi
1768
1769 if test -s confdefs.h; then
1770 cat <<\_ASBOX
1771 ## ----------- ##
1772 ## confdefs.h. ##
1773 ## ----------- ##
1774 _ASBOX
1775 echo
1776 cat confdefs.h
1777 echo
1778 fi
1779 test "$ac_signal" != 0 &&
1780 echo "$as_me: caught signal $ac_signal"
1781 echo "$as_me: exit $exit_status"
1782 } >&5
1783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1785 exit $exit_status
1786 ' 0
1787 for ac_signal in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 done
1790 ac_signal=0
1791
1792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1793 rm -f -r conftest* confdefs.h
1794
1795 # Predefined preprocessor variables.
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 _ACEOF
1820
1821
1822 # Let the site file select an alternate cache file if it wants to.
1823 # Prefer explicitly selected file to automatically selected ones.
1824 if test -n "$CONFIG_SITE"; then
1825 set x "$CONFIG_SITE"
1826 elif test "x$prefix" != xNONE; then
1827 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828 else
1829 set x "$ac_default_prefix/share/config.site" \
1830 "$ac_default_prefix/etc/config.site"
1831 fi
1832 shift
1833 for ac_site_file
1834 do
1835 if test -r "$ac_site_file"; then
1836 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837 echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1839 . "$ac_site_file"
1840 fi
1841 done
1842
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848 echo "$as_me: loading cache $cache_file" >&6;}
1849 case $cache_file in
1850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
1852 esac
1853 fi
1854 else
1855 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856 echo "$as_me: creating cache $cache_file" >&6;}
1857 >$cache_file
1858 fi
1859
1860 # Check that the precious variables saved in the cache have kept the same
1861 # value.
1862 ac_cache_corrupted=false
1863 for ac_var in $ac_precious_vars; do
1864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
1866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1869 set,)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,set)
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,);;
1878 *)
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1881 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1882 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1883 echo "$as_me: former value: $ac_old_val" >&2;}
1884 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1885 echo "$as_me: current value: $ac_new_val" >&2;}
1886 ac_cache_corrupted=:
1887 fi;;
1888 esac
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1891 case $ac_new_val in
1892 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 *) ac_arg=$ac_var=$ac_new_val ;;
1894 esac
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 esac
1899 fi
1900 done
1901 if $ac_cache_corrupted; then
1902 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1903 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1905 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925 ac_ext=c
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930
1931
1932
1933 FREEFEM_MAJOR_VERSION=3
1934 FREEFEM_MINOR_VERSION=5
1935 FREEFEM_MICRO_VERSION=8
1936 FREEFEM_VERSION=$FREEFEM_MAJOR_VERSION.$FREEFEM_MINOR_VERSION.$FREEFEM_MICRO_VERSION
1937
1938
1939
1940
1941 LT_RELEASE=$FREEFEM_MAJOR_VERSION.$FREEFEM_MINOR_VERSION
1942 LT_CURRENT=$FREEFEM_MICRO_VERSION
1943 LT_REVISION=$FREEFEM_MINOR_VERSION
1944 LT_AGE=0
1945
1946
1947
1948
1949
1950 PACKAGE=freefem
1951 VERSION=$FREEFEM_VERSION
1952
1953
1954 ac_aux_dir=
1955 for ac_dir in admin "$srcdir"/admin; do
1956 if test -f "$ac_dir/install-sh"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install-sh -c"
1959 break
1960 elif test -f "$ac_dir/install.sh"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/install.sh -c"
1963 break
1964 elif test -f "$ac_dir/shtool"; then
1965 ac_aux_dir=$ac_dir
1966 ac_install_sh="$ac_aux_dir/shtool install -c"
1967 break
1968 fi
1969 done
1970 if test -z "$ac_aux_dir"; then
1971 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
1973 { (exit 1); exit 1; }; }
1974 fi
1975
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983
1984
1985 ACLOCAL="$ACLOCAL -I admin"
1986
1987
1988 # Make sure we can run config.sub.
1989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1990 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1991 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1992 { (exit 1); exit 1; }; }
1993
1994 { echo "$as_me:$LINENO: checking build system type" >&5
1995 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1996 if test "${ac_cv_build+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 ac_build_alias=$build_alias
2000 test "x$ac_build_alias" = x &&
2001 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2002 test "x$ac_build_alias" = x &&
2003 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2004 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2005 { (exit 1); exit 1; }; }
2006 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2007 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2008 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2009 { (exit 1); exit 1; }; }
2010
2011 fi
2012 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2013 echo "${ECHO_T}$ac_cv_build" >&6; }
2014 case $ac_cv_build in
2015 *-*-*) ;;
2016 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2017 echo "$as_me: error: invalid value of canonical build" >&2;}
2018 { (exit 1); exit 1; }; };;
2019 esac
2020 build=$ac_cv_build
2021 ac_save_IFS=$IFS; IFS='-'
2022 set x $ac_cv_build
2023 shift
2024 build_cpu=$1
2025 build_vendor=$2
2026 shift; shift
2027 # Remember, the first character of IFS is used to create $*,
2028 # except with old shells:
2029 build_os=$*
2030 IFS=$ac_save_IFS
2031 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2032
2033
2034 { echo "$as_me:$LINENO: checking host system type" >&5
2035 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2036 if test "${ac_cv_host+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test "x$host_alias" = x; then
2040 ac_cv_host=$ac_cv_build
2041 else
2042 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2043 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2044 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2045 { (exit 1); exit 1; }; }
2046 fi
2047
2048 fi
2049 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2050 echo "${ECHO_T}$ac_cv_host" >&6; }
2051 case $ac_cv_host in
2052 *-*-*) ;;
2053 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2054 echo "$as_me: error: invalid value of canonical host" >&2;}
2055 { (exit 1); exit 1; }; };;
2056 esac
2057 host=$ac_cv_host
2058 ac_save_IFS=$IFS; IFS='-'
2059 set x $ac_cv_host
2060 shift
2061 host_cpu=$1
2062 host_vendor=$2
2063 shift; shift
2064 # Remember, the first character of IFS is used to create $*,
2065 # except with old shells:
2066 host_os=$*
2067 IFS=$ac_save_IFS
2068 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2069
2070
2071 { echo "$as_me:$LINENO: checking target system type" >&5
2072 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2073 if test "${ac_cv_target+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test "x$target_alias" = x; then
2077 ac_cv_target=$ac_cv_host
2078 else
2079 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2080 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2081 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2082 { (exit 1); exit 1; }; }
2083 fi
2084
2085 fi
2086 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2087 echo "${ECHO_T}$ac_cv_target" >&6; }
2088 case $ac_cv_target in
2089 *-*-*) ;;
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2091 echo "$as_me: error: invalid value of canonical target" >&2;}
2092 { (exit 1); exit 1; }; };;
2093 esac
2094 target=$ac_cv_target
2095 ac_save_IFS=$IFS; IFS='-'
2096 set x $ac_cv_target
2097 shift
2098 target_cpu=$1
2099 target_vendor=$2
2100 shift; shift
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2103 target_os=$*
2104 IFS=$ac_save_IFS
2105 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2106
2107
2108 # The aliases save the names the user supplied, while $host etc.
2109 # will get canonicalized.
2110 test -n "$target_alias" &&
2111 test "$program_prefix$program_suffix$program_transform_name" = \
2112 NONENONEs,x,x, &&
2113 program_prefix=${target_alias}-
2114
2115 # init automake
2116 am__api_version="1.9"
2117 # Find a good install program. We prefer a C program (faster),
2118 # so one script is as good as another. But avoid the broken or
2119 # incompatible versions:
2120 # SysV /etc/install, /usr/sbin/install
2121 # SunOS /usr/etc/install
2122 # IRIX /sbin/install
2123 # AIX /bin/install
2124 # AmigaOS /C/install, which installs bootblocks on floppy discs
2125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2128 # OS/2's system install, which has a completely different semantic
2129 # ./install, which can be erroneously created by make from ./install.sh.
2130 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2131 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2132 if test -z "$INSTALL"; then
2133 if test "${ac_cv_path_install+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 # Account for people who put trailing slashes in PATH elements.
2142 case $as_dir/ in
2143 ./ | .// | /cC/* | \
2144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2145 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2146 /usr/ucb/* ) ;;
2147 *)
2148 # OSF1 and SCO ODT 3.0 have their own names for install.
2149 # Don't use installbsd from OSF since it installs stuff as root
2150 # by default.
2151 for ac_prog in ginstall scoinst install; do
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2154 if test $ac_prog = install &&
2155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156 # AIX install. It has an incompatible calling convention.
2157 :
2158 elif test $ac_prog = install &&
2159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2160 # program-specific install script used by HP pwplus--don't use.
2161 :
2162 else
2163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2164 break 3
2165 fi
2166 fi
2167 done
2168 done
2169 ;;
2170 esac
2171 done
2172 IFS=$as_save_IFS
2173
2174
2175 fi
2176 if test "${ac_cv_path_install+set}" = set; then
2177 INSTALL=$ac_cv_path_install
2178 else
2179 # As a last resort, use the slow shell script. Don't cache a
2180 # value for INSTALL within a source directory, because that will
2181 # break other packages using the cache if that directory is
2182 # removed, or if the value is a relative name.
2183 INSTALL=$ac_install_sh
2184 fi
2185 fi
2186 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2187 echo "${ECHO_T}$INSTALL" >&6; }
2188
2189 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2190 # It thinks the first close brace ends the variable substitution.
2191 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2192
2193 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2194
2195 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2196
2197 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2198 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2199 # Just in case
2200 sleep 1
2201 echo timestamp > conftest.file
2202 # Do `set' in a subshell so we don't clobber the current shell's
2203 # arguments. Must try -L first in case configure is actually a
2204 # symlink; some systems play weird games with the mod time of symlinks
2205 # (eg FreeBSD returns the mod time of the symlink's containing
2206 # directory).
2207 if (
2208 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2209 if test "$*" = "X"; then
2210 # -L didn't work.
2211 set X `ls -t $srcdir/configure conftest.file`
2212 fi
2213 rm -f conftest.file
2214 if test "$*" != "X $srcdir/configure conftest.file" \
2215 && test "$*" != "X conftest.file $srcdir/configure"; then
2216
2217 # If neither matched, then we have a broken ls. This can happen
2218 # if, for instance, CONFIG_SHELL is bash and it inherits a
2219 # broken ls alias from the environment. This has actually
2220 # happened. Such a system could not be considered "sane".
2221 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2222 alias in your environment" >&5
2223 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2224 alias in your environment" >&2;}
2225 { (exit 1); exit 1; }; }
2226 fi
2227
2228 test "$2" = conftest.file
2229 )
2230 then
2231 # Ok.
2232 :
2233 else
2234 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2235 Check your system clock" >&5
2236 echo "$as_me: error: newly created file is older than distributed files!
2237 Check your system clock" >&2;}
2238 { (exit 1); exit 1; }; }
2239 fi
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242 test "$program_prefix" != NONE &&
2243 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2244 # Use a double $ so make ignores it.
2245 test "$program_suffix" != NONE &&
2246 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2247 # Double any \ or $. echo might interpret backslashes.
2248 # By default was `s,x,x', remove it if useless.
2249 cat <<\_ACEOF >conftest.sed
2250 s/[\\$]/&&/g;s/;s,x,x,$//
2251 _ACEOF
2252 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2253 rm -f conftest.sed
2254
2255 # expand $ac_aux_dir to an absolute path
2256 am_aux_dir=`cd $ac_aux_dir && pwd`
2257
2258 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2259 # Use eval to expand $SHELL
2260 if eval "$MISSING --run true"; then
2261 am_missing_run="$MISSING --run "
2262 else
2263 am_missing_run=
2264 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2265 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2266 fi
2267
2268 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2269 # We used to keeping the `.' as first argument, in order to
2270 # allow $(mkdir_p) to be used without argument. As in
2271 # $(mkdir_p) $(somedir)
2272 # where $(somedir) is conditionally defined. However this is wrong
2273 # for two reasons:
2274 # 1. if the package is installed by a user who cannot write `.'
2275 # make install will fail,
2276 # 2. the above comment should most certainly read
2277 # $(mkdir_p) $(DESTDIR)$(somedir)
2278 # so it does not work when $(somedir) is undefined and
2279 # $(DESTDIR) is not.
2280 # To support the latter case, we have to write
2281 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2282 # so the `.' trick is pointless.
2283 mkdir_p='mkdir -p --'
2284 else
2285 # On NextStep and OpenStep, the `mkdir' command does not
2286 # recognize any option. It will interpret all options as
2287 # directories to create, and then abort because `.' already
2288 # exists.
2289 for d in ./-p ./--version;
2290 do
2291 test -d $d && rmdir $d
2292 done
2293 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2294 if test -f "$ac_aux_dir/mkinstalldirs"; then
2295 mkdir_p='$(mkinstalldirs)'
2296 else
2297 mkdir_p='$(install_sh) -d'
2298 fi
2299 fi
2300
2301 for ac_prog in gawk mawk nawk awk
2302 do
2303 # Extract the first word of "$ac_prog", so it can be a program name with args.
2304 set dummy $ac_prog; ac_word=$2
2305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307 if test "${ac_cv_prog_AWK+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 if test -n "$AWK"; then
2311 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_AWK="$ac_prog"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324 done
2325 done
2326 IFS=$as_save_IFS
2327
2328 fi
2329 fi
2330 AWK=$ac_cv_prog_AWK
2331 if test -n "$AWK"; then
2332 { echo "$as_me:$LINENO: result: $AWK" >&5
2333 echo "${ECHO_T}$AWK" >&6; }
2334 else
2335 { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2337 fi
2338
2339
2340 test -n "$AWK" && break
2341 done
2342
2343 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2344 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2345 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2346 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 cat >conftest.make <<\_ACEOF
2350 SHELL = /bin/sh
2351 all:
2352 @echo '@@@%%%=$(MAKE)=@@@%%%'
2353 _ACEOF
2354 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2356 *@@@%%%=?*=@@@%%%*)
2357 eval ac_cv_prog_make_${ac_make}_set=yes;;
2358 *)
2359 eval ac_cv_prog_make_${ac_make}_set=no;;
2360 esac
2361 rm -f conftest.make
2362 fi
2363 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2364 { echo "$as_me:$LINENO: result: yes" >&5
2365 echo "${ECHO_T}yes" >&6; }
2366 SET_MAKE=
2367 else
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2370 SET_MAKE="MAKE=${MAKE-make}"
2371 fi
2372
2373 rm -rf .tst 2>/dev/null
2374 mkdir .tst 2>/dev/null
2375 if test -d .tst; then
2376 am__leading_dot=.
2377 else
2378 am__leading_dot=_
2379 fi
2380 rmdir .tst 2>/dev/null
2381
2382 # test to see if srcdir already configured
2383 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2384 test -f $srcdir/config.status; then
2385 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2386 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2387 { (exit 1); exit 1; }; }
2388 fi
2389
2390 # test whether we have cygpath
2391 if test -z "$CYGPATH_W"; then
2392 if (cygpath --version) >/dev/null 2>/dev/null; then
2393 CYGPATH_W='cygpath -w'
2394 else
2395 CYGPATH_W=echo
2396 fi
2397 fi
2398
2399
2400 # Define the identity of the package.
2401 PACKAGE=${PACKAGE}
2402 VERSION=${VERSION}
2403
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE "$PACKAGE"
2407 _ACEOF
2408
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define VERSION "$VERSION"
2412 _ACEOF
2413
2414 # Some tools Automake needs.
2415
2416 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2417
2418
2419 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2420
2421
2422 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2423
2424
2425 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2426
2427
2428 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2429
2430 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2431
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'. However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 if test -n "$STRIP"; then
2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467 { echo "$as_me:$LINENO: result: $STRIP" >&5
2468 echo "${ECHO_T}$STRIP" >&6; }
2469 else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_prog_STRIP"; then
2477 ac_ct_STRIP=$STRIP
2478 # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test -n "$ac_ct_STRIP"; then
2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_STRIP="strip"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2509 else
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514 if test "x$ac_ct_STRIP" = x; then
2515 STRIP=":"
2516 else
2517 case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to [email protected]." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to [email protected]." >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527 STRIP=$ac_ct_STRIP
2528 fi
2529 else
2530 STRIP="$ac_cv_prog_STRIP"
2531 fi
2532
2533 fi
2534 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2535
2536 # We need awk for the "check" target. The system "awk" is bad on
2537 # some platforms.
2538 # Always define AMTAR for backward compatibility.
2539
2540 AMTAR=${AMTAR-"${am_missing_run}tar"}
2541
2542 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2543
2544
2545
2546
2547
2548 # Check whether --enable-shared was given.
2549 if test "${enable_shared+set}" = set; then
2550 enableval=$enable_shared; p=${PACKAGE-default}
2551 case $enableval in
2552 yes) enable_shared=yes ;;
2553 no) enable_shared=no ;;
2554 *)
2555 enable_shared=no
2556 # Look at the argument we got. We use all the common list separators.
2557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2558 for pkg in $enableval; do
2559 IFS="$lt_save_ifs"
2560 if test "X$pkg" = "X$p"; then
2561 enable_shared=yes
2562 fi
2563 done
2564 IFS="$lt_save_ifs"
2565 ;;
2566 esac
2567 else
2568 enable_shared=yes
2569 fi
2570
2571
2572 # Check whether --enable-static was given.
2573 if test "${enable_static+set}" = set; then
2574 enableval=$enable_static; p=${PACKAGE-default}
2575 case $enableval in
2576 yes) enable_static=yes ;;
2577 no) enable_static=no ;;
2578 *)
2579 enable_static=no
2580 # Look at the argument we got. We use all the common list separators.
2581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2582 for pkg in $enableval; do
2583 IFS="$lt_save_ifs"
2584 if test "X$pkg" = "X$p"; then
2585 enable_static=yes
2586 fi
2587 done
2588 IFS="$lt_save_ifs"
2589 ;;
2590 esac
2591 else
2592 enable_static=yes
2593 fi
2594
2595
2596 # Check whether --enable-fast-install was given.
2597 if test "${enable_fast_install+set}" = set; then
2598 enableval=$enable_fast_install; p=${PACKAGE-default}
2599 case $enableval in
2600 yes) enable_fast_install=yes ;;
2601 no) enable_fast_install=no ;;
2602 *)
2603 enable_fast_install=no
2604 # Look at the argument we got. We use all the common list separators.
2605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2606 for pkg in $enableval; do
2607 IFS="$lt_save_ifs"
2608 if test "X$pkg" = "X$p"; then
2609 enable_fast_install=yes
2610 fi
2611 done
2612 IFS="$lt_save_ifs"
2613 ;;
2614 esac
2615 else
2616 enable_fast_install=yes
2617 fi
2618
2619
2620 DEPDIR="${am__leading_dot}deps"
2621
2622 ac_config_commands="$ac_config_commands depfiles"
2623
2624
2625 am_make=${MAKE-make}
2626 cat > confinc << 'END'
2627 am__doit:
2628 @echo done
2629 .PHONY: am__doit
2630 END
2631 # If we don't find an include directive, just comment out the code.
2632 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2633 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2634 am__include="#"
2635 am__quote=
2636 _am_result=none
2637 # First try GNU make style include.
2638 echo "include confinc" > confmf
2639 # We grep out `Entering directory' and `Leaving directory'
2640 # messages which can occur if `w' ends up in MAKEFLAGS.
2641 # In particular we don't look at `^make:' because GNU make might
2642 # be invoked under some other name (usually "gmake"), in which
2643 # case it prints its new name instead of `make'.
2644 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2645 am__include=include
2646 am__quote=
2647 _am_result=GNU
2648 fi
2649 # Now try BSD make style include.
2650 if test "$am__include" = "#"; then
2651 echo '.include "confinc"' > confmf
2652 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2653 am__include=.include
2654 am__quote="\""
2655 _am_result=BSD
2656 fi
2657 fi
2658
2659
2660 { echo "$as_me:$LINENO: result: $_am_result" >&5
2661 echo "${ECHO_T}$_am_result" >&6; }
2662 rm -f confinc confmf
2663
2664 # Check whether --enable-dependency-tracking was given.
2665 if test "${enable_dependency_tracking+set}" = set; then
2666 enableval=$enable_dependency_tracking;
2667 fi
2668
2669 if test "x$enable_dependency_tracking" != xno; then
2670 am_depcomp="$ac_aux_dir/depcomp"
2671 AMDEPBACKSLASH='\'
2672 fi
2673
2674
2675 if test "x$enable_dependency_tracking" != xno; then
2676 AMDEP_TRUE=
2677 AMDEP_FALSE='#'
2678 else
2679 AMDEP_TRUE='#'
2680 AMDEP_FALSE=
2681 fi
2682
2683
2684
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720 { echo "$as_me:$LINENO: result: $CC" >&5
2721 echo "${ECHO_T}$CC" >&6; }
2722 else
2723 { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2725 fi
2726
2727
2728 fi
2729 if test -z "$ac_cv_prog_CC"; then
2730 ac_ct_CC=$CC
2731 # Extract the first word of "gcc", so it can be a program name with args.
2732 set dummy gcc; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_ac_ct_CC="gcc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761 echo "${ECHO_T}$ac_ct_CC" >&6; }
2762 else
2763 { echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6; }
2765 fi
2766
2767 if test "x$ac_ct_CC" = x; then
2768 CC=""
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2773 whose name does not start with the host triplet. If you think this
2774 configuration is useful to you, please write to [email protected]." >&5
2775 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2776 whose name does not start with the host triplet. If you think this
2777 configuration is useful to you, please write to [email protected]." >&2;}
2778 ac_tool_warned=yes ;;
2779 esac
2780 CC=$ac_ct_CC
2781 fi
2782 else
2783 CC="$ac_cv_prog_CC"
2784 fi
2785
2786 if test -z "$CC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}cc; ac_word=$2
2790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC="${ac_tool_prefix}cc"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { echo "$as_me:$LINENO: result: $CC" >&5
2818 echo "${ECHO_T}$CC" >&6; }
2819 else
2820 { echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6; }
2822 fi
2823
2824
2825 fi
2826 fi
2827 if test -z "$CC"; then
2828 # Extract the first word of "cc", so it can be a program name with args.
2829 set dummy cc; ac_word=$2
2830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 ac_prog_rejected=no
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2847 ac_prog_rejected=yes
2848 continue
2849 fi
2850 ac_cv_prog_CC="cc"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 if test $ac_prog_rejected = yes; then
2859 # We found a bogon in the path, so make sure we never use it.
2860 set dummy $ac_cv_prog_CC
2861 shift
2862 if test $# != 0; then
2863 # We chose a different compiler from the bogus one.
2864 # However, it has the same basename, so the bogon will be chosen
2865 # first if we set CC to just the basename; use the full file name.
2866 shift
2867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2868 fi
2869 fi
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { echo "$as_me:$LINENO: result: $CC" >&5
2875 echo "${ECHO_T}$CC" >&6; }
2876 else
2877 { echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6; }
2879 fi
2880
2881
2882 fi
2883 if test -z "$CC"; then
2884 if test -n "$ac_tool_prefix"; then
2885 for ac_prog in cl.exe
2886 do
2887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2891 if test "${ac_cv_prog_CC+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { echo "$as_me:$LINENO: result: $CC" >&5
2917 echo "${ECHO_T}$CC" >&6; }
2918 else
2919 { echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6; }
2921 fi
2922
2923
2924 test -n "$CC" && break
2925 done
2926 fi
2927 if test -z "$CC"; then
2928 ac_ct_CC=$CC
2929 for ac_prog in cl.exe
2930 do
2931 # Extract the first word of "$ac_prog", so it can be a program name with args.
2932 set dummy $ac_prog; ac_word=$2
2933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_ac_ct_CC="$ac_prog"
2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959 if test -n "$ac_ct_CC"; then
2960 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2961 echo "${ECHO_T}$ac_ct_CC" >&6; }
2962 else
2963 { echo "$as_me:$LINENO: result: no" >&5
2964 echo "${ECHO_T}no" >&6; }
2965 fi
2966
2967
2968 test -n "$ac_ct_CC" && break
2969 done
2970
2971 if test "x$ac_ct_CC" = x; then
2972 CC=""
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2977 whose name does not start with the host triplet. If you think this
2978 configuration is useful to you, please write to [email protected]." >&5
2979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2980 whose name does not start with the host triplet. If you think this
2981 configuration is useful to you, please write to [email protected]." >&2;}
2982 ac_tool_warned=yes ;;
2983 esac
2984 CC=$ac_ct_CC
2985 fi
2986 fi
2987
2988 fi
2989
2990
2991 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2992 See \`config.log' for more details." >&5
2993 echo "$as_me: error: no acceptable C compiler found in \$PATH
2994 See \`config.log' for more details." >&2;}
2995 { (exit 1); exit 1; }; }
2996
2997 # Provide some information about the compiler.
2998 echo "$as_me:$LINENO: checking for C compiler version" >&5
2999 ac_compiler=`set X $ac_compile; echo $2`
3000 { (ac_try="$ac_compiler --version >&5"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compiler --version >&5") 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010 { (ac_try="$ac_compiler -v >&5"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compiler -v >&5") 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }
3020 { (ac_try="$ac_compiler -V >&5"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compiler -V >&5") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }
3030
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037
3038 int
3039 main ()
3040 {
3041
3042 ;
3043 return 0;
3044 }
3045 _ACEOF
3046 ac_clean_files_save=$ac_clean_files
3047 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3048 # Try to create an executable without -o first, disregard a.out.
3049 # It will help us diagnose broken compilers, and finding out an intuition
3050 # of exeext.
3051 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3052 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3053 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3054 #
3055 # List of possible output files, starting from the most likely.
3056 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3057 # only as a last resort. b.out is created by i960 compilers.
3058 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3059 #
3060 # The IRIX 6 linker writes into existing files which may not be
3061 # executable, retaining their permissions. Remove them first so a
3062 # subsequent execution test works.
3063 ac_rmfiles=
3064 for ac_file in $ac_files
3065 do
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3069 esac
3070 done
3071 rm -f $ac_rmfiles
3072
3073 if { (ac_try="$ac_link_default"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_link_default") 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; then
3083 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3085 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3086 # so that the user can short-circuit this test for compilers unknown to
3087 # Autoconf.
3088 for ac_file in $ac_files
3089 do
3090 test -f "$ac_file" || continue
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3093 ;;
3094 [ab].out )
3095 # We found the default executable, but exeext='' is most
3096 # certainly right.
3097 break;;
3098 *.* )
3099 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3100 then :; else
3101 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 fi
3103 # We set ac_cv_exeext here because the later test for it is not
3104 # safe: cross compilers may not add the suffix if given an `-o'
3105 # argument, so we may need to know it at that point already.
3106 # Even if this section looks crufty: it has the advantage of
3107 # actually working.
3108 break;;
3109 * )
3110 break;;
3111 esac
3112 done
3113 test "$ac_cv_exeext" = no && ac_cv_exeext=
3114
3115 else
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C compiler cannot create executables
3122 See \`config.log' for more details." >&2;}
3123 { (exit 77); exit 77; }; }
3124 fi
3125
3126 ac_exeext=$ac_cv_exeext
3127 { echo "$as_me:$LINENO: result: $ac_file" >&5
3128 echo "${ECHO_T}$ac_file" >&6; }
3129
3130 # Check that the compiler produces executables we can run. If not, either
3131 # the compiler is broken, or we cross compile.
3132 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3133 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3135 # If not cross compiling, check that we can run a simple program.
3136 if test "$cross_compiling" != yes; then
3137 if { ac_try='./$ac_file'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 cross_compiling=no
3148 else
3149 if test "$cross_compiling" = maybe; then
3150 cross_compiling=yes
3151 else
3152 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3153 If you meant to cross compile, use \`--host'.
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3159 fi
3160 fi
3161 fi
3162 { echo "$as_me:$LINENO: result: yes" >&5
3163 echo "${ECHO_T}yes" >&6; }
3164
3165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3166 ac_clean_files=$ac_clean_files_save
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3171 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3172 echo "${ECHO_T}$cross_compiling" >&6; }
3173
3174 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3176 if { (ac_try="$ac_link"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_link") 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; then
3186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
3189 # `rm'.
3190 for ac_file in conftest.exe conftest conftest.*; do
3191 test -f "$ac_file" || continue
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 break;;
3196 * ) break;;
3197 esac
3198 done
3199 else
3200 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3201 See \`config.log' for more details." >&5
3202 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
3205 fi
3206
3207 rm -f conftest$ac_cv_exeext
3208 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3209 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3210
3211 rm -f conftest.$ac_ext
3212 EXEEXT=$ac_cv_exeext
3213 ac_exeext=$EXEEXT
3214 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3215 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3216 if test "${ac_cv_objext+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225
3226 int
3227 main ()
3228 {
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.o conftest.obj
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; then
3245 for ac_file in conftest.o conftest.obj conftest.*; do
3246 test -f "$ac_file" || continue;
3247 case $ac_file in
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250 break;;
3251 esac
3252 done
3253 else
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3258 See \`config.log' for more details." >&5
3259 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3260 See \`config.log' for more details." >&2;}
3261 { (exit 1); exit 1; }; }
3262 fi
3263
3264 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3265 fi
3266 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3267 echo "${ECHO_T}$ac_cv_objext" >&6; }
3268 OBJEXT=$ac_cv_objext
3269 ac_objext=$OBJEXT
3270 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281
3282 int
3283 main ()
3284 {
3285 #ifndef __GNUC__
3286 choke me
3287 #endif
3288
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compile") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
3307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3308 { (case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_try") 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_try") 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_compiler_gnu=yes
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 ac_compiler_gnu=no
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3337
3338 fi
3339 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3340 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3341 GCC=`test $ac_compiler_gnu = yes && echo yes`
3342 ac_test_CFLAGS=${CFLAGS+set}
3343 ac_save_CFLAGS=$CFLAGS
3344 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3345 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3346 if test "${ac_cv_prog_cc_g+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 ac_save_c_werror_flag=$ac_c_werror_flag
3350 ac_c_werror_flag=yes
3351 ac_cv_prog_cc_g=no
3352 CFLAGS="-g"
3353 cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359
3360 int
3361 main ()
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3383 { (case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_try") 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_try") 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 ac_cv_prog_cc_g=yes
3403 else
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 CFLAGS=""
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414
3415 int
3416 main ()
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3438 { (case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_try") 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_try") 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 :
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 ac_c_werror_flag=$ac_save_c_werror_flag
3463 CFLAGS="-g"
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h. */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_compile") 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_try") 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_try") 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_prog_cc_g=yes
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518
3519 fi
3520
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 fi
3523
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 fi
3526
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3529 fi
3530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3531 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3532 if test "$ac_test_CFLAGS" = set; then
3533 CFLAGS=$ac_save_CFLAGS
3534 elif test $ac_cv_prog_cc_g = yes; then
3535 if test "$GCC" = yes; then
3536 CFLAGS="-g -O2"
3537 else
3538 CFLAGS="-g"
3539 fi
3540 else
3541 if test "$GCC" = yes; then
3542 CFLAGS="-O2"
3543 else
3544 CFLAGS=
3545 fi
3546 fi
3547 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3548 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3549 if test "${ac_cv_prog_cc_c89+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 ac_cv_prog_cc_c89=no
3553 ac_save_CC=$CC
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <stdarg.h>
3561 #include <stdio.h>
3562 #include <sys/types.h>
3563 #include <sys/stat.h>
3564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3565 struct buf { int x; };
3566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3567 static char *e (p, i)
3568 char **p;
3569 int i;
3570 {
3571 return p[i];
3572 }
3573 static char *f (char * (*g) (char **, int), char **p, ...)
3574 {
3575 char *s;
3576 va_list v;
3577 va_start (v,p);
3578 s = g (p, va_arg (v,int));
3579 va_end (v);
3580 return s;
3581 }
3582
3583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3584 function prototypes and stuff, but not '\xHH' hex character constants.
3585 These don't provoke an error unfortunately, instead are silently treated
3586 as 'x'. The following induces an error, until -std is added to get
3587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3588 array size at least. It's necessary to write '\x00'==0 to get something
3589 that's true only with -std. */
3590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3591
3592 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3593 inside strings and character constants. */
3594 #define FOO(x) 'x'
3595 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3596
3597 int test (int i, double x);
3598 struct s1 {int (*f) (int a);};
3599 struct s2 {int (*f) (double a);};
3600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3601 int argc;
3602 char **argv;
3603 int
3604 main ()
3605 {
3606 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3612 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3613 do
3614 CC="$ac_save_CC $ac_arg"
3615 rm -f conftest.$ac_objext
3616 if { (ac_try="$ac_compile"
3617 case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
3629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3630 { (case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_try") 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; } &&
3639 { ac_try='test -s conftest.$ac_objext'
3640 { (case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645 (eval "$ac_try") 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_cv_prog_cc_c89=$ac_arg
3650 else
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654
3655 fi
3656
3657 rm -f core conftest.err conftest.$ac_objext
3658 test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 done
3660 rm -f conftest.$ac_ext
3661 CC=$ac_save_CC
3662
3663 fi
3664 # AC_CACHE_VAL
3665 case "x$ac_cv_prog_cc_c89" in
3666 x)
3667 { echo "$as_me:$LINENO: result: none needed" >&5
3668 echo "${ECHO_T}none needed" >&6; } ;;
3669 xno)
3670 { echo "$as_me:$LINENO: result: unsupported" >&5
3671 echo "${ECHO_T}unsupported" >&6; } ;;
3672 *)
3673 CC="$CC $ac_cv_prog_cc_c89"
3674 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3675 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3676 esac
3677
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
3685 depcc="$CC" am_compiler_list=
3686
3687 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3688 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3689 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3693 # We make a subdir and do the tests there. Otherwise we can end up
3694 # making bogus files that we don't know about and never remove. For
3695 # instance it was reported that on HP-UX the gcc test will end up
3696 # making a dummy file named `D' -- because `-MD' means `put the output
3697 # in D'.
3698 mkdir conftest.dir
3699 # Copy depcomp to subdir because otherwise we won't find it if we're
3700 # using a relative directory.
3701 cp "$am_depcomp" conftest.dir
3702 cd conftest.dir
3703 # We will build objects and dependencies in a subdirectory because
3704 # it helps to detect inapplicable dependency modes. For instance
3705 # both Tru64's cc and ICC support -MD to output dependencies as a
3706 # side effect of compilation, but ICC will put the dependencies in
3707 # the current directory while Tru64 will put them in the object
3708 # directory.
3709 mkdir sub
3710
3711 am_cv_CC_dependencies_compiler_type=none
3712 if test "$am_compiler_list" = ""; then
3713 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 fi
3715 for depmode in $am_compiler_list; do
3716 # Setup a source with many dependencies, because some compilers
3717 # like to wrap large dependency lists on column 80 (with \), and
3718 # we should not choose a depcomp mode which is confused by this.
3719 #
3720 # We need to recreate these files for each test, as the compiler may
3721 # overwrite some of them when testing with obscure command lines.
3722 # This happens at least with the AIX C compiler.
3723 : > sub/conftest.c
3724 for i in 1 2 3 4 5 6; do
3725 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3726 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3727 # Solaris 8's {/usr,}/bin/sh.
3728 touch sub/conftst$i.h
3729 done
3730 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3731
3732 case $depmode in
3733 nosideeffect)
3734 # after this tag, mechanisms are not by side-effect, so they'll
3735 # only be used when explicitly requested
3736 if test "x$enable_dependency_tracking" = xyes; then
3737 continue
3738 else
3739 break
3740 fi
3741 ;;
3742 none) break ;;
3743 esac
3744 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3745 # mode. It turns out that the SunPro C++ compiler does not properly
3746 # handle `-M -o', and we need to detect this.
3747 if depmode=$depmode \
3748 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3750 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3751 >/dev/null 2>conftest.err &&
3752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3753 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3755 # icc doesn't choke on unknown options, it will just issue warnings
3756 # or remarks (even with -Werror). So we grep stderr for any message
3757 # that says an option was ignored or not supported.
3758 # When given -MP, icc 7.0 and 7.1 complain thusly:
3759 # icc: Command line warning: ignoring option '-M'; no argument required
3760 # The diagnosis changed in icc 8.0:
3761 # icc: Command line remark: option '-MP' not supported
3762 if (grep 'ignoring option' conftest.err ||
3763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3764 am_cv_CC_dependencies_compiler_type=$depmode
3765 break
3766 fi
3767 fi
3768 done
3769
3770 cd ..
3771 rm -rf conftest.dir
3772 else
3773 am_cv_CC_dependencies_compiler_type=none
3774 fi
3775
3776 fi
3777 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3778 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3779 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3780
3781
3782
3783 if
3784 test "x$enable_dependency_tracking" != xno \
3785 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3786 am__fastdepCC_TRUE=
3787 am__fastdepCC_FALSE='#'
3788 else
3789 am__fastdepCC_TRUE='#'
3790 am__fastdepCC_FALSE=
3791 fi
3792
3793
3794 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3795 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3796 if test "${lt_cv_path_SED+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 # Loop through the user's path and test for sed and gsed.
3800 # Then use that list of sed's as ones to test for truncation.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for lt_ac_prog in sed gsed; do
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3809 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3810 fi
3811 done
3812 done
3813 done
3814 lt_ac_max=0
3815 lt_ac_count=0
3816 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3817 # along with /bin/sed that truncates output.
3818 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3819 test ! -f $lt_ac_sed && continue
3820 cat /dev/null > conftest.in
3821 lt_ac_count=0
3822 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3823 # Check for GNU sed and select it if it is found.
3824 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3825 lt_cv_path_SED=$lt_ac_sed
3826 break
3827 fi
3828 while true; do
3829 cat conftest.in conftest.in >conftest.tmp
3830 mv conftest.tmp conftest.in
3831 cp conftest.in conftest.nl
3832 echo >>conftest.nl
3833 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3834 cmp -s conftest.out conftest.nl || break
3835 # 10000 chars as input seems more than enough
3836 test $lt_ac_count -gt 10 && break
3837 lt_ac_count=`expr $lt_ac_count + 1`
3838 if test $lt_ac_count -gt $lt_ac_max; then
3839 lt_ac_max=$lt_ac_count
3840 lt_cv_path_SED=$lt_ac_sed
3841 fi
3842 done
3843 done
3844
3845 fi
3846
3847 SED=$lt_cv_path_SED
3848 { echo "$as_me:$LINENO: result: $SED" >&5
3849 echo "${ECHO_T}$SED" >&6; }
3850
3851 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3852 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3853 if test "${ac_cv_path_GREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 # Extract the first word of "grep ggrep" to use in msg output
3857 if test -z "$GREP"; then
3858 set dummy grep ggrep; ac_prog_name=$2
3859 if test "${ac_cv_path_GREP+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 ac_path_GREP_found=false
3863 # Loop through the user's path and test for each of PROGNAME-LIST
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in grep ggrep; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3872 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3873 # Check for GNU ac_path_GREP and select it if it is found.
3874 # Check for GNU $ac_path_GREP
3875 case `"$ac_path_GREP" --version 2>&1` in
3876 *GNU*)
3877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3878 *)
3879 ac_count=0
3880 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3881 while :
3882 do
3883 cat "conftest.in" "conftest.in" >"conftest.tmp"
3884 mv "conftest.tmp" "conftest.in"
3885 cp "conftest.in" "conftest.nl"
3886 echo 'GREP' >> "conftest.nl"
3887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889 ac_count=`expr $ac_count + 1`
3890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3891 # Best one so far, save it but keep looking for a better one
3892 ac_cv_path_GREP="$ac_path_GREP"
3893 ac_path_GREP_max=$ac_count
3894 fi
3895 # 10*(2^10) chars as input seems more than enough
3896 test $ac_count -gt 10 && break
3897 done
3898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 esac
3900
3901
3902 $ac_path_GREP_found && break 3
3903 done
3904 done
3905
3906 done
3907 IFS=$as_save_IFS
3908
3909
3910 fi
3911
3912 GREP="$ac_cv_path_GREP"
3913 if test -z "$GREP"; then
3914 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3915 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3916 { (exit 1); exit 1; }; }
3917 fi
3918
3919 else
3920 ac_cv_path_GREP=$GREP
3921 fi
3922
3923
3924 fi
3925 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3926 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3927 GREP="$ac_cv_path_GREP"
3928
3929
3930 { echo "$as_me:$LINENO: checking for egrep" >&5
3931 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3932 if test "${ac_cv_path_EGREP+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3936 then ac_cv_path_EGREP="$GREP -E"
3937 else
3938 # Extract the first word of "egrep" to use in msg output
3939 if test -z "$EGREP"; then
3940 set dummy egrep; ac_prog_name=$2
3941 if test "${ac_cv_path_EGREP+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 ac_path_EGREP_found=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948 do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in egrep; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3955 # Check for GNU ac_path_EGREP and select it if it is found.
3956 # Check for GNU $ac_path_EGREP
3957 case `"$ac_path_EGREP" --version 2>&1` in
3958 *GNU*)
3959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3960 *)
3961 ac_count=0
3962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3963 while :
3964 do
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 echo 'EGREP' >> "conftest.nl"
3969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 ac_count=`expr $ac_count + 1`
3972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_EGREP="$ac_path_EGREP"
3975 ac_path_EGREP_max=$ac_count
3976 fi
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981 esac
3982
3983
3984 $ac_path_EGREP_found && break 3
3985 done
3986 done
3987
3988 done
3989 IFS=$as_save_IFS
3990
3991
3992 fi
3993
3994 EGREP="$ac_cv_path_EGREP"
3995 if test -z "$EGREP"; then
3996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3997 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3998 { (exit 1); exit 1; }; }
3999 fi
4000
4001 else
4002 ac_cv_path_EGREP=$EGREP
4003 fi
4004
4005
4006 fi
4007 fi
4008 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4009 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4010 EGREP="$ac_cv_path_EGREP"
4011
4012
4013
4014 # Check whether --with-gnu-ld was given.
4015 if test "${with_gnu_ld+set}" = set; then
4016 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4017 else
4018 with_gnu_ld=no
4019 fi
4020
4021 ac_prog=ld
4022 if test "$GCC" = yes; then
4023 # Check if gcc -print-prog-name=ld gives a path.
4024 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4025 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4026 case $host in
4027 *-*-mingw*)
4028 # gcc leaves a trailing carriage return which upsets mingw
4029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4030 *)
4031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4032 esac
4033 case $ac_prog in
4034 # Accept absolute paths.
4035 [\\/]* | ?:[\\/]*)
4036 re_direlt='/[^/][^/]*/\.\./'
4037 # Canonicalize the pathname of ld
4038 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4039 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4040 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4041 done
4042 test -z "$LD" && LD="$ac_prog"
4043 ;;
4044 "")
4045 # If it fails, then pretend we aren't using GCC.
4046 ac_prog=ld
4047 ;;
4048 *)
4049 # If it is relative, then search for the first ld in PATH.
4050 with_gnu_ld=unknown
4051 ;;
4052 esac
4053 elif test "$with_gnu_ld" = yes; then
4054 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4055 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4056 else
4057 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4058 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4059 fi
4060 if test "${lt_cv_path_LD+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 if test -z "$LD"; then
4064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4065 for ac_dir in $PATH; do
4066 IFS="$lt_save_ifs"
4067 test -z "$ac_dir" && ac_dir=.
4068 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4069 lt_cv_path_LD="$ac_dir/$ac_prog"
4070 # Check to see if the program is GNU ld. I'd rather use --version,
4071 # but apparently some variants of GNU ld only accept -v.
4072 # Break only if it was the GNU/non-GNU ld that we prefer.
4073 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4074 *GNU* | *'with BFD'*)
4075 test "$with_gnu_ld" != no && break
4076 ;;
4077 *)
4078 test "$with_gnu_ld" != yes && break
4079 ;;
4080 esac
4081 fi
4082 done
4083 IFS="$lt_save_ifs"
4084 else
4085 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4086 fi
4087 fi
4088
4089 LD="$lt_cv_path_LD"
4090 if test -n "$LD"; then
4091 { echo "$as_me:$LINENO: result: $LD" >&5
4092 echo "${ECHO_T}$LD" >&6; }
4093 else
4094 { echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6; }
4096 fi
4097 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4098 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4099 { (exit 1); exit 1; }; }
4100 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4101 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4102 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4106 case `$LD -v 2>&1 </dev/null` in
4107 *GNU* | *'with BFD'*)
4108 lt_cv_prog_gnu_ld=yes
4109 ;;
4110 *)
4111 lt_cv_prog_gnu_ld=no
4112 ;;
4113 esac
4114 fi
4115 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4116 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4117 with_gnu_ld=$lt_cv_prog_gnu_ld
4118
4119
4120 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4121 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4122 if test "${lt_cv_ld_reload_flag+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 lt_cv_ld_reload_flag='-r'
4126 fi
4127 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4128 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4129 reload_flag=$lt_cv_ld_reload_flag
4130 case $reload_flag in
4131 "" | " "*) ;;
4132 *) reload_flag=" $reload_flag" ;;
4133 esac
4134 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4135 case $host_os in
4136 darwin*)
4137 if test "$GCC" = yes; then
4138 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4139 else
4140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4141 fi
4142 ;;
4143 esac
4144
4145 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4146 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4147 if test "${lt_cv_path_NM+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test -n "$NM"; then
4151 # Let the user override the test.
4152 lt_cv_path_NM="$NM"
4153 else
4154 lt_nm_to_check="${ac_tool_prefix}nm"
4155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4156 lt_nm_to_check="$lt_nm_to_check nm"
4157 fi
4158 for lt_tmp_nm in $lt_nm_to_check; do
4159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4160 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4161 IFS="$lt_save_ifs"
4162 test -z "$ac_dir" && ac_dir=.
4163 tmp_nm="$ac_dir/$lt_tmp_nm"
4164 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4165 # Check to see if the nm accepts a BSD-compat flag.
4166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4167 # nm: unknown option "B" ignored
4168 # Tru64's nm complains that /dev/null is an invalid object file
4169 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4170 */dev/null* | *'Invalid file or object type'*)
4171 lt_cv_path_NM="$tmp_nm -B"
4172 break
4173 ;;
4174 *)
4175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4176 */dev/null*)
4177 lt_cv_path_NM="$tmp_nm -p"
4178 break
4179 ;;
4180 *)
4181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4182 continue # so that we can try to find one that supports BSD flags
4183 ;;
4184 esac
4185 ;;
4186 esac
4187 fi
4188 done
4189 IFS="$lt_save_ifs"
4190 done
4191 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4192 fi
4193 fi
4194 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4195 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4196 NM="$lt_cv_path_NM"
4197
4198 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4199 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4200 LN_S=$as_ln_s
4201 if test "$LN_S" = "ln -s"; then
4202 { echo "$as_me:$LINENO: result: yes" >&5
4203 echo "${ECHO_T}yes" >&6; }
4204 else
4205 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4206 echo "${ECHO_T}no, using $LN_S" >&6; }
4207 fi
4208
4209 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4210 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4211 if test "${lt_cv_deplibs_check_method+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214 lt_cv_file_magic_cmd='$MAGIC_CMD'
4215 lt_cv_file_magic_test_file=
4216 lt_cv_deplibs_check_method='unknown'
4217 # Need to set the preceding variable on all platforms that support
4218 # interlibrary dependencies.
4219 # 'none' -- dependencies not supported.
4220 # `unknown' -- same as none, but documents that we really don't know.
4221 # 'pass_all' -- all dependencies passed with no checks.
4222 # 'test_compile' -- check by making test program.
4223 # 'file_magic [[regex]]' -- check by looking for files in library path
4224 # which responds to the $file_magic_cmd with a given extended regex.
4225 # If you have `file' or equivalent on your system and you're not sure
4226 # whether `pass_all' will *always* work, you probably want this one.
4227
4228 case $host_os in
4229 aix4* | aix5*)
4230 lt_cv_deplibs_check_method=pass_all
4231 ;;
4232
4233 beos*)
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
4237 bsdi[45]*)
4238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4239 lt_cv_file_magic_cmd='/usr/bin/file -L'
4240 lt_cv_file_magic_test_file=/shlib/libc.so
4241 ;;
4242
4243 cygwin*)
4244 # func_win32_libid is a shell function defined in ltmain.sh
4245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4246 lt_cv_file_magic_cmd='func_win32_libid'
4247 ;;
4248
4249 mingw* | pw32*)
4250 # Base MSYS/MinGW do not provide the 'file' command needed by
4251 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4252 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4253 lt_cv_file_magic_cmd='$OBJDUMP -f'
4254 ;;
4255
4256 darwin* | rhapsody*)
4257 lt_cv_deplibs_check_method=pass_all
4258 ;;
4259
4260 freebsd* | dragonfly*)
4261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4262 case $host_cpu in
4263 i*86 )
4264 # Not sure whether the presence of OpenBSD here was a mistake.
4265 # Let's accept both of them until this is cleared up.
4266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4267 lt_cv_file_magic_cmd=/usr/bin/file
4268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4269 ;;
4270 esac
4271 else
4272 lt_cv_deplibs_check_method=pass_all
4273 fi
4274 ;;
4275
4276 gnu*)
4277 lt_cv_deplibs_check_method=pass_all
4278 ;;
4279
4280 hpux10.20* | hpux11*)
4281 lt_cv_file_magic_cmd=/usr/bin/file
4282 case $host_cpu in
4283 ia64*)
4284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4285 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4286 ;;
4287 hppa*64*)
4288 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]'
4289 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4290 ;;
4291 *)
4292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4293 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4294 ;;
4295 esac
4296 ;;
4297
4298 interix3*)
4299 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4301 ;;
4302
4303 irix5* | irix6* | nonstopux*)
4304 case $LD in
4305 *-32|*"-32 ") libmagic=32-bit;;
4306 *-n32|*"-n32 ") libmagic=N32;;
4307 *-64|*"-64 ") libmagic=64-bit;;
4308 *) libmagic=never-match;;
4309 esac
4310 lt_cv_deplibs_check_method=pass_all
4311 ;;
4312
4313 # This must be Linux ELF.
4314 linux* | k*bsd*-gnu)
4315 lt_cv_deplibs_check_method=pass_all
4316 ;;
4317
4318 netbsd* | netbsdelf*-gnu)
4319 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4321 else
4322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4323 fi
4324 ;;
4325
4326 newos6*)
4327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4328 lt_cv_file_magic_cmd=/usr/bin/file
4329 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4330 ;;
4331
4332 nto-qnx*)
4333 lt_cv_deplibs_check_method=unknown
4334 ;;
4335
4336 openbsd*)
4337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4339 else
4340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4341 fi
4342 ;;
4343
4344 osf3* | osf4* | osf5*)
4345 lt_cv_deplibs_check_method=pass_all
4346 ;;
4347
4348 solaris*)
4349 lt_cv_deplibs_check_method=pass_all
4350 ;;
4351
4352 sysv4 | sysv4.3*)
4353 case $host_vendor in
4354 motorola)
4355 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]'
4356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4357 ;;
4358 ncr)
4359 lt_cv_deplibs_check_method=pass_all
4360 ;;
4361 sequent)
4362 lt_cv_file_magic_cmd='/bin/file'
4363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4364 ;;
4365 sni)
4366 lt_cv_file_magic_cmd='/bin/file'
4367 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4368 lt_cv_file_magic_test_file=/lib/libc.so
4369 ;;
4370 siemens)
4371 lt_cv_deplibs_check_method=pass_all
4372 ;;
4373 pc)
4374 lt_cv_deplibs_check_method=pass_all
4375 ;;
4376 esac
4377 ;;
4378
4379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4380 lt_cv_deplibs_check_method=pass_all
4381 ;;
4382 esac
4383
4384 fi
4385 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4386 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4387 file_magic_cmd=$lt_cv_file_magic_cmd
4388 deplibs_check_method=$lt_cv_deplibs_check_method
4389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4390
4391
4392
4393
4394 # If no C compiler was specified, use CC.
4395 LTCC=${LTCC-"$CC"}
4396
4397 # If no C compiler flags were specified, use CFLAGS.
4398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4399
4400 # Allow CC to be a program name with arguments.
4401 compiler=$CC
4402
4403
4404 # Check whether --enable-libtool-lock was given.
4405 if test "${enable_libtool_lock+set}" = set; then
4406 enableval=$enable_libtool_lock;
4407 fi
4408
4409 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4410
4411 # Some flags need to be propagated to the compiler or linker for good
4412 # libtool support.
4413 case $host in
4414 ia64-*-hpux*)
4415 # Find out which ABI we are using.
4416 echo 'int i;' > conftest.$ac_ext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; then
4422 case `/usr/bin/file conftest.$ac_objext` in
4423 *ELF-32*)
4424 HPUX_IA64_MODE="32"
4425 ;;
4426 *ELF-64*)
4427 HPUX_IA64_MODE="64"
4428 ;;
4429 esac
4430 fi
4431 rm -rf conftest*
4432 ;;
4433 *-*-irix6*)
4434 # Find out which ABI we are using.
4435 echo '#line 4435 "configure"' > conftest.$ac_ext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; then
4441 if test "$lt_cv_prog_gnu_ld" = yes; then
4442 case `/usr/bin/file conftest.$ac_objext` in
4443 *32-bit*)
4444 LD="${LD-ld} -melf32bsmip"
4445 ;;
4446 *N32*)
4447 LD="${LD-ld} -melf32bmipn32"
4448 ;;
4449 *64-bit*)
4450 LD="${LD-ld} -melf64bmip"
4451 ;;
4452 esac
4453 else
4454 case `/usr/bin/file conftest.$ac_objext` in
4455 *32-bit*)
4456 LD="${LD-ld} -32"
4457 ;;
4458 *N32*)
4459 LD="${LD-ld} -n32"
4460 ;;
4461 *64-bit*)
4462 LD="${LD-ld} -64"
4463 ;;
4464 esac
4465 fi
4466 fi
4467 rm -rf conftest*
4468 ;;
4469
4470 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4471 # Find out which ABI we are using.
4472 echo 'int i;' > conftest.$ac_ext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; then
4478 case `/usr/bin/file conftest.o` in
4479 *32-bit*)
4480 case $host in
4481 x86_64-*linux*)
4482 LD="${LD-ld} -m elf_i386"
4483 ;;
4484 ppc64-*linux*|powerpc64-*linux*)
4485 LD="${LD-ld} -m elf32ppclinux"
4486 ;;
4487 s390x-*linux*)
4488 LD="${LD-ld} -m elf_s390"
4489 ;;
4490 sparc64-*linux*)
4491 LD="${LD-ld} -m elf32_sparc"
4492 ;;
4493 esac
4494 ;;
4495 *64-bit*)
4496 case $host in
4497 x86_64-*linux*)
4498 LD="${LD-ld} -m elf_x86_64"
4499 ;;
4500 ppc*-*linux*|powerpc*-*linux*)
4501 LD="${LD-ld} -m elf64ppc"
4502 ;;
4503 s390*-*linux*)
4504 LD="${LD-ld} -m elf64_s390"
4505 ;;
4506 sparc*-*linux*)
4507 LD="${LD-ld} -m elf64_sparc"
4508 ;;
4509 esac
4510 ;;
4511 esac
4512 fi
4513 rm -rf conftest*
4514 ;;
4515
4516 *-*-sco3.2v5*)
4517 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4518 SAVE_CFLAGS="$CFLAGS"
4519 CFLAGS="$CFLAGS -belf"
4520 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4521 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4522 if test "${lt_cv_cc_needs_belf+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537
4538 int
4539 main ()
4540 {
4541
4542 ;
4543 return 0;
4544 }
4545 _ACEOF
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (ac_try="$ac_link"
4548 case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_link") 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4561 { (case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_try") 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest$ac_exeext'
4571 { (case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_try") 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 lt_cv_cc_needs_belf=yes
4581 else
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 lt_cv_cc_needs_belf=no
4586 fi
4587
4588 rm -f core conftest.err conftest.$ac_objext \
4589 conftest$ac_exeext conftest.$ac_ext
4590 ac_ext=c
4591 ac_cpp='$CPP $CPPFLAGS'
4592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4595
4596 fi
4597 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4598 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4601 CFLAGS="$SAVE_CFLAGS"
4602 fi
4603 ;;
4604 sparc*-*solaris*)
4605 # Find out which ABI we are using.
4606 echo 'int i;' > conftest.$ac_ext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; then
4612 case `/usr/bin/file conftest.o` in
4613 *64-bit*)
4614 case $lt_cv_prog_gnu_ld in
4615 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4616 *) LD="${LD-ld} -64" ;;
4617 esac
4618 ;;
4619 esac
4620 fi
4621 rm -rf conftest*
4622 ;;
4623
4624
4625 esac
4626
4627 need_locks="$enable_libtool_lock"
4628
4629
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4636 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4637 # On Suns, sometimes $CPP names a directory.
4638 if test -n "$CPP" && test -d "$CPP"; then
4639 CPP=
4640 fi
4641 if test -z "$CPP"; then
4642 if test "${ac_cv_prog_CPP+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 # Double quotes because CPP needs to be expanded
4646 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4647 do
4648 ac_preproc_ok=false
4649 for ac_c_preproc_warn_flag in '' yes
4650 do
4651 # Use a header file that comes with gcc, so configuring glibc
4652 # with a fresh cross-compiler works.
4653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4654 # <limits.h> exists even on freestanding compilers.
4655 # On the NeXT, cc -E runs the code through the compiler's parser,
4656 # not just through cpp. "Syntax error" is here to catch this case.
4657 cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h. */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 #ifdef __STDC__
4664 # include <limits.h>
4665 #else
4666 # include <assert.h>
4667 #endif
4668 Syntax error
4669 _ACEOF
4670 if { (ac_try="$ac_cpp conftest.$ac_ext"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } >/dev/null; then
4683 if test -s conftest.err; then
4684 ac_cpp_err=$ac_c_preproc_warn_flag
4685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4686 else
4687 ac_cpp_err=
4688 fi
4689 else
4690 ac_cpp_err=yes
4691 fi
4692 if test -z "$ac_cpp_err"; then
4693 :
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 # Broken: fails on valid input.
4699 continue
4700 fi
4701
4702 rm -f conftest.err conftest.$ac_ext
4703
4704 # OK, works on sane cases. Now check whether nonexistent headers
4705 # can be detected and how.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <ac_nonexistent.h>
4713 _ACEOF
4714 if { (ac_try="$ac_cpp conftest.$ac_ext"
4715 case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null; then
4727 if test -s conftest.err; then
4728 ac_cpp_err=$ac_c_preproc_warn_flag
4729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4730 else
4731 ac_cpp_err=
4732 fi
4733 else
4734 ac_cpp_err=yes
4735 fi
4736 if test -z "$ac_cpp_err"; then
4737 # Broken: success on invalid input.
4738 continue
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 # Passes both tests.
4744 ac_preproc_ok=:
4745 break
4746 fi
4747
4748 rm -f conftest.err conftest.$ac_ext
4749
4750 done
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then
4754 break
4755 fi
4756
4757 done
4758 ac_cv_prog_CPP=$CPP
4759
4760 fi
4761 CPP=$ac_cv_prog_CPP
4762 else
4763 ac_cv_prog_CPP=$CPP
4764 fi
4765 { echo "$as_me:$LINENO: result: $CPP" >&5
4766 echo "${ECHO_T}$CPP" >&6; }
4767 ac_preproc_ok=false
4768 for ac_c_preproc_warn_flag in '' yes
4769 do
4770 # Use a header file that comes with gcc, so configuring glibc
4771 # with a fresh cross-compiler works.
4772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4773 # <limits.h> exists even on freestanding compilers.
4774 # On the NeXT, cc -E runs the code through the compiler's parser,
4775 # not just through cpp. "Syntax error" is here to catch this case.
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 #ifdef __STDC__
4783 # include <limits.h>
4784 #else
4785 # include <assert.h>
4786 #endif
4787 Syntax error
4788 _ACEOF
4789 if { (ac_try="$ac_cpp conftest.$ac_ext"
4790 case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793 esac
4794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } >/dev/null; then
4802 if test -s conftest.err; then
4803 ac_cpp_err=$ac_c_preproc_warn_flag
4804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4805 else
4806 ac_cpp_err=
4807 fi
4808 else
4809 ac_cpp_err=yes
4810 fi
4811 if test -z "$ac_cpp_err"; then
4812 :
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 # Broken: fails on valid input.
4818 continue
4819 fi
4820
4821 rm -f conftest.err conftest.$ac_ext
4822
4823 # OK, works on sane cases. Now check whether nonexistent headers
4824 # can be detected and how.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <ac_nonexistent.h>
4832 _ACEOF
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_c_preproc_warn_flag
4848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4849 else
4850 ac_cpp_err=
4851 fi
4852 else
4853 ac_cpp_err=yes
4854 fi
4855 if test -z "$ac_cpp_err"; then
4856 # Broken: success on invalid input.
4857 continue
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 # Passes both tests.
4863 ac_preproc_ok=:
4864 break
4865 fi
4866
4867 rm -f conftest.err conftest.$ac_ext
4868
4869 done
4870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4871 rm -f conftest.err conftest.$ac_ext
4872 if $ac_preproc_ok; then
4873 :
4874 else
4875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4876 See \`config.log' for more details." >&5
4877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4878 See \`config.log' for more details." >&2;}
4879 { (exit 1); exit 1; }; }
4880 fi
4881
4882 ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887
4888
4889 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4890 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4891 if test "${ac_cv_header_stdc+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <stdlib.h>
4901 #include <stdarg.h>
4902 #include <string.h>
4903 #include <float.h>
4904
4905 int
4906 main ()
4907 {
4908
4909 ;
4910 return 0;
4911 }
4912 _ACEOF
4913 rm -f conftest.$ac_objext
4914 if { (ac_try="$ac_compile"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_compile") 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928 { (case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest.$ac_objext'
4938 { (case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_cv_header_stdc=yes
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ac_cv_header_stdc=no
4953 fi
4954
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956
4957 if test $ac_cv_header_stdc = yes; then
4958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4959 cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h. */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 #include <string.h>
4966
4967 _ACEOF
4968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4969 $EGREP "memchr" >/dev/null 2>&1; then
4970 :
4971 else
4972 ac_cv_header_stdc=no
4973 fi
4974 rm -f conftest*
4975
4976 fi
4977
4978 if test $ac_cv_header_stdc = yes; then
4979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 #include <stdlib.h>
4987
4988 _ACEOF
4989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4990 $EGREP "free" >/dev/null 2>&1; then
4991 :
4992 else
4993 ac_cv_header_stdc=no
4994 fi
4995 rm -f conftest*
4996
4997 fi
4998
4999 if test $ac_cv_header_stdc = yes; then
5000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5001 if test "$cross_compiling" = yes; then
5002 :
5003 else
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 #include <ctype.h>
5011 #include <stdlib.h>
5012 #if ((' ' & 0x0FF) == 0x020)
5013 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5014 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5015 #else
5016 # define ISLOWER(c) \
5017 (('a' <= (c) && (c) <= 'i') \
5018 || ('j' <= (c) && (c) <= 'r') \
5019 || ('s' <= (c) && (c) <= 'z'))
5020 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5021 #endif
5022
5023 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5024 int
5025 main ()
5026 {
5027 int i;
5028 for (i = 0; i < 256; i++)
5029 if (XOR (islower (i), ISLOWER (i))
5030 || toupper (i) != TOUPPER (i))
5031 return 2;
5032 return 0;
5033 }
5034 _ACEOF
5035 rm -f conftest$ac_exeext
5036 if { (ac_try="$ac_link"
5037 case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_link") 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5046 { (case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_try") 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 :
5056 else
5057 echo "$as_me: program exited with status $ac_status" >&5
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 ( exit $ac_status )
5062 ac_cv_header_stdc=no
5063 fi
5064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5065 fi
5066
5067
5068 fi
5069 fi
5070 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5071 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5072 if test $ac_cv_header_stdc = yes; then
5073
5074 cat >>confdefs.h <<\_ACEOF
5075 #define STDC_HEADERS 1
5076 _ACEOF
5077
5078 fi
5079
5080 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5091 inttypes.h stdint.h unistd.h
5092 do
5093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5106
5107 #include <$ac_header>
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (ac_try="$ac_compile"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_compile") 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5124 { (case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_try") 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; } &&
5133 { ac_try='test -s conftest.$ac_objext'
5134 { (case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_try") 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 eval "$as_ac_Header=yes"
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 eval "$as_ac_Header=no"
5149 fi
5150
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 fi
5153 ac_res=`eval echo '${'$as_ac_Header'}'`
5154 { echo "$as_me:$LINENO: result: $ac_res" >&5
5155 echo "${ECHO_T}$ac_res" >&6; }
5156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5157 cat >>confdefs.h <<_ACEOF
5158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5159 _ACEOF
5160
5161 fi
5162
5163 done
5164
5165
5166
5167 for ac_header in dlfcn.h
5168 do
5169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 fi
5176 ac_res=`eval echo '${'$as_ac_Header'}'`
5177 { echo "$as_me:$LINENO: result: $ac_res" >&5
5178 echo "${ECHO_T}$ac_res" >&6; }
5179 else
5180 # Is the header compilable?
5181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 $ac_includes_default
5190 #include <$ac_header>
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5207 { (case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_try") 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try='test -s conftest.$ac_objext'
5217 { (case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_try") 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_header_compiler=yes
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231 ac_header_compiler=no
5232 fi
5233
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5236 echo "${ECHO_T}$ac_header_compiler" >&6; }
5237
5238 # Is the header present?
5239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5241 cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 #include <$ac_header>
5248 _ACEOF
5249 if { (ac_try="$ac_cpp conftest.$ac_ext"
5250 case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } >/dev/null; then
5262 if test -s conftest.err; then
5263 ac_cpp_err=$ac_c_preproc_warn_flag
5264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5265 else
5266 ac_cpp_err=
5267 fi
5268 else
5269 ac_cpp_err=yes
5270 fi
5271 if test -z "$ac_cpp_err"; then
5272 ac_header_preproc=yes
5273 else
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5276
5277 ac_header_preproc=no
5278 fi
5279
5280 rm -f conftest.err conftest.$ac_ext
5281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5282 echo "${ECHO_T}$ac_header_preproc" >&6; }
5283
5284 # So? What about this header?
5285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5286 yes:no: )
5287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5291 ac_header_preproc=yes
5292 ;;
5293 no:yes:* )
5294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5306
5307 ;;
5308 esac
5309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 eval "$as_ac_Header=\$ac_header_preproc"
5315 fi
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5319
5320 fi
5321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5322 cat >>confdefs.h <<_ACEOF
5323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5324 _ACEOF
5325
5326 fi
5327
5328 done
5329
5330 ac_ext=cpp
5331 ac_cpp='$CXXCPP $CPPFLAGS'
5332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5335 if test -z "$CXX"; then
5336 if test -n "$CCC"; then
5337 CXX=$CCC
5338 else
5339 if test -n "$ac_tool_prefix"; then
5340 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5341 do
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5346 if test "${ac_cv_prog_CXX+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 if test -n "$CXX"; then
5350 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 CXX=$ac_cv_prog_CXX
5370 if test -n "$CXX"; then
5371 { echo "$as_me:$LINENO: result: $CXX" >&5
5372 echo "${ECHO_T}$CXX" >&6; }
5373 else
5374 { echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6; }
5376 fi
5377
5378
5379 test -n "$CXX" && break
5380 done
5381 fi
5382 if test -z "$CXX"; then
5383 ac_ct_CXX=$CXX
5384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5385 do
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 if test -n "$ac_ct_CXX"; then
5394 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_ac_ct_CXX="$ac_prog"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5406 fi
5407 done
5408 done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5414 if test -n "$ac_ct_CXX"; then
5415 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5416 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5417 else
5418 { echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6; }
5420 fi
5421
5422
5423 test -n "$ac_ct_CXX" && break
5424 done
5425
5426 if test "x$ac_ct_CXX" = x; then
5427 CXX="g++"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5432 whose name does not start with the host triplet. If you think this
5433 configuration is useful to you, please write to [email protected]." >&5
5434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5435 whose name does not start with the host triplet. If you think this
5436 configuration is useful to you, please write to [email protected]." >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 CXX=$ac_ct_CXX
5440 fi
5441 fi
5442
5443 fi
5444 fi
5445 # Provide some information about the compiler.
5446 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5447 ac_compiler=`set X $ac_compile; echo $2`
5448 { (ac_try="$ac_compiler --version >&5"
5449 case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_compiler --version >&5") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }
5458 { (ac_try="$ac_compiler -v >&5"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compiler -v >&5") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }
5468 { (ac_try="$ac_compiler -V >&5"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compiler -V >&5") 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }
5478
5479 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5480 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5481 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490
5491 int
5492 main ()
5493 {
5494 #ifndef __GNUC__
5495 choke me
5496 #endif
5497
5498 ;
5499 return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5517 { (case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_try") 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try='test -s conftest.$ac_objext'
5527 { (case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_try") 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_compiler_gnu=yes
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541 ac_compiler_gnu=no
5542 fi
5543
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5546
5547 fi
5548 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5549 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5550 GXX=`test $ac_compiler_gnu = yes && echo yes`
5551 ac_test_CXXFLAGS=${CXXFLAGS+set}
5552 ac_save_CXXFLAGS=$CXXFLAGS
5553 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5554 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5555 if test "${ac_cv_prog_cxx_g+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5559 ac_cxx_werror_flag=yes
5560 ac_cv_prog_cxx_g=no
5561 CXXFLAGS="-g"
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568
5569 int
5570 main ()
5571 {
5572
5573 ;
5574 return 0;
5575 }
5576 _ACEOF
5577 rm -f conftest.$ac_objext
5578 if { (ac_try="$ac_compile"
5579 case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_compile") 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5592 { (case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_try") 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest.$ac_objext'
5602 { (case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_try") 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_prog_cxx_g=yes
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5615
5616 CXXFLAGS=""
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623
5624 int
5625 main ()
5626 {
5627
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (ac_try="$ac_compile"
5634 case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_compile") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5647 { (case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_try") 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; } &&
5656 { ac_try='test -s conftest.$ac_objext'
5657 { (case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_try") 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 :
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5670
5671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5672 CXXFLAGS="-g"
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679
5680 int
5681 main ()
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5690 case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compile") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5703 { (case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_try") 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; } &&
5712 { ac_try='test -s conftest.$ac_objext'
5713 { (case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_try") 2>&5
5719 ac_status=$?
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5722 ac_cv_prog_cxx_g=yes
5723 else
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5726
5727
5728 fi
5729
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 fi
5732
5733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734 fi
5735
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5738 fi
5739 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5740 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5741 if test "$ac_test_CXXFLAGS" = set; then
5742 CXXFLAGS=$ac_save_CXXFLAGS
5743 elif test $ac_cv_prog_cxx_g = yes; then
5744 if test "$GXX" = yes; then
5745 CXXFLAGS="-g -O2"
5746 else
5747 CXXFLAGS="-g"
5748 fi
5749 else
5750 if test "$GXX" = yes; then
5751 CXXFLAGS="-O2"
5752 else
5753 CXXFLAGS=
5754 fi
5755 fi
5756 ac_ext=cpp
5757 ac_cpp='$CXXCPP $CPPFLAGS'
5758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5761
5762 depcc="$CXX" am_compiler_list=
5763
5764 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5765 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5766 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5770 # We make a subdir and do the tests there. Otherwise we can end up
5771 # making bogus files that we don't know about and never remove. For
5772 # instance it was reported that on HP-UX the gcc test will end up
5773 # making a dummy file named `D' -- because `-MD' means `put the output
5774 # in D'.
5775 mkdir conftest.dir
5776 # Copy depcomp to subdir because otherwise we won't find it if we're
5777 # using a relative directory.
5778 cp "$am_depcomp" conftest.dir
5779 cd conftest.dir
5780 # We will build objects and dependencies in a subdirectory because
5781 # it helps to detect inapplicable dependency modes. For instance
5782 # both Tru64's cc and ICC support -MD to output dependencies as a
5783 # side effect of compilation, but ICC will put the dependencies in
5784 # the current directory while Tru64 will put them in the object
5785 # directory.
5786 mkdir sub
5787
5788 am_cv_CXX_dependencies_compiler_type=none
5789 if test "$am_compiler_list" = ""; then
5790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5791 fi
5792 for depmode in $am_compiler_list; do
5793 # Setup a source with many dependencies, because some compilers
5794 # like to wrap large dependency lists on column 80 (with \), and
5795 # we should not choose a depcomp mode which is confused by this.
5796 #
5797 # We need to recreate these files for each test, as the compiler may
5798 # overwrite some of them when testing with obscure command lines.
5799 # This happens at least with the AIX C compiler.
5800 : > sub/conftest.c
5801 for i in 1 2 3 4 5 6; do
5802 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5803 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5804 # Solaris 8's {/usr,}/bin/sh.
5805 touch sub/conftst$i.h
5806 done
5807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5808
5809 case $depmode in
5810 nosideeffect)
5811 # after this tag, mechanisms are not by side-effect, so they'll
5812 # only be used when explicitly requested
5813 if test "x$enable_dependency_tracking" = xyes; then
5814 continue
5815 else
5816 break
5817 fi
5818 ;;
5819 none) break ;;
5820 esac
5821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5822 # mode. It turns out that the SunPro C++ compiler does not properly
5823 # handle `-M -o', and we need to detect this.
5824 if depmode=$depmode \
5825 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5827 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5828 >/dev/null 2>conftest.err &&
5829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5830 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5832 # icc doesn't choke on unknown options, it will just issue warnings
5833 # or remarks (even with -Werror). So we grep stderr for any message
5834 # that says an option was ignored or not supported.
5835 # When given -MP, icc 7.0 and 7.1 complain thusly:
5836 # icc: Command line warning: ignoring option '-M'; no argument required
5837 # The diagnosis changed in icc 8.0:
5838 # icc: Command line remark: option '-MP' not supported
5839 if (grep 'ignoring option' conftest.err ||
5840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5841 am_cv_CXX_dependencies_compiler_type=$depmode
5842 break
5843 fi
5844 fi
5845 done
5846
5847 cd ..
5848 rm -rf conftest.dir
5849 else
5850 am_cv_CXX_dependencies_compiler_type=none
5851 fi
5852
5853 fi
5854 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5855 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5856 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5857
5858
5859
5860 if
5861 test "x$enable_dependency_tracking" != xno \
5862 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5863 am__fastdepCXX_TRUE=
5864 am__fastdepCXX_FALSE='#'
5865 else
5866 am__fastdepCXX_TRUE='#'
5867 am__fastdepCXX_FALSE=
5868 fi
5869
5870
5871
5872
5873 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5874 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5875 (test "X$CXX" != "Xg++"))) ; then
5876 ac_ext=cpp
5877 ac_cpp='$CXXCPP $CPPFLAGS'
5878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5881 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5882 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5883 if test -z "$CXXCPP"; then
5884 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 # Double quotes because CXXCPP needs to be expanded
5888 for CXXCPP in "$CXX -E" "/lib/cpp"
5889 do
5890 ac_preproc_ok=false
5891 for ac_cxx_preproc_warn_flag in '' yes
5892 do
5893 # Use a header file that comes with gcc, so configuring glibc
5894 # with a fresh cross-compiler works.
5895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5896 # <limits.h> exists even on freestanding compilers.
5897 # On the NeXT, cc -E runs the code through the compiler's parser,
5898 # not just through cpp. "Syntax error" is here to catch this case.
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #ifdef __STDC__
5906 # include <limits.h>
5907 #else
5908 # include <assert.h>
5909 #endif
5910 Syntax error
5911 _ACEOF
5912 if { (ac_try="$ac_cpp conftest.$ac_ext"
5913 case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null; then
5925 if test -s conftest.err; then
5926 ac_cpp_err=$ac_cxx_preproc_warn_flag
5927 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5928 else
5929 ac_cpp_err=
5930 fi
5931 else
5932 ac_cpp_err=yes
5933 fi
5934 if test -z "$ac_cpp_err"; then
5935 :
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 # Broken: fails on valid input.
5941 continue
5942 fi
5943
5944 rm -f conftest.err conftest.$ac_ext
5945
5946 # OK, works on sane cases. Now check whether nonexistent headers
5947 # can be detected and how.
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <ac_nonexistent.h>
5955 _ACEOF
5956 if { (ac_try="$ac_cpp conftest.$ac_ext"
5957 case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5963 ac_status=$?
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } >/dev/null; then
5969 if test -s conftest.err; then
5970 ac_cpp_err=$ac_cxx_preproc_warn_flag
5971 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5972 else
5973 ac_cpp_err=
5974 fi
5975 else
5976 ac_cpp_err=yes
5977 fi
5978 if test -z "$ac_cpp_err"; then
5979 # Broken: success on invalid input.
5980 continue
5981 else
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5984
5985 # Passes both tests.
5986 ac_preproc_ok=:
5987 break
5988 fi
5989
5990 rm -f conftest.err conftest.$ac_ext
5991
5992 done
5993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994 rm -f conftest.err conftest.$ac_ext
5995 if $ac_preproc_ok; then
5996 break
5997 fi
5998
5999 done
6000 ac_cv_prog_CXXCPP=$CXXCPP
6001
6002 fi
6003 CXXCPP=$ac_cv_prog_CXXCPP
6004 else
6005 ac_cv_prog_CXXCPP=$CXXCPP
6006 fi
6007 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6008 echo "${ECHO_T}$CXXCPP" >&6; }
6009 ac_preproc_ok=false
6010 for ac_cxx_preproc_warn_flag in '' yes
6011 do
6012 # Use a header file that comes with gcc, so configuring glibc
6013 # with a fresh cross-compiler works.
6014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6015 # <limits.h> exists even on freestanding compilers.
6016 # On the NeXT, cc -E runs the code through the compiler's parser,
6017 # not just through cpp. "Syntax error" is here to catch this case.
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #ifdef __STDC__
6025 # include <limits.h>
6026 #else
6027 # include <assert.h>
6028 #endif
6029 Syntax error
6030 _ACEOF
6031 if { (ac_try="$ac_cpp conftest.$ac_ext"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } >/dev/null; then
6044 if test -s conftest.err; then
6045 ac_cpp_err=$ac_cxx_preproc_warn_flag
6046 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6047 else
6048 ac_cpp_err=
6049 fi
6050 else
6051 ac_cpp_err=yes
6052 fi
6053 if test -z "$ac_cpp_err"; then
6054 :
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6058
6059 # Broken: fails on valid input.
6060 continue
6061 fi
6062
6063 rm -f conftest.err conftest.$ac_ext
6064
6065 # OK, works on sane cases. Now check whether nonexistent headers
6066 # can be detected and how.
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <ac_nonexistent.h>
6074 _ACEOF
6075 if { (ac_try="$ac_cpp conftest.$ac_ext"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } >/dev/null; then
6088 if test -s conftest.err; then
6089 ac_cpp_err=$ac_cxx_preproc_warn_flag
6090 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6091 else
6092 ac_cpp_err=
6093 fi
6094 else
6095 ac_cpp_err=yes
6096 fi
6097 if test -z "$ac_cpp_err"; then
6098 # Broken: success on invalid input.
6099 continue
6100 else
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104 # Passes both tests.
6105 ac_preproc_ok=:
6106 break
6107 fi
6108
6109 rm -f conftest.err conftest.$ac_ext
6110
6111 done
6112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6113 rm -f conftest.err conftest.$ac_ext
6114 if $ac_preproc_ok; then
6115 :
6116 else
6117 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6118 See \`config.log' for more details." >&5
6119 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6120 See \`config.log' for more details." >&2;}
6121 { (exit 1); exit 1; }; }
6122 fi
6123
6124 ac_ext=cpp
6125 ac_cpp='$CXXCPP $CPPFLAGS'
6126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6129
6130 fi
6131
6132
6133 ac_ext=f
6134 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6135 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6137 if test -n "$ac_tool_prefix"; then
6138 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6139 do
6140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144 if test "${ac_cv_prog_F77+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 if test -n "$F77"; then
6148 ac_cv_prog_F77="$F77" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165 fi
6166 fi
6167 F77=$ac_cv_prog_F77
6168 if test -n "$F77"; then
6169 { echo "$as_me:$LINENO: result: $F77" >&5
6170 echo "${ECHO_T}$F77" >&6; }
6171 else
6172 { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6174 fi
6175
6176
6177 test -n "$F77" && break
6178 done
6179 fi
6180 if test -z "$F77"; then
6181 ac_ct_F77=$F77
6182 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6183 do
6184 # Extract the first word of "$ac_prog", so it can be a program name with args.
6185 set dummy $ac_prog; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 if test -n "$ac_ct_F77"; then
6192 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_F77="$ac_prog"
6202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6212 if test -n "$ac_ct_F77"; then
6213 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6214 echo "${ECHO_T}$ac_ct_F77" >&6; }
6215 else
6216 { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6218 fi
6219
6220
6221 test -n "$ac_ct_F77" && break
6222 done
6223
6224 if test "x$ac_ct_F77" = x; then
6225 F77=""
6226 else
6227 case $cross_compiling:$ac_tool_warned in
6228 yes:)
6229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6230 whose name does not start with the host triplet. If you think this
6231 configuration is useful to you, please write to [email protected]." >&5
6232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6233 whose name does not start with the host triplet. If you think this
6234 configuration is useful to you, please write to [email protected]." >&2;}
6235 ac_tool_warned=yes ;;
6236 esac
6237 F77=$ac_ct_F77
6238 fi
6239 fi
6240
6241
6242 # Provide some information about the compiler.
6243 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6244 ac_compiler=`set X $ac_compile; echo $2`
6245 { (ac_try="$ac_compiler --version >&5"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compiler --version >&5") 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }
6255 { (ac_try="$ac_compiler -v >&5"
6256 case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_compiler -v >&5") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }
6265 { (ac_try="$ac_compiler -V >&5"
6266 case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compiler -V >&5") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }
6275 rm -f a.out
6276
6277 # If we don't use `.F' as extension, the preprocessor is not run on the
6278 # input file. (Note that this only needs to work for GNU compilers.)
6279 ac_save_ext=$ac_ext
6280 ac_ext=F
6281 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6282 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6283 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 cat >conftest.$ac_ext <<_ACEOF
6287 program main
6288 #ifndef __GNUC__
6289 choke me
6290 #endif
6291
6292 end
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (ac_try="$ac_compile"
6296 case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6309 { (case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312 esac
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_try") 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6322 esac
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_compiler_gnu=yes
6329 else
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 ac_compiler_gnu=no
6334 fi
6335
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6338
6339 fi
6340 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6341 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6342 ac_ext=$ac_save_ext
6343 ac_test_FFLAGS=${FFLAGS+set}
6344 ac_save_FFLAGS=$FFLAGS
6345 FFLAGS=
6346 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6347 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6348 if test "${ac_cv_prog_f77_g+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 FFLAGS=-g
6352 cat >conftest.$ac_ext <<_ACEOF
6353 program main
6354
6355 end
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6359 case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362 esac
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_compile") 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6372 { (case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375 esac
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_try") 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try='test -s conftest.$ac_objext'
6382 { (case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_try") 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_prog_f77_g=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 ac_cv_prog_f77_g=no
6397 fi
6398
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400
6401 fi
6402 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6403 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6404 if test "$ac_test_FFLAGS" = set; then
6405 FFLAGS=$ac_save_FFLAGS
6406 elif test $ac_cv_prog_f77_g = yes; then
6407 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6408 FFLAGS="-g -O2"
6409 else
6410 FFLAGS="-g"
6411 fi
6412 else
6413 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6414 FFLAGS="-O2"
6415 else
6416 FFLAGS=
6417 fi
6418 fi
6419
6420 G77=`test $ac_compiler_gnu = yes && echo yes`
6421 ac_ext=c
6422 ac_cpp='$CPP $CPPFLAGS'
6423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6426
6427
6428
6429 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6430
6431 # find the maximum length of command line arguments
6432 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6433 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6434 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 i=0
6438 teststring="ABCD"
6439
6440 case $build_os in
6441 msdosdjgpp*)
6442 # On DJGPP, this test can blow up pretty badly due to problems in libc
6443 # (any single argument exceeding 2000 bytes causes a buffer overrun
6444 # during glob expansion). Even if it were fixed, the result of this
6445 # check would be larger than it should be.
6446 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6447 ;;
6448
6449 gnu*)
6450 # Under GNU Hurd, this test is not required because there is
6451 # no limit to the length of command line arguments.
6452 # Libtool will interpret -1 as no limit whatsoever
6453 lt_cv_sys_max_cmd_len=-1;
6454 ;;
6455
6456 cygwin* | mingw*)
6457 # On Win9x/ME, this test blows up -- it succeeds, but takes
6458 # about 5 minutes as the teststring grows exponentially.
6459 # Worse, since 9x/ME are not pre-emptively multitasking,
6460 # you end up with a "frozen" computer, even though with patience
6461 # the test eventually succeeds (with a max line length of 256k).
6462 # Instead, let's just punt: use the minimum linelength reported by
6463 # all of the supported platforms: 8192 (on NT/2K/XP).
6464 lt_cv_sys_max_cmd_len=8192;
6465 ;;
6466
6467 amigaos*)
6468 # On AmigaOS with pdksh, this test takes hours, literally.
6469 # So we just punt and use a minimum line length of 8192.
6470 lt_cv_sys_max_cmd_len=8192;
6471 ;;
6472
6473 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6474 # This has been around since 386BSD, at least. Likely further.
6475 if test -x /sbin/sysctl; then
6476 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6477 elif test -x /usr/sbin/sysctl; then
6478 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6479 else
6480 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6481 fi
6482 # And add a safety zone
6483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6485 ;;
6486
6487 interix*)
6488 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6489 lt_cv_sys_max_cmd_len=196608
6490 ;;
6491
6492 osf*)
6493 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6494 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6495 # nice to cause kernel panics so lets avoid the loop below.
6496 # First set a reasonable default.
6497 lt_cv_sys_max_cmd_len=16384
6498 #
6499 if test -x /sbin/sysconfig; then
6500 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6501 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6502 esac
6503 fi
6504 ;;
6505 sco3.2v5*)
6506 lt_cv_sys_max_cmd_len=102400
6507 ;;
6508 sysv5* | sco5v6* | sysv4.2uw2*)
6509 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6510 if test -n "$kargmax"; then
6511 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6512 else
6513 lt_cv_sys_max_cmd_len=32768
6514 fi
6515 ;;
6516 *)
6517 # If test is not a shell built-in, we'll probably end up computing a
6518 # maximum length that is only half of the actual maximum length, but
6519 # we can't tell.
6520 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6521 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6522 = "XX$teststring") >/dev/null 2>&1 &&
6523 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6524 lt_cv_sys_max_cmd_len=$new_result &&
6525 test $i != 17 # 1/2 MB should be enough
6526 do
6527 i=`expr $i + 1`
6528 teststring=$teststring$teststring
6529 done
6530 teststring=
6531 # Add a significant safety factor because C++ compilers can tack on massive
6532 # amounts of additional arguments before passing them to the linker.
6533 # It appears as though 1/2 is a usable value.
6534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6535 ;;
6536 esac
6537
6538 fi
6539
6540 if test -n $lt_cv_sys_max_cmd_len ; then
6541 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6542 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6543 else
6544 { echo "$as_me:$LINENO: result: none" >&5
6545 echo "${ECHO_T}none" >&6; }
6546 fi
6547
6548
6549
6550
6551 # Check for command to grab the raw symbol name followed by C symbol from nm.
6552 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6553 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6554 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557
6558 # These are sane defaults that work on at least a few old systems.
6559 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6560
6561 # Character class describing NM global symbol codes.
6562 symcode='[BCDEGRST]'
6563
6564 # Regexp to match symbols that can be accessed directly from C.
6565 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6566
6567 # Transform an extracted symbol line into a proper C declaration
6568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6569
6570 # Transform an extracted symbol line into symbol name and symbol address
6571 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'"
6572
6573 # Define system-specific variables.
6574 case $host_os in
6575 aix*)
6576 symcode='[BCDT]'
6577 ;;
6578 cygwin* | mingw* | pw32*)
6579 symcode='[ABCDGISTW]'
6580 ;;
6581 hpux*) # Its linker distinguishes data from code symbols
6582 if test "$host_cpu" = ia64; then
6583 symcode='[ABCDEGRST]'
6584 fi
6585 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6586 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'"
6587 ;;
6588 linux* | k*bsd*-gnu)
6589 if test "$host_cpu" = ia64; then
6590 symcode='[ABCDGIRSTW]'
6591 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6592 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'"
6593 fi
6594 ;;
6595 irix* | nonstopux*)
6596 symcode='[BCDEGRST]'
6597 ;;
6598 osf*)
6599 symcode='[BCDEGQRST]'
6600 ;;
6601 solaris*)
6602 symcode='[BDRT]'
6603 ;;
6604 sco3.2v5*)
6605 symcode='[DT]'
6606 ;;
6607 sysv4.2uw2*)
6608 symcode='[DT]'
6609 ;;
6610 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6611 symcode='[ABDT]'
6612 ;;
6613 sysv4)
6614 symcode='[DFNSTU]'
6615 ;;
6616 esac
6617
6618 # Handle CRLF in mingw tool chain
6619 opt_cr=
6620 case $build_os in
6621 mingw*)
6622 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6623 ;;
6624 esac
6625
6626 # If we're using GNU nm, then use its standard symbol codes.
6627 case `$NM -V 2>&1` in
6628 *GNU* | *'with BFD'*)
6629 symcode='[ABCDGIRSTW]' ;;
6630 esac
6631
6632 # Try without a prefix undercore, then with it.
6633 for ac_symprfx in "" "_"; do
6634
6635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6636 symxfrm="\\1 $ac_symprfx\\2 \\2"
6637
6638 # Write the raw and C identifiers.
6639 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6640
6641 # Check to see that the pipe works correctly.
6642 pipe_works=no
6643
6644 rm -f conftest*
6645 cat > conftest.$ac_ext <<EOF
6646 #ifdef __cplusplus
6647 extern "C" {
6648 #endif
6649 char nm_test_var;
6650 void nm_test_func(){}
6651 #ifdef __cplusplus
6652 }
6653 #endif
6654 int main(){nm_test_var='a';nm_test_func();return(0);}
6655 EOF
6656
6657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658 (eval $ac_compile) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; then
6662 # Now try to grab the symbols.
6663 nlist=conftest.nm
6664 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6665 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && test -s "$nlist"; then
6669 # Try sorting and uniquifying the output.
6670 if sort "$nlist" | uniq > "$nlist"T; then
6671 mv -f "$nlist"T "$nlist"
6672 else
6673 rm -f "$nlist"T
6674 fi
6675
6676 # Make sure that we snagged all the symbols we need.
6677 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6678 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6679 cat <<EOF > conftest.$ac_ext
6680 #ifdef __cplusplus
6681 extern "C" {
6682 #endif
6683
6684 EOF
6685 # Now generate the symbol file.
6686 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6687
6688 cat <<EOF >> conftest.$ac_ext
6689 #if defined (__STDC__) && __STDC__
6690 # define lt_ptr_t void *
6691 #else
6692 # define lt_ptr_t char *
6693 # define const
6694 #endif
6695
6696 /* The mapping between symbol names and symbols. */
6697 const struct {
6698 const char *name;
6699 lt_ptr_t address;
6700 }
6701 lt_preloaded_symbols[] =
6702 {
6703 EOF
6704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6705 cat <<\EOF >> conftest.$ac_ext
6706 {0, (lt_ptr_t) 0}
6707 };
6708
6709 #ifdef __cplusplus
6710 }
6711 #endif
6712 EOF
6713 # Now try linking the two files.
6714 mv conftest.$ac_objext conftstm.$ac_objext
6715 lt_save_LIBS="$LIBS"
6716 lt_save_CFLAGS="$CFLAGS"
6717 LIBS="conftstm.$ac_objext"
6718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6724 pipe_works=yes
6725 fi
6726 LIBS="$lt_save_LIBS"
6727 CFLAGS="$lt_save_CFLAGS"
6728 else
6729 echo "cannot find nm_test_func in $nlist" >&5
6730 fi
6731 else
6732 echo "cannot find nm_test_var in $nlist" >&5
6733 fi
6734 else
6735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6736 fi
6737 else
6738 echo "$progname: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6740 fi
6741 rm -f conftest* conftst*
6742
6743 # Do not use the global_symbol_pipe unless it works.
6744 if test "$pipe_works" = yes; then
6745 break
6746 else
6747 lt_cv_sys_global_symbol_pipe=
6748 fi
6749 done
6750
6751 fi
6752
6753 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6754 lt_cv_sys_global_symbol_to_cdecl=
6755 fi
6756 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6757 { echo "$as_me:$LINENO: result: failed" >&5
6758 echo "${ECHO_T}failed" >&6; }
6759 else
6760 { echo "$as_me:$LINENO: result: ok" >&5
6761 echo "${ECHO_T}ok" >&6; }
6762 fi
6763
6764 { echo "$as_me:$LINENO: checking for objdir" >&5
6765 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6766 if test "${lt_cv_objdir+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 rm -f .libs 2>/dev/null
6770 mkdir .libs 2>/dev/null
6771 if test -d .libs; then
6772 lt_cv_objdir=.libs
6773 else
6774 # MS-DOS does not allow filenames that begin with a dot.
6775 lt_cv_objdir=_libs
6776 fi
6777 rmdir .libs 2>/dev/null
6778 fi
6779 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6780 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6781 objdir=$lt_cv_objdir
6782
6783
6784
6785
6786
6787 case $host_os in
6788 aix3*)
6789 # AIX sometimes has problems with the GCC collect2 program. For some
6790 # reason, if we set the COLLECT_NAMES environment variable, the problems
6791 # vanish in a puff of smoke.
6792 if test "X${COLLECT_NAMES+set}" != Xset; then
6793 COLLECT_NAMES=
6794 export COLLECT_NAMES
6795 fi
6796 ;;
6797 esac
6798
6799 # Sed substitution that helps us do robust quoting. It backslashifies
6800 # metacharacters that are still active within double-quoted strings.
6801 Xsed='sed -e 1s/^X//'
6802 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6803
6804 # Same as above, but do not quote variable references.
6805 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6806
6807 # Sed substitution to delay expansion of an escaped shell variable in a
6808 # double_quote_subst'ed string.
6809 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6810
6811 # Sed substitution to avoid accidental globbing in evaled expressions
6812 no_glob_subst='s/\*/\\\*/g'
6813
6814 # Constants:
6815 rm="rm -f"
6816
6817 # Global variables:
6818 default_ofile=libtool
6819 can_build_shared=yes
6820
6821 # All known linkers require a `.a' archive for static linking (except MSVC,
6822 # which needs '.lib').
6823 libext=a
6824 ltmain="$ac_aux_dir/ltmain.sh"
6825 ofile="$default_ofile"
6826 with_gnu_ld="$lt_cv_prog_gnu_ld"
6827
6828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}ar; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_prog_AR+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 if test -n "$AR"; then
6837 ac_cv_prog_AR="$AR" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_prog_AR="${ac_tool_prefix}ar"
6847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 AR=$ac_cv_prog_AR
6857 if test -n "$AR"; then
6858 { echo "$as_me:$LINENO: result: $AR" >&5
6859 echo "${ECHO_T}$AR" >&6; }
6860 else
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 fi
6864
6865
6866 fi
6867 if test -z "$ac_cv_prog_AR"; then
6868 ac_ct_AR=$AR
6869 # Extract the first word of "ar", so it can be a program name with args.
6870 set dummy ar; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 if test -n "$ac_ct_AR"; then
6877 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_ac_ct_AR="ar"
6887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6897 if test -n "$ac_ct_AR"; then
6898 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6899 echo "${ECHO_T}$ac_ct_AR" >&6; }
6900 else
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903 fi
6904
6905 if test "x$ac_ct_AR" = x; then
6906 AR="false"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909 yes:)
6910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6911 whose name does not start with the host triplet. If you think this
6912 configuration is useful to you, please write to [email protected]." >&5
6913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6914 whose name does not start with the host triplet. If you think this
6915 configuration is useful to you, please write to [email protected]." >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918 AR=$ac_ct_AR
6919 fi
6920 else
6921 AR="$ac_cv_prog_AR"
6922 fi
6923
6924 if test -n "$ac_tool_prefix"; then
6925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6926 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6929 if test "${ac_cv_prog_RANLIB+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 if test -n "$RANLIB"; then
6933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 RANLIB=$ac_cv_prog_RANLIB
6953 if test -n "$RANLIB"; then
6954 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6955 echo "${ECHO_T}$RANLIB" >&6; }
6956 else
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6959 fi
6960
6961
6962 fi
6963 if test -z "$ac_cv_prog_RANLIB"; then
6964 ac_ct_RANLIB=$RANLIB
6965 # Extract the first word of "ranlib", so it can be a program name with args.
6966 set dummy ranlib; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 if test -n "$ac_ct_RANLIB"; then
6973 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_ac_ct_RANLIB="ranlib"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6993 if test -n "$ac_ct_RANLIB"; then
6994 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6995 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6996 else
6997 { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
6999 fi
7000
7001 if test "x$ac_ct_RANLIB" = x; then
7002 RANLIB=":"
7003 else
7004 case $cross_compiling:$ac_tool_warned in
7005 yes:)
7006 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7007 whose name does not start with the host triplet. If you think this
7008 configuration is useful to you, please write to [email protected]." >&5
7009 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7010 whose name does not start with the host triplet. If you think this
7011 configuration is useful to you, please write to [email protected]." >&2;}
7012 ac_tool_warned=yes ;;
7013 esac
7014 RANLIB=$ac_ct_RANLIB
7015 fi
7016 else
7017 RANLIB="$ac_cv_prog_RANLIB"
7018 fi
7019
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}strip; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_prog_STRIP+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028 if test -n "$STRIP"; then
7029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 STRIP=$ac_cv_prog_STRIP
7049 if test -n "$STRIP"; then
7050 { echo "$as_me:$LINENO: result: $STRIP" >&5
7051 echo "${ECHO_T}$STRIP" >&6; }
7052 else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057
7058 fi
7059 if test -z "$ac_cv_prog_STRIP"; then
7060 ac_ct_STRIP=$STRIP
7061 # Extract the first word of "strip", so it can be a program name with args.
7062 set dummy strip; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 if test -n "$ac_ct_STRIP"; then
7069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_ac_ct_STRIP="strip"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7089 if test -n "$ac_ct_STRIP"; then
7090 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7091 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7092 else
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7095 fi
7096
7097 if test "x$ac_ct_STRIP" = x; then
7098 STRIP=":"
7099 else
7100 case $cross_compiling:$ac_tool_warned in
7101 yes:)
7102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7103 whose name does not start with the host triplet. If you think this
7104 configuration is useful to you, please write to [email protected]." >&5
7105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7106 whose name does not start with the host triplet. If you think this
7107 configuration is useful to you, please write to [email protected]." >&2;}
7108 ac_tool_warned=yes ;;
7109 esac
7110 STRIP=$ac_ct_STRIP
7111 fi
7112 else
7113 STRIP="$ac_cv_prog_STRIP"
7114 fi
7115
7116
7117 old_CC="$CC"
7118 old_CFLAGS="$CFLAGS"
7119
7120 # Set sane defaults for various variables
7121 test -z "$AR" && AR=ar
7122 test -z "$AR_FLAGS" && AR_FLAGS=cru
7123 test -z "$AS" && AS=as
7124 test -z "$CC" && CC=cc
7125 test -z "$LTCC" && LTCC=$CC
7126 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7127 test -z "$DLLTOOL" && DLLTOOL=dlltool
7128 test -z "$LD" && LD=ld
7129 test -z "$LN_S" && LN_S="ln -s"
7130 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7131 test -z "$NM" && NM=nm
7132 test -z "$SED" && SED=sed
7133 test -z "$OBJDUMP" && OBJDUMP=objdump
7134 test -z "$RANLIB" && RANLIB=:
7135 test -z "$STRIP" && STRIP=:
7136 test -z "$ac_objext" && ac_objext=o
7137
7138 # Determine commands to create old-style static archives.
7139 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7140 old_postinstall_cmds='chmod 644 $oldlib'
7141 old_postuninstall_cmds=
7142
7143 if test -n "$RANLIB"; then
7144 case $host_os in
7145 openbsd*)
7146 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7147 ;;
7148 *)
7149 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7150 ;;
7151 esac
7152 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7153 fi
7154
7155 for cc_temp in $compiler""; do
7156 case $cc_temp in
7157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7159 \-*) ;;
7160 *) break;;
7161 esac
7162 done
7163 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7164
7165
7166 # Only perform the check for file, if the check method requires it
7167 case $deplibs_check_method in
7168 file_magic*)
7169 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7170 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7171 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7172 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 case $MAGIC_CMD in
7176 [\\/*] | ?:[\\/]*)
7177 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7178 ;;
7179 *)
7180 lt_save_MAGIC_CMD="$MAGIC_CMD"
7181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7182 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7183 for ac_dir in $ac_dummy; do
7184 IFS="$lt_save_ifs"
7185 test -z "$ac_dir" && ac_dir=.
7186 if test -f $ac_dir/${ac_tool_prefix}file; then
7187 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7188 if test -n "$file_magic_test_file"; then
7189 case $deplibs_check_method in
7190 "file_magic "*)
7191 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7194 $EGREP "$file_magic_regex" > /dev/null; then
7195 :
7196 else
7197 cat <<EOF 1>&2
7198
7199 *** Warning: the command libtool uses to detect shared libraries,
7200 *** $file_magic_cmd, produces output that libtool cannot recognize.
7201 *** The result is that libtool may fail to recognize shared libraries
7202 *** as such. This will affect the creation of libtool libraries that
7203 *** depend on shared libraries, but programs linked with such libtool
7204 *** libraries will work regardless of this problem. Nevertheless, you
7205 *** may want to report the problem to your system manager and/or to
7206 *** [email protected]
7207
7208 EOF
7209 fi ;;
7210 esac
7211 fi
7212 break
7213 fi
7214 done
7215 IFS="$lt_save_ifs"
7216 MAGIC_CMD="$lt_save_MAGIC_CMD"
7217 ;;
7218 esac
7219 fi
7220
7221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222 if test -n "$MAGIC_CMD"; then
7223 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7224 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7225 else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7228 fi
7229
7230 if test -z "$lt_cv_path_MAGIC_CMD"; then
7231 if test -n "$ac_tool_prefix"; then
7232 { echo "$as_me:$LINENO: checking for file" >&5
7233 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7234 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 case $MAGIC_CMD in
7238 [\\/*] | ?:[\\/]*)
7239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7240 ;;
7241 *)
7242 lt_save_MAGIC_CMD="$MAGIC_CMD"
7243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7244 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7245 for ac_dir in $ac_dummy; do
7246 IFS="$lt_save_ifs"
7247 test -z "$ac_dir" && ac_dir=.
7248 if test -f $ac_dir/file; then
7249 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7250 if test -n "$file_magic_test_file"; then
7251 case $deplibs_check_method in
7252 "file_magic "*)
7253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7256 $EGREP "$file_magic_regex" > /dev/null; then
7257 :
7258 else
7259 cat <<EOF 1>&2
7260
7261 *** Warning: the command libtool uses to detect shared libraries,
7262 *** $file_magic_cmd, produces output that libtool cannot recognize.
7263 *** The result is that libtool may fail to recognize shared libraries
7264 *** as such. This will affect the creation of libtool libraries that
7265 *** depend on shared libraries, but programs linked with such libtool
7266 *** libraries will work regardless of this problem. Nevertheless, you
7267 *** may want to report the problem to your system manager and/or to
7268 *** [email protected]
7269
7270 EOF
7271 fi ;;
7272 esac
7273 fi
7274 break
7275 fi
7276 done
7277 IFS="$lt_save_ifs"
7278 MAGIC_CMD="$lt_save_MAGIC_CMD"
7279 ;;
7280 esac
7281 fi
7282
7283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7284 if test -n "$MAGIC_CMD"; then
7285 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7286 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7287 else
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7290 fi
7291
7292 else
7293 MAGIC_CMD=:
7294 fi
7295 fi
7296
7297 fi
7298 ;;
7299 esac
7300
7301 enable_dlopen=no
7302 enable_win32_dll=no
7303
7304 # Check whether --enable-libtool-lock was given.
7305 if test "${enable_libtool_lock+set}" = set; then
7306 enableval=$enable_libtool_lock;
7307 fi
7308
7309 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7310
7311
7312 # Check whether --with-pic was given.
7313 if test "${with_pic+set}" = set; then
7314 withval=$with_pic; pic_mode="$withval"
7315 else
7316 pic_mode=default
7317 fi
7318
7319 test -z "$pic_mode" && pic_mode=default
7320
7321 # Use C for the default configuration in the libtool script
7322 tagname=
7323 lt_save_CC="$CC"
7324 ac_ext=c
7325 ac_cpp='$CPP $CPPFLAGS'
7326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329
7330
7331 # Source file extension for C test sources.
7332 ac_ext=c
7333
7334 # Object file extension for compiled C test sources.
7335 objext=o
7336 objext=$objext
7337
7338 # Code to be used in simple compile tests
7339 lt_simple_compile_test_code="int some_variable = 0;\n"
7340
7341 # Code to be used in simple link tests
7342 lt_simple_link_test_code='int main(){return(0);}\n'
7343
7344
7345 # If no C compiler was specified, use CC.
7346 LTCC=${LTCC-"$CC"}
7347
7348 # If no C compiler flags were specified, use CFLAGS.
7349 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7350
7351 # Allow CC to be a program name with arguments.
7352 compiler=$CC
7353
7354
7355 # save warnings/boilerplate of simple test code
7356 ac_outfile=conftest.$ac_objext
7357 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7358 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7359 _lt_compiler_boilerplate=`cat conftest.err`
7360 $rm conftest*
7361
7362 ac_outfile=conftest.$ac_objext
7363 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7364 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7365 _lt_linker_boilerplate=`cat conftest.err`
7366 $rm conftest*
7367
7368
7369
7370 lt_prog_compiler_no_builtin_flag=
7371
7372 if test "$GCC" = yes; then
7373 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7374
7375
7376 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7377 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7378 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 lt_cv_prog_compiler_rtti_exceptions=no
7382 ac_outfile=conftest.$ac_objext
7383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7384 lt_compiler_flag="-fno-rtti -fno-exceptions"
7385 # Insert the option either (1) after the last *FLAGS variable, or
7386 # (2) before a word containing "conftest.", or (3) at the end.
7387 # Note that $ac_compile itself does not contain backslashes and begins
7388 # with a dollar sign (not a hyphen), so the echo should work correctly.
7389 # The option is referenced via a variable to avoid confusing sed.
7390 lt_compile=`echo "$ac_compile" | $SED \
7391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7393 -e 's:$: $lt_compiler_flag:'`
7394 (eval echo "\"\$as_me:7394: $lt_compile\"" >&5)
7395 (eval "$lt_compile" 2>conftest.err)
7396 ac_status=$?
7397 cat conftest.err >&5
7398 echo "$as_me:7398: \$? = $ac_status" >&5
7399 if (exit $ac_status) && test -s "$ac_outfile"; then
7400 # The compiler can only warn and ignore the option if not recognized
7401 # So say no if there are warnings other than the usual output.
7402 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7405 lt_cv_prog_compiler_rtti_exceptions=yes
7406 fi
7407 fi
7408 $rm conftest*
7409
7410 fi
7411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7412 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7413
7414 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7415 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7416 else
7417 :
7418 fi
7419
7420 fi
7421
7422 lt_prog_compiler_wl=
7423 lt_prog_compiler_pic=
7424 lt_prog_compiler_static=
7425
7426 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7427 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7428
7429 if test "$GCC" = yes; then
7430 lt_prog_compiler_wl='-Wl,'
7431 lt_prog_compiler_static='-static'
7432
7433 case $host_os in
7434 aix*)
7435 # All AIX code is PIC.
7436 if test "$host_cpu" = ia64; then
7437 # AIX 5 now supports IA64 processor
7438 lt_prog_compiler_static='-Bstatic'
7439 fi
7440 ;;
7441
7442 amigaos*)
7443 # FIXME: we need at least 68020 code to build shared libraries, but
7444 # adding the `-m68020' flag to GCC prevents building anything better,
7445 # like `-m68040'.
7446 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7447 ;;
7448
7449 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7450 # PIC is the default for these OSes.
7451 ;;
7452
7453 mingw* | pw32* | os2*)
7454 # This hack is so that the source file can tell whether it is being
7455 # built for inclusion in a dll (and should export symbols for example).
7456 lt_prog_compiler_pic='-DDLL_EXPORT'
7457 ;;
7458
7459 darwin* | rhapsody*)
7460 # PIC is the default on this platform
7461 # Common symbols not allowed in MH_DYLIB files
7462 lt_prog_compiler_pic='-fno-common'
7463 ;;
7464
7465 interix3*)
7466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7467 # Instead, we relocate shared libraries at runtime.
7468 ;;
7469
7470 msdosdjgpp*)
7471 # Just because we use GCC doesn't mean we suddenly get shared libraries
7472 # on systems that don't support them.
7473 lt_prog_compiler_can_build_shared=no
7474 enable_shared=no
7475 ;;
7476
7477 sysv4*MP*)
7478 if test -d /usr/nec; then
7479 lt_prog_compiler_pic=-Kconform_pic
7480 fi
7481 ;;
7482
7483 hpux*)
7484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7485 # not for PA HP-UX.
7486 case $host_cpu in
7487 hppa*64*|ia64*)
7488 # +Z the default
7489 ;;
7490 *)
7491 lt_prog_compiler_pic='-fPIC'
7492 ;;
7493 esac
7494 ;;
7495
7496 *)
7497 lt_prog_compiler_pic='-fPIC'
7498 ;;
7499 esac
7500 else
7501 # PORTME Check for flag to pass linker flags through the system compiler.
7502 case $host_os in
7503 aix*)
7504 lt_prog_compiler_wl='-Wl,'
7505 if test "$host_cpu" = ia64; then
7506 # AIX 5 now supports IA64 processor
7507 lt_prog_compiler_static='-Bstatic'
7508 else
7509 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7510 fi
7511 ;;
7512 darwin*)
7513 # PIC is the default on this platform
7514 # Common symbols not allowed in MH_DYLIB files
7515 case $cc_basename in
7516 xlc*)
7517 lt_prog_compiler_pic='-qnocommon'
7518 lt_prog_compiler_wl='-Wl,'
7519 ;;
7520 esac
7521 ;;
7522
7523 mingw* | pw32* | os2*)
7524 # This hack is so that the source file can tell whether it is being
7525 # built for inclusion in a dll (and should export symbols for example).
7526 lt_prog_compiler_pic='-DDLL_EXPORT'
7527 ;;
7528
7529 hpux9* | hpux10* | hpux11*)
7530 lt_prog_compiler_wl='-Wl,'
7531 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7532 # not for PA HP-UX.
7533 case $host_cpu in
7534 hppa*64*|ia64*)
7535 # +Z the default
7536 ;;
7537 *)
7538 lt_prog_compiler_pic='+Z'
7539 ;;
7540 esac
7541 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7542 lt_prog_compiler_static='${wl}-a ${wl}archive'
7543 ;;
7544
7545 irix5* | irix6* | nonstopux*)
7546 lt_prog_compiler_wl='-Wl,'
7547 # PIC (with -KPIC) is the default.
7548 lt_prog_compiler_static='-non_shared'
7549 ;;
7550
7551 newsos6)
7552 lt_prog_compiler_pic='-KPIC'
7553 lt_prog_compiler_static='-Bstatic'
7554 ;;
7555
7556 linux* | k*bsd*-gnu)
7557 case $cc_basename in
7558 icc* | ecc*)
7559 lt_prog_compiler_wl='-Wl,'
7560 lt_prog_compiler_pic='-KPIC'
7561 lt_prog_compiler_static='-static'
7562 ;;
7563 pgcc* | pgf77* | pgf90* | pgf95*)
7564 # Portland Group compilers (*not* the Pentium gcc compiler,
7565 # which looks to be a dead project)
7566 lt_prog_compiler_wl='-Wl,'
7567 lt_prog_compiler_pic='-fpic'
7568 lt_prog_compiler_static='-Bstatic'
7569 ;;
7570 ccc*)
7571 lt_prog_compiler_wl='-Wl,'
7572 # All Alpha code is PIC.
7573 lt_prog_compiler_static='-non_shared'
7574 ;;
7575 esac
7576 ;;
7577
7578 osf3* | osf4* | osf5*)
7579 lt_prog_compiler_wl='-Wl,'
7580 # All OSF/1 code is PIC.
7581 lt_prog_compiler_static='-non_shared'
7582 ;;
7583
7584 solaris*)
7585 lt_prog_compiler_pic='-KPIC'
7586 lt_prog_compiler_static='-Bstatic'
7587 case $cc_basename in
7588 f77* | f90* | f95*)
7589 lt_prog_compiler_wl='-Qoption ld ';;
7590 *)
7591 lt_prog_compiler_wl='-Wl,';;
7592 esac
7593 ;;
7594
7595 sunos4*)
7596 lt_prog_compiler_wl='-Qoption ld '
7597 lt_prog_compiler_pic='-PIC'
7598 lt_prog_compiler_static='-Bstatic'
7599 ;;
7600
7601 sysv4 | sysv4.2uw2* | sysv4.3*)
7602 lt_prog_compiler_wl='-Wl,'
7603 lt_prog_compiler_pic='-KPIC'
7604 lt_prog_compiler_static='-Bstatic'
7605 ;;
7606
7607 sysv4*MP*)
7608 if test -d /usr/nec ;then
7609 lt_prog_compiler_pic='-Kconform_pic'
7610 lt_prog_compiler_static='-Bstatic'
7611 fi
7612 ;;
7613
7614 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7615 lt_prog_compiler_wl='-Wl,'
7616 lt_prog_compiler_pic='-KPIC'
7617 lt_prog_compiler_static='-Bstatic'
7618 ;;
7619
7620 unicos*)
7621 lt_prog_compiler_wl='-Wl,'
7622 lt_prog_compiler_can_build_shared=no
7623 ;;
7624
7625 uts4*)
7626 lt_prog_compiler_pic='-pic'
7627 lt_prog_compiler_static='-Bstatic'
7628 ;;
7629
7630 *)
7631 lt_prog_compiler_can_build_shared=no
7632 ;;
7633 esac
7634 fi
7635
7636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7637 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7638
7639 #
7640 # Check to make sure the PIC flag actually works.
7641 #
7642 if test -n "$lt_prog_compiler_pic"; then
7643
7644 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7645 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7646 if test "${lt_prog_compiler_pic_works+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 lt_prog_compiler_pic_works=no
7650 ac_outfile=conftest.$ac_objext
7651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7652 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7653 # Insert the option either (1) after the last *FLAGS variable, or
7654 # (2) before a word containing "conftest.", or (3) at the end.
7655 # Note that $ac_compile itself does not contain backslashes and begins
7656 # with a dollar sign (not a hyphen), so the echo should work correctly.
7657 # The option is referenced via a variable to avoid confusing sed.
7658 lt_compile=`echo "$ac_compile" | $SED \
7659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7661 -e 's:$: $lt_compiler_flag:'`
7662 (eval echo "\"\$as_me:7662: $lt_compile\"" >&5)
7663 (eval "$lt_compile" 2>conftest.err)
7664 ac_status=$?
7665 cat conftest.err >&5
7666 echo "$as_me:7666: \$? = $ac_status" >&5
7667 if (exit $ac_status) && test -s "$ac_outfile"; then
7668 # The compiler can only warn and ignore the option if not recognized
7669 # So say no if there are warnings other than the usual output.
7670 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7673 lt_prog_compiler_pic_works=yes
7674 fi
7675 fi
7676 $rm conftest*
7677
7678 fi
7679 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7680 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7681
7682 if test x"$lt_prog_compiler_pic_works" = xyes; then
7683 case $lt_prog_compiler_pic in
7684 "" | " "*) ;;
7685 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7686 esac
7687 else
7688 lt_prog_compiler_pic=
7689 lt_prog_compiler_can_build_shared=no
7690 fi
7691
7692 fi
7693 case $host_os in
7694 # For platforms which do not support PIC, -DPIC is meaningless:
7695 *djgpp*)
7696 lt_prog_compiler_pic=
7697 ;;
7698 *)
7699 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7700 ;;
7701 esac
7702
7703 #
7704 # Check to make sure the static flag actually works.
7705 #
7706 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7707 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7708 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7709 if test "${lt_prog_compiler_static_works+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 lt_prog_compiler_static_works=no
7713 save_LDFLAGS="$LDFLAGS"
7714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7715 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7717 # The linker can only warn and ignore the option if not recognized
7718 # So say no if there are warnings
7719 if test -s conftest.err; then
7720 # Append any errors to the config.log.
7721 cat conftest.err 1>&5
7722 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7724 if diff conftest.exp conftest.er2 >/dev/null; then
7725 lt_prog_compiler_static_works=yes
7726 fi
7727 else
7728 lt_prog_compiler_static_works=yes
7729 fi
7730 fi
7731 $rm conftest*
7732 LDFLAGS="$save_LDFLAGS"
7733
7734 fi
7735 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7736 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7737
7738 if test x"$lt_prog_compiler_static_works" = xyes; then
7739 :
7740 else
7741 lt_prog_compiler_static=
7742 fi
7743
7744
7745 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7746 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7747 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 lt_cv_prog_compiler_c_o=no
7751 $rm -r conftest 2>/dev/null
7752 mkdir conftest
7753 cd conftest
7754 mkdir out
7755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7756
7757 lt_compiler_flag="-o out/conftest2.$ac_objext"
7758 # Insert the option either (1) after the last *FLAGS variable, or
7759 # (2) before a word containing "conftest.", or (3) at the end.
7760 # Note that $ac_compile itself does not contain backslashes and begins
7761 # with a dollar sign (not a hyphen), so the echo should work correctly.
7762 lt_compile=`echo "$ac_compile" | $SED \
7763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7765 -e 's:$: $lt_compiler_flag:'`
7766 (eval echo "\"\$as_me:7766: $lt_compile\"" >&5)
7767 (eval "$lt_compile" 2>out/conftest.err)
7768 ac_status=$?
7769 cat out/conftest.err >&5
7770 echo "$as_me:7770: \$? = $ac_status" >&5
7771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7772 then
7773 # The compiler can only warn and ignore the option if not recognized
7774 # So say no if there are warnings
7775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7778 lt_cv_prog_compiler_c_o=yes
7779 fi
7780 fi
7781 chmod u+w . 2>&5
7782 $rm conftest*
7783 # SGI C++ compiler will create directory out/ii_files/ for
7784 # template instantiation
7785 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7786 $rm out/* && rmdir out
7787 cd ..
7788 rmdir conftest
7789 $rm conftest*
7790
7791 fi
7792 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7793 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7794
7795
7796 hard_links="nottested"
7797 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7798 # do not overwrite the value of need_locks provided by the user
7799 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7800 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7801 hard_links=yes
7802 $rm conftest*
7803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7804 touch conftest.a
7805 ln conftest.a conftest.b 2>&5 || hard_links=no
7806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7807 { echo "$as_me:$LINENO: result: $hard_links" >&5
7808 echo "${ECHO_T}$hard_links" >&6; }
7809 if test "$hard_links" = no; then
7810 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7811 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7812 need_locks=warn
7813 fi
7814 else
7815 need_locks=no
7816 fi
7817
7818 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7819 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7820
7821 runpath_var=
7822 allow_undefined_flag=
7823 enable_shared_with_static_runtimes=no
7824 archive_cmds=
7825 archive_expsym_cmds=
7826 old_archive_From_new_cmds=
7827 old_archive_from_expsyms_cmds=
7828 export_dynamic_flag_spec=
7829 whole_archive_flag_spec=
7830 thread_safe_flag_spec=
7831 hardcode_libdir_flag_spec=
7832 hardcode_libdir_flag_spec_ld=
7833 hardcode_libdir_separator=
7834 hardcode_direct=no
7835 hardcode_minus_L=no
7836 hardcode_shlibpath_var=unsupported
7837 link_all_deplibs=unknown
7838 hardcode_automatic=no
7839 module_cmds=
7840 module_expsym_cmds=
7841 always_export_symbols=no
7842 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7843 # include_expsyms should be a list of space-separated symbols to be *always*
7844 # included in the symbol list
7845 include_expsyms=
7846 # exclude_expsyms can be an extended regexp of symbols to exclude
7847 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7848 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7849 # as well as any symbol that contains `d'.
7850 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7851 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7852 # platforms (ab)use it in PIC code, but their linkers get confused if
7853 # the symbol is explicitly referenced. Since portable code cannot
7854 # rely on this symbol name, it's probably fine to never include it in
7855 # preloaded symbol tables.
7856 extract_expsyms_cmds=
7857 # Just being paranoid about ensuring that cc_basename is set.
7858 for cc_temp in $compiler""; do
7859 case $cc_temp in
7860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7862 \-*) ;;
7863 *) break;;
7864 esac
7865 done
7866 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7867
7868 case $host_os in
7869 cygwin* | mingw* | pw32*)
7870 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7871 # When not using gcc, we currently assume that we are using
7872 # Microsoft Visual C++.
7873 if test "$GCC" != yes; then
7874 with_gnu_ld=no
7875 fi
7876 ;;
7877 interix*)
7878 # we just hope/assume this is gcc and not c89 (= MSVC++)
7879 with_gnu_ld=yes
7880 ;;
7881 openbsd*)
7882 with_gnu_ld=no
7883 ;;
7884 esac
7885
7886 ld_shlibs=yes
7887 if test "$with_gnu_ld" = yes; then
7888 # If archive_cmds runs LD, not CC, wlarc should be empty
7889 wlarc='${wl}'
7890
7891 # Set some defaults for GNU ld with shared library support. These
7892 # are reset later if shared libraries are not supported. Putting them
7893 # here allows them to be overridden if necessary.
7894 runpath_var=LD_RUN_PATH
7895 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7896 export_dynamic_flag_spec='${wl}--export-dynamic'
7897 # ancient GNU ld didn't support --whole-archive et. al.
7898 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7899 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7900 else
7901 whole_archive_flag_spec=
7902 fi
7903 supports_anon_versioning=no
7904 case `$LD -v 2>/dev/null` in
7905 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7906 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7907 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7908 *\ 2.11.*) ;; # other 2.11 versions
7909 *) supports_anon_versioning=yes ;;
7910 esac
7911
7912 # See if GNU ld supports shared libraries.
7913 case $host_os in
7914 aix3* | aix4* | aix5*)
7915 # On AIX/PPC, the GNU linker is very broken
7916 if test "$host_cpu" != ia64; then
7917 ld_shlibs=no
7918 cat <<EOF 1>&2
7919
7920 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7921 *** to be unable to reliably create shared libraries on AIX.
7922 *** Therefore, libtool is disabling shared libraries support. If you
7923 *** really care for shared libraries, you may want to modify your PATH
7924 *** so that a non-GNU linker is found, and then restart.
7925
7926 EOF
7927 fi
7928 ;;
7929
7930 amigaos*)
7931 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)'
7932 hardcode_libdir_flag_spec='-L$libdir'
7933 hardcode_minus_L=yes
7934
7935 # Samuel A. Falvo II <[email protected]> reports
7936 # that the semantics of dynamic libraries on AmigaOS, at least up
7937 # to version 4, is to share data among multiple programs linked
7938 # with the same dynamic library. Since this doesn't match the
7939 # behavior of shared libraries on other platforms, we can't use
7940 # them.
7941 ld_shlibs=no
7942 ;;
7943
7944 beos*)
7945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7946 allow_undefined_flag=unsupported
7947 # Joseph Beckenbach <[email protected]> says some releases of gcc
7948 # support --undefined. This deserves some investigation. FIXME
7949 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7950 else
7951 ld_shlibs=no
7952 fi
7953 ;;
7954
7955 cygwin* | mingw* | pw32*)
7956 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7957 # as there is no search path for DLLs.
7958 hardcode_libdir_flag_spec='-L$libdir'
7959 allow_undefined_flag=unsupported
7960 always_export_symbols=no
7961 enable_shared_with_static_runtimes=yes
7962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7963
7964 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7966 # If the export-symbols file already is a .def file (1st line
7967 # is EXPORTS), use it as is; otherwise, prepend...
7968 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7969 cp $export_symbols $output_objdir/$soname.def;
7970 else
7971 echo EXPORTS > $output_objdir/$soname.def;
7972 cat $export_symbols >> $output_objdir/$soname.def;
7973 fi~
7974 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7975 else
7976 ld_shlibs=no
7977 fi
7978 ;;
7979
7980 interix3*)
7981 hardcode_direct=no
7982 hardcode_shlibpath_var=no
7983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7984 export_dynamic_flag_spec='${wl}-E'
7985 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7986 # Instead, shared libraries are loaded at an image base (0x10000000 by
7987 # default) and relocated if they conflict, which is a slow very memory
7988 # consuming and fragmenting process. To avoid this, we pick a random,
7989 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7990 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7991 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7992 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'
7993 ;;
7994
7995 linux* | k*bsd*-gnu)
7996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7997 tmp_addflag=
7998 case $cc_basename,$host_cpu in
7999 pgcc*) # Portland Group C compiler
8000 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'
8001 tmp_addflag=' $pic_flag'
8002 ;;
8003 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8004 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'
8005 tmp_addflag=' $pic_flag -Mnomain' ;;
8006 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8007 tmp_addflag=' -i_dynamic' ;;
8008 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8009 tmp_addflag=' -i_dynamic -nofor_main' ;;
8010 ifc* | ifort*) # Intel Fortran compiler
8011 tmp_addflag=' -nofor_main' ;;
8012 esac
8013 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014
8015 if test $supports_anon_versioning = yes; then
8016 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8017 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8018 $echo "local: *; };" >> $output_objdir/$libname.ver~
8019 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8020 fi
8021 link_all_deplibs=no
8022 else
8023 ld_shlibs=no
8024 fi
8025 ;;
8026
8027 netbsd* | netbsdelf*-gnu)
8028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8029 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8030 wlarc=
8031 else
8032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8034 fi
8035 ;;
8036
8037 solaris*)
8038 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8039 ld_shlibs=no
8040 cat <<EOF 1>&2
8041
8042 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8043 *** create shared libraries on Solaris systems. Therefore, libtool
8044 *** is disabling shared libraries support. We urge you to upgrade GNU
8045 *** binutils to release 2.9.1 or newer. Another option is to modify
8046 *** your PATH or compiler configuration so that the native linker is
8047 *** used, and then restart.
8048
8049 EOF
8050 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8053 else
8054 ld_shlibs=no
8055 fi
8056 ;;
8057
8058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8059 case `$LD -v 2>&1` in
8060 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8061 ld_shlibs=no
8062 cat <<_LT_EOF 1>&2
8063
8064 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8065 *** reliably create shared libraries on SCO systems. Therefore, libtool
8066 *** is disabling shared libraries support. We urge you to upgrade GNU
8067 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8068 *** your PATH or compiler configuration so that the native linker is
8069 *** used, and then restart.
8070
8071 _LT_EOF
8072 ;;
8073 *)
8074 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8075 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8078 else
8079 ld_shlibs=no
8080 fi
8081 ;;
8082 esac
8083 ;;
8084
8085 sunos4*)
8086 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8087 wlarc=
8088 hardcode_direct=yes
8089 hardcode_shlibpath_var=no
8090 ;;
8091
8092 *)
8093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8096 else
8097 ld_shlibs=no
8098 fi
8099 ;;
8100 esac
8101
8102 if test "$ld_shlibs" = no; then
8103 runpath_var=
8104 hardcode_libdir_flag_spec=
8105 export_dynamic_flag_spec=
8106 whole_archive_flag_spec=
8107 fi
8108 else
8109 # PORTME fill in a description of your system's linker (not GNU ld)
8110 case $host_os in
8111 aix3*)
8112 allow_undefined_flag=unsupported
8113 always_export_symbols=yes
8114 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'
8115 # Note: this linker hardcodes the directories in LIBPATH if there
8116 # are no directories specified by -L.
8117 hardcode_minus_L=yes
8118 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8119 # Neither direct hardcoding nor static linking is supported with a
8120 # broken collect2.
8121 hardcode_direct=unsupported
8122 fi
8123 ;;
8124
8125 aix4* | aix5*)
8126 if test "$host_cpu" = ia64; then
8127 # On IA64, the linker does run time linking by default, so we don't
8128 # have to do anything special.
8129 aix_use_runtimelinking=no
8130 exp_sym_flag='-Bexport'
8131 no_entry_flag=""
8132 else
8133 # If we're using GNU nm, then we don't want the "-C" option.
8134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8136 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'
8137 else
8138 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'
8139 fi
8140 aix_use_runtimelinking=no
8141
8142 # Test if we are trying to use run time linking or normal
8143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8144 # need to do runtime linking.
8145 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8146 for ld_flag in $LDFLAGS; do
8147 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8148 aix_use_runtimelinking=yes
8149 break
8150 fi
8151 done
8152 ;;
8153 esac
8154
8155 exp_sym_flag='-bexport'
8156 no_entry_flag='-bnoentry'
8157 fi
8158
8159 # When large executables or shared objects are built, AIX ld can
8160 # have problems creating the table of contents. If linking a library
8161 # or program results in "error TOC overflow" add -mminimal-toc to
8162 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8163 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8164
8165 archive_cmds=''
8166 hardcode_direct=yes
8167 hardcode_libdir_separator=':'
8168 link_all_deplibs=yes
8169
8170 if test "$GCC" = yes; then
8171 case $host_os in aix4.[012]|aix4.[012].*)
8172 # We only want to do this on AIX 4.2 and lower, the check
8173 # below for broken collect2 doesn't work under 4.3+
8174 collect2name=`${CC} -print-prog-name=collect2`
8175 if test -f "$collect2name" && \
8176 strings "$collect2name" | grep resolve_lib_name >/dev/null
8177 then
8178 # We have reworked collect2
8179 hardcode_direct=yes
8180 else
8181 # We have old collect2
8182 hardcode_direct=unsupported
8183 # It fails to find uninstalled libraries when the uninstalled
8184 # path is not listed in the libpath. Setting hardcode_minus_L
8185 # to unsupported forces relinking
8186 hardcode_minus_L=yes
8187 hardcode_libdir_flag_spec='-L$libdir'
8188 hardcode_libdir_separator=
8189 fi
8190 ;;
8191 esac
8192 shared_flag='-shared'
8193 if test "$aix_use_runtimelinking" = yes; then
8194 shared_flag="$shared_flag "'${wl}-G'
8195 fi
8196 else
8197 # not using gcc
8198 if test "$host_cpu" = ia64; then
8199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8200 # chokes on -Wl,-G. The following line is correct:
8201 shared_flag='-G'
8202 else
8203 if test "$aix_use_runtimelinking" = yes; then
8204 shared_flag='${wl}-G'
8205 else
8206 shared_flag='${wl}-bM:SRE'
8207 fi
8208 fi
8209 fi
8210
8211 # It seems that -bexpall does not export symbols beginning with
8212 # underscore (_), so it is better to generate a list of symbols to export.
8213 always_export_symbols=yes
8214 if test "$aix_use_runtimelinking" = yes; then
8215 # Warning - without using the other runtime loading flags (-brtl),
8216 # -berok will link without error, but may produce a broken library.
8217 allow_undefined_flag='-berok'
8218 # Determine the default libpath from the value encoded in an empty executable.
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225
8226 int
8227 main ()
8228 {
8229
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (ac_try="$ac_link"
8236 case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_link") 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249 { (case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_try") 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_try") 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268
8269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8270 }'`
8271 # Check for a 64-bit object if we didn't find anything.
8272 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8273 }'`; fi
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8277
8278
8279 fi
8280
8281 rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8284
8285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8286 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"
8287 else
8288 if test "$host_cpu" = ia64; then
8289 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8290 allow_undefined_flag="-z nodefs"
8291 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"
8292 else
8293 # Determine the default libpath from the value encoded in an empty executable.
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300
8301 int
8302 main ()
8303 {
8304
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (ac_try="$ac_link"
8311 case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_link") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343
8344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8345 }'`
8346 # Check for a 64-bit object if we didn't find anything.
8347 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8348 }'`; fi
8349 else
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353
8354 fi
8355
8356 rm -f core conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8359
8360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8361 # Warning - without using the other run time loading flags,
8362 # -berok will link without error, but may produce a broken library.
8363 no_undefined_flag=' ${wl}-bernotok'
8364 allow_undefined_flag=' ${wl}-berok'
8365 # Exported symbols can be pulled into shared objects from archives
8366 whole_archive_flag_spec='$convenience'
8367 archive_cmds_need_lc=yes
8368 # This is similar to how AIX traditionally builds its shared libraries.
8369 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'
8370 fi
8371 fi
8372 ;;
8373
8374 amigaos*)
8375 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)'
8376 hardcode_libdir_flag_spec='-L$libdir'
8377 hardcode_minus_L=yes
8378 # see comment about different semantics on the GNU ld section
8379 ld_shlibs=no
8380 ;;
8381
8382 bsdi[45]*)
8383 export_dynamic_flag_spec=-rdynamic
8384 ;;
8385
8386 cygwin* | mingw* | pw32*)
8387 # When not using gcc, we currently assume that we are using
8388 # Microsoft Visual C++.
8389 # hardcode_libdir_flag_spec is actually meaningless, as there is
8390 # no search path for DLLs.
8391 hardcode_libdir_flag_spec=' '
8392 allow_undefined_flag=unsupported
8393 # Tell ltmain to make .lib files, not .a files.
8394 libext=lib
8395 # Tell ltmain to make .dll files, not .so files.
8396 shrext_cmds=".dll"
8397 # FIXME: Setting linknames here is a bad hack.
8398 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8399 # The linker will automatically build a .lib file if we build a DLL.
8400 old_archive_From_new_cmds='true'
8401 # FIXME: Should let the user specify the lib program.
8402 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8403 fix_srcfile_path='`cygpath -w "$srcfile"`'
8404 enable_shared_with_static_runtimes=yes
8405 ;;
8406
8407 darwin* | rhapsody*)
8408 case $host_os in
8409 rhapsody* | darwin1.[012])
8410 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8411 ;;
8412 *) # Darwin 1.3 on
8413 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8414 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8415 else
8416 case ${MACOSX_DEPLOYMENT_TARGET} in
8417 10.[012])
8418 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8419 ;;
8420 10.*)
8421 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8422 ;;
8423 esac
8424 fi
8425 ;;
8426 esac
8427 archive_cmds_need_lc=no
8428 hardcode_direct=no
8429 hardcode_automatic=yes
8430 hardcode_shlibpath_var=unsupported
8431 whole_archive_flag_spec=''
8432 link_all_deplibs=yes
8433 if test "$GCC" = yes ; then
8434 output_verbose_link_cmd='echo'
8435 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8436 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8437 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8438 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}'
8439 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}'
8440 else
8441 case $cc_basename in
8442 xlc*)
8443 output_verbose_link_cmd='echo'
8444 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8445 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8447 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8448 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}'
8449 ;;
8450 *)
8451 ld_shlibs=no
8452 ;;
8453 esac
8454 fi
8455 ;;
8456
8457 dgux*)
8458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8459 hardcode_libdir_flag_spec='-L$libdir'
8460 hardcode_shlibpath_var=no
8461 ;;
8462
8463 freebsd1*)
8464 ld_shlibs=no
8465 ;;
8466
8467 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8468 # support. Future versions do this automatically, but an explicit c++rt0.o
8469 # does not break anything, and helps significantly (at the cost of a little
8470 # extra space).
8471 freebsd2.2*)
8472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8473 hardcode_libdir_flag_spec='-R$libdir'
8474 hardcode_direct=yes
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8479 freebsd2*)
8480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8481 hardcode_direct=yes
8482 hardcode_minus_L=yes
8483 hardcode_shlibpath_var=no
8484 ;;
8485
8486 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8487 freebsd* | dragonfly*)
8488 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8489 hardcode_libdir_flag_spec='-R$libdir'
8490 hardcode_direct=yes
8491 hardcode_shlibpath_var=no
8492 ;;
8493
8494 hpux9*)
8495 if test "$GCC" = yes; then
8496 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'
8497 else
8498 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'
8499 fi
8500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8501 hardcode_libdir_separator=:
8502 hardcode_direct=yes
8503
8504 # hardcode_minus_L: Not really in the search PATH,
8505 # but as the default location of the library.
8506 hardcode_minus_L=yes
8507 export_dynamic_flag_spec='${wl}-E'
8508 ;;
8509
8510 hpux10*)
8511 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8512 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8513 else
8514 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8515 fi
8516 if test "$with_gnu_ld" = no; then
8517 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8518 hardcode_libdir_separator=:
8519
8520 hardcode_direct=yes
8521 export_dynamic_flag_spec='${wl}-E'
8522
8523 # hardcode_minus_L: Not really in the search PATH,
8524 # but as the default location of the library.
8525 hardcode_minus_L=yes
8526 fi
8527 ;;
8528
8529 hpux11*)
8530 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8531 case $host_cpu in
8532 hppa*64*)
8533 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8534 ;;
8535 ia64*)
8536 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8537 ;;
8538 *)
8539 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8540 ;;
8541 esac
8542 else
8543 case $host_cpu in
8544 hppa*64*)
8545 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8546 ;;
8547 ia64*)
8548 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8549 ;;
8550 *)
8551 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8552 ;;
8553 esac
8554 fi
8555 if test "$with_gnu_ld" = no; then
8556 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8557 hardcode_libdir_separator=:
8558
8559 case $host_cpu in
8560 hppa*64*|ia64*)
8561 hardcode_libdir_flag_spec_ld='+b $libdir'
8562 hardcode_direct=no
8563 hardcode_shlibpath_var=no
8564 ;;
8565 *)
8566 hardcode_direct=yes
8567 export_dynamic_flag_spec='${wl}-E'
8568
8569 # hardcode_minus_L: Not really in the search PATH,
8570 # but as the default location of the library.
8571 hardcode_minus_L=yes
8572 ;;
8573 esac
8574 fi
8575 ;;
8576
8577 irix5* | irix6* | nonstopux*)
8578 if test "$GCC" = yes; then
8579 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'
8580 else
8581 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'
8582 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8583 fi
8584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8585 hardcode_libdir_separator=:
8586 link_all_deplibs=yes
8587 ;;
8588
8589 netbsd* | netbsdelf*-gnu)
8590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8592 else
8593 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8594 fi
8595 hardcode_libdir_flag_spec='-R$libdir'
8596 hardcode_direct=yes
8597 hardcode_shlibpath_var=no
8598 ;;
8599
8600 newsos6)
8601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602 hardcode_direct=yes
8603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8604 hardcode_libdir_separator=:
8605 hardcode_shlibpath_var=no
8606 ;;
8607
8608 openbsd*)
8609 hardcode_direct=yes
8610 hardcode_shlibpath_var=no
8611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8613 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8615 export_dynamic_flag_spec='${wl}-E'
8616 else
8617 case $host_os in
8618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8620 hardcode_libdir_flag_spec='-R$libdir'
8621 ;;
8622 *)
8623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8625 ;;
8626 esac
8627 fi
8628 ;;
8629
8630 os2*)
8631 hardcode_libdir_flag_spec='-L$libdir'
8632 hardcode_minus_L=yes
8633 allow_undefined_flag=unsupported
8634 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'
8635 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8636 ;;
8637
8638 osf3*)
8639 if test "$GCC" = yes; then
8640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8641 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'
8642 else
8643 allow_undefined_flag=' -expect_unresolved \*'
8644 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'
8645 fi
8646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8647 hardcode_libdir_separator=:
8648 ;;
8649
8650 osf4* | osf5*) # as osf3* with the addition of -msym flag
8651 if test "$GCC" = yes; then
8652 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8653 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'
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 else
8656 allow_undefined_flag=' -expect_unresolved \*'
8657 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'
8658 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8659 $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'
8660
8661 # Both c and cxx compiler support -rpath directly
8662 hardcode_libdir_flag_spec='-rpath $libdir'
8663 fi
8664 hardcode_libdir_separator=:
8665 ;;
8666
8667 solaris*)
8668 no_undefined_flag=' -z text'
8669 if test "$GCC" = yes; then
8670 wlarc='${wl}'
8671 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8672 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8673 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8674 else
8675 wlarc=''
8676 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8677 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8678 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8679 fi
8680 hardcode_libdir_flag_spec='-R$libdir'
8681 hardcode_shlibpath_var=no
8682 case $host_os in
8683 solaris2.[0-5] | solaris2.[0-5].*) ;;
8684 *)
8685 # The compiler driver will combine linker options so we
8686 # cannot just pass the convience library names through
8687 # without $wl, iff we do not link with $LD.
8688 # Luckily, gcc supports the same syntax we need for Sun Studio.
8689 # Supported since Solaris 2.6 (maybe 2.5.1?)
8690 case $wlarc in
8691 '')
8692 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8693 *)
8694 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8695 esac ;;
8696 esac
8697 link_all_deplibs=yes
8698 ;;
8699
8700 sunos4*)
8701 if test "x$host_vendor" = xsequent; then
8702 # Use $CC to link under sequent, because it throws in some extra .o
8703 # files that make .init and .fini sections work.
8704 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8705 else
8706 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8707 fi
8708 hardcode_libdir_flag_spec='-L$libdir'
8709 hardcode_direct=yes
8710 hardcode_minus_L=yes
8711 hardcode_shlibpath_var=no
8712 ;;
8713
8714 sysv4)
8715 case $host_vendor in
8716 sni)
8717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718 hardcode_direct=yes # is this really true???
8719 ;;
8720 siemens)
8721 ## LD is ld it makes a PLAMLIB
8722 ## CC just makes a GrossModule.
8723 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8724 reload_cmds='$CC -r -o $output$reload_objs'
8725 hardcode_direct=no
8726 ;;
8727 motorola)
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8730 ;;
8731 esac
8732 runpath_var='LD_RUN_PATH'
8733 hardcode_shlibpath_var=no
8734 ;;
8735
8736 sysv4.3*)
8737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8738 hardcode_shlibpath_var=no
8739 export_dynamic_flag_spec='-Bexport'
8740 ;;
8741
8742 sysv4*MP*)
8743 if test -d /usr/nec; then
8744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8745 hardcode_shlibpath_var=no
8746 runpath_var=LD_RUN_PATH
8747 hardcode_runpath_var=yes
8748 ld_shlibs=yes
8749 fi
8750 ;;
8751
8752 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8753 no_undefined_flag='${wl}-z,text'
8754 archive_cmds_need_lc=no
8755 hardcode_shlibpath_var=no
8756 runpath_var='LD_RUN_PATH'
8757
8758 if test "$GCC" = yes; then
8759 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8760 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761 else
8762 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8763 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8764 fi
8765 ;;
8766
8767 sysv5* | sco3.2v5* | sco5v6*)
8768 # Note: We can NOT use -z defs as we might desire, because we do not
8769 # link with -lc, and that would cause any symbols used from libc to
8770 # always be unresolved, which means just about no library would
8771 # ever link correctly. If we're not using GNU ld we use -z text
8772 # though, which does catch some bad symbols but isn't as heavy-handed
8773 # as -z defs.
8774 no_undefined_flag='${wl}-z,text'
8775 allow_undefined_flag='${wl}-z,nodefs'
8776 archive_cmds_need_lc=no
8777 hardcode_shlibpath_var=no
8778 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8779 hardcode_libdir_separator=':'
8780 link_all_deplibs=yes
8781 export_dynamic_flag_spec='${wl}-Bexport'
8782 runpath_var='LD_RUN_PATH'
8783
8784 if test "$GCC" = yes; then
8785 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8787 else
8788 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8790 fi
8791 ;;
8792
8793 uts4*)
8794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_shlibpath_var=no
8797 ;;
8798
8799 *)
8800 ld_shlibs=no
8801 ;;
8802 esac
8803 fi
8804
8805 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8806 echo "${ECHO_T}$ld_shlibs" >&6; }
8807 test "$ld_shlibs" = no && can_build_shared=no
8808
8809 #
8810 # Do we need to explicitly link libc?
8811 #
8812 case "x$archive_cmds_need_lc" in
8813 x|xyes)
8814 # Assume -lc should be added
8815 archive_cmds_need_lc=yes
8816
8817 if test "$enable_shared" = yes && test "$GCC" = yes; then
8818 case $archive_cmds in
8819 *'~'*)
8820 # FIXME: we may have to deal with multi-command sequences.
8821 ;;
8822 '$CC '*)
8823 # Test whether the compiler implicitly links with -lc since on some
8824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8825 # to ld, don't add -lc before -lgcc.
8826 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8827 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8828 $rm conftest*
8829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8830
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } 2>conftest.err; then
8836 soname=conftest
8837 lib=conftest
8838 libobjs=conftest.$ac_objext
8839 deplibs=
8840 wl=$lt_prog_compiler_wl
8841 pic_flag=$lt_prog_compiler_pic
8842 compiler_flags=-v
8843 linker_flags=-v
8844 verstring=
8845 output_objdir=.
8846 libname=conftest
8847 lt_save_allow_undefined_flag=$allow_undefined_flag
8848 allow_undefined_flag=
8849 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8850 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }
8854 then
8855 archive_cmds_need_lc=no
8856 else
8857 archive_cmds_need_lc=yes
8858 fi
8859 allow_undefined_flag=$lt_save_allow_undefined_flag
8860 else
8861 cat conftest.err 1>&5
8862 fi
8863 $rm conftest*
8864 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8865 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8866 ;;
8867 esac
8868 fi
8869 ;;
8870 esac
8871
8872 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8873 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8874 library_names_spec=
8875 libname_spec='lib$name'
8876 soname_spec=
8877 shrext_cmds=".so"
8878 postinstall_cmds=
8879 postuninstall_cmds=
8880 finish_cmds=
8881 finish_eval=
8882 shlibpath_var=
8883 shlibpath_overrides_runpath=unknown
8884 version_type=none
8885 dynamic_linker="$host_os ld.so"
8886 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8887 if test "$GCC" = yes; then
8888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8890 # if the path contains ";" then we assume it to be the separator
8891 # otherwise default to the standard path separator (i.e. ":") - it is
8892 # assumed that no part of a normal pathname contains ";" but that should
8893 # okay in the real world where ";" in dirpaths is itself problematic.
8894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8895 else
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8897 fi
8898 else
8899 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8900 fi
8901 need_lib_prefix=unknown
8902 hardcode_into_libs=no
8903
8904 # when you set need_version to no, make sure it does not cause -set_version
8905 # flags to be left without arguments
8906 need_version=unknown
8907
8908 case $host_os in
8909 aix3*)
8910 version_type=linux
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8912 shlibpath_var=LIBPATH
8913
8914 # AIX 3 has no versioning support, so we append a major version to the name.
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 ;;
8917
8918 aix4* | aix5*)
8919 version_type=linux
8920 need_lib_prefix=no
8921 need_version=no
8922 hardcode_into_libs=yes
8923 if test "$host_cpu" = ia64; then
8924 # AIX 5 supports IA64
8925 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 else
8928 # With GCC up to 2.95.x, collect2 would create an import file
8929 # for dependence libraries. The import file would start with
8930 # the line `#! .'. This would cause the generated library to
8931 # depend on `.', always an invalid library. This was fixed in
8932 # development snapshots of GCC prior to 3.0.
8933 case $host_os in
8934 aix4 | aix4.[01] | aix4.[01].*)
8935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8936 echo ' yes '
8937 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8938 :
8939 else
8940 can_build_shared=no
8941 fi
8942 ;;
8943 esac
8944 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8945 # soname into executable. Probably we can add versioning support to
8946 # collect2, so additional links can be useful in future.
8947 if test "$aix_use_runtimelinking" = yes; then
8948 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8949 # instead of lib<name>.a to let people know that these are not
8950 # typical AIX shared libraries.
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 else
8953 # We preserve .a as extension for shared libraries through AIX4.2
8954 # and later when we are not doing run time linking.
8955 library_names_spec='${libname}${release}.a $libname.a'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 fi
8958 shlibpath_var=LIBPATH
8959 fi
8960 ;;
8961
8962 amigaos*)
8963 library_names_spec='$libname.ixlibrary $libname.a'
8964 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8965 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'
8966 ;;
8967
8968 beos*)
8969 library_names_spec='${libname}${shared_ext}'
8970 dynamic_linker="$host_os ld.so"
8971 shlibpath_var=LIBRARY_PATH
8972 ;;
8973
8974 bsdi[45]*)
8975 version_type=linux
8976 need_version=no
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8982 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8983 # the default ld.so.conf also contains /usr/contrib/lib and
8984 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8985 # libtool to hard-code these into programs
8986 ;;
8987
8988 cygwin* | mingw* | pw32*)
8989 version_type=windows
8990 shrext_cmds=".dll"
8991 need_version=no
8992 need_lib_prefix=no
8993
8994 case $GCC,$host_os in
8995 yes,cygwin* | yes,mingw* | yes,pw32*)
8996 library_names_spec='$libname.dll.a'
8997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8998 postinstall_cmds='base_file=`basename \${file}`~
8999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9000 dldir=$destdir/`dirname \$dlpath`~
9001 test -d \$dldir || mkdir -p \$dldir~
9002 $install_prog $dir/$dlname \$dldir/$dlname~
9003 chmod a+x \$dldir/$dlname'
9004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9005 dlpath=$dir/\$dldll~
9006 $rm \$dlpath'
9007 shlibpath_overrides_runpath=yes
9008
9009 case $host_os in
9010 cygwin*)
9011 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9012 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9013 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9014 ;;
9015 mingw*)
9016 # MinGW DLLs use traditional 'lib' prefix
9017 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9018 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9019 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9020 # It is most probably a Windows format PATH printed by
9021 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9022 # path with ; separators, and with drive letters. We can handle the
9023 # drive letters (cygwin fileutils understands them), so leave them,
9024 # especially as we might pass files found there to a mingw objdump,
9025 # which wouldn't understand a cygwinified path. Ahh.
9026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9027 else
9028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9029 fi
9030 ;;
9031 pw32*)
9032 # pw32 DLLs use 'pw' prefix rather than 'lib'
9033 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9034 ;;
9035 esac
9036 ;;
9037
9038 *)
9039 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9040 ;;
9041 esac
9042 dynamic_linker='Win32 ld.exe'
9043 # FIXME: first we should search . and the directory the executable is in
9044 shlibpath_var=PATH
9045 ;;
9046
9047 darwin* | rhapsody*)
9048 dynamic_linker="$host_os dyld"
9049 version_type=darwin
9050 need_lib_prefix=no
9051 need_version=no
9052 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9053 soname_spec='${libname}${release}${major}$shared_ext'
9054 shlibpath_overrides_runpath=yes
9055 shlibpath_var=DYLD_LIBRARY_PATH
9056 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9057 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9058 if test "$GCC" = yes; then
9059 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9060 else
9061 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9062 fi
9063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9064 ;;
9065
9066 dgux*)
9067 version_type=linux
9068 need_lib_prefix=no
9069 need_version=no
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 ;;
9074
9075 freebsd1*)
9076 dynamic_linker=no
9077 ;;
9078
9079 freebsd* | dragonfly*)
9080 # DragonFly does not have aout. When/if they implement a new
9081 # versioning mechanism, adjust this.
9082 if test -x /usr/bin/objformat; then
9083 objformat=`/usr/bin/objformat`
9084 else
9085 case $host_os in
9086 freebsd[123]*) objformat=aout ;;
9087 *) objformat=elf ;;
9088 esac
9089 fi
9090 version_type=freebsd-$objformat
9091 case $version_type in
9092 freebsd-elf*)
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9094 need_version=no
9095 need_lib_prefix=no
9096 ;;
9097 freebsd-*)
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9099 need_version=yes
9100 ;;
9101 esac
9102 shlibpath_var=LD_LIBRARY_PATH
9103 case $host_os in
9104 freebsd2*)
9105 shlibpath_overrides_runpath=yes
9106 ;;
9107 freebsd3.[01]* | freebsdelf3.[01]*)
9108 shlibpath_overrides_runpath=yes
9109 hardcode_into_libs=yes
9110 ;;
9111 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9112 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9113 shlibpath_overrides_runpath=no
9114 hardcode_into_libs=yes
9115 ;;
9116 freebsd*) # from 4.6 on
9117 shlibpath_overrides_runpath=yes
9118 hardcode_into_libs=yes
9119 ;;
9120 esac
9121 ;;
9122
9123 gnu*)
9124 version_type=linux
9125 need_lib_prefix=no
9126 need_version=no
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 hardcode_into_libs=yes
9131 ;;
9132
9133 hpux9* | hpux10* | hpux11*)
9134 # Give a soname corresponding to the major version so that dld.sl refuses to
9135 # link against other versions.
9136 version_type=sunos
9137 need_lib_prefix=no
9138 need_version=no
9139 case $host_cpu in
9140 ia64*)
9141 shrext_cmds='.so'
9142 hardcode_into_libs=yes
9143 dynamic_linker="$host_os dld.so"
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9149 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9150 else
9151 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9152 fi
9153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9154 ;;
9155 hppa*64*)
9156 shrext_cmds='.sl'
9157 hardcode_into_libs=yes
9158 dynamic_linker="$host_os dld.sl"
9159 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9165 ;;
9166 *)
9167 shrext_cmds='.sl'
9168 dynamic_linker="$host_os dld.sl"
9169 shlibpath_var=SHLIB_PATH
9170 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 ;;
9174 esac
9175 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9176 postinstall_cmds='chmod 555 $lib'
9177 ;;
9178
9179 interix3*)
9180 version_type=linux
9181 need_lib_prefix=no
9182 need_version=no
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=no
9188 hardcode_into_libs=yes
9189 ;;
9190
9191 irix5* | irix6* | nonstopux*)
9192 case $host_os in
9193 nonstopux*) version_type=nonstopux ;;
9194 *)
9195 if test "$lt_cv_prog_gnu_ld" = yes; then
9196 version_type=linux
9197 else
9198 version_type=irix
9199 fi ;;
9200 esac
9201 need_lib_prefix=no
9202 need_version=no
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9205 case $host_os in
9206 irix5* | nonstopux*)
9207 libsuff= shlibsuff=
9208 ;;
9209 *)
9210 case $LD in # libtool.m4 will add one of these switches to LD
9211 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9212 libsuff= shlibsuff= libmagic=32-bit;;
9213 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9214 libsuff=32 shlibsuff=N32 libmagic=N32;;
9215 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9216 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9217 *) libsuff= shlibsuff= libmagic=never-match;;
9218 esac
9219 ;;
9220 esac
9221 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9222 shlibpath_overrides_runpath=no
9223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9225 hardcode_into_libs=yes
9226 ;;
9227
9228 # No shared lib support for Linux oldld, aout, or coff.
9229 linux*oldld* | linux*aout* | linux*coff*)
9230 dynamic_linker=no
9231 ;;
9232
9233 # This must be Linux ELF.
9234 linux* | k*bsd*-gnu)
9235 version_type=linux
9236 need_lib_prefix=no
9237 need_version=no
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 shlibpath_overrides_runpath=no
9243 # This implies no fast_install, which is unacceptable.
9244 # Some rework will be needed to allow for fast_install
9245 # before this can be enabled.
9246 hardcode_into_libs=yes
9247
9248 # Append ld.so.conf contents to the search path
9249 if test -f /etc/ld.so.conf; then
9250 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9252 fi
9253
9254 # We used to test for /lib/ld.so.1 and disable shared libraries on
9255 # powerpc, because MkLinux only supported shared libraries with the
9256 # GNU dynamic linker. Since this was broken with cross compilers,
9257 # most powerpc-linux boxes support dynamic linking these days and
9258 # people can always --disable-shared, the test was removed, and we
9259 # assume the GNU/Linux dynamic linker is in use.
9260 dynamic_linker='GNU/Linux ld.so'
9261 ;;
9262
9263 netbsdelf*-gnu)
9264 version_type=linux
9265 need_lib_prefix=no
9266 need_version=no
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 shlibpath_overrides_runpath=no
9271 hardcode_into_libs=yes
9272 dynamic_linker='NetBSD ld.elf_so'
9273 ;;
9274
9275 netbsd*)
9276 version_type=sunos
9277 need_lib_prefix=no
9278 need_version=no
9279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9282 dynamic_linker='NetBSD (a.out) ld.so'
9283 else
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 dynamic_linker='NetBSD ld.elf_so'
9287 fi
9288 shlibpath_var=LD_LIBRARY_PATH
9289 shlibpath_overrides_runpath=yes
9290 hardcode_into_libs=yes
9291 ;;
9292
9293 newsos6)
9294 version_type=linux
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 shlibpath_overrides_runpath=yes
9298 ;;
9299
9300 nto-qnx*)
9301 version_type=linux
9302 need_lib_prefix=no
9303 need_version=no
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes
9308 ;;
9309
9310 openbsd*)
9311 version_type=sunos
9312 sys_lib_dlsearch_path_spec="/usr/lib"
9313 need_lib_prefix=no
9314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9315 case $host_os in
9316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9317 *) need_version=no ;;
9318 esac
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9323 case $host_os in
9324 openbsd2.[89] | openbsd2.[89].*)
9325 shlibpath_overrides_runpath=no
9326 ;;
9327 *)
9328 shlibpath_overrides_runpath=yes
9329 ;;
9330 esac
9331 else
9332 shlibpath_overrides_runpath=yes
9333 fi
9334 ;;
9335
9336 os2*)
9337 libname_spec='$name'
9338 shrext_cmds=".dll"
9339 need_lib_prefix=no
9340 library_names_spec='$libname${shared_ext} $libname.a'
9341 dynamic_linker='OS/2 ld.exe'
9342 shlibpath_var=LIBPATH
9343 ;;
9344
9345 osf3* | osf4* | osf5*)
9346 version_type=osf
9347 need_lib_prefix=no
9348 need_version=no
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9354 ;;
9355
9356 solaris*)
9357 version_type=linux
9358 need_lib_prefix=no
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=yes
9364 hardcode_into_libs=yes
9365 # ldd complains unless libraries are executable
9366 postinstall_cmds='chmod +x $lib'
9367 ;;
9368
9369 sunos4*)
9370 version_type=sunos
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 shlibpath_overrides_runpath=yes
9375 if test "$with_gnu_ld" = yes; then
9376 need_lib_prefix=no
9377 fi
9378 need_version=yes
9379 ;;
9380
9381 sysv4 | sysv4.3*)
9382 version_type=linux
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 case $host_vendor in
9387 sni)
9388 shlibpath_overrides_runpath=no
9389 need_lib_prefix=no
9390 export_dynamic_flag_spec='${wl}-Blargedynsym'
9391 runpath_var=LD_RUN_PATH
9392 ;;
9393 siemens)
9394 need_lib_prefix=no
9395 ;;
9396 motorola)
9397 need_lib_prefix=no
9398 need_version=no
9399 shlibpath_overrides_runpath=no
9400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9401 ;;
9402 esac
9403 ;;
9404
9405 sysv4*MP*)
9406 if test -d /usr/nec ;then
9407 version_type=linux
9408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9409 soname_spec='$libname${shared_ext}.$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 fi
9412 ;;
9413
9414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9415 version_type=freebsd-elf
9416 need_lib_prefix=no
9417 need_version=no
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 shlibpath_var=LD_LIBRARY_PATH
9421 hardcode_into_libs=yes
9422 if test "$with_gnu_ld" = yes; then
9423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9424 shlibpath_overrides_runpath=no
9425 else
9426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9427 shlibpath_overrides_runpath=yes
9428 case $host_os in
9429 sco3.2v5*)
9430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9431 ;;
9432 esac
9433 fi
9434 sys_lib_dlsearch_path_spec='/usr/lib'
9435 ;;
9436
9437 uts4*)
9438 version_type=linux
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 ;;
9443
9444 *)
9445 dynamic_linker=no
9446 ;;
9447 esac
9448 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9449 echo "${ECHO_T}$dynamic_linker" >&6; }
9450 test "$dynamic_linker" = no && can_build_shared=no
9451
9452 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9453 if test "$GCC" = yes; then
9454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9455 fi
9456
9457 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9458 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9459 hardcode_action=
9460 if test -n "$hardcode_libdir_flag_spec" || \
9461 test -n "$runpath_var" || \
9462 test "X$hardcode_automatic" = "Xyes" ; then
9463
9464 # We can hardcode non-existant directories.
9465 if test "$hardcode_direct" != no &&
9466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9467 # have to relink, otherwise we might link with an installed library
9468 # when we should be linking with a yet-to-be-installed one
9469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9470 test "$hardcode_minus_L" != no; then
9471 # Linking always hardcodes the temporary library directory.
9472 hardcode_action=relink
9473 else
9474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9475 hardcode_action=immediate
9476 fi
9477 else
9478 # We cannot hardcode anything, or else we can only hardcode existing
9479 # directories.
9480 hardcode_action=unsupported
9481 fi
9482 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9483 echo "${ECHO_T}$hardcode_action" >&6; }
9484
9485 if test "$hardcode_action" = relink; then
9486 # Fast installation is not supported
9487 enable_fast_install=no
9488 elif test "$shlibpath_overrides_runpath" = yes ||
9489 test "$enable_shared" = no; then
9490 # Fast installation is not necessary
9491 enable_fast_install=needless
9492 fi
9493
9494 striplib=
9495 old_striplib=
9496 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9497 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9498 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9501 { echo "$as_me:$LINENO: result: yes" >&5
9502 echo "${ECHO_T}yes" >&6; }
9503 else
9504 # FIXME - insert some real tests, host_os isn't really good enough
9505 case $host_os in
9506 darwin*)
9507 if test -n "$STRIP" ; then
9508 striplib="$STRIP -x"
9509 { echo "$as_me:$LINENO: result: yes" >&5
9510 echo "${ECHO_T}yes" >&6; }
9511 else
9512 { echo "$as_me:$LINENO: result: no" >&5
9513 echo "${ECHO_T}no" >&6; }
9514 fi
9515 ;;
9516 *)
9517 { echo "$as_me:$LINENO: result: no" >&5
9518 echo "${ECHO_T}no" >&6; }
9519 ;;
9520 esac
9521 fi
9522
9523 if test "x$enable_dlopen" != xyes; then
9524 enable_dlopen=unknown
9525 enable_dlopen_self=unknown
9526 enable_dlopen_self_static=unknown
9527 else
9528 lt_cv_dlopen=no
9529 lt_cv_dlopen_libs=
9530
9531 case $host_os in
9532 beos*)
9533 lt_cv_dlopen="load_add_on"
9534 lt_cv_dlopen_libs=
9535 lt_cv_dlopen_self=yes
9536 ;;
9537
9538 mingw* | pw32*)
9539 lt_cv_dlopen="LoadLibrary"
9540 lt_cv_dlopen_libs=
9541 ;;
9542
9543 cygwin*)
9544 lt_cv_dlopen="dlopen"
9545 lt_cv_dlopen_libs=
9546 ;;
9547
9548 darwin*)
9549 # if libdl is installed we need to link against it
9550 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9551 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555 ac_check_lib_save_LIBS=$LIBS
9556 LIBS="-ldl $LIBS"
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563
9564 /* Override any GCC internal prototype to avoid an error.
9565 Use char because int might match the return type of a GCC
9566 builtin and then its argument prototype would still apply. */
9567 #ifdef __cplusplus
9568 extern "C"
9569 #endif
9570 char dlopen ();
9571 int
9572 main ()
9573 {
9574 return dlopen ();
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9581 case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594 { (case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_try") 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try='test -s conftest$ac_exeext'
9604 { (case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_try") 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9613 ac_cv_lib_dl_dlopen=yes
9614 else
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 ac_cv_lib_dl_dlopen=no
9619 fi
9620
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9624 fi
9625 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9627 if test $ac_cv_lib_dl_dlopen = yes; then
9628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9629 else
9630
9631 lt_cv_dlopen="dyld"
9632 lt_cv_dlopen_libs=
9633 lt_cv_dlopen_self=yes
9634
9635 fi
9636
9637 ;;
9638
9639 *)
9640 { echo "$as_me:$LINENO: checking for shl_load" >&5
9641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9642 if test "${ac_cv_func_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653 #define shl_load innocuous_shl_load
9654
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char shl_load (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9659
9660 #ifdef __STDC__
9661 # include <limits.h>
9662 #else
9663 # include <assert.h>
9664 #endif
9665
9666 #undef shl_load
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char shl_load ();
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined __stub_shl_load || defined __stub___shl_load
9679 choke me
9680 #endif
9681
9682 int
9683 main ()
9684 {
9685 return shl_load ();
9686 ;
9687 return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9692 case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9705 { (case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_try") 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_try") 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_func_shl_load=yes
9725 else
9726 echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9728
9729 ac_cv_func_shl_load=no
9730 fi
9731
9732 rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9734 fi
9735 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9736 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9737 if test $ac_cv_func_shl_load = yes; then
9738 lt_cv_dlopen="shl_load"
9739 else
9740 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9741 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9742 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 ac_check_lib_save_LIBS=$LIBS
9746 LIBS="-ldld $LIBS"
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char shl_load ();
9761 int
9762 main ()
9763 {
9764 return shl_load ();
9765 ;
9766 return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9771 case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_lib_dld_shl_load=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808 ac_cv_lib_dld_shl_load=no
9809 fi
9810
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9814 fi
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9817 if test $ac_cv_lib_dld_shl_load = yes; then
9818 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9819 else
9820 { echo "$as_me:$LINENO: checking for dlopen" >&5
9821 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9822 if test "${ac_cv_func_dlopen+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833 #define dlopen innocuous_dlopen
9834
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char dlopen (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9839
9840 #ifdef __STDC__
9841 # include <limits.h>
9842 #else
9843 # include <assert.h>
9844 #endif
9845
9846 #undef dlopen
9847
9848 /* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 char dlopen ();
9855 /* The GNU C library defines this for functions which it implements
9856 to always fail with ENOSYS. Some functions are actually named
9857 something starting with __ and the normal name is an alias. */
9858 #if defined __stub_dlopen || defined __stub___dlopen
9859 choke me
9860 #endif
9861
9862 int
9863 main ()
9864 {
9865 return dlopen ();
9866 ;
9867 return 0;
9868 }
9869 _ACEOF
9870 rm -f conftest.$ac_objext conftest$ac_exeext
9871 if { (ac_try="$ac_link"
9872 case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_link") 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9885 { (case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_try") 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; } &&
9894 { ac_try='test -s conftest$ac_exeext'
9895 { (case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_try") 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_cv_func_dlopen=yes
9905 else
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 ac_cv_func_dlopen=no
9910 fi
9911
9912 rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9914 fi
9915 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9916 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9917 if test $ac_cv_func_dlopen = yes; then
9918 lt_cv_dlopen="dlopen"
9919 else
9920 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9921 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9922 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-ldl $LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h. */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char dlopen ();
9941 int
9942 main ()
9943 {
9944 return dlopen ();
9945 ;
9946 return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9951 case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_lib_dl_dlopen=yes
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_cv_lib_dl_dlopen=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9997 if test $ac_cv_lib_dl_dlopen = yes; then
9998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9999 else
10000 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10001 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10002 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 ac_check_lib_save_LIBS=$LIBS
10006 LIBS="-lsvld $LIBS"
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 char dlopen ();
10021 int
10022 main ()
10023 {
10024 return dlopen ();
10025 ;
10026 return 0;
10027 }
10028 _ACEOF
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_try") 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_lib_svld_dlopen=yes
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ac_cv_lib_svld_dlopen=no
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10074 fi
10075 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10076 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10077 if test $ac_cv_lib_svld_dlopen = yes; then
10078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10079 else
10080 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10081 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10082 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085 ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-ldld $LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093
10094 /* Override any GCC internal prototype to avoid an error.
10095 Use char because int might match the return type of a GCC
10096 builtin and then its argument prototype would still apply. */
10097 #ifdef __cplusplus
10098 extern "C"
10099 #endif
10100 char dld_link ();
10101 int
10102 main ()
10103 {
10104 return dld_link ();
10105 ;
10106 return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_link") 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest$ac_exeext'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_cv_lib_dld_dld_link=yes
10144 else
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148 ac_cv_lib_dld_dld_link=no
10149 fi
10150
10151 rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10153 LIBS=$ac_check_lib_save_LIBS
10154 fi
10155 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10156 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10157 if test $ac_cv_lib_dld_dld_link = yes; then
10158 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10159 fi
10160
10161
10162 fi
10163
10164
10165 fi
10166
10167
10168 fi
10169
10170
10171 fi
10172
10173
10174 fi
10175
10176 ;;
10177 esac
10178
10179 if test "x$lt_cv_dlopen" != xno; then
10180 enable_dlopen=yes
10181 else
10182 enable_dlopen=no
10183 fi
10184
10185 case $lt_cv_dlopen in
10186 dlopen)
10187 save_CPPFLAGS="$CPPFLAGS"
10188 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10189
10190 save_LDFLAGS="$LDFLAGS"
10191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10192
10193 save_LIBS="$LIBS"
10194 LIBS="$lt_cv_dlopen_libs $LIBS"
10195
10196 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10197 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10198 if test "${lt_cv_dlopen_self+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201 if test "$cross_compiling" = yes; then :
10202 lt_cv_dlopen_self=cross
10203 else
10204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10205 lt_status=$lt_dlunknown
10206 cat > conftest.$ac_ext <<EOF
10207 #line 10207 "configure"
10208 #include "confdefs.h"
10209
10210 #if HAVE_DLFCN_H
10211 #include <dlfcn.h>
10212 #endif
10213
10214 #include <stdio.h>
10215
10216 #ifdef RTLD_GLOBAL
10217 # define LT_DLGLOBAL RTLD_GLOBAL
10218 #else
10219 # ifdef DL_GLOBAL
10220 # define LT_DLGLOBAL DL_GLOBAL
10221 # else
10222 # define LT_DLGLOBAL 0
10223 # endif
10224 #endif
10225
10226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10227 find out it does not work in some platform. */
10228 #ifndef LT_DLLAZY_OR_NOW
10229 # ifdef RTLD_LAZY
10230 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10231 # else
10232 # ifdef DL_LAZY
10233 # define LT_DLLAZY_OR_NOW DL_LAZY
10234 # else
10235 # ifdef RTLD_NOW
10236 # define LT_DLLAZY_OR_NOW RTLD_NOW
10237 # else
10238 # ifdef DL_NOW
10239 # define LT_DLLAZY_OR_NOW DL_NOW
10240 # else
10241 # define LT_DLLAZY_OR_NOW 0
10242 # endif
10243 # endif
10244 # endif
10245 # endif
10246 #endif
10247
10248 #ifdef __cplusplus
10249 extern "C" void exit (int);
10250 #endif
10251
10252 void fnord() { int i=42;}
10253 int main ()
10254 {
10255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10256 int status = $lt_dlunknown;
10257
10258 if (self)
10259 {
10260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10262 /* dlclose (self); */
10263 }
10264 else
10265 puts (dlerror ());
10266
10267 exit (status);
10268 }
10269 EOF
10270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10271 (eval $ac_link) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10275 (./conftest; exit; ) >&5 2>/dev/null
10276 lt_status=$?
10277 case x$lt_status in
10278 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10279 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10280 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10281 esac
10282 else :
10283 # compilation failed
10284 lt_cv_dlopen_self=no
10285 fi
10286 fi
10287 rm -fr conftest*
10288
10289
10290 fi
10291 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10292 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10293
10294 if test "x$lt_cv_dlopen_self" = xyes; then
10295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10296 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10297 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10298 if test "${lt_cv_dlopen_self_static+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 if test "$cross_compiling" = yes; then :
10302 lt_cv_dlopen_self_static=cross
10303 else
10304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10305 lt_status=$lt_dlunknown
10306 cat > conftest.$ac_ext <<EOF
10307 #line 10307 "configure"
10308 #include "confdefs.h"
10309
10310 #if HAVE_DLFCN_H
10311 #include <dlfcn.h>
10312 #endif
10313
10314 #include <stdio.h>
10315
10316 #ifdef RTLD_GLOBAL
10317 # define LT_DLGLOBAL RTLD_GLOBAL
10318 #else
10319 # ifdef DL_GLOBAL
10320 # define LT_DLGLOBAL DL_GLOBAL
10321 # else
10322 # define LT_DLGLOBAL 0
10323 # endif
10324 #endif
10325
10326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10327 find out it does not work in some platform. */
10328 #ifndef LT_DLLAZY_OR_NOW
10329 # ifdef RTLD_LAZY
10330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10331 # else
10332 # ifdef DL_LAZY
10333 # define LT_DLLAZY_OR_NOW DL_LAZY
10334 # else
10335 # ifdef RTLD_NOW
10336 # define LT_DLLAZY_OR_NOW RTLD_NOW
10337 # else
10338 # ifdef DL_NOW
10339 # define LT_DLLAZY_OR_NOW DL_NOW
10340 # else
10341 # define LT_DLLAZY_OR_NOW 0
10342 # endif
10343 # endif
10344 # endif
10345 # endif
10346 #endif
10347
10348 #ifdef __cplusplus
10349 extern "C" void exit (int);
10350 #endif
10351
10352 void fnord() { int i=42;}
10353 int main ()
10354 {
10355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10356 int status = $lt_dlunknown;
10357
10358 if (self)
10359 {
10360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10362 /* dlclose (self); */
10363 }
10364 else
10365 puts (dlerror ());
10366
10367 exit (status);
10368 }
10369 EOF
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10375 (./conftest; exit; ) >&5 2>/dev/null
10376 lt_status=$?
10377 case x$lt_status in
10378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10380 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10381 esac
10382 else :
10383 # compilation failed
10384 lt_cv_dlopen_self_static=no
10385 fi
10386 fi
10387 rm -fr conftest*
10388
10389
10390 fi
10391 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10392 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10393 fi
10394
10395 CPPFLAGS="$save_CPPFLAGS"
10396 LDFLAGS="$save_LDFLAGS"
10397 LIBS="$save_LIBS"
10398 ;;
10399 esac
10400
10401 case $lt_cv_dlopen_self in
10402 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10403 *) enable_dlopen_self=unknown ;;
10404 esac
10405
10406 case $lt_cv_dlopen_self_static in
10407 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10408 *) enable_dlopen_self_static=unknown ;;
10409 esac
10410 fi
10411
10412
10413 # Report which library types will actually be built
10414 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10416 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10417 echo "${ECHO_T}$can_build_shared" >&6; }
10418
10419 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10421 test "$can_build_shared" = "no" && enable_shared=no
10422
10423 # On AIX, shared libraries and static libraries use the same namespace, and
10424 # are all built from PIC.
10425 case $host_os in
10426 aix3*)
10427 test "$enable_shared" = yes && enable_static=no
10428 if test -n "$RANLIB"; then
10429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10430 postinstall_cmds='$RANLIB $lib'
10431 fi
10432 ;;
10433
10434 aix4* | aix5*)
10435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10436 test "$enable_shared" = yes && enable_static=no
10437 fi
10438 ;;
10439 esac
10440 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10441 echo "${ECHO_T}$enable_shared" >&6; }
10442
10443 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10445 # Make sure either enable_shared or enable_static is yes.
10446 test "$enable_shared" = yes || enable_static=yes
10447 { echo "$as_me:$LINENO: result: $enable_static" >&5
10448 echo "${ECHO_T}$enable_static" >&6; }
10449
10450 # The else clause should only fire when bootstrapping the
10451 # libtool distribution, otherwise you forgot to ship ltmain.sh
10452 # with your package, and you will get complaints that there are
10453 # no rules to generate ltmain.sh.
10454 if test -f "$ltmain"; then
10455 # See if we are running on zsh, and set the options which allow our commands through
10456 # without removal of \ escapes.
10457 if test -n "${ZSH_VERSION+set}" ; then
10458 setopt NO_GLOB_SUBST
10459 fi
10460 # Now quote all the things that may contain metacharacters while being
10461 # careful not to overquote the AC_SUBSTed values. We take copies of the
10462 # variables and quote the copies for generation of the libtool script.
10463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10464 SED SHELL STRIP \
10465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10467 deplibs_check_method reload_flag reload_cmds need_locks \
10468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10469 lt_cv_sys_global_symbol_to_c_name_address \
10470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10471 old_postinstall_cmds old_postuninstall_cmds \
10472 compiler \
10473 CC \
10474 LD \
10475 lt_prog_compiler_wl \
10476 lt_prog_compiler_pic \
10477 lt_prog_compiler_static \
10478 lt_prog_compiler_no_builtin_flag \
10479 export_dynamic_flag_spec \
10480 thread_safe_flag_spec \
10481 whole_archive_flag_spec \
10482 enable_shared_with_static_runtimes \
10483 old_archive_cmds \
10484 old_archive_from_new_cmds \
10485 predep_objects \
10486 postdep_objects \
10487 predeps \
10488 postdeps \
10489 compiler_lib_search_path \
10490 archive_cmds \
10491 archive_expsym_cmds \
10492 postinstall_cmds \
10493 postuninstall_cmds \
10494 old_archive_from_expsyms_cmds \
10495 allow_undefined_flag \
10496 no_undefined_flag \
10497 export_symbols_cmds \
10498 hardcode_libdir_flag_spec \
10499 hardcode_libdir_flag_spec_ld \
10500 hardcode_libdir_separator \
10501 hardcode_automatic \
10502 module_cmds \
10503 module_expsym_cmds \
10504 lt_cv_prog_compiler_c_o \
10505 exclude_expsyms \
10506 include_expsyms; do
10507
10508 case $var in
10509 old_archive_cmds | \
10510 old_archive_from_new_cmds | \
10511 archive_cmds | \
10512 archive_expsym_cmds | \
10513 module_cmds | \
10514 module_expsym_cmds | \
10515 old_archive_from_expsyms_cmds | \
10516 export_symbols_cmds | \
10517 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10518 postinstall_cmds | postuninstall_cmds | \
10519 old_postinstall_cmds | old_postuninstall_cmds | \
10520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10521 # Double-quote double-evaled strings.
10522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10523 ;;
10524 *)
10525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10526 ;;
10527 esac
10528 done
10529
10530 case $lt_echo in
10531 *'\$0 --fallback-echo"')
10532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10533 ;;
10534 esac
10535
10536 cfgfile="${ofile}T"
10537 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10538 $rm -f "$cfgfile"
10539 { echo "$as_me:$LINENO: creating $ofile" >&5
10540 echo "$as_me: creating $ofile" >&6;}
10541
10542 cat <<__EOF__ >> "$cfgfile"
10543 #! $SHELL
10544
10545 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10546 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10547 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10548 #
10549 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10550 # Free Software Foundation, Inc.
10551 #
10552 # This file is part of GNU Libtool:
10553 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10554 #
10555 # This program is free software; you can redistribute it and/or modify
10556 # it under the terms of the GNU General Public License as published by
10557 # the Free Software Foundation; either version 2 of the License, or
10558 # (at your option) any later version.
10559 #
10560 # This program is distributed in the hope that it will be useful, but
10561 # WITHOUT ANY WARRANTY; without even the implied warranty of
10562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10563 # General Public License for more details.
10564 #
10565 # You should have received a copy of the GNU General Public License
10566 # along with this program; if not, write to the Free Software
10567 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10568 #
10569 # As a special exception to the GNU General Public License, if you
10570 # distribute this file as part of a program that contains a
10571 # configuration script generated by Autoconf, you may include it under
10572 # the same distribution terms that you use for the rest of that program.
10573
10574 # A sed program that does not truncate output.
10575 SED=$lt_SED
10576
10577 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10578 Xsed="$SED -e 1s/^X//"
10579
10580 # The HP-UX ksh and POSIX shell print the target directory to stdout
10581 # if CDPATH is set.
10582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10583
10584 # The names of the tagged configurations supported by this script.
10585 available_tags=
10586
10587 # ### BEGIN LIBTOOL CONFIG
10588
10589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10590
10591 # Shell to use when invoking shell scripts.
10592 SHELL=$lt_SHELL
10593
10594 # Whether or not to build shared libraries.
10595 build_libtool_libs=$enable_shared
10596
10597 # Whether or not to build static libraries.
10598 build_old_libs=$enable_static
10599
10600 # Whether or not to add -lc for building shared libraries.
10601 build_libtool_need_lc=$archive_cmds_need_lc
10602
10603 # Whether or not to disallow shared libs when runtime libs are static
10604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10605
10606 # Whether or not to optimize for fast installation.
10607 fast_install=$enable_fast_install
10608
10609 # The host system.
10610 host_alias=$host_alias
10611 host=$host
10612 host_os=$host_os
10613
10614 # The build system.
10615 build_alias=$build_alias
10616 build=$build
10617 build_os=$build_os
10618
10619 # An echo program that does not interpret backslashes.
10620 echo=$lt_echo
10621
10622 # The archiver.
10623 AR=$lt_AR
10624 AR_FLAGS=$lt_AR_FLAGS
10625
10626 # A C compiler.
10627 LTCC=$lt_LTCC
10628
10629 # LTCC compiler flags.
10630 LTCFLAGS=$lt_LTCFLAGS
10631
10632 # A language-specific compiler.
10633 CC=$lt_compiler
10634
10635 # Is the compiler the GNU C compiler?
10636 with_gcc=$GCC
10637
10638 # An ERE matcher.
10639 EGREP=$lt_EGREP
10640
10641 # The linker used to build libraries.
10642 LD=$lt_LD
10643
10644 # Whether we need hard or soft links.
10645 LN_S=$lt_LN_S
10646
10647 # A BSD-compatible nm program.
10648 NM=$lt_NM
10649
10650 # A symbol stripping program
10651 STRIP=$lt_STRIP
10652
10653 # Used to examine libraries when file_magic_cmd begins "file"
10654 MAGIC_CMD=$MAGIC_CMD
10655
10656 # Used on cygwin: DLL creation program.
10657 DLLTOOL="$DLLTOOL"
10658
10659 # Used on cygwin: object dumper.
10660 OBJDUMP="$OBJDUMP"
10661
10662 # Used on cygwin: assembler.
10663 AS="$AS"
10664
10665 # The name of the directory that contains temporary libtool files.
10666 objdir=$objdir
10667
10668 # How to create reloadable object files.
10669 reload_flag=$lt_reload_flag
10670 reload_cmds=$lt_reload_cmds
10671
10672 # How to pass a linker flag through the compiler.
10673 wl=$lt_lt_prog_compiler_wl
10674
10675 # Object file suffix (normally "o").
10676 objext="$ac_objext"
10677
10678 # Old archive suffix (normally "a").
10679 libext="$libext"
10680
10681 # Shared library suffix (normally ".so").
10682 shrext_cmds='$shrext_cmds'
10683
10684 # Executable file suffix (normally "").
10685 exeext="$exeext"
10686
10687 # Additional compiler flags for building library objects.
10688 pic_flag=$lt_lt_prog_compiler_pic
10689 pic_mode=$pic_mode
10690
10691 # What is the maximum length of a command?
10692 max_cmd_len=$lt_cv_sys_max_cmd_len
10693
10694 # Does compiler simultaneously support -c and -o options?
10695 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10696
10697 # Must we lock files when doing compilation?
10698 need_locks=$lt_need_locks
10699
10700 # Do we need the lib prefix for modules?
10701 need_lib_prefix=$need_lib_prefix
10702
10703 # Do we need a version for libraries?
10704 need_version=$need_version
10705
10706 # Whether dlopen is supported.
10707 dlopen_support=$enable_dlopen
10708
10709 # Whether dlopen of programs is supported.
10710 dlopen_self=$enable_dlopen_self
10711
10712 # Whether dlopen of statically linked programs is supported.
10713 dlopen_self_static=$enable_dlopen_self_static
10714
10715 # Compiler flag to prevent dynamic linking.
10716 link_static_flag=$lt_lt_prog_compiler_static
10717
10718 # Compiler flag to turn off builtin functions.
10719 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10720
10721 # Compiler flag to allow reflexive dlopens.
10722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10723
10724 # Compiler flag to generate shared objects directly from archives.
10725 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10726
10727 # Compiler flag to generate thread-safe objects.
10728 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10729
10730 # Library versioning type.
10731 version_type=$version_type
10732
10733 # Format of library name prefix.
10734 libname_spec=$lt_libname_spec
10735
10736 # List of archive names. First name is the real one, the rest are links.
10737 # The last name is the one that the linker finds with -lNAME.
10738 library_names_spec=$lt_library_names_spec
10739
10740 # The coded name of the library, if different from the real name.
10741 soname_spec=$lt_soname_spec
10742
10743 # Commands used to build and install an old-style archive.
10744 RANLIB=$lt_RANLIB
10745 old_archive_cmds=$lt_old_archive_cmds
10746 old_postinstall_cmds=$lt_old_postinstall_cmds
10747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10748
10749 # Create an old-style archive from a shared archive.
10750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10751
10752 # Create a temporary old-style archive to link instead of a shared archive.
10753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10754
10755 # Commands used to build and install a shared archive.
10756 archive_cmds=$lt_archive_cmds
10757 archive_expsym_cmds=$lt_archive_expsym_cmds
10758 postinstall_cmds=$lt_postinstall_cmds
10759 postuninstall_cmds=$lt_postuninstall_cmds
10760
10761 # Commands used to build a loadable module (assumed same as above if empty)
10762 module_cmds=$lt_module_cmds
10763 module_expsym_cmds=$lt_module_expsym_cmds
10764
10765 # Commands to strip libraries.
10766 old_striplib=$lt_old_striplib
10767 striplib=$lt_striplib
10768
10769 # Dependencies to place before the objects being linked to create a
10770 # shared library.
10771 predep_objects=$lt_predep_objects
10772
10773 # Dependencies to place after the objects being linked to create a
10774 # shared library.
10775 postdep_objects=$lt_postdep_objects
10776
10777 # Dependencies to place before the objects being linked to create a
10778 # shared library.
10779 predeps=$lt_predeps
10780
10781 # Dependencies to place after the objects being linked to create a
10782 # shared library.
10783 postdeps=$lt_postdeps
10784
10785 # The library search path used internally by the compiler when linking
10786 # a shared library.
10787 compiler_lib_search_path=$lt_compiler_lib_search_path
10788
10789 # Method to check whether dependent libraries are shared objects.
10790 deplibs_check_method=$lt_deplibs_check_method
10791
10792 # Command to use when deplibs_check_method == file_magic.
10793 file_magic_cmd=$lt_file_magic_cmd
10794
10795 # Flag that allows shared libraries with undefined symbols to be built.
10796 allow_undefined_flag=$lt_allow_undefined_flag
10797
10798 # Flag that forces no undefined symbols.
10799 no_undefined_flag=$lt_no_undefined_flag
10800
10801 # Commands used to finish a libtool library installation in a directory.
10802 finish_cmds=$lt_finish_cmds
10803
10804 # Same as above, but a single script fragment to be evaled but not shown.
10805 finish_eval=$lt_finish_eval
10806
10807 # Take the output of nm and produce a listing of raw symbols and C names.
10808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10809
10810 # Transform the output of nm in a proper C declaration
10811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10812
10813 # Transform the output of nm in a C name address pair
10814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10815
10816 # This is the shared library runtime path variable.
10817 runpath_var=$runpath_var
10818
10819 # This is the shared library path variable.
10820 shlibpath_var=$shlibpath_var
10821
10822 # Is shlibpath searched before the hard-coded library search path?
10823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10824
10825 # How to hardcode a shared library path into an executable.
10826 hardcode_action=$hardcode_action
10827
10828 # Whether we should hardcode library paths into libraries.
10829 hardcode_into_libs=$hardcode_into_libs
10830
10831 # Flag to hardcode \$libdir into a binary during linking.
10832 # This must work even if \$libdir does not exist.
10833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10834
10835 # If ld is used when linking, flag to hardcode \$libdir into
10836 # a binary during linking. This must work even if \$libdir does
10837 # not exist.
10838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10839
10840 # Whether we need a single -rpath flag with a separated argument.
10841 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10842
10843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10844 # resulting binary.
10845 hardcode_direct=$hardcode_direct
10846
10847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10848 # resulting binary.
10849 hardcode_minus_L=$hardcode_minus_L
10850
10851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10852 # the resulting binary.
10853 hardcode_shlibpath_var=$hardcode_shlibpath_var
10854
10855 # Set to yes if building a shared library automatically hardcodes DIR into the library
10856 # and all subsequent libraries and executables linked against it.
10857 hardcode_automatic=$hardcode_automatic
10858
10859 # Variables whose values should be saved in libtool wrapper scripts and
10860 # restored at relink time.
10861 variables_saved_for_relink="$variables_saved_for_relink"
10862
10863 # Whether libtool must link a program against all its dependency libraries.
10864 link_all_deplibs=$link_all_deplibs
10865
10866 # Compile-time system search path for libraries
10867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10868
10869 # Run-time system search path for libraries
10870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10871
10872 # Fix the shell variable \$srcfile for the compiler.
10873 fix_srcfile_path="$fix_srcfile_path"
10874
10875 # Set to yes if exported symbols are required.
10876 always_export_symbols=$always_export_symbols
10877
10878 # The commands to list exported symbols.
10879 export_symbols_cmds=$lt_export_symbols_cmds
10880
10881 # The commands to extract the exported symbol list from a shared archive.
10882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10883
10884 # Symbols that should not be listed in the preloaded symbols.
10885 exclude_expsyms=$lt_exclude_expsyms
10886
10887 # Symbols that must always be exported.
10888 include_expsyms=$lt_include_expsyms
10889
10890 # ### END LIBTOOL CONFIG
10891
10892 __EOF__
10893
10894
10895 case $host_os in
10896 aix3*)
10897 cat <<\EOF >> "$cfgfile"
10898
10899 # AIX sometimes has problems with the GCC collect2 program. For some
10900 # reason, if we set the COLLECT_NAMES environment variable, the problems
10901 # vanish in a puff of smoke.
10902 if test "X${COLLECT_NAMES+set}" != Xset; then
10903 COLLECT_NAMES=
10904 export COLLECT_NAMES
10905 fi
10906 EOF
10907 ;;
10908 esac
10909
10910 # We use sed instead of cat because bash on DJGPP gets confused if
10911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10912 # text mode, it properly converts lines to CR/LF. This bash problem
10913 # is reportedly fixed, but why not run on old versions too?
10914 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10915
10916 mv -f "$cfgfile" "$ofile" || \
10917 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10918 chmod +x "$ofile"
10919
10920 else
10921 # If there is no Makefile yet, we rely on a make rule to execute
10922 # `config.status --recheck' to rerun these tests and create the
10923 # libtool script then.
10924 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10925 if test -f "$ltmain_in"; then
10926 test -f Makefile && make "$ltmain"
10927 fi
10928 fi
10929
10930
10931 ac_ext=c
10932 ac_cpp='$CPP $CPPFLAGS'
10933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10936
10937 CC="$lt_save_CC"
10938
10939
10940 # Check whether --with-tags was given.
10941 if test "${with_tags+set}" = set; then
10942 withval=$with_tags; tagnames="$withval"
10943 fi
10944
10945
10946 if test -f "$ltmain" && test -n "$tagnames"; then
10947 if test ! -f "${ofile}"; then
10948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10949 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10950 fi
10951
10952 if test -z "$LTCC"; then
10953 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10954 if test -z "$LTCC"; then
10955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10956 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10957 else
10958 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10959 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10960 fi
10961 fi
10962 if test -z "$LTCFLAGS"; then
10963 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10964 fi
10965
10966 # Extract list of available tagged configurations in $ofile.
10967 # Note that this assumes the entire list is on one line.
10968 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10969
10970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10971 for tagname in $tagnames; do
10972 IFS="$lt_save_ifs"
10973 # Check whether tagname contains only valid characters
10974 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10975 "") ;;
10976 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10977 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10978 { (exit 1); exit 1; }; }
10979 ;;
10980 esac
10981
10982 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10983 then
10984 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10985 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10986 { (exit 1); exit 1; }; }
10987 fi
10988
10989 # Update the list of available tags.
10990 if test -n "$tagname"; then
10991 echo appending configuration tag \"$tagname\" to $ofile
10992
10993 case $tagname in
10994 CXX)
10995 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10996 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10997 (test "X$CXX" != "Xg++"))) ; then
10998 ac_ext=cpp
10999 ac_cpp='$CXXCPP $CPPFLAGS'
11000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11003
11004
11005
11006
11007 archive_cmds_need_lc_CXX=no
11008 allow_undefined_flag_CXX=
11009 always_export_symbols_CXX=no
11010 archive_expsym_cmds_CXX=
11011 export_dynamic_flag_spec_CXX=
11012 hardcode_direct_CXX=no
11013 hardcode_libdir_flag_spec_CXX=
11014 hardcode_libdir_flag_spec_ld_CXX=
11015 hardcode_libdir_separator_CXX=
11016 hardcode_minus_L_CXX=no
11017 hardcode_shlibpath_var_CXX=unsupported
11018 hardcode_automatic_CXX=no
11019 module_cmds_CXX=
11020 module_expsym_cmds_CXX=
11021 link_all_deplibs_CXX=unknown
11022 old_archive_cmds_CXX=$old_archive_cmds
11023 no_undefined_flag_CXX=
11024 whole_archive_flag_spec_CXX=
11025 enable_shared_with_static_runtimes_CXX=no
11026
11027 # Dependencies to place before and after the object being linked:
11028 predep_objects_CXX=
11029 postdep_objects_CXX=
11030 predeps_CXX=
11031 postdeps_CXX=
11032 compiler_lib_search_path_CXX=
11033
11034 # Source file extension for C++ test sources.
11035 ac_ext=cpp
11036
11037 # Object file extension for compiled C++ test sources.
11038 objext=o
11039 objext_CXX=$objext
11040
11041 # Code to be used in simple compile tests
11042 lt_simple_compile_test_code="int some_variable = 0;\n"
11043
11044 # Code to be used in simple link tests
11045 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11046
11047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11048
11049 # If no C compiler was specified, use CC.
11050 LTCC=${LTCC-"$CC"}
11051
11052 # If no C compiler flags were specified, use CFLAGS.
11053 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11054
11055 # Allow CC to be a program name with arguments.
11056 compiler=$CC
11057
11058
11059 # save warnings/boilerplate of simple test code
11060 ac_outfile=conftest.$ac_objext
11061 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11063 _lt_compiler_boilerplate=`cat conftest.err`
11064 $rm conftest*
11065
11066 ac_outfile=conftest.$ac_objext
11067 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11069 _lt_linker_boilerplate=`cat conftest.err`
11070 $rm conftest*
11071
11072
11073 # Allow CC to be a program name with arguments.
11074 lt_save_CC=$CC
11075 lt_save_LD=$LD
11076 lt_save_GCC=$GCC
11077 GCC=$GXX
11078 lt_save_with_gnu_ld=$with_gnu_ld
11079 lt_save_path_LD=$lt_cv_path_LD
11080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11081 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11082 else
11083 $as_unset lt_cv_prog_gnu_ld
11084 fi
11085 if test -n "${lt_cv_path_LDCXX+set}"; then
11086 lt_cv_path_LD=$lt_cv_path_LDCXX
11087 else
11088 $as_unset lt_cv_path_LD
11089 fi
11090 test -z "${LDCXX+set}" || LD=$LDCXX
11091 CC=${CXX-"c++"}
11092 compiler=$CC
11093 compiler_CXX=$CC
11094 for cc_temp in $compiler""; do
11095 case $cc_temp in
11096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11098 \-*) ;;
11099 *) break;;
11100 esac
11101 done
11102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11103
11104
11105 # We don't want -fno-exception wen compiling C++ code, so set the
11106 # no_builtin_flag separately
11107 if test "$GXX" = yes; then
11108 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11109 else
11110 lt_prog_compiler_no_builtin_flag_CXX=
11111 fi
11112
11113 if test "$GXX" = yes; then
11114 # Set up default GNU C++ configuration
11115
11116
11117 # Check whether --with-gnu-ld was given.
11118 if test "${with_gnu_ld+set}" = set; then
11119 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11120 else
11121 with_gnu_ld=no
11122 fi
11123
11124 ac_prog=ld
11125 if test "$GCC" = yes; then
11126 # Check if gcc -print-prog-name=ld gives a path.
11127 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11128 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11129 case $host in
11130 *-*-mingw*)
11131 # gcc leaves a trailing carriage return which upsets mingw
11132 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11133 *)
11134 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11135 esac
11136 case $ac_prog in
11137 # Accept absolute paths.
11138 [\\/]* | ?:[\\/]*)
11139 re_direlt='/[^/][^/]*/\.\./'
11140 # Canonicalize the pathname of ld
11141 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11142 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11143 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11144 done
11145 test -z "$LD" && LD="$ac_prog"
11146 ;;
11147 "")
11148 # If it fails, then pretend we aren't using GCC.
11149 ac_prog=ld
11150 ;;
11151 *)
11152 # If it is relative, then search for the first ld in PATH.
11153 with_gnu_ld=unknown
11154 ;;
11155 esac
11156 elif test "$with_gnu_ld" = yes; then
11157 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11158 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11159 else
11160 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11161 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11162 fi
11163 if test "${lt_cv_path_LD+set}" = set; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 else
11166 if test -z "$LD"; then
11167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11168 for ac_dir in $PATH; do
11169 IFS="$lt_save_ifs"
11170 test -z "$ac_dir" && ac_dir=.
11171 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11172 lt_cv_path_LD="$ac_dir/$ac_prog"
11173 # Check to see if the program is GNU ld. I'd rather use --version,
11174 # but apparently some variants of GNU ld only accept -v.
11175 # Break only if it was the GNU/non-GNU ld that we prefer.
11176 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11177 *GNU* | *'with BFD'*)
11178 test "$with_gnu_ld" != no && break
11179 ;;
11180 *)
11181 test "$with_gnu_ld" != yes && break
11182 ;;
11183 esac
11184 fi
11185 done
11186 IFS="$lt_save_ifs"
11187 else
11188 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11189 fi
11190 fi
11191
11192 LD="$lt_cv_path_LD"
11193 if test -n "$LD"; then
11194 { echo "$as_me:$LINENO: result: $LD" >&5
11195 echo "${ECHO_T}$LD" >&6; }
11196 else
11197 { echo "$as_me:$LINENO: result: no" >&5
11198 echo "${ECHO_T}no" >&6; }
11199 fi
11200 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11201 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11202 { (exit 1); exit 1; }; }
11203 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11204 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11205 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11209 case `$LD -v 2>&1 </dev/null` in
11210 *GNU* | *'with BFD'*)
11211 lt_cv_prog_gnu_ld=yes
11212 ;;
11213 *)
11214 lt_cv_prog_gnu_ld=no
11215 ;;
11216 esac
11217 fi
11218 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11220 with_gnu_ld=$lt_cv_prog_gnu_ld
11221
11222
11223
11224 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11225 # archiving commands below assume that GNU ld is being used.
11226 if test "$with_gnu_ld" = yes; then
11227 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11228 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'
11229
11230 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11232
11233 # If archive_cmds runs LD, not CC, wlarc should be empty
11234 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11235 # investigate it a little bit more. (MM)
11236 wlarc='${wl}'
11237
11238 # ancient GNU ld didn't support --whole-archive et. al.
11239 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11240 grep 'no-whole-archive' > /dev/null; then
11241 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11242 else
11243 whole_archive_flag_spec_CXX=
11244 fi
11245 else
11246 with_gnu_ld=no
11247 wlarc=
11248
11249 # A generic and very simple default shared library creation
11250 # command for GNU C++ for the case where it uses the native
11251 # linker, instead of GNU ld. If possible, this setting should
11252 # overridden to take advantage of the native linker features on
11253 # the platform it is being used on.
11254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11255 fi
11256
11257 # Commands to make compiler produce verbose output that lists
11258 # what "hidden" libraries, object files and flags are used when
11259 # linking a shared library.
11260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11261
11262 else
11263 GXX=no
11264 with_gnu_ld=no
11265 wlarc=
11266 fi
11267
11268 # PORTME: fill in a description of your system's C++ link characteristics
11269 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11270 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11271 ld_shlibs_CXX=yes
11272 case $host_os in
11273 aix3*)
11274 # FIXME: insert proper C++ library support
11275 ld_shlibs_CXX=no
11276 ;;
11277 aix4* | aix5*)
11278 if test "$host_cpu" = ia64; then
11279 # On IA64, the linker does run time linking by default, so we don't
11280 # have to do anything special.
11281 aix_use_runtimelinking=no
11282 exp_sym_flag='-Bexport'
11283 no_entry_flag=""
11284 else
11285 aix_use_runtimelinking=no
11286
11287 # Test if we are trying to use run time linking or normal
11288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11289 # need to do runtime linking.
11290 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11291 for ld_flag in $LDFLAGS; do
11292 case $ld_flag in
11293 *-brtl*)
11294 aix_use_runtimelinking=yes
11295 break
11296 ;;
11297 esac
11298 done
11299 ;;
11300 esac
11301
11302 exp_sym_flag='-bexport'
11303 no_entry_flag='-bnoentry'
11304 fi
11305
11306 # When large executables or shared objects are built, AIX ld can
11307 # have problems creating the table of contents. If linking a library
11308 # or program results in "error TOC overflow" add -mminimal-toc to
11309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11311
11312 archive_cmds_CXX=''
11313 hardcode_direct_CXX=yes
11314 hardcode_libdir_separator_CXX=':'
11315 link_all_deplibs_CXX=yes
11316
11317 if test "$GXX" = yes; then
11318 case $host_os in aix4.[012]|aix4.[012].*)
11319 # We only want to do this on AIX 4.2 and lower, the check
11320 # below for broken collect2 doesn't work under 4.3+
11321 collect2name=`${CC} -print-prog-name=collect2`
11322 if test -f "$collect2name" && \
11323 strings "$collect2name" | grep resolve_lib_name >/dev/null
11324 then
11325 # We have reworked collect2
11326 hardcode_direct_CXX=yes
11327 else
11328 # We have old collect2
11329 hardcode_direct_CXX=unsupported
11330 # It fails to find uninstalled libraries when the uninstalled
11331 # path is not listed in the libpath. Setting hardcode_minus_L
11332 # to unsupported forces relinking
11333 hardcode_minus_L_CXX=yes
11334 hardcode_libdir_flag_spec_CXX='-L$libdir'
11335 hardcode_libdir_separator_CXX=
11336 fi
11337 ;;
11338 esac
11339 shared_flag='-shared'
11340 if test "$aix_use_runtimelinking" = yes; then
11341 shared_flag="$shared_flag "'${wl}-G'
11342 fi
11343 else
11344 # not using gcc
11345 if test "$host_cpu" = ia64; then
11346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11347 # chokes on -Wl,-G. The following line is correct:
11348 shared_flag='-G'
11349 else
11350 if test "$aix_use_runtimelinking" = yes; then
11351 shared_flag='${wl}-G'
11352 else
11353 shared_flag='${wl}-bM:SRE'
11354 fi
11355 fi
11356 fi
11357
11358 # It seems that -bexpall does not export symbols beginning with
11359 # underscore (_), so it is better to generate a list of symbols to export.
11360 always_export_symbols_CXX=yes
11361 if test "$aix_use_runtimelinking" = yes; then
11362 # Warning - without using the other runtime loading flags (-brtl),
11363 # -berok will link without error, but may produce a broken library.
11364 allow_undefined_flag_CXX='-berok'
11365 # Determine the default libpath from the value encoded in an empty executable.
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372
11373 int
11374 main ()
11375 {
11376
11377 ;
11378 return 0;
11379 }
11380 _ACEOF
11381 rm -f conftest.$ac_objext conftest$ac_exeext
11382 if { (ac_try="$ac_link"
11383 case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_link") 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
11395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest$ac_exeext'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415
11416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11417 }'`
11418 # Check for a 64-bit object if we didn't find anything.
11419 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11420 }'`; fi
11421 else
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11424
11425
11426 fi
11427
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11431
11432 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11433
11434 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"
11435 else
11436 if test "$host_cpu" = ia64; then
11437 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11438 allow_undefined_flag_CXX="-z nodefs"
11439 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"
11440 else
11441 # Determine the default libpath from the value encoded in an empty executable.
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448
11449 int
11450 main ()
11451 {
11452
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (ac_try="$ac_link"
11459 case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_link") 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11472 { (case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_try") 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485 esac
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_try") 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491
11492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11493 }'`
11494 # Check for a 64-bit object if we didn't find anything.
11495 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11496 }'`; fi
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501
11502 fi
11503
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11507
11508 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11509 # Warning - without using the other run time loading flags,
11510 # -berok will link without error, but may produce a broken library.
11511 no_undefined_flag_CXX=' ${wl}-bernotok'
11512 allow_undefined_flag_CXX=' ${wl}-berok'
11513 # Exported symbols can be pulled into shared objects from archives
11514 whole_archive_flag_spec_CXX='$convenience'
11515 archive_cmds_need_lc_CXX=yes
11516 # This is similar to how AIX traditionally builds its shared libraries.
11517 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'
11518 fi
11519 fi
11520 ;;
11521
11522 beos*)
11523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11524 allow_undefined_flag_CXX=unsupported
11525 # Joseph Beckenbach <[email protected]> says some releases of gcc
11526 # support --undefined. This deserves some investigation. FIXME
11527 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11528 else
11529 ld_shlibs_CXX=no
11530 fi
11531 ;;
11532
11533 chorus*)
11534 case $cc_basename in
11535 *)
11536 # FIXME: insert proper C++ library support
11537 ld_shlibs_CXX=no
11538 ;;
11539 esac
11540 ;;
11541
11542 cygwin* | mingw* | pw32*)
11543 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11544 # as there is no search path for DLLs.
11545 hardcode_libdir_flag_spec_CXX='-L$libdir'
11546 allow_undefined_flag_CXX=unsupported
11547 always_export_symbols_CXX=no
11548 enable_shared_with_static_runtimes_CXX=yes
11549
11550 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11551 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'
11552 # If the export-symbols file already is a .def file (1st line
11553 # is EXPORTS), use it as is; otherwise, prepend...
11554 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11555 cp $export_symbols $output_objdir/$soname.def;
11556 else
11557 echo EXPORTS > $output_objdir/$soname.def;
11558 cat $export_symbols >> $output_objdir/$soname.def;
11559 fi~
11560 $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'
11561 else
11562 ld_shlibs_CXX=no
11563 fi
11564 ;;
11565 darwin* | rhapsody*)
11566 case $host_os in
11567 rhapsody* | darwin1.[012])
11568 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11569 ;;
11570 *) # Darwin 1.3 on
11571 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11572 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11573 else
11574 case ${MACOSX_DEPLOYMENT_TARGET} in
11575 10.[012])
11576 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11577 ;;
11578 10.*)
11579 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11580 ;;
11581 esac
11582 fi
11583 ;;
11584 esac
11585 archive_cmds_need_lc_CXX=no
11586 hardcode_direct_CXX=no
11587 hardcode_automatic_CXX=yes
11588 hardcode_shlibpath_var_CXX=unsupported
11589 whole_archive_flag_spec_CXX=''
11590 link_all_deplibs_CXX=yes
11591
11592 if test "$GXX" = yes ; then
11593 lt_int_apple_cc_single_mod=no
11594 output_verbose_link_cmd='echo'
11595 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11596 lt_int_apple_cc_single_mod=yes
11597 fi
11598 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11599 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11600 else
11601 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'
11602 fi
11603 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11605 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11606 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}'
11607 else
11608 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}'
11609 fi
11610 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}'
11611 else
11612 case $cc_basename in
11613 xlc*)
11614 output_verbose_link_cmd='echo'
11615 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11616 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11618 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11619 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}'
11620 ;;
11621 *)
11622 ld_shlibs_CXX=no
11623 ;;
11624 esac
11625 fi
11626 ;;
11627
11628 dgux*)
11629 case $cc_basename in
11630 ec++*)
11631 # FIXME: insert proper C++ library support
11632 ld_shlibs_CXX=no
11633 ;;
11634 ghcx*)
11635 # Green Hills C++ Compiler
11636 # FIXME: insert proper C++ library support
11637 ld_shlibs_CXX=no
11638 ;;
11639 *)
11640 # FIXME: insert proper C++ library support
11641 ld_shlibs_CXX=no
11642 ;;
11643 esac
11644 ;;
11645 freebsd[12]*)
11646 # C++ shared libraries reported to be fairly broken before switch to ELF
11647 ld_shlibs_CXX=no
11648 ;;
11649 freebsd-elf*)
11650 archive_cmds_need_lc_CXX=no
11651 ;;
11652 freebsd* | dragonfly*)
11653 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11654 # conventions
11655 ld_shlibs_CXX=yes
11656 ;;
11657 gnu*)
11658 ;;
11659 hpux9*)
11660 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11661 hardcode_libdir_separator_CXX=:
11662 export_dynamic_flag_spec_CXX='${wl}-E'
11663 hardcode_direct_CXX=yes
11664 hardcode_minus_L_CXX=yes # Not in the search PATH,
11665 # but as the default
11666 # location of the library.
11667
11668 case $cc_basename in
11669 CC*)
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11672 ;;
11673 aCC*)
11674 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'
11675 # Commands to make compiler produce verbose output that lists
11676 # what "hidden" libraries, object files and flags are used when
11677 # linking a shared library.
11678 #
11679 # There doesn't appear to be a way to prevent this compiler from
11680 # explicitly linking system object files so we need to strip them
11681 # from the output so that they don't get included in the library
11682 # dependencies.
11683 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'
11684 ;;
11685 *)
11686 if test "$GXX" = yes; then
11687 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'
11688 else
11689 # FIXME: insert proper C++ library support
11690 ld_shlibs_CXX=no
11691 fi
11692 ;;
11693 esac
11694 ;;
11695 hpux10*|hpux11*)
11696 if test $with_gnu_ld = no; then
11697 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11698 hardcode_libdir_separator_CXX=:
11699
11700 case $host_cpu in
11701 hppa*64*|ia64*)
11702 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11703 ;;
11704 *)
11705 export_dynamic_flag_spec_CXX='${wl}-E'
11706 ;;
11707 esac
11708 fi
11709 case $host_cpu in
11710 hppa*64*|ia64*)
11711 hardcode_direct_CXX=no
11712 hardcode_shlibpath_var_CXX=no
11713 ;;
11714 *)
11715 hardcode_direct_CXX=yes
11716 hardcode_minus_L_CXX=yes # Not in the search PATH,
11717 # but as the default
11718 # location of the library.
11719 ;;
11720 esac
11721
11722 case $cc_basename in
11723 CC*)
11724 # FIXME: insert proper C++ library support
11725 ld_shlibs_CXX=no
11726 ;;
11727 aCC*)
11728 case $host_cpu in
11729 hppa*64*)
11730 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11731 ;;
11732 ia64*)
11733 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11734 ;;
11735 *)
11736 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11737 ;;
11738 esac
11739 # Commands to make compiler produce verbose output that lists
11740 # what "hidden" libraries, object files and flags are used when
11741 # linking a shared library.
11742 #
11743 # There doesn't appear to be a way to prevent this compiler from
11744 # explicitly linking system object files so we need to strip them
11745 # from the output so that they don't get included in the library
11746 # dependencies.
11747 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'
11748 ;;
11749 *)
11750 if test "$GXX" = yes; then
11751 if test $with_gnu_ld = no; then
11752 case $host_cpu in
11753 hppa*64*)
11754 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11755 ;;
11756 ia64*)
11757 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11758 ;;
11759 *)
11760 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'
11761 ;;
11762 esac
11763 fi
11764 else
11765 # FIXME: insert proper C++ library support
11766 ld_shlibs_CXX=no
11767 fi
11768 ;;
11769 esac
11770 ;;
11771 interix3*)
11772 hardcode_direct_CXX=no
11773 hardcode_shlibpath_var_CXX=no
11774 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11775 export_dynamic_flag_spec_CXX='${wl}-E'
11776 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11777 # Instead, shared libraries are loaded at an image base (0x10000000 by
11778 # default) and relocated if they conflict, which is a slow very memory
11779 # consuming and fragmenting process. To avoid this, we pick a random,
11780 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11781 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11782 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'
11783 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'
11784 ;;
11785 irix5* | irix6*)
11786 case $cc_basename in
11787 CC*)
11788 # SGI C++
11789 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'
11790
11791 # Archives containing C++ object files must be created using
11792 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11793 # necessary to make sure instantiated templates are included
11794 # in the archive.
11795 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11796 ;;
11797 *)
11798 if test "$GXX" = yes; then
11799 if test "$with_gnu_ld" = no; then
11800 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'
11801 else
11802 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'
11803 fi
11804 fi
11805 link_all_deplibs_CXX=yes
11806 ;;
11807 esac
11808 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11809 hardcode_libdir_separator_CXX=:
11810 ;;
11811 linux* | k*bsd*-gnu)
11812 case $cc_basename in
11813 KCC*)
11814 # Kuck and Associates, Inc. (KAI) C++ Compiler
11815
11816 # KCC will only create a shared library if the output file
11817 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11818 # to its proper name (with version) after linking.
11819 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'
11820 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'
11821 # Commands to make compiler produce verbose output that lists
11822 # what "hidden" libraries, object files and flags are used when
11823 # linking a shared library.
11824 #
11825 # There doesn't appear to be a way to prevent this compiler from
11826 # explicitly linking system object files so we need to strip them
11827 # from the output so that they don't get included in the library
11828 # dependencies.
11829 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'
11830
11831 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11833
11834 # Archives containing C++ object files must be created using
11835 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11836 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11837 ;;
11838 icpc*)
11839 # Intel C++
11840 with_gnu_ld=yes
11841 # version 8.0 and above of icpc choke on multiply defined symbols
11842 # if we add $predep_objects and $postdep_objects, however 7.1 and
11843 # earlier do not add the objects themselves.
11844 case `$CC -V 2>&1` in
11845 *"Version 7."*)
11846 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11847 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'
11848 ;;
11849 *) # Version 8.0 or newer
11850 tmp_idyn=
11851 case $host_cpu in
11852 ia64*) tmp_idyn=' -i_dynamic';;
11853 esac
11854 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11855 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'
11856 ;;
11857 esac
11858 archive_cmds_need_lc_CXX=no
11859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11860 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11861 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11862 ;;
11863 pgCC*)
11864 # Portland Group C++ compiler
11865 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11866 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'
11867
11868 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11869 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11870 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'
11871 ;;
11872 cxx*)
11873 # Compaq C++
11874 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11875 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'
11876
11877 runpath_var=LD_RUN_PATH
11878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11879 hardcode_libdir_separator_CXX=:
11880
11881 # Commands to make compiler produce verbose output that lists
11882 # what "hidden" libraries, object files and flags are used when
11883 # linking a shared library.
11884 #
11885 # There doesn't appear to be a way to prevent this compiler from
11886 # explicitly linking system object files so we need to strip them
11887 # from the output so that they don't get included in the library
11888 # dependencies.
11889 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'
11890 ;;
11891 esac
11892 ;;
11893 lynxos*)
11894 # FIXME: insert proper C++ library support
11895 ld_shlibs_CXX=no
11896 ;;
11897 m88k*)
11898 # FIXME: insert proper C++ library support
11899 ld_shlibs_CXX=no
11900 ;;
11901 mvs*)
11902 case $cc_basename in
11903 cxx*)
11904 # FIXME: insert proper C++ library support
11905 ld_shlibs_CXX=no
11906 ;;
11907 *)
11908 # FIXME: insert proper C++ library support
11909 ld_shlibs_CXX=no
11910 ;;
11911 esac
11912 ;;
11913 netbsd* | netbsdelf*-gnu)
11914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11915 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11916 wlarc=
11917 hardcode_libdir_flag_spec_CXX='-R$libdir'
11918 hardcode_direct_CXX=yes
11919 hardcode_shlibpath_var_CXX=no
11920 fi
11921 # Workaround some broken pre-1.5 toolchains
11922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11923 ;;
11924 openbsd2*)
11925 # C++ shared libraries are fairly broken
11926 ld_shlibs_CXX=no
11927 ;;
11928 openbsd*)
11929 hardcode_direct_CXX=yes
11930 hardcode_shlibpath_var_CXX=no
11931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11934 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11935 export_dynamic_flag_spec_CXX='${wl}-E'
11936 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11937 fi
11938 output_verbose_link_cmd='echo'
11939 ;;
11940 osf3*)
11941 case $cc_basename in
11942 KCC*)
11943 # Kuck and Associates, Inc. (KAI) C++ Compiler
11944
11945 # KCC will only create a shared library if the output file
11946 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11947 # to its proper name (with version) after linking.
11948 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'
11949
11950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11951 hardcode_libdir_separator_CXX=:
11952
11953 # Archives containing C++ object files must be created using
11954 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11955 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11956
11957 ;;
11958 RCC*)
11959 # Rational C++ 2.4.1
11960 # FIXME: insert proper C++ library support
11961 ld_shlibs_CXX=no
11962 ;;
11963 cxx*)
11964 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11965 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'
11966
11967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11968 hardcode_libdir_separator_CXX=:
11969
11970 # Commands to make compiler produce verbose output that lists
11971 # what "hidden" libraries, object files and flags are used when
11972 # linking a shared library.
11973 #
11974 # There doesn't appear to be a way to prevent this compiler from
11975 # explicitly linking system object files so we need to strip them
11976 # from the output so that they don't get included in the library
11977 # dependencies.
11978 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'
11979 ;;
11980 *)
11981 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11982 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11983 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'
11984
11985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11986 hardcode_libdir_separator_CXX=:
11987
11988 # Commands to make compiler produce verbose output that lists
11989 # what "hidden" libraries, object files and flags are used when
11990 # linking a shared library.
11991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11992
11993 else
11994 # FIXME: insert proper C++ library support
11995 ld_shlibs_CXX=no
11996 fi
11997 ;;
11998 esac
11999 ;;
12000 osf4* | osf5*)
12001 case $cc_basename in
12002 KCC*)
12003 # Kuck and Associates, Inc. (KAI) C++ Compiler
12004
12005 # KCC will only create a shared library if the output file
12006 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12007 # to its proper name (with version) after linking.
12008 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'
12009
12010 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12011 hardcode_libdir_separator_CXX=:
12012
12013 # Archives containing C++ object files must be created using
12014 # the KAI C++ compiler.
12015 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12016 ;;
12017 RCC*)
12018 # Rational C++ 2.4.1
12019 # FIXME: insert proper C++ library support
12020 ld_shlibs_CXX=no
12021 ;;
12022 cxx*)
12023 allow_undefined_flag_CXX=' -expect_unresolved \*'
12024 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'
12025 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12026 echo "-hidden">> $lib.exp~
12027 $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~
12028 $rm $lib.exp'
12029
12030 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12031 hardcode_libdir_separator_CXX=:
12032
12033 # Commands to make compiler produce verbose output that lists
12034 # what "hidden" libraries, object files and flags are used when
12035 # linking a shared library.
12036 #
12037 # There doesn't appear to be a way to prevent this compiler from
12038 # explicitly linking system object files so we need to strip them
12039 # from the output so that they don't get included in the library
12040 # dependencies.
12041 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'
12042 ;;
12043 *)
12044 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12045 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12046 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'
12047
12048 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12049 hardcode_libdir_separator_CXX=:
12050
12051 # Commands to make compiler produce verbose output that lists
12052 # what "hidden" libraries, object files and flags are used when
12053 # linking a shared library.
12054 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12055
12056 else
12057 # FIXME: insert proper C++ library support
12058 ld_shlibs_CXX=no
12059 fi
12060 ;;
12061 esac
12062 ;;
12063 psos*)
12064 # FIXME: insert proper C++ library support
12065 ld_shlibs_CXX=no
12066 ;;
12067 sunos4*)
12068 case $cc_basename in
12069 CC*)
12070 # Sun C++ 4.x
12071 # FIXME: insert proper C++ library support
12072 ld_shlibs_CXX=no
12073 ;;
12074 lcc*)
12075 # Lucid
12076 # FIXME: insert proper C++ library support
12077 ld_shlibs_CXX=no
12078 ;;
12079 *)
12080 # FIXME: insert proper C++ library support
12081 ld_shlibs_CXX=no
12082 ;;
12083 esac
12084 ;;
12085 solaris*)
12086 case $cc_basename in
12087 CC*)
12088 # Sun C++ 4.2, 5.x and Centerline C++
12089 archive_cmds_need_lc_CXX=yes
12090 no_undefined_flag_CXX=' -zdefs'
12091 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12092 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12093 $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'
12094
12095 hardcode_libdir_flag_spec_CXX='-R$libdir'
12096 hardcode_shlibpath_var_CXX=no
12097 case $host_os in
12098 solaris2.[0-5] | solaris2.[0-5].*) ;;
12099 *)
12100 # The C++ compiler is used as linker so we must use $wl
12101 # flag to pass the commands to the underlying system
12102 # linker. We must also pass each convience library through
12103 # to the system linker between allextract/defaultextract.
12104 # The C++ compiler will combine linker options so we
12105 # cannot just pass the convience library names through
12106 # without $wl.
12107 # Supported since Solaris 2.6 (maybe 2.5.1?)
12108 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12109 ;;
12110 esac
12111 link_all_deplibs_CXX=yes
12112
12113 output_verbose_link_cmd='echo'
12114
12115 # Archives containing C++ object files must be created using
12116 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12117 # necessary to make sure instantiated templates are included
12118 # in the archive.
12119 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12120 ;;
12121 gcx*)
12122 # Green Hills C++ Compiler
12123 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12124
12125 # The C++ compiler must be used to create the archive.
12126 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12127 ;;
12128 *)
12129 # GNU C++ compiler with Solaris linker
12130 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12131 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12132 if $CC --version | grep -v '^2\.7' > /dev/null; then
12133 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12134 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12135 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12136
12137 # Commands to make compiler produce verbose output that lists
12138 # what "hidden" libraries, object files and flags are used when
12139 # linking a shared library.
12140 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12141 else
12142 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12143 # platform.
12144 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12145 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12146 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12147
12148 # Commands to make compiler produce verbose output that lists
12149 # what "hidden" libraries, object files and flags are used when
12150 # linking a shared library.
12151 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12152 fi
12153
12154 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12155 fi
12156 ;;
12157 esac
12158 ;;
12159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12160 no_undefined_flag_CXX='${wl}-z,text'
12161 archive_cmds_need_lc_CXX=no
12162 hardcode_shlibpath_var_CXX=no
12163 runpath_var='LD_RUN_PATH'
12164
12165 case $cc_basename in
12166 CC*)
12167 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12169 ;;
12170 *)
12171 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12172 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12173 ;;
12174 esac
12175 ;;
12176 sysv5* | sco3.2v5* | sco5v6*)
12177 # Note: We can NOT use -z defs as we might desire, because we do not
12178 # link with -lc, and that would cause any symbols used from libc to
12179 # always be unresolved, which means just about no library would
12180 # ever link correctly. If we're not using GNU ld we use -z text
12181 # though, which does catch some bad symbols but isn't as heavy-handed
12182 # as -z defs.
12183 # For security reasons, it is highly recommended that you always
12184 # use absolute paths for naming shared libraries, and exclude the
12185 # DT_RUNPATH tag from executables and libraries. But doing so
12186 # requires that you compile everything twice, which is a pain.
12187 # So that behaviour is only enabled if SCOABSPATH is set to a
12188 # non-empty value in the environment. Most likely only useful for
12189 # creating official distributions of packages.
12190 # This is a hack until libtool officially supports absolute path
12191 # names for shared libraries.
12192 no_undefined_flag_CXX='${wl}-z,text'
12193 allow_undefined_flag_CXX='${wl}-z,nodefs'
12194 archive_cmds_need_lc_CXX=no
12195 hardcode_shlibpath_var_CXX=no
12196 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12197 hardcode_libdir_separator_CXX=':'
12198 link_all_deplibs_CXX=yes
12199 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12200 runpath_var='LD_RUN_PATH'
12201
12202 case $cc_basename in
12203 CC*)
12204 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12205 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12206 ;;
12207 *)
12208 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12209 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12210 ;;
12211 esac
12212 ;;
12213 tandem*)
12214 case $cc_basename in
12215 NCC*)
12216 # NonStop-UX NCC 3.20
12217 # FIXME: insert proper C++ library support
12218 ld_shlibs_CXX=no
12219 ;;
12220 *)
12221 # FIXME: insert proper C++ library support
12222 ld_shlibs_CXX=no
12223 ;;
12224 esac
12225 ;;
12226 vxworks*)
12227 # FIXME: insert proper C++ library support
12228 ld_shlibs_CXX=no
12229 ;;
12230 *)
12231 # FIXME: insert proper C++ library support
12232 ld_shlibs_CXX=no
12233 ;;
12234 esac
12235 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12236 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12237 test "$ld_shlibs_CXX" = no && can_build_shared=no
12238
12239 GCC_CXX="$GXX"
12240 LD_CXX="$LD"
12241
12242
12243 cat > conftest.$ac_ext <<EOF
12244 class Foo
12245 {
12246 public:
12247 Foo (void) { a = 0; }
12248 private:
12249 int a;
12250 };
12251 EOF
12252
12253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; then
12258 # Parse the compiler output and extract the necessary
12259 # objects, libraries and library flags.
12260
12261 # Sentinel used to keep track of whether or not we are before
12262 # the conftest object file.
12263 pre_test_object_deps_done=no
12264
12265 # The `*' in the case matches for architectures that use `case' in
12266 # $output_verbose_cmd can trigger glob expansion during the loop
12267 # eval without this substitution.
12268 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12269
12270 for p in `eval $output_verbose_link_cmd`; do
12271 case $p in
12272
12273 -L* | -R* | -l*)
12274 # Some compilers place space between "-{L,R}" and the path.
12275 # Remove the space.
12276 if test $p = "-L" \
12277 || test $p = "-R"; then
12278 prev=$p
12279 continue
12280 else
12281 prev=
12282 fi
12283
12284 if test "$pre_test_object_deps_done" = no; then
12285 case $p in
12286 -L* | -R*)
12287 # Internal compiler library paths should come after those
12288 # provided the user. The postdeps already come after the
12289 # user supplied libs so there is no need to process them.
12290 if test -z "$compiler_lib_search_path_CXX"; then
12291 compiler_lib_search_path_CXX="${prev}${p}"
12292 else
12293 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12294 fi
12295 ;;
12296 # The "-l" case would never come before the object being
12297 # linked, so don't bother handling this case.
12298 esac
12299 else
12300 if test -z "$postdeps_CXX"; then
12301 postdeps_CXX="${prev}${p}"
12302 else
12303 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12304 fi
12305 fi
12306 ;;
12307
12308 *.$objext)
12309 # This assumes that the test object file only shows up
12310 # once in the compiler output.
12311 if test "$p" = "conftest.$objext"; then
12312 pre_test_object_deps_done=yes
12313 continue
12314 fi
12315
12316 if test "$pre_test_object_deps_done" = no; then
12317 if test -z "$predep_objects_CXX"; then
12318 predep_objects_CXX="$p"
12319 else
12320 predep_objects_CXX="$predep_objects_CXX $p"
12321 fi
12322 else
12323 if test -z "$postdep_objects_CXX"; then
12324 postdep_objects_CXX="$p"
12325 else
12326 postdep_objects_CXX="$postdep_objects_CXX $p"
12327 fi
12328 fi
12329 ;;
12330
12331 *) ;; # Ignore the rest.
12332
12333 esac
12334 done
12335
12336 # Clean up.
12337 rm -f a.out a.exe
12338 else
12339 echo "libtool.m4: error: problem compiling CXX test program"
12340 fi
12341
12342 $rm -f confest.$objext
12343
12344 # PORTME: override above test on systems where it is broken
12345 case $host_os in
12346 interix3*)
12347 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12348 # hack all around it, let's just trust "g++" to DTRT.
12349 predep_objects_CXX=
12350 postdep_objects_CXX=
12351 postdeps_CXX=
12352 ;;
12353
12354 solaris*)
12355 case $cc_basename in
12356 CC*)
12357 # Adding this requires a known-good setup of shared libraries for
12358 # Sun compiler versions before 5.6, else PIC objects from an old
12359 # archive will be linked into the output, leading to subtle bugs.
12360 postdeps_CXX='-lCstd -lCrun'
12361 ;;
12362 esac
12363 ;;
12364 esac
12365
12366
12367 case " $postdeps_CXX " in
12368 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12369 esac
12370
12371 lt_prog_compiler_wl_CXX=
12372 lt_prog_compiler_pic_CXX=
12373 lt_prog_compiler_static_CXX=
12374
12375 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12377
12378 # C++ specific cases for pic, static, wl, etc.
12379 if test "$GXX" = yes; then
12380 lt_prog_compiler_wl_CXX='-Wl,'
12381 lt_prog_compiler_static_CXX='-static'
12382
12383 case $host_os in
12384 aix*)
12385 # All AIX code is PIC.
12386 if test "$host_cpu" = ia64; then
12387 # AIX 5 now supports IA64 processor
12388 lt_prog_compiler_static_CXX='-Bstatic'
12389 fi
12390 ;;
12391 amigaos*)
12392 # FIXME: we need at least 68020 code to build shared libraries, but
12393 # adding the `-m68020' flag to GCC prevents building anything better,
12394 # like `-m68040'.
12395 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12396 ;;
12397 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12398 # PIC is the default for these OSes.
12399 ;;
12400 mingw* | os2* | pw32*)
12401 # This hack is so that the source file can tell whether it is being
12402 # built for inclusion in a dll (and should export symbols for example).
12403 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12404 ;;
12405 darwin* | rhapsody*)
12406 # PIC is the default on this platform
12407 # Common symbols not allowed in MH_DYLIB files
12408 lt_prog_compiler_pic_CXX='-fno-common'
12409 ;;
12410 *djgpp*)
12411 # DJGPP does not support shared libraries at all
12412 lt_prog_compiler_pic_CXX=
12413 ;;
12414 interix3*)
12415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12416 # Instead, we relocate shared libraries at runtime.
12417 ;;
12418 sysv4*MP*)
12419 if test -d /usr/nec; then
12420 lt_prog_compiler_pic_CXX=-Kconform_pic
12421 fi
12422 ;;
12423 hpux*)
12424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12425 # not for PA HP-UX.
12426 case $host_cpu in
12427 hppa*64*|ia64*)
12428 ;;
12429 *)
12430 lt_prog_compiler_pic_CXX='-fPIC'
12431 ;;
12432 esac
12433 ;;
12434 *)
12435 lt_prog_compiler_pic_CXX='-fPIC'
12436 ;;
12437 esac
12438 else
12439 case $host_os in
12440 aix4* | aix5*)
12441 # All AIX code is PIC.
12442 if test "$host_cpu" = ia64; then
12443 # AIX 5 now supports IA64 processor
12444 lt_prog_compiler_static_CXX='-Bstatic'
12445 else
12446 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12447 fi
12448 ;;
12449 chorus*)
12450 case $cc_basename in
12451 cxch68*)
12452 # Green Hills C++ Compiler
12453 # _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"
12454 ;;
12455 esac
12456 ;;
12457 darwin*)
12458 # PIC is the default on this platform
12459 # Common symbols not allowed in MH_DYLIB files
12460 case $cc_basename in
12461 xlc*)
12462 lt_prog_compiler_pic_CXX='-qnocommon'
12463 lt_prog_compiler_wl_CXX='-Wl,'
12464 ;;
12465 esac
12466 ;;
12467 dgux*)
12468 case $cc_basename in
12469 ec++*)
12470 lt_prog_compiler_pic_CXX='-KPIC'
12471 ;;
12472 ghcx*)
12473 # Green Hills C++ Compiler
12474 lt_prog_compiler_pic_CXX='-pic'
12475 ;;
12476 *)
12477 ;;
12478 esac
12479 ;;
12480 freebsd* | dragonfly*)
12481 # FreeBSD uses GNU C++
12482 ;;
12483 hpux9* | hpux10* | hpux11*)
12484 case $cc_basename in
12485 CC*)
12486 lt_prog_compiler_wl_CXX='-Wl,'
12487 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12488 if test "$host_cpu" != ia64; then
12489 lt_prog_compiler_pic_CXX='+Z'
12490 fi
12491 ;;
12492 aCC*)
12493 lt_prog_compiler_wl_CXX='-Wl,'
12494 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12495 case $host_cpu in
12496 hppa*64*|ia64*)
12497 # +Z the default
12498 ;;
12499 *)
12500 lt_prog_compiler_pic_CXX='+Z'
12501 ;;
12502 esac
12503 ;;
12504 *)
12505 ;;
12506 esac
12507 ;;
12508 interix*)
12509 # This is c89, which is MS Visual C++ (no shared libs)
12510 # Anyone wants to do a port?
12511 ;;
12512 irix5* | irix6* | nonstopux*)
12513 case $cc_basename in
12514 CC*)
12515 lt_prog_compiler_wl_CXX='-Wl,'
12516 lt_prog_compiler_static_CXX='-non_shared'
12517 # CC pic flag -KPIC is the default.
12518 ;;
12519 *)
12520 ;;
12521 esac
12522 ;;
12523 linux* | k*bsd*-gnu)
12524 case $cc_basename in
12525 KCC*)
12526 # KAI C++ Compiler
12527 lt_prog_compiler_wl_CXX='--backend -Wl,'
12528 lt_prog_compiler_pic_CXX='-fPIC'
12529 ;;
12530 icpc* | ecpc*)
12531 # Intel C++
12532 lt_prog_compiler_wl_CXX='-Wl,'
12533 lt_prog_compiler_pic_CXX='-KPIC'
12534 lt_prog_compiler_static_CXX='-static'
12535 ;;
12536 pgCC*)
12537 # Portland Group C++ compiler.
12538 lt_prog_compiler_wl_CXX='-Wl,'
12539 lt_prog_compiler_pic_CXX='-fpic'
12540 lt_prog_compiler_static_CXX='-Bstatic'
12541 ;;
12542 cxx*)
12543 # Compaq C++
12544 # Make sure the PIC flag is empty. It appears that all Alpha
12545 # Linux and Compaq Tru64 Unix objects are PIC.
12546 lt_prog_compiler_pic_CXX=
12547 lt_prog_compiler_static_CXX='-non_shared'
12548 ;;
12549 *)
12550 ;;
12551 esac
12552 ;;
12553 lynxos*)
12554 ;;
12555 m88k*)
12556 ;;
12557 mvs*)
12558 case $cc_basename in
12559 cxx*)
12560 lt_prog_compiler_pic_CXX='-W c,exportall'
12561 ;;
12562 *)
12563 ;;
12564 esac
12565 ;;
12566 netbsd* | netbsdelf*-gnu)
12567 ;;
12568 osf3* | osf4* | osf5*)
12569 case $cc_basename in
12570 KCC*)
12571 lt_prog_compiler_wl_CXX='--backend -Wl,'
12572 ;;
12573 RCC*)
12574 # Rational C++ 2.4.1
12575 lt_prog_compiler_pic_CXX='-pic'
12576 ;;
12577 cxx*)
12578 # Digital/Compaq C++
12579 lt_prog_compiler_wl_CXX='-Wl,'
12580 # Make sure the PIC flag is empty. It appears that all Alpha
12581 # Linux and Compaq Tru64 Unix objects are PIC.
12582 lt_prog_compiler_pic_CXX=
12583 lt_prog_compiler_static_CXX='-non_shared'
12584 ;;
12585 *)
12586 ;;
12587 esac
12588 ;;
12589 psos*)
12590 ;;
12591 solaris*)
12592 case $cc_basename in
12593 CC*)
12594 # Sun C++ 4.2, 5.x and Centerline C++
12595 lt_prog_compiler_pic_CXX='-KPIC'
12596 lt_prog_compiler_static_CXX='-Bstatic'
12597 lt_prog_compiler_wl_CXX='-Qoption ld '
12598 ;;
12599 gcx*)
12600 # Green Hills C++ Compiler
12601 lt_prog_compiler_pic_CXX='-PIC'
12602 ;;
12603 *)
12604 ;;
12605 esac
12606 ;;
12607 sunos4*)
12608 case $cc_basename in
12609 CC*)
12610 # Sun C++ 4.x
12611 lt_prog_compiler_pic_CXX='-pic'
12612 lt_prog_compiler_static_CXX='-Bstatic'
12613 ;;
12614 lcc*)
12615 # Lucid
12616 lt_prog_compiler_pic_CXX='-pic'
12617 ;;
12618 *)
12619 ;;
12620 esac
12621 ;;
12622 tandem*)
12623 case $cc_basename in
12624 NCC*)
12625 # NonStop-UX NCC 3.20
12626 lt_prog_compiler_pic_CXX='-KPIC'
12627 ;;
12628 *)
12629 ;;
12630 esac
12631 ;;
12632 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12633 case $cc_basename in
12634 CC*)
12635 lt_prog_compiler_wl_CXX='-Wl,'
12636 lt_prog_compiler_pic_CXX='-KPIC'
12637 lt_prog_compiler_static_CXX='-Bstatic'
12638 ;;
12639 esac
12640 ;;
12641 vxworks*)
12642 ;;
12643 *)
12644 lt_prog_compiler_can_build_shared_CXX=no
12645 ;;
12646 esac
12647 fi
12648
12649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12650 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12651
12652 #
12653 # Check to make sure the PIC flag actually works.
12654 #
12655 if test -n "$lt_prog_compiler_pic_CXX"; then
12656
12657 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12658 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12659 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 lt_prog_compiler_pic_works_CXX=no
12663 ac_outfile=conftest.$ac_objext
12664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12665 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12666 # Insert the option either (1) after the last *FLAGS variable, or
12667 # (2) before a word containing "conftest.", or (3) at the end.
12668 # Note that $ac_compile itself does not contain backslashes and begins
12669 # with a dollar sign (not a hyphen), so the echo should work correctly.
12670 # The option is referenced via a variable to avoid confusing sed.
12671 lt_compile=`echo "$ac_compile" | $SED \
12672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12674 -e 's:$: $lt_compiler_flag:'`
12675 (eval echo "\"\$as_me:12675: $lt_compile\"" >&5)
12676 (eval "$lt_compile" 2>conftest.err)
12677 ac_status=$?
12678 cat conftest.err >&5
12679 echo "$as_me:12679: \$? = $ac_status" >&5
12680 if (exit $ac_status) && test -s "$ac_outfile"; then
12681 # The compiler can only warn and ignore the option if not recognized
12682 # So say no if there are warnings other than the usual output.
12683 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12685 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12686 lt_prog_compiler_pic_works_CXX=yes
12687 fi
12688 fi
12689 $rm conftest*
12690
12691 fi
12692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12693 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12694
12695 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12696 case $lt_prog_compiler_pic_CXX in
12697 "" | " "*) ;;
12698 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12699 esac
12700 else
12701 lt_prog_compiler_pic_CXX=
12702 lt_prog_compiler_can_build_shared_CXX=no
12703 fi
12704
12705 fi
12706 case $host_os in
12707 # For platforms which do not support PIC, -DPIC is meaningless:
12708 *djgpp*)
12709 lt_prog_compiler_pic_CXX=
12710 ;;
12711 *)
12712 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12713 ;;
12714 esac
12715
12716 #
12717 # Check to make sure the static flag actually works.
12718 #
12719 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12720 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12721 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12722 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725 lt_prog_compiler_static_works_CXX=no
12726 save_LDFLAGS="$LDFLAGS"
12727 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12728 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12730 # The linker can only warn and ignore the option if not recognized
12731 # So say no if there are warnings
12732 if test -s conftest.err; then
12733 # Append any errors to the config.log.
12734 cat conftest.err 1>&5
12735 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12737 if diff conftest.exp conftest.er2 >/dev/null; then
12738 lt_prog_compiler_static_works_CXX=yes
12739 fi
12740 else
12741 lt_prog_compiler_static_works_CXX=yes
12742 fi
12743 fi
12744 $rm conftest*
12745 LDFLAGS="$save_LDFLAGS"
12746
12747 fi
12748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12749 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12750
12751 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12752 :
12753 else
12754 lt_prog_compiler_static_CXX=
12755 fi
12756
12757
12758 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12760 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763 lt_cv_prog_compiler_c_o_CXX=no
12764 $rm -r conftest 2>/dev/null
12765 mkdir conftest
12766 cd conftest
12767 mkdir out
12768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12769
12770 lt_compiler_flag="-o out/conftest2.$ac_objext"
12771 # Insert the option either (1) after the last *FLAGS variable, or
12772 # (2) before a word containing "conftest.", or (3) at the end.
12773 # Note that $ac_compile itself does not contain backslashes and begins
12774 # with a dollar sign (not a hyphen), so the echo should work correctly.
12775 lt_compile=`echo "$ac_compile" | $SED \
12776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12778 -e 's:$: $lt_compiler_flag:'`
12779 (eval echo "\"\$as_me:12779: $lt_compile\"" >&5)
12780 (eval "$lt_compile" 2>out/conftest.err)
12781 ac_status=$?
12782 cat out/conftest.err >&5
12783 echo "$as_me:12783: \$? = $ac_status" >&5
12784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12785 then
12786 # The compiler can only warn and ignore the option if not recognized
12787 # So say no if there are warnings
12788 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12791 lt_cv_prog_compiler_c_o_CXX=yes
12792 fi
12793 fi
12794 chmod u+w . 2>&5
12795 $rm conftest*
12796 # SGI C++ compiler will create directory out/ii_files/ for
12797 # template instantiation
12798 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12799 $rm out/* && rmdir out
12800 cd ..
12801 rmdir conftest
12802 $rm conftest*
12803
12804 fi
12805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12806 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12807
12808
12809 hard_links="nottested"
12810 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12811 # do not overwrite the value of need_locks provided by the user
12812 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12813 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12814 hard_links=yes
12815 $rm conftest*
12816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12817 touch conftest.a
12818 ln conftest.a conftest.b 2>&5 || hard_links=no
12819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12820 { echo "$as_me:$LINENO: result: $hard_links" >&5
12821 echo "${ECHO_T}$hard_links" >&6; }
12822 if test "$hard_links" = no; then
12823 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12824 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12825 need_locks=warn
12826 fi
12827 else
12828 need_locks=no
12829 fi
12830
12831 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12832 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12833
12834 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12835 case $host_os in
12836 aix4* | aix5*)
12837 # If we're using GNU nm, then we don't want the "-C" option.
12838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12839 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12840 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'
12841 else
12842 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'
12843 fi
12844 ;;
12845 pw32*)
12846 export_symbols_cmds_CXX="$ltdll_cmds"
12847 ;;
12848 cygwin* | mingw*)
12849 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'
12850 ;;
12851 linux* | k*bsd*-gnu)
12852 link_all_deplibs_CXX=no
12853 ;;
12854 *)
12855 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12856 ;;
12857 esac
12858
12859 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12860 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12861 test "$ld_shlibs_CXX" = no && can_build_shared=no
12862
12863 #
12864 # Do we need to explicitly link libc?
12865 #
12866 case "x$archive_cmds_need_lc_CXX" in
12867 x|xyes)
12868 # Assume -lc should be added
12869 archive_cmds_need_lc_CXX=yes
12870
12871 if test "$enable_shared" = yes && test "$GCC" = yes; then
12872 case $archive_cmds_CXX in
12873 *'~'*)
12874 # FIXME: we may have to deal with multi-command sequences.
12875 ;;
12876 '$CC '*)
12877 # Test whether the compiler implicitly links with -lc since on some
12878 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12879 # to ld, don't add -lc before -lgcc.
12880 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12881 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12882 $rm conftest*
12883 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12884
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } 2>conftest.err; then
12890 soname=conftest
12891 lib=conftest
12892 libobjs=conftest.$ac_objext
12893 deplibs=
12894 wl=$lt_prog_compiler_wl_CXX
12895 pic_flag=$lt_prog_compiler_pic_CXX
12896 compiler_flags=-v
12897 linker_flags=-v
12898 verstring=
12899 output_objdir=.
12900 libname=conftest
12901 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12902 allow_undefined_flag_CXX=
12903 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12904 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }
12908 then
12909 archive_cmds_need_lc_CXX=no
12910 else
12911 archive_cmds_need_lc_CXX=yes
12912 fi
12913 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12914 else
12915 cat conftest.err 1>&5
12916 fi
12917 $rm conftest*
12918 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12919 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12920 ;;
12921 esac
12922 fi
12923 ;;
12924 esac
12925
12926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12928 library_names_spec=
12929 libname_spec='lib$name'
12930 soname_spec=
12931 shrext_cmds=".so"
12932 postinstall_cmds=
12933 postuninstall_cmds=
12934 finish_cmds=
12935 finish_eval=
12936 shlibpath_var=
12937 shlibpath_overrides_runpath=unknown
12938 version_type=none
12939 dynamic_linker="$host_os ld.so"
12940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12941 if test "$GCC" = yes; then
12942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12943 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12944 # if the path contains ";" then we assume it to be the separator
12945 # otherwise default to the standard path separator (i.e. ":") - it is
12946 # assumed that no part of a normal pathname contains ";" but that should
12947 # okay in the real world where ";" in dirpaths is itself problematic.
12948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12949 else
12950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12951 fi
12952 else
12953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12954 fi
12955 need_lib_prefix=unknown
12956 hardcode_into_libs=no
12957
12958 # when you set need_version to no, make sure it does not cause -set_version
12959 # flags to be left without arguments
12960 need_version=unknown
12961
12962 case $host_os in
12963 aix3*)
12964 version_type=linux
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12966 shlibpath_var=LIBPATH
12967
12968 # AIX 3 has no versioning support, so we append a major version to the name.
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 ;;
12971
12972 aix4* | aix5*)
12973 version_type=linux
12974 need_lib_prefix=no
12975 need_version=no
12976 hardcode_into_libs=yes
12977 if test "$host_cpu" = ia64; then
12978 # AIX 5 supports IA64
12979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12980 shlibpath_var=LD_LIBRARY_PATH
12981 else
12982 # With GCC up to 2.95.x, collect2 would create an import file
12983 # for dependence libraries. The import file would start with
12984 # the line `#! .'. This would cause the generated library to
12985 # depend on `.', always an invalid library. This was fixed in
12986 # development snapshots of GCC prior to 3.0.
12987 case $host_os in
12988 aix4 | aix4.[01] | aix4.[01].*)
12989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12990 echo ' yes '
12991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12992 :
12993 else
12994 can_build_shared=no
12995 fi
12996 ;;
12997 esac
12998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12999 # soname into executable. Probably we can add versioning support to
13000 # collect2, so additional links can be useful in future.
13001 if test "$aix_use_runtimelinking" = yes; then
13002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13003 # instead of lib<name>.a to let people know that these are not
13004 # typical AIX shared libraries.
13005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13006 else
13007 # We preserve .a as extension for shared libraries through AIX4.2
13008 # and later when we are not doing run time linking.
13009 library_names_spec='${libname}${release}.a $libname.a'
13010 soname_spec='${libname}${release}${shared_ext}$major'
13011 fi
13012 shlibpath_var=LIBPATH
13013 fi
13014 ;;
13015
13016 amigaos*)
13017 library_names_spec='$libname.ixlibrary $libname.a'
13018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13019 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'
13020 ;;
13021
13022 beos*)
13023 library_names_spec='${libname}${shared_ext}'
13024 dynamic_linker="$host_os ld.so"
13025 shlibpath_var=LIBRARY_PATH
13026 ;;
13027
13028 bsdi[45]*)
13029 version_type=linux
13030 need_version=no
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032 soname_spec='${libname}${release}${shared_ext}$major'
13033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13037 # the default ld.so.conf also contains /usr/contrib/lib and
13038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13039 # libtool to hard-code these into programs
13040 ;;
13041
13042 cygwin* | mingw* | pw32*)
13043 version_type=windows
13044 shrext_cmds=".dll"
13045 need_version=no
13046 need_lib_prefix=no
13047
13048 case $GCC,$host_os in
13049 yes,cygwin* | yes,mingw* | yes,pw32*)
13050 library_names_spec='$libname.dll.a'
13051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13052 postinstall_cmds='base_file=`basename \${file}`~
13053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13054 dldir=$destdir/`dirname \$dlpath`~
13055 test -d \$dldir || mkdir -p \$dldir~
13056 $install_prog $dir/$dlname \$dldir/$dlname~
13057 chmod a+x \$dldir/$dlname'
13058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13059 dlpath=$dir/\$dldll~
13060 $rm \$dlpath'
13061 shlibpath_overrides_runpath=yes
13062
13063 case $host_os in
13064 cygwin*)
13065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13066 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13067 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13068 ;;
13069 mingw*)
13070 # MinGW DLLs use traditional 'lib' prefix
13071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13073 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13074 # It is most probably a Windows format PATH printed by
13075 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13076 # path with ; separators, and with drive letters. We can handle the
13077 # drive letters (cygwin fileutils understands them), so leave them,
13078 # especially as we might pass files found there to a mingw objdump,
13079 # which wouldn't understand a cygwinified path. Ahh.
13080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13081 else
13082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13083 fi
13084 ;;
13085 pw32*)
13086 # pw32 DLLs use 'pw' prefix rather than 'lib'
13087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13088 ;;
13089 esac
13090 ;;
13091
13092 *)
13093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13094 ;;
13095 esac
13096 dynamic_linker='Win32 ld.exe'
13097 # FIXME: first we should search . and the directory the executable is in
13098 shlibpath_var=PATH
13099 ;;
13100
13101 darwin* | rhapsody*)
13102 dynamic_linker="$host_os dyld"
13103 version_type=darwin
13104 need_lib_prefix=no
13105 need_version=no
13106 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13107 soname_spec='${libname}${release}${major}$shared_ext'
13108 shlibpath_overrides_runpath=yes
13109 shlibpath_var=DYLD_LIBRARY_PATH
13110 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13111 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13112 if test "$GCC" = yes; then
13113 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13114 else
13115 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13116 fi
13117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13118 ;;
13119
13120 dgux*)
13121 version_type=linux
13122 need_lib_prefix=no
13123 need_version=no
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13125 soname_spec='${libname}${release}${shared_ext}$major'
13126 shlibpath_var=LD_LIBRARY_PATH
13127 ;;
13128
13129 freebsd1*)
13130 dynamic_linker=no
13131 ;;
13132
13133 freebsd* | dragonfly*)
13134 # DragonFly does not have aout. When/if they implement a new
13135 # versioning mechanism, adjust this.
13136 if test -x /usr/bin/objformat; then
13137 objformat=`/usr/bin/objformat`
13138 else
13139 case $host_os in
13140 freebsd[123]*) objformat=aout ;;
13141 *) objformat=elf ;;
13142 esac
13143 fi
13144 version_type=freebsd-$objformat
13145 case $version_type in
13146 freebsd-elf*)
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13148 need_version=no
13149 need_lib_prefix=no
13150 ;;
13151 freebsd-*)
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13153 need_version=yes
13154 ;;
13155 esac
13156 shlibpath_var=LD_LIBRARY_PATH
13157 case $host_os in
13158 freebsd2*)
13159 shlibpath_overrides_runpath=yes
13160 ;;
13161 freebsd3.[01]* | freebsdelf3.[01]*)
13162 shlibpath_overrides_runpath=yes
13163 hardcode_into_libs=yes
13164 ;;
13165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13167 shlibpath_overrides_runpath=no
13168 hardcode_into_libs=yes
13169 ;;
13170 freebsd*) # from 4.6 on
13171 shlibpath_overrides_runpath=yes
13172 hardcode_into_libs=yes
13173 ;;
13174 esac
13175 ;;
13176
13177 gnu*)
13178 version_type=linux
13179 need_lib_prefix=no
13180 need_version=no
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 shlibpath_var=LD_LIBRARY_PATH
13184 hardcode_into_libs=yes
13185 ;;
13186
13187 hpux9* | hpux10* | hpux11*)
13188 # Give a soname corresponding to the major version so that dld.sl refuses to
13189 # link against other versions.
13190 version_type=sunos
13191 need_lib_prefix=no
13192 need_version=no
13193 case $host_cpu in
13194 ia64*)
13195 shrext_cmds='.so'
13196 hardcode_into_libs=yes
13197 dynamic_linker="$host_os dld.so"
13198 shlibpath_var=LD_LIBRARY_PATH
13199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13201 soname_spec='${libname}${release}${shared_ext}$major'
13202 if test "X$HPUX_IA64_MODE" = X32; then
13203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13204 else
13205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13206 fi
13207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13208 ;;
13209 hppa*64*)
13210 shrext_cmds='.sl'
13211 hardcode_into_libs=yes
13212 dynamic_linker="$host_os dld.sl"
13213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13219 ;;
13220 *)
13221 shrext_cmds='.sl'
13222 dynamic_linker="$host_os dld.sl"
13223 shlibpath_var=SHLIB_PATH
13224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226 soname_spec='${libname}${release}${shared_ext}$major'
13227 ;;
13228 esac
13229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13230 postinstall_cmds='chmod 555 $lib'
13231 ;;
13232
13233 interix3*)
13234 version_type=linux
13235 need_lib_prefix=no
13236 need_version=no
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13240 shlibpath_var=LD_LIBRARY_PATH
13241 shlibpath_overrides_runpath=no
13242 hardcode_into_libs=yes
13243 ;;
13244
13245 irix5* | irix6* | nonstopux*)
13246 case $host_os in
13247 nonstopux*) version_type=nonstopux ;;
13248 *)
13249 if test "$lt_cv_prog_gnu_ld" = yes; then
13250 version_type=linux
13251 else
13252 version_type=irix
13253 fi ;;
13254 esac
13255 need_lib_prefix=no
13256 need_version=no
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13259 case $host_os in
13260 irix5* | nonstopux*)
13261 libsuff= shlibsuff=
13262 ;;
13263 *)
13264 case $LD in # libtool.m4 will add one of these switches to LD
13265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13266 libsuff= shlibsuff= libmagic=32-bit;;
13267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13268 libsuff=32 shlibsuff=N32 libmagic=N32;;
13269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13271 *) libsuff= shlibsuff= libmagic=never-match;;
13272 esac
13273 ;;
13274 esac
13275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13276 shlibpath_overrides_runpath=no
13277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13279 hardcode_into_libs=yes
13280 ;;
13281
13282 # No shared lib support for Linux oldld, aout, or coff.
13283 linux*oldld* | linux*aout* | linux*coff*)
13284 dynamic_linker=no
13285 ;;
13286
13287 # This must be Linux ELF.
13288 linux* | k*bsd*-gnu)
13289 version_type=linux
13290 need_lib_prefix=no
13291 need_version=no
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13295 shlibpath_var=LD_LIBRARY_PATH
13296 shlibpath_overrides_runpath=no
13297 # This implies no fast_install, which is unacceptable.
13298 # Some rework will be needed to allow for fast_install
13299 # before this can be enabled.
13300 hardcode_into_libs=yes
13301
13302 # Append ld.so.conf contents to the search path
13303 if test -f /etc/ld.so.conf; then
13304 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13306 fi
13307
13308 # We used to test for /lib/ld.so.1 and disable shared libraries on
13309 # powerpc, because MkLinux only supported shared libraries with the
13310 # GNU dynamic linker. Since this was broken with cross compilers,
13311 # most powerpc-linux boxes support dynamic linking these days and
13312 # people can always --disable-shared, the test was removed, and we
13313 # assume the GNU/Linux dynamic linker is in use.
13314 dynamic_linker='GNU/Linux ld.so'
13315 ;;
13316
13317 netbsdelf*-gnu)
13318 version_type=linux
13319 need_lib_prefix=no
13320 need_version=no
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13322 soname_spec='${libname}${release}${shared_ext}$major'
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=no
13325 hardcode_into_libs=yes
13326 dynamic_linker='NetBSD ld.elf_so'
13327 ;;
13328
13329 netbsd*)
13330 version_type=sunos
13331 need_lib_prefix=no
13332 need_version=no
13333 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13336 dynamic_linker='NetBSD (a.out) ld.so'
13337 else
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 dynamic_linker='NetBSD ld.elf_so'
13341 fi
13342 shlibpath_var=LD_LIBRARY_PATH
13343 shlibpath_overrides_runpath=yes
13344 hardcode_into_libs=yes
13345 ;;
13346
13347 newsos6)
13348 version_type=linux
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath=yes
13352 ;;
13353
13354 nto-qnx*)
13355 version_type=linux
13356 need_lib_prefix=no
13357 need_version=no
13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13359 soname_spec='${libname}${release}${shared_ext}$major'
13360 shlibpath_var=LD_LIBRARY_PATH
13361 shlibpath_overrides_runpath=yes
13362 ;;
13363
13364 openbsd*)
13365 version_type=sunos
13366 sys_lib_dlsearch_path_spec="/usr/lib"
13367 need_lib_prefix=no
13368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13369 case $host_os in
13370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13371 *) need_version=no ;;
13372 esac
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13377 case $host_os in
13378 openbsd2.[89] | openbsd2.[89].*)
13379 shlibpath_overrides_runpath=no
13380 ;;
13381 *)
13382 shlibpath_overrides_runpath=yes
13383 ;;
13384 esac
13385 else
13386 shlibpath_overrides_runpath=yes
13387 fi
13388 ;;
13389
13390 os2*)
13391 libname_spec='$name'
13392 shrext_cmds=".dll"
13393 need_lib_prefix=no
13394 library_names_spec='$libname${shared_ext} $libname.a'
13395 dynamic_linker='OS/2 ld.exe'
13396 shlibpath_var=LIBPATH
13397 ;;
13398
13399 osf3* | osf4* | osf5*)
13400 version_type=osf
13401 need_lib_prefix=no
13402 need_version=no
13403 soname_spec='${libname}${release}${shared_ext}$major'
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13408 ;;
13409
13410 solaris*)
13411 version_type=linux
13412 need_lib_prefix=no
13413 need_version=no
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13415 soname_spec='${libname}${release}${shared_ext}$major'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=yes
13418 hardcode_into_libs=yes
13419 # ldd complains unless libraries are executable
13420 postinstall_cmds='chmod +x $lib'
13421 ;;
13422
13423 sunos4*)
13424 version_type=sunos
13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13426 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 shlibpath_overrides_runpath=yes
13429 if test "$with_gnu_ld" = yes; then
13430 need_lib_prefix=no
13431 fi
13432 need_version=yes
13433 ;;
13434
13435 sysv4 | sysv4.3*)
13436 version_type=linux
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438 soname_spec='${libname}${release}${shared_ext}$major'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 case $host_vendor in
13441 sni)
13442 shlibpath_overrides_runpath=no
13443 need_lib_prefix=no
13444 export_dynamic_flag_spec='${wl}-Blargedynsym'
13445 runpath_var=LD_RUN_PATH
13446 ;;
13447 siemens)
13448 need_lib_prefix=no
13449 ;;
13450 motorola)
13451 need_lib_prefix=no
13452 need_version=no
13453 shlibpath_overrides_runpath=no
13454 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13455 ;;
13456 esac
13457 ;;
13458
13459 sysv4*MP*)
13460 if test -d /usr/nec ;then
13461 version_type=linux
13462 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13463 soname_spec='$libname${shared_ext}.$major'
13464 shlibpath_var=LD_LIBRARY_PATH
13465 fi
13466 ;;
13467
13468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13469 version_type=freebsd-elf
13470 need_lib_prefix=no
13471 need_version=no
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 hardcode_into_libs=yes
13476 if test "$with_gnu_ld" = yes; then
13477 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13478 shlibpath_overrides_runpath=no
13479 else
13480 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13481 shlibpath_overrides_runpath=yes
13482 case $host_os in
13483 sco3.2v5*)
13484 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13485 ;;
13486 esac
13487 fi
13488 sys_lib_dlsearch_path_spec='/usr/lib'
13489 ;;
13490
13491 uts4*)
13492 version_type=linux
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 shlibpath_var=LD_LIBRARY_PATH
13496 ;;
13497
13498 *)
13499 dynamic_linker=no
13500 ;;
13501 esac
13502 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13503 echo "${ECHO_T}$dynamic_linker" >&6; }
13504 test "$dynamic_linker" = no && can_build_shared=no
13505
13506 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13507 if test "$GCC" = yes; then
13508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13509 fi
13510
13511 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13512 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13513 hardcode_action_CXX=
13514 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13515 test -n "$runpath_var_CXX" || \
13516 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13517
13518 # We can hardcode non-existant directories.
13519 if test "$hardcode_direct_CXX" != no &&
13520 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13521 # have to relink, otherwise we might link with an installed library
13522 # when we should be linking with a yet-to-be-installed one
13523 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13524 test "$hardcode_minus_L_CXX" != no; then
13525 # Linking always hardcodes the temporary library directory.
13526 hardcode_action_CXX=relink
13527 else
13528 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13529 hardcode_action_CXX=immediate
13530 fi
13531 else
13532 # We cannot hardcode anything, or else we can only hardcode existing
13533 # directories.
13534 hardcode_action_CXX=unsupported
13535 fi
13536 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13537 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13538
13539 if test "$hardcode_action_CXX" = relink; then
13540 # Fast installation is not supported
13541 enable_fast_install=no
13542 elif test "$shlibpath_overrides_runpath" = yes ||
13543 test "$enable_shared" = no; then
13544 # Fast installation is not necessary
13545 enable_fast_install=needless
13546 fi
13547
13548
13549 # The else clause should only fire when bootstrapping the
13550 # libtool distribution, otherwise you forgot to ship ltmain.sh
13551 # with your package, and you will get complaints that there are
13552 # no rules to generate ltmain.sh.
13553 if test -f "$ltmain"; then
13554 # See if we are running on zsh, and set the options which allow our commands through
13555 # without removal of \ escapes.
13556 if test -n "${ZSH_VERSION+set}" ; then
13557 setopt NO_GLOB_SUBST
13558 fi
13559 # Now quote all the things that may contain metacharacters while being
13560 # careful not to overquote the AC_SUBSTed values. We take copies of the
13561 # variables and quote the copies for generation of the libtool script.
13562 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13563 SED SHELL STRIP \
13564 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13565 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13566 deplibs_check_method reload_flag reload_cmds need_locks \
13567 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13568 lt_cv_sys_global_symbol_to_c_name_address \
13569 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13570 old_postinstall_cmds old_postuninstall_cmds \
13571 compiler_CXX \
13572 CC_CXX \
13573 LD_CXX \
13574 lt_prog_compiler_wl_CXX \
13575 lt_prog_compiler_pic_CXX \
13576 lt_prog_compiler_static_CXX \
13577 lt_prog_compiler_no_builtin_flag_CXX \
13578 export_dynamic_flag_spec_CXX \
13579 thread_safe_flag_spec_CXX \
13580 whole_archive_flag_spec_CXX \
13581 enable_shared_with_static_runtimes_CXX \
13582 old_archive_cmds_CXX \
13583 old_archive_from_new_cmds_CXX \
13584 predep_objects_CXX \
13585 postdep_objects_CXX \
13586 predeps_CXX \
13587 postdeps_CXX \
13588 compiler_lib_search_path_CXX \
13589 archive_cmds_CXX \
13590 archive_expsym_cmds_CXX \
13591 postinstall_cmds_CXX \
13592 postuninstall_cmds_CXX \
13593 old_archive_from_expsyms_cmds_CXX \
13594 allow_undefined_flag_CXX \
13595 no_undefined_flag_CXX \
13596 export_symbols_cmds_CXX \
13597 hardcode_libdir_flag_spec_CXX \
13598 hardcode_libdir_flag_spec_ld_CXX \
13599 hardcode_libdir_separator_CXX \
13600 hardcode_automatic_CXX \
13601 module_cmds_CXX \
13602 module_expsym_cmds_CXX \
13603 lt_cv_prog_compiler_c_o_CXX \
13604 exclude_expsyms_CXX \
13605 include_expsyms_CXX; do
13606
13607 case $var in
13608 old_archive_cmds_CXX | \
13609 old_archive_from_new_cmds_CXX | \
13610 archive_cmds_CXX | \
13611 archive_expsym_cmds_CXX | \
13612 module_cmds_CXX | \
13613 module_expsym_cmds_CXX | \
13614 old_archive_from_expsyms_cmds_CXX | \
13615 export_symbols_cmds_CXX | \
13616 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13617 postinstall_cmds | postuninstall_cmds | \
13618 old_postinstall_cmds | old_postuninstall_cmds | \
13619 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13620 # Double-quote double-evaled strings.
13621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13622 ;;
13623 *)
13624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13625 ;;
13626 esac
13627 done
13628
13629 case $lt_echo in
13630 *'\$0 --fallback-echo"')
13631 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13632 ;;
13633 esac
13634
13635 cfgfile="$ofile"
13636
13637 cat <<__EOF__ >> "$cfgfile"
13638 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13639
13640 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13641
13642 # Shell to use when invoking shell scripts.
13643 SHELL=$lt_SHELL
13644
13645 # Whether or not to build shared libraries.
13646 build_libtool_libs=$enable_shared
13647
13648 # Whether or not to build static libraries.
13649 build_old_libs=$enable_static
13650
13651 # Whether or not to add -lc for building shared libraries.
13652 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13653
13654 # Whether or not to disallow shared libs when runtime libs are static
13655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13656
13657 # Whether or not to optimize for fast installation.
13658 fast_install=$enable_fast_install
13659
13660 # The host system.
13661 host_alias=$host_alias
13662 host=$host
13663 host_os=$host_os
13664
13665 # The build system.
13666 build_alias=$build_alias
13667 build=$build
13668 build_os=$build_os
13669
13670 # An echo program that does not interpret backslashes.
13671 echo=$lt_echo
13672
13673 # The archiver.
13674 AR=$lt_AR
13675 AR_FLAGS=$lt_AR_FLAGS
13676
13677 # A C compiler.
13678 LTCC=$lt_LTCC
13679
13680 # LTCC compiler flags.
13681 LTCFLAGS=$lt_LTCFLAGS
13682
13683 # A language-specific compiler.
13684 CC=$lt_compiler_CXX
13685
13686 # Is the compiler the GNU C compiler?
13687 with_gcc=$GCC_CXX
13688
13689 # An ERE matcher.
13690 EGREP=$lt_EGREP
13691
13692 # The linker used to build libraries.
13693 LD=$lt_LD_CXX
13694
13695 # Whether we need hard or soft links.
13696 LN_S=$lt_LN_S
13697
13698 # A BSD-compatible nm program.
13699 NM=$lt_NM
13700
13701 # A symbol stripping program
13702 STRIP=$lt_STRIP
13703
13704 # Used to examine libraries when file_magic_cmd begins "file"
13705 MAGIC_CMD=$MAGIC_CMD
13706
13707 # Used on cygwin: DLL creation program.
13708 DLLTOOL="$DLLTOOL"
13709
13710 # Used on cygwin: object dumper.
13711 OBJDUMP="$OBJDUMP"
13712
13713 # Used on cygwin: assembler.
13714 AS="$AS"
13715
13716 # The name of the directory that contains temporary libtool files.
13717 objdir=$objdir
13718
13719 # How to create reloadable object files.
13720 reload_flag=$lt_reload_flag
13721 reload_cmds=$lt_reload_cmds
13722
13723 # How to pass a linker flag through the compiler.
13724 wl=$lt_lt_prog_compiler_wl_CXX
13725
13726 # Object file suffix (normally "o").
13727 objext="$ac_objext"
13728
13729 # Old archive suffix (normally "a").
13730 libext="$libext"
13731
13732 # Shared library suffix (normally ".so").
13733 shrext_cmds='$shrext_cmds'
13734
13735 # Executable file suffix (normally "").
13736 exeext="$exeext"
13737
13738 # Additional compiler flags for building library objects.
13739 pic_flag=$lt_lt_prog_compiler_pic_CXX
13740 pic_mode=$pic_mode
13741
13742 # What is the maximum length of a command?
13743 max_cmd_len=$lt_cv_sys_max_cmd_len
13744
13745 # Does compiler simultaneously support -c and -o options?
13746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13747
13748 # Must we lock files when doing compilation?
13749 need_locks=$lt_need_locks
13750
13751 # Do we need the lib prefix for modules?
13752 need_lib_prefix=$need_lib_prefix
13753
13754 # Do we need a version for libraries?
13755 need_version=$need_version
13756
13757 # Whether dlopen is supported.
13758 dlopen_support=$enable_dlopen
13759
13760 # Whether dlopen of programs is supported.
13761 dlopen_self=$enable_dlopen_self
13762
13763 # Whether dlopen of statically linked programs is supported.
13764 dlopen_self_static=$enable_dlopen_self_static
13765
13766 # Compiler flag to prevent dynamic linking.
13767 link_static_flag=$lt_lt_prog_compiler_static_CXX
13768
13769 # Compiler flag to turn off builtin functions.
13770 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13771
13772 # Compiler flag to allow reflexive dlopens.
13773 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13774
13775 # Compiler flag to generate shared objects directly from archives.
13776 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13777
13778 # Compiler flag to generate thread-safe objects.
13779 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13780
13781 # Library versioning type.
13782 version_type=$version_type
13783
13784 # Format of library name prefix.
13785 libname_spec=$lt_libname_spec
13786
13787 # List of archive names. First name is the real one, the rest are links.
13788 # The last name is the one that the linker finds with -lNAME.
13789 library_names_spec=$lt_library_names_spec
13790
13791 # The coded name of the library, if different from the real name.
13792 soname_spec=$lt_soname_spec
13793
13794 # Commands used to build and install an old-style archive.
13795 RANLIB=$lt_RANLIB
13796 old_archive_cmds=$lt_old_archive_cmds_CXX
13797 old_postinstall_cmds=$lt_old_postinstall_cmds
13798 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13799
13800 # Create an old-style archive from a shared archive.
13801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13802
13803 # Create a temporary old-style archive to link instead of a shared archive.
13804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13805
13806 # Commands used to build and install a shared archive.
13807 archive_cmds=$lt_archive_cmds_CXX
13808 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13809 postinstall_cmds=$lt_postinstall_cmds
13810 postuninstall_cmds=$lt_postuninstall_cmds
13811
13812 # Commands used to build a loadable module (assumed same as above if empty)
13813 module_cmds=$lt_module_cmds_CXX
13814 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13815
13816 # Commands to strip libraries.
13817 old_striplib=$lt_old_striplib
13818 striplib=$lt_striplib
13819
13820 # Dependencies to place before the objects being linked to create a
13821 # shared library.
13822 predep_objects=$lt_predep_objects_CXX
13823
13824 # Dependencies to place after the objects being linked to create a
13825 # shared library.
13826 postdep_objects=$lt_postdep_objects_CXX
13827
13828 # Dependencies to place before the objects being linked to create a
13829 # shared library.
13830 predeps=$lt_predeps_CXX
13831
13832 # Dependencies to place after the objects being linked to create a
13833 # shared library.
13834 postdeps=$lt_postdeps_CXX
13835
13836 # The library search path used internally by the compiler when linking
13837 # a shared library.
13838 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13839
13840 # Method to check whether dependent libraries are shared objects.
13841 deplibs_check_method=$lt_deplibs_check_method
13842
13843 # Command to use when deplibs_check_method == file_magic.
13844 file_magic_cmd=$lt_file_magic_cmd
13845
13846 # Flag that allows shared libraries with undefined symbols to be built.
13847 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13848
13849 # Flag that forces no undefined symbols.
13850 no_undefined_flag=$lt_no_undefined_flag_CXX
13851
13852 # Commands used to finish a libtool library installation in a directory.
13853 finish_cmds=$lt_finish_cmds
13854
13855 # Same as above, but a single script fragment to be evaled but not shown.
13856 finish_eval=$lt_finish_eval
13857
13858 # Take the output of nm and produce a listing of raw symbols and C names.
13859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13860
13861 # Transform the output of nm in a proper C declaration
13862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13863
13864 # Transform the output of nm in a C name address pair
13865 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13866
13867 # This is the shared library runtime path variable.
13868 runpath_var=$runpath_var
13869
13870 # This is the shared library path variable.
13871 shlibpath_var=$shlibpath_var
13872
13873 # Is shlibpath searched before the hard-coded library search path?
13874 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13875
13876 # How to hardcode a shared library path into an executable.
13877 hardcode_action=$hardcode_action_CXX
13878
13879 # Whether we should hardcode library paths into libraries.
13880 hardcode_into_libs=$hardcode_into_libs
13881
13882 # Flag to hardcode \$libdir into a binary during linking.
13883 # This must work even if \$libdir does not exist.
13884 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13885
13886 # If ld is used when linking, flag to hardcode \$libdir into
13887 # a binary during linking. This must work even if \$libdir does
13888 # not exist.
13889 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13890
13891 # Whether we need a single -rpath flag with a separated argument.
13892 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13893
13894 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13895 # resulting binary.
13896 hardcode_direct=$hardcode_direct_CXX
13897
13898 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13899 # resulting binary.
13900 hardcode_minus_L=$hardcode_minus_L_CXX
13901
13902 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13903 # the resulting binary.
13904 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13905
13906 # Set to yes if building a shared library automatically hardcodes DIR into the library
13907 # and all subsequent libraries and executables linked against it.
13908 hardcode_automatic=$hardcode_automatic_CXX
13909
13910 # Variables whose values should be saved in libtool wrapper scripts and
13911 # restored at relink time.
13912 variables_saved_for_relink="$variables_saved_for_relink"
13913
13914 # Whether libtool must link a program against all its dependency libraries.
13915 link_all_deplibs=$link_all_deplibs_CXX
13916
13917 # Compile-time system search path for libraries
13918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13919
13920 # Run-time system search path for libraries
13921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13922
13923 # Fix the shell variable \$srcfile for the compiler.
13924 fix_srcfile_path="$fix_srcfile_path_CXX"
13925
13926 # Set to yes if exported symbols are required.
13927 always_export_symbols=$always_export_symbols_CXX
13928
13929 # The commands to list exported symbols.
13930 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13931
13932 # The commands to extract the exported symbol list from a shared archive.
13933 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13934
13935 # Symbols that should not be listed in the preloaded symbols.
13936 exclude_expsyms=$lt_exclude_expsyms_CXX
13937
13938 # Symbols that must always be exported.
13939 include_expsyms=$lt_include_expsyms_CXX
13940
13941 # ### END LIBTOOL TAG CONFIG: $tagname
13942
13943 __EOF__
13944
13945
13946 else
13947 # If there is no Makefile yet, we rely on a make rule to execute
13948 # `config.status --recheck' to rerun these tests and create the
13949 # libtool script then.
13950 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13951 if test -f "$ltmain_in"; then
13952 test -f Makefile && make "$ltmain"
13953 fi
13954 fi
13955
13956
13957 ac_ext=c
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963 CC=$lt_save_CC
13964 LDCXX=$LD
13965 LD=$lt_save_LD
13966 GCC=$lt_save_GCC
13967 with_gnu_ldcxx=$with_gnu_ld
13968 with_gnu_ld=$lt_save_with_gnu_ld
13969 lt_cv_path_LDCXX=$lt_cv_path_LD
13970 lt_cv_path_LD=$lt_save_path_LD
13971 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13972 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13973
13974 else
13975 tagname=""
13976 fi
13977 ;;
13978
13979 F77)
13980 if test -n "$F77" && test "X$F77" != "Xno"; then
13981
13982 ac_ext=f
13983 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13984 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13985 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13986
13987
13988 archive_cmds_need_lc_F77=no
13989 allow_undefined_flag_F77=
13990 always_export_symbols_F77=no
13991 archive_expsym_cmds_F77=
13992 export_dynamic_flag_spec_F77=
13993 hardcode_direct_F77=no
13994 hardcode_libdir_flag_spec_F77=
13995 hardcode_libdir_flag_spec_ld_F77=
13996 hardcode_libdir_separator_F77=
13997 hardcode_minus_L_F77=no
13998 hardcode_automatic_F77=no
13999 module_cmds_F77=
14000 module_expsym_cmds_F77=
14001 link_all_deplibs_F77=unknown
14002 old_archive_cmds_F77=$old_archive_cmds
14003 no_undefined_flag_F77=
14004 whole_archive_flag_spec_F77=
14005 enable_shared_with_static_runtimes_F77=no
14006
14007 # Source file extension for f77 test sources.
14008 ac_ext=f
14009
14010 # Object file extension for compiled f77 test sources.
14011 objext=o
14012 objext_F77=$objext
14013
14014 # Code to be used in simple compile tests
14015 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14016
14017 # Code to be used in simple link tests
14018 lt_simple_link_test_code=" program t\n end\n"
14019
14020 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14021
14022 # If no C compiler was specified, use CC.
14023 LTCC=${LTCC-"$CC"}
14024
14025 # If no C compiler flags were specified, use CFLAGS.
14026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14027
14028 # Allow CC to be a program name with arguments.
14029 compiler=$CC
14030
14031
14032 # save warnings/boilerplate of simple test code
14033 ac_outfile=conftest.$ac_objext
14034 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14035 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14036 _lt_compiler_boilerplate=`cat conftest.err`
14037 $rm conftest*
14038
14039 ac_outfile=conftest.$ac_objext
14040 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14042 _lt_linker_boilerplate=`cat conftest.err`
14043 $rm conftest*
14044
14045
14046 # Allow CC to be a program name with arguments.
14047 lt_save_CC="$CC"
14048 CC=${F77-"f77"}
14049 compiler=$CC
14050 compiler_F77=$CC
14051 for cc_temp in $compiler""; do
14052 case $cc_temp in
14053 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14054 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14055 \-*) ;;
14056 *) break;;
14057 esac
14058 done
14059 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14060
14061
14062 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14063 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14064 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14065 echo "${ECHO_T}$can_build_shared" >&6; }
14066
14067 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14068 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14069 test "$can_build_shared" = "no" && enable_shared=no
14070
14071 # On AIX, shared libraries and static libraries use the same namespace, and
14072 # are all built from PIC.
14073 case $host_os in
14074 aix3*)
14075 test "$enable_shared" = yes && enable_static=no
14076 if test -n "$RANLIB"; then
14077 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14078 postinstall_cmds='$RANLIB $lib'
14079 fi
14080 ;;
14081 aix4* | aix5*)
14082 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14083 test "$enable_shared" = yes && enable_static=no
14084 fi
14085 ;;
14086 esac
14087 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14088 echo "${ECHO_T}$enable_shared" >&6; }
14089
14090 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14091 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14092 # Make sure either enable_shared or enable_static is yes.
14093 test "$enable_shared" = yes || enable_static=yes
14094 { echo "$as_me:$LINENO: result: $enable_static" >&5
14095 echo "${ECHO_T}$enable_static" >&6; }
14096
14097 GCC_F77="$G77"
14098 LD_F77="$LD"
14099
14100 lt_prog_compiler_wl_F77=
14101 lt_prog_compiler_pic_F77=
14102 lt_prog_compiler_static_F77=
14103
14104 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14105 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14106
14107 if test "$GCC" = yes; then
14108 lt_prog_compiler_wl_F77='-Wl,'
14109 lt_prog_compiler_static_F77='-static'
14110
14111 case $host_os in
14112 aix*)
14113 # All AIX code is PIC.
14114 if test "$host_cpu" = ia64; then
14115 # AIX 5 now supports IA64 processor
14116 lt_prog_compiler_static_F77='-Bstatic'
14117 fi
14118 ;;
14119
14120 amigaos*)
14121 # FIXME: we need at least 68020 code to build shared libraries, but
14122 # adding the `-m68020' flag to GCC prevents building anything better,
14123 # like `-m68040'.
14124 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14125 ;;
14126
14127 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14128 # PIC is the default for these OSes.
14129 ;;
14130
14131 mingw* | pw32* | os2*)
14132 # This hack is so that the source file can tell whether it is being
14133 # built for inclusion in a dll (and should export symbols for example).
14134 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14135 ;;
14136
14137 darwin* | rhapsody*)
14138 # PIC is the default on this platform
14139 # Common symbols not allowed in MH_DYLIB files
14140 lt_prog_compiler_pic_F77='-fno-common'
14141 ;;
14142
14143 interix3*)
14144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14145 # Instead, we relocate shared libraries at runtime.
14146 ;;
14147
14148 msdosdjgpp*)
14149 # Just because we use GCC doesn't mean we suddenly get shared libraries
14150 # on systems that don't support them.
14151 lt_prog_compiler_can_build_shared_F77=no
14152 enable_shared=no
14153 ;;
14154
14155 sysv4*MP*)
14156 if test -d /usr/nec; then
14157 lt_prog_compiler_pic_F77=-Kconform_pic
14158 fi
14159 ;;
14160
14161 hpux*)
14162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14163 # not for PA HP-UX.
14164 case $host_cpu in
14165 hppa*64*|ia64*)
14166 # +Z the default
14167 ;;
14168 *)
14169 lt_prog_compiler_pic_F77='-fPIC'
14170 ;;
14171 esac
14172 ;;
14173
14174 *)
14175 lt_prog_compiler_pic_F77='-fPIC'
14176 ;;
14177 esac
14178 else
14179 # PORTME Check for flag to pass linker flags through the system compiler.
14180 case $host_os in
14181 aix*)
14182 lt_prog_compiler_wl_F77='-Wl,'
14183 if test "$host_cpu" = ia64; then
14184 # AIX 5 now supports IA64 processor
14185 lt_prog_compiler_static_F77='-Bstatic'
14186 else
14187 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14188 fi
14189 ;;
14190 darwin*)
14191 # PIC is the default on this platform
14192 # Common symbols not allowed in MH_DYLIB files
14193 case $cc_basename in
14194 xlc*)
14195 lt_prog_compiler_pic_F77='-qnocommon'
14196 lt_prog_compiler_wl_F77='-Wl,'
14197 ;;
14198 esac
14199 ;;
14200
14201 mingw* | pw32* | os2*)
14202 # This hack is so that the source file can tell whether it is being
14203 # built for inclusion in a dll (and should export symbols for example).
14204 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14205 ;;
14206
14207 hpux9* | hpux10* | hpux11*)
14208 lt_prog_compiler_wl_F77='-Wl,'
14209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14210 # not for PA HP-UX.
14211 case $host_cpu in
14212 hppa*64*|ia64*)
14213 # +Z the default
14214 ;;
14215 *)
14216 lt_prog_compiler_pic_F77='+Z'
14217 ;;
14218 esac
14219 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14220 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14221 ;;
14222
14223 irix5* | irix6* | nonstopux*)
14224 lt_prog_compiler_wl_F77='-Wl,'
14225 # PIC (with -KPIC) is the default.
14226 lt_prog_compiler_static_F77='-non_shared'
14227 ;;
14228
14229 newsos6)
14230 lt_prog_compiler_pic_F77='-KPIC'
14231 lt_prog_compiler_static_F77='-Bstatic'
14232 ;;
14233
14234 linux* | k*bsd*-gnu)
14235 case $cc_basename in
14236 icc* | ecc*)
14237 lt_prog_compiler_wl_F77='-Wl,'
14238 lt_prog_compiler_pic_F77='-KPIC'
14239 lt_prog_compiler_static_F77='-static'
14240 ;;
14241 pgcc* | pgf77* | pgf90* | pgf95*)
14242 # Portland Group compilers (*not* the Pentium gcc compiler,
14243 # which looks to be a dead project)
14244 lt_prog_compiler_wl_F77='-Wl,'
14245 lt_prog_compiler_pic_F77='-fpic'
14246 lt_prog_compiler_static_F77='-Bstatic'
14247 ;;
14248 ccc*)
14249 lt_prog_compiler_wl_F77='-Wl,'
14250 # All Alpha code is PIC.
14251 lt_prog_compiler_static_F77='-non_shared'
14252 ;;
14253 esac
14254 ;;
14255
14256 osf3* | osf4* | osf5*)
14257 lt_prog_compiler_wl_F77='-Wl,'
14258 # All OSF/1 code is PIC.
14259 lt_prog_compiler_static_F77='-non_shared'
14260 ;;
14261
14262 solaris*)
14263 lt_prog_compiler_pic_F77='-KPIC'
14264 lt_prog_compiler_static_F77='-Bstatic'
14265 case $cc_basename in
14266 f77* | f90* | f95*)
14267 lt_prog_compiler_wl_F77='-Qoption ld ';;
14268 *)
14269 lt_prog_compiler_wl_F77='-Wl,';;
14270 esac
14271 ;;
14272
14273 sunos4*)
14274 lt_prog_compiler_wl_F77='-Qoption ld '
14275 lt_prog_compiler_pic_F77='-PIC'
14276 lt_prog_compiler_static_F77='-Bstatic'
14277 ;;
14278
14279 sysv4 | sysv4.2uw2* | sysv4.3*)
14280 lt_prog_compiler_wl_F77='-Wl,'
14281 lt_prog_compiler_pic_F77='-KPIC'
14282 lt_prog_compiler_static_F77='-Bstatic'
14283 ;;
14284
14285 sysv4*MP*)
14286 if test -d /usr/nec ;then
14287 lt_prog_compiler_pic_F77='-Kconform_pic'
14288 lt_prog_compiler_static_F77='-Bstatic'
14289 fi
14290 ;;
14291
14292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14293 lt_prog_compiler_wl_F77='-Wl,'
14294 lt_prog_compiler_pic_F77='-KPIC'
14295 lt_prog_compiler_static_F77='-Bstatic'
14296 ;;
14297
14298 unicos*)
14299 lt_prog_compiler_wl_F77='-Wl,'
14300 lt_prog_compiler_can_build_shared_F77=no
14301 ;;
14302
14303 uts4*)
14304 lt_prog_compiler_pic_F77='-pic'
14305 lt_prog_compiler_static_F77='-Bstatic'
14306 ;;
14307
14308 *)
14309 lt_prog_compiler_can_build_shared_F77=no
14310 ;;
14311 esac
14312 fi
14313
14314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14315 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14316
14317 #
14318 # Check to make sure the PIC flag actually works.
14319 #
14320 if test -n "$lt_prog_compiler_pic_F77"; then
14321
14322 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14323 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14324 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327 lt_prog_compiler_pic_works_F77=no
14328 ac_outfile=conftest.$ac_objext
14329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14330 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14331 # Insert the option either (1) after the last *FLAGS variable, or
14332 # (2) before a word containing "conftest.", or (3) at the end.
14333 # Note that $ac_compile itself does not contain backslashes and begins
14334 # with a dollar sign (not a hyphen), so the echo should work correctly.
14335 # The option is referenced via a variable to avoid confusing sed.
14336 lt_compile=`echo "$ac_compile" | $SED \
14337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14339 -e 's:$: $lt_compiler_flag:'`
14340 (eval echo "\"\$as_me:14340: $lt_compile\"" >&5)
14341 (eval "$lt_compile" 2>conftest.err)
14342 ac_status=$?
14343 cat conftest.err >&5
14344 echo "$as_me:14344: \$? = $ac_status" >&5
14345 if (exit $ac_status) && test -s "$ac_outfile"; then
14346 # The compiler can only warn and ignore the option if not recognized
14347 # So say no if there are warnings other than the usual output.
14348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14351 lt_prog_compiler_pic_works_F77=yes
14352 fi
14353 fi
14354 $rm conftest*
14355
14356 fi
14357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14358 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14359
14360 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14361 case $lt_prog_compiler_pic_F77 in
14362 "" | " "*) ;;
14363 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14364 esac
14365 else
14366 lt_prog_compiler_pic_F77=
14367 lt_prog_compiler_can_build_shared_F77=no
14368 fi
14369
14370 fi
14371 case $host_os in
14372 # For platforms which do not support PIC, -DPIC is meaningless:
14373 *djgpp*)
14374 lt_prog_compiler_pic_F77=
14375 ;;
14376 *)
14377 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14378 ;;
14379 esac
14380
14381 #
14382 # Check to make sure the static flag actually works.
14383 #
14384 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14385 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14387 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 else
14390 lt_prog_compiler_static_works_F77=no
14391 save_LDFLAGS="$LDFLAGS"
14392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14393 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14395 # The linker can only warn and ignore the option if not recognized
14396 # So say no if there are warnings
14397 if test -s conftest.err; then
14398 # Append any errors to the config.log.
14399 cat conftest.err 1>&5
14400 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14402 if diff conftest.exp conftest.er2 >/dev/null; then
14403 lt_prog_compiler_static_works_F77=yes
14404 fi
14405 else
14406 lt_prog_compiler_static_works_F77=yes
14407 fi
14408 fi
14409 $rm conftest*
14410 LDFLAGS="$save_LDFLAGS"
14411
14412 fi
14413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14414 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14415
14416 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14417 :
14418 else
14419 lt_prog_compiler_static_F77=
14420 fi
14421
14422
14423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14425 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428 lt_cv_prog_compiler_c_o_F77=no
14429 $rm -r conftest 2>/dev/null
14430 mkdir conftest
14431 cd conftest
14432 mkdir out
14433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14434
14435 lt_compiler_flag="-o out/conftest2.$ac_objext"
14436 # Insert the option either (1) after the last *FLAGS variable, or
14437 # (2) before a word containing "conftest.", or (3) at the end.
14438 # Note that $ac_compile itself does not contain backslashes and begins
14439 # with a dollar sign (not a hyphen), so the echo should work correctly.
14440 lt_compile=`echo "$ac_compile" | $SED \
14441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14443 -e 's:$: $lt_compiler_flag:'`
14444 (eval echo "\"\$as_me:14444: $lt_compile\"" >&5)
14445 (eval "$lt_compile" 2>out/conftest.err)
14446 ac_status=$?
14447 cat out/conftest.err >&5
14448 echo "$as_me:14448: \$? = $ac_status" >&5
14449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14450 then
14451 # The compiler can only warn and ignore the option if not recognized
14452 # So say no if there are warnings
14453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14456 lt_cv_prog_compiler_c_o_F77=yes
14457 fi
14458 fi
14459 chmod u+w . 2>&5
14460 $rm conftest*
14461 # SGI C++ compiler will create directory out/ii_files/ for
14462 # template instantiation
14463 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14464 $rm out/* && rmdir out
14465 cd ..
14466 rmdir conftest
14467 $rm conftest*
14468
14469 fi
14470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14472
14473
14474 hard_links="nottested"
14475 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14476 # do not overwrite the value of need_locks provided by the user
14477 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14479 hard_links=yes
14480 $rm conftest*
14481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14482 touch conftest.a
14483 ln conftest.a conftest.b 2>&5 || hard_links=no
14484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14485 { echo "$as_me:$LINENO: result: $hard_links" >&5
14486 echo "${ECHO_T}$hard_links" >&6; }
14487 if test "$hard_links" = no; then
14488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14490 need_locks=warn
14491 fi
14492 else
14493 need_locks=no
14494 fi
14495
14496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14498
14499 runpath_var=
14500 allow_undefined_flag_F77=
14501 enable_shared_with_static_runtimes_F77=no
14502 archive_cmds_F77=
14503 archive_expsym_cmds_F77=
14504 old_archive_From_new_cmds_F77=
14505 old_archive_from_expsyms_cmds_F77=
14506 export_dynamic_flag_spec_F77=
14507 whole_archive_flag_spec_F77=
14508 thread_safe_flag_spec_F77=
14509 hardcode_libdir_flag_spec_F77=
14510 hardcode_libdir_flag_spec_ld_F77=
14511 hardcode_libdir_separator_F77=
14512 hardcode_direct_F77=no
14513 hardcode_minus_L_F77=no
14514 hardcode_shlibpath_var_F77=unsupported
14515 link_all_deplibs_F77=unknown
14516 hardcode_automatic_F77=no
14517 module_cmds_F77=
14518 module_expsym_cmds_F77=
14519 always_export_symbols_F77=no
14520 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14521 # include_expsyms should be a list of space-separated symbols to be *always*
14522 # included in the symbol list
14523 include_expsyms_F77=
14524 # exclude_expsyms can be an extended regexp of symbols to exclude
14525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14527 # as well as any symbol that contains `d'.
14528 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14530 # platforms (ab)use it in PIC code, but their linkers get confused if
14531 # the symbol is explicitly referenced. Since portable code cannot
14532 # rely on this symbol name, it's probably fine to never include it in
14533 # preloaded symbol tables.
14534 extract_expsyms_cmds=
14535 # Just being paranoid about ensuring that cc_basename is set.
14536 for cc_temp in $compiler""; do
14537 case $cc_temp in
14538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14540 \-*) ;;
14541 *) break;;
14542 esac
14543 done
14544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14545
14546 case $host_os in
14547 cygwin* | mingw* | pw32*)
14548 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14549 # When not using gcc, we currently assume that we are using
14550 # Microsoft Visual C++.
14551 if test "$GCC" != yes; then
14552 with_gnu_ld=no
14553 fi
14554 ;;
14555 interix*)
14556 # we just hope/assume this is gcc and not c89 (= MSVC++)
14557 with_gnu_ld=yes
14558 ;;
14559 openbsd*)
14560 with_gnu_ld=no
14561 ;;
14562 esac
14563
14564 ld_shlibs_F77=yes
14565 if test "$with_gnu_ld" = yes; then
14566 # If archive_cmds runs LD, not CC, wlarc should be empty
14567 wlarc='${wl}'
14568
14569 # Set some defaults for GNU ld with shared library support. These
14570 # are reset later if shared libraries are not supported. Putting them
14571 # here allows them to be overridden if necessary.
14572 runpath_var=LD_RUN_PATH
14573 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14574 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14575 # ancient GNU ld didn't support --whole-archive et. al.
14576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14577 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14578 else
14579 whole_archive_flag_spec_F77=
14580 fi
14581 supports_anon_versioning=no
14582 case `$LD -v 2>/dev/null` in
14583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14586 *\ 2.11.*) ;; # other 2.11 versions
14587 *) supports_anon_versioning=yes ;;
14588 esac
14589
14590 # See if GNU ld supports shared libraries.
14591 case $host_os in
14592 aix3* | aix4* | aix5*)
14593 # On AIX/PPC, the GNU linker is very broken
14594 if test "$host_cpu" != ia64; then
14595 ld_shlibs_F77=no
14596 cat <<EOF 1>&2
14597
14598 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14599 *** to be unable to reliably create shared libraries on AIX.
14600 *** Therefore, libtool is disabling shared libraries support. If you
14601 *** really care for shared libraries, you may want to modify your PATH
14602 *** so that a non-GNU linker is found, and then restart.
14603
14604 EOF
14605 fi
14606 ;;
14607
14608 amigaos*)
14609 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)'
14610 hardcode_libdir_flag_spec_F77='-L$libdir'
14611 hardcode_minus_L_F77=yes
14612
14613 # Samuel A. Falvo II <[email protected]> reports
14614 # that the semantics of dynamic libraries on AmigaOS, at least up
14615 # to version 4, is to share data among multiple programs linked
14616 # with the same dynamic library. Since this doesn't match the
14617 # behavior of shared libraries on other platforms, we can't use
14618 # them.
14619 ld_shlibs_F77=no
14620 ;;
14621
14622 beos*)
14623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14624 allow_undefined_flag_F77=unsupported
14625 # Joseph Beckenbach <[email protected]> says some releases of gcc
14626 # support --undefined. This deserves some investigation. FIXME
14627 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14628 else
14629 ld_shlibs_F77=no
14630 fi
14631 ;;
14632
14633 cygwin* | mingw* | pw32*)
14634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14635 # as there is no search path for DLLs.
14636 hardcode_libdir_flag_spec_F77='-L$libdir'
14637 allow_undefined_flag_F77=unsupported
14638 always_export_symbols_F77=no
14639 enable_shared_with_static_runtimes_F77=yes
14640 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14641
14642 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14643 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14644 # If the export-symbols file already is a .def file (1st line
14645 # is EXPORTS), use it as is; otherwise, prepend...
14646 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14647 cp $export_symbols $output_objdir/$soname.def;
14648 else
14649 echo EXPORTS > $output_objdir/$soname.def;
14650 cat $export_symbols >> $output_objdir/$soname.def;
14651 fi~
14652 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14653 else
14654 ld_shlibs_F77=no
14655 fi
14656 ;;
14657
14658 interix3*)
14659 hardcode_direct_F77=no
14660 hardcode_shlibpath_var_F77=no
14661 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14662 export_dynamic_flag_spec_F77='${wl}-E'
14663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14664 # Instead, shared libraries are loaded at an image base (0x10000000 by
14665 # default) and relocated if they conflict, which is a slow very memory
14666 # consuming and fragmenting process. To avoid this, we pick a random,
14667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14669 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'
14670 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'
14671 ;;
14672
14673 linux* | k*bsd*-gnu)
14674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14675 tmp_addflag=
14676 case $cc_basename,$host_cpu in
14677 pgcc*) # Portland Group C compiler
14678 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'
14679 tmp_addflag=' $pic_flag'
14680 ;;
14681 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14682 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'
14683 tmp_addflag=' $pic_flag -Mnomain' ;;
14684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14685 tmp_addflag=' -i_dynamic' ;;
14686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14687 tmp_addflag=' -i_dynamic -nofor_main' ;;
14688 ifc* | ifort*) # Intel Fortran compiler
14689 tmp_addflag=' -nofor_main' ;;
14690 esac
14691 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14692
14693 if test $supports_anon_versioning = yes; then
14694 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14696 $echo "local: *; };" >> $output_objdir/$libname.ver~
14697 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14698 fi
14699 link_all_deplibs_F77=no
14700 else
14701 ld_shlibs_F77=no
14702 fi
14703 ;;
14704
14705 netbsd* | netbsdelf*-gnu)
14706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14707 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14708 wlarc=
14709 else
14710 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14711 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14712 fi
14713 ;;
14714
14715 solaris*)
14716 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14717 ld_shlibs_F77=no
14718 cat <<EOF 1>&2
14719
14720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14721 *** create shared libraries on Solaris systems. Therefore, libtool
14722 *** is disabling shared libraries support. We urge you to upgrade GNU
14723 *** binutils to release 2.9.1 or newer. Another option is to modify
14724 *** your PATH or compiler configuration so that the native linker is
14725 *** used, and then restart.
14726
14727 EOF
14728 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14729 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14730 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14731 else
14732 ld_shlibs_F77=no
14733 fi
14734 ;;
14735
14736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14737 case `$LD -v 2>&1` in
14738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14739 ld_shlibs_F77=no
14740 cat <<_LT_EOF 1>&2
14741
14742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14743 *** reliably create shared libraries on SCO systems. Therefore, libtool
14744 *** is disabling shared libraries support. We urge you to upgrade GNU
14745 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14746 *** your PATH or compiler configuration so that the native linker is
14747 *** used, and then restart.
14748
14749 _LT_EOF
14750 ;;
14751 *)
14752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14753 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14754 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14755 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14756 else
14757 ld_shlibs_F77=no
14758 fi
14759 ;;
14760 esac
14761 ;;
14762
14763 sunos4*)
14764 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14765 wlarc=
14766 hardcode_direct_F77=yes
14767 hardcode_shlibpath_var_F77=no
14768 ;;
14769
14770 *)
14771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14772 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14773 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14774 else
14775 ld_shlibs_F77=no
14776 fi
14777 ;;
14778 esac
14779
14780 if test "$ld_shlibs_F77" = no; then
14781 runpath_var=
14782 hardcode_libdir_flag_spec_F77=
14783 export_dynamic_flag_spec_F77=
14784 whole_archive_flag_spec_F77=
14785 fi
14786 else
14787 # PORTME fill in a description of your system's linker (not GNU ld)
14788 case $host_os in
14789 aix3*)
14790 allow_undefined_flag_F77=unsupported
14791 always_export_symbols_F77=yes
14792 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'
14793 # Note: this linker hardcodes the directories in LIBPATH if there
14794 # are no directories specified by -L.
14795 hardcode_minus_L_F77=yes
14796 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14797 # Neither direct hardcoding nor static linking is supported with a
14798 # broken collect2.
14799 hardcode_direct_F77=unsupported
14800 fi
14801 ;;
14802
14803 aix4* | aix5*)
14804 if test "$host_cpu" = ia64; then
14805 # On IA64, the linker does run time linking by default, so we don't
14806 # have to do anything special.
14807 aix_use_runtimelinking=no
14808 exp_sym_flag='-Bexport'
14809 no_entry_flag=""
14810 else
14811 # If we're using GNU nm, then we don't want the "-C" option.
14812 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14813 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14814 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'
14815 else
14816 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'
14817 fi
14818 aix_use_runtimelinking=no
14819
14820 # Test if we are trying to use run time linking or normal
14821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14822 # need to do runtime linking.
14823 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14824 for ld_flag in $LDFLAGS; do
14825 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14826 aix_use_runtimelinking=yes
14827 break
14828 fi
14829 done
14830 ;;
14831 esac
14832
14833 exp_sym_flag='-bexport'
14834 no_entry_flag='-bnoentry'
14835 fi
14836
14837 # When large executables or shared objects are built, AIX ld can
14838 # have problems creating the table of contents. If linking a library
14839 # or program results in "error TOC overflow" add -mminimal-toc to
14840 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14841 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14842
14843 archive_cmds_F77=''
14844 hardcode_direct_F77=yes
14845 hardcode_libdir_separator_F77=':'
14846 link_all_deplibs_F77=yes
14847
14848 if test "$GCC" = yes; then
14849 case $host_os in aix4.[012]|aix4.[012].*)
14850 # We only want to do this on AIX 4.2 and lower, the check
14851 # below for broken collect2 doesn't work under 4.3+
14852 collect2name=`${CC} -print-prog-name=collect2`
14853 if test -f "$collect2name" && \
14854 strings "$collect2name" | grep resolve_lib_name >/dev/null
14855 then
14856 # We have reworked collect2
14857 hardcode_direct_F77=yes
14858 else
14859 # We have old collect2
14860 hardcode_direct_F77=unsupported
14861 # It fails to find uninstalled libraries when the uninstalled
14862 # path is not listed in the libpath. Setting hardcode_minus_L
14863 # to unsupported forces relinking
14864 hardcode_minus_L_F77=yes
14865 hardcode_libdir_flag_spec_F77='-L$libdir'
14866 hardcode_libdir_separator_F77=
14867 fi
14868 ;;
14869 esac
14870 shared_flag='-shared'
14871 if test "$aix_use_runtimelinking" = yes; then
14872 shared_flag="$shared_flag "'${wl}-G'
14873 fi
14874 else
14875 # not using gcc
14876 if test "$host_cpu" = ia64; then
14877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14878 # chokes on -Wl,-G. The following line is correct:
14879 shared_flag='-G'
14880 else
14881 if test "$aix_use_runtimelinking" = yes; then
14882 shared_flag='${wl}-G'
14883 else
14884 shared_flag='${wl}-bM:SRE'
14885 fi
14886 fi
14887 fi
14888
14889 # It seems that -bexpall does not export symbols beginning with
14890 # underscore (_), so it is better to generate a list of symbols to export.
14891 always_export_symbols_F77=yes
14892 if test "$aix_use_runtimelinking" = yes; then
14893 # Warning - without using the other runtime loading flags (-brtl),
14894 # -berok will link without error, but may produce a broken library.
14895 allow_undefined_flag_F77='-berok'
14896 # Determine the default libpath from the value encoded in an empty executable.
14897 cat >conftest.$ac_ext <<_ACEOF
14898 program main
14899
14900 end
14901 _ACEOF
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (ac_try="$ac_link"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_link") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14917 { (case "(($ac_try" in
14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14920 esac
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_try") 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; } &&
14926 { ac_try='test -s conftest$ac_exeext'
14927 { (case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14930 esac
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932 (eval "$ac_try") 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; }; then
14936
14937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14938 }'`
14939 # Check for a 64-bit object if we didn't find anything.
14940 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14941 }'`; fi
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946
14947 fi
14948
14949 rm -f core conftest.err conftest.$ac_objext \
14950 conftest$ac_exeext conftest.$ac_ext
14951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14952
14953 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14954 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"
14955 else
14956 if test "$host_cpu" = ia64; then
14957 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14958 allow_undefined_flag_F77="-z nodefs"
14959 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"
14960 else
14961 # Determine the default libpath from the value encoded in an empty executable.
14962 cat >conftest.$ac_ext <<_ACEOF
14963 program main
14964
14965 end
14966 _ACEOF
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (ac_try="$ac_link"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_link") 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (case "(($ac_try" in
14993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994 *) ac_try_echo=$ac_try;;
14995 esac
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_try") 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15001
15002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15003 }'`
15004 # Check for a 64-bit object if we didn't find anything.
15005 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15006 }'`; fi
15007 else
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011
15012 fi
15013
15014 rm -f core conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
15016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15017
15018 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15019 # Warning - without using the other run time loading flags,
15020 # -berok will link without error, but may produce a broken library.
15021 no_undefined_flag_F77=' ${wl}-bernotok'
15022 allow_undefined_flag_F77=' ${wl}-berok'
15023 # Exported symbols can be pulled into shared objects from archives
15024 whole_archive_flag_spec_F77='$convenience'
15025 archive_cmds_need_lc_F77=yes
15026 # This is similar to how AIX traditionally builds its shared libraries.
15027 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'
15028 fi
15029 fi
15030 ;;
15031
15032 amigaos*)
15033 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)'
15034 hardcode_libdir_flag_spec_F77='-L$libdir'
15035 hardcode_minus_L_F77=yes
15036 # see comment about different semantics on the GNU ld section
15037 ld_shlibs_F77=no
15038 ;;
15039
15040 bsdi[45]*)
15041 export_dynamic_flag_spec_F77=-rdynamic
15042 ;;
15043
15044 cygwin* | mingw* | pw32*)
15045 # When not using gcc, we currently assume that we are using
15046 # Microsoft Visual C++.
15047 # hardcode_libdir_flag_spec is actually meaningless, as there is
15048 # no search path for DLLs.
15049 hardcode_libdir_flag_spec_F77=' '
15050 allow_undefined_flag_F77=unsupported
15051 # Tell ltmain to make .lib files, not .a files.
15052 libext=lib
15053 # Tell ltmain to make .dll files, not .so files.
15054 shrext_cmds=".dll"
15055 # FIXME: Setting linknames here is a bad hack.
15056 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15057 # The linker will automatically build a .lib file if we build a DLL.
15058 old_archive_From_new_cmds_F77='true'
15059 # FIXME: Should let the user specify the lib program.
15060 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15061 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15062 enable_shared_with_static_runtimes_F77=yes
15063 ;;
15064
15065 darwin* | rhapsody*)
15066 case $host_os in
15067 rhapsody* | darwin1.[012])
15068 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15069 ;;
15070 *) # Darwin 1.3 on
15071 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15072 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15073 else
15074 case ${MACOSX_DEPLOYMENT_TARGET} in
15075 10.[012])
15076 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15077 ;;
15078 10.*)
15079 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15080 ;;
15081 esac
15082 fi
15083 ;;
15084 esac
15085 archive_cmds_need_lc_F77=no
15086 hardcode_direct_F77=no
15087 hardcode_automatic_F77=yes
15088 hardcode_shlibpath_var_F77=unsupported
15089 whole_archive_flag_spec_F77=''
15090 link_all_deplibs_F77=yes
15091 if test "$GCC" = yes ; then
15092 output_verbose_link_cmd='echo'
15093 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15094 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15095 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15096 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}'
15097 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}'
15098 else
15099 case $cc_basename in
15100 xlc*)
15101 output_verbose_link_cmd='echo'
15102 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15103 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15105 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15106 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}'
15107 ;;
15108 *)
15109 ld_shlibs_F77=no
15110 ;;
15111 esac
15112 fi
15113 ;;
15114
15115 dgux*)
15116 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15117 hardcode_libdir_flag_spec_F77='-L$libdir'
15118 hardcode_shlibpath_var_F77=no
15119 ;;
15120
15121 freebsd1*)
15122 ld_shlibs_F77=no
15123 ;;
15124
15125 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15126 # support. Future versions do this automatically, but an explicit c++rt0.o
15127 # does not break anything, and helps significantly (at the cost of a little
15128 # extra space).
15129 freebsd2.2*)
15130 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15131 hardcode_libdir_flag_spec_F77='-R$libdir'
15132 hardcode_direct_F77=yes
15133 hardcode_shlibpath_var_F77=no
15134 ;;
15135
15136 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15137 freebsd2*)
15138 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15139 hardcode_direct_F77=yes
15140 hardcode_minus_L_F77=yes
15141 hardcode_shlibpath_var_F77=no
15142 ;;
15143
15144 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15145 freebsd* | dragonfly*)
15146 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15147 hardcode_libdir_flag_spec_F77='-R$libdir'
15148 hardcode_direct_F77=yes
15149 hardcode_shlibpath_var_F77=no
15150 ;;
15151
15152 hpux9*)
15153 if test "$GCC" = yes; then
15154 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'
15155 else
15156 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'
15157 fi
15158 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15159 hardcode_libdir_separator_F77=:
15160 hardcode_direct_F77=yes
15161
15162 # hardcode_minus_L: Not really in the search PATH,
15163 # but as the default location of the library.
15164 hardcode_minus_L_F77=yes
15165 export_dynamic_flag_spec_F77='${wl}-E'
15166 ;;
15167
15168 hpux10*)
15169 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15170 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15171 else
15172 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15173 fi
15174 if test "$with_gnu_ld" = no; then
15175 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15176 hardcode_libdir_separator_F77=:
15177
15178 hardcode_direct_F77=yes
15179 export_dynamic_flag_spec_F77='${wl}-E'
15180
15181 # hardcode_minus_L: Not really in the search PATH,
15182 # but as the default location of the library.
15183 hardcode_minus_L_F77=yes
15184 fi
15185 ;;
15186
15187 hpux11*)
15188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15189 case $host_cpu in
15190 hppa*64*)
15191 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 ;;
15193 ia64*)
15194 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15195 ;;
15196 *)
15197 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15198 ;;
15199 esac
15200 else
15201 case $host_cpu in
15202 hppa*64*)
15203 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15204 ;;
15205 ia64*)
15206 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15207 ;;
15208 *)
15209 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15210 ;;
15211 esac
15212 fi
15213 if test "$with_gnu_ld" = no; then
15214 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15215 hardcode_libdir_separator_F77=:
15216
15217 case $host_cpu in
15218 hppa*64*|ia64*)
15219 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15220 hardcode_direct_F77=no
15221 hardcode_shlibpath_var_F77=no
15222 ;;
15223 *)
15224 hardcode_direct_F77=yes
15225 export_dynamic_flag_spec_F77='${wl}-E'
15226
15227 # hardcode_minus_L: Not really in the search PATH,
15228 # but as the default location of the library.
15229 hardcode_minus_L_F77=yes
15230 ;;
15231 esac
15232 fi
15233 ;;
15234
15235 irix5* | irix6* | nonstopux*)
15236 if test "$GCC" = yes; then
15237 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'
15238 else
15239 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'
15240 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15241 fi
15242 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15243 hardcode_libdir_separator_F77=:
15244 link_all_deplibs_F77=yes
15245 ;;
15246
15247 netbsd* | netbsdelf*-gnu)
15248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15249 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15250 else
15251 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15252 fi
15253 hardcode_libdir_flag_spec_F77='-R$libdir'
15254 hardcode_direct_F77=yes
15255 hardcode_shlibpath_var_F77=no
15256 ;;
15257
15258 newsos6)
15259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15260 hardcode_direct_F77=yes
15261 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15262 hardcode_libdir_separator_F77=:
15263 hardcode_shlibpath_var_F77=no
15264 ;;
15265
15266 openbsd*)
15267 hardcode_direct_F77=yes
15268 hardcode_shlibpath_var_F77=no
15269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15270 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15271 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15272 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15273 export_dynamic_flag_spec_F77='${wl}-E'
15274 else
15275 case $host_os in
15276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15277 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15278 hardcode_libdir_flag_spec_F77='-R$libdir'
15279 ;;
15280 *)
15281 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15282 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15283 ;;
15284 esac
15285 fi
15286 ;;
15287
15288 os2*)
15289 hardcode_libdir_flag_spec_F77='-L$libdir'
15290 hardcode_minus_L_F77=yes
15291 allow_undefined_flag_F77=unsupported
15292 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'
15293 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15294 ;;
15295
15296 osf3*)
15297 if test "$GCC" = yes; then
15298 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15299 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'
15300 else
15301 allow_undefined_flag_F77=' -expect_unresolved \*'
15302 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'
15303 fi
15304 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15305 hardcode_libdir_separator_F77=:
15306 ;;
15307
15308 osf4* | osf5*) # as osf3* with the addition of -msym flag
15309 if test "$GCC" = yes; then
15310 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15311 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'
15312 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15313 else
15314 allow_undefined_flag_F77=' -expect_unresolved \*'
15315 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'
15316 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~
15317 $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'
15318
15319 # Both c and cxx compiler support -rpath directly
15320 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15321 fi
15322 hardcode_libdir_separator_F77=:
15323 ;;
15324
15325 solaris*)
15326 no_undefined_flag_F77=' -z text'
15327 if test "$GCC" = yes; then
15328 wlarc='${wl}'
15329 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15330 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15331 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15332 else
15333 wlarc=''
15334 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15335 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15337 fi
15338 hardcode_libdir_flag_spec_F77='-R$libdir'
15339 hardcode_shlibpath_var_F77=no
15340 case $host_os in
15341 solaris2.[0-5] | solaris2.[0-5].*) ;;
15342 *)
15343 # The compiler driver will combine linker options so we
15344 # cannot just pass the convience library names through
15345 # without $wl, iff we do not link with $LD.
15346 # Luckily, gcc supports the same syntax we need for Sun Studio.
15347 # Supported since Solaris 2.6 (maybe 2.5.1?)
15348 case $wlarc in
15349 '')
15350 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15351 *)
15352 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15353 esac ;;
15354 esac
15355 link_all_deplibs_F77=yes
15356 ;;
15357
15358 sunos4*)
15359 if test "x$host_vendor" = xsequent; then
15360 # Use $CC to link under sequent, because it throws in some extra .o
15361 # files that make .init and .fini sections work.
15362 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15363 else
15364 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15365 fi
15366 hardcode_libdir_flag_spec_F77='-L$libdir'
15367 hardcode_direct_F77=yes
15368 hardcode_minus_L_F77=yes
15369 hardcode_shlibpath_var_F77=no
15370 ;;
15371
15372 sysv4)
15373 case $host_vendor in
15374 sni)
15375 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15376 hardcode_direct_F77=yes # is this really true???
15377 ;;
15378 siemens)
15379 ## LD is ld it makes a PLAMLIB
15380 ## CC just makes a GrossModule.
15381 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15382 reload_cmds_F77='$CC -r -o $output$reload_objs'
15383 hardcode_direct_F77=no
15384 ;;
15385 motorola)
15386 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15388 ;;
15389 esac
15390 runpath_var='LD_RUN_PATH'
15391 hardcode_shlibpath_var_F77=no
15392 ;;
15393
15394 sysv4.3*)
15395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396 hardcode_shlibpath_var_F77=no
15397 export_dynamic_flag_spec_F77='-Bexport'
15398 ;;
15399
15400 sysv4*MP*)
15401 if test -d /usr/nec; then
15402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15403 hardcode_shlibpath_var_F77=no
15404 runpath_var=LD_RUN_PATH
15405 hardcode_runpath_var=yes
15406 ld_shlibs_F77=yes
15407 fi
15408 ;;
15409
15410 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15411 no_undefined_flag_F77='${wl}-z,text'
15412 archive_cmds_need_lc_F77=no
15413 hardcode_shlibpath_var_F77=no
15414 runpath_var='LD_RUN_PATH'
15415
15416 if test "$GCC" = yes; then
15417 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15418 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15419 else
15420 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15421 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15422 fi
15423 ;;
15424
15425 sysv5* | sco3.2v5* | sco5v6*)
15426 # Note: We can NOT use -z defs as we might desire, because we do not
15427 # link with -lc, and that would cause any symbols used from libc to
15428 # always be unresolved, which means just about no library would
15429 # ever link correctly. If we're not using GNU ld we use -z text
15430 # though, which does catch some bad symbols but isn't as heavy-handed
15431 # as -z defs.
15432 no_undefined_flag_F77='${wl}-z,text'
15433 allow_undefined_flag_F77='${wl}-z,nodefs'
15434 archive_cmds_need_lc_F77=no
15435 hardcode_shlibpath_var_F77=no
15436 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15437 hardcode_libdir_separator_F77=':'
15438 link_all_deplibs_F77=yes
15439 export_dynamic_flag_spec_F77='${wl}-Bexport'
15440 runpath_var='LD_RUN_PATH'
15441
15442 if test "$GCC" = yes; then
15443 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15444 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15445 else
15446 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15447 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15448 fi
15449 ;;
15450
15451 uts4*)
15452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_libdir_flag_spec_F77='-L$libdir'
15454 hardcode_shlibpath_var_F77=no
15455 ;;
15456
15457 *)
15458 ld_shlibs_F77=no
15459 ;;
15460 esac
15461 fi
15462
15463 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15464 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15465 test "$ld_shlibs_F77" = no && can_build_shared=no
15466
15467 #
15468 # Do we need to explicitly link libc?
15469 #
15470 case "x$archive_cmds_need_lc_F77" in
15471 x|xyes)
15472 # Assume -lc should be added
15473 archive_cmds_need_lc_F77=yes
15474
15475 if test "$enable_shared" = yes && test "$GCC" = yes; then
15476 case $archive_cmds_F77 in
15477 *'~'*)
15478 # FIXME: we may have to deal with multi-command sequences.
15479 ;;
15480 '$CC '*)
15481 # Test whether the compiler implicitly links with -lc since on some
15482 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15483 # to ld, don't add -lc before -lgcc.
15484 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15485 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15486 $rm conftest*
15487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15488
15489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15490 (eval $ac_compile) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } 2>conftest.err; then
15494 soname=conftest
15495 lib=conftest
15496 libobjs=conftest.$ac_objext
15497 deplibs=
15498 wl=$lt_prog_compiler_wl_F77
15499 pic_flag=$lt_prog_compiler_pic_F77
15500 compiler_flags=-v
15501 linker_flags=-v
15502 verstring=
15503 output_objdir=.
15504 libname=conftest
15505 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15506 allow_undefined_flag_F77=
15507 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15508 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }
15512 then
15513 archive_cmds_need_lc_F77=no
15514 else
15515 archive_cmds_need_lc_F77=yes
15516 fi
15517 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15518 else
15519 cat conftest.err 1>&5
15520 fi
15521 $rm conftest*
15522 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15523 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15524 ;;
15525 esac
15526 fi
15527 ;;
15528 esac
15529
15530 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15531 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15532 library_names_spec=
15533 libname_spec='lib$name'
15534 soname_spec=
15535 shrext_cmds=".so"
15536 postinstall_cmds=
15537 postuninstall_cmds=
15538 finish_cmds=
15539 finish_eval=
15540 shlibpath_var=
15541 shlibpath_overrides_runpath=unknown
15542 version_type=none
15543 dynamic_linker="$host_os ld.so"
15544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15545 if test "$GCC" = yes; then
15546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15547 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15548 # if the path contains ";" then we assume it to be the separator
15549 # otherwise default to the standard path separator (i.e. ":") - it is
15550 # assumed that no part of a normal pathname contains ";" but that should
15551 # okay in the real world where ";" in dirpaths is itself problematic.
15552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15553 else
15554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15555 fi
15556 else
15557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15558 fi
15559 need_lib_prefix=unknown
15560 hardcode_into_libs=no
15561
15562 # when you set need_version to no, make sure it does not cause -set_version
15563 # flags to be left without arguments
15564 need_version=unknown
15565
15566 case $host_os in
15567 aix3*)
15568 version_type=linux
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15570 shlibpath_var=LIBPATH
15571
15572 # AIX 3 has no versioning support, so we append a major version to the name.
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 ;;
15575
15576 aix4* | aix5*)
15577 version_type=linux
15578 need_lib_prefix=no
15579 need_version=no
15580 hardcode_into_libs=yes
15581 if test "$host_cpu" = ia64; then
15582 # AIX 5 supports IA64
15583 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 else
15586 # With GCC up to 2.95.x, collect2 would create an import file
15587 # for dependence libraries. The import file would start with
15588 # the line `#! .'. This would cause the generated library to
15589 # depend on `.', always an invalid library. This was fixed in
15590 # development snapshots of GCC prior to 3.0.
15591 case $host_os in
15592 aix4 | aix4.[01] | aix4.[01].*)
15593 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15594 echo ' yes '
15595 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15596 :
15597 else
15598 can_build_shared=no
15599 fi
15600 ;;
15601 esac
15602 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15603 # soname into executable. Probably we can add versioning support to
15604 # collect2, so additional links can be useful in future.
15605 if test "$aix_use_runtimelinking" = yes; then
15606 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15607 # instead of lib<name>.a to let people know that these are not
15608 # typical AIX shared libraries.
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610 else
15611 # We preserve .a as extension for shared libraries through AIX4.2
15612 # and later when we are not doing run time linking.
15613 library_names_spec='${libname}${release}.a $libname.a'
15614 soname_spec='${libname}${release}${shared_ext}$major'
15615 fi
15616 shlibpath_var=LIBPATH
15617 fi
15618 ;;
15619
15620 amigaos*)
15621 library_names_spec='$libname.ixlibrary $libname.a'
15622 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15623 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'
15624 ;;
15625
15626 beos*)
15627 library_names_spec='${libname}${shared_ext}'
15628 dynamic_linker="$host_os ld.so"
15629 shlibpath_var=LIBRARY_PATH
15630 ;;
15631
15632 bsdi[45]*)
15633 version_type=linux
15634 need_version=no
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636 soname_spec='${libname}${release}${shared_ext}$major'
15637 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15640 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15641 # the default ld.so.conf also contains /usr/contrib/lib and
15642 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15643 # libtool to hard-code these into programs
15644 ;;
15645
15646 cygwin* | mingw* | pw32*)
15647 version_type=windows
15648 shrext_cmds=".dll"
15649 need_version=no
15650 need_lib_prefix=no
15651
15652 case $GCC,$host_os in
15653 yes,cygwin* | yes,mingw* | yes,pw32*)
15654 library_names_spec='$libname.dll.a'
15655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15656 postinstall_cmds='base_file=`basename \${file}`~
15657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15658 dldir=$destdir/`dirname \$dlpath`~
15659 test -d \$dldir || mkdir -p \$dldir~
15660 $install_prog $dir/$dlname \$dldir/$dlname~
15661 chmod a+x \$dldir/$dlname'
15662 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15663 dlpath=$dir/\$dldll~
15664 $rm \$dlpath'
15665 shlibpath_overrides_runpath=yes
15666
15667 case $host_os in
15668 cygwin*)
15669 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15670 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15671 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15672 ;;
15673 mingw*)
15674 # MinGW DLLs use traditional 'lib' prefix
15675 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15676 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15677 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15678 # It is most probably a Windows format PATH printed by
15679 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15680 # path with ; separators, and with drive letters. We can handle the
15681 # drive letters (cygwin fileutils understands them), so leave them,
15682 # especially as we might pass files found there to a mingw objdump,
15683 # which wouldn't understand a cygwinified path. Ahh.
15684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15685 else
15686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15687 fi
15688 ;;
15689 pw32*)
15690 # pw32 DLLs use 'pw' prefix rather than 'lib'
15691 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15692 ;;
15693 esac
15694 ;;
15695
15696 *)
15697 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15698 ;;
15699 esac
15700 dynamic_linker='Win32 ld.exe'
15701 # FIXME: first we should search . and the directory the executable is in
15702 shlibpath_var=PATH
15703 ;;
15704
15705 darwin* | rhapsody*)
15706 dynamic_linker="$host_os dyld"
15707 version_type=darwin
15708 need_lib_prefix=no
15709 need_version=no
15710 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15711 soname_spec='${libname}${release}${major}$shared_ext'
15712 shlibpath_overrides_runpath=yes
15713 shlibpath_var=DYLD_LIBRARY_PATH
15714 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15715 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15716 if test "$GCC" = yes; then
15717 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15718 else
15719 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15720 fi
15721 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15722 ;;
15723
15724 dgux*)
15725 version_type=linux
15726 need_lib_prefix=no
15727 need_version=no
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 ;;
15732
15733 freebsd1*)
15734 dynamic_linker=no
15735 ;;
15736
15737 freebsd* | dragonfly*)
15738 # DragonFly does not have aout. When/if they implement a new
15739 # versioning mechanism, adjust this.
15740 if test -x /usr/bin/objformat; then
15741 objformat=`/usr/bin/objformat`
15742 else
15743 case $host_os in
15744 freebsd[123]*) objformat=aout ;;
15745 *) objformat=elf ;;
15746 esac
15747 fi
15748 version_type=freebsd-$objformat
15749 case $version_type in
15750 freebsd-elf*)
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15752 need_version=no
15753 need_lib_prefix=no
15754 ;;
15755 freebsd-*)
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15757 need_version=yes
15758 ;;
15759 esac
15760 shlibpath_var=LD_LIBRARY_PATH
15761 case $host_os in
15762 freebsd2*)
15763 shlibpath_overrides_runpath=yes
15764 ;;
15765 freebsd3.[01]* | freebsdelf3.[01]*)
15766 shlibpath_overrides_runpath=yes
15767 hardcode_into_libs=yes
15768 ;;
15769 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15770 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15771 shlibpath_overrides_runpath=no
15772 hardcode_into_libs=yes
15773 ;;
15774 freebsd*) # from 4.6 on
15775 shlibpath_overrides_runpath=yes
15776 hardcode_into_libs=yes
15777 ;;
15778 esac
15779 ;;
15780
15781 gnu*)
15782 version_type=linux
15783 need_lib_prefix=no
15784 need_version=no
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 hardcode_into_libs=yes
15789 ;;
15790
15791 hpux9* | hpux10* | hpux11*)
15792 # Give a soname corresponding to the major version so that dld.sl refuses to
15793 # link against other versions.
15794 version_type=sunos
15795 need_lib_prefix=no
15796 need_version=no
15797 case $host_cpu in
15798 ia64*)
15799 shrext_cmds='.so'
15800 hardcode_into_libs=yes
15801 dynamic_linker="$host_os dld.so"
15802 shlibpath_var=LD_LIBRARY_PATH
15803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 soname_spec='${libname}${release}${shared_ext}$major'
15806 if test "X$HPUX_IA64_MODE" = X32; then
15807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15808 else
15809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15810 fi
15811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15812 ;;
15813 hppa*64*)
15814 shrext_cmds='.sl'
15815 hardcode_into_libs=yes
15816 dynamic_linker="$host_os dld.sl"
15817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15820 soname_spec='${libname}${release}${shared_ext}$major'
15821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15823 ;;
15824 *)
15825 shrext_cmds='.sl'
15826 dynamic_linker="$host_os dld.sl"
15827 shlibpath_var=SHLIB_PATH
15828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 ;;
15832 esac
15833 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15834 postinstall_cmds='chmod 555 $lib'
15835 ;;
15836
15837 interix3*)
15838 version_type=linux
15839 need_lib_prefix=no
15840 need_version=no
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15844 shlibpath_var=LD_LIBRARY_PATH
15845 shlibpath_overrides_runpath=no
15846 hardcode_into_libs=yes
15847 ;;
15848
15849 irix5* | irix6* | nonstopux*)
15850 case $host_os in
15851 nonstopux*) version_type=nonstopux ;;
15852 *)
15853 if test "$lt_cv_prog_gnu_ld" = yes; then
15854 version_type=linux
15855 else
15856 version_type=irix
15857 fi ;;
15858 esac
15859 need_lib_prefix=no
15860 need_version=no
15861 soname_spec='${libname}${release}${shared_ext}$major'
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15863 case $host_os in
15864 irix5* | nonstopux*)
15865 libsuff= shlibsuff=
15866 ;;
15867 *)
15868 case $LD in # libtool.m4 will add one of these switches to LD
15869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15870 libsuff= shlibsuff= libmagic=32-bit;;
15871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15872 libsuff=32 shlibsuff=N32 libmagic=N32;;
15873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15875 *) libsuff= shlibsuff= libmagic=never-match;;
15876 esac
15877 ;;
15878 esac
15879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15880 shlibpath_overrides_runpath=no
15881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15883 hardcode_into_libs=yes
15884 ;;
15885
15886 # No shared lib support for Linux oldld, aout, or coff.
15887 linux*oldld* | linux*aout* | linux*coff*)
15888 dynamic_linker=no
15889 ;;
15890
15891 # This must be Linux ELF.
15892 linux* | k*bsd*-gnu)
15893 version_type=linux
15894 need_lib_prefix=no
15895 need_version=no
15896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897 soname_spec='${libname}${release}${shared_ext}$major'
15898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 shlibpath_overrides_runpath=no
15901 # This implies no fast_install, which is unacceptable.
15902 # Some rework will be needed to allow for fast_install
15903 # before this can be enabled.
15904 hardcode_into_libs=yes
15905
15906 # Append ld.so.conf contents to the search path
15907 if test -f /etc/ld.so.conf; then
15908 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15909 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15910 fi
15911
15912 # We used to test for /lib/ld.so.1 and disable shared libraries on
15913 # powerpc, because MkLinux only supported shared libraries with the
15914 # GNU dynamic linker. Since this was broken with cross compilers,
15915 # most powerpc-linux boxes support dynamic linking these days and
15916 # people can always --disable-shared, the test was removed, and we
15917 # assume the GNU/Linux dynamic linker is in use.
15918 dynamic_linker='GNU/Linux ld.so'
15919 ;;
15920
15921 netbsdelf*-gnu)
15922 version_type=linux
15923 need_lib_prefix=no
15924 need_version=no
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15926 soname_spec='${libname}${release}${shared_ext}$major'
15927 shlibpath_var=LD_LIBRARY_PATH
15928 shlibpath_overrides_runpath=no
15929 hardcode_into_libs=yes
15930 dynamic_linker='NetBSD ld.elf_so'
15931 ;;
15932
15933 netbsd*)
15934 version_type=sunos
15935 need_lib_prefix=no
15936 need_version=no
15937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15940 dynamic_linker='NetBSD (a.out) ld.so'
15941 else
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 dynamic_linker='NetBSD ld.elf_so'
15945 fi
15946 shlibpath_var=LD_LIBRARY_PATH
15947 shlibpath_overrides_runpath=yes
15948 hardcode_into_libs=yes
15949 ;;
15950
15951 newsos6)
15952 version_type=linux
15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15954 shlibpath_var=LD_LIBRARY_PATH
15955 shlibpath_overrides_runpath=yes
15956 ;;
15957
15958 nto-qnx*)
15959 version_type=linux
15960 need_lib_prefix=no
15961 need_version=no
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 shlibpath_overrides_runpath=yes
15966 ;;
15967
15968 openbsd*)
15969 version_type=sunos
15970 sys_lib_dlsearch_path_spec="/usr/lib"
15971 need_lib_prefix=no
15972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15973 case $host_os in
15974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15975 *) need_version=no ;;
15976 esac
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15981 case $host_os in
15982 openbsd2.[89] | openbsd2.[89].*)
15983 shlibpath_overrides_runpath=no
15984 ;;
15985 *)
15986 shlibpath_overrides_runpath=yes
15987 ;;
15988 esac
15989 else
15990 shlibpath_overrides_runpath=yes
15991 fi
15992 ;;
15993
15994 os2*)
15995 libname_spec='$name'
15996 shrext_cmds=".dll"
15997 need_lib_prefix=no
15998 library_names_spec='$libname${shared_ext} $libname.a'
15999 dynamic_linker='OS/2 ld.exe'
16000 shlibpath_var=LIBPATH
16001 ;;
16002
16003 osf3* | osf4* | osf5*)
16004 version_type=osf
16005 need_lib_prefix=no
16006 need_version=no
16007 soname_spec='${libname}${release}${shared_ext}$major'
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16012 ;;
16013
16014 solaris*)
16015 version_type=linux
16016 need_lib_prefix=no
16017 need_version=no
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=yes
16022 hardcode_into_libs=yes
16023 # ldd complains unless libraries are executable
16024 postinstall_cmds='chmod +x $lib'
16025 ;;
16026
16027 sunos4*)
16028 version_type=sunos
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16030 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16031 shlibpath_var=LD_LIBRARY_PATH
16032 shlibpath_overrides_runpath=yes
16033 if test "$with_gnu_ld" = yes; then
16034 need_lib_prefix=no
16035 fi
16036 need_version=yes
16037 ;;
16038
16039 sysv4 | sysv4.3*)
16040 version_type=linux
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 case $host_vendor in
16045 sni)
16046 shlibpath_overrides_runpath=no
16047 need_lib_prefix=no
16048 export_dynamic_flag_spec='${wl}-Blargedynsym'
16049 runpath_var=LD_RUN_PATH
16050 ;;
16051 siemens)
16052 need_lib_prefix=no
16053 ;;
16054 motorola)
16055 need_lib_prefix=no
16056 need_version=no
16057 shlibpath_overrides_runpath=no
16058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16059 ;;
16060 esac
16061 ;;
16062
16063 sysv4*MP*)
16064 if test -d /usr/nec ;then
16065 version_type=linux
16066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16067 soname_spec='$libname${shared_ext}.$major'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 fi
16070 ;;
16071
16072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16073 version_type=freebsd-elf
16074 need_lib_prefix=no
16075 need_version=no
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 hardcode_into_libs=yes
16080 if test "$with_gnu_ld" = yes; then
16081 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16082 shlibpath_overrides_runpath=no
16083 else
16084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16085 shlibpath_overrides_runpath=yes
16086 case $host_os in
16087 sco3.2v5*)
16088 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16089 ;;
16090 esac
16091 fi
16092 sys_lib_dlsearch_path_spec='/usr/lib'
16093 ;;
16094
16095 uts4*)
16096 version_type=linux
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 ;;
16101
16102 *)
16103 dynamic_linker=no
16104 ;;
16105 esac
16106 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16107 echo "${ECHO_T}$dynamic_linker" >&6; }
16108 test "$dynamic_linker" = no && can_build_shared=no
16109
16110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16111 if test "$GCC" = yes; then
16112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16113 fi
16114
16115 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16116 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16117 hardcode_action_F77=
16118 if test -n "$hardcode_libdir_flag_spec_F77" || \
16119 test -n "$runpath_var_F77" || \
16120 test "X$hardcode_automatic_F77" = "Xyes" ; then
16121
16122 # We can hardcode non-existant directories.
16123 if test "$hardcode_direct_F77" != no &&
16124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16125 # have to relink, otherwise we might link with an installed library
16126 # when we should be linking with a yet-to-be-installed one
16127 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16128 test "$hardcode_minus_L_F77" != no; then
16129 # Linking always hardcodes the temporary library directory.
16130 hardcode_action_F77=relink
16131 else
16132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16133 hardcode_action_F77=immediate
16134 fi
16135 else
16136 # We cannot hardcode anything, or else we can only hardcode existing
16137 # directories.
16138 hardcode_action_F77=unsupported
16139 fi
16140 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16141 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16142
16143 if test "$hardcode_action_F77" = relink; then
16144 # Fast installation is not supported
16145 enable_fast_install=no
16146 elif test "$shlibpath_overrides_runpath" = yes ||
16147 test "$enable_shared" = no; then
16148 # Fast installation is not necessary
16149 enable_fast_install=needless
16150 fi
16151
16152
16153 # The else clause should only fire when bootstrapping the
16154 # libtool distribution, otherwise you forgot to ship ltmain.sh
16155 # with your package, and you will get complaints that there are
16156 # no rules to generate ltmain.sh.
16157 if test -f "$ltmain"; then
16158 # See if we are running on zsh, and set the options which allow our commands through
16159 # without removal of \ escapes.
16160 if test -n "${ZSH_VERSION+set}" ; then
16161 setopt NO_GLOB_SUBST
16162 fi
16163 # Now quote all the things that may contain metacharacters while being
16164 # careful not to overquote the AC_SUBSTed values. We take copies of the
16165 # variables and quote the copies for generation of the libtool script.
16166 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16167 SED SHELL STRIP \
16168 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16169 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16170 deplibs_check_method reload_flag reload_cmds need_locks \
16171 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16172 lt_cv_sys_global_symbol_to_c_name_address \
16173 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16174 old_postinstall_cmds old_postuninstall_cmds \
16175 compiler_F77 \
16176 CC_F77 \
16177 LD_F77 \
16178 lt_prog_compiler_wl_F77 \
16179 lt_prog_compiler_pic_F77 \
16180 lt_prog_compiler_static_F77 \
16181 lt_prog_compiler_no_builtin_flag_F77 \
16182 export_dynamic_flag_spec_F77 \
16183 thread_safe_flag_spec_F77 \
16184 whole_archive_flag_spec_F77 \
16185 enable_shared_with_static_runtimes_F77 \
16186 old_archive_cmds_F77 \
16187 old_archive_from_new_cmds_F77 \
16188 predep_objects_F77 \
16189 postdep_objects_F77 \
16190 predeps_F77 \
16191 postdeps_F77 \
16192 compiler_lib_search_path_F77 \
16193 archive_cmds_F77 \
16194 archive_expsym_cmds_F77 \
16195 postinstall_cmds_F77 \
16196 postuninstall_cmds_F77 \
16197 old_archive_from_expsyms_cmds_F77 \
16198 allow_undefined_flag_F77 \
16199 no_undefined_flag_F77 \
16200 export_symbols_cmds_F77 \
16201 hardcode_libdir_flag_spec_F77 \
16202 hardcode_libdir_flag_spec_ld_F77 \
16203 hardcode_libdir_separator_F77 \
16204 hardcode_automatic_F77 \
16205 module_cmds_F77 \
16206 module_expsym_cmds_F77 \
16207 lt_cv_prog_compiler_c_o_F77 \
16208 exclude_expsyms_F77 \
16209 include_expsyms_F77; do
16210
16211 case $var in
16212 old_archive_cmds_F77 | \
16213 old_archive_from_new_cmds_F77 | \
16214 archive_cmds_F77 | \
16215 archive_expsym_cmds_F77 | \
16216 module_cmds_F77 | \
16217 module_expsym_cmds_F77 | \
16218 old_archive_from_expsyms_cmds_F77 | \
16219 export_symbols_cmds_F77 | \
16220 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16221 postinstall_cmds | postuninstall_cmds | \
16222 old_postinstall_cmds | old_postuninstall_cmds | \
16223 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16224 # Double-quote double-evaled strings.
16225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16226 ;;
16227 *)
16228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16229 ;;
16230 esac
16231 done
16232
16233 case $lt_echo in
16234 *'\$0 --fallback-echo"')
16235 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16236 ;;
16237 esac
16238
16239 cfgfile="$ofile"
16240
16241 cat <<__EOF__ >> "$cfgfile"
16242 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16243
16244 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16245
16246 # Shell to use when invoking shell scripts.
16247 SHELL=$lt_SHELL
16248
16249 # Whether or not to build shared libraries.
16250 build_libtool_libs=$enable_shared
16251
16252 # Whether or not to build static libraries.
16253 build_old_libs=$enable_static
16254
16255 # Whether or not to add -lc for building shared libraries.
16256 build_libtool_need_lc=$archive_cmds_need_lc_F77
16257
16258 # Whether or not to disallow shared libs when runtime libs are static
16259 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16260
16261 # Whether or not to optimize for fast installation.
16262 fast_install=$enable_fast_install
16263
16264 # The host system.
16265 host_alias=$host_alias
16266 host=$host
16267 host_os=$host_os
16268
16269 # The build system.
16270 build_alias=$build_alias
16271 build=$build
16272 build_os=$build_os
16273
16274 # An echo program that does not interpret backslashes.
16275 echo=$lt_echo
16276
16277 # The archiver.
16278 AR=$lt_AR
16279 AR_FLAGS=$lt_AR_FLAGS
16280
16281 # A C compiler.
16282 LTCC=$lt_LTCC
16283
16284 # LTCC compiler flags.
16285 LTCFLAGS=$lt_LTCFLAGS
16286
16287 # A language-specific compiler.
16288 CC=$lt_compiler_F77
16289
16290 # Is the compiler the GNU C compiler?
16291 with_gcc=$GCC_F77
16292
16293 # An ERE matcher.
16294 EGREP=$lt_EGREP
16295
16296 # The linker used to build libraries.
16297 LD=$lt_LD_F77
16298
16299 # Whether we need hard or soft links.
16300 LN_S=$lt_LN_S
16301
16302 # A BSD-compatible nm program.
16303 NM=$lt_NM
16304
16305 # A symbol stripping program
16306 STRIP=$lt_STRIP
16307
16308 # Used to examine libraries when file_magic_cmd begins "file"
16309 MAGIC_CMD=$MAGIC_CMD
16310
16311 # Used on cygwin: DLL creation program.
16312 DLLTOOL="$DLLTOOL"
16313
16314 # Used on cygwin: object dumper.
16315 OBJDUMP="$OBJDUMP"
16316
16317 # Used on cygwin: assembler.
16318 AS="$AS"
16319
16320 # The name of the directory that contains temporary libtool files.
16321 objdir=$objdir
16322
16323 # How to create reloadable object files.
16324 reload_flag=$lt_reload_flag
16325 reload_cmds=$lt_reload_cmds
16326
16327 # How to pass a linker flag through the compiler.
16328 wl=$lt_lt_prog_compiler_wl_F77
16329
16330 # Object file suffix (normally "o").
16331 objext="$ac_objext"
16332
16333 # Old archive suffix (normally "a").
16334 libext="$libext"
16335
16336 # Shared library suffix (normally ".so").
16337 shrext_cmds='$shrext_cmds'
16338
16339 # Executable file suffix (normally "").
16340 exeext="$exeext"
16341
16342 # Additional compiler flags for building library objects.
16343 pic_flag=$lt_lt_prog_compiler_pic_F77
16344 pic_mode=$pic_mode
16345
16346 # What is the maximum length of a command?
16347 max_cmd_len=$lt_cv_sys_max_cmd_len
16348
16349 # Does compiler simultaneously support -c and -o options?
16350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16351
16352 # Must we lock files when doing compilation?
16353 need_locks=$lt_need_locks
16354
16355 # Do we need the lib prefix for modules?
16356 need_lib_prefix=$need_lib_prefix
16357
16358 # Do we need a version for libraries?
16359 need_version=$need_version
16360
16361 # Whether dlopen is supported.
16362 dlopen_support=$enable_dlopen
16363
16364 # Whether dlopen of programs is supported.
16365 dlopen_self=$enable_dlopen_self
16366
16367 # Whether dlopen of statically linked programs is supported.
16368 dlopen_self_static=$enable_dlopen_self_static
16369
16370 # Compiler flag to prevent dynamic linking.
16371 link_static_flag=$lt_lt_prog_compiler_static_F77
16372
16373 # Compiler flag to turn off builtin functions.
16374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16375
16376 # Compiler flag to allow reflexive dlopens.
16377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16378
16379 # Compiler flag to generate shared objects directly from archives.
16380 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16381
16382 # Compiler flag to generate thread-safe objects.
16383 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16384
16385 # Library versioning type.
16386 version_type=$version_type
16387
16388 # Format of library name prefix.
16389 libname_spec=$lt_libname_spec
16390
16391 # List of archive names. First name is the real one, the rest are links.
16392 # The last name is the one that the linker finds with -lNAME.
16393 library_names_spec=$lt_library_names_spec
16394
16395 # The coded name of the library, if different from the real name.
16396 soname_spec=$lt_soname_spec
16397
16398 # Commands used to build and install an old-style archive.
16399 RANLIB=$lt_RANLIB
16400 old_archive_cmds=$lt_old_archive_cmds_F77
16401 old_postinstall_cmds=$lt_old_postinstall_cmds
16402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16403
16404 # Create an old-style archive from a shared archive.
16405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16406
16407 # Create a temporary old-style archive to link instead of a shared archive.
16408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16409
16410 # Commands used to build and install a shared archive.
16411 archive_cmds=$lt_archive_cmds_F77
16412 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16413 postinstall_cmds=$lt_postinstall_cmds
16414 postuninstall_cmds=$lt_postuninstall_cmds
16415
16416 # Commands used to build a loadable module (assumed same as above if empty)
16417 module_cmds=$lt_module_cmds_F77
16418 module_expsym_cmds=$lt_module_expsym_cmds_F77
16419
16420 # Commands to strip libraries.
16421 old_striplib=$lt_old_striplib
16422 striplib=$lt_striplib
16423
16424 # Dependencies to place before the objects being linked to create a
16425 # shared library.
16426 predep_objects=$lt_predep_objects_F77
16427
16428 # Dependencies to place after the objects being linked to create a
16429 # shared library.
16430 postdep_objects=$lt_postdep_objects_F77
16431
16432 # Dependencies to place before the objects being linked to create a
16433 # shared library.
16434 predeps=$lt_predeps_F77
16435
16436 # Dependencies to place after the objects being linked to create a
16437 # shared library.
16438 postdeps=$lt_postdeps_F77
16439
16440 # The library search path used internally by the compiler when linking
16441 # a shared library.
16442 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16443
16444 # Method to check whether dependent libraries are shared objects.
16445 deplibs_check_method=$lt_deplibs_check_method
16446
16447 # Command to use when deplibs_check_method == file_magic.
16448 file_magic_cmd=$lt_file_magic_cmd
16449
16450 # Flag that allows shared libraries with undefined symbols to be built.
16451 allow_undefined_flag=$lt_allow_undefined_flag_F77
16452
16453 # Flag that forces no undefined symbols.
16454 no_undefined_flag=$lt_no_undefined_flag_F77
16455
16456 # Commands used to finish a libtool library installation in a directory.
16457 finish_cmds=$lt_finish_cmds
16458
16459 # Same as above, but a single script fragment to be evaled but not shown.
16460 finish_eval=$lt_finish_eval
16461
16462 # Take the output of nm and produce a listing of raw symbols and C names.
16463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16464
16465 # Transform the output of nm in a proper C declaration
16466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16467
16468 # Transform the output of nm in a C name address pair
16469 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16470
16471 # This is the shared library runtime path variable.
16472 runpath_var=$runpath_var
16473
16474 # This is the shared library path variable.
16475 shlibpath_var=$shlibpath_var
16476
16477 # Is shlibpath searched before the hard-coded library search path?
16478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16479
16480 # How to hardcode a shared library path into an executable.
16481 hardcode_action=$hardcode_action_F77
16482
16483 # Whether we should hardcode library paths into libraries.
16484 hardcode_into_libs=$hardcode_into_libs
16485
16486 # Flag to hardcode \$libdir into a binary during linking.
16487 # This must work even if \$libdir does not exist.
16488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16489
16490 # If ld is used when linking, flag to hardcode \$libdir into
16491 # a binary during linking. This must work even if \$libdir does
16492 # not exist.
16493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16494
16495 # Whether we need a single -rpath flag with a separated argument.
16496 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16497
16498 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16499 # resulting binary.
16500 hardcode_direct=$hardcode_direct_F77
16501
16502 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16503 # resulting binary.
16504 hardcode_minus_L=$hardcode_minus_L_F77
16505
16506 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16507 # the resulting binary.
16508 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16509
16510 # Set to yes if building a shared library automatically hardcodes DIR into the library
16511 # and all subsequent libraries and executables linked against it.
16512 hardcode_automatic=$hardcode_automatic_F77
16513
16514 # Variables whose values should be saved in libtool wrapper scripts and
16515 # restored at relink time.
16516 variables_saved_for_relink="$variables_saved_for_relink"
16517
16518 # Whether libtool must link a program against all its dependency libraries.
16519 link_all_deplibs=$link_all_deplibs_F77
16520
16521 # Compile-time system search path for libraries
16522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16523
16524 # Run-time system search path for libraries
16525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16526
16527 # Fix the shell variable \$srcfile for the compiler.
16528 fix_srcfile_path="$fix_srcfile_path_F77"
16529
16530 # Set to yes if exported symbols are required.
16531 always_export_symbols=$always_export_symbols_F77
16532
16533 # The commands to list exported symbols.
16534 export_symbols_cmds=$lt_export_symbols_cmds_F77
16535
16536 # The commands to extract the exported symbol list from a shared archive.
16537 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16538
16539 # Symbols that should not be listed in the preloaded symbols.
16540 exclude_expsyms=$lt_exclude_expsyms_F77
16541
16542 # Symbols that must always be exported.
16543 include_expsyms=$lt_include_expsyms_F77
16544
16545 # ### END LIBTOOL TAG CONFIG: $tagname
16546
16547 __EOF__
16548
16549
16550 else
16551 # If there is no Makefile yet, we rely on a make rule to execute
16552 # `config.status --recheck' to rerun these tests and create the
16553 # libtool script then.
16554 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16555 if test -f "$ltmain_in"; then
16556 test -f Makefile && make "$ltmain"
16557 fi
16558 fi
16559
16560
16561 ac_ext=c
16562 ac_cpp='$CPP $CPPFLAGS'
16563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16566
16567 CC="$lt_save_CC"
16568
16569 else
16570 tagname=""
16571 fi
16572 ;;
16573
16574 GCJ)
16575 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16576
16577
16578 # Source file extension for Java test sources.
16579 ac_ext=java
16580
16581 # Object file extension for compiled Java test sources.
16582 objext=o
16583 objext_GCJ=$objext
16584
16585 # Code to be used in simple compile tests
16586 lt_simple_compile_test_code="class foo {}\n"
16587
16588 # Code to be used in simple link tests
16589 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16590
16591 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16592
16593 # If no C compiler was specified, use CC.
16594 LTCC=${LTCC-"$CC"}
16595
16596 # If no C compiler flags were specified, use CFLAGS.
16597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16598
16599 # Allow CC to be a program name with arguments.
16600 compiler=$CC
16601
16602
16603 # save warnings/boilerplate of simple test code
16604 ac_outfile=conftest.$ac_objext
16605 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16607 _lt_compiler_boilerplate=`cat conftest.err`
16608 $rm conftest*
16609
16610 ac_outfile=conftest.$ac_objext
16611 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16613 _lt_linker_boilerplate=`cat conftest.err`
16614 $rm conftest*
16615
16616
16617 # Allow CC to be a program name with arguments.
16618 lt_save_CC="$CC"
16619 CC=${GCJ-"gcj"}
16620 compiler=$CC
16621 compiler_GCJ=$CC
16622 for cc_temp in $compiler""; do
16623 case $cc_temp in
16624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16626 \-*) ;;
16627 *) break;;
16628 esac
16629 done
16630 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16631
16632
16633 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16634 archive_cmds_need_lc_GCJ=no
16635
16636 old_archive_cmds_GCJ=$old_archive_cmds
16637
16638
16639 lt_prog_compiler_no_builtin_flag_GCJ=
16640
16641 if test "$GCC" = yes; then
16642 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16643
16644
16645 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16646 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16647 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650 lt_cv_prog_compiler_rtti_exceptions=no
16651 ac_outfile=conftest.$ac_objext
16652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16653 lt_compiler_flag="-fno-rtti -fno-exceptions"
16654 # Insert the option either (1) after the last *FLAGS variable, or
16655 # (2) before a word containing "conftest.", or (3) at the end.
16656 # Note that $ac_compile itself does not contain backslashes and begins
16657 # with a dollar sign (not a hyphen), so the echo should work correctly.
16658 # The option is referenced via a variable to avoid confusing sed.
16659 lt_compile=`echo "$ac_compile" | $SED \
16660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16662 -e 's:$: $lt_compiler_flag:'`
16663 (eval echo "\"\$as_me:16663: $lt_compile\"" >&5)
16664 (eval "$lt_compile" 2>conftest.err)
16665 ac_status=$?
16666 cat conftest.err >&5
16667 echo "$as_me:16667: \$? = $ac_status" >&5
16668 if (exit $ac_status) && test -s "$ac_outfile"; then
16669 # The compiler can only warn and ignore the option if not recognized
16670 # So say no if there are warnings other than the usual output.
16671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16674 lt_cv_prog_compiler_rtti_exceptions=yes
16675 fi
16676 fi
16677 $rm conftest*
16678
16679 fi
16680 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16681 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16682
16683 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16684 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16685 else
16686 :
16687 fi
16688
16689 fi
16690
16691 lt_prog_compiler_wl_GCJ=
16692 lt_prog_compiler_pic_GCJ=
16693 lt_prog_compiler_static_GCJ=
16694
16695 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16696 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16697
16698 if test "$GCC" = yes; then
16699 lt_prog_compiler_wl_GCJ='-Wl,'
16700 lt_prog_compiler_static_GCJ='-static'
16701
16702 case $host_os in
16703 aix*)
16704 # All AIX code is PIC.
16705 if test "$host_cpu" = ia64; then
16706 # AIX 5 now supports IA64 processor
16707 lt_prog_compiler_static_GCJ='-Bstatic'
16708 fi
16709 ;;
16710
16711 amigaos*)
16712 # FIXME: we need at least 68020 code to build shared libraries, but
16713 # adding the `-m68020' flag to GCC prevents building anything better,
16714 # like `-m68040'.
16715 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16716 ;;
16717
16718 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16719 # PIC is the default for these OSes.
16720 ;;
16721
16722 mingw* | pw32* | os2*)
16723 # This hack is so that the source file can tell whether it is being
16724 # built for inclusion in a dll (and should export symbols for example).
16725 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16726 ;;
16727
16728 darwin* | rhapsody*)
16729 # PIC is the default on this platform
16730 # Common symbols not allowed in MH_DYLIB files
16731 lt_prog_compiler_pic_GCJ='-fno-common'
16732 ;;
16733
16734 interix3*)
16735 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16736 # Instead, we relocate shared libraries at runtime.
16737 ;;
16738
16739 msdosdjgpp*)
16740 # Just because we use GCC doesn't mean we suddenly get shared libraries
16741 # on systems that don't support them.
16742 lt_prog_compiler_can_build_shared_GCJ=no
16743 enable_shared=no
16744 ;;
16745
16746 sysv4*MP*)
16747 if test -d /usr/nec; then
16748 lt_prog_compiler_pic_GCJ=-Kconform_pic
16749 fi
16750 ;;
16751
16752 hpux*)
16753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16754 # not for PA HP-UX.
16755 case $host_cpu in
16756 hppa*64*|ia64*)
16757 # +Z the default
16758 ;;
16759 *)
16760 lt_prog_compiler_pic_GCJ='-fPIC'
16761 ;;
16762 esac
16763 ;;
16764
16765 *)
16766 lt_prog_compiler_pic_GCJ='-fPIC'
16767 ;;
16768 esac
16769 else
16770 # PORTME Check for flag to pass linker flags through the system compiler.
16771 case $host_os in
16772 aix*)
16773 lt_prog_compiler_wl_GCJ='-Wl,'
16774 if test "$host_cpu" = ia64; then
16775 # AIX 5 now supports IA64 processor
16776 lt_prog_compiler_static_GCJ='-Bstatic'
16777 else
16778 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16779 fi
16780 ;;
16781 darwin*)
16782 # PIC is the default on this platform
16783 # Common symbols not allowed in MH_DYLIB files
16784 case $cc_basename in
16785 xlc*)
16786 lt_prog_compiler_pic_GCJ='-qnocommon'
16787 lt_prog_compiler_wl_GCJ='-Wl,'
16788 ;;
16789 esac
16790 ;;
16791
16792 mingw* | pw32* | os2*)
16793 # This hack is so that the source file can tell whether it is being
16794 # built for inclusion in a dll (and should export symbols for example).
16795 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16796 ;;
16797
16798 hpux9* | hpux10* | hpux11*)
16799 lt_prog_compiler_wl_GCJ='-Wl,'
16800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16801 # not for PA HP-UX.
16802 case $host_cpu in
16803 hppa*64*|ia64*)
16804 # +Z the default
16805 ;;
16806 *)
16807 lt_prog_compiler_pic_GCJ='+Z'
16808 ;;
16809 esac
16810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16811 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16812 ;;
16813
16814 irix5* | irix6* | nonstopux*)
16815 lt_prog_compiler_wl_GCJ='-Wl,'
16816 # PIC (with -KPIC) is the default.
16817 lt_prog_compiler_static_GCJ='-non_shared'
16818 ;;
16819
16820 newsos6)
16821 lt_prog_compiler_pic_GCJ='-KPIC'
16822 lt_prog_compiler_static_GCJ='-Bstatic'
16823 ;;
16824
16825 linux* | k*bsd*-gnu)
16826 case $cc_basename in
16827 icc* | ecc*)
16828 lt_prog_compiler_wl_GCJ='-Wl,'
16829 lt_prog_compiler_pic_GCJ='-KPIC'
16830 lt_prog_compiler_static_GCJ='-static'
16831 ;;
16832 pgcc* | pgf77* | pgf90* | pgf95*)
16833 # Portland Group compilers (*not* the Pentium gcc compiler,
16834 # which looks to be a dead project)
16835 lt_prog_compiler_wl_GCJ='-Wl,'
16836 lt_prog_compiler_pic_GCJ='-fpic'
16837 lt_prog_compiler_static_GCJ='-Bstatic'
16838 ;;
16839 ccc*)
16840 lt_prog_compiler_wl_GCJ='-Wl,'
16841 # All Alpha code is PIC.
16842 lt_prog_compiler_static_GCJ='-non_shared'
16843 ;;
16844 esac
16845 ;;
16846
16847 osf3* | osf4* | osf5*)
16848 lt_prog_compiler_wl_GCJ='-Wl,'
16849 # All OSF/1 code is PIC.
16850 lt_prog_compiler_static_GCJ='-non_shared'
16851 ;;
16852
16853 solaris*)
16854 lt_prog_compiler_pic_GCJ='-KPIC'
16855 lt_prog_compiler_static_GCJ='-Bstatic'
16856 case $cc_basename in
16857 f77* | f90* | f95*)
16858 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16859 *)
16860 lt_prog_compiler_wl_GCJ='-Wl,';;
16861 esac
16862 ;;
16863
16864 sunos4*)
16865 lt_prog_compiler_wl_GCJ='-Qoption ld '
16866 lt_prog_compiler_pic_GCJ='-PIC'
16867 lt_prog_compiler_static_GCJ='-Bstatic'
16868 ;;
16869
16870 sysv4 | sysv4.2uw2* | sysv4.3*)
16871 lt_prog_compiler_wl_GCJ='-Wl,'
16872 lt_prog_compiler_pic_GCJ='-KPIC'
16873 lt_prog_compiler_static_GCJ='-Bstatic'
16874 ;;
16875
16876 sysv4*MP*)
16877 if test -d /usr/nec ;then
16878 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16879 lt_prog_compiler_static_GCJ='-Bstatic'
16880 fi
16881 ;;
16882
16883 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16884 lt_prog_compiler_wl_GCJ='-Wl,'
16885 lt_prog_compiler_pic_GCJ='-KPIC'
16886 lt_prog_compiler_static_GCJ='-Bstatic'
16887 ;;
16888
16889 unicos*)
16890 lt_prog_compiler_wl_GCJ='-Wl,'
16891 lt_prog_compiler_can_build_shared_GCJ=no
16892 ;;
16893
16894 uts4*)
16895 lt_prog_compiler_pic_GCJ='-pic'
16896 lt_prog_compiler_static_GCJ='-Bstatic'
16897 ;;
16898
16899 *)
16900 lt_prog_compiler_can_build_shared_GCJ=no
16901 ;;
16902 esac
16903 fi
16904
16905 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16906 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16907
16908 #
16909 # Check to make sure the PIC flag actually works.
16910 #
16911 if test -n "$lt_prog_compiler_pic_GCJ"; then
16912
16913 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16915 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918 lt_prog_compiler_pic_works_GCJ=no
16919 ac_outfile=conftest.$ac_objext
16920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16921 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16922 # Insert the option either (1) after the last *FLAGS variable, or
16923 # (2) before a word containing "conftest.", or (3) at the end.
16924 # Note that $ac_compile itself does not contain backslashes and begins
16925 # with a dollar sign (not a hyphen), so the echo should work correctly.
16926 # The option is referenced via a variable to avoid confusing sed.
16927 lt_compile=`echo "$ac_compile" | $SED \
16928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16930 -e 's:$: $lt_compiler_flag:'`
16931 (eval echo "\"\$as_me:16931: $lt_compile\"" >&5)
16932 (eval "$lt_compile" 2>conftest.err)
16933 ac_status=$?
16934 cat conftest.err >&5
16935 echo "$as_me:16935: \$? = $ac_status" >&5
16936 if (exit $ac_status) && test -s "$ac_outfile"; then
16937 # The compiler can only warn and ignore the option if not recognized
16938 # So say no if there are warnings other than the usual output.
16939 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16942 lt_prog_compiler_pic_works_GCJ=yes
16943 fi
16944 fi
16945 $rm conftest*
16946
16947 fi
16948 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16949 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16950
16951 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16952 case $lt_prog_compiler_pic_GCJ in
16953 "" | " "*) ;;
16954 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16955 esac
16956 else
16957 lt_prog_compiler_pic_GCJ=
16958 lt_prog_compiler_can_build_shared_GCJ=no
16959 fi
16960
16961 fi
16962 case $host_os in
16963 # For platforms which do not support PIC, -DPIC is meaningless:
16964 *djgpp*)
16965 lt_prog_compiler_pic_GCJ=
16966 ;;
16967 *)
16968 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16969 ;;
16970 esac
16971
16972 #
16973 # Check to make sure the static flag actually works.
16974 #
16975 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16976 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16977 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16978 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981 lt_prog_compiler_static_works_GCJ=no
16982 save_LDFLAGS="$LDFLAGS"
16983 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16984 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16986 # The linker can only warn and ignore the option if not recognized
16987 # So say no if there are warnings
16988 if test -s conftest.err; then
16989 # Append any errors to the config.log.
16990 cat conftest.err 1>&5
16991 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16993 if diff conftest.exp conftest.er2 >/dev/null; then
16994 lt_prog_compiler_static_works_GCJ=yes
16995 fi
16996 else
16997 lt_prog_compiler_static_works_GCJ=yes
16998 fi
16999 fi
17000 $rm conftest*
17001 LDFLAGS="$save_LDFLAGS"
17002
17003 fi
17004 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17005 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17006
17007 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17008 :
17009 else
17010 lt_prog_compiler_static_GCJ=
17011 fi
17012
17013
17014 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17015 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17016 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019 lt_cv_prog_compiler_c_o_GCJ=no
17020 $rm -r conftest 2>/dev/null
17021 mkdir conftest
17022 cd conftest
17023 mkdir out
17024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17025
17026 lt_compiler_flag="-o out/conftest2.$ac_objext"
17027 # Insert the option either (1) after the last *FLAGS variable, or
17028 # (2) before a word containing "conftest.", or (3) at the end.
17029 # Note that $ac_compile itself does not contain backslashes and begins
17030 # with a dollar sign (not a hyphen), so the echo should work correctly.
17031 lt_compile=`echo "$ac_compile" | $SED \
17032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17034 -e 's:$: $lt_compiler_flag:'`
17035 (eval echo "\"\$as_me:17035: $lt_compile\"" >&5)
17036 (eval "$lt_compile" 2>out/conftest.err)
17037 ac_status=$?
17038 cat out/conftest.err >&5
17039 echo "$as_me:17039: \$? = $ac_status" >&5
17040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17041 then
17042 # The compiler can only warn and ignore the option if not recognized
17043 # So say no if there are warnings
17044 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17047 lt_cv_prog_compiler_c_o_GCJ=yes
17048 fi
17049 fi
17050 chmod u+w . 2>&5
17051 $rm conftest*
17052 # SGI C++ compiler will create directory out/ii_files/ for
17053 # template instantiation
17054 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17055 $rm out/* && rmdir out
17056 cd ..
17057 rmdir conftest
17058 $rm conftest*
17059
17060 fi
17061 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17062 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17063
17064
17065 hard_links="nottested"
17066 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17067 # do not overwrite the value of need_locks provided by the user
17068 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17069 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17070 hard_links=yes
17071 $rm conftest*
17072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17073 touch conftest.a
17074 ln conftest.a conftest.b 2>&5 || hard_links=no
17075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17076 { echo "$as_me:$LINENO: result: $hard_links" >&5
17077 echo "${ECHO_T}$hard_links" >&6; }
17078 if test "$hard_links" = no; then
17079 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17080 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17081 need_locks=warn
17082 fi
17083 else
17084 need_locks=no
17085 fi
17086
17087 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17088 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17089
17090 runpath_var=
17091 allow_undefined_flag_GCJ=
17092 enable_shared_with_static_runtimes_GCJ=no
17093 archive_cmds_GCJ=
17094 archive_expsym_cmds_GCJ=
17095 old_archive_From_new_cmds_GCJ=
17096 old_archive_from_expsyms_cmds_GCJ=
17097 export_dynamic_flag_spec_GCJ=
17098 whole_archive_flag_spec_GCJ=
17099 thread_safe_flag_spec_GCJ=
17100 hardcode_libdir_flag_spec_GCJ=
17101 hardcode_libdir_flag_spec_ld_GCJ=
17102 hardcode_libdir_separator_GCJ=
17103 hardcode_direct_GCJ=no
17104 hardcode_minus_L_GCJ=no
17105 hardcode_shlibpath_var_GCJ=unsupported
17106 link_all_deplibs_GCJ=unknown
17107 hardcode_automatic_GCJ=no
17108 module_cmds_GCJ=
17109 module_expsym_cmds_GCJ=
17110 always_export_symbols_GCJ=no
17111 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17112 # include_expsyms should be a list of space-separated symbols to be *always*
17113 # included in the symbol list
17114 include_expsyms_GCJ=
17115 # exclude_expsyms can be an extended regexp of symbols to exclude
17116 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17117 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17118 # as well as any symbol that contains `d'.
17119 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17120 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17121 # platforms (ab)use it in PIC code, but their linkers get confused if
17122 # the symbol is explicitly referenced. Since portable code cannot
17123 # rely on this symbol name, it's probably fine to never include it in
17124 # preloaded symbol tables.
17125 extract_expsyms_cmds=
17126 # Just being paranoid about ensuring that cc_basename is set.
17127 for cc_temp in $compiler""; do
17128 case $cc_temp in
17129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17131 \-*) ;;
17132 *) break;;
17133 esac
17134 done
17135 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17136
17137 case $host_os in
17138 cygwin* | mingw* | pw32*)
17139 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17140 # When not using gcc, we currently assume that we are using
17141 # Microsoft Visual C++.
17142 if test "$GCC" != yes; then
17143 with_gnu_ld=no
17144 fi
17145 ;;
17146 interix*)
17147 # we just hope/assume this is gcc and not c89 (= MSVC++)
17148 with_gnu_ld=yes
17149 ;;
17150 openbsd*)
17151 with_gnu_ld=no
17152 ;;
17153 esac
17154
17155 ld_shlibs_GCJ=yes
17156 if test "$with_gnu_ld" = yes; then
17157 # If archive_cmds runs LD, not CC, wlarc should be empty
17158 wlarc='${wl}'
17159
17160 # Set some defaults for GNU ld with shared library support. These
17161 # are reset later if shared libraries are not supported. Putting them
17162 # here allows them to be overridden if necessary.
17163 runpath_var=LD_RUN_PATH
17164 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17165 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17166 # ancient GNU ld didn't support --whole-archive et. al.
17167 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17168 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17169 else
17170 whole_archive_flag_spec_GCJ=
17171 fi
17172 supports_anon_versioning=no
17173 case `$LD -v 2>/dev/null` in
17174 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17177 *\ 2.11.*) ;; # other 2.11 versions
17178 *) supports_anon_versioning=yes ;;
17179 esac
17180
17181 # See if GNU ld supports shared libraries.
17182 case $host_os in
17183 aix3* | aix4* | aix5*)
17184 # On AIX/PPC, the GNU linker is very broken
17185 if test "$host_cpu" != ia64; then
17186 ld_shlibs_GCJ=no
17187 cat <<EOF 1>&2
17188
17189 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17190 *** to be unable to reliably create shared libraries on AIX.
17191 *** Therefore, libtool is disabling shared libraries support. If you
17192 *** really care for shared libraries, you may want to modify your PATH
17193 *** so that a non-GNU linker is found, and then restart.
17194
17195 EOF
17196 fi
17197 ;;
17198
17199 amigaos*)
17200 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)'
17201 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17202 hardcode_minus_L_GCJ=yes
17203
17204 # Samuel A. Falvo II <[email protected]> reports
17205 # that the semantics of dynamic libraries on AmigaOS, at least up
17206 # to version 4, is to share data among multiple programs linked
17207 # with the same dynamic library. Since this doesn't match the
17208 # behavior of shared libraries on other platforms, we can't use
17209 # them.
17210 ld_shlibs_GCJ=no
17211 ;;
17212
17213 beos*)
17214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17215 allow_undefined_flag_GCJ=unsupported
17216 # Joseph Beckenbach <[email protected]> says some releases of gcc
17217 # support --undefined. This deserves some investigation. FIXME
17218 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17219 else
17220 ld_shlibs_GCJ=no
17221 fi
17222 ;;
17223
17224 cygwin* | mingw* | pw32*)
17225 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17226 # as there is no search path for DLLs.
17227 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17228 allow_undefined_flag_GCJ=unsupported
17229 always_export_symbols_GCJ=no
17230 enable_shared_with_static_runtimes_GCJ=yes
17231 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17232
17233 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17234 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17235 # If the export-symbols file already is a .def file (1st line
17236 # is EXPORTS), use it as is; otherwise, prepend...
17237 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17238 cp $export_symbols $output_objdir/$soname.def;
17239 else
17240 echo EXPORTS > $output_objdir/$soname.def;
17241 cat $export_symbols >> $output_objdir/$soname.def;
17242 fi~
17243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17244 else
17245 ld_shlibs_GCJ=no
17246 fi
17247 ;;
17248
17249 interix3*)
17250 hardcode_direct_GCJ=no
17251 hardcode_shlibpath_var_GCJ=no
17252 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17253 export_dynamic_flag_spec_GCJ='${wl}-E'
17254 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17255 # Instead, shared libraries are loaded at an image base (0x10000000 by
17256 # default) and relocated if they conflict, which is a slow very memory
17257 # consuming and fragmenting process. To avoid this, we pick a random,
17258 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17259 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17260 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'
17261 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'
17262 ;;
17263
17264 linux* | k*bsd*-gnu)
17265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17266 tmp_addflag=
17267 case $cc_basename,$host_cpu in
17268 pgcc*) # Portland Group C compiler
17269 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'
17270 tmp_addflag=' $pic_flag'
17271 ;;
17272 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17273 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'
17274 tmp_addflag=' $pic_flag -Mnomain' ;;
17275 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17276 tmp_addflag=' -i_dynamic' ;;
17277 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17278 tmp_addflag=' -i_dynamic -nofor_main' ;;
17279 ifc* | ifort*) # Intel Fortran compiler
17280 tmp_addflag=' -nofor_main' ;;
17281 esac
17282 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17283
17284 if test $supports_anon_versioning = yes; then
17285 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17287 $echo "local: *; };" >> $output_objdir/$libname.ver~
17288 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17289 fi
17290 link_all_deplibs_GCJ=no
17291 else
17292 ld_shlibs_GCJ=no
17293 fi
17294 ;;
17295
17296 netbsd* | netbsdelf*-gnu)
17297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17298 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17299 wlarc=
17300 else
17301 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17302 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17303 fi
17304 ;;
17305
17306 solaris*)
17307 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17308 ld_shlibs_GCJ=no
17309 cat <<EOF 1>&2
17310
17311 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17312 *** create shared libraries on Solaris systems. Therefore, libtool
17313 *** is disabling shared libraries support. We urge you to upgrade GNU
17314 *** binutils to release 2.9.1 or newer. Another option is to modify
17315 *** your PATH or compiler configuration so that the native linker is
17316 *** used, and then restart.
17317
17318 EOF
17319 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17320 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17321 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17322 else
17323 ld_shlibs_GCJ=no
17324 fi
17325 ;;
17326
17327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17328 case `$LD -v 2>&1` in
17329 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17330 ld_shlibs_GCJ=no
17331 cat <<_LT_EOF 1>&2
17332
17333 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17334 *** reliably create shared libraries on SCO systems. Therefore, libtool
17335 *** is disabling shared libraries support. We urge you to upgrade GNU
17336 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17337 *** your PATH or compiler configuration so that the native linker is
17338 *** used, and then restart.
17339
17340 _LT_EOF
17341 ;;
17342 *)
17343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17344 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17345 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17346 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17347 else
17348 ld_shlibs_GCJ=no
17349 fi
17350 ;;
17351 esac
17352 ;;
17353
17354 sunos4*)
17355 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17356 wlarc=
17357 hardcode_direct_GCJ=yes
17358 hardcode_shlibpath_var_GCJ=no
17359 ;;
17360
17361 *)
17362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17363 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17364 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17365 else
17366 ld_shlibs_GCJ=no
17367 fi
17368 ;;
17369 esac
17370
17371 if test "$ld_shlibs_GCJ" = no; then
17372 runpath_var=
17373 hardcode_libdir_flag_spec_GCJ=
17374 export_dynamic_flag_spec_GCJ=
17375 whole_archive_flag_spec_GCJ=
17376 fi
17377 else
17378 # PORTME fill in a description of your system's linker (not GNU ld)
17379 case $host_os in
17380 aix3*)
17381 allow_undefined_flag_GCJ=unsupported
17382 always_export_symbols_GCJ=yes
17383 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'
17384 # Note: this linker hardcodes the directories in LIBPATH if there
17385 # are no directories specified by -L.
17386 hardcode_minus_L_GCJ=yes
17387 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17388 # Neither direct hardcoding nor static linking is supported with a
17389 # broken collect2.
17390 hardcode_direct_GCJ=unsupported
17391 fi
17392 ;;
17393
17394 aix4* | aix5*)
17395 if test "$host_cpu" = ia64; then
17396 # On IA64, the linker does run time linking by default, so we don't
17397 # have to do anything special.
17398 aix_use_runtimelinking=no
17399 exp_sym_flag='-Bexport'
17400 no_entry_flag=""
17401 else
17402 # If we're using GNU nm, then we don't want the "-C" option.
17403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17404 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17405 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'
17406 else
17407 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'
17408 fi
17409 aix_use_runtimelinking=no
17410
17411 # Test if we are trying to use run time linking or normal
17412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17413 # need to do runtime linking.
17414 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17415 for ld_flag in $LDFLAGS; do
17416 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17417 aix_use_runtimelinking=yes
17418 break
17419 fi
17420 done
17421 ;;
17422 esac
17423
17424 exp_sym_flag='-bexport'
17425 no_entry_flag='-bnoentry'
17426 fi
17427
17428 # When large executables or shared objects are built, AIX ld can
17429 # have problems creating the table of contents. If linking a library
17430 # or program results in "error TOC overflow" add -mminimal-toc to
17431 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17432 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17433
17434 archive_cmds_GCJ=''
17435 hardcode_direct_GCJ=yes
17436 hardcode_libdir_separator_GCJ=':'
17437 link_all_deplibs_GCJ=yes
17438
17439 if test "$GCC" = yes; then
17440 case $host_os in aix4.[012]|aix4.[012].*)
17441 # We only want to do this on AIX 4.2 and lower, the check
17442 # below for broken collect2 doesn't work under 4.3+
17443 collect2name=`${CC} -print-prog-name=collect2`
17444 if test -f "$collect2name" && \
17445 strings "$collect2name" | grep resolve_lib_name >/dev/null
17446 then
17447 # We have reworked collect2
17448 hardcode_direct_GCJ=yes
17449 else
17450 # We have old collect2
17451 hardcode_direct_GCJ=unsupported
17452 # It fails to find uninstalled libraries when the uninstalled
17453 # path is not listed in the libpath. Setting hardcode_minus_L
17454 # to unsupported forces relinking
17455 hardcode_minus_L_GCJ=yes
17456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457 hardcode_libdir_separator_GCJ=
17458 fi
17459 ;;
17460 esac
17461 shared_flag='-shared'
17462 if test "$aix_use_runtimelinking" = yes; then
17463 shared_flag="$shared_flag "'${wl}-G'
17464 fi
17465 else
17466 # not using gcc
17467 if test "$host_cpu" = ia64; then
17468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17469 # chokes on -Wl,-G. The following line is correct:
17470 shared_flag='-G'
17471 else
17472 if test "$aix_use_runtimelinking" = yes; then
17473 shared_flag='${wl}-G'
17474 else
17475 shared_flag='${wl}-bM:SRE'
17476 fi
17477 fi
17478 fi
17479
17480 # It seems that -bexpall does not export symbols beginning with
17481 # underscore (_), so it is better to generate a list of symbols to export.
17482 always_export_symbols_GCJ=yes
17483 if test "$aix_use_runtimelinking" = yes; then
17484 # Warning - without using the other runtime loading flags (-brtl),
17485 # -berok will link without error, but may produce a broken library.
17486 allow_undefined_flag_GCJ='-berok'
17487 # Determine the default libpath from the value encoded in an empty executable.
17488 cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h. */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17494
17495 int
17496 main ()
17497 {
17498
17499 ;
17500 return 0;
17501 }
17502 _ACEOF
17503 rm -f conftest.$ac_objext conftest$ac_exeext
17504 if { (ac_try="$ac_link"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_link") 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17518 { (case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_try") 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest$ac_exeext'
17528 { (case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533 (eval "$ac_try") 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537
17538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17539 }'`
17540 # Check for a 64-bit object if we didn't find anything.
17541 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17542 }'`; fi
17543 else
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547
17548 fi
17549
17550 rm -f core conftest.err conftest.$ac_objext \
17551 conftest$ac_exeext conftest.$ac_ext
17552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17553
17554 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17555 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"
17556 else
17557 if test "$host_cpu" = ia64; then
17558 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17559 allow_undefined_flag_GCJ="-z nodefs"
17560 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"
17561 else
17562 # Determine the default libpath from the value encoded in an empty executable.
17563 cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h. */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569
17570 int
17571 main ()
17572 {
17573
17574 ;
17575 return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext conftest$ac_exeext
17579 if { (ac_try="$ac_link"
17580 case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585 (eval "$ac_link") 2>conftest.er1
17586 ac_status=$?
17587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593 { (case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_try") 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest$ac_exeext'
17603 { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_try") 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612
17613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17614 }'`
17615 # Check for a 64-bit object if we didn't find anything.
17616 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17617 }'`; fi
17618 else
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622
17623 fi
17624
17625 rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17628
17629 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17630 # Warning - without using the other run time loading flags,
17631 # -berok will link without error, but may produce a broken library.
17632 no_undefined_flag_GCJ=' ${wl}-bernotok'
17633 allow_undefined_flag_GCJ=' ${wl}-berok'
17634 # Exported symbols can be pulled into shared objects from archives
17635 whole_archive_flag_spec_GCJ='$convenience'
17636 archive_cmds_need_lc_GCJ=yes
17637 # This is similar to how AIX traditionally builds its shared libraries.
17638 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'
17639 fi
17640 fi
17641 ;;
17642
17643 amigaos*)
17644 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)'
17645 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17646 hardcode_minus_L_GCJ=yes
17647 # see comment about different semantics on the GNU ld section
17648 ld_shlibs_GCJ=no
17649 ;;
17650
17651 bsdi[45]*)
17652 export_dynamic_flag_spec_GCJ=-rdynamic
17653 ;;
17654
17655 cygwin* | mingw* | pw32*)
17656 # When not using gcc, we currently assume that we are using
17657 # Microsoft Visual C++.
17658 # hardcode_libdir_flag_spec is actually meaningless, as there is
17659 # no search path for DLLs.
17660 hardcode_libdir_flag_spec_GCJ=' '
17661 allow_undefined_flag_GCJ=unsupported
17662 # Tell ltmain to make .lib files, not .a files.
17663 libext=lib
17664 # Tell ltmain to make .dll files, not .so files.
17665 shrext_cmds=".dll"
17666 # FIXME: Setting linknames here is a bad hack.
17667 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17668 # The linker will automatically build a .lib file if we build a DLL.
17669 old_archive_From_new_cmds_GCJ='true'
17670 # FIXME: Should let the user specify the lib program.
17671 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17672 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17673 enable_shared_with_static_runtimes_GCJ=yes
17674 ;;
17675
17676 darwin* | rhapsody*)
17677 case $host_os in
17678 rhapsody* | darwin1.[012])
17679 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17680 ;;
17681 *) # Darwin 1.3 on
17682 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17683 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17684 else
17685 case ${MACOSX_DEPLOYMENT_TARGET} in
17686 10.[012])
17687 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17688 ;;
17689 10.*)
17690 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17691 ;;
17692 esac
17693 fi
17694 ;;
17695 esac
17696 archive_cmds_need_lc_GCJ=no
17697 hardcode_direct_GCJ=no
17698 hardcode_automatic_GCJ=yes
17699 hardcode_shlibpath_var_GCJ=unsupported
17700 whole_archive_flag_spec_GCJ=''
17701 link_all_deplibs_GCJ=yes
17702 if test "$GCC" = yes ; then
17703 output_verbose_link_cmd='echo'
17704 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17705 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17707 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}'
17708 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}'
17709 else
17710 case $cc_basename in
17711 xlc*)
17712 output_verbose_link_cmd='echo'
17713 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17714 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17715 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17716 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17717 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}'
17718 ;;
17719 *)
17720 ld_shlibs_GCJ=no
17721 ;;
17722 esac
17723 fi
17724 ;;
17725
17726 dgux*)
17727 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17729 hardcode_shlibpath_var_GCJ=no
17730 ;;
17731
17732 freebsd1*)
17733 ld_shlibs_GCJ=no
17734 ;;
17735
17736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17737 # support. Future versions do this automatically, but an explicit c++rt0.o
17738 # does not break anything, and helps significantly (at the cost of a little
17739 # extra space).
17740 freebsd2.2*)
17741 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17742 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17743 hardcode_direct_GCJ=yes
17744 hardcode_shlibpath_var_GCJ=no
17745 ;;
17746
17747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17748 freebsd2*)
17749 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17750 hardcode_direct_GCJ=yes
17751 hardcode_minus_L_GCJ=yes
17752 hardcode_shlibpath_var_GCJ=no
17753 ;;
17754
17755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17756 freebsd* | dragonfly*)
17757 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17758 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17759 hardcode_direct_GCJ=yes
17760 hardcode_shlibpath_var_GCJ=no
17761 ;;
17762
17763 hpux9*)
17764 if test "$GCC" = yes; then
17765 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'
17766 else
17767 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'
17768 fi
17769 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17770 hardcode_libdir_separator_GCJ=:
17771 hardcode_direct_GCJ=yes
17772
17773 # hardcode_minus_L: Not really in the search PATH,
17774 # but as the default location of the library.
17775 hardcode_minus_L_GCJ=yes
17776 export_dynamic_flag_spec_GCJ='${wl}-E'
17777 ;;
17778
17779 hpux10*)
17780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17781 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17782 else
17783 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17784 fi
17785 if test "$with_gnu_ld" = no; then
17786 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17787 hardcode_libdir_separator_GCJ=:
17788
17789 hardcode_direct_GCJ=yes
17790 export_dynamic_flag_spec_GCJ='${wl}-E'
17791
17792 # hardcode_minus_L: Not really in the search PATH,
17793 # but as the default location of the library.
17794 hardcode_minus_L_GCJ=yes
17795 fi
17796 ;;
17797
17798 hpux11*)
17799 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17800 case $host_cpu in
17801 hppa*64*)
17802 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17803 ;;
17804 ia64*)
17805 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17806 ;;
17807 *)
17808 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17809 ;;
17810 esac
17811 else
17812 case $host_cpu in
17813 hppa*64*)
17814 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17815 ;;
17816 ia64*)
17817 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17818 ;;
17819 *)
17820 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17821 ;;
17822 esac
17823 fi
17824 if test "$with_gnu_ld" = no; then
17825 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17826 hardcode_libdir_separator_GCJ=:
17827
17828 case $host_cpu in
17829 hppa*64*|ia64*)
17830 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17831 hardcode_direct_GCJ=no
17832 hardcode_shlibpath_var_GCJ=no
17833 ;;
17834 *)
17835 hardcode_direct_GCJ=yes
17836 export_dynamic_flag_spec_GCJ='${wl}-E'
17837
17838 # hardcode_minus_L: Not really in the search PATH,
17839 # but as the default location of the library.
17840 hardcode_minus_L_GCJ=yes
17841 ;;
17842 esac
17843 fi
17844 ;;
17845
17846 irix5* | irix6* | nonstopux*)
17847 if test "$GCC" = yes; then
17848 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'
17849 else
17850 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'
17851 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17852 fi
17853 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17854 hardcode_libdir_separator_GCJ=:
17855 link_all_deplibs_GCJ=yes
17856 ;;
17857
17858 netbsd* | netbsdelf*-gnu)
17859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17860 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17861 else
17862 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17863 fi
17864 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17865 hardcode_direct_GCJ=yes
17866 hardcode_shlibpath_var_GCJ=no
17867 ;;
17868
17869 newsos6)
17870 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17871 hardcode_direct_GCJ=yes
17872 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17873 hardcode_libdir_separator_GCJ=:
17874 hardcode_shlibpath_var_GCJ=no
17875 ;;
17876
17877 openbsd*)
17878 hardcode_direct_GCJ=yes
17879 hardcode_shlibpath_var_GCJ=no
17880 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17881 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17882 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17884 export_dynamic_flag_spec_GCJ='${wl}-E'
17885 else
17886 case $host_os in
17887 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17889 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17890 ;;
17891 *)
17892 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17893 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17894 ;;
17895 esac
17896 fi
17897 ;;
17898
17899 os2*)
17900 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17901 hardcode_minus_L_GCJ=yes
17902 allow_undefined_flag_GCJ=unsupported
17903 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'
17904 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17905 ;;
17906
17907 osf3*)
17908 if test "$GCC" = yes; then
17909 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17910 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'
17911 else
17912 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17913 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'
17914 fi
17915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17916 hardcode_libdir_separator_GCJ=:
17917 ;;
17918
17919 osf4* | osf5*) # as osf3* with the addition of -msym flag
17920 if test "$GCC" = yes; then
17921 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17922 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'
17923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17924 else
17925 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17926 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'
17927 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~
17928 $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'
17929
17930 # Both c and cxx compiler support -rpath directly
17931 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17932 fi
17933 hardcode_libdir_separator_GCJ=:
17934 ;;
17935
17936 solaris*)
17937 no_undefined_flag_GCJ=' -z text'
17938 if test "$GCC" = yes; then
17939 wlarc='${wl}'
17940 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17941 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17942 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17943 else
17944 wlarc=''
17945 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17946 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17947 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17948 fi
17949 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17950 hardcode_shlibpath_var_GCJ=no
17951 case $host_os in
17952 solaris2.[0-5] | solaris2.[0-5].*) ;;
17953 *)
17954 # The compiler driver will combine linker options so we
17955 # cannot just pass the convience library names through
17956 # without $wl, iff we do not link with $LD.
17957 # Luckily, gcc supports the same syntax we need for Sun Studio.
17958 # Supported since Solaris 2.6 (maybe 2.5.1?)
17959 case $wlarc in
17960 '')
17961 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17962 *)
17963 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17964 esac ;;
17965 esac
17966 link_all_deplibs_GCJ=yes
17967 ;;
17968
17969 sunos4*)
17970 if test "x$host_vendor" = xsequent; then
17971 # Use $CC to link under sequent, because it throws in some extra .o
17972 # files that make .init and .fini sections work.
17973 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17974 else
17975 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17976 fi
17977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17978 hardcode_direct_GCJ=yes
17979 hardcode_minus_L_GCJ=yes
17980 hardcode_shlibpath_var_GCJ=no
17981 ;;
17982
17983 sysv4)
17984 case $host_vendor in
17985 sni)
17986 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17987 hardcode_direct_GCJ=yes # is this really true???
17988 ;;
17989 siemens)
17990 ## LD is ld it makes a PLAMLIB
17991 ## CC just makes a GrossModule.
17992 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17993 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17994 hardcode_direct_GCJ=no
17995 ;;
17996 motorola)
17997 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17998 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17999 ;;
18000 esac
18001 runpath_var='LD_RUN_PATH'
18002 hardcode_shlibpath_var_GCJ=no
18003 ;;
18004
18005 sysv4.3*)
18006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18007 hardcode_shlibpath_var_GCJ=no
18008 export_dynamic_flag_spec_GCJ='-Bexport'
18009 ;;
18010
18011 sysv4*MP*)
18012 if test -d /usr/nec; then
18013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18014 hardcode_shlibpath_var_GCJ=no
18015 runpath_var=LD_RUN_PATH
18016 hardcode_runpath_var=yes
18017 ld_shlibs_GCJ=yes
18018 fi
18019 ;;
18020
18021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18022 no_undefined_flag_GCJ='${wl}-z,text'
18023 archive_cmds_need_lc_GCJ=no
18024 hardcode_shlibpath_var_GCJ=no
18025 runpath_var='LD_RUN_PATH'
18026
18027 if test "$GCC" = yes; then
18028 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18029 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18030 else
18031 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18032 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18033 fi
18034 ;;
18035
18036 sysv5* | sco3.2v5* | sco5v6*)
18037 # Note: We can NOT use -z defs as we might desire, because we do not
18038 # link with -lc, and that would cause any symbols used from libc to
18039 # always be unresolved, which means just about no library would
18040 # ever link correctly. If we're not using GNU ld we use -z text
18041 # though, which does catch some bad symbols but isn't as heavy-handed
18042 # as -z defs.
18043 no_undefined_flag_GCJ='${wl}-z,text'
18044 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18045 archive_cmds_need_lc_GCJ=no
18046 hardcode_shlibpath_var_GCJ=no
18047 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18048 hardcode_libdir_separator_GCJ=':'
18049 link_all_deplibs_GCJ=yes
18050 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18051 runpath_var='LD_RUN_PATH'
18052
18053 if test "$GCC" = yes; then
18054 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18056 else
18057 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18059 fi
18060 ;;
18061
18062 uts4*)
18063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18064 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065 hardcode_shlibpath_var_GCJ=no
18066 ;;
18067
18068 *)
18069 ld_shlibs_GCJ=no
18070 ;;
18071 esac
18072 fi
18073
18074 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18075 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18076 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18077
18078 #
18079 # Do we need to explicitly link libc?
18080 #
18081 case "x$archive_cmds_need_lc_GCJ" in
18082 x|xyes)
18083 # Assume -lc should be added
18084 archive_cmds_need_lc_GCJ=yes
18085
18086 if test "$enable_shared" = yes && test "$GCC" = yes; then
18087 case $archive_cmds_GCJ in
18088 *'~'*)
18089 # FIXME: we may have to deal with multi-command sequences.
18090 ;;
18091 '$CC '*)
18092 # Test whether the compiler implicitly links with -lc since on some
18093 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18094 # to ld, don't add -lc before -lgcc.
18095 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18096 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18097 $rm conftest*
18098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18099
18100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18101 (eval $ac_compile) 2>&5
18102 ac_status=$?
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } 2>conftest.err; then
18105 soname=conftest
18106 lib=conftest
18107 libobjs=conftest.$ac_objext
18108 deplibs=
18109 wl=$lt_prog_compiler_wl_GCJ
18110 pic_flag=$lt_prog_compiler_pic_GCJ
18111 compiler_flags=-v
18112 linker_flags=-v
18113 verstring=
18114 output_objdir=.
18115 libname=conftest
18116 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18117 allow_undefined_flag_GCJ=
18118 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18119 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }
18123 then
18124 archive_cmds_need_lc_GCJ=no
18125 else
18126 archive_cmds_need_lc_GCJ=yes
18127 fi
18128 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18129 else
18130 cat conftest.err 1>&5
18131 fi
18132 $rm conftest*
18133 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18134 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18135 ;;
18136 esac
18137 fi
18138 ;;
18139 esac
18140
18141 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18142 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18143 library_names_spec=
18144 libname_spec='lib$name'
18145 soname_spec=
18146 shrext_cmds=".so"
18147 postinstall_cmds=
18148 postuninstall_cmds=
18149 finish_cmds=
18150 finish_eval=
18151 shlibpath_var=
18152 shlibpath_overrides_runpath=unknown
18153 version_type=none
18154 dynamic_linker="$host_os ld.so"
18155 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18156 if test "$GCC" = yes; then
18157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18158 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18159 # if the path contains ";" then we assume it to be the separator
18160 # otherwise default to the standard path separator (i.e. ":") - it is
18161 # assumed that no part of a normal pathname contains ";" but that should
18162 # okay in the real world where ";" in dirpaths is itself problematic.
18163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18164 else
18165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18166 fi
18167 else
18168 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18169 fi
18170 need_lib_prefix=unknown
18171 hardcode_into_libs=no
18172
18173 # when you set need_version to no, make sure it does not cause -set_version
18174 # flags to be left without arguments
18175 need_version=unknown
18176
18177 case $host_os in
18178 aix3*)
18179 version_type=linux
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18181 shlibpath_var=LIBPATH
18182
18183 # AIX 3 has no versioning support, so we append a major version to the name.
18184 soname_spec='${libname}${release}${shared_ext}$major'
18185 ;;
18186
18187 aix4* | aix5*)
18188 version_type=linux
18189 need_lib_prefix=no
18190 need_version=no
18191 hardcode_into_libs=yes
18192 if test "$host_cpu" = ia64; then
18193 # AIX 5 supports IA64
18194 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 else
18197 # With GCC up to 2.95.x, collect2 would create an import file
18198 # for dependence libraries. The import file would start with
18199 # the line `#! .'. This would cause the generated library to
18200 # depend on `.', always an invalid library. This was fixed in
18201 # development snapshots of GCC prior to 3.0.
18202 case $host_os in
18203 aix4 | aix4.[01] | aix4.[01].*)
18204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18205 echo ' yes '
18206 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18207 :
18208 else
18209 can_build_shared=no
18210 fi
18211 ;;
18212 esac
18213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18214 # soname into executable. Probably we can add versioning support to
18215 # collect2, so additional links can be useful in future.
18216 if test "$aix_use_runtimelinking" = yes; then
18217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18218 # instead of lib<name>.a to let people know that these are not
18219 # typical AIX shared libraries.
18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221 else
18222 # We preserve .a as extension for shared libraries through AIX4.2
18223 # and later when we are not doing run time linking.
18224 library_names_spec='${libname}${release}.a $libname.a'
18225 soname_spec='${libname}${release}${shared_ext}$major'
18226 fi
18227 shlibpath_var=LIBPATH
18228 fi
18229 ;;
18230
18231 amigaos*)
18232 library_names_spec='$libname.ixlibrary $libname.a'
18233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18234 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'
18235 ;;
18236
18237 beos*)
18238 library_names_spec='${libname}${shared_ext}'
18239 dynamic_linker="$host_os ld.so"
18240 shlibpath_var=LIBRARY_PATH
18241 ;;
18242
18243 bsdi[45]*)
18244 version_type=linux
18245 need_version=no
18246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18247 soname_spec='${libname}${release}${shared_ext}$major'
18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18252 # the default ld.so.conf also contains /usr/contrib/lib and
18253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18254 # libtool to hard-code these into programs
18255 ;;
18256
18257 cygwin* | mingw* | pw32*)
18258 version_type=windows
18259 shrext_cmds=".dll"
18260 need_version=no
18261 need_lib_prefix=no
18262
18263 case $GCC,$host_os in
18264 yes,cygwin* | yes,mingw* | yes,pw32*)
18265 library_names_spec='$libname.dll.a'
18266 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18267 postinstall_cmds='base_file=`basename \${file}`~
18268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18269 dldir=$destdir/`dirname \$dlpath`~
18270 test -d \$dldir || mkdir -p \$dldir~
18271 $install_prog $dir/$dlname \$dldir/$dlname~
18272 chmod a+x \$dldir/$dlname'
18273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18274 dlpath=$dir/\$dldll~
18275 $rm \$dlpath'
18276 shlibpath_overrides_runpath=yes
18277
18278 case $host_os in
18279 cygwin*)
18280 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18281 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18282 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18283 ;;
18284 mingw*)
18285 # MinGW DLLs use traditional 'lib' prefix
18286 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18287 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18288 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18289 # It is most probably a Windows format PATH printed by
18290 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18291 # path with ; separators, and with drive letters. We can handle the
18292 # drive letters (cygwin fileutils understands them), so leave them,
18293 # especially as we might pass files found there to a mingw objdump,
18294 # which wouldn't understand a cygwinified path. Ahh.
18295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18296 else
18297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18298 fi
18299 ;;
18300 pw32*)
18301 # pw32 DLLs use 'pw' prefix rather than 'lib'
18302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18303 ;;
18304 esac
18305 ;;
18306
18307 *)
18308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18309 ;;
18310 esac
18311 dynamic_linker='Win32 ld.exe'
18312 # FIXME: first we should search . and the directory the executable is in
18313 shlibpath_var=PATH
18314 ;;
18315
18316 darwin* | rhapsody*)
18317 dynamic_linker="$host_os dyld"
18318 version_type=darwin
18319 need_lib_prefix=no
18320 need_version=no
18321 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18322 soname_spec='${libname}${release}${major}$shared_ext'
18323 shlibpath_overrides_runpath=yes
18324 shlibpath_var=DYLD_LIBRARY_PATH
18325 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18326 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18327 if test "$GCC" = yes; then
18328 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18329 else
18330 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18331 fi
18332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18333 ;;
18334
18335 dgux*)
18336 version_type=linux
18337 need_lib_prefix=no
18338 need_version=no
18339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18340 soname_spec='${libname}${release}${shared_ext}$major'
18341 shlibpath_var=LD_LIBRARY_PATH
18342 ;;
18343
18344 freebsd1*)
18345 dynamic_linker=no
18346 ;;
18347
18348 freebsd* | dragonfly*)
18349 # DragonFly does not have aout. When/if they implement a new
18350 # versioning mechanism, adjust this.
18351 if test -x /usr/bin/objformat; then
18352 objformat=`/usr/bin/objformat`
18353 else
18354 case $host_os in
18355 freebsd[123]*) objformat=aout ;;
18356 *) objformat=elf ;;
18357 esac
18358 fi
18359 version_type=freebsd-$objformat
18360 case $version_type in
18361 freebsd-elf*)
18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18363 need_version=no
18364 need_lib_prefix=no
18365 ;;
18366 freebsd-*)
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18368 need_version=yes
18369 ;;
18370 esac
18371 shlibpath_var=LD_LIBRARY_PATH
18372 case $host_os in
18373 freebsd2*)
18374 shlibpath_overrides_runpath=yes
18375 ;;
18376 freebsd3.[01]* | freebsdelf3.[01]*)
18377 shlibpath_overrides_runpath=yes
18378 hardcode_into_libs=yes
18379 ;;
18380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18382 shlibpath_overrides_runpath=no
18383 hardcode_into_libs=yes
18384 ;;
18385 freebsd*) # from 4.6 on
18386 shlibpath_overrides_runpath=yes
18387 hardcode_into_libs=yes
18388 ;;
18389 esac
18390 ;;
18391
18392 gnu*)
18393 version_type=linux
18394 need_lib_prefix=no
18395 need_version=no
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18398 shlibpath_var=LD_LIBRARY_PATH
18399 hardcode_into_libs=yes
18400 ;;
18401
18402 hpux9* | hpux10* | hpux11*)
18403 # Give a soname corresponding to the major version so that dld.sl refuses to
18404 # link against other versions.
18405 version_type=sunos
18406 need_lib_prefix=no
18407 need_version=no
18408 case $host_cpu in
18409 ia64*)
18410 shrext_cmds='.so'
18411 hardcode_into_libs=yes
18412 dynamic_linker="$host_os dld.so"
18413 shlibpath_var=LD_LIBRARY_PATH
18414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18416 soname_spec='${libname}${release}${shared_ext}$major'
18417 if test "X$HPUX_IA64_MODE" = X32; then
18418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18419 else
18420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18421 fi
18422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18423 ;;
18424 hppa*64*)
18425 shrext_cmds='.sl'
18426 hardcode_into_libs=yes
18427 dynamic_linker="$host_os dld.sl"
18428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431 soname_spec='${libname}${release}${shared_ext}$major'
18432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18434 ;;
18435 *)
18436 shrext_cmds='.sl'
18437 dynamic_linker="$host_os dld.sl"
18438 shlibpath_var=SHLIB_PATH
18439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18441 soname_spec='${libname}${release}${shared_ext}$major'
18442 ;;
18443 esac
18444 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18445 postinstall_cmds='chmod 555 $lib'
18446 ;;
18447
18448 interix3*)
18449 version_type=linux
18450 need_lib_prefix=no
18451 need_version=no
18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18453 soname_spec='${libname}${release}${shared_ext}$major'
18454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 shlibpath_overrides_runpath=no
18457 hardcode_into_libs=yes
18458 ;;
18459
18460 irix5* | irix6* | nonstopux*)
18461 case $host_os in
18462 nonstopux*) version_type=nonstopux ;;
18463 *)
18464 if test "$lt_cv_prog_gnu_ld" = yes; then
18465 version_type=linux
18466 else
18467 version_type=irix
18468 fi ;;
18469 esac
18470 need_lib_prefix=no
18471 need_version=no
18472 soname_spec='${libname}${release}${shared_ext}$major'
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18474 case $host_os in
18475 irix5* | nonstopux*)
18476 libsuff= shlibsuff=
18477 ;;
18478 *)
18479 case $LD in # libtool.m4 will add one of these switches to LD
18480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18481 libsuff= shlibsuff= libmagic=32-bit;;
18482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18483 libsuff=32 shlibsuff=N32 libmagic=N32;;
18484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18486 *) libsuff= shlibsuff= libmagic=never-match;;
18487 esac
18488 ;;
18489 esac
18490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18491 shlibpath_overrides_runpath=no
18492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18494 hardcode_into_libs=yes
18495 ;;
18496
18497 # No shared lib support for Linux oldld, aout, or coff.
18498 linux*oldld* | linux*aout* | linux*coff*)
18499 dynamic_linker=no
18500 ;;
18501
18502 # This must be Linux ELF.
18503 linux* | k*bsd*-gnu)
18504 version_type=linux
18505 need_lib_prefix=no
18506 need_version=no
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18510 shlibpath_var=LD_LIBRARY_PATH
18511 shlibpath_overrides_runpath=no
18512 # This implies no fast_install, which is unacceptable.
18513 # Some rework will be needed to allow for fast_install
18514 # before this can be enabled.
18515 hardcode_into_libs=yes
18516
18517 # Append ld.so.conf contents to the search path
18518 if test -f /etc/ld.so.conf; then
18519 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18520 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18521 fi
18522
18523 # We used to test for /lib/ld.so.1 and disable shared libraries on
18524 # powerpc, because MkLinux only supported shared libraries with the
18525 # GNU dynamic linker. Since this was broken with cross compilers,
18526 # most powerpc-linux boxes support dynamic linking these days and
18527 # people can always --disable-shared, the test was removed, and we
18528 # assume the GNU/Linux dynamic linker is in use.
18529 dynamic_linker='GNU/Linux ld.so'
18530 ;;
18531
18532 netbsdelf*-gnu)
18533 version_type=linux
18534 need_lib_prefix=no
18535 need_version=no
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18537 soname_spec='${libname}${release}${shared_ext}$major'
18538 shlibpath_var=LD_LIBRARY_PATH
18539 shlibpath_overrides_runpath=no
18540 hardcode_into_libs=yes
18541 dynamic_linker='NetBSD ld.elf_so'
18542 ;;
18543
18544 netbsd*)
18545 version_type=sunos
18546 need_lib_prefix=no
18547 need_version=no
18548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18551 dynamic_linker='NetBSD (a.out) ld.so'
18552 else
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18554 soname_spec='${libname}${release}${shared_ext}$major'
18555 dynamic_linker='NetBSD ld.elf_so'
18556 fi
18557 shlibpath_var=LD_LIBRARY_PATH
18558 shlibpath_overrides_runpath=yes
18559 hardcode_into_libs=yes
18560 ;;
18561
18562 newsos6)
18563 version_type=linux
18564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565 shlibpath_var=LD_LIBRARY_PATH
18566 shlibpath_overrides_runpath=yes
18567 ;;
18568
18569 nto-qnx*)
18570 version_type=linux
18571 need_lib_prefix=no
18572 need_version=no
18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18574 soname_spec='${libname}${release}${shared_ext}$major'
18575 shlibpath_var=LD_LIBRARY_PATH
18576 shlibpath_overrides_runpath=yes
18577 ;;
18578
18579 openbsd*)
18580 version_type=sunos
18581 sys_lib_dlsearch_path_spec="/usr/lib"
18582 need_lib_prefix=no
18583 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18584 case $host_os in
18585 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18586 *) need_version=no ;;
18587 esac
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18590 shlibpath_var=LD_LIBRARY_PATH
18591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18592 case $host_os in
18593 openbsd2.[89] | openbsd2.[89].*)
18594 shlibpath_overrides_runpath=no
18595 ;;
18596 *)
18597 shlibpath_overrides_runpath=yes
18598 ;;
18599 esac
18600 else
18601 shlibpath_overrides_runpath=yes
18602 fi
18603 ;;
18604
18605 os2*)
18606 libname_spec='$name'
18607 shrext_cmds=".dll"
18608 need_lib_prefix=no
18609 library_names_spec='$libname${shared_ext} $libname.a'
18610 dynamic_linker='OS/2 ld.exe'
18611 shlibpath_var=LIBPATH
18612 ;;
18613
18614 osf3* | osf4* | osf5*)
18615 version_type=osf
18616 need_lib_prefix=no
18617 need_version=no
18618 soname_spec='${libname}${release}${shared_ext}$major'
18619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18620 shlibpath_var=LD_LIBRARY_PATH
18621 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18622 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18623 ;;
18624
18625 solaris*)
18626 version_type=linux
18627 need_lib_prefix=no
18628 need_version=no
18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630 soname_spec='${libname}${release}${shared_ext}$major'
18631 shlibpath_var=LD_LIBRARY_PATH
18632 shlibpath_overrides_runpath=yes
18633 hardcode_into_libs=yes
18634 # ldd complains unless libraries are executable
18635 postinstall_cmds='chmod +x $lib'
18636 ;;
18637
18638 sunos4*)
18639 version_type=sunos
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18641 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 shlibpath_overrides_runpath=yes
18644 if test "$with_gnu_ld" = yes; then
18645 need_lib_prefix=no
18646 fi
18647 need_version=yes
18648 ;;
18649
18650 sysv4 | sysv4.3*)
18651 version_type=linux
18652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18653 soname_spec='${libname}${release}${shared_ext}$major'
18654 shlibpath_var=LD_LIBRARY_PATH
18655 case $host_vendor in
18656 sni)
18657 shlibpath_overrides_runpath=no
18658 need_lib_prefix=no
18659 export_dynamic_flag_spec='${wl}-Blargedynsym'
18660 runpath_var=LD_RUN_PATH
18661 ;;
18662 siemens)
18663 need_lib_prefix=no
18664 ;;
18665 motorola)
18666 need_lib_prefix=no
18667 need_version=no
18668 shlibpath_overrides_runpath=no
18669 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18670 ;;
18671 esac
18672 ;;
18673
18674 sysv4*MP*)
18675 if test -d /usr/nec ;then
18676 version_type=linux
18677 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18678 soname_spec='$libname${shared_ext}.$major'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 fi
18681 ;;
18682
18683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18684 version_type=freebsd-elf
18685 need_lib_prefix=no
18686 need_version=no
18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18688 soname_spec='${libname}${release}${shared_ext}$major'
18689 shlibpath_var=LD_LIBRARY_PATH
18690 hardcode_into_libs=yes
18691 if test "$with_gnu_ld" = yes; then
18692 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18693 shlibpath_overrides_runpath=no
18694 else
18695 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18696 shlibpath_overrides_runpath=yes
18697 case $host_os in
18698 sco3.2v5*)
18699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18700 ;;
18701 esac
18702 fi
18703 sys_lib_dlsearch_path_spec='/usr/lib'
18704 ;;
18705
18706 uts4*)
18707 version_type=linux
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18709 soname_spec='${libname}${release}${shared_ext}$major'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 ;;
18712
18713 *)
18714 dynamic_linker=no
18715 ;;
18716 esac
18717 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18718 echo "${ECHO_T}$dynamic_linker" >&6; }
18719 test "$dynamic_linker" = no && can_build_shared=no
18720
18721 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18722 if test "$GCC" = yes; then
18723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18724 fi
18725
18726 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18727 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18728 hardcode_action_GCJ=
18729 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18730 test -n "$runpath_var_GCJ" || \
18731 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18732
18733 # We can hardcode non-existant directories.
18734 if test "$hardcode_direct_GCJ" != no &&
18735 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18736 # have to relink, otherwise we might link with an installed library
18737 # when we should be linking with a yet-to-be-installed one
18738 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18739 test "$hardcode_minus_L_GCJ" != no; then
18740 # Linking always hardcodes the temporary library directory.
18741 hardcode_action_GCJ=relink
18742 else
18743 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18744 hardcode_action_GCJ=immediate
18745 fi
18746 else
18747 # We cannot hardcode anything, or else we can only hardcode existing
18748 # directories.
18749 hardcode_action_GCJ=unsupported
18750 fi
18751 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18752 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18753
18754 if test "$hardcode_action_GCJ" = relink; then
18755 # Fast installation is not supported
18756 enable_fast_install=no
18757 elif test "$shlibpath_overrides_runpath" = yes ||
18758 test "$enable_shared" = no; then
18759 # Fast installation is not necessary
18760 enable_fast_install=needless
18761 fi
18762
18763
18764 # The else clause should only fire when bootstrapping the
18765 # libtool distribution, otherwise you forgot to ship ltmain.sh
18766 # with your package, and you will get complaints that there are
18767 # no rules to generate ltmain.sh.
18768 if test -f "$ltmain"; then
18769 # See if we are running on zsh, and set the options which allow our commands through
18770 # without removal of \ escapes.
18771 if test -n "${ZSH_VERSION+set}" ; then
18772 setopt NO_GLOB_SUBST
18773 fi
18774 # Now quote all the things that may contain metacharacters while being
18775 # careful not to overquote the AC_SUBSTed values. We take copies of the
18776 # variables and quote the copies for generation of the libtool script.
18777 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18778 SED SHELL STRIP \
18779 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18780 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18781 deplibs_check_method reload_flag reload_cmds need_locks \
18782 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18783 lt_cv_sys_global_symbol_to_c_name_address \
18784 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18785 old_postinstall_cmds old_postuninstall_cmds \
18786 compiler_GCJ \
18787 CC_GCJ \
18788 LD_GCJ \
18789 lt_prog_compiler_wl_GCJ \
18790 lt_prog_compiler_pic_GCJ \
18791 lt_prog_compiler_static_GCJ \
18792 lt_prog_compiler_no_builtin_flag_GCJ \
18793 export_dynamic_flag_spec_GCJ \
18794 thread_safe_flag_spec_GCJ \
18795 whole_archive_flag_spec_GCJ \
18796 enable_shared_with_static_runtimes_GCJ \
18797 old_archive_cmds_GCJ \
18798 old_archive_from_new_cmds_GCJ \
18799 predep_objects_GCJ \
18800 postdep_objects_GCJ \
18801 predeps_GCJ \
18802 postdeps_GCJ \
18803 compiler_lib_search_path_GCJ \
18804 archive_cmds_GCJ \
18805 archive_expsym_cmds_GCJ \
18806 postinstall_cmds_GCJ \
18807 postuninstall_cmds_GCJ \
18808 old_archive_from_expsyms_cmds_GCJ \
18809 allow_undefined_flag_GCJ \
18810 no_undefined_flag_GCJ \
18811 export_symbols_cmds_GCJ \
18812 hardcode_libdir_flag_spec_GCJ \
18813 hardcode_libdir_flag_spec_ld_GCJ \
18814 hardcode_libdir_separator_GCJ \
18815 hardcode_automatic_GCJ \
18816 module_cmds_GCJ \
18817 module_expsym_cmds_GCJ \
18818 lt_cv_prog_compiler_c_o_GCJ \
18819 exclude_expsyms_GCJ \
18820 include_expsyms_GCJ; do
18821
18822 case $var in
18823 old_archive_cmds_GCJ | \
18824 old_archive_from_new_cmds_GCJ | \
18825 archive_cmds_GCJ | \
18826 archive_expsym_cmds_GCJ | \
18827 module_cmds_GCJ | \
18828 module_expsym_cmds_GCJ | \
18829 old_archive_from_expsyms_cmds_GCJ | \
18830 export_symbols_cmds_GCJ | \
18831 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18832 postinstall_cmds | postuninstall_cmds | \
18833 old_postinstall_cmds | old_postuninstall_cmds | \
18834 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18835 # Double-quote double-evaled strings.
18836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18837 ;;
18838 *)
18839 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18840 ;;
18841 esac
18842 done
18843
18844 case $lt_echo in
18845 *'\$0 --fallback-echo"')
18846 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18847 ;;
18848 esac
18849
18850 cfgfile="$ofile"
18851
18852 cat <<__EOF__ >> "$cfgfile"
18853 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18854
18855 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18856
18857 # Shell to use when invoking shell scripts.
18858 SHELL=$lt_SHELL
18859
18860 # Whether or not to build shared libraries.
18861 build_libtool_libs=$enable_shared
18862
18863 # Whether or not to build static libraries.
18864 build_old_libs=$enable_static
18865
18866 # Whether or not to add -lc for building shared libraries.
18867 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18868
18869 # Whether or not to disallow shared libs when runtime libs are static
18870 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18871
18872 # Whether or not to optimize for fast installation.
18873 fast_install=$enable_fast_install
18874
18875 # The host system.
18876 host_alias=$host_alias
18877 host=$host
18878 host_os=$host_os
18879
18880 # The build system.
18881 build_alias=$build_alias
18882 build=$build
18883 build_os=$build_os
18884
18885 # An echo program that does not interpret backslashes.
18886 echo=$lt_echo
18887
18888 # The archiver.
18889 AR=$lt_AR
18890 AR_FLAGS=$lt_AR_FLAGS
18891
18892 # A C compiler.
18893 LTCC=$lt_LTCC
18894
18895 # LTCC compiler flags.
18896 LTCFLAGS=$lt_LTCFLAGS
18897
18898 # A language-specific compiler.
18899 CC=$lt_compiler_GCJ
18900
18901 # Is the compiler the GNU C compiler?
18902 with_gcc=$GCC_GCJ
18903
18904 # An ERE matcher.
18905 EGREP=$lt_EGREP
18906
18907 # The linker used to build libraries.
18908 LD=$lt_LD_GCJ
18909
18910 # Whether we need hard or soft links.
18911 LN_S=$lt_LN_S
18912
18913 # A BSD-compatible nm program.
18914 NM=$lt_NM
18915
18916 # A symbol stripping program
18917 STRIP=$lt_STRIP
18918
18919 # Used to examine libraries when file_magic_cmd begins "file"
18920 MAGIC_CMD=$MAGIC_CMD
18921
18922 # Used on cygwin: DLL creation program.
18923 DLLTOOL="$DLLTOOL"
18924
18925 # Used on cygwin: object dumper.
18926 OBJDUMP="$OBJDUMP"
18927
18928 # Used on cygwin: assembler.
18929 AS="$AS"
18930
18931 # The name of the directory that contains temporary libtool files.
18932 objdir=$objdir
18933
18934 # How to create reloadable object files.
18935 reload_flag=$lt_reload_flag
18936 reload_cmds=$lt_reload_cmds
18937
18938 # How to pass a linker flag through the compiler.
18939 wl=$lt_lt_prog_compiler_wl_GCJ
18940
18941 # Object file suffix (normally "o").
18942 objext="$ac_objext"
18943
18944 # Old archive suffix (normally "a").
18945 libext="$libext"
18946
18947 # Shared library suffix (normally ".so").
18948 shrext_cmds='$shrext_cmds'
18949
18950 # Executable file suffix (normally "").
18951 exeext="$exeext"
18952
18953 # Additional compiler flags for building library objects.
18954 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18955 pic_mode=$pic_mode
18956
18957 # What is the maximum length of a command?
18958 max_cmd_len=$lt_cv_sys_max_cmd_len
18959
18960 # Does compiler simultaneously support -c and -o options?
18961 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18962
18963 # Must we lock files when doing compilation?
18964 need_locks=$lt_need_locks
18965
18966 # Do we need the lib prefix for modules?
18967 need_lib_prefix=$need_lib_prefix
18968
18969 # Do we need a version for libraries?
18970 need_version=$need_version
18971
18972 # Whether dlopen is supported.
18973 dlopen_support=$enable_dlopen
18974
18975 # Whether dlopen of programs is supported.
18976 dlopen_self=$enable_dlopen_self
18977
18978 # Whether dlopen of statically linked programs is supported.
18979 dlopen_self_static=$enable_dlopen_self_static
18980
18981 # Compiler flag to prevent dynamic linking.
18982 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18983
18984 # Compiler flag to turn off builtin functions.
18985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18986
18987 # Compiler flag to allow reflexive dlopens.
18988 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18989
18990 # Compiler flag to generate shared objects directly from archives.
18991 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18992
18993 # Compiler flag to generate thread-safe objects.
18994 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18995
18996 # Library versioning type.
18997 version_type=$version_type
18998
18999 # Format of library name prefix.
19000 libname_spec=$lt_libname_spec
19001
19002 # List of archive names. First name is the real one, the rest are links.
19003 # The last name is the one that the linker finds with -lNAME.
19004 library_names_spec=$lt_library_names_spec
19005
19006 # The coded name of the library, if different from the real name.
19007 soname_spec=$lt_soname_spec
19008
19009 # Commands used to build and install an old-style archive.
19010 RANLIB=$lt_RANLIB
19011 old_archive_cmds=$lt_old_archive_cmds_GCJ
19012 old_postinstall_cmds=$lt_old_postinstall_cmds
19013 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19014
19015 # Create an old-style archive from a shared archive.
19016 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19017
19018 # Create a temporary old-style archive to link instead of a shared archive.
19019 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19020
19021 # Commands used to build and install a shared archive.
19022 archive_cmds=$lt_archive_cmds_GCJ
19023 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19024 postinstall_cmds=$lt_postinstall_cmds
19025 postuninstall_cmds=$lt_postuninstall_cmds
19026
19027 # Commands used to build a loadable module (assumed same as above if empty)
19028 module_cmds=$lt_module_cmds_GCJ
19029 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19030
19031 # Commands to strip libraries.
19032 old_striplib=$lt_old_striplib
19033 striplib=$lt_striplib
19034
19035 # Dependencies to place before the objects being linked to create a
19036 # shared library.
19037 predep_objects=$lt_predep_objects_GCJ
19038
19039 # Dependencies to place after the objects being linked to create a
19040 # shared library.
19041 postdep_objects=$lt_postdep_objects_GCJ
19042
19043 # Dependencies to place before the objects being linked to create a
19044 # shared library.
19045 predeps=$lt_predeps_GCJ
19046
19047 # Dependencies to place after the objects being linked to create a
19048 # shared library.
19049 postdeps=$lt_postdeps_GCJ
19050
19051 # The library search path used internally by the compiler when linking
19052 # a shared library.
19053 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19054
19055 # Method to check whether dependent libraries are shared objects.
19056 deplibs_check_method=$lt_deplibs_check_method
19057
19058 # Command to use when deplibs_check_method == file_magic.
19059 file_magic_cmd=$lt_file_magic_cmd
19060
19061 # Flag that allows shared libraries with undefined symbols to be built.
19062 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19063
19064 # Flag that forces no undefined symbols.
19065 no_undefined_flag=$lt_no_undefined_flag_GCJ
19066
19067 # Commands used to finish a libtool library installation in a directory.
19068 finish_cmds=$lt_finish_cmds
19069
19070 # Same as above, but a single script fragment to be evaled but not shown.
19071 finish_eval=$lt_finish_eval
19072
19073 # Take the output of nm and produce a listing of raw symbols and C names.
19074 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19075
19076 # Transform the output of nm in a proper C declaration
19077 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19078
19079 # Transform the output of nm in a C name address pair
19080 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19081
19082 # This is the shared library runtime path variable.
19083 runpath_var=$runpath_var
19084
19085 # This is the shared library path variable.
19086 shlibpath_var=$shlibpath_var
19087
19088 # Is shlibpath searched before the hard-coded library search path?
19089 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19090
19091 # How to hardcode a shared library path into an executable.
19092 hardcode_action=$hardcode_action_GCJ
19093
19094 # Whether we should hardcode library paths into libraries.
19095 hardcode_into_libs=$hardcode_into_libs
19096
19097 # Flag to hardcode \$libdir into a binary during linking.
19098 # This must work even if \$libdir does not exist.
19099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19100
19101 # If ld is used when linking, flag to hardcode \$libdir into
19102 # a binary during linking. This must work even if \$libdir does
19103 # not exist.
19104 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19105
19106 # Whether we need a single -rpath flag with a separated argument.
19107 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19108
19109 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19110 # resulting binary.
19111 hardcode_direct=$hardcode_direct_GCJ
19112
19113 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19114 # resulting binary.
19115 hardcode_minus_L=$hardcode_minus_L_GCJ
19116
19117 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19118 # the resulting binary.
19119 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19120
19121 # Set to yes if building a shared library automatically hardcodes DIR into the library
19122 # and all subsequent libraries and executables linked against it.
19123 hardcode_automatic=$hardcode_automatic_GCJ
19124
19125 # Variables whose values should be saved in libtool wrapper scripts and
19126 # restored at relink time.
19127 variables_saved_for_relink="$variables_saved_for_relink"
19128
19129 # Whether libtool must link a program against all its dependency libraries.
19130 link_all_deplibs=$link_all_deplibs_GCJ
19131
19132 # Compile-time system search path for libraries
19133 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19134
19135 # Run-time system search path for libraries
19136 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19137
19138 # Fix the shell variable \$srcfile for the compiler.
19139 fix_srcfile_path="$fix_srcfile_path_GCJ"
19140
19141 # Set to yes if exported symbols are required.
19142 always_export_symbols=$always_export_symbols_GCJ
19143
19144 # The commands to list exported symbols.
19145 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19146
19147 # The commands to extract the exported symbol list from a shared archive.
19148 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19149
19150 # Symbols that should not be listed in the preloaded symbols.
19151 exclude_expsyms=$lt_exclude_expsyms_GCJ
19152
19153 # Symbols that must always be exported.
19154 include_expsyms=$lt_include_expsyms_GCJ
19155
19156 # ### END LIBTOOL TAG CONFIG: $tagname
19157
19158 __EOF__
19159
19160
19161 else
19162 # If there is no Makefile yet, we rely on a make rule to execute
19163 # `config.status --recheck' to rerun these tests and create the
19164 # libtool script then.
19165 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19166 if test -f "$ltmain_in"; then
19167 test -f Makefile && make "$ltmain"
19168 fi
19169 fi
19170
19171
19172 ac_ext=c
19173 ac_cpp='$CPP $CPPFLAGS'
19174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19177
19178 CC="$lt_save_CC"
19179
19180 else
19181 tagname=""
19182 fi
19183 ;;
19184
19185 RC)
19186
19187
19188 # Source file extension for RC test sources.
19189 ac_ext=rc
19190
19191 # Object file extension for compiled RC test sources.
19192 objext=o
19193 objext_RC=$objext
19194
19195 # Code to be used in simple compile tests
19196 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19197
19198 # Code to be used in simple link tests
19199 lt_simple_link_test_code="$lt_simple_compile_test_code"
19200
19201 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19202
19203 # If no C compiler was specified, use CC.
19204 LTCC=${LTCC-"$CC"}
19205
19206 # If no C compiler flags were specified, use CFLAGS.
19207 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19208
19209 # Allow CC to be a program name with arguments.
19210 compiler=$CC
19211
19212
19213 # save warnings/boilerplate of simple test code
19214 ac_outfile=conftest.$ac_objext
19215 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19217 _lt_compiler_boilerplate=`cat conftest.err`
19218 $rm conftest*
19219
19220 ac_outfile=conftest.$ac_objext
19221 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19223 _lt_linker_boilerplate=`cat conftest.err`
19224 $rm conftest*
19225
19226
19227 # Allow CC to be a program name with arguments.
19228 lt_save_CC="$CC"
19229 CC=${RC-"windres"}
19230 compiler=$CC
19231 compiler_RC=$CC
19232 for cc_temp in $compiler""; do
19233 case $cc_temp in
19234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19236 \-*) ;;
19237 *) break;;
19238 esac
19239 done
19240 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19241
19242 lt_cv_prog_compiler_c_o_RC=yes
19243
19244 # The else clause should only fire when bootstrapping the
19245 # libtool distribution, otherwise you forgot to ship ltmain.sh
19246 # with your package, and you will get complaints that there are
19247 # no rules to generate ltmain.sh.
19248 if test -f "$ltmain"; then
19249 # See if we are running on zsh, and set the options which allow our commands through
19250 # without removal of \ escapes.
19251 if test -n "${ZSH_VERSION+set}" ; then
19252 setopt NO_GLOB_SUBST
19253 fi
19254 # Now quote all the things that may contain metacharacters while being
19255 # careful not to overquote the AC_SUBSTed values. We take copies of the
19256 # variables and quote the copies for generation of the libtool script.
19257 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19258 SED SHELL STRIP \
19259 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19260 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19261 deplibs_check_method reload_flag reload_cmds need_locks \
19262 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19263 lt_cv_sys_global_symbol_to_c_name_address \
19264 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19265 old_postinstall_cmds old_postuninstall_cmds \
19266 compiler_RC \
19267 CC_RC \
19268 LD_RC \
19269 lt_prog_compiler_wl_RC \
19270 lt_prog_compiler_pic_RC \
19271 lt_prog_compiler_static_RC \
19272 lt_prog_compiler_no_builtin_flag_RC \
19273 export_dynamic_flag_spec_RC \
19274 thread_safe_flag_spec_RC \
19275 whole_archive_flag_spec_RC \
19276 enable_shared_with_static_runtimes_RC \
19277 old_archive_cmds_RC \
19278 old_archive_from_new_cmds_RC \
19279 predep_objects_RC \
19280 postdep_objects_RC \
19281 predeps_RC \
19282 postdeps_RC \
19283 compiler_lib_search_path_RC \
19284 archive_cmds_RC \
19285 archive_expsym_cmds_RC \
19286 postinstall_cmds_RC \
19287 postuninstall_cmds_RC \
19288 old_archive_from_expsyms_cmds_RC \
19289 allow_undefined_flag_RC \
19290 no_undefined_flag_RC \
19291 export_symbols_cmds_RC \
19292 hardcode_libdir_flag_spec_RC \
19293 hardcode_libdir_flag_spec_ld_RC \
19294 hardcode_libdir_separator_RC \
19295 hardcode_automatic_RC \
19296 module_cmds_RC \
19297 module_expsym_cmds_RC \
19298 lt_cv_prog_compiler_c_o_RC \
19299 exclude_expsyms_RC \
19300 include_expsyms_RC; do
19301
19302 case $var in
19303 old_archive_cmds_RC | \
19304 old_archive_from_new_cmds_RC | \
19305 archive_cmds_RC | \
19306 archive_expsym_cmds_RC | \
19307 module_cmds_RC | \
19308 module_expsym_cmds_RC | \
19309 old_archive_from_expsyms_cmds_RC | \
19310 export_symbols_cmds_RC | \
19311 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19312 postinstall_cmds | postuninstall_cmds | \
19313 old_postinstall_cmds | old_postuninstall_cmds | \
19314 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19315 # Double-quote double-evaled strings.
19316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19317 ;;
19318 *)
19319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19320 ;;
19321 esac
19322 done
19323
19324 case $lt_echo in
19325 *'\$0 --fallback-echo"')
19326 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19327 ;;
19328 esac
19329
19330 cfgfile="$ofile"
19331
19332 cat <<__EOF__ >> "$cfgfile"
19333 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19334
19335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19336
19337 # Shell to use when invoking shell scripts.
19338 SHELL=$lt_SHELL
19339
19340 # Whether or not to build shared libraries.
19341 build_libtool_libs=$enable_shared
19342
19343 # Whether or not to build static libraries.
19344 build_old_libs=$enable_static
19345
19346 # Whether or not to add -lc for building shared libraries.
19347 build_libtool_need_lc=$archive_cmds_need_lc_RC
19348
19349 # Whether or not to disallow shared libs when runtime libs are static
19350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19351
19352 # Whether or not to optimize for fast installation.
19353 fast_install=$enable_fast_install
19354
19355 # The host system.
19356 host_alias=$host_alias
19357 host=$host
19358 host_os=$host_os
19359
19360 # The build system.
19361 build_alias=$build_alias
19362 build=$build
19363 build_os=$build_os
19364
19365 # An echo program that does not interpret backslashes.
19366 echo=$lt_echo
19367
19368 # The archiver.
19369 AR=$lt_AR
19370 AR_FLAGS=$lt_AR_FLAGS
19371
19372 # A C compiler.
19373 LTCC=$lt_LTCC
19374
19375 # LTCC compiler flags.
19376 LTCFLAGS=$lt_LTCFLAGS
19377
19378 # A language-specific compiler.
19379 CC=$lt_compiler_RC
19380
19381 # Is the compiler the GNU C compiler?
19382 with_gcc=$GCC_RC
19383
19384 # An ERE matcher.
19385 EGREP=$lt_EGREP
19386
19387 # The linker used to build libraries.
19388 LD=$lt_LD_RC
19389
19390 # Whether we need hard or soft links.
19391 LN_S=$lt_LN_S
19392
19393 # A BSD-compatible nm program.
19394 NM=$lt_NM
19395
19396 # A symbol stripping program
19397 STRIP=$lt_STRIP
19398
19399 # Used to examine libraries when file_magic_cmd begins "file"
19400 MAGIC_CMD=$MAGIC_CMD
19401
19402 # Used on cygwin: DLL creation program.
19403 DLLTOOL="$DLLTOOL"
19404
19405 # Used on cygwin: object dumper.
19406 OBJDUMP="$OBJDUMP"
19407
19408 # Used on cygwin: assembler.
19409 AS="$AS"
19410
19411 # The name of the directory that contains temporary libtool files.
19412 objdir=$objdir
19413
19414 # How to create reloadable object files.
19415 reload_flag=$lt_reload_flag
19416 reload_cmds=$lt_reload_cmds
19417
19418 # How to pass a linker flag through the compiler.
19419 wl=$lt_lt_prog_compiler_wl_RC
19420
19421 # Object file suffix (normally "o").
19422 objext="$ac_objext"
19423
19424 # Old archive suffix (normally "a").
19425 libext="$libext"
19426
19427 # Shared library suffix (normally ".so").
19428 shrext_cmds='$shrext_cmds'
19429
19430 # Executable file suffix (normally "").
19431 exeext="$exeext"
19432
19433 # Additional compiler flags for building library objects.
19434 pic_flag=$lt_lt_prog_compiler_pic_RC
19435 pic_mode=$pic_mode
19436
19437 # What is the maximum length of a command?
19438 max_cmd_len=$lt_cv_sys_max_cmd_len
19439
19440 # Does compiler simultaneously support -c and -o options?
19441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19442
19443 # Must we lock files when doing compilation?
19444 need_locks=$lt_need_locks
19445
19446 # Do we need the lib prefix for modules?
19447 need_lib_prefix=$need_lib_prefix
19448
19449 # Do we need a version for libraries?
19450 need_version=$need_version
19451
19452 # Whether dlopen is supported.
19453 dlopen_support=$enable_dlopen
19454
19455 # Whether dlopen of programs is supported.
19456 dlopen_self=$enable_dlopen_self
19457
19458 # Whether dlopen of statically linked programs is supported.
19459 dlopen_self_static=$enable_dlopen_self_static
19460
19461 # Compiler flag to prevent dynamic linking.
19462 link_static_flag=$lt_lt_prog_compiler_static_RC
19463
19464 # Compiler flag to turn off builtin functions.
19465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19466
19467 # Compiler flag to allow reflexive dlopens.
19468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19469
19470 # Compiler flag to generate shared objects directly from archives.
19471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19472
19473 # Compiler flag to generate thread-safe objects.
19474 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19475
19476 # Library versioning type.
19477 version_type=$version_type
19478
19479 # Format of library name prefix.
19480 libname_spec=$lt_libname_spec
19481
19482 # List of archive names. First name is the real one, the rest are links.
19483 # The last name is the one that the linker finds with -lNAME.
19484 library_names_spec=$lt_library_names_spec
19485
19486 # The coded name of the library, if different from the real name.
19487 soname_spec=$lt_soname_spec
19488
19489 # Commands used to build and install an old-style archive.
19490 RANLIB=$lt_RANLIB
19491 old_archive_cmds=$lt_old_archive_cmds_RC
19492 old_postinstall_cmds=$lt_old_postinstall_cmds
19493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19494
19495 # Create an old-style archive from a shared archive.
19496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19497
19498 # Create a temporary old-style archive to link instead of a shared archive.
19499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19500
19501 # Commands used to build and install a shared archive.
19502 archive_cmds=$lt_archive_cmds_RC
19503 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19504 postinstall_cmds=$lt_postinstall_cmds
19505 postuninstall_cmds=$lt_postuninstall_cmds
19506
19507 # Commands used to build a loadable module (assumed same as above if empty)
19508 module_cmds=$lt_module_cmds_RC
19509 module_expsym_cmds=$lt_module_expsym_cmds_RC
19510
19511 # Commands to strip libraries.
19512 old_striplib=$lt_old_striplib
19513 striplib=$lt_striplib
19514
19515 # Dependencies to place before the objects being linked to create a
19516 # shared library.
19517 predep_objects=$lt_predep_objects_RC
19518
19519 # Dependencies to place after the objects being linked to create a
19520 # shared library.
19521 postdep_objects=$lt_postdep_objects_RC
19522
19523 # Dependencies to place before the objects being linked to create a
19524 # shared library.
19525 predeps=$lt_predeps_RC
19526
19527 # Dependencies to place after the objects being linked to create a
19528 # shared library.
19529 postdeps=$lt_postdeps_RC
19530
19531 # The library search path used internally by the compiler when linking
19532 # a shared library.
19533 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19534
19535 # Method to check whether dependent libraries are shared objects.
19536 deplibs_check_method=$lt_deplibs_check_method
19537
19538 # Command to use when deplibs_check_method == file_magic.
19539 file_magic_cmd=$lt_file_magic_cmd
19540
19541 # Flag that allows shared libraries with undefined symbols to be built.
19542 allow_undefined_flag=$lt_allow_undefined_flag_RC
19543
19544 # Flag that forces no undefined symbols.
19545 no_undefined_flag=$lt_no_undefined_flag_RC
19546
19547 # Commands used to finish a libtool library installation in a directory.
19548 finish_cmds=$lt_finish_cmds
19549
19550 # Same as above, but a single script fragment to be evaled but not shown.
19551 finish_eval=$lt_finish_eval
19552
19553 # Take the output of nm and produce a listing of raw symbols and C names.
19554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19555
19556 # Transform the output of nm in a proper C declaration
19557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19558
19559 # Transform the output of nm in a C name address pair
19560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19561
19562 # This is the shared library runtime path variable.
19563 runpath_var=$runpath_var
19564
19565 # This is the shared library path variable.
19566 shlibpath_var=$shlibpath_var
19567
19568 # Is shlibpath searched before the hard-coded library search path?
19569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19570
19571 # How to hardcode a shared library path into an executable.
19572 hardcode_action=$hardcode_action_RC
19573
19574 # Whether we should hardcode library paths into libraries.
19575 hardcode_into_libs=$hardcode_into_libs
19576
19577 # Flag to hardcode \$libdir into a binary during linking.
19578 # This must work even if \$libdir does not exist.
19579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19580
19581 # If ld is used when linking, flag to hardcode \$libdir into
19582 # a binary during linking. This must work even if \$libdir does
19583 # not exist.
19584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19585
19586 # Whether we need a single -rpath flag with a separated argument.
19587 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19588
19589 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19590 # resulting binary.
19591 hardcode_direct=$hardcode_direct_RC
19592
19593 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19594 # resulting binary.
19595 hardcode_minus_L=$hardcode_minus_L_RC
19596
19597 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19598 # the resulting binary.
19599 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19600
19601 # Set to yes if building a shared library automatically hardcodes DIR into the library
19602 # and all subsequent libraries and executables linked against it.
19603 hardcode_automatic=$hardcode_automatic_RC
19604
19605 # Variables whose values should be saved in libtool wrapper scripts and
19606 # restored at relink time.
19607 variables_saved_for_relink="$variables_saved_for_relink"
19608
19609 # Whether libtool must link a program against all its dependency libraries.
19610 link_all_deplibs=$link_all_deplibs_RC
19611
19612 # Compile-time system search path for libraries
19613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19614
19615 # Run-time system search path for libraries
19616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19617
19618 # Fix the shell variable \$srcfile for the compiler.
19619 fix_srcfile_path="$fix_srcfile_path_RC"
19620
19621 # Set to yes if exported symbols are required.
19622 always_export_symbols=$always_export_symbols_RC
19623
19624 # The commands to list exported symbols.
19625 export_symbols_cmds=$lt_export_symbols_cmds_RC
19626
19627 # The commands to extract the exported symbol list from a shared archive.
19628 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19629
19630 # Symbols that should not be listed in the preloaded symbols.
19631 exclude_expsyms=$lt_exclude_expsyms_RC
19632
19633 # Symbols that must always be exported.
19634 include_expsyms=$lt_include_expsyms_RC
19635
19636 # ### END LIBTOOL TAG CONFIG: $tagname
19637
19638 __EOF__
19639
19640
19641 else
19642 # If there is no Makefile yet, we rely on a make rule to execute
19643 # `config.status --recheck' to rerun these tests and create the
19644 # libtool script then.
19645 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19646 if test -f "$ltmain_in"; then
19647 test -f Makefile && make "$ltmain"
19648 fi
19649 fi
19650
19651
19652 ac_ext=c
19653 ac_cpp='$CPP $CPPFLAGS'
19654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19657
19658 CC="$lt_save_CC"
19659
19660 ;;
19661
19662 *)
19663 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19664 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19665 { (exit 1); exit 1; }; }
19666 ;;
19667 esac
19668
19669 # Append the new tag name to the list of available tags.
19670 if test -n "$tagname" ; then
19671 available_tags="$available_tags $tagname"
19672 fi
19673 fi
19674 done
19675 IFS="$lt_save_ifs"
19676
19677 # Now substitute the updated list of available tags.
19678 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19679 mv "${ofile}T" "$ofile"
19680 chmod +x "$ofile"
19681 else
19682 rm -f "${ofile}T"
19683 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19684 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19685 { (exit 1); exit 1; }; }
19686 fi
19687 fi
19688
19689
19690
19691 # This can be used to rebuild libtool when needed
19692 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19693
19694 # Always use our own libtool.
19695 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19696
19697 # Prevent multiple expansion
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718 ac_config_headers="$ac_config_headers config.h"
19719
19720
19721 ac_ext=cpp
19722 ac_cpp='$CXXCPP $CPPFLAGS'
19723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19726 if test -z "$CXX"; then
19727 if test -n "$CCC"; then
19728 CXX=$CCC
19729 else
19730 if test -n "$ac_tool_prefix"; then
19731 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19732 do
19733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19737 if test "${ac_cv_prog_CXX+set}" = set; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 else
19740 if test -n "$CXX"; then
19741 ac_cv_prog_CXX="$CXX" # Let the user override the test.
19742 else
19743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19744 for as_dir in $PATH
19745 do
19746 IFS=$as_save_IFS
19747 test -z "$as_dir" && as_dir=.
19748 for ac_exec_ext in '' $ac_executable_extensions; do
19749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19750 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19752 break 2
19753 fi
19754 done
19755 done
19756 IFS=$as_save_IFS
19757
19758 fi
19759 fi
19760 CXX=$ac_cv_prog_CXX
19761 if test -n "$CXX"; then
19762 { echo "$as_me:$LINENO: result: $CXX" >&5
19763 echo "${ECHO_T}$CXX" >&6; }
19764 else
19765 { echo "$as_me:$LINENO: result: no" >&5
19766 echo "${ECHO_T}no" >&6; }
19767 fi
19768
19769
19770 test -n "$CXX" && break
19771 done
19772 fi
19773 if test -z "$CXX"; then
19774 ac_ct_CXX=$CXX
19775 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19776 do
19777 # Extract the first word of "$ac_prog", so it can be a program name with args.
19778 set dummy $ac_prog; ac_word=$2
19779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19781 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784 if test -n "$ac_ct_CXX"; then
19785 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19786 else
19787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19788 for as_dir in $PATH
19789 do
19790 IFS=$as_save_IFS
19791 test -z "$as_dir" && as_dir=.
19792 for ac_exec_ext in '' $ac_executable_extensions; do
19793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19794 ac_cv_prog_ac_ct_CXX="$ac_prog"
19795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19796 break 2
19797 fi
19798 done
19799 done
19800 IFS=$as_save_IFS
19801
19802 fi
19803 fi
19804 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19805 if test -n "$ac_ct_CXX"; then
19806 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19807 echo "${ECHO_T}$ac_ct_CXX" >&6; }
19808 else
19809 { echo "$as_me:$LINENO: result: no" >&5
19810 echo "${ECHO_T}no" >&6; }
19811 fi
19812
19813
19814 test -n "$ac_ct_CXX" && break
19815 done
19816
19817 if test "x$ac_ct_CXX" = x; then
19818 CXX="g++"
19819 else
19820 case $cross_compiling:$ac_tool_warned in
19821 yes:)
19822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19823 whose name does not start with the host triplet. If you think this
19824 configuration is useful to you, please write to [email protected]." >&5
19825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19826 whose name does not start with the host triplet. If you think this
19827 configuration is useful to you, please write to [email protected]." >&2;}
19828 ac_tool_warned=yes ;;
19829 esac
19830 CXX=$ac_ct_CXX
19831 fi
19832 fi
19833
19834 fi
19835 fi
19836 # Provide some information about the compiler.
19837 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19838 ac_compiler=`set X $ac_compile; echo $2`
19839 { (ac_try="$ac_compiler --version >&5"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_compiler --version >&5") 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }
19849 { (ac_try="$ac_compiler -v >&5"
19850 case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_compiler -v >&5") 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }
19859 { (ac_try="$ac_compiler -V >&5"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_compiler -V >&5") 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }
19869
19870 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19871 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
19872 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875 cat >conftest.$ac_ext <<_ACEOF
19876 /* confdefs.h. */
19877 _ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881
19882 int
19883 main ()
19884 {
19885 #ifndef __GNUC__
19886 choke me
19887 #endif
19888
19889 ;
19890 return 0;
19891 }
19892 _ACEOF
19893 rm -f conftest.$ac_objext
19894 if { (ac_try="$ac_compile"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_compile") 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19908 { (case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_try") 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
19918 { (case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_try") 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_compiler_gnu=yes
19928 else
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932 ac_compiler_gnu=no
19933 fi
19934
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19937
19938 fi
19939 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19940 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
19941 GXX=`test $ac_compiler_gnu = yes && echo yes`
19942 ac_test_CXXFLAGS=${CXXFLAGS+set}
19943 ac_save_CXXFLAGS=$CXXFLAGS
19944 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19945 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
19946 if test "${ac_cv_prog_cxx_g+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19950 ac_cxx_werror_flag=yes
19951 ac_cv_prog_cxx_g=no
19952 CXXFLAGS="-g"
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h. */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959
19960 int
19961 main ()
19962 {
19963
19964 ;
19965 return 0;
19966 }
19967 _ACEOF
19968 rm -f conftest.$ac_objext
19969 if { (ac_try="$ac_compile"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_compile") 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19983 { (case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_try") 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
19993 { (case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_try") 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_cv_prog_cxx_g=yes
20003 else
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20006
20007 CXXFLAGS=""
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014
20015 int
20016 main ()
20017 {
20018
20019 ;
20020 return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext
20024 if { (ac_try="$ac_compile"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_compile") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest.$ac_objext'
20048 { (case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20051 esac
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_try") 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 :
20058 else
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20063 CXXFLAGS="-g"
20064 cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h. */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070
20071 int
20072 main ()
20073 {
20074
20075 ;
20076 return 0;
20077 }
20078 _ACEOF
20079 rm -f conftest.$ac_objext
20080 if { (ac_try="$ac_compile"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_compile") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } &&
20093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20094 { (case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_try") 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest.$ac_objext'
20104 { (case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_try") 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_cv_prog_cxx_g=yes
20114 else
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118
20119 fi
20120
20121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122 fi
20123
20124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20125 fi
20126
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20129 fi
20130 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20131 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20132 if test "$ac_test_CXXFLAGS" = set; then
20133 CXXFLAGS=$ac_save_CXXFLAGS
20134 elif test $ac_cv_prog_cxx_g = yes; then
20135 if test "$GXX" = yes; then
20136 CXXFLAGS="-g -O2"
20137 else
20138 CXXFLAGS="-g"
20139 fi
20140 else
20141 if test "$GXX" = yes; then
20142 CXXFLAGS="-O2"
20143 else
20144 CXXFLAGS=
20145 fi
20146 fi
20147 ac_ext=c
20148 ac_cpp='$CPP $CPPFLAGS'
20149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20152
20153 depcc="$CXX" am_compiler_list=
20154
20155 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20156 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20157 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20161 # We make a subdir and do the tests there. Otherwise we can end up
20162 # making bogus files that we don't know about and never remove. For
20163 # instance it was reported that on HP-UX the gcc test will end up
20164 # making a dummy file named `D' -- because `-MD' means `put the output
20165 # in D'.
20166 mkdir conftest.dir
20167 # Copy depcomp to subdir because otherwise we won't find it if we're
20168 # using a relative directory.
20169 cp "$am_depcomp" conftest.dir
20170 cd conftest.dir
20171 # We will build objects and dependencies in a subdirectory because
20172 # it helps to detect inapplicable dependency modes. For instance
20173 # both Tru64's cc and ICC support -MD to output dependencies as a
20174 # side effect of compilation, but ICC will put the dependencies in
20175 # the current directory while Tru64 will put them in the object
20176 # directory.
20177 mkdir sub
20178
20179 am_cv_CXX_dependencies_compiler_type=none
20180 if test "$am_compiler_list" = ""; then
20181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20182 fi
20183 for depmode in $am_compiler_list; do
20184 # Setup a source with many dependencies, because some compilers
20185 # like to wrap large dependency lists on column 80 (with \), and
20186 # we should not choose a depcomp mode which is confused by this.
20187 #
20188 # We need to recreate these files for each test, as the compiler may
20189 # overwrite some of them when testing with obscure command lines.
20190 # This happens at least with the AIX C compiler.
20191 : > sub/conftest.c
20192 for i in 1 2 3 4 5 6; do
20193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20195 # Solaris 8's {/usr,}/bin/sh.
20196 touch sub/conftst$i.h
20197 done
20198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20199
20200 case $depmode in
20201 nosideeffect)
20202 # after this tag, mechanisms are not by side-effect, so they'll
20203 # only be used when explicitly requested
20204 if test "x$enable_dependency_tracking" = xyes; then
20205 continue
20206 else
20207 break
20208 fi
20209 ;;
20210 none) break ;;
20211 esac
20212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20213 # mode. It turns out that the SunPro C++ compiler does not properly
20214 # handle `-M -o', and we need to detect this.
20215 if depmode=$depmode \
20216 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20218 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20219 >/dev/null 2>conftest.err &&
20220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20223 # icc doesn't choke on unknown options, it will just issue warnings
20224 # or remarks (even with -Werror). So we grep stderr for any message
20225 # that says an option was ignored or not supported.
20226 # When given -MP, icc 7.0 and 7.1 complain thusly:
20227 # icc: Command line warning: ignoring option '-M'; no argument required
20228 # The diagnosis changed in icc 8.0:
20229 # icc: Command line remark: option '-MP' not supported
20230 if (grep 'ignoring option' conftest.err ||
20231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20232 am_cv_CXX_dependencies_compiler_type=$depmode
20233 break
20234 fi
20235 fi
20236 done
20237
20238 cd ..
20239 rm -rf conftest.dir
20240 else
20241 am_cv_CXX_dependencies_compiler_type=none
20242 fi
20243
20244 fi
20245 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20246 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
20247 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20248
20249
20250
20251 if
20252 test "x$enable_dependency_tracking" != xno \
20253 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20254 am__fastdepCXX_TRUE=
20255 am__fastdepCXX_FALSE='#'
20256 else
20257 am__fastdepCXX_TRUE='#'
20258 am__fastdepCXX_FALSE=
20259 fi
20260
20261
20262
20263 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20264 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20265 if test "${ac_cv_header_stdc+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268 cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h. */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 #include <stdlib.h>
20275 #include <stdarg.h>
20276 #include <string.h>
20277 #include <float.h>
20278
20279 int
20280 main ()
20281 {
20282
20283 ;
20284 return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (ac_try="$ac_compile"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_compile") 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20302 { (case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_try") 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest.$ac_objext'
20312 { (case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_try") 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_cv_header_stdc=yes
20322 else
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 ac_cv_header_stdc=no
20327 fi
20328
20329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330
20331 if test $ac_cv_header_stdc = yes; then
20332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20333 cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h. */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 #include <string.h>
20340
20341 _ACEOF
20342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20343 $EGREP "memchr" >/dev/null 2>&1; then
20344 :
20345 else
20346 ac_cv_header_stdc=no
20347 fi
20348 rm -f conftest*
20349
20350 fi
20351
20352 if test $ac_cv_header_stdc = yes; then
20353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20354 cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h. */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 #include <stdlib.h>
20361
20362 _ACEOF
20363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20364 $EGREP "free" >/dev/null 2>&1; then
20365 :
20366 else
20367 ac_cv_header_stdc=no
20368 fi
20369 rm -f conftest*
20370
20371 fi
20372
20373 if test $ac_cv_header_stdc = yes; then
20374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20375 if test "$cross_compiling" = yes; then
20376 :
20377 else
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 #include <ctype.h>
20385 #include <stdlib.h>
20386 #if ((' ' & 0x0FF) == 0x020)
20387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20389 #else
20390 # define ISLOWER(c) \
20391 (('a' <= (c) && (c) <= 'i') \
20392 || ('j' <= (c) && (c) <= 'r') \
20393 || ('s' <= (c) && (c) <= 'z'))
20394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20395 #endif
20396
20397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20398 int
20399 main ()
20400 {
20401 int i;
20402 for (i = 0; i < 256; i++)
20403 if (XOR (islower (i), ISLOWER (i))
20404 || toupper (i) != TOUPPER (i))
20405 return 2;
20406 return 0;
20407 }
20408 _ACEOF
20409 rm -f conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_try") 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 :
20430 else
20431 echo "$as_me: program exited with status $ac_status" >&5
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ( exit $ac_status )
20436 ac_cv_header_stdc=no
20437 fi
20438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20439 fi
20440
20441
20442 fi
20443 fi
20444 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20445 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20446 if test $ac_cv_header_stdc = yes; then
20447
20448 cat >>confdefs.h <<\_ACEOF
20449 #define STDC_HEADERS 1
20450 _ACEOF
20451
20452 fi
20453
20454
20455
20456 for ac_header in limits.h unistd.h
20457 do
20458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 fi
20465 ac_res=`eval echo '${'$as_ac_Header'}'`
20466 { echo "$as_me:$LINENO: result: $ac_res" >&5
20467 echo "${ECHO_T}$ac_res" >&6; }
20468 else
20469 # Is the header compilable?
20470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h. */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 $ac_includes_default
20479 #include <$ac_header>
20480 _ACEOF
20481 rm -f conftest.$ac_objext
20482 if { (ac_try="$ac_compile"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20496 { (case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_try") 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; } &&
20505 { ac_try='test -s conftest.$ac_objext'
20506 { (case "(($ac_try" in
20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508 *) ac_try_echo=$ac_try;;
20509 esac
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511 (eval "$ac_try") 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }; then
20515 ac_header_compiler=yes
20516 else
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 ac_header_compiler=no
20521 fi
20522
20523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20525 echo "${ECHO_T}$ac_header_compiler" >&6; }
20526
20527 # Is the header present?
20528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #include <$ac_header>
20537 _ACEOF
20538 if { (ac_try="$ac_cpp conftest.$ac_ext"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } >/dev/null; then
20551 if test -s conftest.err; then
20552 ac_cpp_err=$ac_c_preproc_warn_flag
20553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20554 else
20555 ac_cpp_err=
20556 fi
20557 else
20558 ac_cpp_err=yes
20559 fi
20560 if test -z "$ac_cpp_err"; then
20561 ac_header_preproc=yes
20562 else
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 ac_header_preproc=no
20567 fi
20568
20569 rm -f conftest.err conftest.$ac_ext
20570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20571 echo "${ECHO_T}$ac_header_preproc" >&6; }
20572
20573 # So? What about this header?
20574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20575 yes:no: )
20576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20580 ac_header_preproc=yes
20581 ;;
20582 no:yes:* )
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20595
20596 ;;
20597 esac
20598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603 eval "$as_ac_Header=\$ac_header_preproc"
20604 fi
20605 ac_res=`eval echo '${'$as_ac_Header'}'`
20606 { echo "$as_me:$LINENO: result: $ac_res" >&5
20607 echo "${ECHO_T}$ac_res" >&6; }
20608
20609 fi
20610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20613 _ACEOF
20614
20615 fi
20616
20617 done
20618
20619
20620 { echo "$as_me:$LINENO: checking for X" >&5
20621 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
20622
20623
20624 # Check whether --with-x was given.
20625 if test "${with_x+set}" = set; then
20626 withval=$with_x;
20627 fi
20628
20629 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20630 if test "x$with_x" = xno; then
20631 # The user explicitly disabled X.
20632 have_x=disabled
20633 else
20634 case $x_includes,$x_libraries in #(
20635 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
20636 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
20637 { (exit 1); exit 1; }; };; #(
20638 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641 # One or both of the vars are not set, and there is no cached value.
20642 ac_x_includes=no ac_x_libraries=no
20643 rm -f -r conftest.dir
20644 if mkdir conftest.dir; then
20645 cd conftest.dir
20646 cat >Imakefile <<'_ACEOF'
20647 incroot:
20648 @echo incroot='${INCROOT}'
20649 usrlibdir:
20650 @echo usrlibdir='${USRLIBDIR}'
20651 libdir:
20652 @echo libdir='${LIBDIR}'
20653 _ACEOF
20654 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
20655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20656 for ac_var in incroot usrlibdir libdir; do
20657 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
20658 done
20659 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20660 for ac_extension in a so sl; do
20661 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20662 test -f "$ac_im_libdir/libX11.$ac_extension"; then
20663 ac_im_usrlibdir=$ac_im_libdir; break
20664 fi
20665 done
20666 # Screen out bogus values from the imake configuration. They are
20667 # bogus both because they are the default anyway, and because
20668 # using them would break gcc on systems where it needs fixed includes.
20669 case $ac_im_incroot in
20670 /usr/include) ac_x_includes= ;;
20671 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20672 esac
20673 case $ac_im_usrlibdir in
20674 /usr/lib | /lib) ;;
20675 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20676 esac
20677 fi
20678 cd ..
20679 rm -f -r conftest.dir
20680 fi
20681
20682 # Standard set of common directories for X headers.
20683 # Check X11 before X11Rn because it is often a symlink to the current release.
20684 ac_x_header_dirs='
20685 /usr/X11/include
20686 /usr/X11R6/include
20687 /usr/X11R5/include
20688 /usr/X11R4/include
20689
20690 /usr/include/X11
20691 /usr/include/X11R6
20692 /usr/include/X11R5
20693 /usr/include/X11R4
20694
20695 /usr/local/X11/include
20696 /usr/local/X11R6/include
20697 /usr/local/X11R5/include
20698 /usr/local/X11R4/include
20699
20700 /usr/local/include/X11
20701 /usr/local/include/X11R6
20702 /usr/local/include/X11R5
20703 /usr/local/include/X11R4
20704
20705 /usr/X386/include
20706 /usr/x386/include
20707 /usr/XFree86/include/X11
20708
20709 /usr/include
20710 /usr/local/include
20711 /usr/unsupported/include
20712 /usr/athena/include
20713 /usr/local/x11r5/include
20714 /usr/lpp/Xamples/include
20715
20716 /usr/openwin/include
20717 /usr/openwin/share/include'
20718
20719 if test "$ac_x_includes" = no; then
20720 # Guess where to find include files, by looking for Xlib.h.
20721 # First, try using that file with no special directory specified.
20722 cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h. */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 #include <X11/Xlib.h>
20729 _ACEOF
20730 if { (ac_try="$ac_cpp conftest.$ac_ext"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } >/dev/null; then
20743 if test -s conftest.err; then
20744 ac_cpp_err=$ac_c_preproc_warn_flag
20745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20746 else
20747 ac_cpp_err=
20748 fi
20749 else
20750 ac_cpp_err=yes
20751 fi
20752 if test -z "$ac_cpp_err"; then
20753 # We can compile using X headers with no special include directory.
20754 ac_x_includes=
20755 else
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 for ac_dir in $ac_x_header_dirs; do
20760 if test -r "$ac_dir/X11/Xlib.h"; then
20761 ac_x_includes=$ac_dir
20762 break
20763 fi
20764 done
20765 fi
20766
20767 rm -f conftest.err conftest.$ac_ext
20768 fi # $ac_x_includes = no
20769
20770 if test "$ac_x_libraries" = no; then
20771 # Check for the libraries.
20772 # See if we find them without any special options.
20773 # Don't add to $LIBS permanently.
20774 ac_save_LIBS=$LIBS
20775 LIBS="-lXt $LIBS"
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h. */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 #include <X11/Xlib.h>
20783 int
20784 main ()
20785 {
20786 XrmInitialize ()
20787 ;
20788 return 0;
20789 }
20790 _ACEOF
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } &&
20805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20806 { (case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_try") 2>&5
20812 ac_status=$?
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; } &&
20815 { ac_try='test -s conftest$ac_exeext'
20816 { (case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_try") 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 LIBS=$ac_save_LIBS
20826 # We can link X programs with no special library path.
20827 ac_x_libraries=
20828 else
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832 LIBS=$ac_save_LIBS
20833 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20834 do
20835 # Don't even attempt the hair of trying to link an X program!
20836 for ac_extension in a so sl; do
20837 if test -r "$ac_dir/libXt.$ac_extension"; then
20838 ac_x_libraries=$ac_dir
20839 break 2
20840 fi
20841 done
20842 done
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext \
20846 conftest$ac_exeext conftest.$ac_ext
20847 fi # $ac_x_libraries = no
20848
20849 case $ac_x_includes,$ac_x_libraries in #(
20850 no,* | *,no | *\'*)
20851 # Didn't find X, or a directory has "'" in its name.
20852 ac_cv_have_x="have_x=no";; #(
20853 *)
20854 # Record where we found X for the cache.
20855 ac_cv_have_x="have_x=yes\
20856 ac_x_includes='$ac_x_includes'\
20857 ac_x_libraries='$ac_x_libraries'"
20858 esac
20859 fi
20860 ;; #(
20861 *) have_x=yes;;
20862 esac
20863 eval "$ac_cv_have_x"
20864 fi # $with_x != no
20865
20866 if test "$have_x" != yes; then
20867 { echo "$as_me:$LINENO: result: $have_x" >&5
20868 echo "${ECHO_T}$have_x" >&6; }
20869 no_x=yes
20870 else
20871 # If each of the values was on the command line, it overrides each guess.
20872 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20873 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20874 # Update the cache value to reflect the command line values.
20875 ac_cv_have_x="have_x=yes\
20876 ac_x_includes='$x_includes'\
20877 ac_x_libraries='$x_libraries'"
20878 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20879 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20880 fi
20881
20882 if test "$no_x" = yes; then
20883 # Not all programs may use this symbol, but it does not hurt to define it.
20884
20885 cat >>confdefs.h <<\_ACEOF
20886 #define X_DISPLAY_MISSING 1
20887 _ACEOF
20888
20889 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20890 else
20891 if test -n "$x_includes"; then
20892 X_CFLAGS="$X_CFLAGS -I$x_includes"
20893 fi
20894
20895 # It would also be nice to do this for all -L options, not just this one.
20896 if test -n "$x_libraries"; then
20897 X_LIBS="$X_LIBS -L$x_libraries"
20898 # For Solaris; some versions of Sun CC require a space after -R and
20899 # others require no space. Words are not sufficient . . . .
20900 case `(uname -sr) 2>/dev/null` in
20901 "SunOS 5"*)
20902 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20903 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20904 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911
20912 int
20913 main ()
20914 {
20915
20916 ;
20917 return 0;
20918 }
20919 _ACEOF
20920 rm -f conftest.$ac_objext conftest$ac_exeext
20921 if { (ac_try="$ac_link"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20925 esac
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_link") 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
20934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20935 { (case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938 esac
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_try") 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest$ac_exeext'
20945 { (case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948 esac
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_try") 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }; then
20954 ac_R_nospace=yes
20955 else
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959 ac_R_nospace=no
20960 fi
20961
20962 rm -f core conftest.err conftest.$ac_objext \
20963 conftest$ac_exeext conftest.$ac_ext
20964 if test $ac_R_nospace = yes; then
20965 { echo "$as_me:$LINENO: result: no" >&5
20966 echo "${ECHO_T}no" >&6; }
20967 X_LIBS="$X_LIBS -R$x_libraries"
20968 else
20969 LIBS="$ac_xsave_LIBS -R $x_libraries"
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h. */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976
20977 int
20978 main ()
20979 {
20980
20981 ;
20982 return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (ac_try="$ac_link"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_link") 2>conftest.er1
20993 ac_status=$?
20994 grep -v '^ *+' conftest.er1 >conftest.err
20995 rm -f conftest.er1
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } &&
20999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; } &&
21009 { ac_try='test -s conftest$ac_exeext'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 ac_R_space=yes
21020 else
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024 ac_R_space=no
21025 fi
21026
21027 rm -f core conftest.err conftest.$ac_objext \
21028 conftest$ac_exeext conftest.$ac_ext
21029 if test $ac_R_space = yes; then
21030 { echo "$as_me:$LINENO: result: yes" >&5
21031 echo "${ECHO_T}yes" >&6; }
21032 X_LIBS="$X_LIBS -R $x_libraries"
21033 else
21034 { echo "$as_me:$LINENO: result: neither works" >&5
21035 echo "${ECHO_T}neither works" >&6; }
21036 fi
21037 fi
21038 LIBS=$ac_xsave_LIBS
21039 esac
21040 fi
21041
21042 # Check for system-dependent libraries X programs must link with.
21043 # Do this before checking for the system-independent R6 libraries
21044 # (-lICE), since we may need -lsocket or whatever for X linking.
21045
21046 if test "$ISC" = yes; then
21047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21048 else
21049 # Martyn Johnson says this is needed for Ultrix, if the X
21050 # libraries were built with DECnet support. And Karl Berry says
21051 # the Alpha needs dnet_stub (dnet does not exist).
21052 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059
21060 /* Override any GCC internal prototype to avoid an error.
21061 Use char because int might match the return type of a GCC
21062 builtin and then its argument prototype would still apply. */
21063 #ifdef __cplusplus
21064 extern "C"
21065 #endif
21066 char XOpenDisplay ();
21067 int
21068 main ()
21069 {
21070 return XOpenDisplay ();
21071 ;
21072 return 0;
21073 }
21074 _ACEOF
21075 rm -f conftest.$ac_objext conftest$ac_exeext
21076 if { (ac_try="$ac_link"
21077 case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_link") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } &&
21089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21090 { (case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_try") 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } &&
21099 { ac_try='test -s conftest$ac_exeext'
21100 { (case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_try") 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 :
21110 else
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21115 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
21116 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 else
21119 ac_check_lib_save_LIBS=$LIBS
21120 LIBS="-ldnet $LIBS"
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h. */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127
21128 /* Override any GCC internal prototype to avoid an error.
21129 Use char because int might match the return type of a GCC
21130 builtin and then its argument prototype would still apply. */
21131 #ifdef __cplusplus
21132 extern "C"
21133 #endif
21134 char dnet_ntoa ();
21135 int
21136 main ()
21137 {
21138 return dnet_ntoa ();
21139 ;
21140 return 0;
21141 }
21142 _ACEOF
21143 rm -f conftest.$ac_objext conftest$ac_exeext
21144 if { (ac_try="$ac_link"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_link") 2>conftest.er1
21151 ac_status=$?
21152 grep -v '^ *+' conftest.er1 >conftest.err
21153 rm -f conftest.er1
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } &&
21157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21158 { (case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_try") 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; } &&
21167 { ac_try='test -s conftest$ac_exeext'
21168 { (case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21171 esac
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173 (eval "$ac_try") 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_lib_dnet_dnet_ntoa=yes
21178 else
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182 ac_cv_lib_dnet_dnet_ntoa=no
21183 fi
21184
21185 rm -f core conftest.err conftest.$ac_objext \
21186 conftest$ac_exeext conftest.$ac_ext
21187 LIBS=$ac_check_lib_save_LIBS
21188 fi
21189 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21190 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
21191 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21192 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21193 fi
21194
21195 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21196 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21197 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
21198 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 else
21201 ac_check_lib_save_LIBS=$LIBS
21202 LIBS="-ldnet_stub $LIBS"
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209
21210 /* Override any GCC internal prototype to avoid an error.
21211 Use char because int might match the return type of a GCC
21212 builtin and then its argument prototype would still apply. */
21213 #ifdef __cplusplus
21214 extern "C"
21215 #endif
21216 char dnet_ntoa ();
21217 int
21218 main ()
21219 {
21220 return dnet_ntoa ();
21221 ;
21222 return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext conftest$ac_exeext
21226 if { (ac_try="$ac_link"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_link") 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } &&
21239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21240 { (case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21243 esac
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245 (eval "$ac_try") 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; } &&
21249 { ac_try='test -s conftest$ac_exeext'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21260 else
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 ac_cv_lib_dnet_stub_dnet_ntoa=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext \
21268 conftest$ac_exeext conftest.$ac_ext
21269 LIBS=$ac_check_lib_save_LIBS
21270 fi
21271 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21272 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
21273 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21274 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21275 fi
21276
21277 fi
21278 fi
21279
21280 rm -f core conftest.err conftest.$ac_objext \
21281 conftest$ac_exeext conftest.$ac_ext
21282 LIBS="$ac_xsave_LIBS"
21283
21284 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
21285 # to get the SysV transport functions.
21286 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21287 # needs -lnsl.
21288 # The nsl library prevents programs from opening the X display
21289 # on Irix 5.2, according to T.E. Dickey.
21290 # The functions gethostbyname, getservbyname, and inet_addr are
21291 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21292 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21293 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21294 if test "${ac_cv_func_gethostbyname+set}" = set; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21296 else
21297 cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h. */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21305 #define gethostbyname innocuous_gethostbyname
21306
21307 /* System header to define __stub macros and hopefully few prototypes,
21308 which can conflict with char gethostbyname (); below.
21309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21310 <limits.h> exists even on freestanding compilers. */
21311
21312 #ifdef __STDC__
21313 # include <limits.h>
21314 #else
21315 # include <assert.h>
21316 #endif
21317
21318 #undef gethostbyname
21319
21320 /* Override any GCC internal prototype to avoid an error.
21321 Use char because int might match the return type of a GCC
21322 builtin and then its argument prototype would still apply. */
21323 #ifdef __cplusplus
21324 extern "C"
21325 #endif
21326 char gethostbyname ();
21327 /* The GNU C library defines this for functions which it implements
21328 to always fail with ENOSYS. Some functions are actually named
21329 something starting with __ and the normal name is an alias. */
21330 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21331 choke me
21332 #endif
21333
21334 int
21335 main ()
21336 {
21337 return gethostbyname ();
21338 ;
21339 return 0;
21340 }
21341 _ACEOF
21342 rm -f conftest.$ac_objext conftest$ac_exeext
21343 if { (ac_try="$ac_link"
21344 case "(($ac_try" in
21345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346 *) ac_try_echo=$ac_try;;
21347 esac
21348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349 (eval "$ac_link") 2>conftest.er1
21350 ac_status=$?
21351 grep -v '^ *+' conftest.er1 >conftest.err
21352 rm -f conftest.er1
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } &&
21356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21357 { (case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_try") 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; } &&
21366 { ac_try='test -s conftest$ac_exeext'
21367 { (case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21370 esac
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_try") 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 ac_cv_func_gethostbyname=yes
21377 else
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381 ac_cv_func_gethostbyname=no
21382 fi
21383
21384 rm -f core conftest.err conftest.$ac_objext \
21385 conftest$ac_exeext conftest.$ac_ext
21386 fi
21387 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21388 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21389
21390 if test $ac_cv_func_gethostbyname = no; then
21391 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21392 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21393 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 else
21396 ac_check_lib_save_LIBS=$LIBS
21397 LIBS="-lnsl $LIBS"
21398 cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h. */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404
21405 /* Override any GCC internal prototype to avoid an error.
21406 Use char because int might match the return type of a GCC
21407 builtin and then its argument prototype would still apply. */
21408 #ifdef __cplusplus
21409 extern "C"
21410 #endif
21411 char gethostbyname ();
21412 int
21413 main ()
21414 {
21415 return gethostbyname ();
21416 ;
21417 return 0;
21418 }
21419 _ACEOF
21420 rm -f conftest.$ac_objext conftest$ac_exeext
21421 if { (ac_try="$ac_link"
21422 case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21425 esac
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_link") 2>conftest.er1
21428 ac_status=$?
21429 grep -v '^ *+' conftest.er1 >conftest.err
21430 rm -f conftest.er1
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } &&
21434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21435 { (case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_try") 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; } &&
21444 { ac_try='test -s conftest$ac_exeext'
21445 { (case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_try") 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_lib_nsl_gethostbyname=yes
21455 else
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 ac_cv_lib_nsl_gethostbyname=no
21460 fi
21461
21462 rm -f core conftest.err conftest.$ac_objext \
21463 conftest$ac_exeext conftest.$ac_ext
21464 LIBS=$ac_check_lib_save_LIBS
21465 fi
21466 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21467 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21468 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21469 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21470 fi
21471
21472 if test $ac_cv_lib_nsl_gethostbyname = no; then
21473 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21474 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
21475 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 else
21478 ac_check_lib_save_LIBS=$LIBS
21479 LIBS="-lbsd $LIBS"
21480 cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h. */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486
21487 /* Override any GCC internal prototype to avoid an error.
21488 Use char because int might match the return type of a GCC
21489 builtin and then its argument prototype would still apply. */
21490 #ifdef __cplusplus
21491 extern "C"
21492 #endif
21493 char gethostbyname ();
21494 int
21495 main ()
21496 {
21497 return gethostbyname ();
21498 ;
21499 return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext conftest$ac_exeext
21503 if { (ac_try="$ac_link"
21504 case "(($ac_try" in
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506 *) ac_try_echo=$ac_try;;
21507 esac
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509 (eval "$ac_link") 2>conftest.er1
21510 ac_status=$?
21511 grep -v '^ *+' conftest.er1 >conftest.err
21512 rm -f conftest.er1
21513 cat conftest.err >&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } &&
21516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21517 { (case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_try") 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; } &&
21526 { ac_try='test -s conftest$ac_exeext'
21527 { (case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_try") 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21536 ac_cv_lib_bsd_gethostbyname=yes
21537 else
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541 ac_cv_lib_bsd_gethostbyname=no
21542 fi
21543
21544 rm -f core conftest.err conftest.$ac_objext \
21545 conftest$ac_exeext conftest.$ac_ext
21546 LIBS=$ac_check_lib_save_LIBS
21547 fi
21548 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21549 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
21550 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21551 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21552 fi
21553
21554 fi
21555 fi
21556
21557 # [email protected] says without -lsocket,
21558 # socket/setsockopt and other routines are undefined under SCO ODT
21559 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
21560 # on later versions), says Simon Leinen: it contains gethostby*
21561 # variants that don't use the name server (or something). -lsocket
21562 # must be given before -lnsl if both are needed. We assume that
21563 # if connect needs -lnsl, so does gethostbyname.
21564 { echo "$as_me:$LINENO: checking for connect" >&5
21565 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21566 if test "${ac_cv_func_connect+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569 cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h. */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21577 #define connect innocuous_connect
21578
21579 /* System header to define __stub macros and hopefully few prototypes,
21580 which can conflict with char connect (); below.
21581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21582 <limits.h> exists even on freestanding compilers. */
21583
21584 #ifdef __STDC__
21585 # include <limits.h>
21586 #else
21587 # include <assert.h>
21588 #endif
21589
21590 #undef connect
21591
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21595 #ifdef __cplusplus
21596 extern "C"
21597 #endif
21598 char connect ();
21599 /* The GNU C library defines this for functions which it implements
21600 to always fail with ENOSYS. Some functions are actually named
21601 something starting with __ and the normal name is an alias. */
21602 #if defined __stub_connect || defined __stub___connect
21603 choke me
21604 #endif
21605
21606 int
21607 main ()
21608 {
21609 return connect ();
21610 ;
21611 return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (ac_try="$ac_link"
21616 case "(($ac_try" in
21617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618 *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621 (eval "$ac_link") 2>conftest.er1
21622 ac_status=$?
21623 grep -v '^ *+' conftest.er1 >conftest.err
21624 rm -f conftest.er1
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } &&
21628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21629 { (case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_try") 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; } &&
21638 { ac_try='test -s conftest$ac_exeext'
21639 { (case "(($ac_try" in
21640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641 *) ac_try_echo=$ac_try;;
21642 esac
21643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644 (eval "$ac_try") 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_cv_func_connect=yes
21649 else
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653 ac_cv_func_connect=no
21654 fi
21655
21656 rm -f core conftest.err conftest.$ac_objext \
21657 conftest$ac_exeext conftest.$ac_ext
21658 fi
21659 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21660 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21661
21662 if test $ac_cv_func_connect = no; then
21663 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21664 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21665 if test "${ac_cv_lib_socket_connect+set}" = set; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668 ac_check_lib_save_LIBS=$LIBS
21669 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676
21677 /* Override any GCC internal prototype to avoid an error.
21678 Use char because int might match the return type of a GCC
21679 builtin and then its argument prototype would still apply. */
21680 #ifdef __cplusplus
21681 extern "C"
21682 #endif
21683 char connect ();
21684 int
21685 main ()
21686 {
21687 return connect ();
21688 ;
21689 return 0;
21690 }
21691 _ACEOF
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (ac_try="$ac_link"
21694 case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_link") 2>conftest.er1
21700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } &&
21706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21707 { (case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21710 esac
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712 (eval "$ac_try") 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; } &&
21716 { ac_try='test -s conftest$ac_exeext'
21717 { (case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21720 esac
21721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722 (eval "$ac_try") 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; }; then
21726 ac_cv_lib_socket_connect=yes
21727 else
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731 ac_cv_lib_socket_connect=no
21732 fi
21733
21734 rm -f core conftest.err conftest.$ac_objext \
21735 conftest$ac_exeext conftest.$ac_ext
21736 LIBS=$ac_check_lib_save_LIBS
21737 fi
21738 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21739 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21740 if test $ac_cv_lib_socket_connect = yes; then
21741 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21742 fi
21743
21744 fi
21745
21746 # Guillermo Gomez says -lposix is necessary on A/UX.
21747 { echo "$as_me:$LINENO: checking for remove" >&5
21748 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21749 if test "${ac_cv_func_remove+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21760 #define remove innocuous_remove
21761
21762 /* System header to define __stub macros and hopefully few prototypes,
21763 which can conflict with char remove (); below.
21764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21765 <limits.h> exists even on freestanding compilers. */
21766
21767 #ifdef __STDC__
21768 # include <limits.h>
21769 #else
21770 # include <assert.h>
21771 #endif
21772
21773 #undef remove
21774
21775 /* Override any GCC internal prototype to avoid an error.
21776 Use char because int might match the return type of a GCC
21777 builtin and then its argument prototype would still apply. */
21778 #ifdef __cplusplus
21779 extern "C"
21780 #endif
21781 char remove ();
21782 /* The GNU C library defines this for functions which it implements
21783 to always fail with ENOSYS. Some functions are actually named
21784 something starting with __ and the normal name is an alias. */
21785 #if defined __stub_remove || defined __stub___remove
21786 choke me
21787 #endif
21788
21789 int
21790 main ()
21791 {
21792 return remove ();
21793 ;
21794 return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21812 { (case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21815 esac
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_try") 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest$ac_exeext'
21822 { (case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_try") 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 ac_cv_func_remove=yes
21832 else
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21835
21836 ac_cv_func_remove=no
21837 fi
21838
21839 rm -f core conftest.err conftest.$ac_objext \
21840 conftest$ac_exeext conftest.$ac_ext
21841 fi
21842 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21843 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21844
21845 if test $ac_cv_func_remove = no; then
21846 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21847 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21848 if test "${ac_cv_lib_posix_remove+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851 ac_check_lib_save_LIBS=$LIBS
21852 LIBS="-lposix $LIBS"
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h. */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859
21860 /* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21863 #ifdef __cplusplus
21864 extern "C"
21865 #endif
21866 char remove ();
21867 int
21868 main ()
21869 {
21870 return remove ();
21871 ;
21872 return 0;
21873 }
21874 _ACEOF
21875 rm -f conftest.$ac_objext conftest$ac_exeext
21876 if { (ac_try="$ac_link"
21877 case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_link") 2>conftest.er1
21883 ac_status=$?
21884 grep -v '^ *+' conftest.er1 >conftest.err
21885 rm -f conftest.er1
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
21889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21890 { (case "(($ac_try" in
21891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892 *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895 (eval "$ac_try") 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; } &&
21899 { ac_try='test -s conftest$ac_exeext'
21900 { (case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21903 esac
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_try") 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; }; then
21909 ac_cv_lib_posix_remove=yes
21910 else
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21913
21914 ac_cv_lib_posix_remove=no
21915 fi
21916
21917 rm -f core conftest.err conftest.$ac_objext \
21918 conftest$ac_exeext conftest.$ac_ext
21919 LIBS=$ac_check_lib_save_LIBS
21920 fi
21921 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21922 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21923 if test $ac_cv_lib_posix_remove = yes; then
21924 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21925 fi
21926
21927 fi
21928
21929 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21930 { echo "$as_me:$LINENO: checking for shmat" >&5
21931 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21932 if test "${ac_cv_func_shmat+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21934 else
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21943 #define shmat innocuous_shmat
21944
21945 /* System header to define __stub macros and hopefully few prototypes,
21946 which can conflict with char shmat (); below.
21947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21948 <limits.h> exists even on freestanding compilers. */
21949
21950 #ifdef __STDC__
21951 # include <limits.h>
21952 #else
21953 # include <assert.h>
21954 #endif
21955
21956 #undef shmat
21957
21958 /* Override any GCC internal prototype to avoid an error.
21959 Use char because int might match the return type of a GCC
21960 builtin and then its argument prototype would still apply. */
21961 #ifdef __cplusplus
21962 extern "C"
21963 #endif
21964 char shmat ();
21965 /* The GNU C library defines this for functions which it implements
21966 to always fail with ENOSYS. Some functions are actually named
21967 something starting with __ and the normal name is an alias. */
21968 #if defined __stub_shmat || defined __stub___shmat
21969 choke me
21970 #endif
21971
21972 int
21973 main ()
21974 {
21975 return shmat ();
21976 ;
21977 return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_link") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_try") 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest$ac_exeext'
22005 { (case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_try") 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_cv_func_shmat=yes
22015 else
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_cv_func_shmat=no
22020 fi
22021
22022 rm -f core conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22024 fi
22025 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22026 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22027
22028 if test $ac_cv_func_shmat = no; then
22029 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22030 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
22031 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034 ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-lipc $LIBS"
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h. */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042
22043 /* Override any GCC internal prototype to avoid an error.
22044 Use char because int might match the return type of a GCC
22045 builtin and then its argument prototype would still apply. */
22046 #ifdef __cplusplus
22047 extern "C"
22048 #endif
22049 char shmat ();
22050 int
22051 main ()
22052 {
22053 return shmat ();
22054 ;
22055 return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_link") 2>conftest.er1
22066 ac_status=$?
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } &&
22072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22073 { (case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_try") 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; } &&
22082 { ac_try='test -s conftest$ac_exeext'
22083 { (case "(($ac_try" in
22084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22085 *) ac_try_echo=$ac_try;;
22086 esac
22087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22088 (eval "$ac_try") 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }; then
22092 ac_cv_lib_ipc_shmat=yes
22093 else
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097 ac_cv_lib_ipc_shmat=no
22098 fi
22099
22100 rm -f core conftest.err conftest.$ac_objext \
22101 conftest$ac_exeext conftest.$ac_ext
22102 LIBS=$ac_check_lib_save_LIBS
22103 fi
22104 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22105 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
22106 if test $ac_cv_lib_ipc_shmat = yes; then
22107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22108 fi
22109
22110 fi
22111 fi
22112
22113 # Check for libraries that X11R6 Xt/Xaw programs need.
22114 ac_save_LDFLAGS=$LDFLAGS
22115 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22116 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22117 # check for ICE first), but we must link in the order -lSM -lICE or
22118 # we get undefined symbols. So assume we have SM if we have ICE.
22119 # These have to be linked with before -lX11, unlike the other
22120 # libraries we check for below, so use a different variable.
22121 # John Interrante, Karl Berry
22122 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22123 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
22124 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127 ac_check_lib_save_LIBS=$LIBS
22128 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22129 cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h. */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22135
22136 /* Override any GCC internal prototype to avoid an error.
22137 Use char because int might match the return type of a GCC
22138 builtin and then its argument prototype would still apply. */
22139 #ifdef __cplusplus
22140 extern "C"
22141 #endif
22142 char IceConnectionNumber ();
22143 int
22144 main ()
22145 {
22146 return IceConnectionNumber ();
22147 ;
22148 return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (ac_try="$ac_link"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_link") 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
22165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22166 { (case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22169 esac
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_try") 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; } &&
22175 { ac_try='test -s conftest$ac_exeext'
22176 { (case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_try") 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 ac_cv_lib_ICE_IceConnectionNumber=yes
22186 else
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190 ac_cv_lib_ICE_IceConnectionNumber=no
22191 fi
22192
22193 rm -f core conftest.err conftest.$ac_objext \
22194 conftest$ac_exeext conftest.$ac_ext
22195 LIBS=$ac_check_lib_save_LIBS
22196 fi
22197 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22198 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
22199 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22200 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22201 fi
22202
22203 LDFLAGS=$ac_save_LDFLAGS
22204
22205 fi
22206
22207
22208
22209
22210
22211
22212 LDFLAGS="${LDFLAGS} $X_LIBS"
22213
22214 { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
22215 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
22216 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219 ac_check_lib_save_LIBS=$LIBS
22220 LIBS="-lX11 $LIBS"
22221 cat >conftest.$ac_ext <<_ACEOF
22222 /* confdefs.h. */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h. */
22227
22228 /* Override any GCC internal prototype to avoid an error.
22229 Use char because int might match the return type of a GCC
22230 builtin and then its argument prototype would still apply. */
22231 #ifdef __cplusplus
22232 extern "C"
22233 #endif
22234 char XOpenDisplay ();
22235 int
22236 main ()
22237 {
22238 return XOpenDisplay ();
22239 ;
22240 return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (ac_try="$ac_link"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_link") 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
22257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22258 { (case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_try") 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest$ac_exeext'
22268 { (case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_try") 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; }; then
22277 ac_cv_lib_X11_XOpenDisplay=yes
22278 else
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282 ac_cv_lib_X11_XOpenDisplay=no
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext \
22286 conftest$ac_exeext conftest.$ac_ext
22287 LIBS=$ac_check_lib_save_LIBS
22288 fi
22289 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
22290 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
22291 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
22292 cat >>confdefs.h <<_ACEOF
22293 #define HAVE_LIBX11 1
22294 _ACEOF
22295
22296 LIBS="-lX11 $LIBS"
22297
22298 fi
22299
22300
22301 topdir=`pwd`
22302
22303 top_builddir=`pwd`
22304
22305 KFEM_LIBS="$topdir/freefem/fem/libfem.la " #$topdir/lib/adapt/libadapt.la "
22306
22307
22308 KFEM_INCLUDES="-I\$(top_srcdir)/freefem/fem -I$top_srcdir/"
22309
22310
22311 #
22312 # Do we want some optimisation in the generated code
22313 #
22314 enable_kde=yes
22315 # Check whether --enable-kde was given.
22316 if test "${enable_kde+set}" = set; then
22317 enableval=$enable_kde;
22318 CPPFLAGS="${CPPFLAGS} "
22319
22320 fi
22321
22322
22323
22324 # Check whether --with-optimization was given.
22325 if test "${with_optimization+set}" = set; then
22326 withval=$with_optimization;
22327 if test "$CXX" = "g++" || test "$CXX" = "c++" || test "$host_os" = "linux" ; then
22328 CXXFLAGS="-O3 -fforce-mem -fforce-addr -fomit-frame-pointer"
22329 fi
22330 if test "$CXX" = "CC" && test "$host_os" = "hpux" ; then
22331 CXXFLAGS="+O3 +a1"
22332 fi
22333 if test "$CXX" = "CC" && test "$host_os" = "irix" ; then
22334 CXXFLAGS="-O3"
22335 fi
22336 else
22337
22338 if test "$CXX" = "CC" && test "$host_os" = "hpux" ; then
22339 CXXFLAGS="+a1"
22340 fi
22341 fi
22342
22343
22344 #
22345 # check corelinux presence
22346 #
22347 #AC_CHECK_LIB(cl++, ACCheckCoreLinux,[
22348 #CXXFLAGS="${CXXFLAGS} -I/usr/include/corelinux"
22349 #LDFLAGS="${LDFLAGS} "
22350 #LIBS="${LIBS} -lcl++"
22351 #],[
22352 # echo "You need to install corelinux. see http://corelinux.sourceforge.net"
22353 # exit;
22354 #],)
22355
22356 CXXFLAGS="-Wall ${CXXFLAGS} ${X_CFLAGS}"
22357
22358 echo "** Here are the make variables for $host"
22359 echo "* Compiler:"
22360 echo "** CXX=$CXX"
22361 echo "* Compilation options:"
22362 echo "** DEFS=$DEFS"
22363 echo "** CPPFLAGS=$CPPFLAGS"
22364 echo "** CXXFLAGS=$CXXFLAGS"
22365 echo "** X_CFLAGS=$X_CFLAGS"
22366 echo "* Linking:"
22367 echo "** LDFLAGS=$LDFLAGS"
22368 echo "** LIBS=$LIBS"
22369 echo "** X_PRE_LIBS=$X_PRE_LIBS"
22370 echo "** X_LIBS=$X_LIBS"
22371 echo "** X_EXTRA_LIBS=$X_EXTRA_LIBS"
22372
22373
22374 ac_config_files="$ac_config_files Makefile freefem.spec admin/Makefile doc/Makefile freefem-api/Makefile freefem/Makefile freefem/fem/Makefile examples/Makefile"
22375
22376 cat >confcache <<\_ACEOF
22377 # This file is a shell script that caches the results of configure
22378 # tests run on this system so they can be shared between configure
22379 # scripts and configure runs, see configure's option --config-cache.
22380 # It is not useful on other systems. If it contains results you don't
22381 # want to keep, you may remove or edit it.
22382 #
22383 # config.status only pays attention to the cache file if you give it
22384 # the --recheck option to rerun configure.
22385 #
22386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22388 # following values.
22389
22390 _ACEOF
22391
22392 # The following way of writing the cache mishandles newlines in values,
22393 # but we know of no workaround that is simple, portable, and efficient.
22394 # So, we kill variables containing newlines.
22395 # Ultrix sh set writes to stderr and can't be redirected directly,
22396 # and sets the high bit in the cache file unless we assign to the vars.
22397 (
22398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22399 eval ac_val=\$$ac_var
22400 case $ac_val in #(
22401 *${as_nl}*)
22402 case $ac_var in #(
22403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22405 esac
22406 case $ac_var in #(
22407 _ | IFS | as_nl) ;; #(
22408 *) $as_unset $ac_var ;;
22409 esac ;;
22410 esac
22411 done
22412
22413 (set) 2>&1 |
22414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22415 *${as_nl}ac_space=\ *)
22416 # `set' does not quote correctly, so add quotes (double-quote
22417 # substitution turns \\\\ into \\, and sed turns \\ into \).
22418 sed -n \
22419 "s/'/'\\\\''/g;
22420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22421 ;; #(
22422 *)
22423 # `set' quotes correctly as required by POSIX, so do not add quotes.
22424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22425 ;;
22426 esac |
22427 sort
22428 ) |
22429 sed '
22430 /^ac_cv_env_/b end
22431 t clear
22432 :clear
22433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22434 t end
22435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22436 :end' >>confcache
22437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22438 if test -w "$cache_file"; then
22439 test "x$cache_file" != "x/dev/null" &&
22440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22441 echo "$as_me: updating cache $cache_file" >&6;}
22442 cat confcache >$cache_file
22443 else
22444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22446 fi
22447 fi
22448 rm -f confcache
22449
22450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22451 # Let make expand exec_prefix.
22452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22453
22454 DEFS=-DHAVE_CONFIG_H
22455
22456 ac_libobjs=
22457 ac_ltlibobjs=
22458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22459 # 1. Remove the extension, and $U if already installed.
22460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22461 ac_i=`echo "$ac_i" | sed "$ac_script"`
22462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22463 # will be set to the directory where LIBOBJS objects are built.
22464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22466 done
22467 LIBOBJS=$ac_libobjs
22468
22469 LTLIBOBJS=$ac_ltlibobjs
22470
22471
22472 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22473 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22474 Usually this means the macro was only invoked conditionally." >&5
22475 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22476 Usually this means the macro was only invoked conditionally." >&2;}
22477 { (exit 1); exit 1; }; }
22478 fi
22479 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22480 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22481 Usually this means the macro was only invoked conditionally." >&5
22482 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22483 Usually this means the macro was only invoked conditionally." >&2;}
22484 { (exit 1); exit 1; }; }
22485 fi
22486 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22487 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22488 Usually this means the macro was only invoked conditionally." >&5
22489 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22490 Usually this means the macro was only invoked conditionally." >&2;}
22491 { (exit 1); exit 1; }; }
22492 fi
22493 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22494 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22495 Usually this means the macro was only invoked conditionally." >&5
22496 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22497 Usually this means the macro was only invoked conditionally." >&2;}
22498 { (exit 1); exit 1; }; }
22499 fi
22500
22501 : ${CONFIG_STATUS=./config.status}
22502 ac_clean_files_save=$ac_clean_files
22503 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22504 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22505 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22506 cat >$CONFIG_STATUS <<_ACEOF
22507 #! $SHELL
22508 # Generated by $as_me.
22509 # Run this file to recreate the current configuration.
22510 # Compiler output produced by configure, useful for debugging
22511 # configure, is in config.log if it exists.
22512
22513 debug=false
22514 ac_cs_recheck=false
22515 ac_cs_silent=false
22516 SHELL=\${CONFIG_SHELL-$SHELL}
22517 _ACEOF
22518
22519 cat >>$CONFIG_STATUS <<\_ACEOF
22520 ## --------------------- ##
22521 ## M4sh Initialization. ##
22522 ## --------------------- ##
22523
22524 # Be Bourne compatible
22525 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22526 emulate sh
22527 NULLCMD=:
22528 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22529 # is contrary to our usage. Disable this feature.
22530 alias -g '${1+"$@"}'='"$@"'
22531 setopt NO_GLOB_SUBST
22532 else
22533 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22534 fi
22535 BIN_SH=xpg4; export BIN_SH # for Tru64
22536 DUALCASE=1; export DUALCASE # for MKS sh
22537
22538
22539 # PATH needs CR
22540 # Avoid depending upon Character Ranges.
22541 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22542 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22543 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22544 as_cr_digits='0123456789'
22545 as_cr_alnum=$as_cr_Letters$as_cr_digits
22546
22547 # The user is always right.
22548 if test "${PATH_SEPARATOR+set}" != set; then
22549 echo "#! /bin/sh" >conf$$.sh
22550 echo "exit 0" >>conf$$.sh
22551 chmod +x conf$$.sh
22552 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22553 PATH_SEPARATOR=';'
22554 else
22555 PATH_SEPARATOR=:
22556 fi
22557 rm -f conf$$.sh
22558 fi
22559
22560 # Support unset when possible.
22561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22562 as_unset=unset
22563 else
22564 as_unset=false
22565 fi
22566
22567
22568 # IFS
22569 # We need space, tab and new line, in precisely that order. Quoting is
22570 # there to prevent editors from complaining about space-tab.
22571 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22572 # splitting by setting IFS to empty value.)
22573 as_nl='
22574 '
22575 IFS=" "" $as_nl"
22576
22577 # Find who we are. Look in the path if we contain no directory separator.
22578 case $0 in
22579 *[\\/]* ) as_myself=$0 ;;
22580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22581 for as_dir in $PATH
22582 do
22583 IFS=$as_save_IFS
22584 test -z "$as_dir" && as_dir=.
22585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22586 done
22587 IFS=$as_save_IFS
22588
22589 ;;
22590 esac
22591 # We did not find ourselves, most probably we were run as `sh COMMAND'
22592 # in which case we are not to be found in the path.
22593 if test "x$as_myself" = x; then
22594 as_myself=$0
22595 fi
22596 if test ! -f "$as_myself"; then
22597 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22598 { (exit 1); exit 1; }
22599 fi
22600
22601 # Work around bugs in pre-3.0 UWIN ksh.
22602 for as_var in ENV MAIL MAILPATH
22603 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22604 done
22605 PS1='$ '
22606 PS2='> '
22607 PS4='+ '
22608
22609 # NLS nuisances.
22610 for as_var in \
22611 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22612 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22613 LC_TELEPHONE LC_TIME
22614 do
22615 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22616 eval $as_var=C; export $as_var
22617 else
22618 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22619 fi
22620 done
22621
22622 # Required to use basename.
22623 if expr a : '\(a\)' >/dev/null 2>&1 &&
22624 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22625 as_expr=expr
22626 else
22627 as_expr=false
22628 fi
22629
22630 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22631 as_basename=basename
22632 else
22633 as_basename=false
22634 fi
22635
22636
22637 # Name of the executable.
22638 as_me=`$as_basename -- "$0" ||
22639 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22640 X"$0" : 'X\(//\)$' \| \
22641 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22642 echo X/"$0" |
22643 sed '/^.*\/\([^/][^/]*\)\/*$/{
22644 s//\1/
22645 q
22646 }
22647 /^X\/\(\/\/\)$/{
22648 s//\1/
22649 q
22650 }
22651 /^X\/\(\/\).*/{
22652 s//\1/
22653 q
22654 }
22655 s/.*/./; q'`
22656
22657 # CDPATH.
22658 $as_unset CDPATH
22659
22660
22661
22662 as_lineno_1=$LINENO
22663 as_lineno_2=$LINENO
22664 test "x$as_lineno_1" != "x$as_lineno_2" &&
22665 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22666
22667 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22668 # uniformly replaced by the line number. The first 'sed' inserts a
22669 # line-number line after each line using $LINENO; the second 'sed'
22670 # does the real work. The second script uses 'N' to pair each
22671 # line-number line with the line containing $LINENO, and appends
22672 # trailing '-' during substitution so that $LINENO is not a special
22673 # case at line end.
22674 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22675 # scripts with optimization help from Paolo Bonzini. Blame Lee
22676 # E. McMahon (1931-1989) for sed's syntax. :-)
22677 sed -n '
22678 p
22679 /[$]LINENO/=
22680 ' <$as_myself |
22681 sed '
22682 s/[$]LINENO.*/&-/
22683 t lineno
22684 b
22685 :lineno
22686 N
22687 :loop
22688 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22689 t loop
22690 s/-\n.*//
22691 ' >$as_me.lineno &&
22692 chmod +x "$as_me.lineno" ||
22693 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22694 { (exit 1); exit 1; }; }
22695
22696 # Don't try to exec as it changes $[0], causing all sort of problems
22697 # (the dirname of $[0] is not the place where we might find the
22698 # original and so on. Autoconf is especially sensitive to this).
22699 . "./$as_me.lineno"
22700 # Exit status is that of the last command.
22701 exit
22702 }
22703
22704
22705 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22706 as_dirname=dirname
22707 else
22708 as_dirname=false
22709 fi
22710
22711 ECHO_C= ECHO_N= ECHO_T=
22712 case `echo -n x` in
22713 -n*)
22714 case `echo 'x\c'` in
22715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22716 *) ECHO_C='\c';;
22717 esac;;
22718 *)
22719 ECHO_N='-n';;
22720 esac
22721
22722 if expr a : '\(a\)' >/dev/null 2>&1 &&
22723 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22724 as_expr=expr
22725 else
22726 as_expr=false
22727 fi
22728
22729 rm -f conf$$ conf$$.exe conf$$.file
22730 if test -d conf$$.dir; then
22731 rm -f conf$$.dir/conf$$.file
22732 else
22733 rm -f conf$$.dir
22734 mkdir conf$$.dir
22735 fi
22736 echo >conf$$.file
22737 if ln -s conf$$.file conf$$ 2>/dev/null; then
22738 as_ln_s='ln -s'
22739 # ... but there are two gotchas:
22740 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22741 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22742 # In both cases, we have to default to `cp -p'.
22743 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22744 as_ln_s='cp -p'
22745 elif ln conf$$.file conf$$ 2>/dev/null; then
22746 as_ln_s=ln
22747 else
22748 as_ln_s='cp -p'
22749 fi
22750 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22751 rmdir conf$$.dir 2>/dev/null
22752
22753 if mkdir -p . 2>/dev/null; then
22754 as_mkdir_p=:
22755 else
22756 test -d ./-p && rmdir ./-p
22757 as_mkdir_p=false
22758 fi
22759
22760 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22761 # systems may use methods other than mode bits to determine executability.
22762 cat >conf$$.file <<_ASEOF
22763 #! /bin/sh
22764 exit 0
22765 _ASEOF
22766 chmod +x conf$$.file
22767 if test -x conf$$.file >/dev/null 2>&1; then
22768 as_executable_p="test -x"
22769 else
22770 as_executable_p=:
22771 fi
22772 rm -f conf$$.file
22773
22774 # Sed expression to map a string onto a valid CPP name.
22775 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22776
22777 # Sed expression to map a string onto a valid variable name.
22778 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22779
22780
22781 exec 6>&1
22782
22783 # Save the log message, to keep $[0] and so on meaningful, and to
22784 # report actual input values of CONFIG_FILES etc. instead of their
22785 # values after options handling.
22786 ac_log="
22787 This file was extended by $as_me, which was
22788 generated by GNU Autoconf 2.60. Invocation command line was
22789
22790 CONFIG_FILES = $CONFIG_FILES
22791 CONFIG_HEADERS = $CONFIG_HEADERS
22792 CONFIG_LINKS = $CONFIG_LINKS
22793 CONFIG_COMMANDS = $CONFIG_COMMANDS
22794 $ $0 $@
22795
22796 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22797 "
22798
22799 _ACEOF
22800
22801 cat >>$CONFIG_STATUS <<_ACEOF
22802 # Files that config.status was made for.
22803 config_files="$ac_config_files"
22804 config_headers="$ac_config_headers"
22805 config_commands="$ac_config_commands"
22806
22807 _ACEOF
22808
22809 cat >>$CONFIG_STATUS <<\_ACEOF
22810 ac_cs_usage="\
22811 \`$as_me' instantiates files from templates according to the
22812 current configuration.
22813
22814 Usage: $0 [OPTIONS] [FILE]...
22815
22816 -h, --help print this help, then exit
22817 -V, --version print version number, then exit
22818 -q, --quiet do not print progress messages
22819 -d, --debug don't remove temporary files
22820 --recheck update $as_me by reconfiguring in the same conditions
22821 --file=FILE[:TEMPLATE]
22822 instantiate the configuration file FILE
22823 --header=FILE[:TEMPLATE]
22824 instantiate the configuration header FILE
22825
22826 Configuration files:
22827 $config_files
22828
22829 Configuration headers:
22830 $config_headers
22831
22832 Configuration commands:
22833 $config_commands
22834
22835 Report bugs to <[email protected]>."
22836
22837 _ACEOF
22838 cat >>$CONFIG_STATUS <<_ACEOF
22839 ac_cs_version="\\
22840 config.status
22841 configured by $0, generated by GNU Autoconf 2.60,
22842 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22843
22844 Copyright (C) 2006 Free Software Foundation, Inc.
22845 This config.status script is free software; the Free Software Foundation
22846 gives unlimited permission to copy, distribute and modify it."
22847
22848 ac_pwd='$ac_pwd'
22849 srcdir='$srcdir'
22850 INSTALL='$INSTALL'
22851 _ACEOF
22852
22853 cat >>$CONFIG_STATUS <<\_ACEOF
22854 # If no file are specified by the user, then we need to provide default
22855 # value. By we need to know if files were specified by the user.
22856 ac_need_defaults=:
22857 while test $# != 0
22858 do
22859 case $1 in
22860 --*=*)
22861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22863 ac_shift=:
22864 ;;
22865 *)
22866 ac_option=$1
22867 ac_optarg=$2
22868 ac_shift=shift
22869 ;;
22870 esac
22871
22872 case $ac_option in
22873 # Handling of the options.
22874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22875 ac_cs_recheck=: ;;
22876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22877 echo "$ac_cs_version"; exit ;;
22878 --debug | --debu | --deb | --de | --d | -d )
22879 debug=: ;;
22880 --file | --fil | --fi | --f )
22881 $ac_shift
22882 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22883 ac_need_defaults=false;;
22884 --header | --heade | --head | --hea )
22885 $ac_shift
22886 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22887 ac_need_defaults=false;;
22888 --he | --h)
22889 # Conflict between --help and --header
22890 { echo "$as_me: error: ambiguous option: $1
22891 Try \`$0 --help' for more information." >&2
22892 { (exit 1); exit 1; }; };;
22893 --help | --hel | -h )
22894 echo "$ac_cs_usage"; exit ;;
22895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22897 ac_cs_silent=: ;;
22898
22899 # This is an error.
22900 -*) { echo "$as_me: error: unrecognized option: $1
22901 Try \`$0 --help' for more information." >&2
22902 { (exit 1); exit 1; }; } ;;
22903
22904 *) ac_config_targets="$ac_config_targets $1"
22905 ac_need_defaults=false ;;
22906
22907 esac
22908 shift
22909 done
22910
22911 ac_configure_extra_args=
22912
22913 if $ac_cs_silent; then
22914 exec 6>/dev/null
22915 ac_configure_extra_args="$ac_configure_extra_args --silent"
22916 fi
22917
22918 _ACEOF
22919 cat >>$CONFIG_STATUS <<_ACEOF
22920 if \$ac_cs_recheck; then
22921 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22922 CONFIG_SHELL=$SHELL
22923 export CONFIG_SHELL
22924 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22925 fi
22926
22927 _ACEOF
22928 cat >>$CONFIG_STATUS <<\_ACEOF
22929 exec 5>>config.log
22930 {
22931 echo
22932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22933 ## Running $as_me. ##
22934 _ASBOX
22935 echo "$ac_log"
22936 } >&5
22937
22938 _ACEOF
22939 cat >>$CONFIG_STATUS <<_ACEOF
22940 #
22941 # INIT-COMMANDS
22942 #
22943 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22944
22945 _ACEOF
22946
22947 cat >>$CONFIG_STATUS <<\_ACEOF
22948
22949 # Handling of arguments.
22950 for ac_config_target in $ac_config_targets
22951 do
22952 case $ac_config_target in
22953 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22954 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22955 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22956 "freefem.spec") CONFIG_FILES="$CONFIG_FILES freefem.spec" ;;
22957 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
22958 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22959 "freefem-api/Makefile") CONFIG_FILES="$CONFIG_FILES freefem-api/Makefile" ;;
22960 "freefem/Makefile") CONFIG_FILES="$CONFIG_FILES freefem/Makefile" ;;
22961 "freefem/fem/Makefile") CONFIG_FILES="$CONFIG_FILES freefem/fem/Makefile" ;;
22962 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22963
22964 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22965 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22966 { (exit 1); exit 1; }; };;
22967 esac
22968 done
22969
22970
22971 # If the user did not use the arguments to specify the items to instantiate,
22972 # then the envvar interface is used. Set only those that are not.
22973 # We use the long form for the default assignment because of an extremely
22974 # bizarre bug on SunOS 4.1.3.
22975 if $ac_need_defaults; then
22976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22979 fi
22980
22981 # Have a temporary directory for convenience. Make it in the build tree
22982 # simply because there is no reason against having it here, and in addition,
22983 # creating and moving files from /tmp can sometimes cause problems.
22984 # Hook for its removal unless debugging.
22985 # Note that there is a small window in which the directory will not be cleaned:
22986 # after its creation but before its name has been assigned to `$tmp'.
22987 $debug ||
22988 {
22989 tmp=
22990 trap 'exit_status=$?
22991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22992 ' 0
22993 trap '{ (exit 1); exit 1; }' 1 2 13 15
22994 }
22995 # Create a (secure) tmp directory for tmp files.
22996
22997 {
22998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22999 test -n "$tmp" && test -d "$tmp"
23000 } ||
23001 {
23002 tmp=./conf$$-$RANDOM
23003 (umask 077 && mkdir "$tmp")
23004 } ||
23005 {
23006 echo "$me: cannot create a temporary directory in ." >&2
23007 { (exit 1); exit 1; }
23008 }
23009
23010 #
23011 # Set up the sed scripts for CONFIG_FILES section.
23012 #
23013
23014 # No need to generate the scripts if there are no CONFIG_FILES.
23015 # This happens for instance when ./config.status config.h
23016 if test -n "$CONFIG_FILES"; then
23017
23018 _ACEOF
23019
23020
23021
23022 ac_delim='%!_!# '
23023 for ac_last_try in false false false false false :; do
23024 cat >conf$$subs.sed <<_ACEOF
23025 SHELL!$SHELL$ac_delim
23026 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23027 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23028 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23029 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23030 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23031 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23032 exec_prefix!$exec_prefix$ac_delim
23033 prefix!$prefix$ac_delim
23034 program_transform_name!$program_transform_name$ac_delim
23035 bindir!$bindir$ac_delim
23036 sbindir!$sbindir$ac_delim
23037 libexecdir!$libexecdir$ac_delim
23038 datarootdir!$datarootdir$ac_delim
23039 datadir!$datadir$ac_delim
23040 sysconfdir!$sysconfdir$ac_delim
23041 sharedstatedir!$sharedstatedir$ac_delim
23042 localstatedir!$localstatedir$ac_delim
23043 includedir!$includedir$ac_delim
23044 oldincludedir!$oldincludedir$ac_delim
23045 docdir!$docdir$ac_delim
23046 infodir!$infodir$ac_delim
23047 htmldir!$htmldir$ac_delim
23048 dvidir!$dvidir$ac_delim
23049 pdfdir!$pdfdir$ac_delim
23050 psdir!$psdir$ac_delim
23051 libdir!$libdir$ac_delim
23052 localedir!$localedir$ac_delim
23053 mandir!$mandir$ac_delim
23054 DEFS!$DEFS$ac_delim
23055 ECHO_C!$ECHO_C$ac_delim
23056 ECHO_N!$ECHO_N$ac_delim
23057 ECHO_T!$ECHO_T$ac_delim
23058 LIBS!$LIBS$ac_delim
23059 build_alias!$build_alias$ac_delim
23060 host_alias!$host_alias$ac_delim
23061 target_alias!$target_alias$ac_delim
23062 FREEFEM_MAJOR_VERSION!$FREEFEM_MAJOR_VERSION$ac_delim
23063 FREEFEM_MINOR_VERSION!$FREEFEM_MINOR_VERSION$ac_delim
23064 FREEFEM_MICRO_VERSION!$FREEFEM_MICRO_VERSION$ac_delim
23065 FREEFEM_VERSION!$FREEFEM_VERSION$ac_delim
23066 LT_RELEASE!$LT_RELEASE$ac_delim
23067 LT_CURRENT!$LT_CURRENT$ac_delim
23068 LT_REVISION!$LT_REVISION$ac_delim
23069 LT_AGE!$LT_AGE$ac_delim
23070 build!$build$ac_delim
23071 build_cpu!$build_cpu$ac_delim
23072 build_vendor!$build_vendor$ac_delim
23073 build_os!$build_os$ac_delim
23074 host!$host$ac_delim
23075 host_cpu!$host_cpu$ac_delim
23076 host_vendor!$host_vendor$ac_delim
23077 host_os!$host_os$ac_delim
23078 target!$target$ac_delim
23079 target_cpu!$target_cpu$ac_delim
23080 target_vendor!$target_vendor$ac_delim
23081 target_os!$target_os$ac_delim
23082 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23083 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23084 INSTALL_DATA!$INSTALL_DATA$ac_delim
23085 CYGPATH_W!$CYGPATH_W$ac_delim
23086 PACKAGE!$PACKAGE$ac_delim
23087 VERSION!$VERSION$ac_delim
23088 ACLOCAL!$ACLOCAL$ac_delim
23089 AUTOCONF!$AUTOCONF$ac_delim
23090 AUTOMAKE!$AUTOMAKE$ac_delim
23091 AUTOHEADER!$AUTOHEADER$ac_delim
23092 MAKEINFO!$MAKEINFO$ac_delim
23093 install_sh!$install_sh$ac_delim
23094 STRIP!$STRIP$ac_delim
23095 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23096 mkdir_p!$mkdir_p$ac_delim
23097 AWK!$AWK$ac_delim
23098 SET_MAKE!$SET_MAKE$ac_delim
23099 am__leading_dot!$am__leading_dot$ac_delim
23100 AMTAR!$AMTAR$ac_delim
23101 am__tar!$am__tar$ac_delim
23102 am__untar!$am__untar$ac_delim
23103 CC!$CC$ac_delim
23104 CFLAGS!$CFLAGS$ac_delim
23105 LDFLAGS!$LDFLAGS$ac_delim
23106 CPPFLAGS!$CPPFLAGS$ac_delim
23107 ac_ct_CC!$ac_ct_CC$ac_delim
23108 EXEEXT!$EXEEXT$ac_delim
23109 OBJEXT!$OBJEXT$ac_delim
23110 DEPDIR!$DEPDIR$ac_delim
23111 am__include!$am__include$ac_delim
23112 am__quote!$am__quote$ac_delim
23113 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23114 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23115 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23116 CCDEPMODE!$CCDEPMODE$ac_delim
23117 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23118 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23119 GREP!$GREP$ac_delim
23120 EGREP!$EGREP$ac_delim
23121 LN_S!$LN_S$ac_delim
23122 _ACEOF
23123
23124 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23125 break
23126 elif $ac_last_try; then
23127 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23128 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23129 { (exit 1); exit 1; }; }
23130 else
23131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23132 fi
23133 done
23134
23135 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23136 if test -n "$ac_eof"; then
23137 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23138 ac_eof=`expr $ac_eof + 1`
23139 fi
23140
23141 cat >>$CONFIG_STATUS <<_ACEOF
23142 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23144 _ACEOF
23145 sed '
23146 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23147 s/^/s,@/; s/!/@,|#_!!_#|/
23148 :n
23149 t n
23150 s/'"$ac_delim"'$/,g/; t
23151 s/$/\\/; p
23152 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23153 ' >>$CONFIG_STATUS <conf$$subs.sed
23154 rm -f conf$$subs.sed
23155 cat >>$CONFIG_STATUS <<_ACEOF
23156 CEOF$ac_eof
23157 _ACEOF
23158
23159
23160 ac_delim='%!_!# '
23161 for ac_last_try in false false false false false :; do
23162 cat >conf$$subs.sed <<_ACEOF
23163 ECHO!$ECHO$ac_delim
23164 AR!$AR$ac_delim
23165 RANLIB!$RANLIB$ac_delim
23166 CPP!$CPP$ac_delim
23167 CXX!$CXX$ac_delim
23168 CXXFLAGS!$CXXFLAGS$ac_delim
23169 ac_ct_CXX!$ac_ct_CXX$ac_delim
23170 CXXDEPMODE!$CXXDEPMODE$ac_delim
23171 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23172 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23173 CXXCPP!$CXXCPP$ac_delim
23174 F77!$F77$ac_delim
23175 FFLAGS!$FFLAGS$ac_delim
23176 ac_ct_F77!$ac_ct_F77$ac_delim
23177 LIBTOOL!$LIBTOOL$ac_delim
23178 XMKMF!$XMKMF$ac_delim
23179 X_CFLAGS!$X_CFLAGS$ac_delim
23180 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
23181 X_LIBS!$X_LIBS$ac_delim
23182 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
23183 topdir!$topdir$ac_delim
23184 KFEM_LIBS!$KFEM_LIBS$ac_delim
23185 KFEM_INCLUDES!$KFEM_INCLUDES$ac_delim
23186 LIBOBJS!$LIBOBJS$ac_delim
23187 LTLIBOBJS!$LTLIBOBJS$ac_delim
23188 _ACEOF
23189
23190 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
23191 break
23192 elif $ac_last_try; then
23193 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23194 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23195 { (exit 1); exit 1; }; }
23196 else
23197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23198 fi
23199 done
23200
23201 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23202 if test -n "$ac_eof"; then
23203 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23204 ac_eof=`expr $ac_eof + 1`
23205 fi
23206
23207 cat >>$CONFIG_STATUS <<_ACEOF
23208 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23210 _ACEOF
23211 sed '
23212 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23213 s/^/s,@/; s/!/@,|#_!!_#|/
23214 :n
23215 t n
23216 s/'"$ac_delim"'$/,g/; t
23217 s/$/\\/; p
23218 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23219 ' >>$CONFIG_STATUS <conf$$subs.sed
23220 rm -f conf$$subs.sed
23221 cat >>$CONFIG_STATUS <<_ACEOF
23222 :end
23223 s/|#_!!_#|//g
23224 CEOF$ac_eof
23225 _ACEOF
23226
23227
23228 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23229 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23230 # trailing colons and then remove the whole line if VPATH becomes empty
23231 # (actually we leave an empty line to preserve line numbers).
23232 if test "x$srcdir" = x.; then
23233 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23234 s/:*\$(srcdir):*/:/
23235 s/:*\${srcdir}:*/:/
23236 s/:*@srcdir@:*/:/
23237 s/^\([^=]*=[ ]*\):*/\1/
23238 s/:*$//
23239 s/^[^=]*=[ ]*$//
23240 }'
23241 fi
23242
23243 cat >>$CONFIG_STATUS <<\_ACEOF
23244 fi # test -n "$CONFIG_FILES"
23245
23246
23247 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23248 do
23249 case $ac_tag in
23250 :[FHLC]) ac_mode=$ac_tag; continue;;
23251 esac
23252 case $ac_mode$ac_tag in
23253 :[FHL]*:*);;
23254 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23255 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23256 { (exit 1); exit 1; }; };;
23257 :[FH]-) ac_tag=-:-;;
23258 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23259 esac
23260 ac_save_IFS=$IFS
23261 IFS=:
23262 set x $ac_tag
23263 IFS=$ac_save_IFS
23264 shift
23265 ac_file=$1
23266 shift
23267
23268 case $ac_mode in
23269 :L) ac_source=$1;;
23270 :[FH])
23271 ac_file_inputs=
23272 for ac_f
23273 do
23274 case $ac_f in
23275 -) ac_f="$tmp/stdin";;
23276 *) # Look for the file first in the build tree, then in the source tree
23277 # (if the path is not absolute). The absolute path cannot be DOS-style,
23278 # because $ac_f cannot contain `:'.
23279 test -f "$ac_f" ||
23280 case $ac_f in
23281 [\\/$]*) false;;
23282 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23283 esac ||
23284 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23285 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23286 { (exit 1); exit 1; }; };;
23287 esac
23288 ac_file_inputs="$ac_file_inputs $ac_f"
23289 done
23290
23291 # Let's still pretend it is `configure' which instantiates (i.e., don't
23292 # use $as_me), people would be surprised to read:
23293 # /* config.h. Generated by config.status. */
23294 configure_input="Generated from "`IFS=:
23295 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23296 if test x"$ac_file" != x-; then
23297 configure_input="$ac_file. $configure_input"
23298 { echo "$as_me:$LINENO: creating $ac_file" >&5
23299 echo "$as_me: creating $ac_file" >&6;}
23300 fi
23301
23302 case $ac_tag in
23303 *:-:* | *:-) cat >"$tmp/stdin";;
23304 esac
23305 ;;
23306 esac
23307
23308 ac_dir=`$as_dirname -- "$ac_file" ||
23309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310 X"$ac_file" : 'X\(//\)[^/]' \| \
23311 X"$ac_file" : 'X\(//\)$' \| \
23312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23313 echo X"$ac_file" |
23314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23315 s//\1/
23316 q
23317 }
23318 /^X\(\/\/\)[^/].*/{
23319 s//\1/
23320 q
23321 }
23322 /^X\(\/\/\)$/{
23323 s//\1/
23324 q
23325 }
23326 /^X\(\/\).*/{
23327 s//\1/
23328 q
23329 }
23330 s/.*/./; q'`
23331 { as_dir="$ac_dir"
23332 case $as_dir in #(
23333 -*) as_dir=./$as_dir;;
23334 esac
23335 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23336 as_dirs=
23337 while :; do
23338 case $as_dir in #(
23339 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23340 *) as_qdir=$as_dir;;
23341 esac
23342 as_dirs="'$as_qdir' $as_dirs"
23343 as_dir=`$as_dirname -- "$as_dir" ||
23344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23345 X"$as_dir" : 'X\(//\)[^/]' \| \
23346 X"$as_dir" : 'X\(//\)$' \| \
23347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23348 echo X"$as_dir" |
23349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23350 s//\1/
23351 q
23352 }
23353 /^X\(\/\/\)[^/].*/{
23354 s//\1/
23355 q
23356 }
23357 /^X\(\/\/\)$/{
23358 s//\1/
23359 q
23360 }
23361 /^X\(\/\).*/{
23362 s//\1/
23363 q
23364 }
23365 s/.*/./; q'`
23366 test -d "$as_dir" && break
23367 done
23368 test -z "$as_dirs" || eval "mkdir $as_dirs"
23369 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23370 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23371 { (exit 1); exit 1; }; }; }
23372 ac_builddir=.
23373
23374 case "$ac_dir" in
23375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23376 *)
23377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23378 # A ".." for each directory in $ac_dir_suffix.
23379 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23380 case $ac_top_builddir_sub in
23381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23383 esac ;;
23384 esac
23385 ac_abs_top_builddir=$ac_pwd
23386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23387 # for backward compatibility:
23388 ac_top_builddir=$ac_top_build_prefix
23389
23390 case $srcdir in
23391 .) # We are building in place.
23392 ac_srcdir=.
23393 ac_top_srcdir=$ac_top_builddir_sub
23394 ac_abs_top_srcdir=$ac_pwd ;;
23395 [\\/]* | ?:[\\/]* ) # Absolute name.
23396 ac_srcdir=$srcdir$ac_dir_suffix;
23397 ac_top_srcdir=$srcdir
23398 ac_abs_top_srcdir=$srcdir ;;
23399 *) # Relative name.
23400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23401 ac_top_srcdir=$ac_top_build_prefix$srcdir
23402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23403 esac
23404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23405
23406
23407 case $ac_mode in
23408 :F)
23409 #
23410 # CONFIG_FILE
23411 #
23412
23413 case $INSTALL in
23414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23415 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23416 esac
23417 _ACEOF
23418
23419 cat >>$CONFIG_STATUS <<\_ACEOF
23420 # If the template does not know about datarootdir, expand it.
23421 # FIXME: This hack should be removed a few years after 2.60.
23422 ac_datarootdir_hack=; ac_datarootdir_seen=
23423
23424 case `sed -n '/datarootdir/ {
23425 p
23426 q
23427 }
23428 /@datadir@/p
23429 /@docdir@/p
23430 /@infodir@/p
23431 /@localedir@/p
23432 /@mandir@/p
23433 ' $ac_file_inputs` in
23434 *datarootdir*) ac_datarootdir_seen=yes;;
23435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23436 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23437 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23438 _ACEOF
23439 cat >>$CONFIG_STATUS <<_ACEOF
23440 ac_datarootdir_hack='
23441 s&@datadir@&$datadir&g
23442 s&@docdir@&$docdir&g
23443 s&@infodir@&$infodir&g
23444 s&@localedir@&$localedir&g
23445 s&@mandir@&$mandir&g
23446 s&\\\${datarootdir}&$datarootdir&g' ;;
23447 esac
23448 _ACEOF
23449
23450 # Neutralize VPATH when `$srcdir' = `.'.
23451 # Shell code in configure.ac might set extrasub.
23452 # FIXME: do we really want to maintain this feature?
23453 cat >>$CONFIG_STATUS <<_ACEOF
23454 sed "$ac_vpsub
23455 $extrasub
23456 _ACEOF
23457 cat >>$CONFIG_STATUS <<\_ACEOF
23458 :t
23459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23460 s&@configure_input@&$configure_input&;t t
23461 s&@top_builddir@&$ac_top_builddir_sub&;t t
23462 s&@srcdir@&$ac_srcdir&;t t
23463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23464 s&@top_srcdir@&$ac_top_srcdir&;t t
23465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23466 s&@builddir@&$ac_builddir&;t t
23467 s&@abs_builddir@&$ac_abs_builddir&;t t
23468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23469 s&@INSTALL@&$ac_INSTALL&;t t
23470 $ac_datarootdir_hack
23471 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23472
23473 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23474 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23475 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23476 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23477 which seems to be undefined. Please make sure it is defined." >&5
23478 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23479 which seems to be undefined. Please make sure it is defined." >&2;}
23480
23481 rm -f "$tmp/stdin"
23482 case $ac_file in
23483 -) cat "$tmp/out"; rm -f "$tmp/out";;
23484 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23485 esac
23486 ;;
23487 :H)
23488 #
23489 # CONFIG_HEADER
23490 #
23491 _ACEOF
23492
23493 # Transform confdefs.h into a sed script `conftest.defines', that
23494 # substitutes the proper values into config.h.in to produce config.h.
23495 rm -f conftest.defines conftest.tail
23496 # First, append a space to every undef/define line, to ease matching.
23497 echo 's/$/ /' >conftest.defines
23498 # Then, protect against being on the right side of a sed subst, or in
23499 # an unquoted here document, in config.status. If some macros were
23500 # called several times there might be several #defines for the same
23501 # symbol, which is useless. But do not sort them, since the last
23502 # AC_DEFINE must be honored.
23503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23504 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23505 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23506 # PARAMS is the parameter list in the macro definition--in most cases, it's
23507 # just an empty string.
23508 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23509 ac_dB='\\)[ (].*,\\1define\\2'
23510 ac_dC=' '
23511 ac_dD=' ,'
23512
23513 uniq confdefs.h |
23514 sed -n '
23515 t rset
23516 :rset
23517 s/^[ ]*#[ ]*define[ ][ ]*//
23518 t ok
23519 d
23520 :ok
23521 s/[\\&,]/\\&/g
23522 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23523 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23524 ' >>conftest.defines
23525
23526 # Remove the space that was appended to ease matching.
23527 # Then replace #undef with comments. This is necessary, for
23528 # example, in the case of _POSIX_SOURCE, which is predefined and required
23529 # on some systems where configure will not decide to define it.
23530 # (The regexp can be short, since the line contains either #define or #undef.)
23531 echo 's/ $//
23532 s,^[ #]*u.*,/* & */,' >>conftest.defines
23533
23534 # Break up conftest.defines:
23535 ac_max_sed_lines=50
23536
23537 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23538 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23539 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23540 # et cetera.
23541 ac_in='$ac_file_inputs'
23542 ac_out='"$tmp/out1"'
23543 ac_nxt='"$tmp/out2"'
23544
23545 while :
23546 do
23547 # Write a here document:
23548 cat >>$CONFIG_STATUS <<_ACEOF
23549 # First, check the format of the line:
23550 cat >"\$tmp/defines.sed" <<\\CEOF
23551 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23552 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23553 b
23554 :def
23555 _ACEOF
23556 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23557 echo 'CEOF
23558 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23559 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23560 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23561 grep . conftest.tail >/dev/null || break
23562 rm -f conftest.defines
23563 mv conftest.tail conftest.defines
23564 done
23565 rm -f conftest.defines conftest.tail
23566
23567 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23568 cat >>$CONFIG_STATUS <<\_ACEOF
23569 if test x"$ac_file" != x-; then
23570 echo "/* $configure_input */" >"$tmp/config.h"
23571 cat "$ac_result" >>"$tmp/config.h"
23572 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23573 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23574 echo "$as_me: $ac_file is unchanged" >&6;}
23575 else
23576 rm -f $ac_file
23577 mv "$tmp/config.h" $ac_file
23578 fi
23579 else
23580 echo "/* $configure_input */"
23581 cat "$ac_result"
23582 fi
23583 rm -f "$tmp/out12"
23584 # Compute $ac_file's index in $config_headers.
23585 _am_stamp_count=1
23586 for _am_header in $config_headers :; do
23587 case $_am_header in
23588 $ac_file | $ac_file:* )
23589 break ;;
23590 * )
23591 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23592 esac
23593 done
23594 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23595 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23596 X$ac_file : 'X\(//\)[^/]' \| \
23597 X$ac_file : 'X\(//\)$' \| \
23598 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23599 echo X$ac_file |
23600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23601 s//\1/
23602 q
23603 }
23604 /^X\(\/\/\)[^/].*/{
23605 s//\1/
23606 q
23607 }
23608 /^X\(\/\/\)$/{
23609 s//\1/
23610 q
23611 }
23612 /^X\(\/\).*/{
23613 s//\1/
23614 q
23615 }
23616 s/.*/./; q'`/stamp-h$_am_stamp_count
23617 ;;
23618
23619 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23620 echo "$as_me: executing $ac_file commands" >&6;}
23621 ;;
23622 esac
23623
23624
23625 case $ac_file$ac_mode in
23626 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23627 # Strip MF so we end up with the name of the file.
23628 mf=`echo "$mf" | sed -e 's/:.*$//'`
23629 # Check whether this is an Automake generated Makefile or not.
23630 # We used to match only the files named `Makefile.in', but
23631 # some people rename them; so instead we look at the file content.
23632 # Grep'ing the first line is not enough: some people post-process
23633 # each Makefile.in and add a new line on top of each file to say so.
23634 # So let's grep whole file.
23635 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23636 dirpart=`$as_dirname -- "$mf" ||
23637 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23638 X"$mf" : 'X\(//\)[^/]' \| \
23639 X"$mf" : 'X\(//\)$' \| \
23640 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23641 echo X"$mf" |
23642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23643 s//\1/
23644 q
23645 }
23646 /^X\(\/\/\)[^/].*/{
23647 s//\1/
23648 q
23649 }
23650 /^X\(\/\/\)$/{
23651 s//\1/
23652 q
23653 }
23654 /^X\(\/\).*/{
23655 s//\1/
23656 q
23657 }
23658 s/.*/./; q'`
23659 else
23660 continue
23661 fi
23662 # Extract the definition of DEPDIR, am__include, and am__quote
23663 # from the Makefile without running `make'.
23664 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23665 test -z "$DEPDIR" && continue
23666 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23667 test -z "am__include" && continue
23668 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23669 # When using ansi2knr, U may be empty or an underscore; expand it
23670 U=`sed -n 's/^U = //p' < "$mf"`
23671 # Find all dependency output files, they are included files with
23672 # $(DEPDIR) in their names. We invoke sed twice because it is the
23673 # simplest approach to changing $(DEPDIR) to its actual value in the
23674 # expansion.
23675 for file in `sed -n "
23676 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23677 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23678 # Make sure the directory exists.
23679 test -f "$dirpart/$file" && continue
23680 fdir=`$as_dirname -- "$file" ||
23681 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23682 X"$file" : 'X\(//\)[^/]' \| \
23683 X"$file" : 'X\(//\)$' \| \
23684 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23685 echo X"$file" |
23686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23687 s//\1/
23688 q
23689 }
23690 /^X\(\/\/\)[^/].*/{
23691 s//\1/
23692 q
23693 }
23694 /^X\(\/\/\)$/{
23695 s//\1/
23696 q
23697 }
23698 /^X\(\/\).*/{
23699 s//\1/
23700 q
23701 }
23702 s/.*/./; q'`
23703 { as_dir=$dirpart/$fdir
23704 case $as_dir in #(
23705 -*) as_dir=./$as_dir;;
23706 esac
23707 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23708 as_dirs=
23709 while :; do
23710 case $as_dir in #(
23711 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23712 *) as_qdir=$as_dir;;
23713 esac
23714 as_dirs="'$as_qdir' $as_dirs"
23715 as_dir=`$as_dirname -- "$as_dir" ||
23716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23717 X"$as_dir" : 'X\(//\)[^/]' \| \
23718 X"$as_dir" : 'X\(//\)$' \| \
23719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23720 echo X"$as_dir" |
23721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23722 s//\1/
23723 q
23724 }
23725 /^X\(\/\/\)[^/].*/{
23726 s//\1/
23727 q
23728 }
23729 /^X\(\/\/\)$/{
23730 s//\1/
23731 q
23732 }
23733 /^X\(\/\).*/{
23734 s//\1/
23735 q
23736 }
23737 s/.*/./; q'`
23738 test -d "$as_dir" && break
23739 done
23740 test -z "$as_dirs" || eval "mkdir $as_dirs"
23741 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23742 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23743 { (exit 1); exit 1; }; }; }
23744 # echo "creating $dirpart/$file"
23745 echo '# dummy' > "$dirpart/$file"
23746 done
23747 done
23748 ;;
23749
23750 esac
23751 done # for ac_tag
23752
23753
23754 { (exit 0); exit 0; }
23755 _ACEOF
23756 chmod +x $CONFIG_STATUS
23757 ac_clean_files=$ac_clean_files_save
23758
23759
23760 # configure is writing to config.log, and then calls config.status.
23761 # config.status does its own redirection, appending to config.log.
23762 # Unfortunately, on DOS this fails, as config.log is still kept open
23763 # by configure, so config.status won't be able to write to it; its
23764 # output is simply discarded. So we exec the FD to /dev/null,
23765 # effectively closing config.log, so it can be properly (re)opened and
23766 # appended to by config.status. When coming back to configure, we
23767 # need to make the FD available again.
23768 if test "$no_create" != yes; then
23769 ac_cs_success=:
23770 ac_config_status_args=
23771 test "$silent" = yes &&
23772 ac_config_status_args="$ac_config_status_args --quiet"
23773 exec 5>/dev/null
23774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23775 exec 5>>config.log
23776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23777 # would make configure fail if this is the last instruction.
23778 $ac_cs_success || { (exit 1); exit 1; }
23779 fi
23780
23781