Wire GL_CHROMIUM_map_sub functions up to Skia.
[chromium-blink-merge.git] / third_party / libevent / configure
blobc98d1ff7e1cac983478f677f6474e613ae9ebf56
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do 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
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 echo=${ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $echo works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619 echo_test_string=`eval $cmd` &&
620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621 then
622 break
624 done
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
631 else
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
636 # So, first we look for a working echo in the user's PATH.
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
640 IFS="$lt_save_ifs"
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 echo="$dir/echo"
646 break
648 done
649 IFS="$lt_save_ifs"
651 if test "X$echo" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
657 echo='print -r'
658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
664 export CONFIG_SHELL
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666 else
667 # Try using printf.
668 echo='printf %s\n'
669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
672 # Cool, printf works
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 export CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
681 export SHELL
682 echo="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 echo="$CONFIG_SHELL $0 --fallback-echo"
688 else
689 # maybe with a smaller string...
690 prev=:
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694 then
695 break
697 prev="$cmd"
698 done
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 else
705 # Oops. We lost completely, so just stick with echo.
706 echo=echo
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
716 ECHO=$echo
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724 tagnames=${tagnames+${tagnames},}CXX
726 tagnames=${tagnames+${tagnames},}F77
728 exec 7<&0 </dev/null 6>&1
730 # Name of the host.
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736 # Initializations.
738 ac_default_prefix=/usr/local
739 ac_clean_files=
740 ac_config_libobj_dir=.
741 LIBOBJS=
742 cross_compiling=no
743 subdirs=
744 MFLAGS=
745 MAKEFLAGS=
746 SHELL=${CONFIG_SHELL-/bin/sh}
748 # Identity of this package.
749 PACKAGE_NAME=
750 PACKAGE_TARNAME=
751 PACKAGE_VERSION=
752 PACKAGE_STRING=
753 PACKAGE_BUGREPORT=
755 ac_unique_file="event.c"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
758 #include <stdio.h>
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
761 #endif
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
764 #endif
765 #ifdef STDC_HEADERS
766 # include <stdlib.h>
767 # include <stddef.h>
768 #else
769 # ifdef HAVE_STDLIB_H
770 # include <stdlib.h>
771 # endif
772 #endif
773 #ifdef HAVE_STRING_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 # include <memory.h>
776 # endif
777 # include <string.h>
778 #endif
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
781 #endif
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
784 #endif
785 #ifdef HAVE_STDINT_H
786 # include <stdint.h>
787 #endif
788 #ifdef HAVE_UNISTD_H
789 # include <unistd.h>
790 #endif"
792 ac_subst_vars='LTLIBOBJS
793 LIBOBJS
794 BUILD_WIN32_FALSE
795 BUILD_WIN32_TRUE
796 LIBTOOL_DEPS
797 LIBTOOL
798 ac_ct_F77
799 FFLAGS
801 CXXCPP
802 am__fastdepCXX_FALSE
803 am__fastdepCXX_TRUE
804 CXXDEPMODE
805 ac_ct_CXX
806 CXXFLAGS
808 NMEDIT
809 DSYMUTIL
810 RANLIB
812 ECHO
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 EGREP
823 GREP
825 LN_S
826 am__fastdepCC_FALSE
827 am__fastdepCC_TRUE
828 CCDEPMODE
829 AMDEPBACKSLASH
830 AMDEP_FALSE
831 AMDEP_TRUE
832 am__quote
833 am__include
834 DEPDIR
835 OBJEXT
836 EXEEXT
837 ac_ct_CC
838 CPPFLAGS
839 LDFLAGS
840 CFLAGS
842 am__untar
843 am__tar
844 AMTAR
845 am__leading_dot
846 SET_MAKE
848 mkdir_p
849 MKDIR_P
850 INSTALL_STRIP_PROGRAM
851 STRIP
852 install_sh
853 MAKEINFO
854 AUTOHEADER
855 AUTOMAKE
856 AUTOCONF
857 ACLOCAL
858 VERSION
859 PACKAGE
860 CYGPATH_W
861 am__isrc
862 INSTALL_DATA
863 INSTALL_SCRIPT
864 INSTALL_PROGRAM
865 target_alias
866 host_alias
867 build_alias
868 LIBS
869 ECHO_T
870 ECHO_N
871 ECHO_C
872 DEFS
873 mandir
874 localedir
875 libdir
876 psdir
877 pdfdir
878 dvidir
879 htmldir
880 infodir
881 docdir
882 oldincludedir
883 includedir
884 localstatedir
885 sharedstatedir
886 sysconfdir
887 datadir
888 datarootdir
889 libexecdir
890 sbindir
891 bindir
892 program_transform_name
893 prefix
894 exec_prefix
895 PACKAGE_BUGREPORT
896 PACKAGE_STRING
897 PACKAGE_VERSION
898 PACKAGE_TARNAME
899 PACKAGE_NAME
900 PATH_SEPARATOR
901 SHELL'
902 ac_subst_files=''
903 ac_user_opts='
904 enable_option_checking
905 enable_dependency_tracking
906 enable_gcc_warnings
907 enable_shared
908 enable_static
909 enable_fast_install
910 with_gnu_ld
911 enable_libtool_lock
912 with_pic
913 with_tags
915 ac_precious_vars='build_alias
916 host_alias
917 target_alias
919 CFLAGS
920 LDFLAGS
921 LIBS
922 CPPFLAGS
925 CXXFLAGS
927 CXXCPP
929 FFLAGS'
932 # Initialize some variables set by options.
933 ac_init_help=
934 ac_init_version=false
935 ac_unrecognized_opts=
936 ac_unrecognized_sep=
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
939 cache_file=/dev/null
940 exec_prefix=NONE
941 no_create=
942 no_recursion=
943 prefix=NONE
944 program_prefix=NONE
945 program_suffix=NONE
946 program_transform_name=s,x,x,
947 silent=
948 site=
949 srcdir=
950 verbose=
951 x_includes=NONE
952 x_libraries=NONE
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 includedir='${prefix}/include'
969 oldincludedir='/usr/include'
970 docdir='${datarootdir}/doc/${PACKAGE}'
971 infodir='${datarootdir}/info'
972 htmldir='${docdir}'
973 dvidir='${docdir}'
974 pdfdir='${docdir}'
975 psdir='${docdir}'
976 libdir='${exec_prefix}/lib'
977 localedir='${datarootdir}/locale'
978 mandir='${datarootdir}/man'
980 ac_prev=
981 ac_dashdash=
982 for ac_option
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\$ac_option
987 ac_prev=
988 continue
991 case $ac_option in
992 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 *) ac_optarg=yes ;;
994 esac
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1000 ac_dashdash=yes ;;
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005 bindir=$ac_optarg ;;
1007 -build | --build | --buil | --bui | --bu)
1008 ac_prev=build_alias ;;
1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010 build_alias=$ac_optarg ;;
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017 cache_file=$ac_optarg ;;
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
1022 -datadir | --datadir | --datadi | --datad)
1023 ac_prev=datadir ;;
1024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025 datadir=$ac_optarg ;;
1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1034 -disable-* | --disable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=no ;;
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
1061 -enable-* | --enable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1089 with_gas=yes ;;
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104 ac_prev=htmldir ;;
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106 | --ht=*)
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1117 ac_prev=infodir ;;
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1122 ac_prev=libdir ;;
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146 ac_prev=mandir ;;
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1152 with_fp=no ;;
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1156 no_create=yes ;;
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 no_recursion=yes ;;
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172 ac_prev=prefix ;;
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208 ac_prev=pdfdir ;;
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1213 ac_prev=psdir ;;
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 psdir=$ac_optarg ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 silent=yes ;;
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222 ac_prev=sbindir ;;
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224 | --sbi=* | --sb=*)
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1230 | --sha | --sh)
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235 | --sha=* | --sh=*)
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1239 ac_prev=site ;;
1240 -site=* | --site=* | --sit=*)
1241 site=$ac_optarg ;;
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244 ac_prev=srcdir ;;
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 verbose=yes ;;
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1266 -with-* | --with-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1276 "with_$ac_useropt"
1277 "*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1280 esac
1281 eval with_$ac_useropt=\$ac_optarg ;;
1283 -without-* | --without-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=no ;;
1300 --x)
1301 # Obsolete; use --with-x.
1302 with_x=yes ;;
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1318 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1319 Try \`$0 --help' for more information." >&2
1320 { (exit 1); exit 1; }; }
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1327 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328 { (exit 1); exit 1; }; }
1329 eval $ac_envvar=\$ac_optarg
1330 export $ac_envvar ;;
1333 # FIXME: should be removed in autoconf 3.0.
1334 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 esac
1341 done
1343 if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1346 { (exit 1); exit 1; }; }
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1351 no) ;;
1352 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1353 { (exit 1); exit 1; }; } ;;
1354 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355 esac
1358 # Check all directory arguments for consistency.
1359 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
1364 eval ac_val=\$$ac_var
1365 # Remove trailing slashes.
1366 case $ac_val in
1367 */ )
1368 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369 eval $ac_var=\$ac_val;;
1370 esac
1371 # Be sure to have absolute directory names.
1372 case $ac_val in
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 esac
1376 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1377 { (exit 1); exit 1; }; }
1378 done
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1394 cross_compiling=yes
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401 test "$silent" = yes && exec 6>/dev/null
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1408 { (exit 1); exit 1; }; }
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1411 { (exit 1); exit 1; }; }
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1432 /^X\(\/\/\)$/{
1433 s//\1/
1436 /^X\(\/\).*/{
1437 s//\1/
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1445 else
1446 ac_srcdir_defaulted=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1451 { (exit 1); exit 1; }; }
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1456 { (exit 1); exit 1; }; }
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures this package to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1537 cat <<\_ACEOF
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 _ACEOF
1550 if test -n "$ac_init_help"; then
1552 cat <<\_ACEOF
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --disable-dependency-tracking speeds up one-time build
1559 --enable-dependency-tracking do not reject slow dependency extractors
1560 --enable-gcc-warnings enable verbose warnings with GCC
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-static[=PKGS] build static libraries [default=yes]
1563 --enable-fast-install[=PKGS]
1564 optimize for fast installation [default=yes]
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1567 Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1571 --with-pic try to use only PIC/non-PIC objects [default=use
1572 both]
1573 --with-tags[=TAGS] include additional configurations [automatic]
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1583 CPP C preprocessor
1584 CXX C++ compiler command
1585 CXXFLAGS C++ compiler flags
1586 CXXCPP C++ preprocessor
1587 F77 Fortran 77 compiler command
1588 FFLAGS Fortran 77 compiler flags
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1593 _ACEOF
1594 ac_status=$?
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 configure
1656 generated by GNU Autoconf 2.63
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663 exit
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1669 It was created by $as_me, which was
1670 generated by GNU Autoconf 2.63. Invocation command line was
1672 $ $0 $@
1674 _ACEOF
1675 exec 5>>config.log
1677 cat <<_ASUNAME
1678 ## --------- ##
1679 ## Platform. ##
1680 ## --------- ##
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699 _ASUNAME
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 $as_echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1710 } >&5
1712 cat >&5 <<_ACEOF
1715 ## ----------- ##
1716 ## Core tests. ##
1717 ## ----------- ##
1719 _ACEOF
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1733 for ac_arg
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
1740 *\'*)
1741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 esac
1743 case $ac_pass in
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1762 ac_configure_args="$ac_configure_args '$ac_arg'"
1764 esac
1765 done
1766 done
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1778 echo
1780 cat <<\_ASBOX
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1784 _ASBOX
1785 echo
1786 # The following way of writing the cache mishandles newlines in values,
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1800 esac ;;
1801 esac
1802 done
1803 (set) 2>&1 |
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1806 sed -n \
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 ;; #(
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813 esac |
1814 sort
1816 echo
1818 cat <<\_ASBOX
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 $as_echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1834 if test -n "$ac_subst_files"; then
1835 cat <<\_ASBOX
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1839 _ASBOX
1840 echo
1841 for ac_var in $ac_subst_files
1843 eval ac_val=\$$ac_var
1844 case $ac_val in
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 esac
1847 $as_echo "$ac_var='\''$ac_val'\''"
1848 done | sort
1849 echo
1852 if test -s confdefs.h; then
1853 cat <<\_ASBOX
1854 ## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##
1857 _ASBOX
1858 echo
1859 cat confdefs.h
1860 echo
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1865 } >&5
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 exit $exit_status
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 done
1873 ac_signal=0
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 _ACEOF
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 _ACEOF
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1907 ac_site_file1=NONE
1908 ac_site_file2=NONE
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE; then
1912 ac_site_file1=$prefix/share/config.site
1913 ac_site_file2=$prefix/etc/config.site
1914 else
1915 ac_site_file1=$ac_default_prefix/share/config.site
1916 ac_site_file2=$ac_default_prefix/etc/config.site
1918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1920 test "x$ac_site_file" = xNONE && continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file"
1927 done
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 case $cache_file in
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1938 esac
1940 else
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1943 >$cache_file
1946 # Check that the precious variables saved in the cache have kept the same
1947 # value.
1948 ac_cache_corrupted=false
1949 for ac_var in $ac_precious_vars; do
1950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951 eval ac_new_set=\$ac_env_${ac_var}_set
1952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953 eval ac_new_val=\$ac_env_${ac_var}_value
1954 case $ac_old_set,$ac_new_set in
1955 set,)
1956 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1957 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958 ac_cache_corrupted=: ;;
1959 ,set)
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1961 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,);;
1965 if test "x$ac_old_val" != "x$ac_new_val"; then
1966 # differences in whitespace do not lead to failure.
1967 ac_old_val_w=`echo x $ac_old_val`
1968 ac_new_val_w=`echo x $ac_new_val`
1969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972 ac_cache_corrupted=:
1973 else
1974 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1976 eval $ac_var=\$ac_old_val
1978 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1979 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1980 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1982 fi;;
1983 esac
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1986 case $ac_new_val in
1987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988 *) ac_arg=$ac_var=$ac_new_val ;;
1989 esac
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 esac
1995 done
1996 if $ac_cache_corrupted; then
1997 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2022 ac_ext=c
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030 am__api_version='1.10'
2032 ac_aux_dir=
2033 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2034 if test -f "$ac_dir/install-sh"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/install-sh -c"
2037 break
2038 elif test -f "$ac_dir/install.sh"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install.sh -c"
2041 break
2042 elif test -f "$ac_dir/shtool"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/shtool install -c"
2045 break
2047 done
2048 if test -z "$ac_aux_dir"; then
2049 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2050 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2051 { (exit 1); exit 1; }; }
2054 # These three variables are undocumented and unsupported,
2055 # and are intended to be withdrawn in a future Autoconf release.
2056 # They can cause serious problems if a builder's source tree is in a directory
2057 # whose full name contains unusual characters.
2058 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2059 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2060 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2063 # Find a good install program. We prefer a C program (faster),
2064 # so one script is as good as another. But avoid the broken or
2065 # incompatible versions:
2066 # SysV /etc/install, /usr/sbin/install
2067 # SunOS /usr/etc/install
2068 # IRIX /sbin/install
2069 # AIX /bin/install
2070 # AmigaOS /C/install, which installs bootblocks on floppy discs
2071 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2072 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2073 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2074 # OS/2's system install, which has a completely different semantic
2075 # ./install, which can be erroneously created by make from ./install.sh.
2076 # Reject install programs that cannot install multiple files.
2077 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2078 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2079 if test -z "$INSTALL"; then
2080 if test "${ac_cv_path_install+set}" = set; then
2081 $as_echo_n "(cached) " >&6
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 # Account for people who put trailing slashes in PATH elements.
2089 case $as_dir/ in
2090 ./ | .// | /cC/* | \
2091 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2092 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2093 /usr/ucb/* ) ;;
2095 # OSF1 and SCO ODT 3.0 have their own names for install.
2096 # Don't use installbsd from OSF since it installs stuff as root
2097 # by default.
2098 for ac_prog in ginstall scoinst install; do
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2101 if test $ac_prog = install &&
2102 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # AIX install. It has an incompatible calling convention.
2105 elif test $ac_prog = install &&
2106 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2107 # program-specific install script used by HP pwplus--don't use.
2109 else
2110 rm -rf conftest.one conftest.two conftest.dir
2111 echo one > conftest.one
2112 echo two > conftest.two
2113 mkdir conftest.dir
2114 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2115 test -s conftest.one && test -s conftest.two &&
2116 test -s conftest.dir/conftest.one &&
2117 test -s conftest.dir/conftest.two
2118 then
2119 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2120 break 3
2124 done
2125 done
2127 esac
2129 done
2130 IFS=$as_save_IFS
2132 rm -rf conftest.one conftest.two conftest.dir
2135 if test "${ac_cv_path_install+set}" = set; then
2136 INSTALL=$ac_cv_path_install
2137 else
2138 # As a last resort, use the slow shell script. Don't cache a
2139 # value for INSTALL within a source directory, because that will
2140 # break other packages using the cache if that directory is
2141 # removed, or if the value is a relative name.
2142 INSTALL=$ac_install_sh
2145 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2146 $as_echo "$INSTALL" >&6; }
2148 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2149 # It thinks the first close brace ends the variable substitution.
2150 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2152 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2154 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2156 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2157 $as_echo_n "checking whether build environment is sane... " >&6; }
2158 # Just in case
2159 sleep 1
2160 echo timestamp > conftest.file
2161 # Do `set' in a subshell so we don't clobber the current shell's
2162 # arguments. Must try -L first in case configure is actually a
2163 # symlink; some systems play weird games with the mod time of symlinks
2164 # (eg FreeBSD returns the mod time of the symlink's containing
2165 # directory).
2166 if (
2167 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2168 if test "$*" = "X"; then
2169 # -L didn't work.
2170 set X `ls -t $srcdir/configure conftest.file`
2172 rm -f conftest.file
2173 if test "$*" != "X $srcdir/configure conftest.file" \
2174 && test "$*" != "X conftest.file $srcdir/configure"; then
2176 # If neither matched, then we have a broken ls. This can happen
2177 # if, for instance, CONFIG_SHELL is bash and it inherits a
2178 # broken ls alias from the environment. This has actually
2179 # happened. Such a system could not be considered "sane".
2180 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2181 alias in your environment" >&5
2182 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2183 alias in your environment" >&2;}
2184 { (exit 1); exit 1; }; }
2187 test "$2" = conftest.file
2189 then
2190 # Ok.
2192 else
2193 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2194 Check your system clock" >&5
2195 $as_echo "$as_me: error: newly created file is older than distributed files!
2196 Check your system clock" >&2;}
2197 { (exit 1); exit 1; }; }
2199 { $as_echo "$as_me:$LINENO: result: yes" >&5
2200 $as_echo "yes" >&6; }
2201 test "$program_prefix" != NONE &&
2202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2203 # Use a double $ so make ignores it.
2204 test "$program_suffix" != NONE &&
2205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2206 # Double any \ or $.
2207 # By default was `s,x,x', remove it if useless.
2208 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2211 # expand $ac_aux_dir to an absolute path
2212 am_aux_dir=`cd $ac_aux_dir && pwd`
2214 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2215 # Use eval to expand $SHELL
2216 if eval "$MISSING --run true"; then
2217 am_missing_run="$MISSING --run "
2218 else
2219 am_missing_run=
2220 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2221 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2224 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2226 if test -z "$MKDIR_P"; then
2227 if test "${ac_cv_path_mkdir+set}" = set; then
2228 $as_echo_n "(cached) " >&6
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_prog in mkdir gmkdir; do
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2239 'mkdir (GNU coreutils) '* | \
2240 'mkdir (coreutils) '* | \
2241 'mkdir (fileutils) '4.1*)
2242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2243 break 3;;
2244 esac
2245 done
2246 done
2247 done
2248 IFS=$as_save_IFS
2252 if test "${ac_cv_path_mkdir+set}" = set; then
2253 MKDIR_P="$ac_cv_path_mkdir -p"
2254 else
2255 # As a last resort, use the slow shell script. Don't cache a
2256 # value for MKDIR_P within a source directory, because that will
2257 # break other packages using the cache if that directory is
2258 # removed, or if the value is a relative name.
2259 test -d ./--version && rmdir ./--version
2260 MKDIR_P="$ac_install_sh -d"
2263 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2264 $as_echo "$MKDIR_P" >&6; }
2266 mkdir_p="$MKDIR_P"
2267 case $mkdir_p in
2268 [\\/$]* | ?:[\\/]*) ;;
2269 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2270 esac
2272 for ac_prog in gawk mawk nawk awk
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275 set dummy $ac_prog; ac_word=$2
2276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_AWK+set}" = set; then
2279 $as_echo_n "(cached) " >&6
2280 else
2281 if test -n "$AWK"; then
2282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_AWK="$ac_prog"
2292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2295 done
2296 done
2297 IFS=$as_save_IFS
2301 AWK=$ac_cv_prog_AWK
2302 if test -n "$AWK"; then
2303 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2304 $as_echo "$AWK" >&6; }
2305 else
2306 { $as_echo "$as_me:$LINENO: result: no" >&5
2307 $as_echo "no" >&6; }
2311 test -n "$AWK" && break
2312 done
2314 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2316 set x ${MAKE-make}
2317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2318 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2319 $as_echo_n "(cached) " >&6
2320 else
2321 cat >conftest.make <<\_ACEOF
2322 SHELL = /bin/sh
2323 all:
2324 @echo '@@@%%%=$(MAKE)=@@@%%%'
2325 _ACEOF
2326 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2327 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2328 *@@@%%%=?*=@@@%%%*)
2329 eval ac_cv_prog_make_${ac_make}_set=yes;;
2331 eval ac_cv_prog_make_${ac_make}_set=no;;
2332 esac
2333 rm -f conftest.make
2335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2336 { $as_echo "$as_me:$LINENO: result: yes" >&5
2337 $as_echo "yes" >&6; }
2338 SET_MAKE=
2339 else
2340 { $as_echo "$as_me:$LINENO: result: no" >&5
2341 $as_echo "no" >&6; }
2342 SET_MAKE="MAKE=${MAKE-make}"
2345 rm -rf .tst 2>/dev/null
2346 mkdir .tst 2>/dev/null
2347 if test -d .tst; then
2348 am__leading_dot=.
2349 else
2350 am__leading_dot=_
2352 rmdir .tst 2>/dev/null
2354 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2356 # is not polluted with repeated "-I."
2357 am__isrc=' -I$(srcdir)'
2358 # test to see if srcdir already configured
2359 if test -f $srcdir/config.status; then
2360 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2361 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2362 { (exit 1); exit 1; }; }
2366 # test whether we have cygpath
2367 if test -z "$CYGPATH_W"; then
2368 if (cygpath --version) >/dev/null 2>/dev/null; then
2369 CYGPATH_W='cygpath -w'
2370 else
2371 CYGPATH_W=echo
2376 # Define the identity of the package.
2377 PACKAGE=libevent
2378 VERSION=1.4.13-stable
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE "$PACKAGE"
2383 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define VERSION "$VERSION"
2388 _ACEOF
2390 # Some tools Automake needs.
2392 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2395 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2398 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2401 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2404 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2406 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2408 # Installed binaries are usually stripped using `strip' when the user
2409 # run `make install-strip'. However `strip' might not be the right
2410 # tool to use in cross-compilation environments, therefore Automake
2411 # will honor the `STRIP' environment variable to overrule this program.
2412 if test "$cross_compiling" != no; then
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}strip; ac_word=$2
2416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if test "${ac_cv_prog_STRIP+set}" = set; then
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test -n "$STRIP"; then
2422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2435 done
2436 done
2437 IFS=$as_save_IFS
2441 STRIP=$ac_cv_prog_STRIP
2442 if test -n "$STRIP"; then
2443 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2444 $as_echo "$STRIP" >&6; }
2445 else
2446 { $as_echo "$as_me:$LINENO: result: no" >&5
2447 $as_echo "no" >&6; }
2452 if test -z "$ac_cv_prog_STRIP"; then
2453 ac_ct_STRIP=$STRIP
2454 # Extract the first word of "strip", so it can be a program name with args.
2455 set dummy strip; ac_word=$2
2456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test -n "$ac_ct_STRIP"; then
2462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_ac_ct_STRIP="strip"
2472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2475 done
2476 done
2477 IFS=$as_save_IFS
2481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2482 if test -n "$ac_ct_STRIP"; then
2483 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2484 $as_echo "$ac_ct_STRIP" >&6; }
2485 else
2486 { $as_echo "$as_me:$LINENO: result: no" >&5
2487 $as_echo "no" >&6; }
2490 if test "x$ac_ct_STRIP" = x; then
2491 STRIP=":"
2492 else
2493 case $cross_compiling:$ac_tool_warned in
2494 yes:)
2495 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497 ac_tool_warned=yes ;;
2498 esac
2499 STRIP=$ac_ct_STRIP
2501 else
2502 STRIP="$ac_cv_prog_STRIP"
2506 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2508 # We need awk for the "check" target. The system "awk" is bad on
2509 # some platforms.
2510 # Always define AMTAR for backward compatibility.
2512 AMTAR=${AMTAR-"${am_missing_run}tar"}
2514 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2520 ac_config_headers="$ac_config_headers config.h"
2523 if test "$prefix" = "NONE"; then
2524 prefix="/usr/local"
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 $as_echo_n "(cached) " >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2554 done
2555 done
2556 IFS=$as_save_IFS
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2563 $as_echo "$CC" >&6; }
2564 else
2565 { $as_echo "$as_me:$LINENO: result: no" >&5
2566 $as_echo "no" >&6; }
2571 if test -z "$ac_cv_prog_CC"; then
2572 ac_ct_CC=$CC
2573 # Extract the first word of "gcc", so it can be a program name with args.
2574 set dummy gcc; ac_word=$2
2575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_ac_ct_CC="gcc"
2591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2594 done
2595 done
2596 IFS=$as_save_IFS
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603 $as_echo "$ac_ct_CC" >&6; }
2604 else
2605 { $as_echo "$as_me:$LINENO: result: no" >&5
2606 $as_echo "no" >&6; }
2609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618 CC=$ac_ct_CC
2620 else
2621 CC="$ac_cv_prog_CC"
2624 if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
2626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}cc; ac_word=$2
2628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC="${ac_tool_prefix}cc"
2644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2647 done
2648 done
2649 IFS=$as_save_IFS
2653 CC=$ac_cv_prog_CC
2654 if test -n "$CC"; then
2655 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2656 $as_echo "$CC" >&6; }
2657 else
2658 { $as_echo "$as_me:$LINENO: result: no" >&5
2659 $as_echo "no" >&6; }
2665 if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667 set dummy cc; ac_word=$2
2668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if test "${ac_cv_prog_CC+set}" = set; then
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675 else
2676 ac_prog_rejected=no
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2685 ac_prog_rejected=yes
2686 continue
2688 ac_cv_prog_CC="cc"
2689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2694 IFS=$as_save_IFS
2696 if test $ac_prog_rejected = yes; then
2697 # We found a bogon in the path, so make sure we never use it.
2698 set dummy $ac_cv_prog_CC
2699 shift
2700 if test $# != 0; then
2701 # We chose a different compiler from the bogus one.
2702 # However, it has the same basename, so the bogon will be chosen
2703 # first if we set CC to just the basename; use the full file name.
2704 shift
2705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2710 CC=$ac_cv_prog_CC
2711 if test -n "$CC"; then
2712 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2713 $as_echo "$CC" >&6; }
2714 else
2715 { $as_echo "$as_me:$LINENO: result: no" >&5
2716 $as_echo "no" >&6; }
2721 if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
2723 for ac_prog in cl.exe
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2746 done
2747 done
2748 IFS=$as_save_IFS
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2756 else
2757 { $as_echo "$as_me:$LINENO: result: no" >&5
2758 $as_echo "no" >&6; }
2762 test -n "$CC" && break
2763 done
2765 if test -z "$CC"; then
2766 ac_ct_CC=$CC
2767 for ac_prog in cl.exe
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_ac_ct_CC="$ac_prog"
2787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2790 done
2791 done
2792 IFS=$as_save_IFS
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2800 else
2801 { $as_echo "$as_me:$LINENO: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$ac_ct_CC" && break
2807 done
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813 yes:)
2814 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816 ac_tool_warned=yes ;;
2817 esac
2818 CC=$ac_ct_CC
2825 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2828 See \`config.log' for more details." >&5
2829 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2830 See \`config.log' for more details." >&2;}
2831 { (exit 1); exit 1; }; }; }
2833 # Provide some information about the compiler.
2834 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2835 set X $ac_compile
2836 ac_compiler=$2
2837 { (ac_try="$ac_compiler --version >&5"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843 $as_echo "$ac_try_echo") >&5
2844 (eval "$ac_compiler --version >&5") 2>&5
2845 ac_status=$?
2846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }
2848 { (ac_try="$ac_compiler -v >&5"
2849 case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2854 $as_echo "$ac_try_echo") >&5
2855 (eval "$ac_compiler -v >&5") 2>&5
2856 ac_status=$?
2857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }
2859 { (ac_try="$ac_compiler -V >&5"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2865 $as_echo "$ac_try_echo") >&5
2866 (eval "$ac_compiler -V >&5") 2>&5
2867 ac_status=$?
2868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }
2871 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h. */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2879 main ()
2883 return 0;
2885 _ACEOF
2886 ac_clean_files_save=$ac_clean_files
2887 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2888 # Try to create an executable without -o first, disregard a.out.
2889 # It will help us diagnose broken compilers, and finding out an intuition
2890 # of exeext.
2891 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2892 $as_echo_n "checking for C compiler default output file name... " >&6; }
2893 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2895 # The possible output files:
2896 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2898 ac_rmfiles=
2899 for ac_file in $ac_files
2901 case $ac_file in
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2903 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2904 esac
2905 done
2906 rm -f $ac_rmfiles
2908 if { (ac_try="$ac_link_default"
2909 case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2914 $as_echo "$ac_try_echo") >&5
2915 (eval "$ac_link_default") 2>&5
2916 ac_status=$?
2917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; then
2919 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2920 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2921 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2922 # so that the user can short-circuit this test for compilers unknown to
2923 # Autoconf.
2924 for ac_file in $ac_files ''
2926 test -f "$ac_file" || continue
2927 case $ac_file in
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2930 [ab].out )
2931 # We found the default executable, but exeext='' is most
2932 # certainly right.
2933 break;;
2934 *.* )
2935 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2936 then :; else
2937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2939 # We set ac_cv_exeext here because the later test for it is not
2940 # safe: cross compilers may not add the suffix if given an `-o'
2941 # argument, so we may need to know it at that point already.
2942 # Even if this section looks crufty: it has the advantage of
2943 # actually working.
2944 break;;
2946 break;;
2947 esac
2948 done
2949 test "$ac_cv_exeext" = no && ac_cv_exeext=
2951 else
2952 ac_file=''
2955 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2956 $as_echo "$ac_file" >&6; }
2957 if test -z "$ac_file"; then
2958 $as_echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2964 See \`config.log' for more details." >&5
2965 $as_echo "$as_me: error: C compiler cannot create executables
2966 See \`config.log' for more details." >&2;}
2967 { (exit 77); exit 77; }; }; }
2970 ac_exeext=$ac_cv_exeext
2972 # Check that the compiler produces executables we can run. If not, either
2973 # the compiler is broken, or we cross compile.
2974 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2975 $as_echo_n "checking whether the C compiler works... " >&6; }
2976 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2977 # If not cross compiling, check that we can run a simple program.
2978 if test "$cross_compiling" != yes; then
2979 if { ac_try='./$ac_file'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2985 $as_echo "$ac_try_echo") >&5
2986 (eval "$ac_try") 2>&5
2987 ac_status=$?
2988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2990 cross_compiling=no
2991 else
2992 if test "$cross_compiling" = maybe; then
2993 cross_compiling=yes
2994 else
2995 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2998 If you meant to cross compile, use \`--host'.
2999 See \`config.log' for more details." >&5
3000 $as_echo "$as_me: error: cannot run C compiled programs.
3001 If you meant to cross compile, use \`--host'.
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }; }
3007 { $as_echo "$as_me:$LINENO: result: yes" >&5
3008 $as_echo "yes" >&6; }
3010 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3011 ac_clean_files=$ac_clean_files_save
3012 # Check that the compiler produces executables we can run. If not, either
3013 # the compiler is broken, or we cross compile.
3014 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3015 $as_echo_n "checking whether we are cross compiling... " >&6; }
3016 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3017 $as_echo "$cross_compiling" >&6; }
3019 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3020 $as_echo_n "checking for suffix of executables... " >&6; }
3021 if { (ac_try="$ac_link"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027 $as_echo "$ac_try_echo") >&5
3028 (eval "$ac_link") 2>&5
3029 ac_status=$?
3030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; then
3032 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3033 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3034 # work properly (i.e., refer to `conftest.exe'), while it won't with
3035 # `rm'.
3036 for ac_file in conftest.exe conftest conftest.*; do
3037 test -f "$ac_file" || continue
3038 case $ac_file in
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041 break;;
3042 * ) break;;
3043 esac
3044 done
3045 else
3046 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3049 See \`config.log' for more details." >&5
3050 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3051 See \`config.log' for more details." >&2;}
3052 { (exit 1); exit 1; }; }; }
3055 rm -f conftest$ac_cv_exeext
3056 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3057 $as_echo "$ac_cv_exeext" >&6; }
3059 rm -f conftest.$ac_ext
3060 EXEEXT=$ac_cv_exeext
3061 ac_exeext=$EXEEXT
3062 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3063 $as_echo_n "checking for suffix of object files... " >&6; }
3064 if test "${ac_cv_objext+set}" = set; then
3065 $as_echo_n "(cached) " >&6
3066 else
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3075 main ()
3079 return 0;
3081 _ACEOF
3082 rm -f conftest.o conftest.obj
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089 $as_echo "$ac_try_echo") >&5
3090 (eval "$ac_compile") 2>&5
3091 ac_status=$?
3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; then
3094 for ac_file in conftest.o conftest.obj conftest.*; do
3095 test -f "$ac_file" || continue;
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099 break;;
3100 esac
3101 done
3102 else
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3109 See \`config.log' for more details." >&5
3110 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }; }
3115 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3117 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3118 $as_echo "$ac_cv_objext" >&6; }
3119 OBJEXT=$ac_cv_objext
3120 ac_objext=$OBJEXT
3121 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3122 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3123 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3124 $as_echo_n "(cached) " >&6
3125 else
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3134 main ()
3136 #ifndef __GNUC__
3137 choke me
3138 #endif
3141 return 0;
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (ac_try="$ac_compile"
3146 case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149 esac
3150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3151 $as_echo "$ac_try_echo") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } && {
3159 test -z "$ac_c_werror_flag" ||
3160 test ! -s conftest.err
3161 } && test -s conftest.$ac_objext; then
3162 ac_compiler_gnu=yes
3163 else
3164 $as_echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 ac_compiler_gnu=no
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3174 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3176 if test $ac_compiler_gnu = yes; then
3177 GCC=yes
3178 else
3179 GCC=
3181 ac_test_CFLAGS=${CFLAGS+set}
3182 ac_save_CFLAGS=$CFLAGS
3183 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3185 if test "${ac_cv_prog_cc_g+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3187 else
3188 ac_save_c_werror_flag=$ac_c_werror_flag
3189 ac_c_werror_flag=yes
3190 ac_cv_prog_cc_g=no
3191 CFLAGS="-g"
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3200 main ()
3204 return 0;
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215 (eval "$ac_compile") 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } && {
3222 test -z "$ac_c_werror_flag" ||
3223 test ! -s conftest.err
3224 } && test -s conftest.$ac_objext; then
3225 ac_cv_prog_cc_g=yes
3226 else
3227 $as_echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 CFLAGS=""
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3239 main ()
3243 return 0;
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_compile") 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && {
3261 test -z "$ac_c_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
3265 else
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 ac_c_werror_flag=$ac_save_c_werror_flag
3270 CFLAGS="-g"
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h. */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3279 main ()
3283 return 0;
3285 _ACEOF
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294 (eval "$ac_compile") 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } && {
3301 test -z "$ac_c_werror_flag" ||
3302 test ! -s conftest.err
3303 } && test -s conftest.$ac_objext; then
3304 ac_cv_prog_cc_g=yes
3305 else
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3321 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3322 $as_echo "$ac_cv_prog_cc_g" >&6; }
3323 if test "$ac_test_CFLAGS" = set; then
3324 CFLAGS=$ac_save_CFLAGS
3325 elif test $ac_cv_prog_cc_g = yes; then
3326 if test "$GCC" = yes; then
3327 CFLAGS="-g -O2"
3328 else
3329 CFLAGS="-g"
3331 else
3332 if test "$GCC" = yes; then
3333 CFLAGS="-O2"
3334 else
3335 CFLAGS=
3338 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3339 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3340 if test "${ac_cv_prog_cc_c89+set}" = set; then
3341 $as_echo_n "(cached) " >&6
3342 else
3343 ac_cv_prog_cc_c89=no
3344 ac_save_CC=$CC
3345 cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h. */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3351 #include <stdarg.h>
3352 #include <stdio.h>
3353 #include <sys/types.h>
3354 #include <sys/stat.h>
3355 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3356 struct buf { int x; };
3357 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3358 static char *e (p, i)
3359 char **p;
3360 int i;
3362 return p[i];
3364 static char *f (char * (*g) (char **, int), char **p, ...)
3366 char *s;
3367 va_list v;
3368 va_start (v,p);
3369 s = g (p, va_arg (v,int));
3370 va_end (v);
3371 return s;
3374 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3375 function prototypes and stuff, but not '\xHH' hex character constants.
3376 These don't provoke an error unfortunately, instead are silently treated
3377 as 'x'. The following induces an error, until -std is added to get
3378 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3379 array size at least. It's necessary to write '\x00'==0 to get something
3380 that's true only with -std. */
3381 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3383 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3384 inside strings and character constants. */
3385 #define FOO(x) 'x'
3386 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3388 int test (int i, double x);
3389 struct s1 {int (*f) (int a);};
3390 struct s2 {int (*f) (double a);};
3391 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3392 int argc;
3393 char **argv;
3395 main ()
3397 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3399 return 0;
3401 _ACEOF
3402 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3405 CC="$ac_save_CC $ac_arg"
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413 $as_echo "$ac_try_echo") >&5
3414 (eval "$ac_compile") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } && {
3421 test -z "$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 } && test -s conftest.$ac_objext; then
3424 ac_cv_prog_cc_c89=$ac_arg
3425 else
3426 $as_echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3432 rm -f core conftest.err conftest.$ac_objext
3433 test "x$ac_cv_prog_cc_c89" != "xno" && break
3434 done
3435 rm -f conftest.$ac_ext
3436 CC=$ac_save_CC
3439 # AC_CACHE_VAL
3440 case "x$ac_cv_prog_cc_c89" in
3442 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3443 $as_echo "none needed" >&6; } ;;
3444 xno)
3445 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3446 $as_echo "unsupported" >&6; } ;;
3448 CC="$CC $ac_cv_prog_cc_c89"
3449 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3450 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3451 esac
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 DEPDIR="${am__leading_dot}deps"
3461 ac_config_commands="$ac_config_commands depfiles"
3464 am_make=${MAKE-make}
3465 cat > confinc << 'END'
3466 am__doit:
3467 @echo done
3468 .PHONY: am__doit
3470 # If we don't find an include directive, just comment out the code.
3471 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3472 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3473 am__include="#"
3474 am__quote=
3475 _am_result=none
3476 # First try GNU make style include.
3477 echo "include confinc" > confmf
3478 # We grep out `Entering directory' and `Leaving directory'
3479 # messages which can occur if `w' ends up in MAKEFLAGS.
3480 # In particular we don't look at `^make:' because GNU make might
3481 # be invoked under some other name (usually "gmake"), in which
3482 # case it prints its new name instead of `make'.
3483 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3484 am__include=include
3485 am__quote=
3486 _am_result=GNU
3488 # Now try BSD make style include.
3489 if test "$am__include" = "#"; then
3490 echo '.include "confinc"' > confmf
3491 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3492 am__include=.include
3493 am__quote="\""
3494 _am_result=BSD
3499 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3500 $as_echo "$_am_result" >&6; }
3501 rm -f confinc confmf
3503 # Check whether --enable-dependency-tracking was given.
3504 if test "${enable_dependency_tracking+set}" = set; then
3505 enableval=$enable_dependency_tracking;
3508 if test "x$enable_dependency_tracking" != xno; then
3509 am_depcomp="$ac_aux_dir/depcomp"
3510 AMDEPBACKSLASH='\'
3512 if test "x$enable_dependency_tracking" != xno; then
3513 AMDEP_TRUE=
3514 AMDEP_FALSE='#'
3515 else
3516 AMDEP_TRUE='#'
3517 AMDEP_FALSE=
3522 depcc="$CC" am_compiler_list=
3524 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3525 $as_echo_n "checking dependency style of $depcc... " >&6; }
3526 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3530 # We make a subdir and do the tests there. Otherwise we can end up
3531 # making bogus files that we don't know about and never remove. For
3532 # instance it was reported that on HP-UX the gcc test will end up
3533 # making a dummy file named `D' -- because `-MD' means `put the output
3534 # in D'.
3535 mkdir conftest.dir
3536 # Copy depcomp to subdir because otherwise we won't find it if we're
3537 # using a relative directory.
3538 cp "$am_depcomp" conftest.dir
3539 cd conftest.dir
3540 # We will build objects and dependencies in a subdirectory because
3541 # it helps to detect inapplicable dependency modes. For instance
3542 # both Tru64's cc and ICC support -MD to output dependencies as a
3543 # side effect of compilation, but ICC will put the dependencies in
3544 # the current directory while Tru64 will put them in the object
3545 # directory.
3546 mkdir sub
3548 am_cv_CC_dependencies_compiler_type=none
3549 if test "$am_compiler_list" = ""; then
3550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3552 for depmode in $am_compiler_list; do
3553 # Setup a source with many dependencies, because some compilers
3554 # like to wrap large dependency lists on column 80 (with \), and
3555 # we should not choose a depcomp mode which is confused by this.
3557 # We need to recreate these files for each test, as the compiler may
3558 # overwrite some of them when testing with obscure command lines.
3559 # This happens at least with the AIX C compiler.
3560 : > sub/conftest.c
3561 for i in 1 2 3 4 5 6; do
3562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3564 # Solaris 8's {/usr,}/bin/sh.
3565 touch sub/conftst$i.h
3566 done
3567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3569 case $depmode in
3570 nosideeffect)
3571 # after this tag, mechanisms are not by side-effect, so they'll
3572 # only be used when explicitly requested
3573 if test "x$enable_dependency_tracking" = xyes; then
3574 continue
3575 else
3576 break
3579 none) break ;;
3580 esac
3581 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3582 # mode. It turns out that the SunPro C++ compiler does not properly
3583 # handle `-M -o', and we need to detect this.
3584 if depmode=$depmode \
3585 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3587 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3588 >/dev/null 2>conftest.err &&
3589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3591 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3593 # icc doesn't choke on unknown options, it will just issue warnings
3594 # or remarks (even with -Werror). So we grep stderr for any message
3595 # that says an option was ignored or not supported.
3596 # When given -MP, icc 7.0 and 7.1 complain thusly:
3597 # icc: Command line warning: ignoring option '-M'; no argument required
3598 # The diagnosis changed in icc 8.0:
3599 # icc: Command line remark: option '-MP' not supported
3600 if (grep 'ignoring option' conftest.err ||
3601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3602 am_cv_CC_dependencies_compiler_type=$depmode
3603 break
3606 done
3608 cd ..
3609 rm -rf conftest.dir
3610 else
3611 am_cv_CC_dependencies_compiler_type=none
3615 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3616 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3617 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3620 test "x$enable_dependency_tracking" != xno \
3621 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3622 am__fastdepCC_TRUE=
3623 am__fastdepCC_FALSE='#'
3624 else
3625 am__fastdepCC_TRUE='#'
3626 am__fastdepCC_FALSE=
3630 # Find a good install program. We prefer a C program (faster),
3631 # so one script is as good as another. But avoid the broken or
3632 # incompatible versions:
3633 # SysV /etc/install, /usr/sbin/install
3634 # SunOS /usr/etc/install
3635 # IRIX /sbin/install
3636 # AIX /bin/install
3637 # AmigaOS /C/install, which installs bootblocks on floppy discs
3638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3641 # OS/2's system install, which has a completely different semantic
3642 # ./install, which can be erroneously created by make from ./install.sh.
3643 # Reject install programs that cannot install multiple files.
3644 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3645 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3646 if test -z "$INSTALL"; then
3647 if test "${ac_cv_path_install+set}" = set; then
3648 $as_echo_n "(cached) " >&6
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 # Account for people who put trailing slashes in PATH elements.
3656 case $as_dir/ in
3657 ./ | .// | /cC/* | \
3658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3659 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3660 /usr/ucb/* ) ;;
3662 # OSF1 and SCO ODT 3.0 have their own names for install.
3663 # Don't use installbsd from OSF since it installs stuff as root
3664 # by default.
3665 for ac_prog in ginstall scoinst install; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3668 if test $ac_prog = install &&
3669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3670 # AIX install. It has an incompatible calling convention.
3672 elif test $ac_prog = install &&
3673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3674 # program-specific install script used by HP pwplus--don't use.
3676 else
3677 rm -rf conftest.one conftest.two conftest.dir
3678 echo one > conftest.one
3679 echo two > conftest.two
3680 mkdir conftest.dir
3681 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3682 test -s conftest.one && test -s conftest.two &&
3683 test -s conftest.dir/conftest.one &&
3684 test -s conftest.dir/conftest.two
3685 then
3686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3687 break 3
3691 done
3692 done
3694 esac
3696 done
3697 IFS=$as_save_IFS
3699 rm -rf conftest.one conftest.two conftest.dir
3702 if test "${ac_cv_path_install+set}" = set; then
3703 INSTALL=$ac_cv_path_install
3704 else
3705 # As a last resort, use the slow shell script. Don't cache a
3706 # value for INSTALL within a source directory, because that will
3707 # break other packages using the cache if that directory is
3708 # removed, or if the value is a relative name.
3709 INSTALL=$ac_install_sh
3712 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3713 $as_echo "$INSTALL" >&6; }
3715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3716 # It thinks the first close brace ends the variable substitution.
3717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3723 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3724 $as_echo_n "checking whether ln -s works... " >&6; }
3725 LN_S=$as_ln_s
3726 if test "$LN_S" = "ln -s"; then
3727 { $as_echo "$as_me:$LINENO: result: yes" >&5
3728 $as_echo "yes" >&6; }
3729 else
3730 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3731 $as_echo "no, using $LN_S" >&6; }
3736 ac_ext=c
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3742 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3743 # On Suns, sometimes $CPP names a directory.
3744 if test -n "$CPP" && test -d "$CPP"; then
3745 CPP=
3747 if test -z "$CPP"; then
3748 if test "${ac_cv_prog_CPP+set}" = set; then
3749 $as_echo_n "(cached) " >&6
3750 else
3751 # Double quotes because CPP needs to be expanded
3752 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3754 ac_preproc_ok=false
3755 for ac_c_preproc_warn_flag in '' yes
3757 # Use a header file that comes with gcc, so configuring glibc
3758 # with a fresh cross-compiler works.
3759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760 # <limits.h> exists even on freestanding compilers.
3761 # On the NeXT, cc -E runs the code through the compiler's parser,
3762 # not just through cpp. "Syntax error" is here to catch this case.
3763 cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h. */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769 #ifdef __STDC__
3770 # include <limits.h>
3771 #else
3772 # include <assert.h>
3773 #endif
3774 Syntax error
3775 _ACEOF
3776 if { (ac_try="$ac_cpp conftest.$ac_ext"
3777 case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3782 $as_echo "$ac_try_echo") >&5
3783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null && {
3790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3791 test ! -s conftest.err
3792 }; then
3794 else
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 # Broken: fails on valid input.
3799 continue
3802 rm -f conftest.err conftest.$ac_ext
3804 # OK, works on sane cases. Now check whether nonexistent headers
3805 # can be detected and how.
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <ac_nonexistent.h>
3813 _ACEOF
3814 if { (ac_try="$ac_cpp conftest.$ac_ext"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3820 $as_echo "$ac_try_echo") >&5
3821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } >/dev/null && {
3828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 }; then
3831 # Broken: success on invalid input.
3832 continue
3833 else
3834 $as_echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 # Passes both tests.
3838 ac_preproc_ok=:
3839 break
3842 rm -f conftest.err conftest.$ac_ext
3844 done
3845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3846 rm -f conftest.err conftest.$ac_ext
3847 if $ac_preproc_ok; then
3848 break
3851 done
3852 ac_cv_prog_CPP=$CPP
3855 CPP=$ac_cv_prog_CPP
3856 else
3857 ac_cv_prog_CPP=$CPP
3859 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3860 $as_echo "$CPP" >&6; }
3861 ac_preproc_ok=false
3862 for ac_c_preproc_warn_flag in '' yes
3864 # Use a header file that comes with gcc, so configuring glibc
3865 # with a fresh cross-compiler works.
3866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3867 # <limits.h> exists even on freestanding compilers.
3868 # On the NeXT, cc -E runs the code through the compiler's parser,
3869 # not just through cpp. "Syntax error" is here to catch this case.
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 #ifdef __STDC__
3877 # include <limits.h>
3878 #else
3879 # include <assert.h>
3880 #endif
3881 Syntax error
3882 _ACEOF
3883 if { (ac_try="$ac_cpp conftest.$ac_ext"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3889 $as_echo "$ac_try_echo") >&5
3890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null && {
3897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3898 test ! -s conftest.err
3899 }; then
3901 else
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Broken: fails on valid input.
3906 continue
3909 rm -f conftest.err conftest.$ac_ext
3911 # OK, works on sane cases. Now check whether nonexistent headers
3912 # can be detected and how.
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <ac_nonexistent.h>
3920 _ACEOF
3921 if { (ac_try="$ac_cpp conftest.$ac_ext"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3927 $as_echo "$ac_try_echo") >&5
3928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } >/dev/null && {
3935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3936 test ! -s conftest.err
3937 }; then
3938 # Broken: success on invalid input.
3939 continue
3940 else
3941 $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 # Passes both tests.
3945 ac_preproc_ok=:
3946 break
3949 rm -f conftest.err conftest.$ac_ext
3951 done
3952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3953 rm -f conftest.err conftest.$ac_ext
3954 if $ac_preproc_ok; then
3956 else
3957 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details." >&5
3961 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3962 See \`config.log' for more details." >&2;}
3963 { (exit 1); exit 1; }; }; }
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3974 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -z "$GREP"; then
3979 ac_path_GREP_found=false
3980 # Loop through the user's path and test for each of PROGNAME-LIST
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_prog in grep ggrep; do
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3989 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3990 # Check for GNU ac_path_GREP and select it if it is found.
3991 # Check for GNU $ac_path_GREP
3992 case `"$ac_path_GREP" --version 2>&1` in
3993 *GNU*)
3994 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3996 ac_count=0
3997 $as_echo_n 0123456789 >"conftest.in"
3998 while :
4000 cat "conftest.in" "conftest.in" >"conftest.tmp"
4001 mv "conftest.tmp" "conftest.in"
4002 cp "conftest.in" "conftest.nl"
4003 $as_echo 'GREP' >> "conftest.nl"
4004 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006 ac_count=`expr $ac_count + 1`
4007 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4008 # Best one so far, save it but keep looking for a better one
4009 ac_cv_path_GREP="$ac_path_GREP"
4010 ac_path_GREP_max=$ac_count
4012 # 10*(2^10) chars as input seems more than enough
4013 test $ac_count -gt 10 && break
4014 done
4015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 esac
4018 $ac_path_GREP_found && break 3
4019 done
4020 done
4021 done
4022 IFS=$as_save_IFS
4023 if test -z "$ac_cv_path_GREP"; then
4024 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026 { (exit 1); exit 1; }; }
4028 else
4029 ac_cv_path_GREP=$GREP
4033 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 $as_echo "$ac_cv_path_GREP" >&6; }
4035 GREP="$ac_cv_path_GREP"
4038 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4039 $as_echo_n "checking for egrep... " >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4045 else
4046 if test -z "$EGREP"; then
4047 ac_path_EGREP_found=false
4048 # Loop through the user's path and test for each of PROGNAME-LIST
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_prog in egrep; do
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4058 # Check for GNU ac_path_EGREP and select it if it is found.
4059 # Check for GNU $ac_path_EGREP
4060 case `"$ac_path_EGREP" --version 2>&1` in
4061 *GNU*)
4062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064 ac_count=0
4065 $as_echo_n 0123456789 >"conftest.in"
4066 while :
4068 cat "conftest.in" "conftest.in" >"conftest.tmp"
4069 mv "conftest.tmp" "conftest.in"
4070 cp "conftest.in" "conftest.nl"
4071 $as_echo 'EGREP' >> "conftest.nl"
4072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4074 ac_count=`expr $ac_count + 1`
4075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4076 # Best one so far, save it but keep looking for a better one
4077 ac_cv_path_EGREP="$ac_path_EGREP"
4078 ac_path_EGREP_max=$ac_count
4080 # 10*(2^10) chars as input seems more than enough
4081 test $ac_count -gt 10 && break
4082 done
4083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084 esac
4086 $ac_path_EGREP_found && break 3
4087 done
4088 done
4089 done
4090 IFS=$as_save_IFS
4091 if test -z "$ac_cv_path_EGREP"; then
4092 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4093 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4094 { (exit 1); exit 1; }; }
4096 else
4097 ac_cv_path_EGREP=$EGREP
4102 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4103 $as_echo "$ac_cv_path_EGREP" >&6; }
4104 EGREP="$ac_cv_path_EGREP"
4107 if test $ac_cv_c_compiler_gnu = yes; then
4108 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4109 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4110 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4111 $as_echo_n "(cached) " >&6
4112 else
4113 ac_pattern="Autoconf.*'x'"
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <sgtty.h>
4121 Autoconf TIOCGETP
4122 _ACEOF
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4125 ac_cv_prog_gcc_traditional=yes
4126 else
4127 ac_cv_prog_gcc_traditional=no
4129 rm -f conftest*
4132 if test $ac_cv_prog_gcc_traditional = no; then
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h. */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 #include <termio.h>
4140 Autoconf TCGETA
4141 _ACEOF
4142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4143 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4144 ac_cv_prog_gcc_traditional=yes
4146 rm -f conftest*
4150 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4151 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4152 if test $ac_cv_prog_gcc_traditional = yes; then
4153 CC="$CC -traditional"
4157 if test "$GCC" = yes ; then
4158 CFLAGS="$CFLAGS -Wall"
4159 # And disable the strict-aliasing optimization, since it breaks
4160 # our sockaddr-handling code in strange ways.
4161 CFLAGS="$CFLAGS -fno-strict-aliasing"
4164 # Check whether --enable-gcc-warnings was given.
4165 if test "${enable_gcc_warnings+set}" = set; then
4166 enableval=$enable_gcc_warnings;
4170 # Check whether --enable-shared was given.
4171 if test "${enable_shared+set}" = set; then
4172 enableval=$enable_shared; p=${PACKAGE-default}
4173 case $enableval in
4174 yes) enable_shared=yes ;;
4175 no) enable_shared=no ;;
4177 enable_shared=no
4178 # Look at the argument we got. We use all the common list separators.
4179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4180 for pkg in $enableval; do
4181 IFS="$lt_save_ifs"
4182 if test "X$pkg" = "X$p"; then
4183 enable_shared=yes
4185 done
4186 IFS="$lt_save_ifs"
4188 esac
4189 else
4190 enable_shared=yes
4194 # Check whether --enable-static was given.
4195 if test "${enable_static+set}" = set; then
4196 enableval=$enable_static; p=${PACKAGE-default}
4197 case $enableval in
4198 yes) enable_static=yes ;;
4199 no) enable_static=no ;;
4201 enable_static=no
4202 # Look at the argument we got. We use all the common list separators.
4203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4204 for pkg in $enableval; do
4205 IFS="$lt_save_ifs"
4206 if test "X$pkg" = "X$p"; then
4207 enable_static=yes
4209 done
4210 IFS="$lt_save_ifs"
4212 esac
4213 else
4214 enable_static=yes
4218 # Check whether --enable-fast-install was given.
4219 if test "${enable_fast_install+set}" = set; then
4220 enableval=$enable_fast_install; p=${PACKAGE-default}
4221 case $enableval in
4222 yes) enable_fast_install=yes ;;
4223 no) enable_fast_install=no ;;
4225 enable_fast_install=no
4226 # Look at the argument we got. We use all the common list separators.
4227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4228 for pkg in $enableval; do
4229 IFS="$lt_save_ifs"
4230 if test "X$pkg" = "X$p"; then
4231 enable_fast_install=yes
4233 done
4234 IFS="$lt_save_ifs"
4236 esac
4237 else
4238 enable_fast_install=yes
4242 # Make sure we can run config.sub.
4243 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4244 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4245 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4246 { (exit 1); exit 1; }; }
4248 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4249 $as_echo_n "checking build system type... " >&6; }
4250 if test "${ac_cv_build+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4252 else
4253 ac_build_alias=$build_alias
4254 test "x$ac_build_alias" = x &&
4255 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4256 test "x$ac_build_alias" = x &&
4257 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4258 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4259 { (exit 1); exit 1; }; }
4260 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4261 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4262 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4263 { (exit 1); exit 1; }; }
4266 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4267 $as_echo "$ac_cv_build" >&6; }
4268 case $ac_cv_build in
4269 *-*-*) ;;
4270 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4271 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4272 { (exit 1); exit 1; }; };;
4273 esac
4274 build=$ac_cv_build
4275 ac_save_IFS=$IFS; IFS='-'
4276 set x $ac_cv_build
4277 shift
4278 build_cpu=$1
4279 build_vendor=$2
4280 shift; shift
4281 # Remember, the first character of IFS is used to create $*,
4282 # except with old shells:
4283 build_os=$*
4284 IFS=$ac_save_IFS
4285 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4288 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4289 $as_echo_n "checking host system type... " >&6; }
4290 if test "${ac_cv_host+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test "x$host_alias" = x; then
4294 ac_cv_host=$ac_cv_build
4295 else
4296 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4297 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4298 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4299 { (exit 1); exit 1; }; }
4303 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4304 $as_echo "$ac_cv_host" >&6; }
4305 case $ac_cv_host in
4306 *-*-*) ;;
4307 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4308 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4309 { (exit 1); exit 1; }; };;
4310 esac
4311 host=$ac_cv_host
4312 ac_save_IFS=$IFS; IFS='-'
4313 set x $ac_cv_host
4314 shift
4315 host_cpu=$1
4316 host_vendor=$2
4317 shift; shift
4318 # Remember, the first character of IFS is used to create $*,
4319 # except with old shells:
4320 host_os=$*
4321 IFS=$ac_save_IFS
4322 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4325 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4326 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4327 if test "${lt_cv_path_SED+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4329 else
4330 # Loop through the user's path and test for sed and gsed.
4331 # Then use that list of sed's as ones to test for truncation.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for lt_ac_prog in sed gsed; do
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4340 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4342 done
4343 done
4344 done
4345 IFS=$as_save_IFS
4346 lt_ac_max=0
4347 lt_ac_count=0
4348 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4349 # along with /bin/sed that truncates output.
4350 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4351 test ! -f $lt_ac_sed && continue
4352 cat /dev/null > conftest.in
4353 lt_ac_count=0
4354 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4355 # Check for GNU sed and select it if it is found.
4356 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4357 lt_cv_path_SED=$lt_ac_sed
4358 break
4360 while true; do
4361 cat conftest.in conftest.in >conftest.tmp
4362 mv conftest.tmp conftest.in
4363 cp conftest.in conftest.nl
4364 echo >>conftest.nl
4365 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4366 cmp -s conftest.out conftest.nl || break
4367 # 10000 chars as input seems more than enough
4368 test $lt_ac_count -gt 10 && break
4369 lt_ac_count=`expr $lt_ac_count + 1`
4370 if test $lt_ac_count -gt $lt_ac_max; then
4371 lt_ac_max=$lt_ac_count
4372 lt_cv_path_SED=$lt_ac_sed
4374 done
4375 done
4379 SED=$lt_cv_path_SED
4381 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4382 $as_echo "$SED" >&6; }
4385 # Check whether --with-gnu-ld was given.
4386 if test "${with_gnu_ld+set}" = set; then
4387 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4388 else
4389 with_gnu_ld=no
4392 ac_prog=ld
4393 if test "$GCC" = yes; then
4394 # Check if gcc -print-prog-name=ld gives a path.
4395 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4396 $as_echo_n "checking for ld used by $CC... " >&6; }
4397 case $host in
4398 *-*-mingw*)
4399 # gcc leaves a trailing carriage return which upsets mingw
4400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4403 esac
4404 case $ac_prog in
4405 # Accept absolute paths.
4406 [\\/]* | ?:[\\/]*)
4407 re_direlt='/[^/][^/]*/\.\./'
4408 # Canonicalize the pathname of ld
4409 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4410 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4411 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4412 done
4413 test -z "$LD" && LD="$ac_prog"
4416 # If it fails, then pretend we aren't using GCC.
4417 ac_prog=ld
4420 # If it is relative, then search for the first ld in PATH.
4421 with_gnu_ld=unknown
4423 esac
4424 elif test "$with_gnu_ld" = yes; then
4425 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4426 $as_echo_n "checking for GNU ld... " >&6; }
4427 else
4428 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4429 $as_echo_n "checking for non-GNU ld... " >&6; }
4431 if test "${lt_cv_path_LD+set}" = set; then
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test -z "$LD"; then
4435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4436 for ac_dir in $PATH; do
4437 IFS="$lt_save_ifs"
4438 test -z "$ac_dir" && ac_dir=.
4439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4440 lt_cv_path_LD="$ac_dir/$ac_prog"
4441 # Check to see if the program is GNU ld. I'd rather use --version,
4442 # but apparently some variants of GNU ld only accept -v.
4443 # Break only if it was the GNU/non-GNU ld that we prefer.
4444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4445 *GNU* | *'with BFD'*)
4446 test "$with_gnu_ld" != no && break
4449 test "$with_gnu_ld" != yes && break
4451 esac
4453 done
4454 IFS="$lt_save_ifs"
4455 else
4456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4460 LD="$lt_cv_path_LD"
4461 if test -n "$LD"; then
4462 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4463 $as_echo "$LD" >&6; }
4464 else
4465 { $as_echo "$as_me:$LINENO: result: no" >&5
4466 $as_echo "no" >&6; }
4468 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4469 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4470 { (exit 1); exit 1; }; }
4471 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4472 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4473 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4474 $as_echo_n "(cached) " >&6
4475 else
4476 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4477 case `$LD -v 2>&1 </dev/null` in
4478 *GNU* | *'with BFD'*)
4479 lt_cv_prog_gnu_ld=yes
4482 lt_cv_prog_gnu_ld=no
4484 esac
4486 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4487 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4488 with_gnu_ld=$lt_cv_prog_gnu_ld
4491 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4492 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4493 if test "${lt_cv_ld_reload_flag+set}" = set; then
4494 $as_echo_n "(cached) " >&6
4495 else
4496 lt_cv_ld_reload_flag='-r'
4498 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4499 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4500 reload_flag=$lt_cv_ld_reload_flag
4501 case $reload_flag in
4502 "" | " "*) ;;
4503 *) reload_flag=" $reload_flag" ;;
4504 esac
4505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4506 case $host_os in
4507 darwin*)
4508 if test "$GCC" = yes; then
4509 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4510 else
4511 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4514 esac
4516 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4517 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4518 if test "${lt_cv_path_NM+set}" = set; then
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$NM"; then
4522 # Let the user override the test.
4523 lt_cv_path_NM="$NM"
4524 else
4525 lt_nm_to_check="${ac_tool_prefix}nm"
4526 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4527 lt_nm_to_check="$lt_nm_to_check nm"
4529 for lt_tmp_nm in $lt_nm_to_check; do
4530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4531 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4532 IFS="$lt_save_ifs"
4533 test -z "$ac_dir" && ac_dir=.
4534 tmp_nm="$ac_dir/$lt_tmp_nm"
4535 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4536 # Check to see if the nm accepts a BSD-compat flag.
4537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4538 # nm: unknown option "B" ignored
4539 # Tru64's nm complains that /dev/null is an invalid object file
4540 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4541 */dev/null* | *'Invalid file or object type'*)
4542 lt_cv_path_NM="$tmp_nm -B"
4543 break
4546 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4547 */dev/null*)
4548 lt_cv_path_NM="$tmp_nm -p"
4549 break
4552 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4553 continue # so that we can try to find one that supports BSD flags
4555 esac
4557 esac
4559 done
4560 IFS="$lt_save_ifs"
4561 done
4562 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4565 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4566 $as_echo "$lt_cv_path_NM" >&6; }
4567 NM="$lt_cv_path_NM"
4569 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4570 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4571 if test "${lt_cv_deplibs_check_method+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4573 else
4574 lt_cv_file_magic_cmd='$MAGIC_CMD'
4575 lt_cv_file_magic_test_file=
4576 lt_cv_deplibs_check_method='unknown'
4577 # Need to set the preceding variable on all platforms that support
4578 # interlibrary dependencies.
4579 # 'none' -- dependencies not supported.
4580 # `unknown' -- same as none, but documents that we really don't know.
4581 # 'pass_all' -- all dependencies passed with no checks.
4582 # 'test_compile' -- check by making test program.
4583 # 'file_magic [[regex]]' -- check by looking for files in library path
4584 # which responds to the $file_magic_cmd with a given extended regex.
4585 # If you have `file' or equivalent on your system and you're not sure
4586 # whether `pass_all' will *always* work, you probably want this one.
4588 case $host_os in
4589 aix[4-9]*)
4590 lt_cv_deplibs_check_method=pass_all
4593 beos*)
4594 lt_cv_deplibs_check_method=pass_all
4597 bsdi[45]*)
4598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4599 lt_cv_file_magic_cmd='/usr/bin/file -L'
4600 lt_cv_file_magic_test_file=/shlib/libc.so
4603 cygwin*)
4604 # func_win32_libid is a shell function defined in ltmain.sh
4605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4606 lt_cv_file_magic_cmd='func_win32_libid'
4609 mingw* | pw32*)
4610 # Base MSYS/MinGW do not provide the 'file' command needed by
4611 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4612 # unless we find 'file', for example because we are cross-compiling.
4613 if ( file / ) >/dev/null 2>&1; then
4614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4615 lt_cv_file_magic_cmd='func_win32_libid'
4616 else
4617 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4618 lt_cv_file_magic_cmd='$OBJDUMP -f'
4622 darwin* | rhapsody*)
4623 lt_cv_deplibs_check_method=pass_all
4626 freebsd* | dragonfly*)
4627 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4628 case $host_cpu in
4629 i*86 )
4630 # Not sure whether the presence of OpenBSD here was a mistake.
4631 # Let's accept both of them until this is cleared up.
4632 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4633 lt_cv_file_magic_cmd=/usr/bin/file
4634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4636 esac
4637 else
4638 lt_cv_deplibs_check_method=pass_all
4642 gnu*)
4643 lt_cv_deplibs_check_method=pass_all
4646 hpux10.20* | hpux11*)
4647 lt_cv_file_magic_cmd=/usr/bin/file
4648 case $host_cpu in
4649 ia64*)
4650 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4651 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4653 hppa*64*)
4654 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]'
4655 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4658 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4659 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4661 esac
4664 interix[3-9]*)
4665 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4669 irix5* | irix6* | nonstopux*)
4670 case $LD in
4671 *-32|*"-32 ") libmagic=32-bit;;
4672 *-n32|*"-n32 ") libmagic=N32;;
4673 *-64|*"-64 ") libmagic=64-bit;;
4674 *) libmagic=never-match;;
4675 esac
4676 lt_cv_deplibs_check_method=pass_all
4679 # This must be Linux ELF.
4680 linux* | k*bsd*-gnu)
4681 lt_cv_deplibs_check_method=pass_all
4684 netbsd*)
4685 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4687 else
4688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4692 newos6*)
4693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4694 lt_cv_file_magic_cmd=/usr/bin/file
4695 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4698 nto-qnx*)
4699 lt_cv_deplibs_check_method=unknown
4702 openbsd*)
4703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4705 else
4706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4710 osf3* | osf4* | osf5*)
4711 lt_cv_deplibs_check_method=pass_all
4714 rdos*)
4715 lt_cv_deplibs_check_method=pass_all
4718 solaris*)
4719 lt_cv_deplibs_check_method=pass_all
4722 sysv4 | sysv4.3*)
4723 case $host_vendor in
4724 motorola)
4725 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]'
4726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4728 ncr)
4729 lt_cv_deplibs_check_method=pass_all
4731 sequent)
4732 lt_cv_file_magic_cmd='/bin/file'
4733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4735 sni)
4736 lt_cv_file_magic_cmd='/bin/file'
4737 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4738 lt_cv_file_magic_test_file=/lib/libc.so
4740 siemens)
4741 lt_cv_deplibs_check_method=pass_all
4744 lt_cv_deplibs_check_method=pass_all
4746 esac
4749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4750 lt_cv_deplibs_check_method=pass_all
4752 esac
4755 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4756 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4757 file_magic_cmd=$lt_cv_file_magic_cmd
4758 deplibs_check_method=$lt_cv_deplibs_check_method
4759 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4764 # If no C compiler was specified, use CC.
4765 LTCC=${LTCC-"$CC"}
4767 # If no C compiler flags were specified, use CFLAGS.
4768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4770 # Allow CC to be a program name with arguments.
4771 compiler=$CC
4773 # Check whether --enable-libtool-lock was given.
4774 if test "${enable_libtool_lock+set}" = set; then
4775 enableval=$enable_libtool_lock;
4778 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4780 # Some flags need to be propagated to the compiler or linker for good
4781 # libtool support.
4782 case $host in
4783 ia64-*-hpux*)
4784 # Find out which ABI we are using.
4785 echo 'int i;' > conftest.$ac_ext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>&5
4788 ac_status=$?
4789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; then
4791 case `/usr/bin/file conftest.$ac_objext` in
4792 *ELF-32*)
4793 HPUX_IA64_MODE="32"
4795 *ELF-64*)
4796 HPUX_IA64_MODE="64"
4798 esac
4800 rm -rf conftest*
4802 *-*-irix6*)
4803 # Find out which ABI we are using.
4804 echo '#line 4804 "configure"' > conftest.$ac_ext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4807 ac_status=$?
4808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; then
4810 if test "$lt_cv_prog_gnu_ld" = yes; then
4811 case `/usr/bin/file conftest.$ac_objext` in
4812 *32-bit*)
4813 LD="${LD-ld} -melf32bsmip"
4815 *N32*)
4816 LD="${LD-ld} -melf32bmipn32"
4818 *64-bit*)
4819 LD="${LD-ld} -melf64bmip"
4821 esac
4822 else
4823 case `/usr/bin/file conftest.$ac_objext` in
4824 *32-bit*)
4825 LD="${LD-ld} -32"
4827 *N32*)
4828 LD="${LD-ld} -n32"
4830 *64-bit*)
4831 LD="${LD-ld} -64"
4833 esac
4836 rm -rf conftest*
4839 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4840 s390*-*linux*|sparc*-*linux*)
4841 # Find out which ABI we are using.
4842 echo 'int i;' > conftest.$ac_ext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>&5
4845 ac_status=$?
4846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; then
4848 case `/usr/bin/file conftest.o` in
4849 *32-bit*)
4850 case $host in
4851 x86_64-*kfreebsd*-gnu)
4852 LD="${LD-ld} -m elf_i386_fbsd"
4854 x86_64-*linux*)
4855 LD="${LD-ld} -m elf_i386"
4857 ppc64-*linux*|powerpc64-*linux*)
4858 LD="${LD-ld} -m elf32ppclinux"
4860 s390x-*linux*)
4861 LD="${LD-ld} -m elf_s390"
4863 sparc64-*linux*)
4864 LD="${LD-ld} -m elf32_sparc"
4866 esac
4868 *64-bit*)
4869 case $host in
4870 x86_64-*kfreebsd*-gnu)
4871 LD="${LD-ld} -m elf_x86_64_fbsd"
4873 x86_64-*linux*)
4874 LD="${LD-ld} -m elf_x86_64"
4876 ppc*-*linux*|powerpc*-*linux*)
4877 LD="${LD-ld} -m elf64ppc"
4879 s390*-*linux*)
4880 LD="${LD-ld} -m elf64_s390"
4882 sparc*-*linux*)
4883 LD="${LD-ld} -m elf64_sparc"
4885 esac
4887 esac
4889 rm -rf conftest*
4892 *-*-sco3.2v5*)
4893 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4894 SAVE_CFLAGS="$CFLAGS"
4895 CFLAGS="$CFLAGS -belf"
4896 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4897 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4898 if test "${lt_cv_cc_needs_belf+set}" = set; then
4899 $as_echo_n "(cached) " >&6
4900 else
4901 ac_ext=c
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4915 main ()
4919 return 0;
4921 _ACEOF
4922 rm -f conftest.$ac_objext conftest$ac_exeext
4923 if { (ac_try="$ac_link"
4924 case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927 esac
4928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4929 $as_echo "$ac_try_echo") >&5
4930 (eval "$ac_link") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest$ac_exeext && {
4940 test "$cross_compiling" = yes ||
4941 $as_test_x conftest$ac_exeext
4942 }; then
4943 lt_cv_cc_needs_belf=yes
4944 else
4945 $as_echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4948 lt_cv_cc_needs_belf=no
4951 rm -rf conftest.dSYM
4952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4953 conftest$ac_exeext conftest.$ac_ext
4954 ac_ext=c
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4962 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4963 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4964 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4965 CFLAGS="$SAVE_CFLAGS"
4968 sparc*-*solaris*)
4969 # Find out which ABI we are using.
4970 echo 'int i;' > conftest.$ac_ext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4973 ac_status=$?
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; then
4976 case `/usr/bin/file conftest.o` in
4977 *64-bit*)
4978 case $lt_cv_prog_gnu_ld in
4979 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4981 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4982 LD="${LD-ld} -64"
4985 esac
4987 esac
4989 rm -rf conftest*
4993 esac
4995 need_locks="$enable_libtool_lock"
4998 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4999 $as_echo_n "checking for ANSI C header files... " >&6; }
5000 if test "${ac_cv_header_stdc+set}" = set; then
5001 $as_echo_n "(cached) " >&6
5002 else
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 #include <stdlib.h>
5010 #include <stdarg.h>
5011 #include <string.h>
5012 #include <float.h>
5015 main ()
5019 return 0;
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (ac_try="$ac_compile"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030 (eval "$ac_compile") 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest.$ac_objext; then
5040 ac_cv_header_stdc=yes
5041 else
5042 $as_echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 ac_cv_header_stdc=no
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 if test $ac_cv_header_stdc = yes; then
5051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <string.h>
5060 _ACEOF
5061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5062 $EGREP "memchr" >/dev/null 2>&1; then
5064 else
5065 ac_cv_header_stdc=no
5067 rm -f conftest*
5071 if test $ac_cv_header_stdc = yes; then
5072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <stdlib.h>
5081 _ACEOF
5082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5083 $EGREP "free" >/dev/null 2>&1; then
5085 else
5086 ac_cv_header_stdc=no
5088 rm -f conftest*
5092 if test $ac_cv_header_stdc = yes; then
5093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5094 if test "$cross_compiling" = yes; then
5096 else
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <ctype.h>
5104 #include <stdlib.h>
5105 #if ((' ' & 0x0FF) == 0x020)
5106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5108 #else
5109 # define ISLOWER(c) \
5110 (('a' <= (c) && (c) <= 'i') \
5111 || ('j' <= (c) && (c) <= 'r') \
5112 || ('s' <= (c) && (c) <= 'z'))
5113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5114 #endif
5116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5118 main ()
5120 int i;
5121 for (i = 0; i < 256; i++)
5122 if (XOR (islower (i), ISLOWER (i))
5123 || toupper (i) != TOUPPER (i))
5124 return 2;
5125 return 0;
5127 _ACEOF
5128 rm -f conftest$ac_exeext
5129 if { (ac_try="$ac_link"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5135 $as_echo "$ac_try_echo") >&5
5136 (eval "$ac_link") 2>&5
5137 ac_status=$?
5138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5140 { (case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145 $as_echo "$ac_try_echo") >&5
5146 (eval "$ac_try") 2>&5
5147 ac_status=$?
5148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5151 else
5152 $as_echo "$as_me: program exited with status $ac_status" >&5
5153 $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 ( exit $ac_status )
5157 ac_cv_header_stdc=no
5159 rm -rf conftest.dSYM
5160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5166 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5167 $as_echo "$ac_cv_header_stdc" >&6; }
5168 if test $ac_cv_header_stdc = yes; then
5170 cat >>confdefs.h <<\_ACEOF
5171 #define STDC_HEADERS 1
5172 _ACEOF
5176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5186 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5187 inttypes.h stdint.h unistd.h
5189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5191 $as_echo_n "checking for $ac_header... " >&6; }
5192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5193 $as_echo_n "(cached) " >&6
5194 else
5195 cat >conftest.$ac_ext <<_ACEOF
5196 /* confdefs.h. */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5201 $ac_includes_default
5203 #include <$ac_header>
5204 _ACEOF
5205 rm -f conftest.$ac_objext
5206 if { (ac_try="$ac_compile"
5207 case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210 esac
5211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5212 $as_echo "$ac_try_echo") >&5
5213 (eval "$ac_compile") 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } && {
5220 test -z "$ac_c_werror_flag" ||
5221 test ! -s conftest.err
5222 } && test -s conftest.$ac_objext; then
5223 eval "$as_ac_Header=yes"
5224 else
5225 $as_echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5228 eval "$as_ac_Header=no"
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 ac_res=`eval 'as_val=${'$as_ac_Header'}
5234 $as_echo "$as_val"'`
5235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5236 $as_echo "$ac_res" >&6; }
5237 as_val=`eval 'as_val=${'$as_ac_Header'}
5238 $as_echo "$as_val"'`
5239 if test "x$as_val" = x""yes; then
5240 cat >>confdefs.h <<_ACEOF
5241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5242 _ACEOF
5246 done
5250 for ac_header in dlfcn.h
5252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5255 $as_echo_n "checking for $ac_header... " >&6; }
5256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5257 $as_echo_n "(cached) " >&6
5259 ac_res=`eval 'as_val=${'$as_ac_Header'}
5260 $as_echo "$as_val"'`
5261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5262 $as_echo "$ac_res" >&6; }
5263 else
5264 # Is the header compilable?
5265 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5266 $as_echo_n "checking $ac_header usability... " >&6; }
5267 cat >conftest.$ac_ext <<_ACEOF
5268 /* confdefs.h. */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5273 $ac_includes_default
5274 #include <$ac_header>
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (ac_try="$ac_compile"
5278 case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5283 $as_echo "$ac_try_echo") >&5
5284 (eval "$ac_compile") 2>conftest.er1
5285 ac_status=$?
5286 grep -v '^ *+' conftest.er1 >conftest.err
5287 rm -f conftest.er1
5288 cat conftest.err >&5
5289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && {
5291 test -z "$ac_c_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest.$ac_objext; then
5294 ac_header_compiler=yes
5295 else
5296 $as_echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5299 ac_header_compiler=no
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5304 $as_echo "$ac_header_compiler" >&6; }
5306 # Is the header present?
5307 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5308 $as_echo_n "checking $ac_header presence... " >&6; }
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h. */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 #include <$ac_header>
5316 _ACEOF
5317 if { (ac_try="$ac_cpp conftest.$ac_ext"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5323 $as_echo "$ac_try_echo") >&5
5324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } >/dev/null && {
5331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 }; then
5334 ac_header_preproc=yes
5335 else
5336 $as_echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 ac_header_preproc=no
5342 rm -f conftest.err conftest.$ac_ext
5343 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 $as_echo "$ac_header_preproc" >&6; }
5346 # So? What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5348 yes:no: )
5349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5350 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5353 ac_header_preproc=yes
5355 no:yes:* )
5356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5357 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5359 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5361 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5363 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5367 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5370 esac
5371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5372 $as_echo_n "checking for $ac_header... " >&6; }
5373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5374 $as_echo_n "(cached) " >&6
5375 else
5376 eval "$as_ac_Header=\$ac_header_preproc"
5378 ac_res=`eval 'as_val=${'$as_ac_Header'}
5379 $as_echo "$as_val"'`
5380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5381 $as_echo "$ac_res" >&6; }
5384 as_val=`eval 'as_val=${'$as_ac_Header'}
5385 $as_echo "$as_val"'`
5386 if test "x$as_val" = x""yes; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389 _ACEOF
5393 done
5395 ac_ext=cpp
5396 ac_cpp='$CXXCPP $CPPFLAGS'
5397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5400 if test -z "$CXX"; then
5401 if test -n "$CCC"; then
5402 CXX=$CCC
5403 else
5404 if test -n "$ac_tool_prefix"; then
5405 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_prog_CXX+set}" = set; then
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$CXX"; then
5415 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 CXX=$ac_cv_prog_CXX
5435 if test -n "$CXX"; then
5436 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5437 $as_echo "$CXX" >&6; }
5438 else
5439 { $as_echo "$as_me:$LINENO: result: no" >&5
5440 $as_echo "no" >&6; }
5444 test -n "$CXX" && break
5445 done
5447 if test -z "$CXX"; then
5448 ac_ct_CXX=$CXX
5449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5451 # Extract the first word of "$ac_prog", so it can be a program name with args.
5452 set dummy $ac_prog; ac_word=$2
5453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$ac_ct_CXX"; then
5459 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_ac_ct_CXX="$ac_prog"
5469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5472 done
5473 done
5474 IFS=$as_save_IFS
5478 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5479 if test -n "$ac_ct_CXX"; then
5480 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5481 $as_echo "$ac_ct_CXX" >&6; }
5482 else
5483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484 $as_echo "no" >&6; }
5488 test -n "$ac_ct_CXX" && break
5489 done
5491 if test "x$ac_ct_CXX" = x; then
5492 CXX="g++"
5493 else
5494 case $cross_compiling:$ac_tool_warned in
5495 yes:)
5496 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498 ac_tool_warned=yes ;;
5499 esac
5500 CXX=$ac_ct_CXX
5506 # Provide some information about the compiler.
5507 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5508 set X $ac_compile
5509 ac_compiler=$2
5510 { (ac_try="$ac_compiler --version >&5"
5511 case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514 esac
5515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5516 $as_echo "$ac_try_echo") >&5
5517 (eval "$ac_compiler --version >&5") 2>&5
5518 ac_status=$?
5519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }
5521 { (ac_try="$ac_compiler -v >&5"
5522 case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5527 $as_echo "$ac_try_echo") >&5
5528 (eval "$ac_compiler -v >&5") 2>&5
5529 ac_status=$?
5530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }
5532 { (ac_try="$ac_compiler -V >&5"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5538 $as_echo "$ac_try_echo") >&5
5539 (eval "$ac_compiler -V >&5") 2>&5
5540 ac_status=$?
5541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }
5544 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5545 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5546 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5547 $as_echo_n "(cached) " >&6
5548 else
5549 cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h. */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5557 main ()
5559 #ifndef __GNUC__
5560 choke me
5561 #endif
5564 return 0;
5566 _ACEOF
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5569 case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574 $as_echo "$ac_try_echo") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_cxx_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5585 ac_compiler_gnu=yes
5586 else
5587 $as_echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_compiler_gnu=no
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5597 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5598 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5599 if test $ac_compiler_gnu = yes; then
5600 GXX=yes
5601 else
5602 GXX=
5604 ac_test_CXXFLAGS=${CXXFLAGS+set}
5605 ac_save_CXXFLAGS=$CXXFLAGS
5606 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5607 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5608 if test "${ac_cv_prog_cxx_g+set}" = set; then
5609 $as_echo_n "(cached) " >&6
5610 else
5611 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5612 ac_cxx_werror_flag=yes
5613 ac_cv_prog_cxx_g=no
5614 CXXFLAGS="-g"
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5623 main ()
5627 return 0;
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5632 case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5637 $as_echo "$ac_try_echo") >&5
5638 (eval "$ac_compile") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_cxx_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 ac_cv_prog_cxx_g=yes
5649 else
5650 $as_echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 CXXFLAGS=""
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5662 main ()
5666 return 0;
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5671 case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5676 $as_echo "$ac_try_echo") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_cxx_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5688 else
5689 $as_echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5693 CXXFLAGS="-g"
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5702 main ()
5706 return 0;
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5716 $as_echo "$ac_try_echo") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 ac_cv_prog_cxx_g=yes
5728 else
5729 $as_echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5744 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5745 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5746 if test "$ac_test_CXXFLAGS" = set; then
5747 CXXFLAGS=$ac_save_CXXFLAGS
5748 elif test $ac_cv_prog_cxx_g = yes; then
5749 if test "$GXX" = yes; then
5750 CXXFLAGS="-g -O2"
5751 else
5752 CXXFLAGS="-g"
5754 else
5755 if test "$GXX" = yes; then
5756 CXXFLAGS="-O2"
5757 else
5758 CXXFLAGS=
5761 ac_ext=cpp
5762 ac_cpp='$CXXCPP $CPPFLAGS'
5763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5767 depcc="$CXX" am_compiler_list=
5769 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5770 $as_echo_n "checking dependency style of $depcc... " >&6; }
5771 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5775 # We make a subdir and do the tests there. Otherwise we can end up
5776 # making bogus files that we don't know about and never remove. For
5777 # instance it was reported that on HP-UX the gcc test will end up
5778 # making a dummy file named `D' -- because `-MD' means `put the output
5779 # in D'.
5780 mkdir conftest.dir
5781 # Copy depcomp to subdir because otherwise we won't find it if we're
5782 # using a relative directory.
5783 cp "$am_depcomp" conftest.dir
5784 cd conftest.dir
5785 # We will build objects and dependencies in a subdirectory because
5786 # it helps to detect inapplicable dependency modes. For instance
5787 # both Tru64's cc and ICC support -MD to output dependencies as a
5788 # side effect of compilation, but ICC will put the dependencies in
5789 # the current directory while Tru64 will put them in the object
5790 # directory.
5791 mkdir sub
5793 am_cv_CXX_dependencies_compiler_type=none
5794 if test "$am_compiler_list" = ""; then
5795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5797 for depmode in $am_compiler_list; do
5798 # Setup a source with many dependencies, because some compilers
5799 # like to wrap large dependency lists on column 80 (with \), and
5800 # we should not choose a depcomp mode which is confused by this.
5802 # We need to recreate these files for each test, as the compiler may
5803 # overwrite some of them when testing with obscure command lines.
5804 # This happens at least with the AIX C compiler.
5805 : > sub/conftest.c
5806 for i in 1 2 3 4 5 6; do
5807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5809 # Solaris 8's {/usr,}/bin/sh.
5810 touch sub/conftst$i.h
5811 done
5812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5814 case $depmode in
5815 nosideeffect)
5816 # after this tag, mechanisms are not by side-effect, so they'll
5817 # only be used when explicitly requested
5818 if test "x$enable_dependency_tracking" = xyes; then
5819 continue
5820 else
5821 break
5824 none) break ;;
5825 esac
5826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5827 # mode. It turns out that the SunPro C++ compiler does not properly
5828 # handle `-M -o', and we need to detect this.
5829 if depmode=$depmode \
5830 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5832 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5833 >/dev/null 2>conftest.err &&
5834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5836 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5838 # icc doesn't choke on unknown options, it will just issue warnings
5839 # or remarks (even with -Werror). So we grep stderr for any message
5840 # that says an option was ignored or not supported.
5841 # When given -MP, icc 7.0 and 7.1 complain thusly:
5842 # icc: Command line warning: ignoring option '-M'; no argument required
5843 # The diagnosis changed in icc 8.0:
5844 # icc: Command line remark: option '-MP' not supported
5845 if (grep 'ignoring option' conftest.err ||
5846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5847 am_cv_CXX_dependencies_compiler_type=$depmode
5848 break
5851 done
5853 cd ..
5854 rm -rf conftest.dir
5855 else
5856 am_cv_CXX_dependencies_compiler_type=none
5860 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5861 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5862 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5865 test "x$enable_dependency_tracking" != xno \
5866 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5867 am__fastdepCXX_TRUE=
5868 am__fastdepCXX_FALSE='#'
5869 else
5870 am__fastdepCXX_TRUE='#'
5871 am__fastdepCXX_FALSE=
5877 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5878 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5879 (test "X$CXX" != "Xg++"))) ; then
5880 ac_ext=cpp
5881 ac_cpp='$CXXCPP $CPPFLAGS'
5882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5885 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5886 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5887 if test -z "$CXXCPP"; then
5888 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5889 $as_echo_n "(cached) " >&6
5890 else
5891 # Double quotes because CXXCPP needs to be expanded
5892 for CXXCPP in "$CXX -E" "/lib/cpp"
5894 ac_preproc_ok=false
5895 for ac_cxx_preproc_warn_flag in '' yes
5897 # Use a header file that comes with gcc, so configuring glibc
5898 # with a fresh cross-compiler works.
5899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900 # <limits.h> exists even on freestanding compilers.
5901 # On the NeXT, cc -E runs the code through the compiler's parser,
5902 # not just through cpp. "Syntax error" is here to catch this case.
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 #ifdef __STDC__
5910 # include <limits.h>
5911 #else
5912 # include <assert.h>
5913 #endif
5914 Syntax error
5915 _ACEOF
5916 if { (ac_try="$ac_cpp conftest.$ac_ext"
5917 case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } >/dev/null && {
5930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5931 test ! -s conftest.err
5932 }; then
5934 else
5935 $as_echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 # Broken: fails on valid input.
5939 continue
5942 rm -f conftest.err conftest.$ac_ext
5944 # OK, works on sane cases. Now check whether nonexistent headers
5945 # can be detected and how.
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <ac_nonexistent.h>
5953 _ACEOF
5954 if { (ac_try="$ac_cpp conftest.$ac_ext"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5960 $as_echo "$ac_try_echo") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5969 test ! -s conftest.err
5970 }; then
5971 # Broken: success on invalid input.
5972 continue
5973 else
5974 $as_echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 # Passes both tests.
5978 ac_preproc_ok=:
5979 break
5982 rm -f conftest.err conftest.$ac_ext
5984 done
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.err conftest.$ac_ext
5987 if $ac_preproc_ok; then
5988 break
5991 done
5992 ac_cv_prog_CXXCPP=$CXXCPP
5995 CXXCPP=$ac_cv_prog_CXXCPP
5996 else
5997 ac_cv_prog_CXXCPP=$CXXCPP
5999 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6000 $as_echo "$CXXCPP" >&6; }
6001 ac_preproc_ok=false
6002 for ac_cxx_preproc_warn_flag in '' yes
6004 # Use a header file that comes with gcc, so configuring glibc
6005 # with a fresh cross-compiler works.
6006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6007 # <limits.h> exists even on freestanding compilers.
6008 # On the NeXT, cc -E runs the code through the compiler's parser,
6009 # not just through cpp. "Syntax error" is here to catch this case.
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #ifdef __STDC__
6017 # include <limits.h>
6018 #else
6019 # include <assert.h>
6020 #endif
6021 Syntax error
6022 _ACEOF
6023 if { (ac_try="$ac_cpp conftest.$ac_ext"
6024 case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027 esac
6028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6029 $as_echo "$ac_try_echo") >&5
6030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } >/dev/null && {
6037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6038 test ! -s conftest.err
6039 }; then
6041 else
6042 $as_echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 # Broken: fails on valid input.
6046 continue
6049 rm -f conftest.err conftest.$ac_ext
6051 # OK, works on sane cases. Now check whether nonexistent headers
6052 # can be detected and how.
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <ac_nonexistent.h>
6060 _ACEOF
6061 if { (ac_try="$ac_cpp conftest.$ac_ext"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6067 $as_echo "$ac_try_echo") >&5
6068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } >/dev/null && {
6075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6076 test ! -s conftest.err
6077 }; then
6078 # Broken: success on invalid input.
6079 continue
6080 else
6081 $as_echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 # Passes both tests.
6085 ac_preproc_ok=:
6086 break
6089 rm -f conftest.err conftest.$ac_ext
6091 done
6092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6093 rm -f conftest.err conftest.$ac_ext
6094 if $ac_preproc_ok; then
6096 else
6097 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6099 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6100 See \`config.log' for more details." >&5
6101 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6102 See \`config.log' for more details." >&2;}
6103 { (exit 1); exit 1; }; }; }
6106 ac_ext=cpp
6107 ac_cpp='$CXXCPP $CPPFLAGS'
6108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6115 ac_ext=f
6116 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6117 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6119 if test -n "$ac_tool_prefix"; then
6120 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_F77+set}" = set; then
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if test -n "$F77"; then
6130 ac_cv_prog_F77="$F77" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6143 done
6144 done
6145 IFS=$as_save_IFS
6149 F77=$ac_cv_prog_F77
6150 if test -n "$F77"; then
6151 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6152 $as_echo "$F77" >&6; }
6153 else
6154 { $as_echo "$as_me:$LINENO: result: no" >&5
6155 $as_echo "no" >&6; }
6159 test -n "$F77" && break
6160 done
6162 if test -z "$F77"; then
6163 ac_ct_F77=$F77
6164 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6166 # Extract the first word of "$ac_prog", so it can be a program name with args.
6167 set dummy $ac_prog; ac_word=$2
6168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -n "$ac_ct_F77"; then
6174 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_ac_ct_F77="$ac_prog"
6184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6187 done
6188 done
6189 IFS=$as_save_IFS
6193 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6194 if test -n "$ac_ct_F77"; then
6195 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6196 $as_echo "$ac_ct_F77" >&6; }
6197 else
6198 { $as_echo "$as_me:$LINENO: result: no" >&5
6199 $as_echo "no" >&6; }
6203 test -n "$ac_ct_F77" && break
6204 done
6206 if test "x$ac_ct_F77" = x; then
6207 F77=""
6208 else
6209 case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215 F77=$ac_ct_F77
6220 # Provide some information about the compiler.
6221 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6222 set X $ac_compile
6223 ac_compiler=$2
6224 { (ac_try="$ac_compiler --version >&5"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6230 $as_echo "$ac_try_echo") >&5
6231 (eval "$ac_compiler --version >&5") 2>&5
6232 ac_status=$?
6233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }
6235 { (ac_try="$ac_compiler -v >&5"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6241 $as_echo "$ac_try_echo") >&5
6242 (eval "$ac_compiler -v >&5") 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }
6246 { (ac_try="$ac_compiler -V >&5"
6247 case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250 esac
6251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6252 $as_echo "$ac_try_echo") >&5
6253 (eval "$ac_compiler -V >&5") 2>&5
6254 ac_status=$?
6255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }
6257 rm -f a.out
6259 # If we don't use `.F' as extension, the preprocessor is not run on the
6260 # input file. (Note that this only needs to work for GNU compilers.)
6261 ac_save_ext=$ac_ext
6262 ac_ext=F
6263 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6264 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6265 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6266 $as_echo_n "(cached) " >&6
6267 else
6268 cat >conftest.$ac_ext <<_ACEOF
6269 program main
6270 #ifndef __GNUC__
6271 choke me
6272 #endif
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_f77_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_compiler_gnu=yes
6295 else
6296 $as_echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_compiler_gnu=no
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6306 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6307 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6308 ac_ext=$ac_save_ext
6309 ac_test_FFLAGS=${FFLAGS+set}
6310 ac_save_FFLAGS=$FFLAGS
6311 FFLAGS=
6312 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6313 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6314 if test "${ac_cv_prog_f77_g+set}" = set; then
6315 $as_echo_n "(cached) " >&6
6316 else
6317 FFLAGS=-g
6318 cat >conftest.$ac_ext <<_ACEOF
6319 program main
6322 _ACEOF
6323 rm -f conftest.$ac_objext
6324 if { (ac_try="$ac_compile"
6325 case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6330 $as_echo "$ac_try_echo") >&5
6331 (eval "$ac_compile") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && {
6338 test -z "$ac_f77_werror_flag" ||
6339 test ! -s conftest.err
6340 } && test -s conftest.$ac_objext; then
6341 ac_cv_prog_f77_g=yes
6342 else
6343 $as_echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_cv_prog_f77_g=no
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6353 $as_echo "$ac_cv_prog_f77_g" >&6; }
6354 if test "$ac_test_FFLAGS" = set; then
6355 FFLAGS=$ac_save_FFLAGS
6356 elif test $ac_cv_prog_f77_g = yes; then
6357 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6358 FFLAGS="-g -O2"
6359 else
6360 FFLAGS="-g"
6362 else
6363 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6364 FFLAGS="-O2"
6365 else
6366 FFLAGS=
6370 if test $ac_compiler_gnu = yes; then
6371 G77=yes
6372 else
6373 G77=
6375 ac_ext=c
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6384 # find the maximum length of command line arguments
6385 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6386 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6387 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6388 $as_echo_n "(cached) " >&6
6389 else
6391 teststring="ABCD"
6393 case $build_os in
6394 msdosdjgpp*)
6395 # On DJGPP, this test can blow up pretty badly due to problems in libc
6396 # (any single argument exceeding 2000 bytes causes a buffer overrun
6397 # during glob expansion). Even if it were fixed, the result of this
6398 # check would be larger than it should be.
6399 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6402 gnu*)
6403 # Under GNU Hurd, this test is not required because there is
6404 # no limit to the length of command line arguments.
6405 # Libtool will interpret -1 as no limit whatsoever
6406 lt_cv_sys_max_cmd_len=-1;
6409 cygwin* | mingw*)
6410 # On Win9x/ME, this test blows up -- it succeeds, but takes
6411 # about 5 minutes as the teststring grows exponentially.
6412 # Worse, since 9x/ME are not pre-emptively multitasking,
6413 # you end up with a "frozen" computer, even though with patience
6414 # the test eventually succeeds (with a max line length of 256k).
6415 # Instead, let's just punt: use the minimum linelength reported by
6416 # all of the supported platforms: 8192 (on NT/2K/XP).
6417 lt_cv_sys_max_cmd_len=8192;
6420 amigaos*)
6421 # On AmigaOS with pdksh, this test takes hours, literally.
6422 # So we just punt and use a minimum line length of 8192.
6423 lt_cv_sys_max_cmd_len=8192;
6426 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6427 # This has been around since 386BSD, at least. Likely further.
6428 if test -x /sbin/sysctl; then
6429 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6430 elif test -x /usr/sbin/sysctl; then
6431 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6432 else
6433 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6435 # And add a safety zone
6436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6440 interix*)
6441 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6442 lt_cv_sys_max_cmd_len=196608
6445 osf*)
6446 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6447 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6448 # nice to cause kernel panics so lets avoid the loop below.
6449 # First set a reasonable default.
6450 lt_cv_sys_max_cmd_len=16384
6452 if test -x /sbin/sysconfig; then
6453 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6454 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6455 esac
6458 sco3.2v5*)
6459 lt_cv_sys_max_cmd_len=102400
6461 sysv5* | sco5v6* | sysv4.2uw2*)
6462 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6463 if test -n "$kargmax"; then
6464 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6465 else
6466 lt_cv_sys_max_cmd_len=32768
6470 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6471 if test -n "$lt_cv_sys_max_cmd_len"; then
6472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6474 else
6475 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6476 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6477 = "XX$teststring") >/dev/null 2>&1 &&
6478 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6479 lt_cv_sys_max_cmd_len=$new_result &&
6480 test $i != 17 # 1/2 MB should be enough
6482 i=`expr $i + 1`
6483 teststring=$teststring$teststring
6484 done
6485 teststring=
6486 # Add a significant safety factor because C++ compilers can tack on massive
6487 # amounts of additional arguments before passing them to the linker.
6488 # It appears as though 1/2 is a usable value.
6489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6492 esac
6496 if test -n $lt_cv_sys_max_cmd_len ; then
6497 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6498 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6499 else
6500 { $as_echo "$as_me:$LINENO: result: none" >&5
6501 $as_echo "none" >&6; }
6508 # Check for command to grab the raw symbol name followed by C symbol from nm.
6509 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6510 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6511 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6512 $as_echo_n "(cached) " >&6
6513 else
6515 # These are sane defaults that work on at least a few old systems.
6516 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6518 # Character class describing NM global symbol codes.
6519 symcode='[BCDEGRST]'
6521 # Regexp to match symbols that can be accessed directly from C.
6522 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6524 # Transform an extracted symbol line into a proper C declaration
6525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6527 # Transform an extracted symbol line into symbol name and symbol address
6528 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'"
6530 # Define system-specific variables.
6531 case $host_os in
6532 aix*)
6533 symcode='[BCDT]'
6535 cygwin* | mingw* | pw32*)
6536 symcode='[ABCDGISTW]'
6538 hpux*) # Its linker distinguishes data from code symbols
6539 if test "$host_cpu" = ia64; then
6540 symcode='[ABCDEGRST]'
6542 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6543 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'"
6545 linux* | k*bsd*-gnu)
6546 if test "$host_cpu" = ia64; then
6547 symcode='[ABCDGIRSTW]'
6548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6549 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'"
6552 irix* | nonstopux*)
6553 symcode='[BCDEGRST]'
6555 osf*)
6556 symcode='[BCDEGQRST]'
6558 solaris*)
6559 symcode='[BDRT]'
6561 sco3.2v5*)
6562 symcode='[DT]'
6564 sysv4.2uw2*)
6565 symcode='[DT]'
6567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6568 symcode='[ABDT]'
6570 sysv4)
6571 symcode='[DFNSTU]'
6573 esac
6575 # Handle CRLF in mingw tool chain
6576 opt_cr=
6577 case $build_os in
6578 mingw*)
6579 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6581 esac
6583 # If we're using GNU nm, then use its standard symbol codes.
6584 case `$NM -V 2>&1` in
6585 *GNU* | *'with BFD'*)
6586 symcode='[ABCDGIRSTW]' ;;
6587 esac
6589 # Try without a prefix undercore, then with it.
6590 for ac_symprfx in "" "_"; do
6592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6593 symxfrm="\\1 $ac_symprfx\\2 \\2"
6595 # Write the raw and C identifiers.
6596 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6598 # Check to see that the pipe works correctly.
6599 pipe_works=no
6601 rm -f conftest*
6602 cat > conftest.$ac_ext <<EOF
6603 #ifdef __cplusplus
6604 extern "C" {
6605 #endif
6606 char nm_test_var;
6607 void nm_test_func(){}
6608 #ifdef __cplusplus
6610 #endif
6611 int main(){nm_test_var='a';nm_test_func();return(0);}
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>&5
6616 ac_status=$?
6617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; then
6619 # Now try to grab the symbols.
6620 nlist=conftest.nm
6621 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6622 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6623 ac_status=$?
6624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && test -s "$nlist"; then
6626 # Try sorting and uniquifying the output.
6627 if sort "$nlist" | uniq > "$nlist"T; then
6628 mv -f "$nlist"T "$nlist"
6629 else
6630 rm -f "$nlist"T
6633 # Make sure that we snagged all the symbols we need.
6634 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6635 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6636 cat <<EOF > conftest.$ac_ext
6637 #ifdef __cplusplus
6638 extern "C" {
6639 #endif
6642 # Now generate the symbol file.
6643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6645 cat <<EOF >> conftest.$ac_ext
6646 #if defined (__STDC__) && __STDC__
6647 # define lt_ptr_t void *
6648 #else
6649 # define lt_ptr_t char *
6650 # define const
6651 #endif
6653 /* The mapping between symbol names and symbols. */
6654 const struct {
6655 const char *name;
6656 lt_ptr_t address;
6658 lt_preloaded_symbols[] =
6661 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6662 cat <<\EOF >> conftest.$ac_ext
6663 {0, (lt_ptr_t) 0}
6666 #ifdef __cplusplus
6668 #endif
6670 # Now try linking the two files.
6671 mv conftest.$ac_objext conftstm.$ac_objext
6672 lt_save_LIBS="$LIBS"
6673 lt_save_CFLAGS="$CFLAGS"
6674 LIBS="conftstm.$ac_objext"
6675 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>&5
6678 ac_status=$?
6679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6681 pipe_works=yes
6683 LIBS="$lt_save_LIBS"
6684 CFLAGS="$lt_save_CFLAGS"
6685 else
6686 echo "cannot find nm_test_func in $nlist" >&5
6688 else
6689 echo "cannot find nm_test_var in $nlist" >&5
6691 else
6692 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6694 else
6695 echo "$progname: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 rm -rf conftest* conftst*
6700 # Do not use the global_symbol_pipe unless it works.
6701 if test "$pipe_works" = yes; then
6702 break
6703 else
6704 lt_cv_sys_global_symbol_pipe=
6706 done
6710 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6711 lt_cv_sys_global_symbol_to_cdecl=
6713 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6714 { $as_echo "$as_me:$LINENO: result: failed" >&5
6715 $as_echo "failed" >&6; }
6716 else
6717 { $as_echo "$as_me:$LINENO: result: ok" >&5
6718 $as_echo "ok" >&6; }
6721 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6722 $as_echo_n "checking for objdir... " >&6; }
6723 if test "${lt_cv_objdir+set}" = set; then
6724 $as_echo_n "(cached) " >&6
6725 else
6726 rm -f .libs 2>/dev/null
6727 mkdir .libs 2>/dev/null
6728 if test -d .libs; then
6729 lt_cv_objdir=.libs
6730 else
6731 # MS-DOS does not allow filenames that begin with a dot.
6732 lt_cv_objdir=_libs
6734 rmdir .libs 2>/dev/null
6736 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6737 $as_echo "$lt_cv_objdir" >&6; }
6738 objdir=$lt_cv_objdir
6744 case $host_os in
6745 aix3*)
6746 # AIX sometimes has problems with the GCC collect2 program. For some
6747 # reason, if we set the COLLECT_NAMES environment variable, the problems
6748 # vanish in a puff of smoke.
6749 if test "X${COLLECT_NAMES+set}" != Xset; then
6750 COLLECT_NAMES=
6751 export COLLECT_NAMES
6754 esac
6756 # Sed substitution that helps us do robust quoting. It backslashifies
6757 # metacharacters that are still active within double-quoted strings.
6758 Xsed='sed -e 1s/^X//'
6759 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6761 # Same as above, but do not quote variable references.
6762 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6764 # Sed substitution to delay expansion of an escaped shell variable in a
6765 # double_quote_subst'ed string.
6766 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6768 # Sed substitution to avoid accidental globbing in evaled expressions
6769 no_glob_subst='s/\*/\\\*/g'
6771 # Constants:
6772 rm="rm -f"
6774 # Global variables:
6775 default_ofile=libtool
6776 can_build_shared=yes
6778 # All known linkers require a `.a' archive for static linking (except MSVC,
6779 # which needs '.lib').
6780 libext=a
6781 ltmain="$ac_aux_dir/ltmain.sh"
6782 ofile="$default_ofile"
6783 with_gnu_ld="$lt_cv_prog_gnu_ld"
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ar; ac_word=$2
6788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if test "${ac_cv_prog_AR+set}" = set; then
6791 $as_echo_n "(cached) " >&6
6792 else
6793 if test -n "$AR"; then
6794 ac_cv_prog_AR="$AR" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_AR="${ac_tool_prefix}ar"
6804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6807 done
6808 done
6809 IFS=$as_save_IFS
6813 AR=$ac_cv_prog_AR
6814 if test -n "$AR"; then
6815 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6816 $as_echo "$AR" >&6; }
6817 else
6818 { $as_echo "$as_me:$LINENO: result: no" >&5
6819 $as_echo "no" >&6; }
6824 if test -z "$ac_cv_prog_AR"; then
6825 ac_ct_AR=$AR
6826 # Extract the first word of "ar", so it can be a program name with args.
6827 set dummy ar; ac_word=$2
6828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6831 $as_echo_n "(cached) " >&6
6832 else
6833 if test -n "$ac_ct_AR"; then
6834 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_AR="ar"
6844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6847 done
6848 done
6849 IFS=$as_save_IFS
6853 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6854 if test -n "$ac_ct_AR"; then
6855 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6856 $as_echo "$ac_ct_AR" >&6; }
6857 else
6858 { $as_echo "$as_me:$LINENO: result: no" >&5
6859 $as_echo "no" >&6; }
6862 if test "x$ac_ct_AR" = x; then
6863 AR="false"
6864 else
6865 case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869 ac_tool_warned=yes ;;
6870 esac
6871 AR=$ac_ct_AR
6873 else
6874 AR="$ac_cv_prog_AR"
6877 if test -n "$ac_tool_prefix"; then
6878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if test "${ac_cv_prog_RANLIB+set}" = set; then
6883 $as_echo_n "(cached) " >&6
6884 else
6885 if test -n "$RANLIB"; then
6886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6899 done
6900 done
6901 IFS=$as_save_IFS
6905 RANLIB=$ac_cv_prog_RANLIB
6906 if test -n "$RANLIB"; then
6907 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6908 $as_echo "$RANLIB" >&6; }
6909 else
6910 { $as_echo "$as_me:$LINENO: result: no" >&5
6911 $as_echo "no" >&6; }
6916 if test -z "$ac_cv_prog_RANLIB"; then
6917 ac_ct_RANLIB=$RANLIB
6918 # Extract the first word of "ranlib", so it can be a program name with args.
6919 set dummy ranlib; ac_word=$2
6920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6923 $as_echo_n "(cached) " >&6
6924 else
6925 if test -n "$ac_ct_RANLIB"; then
6926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_ac_ct_RANLIB="ranlib"
6936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6939 done
6940 done
6941 IFS=$as_save_IFS
6945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6946 if test -n "$ac_ct_RANLIB"; then
6947 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6948 $as_echo "$ac_ct_RANLIB" >&6; }
6949 else
6950 { $as_echo "$as_me:$LINENO: result: no" >&5
6951 $as_echo "no" >&6; }
6954 if test "x$ac_ct_RANLIB" = x; then
6955 RANLIB=":"
6956 else
6957 case $cross_compiling:$ac_tool_warned in
6958 yes:)
6959 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6961 ac_tool_warned=yes ;;
6962 esac
6963 RANLIB=$ac_ct_RANLIB
6965 else
6966 RANLIB="$ac_cv_prog_RANLIB"
6969 if test -n "$ac_tool_prefix"; then
6970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}strip; ac_word=$2
6972 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if test "${ac_cv_prog_STRIP+set}" = set; then
6975 $as_echo_n "(cached) " >&6
6976 else
6977 if test -n "$STRIP"; then
6978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6991 done
6992 done
6993 IFS=$as_save_IFS
6997 STRIP=$ac_cv_prog_STRIP
6998 if test -n "$STRIP"; then
6999 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7000 $as_echo "$STRIP" >&6; }
7001 else
7002 { $as_echo "$as_me:$LINENO: result: no" >&5
7003 $as_echo "no" >&6; }
7008 if test -z "$ac_cv_prog_STRIP"; then
7009 ac_ct_STRIP=$STRIP
7010 # Extract the first word of "strip", so it can be a program name with args.
7011 set dummy strip; ac_word=$2
7012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$ac_ct_STRIP"; then
7018 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_ac_ct_STRIP="strip"
7028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7031 done
7032 done
7033 IFS=$as_save_IFS
7037 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7038 if test -n "$ac_ct_STRIP"; then
7039 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7040 $as_echo "$ac_ct_STRIP" >&6; }
7041 else
7042 { $as_echo "$as_me:$LINENO: result: no" >&5
7043 $as_echo "no" >&6; }
7046 if test "x$ac_ct_STRIP" = x; then
7047 STRIP=":"
7048 else
7049 case $cross_compiling:$ac_tool_warned in
7050 yes:)
7051 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053 ac_tool_warned=yes ;;
7054 esac
7055 STRIP=$ac_ct_STRIP
7057 else
7058 STRIP="$ac_cv_prog_STRIP"
7062 old_CC="$CC"
7063 old_CFLAGS="$CFLAGS"
7065 # Set sane defaults for various variables
7066 test -z "$AR" && AR=ar
7067 test -z "$AR_FLAGS" && AR_FLAGS=cru
7068 test -z "$AS" && AS=as
7069 test -z "$CC" && CC=cc
7070 test -z "$LTCC" && LTCC=$CC
7071 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7072 test -z "$DLLTOOL" && DLLTOOL=dlltool
7073 test -z "$LD" && LD=ld
7074 test -z "$LN_S" && LN_S="ln -s"
7075 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7076 test -z "$NM" && NM=nm
7077 test -z "$SED" && SED=sed
7078 test -z "$OBJDUMP" && OBJDUMP=objdump
7079 test -z "$RANLIB" && RANLIB=:
7080 test -z "$STRIP" && STRIP=:
7081 test -z "$ac_objext" && ac_objext=o
7083 # Determine commands to create old-style static archives.
7084 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7085 old_postinstall_cmds='chmod 644 $oldlib'
7086 old_postuninstall_cmds=
7088 if test -n "$RANLIB"; then
7089 case $host_os in
7090 openbsd*)
7091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7096 esac
7097 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7100 for cc_temp in $compiler""; do
7101 case $cc_temp in
7102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7104 \-*) ;;
7105 *) break;;
7106 esac
7107 done
7108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7111 # Only perform the check for file, if the check method requires it
7112 case $deplibs_check_method in
7113 file_magic*)
7114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7115 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7116 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7117 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7118 $as_echo_n "(cached) " >&6
7119 else
7120 case $MAGIC_CMD in
7121 [\\/*] | ?:[\\/]*)
7122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7125 lt_save_MAGIC_CMD="$MAGIC_CMD"
7126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7128 for ac_dir in $ac_dummy; do
7129 IFS="$lt_save_ifs"
7130 test -z "$ac_dir" && ac_dir=.
7131 if test -f $ac_dir/${ac_tool_prefix}file; then
7132 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7133 if test -n "$file_magic_test_file"; then
7134 case $deplibs_check_method in
7135 "file_magic "*)
7136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7139 $EGREP "$file_magic_regex" > /dev/null; then
7141 else
7142 cat <<EOF 1>&2
7144 *** Warning: the command libtool uses to detect shared libraries,
7145 *** $file_magic_cmd, produces output that libtool cannot recognize.
7146 *** The result is that libtool may fail to recognize shared libraries
7147 *** as such. This will affect the creation of libtool libraries that
7148 *** depend on shared libraries, but programs linked with such libtool
7149 *** libraries will work regardless of this problem. Nevertheless, you
7150 *** may want to report the problem to your system manager and/or to
7151 *** bug-libtool@gnu.org
7154 fi ;;
7155 esac
7157 break
7159 done
7160 IFS="$lt_save_ifs"
7161 MAGIC_CMD="$lt_save_MAGIC_CMD"
7163 esac
7166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7167 if test -n "$MAGIC_CMD"; then
7168 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7169 $as_echo "$MAGIC_CMD" >&6; }
7170 else
7171 { $as_echo "$as_me:$LINENO: result: no" >&5
7172 $as_echo "no" >&6; }
7175 if test -z "$lt_cv_path_MAGIC_CMD"; then
7176 if test -n "$ac_tool_prefix"; then
7177 { $as_echo "$as_me:$LINENO: checking for file" >&5
7178 $as_echo_n "checking for file... " >&6; }
7179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7180 $as_echo_n "(cached) " >&6
7181 else
7182 case $MAGIC_CMD in
7183 [\\/*] | ?:[\\/]*)
7184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7187 lt_save_MAGIC_CMD="$MAGIC_CMD"
7188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7190 for ac_dir in $ac_dummy; do
7191 IFS="$lt_save_ifs"
7192 test -z "$ac_dir" && ac_dir=.
7193 if test -f $ac_dir/file; then
7194 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7195 if test -n "$file_magic_test_file"; then
7196 case $deplibs_check_method in
7197 "file_magic "*)
7198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7201 $EGREP "$file_magic_regex" > /dev/null; then
7203 else
7204 cat <<EOF 1>&2
7206 *** Warning: the command libtool uses to detect shared libraries,
7207 *** $file_magic_cmd, produces output that libtool cannot recognize.
7208 *** The result is that libtool may fail to recognize shared libraries
7209 *** as such. This will affect the creation of libtool libraries that
7210 *** depend on shared libraries, but programs linked with such libtool
7211 *** libraries will work regardless of this problem. Nevertheless, you
7212 *** may want to report the problem to your system manager and/or to
7213 *** bug-libtool@gnu.org
7216 fi ;;
7217 esac
7219 break
7221 done
7222 IFS="$lt_save_ifs"
7223 MAGIC_CMD="$lt_save_MAGIC_CMD"
7225 esac
7228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7229 if test -n "$MAGIC_CMD"; then
7230 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7231 $as_echo "$MAGIC_CMD" >&6; }
7232 else
7233 { $as_echo "$as_me:$LINENO: result: no" >&5
7234 $as_echo "no" >&6; }
7237 else
7238 MAGIC_CMD=:
7244 esac
7247 case $host_os in
7248 rhapsody* | darwin*)
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if test -n "$DSYMUTIL"; then
7258 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7271 done
7272 done
7273 IFS=$as_save_IFS
7277 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7278 if test -n "$DSYMUTIL"; then
7279 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7280 $as_echo "$DSYMUTIL" >&6; }
7281 else
7282 { $as_echo "$as_me:$LINENO: result: no" >&5
7283 $as_echo "no" >&6; }
7288 if test -z "$ac_cv_prog_DSYMUTIL"; then
7289 ac_ct_DSYMUTIL=$DSYMUTIL
7290 # Extract the first word of "dsymutil", so it can be a program name with args.
7291 set dummy dsymutil; ac_word=$2
7292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7295 $as_echo_n "(cached) " >&6
7296 else
7297 if test -n "$ac_ct_DSYMUTIL"; then
7298 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7311 done
7312 done
7313 IFS=$as_save_IFS
7317 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7318 if test -n "$ac_ct_DSYMUTIL"; then
7319 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7320 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7321 else
7322 { $as_echo "$as_me:$LINENO: result: no" >&5
7323 $as_echo "no" >&6; }
7326 if test "x$ac_ct_DSYMUTIL" = x; then
7327 DSYMUTIL=":"
7328 else
7329 case $cross_compiling:$ac_tool_warned in
7330 yes:)
7331 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7333 ac_tool_warned=yes ;;
7334 esac
7335 DSYMUTIL=$ac_ct_DSYMUTIL
7337 else
7338 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7347 $as_echo_n "(cached) " >&6
7348 else
7349 if test -n "$NMEDIT"; then
7350 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7363 done
7364 done
7365 IFS=$as_save_IFS
7369 NMEDIT=$ac_cv_prog_NMEDIT
7370 if test -n "$NMEDIT"; then
7371 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7372 $as_echo "$NMEDIT" >&6; }
7373 else
7374 { $as_echo "$as_me:$LINENO: result: no" >&5
7375 $as_echo "no" >&6; }
7380 if test -z "$ac_cv_prog_NMEDIT"; then
7381 ac_ct_NMEDIT=$NMEDIT
7382 # Extract the first word of "nmedit", so it can be a program name with args.
7383 set dummy nmedit; ac_word=$2
7384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7388 else
7389 if test -n "$ac_ct_NMEDIT"; then
7390 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7403 done
7404 done
7405 IFS=$as_save_IFS
7409 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7410 if test -n "$ac_ct_NMEDIT"; then
7411 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7412 $as_echo "$ac_ct_NMEDIT" >&6; }
7413 else
7414 { $as_echo "$as_me:$LINENO: result: no" >&5
7415 $as_echo "no" >&6; }
7418 if test "x$ac_ct_NMEDIT" = x; then
7419 NMEDIT=":"
7420 else
7421 case $cross_compiling:$ac_tool_warned in
7422 yes:)
7423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7426 esac
7427 NMEDIT=$ac_ct_NMEDIT
7429 else
7430 NMEDIT="$ac_cv_prog_NMEDIT"
7434 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7435 $as_echo_n "checking for -single_module linker flag... " >&6; }
7436 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7437 $as_echo_n "(cached) " >&6
7438 else
7439 lt_cv_apple_cc_single_mod=no
7440 if test -z "${LT_MULTI_MODULE}"; then
7441 # By default we will add the -single_module flag. You can override
7442 # by either setting the environment variable LT_MULTI_MODULE
7443 # non-empty at configure time, or by adding -multi_module to the
7444 # link flags.
7445 echo "int foo(void){return 1;}" > conftest.c
7446 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7447 -dynamiclib ${wl}-single_module conftest.c
7448 if test -f libconftest.dylib; then
7449 lt_cv_apple_cc_single_mod=yes
7450 rm -rf libconftest.dylib*
7452 rm conftest.c
7455 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7456 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7457 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7458 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7459 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7461 else
7462 lt_cv_ld_exported_symbols_list=no
7463 save_LDFLAGS=$LDFLAGS
7464 echo "_main" > conftest.sym
7465 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7466 cat >conftest.$ac_ext <<_ACEOF
7467 /* confdefs.h. */
7468 _ACEOF
7469 cat confdefs.h >>conftest.$ac_ext
7470 cat >>conftest.$ac_ext <<_ACEOF
7471 /* end confdefs.h. */
7474 main ()
7478 return 0;
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (ac_try="$ac_link"
7483 case "(($ac_try" in
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7486 esac
7487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7488 $as_echo "$ac_try_echo") >&5
7489 (eval "$ac_link") 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } && {
7496 test -z "$ac_c_werror_flag" ||
7497 test ! -s conftest.err
7498 } && test -s conftest$ac_exeext && {
7499 test "$cross_compiling" = yes ||
7500 $as_test_x conftest$ac_exeext
7501 }; then
7502 lt_cv_ld_exported_symbols_list=yes
7503 else
7504 $as_echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7507 lt_cv_ld_exported_symbols_list=no
7510 rm -rf conftest.dSYM
7511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7512 conftest$ac_exeext conftest.$ac_ext
7513 LDFLAGS="$save_LDFLAGS"
7516 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7517 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7518 case $host_os in
7519 rhapsody* | darwin1.[0123])
7520 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7521 darwin1.*)
7522 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7523 darwin*)
7524 # if running on 10.5 or later, the deployment target defaults
7525 # to the OS version, if on x86, and 10.4, the deployment
7526 # target defaults to 10.4. Don't you love it?
7527 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7528 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7529 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7530 10.[012]*)
7531 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7532 10.*)
7533 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7534 esac
7536 esac
7537 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7538 _lt_dar_single_mod='$single_module'
7540 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7541 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7542 else
7543 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7545 if test "$DSYMUTIL" != ":"; then
7546 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7547 else
7548 _lt_dsymutil=
7551 esac
7554 enable_dlopen=no
7555 enable_win32_dll=no
7557 # Check whether --enable-libtool-lock was given.
7558 if test "${enable_libtool_lock+set}" = set; then
7559 enableval=$enable_libtool_lock;
7562 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7565 # Check whether --with-pic was given.
7566 if test "${with_pic+set}" = set; then
7567 withval=$with_pic; pic_mode="$withval"
7568 else
7569 pic_mode=default
7572 test -z "$pic_mode" && pic_mode=default
7574 # Use C for the default configuration in the libtool script
7575 tagname=
7576 lt_save_CC="$CC"
7577 ac_ext=c
7578 ac_cpp='$CPP $CPPFLAGS'
7579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584 # Source file extension for C test sources.
7585 ac_ext=c
7587 # Object file extension for compiled C test sources.
7588 objext=o
7589 objext=$objext
7591 # Code to be used in simple compile tests
7592 lt_simple_compile_test_code="int some_variable = 0;"
7594 # Code to be used in simple link tests
7595 lt_simple_link_test_code='int main(){return(0);}'
7598 # If no C compiler was specified, use CC.
7599 LTCC=${LTCC-"$CC"}
7601 # If no C compiler flags were specified, use CFLAGS.
7602 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7604 # Allow CC to be a program name with arguments.
7605 compiler=$CC
7608 # save warnings/boilerplate of simple test code
7609 ac_outfile=conftest.$ac_objext
7610 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7612 _lt_compiler_boilerplate=`cat conftest.err`
7613 $rm conftest*
7615 ac_outfile=conftest.$ac_objext
7616 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7618 _lt_linker_boilerplate=`cat conftest.err`
7619 $rm -r conftest*
7623 lt_prog_compiler_no_builtin_flag=
7625 if test "$GCC" = yes; then
7626 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7629 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7630 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7631 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7632 $as_echo_n "(cached) " >&6
7633 else
7634 lt_cv_prog_compiler_rtti_exceptions=no
7635 ac_outfile=conftest.$ac_objext
7636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7637 lt_compiler_flag="-fno-rtti -fno-exceptions"
7638 # Insert the option either (1) after the last *FLAGS variable, or
7639 # (2) before a word containing "conftest.", or (3) at the end.
7640 # Note that $ac_compile itself does not contain backslashes and begins
7641 # with a dollar sign (not a hyphen), so the echo should work correctly.
7642 # The option is referenced via a variable to avoid confusing sed.
7643 lt_compile=`echo "$ac_compile" | $SED \
7644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7646 -e 's:$: $lt_compiler_flag:'`
7647 (eval echo "\"\$as_me:7647: $lt_compile\"" >&5)
7648 (eval "$lt_compile" 2>conftest.err)
7649 ac_status=$?
7650 cat conftest.err >&5
7651 echo "$as_me:7651: \$? = $ac_status" >&5
7652 if (exit $ac_status) && test -s "$ac_outfile"; then
7653 # The compiler can only warn and ignore the option if not recognized
7654 # So say no if there are warnings other than the usual output.
7655 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7658 lt_cv_prog_compiler_rtti_exceptions=yes
7661 $rm conftest*
7664 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7665 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7667 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7668 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7669 else
7675 lt_prog_compiler_wl=
7676 lt_prog_compiler_pic=
7677 lt_prog_compiler_static=
7679 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7682 if test "$GCC" = yes; then
7683 lt_prog_compiler_wl='-Wl,'
7684 lt_prog_compiler_static='-static'
7686 case $host_os in
7687 aix*)
7688 # All AIX code is PIC.
7689 if test "$host_cpu" = ia64; then
7690 # AIX 5 now supports IA64 processor
7691 lt_prog_compiler_static='-Bstatic'
7695 amigaos*)
7696 # FIXME: we need at least 68020 code to build shared libraries, but
7697 # adding the `-m68020' flag to GCC prevents building anything better,
7698 # like `-m68040'.
7699 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7702 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7703 # PIC is the default for these OSes.
7706 mingw* | cygwin* | pw32* | os2*)
7707 # This hack is so that the source file can tell whether it is being
7708 # built for inclusion in a dll (and should export symbols for example).
7709 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7710 # (--disable-auto-import) libraries
7711 lt_prog_compiler_pic='-DDLL_EXPORT'
7714 darwin* | rhapsody*)
7715 # PIC is the default on this platform
7716 # Common symbols not allowed in MH_DYLIB files
7717 lt_prog_compiler_pic='-fno-common'
7720 interix[3-9]*)
7721 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7722 # Instead, we relocate shared libraries at runtime.
7725 msdosdjgpp*)
7726 # Just because we use GCC doesn't mean we suddenly get shared libraries
7727 # on systems that don't support them.
7728 lt_prog_compiler_can_build_shared=no
7729 enable_shared=no
7732 sysv4*MP*)
7733 if test -d /usr/nec; then
7734 lt_prog_compiler_pic=-Kconform_pic
7738 hpux*)
7739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7740 # not for PA HP-UX.
7741 case $host_cpu in
7742 hppa*64*|ia64*)
7743 # +Z the default
7746 lt_prog_compiler_pic='-fPIC'
7748 esac
7752 lt_prog_compiler_pic='-fPIC'
7754 esac
7755 else
7756 # PORTME Check for flag to pass linker flags through the system compiler.
7757 case $host_os in
7758 aix*)
7759 lt_prog_compiler_wl='-Wl,'
7760 if test "$host_cpu" = ia64; then
7761 # AIX 5 now supports IA64 processor
7762 lt_prog_compiler_static='-Bstatic'
7763 else
7764 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7767 darwin*)
7768 # PIC is the default on this platform
7769 # Common symbols not allowed in MH_DYLIB files
7770 case $cc_basename in
7771 xlc*)
7772 lt_prog_compiler_pic='-qnocommon'
7773 lt_prog_compiler_wl='-Wl,'
7775 esac
7778 mingw* | cygwin* | pw32* | os2*)
7779 # This hack is so that the source file can tell whether it is being
7780 # built for inclusion in a dll (and should export symbols for example).
7781 lt_prog_compiler_pic='-DDLL_EXPORT'
7784 hpux9* | hpux10* | hpux11*)
7785 lt_prog_compiler_wl='-Wl,'
7786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7787 # not for PA HP-UX.
7788 case $host_cpu in
7789 hppa*64*|ia64*)
7790 # +Z the default
7793 lt_prog_compiler_pic='+Z'
7795 esac
7796 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7797 lt_prog_compiler_static='${wl}-a ${wl}archive'
7800 irix5* | irix6* | nonstopux*)
7801 lt_prog_compiler_wl='-Wl,'
7802 # PIC (with -KPIC) is the default.
7803 lt_prog_compiler_static='-non_shared'
7806 newsos6)
7807 lt_prog_compiler_pic='-KPIC'
7808 lt_prog_compiler_static='-Bstatic'
7811 linux* | k*bsd*-gnu)
7812 case $cc_basename in
7813 icc* | ecc*)
7814 lt_prog_compiler_wl='-Wl,'
7815 lt_prog_compiler_pic='-KPIC'
7816 lt_prog_compiler_static='-static'
7818 pgcc* | pgf77* | pgf90* | pgf95*)
7819 # Portland Group compilers (*not* the Pentium gcc compiler,
7820 # which looks to be a dead project)
7821 lt_prog_compiler_wl='-Wl,'
7822 lt_prog_compiler_pic='-fpic'
7823 lt_prog_compiler_static='-Bstatic'
7825 ccc*)
7826 lt_prog_compiler_wl='-Wl,'
7827 # All Alpha code is PIC.
7828 lt_prog_compiler_static='-non_shared'
7831 case `$CC -V 2>&1 | sed 5q` in
7832 *Sun\ C*)
7833 # Sun C 5.9
7834 lt_prog_compiler_pic='-KPIC'
7835 lt_prog_compiler_static='-Bstatic'
7836 lt_prog_compiler_wl='-Wl,'
7838 *Sun\ F*)
7839 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-Bstatic'
7842 lt_prog_compiler_wl=''
7844 esac
7846 esac
7849 osf3* | osf4* | osf5*)
7850 lt_prog_compiler_wl='-Wl,'
7851 # All OSF/1 code is PIC.
7852 lt_prog_compiler_static='-non_shared'
7855 rdos*)
7856 lt_prog_compiler_static='-non_shared'
7859 solaris*)
7860 lt_prog_compiler_pic='-KPIC'
7861 lt_prog_compiler_static='-Bstatic'
7862 case $cc_basename in
7863 f77* | f90* | f95*)
7864 lt_prog_compiler_wl='-Qoption ld ';;
7866 lt_prog_compiler_wl='-Wl,';;
7867 esac
7870 sunos4*)
7871 lt_prog_compiler_wl='-Qoption ld '
7872 lt_prog_compiler_pic='-PIC'
7873 lt_prog_compiler_static='-Bstatic'
7876 sysv4 | sysv4.2uw2* | sysv4.3*)
7877 lt_prog_compiler_wl='-Wl,'
7878 lt_prog_compiler_pic='-KPIC'
7879 lt_prog_compiler_static='-Bstatic'
7882 sysv4*MP*)
7883 if test -d /usr/nec ;then
7884 lt_prog_compiler_pic='-Kconform_pic'
7885 lt_prog_compiler_static='-Bstatic'
7889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7890 lt_prog_compiler_wl='-Wl,'
7891 lt_prog_compiler_pic='-KPIC'
7892 lt_prog_compiler_static='-Bstatic'
7895 unicos*)
7896 lt_prog_compiler_wl='-Wl,'
7897 lt_prog_compiler_can_build_shared=no
7900 uts4*)
7901 lt_prog_compiler_pic='-pic'
7902 lt_prog_compiler_static='-Bstatic'
7906 lt_prog_compiler_can_build_shared=no
7908 esac
7911 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7912 $as_echo "$lt_prog_compiler_pic" >&6; }
7915 # Check to make sure the PIC flag actually works.
7917 if test -n "$lt_prog_compiler_pic"; then
7919 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7920 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7921 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7922 $as_echo_n "(cached) " >&6
7923 else
7924 lt_cv_prog_compiler_pic_works=no
7925 ac_outfile=conftest.$ac_objext
7926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7928 # Insert the option either (1) after the last *FLAGS variable, or
7929 # (2) before a word containing "conftest.", or (3) at the end.
7930 # Note that $ac_compile itself does not contain backslashes and begins
7931 # with a dollar sign (not a hyphen), so the echo should work correctly.
7932 # The option is referenced via a variable to avoid confusing sed.
7933 lt_compile=`echo "$ac_compile" | $SED \
7934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7936 -e 's:$: $lt_compiler_flag:'`
7937 (eval echo "\"\$as_me:7937: $lt_compile\"" >&5)
7938 (eval "$lt_compile" 2>conftest.err)
7939 ac_status=$?
7940 cat conftest.err >&5
7941 echo "$as_me:7941: \$? = $ac_status" >&5
7942 if (exit $ac_status) && test -s "$ac_outfile"; then
7943 # The compiler can only warn and ignore the option if not recognized
7944 # So say no if there are warnings other than the usual output.
7945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7948 lt_cv_prog_compiler_pic_works=yes
7951 $rm conftest*
7954 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7955 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7957 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7958 case $lt_prog_compiler_pic in
7959 "" | " "*) ;;
7960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7961 esac
7962 else
7963 lt_prog_compiler_pic=
7964 lt_prog_compiler_can_build_shared=no
7968 case $host_os in
7969 # For platforms which do not support PIC, -DPIC is meaningless:
7970 *djgpp*)
7971 lt_prog_compiler_pic=
7974 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7976 esac
7979 # Check to make sure the static flag actually works.
7981 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7982 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7983 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7984 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7985 $as_echo_n "(cached) " >&6
7986 else
7987 lt_cv_prog_compiler_static_works=no
7988 save_LDFLAGS="$LDFLAGS"
7989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7992 # The linker can only warn and ignore the option if not recognized
7993 # So say no if there are warnings
7994 if test -s conftest.err; then
7995 # Append any errors to the config.log.
7996 cat conftest.err 1>&5
7997 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7999 if diff conftest.exp conftest.er2 >/dev/null; then
8000 lt_cv_prog_compiler_static_works=yes
8002 else
8003 lt_cv_prog_compiler_static_works=yes
8006 $rm -r conftest*
8007 LDFLAGS="$save_LDFLAGS"
8010 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8011 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8013 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8015 else
8016 lt_prog_compiler_static=
8020 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8022 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8023 $as_echo_n "(cached) " >&6
8024 else
8025 lt_cv_prog_compiler_c_o=no
8026 $rm -r conftest 2>/dev/null
8027 mkdir conftest
8028 cd conftest
8029 mkdir out
8030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8032 lt_compiler_flag="-o out/conftest2.$ac_objext"
8033 # Insert the option either (1) after the last *FLAGS variable, or
8034 # (2) before a word containing "conftest.", or (3) at the end.
8035 # Note that $ac_compile itself does not contain backslashes and begins
8036 # with a dollar sign (not a hyphen), so the echo should work correctly.
8037 lt_compile=`echo "$ac_compile" | $SED \
8038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8040 -e 's:$: $lt_compiler_flag:'`
8041 (eval echo "\"\$as_me:8041: $lt_compile\"" >&5)
8042 (eval "$lt_compile" 2>out/conftest.err)
8043 ac_status=$?
8044 cat out/conftest.err >&5
8045 echo "$as_me:8045: \$? = $ac_status" >&5
8046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8047 then
8048 # The compiler can only warn and ignore the option if not recognized
8049 # So say no if there are warnings
8050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8053 lt_cv_prog_compiler_c_o=yes
8056 chmod u+w . 2>&5
8057 $rm conftest*
8058 # SGI C++ compiler will create directory out/ii_files/ for
8059 # template instantiation
8060 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8061 $rm out/* && rmdir out
8062 cd ..
8063 rmdir conftest
8064 $rm conftest*
8067 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8071 hard_links="nottested"
8072 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8073 # do not overwrite the value of need_locks provided by the user
8074 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8075 $as_echo_n "checking if we can lock with hard links... " >&6; }
8076 hard_links=yes
8077 $rm conftest*
8078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8079 touch conftest.a
8080 ln conftest.a conftest.b 2>&5 || hard_links=no
8081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8082 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8083 $as_echo "$hard_links" >&6; }
8084 if test "$hard_links" = no; then
8085 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8086 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8087 need_locks=warn
8089 else
8090 need_locks=no
8093 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8094 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8096 runpath_var=
8097 allow_undefined_flag=
8098 enable_shared_with_static_runtimes=no
8099 archive_cmds=
8100 archive_expsym_cmds=
8101 old_archive_From_new_cmds=
8102 old_archive_from_expsyms_cmds=
8103 export_dynamic_flag_spec=
8104 whole_archive_flag_spec=
8105 thread_safe_flag_spec=
8106 hardcode_libdir_flag_spec=
8107 hardcode_libdir_flag_spec_ld=
8108 hardcode_libdir_separator=
8109 hardcode_direct=no
8110 hardcode_minus_L=no
8111 hardcode_shlibpath_var=unsupported
8112 link_all_deplibs=unknown
8113 hardcode_automatic=no
8114 module_cmds=
8115 module_expsym_cmds=
8116 always_export_symbols=no
8117 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8118 # include_expsyms should be a list of space-separated symbols to be *always*
8119 # included in the symbol list
8120 include_expsyms=
8121 # exclude_expsyms can be an extended regexp of symbols to exclude
8122 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8124 # as well as any symbol that contains `d'.
8125 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8127 # platforms (ab)use it in PIC code, but their linkers get confused if
8128 # the symbol is explicitly referenced. Since portable code cannot
8129 # rely on this symbol name, it's probably fine to never include it in
8130 # preloaded symbol tables.
8131 # Exclude shared library initialization/finalization symbols.
8132 extract_expsyms_cmds=
8133 # Just being paranoid about ensuring that cc_basename is set.
8134 for cc_temp in $compiler""; do
8135 case $cc_temp in
8136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8138 \-*) ;;
8139 *) break;;
8140 esac
8141 done
8142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8144 case $host_os in
8145 cygwin* | mingw* | pw32*)
8146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8147 # When not using gcc, we currently assume that we are using
8148 # Microsoft Visual C++.
8149 if test "$GCC" != yes; then
8150 with_gnu_ld=no
8153 interix*)
8154 # we just hope/assume this is gcc and not c89 (= MSVC++)
8155 with_gnu_ld=yes
8157 openbsd*)
8158 with_gnu_ld=no
8160 esac
8162 ld_shlibs=yes
8163 if test "$with_gnu_ld" = yes; then
8164 # If archive_cmds runs LD, not CC, wlarc should be empty
8165 wlarc='${wl}'
8167 # Set some defaults for GNU ld with shared library support. These
8168 # are reset later if shared libraries are not supported. Putting them
8169 # here allows them to be overridden if necessary.
8170 runpath_var=LD_RUN_PATH
8171 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8172 export_dynamic_flag_spec='${wl}--export-dynamic'
8173 # ancient GNU ld didn't support --whole-archive et. al.
8174 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8175 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8176 else
8177 whole_archive_flag_spec=
8179 supports_anon_versioning=no
8180 case `$LD -v 2>/dev/null` in
8181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8184 *\ 2.11.*) ;; # other 2.11 versions
8185 *) supports_anon_versioning=yes ;;
8186 esac
8188 # See if GNU ld supports shared libraries.
8189 case $host_os in
8190 aix[3-9]*)
8191 # On AIX/PPC, the GNU linker is very broken
8192 if test "$host_cpu" != ia64; then
8193 ld_shlibs=no
8194 cat <<EOF 1>&2
8196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8197 *** to be unable to reliably create shared libraries on AIX.
8198 *** Therefore, libtool is disabling shared libraries support. If you
8199 *** really care for shared libraries, you may want to modify your PATH
8200 *** so that a non-GNU linker is found, and then restart.
8206 amigaos*)
8207 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)'
8208 hardcode_libdir_flag_spec='-L$libdir'
8209 hardcode_minus_L=yes
8211 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8212 # that the semantics of dynamic libraries on AmigaOS, at least up
8213 # to version 4, is to share data among multiple programs linked
8214 # with the same dynamic library. Since this doesn't match the
8215 # behavior of shared libraries on other platforms, we can't use
8216 # them.
8217 ld_shlibs=no
8220 beos*)
8221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222 allow_undefined_flag=unsupported
8223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8224 # support --undefined. This deserves some investigation. FIXME
8225 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226 else
8227 ld_shlibs=no
8231 cygwin* | mingw* | pw32*)
8232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8233 # as there is no search path for DLLs.
8234 hardcode_libdir_flag_spec='-L$libdir'
8235 allow_undefined_flag=unsupported
8236 always_export_symbols=no
8237 enable_shared_with_static_runtimes=yes
8238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8240 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8242 # If the export-symbols file already is a .def file (1st line
8243 # is EXPORTS), use it as is; otherwise, prepend...
8244 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8245 cp $export_symbols $output_objdir/$soname.def;
8246 else
8247 echo EXPORTS > $output_objdir/$soname.def;
8248 cat $export_symbols >> $output_objdir/$soname.def;
8250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8251 else
8252 ld_shlibs=no
8256 interix[3-9]*)
8257 hardcode_direct=no
8258 hardcode_shlibpath_var=no
8259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8260 export_dynamic_flag_spec='${wl}-E'
8261 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8262 # Instead, shared libraries are loaded at an image base (0x10000000 by
8263 # default) and relocated if they conflict, which is a slow very memory
8264 # consuming and fragmenting process. To avoid this, we pick a random,
8265 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8266 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8267 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8268 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'
8271 gnu* | linux* | k*bsd*-gnu)
8272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273 tmp_addflag=
8274 case $cc_basename,$host_cpu in
8275 pgcc*) # Portland Group C compiler
8276 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'
8277 tmp_addflag=' $pic_flag'
8279 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8280 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'
8281 tmp_addflag=' $pic_flag -Mnomain' ;;
8282 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8283 tmp_addflag=' -i_dynamic' ;;
8284 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8285 tmp_addflag=' -i_dynamic -nofor_main' ;;
8286 ifc* | ifort*) # Intel Fortran compiler
8287 tmp_addflag=' -nofor_main' ;;
8288 esac
8289 case `$CC -V 2>&1 | sed 5q` in
8290 *Sun\ C*) # Sun C 5.9
8291 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8292 tmp_sharedflag='-G' ;;
8293 *Sun\ F*) # Sun Fortran 8.3
8294 tmp_sharedflag='-G' ;;
8296 tmp_sharedflag='-shared' ;;
8297 esac
8298 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8300 if test $supports_anon_versioning = yes; then
8301 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8303 $echo "local: *; };" >> $output_objdir/$libname.ver~
8304 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8306 else
8307 ld_shlibs=no
8311 netbsd*)
8312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8314 wlarc=
8315 else
8316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321 solaris*)
8322 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8323 ld_shlibs=no
8324 cat <<EOF 1>&2
8326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8327 *** create shared libraries on Solaris systems. Therefore, libtool
8328 *** is disabling shared libraries support. We urge you to upgrade GNU
8329 *** binutils to release 2.9.1 or newer. Another option is to modify
8330 *** your PATH or compiler configuration so that the native linker is
8331 *** used, and then restart.
8334 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8337 else
8338 ld_shlibs=no
8342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8343 case `$LD -v 2>&1` in
8344 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8345 ld_shlibs=no
8346 cat <<_LT_EOF 1>&2
8348 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8349 *** reliably create shared libraries on SCO systems. Therefore, libtool
8350 *** is disabling shared libraries support. We urge you to upgrade GNU
8351 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8352 *** your PATH or compiler configuration so that the native linker is
8353 *** used, and then restart.
8355 _LT_EOF
8358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8359 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8361 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8362 else
8363 ld_shlibs=no
8366 esac
8369 sunos4*)
8370 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8371 wlarc=
8372 hardcode_direct=yes
8373 hardcode_shlibpath_var=no
8377 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8380 else
8381 ld_shlibs=no
8384 esac
8386 if test "$ld_shlibs" = no; then
8387 runpath_var=
8388 hardcode_libdir_flag_spec=
8389 export_dynamic_flag_spec=
8390 whole_archive_flag_spec=
8392 else
8393 # PORTME fill in a description of your system's linker (not GNU ld)
8394 case $host_os in
8395 aix3*)
8396 allow_undefined_flag=unsupported
8397 always_export_symbols=yes
8398 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'
8399 # Note: this linker hardcodes the directories in LIBPATH if there
8400 # are no directories specified by -L.
8401 hardcode_minus_L=yes
8402 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8403 # Neither direct hardcoding nor static linking is supported with a
8404 # broken collect2.
8405 hardcode_direct=unsupported
8409 aix[4-9]*)
8410 if test "$host_cpu" = ia64; then
8411 # On IA64, the linker does run time linking by default, so we don't
8412 # have to do anything special.
8413 aix_use_runtimelinking=no
8414 exp_sym_flag='-Bexport'
8415 no_entry_flag=""
8416 else
8417 # If we're using GNU nm, then we don't want the "-C" option.
8418 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8419 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8420 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'
8421 else
8422 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'
8424 aix_use_runtimelinking=no
8426 # Test if we are trying to use run time linking or normal
8427 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8428 # need to do runtime linking.
8429 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8430 for ld_flag in $LDFLAGS; do
8431 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8432 aix_use_runtimelinking=yes
8433 break
8435 done
8437 esac
8439 exp_sym_flag='-bexport'
8440 no_entry_flag='-bnoentry'
8443 # When large executables or shared objects are built, AIX ld can
8444 # have problems creating the table of contents. If linking a library
8445 # or program results in "error TOC overflow" add -mminimal-toc to
8446 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8447 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8449 archive_cmds=''
8450 hardcode_direct=yes
8451 hardcode_libdir_separator=':'
8452 link_all_deplibs=yes
8454 if test "$GCC" = yes; then
8455 case $host_os in aix4.[012]|aix4.[012].*)
8456 # We only want to do this on AIX 4.2 and lower, the check
8457 # below for broken collect2 doesn't work under 4.3+
8458 collect2name=`${CC} -print-prog-name=collect2`
8459 if test -f "$collect2name" && \
8460 strings "$collect2name" | grep resolve_lib_name >/dev/null
8461 then
8462 # We have reworked collect2
8464 else
8465 # We have old collect2
8466 hardcode_direct=unsupported
8467 # It fails to find uninstalled libraries when the uninstalled
8468 # path is not listed in the libpath. Setting hardcode_minus_L
8469 # to unsupported forces relinking
8470 hardcode_minus_L=yes
8471 hardcode_libdir_flag_spec='-L$libdir'
8472 hardcode_libdir_separator=
8475 esac
8476 shared_flag='-shared'
8477 if test "$aix_use_runtimelinking" = yes; then
8478 shared_flag="$shared_flag "'${wl}-G'
8480 else
8481 # not using gcc
8482 if test "$host_cpu" = ia64; then
8483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8484 # chokes on -Wl,-G. The following line is correct:
8485 shared_flag='-G'
8486 else
8487 if test "$aix_use_runtimelinking" = yes; then
8488 shared_flag='${wl}-G'
8489 else
8490 shared_flag='${wl}-bM:SRE'
8495 # It seems that -bexpall does not export symbols beginning with
8496 # underscore (_), so it is better to generate a list of symbols to export.
8497 always_export_symbols=yes
8498 if test "$aix_use_runtimelinking" = yes; then
8499 # Warning - without using the other runtime loading flags (-brtl),
8500 # -berok will link without error, but may produce a broken library.
8501 allow_undefined_flag='-berok'
8502 # Determine the default libpath from the value encoded in an empty executable.
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8511 main ()
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (ac_try="$ac_link"
8520 case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523 esac
8524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8525 $as_echo "$ac_try_echo") >&5
8526 (eval "$ac_link") 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest$ac_exeext && {
8536 test "$cross_compiling" = yes ||
8537 $as_test_x conftest$ac_exeext
8538 }; then
8540 lt_aix_libpath_sed='
8541 /Import File Strings/,/^$/ {
8542 /^0/ {
8543 s/^0 *\(.*\)$/\1/
8547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8548 # Check for a 64-bit object if we didn't find anything.
8549 if test -z "$aix_libpath"; then
8550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8552 else
8553 $as_echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8559 rm -rf conftest.dSYM
8560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8561 conftest$ac_exeext conftest.$ac_ext
8562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8565 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"
8566 else
8567 if test "$host_cpu" = ia64; then
8568 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8569 allow_undefined_flag="-z nodefs"
8570 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"
8571 else
8572 # Determine the default libpath from the value encoded in an empty executable.
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8581 main ()
8585 return 0;
8587 _ACEOF
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (ac_try="$ac_link"
8590 case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593 esac
8594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8595 $as_echo "$ac_try_echo") >&5
8596 (eval "$ac_link") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest$ac_exeext && {
8606 test "$cross_compiling" = yes ||
8607 $as_test_x conftest$ac_exeext
8608 }; then
8610 lt_aix_libpath_sed='
8611 /Import File Strings/,/^$/ {
8612 /^0/ {
8613 s/^0 *\(.*\)$/\1/
8617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618 # Check for a 64-bit object if we didn't find anything.
8619 if test -z "$aix_libpath"; then
8620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8622 else
8623 $as_echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8629 rm -rf conftest.dSYM
8630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8631 conftest$ac_exeext conftest.$ac_ext
8632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8635 # Warning - without using the other run time loading flags,
8636 # -berok will link without error, but may produce a broken library.
8637 no_undefined_flag=' ${wl}-bernotok'
8638 allow_undefined_flag=' ${wl}-berok'
8639 # Exported symbols can be pulled into shared objects from archives
8640 whole_archive_flag_spec='$convenience'
8641 archive_cmds_need_lc=yes
8642 # This is similar to how AIX traditionally builds its shared libraries.
8643 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'
8648 amigaos*)
8649 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)'
8650 hardcode_libdir_flag_spec='-L$libdir'
8651 hardcode_minus_L=yes
8652 # see comment about different semantics on the GNU ld section
8653 ld_shlibs=no
8656 bsdi[45]*)
8657 export_dynamic_flag_spec=-rdynamic
8660 cygwin* | mingw* | pw32*)
8661 # When not using gcc, we currently assume that we are using
8662 # Microsoft Visual C++.
8663 # hardcode_libdir_flag_spec is actually meaningless, as there is
8664 # no search path for DLLs.
8665 hardcode_libdir_flag_spec=' '
8666 allow_undefined_flag=unsupported
8667 # Tell ltmain to make .lib files, not .a files.
8668 libext=lib
8669 # Tell ltmain to make .dll files, not .so files.
8670 shrext_cmds=".dll"
8671 # FIXME: Setting linknames here is a bad hack.
8672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8673 # The linker will automatically build a .lib file if we build a DLL.
8674 old_archive_From_new_cmds='true'
8675 # FIXME: Should let the user specify the lib program.
8676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8677 fix_srcfile_path='`cygpath -w "$srcfile"`'
8678 enable_shared_with_static_runtimes=yes
8681 darwin* | rhapsody*)
8682 allow_undefined_flag="$_lt_dar_allow_undefined"
8683 archive_cmds_need_lc=no
8684 hardcode_direct=no
8685 hardcode_automatic=yes
8686 hardcode_shlibpath_var=unsupported
8687 whole_archive_flag_spec=''
8688 link_all_deplibs=yes
8689 if test "$GCC" = yes ; then
8690 output_verbose_link_cmd='echo'
8691 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8692 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8693 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8694 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8695 else
8696 case $cc_basename in
8697 xlc*)
8698 output_verbose_link_cmd='echo'
8699 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8700 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8701 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8702 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8703 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}'
8706 ld_shlibs=no
8708 esac
8712 dgux*)
8713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8714 hardcode_libdir_flag_spec='-L$libdir'
8715 hardcode_shlibpath_var=no
8718 freebsd1*)
8719 ld_shlibs=no
8722 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8723 # support. Future versions do this automatically, but an explicit c++rt0.o
8724 # does not break anything, and helps significantly (at the cost of a little
8725 # extra space).
8726 freebsd2.2*)
8727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8728 hardcode_libdir_flag_spec='-R$libdir'
8729 hardcode_direct=yes
8730 hardcode_shlibpath_var=no
8733 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8734 freebsd2*)
8735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8736 hardcode_direct=yes
8737 hardcode_minus_L=yes
8738 hardcode_shlibpath_var=no
8741 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8742 freebsd* | dragonfly*)
8743 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8744 hardcode_libdir_flag_spec='-R$libdir'
8745 hardcode_direct=yes
8746 hardcode_shlibpath_var=no
8749 hpux9*)
8750 if test "$GCC" = yes; then
8751 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'
8752 else
8753 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'
8755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8756 hardcode_libdir_separator=:
8757 hardcode_direct=yes
8759 # hardcode_minus_L: Not really in the search PATH,
8760 # but as the default location of the library.
8761 hardcode_minus_L=yes
8762 export_dynamic_flag_spec='${wl}-E'
8765 hpux10*)
8766 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8767 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8768 else
8769 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8771 if test "$with_gnu_ld" = no; then
8772 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8773 hardcode_libdir_separator=:
8775 hardcode_direct=yes
8776 export_dynamic_flag_spec='${wl}-E'
8778 # hardcode_minus_L: Not really in the search PATH,
8779 # but as the default location of the library.
8780 hardcode_minus_L=yes
8784 hpux11*)
8785 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8786 case $host_cpu in
8787 hppa*64*)
8788 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8790 ia64*)
8791 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8794 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8796 esac
8797 else
8798 case $host_cpu in
8799 hppa*64*)
8800 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8802 ia64*)
8803 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8808 esac
8810 if test "$with_gnu_ld" = no; then
8811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8812 hardcode_libdir_separator=:
8814 case $host_cpu in
8815 hppa*64*|ia64*)
8816 hardcode_libdir_flag_spec_ld='+b $libdir'
8817 hardcode_direct=no
8818 hardcode_shlibpath_var=no
8821 hardcode_direct=yes
8822 export_dynamic_flag_spec='${wl}-E'
8824 # hardcode_minus_L: Not really in the search PATH,
8825 # but as the default location of the library.
8826 hardcode_minus_L=yes
8828 esac
8832 irix5* | irix6* | nonstopux*)
8833 if test "$GCC" = yes; then
8834 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'
8835 else
8836 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'
8837 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840 hardcode_libdir_separator=:
8841 link_all_deplibs=yes
8844 netbsd*)
8845 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8847 else
8848 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8850 hardcode_libdir_flag_spec='-R$libdir'
8851 hardcode_direct=yes
8852 hardcode_shlibpath_var=no
8855 newsos6)
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_direct=yes
8858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8859 hardcode_libdir_separator=:
8860 hardcode_shlibpath_var=no
8863 openbsd*)
8864 if test -f /usr/libexec/ld.so; then
8865 hardcode_direct=yes
8866 hardcode_shlibpath_var=no
8867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8869 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8871 export_dynamic_flag_spec='${wl}-E'
8872 else
8873 case $host_os in
8874 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8876 hardcode_libdir_flag_spec='-R$libdir'
8879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8882 esac
8884 else
8885 ld_shlibs=no
8889 os2*)
8890 hardcode_libdir_flag_spec='-L$libdir'
8891 hardcode_minus_L=yes
8892 allow_undefined_flag=unsupported
8893 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'
8894 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8897 osf3*)
8898 if test "$GCC" = yes; then
8899 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8900 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'
8901 else
8902 allow_undefined_flag=' -expect_unresolved \*'
8903 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'
8905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906 hardcode_libdir_separator=:
8909 osf4* | osf5*) # as osf3* with the addition of -msym flag
8910 if test "$GCC" = yes; then
8911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8912 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'
8913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914 else
8915 allow_undefined_flag=' -expect_unresolved \*'
8916 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'
8917 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8918 $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'
8920 # Both c and cxx compiler support -rpath directly
8921 hardcode_libdir_flag_spec='-rpath $libdir'
8923 hardcode_libdir_separator=:
8926 solaris*)
8927 no_undefined_flag=' -z text'
8928 if test "$GCC" = yes; then
8929 wlarc='${wl}'
8930 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8932 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8933 else
8934 wlarc=''
8935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8939 hardcode_libdir_flag_spec='-R$libdir'
8940 hardcode_shlibpath_var=no
8941 case $host_os in
8942 solaris2.[0-5] | solaris2.[0-5].*) ;;
8944 # The compiler driver will combine and reorder linker options,
8945 # but understands `-z linker_flag'. GCC discards it without `$wl',
8946 # but is careful enough not to reorder.
8947 # Supported since Solaris 2.6 (maybe 2.5.1?)
8948 if test "$GCC" = yes; then
8949 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8950 else
8951 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8954 esac
8955 link_all_deplibs=yes
8958 sunos4*)
8959 if test "x$host_vendor" = xsequent; then
8960 # Use $CC to link under sequent, because it throws in some extra .o
8961 # files that make .init and .fini sections work.
8962 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8963 else
8964 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8966 hardcode_libdir_flag_spec='-L$libdir'
8967 hardcode_direct=yes
8968 hardcode_minus_L=yes
8969 hardcode_shlibpath_var=no
8972 sysv4)
8973 case $host_vendor in
8974 sni)
8975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976 hardcode_direct=yes # is this really true???
8978 siemens)
8979 ## LD is ld it makes a PLAMLIB
8980 ## CC just makes a GrossModule.
8981 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8982 reload_cmds='$CC -r -o $output$reload_objs'
8983 hardcode_direct=no
8985 motorola)
8986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8989 esac
8990 runpath_var='LD_RUN_PATH'
8991 hardcode_shlibpath_var=no
8994 sysv4.3*)
8995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_shlibpath_var=no
8997 export_dynamic_flag_spec='-Bexport'
9000 sysv4*MP*)
9001 if test -d /usr/nec; then
9002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9003 hardcode_shlibpath_var=no
9004 runpath_var=LD_RUN_PATH
9005 hardcode_runpath_var=yes
9006 ld_shlibs=yes
9010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9011 no_undefined_flag='${wl}-z,text'
9012 archive_cmds_need_lc=no
9013 hardcode_shlibpath_var=no
9014 runpath_var='LD_RUN_PATH'
9016 if test "$GCC" = yes; then
9017 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9019 else
9020 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9021 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9025 sysv5* | sco3.2v5* | sco5v6*)
9026 # Note: We can NOT use -z defs as we might desire, because we do not
9027 # link with -lc, and that would cause any symbols used from libc to
9028 # always be unresolved, which means just about no library would
9029 # ever link correctly. If we're not using GNU ld we use -z text
9030 # though, which does catch some bad symbols but isn't as heavy-handed
9031 # as -z defs.
9032 no_undefined_flag='${wl}-z,text'
9033 allow_undefined_flag='${wl}-z,nodefs'
9034 archive_cmds_need_lc=no
9035 hardcode_shlibpath_var=no
9036 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9037 hardcode_libdir_separator=':'
9038 link_all_deplibs=yes
9039 export_dynamic_flag_spec='${wl}-Bexport'
9040 runpath_var='LD_RUN_PATH'
9042 if test "$GCC" = yes; then
9043 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 else
9046 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9051 uts4*)
9052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9053 hardcode_libdir_flag_spec='-L$libdir'
9054 hardcode_shlibpath_var=no
9058 ld_shlibs=no
9060 esac
9063 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9064 $as_echo "$ld_shlibs" >&6; }
9065 test "$ld_shlibs" = no && can_build_shared=no
9068 # Do we need to explicitly link libc?
9070 case "x$archive_cmds_need_lc" in
9071 x|xyes)
9072 # Assume -lc should be added
9073 archive_cmds_need_lc=yes
9075 if test "$enable_shared" = yes && test "$GCC" = yes; then
9076 case $archive_cmds in
9077 *'~'*)
9078 # FIXME: we may have to deal with multi-command sequences.
9080 '$CC '*)
9081 # Test whether the compiler implicitly links with -lc since on some
9082 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9083 # to ld, don't add -lc before -lgcc.
9084 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9085 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9086 $rm conftest*
9087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9090 (eval $ac_compile) 2>&5
9091 ac_status=$?
9092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } 2>conftest.err; then
9094 soname=conftest
9095 lib=conftest
9096 libobjs=conftest.$ac_objext
9097 deplibs=
9098 wl=$lt_prog_compiler_wl
9099 pic_flag=$lt_prog_compiler_pic
9100 compiler_flags=-v
9101 linker_flags=-v
9102 verstring=
9103 output_objdir=.
9104 libname=conftest
9105 lt_save_allow_undefined_flag=$allow_undefined_flag
9106 allow_undefined_flag=
9107 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9108 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9109 ac_status=$?
9110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }
9112 then
9113 archive_cmds_need_lc=no
9114 else
9115 archive_cmds_need_lc=yes
9117 allow_undefined_flag=$lt_save_allow_undefined_flag
9118 else
9119 cat conftest.err 1>&5
9121 $rm conftest*
9122 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9123 $as_echo "$archive_cmds_need_lc" >&6; }
9125 esac
9128 esac
9130 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9131 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9132 library_names_spec=
9133 libname_spec='lib$name'
9134 soname_spec=
9135 shrext_cmds=".so"
9136 postinstall_cmds=
9137 postuninstall_cmds=
9138 finish_cmds=
9139 finish_eval=
9140 shlibpath_var=
9141 shlibpath_overrides_runpath=unknown
9142 version_type=none
9143 dynamic_linker="$host_os ld.so"
9144 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9146 if test "$GCC" = yes; then
9147 case $host_os in
9148 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9149 *) lt_awk_arg="/^libraries:/" ;;
9150 esac
9151 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9152 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9153 # if the path contains ";" then we assume it to be the separator
9154 # otherwise default to the standard path separator (i.e. ":") - it is
9155 # assumed that no part of a normal pathname contains ";" but that should
9156 # okay in the real world where ";" in dirpaths is itself problematic.
9157 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9158 else
9159 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9161 # Ok, now we have the path, separated by spaces, we can step through it
9162 # and add multilib dir if necessary.
9163 lt_tmp_lt_search_path_spec=
9164 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9165 for lt_sys_path in $lt_search_path_spec; do
9166 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9167 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9168 else
9169 test -d "$lt_sys_path" && \
9170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9172 done
9173 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9174 BEGIN {RS=" "; FS="/|\n";} {
9175 lt_foo="";
9176 lt_count=0;
9177 for (lt_i = NF; lt_i > 0; lt_i--) {
9178 if ($lt_i != "" && $lt_i != ".") {
9179 if ($lt_i == "..") {
9180 lt_count++;
9181 } else {
9182 if (lt_count == 0) {
9183 lt_foo="/" $lt_i lt_foo;
9184 } else {
9185 lt_count--;
9190 if (lt_foo != "") { lt_freq[lt_foo]++; }
9191 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9193 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9194 else
9195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9197 need_lib_prefix=unknown
9198 hardcode_into_libs=no
9200 # when you set need_version to no, make sure it does not cause -set_version
9201 # flags to be left without arguments
9202 need_version=unknown
9204 case $host_os in
9205 aix3*)
9206 version_type=linux
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9208 shlibpath_var=LIBPATH
9210 # AIX 3 has no versioning support, so we append a major version to the name.
9211 soname_spec='${libname}${release}${shared_ext}$major'
9214 aix[4-9]*)
9215 version_type=linux
9216 need_lib_prefix=no
9217 need_version=no
9218 hardcode_into_libs=yes
9219 if test "$host_cpu" = ia64; then
9220 # AIX 5 supports IA64
9221 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 else
9224 # With GCC up to 2.95.x, collect2 would create an import file
9225 # for dependence libraries. The import file would start with
9226 # the line `#! .'. This would cause the generated library to
9227 # depend on `.', always an invalid library. This was fixed in
9228 # development snapshots of GCC prior to 3.0.
9229 case $host_os in
9230 aix4 | aix4.[01] | aix4.[01].*)
9231 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9232 echo ' yes '
9233 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9235 else
9236 can_build_shared=no
9239 esac
9240 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9241 # soname into executable. Probably we can add versioning support to
9242 # collect2, so additional links can be useful in future.
9243 if test "$aix_use_runtimelinking" = yes; then
9244 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9245 # instead of lib<name>.a to let people know that these are not
9246 # typical AIX shared libraries.
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 else
9249 # We preserve .a as extension for shared libraries through AIX4.2
9250 # and later when we are not doing run time linking.
9251 library_names_spec='${libname}${release}.a $libname.a'
9252 soname_spec='${libname}${release}${shared_ext}$major'
9254 shlibpath_var=LIBPATH
9258 amigaos*)
9259 library_names_spec='$libname.ixlibrary $libname.a'
9260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9261 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'
9264 beos*)
9265 library_names_spec='${libname}${shared_ext}'
9266 dynamic_linker="$host_os ld.so"
9267 shlibpath_var=LIBRARY_PATH
9270 bsdi[45]*)
9271 version_type=linux
9272 need_version=no
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9279 # the default ld.so.conf also contains /usr/contrib/lib and
9280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9281 # libtool to hard-code these into programs
9284 cygwin* | mingw* | pw32*)
9285 version_type=windows
9286 shrext_cmds=".dll"
9287 need_version=no
9288 need_lib_prefix=no
9290 case $GCC,$host_os in
9291 yes,cygwin* | yes,mingw* | yes,pw32*)
9292 library_names_spec='$libname.dll.a'
9293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9294 postinstall_cmds='base_file=`basename \${file}`~
9295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9296 dldir=$destdir/`dirname \$dlpath`~
9297 test -d \$dldir || mkdir -p \$dldir~
9298 $install_prog $dir/$dlname \$dldir/$dlname~
9299 chmod a+x \$dldir/$dlname'
9300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9301 dlpath=$dir/\$dldll~
9302 $rm \$dlpath'
9303 shlibpath_overrides_runpath=yes
9305 case $host_os in
9306 cygwin*)
9307 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9308 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9311 mingw*)
9312 # MinGW DLLs use traditional 'lib' prefix
9313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9314 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9315 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9316 # It is most probably a Windows format PATH printed by
9317 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9318 # path with ; separators, and with drive letters. We can handle the
9319 # drive letters (cygwin fileutils understands them), so leave them,
9320 # especially as we might pass files found there to a mingw objdump,
9321 # which wouldn't understand a cygwinified path. Ahh.
9322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9323 else
9324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9327 pw32*)
9328 # pw32 DLLs use 'pw' prefix rather than 'lib'
9329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9331 esac
9335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9337 esac
9338 dynamic_linker='Win32 ld.exe'
9339 # FIXME: first we should search . and the directory the executable is in
9340 shlibpath_var=PATH
9343 darwin* | rhapsody*)
9344 dynamic_linker="$host_os dyld"
9345 version_type=darwin
9346 need_lib_prefix=no
9347 need_version=no
9348 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9349 soname_spec='${libname}${release}${major}$shared_ext'
9350 shlibpath_overrides_runpath=yes
9351 shlibpath_var=DYLD_LIBRARY_PATH
9352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9354 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9358 dgux*)
9359 version_type=linux
9360 need_lib_prefix=no
9361 need_version=no
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 shlibpath_var=LD_LIBRARY_PATH
9367 freebsd1*)
9368 dynamic_linker=no
9371 freebsd* | dragonfly*)
9372 # DragonFly does not have aout. When/if they implement a new
9373 # versioning mechanism, adjust this.
9374 if test -x /usr/bin/objformat; then
9375 objformat=`/usr/bin/objformat`
9376 else
9377 case $host_os in
9378 freebsd[123]*) objformat=aout ;;
9379 *) objformat=elf ;;
9380 esac
9382 version_type=freebsd-$objformat
9383 case $version_type in
9384 freebsd-elf*)
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9386 need_version=no
9387 need_lib_prefix=no
9389 freebsd-*)
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9391 need_version=yes
9393 esac
9394 shlibpath_var=LD_LIBRARY_PATH
9395 case $host_os in
9396 freebsd2*)
9397 shlibpath_overrides_runpath=yes
9399 freebsd3.[01]* | freebsdelf3.[01]*)
9400 shlibpath_overrides_runpath=yes
9401 hardcode_into_libs=yes
9403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9405 shlibpath_overrides_runpath=no
9406 hardcode_into_libs=yes
9408 *) # from 4.6 on, and DragonFly
9409 shlibpath_overrides_runpath=yes
9410 hardcode_into_libs=yes
9412 esac
9415 gnu*)
9416 version_type=linux
9417 need_lib_prefix=no
9418 need_version=no
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 hardcode_into_libs=yes
9425 hpux9* | hpux10* | hpux11*)
9426 # Give a soname corresponding to the major version so that dld.sl refuses to
9427 # link against other versions.
9428 version_type=sunos
9429 need_lib_prefix=no
9430 need_version=no
9431 case $host_cpu in
9432 ia64*)
9433 shrext_cmds='.so'
9434 hardcode_into_libs=yes
9435 dynamic_linker="$host_os dld.so"
9436 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 if test "X$HPUX_IA64_MODE" = X32; then
9441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9442 else
9443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9447 hppa*64*)
9448 shrext_cmds='.sl'
9449 hardcode_into_libs=yes
9450 dynamic_linker="$host_os dld.sl"
9451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9459 shrext_cmds='.sl'
9460 dynamic_linker="$host_os dld.sl"
9461 shlibpath_var=SHLIB_PATH
9462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9466 esac
9467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9468 postinstall_cmds='chmod 555 $lib'
9471 interix[3-9]*)
9472 version_type=linux
9473 need_lib_prefix=no
9474 need_version=no
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 shlibpath_overrides_runpath=no
9480 hardcode_into_libs=yes
9483 irix5* | irix6* | nonstopux*)
9484 case $host_os in
9485 nonstopux*) version_type=nonstopux ;;
9487 if test "$lt_cv_prog_gnu_ld" = yes; then
9488 version_type=linux
9489 else
9490 version_type=irix
9491 fi ;;
9492 esac
9493 need_lib_prefix=no
9494 need_version=no
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9497 case $host_os in
9498 irix5* | nonstopux*)
9499 libsuff= shlibsuff=
9502 case $LD in # libtool.m4 will add one of these switches to LD
9503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9504 libsuff= shlibsuff= libmagic=32-bit;;
9505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9506 libsuff=32 shlibsuff=N32 libmagic=N32;;
9507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9509 *) libsuff= shlibsuff= libmagic=never-match;;
9510 esac
9512 esac
9513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9514 shlibpath_overrides_runpath=no
9515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9517 hardcode_into_libs=yes
9520 # No shared lib support for Linux oldld, aout, or coff.
9521 linux*oldld* | linux*aout* | linux*coff*)
9522 dynamic_linker=no
9525 # This must be Linux ELF.
9526 linux* | k*bsd*-gnu)
9527 version_type=linux
9528 need_lib_prefix=no
9529 need_version=no
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 shlibpath_overrides_runpath=no
9535 # This implies no fast_install, which is unacceptable.
9536 # Some rework will be needed to allow for fast_install
9537 # before this can be enabled.
9538 hardcode_into_libs=yes
9540 # Append ld.so.conf contents to the search path
9541 if test -f /etc/ld.so.conf; then
9542 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9543 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9546 # We used to test for /lib/ld.so.1 and disable shared libraries on
9547 # powerpc, because MkLinux only supported shared libraries with the
9548 # GNU dynamic linker. Since this was broken with cross compilers,
9549 # most powerpc-linux boxes support dynamic linking these days and
9550 # people can always --disable-shared, the test was removed, and we
9551 # assume the GNU/Linux dynamic linker is in use.
9552 dynamic_linker='GNU/Linux ld.so'
9555 netbsd*)
9556 version_type=sunos
9557 need_lib_prefix=no
9558 need_version=no
9559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9562 dynamic_linker='NetBSD (a.out) ld.so'
9563 else
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 dynamic_linker='NetBSD ld.elf_so'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 shlibpath_overrides_runpath=yes
9570 hardcode_into_libs=yes
9573 newsos6)
9574 version_type=linux
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 shlibpath_overrides_runpath=yes
9580 nto-qnx*)
9581 version_type=linux
9582 need_lib_prefix=no
9583 need_version=no
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes
9590 openbsd*)
9591 version_type=sunos
9592 sys_lib_dlsearch_path_spec="/usr/lib"
9593 need_lib_prefix=no
9594 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9595 case $host_os in
9596 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9597 *) need_version=no ;;
9598 esac
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9603 case $host_os in
9604 openbsd2.[89] | openbsd2.[89].*)
9605 shlibpath_overrides_runpath=no
9608 shlibpath_overrides_runpath=yes
9610 esac
9611 else
9612 shlibpath_overrides_runpath=yes
9616 os2*)
9617 libname_spec='$name'
9618 shrext_cmds=".dll"
9619 need_lib_prefix=no
9620 library_names_spec='$libname${shared_ext} $libname.a'
9621 dynamic_linker='OS/2 ld.exe'
9622 shlibpath_var=LIBPATH
9625 osf3* | osf4* | osf5*)
9626 version_type=osf
9627 need_lib_prefix=no
9628 need_version=no
9629 soname_spec='${libname}${release}${shared_ext}$major'
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9633 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9636 rdos*)
9637 dynamic_linker=no
9640 solaris*)
9641 version_type=linux
9642 need_lib_prefix=no
9643 need_version=no
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 shlibpath_overrides_runpath=yes
9648 hardcode_into_libs=yes
9649 # ldd complains unless libraries are executable
9650 postinstall_cmds='chmod +x $lib'
9653 sunos4*)
9654 version_type=sunos
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9656 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 shlibpath_overrides_runpath=yes
9659 if test "$with_gnu_ld" = yes; then
9660 need_lib_prefix=no
9662 need_version=yes
9665 sysv4 | sysv4.3*)
9666 version_type=linux
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 case $host_vendor in
9671 sni)
9672 shlibpath_overrides_runpath=no
9673 need_lib_prefix=no
9674 export_dynamic_flag_spec='${wl}-Blargedynsym'
9675 runpath_var=LD_RUN_PATH
9677 siemens)
9678 need_lib_prefix=no
9680 motorola)
9681 need_lib_prefix=no
9682 need_version=no
9683 shlibpath_overrides_runpath=no
9684 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9686 esac
9689 sysv4*MP*)
9690 if test -d /usr/nec ;then
9691 version_type=linux
9692 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9693 soname_spec='$libname${shared_ext}.$major'
9694 shlibpath_var=LD_LIBRARY_PATH
9698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9699 version_type=freebsd-elf
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 hardcode_into_libs=yes
9706 if test "$with_gnu_ld" = yes; then
9707 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9708 shlibpath_overrides_runpath=no
9709 else
9710 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9711 shlibpath_overrides_runpath=yes
9712 case $host_os in
9713 sco3.2v5*)
9714 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9716 esac
9718 sys_lib_dlsearch_path_spec='/usr/lib'
9721 uts4*)
9722 version_type=linux
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9729 dynamic_linker=no
9731 esac
9732 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9733 $as_echo "$dynamic_linker" >&6; }
9734 test "$dynamic_linker" = no && can_build_shared=no
9736 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9737 $as_echo_n "(cached) " >&6
9738 else
9739 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9742 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9743 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9744 $as_echo_n "(cached) " >&6
9745 else
9746 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9749 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9751 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9752 if test "$GCC" = yes; then
9753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9756 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9757 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9758 hardcode_action=
9759 if test -n "$hardcode_libdir_flag_spec" || \
9760 test -n "$runpath_var" || \
9761 test "X$hardcode_automatic" = "Xyes" ; then
9763 # We can hardcode non-existant directories.
9764 if test "$hardcode_direct" != no &&
9765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9766 # have to relink, otherwise we might link with an installed library
9767 # when we should be linking with a yet-to-be-installed one
9768 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9769 test "$hardcode_minus_L" != no; then
9770 # Linking always hardcodes the temporary library directory.
9771 hardcode_action=relink
9772 else
9773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9774 hardcode_action=immediate
9776 else
9777 # We cannot hardcode anything, or else we can only hardcode existing
9778 # directories.
9779 hardcode_action=unsupported
9781 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9782 $as_echo "$hardcode_action" >&6; }
9784 if test "$hardcode_action" = relink; then
9785 # Fast installation is not supported
9786 enable_fast_install=no
9787 elif test "$shlibpath_overrides_runpath" = yes ||
9788 test "$enable_shared" = no; then
9789 # Fast installation is not necessary
9790 enable_fast_install=needless
9793 striplib=
9794 old_striplib=
9795 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9796 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9797 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9798 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9799 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9800 { $as_echo "$as_me:$LINENO: result: yes" >&5
9801 $as_echo "yes" >&6; }
9802 else
9803 # FIXME - insert some real tests, host_os isn't really good enough
9804 case $host_os in
9805 darwin*)
9806 if test -n "$STRIP" ; then
9807 striplib="$STRIP -x"
9808 old_striplib="$STRIP -S"
9809 { $as_echo "$as_me:$LINENO: result: yes" >&5
9810 $as_echo "yes" >&6; }
9811 else
9812 { $as_echo "$as_me:$LINENO: result: no" >&5
9813 $as_echo "no" >&6; }
9817 { $as_echo "$as_me:$LINENO: result: no" >&5
9818 $as_echo "no" >&6; }
9820 esac
9823 if test "x$enable_dlopen" != xyes; then
9824 enable_dlopen=unknown
9825 enable_dlopen_self=unknown
9826 enable_dlopen_self_static=unknown
9827 else
9828 lt_cv_dlopen=no
9829 lt_cv_dlopen_libs=
9831 case $host_os in
9832 beos*)
9833 lt_cv_dlopen="load_add_on"
9834 lt_cv_dlopen_libs=
9835 lt_cv_dlopen_self=yes
9838 mingw* | pw32*)
9839 lt_cv_dlopen="LoadLibrary"
9840 lt_cv_dlopen_libs=
9843 cygwin*)
9844 lt_cv_dlopen="dlopen"
9845 lt_cv_dlopen_libs=
9848 darwin*)
9849 # if libdl is installed we need to link against it
9850 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9853 $as_echo_n "(cached) " >&6
9854 else
9855 ac_check_lib_save_LIBS=$LIBS
9856 LIBS="-ldl $LIBS"
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h. */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9864 /* Override any GCC internal prototype to avoid an error.
9865 Use char because int might match the return type of a GCC
9866 builtin and then its argument prototype would still apply. */
9867 #ifdef __cplusplus
9868 extern "C"
9869 #endif
9870 char dlopen ();
9872 main ()
9874 return dlopen ();
9876 return 0;
9878 _ACEOF
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (ac_try="$ac_link"
9881 case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884 esac
9885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9886 $as_echo "$ac_try_echo") >&5
9887 (eval "$ac_link") 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } && {
9894 test -z "$ac_c_werror_flag" ||
9895 test ! -s conftest.err
9896 } && test -s conftest$ac_exeext && {
9897 test "$cross_compiling" = yes ||
9898 $as_test_x conftest$ac_exeext
9899 }; then
9900 ac_cv_lib_dl_dlopen=yes
9901 else
9902 $as_echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_cv_lib_dl_dlopen=no
9908 rm -rf conftest.dSYM
9909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9913 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9915 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9917 else
9919 lt_cv_dlopen="dyld"
9920 lt_cv_dlopen_libs=
9921 lt_cv_dlopen_self=yes
9928 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9929 $as_echo_n "checking for shl_load... " >&6; }
9930 if test "${ac_cv_func_shl_load+set}" = set; then
9931 $as_echo_n "(cached) " >&6
9932 else
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9941 #define shl_load innocuous_shl_load
9943 /* System header to define __stub macros and hopefully few prototypes,
9944 which can conflict with char shl_load (); below.
9945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9946 <limits.h> exists even on freestanding compilers. */
9948 #ifdef __STDC__
9949 # include <limits.h>
9950 #else
9951 # include <assert.h>
9952 #endif
9954 #undef shl_load
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 char shl_load ();
9963 /* The GNU C library defines this for functions which it implements
9964 to always fail with ENOSYS. Some functions are actually named
9965 something starting with __ and the normal name is an alias. */
9966 #if defined __stub_shl_load || defined __stub___shl_load
9967 choke me
9968 #endif
9971 main ()
9973 return shl_load ();
9975 return 0;
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9980 case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983 esac
9984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9985 $as_echo "$ac_try_echo") >&5
9986 (eval "$ac_link") 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && {
9993 test -z "$ac_c_werror_flag" ||
9994 test ! -s conftest.err
9995 } && test -s conftest$ac_exeext && {
9996 test "$cross_compiling" = yes ||
9997 $as_test_x conftest$ac_exeext
9998 }; then
9999 ac_cv_func_shl_load=yes
10000 else
10001 $as_echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_func_shl_load=no
10007 rm -rf conftest.dSYM
10008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10009 conftest$ac_exeext conftest.$ac_ext
10011 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10012 $as_echo "$ac_cv_func_shl_load" >&6; }
10013 if test "x$ac_cv_func_shl_load" = x""yes; then
10014 lt_cv_dlopen="shl_load"
10015 else
10016 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10017 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10018 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10019 $as_echo_n "(cached) " >&6
10020 else
10021 ac_check_lib_save_LIBS=$LIBS
10022 LIBS="-ldld $LIBS"
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h. */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10030 /* Override any GCC internal prototype to avoid an error.
10031 Use char because int might match the return type of a GCC
10032 builtin and then its argument prototype would still apply. */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 char shl_load ();
10038 main ()
10040 return shl_load ();
10042 return 0;
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
10047 case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050 esac
10051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10052 $as_echo "$ac_try_echo") >&5
10053 (eval "$ac_link") 2>conftest.er1
10054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } && {
10060 test -z "$ac_c_werror_flag" ||
10061 test ! -s conftest.err
10062 } && test -s conftest$ac_exeext && {
10063 test "$cross_compiling" = yes ||
10064 $as_test_x conftest$ac_exeext
10065 }; then
10066 ac_cv_lib_dld_shl_load=yes
10067 else
10068 $as_echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_cv_lib_dld_shl_load=no
10074 rm -rf conftest.dSYM
10075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10080 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10081 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10082 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10083 else
10084 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10085 $as_echo_n "checking for dlopen... " >&6; }
10086 if test "${ac_cv_func_dlopen+set}" = set; then
10087 $as_echo_n "(cached) " >&6
10088 else
10089 cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h. */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10097 #define dlopen innocuous_dlopen
10099 /* System header to define __stub macros and hopefully few prototypes,
10100 which can conflict with char dlopen (); below.
10101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10102 <limits.h> exists even on freestanding compilers. */
10104 #ifdef __STDC__
10105 # include <limits.h>
10106 #else
10107 # include <assert.h>
10108 #endif
10110 #undef dlopen
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char dlopen ();
10119 /* The GNU C library defines this for functions which it implements
10120 to always fail with ENOSYS. Some functions are actually named
10121 something starting with __ and the normal name is an alias. */
10122 #if defined __stub_dlopen || defined __stub___dlopen
10123 choke me
10124 #endif
10127 main ()
10129 return dlopen ();
10131 return 0;
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139 esac
10140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10141 $as_echo "$ac_try_echo") >&5
10142 (eval "$ac_link") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext && {
10152 test "$cross_compiling" = yes ||
10153 $as_test_x conftest$ac_exeext
10154 }; then
10155 ac_cv_func_dlopen=yes
10156 else
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_cv_func_dlopen=no
10163 rm -rf conftest.dSYM
10164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165 conftest$ac_exeext conftest.$ac_ext
10167 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10168 $as_echo "$ac_cv_func_dlopen" >&6; }
10169 if test "x$ac_cv_func_dlopen" = x""yes; then
10170 lt_cv_dlopen="dlopen"
10171 else
10172 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10173 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10175 $as_echo_n "(cached) " >&6
10176 else
10177 ac_check_lib_save_LIBS=$LIBS
10178 LIBS="-ldl $LIBS"
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h. */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 char dlopen ();
10194 main ()
10196 return dlopen ();
10198 return 0;
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206 esac
10207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10208 $as_echo "$ac_try_echo") >&5
10209 (eval "$ac_link") 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest$ac_exeext && {
10219 test "$cross_compiling" = yes ||
10220 $as_test_x conftest$ac_exeext
10221 }; then
10222 ac_cv_lib_dl_dlopen=yes
10223 else
10224 $as_echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_cv_lib_dl_dlopen=no
10230 rm -rf conftest.dSYM
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10235 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10236 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10237 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10238 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10239 else
10240 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10241 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10242 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10243 $as_echo_n "(cached) " >&6
10244 else
10245 ac_check_lib_save_LIBS=$LIBS
10246 LIBS="-lsvld $LIBS"
10247 cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h. */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char dlopen ();
10262 main ()
10264 return dlopen ();
10266 return 0;
10268 _ACEOF
10269 rm -f conftest.$ac_objext conftest$ac_exeext
10270 if { (ac_try="$ac_link"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10274 esac
10275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10276 $as_echo "$ac_try_echo") >&5
10277 (eval "$ac_link") 2>conftest.er1
10278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && {
10284 test -z "$ac_c_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest$ac_exeext && {
10287 test "$cross_compiling" = yes ||
10288 $as_test_x conftest$ac_exeext
10289 }; then
10290 ac_cv_lib_svld_dlopen=yes
10291 else
10292 $as_echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_cv_lib_svld_dlopen=no
10298 rm -rf conftest.dSYM
10299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10300 conftest$ac_exeext conftest.$ac_ext
10301 LIBS=$ac_check_lib_save_LIBS
10303 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10304 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10305 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10307 else
10308 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10309 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10310 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10311 $as_echo_n "(cached) " >&6
10312 else
10313 ac_check_lib_save_LIBS=$LIBS
10314 LIBS="-ldld $LIBS"
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h. */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10322 /* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10325 #ifdef __cplusplus
10326 extern "C"
10327 #endif
10328 char dld_link ();
10330 main ()
10332 return dld_link ();
10334 return 0;
10336 _ACEOF
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (ac_try="$ac_link"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10344 $as_echo "$ac_try_echo") >&5
10345 (eval "$ac_link") 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest$ac_exeext && {
10355 test "$cross_compiling" = yes ||
10356 $as_test_x conftest$ac_exeext
10357 }; then
10358 ac_cv_lib_dld_dld_link=yes
10359 else
10360 $as_echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_cv_lib_dld_dld_link=no
10366 rm -rf conftest.dSYM
10367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10368 conftest$ac_exeext conftest.$ac_ext
10369 LIBS=$ac_check_lib_save_LIBS
10371 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10372 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10373 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10374 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10393 esac
10395 if test "x$lt_cv_dlopen" != xno; then
10396 enable_dlopen=yes
10397 else
10398 enable_dlopen=no
10401 case $lt_cv_dlopen in
10402 dlopen)
10403 save_CPPFLAGS="$CPPFLAGS"
10404 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10406 save_LDFLAGS="$LDFLAGS"
10407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10409 save_LIBS="$LIBS"
10410 LIBS="$lt_cv_dlopen_libs $LIBS"
10412 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10413 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10414 if test "${lt_cv_dlopen_self+set}" = set; then
10415 $as_echo_n "(cached) " >&6
10416 else
10417 if test "$cross_compiling" = yes; then :
10418 lt_cv_dlopen_self=cross
10419 else
10420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10421 lt_status=$lt_dlunknown
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10423 "configure"
10424 #include "confdefs.h"
10426 #if HAVE_DLFCN_H
10427 #include <dlfcn.h>
10428 #endif
10430 #include <stdio.h>
10432 #ifdef RTLD_GLOBAL
10433 # define LT_DLGLOBAL RTLD_GLOBAL
10434 #else
10435 # ifdef DL_GLOBAL
10436 # define LT_DLGLOBAL DL_GLOBAL
10437 # else
10438 # define LT_DLGLOBAL 0
10439 # endif
10440 #endif
10442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10443 find out it does not work in some platform. */
10444 #ifndef LT_DLLAZY_OR_NOW
10445 # ifdef RTLD_LAZY
10446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10447 # else
10448 # ifdef DL_LAZY
10449 # define LT_DLLAZY_OR_NOW DL_LAZY
10450 # else
10451 # ifdef RTLD_NOW
10452 # define LT_DLLAZY_OR_NOW RTLD_NOW
10453 # else
10454 # ifdef DL_NOW
10455 # define LT_DLLAZY_OR_NOW DL_NOW
10456 # else
10457 # define LT_DLLAZY_OR_NOW 0
10458 # endif
10459 # endif
10460 # endif
10461 # endif
10462 #endif
10464 #ifdef __cplusplus
10465 extern "C" void exit (int);
10466 #endif
10468 void fnord() { int i=42;}
10469 int main ()
10471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10472 int status = $lt_dlunknown;
10474 if (self)
10476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10478 /* dlclose (self); */
10480 else
10481 puts (dlerror ());
10483 exit (status);
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10488 ac_status=$?
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10491 (./conftest; exit; ) >&5 2>/dev/null
10492 lt_status=$?
10493 case x$lt_status in
10494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10496 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10497 esac
10498 else :
10499 # compilation failed
10500 lt_cv_dlopen_self=no
10503 rm -fr conftest*
10507 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10508 $as_echo "$lt_cv_dlopen_self" >&6; }
10510 if test "x$lt_cv_dlopen_self" = xyes; then
10511 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10512 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10514 if test "${lt_cv_dlopen_self_static+set}" = set; then
10515 $as_echo_n "(cached) " >&6
10516 else
10517 if test "$cross_compiling" = yes; then :
10518 lt_cv_dlopen_self_static=cross
10519 else
10520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10521 lt_status=$lt_dlunknown
10522 cat > conftest.$ac_ext <<EOF
10523 #line 10523 "configure"
10524 #include "confdefs.h"
10526 #if HAVE_DLFCN_H
10527 #include <dlfcn.h>
10528 #endif
10530 #include <stdio.h>
10532 #ifdef RTLD_GLOBAL
10533 # define LT_DLGLOBAL RTLD_GLOBAL
10534 #else
10535 # ifdef DL_GLOBAL
10536 # define LT_DLGLOBAL DL_GLOBAL
10537 # else
10538 # define LT_DLGLOBAL 0
10539 # endif
10540 #endif
10542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10543 find out it does not work in some platform. */
10544 #ifndef LT_DLLAZY_OR_NOW
10545 # ifdef RTLD_LAZY
10546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10547 # else
10548 # ifdef DL_LAZY
10549 # define LT_DLLAZY_OR_NOW DL_LAZY
10550 # else
10551 # ifdef RTLD_NOW
10552 # define LT_DLLAZY_OR_NOW RTLD_NOW
10553 # else
10554 # ifdef DL_NOW
10555 # define LT_DLLAZY_OR_NOW DL_NOW
10556 # else
10557 # define LT_DLLAZY_OR_NOW 0
10558 # endif
10559 # endif
10560 # endif
10561 # endif
10562 #endif
10564 #ifdef __cplusplus
10565 extern "C" void exit (int);
10566 #endif
10568 void fnord() { int i=42;}
10569 int main ()
10571 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10572 int status = $lt_dlunknown;
10574 if (self)
10576 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10577 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10578 /* dlclose (self); */
10580 else
10581 puts (dlerror ());
10583 exit (status);
10586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587 (eval $ac_link) 2>&5
10588 ac_status=$?
10589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10591 (./conftest; exit; ) >&5 2>/dev/null
10592 lt_status=$?
10593 case x$lt_status in
10594 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10595 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10596 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10597 esac
10598 else :
10599 # compilation failed
10600 lt_cv_dlopen_self_static=no
10603 rm -fr conftest*
10607 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10608 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10611 CPPFLAGS="$save_CPPFLAGS"
10612 LDFLAGS="$save_LDFLAGS"
10613 LIBS="$save_LIBS"
10615 esac
10617 case $lt_cv_dlopen_self in
10618 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10619 *) enable_dlopen_self=unknown ;;
10620 esac
10622 case $lt_cv_dlopen_self_static in
10623 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10624 *) enable_dlopen_self_static=unknown ;;
10625 esac
10629 # Report which library types will actually be built
10630 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10631 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10632 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10633 $as_echo "$can_build_shared" >&6; }
10635 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10636 $as_echo_n "checking whether to build shared libraries... " >&6; }
10637 test "$can_build_shared" = "no" && enable_shared=no
10639 # On AIX, shared libraries and static libraries use the same namespace, and
10640 # are all built from PIC.
10641 case $host_os in
10642 aix3*)
10643 test "$enable_shared" = yes && enable_static=no
10644 if test -n "$RANLIB"; then
10645 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10646 postinstall_cmds='$RANLIB $lib'
10650 aix[4-9]*)
10651 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10652 test "$enable_shared" = yes && enable_static=no
10655 esac
10656 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10657 $as_echo "$enable_shared" >&6; }
10659 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10660 $as_echo_n "checking whether to build static libraries... " >&6; }
10661 # Make sure either enable_shared or enable_static is yes.
10662 test "$enable_shared" = yes || enable_static=yes
10663 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10664 $as_echo "$enable_static" >&6; }
10666 # The else clause should only fire when bootstrapping the
10667 # libtool distribution, otherwise you forgot to ship ltmain.sh
10668 # with your package, and you will get complaints that there are
10669 # no rules to generate ltmain.sh.
10670 if test -f "$ltmain"; then
10671 # See if we are running on zsh, and set the options which allow our commands through
10672 # without removal of \ escapes.
10673 if test -n "${ZSH_VERSION+set}" ; then
10674 setopt NO_GLOB_SUBST
10676 # Now quote all the things that may contain metacharacters while being
10677 # careful not to overquote the AC_SUBSTed values. We take copies of the
10678 # variables and quote the copies for generation of the libtool script.
10679 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10680 SED SHELL STRIP \
10681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10683 deplibs_check_method reload_flag reload_cmds need_locks \
10684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10685 lt_cv_sys_global_symbol_to_c_name_address \
10686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10687 old_postinstall_cmds old_postuninstall_cmds \
10688 compiler \
10689 CC \
10690 LD \
10691 lt_prog_compiler_wl \
10692 lt_prog_compiler_pic \
10693 lt_prog_compiler_static \
10694 lt_prog_compiler_no_builtin_flag \
10695 export_dynamic_flag_spec \
10696 thread_safe_flag_spec \
10697 whole_archive_flag_spec \
10698 enable_shared_with_static_runtimes \
10699 old_archive_cmds \
10700 old_archive_from_new_cmds \
10701 predep_objects \
10702 postdep_objects \
10703 predeps \
10704 postdeps \
10705 compiler_lib_search_path \
10706 compiler_lib_search_dirs \
10707 archive_cmds \
10708 archive_expsym_cmds \
10709 postinstall_cmds \
10710 postuninstall_cmds \
10711 old_archive_from_expsyms_cmds \
10712 allow_undefined_flag \
10713 no_undefined_flag \
10714 export_symbols_cmds \
10715 hardcode_libdir_flag_spec \
10716 hardcode_libdir_flag_spec_ld \
10717 hardcode_libdir_separator \
10718 hardcode_automatic \
10719 module_cmds \
10720 module_expsym_cmds \
10721 lt_cv_prog_compiler_c_o \
10722 fix_srcfile_path \
10723 exclude_expsyms \
10724 include_expsyms; do
10726 case $var in
10727 old_archive_cmds | \
10728 old_archive_from_new_cmds | \
10729 archive_cmds | \
10730 archive_expsym_cmds | \
10731 module_cmds | \
10732 module_expsym_cmds | \
10733 old_archive_from_expsyms_cmds | \
10734 export_symbols_cmds | \
10735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10736 postinstall_cmds | postuninstall_cmds | \
10737 old_postinstall_cmds | old_postuninstall_cmds | \
10738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10739 # Double-quote double-evaled strings.
10740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10745 esac
10746 done
10748 case $lt_echo in
10749 *'\$0 --fallback-echo"')
10750 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10752 esac
10754 cfgfile="${ofile}T"
10755 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10756 $rm -f "$cfgfile"
10757 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10758 $as_echo "$as_me: creating $ofile" >&6;}
10760 cat <<__EOF__ >> "$cfgfile"
10761 #! $SHELL
10763 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10764 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10765 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10767 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10768 # Free Software Foundation, Inc.
10770 # This file is part of GNU Libtool:
10771 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10773 # This program is free software; you can redistribute it and/or modify
10774 # it under the terms of the GNU General Public License as published by
10775 # the Free Software Foundation; either version 2 of the License, or
10776 # (at your option) any later version.
10778 # This program is distributed in the hope that it will be useful, but
10779 # WITHOUT ANY WARRANTY; without even the implied warranty of
10780 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10781 # General Public License for more details.
10783 # You should have received a copy of the GNU General Public License
10784 # along with this program; if not, write to the Free Software
10785 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10787 # As a special exception to the GNU General Public License, if you
10788 # distribute this file as part of a program that contains a
10789 # configuration script generated by Autoconf, you may include it under
10790 # the same distribution terms that you use for the rest of that program.
10792 # A sed program that does not truncate output.
10793 SED=$lt_SED
10795 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10796 Xsed="$SED -e 1s/^X//"
10798 # The HP-UX ksh and POSIX shell print the target directory to stdout
10799 # if CDPATH is set.
10800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10802 # The names of the tagged configurations supported by this script.
10803 available_tags=
10805 # ### BEGIN LIBTOOL CONFIG
10807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10809 # Shell to use when invoking shell scripts.
10810 SHELL=$lt_SHELL
10812 # Whether or not to build shared libraries.
10813 build_libtool_libs=$enable_shared
10815 # Whether or not to build static libraries.
10816 build_old_libs=$enable_static
10818 # Whether or not to add -lc for building shared libraries.
10819 build_libtool_need_lc=$archive_cmds_need_lc
10821 # Whether or not to disallow shared libs when runtime libs are static
10822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10824 # Whether or not to optimize for fast installation.
10825 fast_install=$enable_fast_install
10827 # The host system.
10828 host_alias=$host_alias
10829 host=$host
10830 host_os=$host_os
10832 # The build system.
10833 build_alias=$build_alias
10834 build=$build
10835 build_os=$build_os
10837 # An echo program that does not interpret backslashes.
10838 echo=$lt_echo
10840 # The archiver.
10841 AR=$lt_AR
10842 AR_FLAGS=$lt_AR_FLAGS
10844 # A C compiler.
10845 LTCC=$lt_LTCC
10847 # LTCC compiler flags.
10848 LTCFLAGS=$lt_LTCFLAGS
10850 # A language-specific compiler.
10851 CC=$lt_compiler
10853 # Is the compiler the GNU C compiler?
10854 with_gcc=$GCC
10856 # An ERE matcher.
10857 EGREP=$lt_EGREP
10859 # The linker used to build libraries.
10860 LD=$lt_LD
10862 # Whether we need hard or soft links.
10863 LN_S=$lt_LN_S
10865 # A BSD-compatible nm program.
10866 NM=$lt_NM
10868 # A symbol stripping program
10869 STRIP=$lt_STRIP
10871 # Used to examine libraries when file_magic_cmd begins "file"
10872 MAGIC_CMD=$MAGIC_CMD
10874 # Used on cygwin: DLL creation program.
10875 DLLTOOL="$DLLTOOL"
10877 # Used on cygwin: object dumper.
10878 OBJDUMP="$OBJDUMP"
10880 # Used on cygwin: assembler.
10881 AS="$AS"
10883 # The name of the directory that contains temporary libtool files.
10884 objdir=$objdir
10886 # How to create reloadable object files.
10887 reload_flag=$lt_reload_flag
10888 reload_cmds=$lt_reload_cmds
10890 # How to pass a linker flag through the compiler.
10891 wl=$lt_lt_prog_compiler_wl
10893 # Object file suffix (normally "o").
10894 objext="$ac_objext"
10896 # Old archive suffix (normally "a").
10897 libext="$libext"
10899 # Shared library suffix (normally ".so").
10900 shrext_cmds='$shrext_cmds'
10902 # Executable file suffix (normally "").
10903 exeext="$exeext"
10905 # Additional compiler flags for building library objects.
10906 pic_flag=$lt_lt_prog_compiler_pic
10907 pic_mode=$pic_mode
10909 # What is the maximum length of a command?
10910 max_cmd_len=$lt_cv_sys_max_cmd_len
10912 # Does compiler simultaneously support -c and -o options?
10913 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10915 # Must we lock files when doing compilation?
10916 need_locks=$lt_need_locks
10918 # Do we need the lib prefix for modules?
10919 need_lib_prefix=$need_lib_prefix
10921 # Do we need a version for libraries?
10922 need_version=$need_version
10924 # Whether dlopen is supported.
10925 dlopen_support=$enable_dlopen
10927 # Whether dlopen of programs is supported.
10928 dlopen_self=$enable_dlopen_self
10930 # Whether dlopen of statically linked programs is supported.
10931 dlopen_self_static=$enable_dlopen_self_static
10933 # Compiler flag to prevent dynamic linking.
10934 link_static_flag=$lt_lt_prog_compiler_static
10936 # Compiler flag to turn off builtin functions.
10937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10939 # Compiler flag to allow reflexive dlopens.
10940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10942 # Compiler flag to generate shared objects directly from archives.
10943 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10945 # Compiler flag to generate thread-safe objects.
10946 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10948 # Library versioning type.
10949 version_type=$version_type
10951 # Format of library name prefix.
10952 libname_spec=$lt_libname_spec
10954 # List of archive names. First name is the real one, the rest are links.
10955 # The last name is the one that the linker finds with -lNAME.
10956 library_names_spec=$lt_library_names_spec
10958 # The coded name of the library, if different from the real name.
10959 soname_spec=$lt_soname_spec
10961 # Commands used to build and install an old-style archive.
10962 RANLIB=$lt_RANLIB
10963 old_archive_cmds=$lt_old_archive_cmds
10964 old_postinstall_cmds=$lt_old_postinstall_cmds
10965 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10967 # Create an old-style archive from a shared archive.
10968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10970 # Create a temporary old-style archive to link instead of a shared archive.
10971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10973 # Commands used to build and install a shared archive.
10974 archive_cmds=$lt_archive_cmds
10975 archive_expsym_cmds=$lt_archive_expsym_cmds
10976 postinstall_cmds=$lt_postinstall_cmds
10977 postuninstall_cmds=$lt_postuninstall_cmds
10979 # Commands used to build a loadable module (assumed same as above if empty)
10980 module_cmds=$lt_module_cmds
10981 module_expsym_cmds=$lt_module_expsym_cmds
10983 # Commands to strip libraries.
10984 old_striplib=$lt_old_striplib
10985 striplib=$lt_striplib
10987 # Dependencies to place before the objects being linked to create a
10988 # shared library.
10989 predep_objects=$lt_predep_objects
10991 # Dependencies to place after the objects being linked to create a
10992 # shared library.
10993 postdep_objects=$lt_postdep_objects
10995 # Dependencies to place before the objects being linked to create a
10996 # shared library.
10997 predeps=$lt_predeps
10999 # Dependencies to place after the objects being linked to create a
11000 # shared library.
11001 postdeps=$lt_postdeps
11003 # The directories searched by this compiler when creating a shared
11004 # library
11005 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11007 # The library search path used internally by the compiler when linking
11008 # a shared library.
11009 compiler_lib_search_path=$lt_compiler_lib_search_path
11011 # Method to check whether dependent libraries are shared objects.
11012 deplibs_check_method=$lt_deplibs_check_method
11014 # Command to use when deplibs_check_method == file_magic.
11015 file_magic_cmd=$lt_file_magic_cmd
11017 # Flag that allows shared libraries with undefined symbols to be built.
11018 allow_undefined_flag=$lt_allow_undefined_flag
11020 # Flag that forces no undefined symbols.
11021 no_undefined_flag=$lt_no_undefined_flag
11023 # Commands used to finish a libtool library installation in a directory.
11024 finish_cmds=$lt_finish_cmds
11026 # Same as above, but a single script fragment to be evaled but not shown.
11027 finish_eval=$lt_finish_eval
11029 # Take the output of nm and produce a listing of raw symbols and C names.
11030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11032 # Transform the output of nm in a proper C declaration
11033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11035 # Transform the output of nm in a C name address pair
11036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11038 # This is the shared library runtime path variable.
11039 runpath_var=$runpath_var
11041 # This is the shared library path variable.
11042 shlibpath_var=$shlibpath_var
11044 # Is shlibpath searched before the hard-coded library search path?
11045 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11047 # How to hardcode a shared library path into an executable.
11048 hardcode_action=$hardcode_action
11050 # Whether we should hardcode library paths into libraries.
11051 hardcode_into_libs=$hardcode_into_libs
11053 # Flag to hardcode \$libdir into a binary during linking.
11054 # This must work even if \$libdir does not exist.
11055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11057 # If ld is used when linking, flag to hardcode \$libdir into
11058 # a binary during linking. This must work even if \$libdir does
11059 # not exist.
11060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11062 # Whether we need a single -rpath flag with a separated argument.
11063 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11065 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11066 # resulting binary.
11067 hardcode_direct=$hardcode_direct
11069 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11070 # resulting binary.
11071 hardcode_minus_L=$hardcode_minus_L
11073 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11074 # the resulting binary.
11075 hardcode_shlibpath_var=$hardcode_shlibpath_var
11077 # Set to yes if building a shared library automatically hardcodes DIR into the library
11078 # and all subsequent libraries and executables linked against it.
11079 hardcode_automatic=$hardcode_automatic
11081 # Variables whose values should be saved in libtool wrapper scripts and
11082 # restored at relink time.
11083 variables_saved_for_relink="$variables_saved_for_relink"
11085 # Whether libtool must link a program against all its dependency libraries.
11086 link_all_deplibs=$link_all_deplibs
11088 # Compile-time system search path for libraries
11089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11091 # Run-time system search path for libraries
11092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11094 # Fix the shell variable \$srcfile for the compiler.
11095 fix_srcfile_path=$lt_fix_srcfile_path
11097 # Set to yes if exported symbols are required.
11098 always_export_symbols=$always_export_symbols
11100 # The commands to list exported symbols.
11101 export_symbols_cmds=$lt_export_symbols_cmds
11103 # The commands to extract the exported symbol list from a shared archive.
11104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11106 # Symbols that should not be listed in the preloaded symbols.
11107 exclude_expsyms=$lt_exclude_expsyms
11109 # Symbols that must always be exported.
11110 include_expsyms=$lt_include_expsyms
11112 # ### END LIBTOOL CONFIG
11114 __EOF__
11117 case $host_os in
11118 aix3*)
11119 cat <<\EOF >> "$cfgfile"
11121 # AIX sometimes has problems with the GCC collect2 program. For some
11122 # reason, if we set the COLLECT_NAMES environment variable, the problems
11123 # vanish in a puff of smoke.
11124 if test "X${COLLECT_NAMES+set}" != Xset; then
11125 COLLECT_NAMES=
11126 export COLLECT_NAMES
11130 esac
11132 # We use sed instead of cat because bash on DJGPP gets confused if
11133 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11134 # text mode, it properly converts lines to CR/LF. This bash problem
11135 # is reportedly fixed, but why not run on old versions too?
11136 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11138 mv -f "$cfgfile" "$ofile" || \
11139 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11140 chmod +x "$ofile"
11142 else
11143 # If there is no Makefile yet, we rely on a make rule to execute
11144 # `config.status --recheck' to rerun these tests and create the
11145 # libtool script then.
11146 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11147 if test -f "$ltmain_in"; then
11148 test -f Makefile && make "$ltmain"
11153 ac_ext=c
11154 ac_cpp='$CPP $CPPFLAGS'
11155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11159 CC="$lt_save_CC"
11162 # Check whether --with-tags was given.
11163 if test "${with_tags+set}" = set; then
11164 withval=$with_tags; tagnames="$withval"
11168 if test -f "$ltmain" && test -n "$tagnames"; then
11169 if test ! -f "${ofile}"; then
11170 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11171 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11174 if test -z "$LTCC"; then
11175 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11176 if test -z "$LTCC"; then
11177 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11178 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11179 else
11180 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11181 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11184 if test -z "$LTCFLAGS"; then
11185 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11188 # Extract list of available tagged configurations in $ofile.
11189 # Note that this assumes the entire list is on one line.
11190 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11193 for tagname in $tagnames; do
11194 IFS="$lt_save_ifs"
11195 # Check whether tagname contains only valid characters
11196 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11197 "") ;;
11198 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11199 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11200 { (exit 1); exit 1; }; }
11202 esac
11204 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11205 then
11206 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11207 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11208 { (exit 1); exit 1; }; }
11211 # Update the list of available tags.
11212 if test -n "$tagname"; then
11213 echo appending configuration tag \"$tagname\" to $ofile
11215 case $tagname in
11216 CXX)
11217 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11218 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11219 (test "X$CXX" != "Xg++"))) ; then
11220 ac_ext=cpp
11221 ac_cpp='$CXXCPP $CPPFLAGS'
11222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11229 archive_cmds_need_lc_CXX=no
11230 allow_undefined_flag_CXX=
11231 always_export_symbols_CXX=no
11232 archive_expsym_cmds_CXX=
11233 export_dynamic_flag_spec_CXX=
11234 hardcode_direct_CXX=no
11235 hardcode_libdir_flag_spec_CXX=
11236 hardcode_libdir_flag_spec_ld_CXX=
11237 hardcode_libdir_separator_CXX=
11238 hardcode_minus_L_CXX=no
11239 hardcode_shlibpath_var_CXX=unsupported
11240 hardcode_automatic_CXX=no
11241 module_cmds_CXX=
11242 module_expsym_cmds_CXX=
11243 link_all_deplibs_CXX=unknown
11244 old_archive_cmds_CXX=$old_archive_cmds
11245 no_undefined_flag_CXX=
11246 whole_archive_flag_spec_CXX=
11247 enable_shared_with_static_runtimes_CXX=no
11249 # Dependencies to place before and after the object being linked:
11250 predep_objects_CXX=
11251 postdep_objects_CXX=
11252 predeps_CXX=
11253 postdeps_CXX=
11254 compiler_lib_search_path_CXX=
11255 compiler_lib_search_dirs_CXX=
11257 # Source file extension for C++ test sources.
11258 ac_ext=cpp
11260 # Object file extension for compiled C++ test sources.
11261 objext=o
11262 objext_CXX=$objext
11264 # Code to be used in simple compile tests
11265 lt_simple_compile_test_code="int some_variable = 0;"
11267 # Code to be used in simple link tests
11268 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11272 # If no C compiler was specified, use CC.
11273 LTCC=${LTCC-"$CC"}
11275 # If no C compiler flags were specified, use CFLAGS.
11276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11278 # Allow CC to be a program name with arguments.
11279 compiler=$CC
11282 # save warnings/boilerplate of simple test code
11283 ac_outfile=conftest.$ac_objext
11284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11286 _lt_compiler_boilerplate=`cat conftest.err`
11287 $rm conftest*
11289 ac_outfile=conftest.$ac_objext
11290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11292 _lt_linker_boilerplate=`cat conftest.err`
11293 $rm -r conftest*
11296 # Allow CC to be a program name with arguments.
11297 lt_save_CC=$CC
11298 lt_save_LD=$LD
11299 lt_save_GCC=$GCC
11300 GCC=$GXX
11301 lt_save_with_gnu_ld=$with_gnu_ld
11302 lt_save_path_LD=$lt_cv_path_LD
11303 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11304 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11305 else
11306 $as_unset lt_cv_prog_gnu_ld
11308 if test -n "${lt_cv_path_LDCXX+set}"; then
11309 lt_cv_path_LD=$lt_cv_path_LDCXX
11310 else
11311 $as_unset lt_cv_path_LD
11313 test -z "${LDCXX+set}" || LD=$LDCXX
11314 CC=${CXX-"c++"}
11315 compiler=$CC
11316 compiler_CXX=$CC
11317 for cc_temp in $compiler""; do
11318 case $cc_temp in
11319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11321 \-*) ;;
11322 *) break;;
11323 esac
11324 done
11325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11328 # We don't want -fno-exception wen compiling C++ code, so set the
11329 # no_builtin_flag separately
11330 if test "$GXX" = yes; then
11331 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11332 else
11333 lt_prog_compiler_no_builtin_flag_CXX=
11336 if test "$GXX" = yes; then
11337 # Set up default GNU C++ configuration
11340 # Check whether --with-gnu-ld was given.
11341 if test "${with_gnu_ld+set}" = set; then
11342 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11343 else
11344 with_gnu_ld=no
11347 ac_prog=ld
11348 if test "$GCC" = yes; then
11349 # Check if gcc -print-prog-name=ld gives a path.
11350 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11351 $as_echo_n "checking for ld used by $CC... " >&6; }
11352 case $host in
11353 *-*-mingw*)
11354 # gcc leaves a trailing carriage return which upsets mingw
11355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11358 esac
11359 case $ac_prog in
11360 # Accept absolute paths.
11361 [\\/]* | ?:[\\/]*)
11362 re_direlt='/[^/][^/]*/\.\./'
11363 # Canonicalize the pathname of ld
11364 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11365 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11366 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11367 done
11368 test -z "$LD" && LD="$ac_prog"
11371 # If it fails, then pretend we aren't using GCC.
11372 ac_prog=ld
11375 # If it is relative, then search for the first ld in PATH.
11376 with_gnu_ld=unknown
11378 esac
11379 elif test "$with_gnu_ld" = yes; then
11380 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11381 $as_echo_n "checking for GNU ld... " >&6; }
11382 else
11383 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11384 $as_echo_n "checking for non-GNU ld... " >&6; }
11386 if test "${lt_cv_path_LD+set}" = set; then
11387 $as_echo_n "(cached) " >&6
11388 else
11389 if test -z "$LD"; then
11390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11391 for ac_dir in $PATH; do
11392 IFS="$lt_save_ifs"
11393 test -z "$ac_dir" && ac_dir=.
11394 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11395 lt_cv_path_LD="$ac_dir/$ac_prog"
11396 # Check to see if the program is GNU ld. I'd rather use --version,
11397 # but apparently some variants of GNU ld only accept -v.
11398 # Break only if it was the GNU/non-GNU ld that we prefer.
11399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11400 *GNU* | *'with BFD'*)
11401 test "$with_gnu_ld" != no && break
11404 test "$with_gnu_ld" != yes && break
11406 esac
11408 done
11409 IFS="$lt_save_ifs"
11410 else
11411 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11415 LD="$lt_cv_path_LD"
11416 if test -n "$LD"; then
11417 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11418 $as_echo "$LD" >&6; }
11419 else
11420 { $as_echo "$as_me:$LINENO: result: no" >&5
11421 $as_echo "no" >&6; }
11423 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11424 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11425 { (exit 1); exit 1; }; }
11426 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11427 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11428 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11429 $as_echo_n "(cached) " >&6
11430 else
11431 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11432 case `$LD -v 2>&1 </dev/null` in
11433 *GNU* | *'with BFD'*)
11434 lt_cv_prog_gnu_ld=yes
11437 lt_cv_prog_gnu_ld=no
11439 esac
11441 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11442 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11443 with_gnu_ld=$lt_cv_prog_gnu_ld
11447 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11448 # archiving commands below assume that GNU ld is being used.
11449 if test "$with_gnu_ld" = yes; then
11450 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11451 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'
11453 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11454 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11456 # If archive_cmds runs LD, not CC, wlarc should be empty
11457 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11458 # investigate it a little bit more. (MM)
11459 wlarc='${wl}'
11461 # ancient GNU ld didn't support --whole-archive et. al.
11462 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11463 grep 'no-whole-archive' > /dev/null; then
11464 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11465 else
11466 whole_archive_flag_spec_CXX=
11468 else
11469 with_gnu_ld=no
11470 wlarc=
11472 # A generic and very simple default shared library creation
11473 # command for GNU C++ for the case where it uses the native
11474 # linker, instead of GNU ld. If possible, this setting should
11475 # overridden to take advantage of the native linker features on
11476 # the platform it is being used on.
11477 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11480 # Commands to make compiler produce verbose output that lists
11481 # what "hidden" libraries, object files and flags are used when
11482 # linking a shared library.
11483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11485 else
11486 GXX=no
11487 with_gnu_ld=no
11488 wlarc=
11491 # PORTME: fill in a description of your system's C++ link characteristics
11492 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11493 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11494 ld_shlibs_CXX=yes
11495 case $host_os in
11496 aix3*)
11497 # FIXME: insert proper C++ library support
11498 ld_shlibs_CXX=no
11500 aix[4-9]*)
11501 if test "$host_cpu" = ia64; then
11502 # On IA64, the linker does run time linking by default, so we don't
11503 # have to do anything special.
11504 aix_use_runtimelinking=no
11505 exp_sym_flag='-Bexport'
11506 no_entry_flag=""
11507 else
11508 aix_use_runtimelinking=no
11510 # Test if we are trying to use run time linking or normal
11511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11512 # need to do runtime linking.
11513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11514 for ld_flag in $LDFLAGS; do
11515 case $ld_flag in
11516 *-brtl*)
11517 aix_use_runtimelinking=yes
11518 break
11520 esac
11521 done
11523 esac
11525 exp_sym_flag='-bexport'
11526 no_entry_flag='-bnoentry'
11529 # When large executables or shared objects are built, AIX ld can
11530 # have problems creating the table of contents. If linking a library
11531 # or program results in "error TOC overflow" add -mminimal-toc to
11532 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11533 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11535 archive_cmds_CXX=''
11536 hardcode_direct_CXX=yes
11537 hardcode_libdir_separator_CXX=':'
11538 link_all_deplibs_CXX=yes
11540 if test "$GXX" = yes; then
11541 case $host_os in aix4.[012]|aix4.[012].*)
11542 # We only want to do this on AIX 4.2 and lower, the check
11543 # below for broken collect2 doesn't work under 4.3+
11544 collect2name=`${CC} -print-prog-name=collect2`
11545 if test -f "$collect2name" && \
11546 strings "$collect2name" | grep resolve_lib_name >/dev/null
11547 then
11548 # We have reworked collect2
11550 else
11551 # We have old collect2
11552 hardcode_direct_CXX=unsupported
11553 # It fails to find uninstalled libraries when the uninstalled
11554 # path is not listed in the libpath. Setting hardcode_minus_L
11555 # to unsupported forces relinking
11556 hardcode_minus_L_CXX=yes
11557 hardcode_libdir_flag_spec_CXX='-L$libdir'
11558 hardcode_libdir_separator_CXX=
11561 esac
11562 shared_flag='-shared'
11563 if test "$aix_use_runtimelinking" = yes; then
11564 shared_flag="$shared_flag "'${wl}-G'
11566 else
11567 # not using gcc
11568 if test "$host_cpu" = ia64; then
11569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11570 # chokes on -Wl,-G. The following line is correct:
11571 shared_flag='-G'
11572 else
11573 if test "$aix_use_runtimelinking" = yes; then
11574 shared_flag='${wl}-G'
11575 else
11576 shared_flag='${wl}-bM:SRE'
11581 # It seems that -bexpall does not export symbols beginning with
11582 # underscore (_), so it is better to generate a list of symbols to export.
11583 always_export_symbols_CXX=yes
11584 if test "$aix_use_runtimelinking" = yes; then
11585 # Warning - without using the other runtime loading flags (-brtl),
11586 # -berok will link without error, but may produce a broken library.
11587 allow_undefined_flag_CXX='-berok'
11588 # Determine the default libpath from the value encoded in an empty executable.
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h. */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11597 main ()
11601 return 0;
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (ac_try="$ac_link"
11606 case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609 esac
11610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11611 $as_echo "$ac_try_echo") >&5
11612 (eval "$ac_link") 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } && {
11619 test -z "$ac_cxx_werror_flag" ||
11620 test ! -s conftest.err
11621 } && test -s conftest$ac_exeext && {
11622 test "$cross_compiling" = yes ||
11623 $as_test_x conftest$ac_exeext
11624 }; then
11626 lt_aix_libpath_sed='
11627 /Import File Strings/,/^$/ {
11628 /^0/ {
11629 s/^0 *\(.*\)$/\1/
11633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11634 # Check for a 64-bit object if we didn't find anything.
11635 if test -z "$aix_libpath"; then
11636 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11638 else
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11645 rm -rf conftest.dSYM
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647 conftest$ac_exeext conftest.$ac_ext
11648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11650 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11652 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"
11653 else
11654 if test "$host_cpu" = ia64; then
11655 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11656 allow_undefined_flag_CXX="-z nodefs"
11657 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"
11658 else
11659 # Determine the default libpath from the value encoded in an empty executable.
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11668 main ()
11672 return 0;
11674 _ACEOF
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (ac_try="$ac_link"
11677 case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680 esac
11681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11682 $as_echo "$ac_try_echo") >&5
11683 (eval "$ac_link") 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_cxx_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest$ac_exeext && {
11693 test "$cross_compiling" = yes ||
11694 $as_test_x conftest$ac_exeext
11695 }; then
11697 lt_aix_libpath_sed='
11698 /Import File Strings/,/^$/ {
11699 /^0/ {
11700 s/^0 *\(.*\)$/\1/
11704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11705 # Check for a 64-bit object if we didn't find anything.
11706 if test -z "$aix_libpath"; then
11707 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11709 else
11710 $as_echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11716 rm -rf conftest.dSYM
11717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11718 conftest$ac_exeext conftest.$ac_ext
11719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11721 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11722 # Warning - without using the other run time loading flags,
11723 # -berok will link without error, but may produce a broken library.
11724 no_undefined_flag_CXX=' ${wl}-bernotok'
11725 allow_undefined_flag_CXX=' ${wl}-berok'
11726 # Exported symbols can be pulled into shared objects from archives
11727 whole_archive_flag_spec_CXX='$convenience'
11728 archive_cmds_need_lc_CXX=yes
11729 # This is similar to how AIX traditionally builds its shared libraries.
11730 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'
11735 beos*)
11736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11737 allow_undefined_flag_CXX=unsupported
11738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11739 # support --undefined. This deserves some investigation. FIXME
11740 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11741 else
11742 ld_shlibs_CXX=no
11746 chorus*)
11747 case $cc_basename in
11749 # FIXME: insert proper C++ library support
11750 ld_shlibs_CXX=no
11752 esac
11755 cygwin* | mingw* | pw32*)
11756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11757 # as there is no search path for DLLs.
11758 hardcode_libdir_flag_spec_CXX='-L$libdir'
11759 allow_undefined_flag_CXX=unsupported
11760 always_export_symbols_CXX=no
11761 enable_shared_with_static_runtimes_CXX=yes
11763 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11764 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'
11765 # If the export-symbols file already is a .def file (1st line
11766 # is EXPORTS), use it as is; otherwise, prepend...
11767 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11768 cp $export_symbols $output_objdir/$soname.def;
11769 else
11770 echo EXPORTS > $output_objdir/$soname.def;
11771 cat $export_symbols >> $output_objdir/$soname.def;
11773 $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'
11774 else
11775 ld_shlibs_CXX=no
11778 darwin* | rhapsody*)
11779 archive_cmds_need_lc_CXX=no
11780 hardcode_direct_CXX=no
11781 hardcode_automatic_CXX=yes
11782 hardcode_shlibpath_var_CXX=unsupported
11783 whole_archive_flag_spec_CXX=''
11784 link_all_deplibs_CXX=yes
11785 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11786 if test "$GXX" = yes ; then
11787 output_verbose_link_cmd='echo'
11788 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11789 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11790 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11791 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11792 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11793 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${_lt_dsymutil}"
11794 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11796 else
11797 case $cc_basename in
11798 xlc*)
11799 output_verbose_link_cmd='echo'
11800 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11801 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11803 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11804 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}'
11807 ld_shlibs_CXX=no
11809 esac
11813 dgux*)
11814 case $cc_basename in
11815 ec++*)
11816 # FIXME: insert proper C++ library support
11817 ld_shlibs_CXX=no
11819 ghcx*)
11820 # Green Hills C++ Compiler
11821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
11825 # FIXME: insert proper C++ library support
11826 ld_shlibs_CXX=no
11828 esac
11830 freebsd[12]*)
11831 # C++ shared libraries reported to be fairly broken before switch to ELF
11832 ld_shlibs_CXX=no
11834 freebsd-elf*)
11835 archive_cmds_need_lc_CXX=no
11837 freebsd* | dragonfly*)
11838 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11839 # conventions
11840 ld_shlibs_CXX=yes
11842 gnu*)
11844 hpux9*)
11845 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11846 hardcode_libdir_separator_CXX=:
11847 export_dynamic_flag_spec_CXX='${wl}-E'
11848 hardcode_direct_CXX=yes
11849 hardcode_minus_L_CXX=yes # Not in the search PATH,
11850 # but as the default
11851 # location of the library.
11853 case $cc_basename in
11854 CC*)
11855 # FIXME: insert proper C++ library support
11856 ld_shlibs_CXX=no
11858 aCC*)
11859 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'
11860 # Commands to make compiler produce verbose output that lists
11861 # what "hidden" libraries, object files and flags are used when
11862 # linking a shared library.
11864 # There doesn't appear to be a way to prevent this compiler from
11865 # explicitly linking system object files so we need to strip them
11866 # from the output so that they don't get included in the library
11867 # dependencies.
11868 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'
11871 if test "$GXX" = yes; then
11872 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'
11873 else
11874 # FIXME: insert proper C++ library support
11875 ld_shlibs_CXX=no
11878 esac
11880 hpux10*|hpux11*)
11881 if test $with_gnu_ld = no; then
11882 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11883 hardcode_libdir_separator_CXX=:
11885 case $host_cpu in
11886 hppa*64*|ia64*) ;;
11888 export_dynamic_flag_spec_CXX='${wl}-E'
11890 esac
11892 case $host_cpu in
11893 hppa*64*|ia64*)
11894 hardcode_direct_CXX=no
11895 hardcode_shlibpath_var_CXX=no
11898 hardcode_direct_CXX=yes
11899 hardcode_minus_L_CXX=yes # Not in the search PATH,
11900 # but as the default
11901 # location of the library.
11903 esac
11905 case $cc_basename in
11906 CC*)
11907 # FIXME: insert proper C++ library support
11908 ld_shlibs_CXX=no
11910 aCC*)
11911 case $host_cpu in
11912 hppa*64*)
11913 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11915 ia64*)
11916 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11919 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11921 esac
11922 # Commands to make compiler produce verbose output that lists
11923 # what "hidden" libraries, object files and flags are used when
11924 # linking a shared library.
11926 # There doesn't appear to be a way to prevent this compiler from
11927 # explicitly linking system object files so we need to strip them
11928 # from the output so that they don't get included in the library
11929 # dependencies.
11930 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'
11933 if test "$GXX" = yes; then
11934 if test $with_gnu_ld = no; then
11935 case $host_cpu in
11936 hppa*64*)
11937 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11939 ia64*)
11940 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11943 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'
11945 esac
11947 else
11948 # FIXME: insert proper C++ library support
11949 ld_shlibs_CXX=no
11952 esac
11954 interix[3-9]*)
11955 hardcode_direct_CXX=no
11956 hardcode_shlibpath_var_CXX=no
11957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11958 export_dynamic_flag_spec_CXX='${wl}-E'
11959 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11960 # Instead, shared libraries are loaded at an image base (0x10000000 by
11961 # default) and relocated if they conflict, which is a slow very memory
11962 # consuming and fragmenting process. To avoid this, we pick a random,
11963 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11964 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11965 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'
11966 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'
11968 irix5* | irix6*)
11969 case $cc_basename in
11970 CC*)
11971 # SGI C++
11972 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'
11974 # Archives containing C++ object files must be created using
11975 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11976 # necessary to make sure instantiated templates are included
11977 # in the archive.
11978 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11981 if test "$GXX" = yes; then
11982 if test "$with_gnu_ld" = no; then
11983 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'
11984 else
11985 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'
11988 link_all_deplibs_CXX=yes
11990 esac
11991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11992 hardcode_libdir_separator_CXX=:
11994 linux* | k*bsd*-gnu)
11995 case $cc_basename in
11996 KCC*)
11997 # Kuck and Associates, Inc. (KAI) C++ Compiler
11999 # KCC will only create a shared library if the output file
12000 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12001 # to its proper name (with version) after linking.
12002 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'
12003 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'
12004 # Commands to make compiler produce verbose output that lists
12005 # what "hidden" libraries, object files and flags are used when
12006 # linking a shared library.
12008 # There doesn't appear to be a way to prevent this compiler from
12009 # explicitly linking system object files so we need to strip them
12010 # from the output so that they don't get included in the library
12011 # dependencies.
12012 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'
12014 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12015 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12017 # Archives containing C++ object files must be created using
12018 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12019 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12021 icpc*)
12022 # Intel C++
12023 with_gnu_ld=yes
12024 # version 8.0 and above of icpc choke on multiply defined symbols
12025 # if we add $predep_objects and $postdep_objects, however 7.1 and
12026 # earlier do not add the objects themselves.
12027 case `$CC -V 2>&1` in
12028 *"Version 7."*)
12029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12030 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'
12032 *) # Version 8.0 or newer
12033 tmp_idyn=
12034 case $host_cpu in
12035 ia64*) tmp_idyn=' -i_dynamic';;
12036 esac
12037 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12038 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'
12040 esac
12041 archive_cmds_need_lc_CXX=no
12042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12043 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12044 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12046 pgCC* | pgcpp*)
12047 # Portland Group C++ compiler
12048 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12049 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'
12051 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12053 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'
12055 cxx*)
12056 # Compaq C++
12057 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12058 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'
12060 runpath_var=LD_RUN_PATH
12061 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12062 hardcode_libdir_separator_CXX=:
12064 # Commands to make compiler produce verbose output that lists
12065 # what "hidden" libraries, object files and flags are used when
12066 # linking a shared library.
12068 # There doesn't appear to be a way to prevent this compiler from
12069 # explicitly linking system object files so we need to strip them
12070 # from the output so that they don't get included in the library
12071 # dependencies.
12072 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'
12075 case `$CC -V 2>&1 | sed 5q` in
12076 *Sun\ C*)
12077 # Sun C++ 5.9
12078 no_undefined_flag_CXX=' -zdefs'
12079 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12080 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12081 hardcode_libdir_flag_spec_CXX='-R$libdir'
12082 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12084 # Not sure whether something based on
12085 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12086 # would be better.
12087 output_verbose_link_cmd='echo'
12089 # Archives containing C++ object files must be created using
12090 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12091 # necessary to make sure instantiated templates are included
12092 # in the archive.
12093 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12095 esac
12097 esac
12099 lynxos*)
12100 # FIXME: insert proper C++ library support
12101 ld_shlibs_CXX=no
12103 m88k*)
12104 # FIXME: insert proper C++ library support
12105 ld_shlibs_CXX=no
12107 mvs*)
12108 case $cc_basename in
12109 cxx*)
12110 # FIXME: insert proper C++ library support
12111 ld_shlibs_CXX=no
12114 # FIXME: insert proper C++ library support
12115 ld_shlibs_CXX=no
12117 esac
12119 netbsd*)
12120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12121 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12122 wlarc=
12123 hardcode_libdir_flag_spec_CXX='-R$libdir'
12124 hardcode_direct_CXX=yes
12125 hardcode_shlibpath_var_CXX=no
12127 # Workaround some broken pre-1.5 toolchains
12128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12130 openbsd2*)
12131 # C++ shared libraries are fairly broken
12132 ld_shlibs_CXX=no
12134 openbsd*)
12135 if test -f /usr/libexec/ld.so; then
12136 hardcode_direct_CXX=yes
12137 hardcode_shlibpath_var_CXX=no
12138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12139 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12141 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12142 export_dynamic_flag_spec_CXX='${wl}-E'
12143 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12145 output_verbose_link_cmd='echo'
12146 else
12147 ld_shlibs_CXX=no
12150 osf3*)
12151 case $cc_basename in
12152 KCC*)
12153 # Kuck and Associates, Inc. (KAI) C++ Compiler
12155 # KCC will only create a shared library if the output file
12156 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12157 # to its proper name (with version) after linking.
12158 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'
12160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12161 hardcode_libdir_separator_CXX=:
12163 # Archives containing C++ object files must be created using
12164 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12165 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12168 RCC*)
12169 # Rational C++ 2.4.1
12170 # FIXME: insert proper C++ library support
12171 ld_shlibs_CXX=no
12173 cxx*)
12174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12175 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'
12177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12178 hardcode_libdir_separator_CXX=:
12180 # Commands to make compiler produce verbose output that lists
12181 # what "hidden" libraries, object files and flags are used when
12182 # linking a shared library.
12184 # There doesn't appear to be a way to prevent this compiler from
12185 # explicitly linking system object files so we need to strip them
12186 # from the output so that they don't get included in the library
12187 # dependencies.
12188 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'
12191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12193 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'
12195 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12196 hardcode_libdir_separator_CXX=:
12198 # Commands to make compiler produce verbose output that lists
12199 # what "hidden" libraries, object files and flags are used when
12200 # linking a shared library.
12201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12203 else
12204 # FIXME: insert proper C++ library support
12205 ld_shlibs_CXX=no
12208 esac
12210 osf4* | osf5*)
12211 case $cc_basename in
12212 KCC*)
12213 # Kuck and Associates, Inc. (KAI) C++ Compiler
12215 # KCC will only create a shared library if the output file
12216 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12217 # to its proper name (with version) after linking.
12218 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'
12220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12221 hardcode_libdir_separator_CXX=:
12223 # Archives containing C++ object files must be created using
12224 # the KAI C++ compiler.
12225 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12227 RCC*)
12228 # Rational C++ 2.4.1
12229 # FIXME: insert proper C++ library support
12230 ld_shlibs_CXX=no
12232 cxx*)
12233 allow_undefined_flag_CXX=' -expect_unresolved \*'
12234 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'
12235 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12236 echo "-hidden">> $lib.exp~
12237 $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~
12238 $rm $lib.exp'
12240 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12241 hardcode_libdir_separator_CXX=:
12243 # Commands to make compiler produce verbose output that lists
12244 # what "hidden" libraries, object files and flags are used when
12245 # linking a shared library.
12247 # There doesn't appear to be a way to prevent this compiler from
12248 # explicitly linking system object files so we need to strip them
12249 # from the output so that they don't get included in the library
12250 # dependencies.
12251 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'
12254 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12256 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'
12258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12259 hardcode_libdir_separator_CXX=:
12261 # Commands to make compiler produce verbose output that lists
12262 # what "hidden" libraries, object files and flags are used when
12263 # linking a shared library.
12264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12266 else
12267 # FIXME: insert proper C++ library support
12268 ld_shlibs_CXX=no
12271 esac
12273 psos*)
12274 # FIXME: insert proper C++ library support
12275 ld_shlibs_CXX=no
12277 sunos4*)
12278 case $cc_basename in
12279 CC*)
12280 # Sun C++ 4.x
12281 # FIXME: insert proper C++ library support
12282 ld_shlibs_CXX=no
12284 lcc*)
12285 # Lucid
12286 # FIXME: insert proper C++ library support
12287 ld_shlibs_CXX=no
12290 # FIXME: insert proper C++ library support
12291 ld_shlibs_CXX=no
12293 esac
12295 solaris*)
12296 case $cc_basename in
12297 CC*)
12298 # Sun C++ 4.2, 5.x and Centerline C++
12299 archive_cmds_need_lc_CXX=yes
12300 no_undefined_flag_CXX=' -zdefs'
12301 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12303 $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'
12305 hardcode_libdir_flag_spec_CXX='-R$libdir'
12306 hardcode_shlibpath_var_CXX=no
12307 case $host_os in
12308 solaris2.[0-5] | solaris2.[0-5].*) ;;
12310 # The compiler driver will combine and reorder linker options,
12311 # but understands `-z linker_flag'.
12312 # Supported since Solaris 2.6 (maybe 2.5.1?)
12313 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12315 esac
12316 link_all_deplibs_CXX=yes
12318 output_verbose_link_cmd='echo'
12320 # Archives containing C++ object files must be created using
12321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12322 # necessary to make sure instantiated templates are included
12323 # in the archive.
12324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12326 gcx*)
12327 # Green Hills C++ Compiler
12328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12330 # The C++ compiler must be used to create the archive.
12331 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12334 # GNU C++ compiler with Solaris linker
12335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12336 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12337 if $CC --version | grep -v '^2\.7' > /dev/null; then
12338 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12339 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12340 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12342 # Commands to make compiler produce verbose output that lists
12343 # what "hidden" libraries, object files and flags are used when
12344 # linking a shared library.
12345 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12346 else
12347 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12348 # platform.
12349 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12350 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12351 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12353 # Commands to make compiler produce verbose output that lists
12354 # what "hidden" libraries, object files and flags are used when
12355 # linking a shared library.
12356 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12359 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12360 case $host_os in
12361 solaris2.[0-5] | solaris2.[0-5].*) ;;
12363 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12365 esac
12368 esac
12370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12371 no_undefined_flag_CXX='${wl}-z,text'
12372 archive_cmds_need_lc_CXX=no
12373 hardcode_shlibpath_var_CXX=no
12374 runpath_var='LD_RUN_PATH'
12376 case $cc_basename in
12377 CC*)
12378 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12379 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12382 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12383 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12385 esac
12387 sysv5* | sco3.2v5* | sco5v6*)
12388 # Note: We can NOT use -z defs as we might desire, because we do not
12389 # link with -lc, and that would cause any symbols used from libc to
12390 # always be unresolved, which means just about no library would
12391 # ever link correctly. If we're not using GNU ld we use -z text
12392 # though, which does catch some bad symbols but isn't as heavy-handed
12393 # as -z defs.
12394 # For security reasons, it is highly recommended that you always
12395 # use absolute paths for naming shared libraries, and exclude the
12396 # DT_RUNPATH tag from executables and libraries. But doing so
12397 # requires that you compile everything twice, which is a pain.
12398 # So that behaviour is only enabled if SCOABSPATH is set to a
12399 # non-empty value in the environment. Most likely only useful for
12400 # creating official distributions of packages.
12401 # This is a hack until libtool officially supports absolute path
12402 # names for shared libraries.
12403 no_undefined_flag_CXX='${wl}-z,text'
12404 allow_undefined_flag_CXX='${wl}-z,nodefs'
12405 archive_cmds_need_lc_CXX=no
12406 hardcode_shlibpath_var_CXX=no
12407 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12408 hardcode_libdir_separator_CXX=':'
12409 link_all_deplibs_CXX=yes
12410 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12411 runpath_var='LD_RUN_PATH'
12413 case $cc_basename in
12414 CC*)
12415 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12416 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12419 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12420 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12422 esac
12424 tandem*)
12425 case $cc_basename in
12426 NCC*)
12427 # NonStop-UX NCC 3.20
12428 # FIXME: insert proper C++ library support
12429 ld_shlibs_CXX=no
12432 # FIXME: insert proper C++ library support
12433 ld_shlibs_CXX=no
12435 esac
12437 vxworks*)
12438 # FIXME: insert proper C++ library support
12439 ld_shlibs_CXX=no
12442 # FIXME: insert proper C++ library support
12443 ld_shlibs_CXX=no
12445 esac
12446 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12447 $as_echo "$ld_shlibs_CXX" >&6; }
12448 test "$ld_shlibs_CXX" = no && can_build_shared=no
12450 GCC_CXX="$GXX"
12451 LD_CXX="$LD"
12453 cat > conftest.$ac_ext <<EOF
12454 class Foo
12456 public:
12457 Foo (void) { a = 0; }
12458 private:
12459 int a;
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464 (eval $ac_compile) 2>&5
12465 ac_status=$?
12466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; then
12468 # Parse the compiler output and extract the necessary
12469 # objects, libraries and library flags.
12471 # Sentinel used to keep track of whether or not we are before
12472 # the conftest object file.
12473 pre_test_object_deps_done=no
12475 # The `*' in the case matches for architectures that use `case' in
12476 # $output_verbose_cmd can trigger glob expansion during the loop
12477 # eval without this substitution.
12478 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12480 for p in `eval $output_verbose_link_cmd`; do
12481 case $p in
12483 -L* | -R* | -l*)
12484 # Some compilers place space between "-{L,R}" and the path.
12485 # Remove the space.
12486 if test $p = "-L" \
12487 || test $p = "-R"; then
12488 prev=$p
12489 continue
12490 else
12491 prev=
12494 if test "$pre_test_object_deps_done" = no; then
12495 case $p in
12496 -L* | -R*)
12497 # Internal compiler library paths should come after those
12498 # provided the user. The postdeps already come after the
12499 # user supplied libs so there is no need to process them.
12500 if test -z "$compiler_lib_search_path_CXX"; then
12501 compiler_lib_search_path_CXX="${prev}${p}"
12502 else
12503 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12506 # The "-l" case would never come before the object being
12507 # linked, so don't bother handling this case.
12508 esac
12509 else
12510 if test -z "$postdeps_CXX"; then
12511 postdeps_CXX="${prev}${p}"
12512 else
12513 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12518 *.$objext)
12519 # This assumes that the test object file only shows up
12520 # once in the compiler output.
12521 if test "$p" = "conftest.$objext"; then
12522 pre_test_object_deps_done=yes
12523 continue
12526 if test "$pre_test_object_deps_done" = no; then
12527 if test -z "$predep_objects_CXX"; then
12528 predep_objects_CXX="$p"
12529 else
12530 predep_objects_CXX="$predep_objects_CXX $p"
12532 else
12533 if test -z "$postdep_objects_CXX"; then
12534 postdep_objects_CXX="$p"
12535 else
12536 postdep_objects_CXX="$postdep_objects_CXX $p"
12541 *) ;; # Ignore the rest.
12543 esac
12544 done
12546 # Clean up.
12547 rm -f a.out a.exe
12548 else
12549 echo "libtool.m4: error: problem compiling CXX test program"
12552 $rm -f confest.$objext
12554 compiler_lib_search_dirs_CXX=
12555 if test -n "$compiler_lib_search_path_CXX"; then
12556 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12559 # PORTME: override above test on systems where it is broken
12560 case $host_os in
12561 interix[3-9]*)
12562 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12563 # hack all around it, let's just trust "g++" to DTRT.
12564 predep_objects_CXX=
12565 postdep_objects_CXX=
12566 postdeps_CXX=
12569 linux*)
12570 case `$CC -V 2>&1 | sed 5q` in
12571 *Sun\ C*)
12572 # Sun C++ 5.9
12574 # The more standards-conforming stlport4 library is
12575 # incompatible with the Cstd library. Avoid specifying
12576 # it if it's in CXXFLAGS. Ignore libCrun as
12577 # -library=stlport4 depends on it.
12578 case " $CXX $CXXFLAGS " in
12579 *" -library=stlport4 "*)
12580 solaris_use_stlport4=yes
12582 esac
12583 if test "$solaris_use_stlport4" != yes; then
12584 postdeps_CXX='-library=Cstd -library=Crun'
12587 esac
12590 solaris*)
12591 case $cc_basename in
12592 CC*)
12593 # The more standards-conforming stlport4 library is
12594 # incompatible with the Cstd library. Avoid specifying
12595 # it if it's in CXXFLAGS. Ignore libCrun as
12596 # -library=stlport4 depends on it.
12597 case " $CXX $CXXFLAGS " in
12598 *" -library=stlport4 "*)
12599 solaris_use_stlport4=yes
12601 esac
12603 # Adding this requires a known-good setup of shared libraries for
12604 # Sun compiler versions before 5.6, else PIC objects from an old
12605 # archive will be linked into the output, leading to subtle bugs.
12606 if test "$solaris_use_stlport4" != yes; then
12607 postdeps_CXX='-library=Cstd -library=Crun'
12610 esac
12612 esac
12614 case " $postdeps_CXX " in
12615 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12616 esac
12618 lt_prog_compiler_wl_CXX=
12619 lt_prog_compiler_pic_CXX=
12620 lt_prog_compiler_static_CXX=
12622 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12623 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12625 # C++ specific cases for pic, static, wl, etc.
12626 if test "$GXX" = yes; then
12627 lt_prog_compiler_wl_CXX='-Wl,'
12628 lt_prog_compiler_static_CXX='-static'
12630 case $host_os in
12631 aix*)
12632 # All AIX code is PIC.
12633 if test "$host_cpu" = ia64; then
12634 # AIX 5 now supports IA64 processor
12635 lt_prog_compiler_static_CXX='-Bstatic'
12638 amigaos*)
12639 # FIXME: we need at least 68020 code to build shared libraries, but
12640 # adding the `-m68020' flag to GCC prevents building anything better,
12641 # like `-m68040'.
12642 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12644 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12645 # PIC is the default for these OSes.
12647 mingw* | cygwin* | os2* | pw32*)
12648 # This hack is so that the source file can tell whether it is being
12649 # built for inclusion in a dll (and should export symbols for example).
12650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12651 # (--disable-auto-import) libraries
12652 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12654 darwin* | rhapsody*)
12655 # PIC is the default on this platform
12656 # Common symbols not allowed in MH_DYLIB files
12657 lt_prog_compiler_pic_CXX='-fno-common'
12659 *djgpp*)
12660 # DJGPP does not support shared libraries at all
12661 lt_prog_compiler_pic_CXX=
12663 interix[3-9]*)
12664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12665 # Instead, we relocate shared libraries at runtime.
12667 sysv4*MP*)
12668 if test -d /usr/nec; then
12669 lt_prog_compiler_pic_CXX=-Kconform_pic
12672 hpux*)
12673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12674 # not for PA HP-UX.
12675 case $host_cpu in
12676 hppa*64*|ia64*)
12679 lt_prog_compiler_pic_CXX='-fPIC'
12681 esac
12684 lt_prog_compiler_pic_CXX='-fPIC'
12686 esac
12687 else
12688 case $host_os in
12689 aix[4-9]*)
12690 # All AIX code is PIC.
12691 if test "$host_cpu" = ia64; then
12692 # AIX 5 now supports IA64 processor
12693 lt_prog_compiler_static_CXX='-Bstatic'
12694 else
12695 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12698 chorus*)
12699 case $cc_basename in
12700 cxch68*)
12701 # Green Hills C++ Compiler
12702 # _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"
12704 esac
12706 darwin*)
12707 # PIC is the default on this platform
12708 # Common symbols not allowed in MH_DYLIB files
12709 case $cc_basename in
12710 xlc*)
12711 lt_prog_compiler_pic_CXX='-qnocommon'
12712 lt_prog_compiler_wl_CXX='-Wl,'
12714 esac
12716 dgux*)
12717 case $cc_basename in
12718 ec++*)
12719 lt_prog_compiler_pic_CXX='-KPIC'
12721 ghcx*)
12722 # Green Hills C++ Compiler
12723 lt_prog_compiler_pic_CXX='-pic'
12727 esac
12729 freebsd* | dragonfly*)
12730 # FreeBSD uses GNU C++
12732 hpux9* | hpux10* | hpux11*)
12733 case $cc_basename in
12734 CC*)
12735 lt_prog_compiler_wl_CXX='-Wl,'
12736 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12737 if test "$host_cpu" != ia64; then
12738 lt_prog_compiler_pic_CXX='+Z'
12741 aCC*)
12742 lt_prog_compiler_wl_CXX='-Wl,'
12743 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12744 case $host_cpu in
12745 hppa*64*|ia64*)
12746 # +Z the default
12749 lt_prog_compiler_pic_CXX='+Z'
12751 esac
12755 esac
12757 interix*)
12758 # This is c89, which is MS Visual C++ (no shared libs)
12759 # Anyone wants to do a port?
12761 irix5* | irix6* | nonstopux*)
12762 case $cc_basename in
12763 CC*)
12764 lt_prog_compiler_wl_CXX='-Wl,'
12765 lt_prog_compiler_static_CXX='-non_shared'
12766 # CC pic flag -KPIC is the default.
12770 esac
12772 linux* | k*bsd*-gnu)
12773 case $cc_basename in
12774 KCC*)
12775 # KAI C++ Compiler
12776 lt_prog_compiler_wl_CXX='--backend -Wl,'
12777 lt_prog_compiler_pic_CXX='-fPIC'
12779 icpc* | ecpc*)
12780 # Intel C++
12781 lt_prog_compiler_wl_CXX='-Wl,'
12782 lt_prog_compiler_pic_CXX='-KPIC'
12783 lt_prog_compiler_static_CXX='-static'
12785 pgCC* | pgcpp*)
12786 # Portland Group C++ compiler.
12787 lt_prog_compiler_wl_CXX='-Wl,'
12788 lt_prog_compiler_pic_CXX='-fpic'
12789 lt_prog_compiler_static_CXX='-Bstatic'
12791 cxx*)
12792 # Compaq C++
12793 # Make sure the PIC flag is empty. It appears that all Alpha
12794 # Linux and Compaq Tru64 Unix objects are PIC.
12795 lt_prog_compiler_pic_CXX=
12796 lt_prog_compiler_static_CXX='-non_shared'
12799 case `$CC -V 2>&1 | sed 5q` in
12800 *Sun\ C*)
12801 # Sun C++ 5.9
12802 lt_prog_compiler_pic_CXX='-KPIC'
12803 lt_prog_compiler_static_CXX='-Bstatic'
12804 lt_prog_compiler_wl_CXX='-Qoption ld '
12806 esac
12808 esac
12810 lynxos*)
12812 m88k*)
12814 mvs*)
12815 case $cc_basename in
12816 cxx*)
12817 lt_prog_compiler_pic_CXX='-W c,exportall'
12821 esac
12823 netbsd*)
12825 osf3* | osf4* | osf5*)
12826 case $cc_basename in
12827 KCC*)
12828 lt_prog_compiler_wl_CXX='--backend -Wl,'
12830 RCC*)
12831 # Rational C++ 2.4.1
12832 lt_prog_compiler_pic_CXX='-pic'
12834 cxx*)
12835 # Digital/Compaq C++
12836 lt_prog_compiler_wl_CXX='-Wl,'
12837 # Make sure the PIC flag is empty. It appears that all Alpha
12838 # Linux and Compaq Tru64 Unix objects are PIC.
12839 lt_prog_compiler_pic_CXX=
12840 lt_prog_compiler_static_CXX='-non_shared'
12844 esac
12846 psos*)
12848 solaris*)
12849 case $cc_basename in
12850 CC*)
12851 # Sun C++ 4.2, 5.x and Centerline C++
12852 lt_prog_compiler_pic_CXX='-KPIC'
12853 lt_prog_compiler_static_CXX='-Bstatic'
12854 lt_prog_compiler_wl_CXX='-Qoption ld '
12856 gcx*)
12857 # Green Hills C++ Compiler
12858 lt_prog_compiler_pic_CXX='-PIC'
12862 esac
12864 sunos4*)
12865 case $cc_basename in
12866 CC*)
12867 # Sun C++ 4.x
12868 lt_prog_compiler_pic_CXX='-pic'
12869 lt_prog_compiler_static_CXX='-Bstatic'
12871 lcc*)
12872 # Lucid
12873 lt_prog_compiler_pic_CXX='-pic'
12877 esac
12879 tandem*)
12880 case $cc_basename in
12881 NCC*)
12882 # NonStop-UX NCC 3.20
12883 lt_prog_compiler_pic_CXX='-KPIC'
12887 esac
12889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12890 case $cc_basename in
12891 CC*)
12892 lt_prog_compiler_wl_CXX='-Wl,'
12893 lt_prog_compiler_pic_CXX='-KPIC'
12894 lt_prog_compiler_static_CXX='-Bstatic'
12896 esac
12898 vxworks*)
12901 lt_prog_compiler_can_build_shared_CXX=no
12903 esac
12906 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12907 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12910 # Check to make sure the PIC flag actually works.
12912 if test -n "$lt_prog_compiler_pic_CXX"; then
12914 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12915 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12916 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12917 $as_echo_n "(cached) " >&6
12918 else
12919 lt_cv_prog_compiler_pic_works_CXX=no
12920 ac_outfile=conftest.$ac_objext
12921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12922 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12923 # Insert the option either (1) after the last *FLAGS variable, or
12924 # (2) before a word containing "conftest.", or (3) at the end.
12925 # Note that $ac_compile itself does not contain backslashes and begins
12926 # with a dollar sign (not a hyphen), so the echo should work correctly.
12927 # The option is referenced via a variable to avoid confusing sed.
12928 lt_compile=`echo "$ac_compile" | $SED \
12929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12931 -e 's:$: $lt_compiler_flag:'`
12932 (eval echo "\"\$as_me:12932: $lt_compile\"" >&5)
12933 (eval "$lt_compile" 2>conftest.err)
12934 ac_status=$?
12935 cat conftest.err >&5
12936 echo "$as_me:12936: \$? = $ac_status" >&5
12937 if (exit $ac_status) && test -s "$ac_outfile"; then
12938 # The compiler can only warn and ignore the option if not recognized
12939 # So say no if there are warnings other than the usual output.
12940 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12943 lt_cv_prog_compiler_pic_works_CXX=yes
12946 $rm conftest*
12949 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12950 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12952 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12953 case $lt_prog_compiler_pic_CXX in
12954 "" | " "*) ;;
12955 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12956 esac
12957 else
12958 lt_prog_compiler_pic_CXX=
12959 lt_prog_compiler_can_build_shared_CXX=no
12963 case $host_os in
12964 # For platforms which do not support PIC, -DPIC is meaningless:
12965 *djgpp*)
12966 lt_prog_compiler_pic_CXX=
12969 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12971 esac
12974 # Check to make sure the static flag actually works.
12976 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12977 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12979 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12980 $as_echo_n "(cached) " >&6
12981 else
12982 lt_cv_prog_compiler_static_works_CXX=no
12983 save_LDFLAGS="$LDFLAGS"
12984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12987 # The linker can only warn and ignore the option if not recognized
12988 # So say no if there are warnings
12989 if test -s conftest.err; then
12990 # Append any errors to the config.log.
12991 cat conftest.err 1>&5
12992 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12994 if diff conftest.exp conftest.er2 >/dev/null; then
12995 lt_cv_prog_compiler_static_works_CXX=yes
12997 else
12998 lt_cv_prog_compiler_static_works_CXX=yes
13001 $rm -r conftest*
13002 LDFLAGS="$save_LDFLAGS"
13005 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13006 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13008 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13010 else
13011 lt_prog_compiler_static_CXX=
13015 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13017 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13018 $as_echo_n "(cached) " >&6
13019 else
13020 lt_cv_prog_compiler_c_o_CXX=no
13021 $rm -r conftest 2>/dev/null
13022 mkdir conftest
13023 cd conftest
13024 mkdir out
13025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13027 lt_compiler_flag="-o out/conftest2.$ac_objext"
13028 # Insert the option either (1) after the last *FLAGS variable, or
13029 # (2) before a word containing "conftest.", or (3) at the end.
13030 # Note that $ac_compile itself does not contain backslashes and begins
13031 # with a dollar sign (not a hyphen), so the echo should work correctly.
13032 lt_compile=`echo "$ac_compile" | $SED \
13033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13035 -e 's:$: $lt_compiler_flag:'`
13036 (eval echo "\"\$as_me:13036: $lt_compile\"" >&5)
13037 (eval "$lt_compile" 2>out/conftest.err)
13038 ac_status=$?
13039 cat out/conftest.err >&5
13040 echo "$as_me:13040: \$? = $ac_status" >&5
13041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13042 then
13043 # The compiler can only warn and ignore the option if not recognized
13044 # So say no if there are warnings
13045 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13048 lt_cv_prog_compiler_c_o_CXX=yes
13051 chmod u+w . 2>&5
13052 $rm conftest*
13053 # SGI C++ compiler will create directory out/ii_files/ for
13054 # template instantiation
13055 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13056 $rm out/* && rmdir out
13057 cd ..
13058 rmdir conftest
13059 $rm conftest*
13062 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13063 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13066 hard_links="nottested"
13067 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13068 # do not overwrite the value of need_locks provided by the user
13069 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13070 $as_echo_n "checking if we can lock with hard links... " >&6; }
13071 hard_links=yes
13072 $rm conftest*
13073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13074 touch conftest.a
13075 ln conftest.a conftest.b 2>&5 || hard_links=no
13076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13077 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13078 $as_echo "$hard_links" >&6; }
13079 if test "$hard_links" = no; then
13080 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13081 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13082 need_locks=warn
13084 else
13085 need_locks=no
13088 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13091 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13092 case $host_os in
13093 aix[4-9]*)
13094 # If we're using GNU nm, then we don't want the "-C" option.
13095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13096 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13097 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'
13098 else
13099 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'
13102 pw32*)
13103 export_symbols_cmds_CXX="$ltdll_cmds"
13105 cygwin* | mingw*)
13106 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'
13109 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13111 esac
13112 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13114 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13115 $as_echo "$ld_shlibs_CXX" >&6; }
13116 test "$ld_shlibs_CXX" = no && can_build_shared=no
13119 # Do we need to explicitly link libc?
13121 case "x$archive_cmds_need_lc_CXX" in
13122 x|xyes)
13123 # Assume -lc should be added
13124 archive_cmds_need_lc_CXX=yes
13126 if test "$enable_shared" = yes && test "$GCC" = yes; then
13127 case $archive_cmds_CXX in
13128 *'~'*)
13129 # FIXME: we may have to deal with multi-command sequences.
13131 '$CC '*)
13132 # Test whether the compiler implicitly links with -lc since on some
13133 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13134 # to ld, don't add -lc before -lgcc.
13135 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13136 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13137 $rm conftest*
13138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13141 (eval $ac_compile) 2>&5
13142 ac_status=$?
13143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } 2>conftest.err; then
13145 soname=conftest
13146 lib=conftest
13147 libobjs=conftest.$ac_objext
13148 deplibs=
13149 wl=$lt_prog_compiler_wl_CXX
13150 pic_flag=$lt_prog_compiler_pic_CXX
13151 compiler_flags=-v
13152 linker_flags=-v
13153 verstring=
13154 output_objdir=.
13155 libname=conftest
13156 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13157 allow_undefined_flag_CXX=
13158 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13159 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13160 ac_status=$?
13161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }
13163 then
13164 archive_cmds_need_lc_CXX=no
13165 else
13166 archive_cmds_need_lc_CXX=yes
13168 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13169 else
13170 cat conftest.err 1>&5
13172 $rm conftest*
13173 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13174 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13176 esac
13179 esac
13181 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13182 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13183 library_names_spec=
13184 libname_spec='lib$name'
13185 soname_spec=
13186 shrext_cmds=".so"
13187 postinstall_cmds=
13188 postuninstall_cmds=
13189 finish_cmds=
13190 finish_eval=
13191 shlibpath_var=
13192 shlibpath_overrides_runpath=unknown
13193 version_type=none
13194 dynamic_linker="$host_os ld.so"
13195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13197 need_lib_prefix=unknown
13198 hardcode_into_libs=no
13200 # when you set need_version to no, make sure it does not cause -set_version
13201 # flags to be left without arguments
13202 need_version=unknown
13204 case $host_os in
13205 aix3*)
13206 version_type=linux
13207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13208 shlibpath_var=LIBPATH
13210 # AIX 3 has no versioning support, so we append a major version to the name.
13211 soname_spec='${libname}${release}${shared_ext}$major'
13214 aix[4-9]*)
13215 version_type=linux
13216 need_lib_prefix=no
13217 need_version=no
13218 hardcode_into_libs=yes
13219 if test "$host_cpu" = ia64; then
13220 # AIX 5 supports IA64
13221 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 else
13224 # With GCC up to 2.95.x, collect2 would create an import file
13225 # for dependence libraries. The import file would start with
13226 # the line `#! .'. This would cause the generated library to
13227 # depend on `.', always an invalid library. This was fixed in
13228 # development snapshots of GCC prior to 3.0.
13229 case $host_os in
13230 aix4 | aix4.[01] | aix4.[01].*)
13231 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13232 echo ' yes '
13233 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13235 else
13236 can_build_shared=no
13239 esac
13240 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13241 # soname into executable. Probably we can add versioning support to
13242 # collect2, so additional links can be useful in future.
13243 if test "$aix_use_runtimelinking" = yes; then
13244 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13245 # instead of lib<name>.a to let people know that these are not
13246 # typical AIX shared libraries.
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 else
13249 # We preserve .a as extension for shared libraries through AIX4.2
13250 # and later when we are not doing run time linking.
13251 library_names_spec='${libname}${release}.a $libname.a'
13252 soname_spec='${libname}${release}${shared_ext}$major'
13254 shlibpath_var=LIBPATH
13258 amigaos*)
13259 library_names_spec='$libname.ixlibrary $libname.a'
13260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13261 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'
13264 beos*)
13265 library_names_spec='${libname}${shared_ext}'
13266 dynamic_linker="$host_os ld.so"
13267 shlibpath_var=LIBRARY_PATH
13270 bsdi[45]*)
13271 version_type=linux
13272 need_version=no
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274 soname_spec='${libname}${release}${shared_ext}$major'
13275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13276 shlibpath_var=LD_LIBRARY_PATH
13277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13279 # the default ld.so.conf also contains /usr/contrib/lib and
13280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13281 # libtool to hard-code these into programs
13284 cygwin* | mingw* | pw32*)
13285 version_type=windows
13286 shrext_cmds=".dll"
13287 need_version=no
13288 need_lib_prefix=no
13290 case $GCC,$host_os in
13291 yes,cygwin* | yes,mingw* | yes,pw32*)
13292 library_names_spec='$libname.dll.a'
13293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13294 postinstall_cmds='base_file=`basename \${file}`~
13295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13296 dldir=$destdir/`dirname \$dlpath`~
13297 test -d \$dldir || mkdir -p \$dldir~
13298 $install_prog $dir/$dlname \$dldir/$dlname~
13299 chmod a+x \$dldir/$dlname'
13300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13301 dlpath=$dir/\$dldll~
13302 $rm \$dlpath'
13303 shlibpath_overrides_runpath=yes
13305 case $host_os in
13306 cygwin*)
13307 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13308 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13309 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13311 mingw*)
13312 # MinGW DLLs use traditional 'lib' prefix
13313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13314 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13315 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13316 # It is most probably a Windows format PATH printed by
13317 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13318 # path with ; separators, and with drive letters. We can handle the
13319 # drive letters (cygwin fileutils understands them), so leave them,
13320 # especially as we might pass files found there to a mingw objdump,
13321 # which wouldn't understand a cygwinified path. Ahh.
13322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13323 else
13324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13327 pw32*)
13328 # pw32 DLLs use 'pw' prefix rather than 'lib'
13329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13331 esac
13335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13337 esac
13338 dynamic_linker='Win32 ld.exe'
13339 # FIXME: first we should search . and the directory the executable is in
13340 shlibpath_var=PATH
13343 darwin* | rhapsody*)
13344 dynamic_linker="$host_os dyld"
13345 version_type=darwin
13346 need_lib_prefix=no
13347 need_version=no
13348 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13349 soname_spec='${libname}${release}${major}$shared_ext'
13350 shlibpath_overrides_runpath=yes
13351 shlibpath_var=DYLD_LIBRARY_PATH
13352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13354 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13357 dgux*)
13358 version_type=linux
13359 need_lib_prefix=no
13360 need_version=no
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 shlibpath_var=LD_LIBRARY_PATH
13366 freebsd1*)
13367 dynamic_linker=no
13370 freebsd* | dragonfly*)
13371 # DragonFly does not have aout. When/if they implement a new
13372 # versioning mechanism, adjust this.
13373 if test -x /usr/bin/objformat; then
13374 objformat=`/usr/bin/objformat`
13375 else
13376 case $host_os in
13377 freebsd[123]*) objformat=aout ;;
13378 *) objformat=elf ;;
13379 esac
13381 version_type=freebsd-$objformat
13382 case $version_type in
13383 freebsd-elf*)
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13385 need_version=no
13386 need_lib_prefix=no
13388 freebsd-*)
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13390 need_version=yes
13392 esac
13393 shlibpath_var=LD_LIBRARY_PATH
13394 case $host_os in
13395 freebsd2*)
13396 shlibpath_overrides_runpath=yes
13398 freebsd3.[01]* | freebsdelf3.[01]*)
13399 shlibpath_overrides_runpath=yes
13400 hardcode_into_libs=yes
13402 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13403 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13404 shlibpath_overrides_runpath=no
13405 hardcode_into_libs=yes
13407 *) # from 4.6 on, and DragonFly
13408 shlibpath_overrides_runpath=yes
13409 hardcode_into_libs=yes
13411 esac
13414 gnu*)
13415 version_type=linux
13416 need_lib_prefix=no
13417 need_version=no
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13419 soname_spec='${libname}${release}${shared_ext}$major'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 hardcode_into_libs=yes
13424 hpux9* | hpux10* | hpux11*)
13425 # Give a soname corresponding to the major version so that dld.sl refuses to
13426 # link against other versions.
13427 version_type=sunos
13428 need_lib_prefix=no
13429 need_version=no
13430 case $host_cpu in
13431 ia64*)
13432 shrext_cmds='.so'
13433 hardcode_into_libs=yes
13434 dynamic_linker="$host_os dld.so"
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
13440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13441 else
13442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13446 hppa*64*)
13447 shrext_cmds='.sl'
13448 hardcode_into_libs=yes
13449 dynamic_linker="$host_os dld.sl"
13450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13458 shrext_cmds='.sl'
13459 dynamic_linker="$host_os dld.sl"
13460 shlibpath_var=SHLIB_PATH
13461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 soname_spec='${libname}${release}${shared_ext}$major'
13465 esac
13466 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13467 postinstall_cmds='chmod 555 $lib'
13470 interix[3-9]*)
13471 version_type=linux
13472 need_lib_prefix=no
13473 need_version=no
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13475 soname_spec='${libname}${release}${shared_ext}$major'
13476 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=no
13479 hardcode_into_libs=yes
13482 irix5* | irix6* | nonstopux*)
13483 case $host_os in
13484 nonstopux*) version_type=nonstopux ;;
13486 if test "$lt_cv_prog_gnu_ld" = yes; then
13487 version_type=linux
13488 else
13489 version_type=irix
13490 fi ;;
13491 esac
13492 need_lib_prefix=no
13493 need_version=no
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13496 case $host_os in
13497 irix5* | nonstopux*)
13498 libsuff= shlibsuff=
13501 case $LD in # libtool.m4 will add one of these switches to LD
13502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13503 libsuff= shlibsuff= libmagic=32-bit;;
13504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13505 libsuff=32 shlibsuff=N32 libmagic=N32;;
13506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13507 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13508 *) libsuff= shlibsuff= libmagic=never-match;;
13509 esac
13511 esac
13512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13513 shlibpath_overrides_runpath=no
13514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13516 hardcode_into_libs=yes
13519 # No shared lib support for Linux oldld, aout, or coff.
13520 linux*oldld* | linux*aout* | linux*coff*)
13521 dynamic_linker=no
13524 # This must be Linux ELF.
13525 linux* | k*bsd*-gnu)
13526 version_type=linux
13527 need_lib_prefix=no
13528 need_version=no
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 shlibpath_overrides_runpath=no
13534 # This implies no fast_install, which is unacceptable.
13535 # Some rework will be needed to allow for fast_install
13536 # before this can be enabled.
13537 hardcode_into_libs=yes
13539 # Append ld.so.conf contents to the search path
13540 if test -f /etc/ld.so.conf; then
13541 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13542 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13545 # We used to test for /lib/ld.so.1 and disable shared libraries on
13546 # powerpc, because MkLinux only supported shared libraries with the
13547 # GNU dynamic linker. Since this was broken with cross compilers,
13548 # most powerpc-linux boxes support dynamic linking these days and
13549 # people can always --disable-shared, the test was removed, and we
13550 # assume the GNU/Linux dynamic linker is in use.
13551 dynamic_linker='GNU/Linux ld.so'
13554 netbsd*)
13555 version_type=sunos
13556 need_lib_prefix=no
13557 need_version=no
13558 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13561 dynamic_linker='NetBSD (a.out) ld.so'
13562 else
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 dynamic_linker='NetBSD ld.elf_so'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=yes
13569 hardcode_into_libs=yes
13572 newsos6)
13573 version_type=linux
13574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13575 shlibpath_var=LD_LIBRARY_PATH
13576 shlibpath_overrides_runpath=yes
13579 nto-qnx*)
13580 version_type=linux
13581 need_lib_prefix=no
13582 need_version=no
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584 soname_spec='${libname}${release}${shared_ext}$major'
13585 shlibpath_var=LD_LIBRARY_PATH
13586 shlibpath_overrides_runpath=yes
13589 openbsd*)
13590 version_type=sunos
13591 sys_lib_dlsearch_path_spec="/usr/lib"
13592 need_lib_prefix=no
13593 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13594 case $host_os in
13595 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13596 *) need_version=no ;;
13597 esac
13598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13600 shlibpath_var=LD_LIBRARY_PATH
13601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13602 case $host_os in
13603 openbsd2.[89] | openbsd2.[89].*)
13604 shlibpath_overrides_runpath=no
13607 shlibpath_overrides_runpath=yes
13609 esac
13610 else
13611 shlibpath_overrides_runpath=yes
13615 os2*)
13616 libname_spec='$name'
13617 shrext_cmds=".dll"
13618 need_lib_prefix=no
13619 library_names_spec='$libname${shared_ext} $libname.a'
13620 dynamic_linker='OS/2 ld.exe'
13621 shlibpath_var=LIBPATH
13624 osf3* | osf4* | osf5*)
13625 version_type=osf
13626 need_lib_prefix=no
13627 need_version=no
13628 soname_spec='${libname}${release}${shared_ext}$major'
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13632 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13635 rdos*)
13636 dynamic_linker=no
13639 solaris*)
13640 version_type=linux
13641 need_lib_prefix=no
13642 need_version=no
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13644 soname_spec='${libname}${release}${shared_ext}$major'
13645 shlibpath_var=LD_LIBRARY_PATH
13646 shlibpath_overrides_runpath=yes
13647 hardcode_into_libs=yes
13648 # ldd complains unless libraries are executable
13649 postinstall_cmds='chmod +x $lib'
13652 sunos4*)
13653 version_type=sunos
13654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13655 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13656 shlibpath_var=LD_LIBRARY_PATH
13657 shlibpath_overrides_runpath=yes
13658 if test "$with_gnu_ld" = yes; then
13659 need_lib_prefix=no
13661 need_version=yes
13664 sysv4 | sysv4.3*)
13665 version_type=linux
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 shlibpath_var=LD_LIBRARY_PATH
13669 case $host_vendor in
13670 sni)
13671 shlibpath_overrides_runpath=no
13672 need_lib_prefix=no
13673 export_dynamic_flag_spec='${wl}-Blargedynsym'
13674 runpath_var=LD_RUN_PATH
13676 siemens)
13677 need_lib_prefix=no
13679 motorola)
13680 need_lib_prefix=no
13681 need_version=no
13682 shlibpath_overrides_runpath=no
13683 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13685 esac
13688 sysv4*MP*)
13689 if test -d /usr/nec ;then
13690 version_type=linux
13691 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13692 soname_spec='$libname${shared_ext}.$major'
13693 shlibpath_var=LD_LIBRARY_PATH
13697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13698 version_type=freebsd-elf
13699 need_lib_prefix=no
13700 need_version=no
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 hardcode_into_libs=yes
13705 if test "$with_gnu_ld" = yes; then
13706 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13707 shlibpath_overrides_runpath=no
13708 else
13709 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13710 shlibpath_overrides_runpath=yes
13711 case $host_os in
13712 sco3.2v5*)
13713 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13715 esac
13717 sys_lib_dlsearch_path_spec='/usr/lib'
13720 uts4*)
13721 version_type=linux
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723 soname_spec='${libname}${release}${shared_ext}$major'
13724 shlibpath_var=LD_LIBRARY_PATH
13728 dynamic_linker=no
13730 esac
13731 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13732 $as_echo "$dynamic_linker" >&6; }
13733 test "$dynamic_linker" = no && can_build_shared=no
13735 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13736 $as_echo_n "(cached) " >&6
13737 else
13738 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13741 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13742 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13743 $as_echo_n "(cached) " >&6
13744 else
13745 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13748 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13751 if test "$GCC" = yes; then
13752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13755 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13757 hardcode_action_CXX=
13758 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13759 test -n "$runpath_var_CXX" || \
13760 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13762 # We can hardcode non-existant directories.
13763 if test "$hardcode_direct_CXX" != no &&
13764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13765 # have to relink, otherwise we might link with an installed library
13766 # when we should be linking with a yet-to-be-installed one
13767 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13768 test "$hardcode_minus_L_CXX" != no; then
13769 # Linking always hardcodes the temporary library directory.
13770 hardcode_action_CXX=relink
13771 else
13772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13773 hardcode_action_CXX=immediate
13775 else
13776 # We cannot hardcode anything, or else we can only hardcode existing
13777 # directories.
13778 hardcode_action_CXX=unsupported
13780 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13781 $as_echo "$hardcode_action_CXX" >&6; }
13783 if test "$hardcode_action_CXX" = relink; then
13784 # Fast installation is not supported
13785 enable_fast_install=no
13786 elif test "$shlibpath_overrides_runpath" = yes ||
13787 test "$enable_shared" = no; then
13788 # Fast installation is not necessary
13789 enable_fast_install=needless
13793 # The else clause should only fire when bootstrapping the
13794 # libtool distribution, otherwise you forgot to ship ltmain.sh
13795 # with your package, and you will get complaints that there are
13796 # no rules to generate ltmain.sh.
13797 if test -f "$ltmain"; then
13798 # See if we are running on zsh, and set the options which allow our commands through
13799 # without removal of \ escapes.
13800 if test -n "${ZSH_VERSION+set}" ; then
13801 setopt NO_GLOB_SUBST
13803 # Now quote all the things that may contain metacharacters while being
13804 # careful not to overquote the AC_SUBSTed values. We take copies of the
13805 # variables and quote the copies for generation of the libtool script.
13806 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13807 SED SHELL STRIP \
13808 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13809 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13810 deplibs_check_method reload_flag reload_cmds need_locks \
13811 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13812 lt_cv_sys_global_symbol_to_c_name_address \
13813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13814 old_postinstall_cmds old_postuninstall_cmds \
13815 compiler_CXX \
13816 CC_CXX \
13817 LD_CXX \
13818 lt_prog_compiler_wl_CXX \
13819 lt_prog_compiler_pic_CXX \
13820 lt_prog_compiler_static_CXX \
13821 lt_prog_compiler_no_builtin_flag_CXX \
13822 export_dynamic_flag_spec_CXX \
13823 thread_safe_flag_spec_CXX \
13824 whole_archive_flag_spec_CXX \
13825 enable_shared_with_static_runtimes_CXX \
13826 old_archive_cmds_CXX \
13827 old_archive_from_new_cmds_CXX \
13828 predep_objects_CXX \
13829 postdep_objects_CXX \
13830 predeps_CXX \
13831 postdeps_CXX \
13832 compiler_lib_search_path_CXX \
13833 compiler_lib_search_dirs_CXX \
13834 archive_cmds_CXX \
13835 archive_expsym_cmds_CXX \
13836 postinstall_cmds_CXX \
13837 postuninstall_cmds_CXX \
13838 old_archive_from_expsyms_cmds_CXX \
13839 allow_undefined_flag_CXX \
13840 no_undefined_flag_CXX \
13841 export_symbols_cmds_CXX \
13842 hardcode_libdir_flag_spec_CXX \
13843 hardcode_libdir_flag_spec_ld_CXX \
13844 hardcode_libdir_separator_CXX \
13845 hardcode_automatic_CXX \
13846 module_cmds_CXX \
13847 module_expsym_cmds_CXX \
13848 lt_cv_prog_compiler_c_o_CXX \
13849 fix_srcfile_path_CXX \
13850 exclude_expsyms_CXX \
13851 include_expsyms_CXX; do
13853 case $var in
13854 old_archive_cmds_CXX | \
13855 old_archive_from_new_cmds_CXX | \
13856 archive_cmds_CXX | \
13857 archive_expsym_cmds_CXX | \
13858 module_cmds_CXX | \
13859 module_expsym_cmds_CXX | \
13860 old_archive_from_expsyms_cmds_CXX | \
13861 export_symbols_cmds_CXX | \
13862 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13863 postinstall_cmds | postuninstall_cmds | \
13864 old_postinstall_cmds | old_postuninstall_cmds | \
13865 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13866 # Double-quote double-evaled strings.
13867 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13872 esac
13873 done
13875 case $lt_echo in
13876 *'\$0 --fallback-echo"')
13877 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13879 esac
13881 cfgfile="$ofile"
13883 cat <<__EOF__ >> "$cfgfile"
13884 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13886 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13888 # Shell to use when invoking shell scripts.
13889 SHELL=$lt_SHELL
13891 # Whether or not to build shared libraries.
13892 build_libtool_libs=$enable_shared
13894 # Whether or not to build static libraries.
13895 build_old_libs=$enable_static
13897 # Whether or not to add -lc for building shared libraries.
13898 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13900 # Whether or not to disallow shared libs when runtime libs are static
13901 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13903 # Whether or not to optimize for fast installation.
13904 fast_install=$enable_fast_install
13906 # The host system.
13907 host_alias=$host_alias
13908 host=$host
13909 host_os=$host_os
13911 # The build system.
13912 build_alias=$build_alias
13913 build=$build
13914 build_os=$build_os
13916 # An echo program that does not interpret backslashes.
13917 echo=$lt_echo
13919 # The archiver.
13920 AR=$lt_AR
13921 AR_FLAGS=$lt_AR_FLAGS
13923 # A C compiler.
13924 LTCC=$lt_LTCC
13926 # LTCC compiler flags.
13927 LTCFLAGS=$lt_LTCFLAGS
13929 # A language-specific compiler.
13930 CC=$lt_compiler_CXX
13932 # Is the compiler the GNU C compiler?
13933 with_gcc=$GCC_CXX
13935 # An ERE matcher.
13936 EGREP=$lt_EGREP
13938 # The linker used to build libraries.
13939 LD=$lt_LD_CXX
13941 # Whether we need hard or soft links.
13942 LN_S=$lt_LN_S
13944 # A BSD-compatible nm program.
13945 NM=$lt_NM
13947 # A symbol stripping program
13948 STRIP=$lt_STRIP
13950 # Used to examine libraries when file_magic_cmd begins "file"
13951 MAGIC_CMD=$MAGIC_CMD
13953 # Used on cygwin: DLL creation program.
13954 DLLTOOL="$DLLTOOL"
13956 # Used on cygwin: object dumper.
13957 OBJDUMP="$OBJDUMP"
13959 # Used on cygwin: assembler.
13960 AS="$AS"
13962 # The name of the directory that contains temporary libtool files.
13963 objdir=$objdir
13965 # How to create reloadable object files.
13966 reload_flag=$lt_reload_flag
13967 reload_cmds=$lt_reload_cmds
13969 # How to pass a linker flag through the compiler.
13970 wl=$lt_lt_prog_compiler_wl_CXX
13972 # Object file suffix (normally "o").
13973 objext="$ac_objext"
13975 # Old archive suffix (normally "a").
13976 libext="$libext"
13978 # Shared library suffix (normally ".so").
13979 shrext_cmds='$shrext_cmds'
13981 # Executable file suffix (normally "").
13982 exeext="$exeext"
13984 # Additional compiler flags for building library objects.
13985 pic_flag=$lt_lt_prog_compiler_pic_CXX
13986 pic_mode=$pic_mode
13988 # What is the maximum length of a command?
13989 max_cmd_len=$lt_cv_sys_max_cmd_len
13991 # Does compiler simultaneously support -c and -o options?
13992 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13994 # Must we lock files when doing compilation?
13995 need_locks=$lt_need_locks
13997 # Do we need the lib prefix for modules?
13998 need_lib_prefix=$need_lib_prefix
14000 # Do we need a version for libraries?
14001 need_version=$need_version
14003 # Whether dlopen is supported.
14004 dlopen_support=$enable_dlopen
14006 # Whether dlopen of programs is supported.
14007 dlopen_self=$enable_dlopen_self
14009 # Whether dlopen of statically linked programs is supported.
14010 dlopen_self_static=$enable_dlopen_self_static
14012 # Compiler flag to prevent dynamic linking.
14013 link_static_flag=$lt_lt_prog_compiler_static_CXX
14015 # Compiler flag to turn off builtin functions.
14016 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14018 # Compiler flag to allow reflexive dlopens.
14019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14021 # Compiler flag to generate shared objects directly from archives.
14022 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14024 # Compiler flag to generate thread-safe objects.
14025 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14027 # Library versioning type.
14028 version_type=$version_type
14030 # Format of library name prefix.
14031 libname_spec=$lt_libname_spec
14033 # List of archive names. First name is the real one, the rest are links.
14034 # The last name is the one that the linker finds with -lNAME.
14035 library_names_spec=$lt_library_names_spec
14037 # The coded name of the library, if different from the real name.
14038 soname_spec=$lt_soname_spec
14040 # Commands used to build and install an old-style archive.
14041 RANLIB=$lt_RANLIB
14042 old_archive_cmds=$lt_old_archive_cmds_CXX
14043 old_postinstall_cmds=$lt_old_postinstall_cmds
14044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14046 # Create an old-style archive from a shared archive.
14047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14049 # Create a temporary old-style archive to link instead of a shared archive.
14050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14052 # Commands used to build and install a shared archive.
14053 archive_cmds=$lt_archive_cmds_CXX
14054 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14055 postinstall_cmds=$lt_postinstall_cmds
14056 postuninstall_cmds=$lt_postuninstall_cmds
14058 # Commands used to build a loadable module (assumed same as above if empty)
14059 module_cmds=$lt_module_cmds_CXX
14060 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14062 # Commands to strip libraries.
14063 old_striplib=$lt_old_striplib
14064 striplib=$lt_striplib
14066 # Dependencies to place before the objects being linked to create a
14067 # shared library.
14068 predep_objects=$lt_predep_objects_CXX
14070 # Dependencies to place after the objects being linked to create a
14071 # shared library.
14072 postdep_objects=$lt_postdep_objects_CXX
14074 # Dependencies to place before the objects being linked to create a
14075 # shared library.
14076 predeps=$lt_predeps_CXX
14078 # Dependencies to place after the objects being linked to create a
14079 # shared library.
14080 postdeps=$lt_postdeps_CXX
14082 # The directories searched by this compiler when creating a shared
14083 # library
14084 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14086 # The library search path used internally by the compiler when linking
14087 # a shared library.
14088 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14090 # Method to check whether dependent libraries are shared objects.
14091 deplibs_check_method=$lt_deplibs_check_method
14093 # Command to use when deplibs_check_method == file_magic.
14094 file_magic_cmd=$lt_file_magic_cmd
14096 # Flag that allows shared libraries with undefined symbols to be built.
14097 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14099 # Flag that forces no undefined symbols.
14100 no_undefined_flag=$lt_no_undefined_flag_CXX
14102 # Commands used to finish a libtool library installation in a directory.
14103 finish_cmds=$lt_finish_cmds
14105 # Same as above, but a single script fragment to be evaled but not shown.
14106 finish_eval=$lt_finish_eval
14108 # Take the output of nm and produce a listing of raw symbols and C names.
14109 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14111 # Transform the output of nm in a proper C declaration
14112 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14114 # Transform the output of nm in a C name address pair
14115 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14117 # This is the shared library runtime path variable.
14118 runpath_var=$runpath_var
14120 # This is the shared library path variable.
14121 shlibpath_var=$shlibpath_var
14123 # Is shlibpath searched before the hard-coded library search path?
14124 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14126 # How to hardcode a shared library path into an executable.
14127 hardcode_action=$hardcode_action_CXX
14129 # Whether we should hardcode library paths into libraries.
14130 hardcode_into_libs=$hardcode_into_libs
14132 # Flag to hardcode \$libdir into a binary during linking.
14133 # This must work even if \$libdir does not exist.
14134 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14136 # If ld is used when linking, flag to hardcode \$libdir into
14137 # a binary during linking. This must work even if \$libdir does
14138 # not exist.
14139 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14141 # Whether we need a single -rpath flag with a separated argument.
14142 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14144 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14145 # resulting binary.
14146 hardcode_direct=$hardcode_direct_CXX
14148 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14149 # resulting binary.
14150 hardcode_minus_L=$hardcode_minus_L_CXX
14152 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14153 # the resulting binary.
14154 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14156 # Set to yes if building a shared library automatically hardcodes DIR into the library
14157 # and all subsequent libraries and executables linked against it.
14158 hardcode_automatic=$hardcode_automatic_CXX
14160 # Variables whose values should be saved in libtool wrapper scripts and
14161 # restored at relink time.
14162 variables_saved_for_relink="$variables_saved_for_relink"
14164 # Whether libtool must link a program against all its dependency libraries.
14165 link_all_deplibs=$link_all_deplibs_CXX
14167 # Compile-time system search path for libraries
14168 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14170 # Run-time system search path for libraries
14171 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14173 # Fix the shell variable \$srcfile for the compiler.
14174 fix_srcfile_path=$lt_fix_srcfile_path
14176 # Set to yes if exported symbols are required.
14177 always_export_symbols=$always_export_symbols_CXX
14179 # The commands to list exported symbols.
14180 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14182 # The commands to extract the exported symbol list from a shared archive.
14183 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14185 # Symbols that should not be listed in the preloaded symbols.
14186 exclude_expsyms=$lt_exclude_expsyms_CXX
14188 # Symbols that must always be exported.
14189 include_expsyms=$lt_include_expsyms_CXX
14191 # ### END LIBTOOL TAG CONFIG: $tagname
14193 __EOF__
14196 else
14197 # If there is no Makefile yet, we rely on a make rule to execute
14198 # `config.status --recheck' to rerun these tests and create the
14199 # libtool script then.
14200 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14201 if test -f "$ltmain_in"; then
14202 test -f Makefile && make "$ltmain"
14207 ac_ext=c
14208 ac_cpp='$CPP $CPPFLAGS'
14209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14213 CC=$lt_save_CC
14214 LDCXX=$LD
14215 LD=$lt_save_LD
14216 GCC=$lt_save_GCC
14217 with_gnu_ldcxx=$with_gnu_ld
14218 with_gnu_ld=$lt_save_with_gnu_ld
14219 lt_cv_path_LDCXX=$lt_cv_path_LD
14220 lt_cv_path_LD=$lt_save_path_LD
14221 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14222 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14224 else
14225 tagname=""
14229 F77)
14230 if test -n "$F77" && test "X$F77" != "Xno"; then
14232 ac_ext=f
14233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14238 archive_cmds_need_lc_F77=no
14239 allow_undefined_flag_F77=
14240 always_export_symbols_F77=no
14241 archive_expsym_cmds_F77=
14242 export_dynamic_flag_spec_F77=
14243 hardcode_direct_F77=no
14244 hardcode_libdir_flag_spec_F77=
14245 hardcode_libdir_flag_spec_ld_F77=
14246 hardcode_libdir_separator_F77=
14247 hardcode_minus_L_F77=no
14248 hardcode_automatic_F77=no
14249 module_cmds_F77=
14250 module_expsym_cmds_F77=
14251 link_all_deplibs_F77=unknown
14252 old_archive_cmds_F77=$old_archive_cmds
14253 no_undefined_flag_F77=
14254 whole_archive_flag_spec_F77=
14255 enable_shared_with_static_runtimes_F77=no
14257 # Source file extension for f77 test sources.
14258 ac_ext=f
14260 # Object file extension for compiled f77 test sources.
14261 objext=o
14262 objext_F77=$objext
14264 # Code to be used in simple compile tests
14265 lt_simple_compile_test_code="\
14266 subroutine t
14267 return
14271 # Code to be used in simple link tests
14272 lt_simple_link_test_code="\
14273 program t
14277 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14279 # If no C compiler was specified, use CC.
14280 LTCC=${LTCC-"$CC"}
14282 # If no C compiler flags were specified, use CFLAGS.
14283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14285 # Allow CC to be a program name with arguments.
14286 compiler=$CC
14289 # save warnings/boilerplate of simple test code
14290 ac_outfile=conftest.$ac_objext
14291 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14292 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14293 _lt_compiler_boilerplate=`cat conftest.err`
14294 $rm conftest*
14296 ac_outfile=conftest.$ac_objext
14297 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14298 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14299 _lt_linker_boilerplate=`cat conftest.err`
14300 $rm -r conftest*
14303 # Allow CC to be a program name with arguments.
14304 lt_save_CC="$CC"
14305 CC=${F77-"f77"}
14306 compiler=$CC
14307 compiler_F77=$CC
14308 for cc_temp in $compiler""; do
14309 case $cc_temp in
14310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14312 \-*) ;;
14313 *) break;;
14314 esac
14315 done
14316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14319 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14320 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14321 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14322 $as_echo "$can_build_shared" >&6; }
14324 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14325 $as_echo_n "checking whether to build shared libraries... " >&6; }
14326 test "$can_build_shared" = "no" && enable_shared=no
14328 # On AIX, shared libraries and static libraries use the same namespace, and
14329 # are all built from PIC.
14330 case $host_os in
14331 aix3*)
14332 test "$enable_shared" = yes && enable_static=no
14333 if test -n "$RANLIB"; then
14334 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14335 postinstall_cmds='$RANLIB $lib'
14338 aix[4-9]*)
14339 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14340 test "$enable_shared" = yes && enable_static=no
14343 esac
14344 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14345 $as_echo "$enable_shared" >&6; }
14347 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14348 $as_echo_n "checking whether to build static libraries... " >&6; }
14349 # Make sure either enable_shared or enable_static is yes.
14350 test "$enable_shared" = yes || enable_static=yes
14351 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14352 $as_echo "$enable_static" >&6; }
14354 GCC_F77="$G77"
14355 LD_F77="$LD"
14357 lt_prog_compiler_wl_F77=
14358 lt_prog_compiler_pic_F77=
14359 lt_prog_compiler_static_F77=
14361 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14364 if test "$GCC" = yes; then
14365 lt_prog_compiler_wl_F77='-Wl,'
14366 lt_prog_compiler_static_F77='-static'
14368 case $host_os in
14369 aix*)
14370 # All AIX code is PIC.
14371 if test "$host_cpu" = ia64; then
14372 # AIX 5 now supports IA64 processor
14373 lt_prog_compiler_static_F77='-Bstatic'
14377 amigaos*)
14378 # FIXME: we need at least 68020 code to build shared libraries, but
14379 # adding the `-m68020' flag to GCC prevents building anything better,
14380 # like `-m68040'.
14381 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14384 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14385 # PIC is the default for these OSes.
14388 mingw* | cygwin* | pw32* | os2*)
14389 # This hack is so that the source file can tell whether it is being
14390 # built for inclusion in a dll (and should export symbols for example).
14391 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14392 # (--disable-auto-import) libraries
14393 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14396 darwin* | rhapsody*)
14397 # PIC is the default on this platform
14398 # Common symbols not allowed in MH_DYLIB files
14399 lt_prog_compiler_pic_F77='-fno-common'
14402 interix[3-9]*)
14403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14404 # Instead, we relocate shared libraries at runtime.
14407 msdosdjgpp*)
14408 # Just because we use GCC doesn't mean we suddenly get shared libraries
14409 # on systems that don't support them.
14410 lt_prog_compiler_can_build_shared_F77=no
14411 enable_shared=no
14414 sysv4*MP*)
14415 if test -d /usr/nec; then
14416 lt_prog_compiler_pic_F77=-Kconform_pic
14420 hpux*)
14421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14422 # not for PA HP-UX.
14423 case $host_cpu in
14424 hppa*64*|ia64*)
14425 # +Z the default
14428 lt_prog_compiler_pic_F77='-fPIC'
14430 esac
14434 lt_prog_compiler_pic_F77='-fPIC'
14436 esac
14437 else
14438 # PORTME Check for flag to pass linker flags through the system compiler.
14439 case $host_os in
14440 aix*)
14441 lt_prog_compiler_wl_F77='-Wl,'
14442 if test "$host_cpu" = ia64; then
14443 # AIX 5 now supports IA64 processor
14444 lt_prog_compiler_static_F77='-Bstatic'
14445 else
14446 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14449 darwin*)
14450 # PIC is the default on this platform
14451 # Common symbols not allowed in MH_DYLIB files
14452 case $cc_basename in
14453 xlc*)
14454 lt_prog_compiler_pic_F77='-qnocommon'
14455 lt_prog_compiler_wl_F77='-Wl,'
14457 esac
14460 mingw* | cygwin* | pw32* | os2*)
14461 # This hack is so that the source file can tell whether it is being
14462 # built for inclusion in a dll (and should export symbols for example).
14463 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14466 hpux9* | hpux10* | hpux11*)
14467 lt_prog_compiler_wl_F77='-Wl,'
14468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14469 # not for PA HP-UX.
14470 case $host_cpu in
14471 hppa*64*|ia64*)
14472 # +Z the default
14475 lt_prog_compiler_pic_F77='+Z'
14477 esac
14478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14479 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14482 irix5* | irix6* | nonstopux*)
14483 lt_prog_compiler_wl_F77='-Wl,'
14484 # PIC (with -KPIC) is the default.
14485 lt_prog_compiler_static_F77='-non_shared'
14488 newsos6)
14489 lt_prog_compiler_pic_F77='-KPIC'
14490 lt_prog_compiler_static_F77='-Bstatic'
14493 linux* | k*bsd*-gnu)
14494 case $cc_basename in
14495 icc* | ecc*)
14496 lt_prog_compiler_wl_F77='-Wl,'
14497 lt_prog_compiler_pic_F77='-KPIC'
14498 lt_prog_compiler_static_F77='-static'
14500 pgcc* | pgf77* | pgf90* | pgf95*)
14501 # Portland Group compilers (*not* the Pentium gcc compiler,
14502 # which looks to be a dead project)
14503 lt_prog_compiler_wl_F77='-Wl,'
14504 lt_prog_compiler_pic_F77='-fpic'
14505 lt_prog_compiler_static_F77='-Bstatic'
14507 ccc*)
14508 lt_prog_compiler_wl_F77='-Wl,'
14509 # All Alpha code is PIC.
14510 lt_prog_compiler_static_F77='-non_shared'
14513 case `$CC -V 2>&1 | sed 5q` in
14514 *Sun\ C*)
14515 # Sun C 5.9
14516 lt_prog_compiler_pic_F77='-KPIC'
14517 lt_prog_compiler_static_F77='-Bstatic'
14518 lt_prog_compiler_wl_F77='-Wl,'
14520 *Sun\ F*)
14521 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14522 lt_prog_compiler_pic_F77='-KPIC'
14523 lt_prog_compiler_static_F77='-Bstatic'
14524 lt_prog_compiler_wl_F77=''
14526 esac
14528 esac
14531 osf3* | osf4* | osf5*)
14532 lt_prog_compiler_wl_F77='-Wl,'
14533 # All OSF/1 code is PIC.
14534 lt_prog_compiler_static_F77='-non_shared'
14537 rdos*)
14538 lt_prog_compiler_static_F77='-non_shared'
14541 solaris*)
14542 lt_prog_compiler_pic_F77='-KPIC'
14543 lt_prog_compiler_static_F77='-Bstatic'
14544 case $cc_basename in
14545 f77* | f90* | f95*)
14546 lt_prog_compiler_wl_F77='-Qoption ld ';;
14548 lt_prog_compiler_wl_F77='-Wl,';;
14549 esac
14552 sunos4*)
14553 lt_prog_compiler_wl_F77='-Qoption ld '
14554 lt_prog_compiler_pic_F77='-PIC'
14555 lt_prog_compiler_static_F77='-Bstatic'
14558 sysv4 | sysv4.2uw2* | sysv4.3*)
14559 lt_prog_compiler_wl_F77='-Wl,'
14560 lt_prog_compiler_pic_F77='-KPIC'
14561 lt_prog_compiler_static_F77='-Bstatic'
14564 sysv4*MP*)
14565 if test -d /usr/nec ;then
14566 lt_prog_compiler_pic_F77='-Kconform_pic'
14567 lt_prog_compiler_static_F77='-Bstatic'
14571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14572 lt_prog_compiler_wl_F77='-Wl,'
14573 lt_prog_compiler_pic_F77='-KPIC'
14574 lt_prog_compiler_static_F77='-Bstatic'
14577 unicos*)
14578 lt_prog_compiler_wl_F77='-Wl,'
14579 lt_prog_compiler_can_build_shared_F77=no
14582 uts4*)
14583 lt_prog_compiler_pic_F77='-pic'
14584 lt_prog_compiler_static_F77='-Bstatic'
14588 lt_prog_compiler_can_build_shared_F77=no
14590 esac
14593 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14594 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14597 # Check to make sure the PIC flag actually works.
14599 if test -n "$lt_prog_compiler_pic_F77"; then
14601 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14602 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14603 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14604 $as_echo_n "(cached) " >&6
14605 else
14606 lt_cv_prog_compiler_pic_works_F77=no
14607 ac_outfile=conftest.$ac_objext
14608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14609 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14610 # Insert the option either (1) after the last *FLAGS variable, or
14611 # (2) before a word containing "conftest.", or (3) at the end.
14612 # Note that $ac_compile itself does not contain backslashes and begins
14613 # with a dollar sign (not a hyphen), so the echo should work correctly.
14614 # The option is referenced via a variable to avoid confusing sed.
14615 lt_compile=`echo "$ac_compile" | $SED \
14616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14618 -e 's:$: $lt_compiler_flag:'`
14619 (eval echo "\"\$as_me:14619: $lt_compile\"" >&5)
14620 (eval "$lt_compile" 2>conftest.err)
14621 ac_status=$?
14622 cat conftest.err >&5
14623 echo "$as_me:14623: \$? = $ac_status" >&5
14624 if (exit $ac_status) && test -s "$ac_outfile"; then
14625 # The compiler can only warn and ignore the option if not recognized
14626 # So say no if there are warnings other than the usual output.
14627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14630 lt_cv_prog_compiler_pic_works_F77=yes
14633 $rm conftest*
14636 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14637 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14639 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14640 case $lt_prog_compiler_pic_F77 in
14641 "" | " "*) ;;
14642 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14643 esac
14644 else
14645 lt_prog_compiler_pic_F77=
14646 lt_prog_compiler_can_build_shared_F77=no
14650 case $host_os in
14651 # For platforms which do not support PIC, -DPIC is meaningless:
14652 *djgpp*)
14653 lt_prog_compiler_pic_F77=
14656 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14658 esac
14661 # Check to make sure the static flag actually works.
14663 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14664 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14665 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14666 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14667 $as_echo_n "(cached) " >&6
14668 else
14669 lt_cv_prog_compiler_static_works_F77=no
14670 save_LDFLAGS="$LDFLAGS"
14671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14672 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14674 # The linker can only warn and ignore the option if not recognized
14675 # So say no if there are warnings
14676 if test -s conftest.err; then
14677 # Append any errors to the config.log.
14678 cat conftest.err 1>&5
14679 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14681 if diff conftest.exp conftest.er2 >/dev/null; then
14682 lt_cv_prog_compiler_static_works_F77=yes
14684 else
14685 lt_cv_prog_compiler_static_works_F77=yes
14688 $rm -r conftest*
14689 LDFLAGS="$save_LDFLAGS"
14692 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14693 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14695 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14697 else
14698 lt_prog_compiler_static_F77=
14702 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14704 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14705 $as_echo_n "(cached) " >&6
14706 else
14707 lt_cv_prog_compiler_c_o_F77=no
14708 $rm -r conftest 2>/dev/null
14709 mkdir conftest
14710 cd conftest
14711 mkdir out
14712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14714 lt_compiler_flag="-o out/conftest2.$ac_objext"
14715 # Insert the option either (1) after the last *FLAGS variable, or
14716 # (2) before a word containing "conftest.", or (3) at the end.
14717 # Note that $ac_compile itself does not contain backslashes and begins
14718 # with a dollar sign (not a hyphen), so the echo should work correctly.
14719 lt_compile=`echo "$ac_compile" | $SED \
14720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14722 -e 's:$: $lt_compiler_flag:'`
14723 (eval echo "\"\$as_me:14723: $lt_compile\"" >&5)
14724 (eval "$lt_compile" 2>out/conftest.err)
14725 ac_status=$?
14726 cat out/conftest.err >&5
14727 echo "$as_me:14727: \$? = $ac_status" >&5
14728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14729 then
14730 # The compiler can only warn and ignore the option if not recognized
14731 # So say no if there are warnings
14732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14735 lt_cv_prog_compiler_c_o_F77=yes
14738 chmod u+w . 2>&5
14739 $rm conftest*
14740 # SGI C++ compiler will create directory out/ii_files/ for
14741 # template instantiation
14742 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14743 $rm out/* && rmdir out
14744 cd ..
14745 rmdir conftest
14746 $rm conftest*
14749 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14750 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14753 hard_links="nottested"
14754 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14755 # do not overwrite the value of need_locks provided by the user
14756 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14757 $as_echo_n "checking if we can lock with hard links... " >&6; }
14758 hard_links=yes
14759 $rm conftest*
14760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14761 touch conftest.a
14762 ln conftest.a conftest.b 2>&5 || hard_links=no
14763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14764 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14765 $as_echo "$hard_links" >&6; }
14766 if test "$hard_links" = no; then
14767 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14768 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14769 need_locks=warn
14771 else
14772 need_locks=no
14775 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14776 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14778 runpath_var=
14779 allow_undefined_flag_F77=
14780 enable_shared_with_static_runtimes_F77=no
14781 archive_cmds_F77=
14782 archive_expsym_cmds_F77=
14783 old_archive_From_new_cmds_F77=
14784 old_archive_from_expsyms_cmds_F77=
14785 export_dynamic_flag_spec_F77=
14786 whole_archive_flag_spec_F77=
14787 thread_safe_flag_spec_F77=
14788 hardcode_libdir_flag_spec_F77=
14789 hardcode_libdir_flag_spec_ld_F77=
14790 hardcode_libdir_separator_F77=
14791 hardcode_direct_F77=no
14792 hardcode_minus_L_F77=no
14793 hardcode_shlibpath_var_F77=unsupported
14794 link_all_deplibs_F77=unknown
14795 hardcode_automatic_F77=no
14796 module_cmds_F77=
14797 module_expsym_cmds_F77=
14798 always_export_symbols_F77=no
14799 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14800 # include_expsyms should be a list of space-separated symbols to be *always*
14801 # included in the symbol list
14802 include_expsyms_F77=
14803 # exclude_expsyms can be an extended regexp of symbols to exclude
14804 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14806 # as well as any symbol that contains `d'.
14807 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14809 # platforms (ab)use it in PIC code, but their linkers get confused if
14810 # the symbol is explicitly referenced. Since portable code cannot
14811 # rely on this symbol name, it's probably fine to never include it in
14812 # preloaded symbol tables.
14813 # Exclude shared library initialization/finalization symbols.
14814 extract_expsyms_cmds=
14815 # Just being paranoid about ensuring that cc_basename is set.
14816 for cc_temp in $compiler""; do
14817 case $cc_temp in
14818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14820 \-*) ;;
14821 *) break;;
14822 esac
14823 done
14824 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14826 case $host_os in
14827 cygwin* | mingw* | pw32*)
14828 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14829 # When not using gcc, we currently assume that we are using
14830 # Microsoft Visual C++.
14831 if test "$GCC" != yes; then
14832 with_gnu_ld=no
14835 interix*)
14836 # we just hope/assume this is gcc and not c89 (= MSVC++)
14837 with_gnu_ld=yes
14839 openbsd*)
14840 with_gnu_ld=no
14842 esac
14844 ld_shlibs_F77=yes
14845 if test "$with_gnu_ld" = yes; then
14846 # If archive_cmds runs LD, not CC, wlarc should be empty
14847 wlarc='${wl}'
14849 # Set some defaults for GNU ld with shared library support. These
14850 # are reset later if shared libraries are not supported. Putting them
14851 # here allows them to be overridden if necessary.
14852 runpath_var=LD_RUN_PATH
14853 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14854 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14855 # ancient GNU ld didn't support --whole-archive et. al.
14856 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14857 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14858 else
14859 whole_archive_flag_spec_F77=
14861 supports_anon_versioning=no
14862 case `$LD -v 2>/dev/null` in
14863 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14866 *\ 2.11.*) ;; # other 2.11 versions
14867 *) supports_anon_versioning=yes ;;
14868 esac
14870 # See if GNU ld supports shared libraries.
14871 case $host_os in
14872 aix[3-9]*)
14873 # On AIX/PPC, the GNU linker is very broken
14874 if test "$host_cpu" != ia64; then
14875 ld_shlibs_F77=no
14876 cat <<EOF 1>&2
14878 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14879 *** to be unable to reliably create shared libraries on AIX.
14880 *** Therefore, libtool is disabling shared libraries support. If you
14881 *** really care for shared libraries, you may want to modify your PATH
14882 *** so that a non-GNU linker is found, and then restart.
14888 amigaos*)
14889 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)'
14890 hardcode_libdir_flag_spec_F77='-L$libdir'
14891 hardcode_minus_L_F77=yes
14893 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14894 # that the semantics of dynamic libraries on AmigaOS, at least up
14895 # to version 4, is to share data among multiple programs linked
14896 # with the same dynamic library. Since this doesn't match the
14897 # behavior of shared libraries on other platforms, we can't use
14898 # them.
14899 ld_shlibs_F77=no
14902 beos*)
14903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14904 allow_undefined_flag_F77=unsupported
14905 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14906 # support --undefined. This deserves some investigation. FIXME
14907 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14908 else
14909 ld_shlibs_F77=no
14913 cygwin* | mingw* | pw32*)
14914 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14915 # as there is no search path for DLLs.
14916 hardcode_libdir_flag_spec_F77='-L$libdir'
14917 allow_undefined_flag_F77=unsupported
14918 always_export_symbols_F77=no
14919 enable_shared_with_static_runtimes_F77=yes
14920 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14922 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14923 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14924 # If the export-symbols file already is a .def file (1st line
14925 # is EXPORTS), use it as is; otherwise, prepend...
14926 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14927 cp $export_symbols $output_objdir/$soname.def;
14928 else
14929 echo EXPORTS > $output_objdir/$soname.def;
14930 cat $export_symbols >> $output_objdir/$soname.def;
14932 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14933 else
14934 ld_shlibs_F77=no
14938 interix[3-9]*)
14939 hardcode_direct_F77=no
14940 hardcode_shlibpath_var_F77=no
14941 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14942 export_dynamic_flag_spec_F77='${wl}-E'
14943 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14944 # Instead, shared libraries are loaded at an image base (0x10000000 by
14945 # default) and relocated if they conflict, which is a slow very memory
14946 # consuming and fragmenting process. To avoid this, we pick a random,
14947 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14948 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14949 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'
14950 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'
14953 gnu* | linux* | k*bsd*-gnu)
14954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14955 tmp_addflag=
14956 case $cc_basename,$host_cpu in
14957 pgcc*) # Portland Group C compiler
14958 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'
14959 tmp_addflag=' $pic_flag'
14961 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14962 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'
14963 tmp_addflag=' $pic_flag -Mnomain' ;;
14964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14965 tmp_addflag=' -i_dynamic' ;;
14966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14967 tmp_addflag=' -i_dynamic -nofor_main' ;;
14968 ifc* | ifort*) # Intel Fortran compiler
14969 tmp_addflag=' -nofor_main' ;;
14970 esac
14971 case `$CC -V 2>&1 | sed 5q` in
14972 *Sun\ C*) # Sun C 5.9
14973 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14974 tmp_sharedflag='-G' ;;
14975 *Sun\ F*) # Sun Fortran 8.3
14976 tmp_sharedflag='-G' ;;
14978 tmp_sharedflag='-shared' ;;
14979 esac
14980 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14982 if test $supports_anon_versioning = yes; then
14983 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14985 $echo "local: *; };" >> $output_objdir/$libname.ver~
14986 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14988 else
14989 ld_shlibs_F77=no
14993 netbsd*)
14994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14995 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14996 wlarc=
14997 else
14998 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14999 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15003 solaris*)
15004 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15005 ld_shlibs_F77=no
15006 cat <<EOF 1>&2
15008 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15009 *** create shared libraries on Solaris systems. Therefore, libtool
15010 *** is disabling shared libraries support. We urge you to upgrade GNU
15011 *** binutils to release 2.9.1 or newer. Another option is to modify
15012 *** your PATH or compiler configuration so that the native linker is
15013 *** used, and then restart.
15016 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15017 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15019 else
15020 ld_shlibs_F77=no
15024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15025 case `$LD -v 2>&1` in
15026 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15027 ld_shlibs_F77=no
15028 cat <<_LT_EOF 1>&2
15030 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15031 *** reliably create shared libraries on SCO systems. Therefore, libtool
15032 *** is disabling shared libraries support. We urge you to upgrade GNU
15033 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15034 *** your PATH or compiler configuration so that the native linker is
15035 *** used, and then restart.
15037 _LT_EOF
15040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15041 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15042 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15043 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15044 else
15045 ld_shlibs_F77=no
15048 esac
15051 sunos4*)
15052 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15053 wlarc=
15054 hardcode_direct_F77=yes
15055 hardcode_shlibpath_var_F77=no
15059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15060 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15062 else
15063 ld_shlibs_F77=no
15066 esac
15068 if test "$ld_shlibs_F77" = no; then
15069 runpath_var=
15070 hardcode_libdir_flag_spec_F77=
15071 export_dynamic_flag_spec_F77=
15072 whole_archive_flag_spec_F77=
15074 else
15075 # PORTME fill in a description of your system's linker (not GNU ld)
15076 case $host_os in
15077 aix3*)
15078 allow_undefined_flag_F77=unsupported
15079 always_export_symbols_F77=yes
15080 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'
15081 # Note: this linker hardcodes the directories in LIBPATH if there
15082 # are no directories specified by -L.
15083 hardcode_minus_L_F77=yes
15084 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15085 # Neither direct hardcoding nor static linking is supported with a
15086 # broken collect2.
15087 hardcode_direct_F77=unsupported
15091 aix[4-9]*)
15092 if test "$host_cpu" = ia64; then
15093 # On IA64, the linker does run time linking by default, so we don't
15094 # have to do anything special.
15095 aix_use_runtimelinking=no
15096 exp_sym_flag='-Bexport'
15097 no_entry_flag=""
15098 else
15099 # If we're using GNU nm, then we don't want the "-C" option.
15100 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15101 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15102 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'
15103 else
15104 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'
15106 aix_use_runtimelinking=no
15108 # Test if we are trying to use run time linking or normal
15109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15110 # need to do runtime linking.
15111 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15112 for ld_flag in $LDFLAGS; do
15113 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15114 aix_use_runtimelinking=yes
15115 break
15117 done
15119 esac
15121 exp_sym_flag='-bexport'
15122 no_entry_flag='-bnoentry'
15125 # When large executables or shared objects are built, AIX ld can
15126 # have problems creating the table of contents. If linking a library
15127 # or program results in "error TOC overflow" add -mminimal-toc to
15128 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15129 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15131 archive_cmds_F77=''
15132 hardcode_direct_F77=yes
15133 hardcode_libdir_separator_F77=':'
15134 link_all_deplibs_F77=yes
15136 if test "$GCC" = yes; then
15137 case $host_os in aix4.[012]|aix4.[012].*)
15138 # We only want to do this on AIX 4.2 and lower, the check
15139 # below for broken collect2 doesn't work under 4.3+
15140 collect2name=`${CC} -print-prog-name=collect2`
15141 if test -f "$collect2name" && \
15142 strings "$collect2name" | grep resolve_lib_name >/dev/null
15143 then
15144 # We have reworked collect2
15146 else
15147 # We have old collect2
15148 hardcode_direct_F77=unsupported
15149 # It fails to find uninstalled libraries when the uninstalled
15150 # path is not listed in the libpath. Setting hardcode_minus_L
15151 # to unsupported forces relinking
15152 hardcode_minus_L_F77=yes
15153 hardcode_libdir_flag_spec_F77='-L$libdir'
15154 hardcode_libdir_separator_F77=
15157 esac
15158 shared_flag='-shared'
15159 if test "$aix_use_runtimelinking" = yes; then
15160 shared_flag="$shared_flag "'${wl}-G'
15162 else
15163 # not using gcc
15164 if test "$host_cpu" = ia64; then
15165 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15166 # chokes on -Wl,-G. The following line is correct:
15167 shared_flag='-G'
15168 else
15169 if test "$aix_use_runtimelinking" = yes; then
15170 shared_flag='${wl}-G'
15171 else
15172 shared_flag='${wl}-bM:SRE'
15177 # It seems that -bexpall does not export symbols beginning with
15178 # underscore (_), so it is better to generate a list of symbols to export.
15179 always_export_symbols_F77=yes
15180 if test "$aix_use_runtimelinking" = yes; then
15181 # Warning - without using the other runtime loading flags (-brtl),
15182 # -berok will link without error, but may produce a broken library.
15183 allow_undefined_flag_F77='-berok'
15184 # Determine the default libpath from the value encoded in an empty executable.
15185 cat >conftest.$ac_ext <<_ACEOF
15186 program main
15189 _ACEOF
15190 rm -f conftest.$ac_objext conftest$ac_exeext
15191 if { (ac_try="$ac_link"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15195 esac
15196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15197 $as_echo "$ac_try_echo") >&5
15198 (eval "$ac_link") 2>conftest.er1
15199 ac_status=$?
15200 grep -v '^ *+' conftest.er1 >conftest.err
15201 rm -f conftest.er1
15202 cat conftest.err >&5
15203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } && {
15205 test -z "$ac_f77_werror_flag" ||
15206 test ! -s conftest.err
15207 } && test -s conftest$ac_exeext && {
15208 test "$cross_compiling" = yes ||
15209 $as_test_x conftest$ac_exeext
15210 }; then
15212 lt_aix_libpath_sed='
15213 /Import File Strings/,/^$/ {
15214 /^0/ {
15215 s/^0 *\(.*\)$/\1/
15219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15220 # Check for a 64-bit object if we didn't find anything.
15221 if test -z "$aix_libpath"; then
15222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15224 else
15225 $as_echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15231 rm -rf conftest.dSYM
15232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15233 conftest$ac_exeext conftest.$ac_ext
15234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15236 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15237 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"
15238 else
15239 if test "$host_cpu" = ia64; then
15240 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15241 allow_undefined_flag_F77="-z nodefs"
15242 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"
15243 else
15244 # Determine the default libpath from the value encoded in an empty executable.
15245 cat >conftest.$ac_ext <<_ACEOF
15246 program main
15249 _ACEOF
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (ac_try="$ac_link"
15252 case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255 esac
15256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15257 $as_echo "$ac_try_echo") >&5
15258 (eval "$ac_link") 2>conftest.er1
15259 ac_status=$?
15260 grep -v '^ *+' conftest.er1 >conftest.err
15261 rm -f conftest.er1
15262 cat conftest.err >&5
15263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } && {
15265 test -z "$ac_f77_werror_flag" ||
15266 test ! -s conftest.err
15267 } && test -s conftest$ac_exeext && {
15268 test "$cross_compiling" = yes ||
15269 $as_test_x conftest$ac_exeext
15270 }; then
15272 lt_aix_libpath_sed='
15273 /Import File Strings/,/^$/ {
15274 /^0/ {
15275 s/^0 *\(.*\)$/\1/
15279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15280 # Check for a 64-bit object if we didn't find anything.
15281 if test -z "$aix_libpath"; then
15282 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15284 else
15285 $as_echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15291 rm -rf conftest.dSYM
15292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293 conftest$ac_exeext conftest.$ac_ext
15294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15296 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15297 # Warning - without using the other run time loading flags,
15298 # -berok will link without error, but may produce a broken library.
15299 no_undefined_flag_F77=' ${wl}-bernotok'
15300 allow_undefined_flag_F77=' ${wl}-berok'
15301 # Exported symbols can be pulled into shared objects from archives
15302 whole_archive_flag_spec_F77='$convenience'
15303 archive_cmds_need_lc_F77=yes
15304 # This is similar to how AIX traditionally builds its shared libraries.
15305 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'
15310 amigaos*)
15311 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)'
15312 hardcode_libdir_flag_spec_F77='-L$libdir'
15313 hardcode_minus_L_F77=yes
15314 # see comment about different semantics on the GNU ld section
15315 ld_shlibs_F77=no
15318 bsdi[45]*)
15319 export_dynamic_flag_spec_F77=-rdynamic
15322 cygwin* | mingw* | pw32*)
15323 # When not using gcc, we currently assume that we are using
15324 # Microsoft Visual C++.
15325 # hardcode_libdir_flag_spec is actually meaningless, as there is
15326 # no search path for DLLs.
15327 hardcode_libdir_flag_spec_F77=' '
15328 allow_undefined_flag_F77=unsupported
15329 # Tell ltmain to make .lib files, not .a files.
15330 libext=lib
15331 # Tell ltmain to make .dll files, not .so files.
15332 shrext_cmds=".dll"
15333 # FIXME: Setting linknames here is a bad hack.
15334 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15335 # The linker will automatically build a .lib file if we build a DLL.
15336 old_archive_From_new_cmds_F77='true'
15337 # FIXME: Should let the user specify the lib program.
15338 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15339 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15340 enable_shared_with_static_runtimes_F77=yes
15343 darwin* | rhapsody*)
15344 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
15345 archive_cmds_need_lc_F77=no
15346 hardcode_direct_F77=no
15347 hardcode_automatic_F77=yes
15348 hardcode_shlibpath_var_F77=unsupported
15349 whole_archive_flag_spec_F77=''
15350 link_all_deplibs_F77=yes
15351 if test "$GCC" = yes ; then
15352 output_verbose_link_cmd='echo'
15353 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15354 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15355 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15356 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15357 else
15358 case $cc_basename in
15359 xlc*)
15360 output_verbose_link_cmd='echo'
15361 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15362 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15363 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15364 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15365 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}'
15368 ld_shlibs_F77=no
15370 esac
15374 dgux*)
15375 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15376 hardcode_libdir_flag_spec_F77='-L$libdir'
15377 hardcode_shlibpath_var_F77=no
15380 freebsd1*)
15381 ld_shlibs_F77=no
15384 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15385 # support. Future versions do this automatically, but an explicit c++rt0.o
15386 # does not break anything, and helps significantly (at the cost of a little
15387 # extra space).
15388 freebsd2.2*)
15389 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15390 hardcode_libdir_flag_spec_F77='-R$libdir'
15391 hardcode_direct_F77=yes
15392 hardcode_shlibpath_var_F77=no
15395 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15396 freebsd2*)
15397 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15398 hardcode_direct_F77=yes
15399 hardcode_minus_L_F77=yes
15400 hardcode_shlibpath_var_F77=no
15403 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15404 freebsd* | dragonfly*)
15405 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15406 hardcode_libdir_flag_spec_F77='-R$libdir'
15407 hardcode_direct_F77=yes
15408 hardcode_shlibpath_var_F77=no
15411 hpux9*)
15412 if test "$GCC" = yes; then
15413 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'
15414 else
15415 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'
15417 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15418 hardcode_libdir_separator_F77=:
15419 hardcode_direct_F77=yes
15421 # hardcode_minus_L: Not really in the search PATH,
15422 # but as the default location of the library.
15423 hardcode_minus_L_F77=yes
15424 export_dynamic_flag_spec_F77='${wl}-E'
15427 hpux10*)
15428 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15429 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15430 else
15431 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15433 if test "$with_gnu_ld" = no; then
15434 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15435 hardcode_libdir_separator_F77=:
15437 hardcode_direct_F77=yes
15438 export_dynamic_flag_spec_F77='${wl}-E'
15440 # hardcode_minus_L: Not really in the search PATH,
15441 # but as the default location of the library.
15442 hardcode_minus_L_F77=yes
15446 hpux11*)
15447 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15448 case $host_cpu in
15449 hppa*64*)
15450 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15452 ia64*)
15453 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15456 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15458 esac
15459 else
15460 case $host_cpu in
15461 hppa*64*)
15462 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15464 ia64*)
15465 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15470 esac
15472 if test "$with_gnu_ld" = no; then
15473 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15474 hardcode_libdir_separator_F77=:
15476 case $host_cpu in
15477 hppa*64*|ia64*)
15478 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15479 hardcode_direct_F77=no
15480 hardcode_shlibpath_var_F77=no
15483 hardcode_direct_F77=yes
15484 export_dynamic_flag_spec_F77='${wl}-E'
15486 # hardcode_minus_L: Not really in the search PATH,
15487 # but as the default location of the library.
15488 hardcode_minus_L_F77=yes
15490 esac
15494 irix5* | irix6* | nonstopux*)
15495 if test "$GCC" = yes; then
15496 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'
15497 else
15498 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'
15499 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15501 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15502 hardcode_libdir_separator_F77=:
15503 link_all_deplibs_F77=yes
15506 netbsd*)
15507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15508 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15509 else
15510 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15512 hardcode_libdir_flag_spec_F77='-R$libdir'
15513 hardcode_direct_F77=yes
15514 hardcode_shlibpath_var_F77=no
15517 newsos6)
15518 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_direct_F77=yes
15520 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15521 hardcode_libdir_separator_F77=:
15522 hardcode_shlibpath_var_F77=no
15525 openbsd*)
15526 if test -f /usr/libexec/ld.so; then
15527 hardcode_direct_F77=yes
15528 hardcode_shlibpath_var_F77=no
15529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15530 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15532 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15533 export_dynamic_flag_spec_F77='${wl}-E'
15534 else
15535 case $host_os in
15536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15537 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15538 hardcode_libdir_flag_spec_F77='-R$libdir'
15541 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15542 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15544 esac
15546 else
15547 ld_shlibs_F77=no
15551 os2*)
15552 hardcode_libdir_flag_spec_F77='-L$libdir'
15553 hardcode_minus_L_F77=yes
15554 allow_undefined_flag_F77=unsupported
15555 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'
15556 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15559 osf3*)
15560 if test "$GCC" = yes; then
15561 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15562 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'
15563 else
15564 allow_undefined_flag_F77=' -expect_unresolved \*'
15565 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'
15567 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15568 hardcode_libdir_separator_F77=:
15571 osf4* | osf5*) # as osf3* with the addition of -msym flag
15572 if test "$GCC" = yes; then
15573 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15574 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'
15575 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15576 else
15577 allow_undefined_flag_F77=' -expect_unresolved \*'
15578 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'
15579 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~
15580 $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'
15582 # Both c and cxx compiler support -rpath directly
15583 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15585 hardcode_libdir_separator_F77=:
15588 solaris*)
15589 no_undefined_flag_F77=' -z text'
15590 if test "$GCC" = yes; then
15591 wlarc='${wl}'
15592 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15594 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15595 else
15596 wlarc=''
15597 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15601 hardcode_libdir_flag_spec_F77='-R$libdir'
15602 hardcode_shlibpath_var_F77=no
15603 case $host_os in
15604 solaris2.[0-5] | solaris2.[0-5].*) ;;
15606 # The compiler driver will combine and reorder linker options,
15607 # but understands `-z linker_flag'. GCC discards it without `$wl',
15608 # but is careful enough not to reorder.
15609 # Supported since Solaris 2.6 (maybe 2.5.1?)
15610 if test "$GCC" = yes; then
15611 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15612 else
15613 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15616 esac
15617 link_all_deplibs_F77=yes
15620 sunos4*)
15621 if test "x$host_vendor" = xsequent; then
15622 # Use $CC to link under sequent, because it throws in some extra .o
15623 # files that make .init and .fini sections work.
15624 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15625 else
15626 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15628 hardcode_libdir_flag_spec_F77='-L$libdir'
15629 hardcode_direct_F77=yes
15630 hardcode_minus_L_F77=yes
15631 hardcode_shlibpath_var_F77=no
15634 sysv4)
15635 case $host_vendor in
15636 sni)
15637 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638 hardcode_direct_F77=yes # is this really true???
15640 siemens)
15641 ## LD is ld it makes a PLAMLIB
15642 ## CC just makes a GrossModule.
15643 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15644 reload_cmds_F77='$CC -r -o $output$reload_objs'
15645 hardcode_direct_F77=no
15647 motorola)
15648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15651 esac
15652 runpath_var='LD_RUN_PATH'
15653 hardcode_shlibpath_var_F77=no
15656 sysv4.3*)
15657 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15658 hardcode_shlibpath_var_F77=no
15659 export_dynamic_flag_spec_F77='-Bexport'
15662 sysv4*MP*)
15663 if test -d /usr/nec; then
15664 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_shlibpath_var_F77=no
15666 runpath_var=LD_RUN_PATH
15667 hardcode_runpath_var=yes
15668 ld_shlibs_F77=yes
15672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15673 no_undefined_flag_F77='${wl}-z,text'
15674 archive_cmds_need_lc_F77=no
15675 hardcode_shlibpath_var_F77=no
15676 runpath_var='LD_RUN_PATH'
15678 if test "$GCC" = yes; then
15679 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15680 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15681 else
15682 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 sysv5* | sco3.2v5* | sco5v6*)
15688 # Note: We can NOT use -z defs as we might desire, because we do not
15689 # link with -lc, and that would cause any symbols used from libc to
15690 # always be unresolved, which means just about no library would
15691 # ever link correctly. If we're not using GNU ld we use -z text
15692 # though, which does catch some bad symbols but isn't as heavy-handed
15693 # as -z defs.
15694 no_undefined_flag_F77='${wl}-z,text'
15695 allow_undefined_flag_F77='${wl}-z,nodefs'
15696 archive_cmds_need_lc_F77=no
15697 hardcode_shlibpath_var_F77=no
15698 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15699 hardcode_libdir_separator_F77=':'
15700 link_all_deplibs_F77=yes
15701 export_dynamic_flag_spec_F77='${wl}-Bexport'
15702 runpath_var='LD_RUN_PATH'
15704 if test "$GCC" = yes; then
15705 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707 else
15708 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15709 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15713 uts4*)
15714 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_libdir_flag_spec_F77='-L$libdir'
15716 hardcode_shlibpath_var_F77=no
15720 ld_shlibs_F77=no
15722 esac
15725 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15726 $as_echo "$ld_shlibs_F77" >&6; }
15727 test "$ld_shlibs_F77" = no && can_build_shared=no
15730 # Do we need to explicitly link libc?
15732 case "x$archive_cmds_need_lc_F77" in
15733 x|xyes)
15734 # Assume -lc should be added
15735 archive_cmds_need_lc_F77=yes
15737 if test "$enable_shared" = yes && test "$GCC" = yes; then
15738 case $archive_cmds_F77 in
15739 *'~'*)
15740 # FIXME: we may have to deal with multi-command sequences.
15742 '$CC '*)
15743 # Test whether the compiler implicitly links with -lc since on some
15744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15745 # to ld, don't add -lc before -lgcc.
15746 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15747 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15748 $rm conftest*
15749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>&5
15753 ac_status=$?
15754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } 2>conftest.err; then
15756 soname=conftest
15757 lib=conftest
15758 libobjs=conftest.$ac_objext
15759 deplibs=
15760 wl=$lt_prog_compiler_wl_F77
15761 pic_flag=$lt_prog_compiler_pic_F77
15762 compiler_flags=-v
15763 linker_flags=-v
15764 verstring=
15765 output_objdir=.
15766 libname=conftest
15767 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15768 allow_undefined_flag_F77=
15769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15770 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15771 ac_status=$?
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }
15774 then
15775 archive_cmds_need_lc_F77=no
15776 else
15777 archive_cmds_need_lc_F77=yes
15779 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15780 else
15781 cat conftest.err 1>&5
15783 $rm conftest*
15784 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15785 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15787 esac
15790 esac
15792 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15793 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15794 library_names_spec=
15795 libname_spec='lib$name'
15796 soname_spec=
15797 shrext_cmds=".so"
15798 postinstall_cmds=
15799 postuninstall_cmds=
15800 finish_cmds=
15801 finish_eval=
15802 shlibpath_var=
15803 shlibpath_overrides_runpath=unknown
15804 version_type=none
15805 dynamic_linker="$host_os ld.so"
15806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15808 need_lib_prefix=unknown
15809 hardcode_into_libs=no
15811 # when you set need_version to no, make sure it does not cause -set_version
15812 # flags to be left without arguments
15813 need_version=unknown
15815 case $host_os in
15816 aix3*)
15817 version_type=linux
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15819 shlibpath_var=LIBPATH
15821 # AIX 3 has no versioning support, so we append a major version to the name.
15822 soname_spec='${libname}${release}${shared_ext}$major'
15825 aix[4-9]*)
15826 version_type=linux
15827 need_lib_prefix=no
15828 need_version=no
15829 hardcode_into_libs=yes
15830 if test "$host_cpu" = ia64; then
15831 # AIX 5 supports IA64
15832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15833 shlibpath_var=LD_LIBRARY_PATH
15834 else
15835 # With GCC up to 2.95.x, collect2 would create an import file
15836 # for dependence libraries. The import file would start with
15837 # the line `#! .'. This would cause the generated library to
15838 # depend on `.', always an invalid library. This was fixed in
15839 # development snapshots of GCC prior to 3.0.
15840 case $host_os in
15841 aix4 | aix4.[01] | aix4.[01].*)
15842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15843 echo ' yes '
15844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15846 else
15847 can_build_shared=no
15850 esac
15851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15852 # soname into executable. Probably we can add versioning support to
15853 # collect2, so additional links can be useful in future.
15854 if test "$aix_use_runtimelinking" = yes; then
15855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15856 # instead of lib<name>.a to let people know that these are not
15857 # typical AIX shared libraries.
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859 else
15860 # We preserve .a as extension for shared libraries through AIX4.2
15861 # and later when we are not doing run time linking.
15862 library_names_spec='${libname}${release}.a $libname.a'
15863 soname_spec='${libname}${release}${shared_ext}$major'
15865 shlibpath_var=LIBPATH
15869 amigaos*)
15870 library_names_spec='$libname.ixlibrary $libname.a'
15871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15872 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'
15875 beos*)
15876 library_names_spec='${libname}${shared_ext}'
15877 dynamic_linker="$host_os ld.so"
15878 shlibpath_var=LIBRARY_PATH
15881 bsdi[45]*)
15882 version_type=linux
15883 need_version=no
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15885 soname_spec='${libname}${release}${shared_ext}$major'
15886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15887 shlibpath_var=LD_LIBRARY_PATH
15888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15890 # the default ld.so.conf also contains /usr/contrib/lib and
15891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15892 # libtool to hard-code these into programs
15895 cygwin* | mingw* | pw32*)
15896 version_type=windows
15897 shrext_cmds=".dll"
15898 need_version=no
15899 need_lib_prefix=no
15901 case $GCC,$host_os in
15902 yes,cygwin* | yes,mingw* | yes,pw32*)
15903 library_names_spec='$libname.dll.a'
15904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15905 postinstall_cmds='base_file=`basename \${file}`~
15906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15907 dldir=$destdir/`dirname \$dlpath`~
15908 test -d \$dldir || mkdir -p \$dldir~
15909 $install_prog $dir/$dlname \$dldir/$dlname~
15910 chmod a+x \$dldir/$dlname'
15911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15912 dlpath=$dir/\$dldll~
15913 $rm \$dlpath'
15914 shlibpath_overrides_runpath=yes
15916 case $host_os in
15917 cygwin*)
15918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15922 mingw*)
15923 # MinGW DLLs use traditional 'lib' prefix
15924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15927 # It is most probably a Windows format PATH printed by
15928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15929 # path with ; separators, and with drive letters. We can handle the
15930 # drive letters (cygwin fileutils understands them), so leave them,
15931 # especially as we might pass files found there to a mingw objdump,
15932 # which wouldn't understand a cygwinified path. Ahh.
15933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15934 else
15935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15938 pw32*)
15939 # pw32 DLLs use 'pw' prefix rather than 'lib'
15940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15942 esac
15946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15948 esac
15949 dynamic_linker='Win32 ld.exe'
15950 # FIXME: first we should search . and the directory the executable is in
15951 shlibpath_var=PATH
15954 darwin* | rhapsody*)
15955 dynamic_linker="$host_os dyld"
15956 version_type=darwin
15957 need_lib_prefix=no
15958 need_version=no
15959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15960 soname_spec='${libname}${release}${major}$shared_ext'
15961 shlibpath_overrides_runpath=yes
15962 shlibpath_var=DYLD_LIBRARY_PATH
15963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15965 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15968 dgux*)
15969 version_type=linux
15970 need_lib_prefix=no
15971 need_version=no
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 shlibpath_var=LD_LIBRARY_PATH
15977 freebsd1*)
15978 dynamic_linker=no
15981 freebsd* | dragonfly*)
15982 # DragonFly does not have aout. When/if they implement a new
15983 # versioning mechanism, adjust this.
15984 if test -x /usr/bin/objformat; then
15985 objformat=`/usr/bin/objformat`
15986 else
15987 case $host_os in
15988 freebsd[123]*) objformat=aout ;;
15989 *) objformat=elf ;;
15990 esac
15992 version_type=freebsd-$objformat
15993 case $version_type in
15994 freebsd-elf*)
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15996 need_version=no
15997 need_lib_prefix=no
15999 freebsd-*)
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16001 need_version=yes
16003 esac
16004 shlibpath_var=LD_LIBRARY_PATH
16005 case $host_os in
16006 freebsd2*)
16007 shlibpath_overrides_runpath=yes
16009 freebsd3.[01]* | freebsdelf3.[01]*)
16010 shlibpath_overrides_runpath=yes
16011 hardcode_into_libs=yes
16013 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16014 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16015 shlibpath_overrides_runpath=no
16016 hardcode_into_libs=yes
16018 *) # from 4.6 on, and DragonFly
16019 shlibpath_overrides_runpath=yes
16020 hardcode_into_libs=yes
16022 esac
16025 gnu*)
16026 version_type=linux
16027 need_lib_prefix=no
16028 need_version=no
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16030 soname_spec='${libname}${release}${shared_ext}$major'
16031 shlibpath_var=LD_LIBRARY_PATH
16032 hardcode_into_libs=yes
16035 hpux9* | hpux10* | hpux11*)
16036 # Give a soname corresponding to the major version so that dld.sl refuses to
16037 # link against other versions.
16038 version_type=sunos
16039 need_lib_prefix=no
16040 need_version=no
16041 case $host_cpu in
16042 ia64*)
16043 shrext_cmds='.so'
16044 hardcode_into_libs=yes
16045 dynamic_linker="$host_os dld.so"
16046 shlibpath_var=LD_LIBRARY_PATH
16047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 if test "X$HPUX_IA64_MODE" = X32; then
16051 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16052 else
16053 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16057 hppa*64*)
16058 shrext_cmds='.sl'
16059 hardcode_into_libs=yes
16060 dynamic_linker="$host_os dld.sl"
16061 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16069 shrext_cmds='.sl'
16070 dynamic_linker="$host_os dld.sl"
16071 shlibpath_var=SHLIB_PATH
16072 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 soname_spec='${libname}${release}${shared_ext}$major'
16076 esac
16077 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16078 postinstall_cmds='chmod 555 $lib'
16081 interix[3-9]*)
16082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 shlibpath_overrides_runpath=no
16090 hardcode_into_libs=yes
16093 irix5* | irix6* | nonstopux*)
16094 case $host_os in
16095 nonstopux*) version_type=nonstopux ;;
16097 if test "$lt_cv_prog_gnu_ld" = yes; then
16098 version_type=linux
16099 else
16100 version_type=irix
16101 fi ;;
16102 esac
16103 need_lib_prefix=no
16104 need_version=no
16105 soname_spec='${libname}${release}${shared_ext}$major'
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16107 case $host_os in
16108 irix5* | nonstopux*)
16109 libsuff= shlibsuff=
16112 case $LD in # libtool.m4 will add one of these switches to LD
16113 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16114 libsuff= shlibsuff= libmagic=32-bit;;
16115 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16116 libsuff=32 shlibsuff=N32 libmagic=N32;;
16117 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16118 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16119 *) libsuff= shlibsuff= libmagic=never-match;;
16120 esac
16122 esac
16123 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16124 shlibpath_overrides_runpath=no
16125 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16126 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16127 hardcode_into_libs=yes
16130 # No shared lib support for Linux oldld, aout, or coff.
16131 linux*oldld* | linux*aout* | linux*coff*)
16132 dynamic_linker=no
16135 # This must be Linux ELF.
16136 linux* | k*bsd*-gnu)
16137 version_type=linux
16138 need_lib_prefix=no
16139 need_version=no
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 shlibpath_overrides_runpath=no
16145 # This implies no fast_install, which is unacceptable.
16146 # Some rework will be needed to allow for fast_install
16147 # before this can be enabled.
16148 hardcode_into_libs=yes
16150 # Append ld.so.conf contents to the search path
16151 if test -f /etc/ld.so.conf; then
16152 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16153 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16156 # We used to test for /lib/ld.so.1 and disable shared libraries on
16157 # powerpc, because MkLinux only supported shared libraries with the
16158 # GNU dynamic linker. Since this was broken with cross compilers,
16159 # most powerpc-linux boxes support dynamic linking these days and
16160 # people can always --disable-shared, the test was removed, and we
16161 # assume the GNU/Linux dynamic linker is in use.
16162 dynamic_linker='GNU/Linux ld.so'
16165 netbsd*)
16166 version_type=sunos
16167 need_lib_prefix=no
16168 need_version=no
16169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16172 dynamic_linker='NetBSD (a.out) ld.so'
16173 else
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16175 soname_spec='${libname}${release}${shared_ext}$major'
16176 dynamic_linker='NetBSD ld.elf_so'
16178 shlibpath_var=LD_LIBRARY_PATH
16179 shlibpath_overrides_runpath=yes
16180 hardcode_into_libs=yes
16183 newsos6)
16184 version_type=linux
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=yes
16190 nto-qnx*)
16191 version_type=linux
16192 need_lib_prefix=no
16193 need_version=no
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=yes
16200 openbsd*)
16201 version_type=sunos
16202 sys_lib_dlsearch_path_spec="/usr/lib"
16203 need_lib_prefix=no
16204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16205 case $host_os in
16206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16207 *) need_version=no ;;
16208 esac
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16213 case $host_os in
16214 openbsd2.[89] | openbsd2.[89].*)
16215 shlibpath_overrides_runpath=no
16218 shlibpath_overrides_runpath=yes
16220 esac
16221 else
16222 shlibpath_overrides_runpath=yes
16226 os2*)
16227 libname_spec='$name'
16228 shrext_cmds=".dll"
16229 need_lib_prefix=no
16230 library_names_spec='$libname${shared_ext} $libname.a'
16231 dynamic_linker='OS/2 ld.exe'
16232 shlibpath_var=LIBPATH
16235 osf3* | osf4* | osf5*)
16236 version_type=osf
16237 need_lib_prefix=no
16238 need_version=no
16239 soname_spec='${libname}${release}${shared_ext}$major'
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16246 rdos*)
16247 dynamic_linker=no
16250 solaris*)
16251 version_type=linux
16252 need_lib_prefix=no
16253 need_version=no
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 shlibpath_var=LD_LIBRARY_PATH
16257 shlibpath_overrides_runpath=yes
16258 hardcode_into_libs=yes
16259 # ldd complains unless libraries are executable
16260 postinstall_cmds='chmod +x $lib'
16263 sunos4*)
16264 version_type=sunos
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16267 shlibpath_var=LD_LIBRARY_PATH
16268 shlibpath_overrides_runpath=yes
16269 if test "$with_gnu_ld" = yes; then
16270 need_lib_prefix=no
16272 need_version=yes
16275 sysv4 | sysv4.3*)
16276 version_type=linux
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 shlibpath_var=LD_LIBRARY_PATH
16280 case $host_vendor in
16281 sni)
16282 shlibpath_overrides_runpath=no
16283 need_lib_prefix=no
16284 export_dynamic_flag_spec='${wl}-Blargedynsym'
16285 runpath_var=LD_RUN_PATH
16287 siemens)
16288 need_lib_prefix=no
16290 motorola)
16291 need_lib_prefix=no
16292 need_version=no
16293 shlibpath_overrides_runpath=no
16294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16296 esac
16299 sysv4*MP*)
16300 if test -d /usr/nec ;then
16301 version_type=linux
16302 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16303 soname_spec='$libname${shared_ext}.$major'
16304 shlibpath_var=LD_LIBRARY_PATH
16308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16309 version_type=freebsd-elf
16310 need_lib_prefix=no
16311 need_version=no
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 hardcode_into_libs=yes
16316 if test "$with_gnu_ld" = yes; then
16317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16318 shlibpath_overrides_runpath=no
16319 else
16320 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16321 shlibpath_overrides_runpath=yes
16322 case $host_os in
16323 sco3.2v5*)
16324 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16326 esac
16328 sys_lib_dlsearch_path_spec='/usr/lib'
16331 uts4*)
16332 version_type=linux
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 shlibpath_var=LD_LIBRARY_PATH
16339 dynamic_linker=no
16341 esac
16342 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16343 $as_echo "$dynamic_linker" >&6; }
16344 test "$dynamic_linker" = no && can_build_shared=no
16346 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16347 $as_echo_n "(cached) " >&6
16348 else
16349 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16352 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16353 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16354 $as_echo_n "(cached) " >&6
16355 else
16356 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16359 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16362 if test "$GCC" = yes; then
16363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16366 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16367 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16368 hardcode_action_F77=
16369 if test -n "$hardcode_libdir_flag_spec_F77" || \
16370 test -n "$runpath_var_F77" || \
16371 test "X$hardcode_automatic_F77" = "Xyes" ; then
16373 # We can hardcode non-existant directories.
16374 if test "$hardcode_direct_F77" != no &&
16375 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16376 # have to relink, otherwise we might link with an installed library
16377 # when we should be linking with a yet-to-be-installed one
16378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16379 test "$hardcode_minus_L_F77" != no; then
16380 # Linking always hardcodes the temporary library directory.
16381 hardcode_action_F77=relink
16382 else
16383 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16384 hardcode_action_F77=immediate
16386 else
16387 # We cannot hardcode anything, or else we can only hardcode existing
16388 # directories.
16389 hardcode_action_F77=unsupported
16391 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16392 $as_echo "$hardcode_action_F77" >&6; }
16394 if test "$hardcode_action_F77" = relink; then
16395 # Fast installation is not supported
16396 enable_fast_install=no
16397 elif test "$shlibpath_overrides_runpath" = yes ||
16398 test "$enable_shared" = no; then
16399 # Fast installation is not necessary
16400 enable_fast_install=needless
16404 # The else clause should only fire when bootstrapping the
16405 # libtool distribution, otherwise you forgot to ship ltmain.sh
16406 # with your package, and you will get complaints that there are
16407 # no rules to generate ltmain.sh.
16408 if test -f "$ltmain"; then
16409 # See if we are running on zsh, and set the options which allow our commands through
16410 # without removal of \ escapes.
16411 if test -n "${ZSH_VERSION+set}" ; then
16412 setopt NO_GLOB_SUBST
16414 # Now quote all the things that may contain metacharacters while being
16415 # careful not to overquote the AC_SUBSTed values. We take copies of the
16416 # variables and quote the copies for generation of the libtool script.
16417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16418 SED SHELL STRIP \
16419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16421 deplibs_check_method reload_flag reload_cmds need_locks \
16422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16423 lt_cv_sys_global_symbol_to_c_name_address \
16424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16425 old_postinstall_cmds old_postuninstall_cmds \
16426 compiler_F77 \
16427 CC_F77 \
16428 LD_F77 \
16429 lt_prog_compiler_wl_F77 \
16430 lt_prog_compiler_pic_F77 \
16431 lt_prog_compiler_static_F77 \
16432 lt_prog_compiler_no_builtin_flag_F77 \
16433 export_dynamic_flag_spec_F77 \
16434 thread_safe_flag_spec_F77 \
16435 whole_archive_flag_spec_F77 \
16436 enable_shared_with_static_runtimes_F77 \
16437 old_archive_cmds_F77 \
16438 old_archive_from_new_cmds_F77 \
16439 predep_objects_F77 \
16440 postdep_objects_F77 \
16441 predeps_F77 \
16442 postdeps_F77 \
16443 compiler_lib_search_path_F77 \
16444 compiler_lib_search_dirs_F77 \
16445 archive_cmds_F77 \
16446 archive_expsym_cmds_F77 \
16447 postinstall_cmds_F77 \
16448 postuninstall_cmds_F77 \
16449 old_archive_from_expsyms_cmds_F77 \
16450 allow_undefined_flag_F77 \
16451 no_undefined_flag_F77 \
16452 export_symbols_cmds_F77 \
16453 hardcode_libdir_flag_spec_F77 \
16454 hardcode_libdir_flag_spec_ld_F77 \
16455 hardcode_libdir_separator_F77 \
16456 hardcode_automatic_F77 \
16457 module_cmds_F77 \
16458 module_expsym_cmds_F77 \
16459 lt_cv_prog_compiler_c_o_F77 \
16460 fix_srcfile_path_F77 \
16461 exclude_expsyms_F77 \
16462 include_expsyms_F77; do
16464 case $var in
16465 old_archive_cmds_F77 | \
16466 old_archive_from_new_cmds_F77 | \
16467 archive_cmds_F77 | \
16468 archive_expsym_cmds_F77 | \
16469 module_cmds_F77 | \
16470 module_expsym_cmds_F77 | \
16471 old_archive_from_expsyms_cmds_F77 | \
16472 export_symbols_cmds_F77 | \
16473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16474 postinstall_cmds | postuninstall_cmds | \
16475 old_postinstall_cmds | old_postuninstall_cmds | \
16476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16477 # Double-quote double-evaled strings.
16478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16483 esac
16484 done
16486 case $lt_echo in
16487 *'\$0 --fallback-echo"')
16488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16490 esac
16492 cfgfile="$ofile"
16494 cat <<__EOF__ >> "$cfgfile"
16495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16499 # Shell to use when invoking shell scripts.
16500 SHELL=$lt_SHELL
16502 # Whether or not to build shared libraries.
16503 build_libtool_libs=$enable_shared
16505 # Whether or not to build static libraries.
16506 build_old_libs=$enable_static
16508 # Whether or not to add -lc for building shared libraries.
16509 build_libtool_need_lc=$archive_cmds_need_lc_F77
16511 # Whether or not to disallow shared libs when runtime libs are static
16512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16514 # Whether or not to optimize for fast installation.
16515 fast_install=$enable_fast_install
16517 # The host system.
16518 host_alias=$host_alias
16519 host=$host
16520 host_os=$host_os
16522 # The build system.
16523 build_alias=$build_alias
16524 build=$build
16525 build_os=$build_os
16527 # An echo program that does not interpret backslashes.
16528 echo=$lt_echo
16530 # The archiver.
16531 AR=$lt_AR
16532 AR_FLAGS=$lt_AR_FLAGS
16534 # A C compiler.
16535 LTCC=$lt_LTCC
16537 # LTCC compiler flags.
16538 LTCFLAGS=$lt_LTCFLAGS
16540 # A language-specific compiler.
16541 CC=$lt_compiler_F77
16543 # Is the compiler the GNU C compiler?
16544 with_gcc=$GCC_F77
16546 # An ERE matcher.
16547 EGREP=$lt_EGREP
16549 # The linker used to build libraries.
16550 LD=$lt_LD_F77
16552 # Whether we need hard or soft links.
16553 LN_S=$lt_LN_S
16555 # A BSD-compatible nm program.
16556 NM=$lt_NM
16558 # A symbol stripping program
16559 STRIP=$lt_STRIP
16561 # Used to examine libraries when file_magic_cmd begins "file"
16562 MAGIC_CMD=$MAGIC_CMD
16564 # Used on cygwin: DLL creation program.
16565 DLLTOOL="$DLLTOOL"
16567 # Used on cygwin: object dumper.
16568 OBJDUMP="$OBJDUMP"
16570 # Used on cygwin: assembler.
16571 AS="$AS"
16573 # The name of the directory that contains temporary libtool files.
16574 objdir=$objdir
16576 # How to create reloadable object files.
16577 reload_flag=$lt_reload_flag
16578 reload_cmds=$lt_reload_cmds
16580 # How to pass a linker flag through the compiler.
16581 wl=$lt_lt_prog_compiler_wl_F77
16583 # Object file suffix (normally "o").
16584 objext="$ac_objext"
16586 # Old archive suffix (normally "a").
16587 libext="$libext"
16589 # Shared library suffix (normally ".so").
16590 shrext_cmds='$shrext_cmds'
16592 # Executable file suffix (normally "").
16593 exeext="$exeext"
16595 # Additional compiler flags for building library objects.
16596 pic_flag=$lt_lt_prog_compiler_pic_F77
16597 pic_mode=$pic_mode
16599 # What is the maximum length of a command?
16600 max_cmd_len=$lt_cv_sys_max_cmd_len
16602 # Does compiler simultaneously support -c and -o options?
16603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16605 # Must we lock files when doing compilation?
16606 need_locks=$lt_need_locks
16608 # Do we need the lib prefix for modules?
16609 need_lib_prefix=$need_lib_prefix
16611 # Do we need a version for libraries?
16612 need_version=$need_version
16614 # Whether dlopen is supported.
16615 dlopen_support=$enable_dlopen
16617 # Whether dlopen of programs is supported.
16618 dlopen_self=$enable_dlopen_self
16620 # Whether dlopen of statically linked programs is supported.
16621 dlopen_self_static=$enable_dlopen_self_static
16623 # Compiler flag to prevent dynamic linking.
16624 link_static_flag=$lt_lt_prog_compiler_static_F77
16626 # Compiler flag to turn off builtin functions.
16627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16629 # Compiler flag to allow reflexive dlopens.
16630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16632 # Compiler flag to generate shared objects directly from archives.
16633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16635 # Compiler flag to generate thread-safe objects.
16636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16638 # Library versioning type.
16639 version_type=$version_type
16641 # Format of library name prefix.
16642 libname_spec=$lt_libname_spec
16644 # List of archive names. First name is the real one, the rest are links.
16645 # The last name is the one that the linker finds with -lNAME.
16646 library_names_spec=$lt_library_names_spec
16648 # The coded name of the library, if different from the real name.
16649 soname_spec=$lt_soname_spec
16651 # Commands used to build and install an old-style archive.
16652 RANLIB=$lt_RANLIB
16653 old_archive_cmds=$lt_old_archive_cmds_F77
16654 old_postinstall_cmds=$lt_old_postinstall_cmds
16655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16657 # Create an old-style archive from a shared archive.
16658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16660 # Create a temporary old-style archive to link instead of a shared archive.
16661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16663 # Commands used to build and install a shared archive.
16664 archive_cmds=$lt_archive_cmds_F77
16665 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16666 postinstall_cmds=$lt_postinstall_cmds
16667 postuninstall_cmds=$lt_postuninstall_cmds
16669 # Commands used to build a loadable module (assumed same as above if empty)
16670 module_cmds=$lt_module_cmds_F77
16671 module_expsym_cmds=$lt_module_expsym_cmds_F77
16673 # Commands to strip libraries.
16674 old_striplib=$lt_old_striplib
16675 striplib=$lt_striplib
16677 # Dependencies to place before the objects being linked to create a
16678 # shared library.
16679 predep_objects=$lt_predep_objects_F77
16681 # Dependencies to place after the objects being linked to create a
16682 # shared library.
16683 postdep_objects=$lt_postdep_objects_F77
16685 # Dependencies to place before the objects being linked to create a
16686 # shared library.
16687 predeps=$lt_predeps_F77
16689 # Dependencies to place after the objects being linked to create a
16690 # shared library.
16691 postdeps=$lt_postdeps_F77
16693 # The directories searched by this compiler when creating a shared
16694 # library
16695 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16697 # The library search path used internally by the compiler when linking
16698 # a shared library.
16699 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16701 # Method to check whether dependent libraries are shared objects.
16702 deplibs_check_method=$lt_deplibs_check_method
16704 # Command to use when deplibs_check_method == file_magic.
16705 file_magic_cmd=$lt_file_magic_cmd
16707 # Flag that allows shared libraries with undefined symbols to be built.
16708 allow_undefined_flag=$lt_allow_undefined_flag_F77
16710 # Flag that forces no undefined symbols.
16711 no_undefined_flag=$lt_no_undefined_flag_F77
16713 # Commands used to finish a libtool library installation in a directory.
16714 finish_cmds=$lt_finish_cmds
16716 # Same as above, but a single script fragment to be evaled but not shown.
16717 finish_eval=$lt_finish_eval
16719 # Take the output of nm and produce a listing of raw symbols and C names.
16720 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16722 # Transform the output of nm in a proper C declaration
16723 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16725 # Transform the output of nm in a C name address pair
16726 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16728 # This is the shared library runtime path variable.
16729 runpath_var=$runpath_var
16731 # This is the shared library path variable.
16732 shlibpath_var=$shlibpath_var
16734 # Is shlibpath searched before the hard-coded library search path?
16735 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16737 # How to hardcode a shared library path into an executable.
16738 hardcode_action=$hardcode_action_F77
16740 # Whether we should hardcode library paths into libraries.
16741 hardcode_into_libs=$hardcode_into_libs
16743 # Flag to hardcode \$libdir into a binary during linking.
16744 # This must work even if \$libdir does not exist.
16745 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16747 # If ld is used when linking, flag to hardcode \$libdir into
16748 # a binary during linking. This must work even if \$libdir does
16749 # not exist.
16750 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16752 # Whether we need a single -rpath flag with a separated argument.
16753 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16755 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16756 # resulting binary.
16757 hardcode_direct=$hardcode_direct_F77
16759 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16760 # resulting binary.
16761 hardcode_minus_L=$hardcode_minus_L_F77
16763 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16764 # the resulting binary.
16765 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16767 # Set to yes if building a shared library automatically hardcodes DIR into the library
16768 # and all subsequent libraries and executables linked against it.
16769 hardcode_automatic=$hardcode_automatic_F77
16771 # Variables whose values should be saved in libtool wrapper scripts and
16772 # restored at relink time.
16773 variables_saved_for_relink="$variables_saved_for_relink"
16775 # Whether libtool must link a program against all its dependency libraries.
16776 link_all_deplibs=$link_all_deplibs_F77
16778 # Compile-time system search path for libraries
16779 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16781 # Run-time system search path for libraries
16782 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16784 # Fix the shell variable \$srcfile for the compiler.
16785 fix_srcfile_path=$lt_fix_srcfile_path
16787 # Set to yes if exported symbols are required.
16788 always_export_symbols=$always_export_symbols_F77
16790 # The commands to list exported symbols.
16791 export_symbols_cmds=$lt_export_symbols_cmds_F77
16793 # The commands to extract the exported symbol list from a shared archive.
16794 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16796 # Symbols that should not be listed in the preloaded symbols.
16797 exclude_expsyms=$lt_exclude_expsyms_F77
16799 # Symbols that must always be exported.
16800 include_expsyms=$lt_include_expsyms_F77
16802 # ### END LIBTOOL TAG CONFIG: $tagname
16804 __EOF__
16807 else
16808 # If there is no Makefile yet, we rely on a make rule to execute
16809 # `config.status --recheck' to rerun these tests and create the
16810 # libtool script then.
16811 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16812 if test -f "$ltmain_in"; then
16813 test -f Makefile && make "$ltmain"
16818 ac_ext=c
16819 ac_cpp='$CPP $CPPFLAGS'
16820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16824 CC="$lt_save_CC"
16826 else
16827 tagname=""
16831 GCJ)
16832 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16835 # Source file extension for Java test sources.
16836 ac_ext=java
16838 # Object file extension for compiled Java test sources.
16839 objext=o
16840 objext_GCJ=$objext
16842 # Code to be used in simple compile tests
16843 lt_simple_compile_test_code="class foo {}"
16845 # Code to be used in simple link tests
16846 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16848 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16850 # If no C compiler was specified, use CC.
16851 LTCC=${LTCC-"$CC"}
16853 # If no C compiler flags were specified, use CFLAGS.
16854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16856 # Allow CC to be a program name with arguments.
16857 compiler=$CC
16860 # save warnings/boilerplate of simple test code
16861 ac_outfile=conftest.$ac_objext
16862 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16863 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16864 _lt_compiler_boilerplate=`cat conftest.err`
16865 $rm conftest*
16867 ac_outfile=conftest.$ac_objext
16868 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16869 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16870 _lt_linker_boilerplate=`cat conftest.err`
16871 $rm -r conftest*
16874 # Allow CC to be a program name with arguments.
16875 lt_save_CC="$CC"
16876 CC=${GCJ-"gcj"}
16877 compiler=$CC
16878 compiler_GCJ=$CC
16879 for cc_temp in $compiler""; do
16880 case $cc_temp in
16881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16883 \-*) ;;
16884 *) break;;
16885 esac
16886 done
16887 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16890 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16891 archive_cmds_need_lc_GCJ=no
16893 old_archive_cmds_GCJ=$old_archive_cmds
16896 lt_prog_compiler_no_builtin_flag_GCJ=
16898 if test "$GCC" = yes; then
16899 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16902 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16903 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16904 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16905 $as_echo_n "(cached) " >&6
16906 else
16907 lt_cv_prog_compiler_rtti_exceptions=no
16908 ac_outfile=conftest.$ac_objext
16909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16910 lt_compiler_flag="-fno-rtti -fno-exceptions"
16911 # Insert the option either (1) after the last *FLAGS variable, or
16912 # (2) before a word containing "conftest.", or (3) at the end.
16913 # Note that $ac_compile itself does not contain backslashes and begins
16914 # with a dollar sign (not a hyphen), so the echo should work correctly.
16915 # The option is referenced via a variable to avoid confusing sed.
16916 lt_compile=`echo "$ac_compile" | $SED \
16917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16919 -e 's:$: $lt_compiler_flag:'`
16920 (eval echo "\"\$as_me:16920: $lt_compile\"" >&5)
16921 (eval "$lt_compile" 2>conftest.err)
16922 ac_status=$?
16923 cat conftest.err >&5
16924 echo "$as_me:16924: \$? = $ac_status" >&5
16925 if (exit $ac_status) && test -s "$ac_outfile"; then
16926 # The compiler can only warn and ignore the option if not recognized
16927 # So say no if there are warnings other than the usual output.
16928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16931 lt_cv_prog_compiler_rtti_exceptions=yes
16934 $rm conftest*
16937 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16938 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16940 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16941 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16942 else
16948 lt_prog_compiler_wl_GCJ=
16949 lt_prog_compiler_pic_GCJ=
16950 lt_prog_compiler_static_GCJ=
16952 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16953 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16955 if test "$GCC" = yes; then
16956 lt_prog_compiler_wl_GCJ='-Wl,'
16957 lt_prog_compiler_static_GCJ='-static'
16959 case $host_os in
16960 aix*)
16961 # All AIX code is PIC.
16962 if test "$host_cpu" = ia64; then
16963 # AIX 5 now supports IA64 processor
16964 lt_prog_compiler_static_GCJ='-Bstatic'
16968 amigaos*)
16969 # FIXME: we need at least 68020 code to build shared libraries, but
16970 # adding the `-m68020' flag to GCC prevents building anything better,
16971 # like `-m68040'.
16972 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16975 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16976 # PIC is the default for these OSes.
16979 mingw* | cygwin* | pw32* | os2*)
16980 # This hack is so that the source file can tell whether it is being
16981 # built for inclusion in a dll (and should export symbols for example).
16982 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16983 # (--disable-auto-import) libraries
16987 darwin* | rhapsody*)
16988 # PIC is the default on this platform
16989 # Common symbols not allowed in MH_DYLIB files
16990 lt_prog_compiler_pic_GCJ='-fno-common'
16993 interix[3-9]*)
16994 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16995 # Instead, we relocate shared libraries at runtime.
16998 msdosdjgpp*)
16999 # Just because we use GCC doesn't mean we suddenly get shared libraries
17000 # on systems that don't support them.
17001 lt_prog_compiler_can_build_shared_GCJ=no
17002 enable_shared=no
17005 sysv4*MP*)
17006 if test -d /usr/nec; then
17007 lt_prog_compiler_pic_GCJ=-Kconform_pic
17011 hpux*)
17012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17013 # not for PA HP-UX.
17014 case $host_cpu in
17015 hppa*64*|ia64*)
17016 # +Z the default
17019 lt_prog_compiler_pic_GCJ='-fPIC'
17021 esac
17025 lt_prog_compiler_pic_GCJ='-fPIC'
17027 esac
17028 else
17029 # PORTME Check for flag to pass linker flags through the system compiler.
17030 case $host_os in
17031 aix*)
17032 lt_prog_compiler_wl_GCJ='-Wl,'
17033 if test "$host_cpu" = ia64; then
17034 # AIX 5 now supports IA64 processor
17035 lt_prog_compiler_static_GCJ='-Bstatic'
17036 else
17037 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17040 darwin*)
17041 # PIC is the default on this platform
17042 # Common symbols not allowed in MH_DYLIB files
17043 case $cc_basename in
17044 xlc*)
17045 lt_prog_compiler_pic_GCJ='-qnocommon'
17046 lt_prog_compiler_wl_GCJ='-Wl,'
17048 esac
17051 mingw* | cygwin* | pw32* | os2*)
17052 # This hack is so that the source file can tell whether it is being
17053 # built for inclusion in a dll (and should export symbols for example).
17057 hpux9* | hpux10* | hpux11*)
17058 lt_prog_compiler_wl_GCJ='-Wl,'
17059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17060 # not for PA HP-UX.
17061 case $host_cpu in
17062 hppa*64*|ia64*)
17063 # +Z the default
17066 lt_prog_compiler_pic_GCJ='+Z'
17068 esac
17069 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17070 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17073 irix5* | irix6* | nonstopux*)
17074 lt_prog_compiler_wl_GCJ='-Wl,'
17075 # PIC (with -KPIC) is the default.
17076 lt_prog_compiler_static_GCJ='-non_shared'
17079 newsos6)
17080 lt_prog_compiler_pic_GCJ='-KPIC'
17081 lt_prog_compiler_static_GCJ='-Bstatic'
17084 linux* | k*bsd*-gnu)
17085 case $cc_basename in
17086 icc* | ecc*)
17087 lt_prog_compiler_wl_GCJ='-Wl,'
17088 lt_prog_compiler_pic_GCJ='-KPIC'
17089 lt_prog_compiler_static_GCJ='-static'
17091 pgcc* | pgf77* | pgf90* | pgf95*)
17092 # Portland Group compilers (*not* the Pentium gcc compiler,
17093 # which looks to be a dead project)
17094 lt_prog_compiler_wl_GCJ='-Wl,'
17095 lt_prog_compiler_pic_GCJ='-fpic'
17096 lt_prog_compiler_static_GCJ='-Bstatic'
17098 ccc*)
17099 lt_prog_compiler_wl_GCJ='-Wl,'
17100 # All Alpha code is PIC.
17101 lt_prog_compiler_static_GCJ='-non_shared'
17104 case `$CC -V 2>&1 | sed 5q` in
17105 *Sun\ C*)
17106 # Sun C 5.9
17107 lt_prog_compiler_pic_GCJ='-KPIC'
17108 lt_prog_compiler_static_GCJ='-Bstatic'
17109 lt_prog_compiler_wl_GCJ='-Wl,'
17111 *Sun\ F*)
17112 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17113 lt_prog_compiler_pic_GCJ='-KPIC'
17114 lt_prog_compiler_static_GCJ='-Bstatic'
17115 lt_prog_compiler_wl_GCJ=''
17117 esac
17119 esac
17122 osf3* | osf4* | osf5*)
17123 lt_prog_compiler_wl_GCJ='-Wl,'
17124 # All OSF/1 code is PIC.
17125 lt_prog_compiler_static_GCJ='-non_shared'
17128 rdos*)
17129 lt_prog_compiler_static_GCJ='-non_shared'
17132 solaris*)
17133 lt_prog_compiler_pic_GCJ='-KPIC'
17134 lt_prog_compiler_static_GCJ='-Bstatic'
17135 case $cc_basename in
17136 f77* | f90* | f95*)
17137 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17139 lt_prog_compiler_wl_GCJ='-Wl,';;
17140 esac
17143 sunos4*)
17144 lt_prog_compiler_wl_GCJ='-Qoption ld '
17145 lt_prog_compiler_pic_GCJ='-PIC'
17146 lt_prog_compiler_static_GCJ='-Bstatic'
17149 sysv4 | sysv4.2uw2* | sysv4.3*)
17150 lt_prog_compiler_wl_GCJ='-Wl,'
17151 lt_prog_compiler_pic_GCJ='-KPIC'
17152 lt_prog_compiler_static_GCJ='-Bstatic'
17155 sysv4*MP*)
17156 if test -d /usr/nec ;then
17157 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17158 lt_prog_compiler_static_GCJ='-Bstatic'
17162 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17163 lt_prog_compiler_wl_GCJ='-Wl,'
17164 lt_prog_compiler_pic_GCJ='-KPIC'
17165 lt_prog_compiler_static_GCJ='-Bstatic'
17168 unicos*)
17169 lt_prog_compiler_wl_GCJ='-Wl,'
17170 lt_prog_compiler_can_build_shared_GCJ=no
17173 uts4*)
17174 lt_prog_compiler_pic_GCJ='-pic'
17175 lt_prog_compiler_static_GCJ='-Bstatic'
17179 lt_prog_compiler_can_build_shared_GCJ=no
17181 esac
17184 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17185 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17188 # Check to make sure the PIC flag actually works.
17190 if test -n "$lt_prog_compiler_pic_GCJ"; then
17192 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17193 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17194 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17195 $as_echo_n "(cached) " >&6
17196 else
17197 lt_cv_prog_compiler_pic_works_GCJ=no
17198 ac_outfile=conftest.$ac_objext
17199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17200 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17201 # Insert the option either (1) after the last *FLAGS variable, or
17202 # (2) before a word containing "conftest.", or (3) at the end.
17203 # Note that $ac_compile itself does not contain backslashes and begins
17204 # with a dollar sign (not a hyphen), so the echo should work correctly.
17205 # The option is referenced via a variable to avoid confusing sed.
17206 lt_compile=`echo "$ac_compile" | $SED \
17207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17209 -e 's:$: $lt_compiler_flag:'`
17210 (eval echo "\"\$as_me:17210: $lt_compile\"" >&5)
17211 (eval "$lt_compile" 2>conftest.err)
17212 ac_status=$?
17213 cat conftest.err >&5
17214 echo "$as_me:17214: \$? = $ac_status" >&5
17215 if (exit $ac_status) && test -s "$ac_outfile"; then
17216 # The compiler can only warn and ignore the option if not recognized
17217 # So say no if there are warnings other than the usual output.
17218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17221 lt_cv_prog_compiler_pic_works_GCJ=yes
17224 $rm conftest*
17227 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17228 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17230 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17231 case $lt_prog_compiler_pic_GCJ in
17232 "" | " "*) ;;
17233 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17234 esac
17235 else
17236 lt_prog_compiler_pic_GCJ=
17237 lt_prog_compiler_can_build_shared_GCJ=no
17241 case $host_os in
17242 # For platforms which do not support PIC, -DPIC is meaningless:
17243 *djgpp*)
17244 lt_prog_compiler_pic_GCJ=
17247 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17249 esac
17252 # Check to make sure the static flag actually works.
17254 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17255 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17256 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17257 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17258 $as_echo_n "(cached) " >&6
17259 else
17260 lt_cv_prog_compiler_static_works_GCJ=no
17261 save_LDFLAGS="$LDFLAGS"
17262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17263 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17265 # The linker can only warn and ignore the option if not recognized
17266 # So say no if there are warnings
17267 if test -s conftest.err; then
17268 # Append any errors to the config.log.
17269 cat conftest.err 1>&5
17270 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17272 if diff conftest.exp conftest.er2 >/dev/null; then
17273 lt_cv_prog_compiler_static_works_GCJ=yes
17275 else
17276 lt_cv_prog_compiler_static_works_GCJ=yes
17279 $rm -r conftest*
17280 LDFLAGS="$save_LDFLAGS"
17283 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17284 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17286 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17288 else
17289 lt_prog_compiler_static_GCJ=
17293 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17294 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17295 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17296 $as_echo_n "(cached) " >&6
17297 else
17298 lt_cv_prog_compiler_c_o_GCJ=no
17299 $rm -r conftest 2>/dev/null
17300 mkdir conftest
17301 cd conftest
17302 mkdir out
17303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17305 lt_compiler_flag="-o out/conftest2.$ac_objext"
17306 # Insert the option either (1) after the last *FLAGS variable, or
17307 # (2) before a word containing "conftest.", or (3) at the end.
17308 # Note that $ac_compile itself does not contain backslashes and begins
17309 # with a dollar sign (not a hyphen), so the echo should work correctly.
17310 lt_compile=`echo "$ac_compile" | $SED \
17311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17313 -e 's:$: $lt_compiler_flag:'`
17314 (eval echo "\"\$as_me:17314: $lt_compile\"" >&5)
17315 (eval "$lt_compile" 2>out/conftest.err)
17316 ac_status=$?
17317 cat out/conftest.err >&5
17318 echo "$as_me:17318: \$? = $ac_status" >&5
17319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17320 then
17321 # The compiler can only warn and ignore the option if not recognized
17322 # So say no if there are warnings
17323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17326 lt_cv_prog_compiler_c_o_GCJ=yes
17329 chmod u+w . 2>&5
17330 $rm conftest*
17331 # SGI C++ compiler will create directory out/ii_files/ for
17332 # template instantiation
17333 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17334 $rm out/* && rmdir out
17335 cd ..
17336 rmdir conftest
17337 $rm conftest*
17340 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17341 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17344 hard_links="nottested"
17345 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17346 # do not overwrite the value of need_locks provided by the user
17347 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17348 $as_echo_n "checking if we can lock with hard links... " >&6; }
17349 hard_links=yes
17350 $rm conftest*
17351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17352 touch conftest.a
17353 ln conftest.a conftest.b 2>&5 || hard_links=no
17354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17355 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17356 $as_echo "$hard_links" >&6; }
17357 if test "$hard_links" = no; then
17358 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17359 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17360 need_locks=warn
17362 else
17363 need_locks=no
17366 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17367 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17369 runpath_var=
17370 allow_undefined_flag_GCJ=
17371 enable_shared_with_static_runtimes_GCJ=no
17372 archive_cmds_GCJ=
17373 archive_expsym_cmds_GCJ=
17374 old_archive_From_new_cmds_GCJ=
17375 old_archive_from_expsyms_cmds_GCJ=
17376 export_dynamic_flag_spec_GCJ=
17377 whole_archive_flag_spec_GCJ=
17378 thread_safe_flag_spec_GCJ=
17379 hardcode_libdir_flag_spec_GCJ=
17380 hardcode_libdir_flag_spec_ld_GCJ=
17381 hardcode_libdir_separator_GCJ=
17382 hardcode_direct_GCJ=no
17383 hardcode_minus_L_GCJ=no
17384 hardcode_shlibpath_var_GCJ=unsupported
17385 link_all_deplibs_GCJ=unknown
17386 hardcode_automatic_GCJ=no
17387 module_cmds_GCJ=
17388 module_expsym_cmds_GCJ=
17389 always_export_symbols_GCJ=no
17390 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17391 # include_expsyms should be a list of space-separated symbols to be *always*
17392 # included in the symbol list
17393 include_expsyms_GCJ=
17394 # exclude_expsyms can be an extended regexp of symbols to exclude
17395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17397 # as well as any symbol that contains `d'.
17398 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17400 # platforms (ab)use it in PIC code, but their linkers get confused if
17401 # the symbol is explicitly referenced. Since portable code cannot
17402 # rely on this symbol name, it's probably fine to never include it in
17403 # preloaded symbol tables.
17404 # Exclude shared library initialization/finalization symbols.
17405 extract_expsyms_cmds=
17406 # Just being paranoid about ensuring that cc_basename is set.
17407 for cc_temp in $compiler""; do
17408 case $cc_temp in
17409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17411 \-*) ;;
17412 *) break;;
17413 esac
17414 done
17415 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17417 case $host_os in
17418 cygwin* | mingw* | pw32*)
17419 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17420 # When not using gcc, we currently assume that we are using
17421 # Microsoft Visual C++.
17422 if test "$GCC" != yes; then
17423 with_gnu_ld=no
17426 interix*)
17427 # we just hope/assume this is gcc and not c89 (= MSVC++)
17428 with_gnu_ld=yes
17430 openbsd*)
17431 with_gnu_ld=no
17433 esac
17435 ld_shlibs_GCJ=yes
17436 if test "$with_gnu_ld" = yes; then
17437 # If archive_cmds runs LD, not CC, wlarc should be empty
17438 wlarc='${wl}'
17440 # Set some defaults for GNU ld with shared library support. These
17441 # are reset later if shared libraries are not supported. Putting them
17442 # here allows them to be overridden if necessary.
17443 runpath_var=LD_RUN_PATH
17444 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17445 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17446 # ancient GNU ld didn't support --whole-archive et. al.
17447 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17448 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17449 else
17450 whole_archive_flag_spec_GCJ=
17452 supports_anon_versioning=no
17453 case `$LD -v 2>/dev/null` in
17454 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17455 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17456 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17457 *\ 2.11.*) ;; # other 2.11 versions
17458 *) supports_anon_versioning=yes ;;
17459 esac
17461 # See if GNU ld supports shared libraries.
17462 case $host_os in
17463 aix[3-9]*)
17464 # On AIX/PPC, the GNU linker is very broken
17465 if test "$host_cpu" != ia64; then
17466 ld_shlibs_GCJ=no
17467 cat <<EOF 1>&2
17469 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17470 *** to be unable to reliably create shared libraries on AIX.
17471 *** Therefore, libtool is disabling shared libraries support. If you
17472 *** really care for shared libraries, you may want to modify your PATH
17473 *** so that a non-GNU linker is found, and then restart.
17479 amigaos*)
17480 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)'
17481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17482 hardcode_minus_L_GCJ=yes
17484 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17485 # that the semantics of dynamic libraries on AmigaOS, at least up
17486 # to version 4, is to share data among multiple programs linked
17487 # with the same dynamic library. Since this doesn't match the
17488 # behavior of shared libraries on other platforms, we can't use
17489 # them.
17490 ld_shlibs_GCJ=no
17493 beos*)
17494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17495 allow_undefined_flag_GCJ=unsupported
17496 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17497 # support --undefined. This deserves some investigation. FIXME
17498 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17499 else
17500 ld_shlibs_GCJ=no
17504 cygwin* | mingw* | pw32*)
17505 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17506 # as there is no search path for DLLs.
17507 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17508 allow_undefined_flag_GCJ=unsupported
17509 always_export_symbols_GCJ=no
17510 enable_shared_with_static_runtimes_GCJ=yes
17511 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17513 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17514 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17515 # If the export-symbols file already is a .def file (1st line
17516 # is EXPORTS), use it as is; otherwise, prepend...
17517 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17518 cp $export_symbols $output_objdir/$soname.def;
17519 else
17520 echo EXPORTS > $output_objdir/$soname.def;
17521 cat $export_symbols >> $output_objdir/$soname.def;
17523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17524 else
17525 ld_shlibs_GCJ=no
17529 interix[3-9]*)
17530 hardcode_direct_GCJ=no
17531 hardcode_shlibpath_var_GCJ=no
17532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17533 export_dynamic_flag_spec_GCJ='${wl}-E'
17534 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17535 # Instead, shared libraries are loaded at an image base (0x10000000 by
17536 # default) and relocated if they conflict, which is a slow very memory
17537 # consuming and fragmenting process. To avoid this, we pick a random,
17538 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17539 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17540 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'
17541 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'
17544 gnu* | linux* | k*bsd*-gnu)
17545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17546 tmp_addflag=
17547 case $cc_basename,$host_cpu in
17548 pgcc*) # Portland Group C compiler
17549 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'
17550 tmp_addflag=' $pic_flag'
17552 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17553 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'
17554 tmp_addflag=' $pic_flag -Mnomain' ;;
17555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17556 tmp_addflag=' -i_dynamic' ;;
17557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17558 tmp_addflag=' -i_dynamic -nofor_main' ;;
17559 ifc* | ifort*) # Intel Fortran compiler
17560 tmp_addflag=' -nofor_main' ;;
17561 esac
17562 case `$CC -V 2>&1 | sed 5q` in
17563 *Sun\ C*) # Sun C 5.9
17564 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17565 tmp_sharedflag='-G' ;;
17566 *Sun\ F*) # Sun Fortran 8.3
17567 tmp_sharedflag='-G' ;;
17569 tmp_sharedflag='-shared' ;;
17570 esac
17571 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17573 if test $supports_anon_versioning = yes; then
17574 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17575 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17576 $echo "local: *; };" >> $output_objdir/$libname.ver~
17577 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17579 else
17580 ld_shlibs_GCJ=no
17584 netbsd*)
17585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17586 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17587 wlarc=
17588 else
17589 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17590 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17594 solaris*)
17595 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17596 ld_shlibs_GCJ=no
17597 cat <<EOF 1>&2
17599 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17600 *** create shared libraries on Solaris systems. Therefore, libtool
17601 *** is disabling shared libraries support. We urge you to upgrade GNU
17602 *** binutils to release 2.9.1 or newer. Another option is to modify
17603 *** your PATH or compiler configuration so that the native linker is
17604 *** used, and then restart.
17607 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17608 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17609 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17610 else
17611 ld_shlibs_GCJ=no
17615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17616 case `$LD -v 2>&1` in
17617 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17618 ld_shlibs_GCJ=no
17619 cat <<_LT_EOF 1>&2
17621 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17622 *** reliably create shared libraries on SCO systems. Therefore, libtool
17623 *** is disabling shared libraries support. We urge you to upgrade GNU
17624 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17625 *** your PATH or compiler configuration so that the native linker is
17626 *** used, and then restart.
17628 _LT_EOF
17631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17632 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17633 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17634 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17635 else
17636 ld_shlibs_GCJ=no
17639 esac
17642 sunos4*)
17643 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17644 wlarc=
17645 hardcode_direct_GCJ=yes
17646 hardcode_shlibpath_var_GCJ=no
17650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17651 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17652 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17653 else
17654 ld_shlibs_GCJ=no
17657 esac
17659 if test "$ld_shlibs_GCJ" = no; then
17660 runpath_var=
17661 hardcode_libdir_flag_spec_GCJ=
17662 export_dynamic_flag_spec_GCJ=
17663 whole_archive_flag_spec_GCJ=
17665 else
17666 # PORTME fill in a description of your system's linker (not GNU ld)
17667 case $host_os in
17668 aix3*)
17669 allow_undefined_flag_GCJ=unsupported
17670 always_export_symbols_GCJ=yes
17671 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'
17672 # Note: this linker hardcodes the directories in LIBPATH if there
17673 # are no directories specified by -L.
17674 hardcode_minus_L_GCJ=yes
17675 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17676 # Neither direct hardcoding nor static linking is supported with a
17677 # broken collect2.
17678 hardcode_direct_GCJ=unsupported
17682 aix[4-9]*)
17683 if test "$host_cpu" = ia64; then
17684 # On IA64, the linker does run time linking by default, so we don't
17685 # have to do anything special.
17686 aix_use_runtimelinking=no
17687 exp_sym_flag='-Bexport'
17688 no_entry_flag=""
17689 else
17690 # If we're using GNU nm, then we don't want the "-C" option.
17691 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17692 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17693 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'
17694 else
17695 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'
17697 aix_use_runtimelinking=no
17699 # Test if we are trying to use run time linking or normal
17700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17701 # need to do runtime linking.
17702 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17703 for ld_flag in $LDFLAGS; do
17704 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17705 aix_use_runtimelinking=yes
17706 break
17708 done
17710 esac
17712 exp_sym_flag='-bexport'
17713 no_entry_flag='-bnoentry'
17716 # When large executables or shared objects are built, AIX ld can
17717 # have problems creating the table of contents. If linking a library
17718 # or program results in "error TOC overflow" add -mminimal-toc to
17719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17722 archive_cmds_GCJ=''
17723 hardcode_direct_GCJ=yes
17724 hardcode_libdir_separator_GCJ=':'
17725 link_all_deplibs_GCJ=yes
17727 if test "$GCC" = yes; then
17728 case $host_os in aix4.[012]|aix4.[012].*)
17729 # We only want to do this on AIX 4.2 and lower, the check
17730 # below for broken collect2 doesn't work under 4.3+
17731 collect2name=`${CC} -print-prog-name=collect2`
17732 if test -f "$collect2name" && \
17733 strings "$collect2name" | grep resolve_lib_name >/dev/null
17734 then
17735 # We have reworked collect2
17737 else
17738 # We have old collect2
17739 hardcode_direct_GCJ=unsupported
17740 # It fails to find uninstalled libraries when the uninstalled
17741 # path is not listed in the libpath. Setting hardcode_minus_L
17742 # to unsupported forces relinking
17743 hardcode_minus_L_GCJ=yes
17744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17745 hardcode_libdir_separator_GCJ=
17748 esac
17749 shared_flag='-shared'
17750 if test "$aix_use_runtimelinking" = yes; then
17751 shared_flag="$shared_flag "'${wl}-G'
17753 else
17754 # not using gcc
17755 if test "$host_cpu" = ia64; then
17756 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17757 # chokes on -Wl,-G. The following line is correct:
17758 shared_flag='-G'
17759 else
17760 if test "$aix_use_runtimelinking" = yes; then
17761 shared_flag='${wl}-G'
17762 else
17763 shared_flag='${wl}-bM:SRE'
17768 # It seems that -bexpall does not export symbols beginning with
17769 # underscore (_), so it is better to generate a list of symbols to export.
17770 always_export_symbols_GCJ=yes
17771 if test "$aix_use_runtimelinking" = yes; then
17772 # Warning - without using the other runtime loading flags (-brtl),
17773 # -berok will link without error, but may produce a broken library.
17774 allow_undefined_flag_GCJ='-berok'
17775 # Determine the default libpath from the value encoded in an empty executable.
17776 cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h. */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17784 main ()
17788 return 0;
17790 _ACEOF
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17796 esac
17797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17798 $as_echo "$ac_try_echo") >&5
17799 (eval "$ac_link") 2>conftest.er1
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest$ac_exeext && {
17809 test "$cross_compiling" = yes ||
17810 $as_test_x conftest$ac_exeext
17811 }; then
17813 lt_aix_libpath_sed='
17814 /Import File Strings/,/^$/ {
17815 /^0/ {
17816 s/^0 *\(.*\)$/\1/
17820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17821 # Check for a 64-bit object if we didn't find anything.
17822 if test -z "$aix_libpath"; then
17823 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17825 else
17826 $as_echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17832 rm -rf conftest.dSYM
17833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17834 conftest$ac_exeext conftest.$ac_ext
17835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17837 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17838 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"
17839 else
17840 if test "$host_cpu" = ia64; then
17841 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17842 allow_undefined_flag_GCJ="-z nodefs"
17843 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"
17844 else
17845 # Determine the default libpath from the value encoded in an empty executable.
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h. */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17854 main ()
17858 return 0;
17860 _ACEOF
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866 esac
17867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17868 $as_echo "$ac_try_echo") >&5
17869 (eval "$ac_link") 2>conftest.er1
17870 ac_status=$?
17871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
17874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } && {
17876 test -z "$ac_c_werror_flag" ||
17877 test ! -s conftest.err
17878 } && test -s conftest$ac_exeext && {
17879 test "$cross_compiling" = yes ||
17880 $as_test_x conftest$ac_exeext
17881 }; then
17883 lt_aix_libpath_sed='
17884 /Import File Strings/,/^$/ {
17885 /^0/ {
17886 s/^0 *\(.*\)$/\1/
17890 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17891 # Check for a 64-bit object if we didn't find anything.
17892 if test -z "$aix_libpath"; then
17893 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17895 else
17896 $as_echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17902 rm -rf conftest.dSYM
17903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17904 conftest$ac_exeext conftest.$ac_ext
17905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17907 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17908 # Warning - without using the other run time loading flags,
17909 # -berok will link without error, but may produce a broken library.
17910 no_undefined_flag_GCJ=' ${wl}-bernotok'
17911 allow_undefined_flag_GCJ=' ${wl}-berok'
17912 # Exported symbols can be pulled into shared objects from archives
17913 whole_archive_flag_spec_GCJ='$convenience'
17914 archive_cmds_need_lc_GCJ=yes
17915 # This is similar to how AIX traditionally builds its shared libraries.
17916 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'
17921 amigaos*)
17922 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)'
17923 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17924 hardcode_minus_L_GCJ=yes
17925 # see comment about different semantics on the GNU ld section
17926 ld_shlibs_GCJ=no
17929 bsdi[45]*)
17930 export_dynamic_flag_spec_GCJ=-rdynamic
17933 cygwin* | mingw* | pw32*)
17934 # When not using gcc, we currently assume that we are using
17935 # Microsoft Visual C++.
17936 # hardcode_libdir_flag_spec is actually meaningless, as there is
17937 # no search path for DLLs.
17938 hardcode_libdir_flag_spec_GCJ=' '
17939 allow_undefined_flag_GCJ=unsupported
17940 # Tell ltmain to make .lib files, not .a files.
17941 libext=lib
17942 # Tell ltmain to make .dll files, not .so files.
17943 shrext_cmds=".dll"
17944 # FIXME: Setting linknames here is a bad hack.
17945 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17946 # The linker will automatically build a .lib file if we build a DLL.
17947 old_archive_From_new_cmds_GCJ='true'
17948 # FIXME: Should let the user specify the lib program.
17949 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17950 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17951 enable_shared_with_static_runtimes_GCJ=yes
17954 darwin* | rhapsody*)
17955 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
17956 archive_cmds_need_lc_GCJ=no
17957 hardcode_direct_GCJ=no
17958 hardcode_automatic_GCJ=yes
17959 hardcode_shlibpath_var_GCJ=unsupported
17960 whole_archive_flag_spec_GCJ=''
17961 link_all_deplibs_GCJ=yes
17962 if test "$GCC" = yes ; then
17963 output_verbose_link_cmd='echo'
17964 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17965 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17966 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17967 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17968 else
17969 case $cc_basename in
17970 xlc*)
17971 output_verbose_link_cmd='echo'
17972 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17973 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17974 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17975 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17976 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}'
17979 ld_shlibs_GCJ=no
17981 esac
17985 dgux*)
17986 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17987 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17988 hardcode_shlibpath_var_GCJ=no
17991 freebsd1*)
17992 ld_shlibs_GCJ=no
17995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17996 # support. Future versions do this automatically, but an explicit c++rt0.o
17997 # does not break anything, and helps significantly (at the cost of a little
17998 # extra space).
17999 freebsd2.2*)
18000 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18002 hardcode_direct_GCJ=yes
18003 hardcode_shlibpath_var_GCJ=no
18006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18007 freebsd2*)
18008 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18009 hardcode_direct_GCJ=yes
18010 hardcode_minus_L_GCJ=yes
18011 hardcode_shlibpath_var_GCJ=no
18014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18015 freebsd* | dragonfly*)
18016 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18018 hardcode_direct_GCJ=yes
18019 hardcode_shlibpath_var_GCJ=no
18022 hpux9*)
18023 if test "$GCC" = yes; then
18024 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'
18025 else
18026 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'
18028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18029 hardcode_libdir_separator_GCJ=:
18030 hardcode_direct_GCJ=yes
18032 # hardcode_minus_L: Not really in the search PATH,
18033 # but as the default location of the library.
18034 hardcode_minus_L_GCJ=yes
18035 export_dynamic_flag_spec_GCJ='${wl}-E'
18038 hpux10*)
18039 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18040 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18041 else
18042 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18044 if test "$with_gnu_ld" = no; then
18045 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18046 hardcode_libdir_separator_GCJ=:
18048 hardcode_direct_GCJ=yes
18049 export_dynamic_flag_spec_GCJ='${wl}-E'
18051 # hardcode_minus_L: Not really in the search PATH,
18052 # but as the default location of the library.
18053 hardcode_minus_L_GCJ=yes
18057 hpux11*)
18058 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18059 case $host_cpu in
18060 hppa*64*)
18061 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18063 ia64*)
18064 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18067 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18069 esac
18070 else
18071 case $host_cpu in
18072 hppa*64*)
18073 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18075 ia64*)
18076 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18079 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18081 esac
18083 if test "$with_gnu_ld" = no; then
18084 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18085 hardcode_libdir_separator_GCJ=:
18087 case $host_cpu in
18088 hppa*64*|ia64*)
18089 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18090 hardcode_direct_GCJ=no
18091 hardcode_shlibpath_var_GCJ=no
18094 hardcode_direct_GCJ=yes
18095 export_dynamic_flag_spec_GCJ='${wl}-E'
18097 # hardcode_minus_L: Not really in the search PATH,
18098 # but as the default location of the library.
18099 hardcode_minus_L_GCJ=yes
18101 esac
18105 irix5* | irix6* | nonstopux*)
18106 if test "$GCC" = yes; then
18107 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'
18108 else
18109 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'
18110 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18113 hardcode_libdir_separator_GCJ=:
18114 link_all_deplibs_GCJ=yes
18117 netbsd*)
18118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18119 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18120 else
18121 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18123 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18124 hardcode_direct_GCJ=yes
18125 hardcode_shlibpath_var_GCJ=no
18128 newsos6)
18129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18130 hardcode_direct_GCJ=yes
18131 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18132 hardcode_libdir_separator_GCJ=:
18133 hardcode_shlibpath_var_GCJ=no
18136 openbsd*)
18137 if test -f /usr/libexec/ld.so; then
18138 hardcode_direct_GCJ=yes
18139 hardcode_shlibpath_var_GCJ=no
18140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18141 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18142 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18143 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18144 export_dynamic_flag_spec_GCJ='${wl}-E'
18145 else
18146 case $host_os in
18147 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18148 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18149 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18152 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18155 esac
18157 else
18158 ld_shlibs_GCJ=no
18162 os2*)
18163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18164 hardcode_minus_L_GCJ=yes
18165 allow_undefined_flag_GCJ=unsupported
18166 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'
18167 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18170 osf3*)
18171 if test "$GCC" = yes; then
18172 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18173 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'
18174 else
18175 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18176 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'
18178 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18179 hardcode_libdir_separator_GCJ=:
18182 osf4* | osf5*) # as osf3* with the addition of -msym flag
18183 if test "$GCC" = yes; then
18184 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18185 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'
18186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18187 else
18188 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18189 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'
18190 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~
18191 $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'
18193 # Both c and cxx compiler support -rpath directly
18194 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18196 hardcode_libdir_separator_GCJ=:
18199 solaris*)
18200 no_undefined_flag_GCJ=' -z text'
18201 if test "$GCC" = yes; then
18202 wlarc='${wl}'
18203 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18204 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18205 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18206 else
18207 wlarc=''
18208 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18209 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18210 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18212 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18213 hardcode_shlibpath_var_GCJ=no
18214 case $host_os in
18215 solaris2.[0-5] | solaris2.[0-5].*) ;;
18217 # The compiler driver will combine and reorder linker options,
18218 # but understands `-z linker_flag'. GCC discards it without `$wl',
18219 # but is careful enough not to reorder.
18220 # Supported since Solaris 2.6 (maybe 2.5.1?)
18221 if test "$GCC" = yes; then
18222 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18223 else
18224 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18227 esac
18228 link_all_deplibs_GCJ=yes
18231 sunos4*)
18232 if test "x$host_vendor" = xsequent; then
18233 # Use $CC to link under sequent, because it throws in some extra .o
18234 # files that make .init and .fini sections work.
18235 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18236 else
18237 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18240 hardcode_direct_GCJ=yes
18241 hardcode_minus_L_GCJ=yes
18242 hardcode_shlibpath_var_GCJ=no
18245 sysv4)
18246 case $host_vendor in
18247 sni)
18248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249 hardcode_direct_GCJ=yes # is this really true???
18251 siemens)
18252 ## LD is ld it makes a PLAMLIB
18253 ## CC just makes a GrossModule.
18254 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18255 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18256 hardcode_direct_GCJ=no
18258 motorola)
18259 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18262 esac
18263 runpath_var='LD_RUN_PATH'
18264 hardcode_shlibpath_var_GCJ=no
18267 sysv4.3*)
18268 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18269 hardcode_shlibpath_var_GCJ=no
18270 export_dynamic_flag_spec_GCJ='-Bexport'
18273 sysv4*MP*)
18274 if test -d /usr/nec; then
18275 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18276 hardcode_shlibpath_var_GCJ=no
18277 runpath_var=LD_RUN_PATH
18278 hardcode_runpath_var=yes
18279 ld_shlibs_GCJ=yes
18283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18284 no_undefined_flag_GCJ='${wl}-z,text'
18285 archive_cmds_need_lc_GCJ=no
18286 hardcode_shlibpath_var_GCJ=no
18287 runpath_var='LD_RUN_PATH'
18289 if test "$GCC" = yes; then
18290 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18291 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18292 else
18293 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18298 sysv5* | sco3.2v5* | sco5v6*)
18299 # Note: We can NOT use -z defs as we might desire, because we do not
18300 # link with -lc, and that would cause any symbols used from libc to
18301 # always be unresolved, which means just about no library would
18302 # ever link correctly. If we're not using GNU ld we use -z text
18303 # though, which does catch some bad symbols but isn't as heavy-handed
18304 # as -z defs.
18305 no_undefined_flag_GCJ='${wl}-z,text'
18306 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18307 archive_cmds_need_lc_GCJ=no
18308 hardcode_shlibpath_var_GCJ=no
18309 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18310 hardcode_libdir_separator_GCJ=':'
18311 link_all_deplibs_GCJ=yes
18312 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18313 runpath_var='LD_RUN_PATH'
18315 if test "$GCC" = yes; then
18316 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18317 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18318 else
18319 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18320 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18324 uts4*)
18325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18327 hardcode_shlibpath_var_GCJ=no
18331 ld_shlibs_GCJ=no
18333 esac
18336 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18337 $as_echo "$ld_shlibs_GCJ" >&6; }
18338 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18341 # Do we need to explicitly link libc?
18343 case "x$archive_cmds_need_lc_GCJ" in
18344 x|xyes)
18345 # Assume -lc should be added
18346 archive_cmds_need_lc_GCJ=yes
18348 if test "$enable_shared" = yes && test "$GCC" = yes; then
18349 case $archive_cmds_GCJ in
18350 *'~'*)
18351 # FIXME: we may have to deal with multi-command sequences.
18353 '$CC '*)
18354 # Test whether the compiler implicitly links with -lc since on some
18355 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18356 # to ld, don't add -lc before -lgcc.
18357 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18358 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18359 $rm conftest*
18360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18363 (eval $ac_compile) 2>&5
18364 ac_status=$?
18365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } 2>conftest.err; then
18367 soname=conftest
18368 lib=conftest
18369 libobjs=conftest.$ac_objext
18370 deplibs=
18371 wl=$lt_prog_compiler_wl_GCJ
18372 pic_flag=$lt_prog_compiler_pic_GCJ
18373 compiler_flags=-v
18374 linker_flags=-v
18375 verstring=
18376 output_objdir=.
18377 libname=conftest
18378 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18379 allow_undefined_flag_GCJ=
18380 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18381 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18382 ac_status=$?
18383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }
18385 then
18386 archive_cmds_need_lc_GCJ=no
18387 else
18388 archive_cmds_need_lc_GCJ=yes
18390 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18391 else
18392 cat conftest.err 1>&5
18394 $rm conftest*
18395 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18396 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18398 esac
18401 esac
18403 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18404 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18405 library_names_spec=
18406 libname_spec='lib$name'
18407 soname_spec=
18408 shrext_cmds=".so"
18409 postinstall_cmds=
18410 postuninstall_cmds=
18411 finish_cmds=
18412 finish_eval=
18413 shlibpath_var=
18414 shlibpath_overrides_runpath=unknown
18415 version_type=none
18416 dynamic_linker="$host_os ld.so"
18417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18419 need_lib_prefix=unknown
18420 hardcode_into_libs=no
18422 # when you set need_version to no, make sure it does not cause -set_version
18423 # flags to be left without arguments
18424 need_version=unknown
18426 case $host_os in
18427 aix3*)
18428 version_type=linux
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18430 shlibpath_var=LIBPATH
18432 # AIX 3 has no versioning support, so we append a major version to the name.
18433 soname_spec='${libname}${release}${shared_ext}$major'
18436 aix[4-9]*)
18437 version_type=linux
18438 need_lib_prefix=no
18439 need_version=no
18440 hardcode_into_libs=yes
18441 if test "$host_cpu" = ia64; then
18442 # AIX 5 supports IA64
18443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18444 shlibpath_var=LD_LIBRARY_PATH
18445 else
18446 # With GCC up to 2.95.x, collect2 would create an import file
18447 # for dependence libraries. The import file would start with
18448 # the line `#! .'. This would cause the generated library to
18449 # depend on `.', always an invalid library. This was fixed in
18450 # development snapshots of GCC prior to 3.0.
18451 case $host_os in
18452 aix4 | aix4.[01] | aix4.[01].*)
18453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18454 echo ' yes '
18455 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18457 else
18458 can_build_shared=no
18461 esac
18462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18463 # soname into executable. Probably we can add versioning support to
18464 # collect2, so additional links can be useful in future.
18465 if test "$aix_use_runtimelinking" = yes; then
18466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18467 # instead of lib<name>.a to let people know that these are not
18468 # typical AIX shared libraries.
18469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470 else
18471 # We preserve .a as extension for shared libraries through AIX4.2
18472 # and later when we are not doing run time linking.
18473 library_names_spec='${libname}${release}.a $libname.a'
18474 soname_spec='${libname}${release}${shared_ext}$major'
18476 shlibpath_var=LIBPATH
18480 amigaos*)
18481 library_names_spec='$libname.ixlibrary $libname.a'
18482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18483 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'
18486 beos*)
18487 library_names_spec='${libname}${shared_ext}'
18488 dynamic_linker="$host_os ld.so"
18489 shlibpath_var=LIBRARY_PATH
18492 bsdi[45]*)
18493 version_type=linux
18494 need_version=no
18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496 soname_spec='${libname}${release}${shared_ext}$major'
18497 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18498 shlibpath_var=LD_LIBRARY_PATH
18499 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18500 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18501 # the default ld.so.conf also contains /usr/contrib/lib and
18502 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18503 # libtool to hard-code these into programs
18506 cygwin* | mingw* | pw32*)
18507 version_type=windows
18508 shrext_cmds=".dll"
18509 need_version=no
18510 need_lib_prefix=no
18512 case $GCC,$host_os in
18513 yes,cygwin* | yes,mingw* | yes,pw32*)
18514 library_names_spec='$libname.dll.a'
18515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18516 postinstall_cmds='base_file=`basename \${file}`~
18517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18518 dldir=$destdir/`dirname \$dlpath`~
18519 test -d \$dldir || mkdir -p \$dldir~
18520 $install_prog $dir/$dlname \$dldir/$dlname~
18521 chmod a+x \$dldir/$dlname'
18522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18523 dlpath=$dir/\$dldll~
18524 $rm \$dlpath'
18525 shlibpath_overrides_runpath=yes
18527 case $host_os in
18528 cygwin*)
18529 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18530 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18531 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18533 mingw*)
18534 # MinGW DLLs use traditional 'lib' prefix
18535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18536 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18537 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18538 # It is most probably a Windows format PATH printed by
18539 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18540 # path with ; separators, and with drive letters. We can handle the
18541 # drive letters (cygwin fileutils understands them), so leave them,
18542 # especially as we might pass files found there to a mingw objdump,
18543 # which wouldn't understand a cygwinified path. Ahh.
18544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18545 else
18546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18549 pw32*)
18550 # pw32 DLLs use 'pw' prefix rather than 'lib'
18551 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18553 esac
18557 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18559 esac
18560 dynamic_linker='Win32 ld.exe'
18561 # FIXME: first we should search . and the directory the executable is in
18562 shlibpath_var=PATH
18565 darwin* | rhapsody*)
18566 dynamic_linker="$host_os dyld"
18567 version_type=darwin
18568 need_lib_prefix=no
18569 need_version=no
18570 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18571 soname_spec='${libname}${release}${major}$shared_ext'
18572 shlibpath_overrides_runpath=yes
18573 shlibpath_var=DYLD_LIBRARY_PATH
18574 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18576 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18579 dgux*)
18580 version_type=linux
18581 need_lib_prefix=no
18582 need_version=no
18583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18584 soname_spec='${libname}${release}${shared_ext}$major'
18585 shlibpath_var=LD_LIBRARY_PATH
18588 freebsd1*)
18589 dynamic_linker=no
18592 freebsd* | dragonfly*)
18593 # DragonFly does not have aout. When/if they implement a new
18594 # versioning mechanism, adjust this.
18595 if test -x /usr/bin/objformat; then
18596 objformat=`/usr/bin/objformat`
18597 else
18598 case $host_os in
18599 freebsd[123]*) objformat=aout ;;
18600 *) objformat=elf ;;
18601 esac
18603 version_type=freebsd-$objformat
18604 case $version_type in
18605 freebsd-elf*)
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18607 need_version=no
18608 need_lib_prefix=no
18610 freebsd-*)
18611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18612 need_version=yes
18614 esac
18615 shlibpath_var=LD_LIBRARY_PATH
18616 case $host_os in
18617 freebsd2*)
18618 shlibpath_overrides_runpath=yes
18620 freebsd3.[01]* | freebsdelf3.[01]*)
18621 shlibpath_overrides_runpath=yes
18622 hardcode_into_libs=yes
18624 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18625 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18626 shlibpath_overrides_runpath=no
18627 hardcode_into_libs=yes
18629 *) # from 4.6 on, and DragonFly
18630 shlibpath_overrides_runpath=yes
18631 hardcode_into_libs=yes
18633 esac
18636 gnu*)
18637 version_type=linux
18638 need_lib_prefix=no
18639 need_version=no
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 hardcode_into_libs=yes
18646 hpux9* | hpux10* | hpux11*)
18647 # Give a soname corresponding to the major version so that dld.sl refuses to
18648 # link against other versions.
18649 version_type=sunos
18650 need_lib_prefix=no
18651 need_version=no
18652 case $host_cpu in
18653 ia64*)
18654 shrext_cmds='.so'
18655 hardcode_into_libs=yes
18656 dynamic_linker="$host_os dld.so"
18657 shlibpath_var=LD_LIBRARY_PATH
18658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 if test "X$HPUX_IA64_MODE" = X32; then
18662 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18663 else
18664 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18668 hppa*64*)
18669 shrext_cmds='.sl'
18670 hardcode_into_libs=yes
18671 dynamic_linker="$host_os dld.sl"
18672 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675 soname_spec='${libname}${release}${shared_ext}$major'
18676 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18680 shrext_cmds='.sl'
18681 dynamic_linker="$host_os dld.sl"
18682 shlibpath_var=SHLIB_PATH
18683 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18685 soname_spec='${libname}${release}${shared_ext}$major'
18687 esac
18688 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18689 postinstall_cmds='chmod 555 $lib'
18692 interix[3-9]*)
18693 version_type=linux
18694 need_lib_prefix=no
18695 need_version=no
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18697 soname_spec='${libname}${release}${shared_ext}$major'
18698 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18699 shlibpath_var=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath=no
18701 hardcode_into_libs=yes
18704 irix5* | irix6* | nonstopux*)
18705 case $host_os in
18706 nonstopux*) version_type=nonstopux ;;
18708 if test "$lt_cv_prog_gnu_ld" = yes; then
18709 version_type=linux
18710 else
18711 version_type=irix
18712 fi ;;
18713 esac
18714 need_lib_prefix=no
18715 need_version=no
18716 soname_spec='${libname}${release}${shared_ext}$major'
18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18718 case $host_os in
18719 irix5* | nonstopux*)
18720 libsuff= shlibsuff=
18723 case $LD in # libtool.m4 will add one of these switches to LD
18724 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18725 libsuff= shlibsuff= libmagic=32-bit;;
18726 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18727 libsuff=32 shlibsuff=N32 libmagic=N32;;
18728 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18729 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18730 *) libsuff= shlibsuff= libmagic=never-match;;
18731 esac
18733 esac
18734 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18735 shlibpath_overrides_runpath=no
18736 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18737 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18738 hardcode_into_libs=yes
18741 # No shared lib support for Linux oldld, aout, or coff.
18742 linux*oldld* | linux*aout* | linux*coff*)
18743 dynamic_linker=no
18746 # This must be Linux ELF.
18747 linux* | k*bsd*-gnu)
18748 version_type=linux
18749 need_lib_prefix=no
18750 need_version=no
18751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18754 shlibpath_var=LD_LIBRARY_PATH
18755 shlibpath_overrides_runpath=no
18756 # This implies no fast_install, which is unacceptable.
18757 # Some rework will be needed to allow for fast_install
18758 # before this can be enabled.
18759 hardcode_into_libs=yes
18761 # Append ld.so.conf contents to the search path
18762 if test -f /etc/ld.so.conf; then
18763 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18767 # We used to test for /lib/ld.so.1 and disable shared libraries on
18768 # powerpc, because MkLinux only supported shared libraries with the
18769 # GNU dynamic linker. Since this was broken with cross compilers,
18770 # most powerpc-linux boxes support dynamic linking these days and
18771 # people can always --disable-shared, the test was removed, and we
18772 # assume the GNU/Linux dynamic linker is in use.
18773 dynamic_linker='GNU/Linux ld.so'
18776 netbsd*)
18777 version_type=sunos
18778 need_lib_prefix=no
18779 need_version=no
18780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18783 dynamic_linker='NetBSD (a.out) ld.so'
18784 else
18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18786 soname_spec='${libname}${release}${shared_ext}$major'
18787 dynamic_linker='NetBSD ld.elf_so'
18789 shlibpath_var=LD_LIBRARY_PATH
18790 shlibpath_overrides_runpath=yes
18791 hardcode_into_libs=yes
18794 newsos6)
18795 version_type=linux
18796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18797 shlibpath_var=LD_LIBRARY_PATH
18798 shlibpath_overrides_runpath=yes
18801 nto-qnx*)
18802 version_type=linux
18803 need_lib_prefix=no
18804 need_version=no
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 shlibpath_overrides_runpath=yes
18811 openbsd*)
18812 version_type=sunos
18813 sys_lib_dlsearch_path_spec="/usr/lib"
18814 need_lib_prefix=no
18815 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18816 case $host_os in
18817 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18818 *) need_version=no ;;
18819 esac
18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18822 shlibpath_var=LD_LIBRARY_PATH
18823 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18824 case $host_os in
18825 openbsd2.[89] | openbsd2.[89].*)
18826 shlibpath_overrides_runpath=no
18829 shlibpath_overrides_runpath=yes
18831 esac
18832 else
18833 shlibpath_overrides_runpath=yes
18837 os2*)
18838 libname_spec='$name'
18839 shrext_cmds=".dll"
18840 need_lib_prefix=no
18841 library_names_spec='$libname${shared_ext} $libname.a'
18842 dynamic_linker='OS/2 ld.exe'
18843 shlibpath_var=LIBPATH
18846 osf3* | osf4* | osf5*)
18847 version_type=osf
18848 need_lib_prefix=no
18849 need_version=no
18850 soname_spec='${libname}${release}${shared_ext}$major'
18851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18854 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18857 rdos*)
18858 dynamic_linker=no
18861 solaris*)
18862 version_type=linux
18863 need_lib_prefix=no
18864 need_version=no
18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866 soname_spec='${libname}${release}${shared_ext}$major'
18867 shlibpath_var=LD_LIBRARY_PATH
18868 shlibpath_overrides_runpath=yes
18869 hardcode_into_libs=yes
18870 # ldd complains unless libraries are executable
18871 postinstall_cmds='chmod +x $lib'
18874 sunos4*)
18875 version_type=sunos
18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18878 shlibpath_var=LD_LIBRARY_PATH
18879 shlibpath_overrides_runpath=yes
18880 if test "$with_gnu_ld" = yes; then
18881 need_lib_prefix=no
18883 need_version=yes
18886 sysv4 | sysv4.3*)
18887 version_type=linux
18888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18889 soname_spec='${libname}${release}${shared_ext}$major'
18890 shlibpath_var=LD_LIBRARY_PATH
18891 case $host_vendor in
18892 sni)
18893 shlibpath_overrides_runpath=no
18894 need_lib_prefix=no
18895 export_dynamic_flag_spec='${wl}-Blargedynsym'
18896 runpath_var=LD_RUN_PATH
18898 siemens)
18899 need_lib_prefix=no
18901 motorola)
18902 need_lib_prefix=no
18903 need_version=no
18904 shlibpath_overrides_runpath=no
18905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18907 esac
18910 sysv4*MP*)
18911 if test -d /usr/nec ;then
18912 version_type=linux
18913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18914 soname_spec='$libname${shared_ext}.$major'
18915 shlibpath_var=LD_LIBRARY_PATH
18919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18920 version_type=freebsd-elf
18921 need_lib_prefix=no
18922 need_version=no
18923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18924 soname_spec='${libname}${release}${shared_ext}$major'
18925 shlibpath_var=LD_LIBRARY_PATH
18926 hardcode_into_libs=yes
18927 if test "$with_gnu_ld" = yes; then
18928 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18929 shlibpath_overrides_runpath=no
18930 else
18931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18932 shlibpath_overrides_runpath=yes
18933 case $host_os in
18934 sco3.2v5*)
18935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18937 esac
18939 sys_lib_dlsearch_path_spec='/usr/lib'
18942 uts4*)
18943 version_type=linux
18944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18945 soname_spec='${libname}${release}${shared_ext}$major'
18946 shlibpath_var=LD_LIBRARY_PATH
18950 dynamic_linker=no
18952 esac
18953 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18954 $as_echo "$dynamic_linker" >&6; }
18955 test "$dynamic_linker" = no && can_build_shared=no
18957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18958 $as_echo_n "(cached) " >&6
18959 else
18960 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18963 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18964 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18965 $as_echo_n "(cached) " >&6
18966 else
18967 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18970 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18973 if test "$GCC" = yes; then
18974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18977 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18979 hardcode_action_GCJ=
18980 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18981 test -n "$runpath_var_GCJ" || \
18982 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18984 # We can hardcode non-existant directories.
18985 if test "$hardcode_direct_GCJ" != no &&
18986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18987 # have to relink, otherwise we might link with an installed library
18988 # when we should be linking with a yet-to-be-installed one
18989 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18990 test "$hardcode_minus_L_GCJ" != no; then
18991 # Linking always hardcodes the temporary library directory.
18992 hardcode_action_GCJ=relink
18993 else
18994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18995 hardcode_action_GCJ=immediate
18997 else
18998 # We cannot hardcode anything, or else we can only hardcode existing
18999 # directories.
19000 hardcode_action_GCJ=unsupported
19002 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19003 $as_echo "$hardcode_action_GCJ" >&6; }
19005 if test "$hardcode_action_GCJ" = relink; then
19006 # Fast installation is not supported
19007 enable_fast_install=no
19008 elif test "$shlibpath_overrides_runpath" = yes ||
19009 test "$enable_shared" = no; then
19010 # Fast installation is not necessary
19011 enable_fast_install=needless
19015 # The else clause should only fire when bootstrapping the
19016 # libtool distribution, otherwise you forgot to ship ltmain.sh
19017 # with your package, and you will get complaints that there are
19018 # no rules to generate ltmain.sh.
19019 if test -f "$ltmain"; then
19020 # See if we are running on zsh, and set the options which allow our commands through
19021 # without removal of \ escapes.
19022 if test -n "${ZSH_VERSION+set}" ; then
19023 setopt NO_GLOB_SUBST
19025 # Now quote all the things that may contain metacharacters while being
19026 # careful not to overquote the AC_SUBSTed values. We take copies of the
19027 # variables and quote the copies for generation of the libtool script.
19028 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19029 SED SHELL STRIP \
19030 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19031 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19032 deplibs_check_method reload_flag reload_cmds need_locks \
19033 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19034 lt_cv_sys_global_symbol_to_c_name_address \
19035 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19036 old_postinstall_cmds old_postuninstall_cmds \
19037 compiler_GCJ \
19038 CC_GCJ \
19039 LD_GCJ \
19040 lt_prog_compiler_wl_GCJ \
19041 lt_prog_compiler_pic_GCJ \
19042 lt_prog_compiler_static_GCJ \
19043 lt_prog_compiler_no_builtin_flag_GCJ \
19044 export_dynamic_flag_spec_GCJ \
19045 thread_safe_flag_spec_GCJ \
19046 whole_archive_flag_spec_GCJ \
19047 enable_shared_with_static_runtimes_GCJ \
19048 old_archive_cmds_GCJ \
19049 old_archive_from_new_cmds_GCJ \
19050 predep_objects_GCJ \
19051 postdep_objects_GCJ \
19052 predeps_GCJ \
19053 postdeps_GCJ \
19054 compiler_lib_search_path_GCJ \
19055 compiler_lib_search_dirs_GCJ \
19056 archive_cmds_GCJ \
19057 archive_expsym_cmds_GCJ \
19058 postinstall_cmds_GCJ \
19059 postuninstall_cmds_GCJ \
19060 old_archive_from_expsyms_cmds_GCJ \
19061 allow_undefined_flag_GCJ \
19062 no_undefined_flag_GCJ \
19063 export_symbols_cmds_GCJ \
19064 hardcode_libdir_flag_spec_GCJ \
19065 hardcode_libdir_flag_spec_ld_GCJ \
19066 hardcode_libdir_separator_GCJ \
19067 hardcode_automatic_GCJ \
19068 module_cmds_GCJ \
19069 module_expsym_cmds_GCJ \
19070 lt_cv_prog_compiler_c_o_GCJ \
19071 fix_srcfile_path_GCJ \
19072 exclude_expsyms_GCJ \
19073 include_expsyms_GCJ; do
19075 case $var in
19076 old_archive_cmds_GCJ | \
19077 old_archive_from_new_cmds_GCJ | \
19078 archive_cmds_GCJ | \
19079 archive_expsym_cmds_GCJ | \
19080 module_cmds_GCJ | \
19081 module_expsym_cmds_GCJ | \
19082 old_archive_from_expsyms_cmds_GCJ | \
19083 export_symbols_cmds_GCJ | \
19084 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19085 postinstall_cmds | postuninstall_cmds | \
19086 old_postinstall_cmds | old_postuninstall_cmds | \
19087 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19088 # Double-quote double-evaled strings.
19089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19092 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19094 esac
19095 done
19097 case $lt_echo in
19098 *'\$0 --fallback-echo"')
19099 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19101 esac
19103 cfgfile="$ofile"
19105 cat <<__EOF__ >> "$cfgfile"
19106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19110 # Shell to use when invoking shell scripts.
19111 SHELL=$lt_SHELL
19113 # Whether or not to build shared libraries.
19114 build_libtool_libs=$enable_shared
19116 # Whether or not to build static libraries.
19117 build_old_libs=$enable_static
19119 # Whether or not to add -lc for building shared libraries.
19120 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19122 # Whether or not to disallow shared libs when runtime libs are static
19123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19125 # Whether or not to optimize for fast installation.
19126 fast_install=$enable_fast_install
19128 # The host system.
19129 host_alias=$host_alias
19130 host=$host
19131 host_os=$host_os
19133 # The build system.
19134 build_alias=$build_alias
19135 build=$build
19136 build_os=$build_os
19138 # An echo program that does not interpret backslashes.
19139 echo=$lt_echo
19141 # The archiver.
19142 AR=$lt_AR
19143 AR_FLAGS=$lt_AR_FLAGS
19145 # A C compiler.
19146 LTCC=$lt_LTCC
19148 # LTCC compiler flags.
19149 LTCFLAGS=$lt_LTCFLAGS
19151 # A language-specific compiler.
19152 CC=$lt_compiler_GCJ
19154 # Is the compiler the GNU C compiler?
19155 with_gcc=$GCC_GCJ
19157 # An ERE matcher.
19158 EGREP=$lt_EGREP
19160 # The linker used to build libraries.
19161 LD=$lt_LD_GCJ
19163 # Whether we need hard or soft links.
19164 LN_S=$lt_LN_S
19166 # A BSD-compatible nm program.
19167 NM=$lt_NM
19169 # A symbol stripping program
19170 STRIP=$lt_STRIP
19172 # Used to examine libraries when file_magic_cmd begins "file"
19173 MAGIC_CMD=$MAGIC_CMD
19175 # Used on cygwin: DLL creation program.
19176 DLLTOOL="$DLLTOOL"
19178 # Used on cygwin: object dumper.
19179 OBJDUMP="$OBJDUMP"
19181 # Used on cygwin: assembler.
19182 AS="$AS"
19184 # The name of the directory that contains temporary libtool files.
19185 objdir=$objdir
19187 # How to create reloadable object files.
19188 reload_flag=$lt_reload_flag
19189 reload_cmds=$lt_reload_cmds
19191 # How to pass a linker flag through the compiler.
19192 wl=$lt_lt_prog_compiler_wl_GCJ
19194 # Object file suffix (normally "o").
19195 objext="$ac_objext"
19197 # Old archive suffix (normally "a").
19198 libext="$libext"
19200 # Shared library suffix (normally ".so").
19201 shrext_cmds='$shrext_cmds'
19203 # Executable file suffix (normally "").
19204 exeext="$exeext"
19206 # Additional compiler flags for building library objects.
19207 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19208 pic_mode=$pic_mode
19210 # What is the maximum length of a command?
19211 max_cmd_len=$lt_cv_sys_max_cmd_len
19213 # Does compiler simultaneously support -c and -o options?
19214 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19216 # Must we lock files when doing compilation?
19217 need_locks=$lt_need_locks
19219 # Do we need the lib prefix for modules?
19220 need_lib_prefix=$need_lib_prefix
19222 # Do we need a version for libraries?
19223 need_version=$need_version
19225 # Whether dlopen is supported.
19226 dlopen_support=$enable_dlopen
19228 # Whether dlopen of programs is supported.
19229 dlopen_self=$enable_dlopen_self
19231 # Whether dlopen of statically linked programs is supported.
19232 dlopen_self_static=$enable_dlopen_self_static
19234 # Compiler flag to prevent dynamic linking.
19235 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19237 # Compiler flag to turn off builtin functions.
19238 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19240 # Compiler flag to allow reflexive dlopens.
19241 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19243 # Compiler flag to generate shared objects directly from archives.
19244 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19246 # Compiler flag to generate thread-safe objects.
19247 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19249 # Library versioning type.
19250 version_type=$version_type
19252 # Format of library name prefix.
19253 libname_spec=$lt_libname_spec
19255 # List of archive names. First name is the real one, the rest are links.
19256 # The last name is the one that the linker finds with -lNAME.
19257 library_names_spec=$lt_library_names_spec
19259 # The coded name of the library, if different from the real name.
19260 soname_spec=$lt_soname_spec
19262 # Commands used to build and install an old-style archive.
19263 RANLIB=$lt_RANLIB
19264 old_archive_cmds=$lt_old_archive_cmds_GCJ
19265 old_postinstall_cmds=$lt_old_postinstall_cmds
19266 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19268 # Create an old-style archive from a shared archive.
19269 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19271 # Create a temporary old-style archive to link instead of a shared archive.
19272 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19274 # Commands used to build and install a shared archive.
19275 archive_cmds=$lt_archive_cmds_GCJ
19276 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19277 postinstall_cmds=$lt_postinstall_cmds
19278 postuninstall_cmds=$lt_postuninstall_cmds
19280 # Commands used to build a loadable module (assumed same as above if empty)
19281 module_cmds=$lt_module_cmds_GCJ
19282 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19284 # Commands to strip libraries.
19285 old_striplib=$lt_old_striplib
19286 striplib=$lt_striplib
19288 # Dependencies to place before the objects being linked to create a
19289 # shared library.
19290 predep_objects=$lt_predep_objects_GCJ
19292 # Dependencies to place after the objects being linked to create a
19293 # shared library.
19294 postdep_objects=$lt_postdep_objects_GCJ
19296 # Dependencies to place before the objects being linked to create a
19297 # shared library.
19298 predeps=$lt_predeps_GCJ
19300 # Dependencies to place after the objects being linked to create a
19301 # shared library.
19302 postdeps=$lt_postdeps_GCJ
19304 # The directories searched by this compiler when creating a shared
19305 # library
19306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19308 # The library search path used internally by the compiler when linking
19309 # a shared library.
19310 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19312 # Method to check whether dependent libraries are shared objects.
19313 deplibs_check_method=$lt_deplibs_check_method
19315 # Command to use when deplibs_check_method == file_magic.
19316 file_magic_cmd=$lt_file_magic_cmd
19318 # Flag that allows shared libraries with undefined symbols to be built.
19319 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19321 # Flag that forces no undefined symbols.
19322 no_undefined_flag=$lt_no_undefined_flag_GCJ
19324 # Commands used to finish a libtool library installation in a directory.
19325 finish_cmds=$lt_finish_cmds
19327 # Same as above, but a single script fragment to be evaled but not shown.
19328 finish_eval=$lt_finish_eval
19330 # Take the output of nm and produce a listing of raw symbols and C names.
19331 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19333 # Transform the output of nm in a proper C declaration
19334 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19336 # Transform the output of nm in a C name address pair
19337 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19339 # This is the shared library runtime path variable.
19340 runpath_var=$runpath_var
19342 # This is the shared library path variable.
19343 shlibpath_var=$shlibpath_var
19345 # Is shlibpath searched before the hard-coded library search path?
19346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19348 # How to hardcode a shared library path into an executable.
19349 hardcode_action=$hardcode_action_GCJ
19351 # Whether we should hardcode library paths into libraries.
19352 hardcode_into_libs=$hardcode_into_libs
19354 # Flag to hardcode \$libdir into a binary during linking.
19355 # This must work even if \$libdir does not exist.
19356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19358 # If ld is used when linking, flag to hardcode \$libdir into
19359 # a binary during linking. This must work even if \$libdir does
19360 # not exist.
19361 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19363 # Whether we need a single -rpath flag with a separated argument.
19364 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19366 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19367 # resulting binary.
19368 hardcode_direct=$hardcode_direct_GCJ
19370 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19371 # resulting binary.
19372 hardcode_minus_L=$hardcode_minus_L_GCJ
19374 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19375 # the resulting binary.
19376 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19378 # Set to yes if building a shared library automatically hardcodes DIR into the library
19379 # and all subsequent libraries and executables linked against it.
19380 hardcode_automatic=$hardcode_automatic_GCJ
19382 # Variables whose values should be saved in libtool wrapper scripts and
19383 # restored at relink time.
19384 variables_saved_for_relink="$variables_saved_for_relink"
19386 # Whether libtool must link a program against all its dependency libraries.
19387 link_all_deplibs=$link_all_deplibs_GCJ
19389 # Compile-time system search path for libraries
19390 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19392 # Run-time system search path for libraries
19393 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19395 # Fix the shell variable \$srcfile for the compiler.
19396 fix_srcfile_path=$lt_fix_srcfile_path
19398 # Set to yes if exported symbols are required.
19399 always_export_symbols=$always_export_symbols_GCJ
19401 # The commands to list exported symbols.
19402 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19404 # The commands to extract the exported symbol list from a shared archive.
19405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19407 # Symbols that should not be listed in the preloaded symbols.
19408 exclude_expsyms=$lt_exclude_expsyms_GCJ
19410 # Symbols that must always be exported.
19411 include_expsyms=$lt_include_expsyms_GCJ
19413 # ### END LIBTOOL TAG CONFIG: $tagname
19415 __EOF__
19418 else
19419 # If there is no Makefile yet, we rely on a make rule to execute
19420 # `config.status --recheck' to rerun these tests and create the
19421 # libtool script then.
19422 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19423 if test -f "$ltmain_in"; then
19424 test -f Makefile && make "$ltmain"
19429 ac_ext=c
19430 ac_cpp='$CPP $CPPFLAGS'
19431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435 CC="$lt_save_CC"
19437 else
19438 tagname=""
19445 # Source file extension for RC test sources.
19446 ac_ext=rc
19448 # Object file extension for compiled RC test sources.
19449 objext=o
19450 objext_RC=$objext
19452 # Code to be used in simple compile tests
19453 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19455 # Code to be used in simple link tests
19456 lt_simple_link_test_code="$lt_simple_compile_test_code"
19458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19460 # If no C compiler was specified, use CC.
19461 LTCC=${LTCC-"$CC"}
19463 # If no C compiler flags were specified, use CFLAGS.
19464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19466 # Allow CC to be a program name with arguments.
19467 compiler=$CC
19470 # save warnings/boilerplate of simple test code
19471 ac_outfile=conftest.$ac_objext
19472 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19474 _lt_compiler_boilerplate=`cat conftest.err`
19475 $rm conftest*
19477 ac_outfile=conftest.$ac_objext
19478 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19480 _lt_linker_boilerplate=`cat conftest.err`
19481 $rm -r conftest*
19484 # Allow CC to be a program name with arguments.
19485 lt_save_CC="$CC"
19486 CC=${RC-"windres"}
19487 compiler=$CC
19488 compiler_RC=$CC
19489 for cc_temp in $compiler""; do
19490 case $cc_temp in
19491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19493 \-*) ;;
19494 *) break;;
19495 esac
19496 done
19497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19499 lt_cv_prog_compiler_c_o_RC=yes
19501 # The else clause should only fire when bootstrapping the
19502 # libtool distribution, otherwise you forgot to ship ltmain.sh
19503 # with your package, and you will get complaints that there are
19504 # no rules to generate ltmain.sh.
19505 if test -f "$ltmain"; then
19506 # See if we are running on zsh, and set the options which allow our commands through
19507 # without removal of \ escapes.
19508 if test -n "${ZSH_VERSION+set}" ; then
19509 setopt NO_GLOB_SUBST
19511 # Now quote all the things that may contain metacharacters while being
19512 # careful not to overquote the AC_SUBSTed values. We take copies of the
19513 # variables and quote the copies for generation of the libtool script.
19514 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19515 SED SHELL STRIP \
19516 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19517 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19518 deplibs_check_method reload_flag reload_cmds need_locks \
19519 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19520 lt_cv_sys_global_symbol_to_c_name_address \
19521 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19522 old_postinstall_cmds old_postuninstall_cmds \
19523 compiler_RC \
19524 CC_RC \
19525 LD_RC \
19526 lt_prog_compiler_wl_RC \
19527 lt_prog_compiler_pic_RC \
19528 lt_prog_compiler_static_RC \
19529 lt_prog_compiler_no_builtin_flag_RC \
19530 export_dynamic_flag_spec_RC \
19531 thread_safe_flag_spec_RC \
19532 whole_archive_flag_spec_RC \
19533 enable_shared_with_static_runtimes_RC \
19534 old_archive_cmds_RC \
19535 old_archive_from_new_cmds_RC \
19536 predep_objects_RC \
19537 postdep_objects_RC \
19538 predeps_RC \
19539 postdeps_RC \
19540 compiler_lib_search_path_RC \
19541 compiler_lib_search_dirs_RC \
19542 archive_cmds_RC \
19543 archive_expsym_cmds_RC \
19544 postinstall_cmds_RC \
19545 postuninstall_cmds_RC \
19546 old_archive_from_expsyms_cmds_RC \
19547 allow_undefined_flag_RC \
19548 no_undefined_flag_RC \
19549 export_symbols_cmds_RC \
19550 hardcode_libdir_flag_spec_RC \
19551 hardcode_libdir_flag_spec_ld_RC \
19552 hardcode_libdir_separator_RC \
19553 hardcode_automatic_RC \
19554 module_cmds_RC \
19555 module_expsym_cmds_RC \
19556 lt_cv_prog_compiler_c_o_RC \
19557 fix_srcfile_path_RC \
19558 exclude_expsyms_RC \
19559 include_expsyms_RC; do
19561 case $var in
19562 old_archive_cmds_RC | \
19563 old_archive_from_new_cmds_RC | \
19564 archive_cmds_RC | \
19565 archive_expsym_cmds_RC | \
19566 module_cmds_RC | \
19567 module_expsym_cmds_RC | \
19568 old_archive_from_expsyms_cmds_RC | \
19569 export_symbols_cmds_RC | \
19570 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19571 postinstall_cmds | postuninstall_cmds | \
19572 old_postinstall_cmds | old_postuninstall_cmds | \
19573 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19574 # Double-quote double-evaled strings.
19575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19578 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19580 esac
19581 done
19583 case $lt_echo in
19584 *'\$0 --fallback-echo"')
19585 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19587 esac
19589 cfgfile="$ofile"
19591 cat <<__EOF__ >> "$cfgfile"
19592 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19594 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19596 # Shell to use when invoking shell scripts.
19597 SHELL=$lt_SHELL
19599 # Whether or not to build shared libraries.
19600 build_libtool_libs=$enable_shared
19602 # Whether or not to build static libraries.
19603 build_old_libs=$enable_static
19605 # Whether or not to add -lc for building shared libraries.
19606 build_libtool_need_lc=$archive_cmds_need_lc_RC
19608 # Whether or not to disallow shared libs when runtime libs are static
19609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19611 # Whether or not to optimize for fast installation.
19612 fast_install=$enable_fast_install
19614 # The host system.
19615 host_alias=$host_alias
19616 host=$host
19617 host_os=$host_os
19619 # The build system.
19620 build_alias=$build_alias
19621 build=$build
19622 build_os=$build_os
19624 # An echo program that does not interpret backslashes.
19625 echo=$lt_echo
19627 # The archiver.
19628 AR=$lt_AR
19629 AR_FLAGS=$lt_AR_FLAGS
19631 # A C compiler.
19632 LTCC=$lt_LTCC
19634 # LTCC compiler flags.
19635 LTCFLAGS=$lt_LTCFLAGS
19637 # A language-specific compiler.
19638 CC=$lt_compiler_RC
19640 # Is the compiler the GNU C compiler?
19641 with_gcc=$GCC_RC
19643 # An ERE matcher.
19644 EGREP=$lt_EGREP
19646 # The linker used to build libraries.
19647 LD=$lt_LD_RC
19649 # Whether we need hard or soft links.
19650 LN_S=$lt_LN_S
19652 # A BSD-compatible nm program.
19653 NM=$lt_NM
19655 # A symbol stripping program
19656 STRIP=$lt_STRIP
19658 # Used to examine libraries when file_magic_cmd begins "file"
19659 MAGIC_CMD=$MAGIC_CMD
19661 # Used on cygwin: DLL creation program.
19662 DLLTOOL="$DLLTOOL"
19664 # Used on cygwin: object dumper.
19665 OBJDUMP="$OBJDUMP"
19667 # Used on cygwin: assembler.
19668 AS="$AS"
19670 # The name of the directory that contains temporary libtool files.
19671 objdir=$objdir
19673 # How to create reloadable object files.
19674 reload_flag=$lt_reload_flag
19675 reload_cmds=$lt_reload_cmds
19677 # How to pass a linker flag through the compiler.
19678 wl=$lt_lt_prog_compiler_wl_RC
19680 # Object file suffix (normally "o").
19681 objext="$ac_objext"
19683 # Old archive suffix (normally "a").
19684 libext="$libext"
19686 # Shared library suffix (normally ".so").
19687 shrext_cmds='$shrext_cmds'
19689 # Executable file suffix (normally "").
19690 exeext="$exeext"
19692 # Additional compiler flags for building library objects.
19693 pic_flag=$lt_lt_prog_compiler_pic_RC
19694 pic_mode=$pic_mode
19696 # What is the maximum length of a command?
19697 max_cmd_len=$lt_cv_sys_max_cmd_len
19699 # Does compiler simultaneously support -c and -o options?
19700 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19702 # Must we lock files when doing compilation?
19703 need_locks=$lt_need_locks
19705 # Do we need the lib prefix for modules?
19706 need_lib_prefix=$need_lib_prefix
19708 # Do we need a version for libraries?
19709 need_version=$need_version
19711 # Whether dlopen is supported.
19712 dlopen_support=$enable_dlopen
19714 # Whether dlopen of programs is supported.
19715 dlopen_self=$enable_dlopen_self
19717 # Whether dlopen of statically linked programs is supported.
19718 dlopen_self_static=$enable_dlopen_self_static
19720 # Compiler flag to prevent dynamic linking.
19721 link_static_flag=$lt_lt_prog_compiler_static_RC
19723 # Compiler flag to turn off builtin functions.
19724 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19726 # Compiler flag to allow reflexive dlopens.
19727 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19729 # Compiler flag to generate shared objects directly from archives.
19730 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19732 # Compiler flag to generate thread-safe objects.
19733 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19735 # Library versioning type.
19736 version_type=$version_type
19738 # Format of library name prefix.
19739 libname_spec=$lt_libname_spec
19741 # List of archive names. First name is the real one, the rest are links.
19742 # The last name is the one that the linker finds with -lNAME.
19743 library_names_spec=$lt_library_names_spec
19745 # The coded name of the library, if different from the real name.
19746 soname_spec=$lt_soname_spec
19748 # Commands used to build and install an old-style archive.
19749 RANLIB=$lt_RANLIB
19750 old_archive_cmds=$lt_old_archive_cmds_RC
19751 old_postinstall_cmds=$lt_old_postinstall_cmds
19752 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19754 # Create an old-style archive from a shared archive.
19755 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19757 # Create a temporary old-style archive to link instead of a shared archive.
19758 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19760 # Commands used to build and install a shared archive.
19761 archive_cmds=$lt_archive_cmds_RC
19762 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19763 postinstall_cmds=$lt_postinstall_cmds
19764 postuninstall_cmds=$lt_postuninstall_cmds
19766 # Commands used to build a loadable module (assumed same as above if empty)
19767 module_cmds=$lt_module_cmds_RC
19768 module_expsym_cmds=$lt_module_expsym_cmds_RC
19770 # Commands to strip libraries.
19771 old_striplib=$lt_old_striplib
19772 striplib=$lt_striplib
19774 # Dependencies to place before the objects being linked to create a
19775 # shared library.
19776 predep_objects=$lt_predep_objects_RC
19778 # Dependencies to place after the objects being linked to create a
19779 # shared library.
19780 postdep_objects=$lt_postdep_objects_RC
19782 # Dependencies to place before the objects being linked to create a
19783 # shared library.
19784 predeps=$lt_predeps_RC
19786 # Dependencies to place after the objects being linked to create a
19787 # shared library.
19788 postdeps=$lt_postdeps_RC
19790 # The directories searched by this compiler when creating a shared
19791 # library
19792 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19794 # The library search path used internally by the compiler when linking
19795 # a shared library.
19796 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19798 # Method to check whether dependent libraries are shared objects.
19799 deplibs_check_method=$lt_deplibs_check_method
19801 # Command to use when deplibs_check_method == file_magic.
19802 file_magic_cmd=$lt_file_magic_cmd
19804 # Flag that allows shared libraries with undefined symbols to be built.
19805 allow_undefined_flag=$lt_allow_undefined_flag_RC
19807 # Flag that forces no undefined symbols.
19808 no_undefined_flag=$lt_no_undefined_flag_RC
19810 # Commands used to finish a libtool library installation in a directory.
19811 finish_cmds=$lt_finish_cmds
19813 # Same as above, but a single script fragment to be evaled but not shown.
19814 finish_eval=$lt_finish_eval
19816 # Take the output of nm and produce a listing of raw symbols and C names.
19817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19819 # Transform the output of nm in a proper C declaration
19820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19822 # Transform the output of nm in a C name address pair
19823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19825 # This is the shared library runtime path variable.
19826 runpath_var=$runpath_var
19828 # This is the shared library path variable.
19829 shlibpath_var=$shlibpath_var
19831 # Is shlibpath searched before the hard-coded library search path?
19832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19834 # How to hardcode a shared library path into an executable.
19835 hardcode_action=$hardcode_action_RC
19837 # Whether we should hardcode library paths into libraries.
19838 hardcode_into_libs=$hardcode_into_libs
19840 # Flag to hardcode \$libdir into a binary during linking.
19841 # This must work even if \$libdir does not exist.
19842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19844 # If ld is used when linking, flag to hardcode \$libdir into
19845 # a binary during linking. This must work even if \$libdir does
19846 # not exist.
19847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19849 # Whether we need a single -rpath flag with a separated argument.
19850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19853 # resulting binary.
19854 hardcode_direct=$hardcode_direct_RC
19856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19857 # resulting binary.
19858 hardcode_minus_L=$hardcode_minus_L_RC
19860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19861 # the resulting binary.
19862 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19864 # Set to yes if building a shared library automatically hardcodes DIR into the library
19865 # and all subsequent libraries and executables linked against it.
19866 hardcode_automatic=$hardcode_automatic_RC
19868 # Variables whose values should be saved in libtool wrapper scripts and
19869 # restored at relink time.
19870 variables_saved_for_relink="$variables_saved_for_relink"
19872 # Whether libtool must link a program against all its dependency libraries.
19873 link_all_deplibs=$link_all_deplibs_RC
19875 # Compile-time system search path for libraries
19876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19878 # Run-time system search path for libraries
19879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19881 # Fix the shell variable \$srcfile for the compiler.
19882 fix_srcfile_path=$lt_fix_srcfile_path
19884 # Set to yes if exported symbols are required.
19885 always_export_symbols=$always_export_symbols_RC
19887 # The commands to list exported symbols.
19888 export_symbols_cmds=$lt_export_symbols_cmds_RC
19890 # The commands to extract the exported symbol list from a shared archive.
19891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19893 # Symbols that should not be listed in the preloaded symbols.
19894 exclude_expsyms=$lt_exclude_expsyms_RC
19896 # Symbols that must always be exported.
19897 include_expsyms=$lt_include_expsyms_RC
19899 # ### END LIBTOOL TAG CONFIG: $tagname
19901 __EOF__
19904 else
19905 # If there is no Makefile yet, we rely on a make rule to execute
19906 # `config.status --recheck' to rerun these tests and create the
19907 # libtool script then.
19908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19909 if test -f "$ltmain_in"; then
19910 test -f Makefile && make "$ltmain"
19915 ac_ext=c
19916 ac_cpp='$CPP $CPPFLAGS'
19917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19921 CC="$lt_save_CC"
19926 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19927 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19928 { (exit 1); exit 1; }; }
19930 esac
19932 # Append the new tag name to the list of available tags.
19933 if test -n "$tagname" ; then
19934 available_tags="$available_tags $tagname"
19937 done
19938 IFS="$lt_save_ifs"
19940 # Now substitute the updated list of available tags.
19941 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19942 mv "${ofile}T" "$ofile"
19943 chmod +x "$ofile"
19944 else
19945 rm -f "${ofile}T"
19946 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19947 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19948 { (exit 1); exit 1; }; }
19954 # This can be used to rebuild libtool when needed
19955 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19957 # Always use our own libtool.
19958 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19960 # Prevent multiple expansion
19985 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19986 $as_echo_n "checking for socket in -lsocket... " >&6; }
19987 if test "${ac_cv_lib_socket_socket+set}" = set; then
19988 $as_echo_n "(cached) " >&6
19989 else
19990 ac_check_lib_save_LIBS=$LIBS
19991 LIBS="-lsocket $LIBS"
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19999 /* Override any GCC internal prototype to avoid an error.
20000 Use char because int might match the return type of a GCC
20001 builtin and then its argument prototype would still apply. */
20002 #ifdef __cplusplus
20003 extern "C"
20004 #endif
20005 char socket ();
20007 main ()
20009 return socket ();
20011 return 0;
20013 _ACEOF
20014 rm -f conftest.$ac_objext conftest$ac_exeext
20015 if { (ac_try="$ac_link"
20016 case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20019 esac
20020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20021 $as_echo "$ac_try_echo") >&5
20022 (eval "$ac_link") 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } && {
20029 test -z "$ac_c_werror_flag" ||
20030 test ! -s conftest.err
20031 } && test -s conftest$ac_exeext && {
20032 test "$cross_compiling" = yes ||
20033 $as_test_x conftest$ac_exeext
20034 }; then
20035 ac_cv_lib_socket_socket=yes
20036 else
20037 $as_echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_cv_lib_socket_socket=no
20043 rm -rf conftest.dSYM
20044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20045 conftest$ac_exeext conftest.$ac_ext
20046 LIBS=$ac_check_lib_save_LIBS
20048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20049 $as_echo "$ac_cv_lib_socket_socket" >&6; }
20050 if test "x$ac_cv_lib_socket_socket" = x""yes; then
20051 cat >>confdefs.h <<_ACEOF
20052 #define HAVE_LIBSOCKET 1
20053 _ACEOF
20055 LIBS="-lsocket $LIBS"
20060 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20061 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20062 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20063 $as_echo_n "(cached) " >&6
20064 else
20065 ac_check_lib_save_LIBS=$LIBS
20066 LIBS="-lresolv $LIBS"
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20077 #ifdef __cplusplus
20078 extern "C"
20079 #endif
20080 char inet_aton ();
20082 main ()
20084 return inet_aton ();
20086 return 0;
20088 _ACEOF
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (ac_try="$ac_link"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20096 $as_echo "$ac_try_echo") >&5
20097 (eval "$ac_link") 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest$ac_exeext && {
20107 test "$cross_compiling" = yes ||
20108 $as_test_x conftest$ac_exeext
20109 }; then
20110 ac_cv_lib_resolv_inet_aton=yes
20111 else
20112 $as_echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20115 ac_cv_lib_resolv_inet_aton=no
20118 rm -rf conftest.dSYM
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120 conftest$ac_exeext conftest.$ac_ext
20121 LIBS=$ac_check_lib_save_LIBS
20123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20124 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20125 if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then
20126 cat >>confdefs.h <<_ACEOF
20127 #define HAVE_LIBRESOLV 1
20128 _ACEOF
20130 LIBS="-lresolv $LIBS"
20135 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
20136 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
20137 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
20138 $as_echo_n "(cached) " >&6
20139 else
20140 ac_check_lib_save_LIBS=$LIBS
20141 LIBS="-lrt $LIBS"
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20149 /* Override any GCC internal prototype to avoid an error.
20150 Use char because int might match the return type of a GCC
20151 builtin and then its argument prototype would still apply. */
20152 #ifdef __cplusplus
20153 extern "C"
20154 #endif
20155 char clock_gettime ();
20157 main ()
20159 return clock_gettime ();
20161 return 0;
20163 _ACEOF
20164 rm -f conftest.$ac_objext conftest$ac_exeext
20165 if { (ac_try="$ac_link"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20171 $as_echo "$ac_try_echo") >&5
20172 (eval "$ac_link") 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } && {
20179 test -z "$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20181 } && test -s conftest$ac_exeext && {
20182 test "$cross_compiling" = yes ||
20183 $as_test_x conftest$ac_exeext
20184 }; then
20185 ac_cv_lib_rt_clock_gettime=yes
20186 else
20187 $as_echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20190 ac_cv_lib_rt_clock_gettime=no
20193 rm -rf conftest.dSYM
20194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20195 conftest$ac_exeext conftest.$ac_ext
20196 LIBS=$ac_check_lib_save_LIBS
20198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
20199 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
20200 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
20201 cat >>confdefs.h <<_ACEOF
20202 #define HAVE_LIBRT 1
20203 _ACEOF
20205 LIBS="-lrt $LIBS"
20210 { $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20211 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20212 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20213 $as_echo_n "(cached) " >&6
20214 else
20215 ac_check_lib_save_LIBS=$LIBS
20216 LIBS="-lnsl $LIBS"
20217 cat >conftest.$ac_ext <<_ACEOF
20218 /* confdefs.h. */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20224 /* Override any GCC internal prototype to avoid an error.
20225 Use char because int might match the return type of a GCC
20226 builtin and then its argument prototype would still apply. */
20227 #ifdef __cplusplus
20228 extern "C"
20229 #endif
20230 char inet_ntoa ();
20232 main ()
20234 return inet_ntoa ();
20236 return 0;
20238 _ACEOF
20239 rm -f conftest.$ac_objext conftest$ac_exeext
20240 if { (ac_try="$ac_link"
20241 case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20244 esac
20245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20246 $as_echo "$ac_try_echo") >&5
20247 (eval "$ac_link") 2>conftest.er1
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && {
20254 test -z "$ac_c_werror_flag" ||
20255 test ! -s conftest.err
20256 } && test -s conftest$ac_exeext && {
20257 test "$cross_compiling" = yes ||
20258 $as_test_x conftest$ac_exeext
20259 }; then
20260 ac_cv_lib_nsl_inet_ntoa=yes
20261 else
20262 $as_echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 ac_cv_lib_nsl_inet_ntoa=no
20268 rm -rf conftest.dSYM
20269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20270 conftest$ac_exeext conftest.$ac_ext
20271 LIBS=$ac_check_lib_save_LIBS
20273 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20274 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20275 if test "x$ac_cv_lib_nsl_inet_ntoa" = x""yes; then
20276 cat >>confdefs.h <<_ACEOF
20277 #define HAVE_LIBNSL 1
20278 _ACEOF
20280 LIBS="-lnsl $LIBS"
20285 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20286 $as_echo_n "checking for ANSI C header files... " >&6; }
20287 if test "${ac_cv_header_stdc+set}" = set; then
20288 $as_echo_n "(cached) " >&6
20289 else
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 #include <stdlib.h>
20297 #include <stdarg.h>
20298 #include <string.h>
20299 #include <float.h>
20302 main ()
20306 return 0;
20308 _ACEOF
20309 rm -f conftest.$ac_objext
20310 if { (ac_try="$ac_compile"
20311 case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20314 esac
20315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20316 $as_echo "$ac_try_echo") >&5
20317 (eval "$ac_compile") 2>conftest.er1
20318 ac_status=$?
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
20322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && {
20324 test -z "$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20326 } && test -s conftest.$ac_objext; then
20327 ac_cv_header_stdc=yes
20328 else
20329 $as_echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ac_cv_header_stdc=no
20335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337 if test $ac_cv_header_stdc = yes; then
20338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h. */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <string.h>
20347 _ACEOF
20348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20349 $EGREP "memchr" >/dev/null 2>&1; then
20351 else
20352 ac_cv_header_stdc=no
20354 rm -f conftest*
20358 if test $ac_cv_header_stdc = yes; then
20359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h. */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20366 #include <stdlib.h>
20368 _ACEOF
20369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20370 $EGREP "free" >/dev/null 2>&1; then
20372 else
20373 ac_cv_header_stdc=no
20375 rm -f conftest*
20379 if test $ac_cv_header_stdc = yes; then
20380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20381 if test "$cross_compiling" = yes; then
20383 else
20384 cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h. */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 #include <ctype.h>
20391 #include <stdlib.h>
20392 #if ((' ' & 0x0FF) == 0x020)
20393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20395 #else
20396 # define ISLOWER(c) \
20397 (('a' <= (c) && (c) <= 'i') \
20398 || ('j' <= (c) && (c) <= 'r') \
20399 || ('s' <= (c) && (c) <= 'z'))
20400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20401 #endif
20403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20405 main ()
20407 int i;
20408 for (i = 0; i < 256; i++)
20409 if (XOR (islower (i), ISLOWER (i))
20410 || toupper (i) != TOUPPER (i))
20411 return 2;
20412 return 0;
20414 _ACEOF
20415 rm -f conftest$ac_exeext
20416 if { (ac_try="$ac_link"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420 esac
20421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20422 $as_echo "$ac_try_echo") >&5
20423 (eval "$ac_link") 2>&5
20424 ac_status=$?
20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20427 { (case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430 esac
20431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20432 $as_echo "$ac_try_echo") >&5
20433 (eval "$ac_try") 2>&5
20434 ac_status=$?
20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20438 else
20439 $as_echo "$as_me: program exited with status $ac_status" >&5
20440 $as_echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20443 ( exit $ac_status )
20444 ac_cv_header_stdc=no
20446 rm -rf conftest.dSYM
20447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20454 $as_echo "$ac_cv_header_stdc" >&6; }
20455 if test $ac_cv_header_stdc = yes; then
20457 cat >>confdefs.h <<\_ACEOF
20458 #define STDC_HEADERS 1
20459 _ACEOF
20481 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in6.h sys/socket.h
20483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20485 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20486 $as_echo_n "checking for $ac_header... " >&6; }
20487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20488 $as_echo_n "(cached) " >&6
20490 ac_res=`eval 'as_val=${'$as_ac_Header'}
20491 $as_echo "$as_val"'`
20492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20493 $as_echo "$ac_res" >&6; }
20494 else
20495 # Is the header compilable?
20496 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20497 $as_echo_n "checking $ac_header usability... " >&6; }
20498 cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h. */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20504 $ac_includes_default
20505 #include <$ac_header>
20506 _ACEOF
20507 rm -f conftest.$ac_objext
20508 if { (ac_try="$ac_compile"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512 esac
20513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20514 $as_echo "$ac_try_echo") >&5
20515 (eval "$ac_compile") 2>conftest.er1
20516 ac_status=$?
20517 grep -v '^ *+' conftest.er1 >conftest.err
20518 rm -f conftest.er1
20519 cat conftest.err >&5
20520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } && {
20522 test -z "$ac_c_werror_flag" ||
20523 test ! -s conftest.err
20524 } && test -s conftest.$ac_objext; then
20525 ac_header_compiler=yes
20526 else
20527 $as_echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20530 ac_header_compiler=no
20533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20534 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20535 $as_echo "$ac_header_compiler" >&6; }
20537 # Is the header present?
20538 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20539 $as_echo_n "checking $ac_header presence... " >&6; }
20540 cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h. */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20546 #include <$ac_header>
20547 _ACEOF
20548 if { (ac_try="$ac_cpp conftest.$ac_ext"
20549 case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20552 esac
20553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20554 $as_echo "$ac_try_echo") >&5
20555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20556 ac_status=$?
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
20560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } >/dev/null && {
20562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20563 test ! -s conftest.err
20564 }; then
20565 ac_header_preproc=yes
20566 else
20567 $as_echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20570 ac_header_preproc=no
20573 rm -f conftest.err conftest.$ac_ext
20574 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20575 $as_echo "$ac_header_preproc" >&6; }
20577 # So? What about this header?
20578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20579 yes:no: )
20580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20581 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20583 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20584 ac_header_preproc=yes
20586 no:yes:* )
20587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20588 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20590 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20592 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20594 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20598 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20601 esac
20602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20603 $as_echo_n "checking for $ac_header... " >&6; }
20604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20605 $as_echo_n "(cached) " >&6
20606 else
20607 eval "$as_ac_Header=\$ac_header_preproc"
20609 ac_res=`eval 'as_val=${'$as_ac_Header'}
20610 $as_echo "$as_val"'`
20611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20612 $as_echo "$ac_res" >&6; }
20615 as_val=`eval 'as_val=${'$as_ac_Header'}
20616 $as_echo "$as_val"'`
20617 if test "x$as_val" = x""yes; then
20618 cat >>confdefs.h <<_ACEOF
20619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20620 _ACEOF
20624 done
20626 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
20627 { $as_echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5
20628 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20636 #include <sys/queue.h>
20637 #ifdef TAILQ_FOREACH
20639 #endif
20641 _ACEOF
20642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20643 $EGREP "yes" >/dev/null 2>&1; then
20644 { $as_echo "$as_me:$LINENO: result: yes" >&5
20645 $as_echo "yes" >&6; }
20647 cat >>confdefs.h <<\_ACEOF
20648 #define HAVE_TAILQFOREACH 1
20649 _ACEOF
20651 else
20652 { $as_echo "$as_me:$LINENO: result: no" >&5
20653 $as_echo "no" >&6; }
20656 rm -f conftest*
20660 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
20661 { $as_echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5
20662 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h. */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20670 #include <sys/time.h>
20671 #ifdef timeradd
20673 #endif
20675 _ACEOF
20676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20677 $EGREP "yes" >/dev/null 2>&1; then
20679 cat >>confdefs.h <<\_ACEOF
20680 #define HAVE_TIMERADD 1
20681 _ACEOF
20683 { $as_echo "$as_me:$LINENO: result: yes" >&5
20684 $as_echo "yes" >&6; }
20685 else
20686 { $as_echo "$as_me:$LINENO: result: no" >&5
20687 $as_echo "no" >&6; }
20690 rm -f conftest*
20694 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
20695 { $as_echo "$as_me:$LINENO: checking for timercmp in sys/time.h" >&5
20696 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20704 #include <sys/time.h>
20705 #ifdef timercmp
20707 #endif
20709 _ACEOF
20710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20711 $EGREP "yes" >/dev/null 2>&1; then
20713 cat >>confdefs.h <<\_ACEOF
20714 #define HAVE_TIMERCMP 1
20715 _ACEOF
20717 { $as_echo "$as_me:$LINENO: result: yes" >&5
20718 $as_echo "yes" >&6; }
20719 else
20720 { $as_echo "$as_me:$LINENO: result: no" >&5
20721 $as_echo "no" >&6; }
20724 rm -f conftest*
20728 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
20729 { $as_echo "$as_me:$LINENO: checking for timerclear in sys/time.h" >&5
20730 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
20731 cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h. */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20738 #include <sys/time.h>
20739 #ifdef timerclear
20741 #endif
20743 _ACEOF
20744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20745 $EGREP "yes" >/dev/null 2>&1; then
20747 cat >>confdefs.h <<\_ACEOF
20748 #define HAVE_TIMERCLEAR 1
20749 _ACEOF
20751 { $as_echo "$as_me:$LINENO: result: yes" >&5
20752 $as_echo "yes" >&6; }
20753 else
20754 { $as_echo "$as_me:$LINENO: result: no" >&5
20755 $as_echo "no" >&6; }
20758 rm -f conftest*
20762 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
20763 { $as_echo "$as_me:$LINENO: checking for timerisset in sys/time.h" >&5
20764 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h. */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20772 #include <sys/time.h>
20773 #ifdef timerisset
20775 #endif
20777 _ACEOF
20778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20779 $EGREP "yes" >/dev/null 2>&1; then
20781 cat >>confdefs.h <<\_ACEOF
20782 #define HAVE_TIMERISSET 1
20783 _ACEOF
20785 { $as_echo "$as_me:$LINENO: result: yes" >&5
20786 $as_echo "yes" >&6; }
20787 else
20788 { $as_echo "$as_me:$LINENO: result: no" >&5
20789 $as_echo "no" >&6; }
20792 rm -f conftest*
20796 { $as_echo "$as_me:$LINENO: checking for WIN32" >&5
20797 $as_echo_n "checking for WIN32... " >&6; }
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20806 main ()
20809 #ifndef WIN32
20810 die horribly
20811 #endif
20814 return 0;
20816 _ACEOF
20817 rm -f conftest.$ac_objext
20818 if { (ac_try="$ac_compile"
20819 case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822 esac
20823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20824 $as_echo "$ac_try_echo") >&5
20825 (eval "$ac_compile") 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && {
20832 test -z "$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20834 } && test -s conftest.$ac_objext; then
20835 bwin32=true; { $as_echo "$as_me:$LINENO: result: yes" >&5
20836 $as_echo "yes" >&6; }
20837 else
20838 $as_echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 bwin32=false; { $as_echo "$as_me:$LINENO: result: no" >&5
20842 $as_echo "no" >&6; }
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 if test x$bwin32 = xtrue; then
20848 BUILD_WIN32_TRUE=
20849 BUILD_WIN32_FALSE='#'
20850 else
20851 BUILD_WIN32_TRUE='#'
20852 BUILD_WIN32_FALSE=
20856 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20857 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20858 if test "${ac_cv_c_const+set}" = set; then
20859 $as_echo_n "(cached) " >&6
20860 else
20861 cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h. */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20869 main ()
20871 /* FIXME: Include the comments suggested by Paul. */
20872 #ifndef __cplusplus
20873 /* Ultrix mips cc rejects this. */
20874 typedef int charset[2];
20875 const charset cs;
20876 /* SunOS 4.1.1 cc rejects this. */
20877 char const *const *pcpcc;
20878 char **ppc;
20879 /* NEC SVR4.0.2 mips cc rejects this. */
20880 struct point {int x, y;};
20881 static struct point const zero = {0,0};
20882 /* AIX XL C 1.02.0.0 rejects this.
20883 It does not let you subtract one const X* pointer from another in
20884 an arm of an if-expression whose if-part is not a constant
20885 expression */
20886 const char *g = "string";
20887 pcpcc = &g + (g ? g-g : 0);
20888 /* HPUX 7.0 cc rejects these. */
20889 ++pcpcc;
20890 ppc = (char**) pcpcc;
20891 pcpcc = (char const *const *) ppc;
20892 { /* SCO 3.2v4 cc rejects this. */
20893 char *t;
20894 char const *s = 0 ? (char *) 0 : (char const *) 0;
20896 *t++ = 0;
20897 if (s) return 0;
20899 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20900 int x[] = {25, 17};
20901 const int *foo = &x[0];
20902 ++foo;
20904 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20905 typedef const int *iptr;
20906 iptr p = 0;
20907 ++p;
20909 { /* AIX XL C 1.02.0.0 rejects this saying
20910 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20911 struct s { int j; const int *ap[3]; };
20912 struct s *b; b->j = 5;
20914 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20915 const int foo = 10;
20916 if (!foo) return 0;
20918 return !cs[0] && !zero.x;
20919 #endif
20922 return 0;
20924 _ACEOF
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20930 esac
20931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20932 $as_echo "$ac_try_echo") >&5
20933 (eval "$ac_compile") 2>conftest.er1
20934 ac_status=$?
20935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
20938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest.$ac_objext; then
20943 ac_cv_c_const=yes
20944 else
20945 $as_echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_c_const=no
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20954 $as_echo "$ac_cv_c_const" >&6; }
20955 if test $ac_cv_c_const = no; then
20957 cat >>confdefs.h <<\_ACEOF
20958 #define const /**/
20959 _ACEOF
20963 { $as_echo "$as_me:$LINENO: checking for inline" >&5
20964 $as_echo_n "checking for inline... " >&6; }
20965 if test "${ac_cv_c_inline+set}" = set; then
20966 $as_echo_n "(cached) " >&6
20967 else
20968 ac_cv_c_inline=no
20969 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
20977 typedef int foo_t;
20978 static $ac_kw foo_t static_foo () {return 0; }
20979 $ac_kw foo_t foo () {return 0; }
20980 #endif
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988 esac
20989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20990 $as_echo "$ac_try_echo") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.$ac_objext; then
21001 ac_cv_c_inline=$ac_kw
21002 else
21003 $as_echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 test "$ac_cv_c_inline" != no && break
21011 done
21014 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21015 $as_echo "$ac_cv_c_inline" >&6; }
21018 case $ac_cv_c_inline in
21019 inline | yes) ;;
21021 case $ac_cv_c_inline in
21022 no) ac_val=;;
21023 *) ac_val=$ac_cv_c_inline;;
21024 esac
21025 cat >>confdefs.h <<_ACEOF
21026 #ifndef __cplusplus
21027 #define inline $ac_val
21028 #endif
21029 _ACEOF
21031 esac
21033 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21034 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21035 if test "${ac_cv_header_time+set}" = set; then
21036 $as_echo_n "(cached) " >&6
21037 else
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <sys/types.h>
21045 #include <sys/time.h>
21046 #include <time.h>
21049 main ()
21051 if ((struct tm *) 0)
21052 return 0;
21054 return 0;
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062 esac
21063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21064 $as_echo "$ac_try_echo") >&5
21065 (eval "$ac_compile") 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest.$ac_objext; then
21075 ac_cv_header_time=yes
21076 else
21077 $as_echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_cv_header_time=no
21083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21086 $as_echo "$ac_cv_header_time" >&6; }
21087 if test $ac_cv_header_time = yes; then
21089 cat >>confdefs.h <<\_ACEOF
21090 #define TIME_WITH_SYS_TIME 1
21091 _ACEOF
21112 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getaddrinfo getnameinfo strlcpy inet_ntop signal sigaction strtoll issetugid geteuid getegid
21114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21115 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21116 $as_echo_n "checking for $ac_func... " >&6; }
21117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21118 $as_echo_n "(cached) " >&6
21119 else
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h. */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21128 #define $ac_func innocuous_$ac_func
21130 /* System header to define __stub macros and hopefully few prototypes,
21131 which can conflict with char $ac_func (); below.
21132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21133 <limits.h> exists even on freestanding compilers. */
21135 #ifdef __STDC__
21136 # include <limits.h>
21137 #else
21138 # include <assert.h>
21139 #endif
21141 #undef $ac_func
21143 /* Override any GCC internal prototype to avoid an error.
21144 Use char because int might match the return type of a GCC
21145 builtin and then its argument prototype would still apply. */
21146 #ifdef __cplusplus
21147 extern "C"
21148 #endif
21149 char $ac_func ();
21150 /* The GNU C library defines this for functions which it implements
21151 to always fail with ENOSYS. Some functions are actually named
21152 something starting with __ and the normal name is an alias. */
21153 #if defined __stub_$ac_func || defined __stub___$ac_func
21154 choke me
21155 #endif
21158 main ()
21160 return $ac_func ();
21162 return 0;
21164 _ACEOF
21165 rm -f conftest.$ac_objext conftest$ac_exeext
21166 if { (ac_try="$ac_link"
21167 case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21170 esac
21171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21172 $as_echo "$ac_try_echo") >&5
21173 (eval "$ac_link") 2>conftest.er1
21174 ac_status=$?
21175 grep -v '^ *+' conftest.er1 >conftest.err
21176 rm -f conftest.er1
21177 cat conftest.err >&5
21178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } && {
21180 test -z "$ac_c_werror_flag" ||
21181 test ! -s conftest.err
21182 } && test -s conftest$ac_exeext && {
21183 test "$cross_compiling" = yes ||
21184 $as_test_x conftest$ac_exeext
21185 }; then
21186 eval "$as_ac_var=yes"
21187 else
21188 $as_echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 eval "$as_ac_var=no"
21194 rm -rf conftest.dSYM
21195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21196 conftest$ac_exeext conftest.$ac_ext
21198 ac_res=`eval 'as_val=${'$as_ac_var'}
21199 $as_echo "$as_val"'`
21200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21201 $as_echo "$ac_res" >&6; }
21202 as_val=`eval 'as_val=${'$as_ac_var'}
21203 $as_echo "$as_val"'`
21204 if test "x$as_val" = x""yes; then
21205 cat >>confdefs.h <<_ACEOF
21206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21207 _ACEOF
21210 done
21213 # The cast to long int works around a bug in the HP C Compiler
21214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21216 # This bug is HP SR number 8606223364.
21217 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21218 $as_echo_n "checking size of long... " >&6; }
21219 if test "${ac_cv_sizeof_long+set}" = set; then
21220 $as_echo_n "(cached) " >&6
21221 else
21222 if test "$cross_compiling" = yes; then
21223 # Depending upon the size, compute the lo and hi bounds.
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21232 main ()
21234 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21235 test_array [0] = 0
21238 return 0;
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21248 $as_echo "$ac_try_echo") >&5
21249 (eval "$ac_compile") 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest.$ac_objext; then
21259 ac_lo=0 ac_mid=0
21260 while :; do
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h. */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 $ac_includes_default
21269 main ()
21271 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21272 test_array [0] = 0
21275 return 0;
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21283 esac
21284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21285 $as_echo "$ac_try_echo") >&5
21286 (eval "$ac_compile") 2>conftest.er1
21287 ac_status=$?
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
21291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && {
21293 test -z "$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 } && test -s conftest.$ac_objext; then
21296 ac_hi=$ac_mid; break
21297 else
21298 $as_echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 ac_lo=`expr $ac_mid + 1`
21302 if test $ac_lo -le $ac_mid; then
21303 ac_lo= ac_hi=
21304 break
21306 ac_mid=`expr 2 '*' $ac_mid + 1`
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310 done
21311 else
21312 $as_echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h. */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 $ac_includes_default
21323 main ()
21325 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
21326 test_array [0] = 0
21329 return 0;
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21337 esac
21338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21339 $as_echo "$ac_try_echo") >&5
21340 (eval "$ac_compile") 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest.$ac_objext; then
21350 ac_hi=-1 ac_mid=-1
21351 while :; do
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h. */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 $ac_includes_default
21360 main ()
21362 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
21363 test_array [0] = 0
21366 return 0;
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21374 esac
21375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21376 $as_echo "$ac_try_echo") >&5
21377 (eval "$ac_compile") 2>conftest.er1
21378 ac_status=$?
21379 grep -v '^ *+' conftest.er1 >conftest.err
21380 rm -f conftest.er1
21381 cat conftest.err >&5
21382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && {
21384 test -z "$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 } && test -s conftest.$ac_objext; then
21387 ac_lo=$ac_mid; break
21388 else
21389 $as_echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 ac_hi=`expr '(' $ac_mid ')' - 1`
21393 if test $ac_mid -le $ac_hi; then
21394 ac_lo= ac_hi=
21395 break
21397 ac_mid=`expr 2 '*' $ac_mid`
21400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 done
21402 else
21403 $as_echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ac_lo= ac_hi=
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 # Binary search between lo and hi bounds.
21414 while test "x$ac_lo" != "x$ac_hi"; do
21415 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h. */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 $ac_includes_default
21424 main ()
21426 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21427 test_array [0] = 0
21430 return 0;
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21438 esac
21439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21440 $as_echo "$ac_try_echo") >&5
21441 (eval "$ac_compile") 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
21451 ac_hi=$ac_mid
21452 else
21453 $as_echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ac_lo=`expr '(' $ac_mid ')' + 1`
21459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460 done
21461 case $ac_lo in
21462 ?*) ac_cv_sizeof_long=$ac_lo;;
21463 '') if test "$ac_cv_type_long" = yes; then
21464 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21466 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21467 See \`config.log' for more details." >&5
21468 $as_echo "$as_me: error: cannot compute sizeof (long)
21469 See \`config.log' for more details." >&2;}
21470 { (exit 77); exit 77; }; }; }
21471 else
21472 ac_cv_sizeof_long=0
21473 fi ;;
21474 esac
21475 else
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21483 static long int longval () { return (long int) (sizeof (long)); }
21484 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
21485 #include <stdio.h>
21486 #include <stdlib.h>
21488 main ()
21491 FILE *f = fopen ("conftest.val", "w");
21492 if (! f)
21493 return 1;
21494 if (((long int) (sizeof (long))) < 0)
21496 long int i = longval ();
21497 if (i != ((long int) (sizeof (long))))
21498 return 1;
21499 fprintf (f, "%ld", i);
21501 else
21503 unsigned long int i = ulongval ();
21504 if (i != ((long int) (sizeof (long))))
21505 return 1;
21506 fprintf (f, "%lu", i);
21508 /* Do not output a trailing newline, as this causes \r\n confusion
21509 on some platforms. */
21510 return ferror (f) || fclose (f) != 0;
21513 return 0;
21515 _ACEOF
21516 rm -f conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21521 esac
21522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21523 $as_echo "$ac_try_echo") >&5
21524 (eval "$ac_link") 2>&5
21525 ac_status=$?
21526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528 { (case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21531 esac
21532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21533 $as_echo "$ac_try_echo") >&5
21534 (eval "$ac_try") 2>&5
21535 ac_status=$?
21536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_cv_sizeof_long=`cat conftest.val`
21539 else
21540 $as_echo "$as_me: program exited with status $ac_status" >&5
21541 $as_echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ( exit $ac_status )
21545 if test "$ac_cv_type_long" = yes; then
21546 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21548 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21549 See \`config.log' for more details." >&5
21550 $as_echo "$as_me: error: cannot compute sizeof (long)
21551 See \`config.log' for more details." >&2;}
21552 { (exit 77); exit 77; }; }; }
21553 else
21554 ac_cv_sizeof_long=0
21557 rm -rf conftest.dSYM
21558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21560 rm -f conftest.val
21562 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21563 $as_echo "$ac_cv_sizeof_long" >&6; }
21567 cat >>confdefs.h <<_ACEOF
21568 #define SIZEOF_LONG $ac_cv_sizeof_long
21569 _ACEOF
21573 if test "x$ac_cv_func_clock_gettime" = "xyes"; then
21575 cat >>confdefs.h <<\_ACEOF
21576 #define DNS_USE_CPU_CLOCK_FOR_ID 1
21577 _ACEOF
21579 else
21581 cat >>confdefs.h <<\_ACEOF
21582 #define DNS_USE_GETTIMEOFDAY_FOR_ID 1
21583 _ACEOF
21587 { $as_echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5
21588 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
21589 cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h. */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21596 #define _GNU_SOURCE
21597 #include <fcntl.h>
21598 #ifdef F_SETFD
21600 #endif
21602 _ACEOF
21603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21604 $EGREP "yes" >/dev/null 2>&1; then
21606 cat >>confdefs.h <<\_ACEOF
21607 #define HAVE_SETFD 1
21608 _ACEOF
21610 { $as_echo "$as_me:$LINENO: result: yes" >&5
21611 $as_echo "yes" >&6; }
21612 else
21613 { $as_echo "$as_me:$LINENO: result: no" >&5
21614 $as_echo "no" >&6; }
21616 rm -f conftest*
21619 needsignal=no
21620 haveselect=no
21622 for ac_func in select
21624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21626 $as_echo_n "checking for $ac_func... " >&6; }
21627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21628 $as_echo_n "(cached) " >&6
21629 else
21630 cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h. */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21638 #define $ac_func innocuous_$ac_func
21640 /* System header to define __stub macros and hopefully few prototypes,
21641 which can conflict with char $ac_func (); below.
21642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21643 <limits.h> exists even on freestanding compilers. */
21645 #ifdef __STDC__
21646 # include <limits.h>
21647 #else
21648 # include <assert.h>
21649 #endif
21651 #undef $ac_func
21653 /* Override any GCC internal prototype to avoid an error.
21654 Use char because int might match the return type of a GCC
21655 builtin and then its argument prototype would still apply. */
21656 #ifdef __cplusplus
21657 extern "C"
21658 #endif
21659 char $ac_func ();
21660 /* The GNU C library defines this for functions which it implements
21661 to always fail with ENOSYS. Some functions are actually named
21662 something starting with __ and the normal name is an alias. */
21663 #if defined __stub_$ac_func || defined __stub___$ac_func
21664 choke me
21665 #endif
21668 main ()
21670 return $ac_func ();
21672 return 0;
21674 _ACEOF
21675 rm -f conftest.$ac_objext conftest$ac_exeext
21676 if { (ac_try="$ac_link"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680 esac
21681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21682 $as_echo "$ac_try_echo") >&5
21683 (eval "$ac_link") 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest$ac_exeext && {
21693 test "$cross_compiling" = yes ||
21694 $as_test_x conftest$ac_exeext
21695 }; then
21696 eval "$as_ac_var=yes"
21697 else
21698 $as_echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 eval "$as_ac_var=no"
21704 rm -rf conftest.dSYM
21705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21706 conftest$ac_exeext conftest.$ac_ext
21708 ac_res=`eval 'as_val=${'$as_ac_var'}
21709 $as_echo "$as_val"'`
21710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21711 $as_echo "$ac_res" >&6; }
21712 as_val=`eval 'as_val=${'$as_ac_var'}
21713 $as_echo "$as_val"'`
21714 if test "x$as_val" = x""yes; then
21715 cat >>confdefs.h <<_ACEOF
21716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21717 _ACEOF
21718 haveselect=yes
21720 done
21722 if test "x$haveselect" = "xyes" ; then
21723 case " $LIBOBJS " in
21724 *" select.$ac_objext "* ) ;;
21725 *) LIBOBJS="$LIBOBJS select.$ac_objext"
21727 esac
21729 needsignal=yes
21732 havepoll=no
21734 for ac_func in poll
21736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21737 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21738 $as_echo_n "checking for $ac_func... " >&6; }
21739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21740 $as_echo_n "(cached) " >&6
21741 else
21742 cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h. */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21750 #define $ac_func innocuous_$ac_func
21752 /* System header to define __stub macros and hopefully few prototypes,
21753 which can conflict with char $ac_func (); below.
21754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21755 <limits.h> exists even on freestanding compilers. */
21757 #ifdef __STDC__
21758 # include <limits.h>
21759 #else
21760 # include <assert.h>
21761 #endif
21763 #undef $ac_func
21765 /* Override any GCC internal prototype to avoid an error.
21766 Use char because int might match the return type of a GCC
21767 builtin and then its argument prototype would still apply. */
21768 #ifdef __cplusplus
21769 extern "C"
21770 #endif
21771 char $ac_func ();
21772 /* The GNU C library defines this for functions which it implements
21773 to always fail with ENOSYS. Some functions are actually named
21774 something starting with __ and the normal name is an alias. */
21775 #if defined __stub_$ac_func || defined __stub___$ac_func
21776 choke me
21777 #endif
21780 main ()
21782 return $ac_func ();
21784 return 0;
21786 _ACEOF
21787 rm -f conftest.$ac_objext conftest$ac_exeext
21788 if { (ac_try="$ac_link"
21789 case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21792 esac
21793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21794 $as_echo "$ac_try_echo") >&5
21795 (eval "$ac_link") 2>conftest.er1
21796 ac_status=$?
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
21800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } && {
21802 test -z "$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 } && test -s conftest$ac_exeext && {
21805 test "$cross_compiling" = yes ||
21806 $as_test_x conftest$ac_exeext
21807 }; then
21808 eval "$as_ac_var=yes"
21809 else
21810 $as_echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 eval "$as_ac_var=no"
21816 rm -rf conftest.dSYM
21817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21818 conftest$ac_exeext conftest.$ac_ext
21820 ac_res=`eval 'as_val=${'$as_ac_var'}
21821 $as_echo "$as_val"'`
21822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21823 $as_echo "$ac_res" >&6; }
21824 as_val=`eval 'as_val=${'$as_ac_var'}
21825 $as_echo "$as_val"'`
21826 if test "x$as_val" = x""yes; then
21827 cat >>confdefs.h <<_ACEOF
21828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21829 _ACEOF
21830 havepoll=yes
21832 done
21834 if test "x$havepoll" = "xyes" ; then
21835 case " $LIBOBJS " in
21836 *" poll.$ac_objext "* ) ;;
21837 *) LIBOBJS="$LIBOBJS poll.$ac_objext"
21839 esac
21841 needsignal=yes
21844 haveepoll=no
21846 for ac_func in epoll_ctl
21848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21849 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21850 $as_echo_n "checking for $ac_func... " >&6; }
21851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21852 $as_echo_n "(cached) " >&6
21853 else
21854 cat >conftest.$ac_ext <<_ACEOF
21855 /* confdefs.h. */
21856 _ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h. */
21860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21862 #define $ac_func innocuous_$ac_func
21864 /* System header to define __stub macros and hopefully few prototypes,
21865 which can conflict with char $ac_func (); below.
21866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21867 <limits.h> exists even on freestanding compilers. */
21869 #ifdef __STDC__
21870 # include <limits.h>
21871 #else
21872 # include <assert.h>
21873 #endif
21875 #undef $ac_func
21877 /* Override any GCC internal prototype to avoid an error.
21878 Use char because int might match the return type of a GCC
21879 builtin and then its argument prototype would still apply. */
21880 #ifdef __cplusplus
21881 extern "C"
21882 #endif
21883 char $ac_func ();
21884 /* The GNU C library defines this for functions which it implements
21885 to always fail with ENOSYS. Some functions are actually named
21886 something starting with __ and the normal name is an alias. */
21887 #if defined __stub_$ac_func || defined __stub___$ac_func
21888 choke me
21889 #endif
21892 main ()
21894 return $ac_func ();
21896 return 0;
21898 _ACEOF
21899 rm -f conftest.$ac_objext conftest$ac_exeext
21900 if { (ac_try="$ac_link"
21901 case "(($ac_try" in
21902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903 *) ac_try_echo=$ac_try;;
21904 esac
21905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21906 $as_echo "$ac_try_echo") >&5
21907 (eval "$ac_link") 2>conftest.er1
21908 ac_status=$?
21909 grep -v '^ *+' conftest.er1 >conftest.err
21910 rm -f conftest.er1
21911 cat conftest.err >&5
21912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && {
21914 test -z "$ac_c_werror_flag" ||
21915 test ! -s conftest.err
21916 } && test -s conftest$ac_exeext && {
21917 test "$cross_compiling" = yes ||
21918 $as_test_x conftest$ac_exeext
21919 }; then
21920 eval "$as_ac_var=yes"
21921 else
21922 $as_echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 eval "$as_ac_var=no"
21928 rm -rf conftest.dSYM
21929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21930 conftest$ac_exeext conftest.$ac_ext
21932 ac_res=`eval 'as_val=${'$as_ac_var'}
21933 $as_echo "$as_val"'`
21934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21935 $as_echo "$ac_res" >&6; }
21936 as_val=`eval 'as_val=${'$as_ac_var'}
21937 $as_echo "$as_val"'`
21938 if test "x$as_val" = x""yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21941 _ACEOF
21942 haveepoll=yes
21944 done
21946 if test "x$haveepoll" = "xyes" ; then
21948 cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_EPOLL 1
21950 _ACEOF
21952 case " $LIBOBJS " in
21953 *" epoll.$ac_objext "* ) ;;
21954 *) LIBOBJS="$LIBOBJS epoll.$ac_objext"
21956 esac
21958 needsignal=yes
21961 havedevpoll=no
21962 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
21964 cat >>confdefs.h <<\_ACEOF
21965 #define HAVE_DEVPOLL 1
21966 _ACEOF
21968 case " $LIBOBJS " in
21969 *" devpoll.$ac_objext "* ) ;;
21970 *) LIBOBJS="$LIBOBJS devpoll.$ac_objext"
21972 esac
21976 havekqueue=no
21977 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
21979 for ac_func in kqueue
21981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21982 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21983 $as_echo_n "checking for $ac_func... " >&6; }
21984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21985 $as_echo_n "(cached) " >&6
21986 else
21987 cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h. */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21995 #define $ac_func innocuous_$ac_func
21997 /* System header to define __stub macros and hopefully few prototypes,
21998 which can conflict with char $ac_func (); below.
21999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22000 <limits.h> exists even on freestanding compilers. */
22002 #ifdef __STDC__
22003 # include <limits.h>
22004 #else
22005 # include <assert.h>
22006 #endif
22008 #undef $ac_func
22010 /* Override any GCC internal prototype to avoid an error.
22011 Use char because int might match the return type of a GCC
22012 builtin and then its argument prototype would still apply. */
22013 #ifdef __cplusplus
22014 extern "C"
22015 #endif
22016 char $ac_func ();
22017 /* The GNU C library defines this for functions which it implements
22018 to always fail with ENOSYS. Some functions are actually named
22019 something starting with __ and the normal name is an alias. */
22020 #if defined __stub_$ac_func || defined __stub___$ac_func
22021 choke me
22022 #endif
22025 main ()
22027 return $ac_func ();
22029 return 0;
22031 _ACEOF
22032 rm -f conftest.$ac_objext conftest$ac_exeext
22033 if { (ac_try="$ac_link"
22034 case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22037 esac
22038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22039 $as_echo "$ac_try_echo") >&5
22040 (eval "$ac_link") 2>conftest.er1
22041 ac_status=$?
22042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
22045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } && {
22047 test -z "$ac_c_werror_flag" ||
22048 test ! -s conftest.err
22049 } && test -s conftest$ac_exeext && {
22050 test "$cross_compiling" = yes ||
22051 $as_test_x conftest$ac_exeext
22052 }; then
22053 eval "$as_ac_var=yes"
22054 else
22055 $as_echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22058 eval "$as_ac_var=no"
22061 rm -rf conftest.dSYM
22062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22063 conftest$ac_exeext conftest.$ac_ext
22065 ac_res=`eval 'as_val=${'$as_ac_var'}
22066 $as_echo "$as_val"'`
22067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22068 $as_echo "$ac_res" >&6; }
22069 as_val=`eval 'as_val=${'$as_ac_var'}
22070 $as_echo "$as_val"'`
22071 if test "x$as_val" = x""yes; then
22072 cat >>confdefs.h <<_ACEOF
22073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22074 _ACEOF
22075 havekqueue=yes
22077 done
22079 if test "x$havekqueue" = "xyes" ; then
22080 { $as_echo "$as_me:$LINENO: checking for working kqueue" >&5
22081 $as_echo_n "checking for working kqueue... " >&6; }
22082 if test "$cross_compiling" = yes; then
22083 { $as_echo "$as_me:$LINENO: result: no" >&5
22084 $as_echo "no" >&6; }
22085 else
22086 cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h. */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22092 #include <sys/types.h>
22093 #include <sys/time.h>
22094 #include <sys/event.h>
22095 #include <stdio.h>
22096 #include <unistd.h>
22097 #include <fcntl.h>
22100 main(int argc, char **argv)
22102 int kq;
22103 int n;
22104 int fd[2];
22105 struct kevent ev;
22106 struct timespec ts;
22107 char buf[8000];
22109 if (pipe(fd) == -1)
22110 exit(1);
22111 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
22112 exit(1);
22114 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
22117 if ((kq = kqueue()) == -1)
22118 exit(1);
22120 ev.ident = fd[1];
22121 ev.filter = EVFILT_WRITE;
22122 ev.flags = EV_ADD | EV_ENABLE;
22123 n = kevent(kq, &ev, 1, NULL, 0, NULL);
22124 if (n == -1)
22125 exit(1);
22127 read(fd[0], buf, sizeof(buf));
22129 ts.tv_sec = 0;
22130 ts.tv_nsec = 0;
22131 n = kevent(kq, NULL, 0, &ev, 1, &ts);
22132 if (n == -1 || n == 0)
22133 exit(1);
22135 exit(0);
22137 _ACEOF
22138 rm -f conftest$ac_exeext
22139 if { (ac_try="$ac_link"
22140 case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22143 esac
22144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22145 $as_echo "$ac_try_echo") >&5
22146 (eval "$ac_link") 2>&5
22147 ac_status=$?
22148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22150 { (case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22153 esac
22154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22155 $as_echo "$ac_try_echo") >&5
22156 (eval "$ac_try") 2>&5
22157 ac_status=$?
22158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); }; }; then
22160 { $as_echo "$as_me:$LINENO: result: yes" >&5
22161 $as_echo "yes" >&6; }
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_WORKING_KQUEUE 1
22165 _ACEOF
22167 case " $LIBOBJS " in
22168 *" kqueue.$ac_objext "* ) ;;
22169 *) LIBOBJS="$LIBOBJS kqueue.$ac_objext"
22171 esac
22173 else
22174 $as_echo "$as_me: program exited with status $ac_status" >&5
22175 $as_echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 ( exit $ac_status )
22179 { $as_echo "$as_me:$LINENO: result: no" >&5
22180 $as_echo "no" >&6; }
22182 rm -rf conftest.dSYM
22183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22190 haveepollsyscall=no
22191 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
22192 if test "x$haveepoll" = "xno" ; then
22193 { $as_echo "$as_me:$LINENO: checking for epoll system call" >&5
22194 $as_echo_n "checking for epoll system call... " >&6; }
22195 if test "$cross_compiling" = yes; then
22196 { $as_echo "$as_me:$LINENO: result: no" >&5
22197 $as_echo "no" >&6; }
22198 else
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h. */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 #include <stdint.h>
22206 #include <sys/param.h>
22207 #include <sys/types.h>
22208 #include <sys/syscall.h>
22209 #include <sys/epoll.h>
22210 #include <unistd.h>
22213 epoll_create(int size)
22215 return (syscall(__NR_epoll_create, size));
22219 main(int argc, char **argv)
22221 int epfd;
22223 epfd = epoll_create(256);
22224 exit (epfd == -1 ? 1 : 0);
22226 _ACEOF
22227 rm -f conftest$ac_exeext
22228 if { (ac_try="$ac_link"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232 esac
22233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234 $as_echo "$ac_try_echo") >&5
22235 (eval "$ac_link") 2>&5
22236 ac_status=$?
22237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22239 { (case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22244 $as_echo "$ac_try_echo") >&5
22245 (eval "$ac_try") 2>&5
22246 ac_status=$?
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 { $as_echo "$as_me:$LINENO: result: yes" >&5
22250 $as_echo "yes" >&6; }
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_EPOLL 1
22254 _ACEOF
22256 needsignal=yes
22257 case " $LIBOBJS " in
22258 *" epoll_sub.$ac_objext "* ) ;;
22259 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
22261 esac
22263 case " $LIBOBJS " in
22264 *" epoll.$ac_objext "* ) ;;
22265 *) LIBOBJS="$LIBOBJS epoll.$ac_objext"
22267 esac
22269 else
22270 $as_echo "$as_me: program exited with status $ac_status" >&5
22271 $as_echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22274 ( exit $ac_status )
22275 { $as_echo "$as_me:$LINENO: result: no" >&5
22276 $as_echo "no" >&6; }
22278 rm -rf conftest.dSYM
22279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22286 haveeventports=no
22288 for ac_func in port_create
22290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22291 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22292 $as_echo_n "checking for $ac_func... " >&6; }
22293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22294 $as_echo_n "(cached) " >&6
22295 else
22296 cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h. */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22304 #define $ac_func innocuous_$ac_func
22306 /* System header to define __stub macros and hopefully few prototypes,
22307 which can conflict with char $ac_func (); below.
22308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22309 <limits.h> exists even on freestanding compilers. */
22311 #ifdef __STDC__
22312 # include <limits.h>
22313 #else
22314 # include <assert.h>
22315 #endif
22317 #undef $ac_func
22319 /* Override any GCC internal prototype to avoid an error.
22320 Use char because int might match the return type of a GCC
22321 builtin and then its argument prototype would still apply. */
22322 #ifdef __cplusplus
22323 extern "C"
22324 #endif
22325 char $ac_func ();
22326 /* The GNU C library defines this for functions which it implements
22327 to always fail with ENOSYS. Some functions are actually named
22328 something starting with __ and the normal name is an alias. */
22329 #if defined __stub_$ac_func || defined __stub___$ac_func
22330 choke me
22331 #endif
22334 main ()
22336 return $ac_func ();
22338 return 0;
22340 _ACEOF
22341 rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (ac_try="$ac_link"
22343 case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346 esac
22347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22348 $as_echo "$ac_try_echo") >&5
22349 (eval "$ac_link") 2>conftest.er1
22350 ac_status=$?
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
22354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } && {
22356 test -z "$ac_c_werror_flag" ||
22357 test ! -s conftest.err
22358 } && test -s conftest$ac_exeext && {
22359 test "$cross_compiling" = yes ||
22360 $as_test_x conftest$ac_exeext
22361 }; then
22362 eval "$as_ac_var=yes"
22363 else
22364 $as_echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22367 eval "$as_ac_var=no"
22370 rm -rf conftest.dSYM
22371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22372 conftest$ac_exeext conftest.$ac_ext
22374 ac_res=`eval 'as_val=${'$as_ac_var'}
22375 $as_echo "$as_val"'`
22376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22377 $as_echo "$ac_res" >&6; }
22378 as_val=`eval 'as_val=${'$as_ac_var'}
22379 $as_echo "$as_val"'`
22380 if test "x$as_val" = x""yes; then
22381 cat >>confdefs.h <<_ACEOF
22382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22383 _ACEOF
22384 haveeventports=yes
22386 done
22388 if test "x$haveeventports" = "xyes" ; then
22390 cat >>confdefs.h <<\_ACEOF
22391 #define HAVE_EVENT_PORTS 1
22392 _ACEOF
22394 case " $LIBOBJS " in
22395 *" evport.$ac_objext "* ) ;;
22396 *) LIBOBJS="$LIBOBJS evport.$ac_objext"
22398 esac
22400 needsignal=yes
22402 if test "x$bwin32" = "xtrue"; then
22403 needsignal=yes
22405 if test "x$bwin32" = "xtrue"; then
22406 needsignal=yes
22408 if test "x$needsignal" = "xyes" ; then
22409 case " $LIBOBJS " in
22410 *" signal.$ac_objext "* ) ;;
22411 *) LIBOBJS="$LIBOBJS signal.$ac_objext"
22413 esac
22417 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
22418 $as_echo_n "checking for pid_t... " >&6; }
22419 if test "${ac_cv_type_pid_t+set}" = set; then
22420 $as_echo_n "(cached) " >&6
22421 else
22422 ac_cv_type_pid_t=no
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h. */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22431 main ()
22433 if (sizeof (pid_t))
22434 return 0;
22436 return 0;
22438 _ACEOF
22439 rm -f conftest.$ac_objext
22440 if { (ac_try="$ac_compile"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444 esac
22445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22446 $as_echo "$ac_try_echo") >&5
22447 (eval "$ac_compile") 2>conftest.er1
22448 ac_status=$?
22449 grep -v '^ *+' conftest.er1 >conftest.err
22450 rm -f conftest.er1
22451 cat conftest.err >&5
22452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } && {
22454 test -z "$ac_c_werror_flag" ||
22455 test ! -s conftest.err
22456 } && test -s conftest.$ac_objext; then
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h. */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 $ac_includes_default
22465 main ()
22467 if (sizeof ((pid_t)))
22468 return 0;
22470 return 0;
22472 _ACEOF
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478 esac
22479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22480 $as_echo "$ac_try_echo") >&5
22481 (eval "$ac_compile") 2>conftest.er1
22482 ac_status=$?
22483 grep -v '^ *+' conftest.er1 >conftest.err
22484 rm -f conftest.er1
22485 cat conftest.err >&5
22486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && {
22488 test -z "$ac_c_werror_flag" ||
22489 test ! -s conftest.err
22490 } && test -s conftest.$ac_objext; then
22492 else
22493 $as_echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22496 ac_cv_type_pid_t=yes
22499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500 else
22501 $as_echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22510 $as_echo "$ac_cv_type_pid_t" >&6; }
22511 if test "x$ac_cv_type_pid_t" = x""yes; then
22513 else
22515 cat >>confdefs.h <<_ACEOF
22516 #define pid_t int
22517 _ACEOF
22521 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
22522 $as_echo_n "checking for size_t... " >&6; }
22523 if test "${ac_cv_type_size_t+set}" = set; then
22524 $as_echo_n "(cached) " >&6
22525 else
22526 ac_cv_type_size_t=no
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h. */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 $ac_includes_default
22535 main ()
22537 if (sizeof (size_t))
22538 return 0;
22540 return 0;
22542 _ACEOF
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22548 esac
22549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22550 $as_echo "$ac_try_echo") >&5
22551 (eval "$ac_compile") 2>conftest.er1
22552 ac_status=$?
22553 grep -v '^ *+' conftest.er1 >conftest.err
22554 rm -f conftest.er1
22555 cat conftest.err >&5
22556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } && {
22558 test -z "$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 } && test -s conftest.$ac_objext; then
22561 cat >conftest.$ac_ext <<_ACEOF
22562 /* confdefs.h. */
22563 _ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22567 $ac_includes_default
22569 main ()
22571 if (sizeof ((size_t)))
22572 return 0;
22574 return 0;
22576 _ACEOF
22577 rm -f conftest.$ac_objext
22578 if { (ac_try="$ac_compile"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582 esac
22583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22584 $as_echo "$ac_try_echo") >&5
22585 (eval "$ac_compile") 2>conftest.er1
22586 ac_status=$?
22587 grep -v '^ *+' conftest.er1 >conftest.err
22588 rm -f conftest.er1
22589 cat conftest.err >&5
22590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } && {
22592 test -z "$ac_c_werror_flag" ||
22593 test ! -s conftest.err
22594 } && test -s conftest.$ac_objext; then
22596 else
22597 $as_echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 ac_cv_type_size_t=yes
22603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22604 else
22605 $as_echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22614 $as_echo "$ac_cv_type_size_t" >&6; }
22615 if test "x$ac_cv_type_size_t" = x""yes; then
22617 else
22619 cat >>confdefs.h <<_ACEOF
22620 #define size_t unsigned int
22621 _ACEOF
22625 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
22626 $as_echo_n "checking for uint64_t... " >&6; }
22627 if test "${ac_cv_type_uint64_t+set}" = set; then
22628 $as_echo_n "(cached) " >&6
22629 else
22630 ac_cv_type_uint64_t=no
22631 cat >conftest.$ac_ext <<_ACEOF
22632 /* confdefs.h. */
22633 _ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h. */
22637 #ifdef HAVE_STDINT_H
22638 #include <stdint.h>
22639 #elif defined(HAVE_INTTYPES_H)
22640 #include <inttypes.h>
22641 #endif
22642 #ifdef HAVE_SYS_TYPES_H
22643 #include <sys/types.h>
22644 #endif
22647 main ()
22649 if (sizeof (uint64_t))
22650 return 0;
22652 return 0;
22654 _ACEOF
22655 rm -f conftest.$ac_objext
22656 if { (ac_try="$ac_compile"
22657 case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22660 esac
22661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22662 $as_echo "$ac_try_echo") >&5
22663 (eval "$ac_compile") 2>conftest.er1
22664 ac_status=$?
22665 grep -v '^ *+' conftest.er1 >conftest.err
22666 rm -f conftest.er1
22667 cat conftest.err >&5
22668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && {
22670 test -z "$ac_c_werror_flag" ||
22671 test ! -s conftest.err
22672 } && test -s conftest.$ac_objext; then
22673 cat >conftest.$ac_ext <<_ACEOF
22674 /* confdefs.h. */
22675 _ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h. */
22679 #ifdef HAVE_STDINT_H
22680 #include <stdint.h>
22681 #elif defined(HAVE_INTTYPES_H)
22682 #include <inttypes.h>
22683 #endif
22684 #ifdef HAVE_SYS_TYPES_H
22685 #include <sys/types.h>
22686 #endif
22689 main ()
22691 if (sizeof ((uint64_t)))
22692 return 0;
22694 return 0;
22696 _ACEOF
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22702 esac
22703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22704 $as_echo "$ac_try_echo") >&5
22705 (eval "$ac_compile") 2>conftest.er1
22706 ac_status=$?
22707 grep -v '^ *+' conftest.er1 >conftest.err
22708 rm -f conftest.er1
22709 cat conftest.err >&5
22710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest.$ac_objext; then
22716 else
22717 $as_echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22720 ac_cv_type_uint64_t=yes
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 else
22725 $as_echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
22734 $as_echo "$ac_cv_type_uint64_t" >&6; }
22735 if test "x$ac_cv_type_uint64_t" = x""yes; then
22737 cat >>confdefs.h <<_ACEOF
22738 #define HAVE_UINT64_T 1
22739 _ACEOF
22743 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
22744 $as_echo_n "checking for uint32_t... " >&6; }
22745 if test "${ac_cv_type_uint32_t+set}" = set; then
22746 $as_echo_n "(cached) " >&6
22747 else
22748 ac_cv_type_uint32_t=no
22749 cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h. */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 #ifdef HAVE_STDINT_H
22756 #include <stdint.h>
22757 #elif defined(HAVE_INTTYPES_H)
22758 #include <inttypes.h>
22759 #endif
22760 #ifdef HAVE_SYS_TYPES_H
22761 #include <sys/types.h>
22762 #endif
22765 main ()
22767 if (sizeof (uint32_t))
22768 return 0;
22770 return 0;
22772 _ACEOF
22773 rm -f conftest.$ac_objext
22774 if { (ac_try="$ac_compile"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22778 esac
22779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22780 $as_echo "$ac_try_echo") >&5
22781 (eval "$ac_compile") 2>conftest.er1
22782 ac_status=$?
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
22786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } && {
22788 test -z "$ac_c_werror_flag" ||
22789 test ! -s conftest.err
22790 } && test -s conftest.$ac_objext; then
22791 cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h. */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 #ifdef HAVE_STDINT_H
22798 #include <stdint.h>
22799 #elif defined(HAVE_INTTYPES_H)
22800 #include <inttypes.h>
22801 #endif
22802 #ifdef HAVE_SYS_TYPES_H
22803 #include <sys/types.h>
22804 #endif
22807 main ()
22809 if (sizeof ((uint32_t)))
22810 return 0;
22812 return 0;
22814 _ACEOF
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22820 esac
22821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22822 $as_echo "$ac_try_echo") >&5
22823 (eval "$ac_compile") 2>conftest.er1
22824 ac_status=$?
22825 grep -v '^ *+' conftest.er1 >conftest.err
22826 rm -f conftest.er1
22827 cat conftest.err >&5
22828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } && {
22830 test -z "$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22832 } && test -s conftest.$ac_objext; then
22834 else
22835 $as_echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_cv_type_uint32_t=yes
22841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22842 else
22843 $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22852 $as_echo "$ac_cv_type_uint32_t" >&6; }
22853 if test "x$ac_cv_type_uint32_t" = x""yes; then
22855 cat >>confdefs.h <<_ACEOF
22856 #define HAVE_UINT32_T 1
22857 _ACEOF
22861 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
22862 $as_echo_n "checking for uint16_t... " >&6; }
22863 if test "${ac_cv_type_uint16_t+set}" = set; then
22864 $as_echo_n "(cached) " >&6
22865 else
22866 ac_cv_type_uint16_t=no
22867 cat >conftest.$ac_ext <<_ACEOF
22868 /* confdefs.h. */
22869 _ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h. */
22873 #ifdef HAVE_STDINT_H
22874 #include <stdint.h>
22875 #elif defined(HAVE_INTTYPES_H)
22876 #include <inttypes.h>
22877 #endif
22878 #ifdef HAVE_SYS_TYPES_H
22879 #include <sys/types.h>
22880 #endif
22883 main ()
22885 if (sizeof (uint16_t))
22886 return 0;
22888 return 0;
22890 _ACEOF
22891 rm -f conftest.$ac_objext
22892 if { (ac_try="$ac_compile"
22893 case "(($ac_try" in
22894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22895 *) ac_try_echo=$ac_try;;
22896 esac
22897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22898 $as_echo "$ac_try_echo") >&5
22899 (eval "$ac_compile") 2>conftest.er1
22900 ac_status=$?
22901 grep -v '^ *+' conftest.er1 >conftest.err
22902 rm -f conftest.er1
22903 cat conftest.err >&5
22904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } && {
22906 test -z "$ac_c_werror_flag" ||
22907 test ! -s conftest.err
22908 } && test -s conftest.$ac_objext; then
22909 cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h. */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 #ifdef HAVE_STDINT_H
22916 #include <stdint.h>
22917 #elif defined(HAVE_INTTYPES_H)
22918 #include <inttypes.h>
22919 #endif
22920 #ifdef HAVE_SYS_TYPES_H
22921 #include <sys/types.h>
22922 #endif
22925 main ()
22927 if (sizeof ((uint16_t)))
22928 return 0;
22930 return 0;
22932 _ACEOF
22933 rm -f conftest.$ac_objext
22934 if { (ac_try="$ac_compile"
22935 case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22938 esac
22939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22940 $as_echo "$ac_try_echo") >&5
22941 (eval "$ac_compile") 2>conftest.er1
22942 ac_status=$?
22943 grep -v '^ *+' conftest.er1 >conftest.err
22944 rm -f conftest.er1
22945 cat conftest.err >&5
22946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } && {
22948 test -z "$ac_c_werror_flag" ||
22949 test ! -s conftest.err
22950 } && test -s conftest.$ac_objext; then
22952 else
22953 $as_echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ac_cv_type_uint16_t=yes
22959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22960 else
22961 $as_echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22970 $as_echo "$ac_cv_type_uint16_t" >&6; }
22971 if test "x$ac_cv_type_uint16_t" = x""yes; then
22973 cat >>confdefs.h <<_ACEOF
22974 #define HAVE_UINT16_T 1
22975 _ACEOF
22979 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
22980 $as_echo_n "checking for uint8_t... " >&6; }
22981 if test "${ac_cv_type_uint8_t+set}" = set; then
22982 $as_echo_n "(cached) " >&6
22983 else
22984 ac_cv_type_uint8_t=no
22985 cat >conftest.$ac_ext <<_ACEOF
22986 /* confdefs.h. */
22987 _ACEOF
22988 cat confdefs.h >>conftest.$ac_ext
22989 cat >>conftest.$ac_ext <<_ACEOF
22990 /* end confdefs.h. */
22991 #ifdef HAVE_STDINT_H
22992 #include <stdint.h>
22993 #elif defined(HAVE_INTTYPES_H)
22994 #include <inttypes.h>
22995 #endif
22996 #ifdef HAVE_SYS_TYPES_H
22997 #include <sys/types.h>
22998 #endif
23001 main ()
23003 if (sizeof (uint8_t))
23004 return 0;
23006 return 0;
23008 _ACEOF
23009 rm -f conftest.$ac_objext
23010 if { (ac_try="$ac_compile"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23014 esac
23015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23016 $as_echo "$ac_try_echo") >&5
23017 (eval "$ac_compile") 2>conftest.er1
23018 ac_status=$?
23019 grep -v '^ *+' conftest.er1 >conftest.err
23020 rm -f conftest.er1
23021 cat conftest.err >&5
23022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest.$ac_objext; then
23027 cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h. */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h. */
23033 #ifdef HAVE_STDINT_H
23034 #include <stdint.h>
23035 #elif defined(HAVE_INTTYPES_H)
23036 #include <inttypes.h>
23037 #endif
23038 #ifdef HAVE_SYS_TYPES_H
23039 #include <sys/types.h>
23040 #endif
23043 main ()
23045 if (sizeof ((uint8_t)))
23046 return 0;
23048 return 0;
23050 _ACEOF
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23056 esac
23057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23058 $as_echo "$ac_try_echo") >&5
23059 (eval "$ac_compile") 2>conftest.er1
23060 ac_status=$?
23061 grep -v '^ *+' conftest.er1 >conftest.err
23062 rm -f conftest.er1
23063 cat conftest.err >&5
23064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } && {
23066 test -z "$ac_c_werror_flag" ||
23067 test ! -s conftest.err
23068 } && test -s conftest.$ac_objext; then
23070 else
23071 $as_echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_cv_type_uint8_t=yes
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 else
23079 $as_echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23088 $as_echo "$ac_cv_type_uint8_t" >&6; }
23089 if test "x$ac_cv_type_uint8_t" = x""yes; then
23091 cat >>confdefs.h <<_ACEOF
23092 #define HAVE_UINT8_T 1
23093 _ACEOF
23098 { $as_echo "$as_me:$LINENO: checking for fd_mask" >&5
23099 $as_echo_n "checking for fd_mask... " >&6; }
23100 if test "${ac_cv_type_fd_mask+set}" = set; then
23101 $as_echo_n "(cached) " >&6
23102 else
23103 ac_cv_type_fd_mask=no
23104 cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h. */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 #ifdef HAVE_SYS_TYPES_H
23111 #include <sys/types.h>
23112 #endif
23113 #ifdef HAVE_SELECT_H
23114 #include <select.h>
23115 #endif
23118 main ()
23120 if (sizeof (fd_mask))
23121 return 0;
23123 return 0;
23125 _ACEOF
23126 rm -f conftest.$ac_objext
23127 if { (ac_try="$ac_compile"
23128 case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23131 esac
23132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23133 $as_echo "$ac_try_echo") >&5
23134 (eval "$ac_compile") 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } && {
23141 test -z "$ac_c_werror_flag" ||
23142 test ! -s conftest.err
23143 } && test -s conftest.$ac_objext; then
23144 cat >conftest.$ac_ext <<_ACEOF
23145 /* confdefs.h. */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23150 #ifdef HAVE_SYS_TYPES_H
23151 #include <sys/types.h>
23152 #endif
23153 #ifdef HAVE_SELECT_H
23154 #include <select.h>
23155 #endif
23158 main ()
23160 if (sizeof ((fd_mask)))
23161 return 0;
23163 return 0;
23165 _ACEOF
23166 rm -f conftest.$ac_objext
23167 if { (ac_try="$ac_compile"
23168 case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23171 esac
23172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23173 $as_echo "$ac_try_echo") >&5
23174 (eval "$ac_compile") 2>conftest.er1
23175 ac_status=$?
23176 grep -v '^ *+' conftest.er1 >conftest.err
23177 rm -f conftest.er1
23178 cat conftest.err >&5
23179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } && {
23181 test -z "$ac_c_werror_flag" ||
23182 test ! -s conftest.err
23183 } && test -s conftest.$ac_objext; then
23185 else
23186 $as_echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ac_cv_type_fd_mask=yes
23192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23193 else
23194 $as_echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
23203 $as_echo "$ac_cv_type_fd_mask" >&6; }
23204 if test "x$ac_cv_type_fd_mask" = x""yes; then
23206 cat >>confdefs.h <<_ACEOF
23207 #define HAVE_FD_MASK 1
23208 _ACEOF
23214 # The cast to long int works around a bug in the HP C Compiler
23215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23217 # This bug is HP SR number 8606223364.
23218 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
23219 $as_echo_n "checking size of long long... " >&6; }
23220 if test "${ac_cv_sizeof_long_long+set}" = set; then
23221 $as_echo_n "(cached) " >&6
23222 else
23223 if test "$cross_compiling" = yes; then
23224 # Depending upon the size, compute the lo and hi bounds.
23225 cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h. */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23231 $ac_includes_default
23233 main ()
23235 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
23236 test_array [0] = 0
23239 return 0;
23241 _ACEOF
23242 rm -f conftest.$ac_objext
23243 if { (ac_try="$ac_compile"
23244 case "(($ac_try" in
23245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23246 *) ac_try_echo=$ac_try;;
23247 esac
23248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23249 $as_echo "$ac_try_echo") >&5
23250 (eval "$ac_compile") 2>conftest.er1
23251 ac_status=$?
23252 grep -v '^ *+' conftest.er1 >conftest.err
23253 rm -f conftest.er1
23254 cat conftest.err >&5
23255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); } && {
23257 test -z "$ac_c_werror_flag" ||
23258 test ! -s conftest.err
23259 } && test -s conftest.$ac_objext; then
23260 ac_lo=0 ac_mid=0
23261 while :; do
23262 cat >conftest.$ac_ext <<_ACEOF
23263 /* confdefs.h. */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23268 $ac_includes_default
23270 main ()
23272 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
23273 test_array [0] = 0
23276 return 0;
23278 _ACEOF
23279 rm -f conftest.$ac_objext
23280 if { (ac_try="$ac_compile"
23281 case "(($ac_try" in
23282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283 *) ac_try_echo=$ac_try;;
23284 esac
23285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23286 $as_echo "$ac_try_echo") >&5
23287 (eval "$ac_compile") 2>conftest.er1
23288 ac_status=$?
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
23292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } && {
23294 test -z "$ac_c_werror_flag" ||
23295 test ! -s conftest.err
23296 } && test -s conftest.$ac_objext; then
23297 ac_hi=$ac_mid; break
23298 else
23299 $as_echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23302 ac_lo=`expr $ac_mid + 1`
23303 if test $ac_lo -le $ac_mid; then
23304 ac_lo= ac_hi=
23305 break
23307 ac_mid=`expr 2 '*' $ac_mid + 1`
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 done
23312 else
23313 $as_echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23316 cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h. */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23322 $ac_includes_default
23324 main ()
23326 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
23327 test_array [0] = 0
23330 return 0;
23332 _ACEOF
23333 rm -f conftest.$ac_objext
23334 if { (ac_try="$ac_compile"
23335 case "(($ac_try" in
23336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337 *) ac_try_echo=$ac_try;;
23338 esac
23339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23340 $as_echo "$ac_try_echo") >&5
23341 (eval "$ac_compile") 2>conftest.er1
23342 ac_status=$?
23343 grep -v '^ *+' conftest.er1 >conftest.err
23344 rm -f conftest.er1
23345 cat conftest.err >&5
23346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); } && {
23348 test -z "$ac_c_werror_flag" ||
23349 test ! -s conftest.err
23350 } && test -s conftest.$ac_objext; then
23351 ac_hi=-1 ac_mid=-1
23352 while :; do
23353 cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h. */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 $ac_includes_default
23361 main ()
23363 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
23364 test_array [0] = 0
23367 return 0;
23369 _ACEOF
23370 rm -f conftest.$ac_objext
23371 if { (ac_try="$ac_compile"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23375 esac
23376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23377 $as_echo "$ac_try_echo") >&5
23378 (eval "$ac_compile") 2>conftest.er1
23379 ac_status=$?
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
23383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest.$ac_objext; then
23388 ac_lo=$ac_mid; break
23389 else
23390 $as_echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 ac_hi=`expr '(' $ac_mid ')' - 1`
23394 if test $ac_mid -le $ac_hi; then
23395 ac_lo= ac_hi=
23396 break
23398 ac_mid=`expr 2 '*' $ac_mid`
23401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 done
23403 else
23404 $as_echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_lo= ac_hi=
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 # Binary search between lo and hi bounds.
23415 while test "x$ac_lo" != "x$ac_hi"; do
23416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23417 cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h. */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23423 $ac_includes_default
23425 main ()
23427 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
23428 test_array [0] = 0
23431 return 0;
23433 _ACEOF
23434 rm -f conftest.$ac_objext
23435 if { (ac_try="$ac_compile"
23436 case "(($ac_try" in
23437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438 *) ac_try_echo=$ac_try;;
23439 esac
23440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23441 $as_echo "$ac_try_echo") >&5
23442 (eval "$ac_compile") 2>conftest.er1
23443 ac_status=$?
23444 grep -v '^ *+' conftest.er1 >conftest.err
23445 rm -f conftest.er1
23446 cat conftest.err >&5
23447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } && {
23449 test -z "$ac_c_werror_flag" ||
23450 test ! -s conftest.err
23451 } && test -s conftest.$ac_objext; then
23452 ac_hi=$ac_mid
23453 else
23454 $as_echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23457 ac_lo=`expr '(' $ac_mid ')' + 1`
23460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23461 done
23462 case $ac_lo in
23463 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23464 '') if test "$ac_cv_type_long_long" = yes; then
23465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23467 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23468 See \`config.log' for more details." >&5
23469 $as_echo "$as_me: error: cannot compute sizeof (long long)
23470 See \`config.log' for more details." >&2;}
23471 { (exit 77); exit 77; }; }; }
23472 else
23473 ac_cv_sizeof_long_long=0
23474 fi ;;
23475 esac
23476 else
23477 cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h. */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23483 $ac_includes_default
23484 static long int longval () { return (long int) (sizeof (long long)); }
23485 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
23486 #include <stdio.h>
23487 #include <stdlib.h>
23489 main ()
23492 FILE *f = fopen ("conftest.val", "w");
23493 if (! f)
23494 return 1;
23495 if (((long int) (sizeof (long long))) < 0)
23497 long int i = longval ();
23498 if (i != ((long int) (sizeof (long long))))
23499 return 1;
23500 fprintf (f, "%ld", i);
23502 else
23504 unsigned long int i = ulongval ();
23505 if (i != ((long int) (sizeof (long long))))
23506 return 1;
23507 fprintf (f, "%lu", i);
23509 /* Do not output a trailing newline, as this causes \r\n confusion
23510 on some platforms. */
23511 return ferror (f) || fclose (f) != 0;
23514 return 0;
23516 _ACEOF
23517 rm -f conftest$ac_exeext
23518 if { (ac_try="$ac_link"
23519 case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23522 esac
23523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23524 $as_echo "$ac_try_echo") >&5
23525 (eval "$ac_link") 2>&5
23526 ac_status=$?
23527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23529 { (case "(($ac_try" in
23530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531 *) ac_try_echo=$ac_try;;
23532 esac
23533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23534 $as_echo "$ac_try_echo") >&5
23535 (eval "$ac_try") 2>&5
23536 ac_status=$?
23537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ac_cv_sizeof_long_long=`cat conftest.val`
23540 else
23541 $as_echo "$as_me: program exited with status $ac_status" >&5
23542 $as_echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ( exit $ac_status )
23546 if test "$ac_cv_type_long_long" = yes; then
23547 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23549 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23550 See \`config.log' for more details." >&5
23551 $as_echo "$as_me: error: cannot compute sizeof (long long)
23552 See \`config.log' for more details." >&2;}
23553 { (exit 77); exit 77; }; }; }
23554 else
23555 ac_cv_sizeof_long_long=0
23558 rm -rf conftest.dSYM
23559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23561 rm -f conftest.val
23563 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23564 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23568 cat >>confdefs.h <<_ACEOF
23569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23570 _ACEOF
23573 # The cast to long int works around a bug in the HP C Compiler
23574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23576 # This bug is HP SR number 8606223364.
23577 { $as_echo "$as_me:$LINENO: checking size of int" >&5
23578 $as_echo_n "checking size of int... " >&6; }
23579 if test "${ac_cv_sizeof_int+set}" = set; then
23580 $as_echo_n "(cached) " >&6
23581 else
23582 if test "$cross_compiling" = yes; then
23583 # Depending upon the size, compute the lo and hi bounds.
23584 cat >conftest.$ac_ext <<_ACEOF
23585 /* confdefs.h. */
23586 _ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h. */
23590 $ac_includes_default
23592 main ()
23594 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
23595 test_array [0] = 0
23598 return 0;
23600 _ACEOF
23601 rm -f conftest.$ac_objext
23602 if { (ac_try="$ac_compile"
23603 case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23606 esac
23607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23608 $as_echo "$ac_try_echo") >&5
23609 (eval "$ac_compile") 2>conftest.er1
23610 ac_status=$?
23611 grep -v '^ *+' conftest.er1 >conftest.err
23612 rm -f conftest.er1
23613 cat conftest.err >&5
23614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } && {
23616 test -z "$ac_c_werror_flag" ||
23617 test ! -s conftest.err
23618 } && test -s conftest.$ac_objext; then
23619 ac_lo=0 ac_mid=0
23620 while :; do
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h. */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 $ac_includes_default
23629 main ()
23631 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
23632 test_array [0] = 0
23635 return 0;
23637 _ACEOF
23638 rm -f conftest.$ac_objext
23639 if { (ac_try="$ac_compile"
23640 case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23643 esac
23644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23645 $as_echo "$ac_try_echo") >&5
23646 (eval "$ac_compile") 2>conftest.er1
23647 ac_status=$?
23648 grep -v '^ *+' conftest.er1 >conftest.err
23649 rm -f conftest.er1
23650 cat conftest.err >&5
23651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } && {
23653 test -z "$ac_c_werror_flag" ||
23654 test ! -s conftest.err
23655 } && test -s conftest.$ac_objext; then
23656 ac_hi=$ac_mid; break
23657 else
23658 $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23661 ac_lo=`expr $ac_mid + 1`
23662 if test $ac_lo -le $ac_mid; then
23663 ac_lo= ac_hi=
23664 break
23666 ac_mid=`expr 2 '*' $ac_mid + 1`
23669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23670 done
23671 else
23672 $as_echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23683 main ()
23685 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
23686 test_array [0] = 0
23689 return 0;
23691 _ACEOF
23692 rm -f conftest.$ac_objext
23693 if { (ac_try="$ac_compile"
23694 case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23697 esac
23698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23699 $as_echo "$ac_try_echo") >&5
23700 (eval "$ac_compile") 2>conftest.er1
23701 ac_status=$?
23702 grep -v '^ *+' conftest.er1 >conftest.err
23703 rm -f conftest.er1
23704 cat conftest.err >&5
23705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } && {
23707 test -z "$ac_c_werror_flag" ||
23708 test ! -s conftest.err
23709 } && test -s conftest.$ac_objext; then
23710 ac_hi=-1 ac_mid=-1
23711 while :; do
23712 cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h. */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 $ac_includes_default
23720 main ()
23722 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
23723 test_array [0] = 0
23726 return 0;
23728 _ACEOF
23729 rm -f conftest.$ac_objext
23730 if { (ac_try="$ac_compile"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23734 esac
23735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23736 $as_echo "$ac_try_echo") >&5
23737 (eval "$ac_compile") 2>conftest.er1
23738 ac_status=$?
23739 grep -v '^ *+' conftest.er1 >conftest.err
23740 rm -f conftest.er1
23741 cat conftest.err >&5
23742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest.$ac_objext; then
23747 ac_lo=$ac_mid; break
23748 else
23749 $as_echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23752 ac_hi=`expr '(' $ac_mid ')' - 1`
23753 if test $ac_mid -le $ac_hi; then
23754 ac_lo= ac_hi=
23755 break
23757 ac_mid=`expr 2 '*' $ac_mid`
23760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761 done
23762 else
23763 $as_echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 ac_lo= ac_hi=
23769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 # Binary search between lo and hi bounds.
23774 while test "x$ac_lo" != "x$ac_hi"; do
23775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23776 cat >conftest.$ac_ext <<_ACEOF
23777 /* confdefs.h. */
23778 _ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h. */
23782 $ac_includes_default
23784 main ()
23786 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
23787 test_array [0] = 0
23790 return 0;
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23798 esac
23799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23800 $as_echo "$ac_try_echo") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23802 ac_status=$?
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
23806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23811 ac_hi=$ac_mid
23812 else
23813 $as_echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23816 ac_lo=`expr '(' $ac_mid ')' + 1`
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 done
23821 case $ac_lo in
23822 ?*) ac_cv_sizeof_int=$ac_lo;;
23823 '') if test "$ac_cv_type_int" = yes; then
23824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23826 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23827 See \`config.log' for more details." >&5
23828 $as_echo "$as_me: error: cannot compute sizeof (int)
23829 See \`config.log' for more details." >&2;}
23830 { (exit 77); exit 77; }; }; }
23831 else
23832 ac_cv_sizeof_int=0
23833 fi ;;
23834 esac
23835 else
23836 cat >conftest.$ac_ext <<_ACEOF
23837 /* confdefs.h. */
23838 _ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h. */
23842 $ac_includes_default
23843 static long int longval () { return (long int) (sizeof (int)); }
23844 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
23845 #include <stdio.h>
23846 #include <stdlib.h>
23848 main ()
23851 FILE *f = fopen ("conftest.val", "w");
23852 if (! f)
23853 return 1;
23854 if (((long int) (sizeof (int))) < 0)
23856 long int i = longval ();
23857 if (i != ((long int) (sizeof (int))))
23858 return 1;
23859 fprintf (f, "%ld", i);
23861 else
23863 unsigned long int i = ulongval ();
23864 if (i != ((long int) (sizeof (int))))
23865 return 1;
23866 fprintf (f, "%lu", i);
23868 /* Do not output a trailing newline, as this causes \r\n confusion
23869 on some platforms. */
23870 return ferror (f) || fclose (f) != 0;
23873 return 0;
23875 _ACEOF
23876 rm -f conftest$ac_exeext
23877 if { (ac_try="$ac_link"
23878 case "(($ac_try" in
23879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880 *) ac_try_echo=$ac_try;;
23881 esac
23882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23883 $as_echo "$ac_try_echo") >&5
23884 (eval "$ac_link") 2>&5
23885 ac_status=$?
23886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23888 { (case "(($ac_try" in
23889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23890 *) ac_try_echo=$ac_try;;
23891 esac
23892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23893 $as_echo "$ac_try_echo") >&5
23894 (eval "$ac_try") 2>&5
23895 ac_status=$?
23896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
23898 ac_cv_sizeof_int=`cat conftest.val`
23899 else
23900 $as_echo "$as_me: program exited with status $ac_status" >&5
23901 $as_echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23904 ( exit $ac_status )
23905 if test "$ac_cv_type_int" = yes; then
23906 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23908 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23909 See \`config.log' for more details." >&5
23910 $as_echo "$as_me: error: cannot compute sizeof (int)
23911 See \`config.log' for more details." >&2;}
23912 { (exit 77); exit 77; }; }; }
23913 else
23914 ac_cv_sizeof_int=0
23917 rm -rf conftest.dSYM
23918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23920 rm -f conftest.val
23922 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23923 $as_echo "$ac_cv_sizeof_int" >&6; }
23927 cat >>confdefs.h <<_ACEOF
23928 #define SIZEOF_INT $ac_cv_sizeof_int
23929 _ACEOF
23932 # The cast to long int works around a bug in the HP C Compiler
23933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23935 # This bug is HP SR number 8606223364.
23936 { $as_echo "$as_me:$LINENO: checking size of short" >&5
23937 $as_echo_n "checking size of short... " >&6; }
23938 if test "${ac_cv_sizeof_short+set}" = set; then
23939 $as_echo_n "(cached) " >&6
23940 else
23941 if test "$cross_compiling" = yes; then
23942 # Depending upon the size, compute the lo and hi bounds.
23943 cat >conftest.$ac_ext <<_ACEOF
23944 /* confdefs.h. */
23945 _ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h. */
23949 $ac_includes_default
23951 main ()
23953 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
23954 test_array [0] = 0
23957 return 0;
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (ac_try="$ac_compile"
23962 case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23965 esac
23966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23967 $as_echo "$ac_try_echo") >&5
23968 (eval "$ac_compile") 2>conftest.er1
23969 ac_status=$?
23970 grep -v '^ *+' conftest.er1 >conftest.err
23971 rm -f conftest.er1
23972 cat conftest.err >&5
23973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } && {
23975 test -z "$ac_c_werror_flag" ||
23976 test ! -s conftest.err
23977 } && test -s conftest.$ac_objext; then
23978 ac_lo=0 ac_mid=0
23979 while :; do
23980 cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h. */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 $ac_includes_default
23988 main ()
23990 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
23991 test_array [0] = 0
23994 return 0;
23996 _ACEOF
23997 rm -f conftest.$ac_objext
23998 if { (ac_try="$ac_compile"
23999 case "(($ac_try" in
24000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24002 esac
24003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24004 $as_echo "$ac_try_echo") >&5
24005 (eval "$ac_compile") 2>conftest.er1
24006 ac_status=$?
24007 grep -v '^ *+' conftest.er1 >conftest.err
24008 rm -f conftest.er1
24009 cat conftest.err >&5
24010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && {
24012 test -z "$ac_c_werror_flag" ||
24013 test ! -s conftest.err
24014 } && test -s conftest.$ac_objext; then
24015 ac_hi=$ac_mid; break
24016 else
24017 $as_echo "$as_me: failed program was:" >&5
24018 sed 's/^/| /' conftest.$ac_ext >&5
24020 ac_lo=`expr $ac_mid + 1`
24021 if test $ac_lo -le $ac_mid; then
24022 ac_lo= ac_hi=
24023 break
24025 ac_mid=`expr 2 '*' $ac_mid + 1`
24028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24029 done
24030 else
24031 $as_echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24034 cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h. */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040 $ac_includes_default
24042 main ()
24044 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
24045 test_array [0] = 0
24048 return 0;
24050 _ACEOF
24051 rm -f conftest.$ac_objext
24052 if { (ac_try="$ac_compile"
24053 case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24056 esac
24057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24058 $as_echo "$ac_try_echo") >&5
24059 (eval "$ac_compile") 2>conftest.er1
24060 ac_status=$?
24061 grep -v '^ *+' conftest.er1 >conftest.err
24062 rm -f conftest.er1
24063 cat conftest.err >&5
24064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); } && {
24066 test -z "$ac_c_werror_flag" ||
24067 test ! -s conftest.err
24068 } && test -s conftest.$ac_objext; then
24069 ac_hi=-1 ac_mid=-1
24070 while :; do
24071 cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h. */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24077 $ac_includes_default
24079 main ()
24081 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
24082 test_array [0] = 0
24085 return 0;
24087 _ACEOF
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093 esac
24094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095 $as_echo "$ac_try_echo") >&5
24096 (eval "$ac_compile") 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest.$ac_objext; then
24106 ac_lo=$ac_mid; break
24107 else
24108 $as_echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24111 ac_hi=`expr '(' $ac_mid ')' - 1`
24112 if test $ac_mid -le $ac_hi; then
24113 ac_lo= ac_hi=
24114 break
24116 ac_mid=`expr 2 '*' $ac_mid`
24119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120 done
24121 else
24122 $as_echo "$as_me: failed program was:" >&5
24123 sed 's/^/| /' conftest.$ac_ext >&5
24125 ac_lo= ac_hi=
24128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24132 # Binary search between lo and hi bounds.
24133 while test "x$ac_lo" != "x$ac_hi"; do
24134 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24135 cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h. */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24141 $ac_includes_default
24143 main ()
24145 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
24146 test_array [0] = 0
24149 return 0;
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156 *) ac_try_echo=$ac_try;;
24157 esac
24158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24159 $as_echo "$ac_try_echo") >&5
24160 (eval "$ac_compile") 2>conftest.er1
24161 ac_status=$?
24162 grep -v '^ *+' conftest.er1 >conftest.err
24163 rm -f conftest.er1
24164 cat conftest.err >&5
24165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } && {
24167 test -z "$ac_c_werror_flag" ||
24168 test ! -s conftest.err
24169 } && test -s conftest.$ac_objext; then
24170 ac_hi=$ac_mid
24171 else
24172 $as_echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_lo=`expr '(' $ac_mid ')' + 1`
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24179 done
24180 case $ac_lo in
24181 ?*) ac_cv_sizeof_short=$ac_lo;;
24182 '') if test "$ac_cv_type_short" = yes; then
24183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24185 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24186 See \`config.log' for more details." >&5
24187 $as_echo "$as_me: error: cannot compute sizeof (short)
24188 See \`config.log' for more details." >&2;}
24189 { (exit 77); exit 77; }; }; }
24190 else
24191 ac_cv_sizeof_short=0
24192 fi ;;
24193 esac
24194 else
24195 cat >conftest.$ac_ext <<_ACEOF
24196 /* confdefs.h. */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24201 $ac_includes_default
24202 static long int longval () { return (long int) (sizeof (short)); }
24203 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
24204 #include <stdio.h>
24205 #include <stdlib.h>
24207 main ()
24210 FILE *f = fopen ("conftest.val", "w");
24211 if (! f)
24212 return 1;
24213 if (((long int) (sizeof (short))) < 0)
24215 long int i = longval ();
24216 if (i != ((long int) (sizeof (short))))
24217 return 1;
24218 fprintf (f, "%ld", i);
24220 else
24222 unsigned long int i = ulongval ();
24223 if (i != ((long int) (sizeof (short))))
24224 return 1;
24225 fprintf (f, "%lu", i);
24227 /* Do not output a trailing newline, as this causes \r\n confusion
24228 on some platforms. */
24229 return ferror (f) || fclose (f) != 0;
24232 return 0;
24234 _ACEOF
24235 rm -f conftest$ac_exeext
24236 if { (ac_try="$ac_link"
24237 case "(($ac_try" in
24238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24239 *) ac_try_echo=$ac_try;;
24240 esac
24241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24242 $as_echo "$ac_try_echo") >&5
24243 (eval "$ac_link") 2>&5
24244 ac_status=$?
24245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24247 { (case "(($ac_try" in
24248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24249 *) ac_try_echo=$ac_try;;
24250 esac
24251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24252 $as_echo "$ac_try_echo") >&5
24253 (eval "$ac_try") 2>&5
24254 ac_status=$?
24255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; }; then
24257 ac_cv_sizeof_short=`cat conftest.val`
24258 else
24259 $as_echo "$as_me: program exited with status $ac_status" >&5
24260 $as_echo "$as_me: failed program was:" >&5
24261 sed 's/^/| /' conftest.$ac_ext >&5
24263 ( exit $ac_status )
24264 if test "$ac_cv_type_short" = yes; then
24265 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24267 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24268 See \`config.log' for more details." >&5
24269 $as_echo "$as_me: error: cannot compute sizeof (short)
24270 See \`config.log' for more details." >&2;}
24271 { (exit 77); exit 77; }; }; }
24272 else
24273 ac_cv_sizeof_short=0
24276 rm -rf conftest.dSYM
24277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24279 rm -f conftest.val
24281 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
24282 $as_echo "$ac_cv_sizeof_short" >&6; }
24286 cat >>confdefs.h <<_ACEOF
24287 #define SIZEOF_SHORT $ac_cv_sizeof_short
24288 _ACEOF
24291 { $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24292 $as_echo_n "checking for struct in6_addr... " >&6; }
24293 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24294 $as_echo_n "(cached) " >&6
24295 else
24296 ac_cv_type_struct_in6_addr=no
24297 cat >conftest.$ac_ext <<_ACEOF
24298 /* confdefs.h. */
24299 _ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24303 #ifdef WIN32
24304 #include <winsock2.h>
24305 #else
24306 #include <sys/types.h>
24307 #include <netinet/in.h>
24308 #include <sys/socket.h>
24309 #endif
24310 #ifdef HAVE_NETINET_IN6_H
24311 #include <netinet/in6.h>
24312 #endif
24315 main ()
24317 if (sizeof (struct in6_addr))
24318 return 0;
24320 return 0;
24322 _ACEOF
24323 rm -f conftest.$ac_objext
24324 if { (ac_try="$ac_compile"
24325 case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24328 esac
24329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24330 $as_echo "$ac_try_echo") >&5
24331 (eval "$ac_compile") 2>conftest.er1
24332 ac_status=$?
24333 grep -v '^ *+' conftest.er1 >conftest.err
24334 rm -f conftest.er1
24335 cat conftest.err >&5
24336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } && {
24338 test -z "$ac_c_werror_flag" ||
24339 test ! -s conftest.err
24340 } && test -s conftest.$ac_objext; then
24341 cat >conftest.$ac_ext <<_ACEOF
24342 /* confdefs.h. */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 #ifdef WIN32
24348 #include <winsock2.h>
24349 #else
24350 #include <sys/types.h>
24351 #include <netinet/in.h>
24352 #include <sys/socket.h>
24353 #endif
24354 #ifdef HAVE_NETINET_IN6_H
24355 #include <netinet/in6.h>
24356 #endif
24359 main ()
24361 if (sizeof ((struct in6_addr)))
24362 return 0;
24364 return 0;
24366 _ACEOF
24367 rm -f conftest.$ac_objext
24368 if { (ac_try="$ac_compile"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24372 esac
24373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24374 $as_echo "$ac_try_echo") >&5
24375 (eval "$ac_compile") 2>conftest.er1
24376 ac_status=$?
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
24380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } && {
24382 test -z "$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 } && test -s conftest.$ac_objext; then
24386 else
24387 $as_echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24390 ac_cv_type_struct_in6_addr=yes
24393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394 else
24395 $as_echo "$as_me: failed program was:" >&5
24396 sed 's/^/| /' conftest.$ac_ext >&5
24401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24404 $as_echo "$ac_cv_type_struct_in6_addr" >&6; }
24405 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then
24407 cat >>confdefs.h <<_ACEOF
24408 #define HAVE_STRUCT_IN6_ADDR 1
24409 _ACEOF
24415 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
24416 $as_echo_n "checking for socklen_t... " >&6; }
24417 cat >conftest.$ac_ext <<_ACEOF
24418 /* confdefs.h. */
24419 _ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h. */
24424 #include <sys/types.h>
24425 #include <sys/socket.h>
24427 main ()
24429 socklen_t x;
24431 return 0;
24433 _ACEOF
24434 rm -f conftest.$ac_objext
24435 if { (ac_try="$ac_compile"
24436 case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24439 esac
24440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24441 $as_echo "$ac_try_echo") >&5
24442 (eval "$ac_compile") 2>conftest.er1
24443 ac_status=$?
24444 grep -v '^ *+' conftest.er1 >conftest.err
24445 rm -f conftest.er1
24446 cat conftest.err >&5
24447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } && {
24449 test -z "$ac_c_werror_flag" ||
24450 test ! -s conftest.err
24451 } && test -s conftest.$ac_objext; then
24452 { $as_echo "$as_me:$LINENO: result: yes" >&5
24453 $as_echo "yes" >&6; }
24454 else
24455 $as_echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24458 { $as_echo "$as_me:$LINENO: result: no" >&5
24459 $as_echo "no" >&6; }
24461 cat >>confdefs.h <<\_ACEOF
24462 #define socklen_t unsigned int
24463 _ACEOF
24468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24470 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
24471 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
24472 cat >conftest.$ac_ext <<_ACEOF
24473 /* confdefs.h. */
24474 _ACEOF
24475 cat confdefs.h >>conftest.$ac_ext
24476 cat >>conftest.$ac_ext <<_ACEOF
24477 /* end confdefs.h. */
24480 main ()
24482 const char *cp = __func__;
24484 return 0;
24486 _ACEOF
24487 rm -f conftest.$ac_objext
24488 if { (ac_try="$ac_compile"
24489 case "(($ac_try" in
24490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24491 *) ac_try_echo=$ac_try;;
24492 esac
24493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24494 $as_echo "$ac_try_echo") >&5
24495 (eval "$ac_compile") 2>conftest.er1
24496 ac_status=$?
24497 grep -v '^ *+' conftest.er1 >conftest.err
24498 rm -f conftest.er1
24499 cat conftest.err >&5
24500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); } && {
24502 test -z "$ac_c_werror_flag" ||
24503 test ! -s conftest.err
24504 } && test -s conftest.$ac_objext; then
24505 { $as_echo "$as_me:$LINENO: result: yes" >&5
24506 $as_echo "yes" >&6; }
24507 else
24508 $as_echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24511 { $as_echo "$as_me:$LINENO: result: no" >&5
24512 $as_echo "no" >&6; }
24513 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
24514 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
24515 cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h. */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24523 main ()
24525 const char *cp = __FUNCTION__;
24527 return 0;
24529 _ACEOF
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24535 esac
24536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24537 $as_echo "$ac_try_echo") >&5
24538 (eval "$ac_compile") 2>conftest.er1
24539 ac_status=$?
24540 grep -v '^ *+' conftest.er1 >conftest.err
24541 rm -f conftest.er1
24542 cat conftest.err >&5
24543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } && {
24545 test -z "$ac_c_werror_flag" ||
24546 test ! -s conftest.err
24547 } && test -s conftest.$ac_objext; then
24548 { $as_echo "$as_me:$LINENO: result: yes" >&5
24549 $as_echo "yes" >&6; }
24551 cat >>confdefs.h <<\_ACEOF
24552 #define __func__ __FUNCTION__
24553 _ACEOF
24555 else
24556 $as_echo "$as_me: failed program was:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24559 { $as_echo "$as_me:$LINENO: result: no" >&5
24560 $as_echo "no" >&6; }
24562 cat >>confdefs.h <<\_ACEOF
24563 #define __func__ __FILE__
24564 _ACEOF
24568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 # Add some more warnings which we use in development but not in the
24575 # released versions. (Some relevant gcc versions can't handle these.)
24576 if test x$enable_gcc_warnings = xyes; then
24578 cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h. */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24586 main ()
24589 #if !defined(__GNUC__) || (__GNUC__ < 4)
24590 #error
24591 #endif
24593 return 0;
24595 _ACEOF
24596 rm -f conftest.$ac_objext
24597 if { (ac_try="$ac_compile"
24598 case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24601 esac
24602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24603 $as_echo "$ac_try_echo") >&5
24604 (eval "$ac_compile") 2>conftest.er1
24605 ac_status=$?
24606 grep -v '^ *+' conftest.er1 >conftest.err
24607 rm -f conftest.er1
24608 cat conftest.err >&5
24609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); } && {
24611 test -z "$ac_c_werror_flag" ||
24612 test ! -s conftest.err
24613 } && test -s conftest.$ac_objext; then
24614 have_gcc4=yes
24615 else
24616 $as_echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.$ac_ext >&5
24619 have_gcc4=no
24622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624 cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h. */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24632 main ()
24635 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
24636 #error
24637 #endif
24639 return 0;
24641 _ACEOF
24642 rm -f conftest.$ac_objext
24643 if { (ac_try="$ac_compile"
24644 case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24647 esac
24648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24649 $as_echo "$ac_try_echo") >&5
24650 (eval "$ac_compile") 2>conftest.er1
24651 ac_status=$?
24652 grep -v '^ *+' conftest.er1 >conftest.err
24653 rm -f conftest.er1
24654 cat conftest.err >&5
24655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); } && {
24657 test -z "$ac_c_werror_flag" ||
24658 test ! -s conftest.err
24659 } && test -s conftest.$ac_objext; then
24660 have_gcc42=yes
24661 else
24662 $as_echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24665 have_gcc42=no
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24670 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
24671 CFLAGS="$CFLAGS -Wno-unused-parameter -Wno-sign-compare -Wstrict-aliasing"
24673 if test x$have_gcc4 = xyes ; then
24674 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
24675 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
24676 #CFLAGS="$CFLAGS -Wold-style-definition"
24679 if test x$have_gcc42 = xyes ; then
24680 # These warnings break gcc 4.0.2 and work on gcc 4.2
24681 CFLAGS="$CFLAGS -Waddress -Wnormalized=id -Woverride-init"
24684 ##This will break the world on some 64-bit architectures
24685 # CFLAGS="$CFLAGS -Winline"
24689 ac_config_files="$ac_config_files Makefile test/Makefile sample/Makefile"
24691 cat >confcache <<\_ACEOF
24692 # This file is a shell script that caches the results of configure
24693 # tests run on this system so they can be shared between configure
24694 # scripts and configure runs, see configure's option --config-cache.
24695 # It is not useful on other systems. If it contains results you don't
24696 # want to keep, you may remove or edit it.
24698 # config.status only pays attention to the cache file if you give it
24699 # the --recheck option to rerun configure.
24701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24703 # following values.
24705 _ACEOF
24707 # The following way of writing the cache mishandles newlines in values,
24708 # but we know of no workaround that is simple, portable, and efficient.
24709 # So, we kill variables containing newlines.
24710 # Ultrix sh set writes to stderr and can't be redirected directly,
24711 # and sets the high bit in the cache file unless we assign to the vars.
24713 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24714 eval ac_val=\$$ac_var
24715 case $ac_val in #(
24716 *${as_nl}*)
24717 case $ac_var in #(
24718 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
24719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24720 esac
24721 case $ac_var in #(
24722 _ | IFS | as_nl) ;; #(
24723 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24724 *) $as_unset $ac_var ;;
24725 esac ;;
24726 esac
24727 done
24729 (set) 2>&1 |
24730 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24731 *${as_nl}ac_space=\ *)
24732 # `set' does not quote correctly, so add quotes (double-quote
24733 # substitution turns \\\\ into \\, and sed turns \\ into \).
24734 sed -n \
24735 "s/'/'\\\\''/g;
24736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24737 ;; #(
24739 # `set' quotes correctly as required by POSIX, so do not add quotes.
24740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24742 esac |
24743 sort
24745 sed '
24746 /^ac_cv_env_/b end
24747 t clear
24748 :clear
24749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24750 t end
24751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24752 :end' >>confcache
24753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24754 if test -w "$cache_file"; then
24755 test "x$cache_file" != "x/dev/null" &&
24756 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24757 $as_echo "$as_me: updating cache $cache_file" >&6;}
24758 cat confcache >$cache_file
24759 else
24760 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24764 rm -f confcache
24766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24767 # Let make expand exec_prefix.
24768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24770 DEFS=-DHAVE_CONFIG_H
24772 ac_libobjs=
24773 ac_ltlibobjs=
24774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24775 # 1. Remove the extension, and $U if already installed.
24776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24779 # will be set to the directory where LIBOBJS objects are built.
24780 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24781 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24782 done
24783 LIBOBJS=$ac_libobjs
24785 LTLIBOBJS=$ac_ltlibobjs
24788 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24789 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24790 Usually this means the macro was only invoked conditionally." >&5
24791 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24792 Usually this means the macro was only invoked conditionally." >&2;}
24793 { (exit 1); exit 1; }; }
24795 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24796 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24797 Usually this means the macro was only invoked conditionally." >&5
24798 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24799 Usually this means the macro was only invoked conditionally." >&2;}
24800 { (exit 1); exit 1; }; }
24802 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24803 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24804 Usually this means the macro was only invoked conditionally." >&5
24805 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24806 Usually this means the macro was only invoked conditionally." >&2;}
24807 { (exit 1); exit 1; }; }
24809 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
24810 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_WIN32\" was never defined.
24811 Usually this means the macro was only invoked conditionally." >&5
24812 $as_echo "$as_me: error: conditional \"BUILD_WIN32\" was never defined.
24813 Usually this means the macro was only invoked conditionally." >&2;}
24814 { (exit 1); exit 1; }; }
24817 : ${CONFIG_STATUS=./config.status}
24818 ac_write_fail=0
24819 ac_clean_files_save=$ac_clean_files
24820 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24821 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24822 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24823 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24824 #! $SHELL
24825 # Generated by $as_me.
24826 # Run this file to recreate the current configuration.
24827 # Compiler output produced by configure, useful for debugging
24828 # configure, is in config.log if it exists.
24830 debug=false
24831 ac_cs_recheck=false
24832 ac_cs_silent=false
24833 SHELL=\${CONFIG_SHELL-$SHELL}
24834 _ACEOF
24836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24837 ## --------------------- ##
24838 ## M4sh Initialization. ##
24839 ## --------------------- ##
24841 # Be more Bourne compatible
24842 DUALCASE=1; export DUALCASE # for MKS sh
24843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24844 emulate sh
24845 NULLCMD=:
24846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24847 # is contrary to our usage. Disable this feature.
24848 alias -g '${1+"$@"}'='"$@"'
24849 setopt NO_GLOB_SUBST
24850 else
24851 case `(set -o) 2>/dev/null` in
24852 *posix*) set -o posix ;;
24853 esac
24860 # PATH needs CR
24861 # Avoid depending upon Character Ranges.
24862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24865 as_cr_digits='0123456789'
24866 as_cr_alnum=$as_cr_Letters$as_cr_digits
24868 as_nl='
24870 export as_nl
24871 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24872 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24873 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24875 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24876 as_echo='printf %s\n'
24877 as_echo_n='printf %s'
24878 else
24879 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24880 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24881 as_echo_n='/usr/ucb/echo -n'
24882 else
24883 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24884 as_echo_n_body='eval
24885 arg=$1;
24886 case $arg in
24887 *"$as_nl"*)
24888 expr "X$arg" : "X\\(.*\\)$as_nl";
24889 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24890 esac;
24891 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24893 export as_echo_n_body
24894 as_echo_n='sh -c $as_echo_n_body as_echo'
24896 export as_echo_body
24897 as_echo='sh -c $as_echo_body as_echo'
24900 # The user is always right.
24901 if test "${PATH_SEPARATOR+set}" != set; then
24902 PATH_SEPARATOR=:
24903 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24904 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24905 PATH_SEPARATOR=';'
24909 # Support unset when possible.
24910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24911 as_unset=unset
24912 else
24913 as_unset=false
24917 # IFS
24918 # We need space, tab and new line, in precisely that order. Quoting is
24919 # there to prevent editors from complaining about space-tab.
24920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24921 # splitting by setting IFS to empty value.)
24922 IFS=" "" $as_nl"
24924 # Find who we are. Look in the path if we contain no directory separator.
24925 case $0 in
24926 *[\\/]* ) as_myself=$0 ;;
24927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24928 for as_dir in $PATH
24930 IFS=$as_save_IFS
24931 test -z "$as_dir" && as_dir=.
24932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24933 done
24934 IFS=$as_save_IFS
24937 esac
24938 # We did not find ourselves, most probably we were run as `sh COMMAND'
24939 # in which case we are not to be found in the path.
24940 if test "x$as_myself" = x; then
24941 as_myself=$0
24943 if test ! -f "$as_myself"; then
24944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24945 { (exit 1); exit 1; }
24948 # Work around bugs in pre-3.0 UWIN ksh.
24949 for as_var in ENV MAIL MAILPATH
24950 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24951 done
24952 PS1='$ '
24953 PS2='> '
24954 PS4='+ '
24956 # NLS nuisances.
24957 LC_ALL=C
24958 export LC_ALL
24959 LANGUAGE=C
24960 export LANGUAGE
24962 # Required to use basename.
24963 if expr a : '\(a\)' >/dev/null 2>&1 &&
24964 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24965 as_expr=expr
24966 else
24967 as_expr=false
24970 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24971 as_basename=basename
24972 else
24973 as_basename=false
24977 # Name of the executable.
24978 as_me=`$as_basename -- "$0" ||
24979 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24980 X"$0" : 'X\(//\)$' \| \
24981 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24982 $as_echo X/"$0" |
24983 sed '/^.*\/\([^/][^/]*\)\/*$/{
24984 s//\1/
24987 /^X\/\(\/\/\)$/{
24988 s//\1/
24991 /^X\/\(\/\).*/{
24992 s//\1/
24995 s/.*/./; q'`
24997 # CDPATH.
24998 $as_unset CDPATH
25002 as_lineno_1=$LINENO
25003 as_lineno_2=$LINENO
25004 test "x$as_lineno_1" != "x$as_lineno_2" &&
25005 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25007 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25008 # uniformly replaced by the line number. The first 'sed' inserts a
25009 # line-number line after each line using $LINENO; the second 'sed'
25010 # does the real work. The second script uses 'N' to pair each
25011 # line-number line with the line containing $LINENO, and appends
25012 # trailing '-' during substitution so that $LINENO is not a special
25013 # case at line end.
25014 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25015 # scripts with optimization help from Paolo Bonzini. Blame Lee
25016 # E. McMahon (1931-1989) for sed's syntax. :-)
25017 sed -n '
25019 /[$]LINENO/=
25020 ' <$as_myself |
25021 sed '
25022 s/[$]LINENO.*/&-/
25023 t lineno
25025 :lineno
25027 :loop
25028 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25029 t loop
25030 s/-\n.*//
25031 ' >$as_me.lineno &&
25032 chmod +x "$as_me.lineno" ||
25033 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25034 { (exit 1); exit 1; }; }
25036 # Don't try to exec as it changes $[0], causing all sort of problems
25037 # (the dirname of $[0] is not the place where we might find the
25038 # original and so on. Autoconf is especially sensitive to this).
25039 . "./$as_me.lineno"
25040 # Exit status is that of the last command.
25041 exit
25045 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25046 as_dirname=dirname
25047 else
25048 as_dirname=false
25051 ECHO_C= ECHO_N= ECHO_T=
25052 case `echo -n x` in
25053 -n*)
25054 case `echo 'x\c'` in
25055 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25056 *) ECHO_C='\c';;
25057 esac;;
25059 ECHO_N='-n';;
25060 esac
25061 if expr a : '\(a\)' >/dev/null 2>&1 &&
25062 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25063 as_expr=expr
25064 else
25065 as_expr=false
25068 rm -f conf$$ conf$$.exe conf$$.file
25069 if test -d conf$$.dir; then
25070 rm -f conf$$.dir/conf$$.file
25071 else
25072 rm -f conf$$.dir
25073 mkdir conf$$.dir 2>/dev/null
25075 if (echo >conf$$.file) 2>/dev/null; then
25076 if ln -s conf$$.file conf$$ 2>/dev/null; then
25077 as_ln_s='ln -s'
25078 # ... but there are two gotchas:
25079 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25080 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25081 # In both cases, we have to default to `cp -p'.
25082 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25083 as_ln_s='cp -p'
25084 elif ln conf$$.file conf$$ 2>/dev/null; then
25085 as_ln_s=ln
25086 else
25087 as_ln_s='cp -p'
25089 else
25090 as_ln_s='cp -p'
25092 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25093 rmdir conf$$.dir 2>/dev/null
25095 if mkdir -p . 2>/dev/null; then
25096 as_mkdir_p=:
25097 else
25098 test -d ./-p && rmdir ./-p
25099 as_mkdir_p=false
25102 if test -x / >/dev/null 2>&1; then
25103 as_test_x='test -x'
25104 else
25105 if ls -dL / >/dev/null 2>&1; then
25106 as_ls_L_option=L
25107 else
25108 as_ls_L_option=
25110 as_test_x='
25111 eval sh -c '\''
25112 if test -d "$1"; then
25113 test -d "$1/.";
25114 else
25115 case $1 in
25116 -*)set "./$1";;
25117 esac;
25118 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25119 ???[sx]*):;;*)false;;esac;fi
25120 '\'' sh
25123 as_executable_p=$as_test_x
25125 # Sed expression to map a string onto a valid CPP name.
25126 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25128 # Sed expression to map a string onto a valid variable name.
25129 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25132 exec 6>&1
25134 # Save the log message, to keep $[0] and so on meaningful, and to
25135 # report actual input values of CONFIG_FILES etc. instead of their
25136 # values after options handling.
25137 ac_log="
25138 This file was extended by $as_me, which was
25139 generated by GNU Autoconf 2.63. Invocation command line was
25141 CONFIG_FILES = $CONFIG_FILES
25142 CONFIG_HEADERS = $CONFIG_HEADERS
25143 CONFIG_LINKS = $CONFIG_LINKS
25144 CONFIG_COMMANDS = $CONFIG_COMMANDS
25145 $ $0 $@
25147 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25150 _ACEOF
25152 case $ac_config_files in *"
25153 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25154 esac
25156 case $ac_config_headers in *"
25157 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25158 esac
25161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25162 # Files that config.status was made for.
25163 config_files="$ac_config_files"
25164 config_headers="$ac_config_headers"
25165 config_commands="$ac_config_commands"
25167 _ACEOF
25169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25170 ac_cs_usage="\
25171 \`$as_me' instantiates files from templates according to the
25172 current configuration.
25174 Usage: $0 [OPTION]... [FILE]...
25176 -h, --help print this help, then exit
25177 -V, --version print version number and configuration settings, then exit
25178 -q, --quiet, --silent
25179 do not print progress messages
25180 -d, --debug don't remove temporary files
25181 --recheck update $as_me by reconfiguring in the same conditions
25182 --file=FILE[:TEMPLATE]
25183 instantiate the configuration file FILE
25184 --header=FILE[:TEMPLATE]
25185 instantiate the configuration header FILE
25187 Configuration files:
25188 $config_files
25190 Configuration headers:
25191 $config_headers
25193 Configuration commands:
25194 $config_commands
25196 Report bugs to <bug-autoconf@gnu.org>."
25198 _ACEOF
25199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25200 ac_cs_version="\\
25201 config.status
25202 configured by $0, generated by GNU Autoconf 2.63,
25203 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25205 Copyright (C) 2008 Free Software Foundation, Inc.
25206 This config.status script is free software; the Free Software Foundation
25207 gives unlimited permission to copy, distribute and modify it."
25209 ac_pwd='$ac_pwd'
25210 srcdir='$srcdir'
25211 INSTALL='$INSTALL'
25212 MKDIR_P='$MKDIR_P'
25213 AWK='$AWK'
25214 test -n "\$AWK" || AWK=awk
25215 _ACEOF
25217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25218 # The default lists apply if the user does not specify any file.
25219 ac_need_defaults=:
25220 while test $# != 0
25222 case $1 in
25223 --*=*)
25224 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25225 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25226 ac_shift=:
25229 ac_option=$1
25230 ac_optarg=$2
25231 ac_shift=shift
25233 esac
25235 case $ac_option in
25236 # Handling of the options.
25237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25238 ac_cs_recheck=: ;;
25239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25240 $as_echo "$ac_cs_version"; exit ;;
25241 --debug | --debu | --deb | --de | --d | -d )
25242 debug=: ;;
25243 --file | --fil | --fi | --f )
25244 $ac_shift
25245 case $ac_optarg in
25246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25247 esac
25248 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25249 ac_need_defaults=false;;
25250 --header | --heade | --head | --hea )
25251 $ac_shift
25252 case $ac_optarg in
25253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25254 esac
25255 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25256 ac_need_defaults=false;;
25257 --he | --h)
25258 # Conflict between --help and --header
25259 { $as_echo "$as_me: error: ambiguous option: $1
25260 Try \`$0 --help' for more information." >&2
25261 { (exit 1); exit 1; }; };;
25262 --help | --hel | -h )
25263 $as_echo "$ac_cs_usage"; exit ;;
25264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25265 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25266 ac_cs_silent=: ;;
25268 # This is an error.
25269 -*) { $as_echo "$as_me: error: unrecognized option: $1
25270 Try \`$0 --help' for more information." >&2
25271 { (exit 1); exit 1; }; } ;;
25273 *) ac_config_targets="$ac_config_targets $1"
25274 ac_need_defaults=false ;;
25276 esac
25277 shift
25278 done
25280 ac_configure_extra_args=
25282 if $ac_cs_silent; then
25283 exec 6>/dev/null
25284 ac_configure_extra_args="$ac_configure_extra_args --silent"
25287 _ACEOF
25288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25289 if \$ac_cs_recheck; then
25290 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25291 shift
25292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25293 CONFIG_SHELL='$SHELL'
25294 export CONFIG_SHELL
25295 exec "\$@"
25298 _ACEOF
25299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25300 exec 5>>config.log
25302 echo
25303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25304 ## Running $as_me. ##
25305 _ASBOX
25306 $as_echo "$ac_log"
25307 } >&5
25309 _ACEOF
25310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25312 # INIT-COMMANDS
25314 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25316 _ACEOF
25318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25320 # Handling of arguments.
25321 for ac_config_target in $ac_config_targets
25323 case $ac_config_target in
25324 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25325 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25326 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25327 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
25328 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
25330 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25331 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25332 { (exit 1); exit 1; }; };;
25333 esac
25334 done
25337 # If the user did not use the arguments to specify the items to instantiate,
25338 # then the envvar interface is used. Set only those that are not.
25339 # We use the long form for the default assignment because of an extremely
25340 # bizarre bug on SunOS 4.1.3.
25341 if $ac_need_defaults; then
25342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25343 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25347 # Have a temporary directory for convenience. Make it in the build tree
25348 # simply because there is no reason against having it here, and in addition,
25349 # creating and moving files from /tmp can sometimes cause problems.
25350 # Hook for its removal unless debugging.
25351 # Note that there is a small window in which the directory will not be cleaned:
25352 # after its creation but before its name has been assigned to `$tmp'.
25353 $debug ||
25355 tmp=
25356 trap 'exit_status=$?
25357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25359 trap '{ (exit 1); exit 1; }' 1 2 13 15
25361 # Create a (secure) tmp directory for tmp files.
25364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25365 test -n "$tmp" && test -d "$tmp"
25366 } ||
25368 tmp=./conf$$-$RANDOM
25369 (umask 077 && mkdir "$tmp")
25370 } ||
25372 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25373 { (exit 1); exit 1; }
25376 # Set up the scripts for CONFIG_FILES section.
25377 # No need to generate them if there are no CONFIG_FILES.
25378 # This happens for instance with `./config.status config.h'.
25379 if test -n "$CONFIG_FILES"; then
25382 ac_cr=' '
25383 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25384 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25385 ac_cs_awk_cr='\\r'
25386 else
25387 ac_cs_awk_cr=$ac_cr
25390 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25391 _ACEOF
25395 echo "cat >conf$$subs.awk <<_ACEOF" &&
25396 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25397 echo "_ACEOF"
25398 } >conf$$subs.sh ||
25399 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25400 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25401 { (exit 1); exit 1; }; }
25402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25403 ac_delim='%!_!# '
25404 for ac_last_try in false false false false false :; do
25405 . ./conf$$subs.sh ||
25406 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25407 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25408 { (exit 1); exit 1; }; }
25410 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25411 if test $ac_delim_n = $ac_delim_num; then
25412 break
25413 elif $ac_last_try; then
25414 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25415 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25416 { (exit 1); exit 1; }; }
25417 else
25418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25420 done
25421 rm -f conf$$subs.sh
25423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25424 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25425 _ACEOF
25426 sed -n '
25428 s/^/S["/; s/!.*/"]=/
25431 s/^[^!]*!//
25432 :repl
25433 t repl
25434 s/'"$ac_delim"'$//
25435 t delim
25438 s/\(.\{148\}\).*/\1/
25439 t more1
25440 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25443 b repl
25444 :more1
25445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25448 s/.\{148\}//
25449 t nl
25450 :delim
25452 s/\(.\{148\}\).*/\1/
25453 t more2
25454 s/["\\]/\\&/g; s/^/"/; s/$/"/
25457 :more2
25458 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25461 s/.\{148\}//
25462 t delim
25463 ' <conf$$subs.awk | sed '
25464 /^[^""]/{
25466 s/\n//
25468 ' >>$CONFIG_STATUS || ac_write_fail=1
25469 rm -f conf$$subs.awk
25470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25471 _ACAWK
25472 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25473 for (key in S) S_is_set[key] = 1
25474 FS = "\a"
25478 line = $ 0
25479 nfields = split(line, field, "@")
25480 substed = 0
25481 len = length(field[1])
25482 for (i = 2; i < nfields; i++) {
25483 key = field[i]
25484 keylen = length(key)
25485 if (S_is_set[key]) {
25486 value = S[key]
25487 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25488 len += length(value) + length(field[++i])
25489 substed = 1
25490 } else
25491 len += 1 + keylen
25494 print line
25497 _ACAWK
25498 _ACEOF
25499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25500 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25501 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25502 else
25504 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25505 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25506 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
25507 { (exit 1); exit 1; }; }
25508 _ACEOF
25510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25512 # trailing colons and then remove the whole line if VPATH becomes empty
25513 # (actually we leave an empty line to preserve line numbers).
25514 if test "x$srcdir" = x.; then
25515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25516 s/:*\$(srcdir):*/:/
25517 s/:*\${srcdir}:*/:/
25518 s/:*@srcdir@:*/:/
25519 s/^\([^=]*=[ ]*\):*/\1/
25520 s/:*$//
25521 s/^[^=]*=[ ]*$//
25525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25526 fi # test -n "$CONFIG_FILES"
25528 # Set up the scripts for CONFIG_HEADERS section.
25529 # No need to generate them if there are no CONFIG_HEADERS.
25530 # This happens for instance with `./config.status Makefile'.
25531 if test -n "$CONFIG_HEADERS"; then
25532 cat >"$tmp/defines.awk" <<\_ACAWK ||
25533 BEGIN {
25534 _ACEOF
25536 # Transform confdefs.h into an awk script `defines.awk', embedded as
25537 # here-document in config.status, that substitutes the proper values into
25538 # config.h.in to produce config.h.
25540 # Create a delimiter string that does not exist in confdefs.h, to ease
25541 # handling of long lines.
25542 ac_delim='%!_!# '
25543 for ac_last_try in false false :; do
25544 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25545 if test -z "$ac_t"; then
25546 break
25547 elif $ac_last_try; then
25548 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25549 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25550 { (exit 1); exit 1; }; }
25551 else
25552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25554 done
25556 # For the awk script, D is an array of macro values keyed by name,
25557 # likewise P contains macro parameters if any. Preserve backslash
25558 # newline sequences.
25560 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25561 sed -n '
25562 s/.\{148\}/&'"$ac_delim"'/g
25563 t rset
25564 :rset
25565 s/^[ ]*#[ ]*define[ ][ ]*/ /
25566 t def
25568 :def
25569 s/\\$//
25570 t bsnl
25571 s/["\\]/\\&/g
25572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25573 D["\1"]=" \3"/p
25574 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25576 :bsnl
25577 s/["\\]/\\&/g
25578 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25579 D["\1"]=" \3\\\\\\n"\\/p
25580 t cont
25581 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25582 t cont
25584 :cont
25586 s/.\{148\}/&'"$ac_delim"'/g
25587 t clear
25588 :clear
25589 s/\\$//
25590 t bsnlc
25591 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25593 :bsnlc
25594 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25595 b cont
25596 ' <confdefs.h | sed '
25597 s/'"$ac_delim"'/"\\\
25598 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25601 for (key in D) D_is_set[key] = 1
25602 FS = "\a"
25604 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25605 line = \$ 0
25606 split(line, arg, " ")
25607 if (arg[1] == "#") {
25608 defundef = arg[2]
25609 mac1 = arg[3]
25610 } else {
25611 defundef = substr(arg[1], 2)
25612 mac1 = arg[2]
25614 split(mac1, mac2, "(") #)
25615 macro = mac2[1]
25616 prefix = substr(line, 1, index(line, defundef) - 1)
25617 if (D_is_set[macro]) {
25618 # Preserve the white space surrounding the "#".
25619 print prefix "define", macro P[macro] D[macro]
25620 next
25621 } else {
25622 # Replace #undef with comments. This is necessary, for example,
25623 # in the case of _POSIX_SOURCE, which is predefined and required
25624 # on some systems where configure will not decide to define it.
25625 if (defundef == "undef") {
25626 print "/*", prefix defundef, macro, "*/"
25627 next
25631 { print }
25632 _ACAWK
25633 _ACEOF
25634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25635 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25636 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25637 { (exit 1); exit 1; }; }
25638 fi # test -n "$CONFIG_HEADERS"
25641 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25642 shift
25643 for ac_tag
25645 case $ac_tag in
25646 :[FHLC]) ac_mode=$ac_tag; continue;;
25647 esac
25648 case $ac_mode$ac_tag in
25649 :[FHL]*:*);;
25650 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25651 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25652 { (exit 1); exit 1; }; };;
25653 :[FH]-) ac_tag=-:-;;
25654 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25655 esac
25656 ac_save_IFS=$IFS
25657 IFS=:
25658 set x $ac_tag
25659 IFS=$ac_save_IFS
25660 shift
25661 ac_file=$1
25662 shift
25664 case $ac_mode in
25665 :L) ac_source=$1;;
25666 :[FH])
25667 ac_file_inputs=
25668 for ac_f
25670 case $ac_f in
25671 -) ac_f="$tmp/stdin";;
25672 *) # Look for the file first in the build tree, then in the source tree
25673 # (if the path is not absolute). The absolute path cannot be DOS-style,
25674 # because $ac_f cannot contain `:'.
25675 test -f "$ac_f" ||
25676 case $ac_f in
25677 [\\/$]*) false;;
25678 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25679 esac ||
25680 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25681 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25682 { (exit 1); exit 1; }; };;
25683 esac
25684 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25685 ac_file_inputs="$ac_file_inputs '$ac_f'"
25686 done
25688 # Let's still pretend it is `configure' which instantiates (i.e., don't
25689 # use $as_me), people would be surprised to read:
25690 # /* config.h. Generated by config.status. */
25691 configure_input='Generated from '`
25692 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25693 `' by configure.'
25694 if test x"$ac_file" != x-; then
25695 configure_input="$ac_file. $configure_input"
25696 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25697 $as_echo "$as_me: creating $ac_file" >&6;}
25699 # Neutralize special characters interpreted by sed in replacement strings.
25700 case $configure_input in #(
25701 *\&* | *\|* | *\\* )
25702 ac_sed_conf_input=`$as_echo "$configure_input" |
25703 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25704 *) ac_sed_conf_input=$configure_input;;
25705 esac
25707 case $ac_tag in
25708 *:-:* | *:-) cat >"$tmp/stdin" \
25709 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25710 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25711 { (exit 1); exit 1; }; } ;;
25712 esac
25714 esac
25716 ac_dir=`$as_dirname -- "$ac_file" ||
25717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25718 X"$ac_file" : 'X\(//\)[^/]' \| \
25719 X"$ac_file" : 'X\(//\)$' \| \
25720 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25721 $as_echo X"$ac_file" |
25722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25723 s//\1/
25726 /^X\(\/\/\)[^/].*/{
25727 s//\1/
25730 /^X\(\/\/\)$/{
25731 s//\1/
25734 /^X\(\/\).*/{
25735 s//\1/
25738 s/.*/./; q'`
25739 { as_dir="$ac_dir"
25740 case $as_dir in #(
25741 -*) as_dir=./$as_dir;;
25742 esac
25743 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25744 as_dirs=
25745 while :; do
25746 case $as_dir in #(
25747 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25748 *) as_qdir=$as_dir;;
25749 esac
25750 as_dirs="'$as_qdir' $as_dirs"
25751 as_dir=`$as_dirname -- "$as_dir" ||
25752 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25753 X"$as_dir" : 'X\(//\)[^/]' \| \
25754 X"$as_dir" : 'X\(//\)$' \| \
25755 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25756 $as_echo X"$as_dir" |
25757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25758 s//\1/
25761 /^X\(\/\/\)[^/].*/{
25762 s//\1/
25765 /^X\(\/\/\)$/{
25766 s//\1/
25769 /^X\(\/\).*/{
25770 s//\1/
25773 s/.*/./; q'`
25774 test -d "$as_dir" && break
25775 done
25776 test -z "$as_dirs" || eval "mkdir $as_dirs"
25777 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25778 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25779 { (exit 1); exit 1; }; }; }
25780 ac_builddir=.
25782 case "$ac_dir" in
25783 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25785 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25786 # A ".." for each directory in $ac_dir_suffix.
25787 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25788 case $ac_top_builddir_sub in
25789 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25790 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25791 esac ;;
25792 esac
25793 ac_abs_top_builddir=$ac_pwd
25794 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25795 # for backward compatibility:
25796 ac_top_builddir=$ac_top_build_prefix
25798 case $srcdir in
25799 .) # We are building in place.
25800 ac_srcdir=.
25801 ac_top_srcdir=$ac_top_builddir_sub
25802 ac_abs_top_srcdir=$ac_pwd ;;
25803 [\\/]* | ?:[\\/]* ) # Absolute name.
25804 ac_srcdir=$srcdir$ac_dir_suffix;
25805 ac_top_srcdir=$srcdir
25806 ac_abs_top_srcdir=$srcdir ;;
25807 *) # Relative name.
25808 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25809 ac_top_srcdir=$ac_top_build_prefix$srcdir
25810 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25811 esac
25812 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25815 case $ac_mode in
25818 # CONFIG_FILE
25821 case $INSTALL in
25822 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25823 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25824 esac
25825 ac_MKDIR_P=$MKDIR_P
25826 case $MKDIR_P in
25827 [\\/$]* | ?:[\\/]* ) ;;
25828 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25829 esac
25830 _ACEOF
25832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25833 # If the template does not know about datarootdir, expand it.
25834 # FIXME: This hack should be removed a few years after 2.60.
25835 ac_datarootdir_hack=; ac_datarootdir_seen=
25837 ac_sed_dataroot='
25838 /datarootdir/ {
25842 /@datadir@/p
25843 /@docdir@/p
25844 /@infodir@/p
25845 /@localedir@/p
25846 /@mandir@/p
25848 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25849 *datarootdir*) ac_datarootdir_seen=yes;;
25850 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25851 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25852 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25853 _ACEOF
25854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25855 ac_datarootdir_hack='
25856 s&@datadir@&$datadir&g
25857 s&@docdir@&$docdir&g
25858 s&@infodir@&$infodir&g
25859 s&@localedir@&$localedir&g
25860 s&@mandir@&$mandir&g
25861 s&\\\${datarootdir}&$datarootdir&g' ;;
25862 esac
25863 _ACEOF
25865 # Neutralize VPATH when `$srcdir' = `.'.
25866 # Shell code in configure.ac might set extrasub.
25867 # FIXME: do we really want to maintain this feature?
25868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25869 ac_sed_extra="$ac_vpsub
25870 $extrasub
25871 _ACEOF
25872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25875 s|@configure_input@|$ac_sed_conf_input|;t t
25876 s&@top_builddir@&$ac_top_builddir_sub&;t t
25877 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25878 s&@srcdir@&$ac_srcdir&;t t
25879 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25880 s&@top_srcdir@&$ac_top_srcdir&;t t
25881 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25882 s&@builddir@&$ac_builddir&;t t
25883 s&@abs_builddir@&$ac_abs_builddir&;t t
25884 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25885 s&@INSTALL@&$ac_INSTALL&;t t
25886 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25887 $ac_datarootdir_hack
25889 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25890 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25891 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25892 { (exit 1); exit 1; }; }
25894 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25895 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25897 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25898 which seems to be undefined. Please make sure it is defined." >&5
25899 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25900 which seems to be undefined. Please make sure it is defined." >&2;}
25902 rm -f "$tmp/stdin"
25903 case $ac_file in
25904 -) cat "$tmp/out" && rm -f "$tmp/out";;
25905 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25906 esac \
25907 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25908 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25909 { (exit 1); exit 1; }; }
25913 # CONFIG_HEADER
25915 if test x"$ac_file" != x-; then
25917 $as_echo "/* $configure_input */" \
25918 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25919 } >"$tmp/config.h" \
25920 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25921 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25922 { (exit 1); exit 1; }; }
25923 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25924 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25925 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25926 else
25927 rm -f "$ac_file"
25928 mv "$tmp/config.h" "$ac_file" \
25929 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25930 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25931 { (exit 1); exit 1; }; }
25933 else
25934 $as_echo "/* $configure_input */" \
25935 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25936 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25937 $as_echo "$as_me: error: could not create -" >&2;}
25938 { (exit 1); exit 1; }; }
25940 # Compute "$ac_file"'s index in $config_headers.
25941 _am_arg="$ac_file"
25942 _am_stamp_count=1
25943 for _am_header in $config_headers :; do
25944 case $_am_header in
25945 $_am_arg | $_am_arg:* )
25946 break ;;
25948 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25949 esac
25950 done
25951 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25952 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25953 X"$_am_arg" : 'X\(//\)[^/]' \| \
25954 X"$_am_arg" : 'X\(//\)$' \| \
25955 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25956 $as_echo X"$_am_arg" |
25957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25958 s//\1/
25961 /^X\(\/\/\)[^/].*/{
25962 s//\1/
25965 /^X\(\/\/\)$/{
25966 s//\1/
25969 /^X\(\/\).*/{
25970 s//\1/
25973 s/.*/./; q'`/stamp-h$_am_stamp_count
25976 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25977 $as_echo "$as_me: executing $ac_file commands" >&6;}
25979 esac
25982 case $ac_file$ac_mode in
25983 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25984 # Strip MF so we end up with the name of the file.
25985 mf=`echo "$mf" | sed -e 's/:.*$//'`
25986 # Check whether this is an Automake generated Makefile or not.
25987 # We used to match only the files named `Makefile.in', but
25988 # some people rename them; so instead we look at the file content.
25989 # Grep'ing the first line is not enough: some people post-process
25990 # each Makefile.in and add a new line on top of each file to say so.
25991 # Grep'ing the whole file is not good either: AIX grep has a line
25992 # limit of 2048, but all sed's we know have understand at least 4000.
25993 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25994 dirpart=`$as_dirname -- "$mf" ||
25995 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25996 X"$mf" : 'X\(//\)[^/]' \| \
25997 X"$mf" : 'X\(//\)$' \| \
25998 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25999 $as_echo X"$mf" |
26000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26001 s//\1/
26004 /^X\(\/\/\)[^/].*/{
26005 s//\1/
26008 /^X\(\/\/\)$/{
26009 s//\1/
26012 /^X\(\/\).*/{
26013 s//\1/
26016 s/.*/./; q'`
26017 else
26018 continue
26020 # Extract the definition of DEPDIR, am__include, and am__quote
26021 # from the Makefile without running `make'.
26022 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26023 test -z "$DEPDIR" && continue
26024 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26025 test -z "am__include" && continue
26026 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26027 # When using ansi2knr, U may be empty or an underscore; expand it
26028 U=`sed -n 's/^U = //p' < "$mf"`
26029 # Find all dependency output files, they are included files with
26030 # $(DEPDIR) in their names. We invoke sed twice because it is the
26031 # simplest approach to changing $(DEPDIR) to its actual value in the
26032 # expansion.
26033 for file in `sed -n "
26034 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26035 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26036 # Make sure the directory exists.
26037 test -f "$dirpart/$file" && continue
26038 fdir=`$as_dirname -- "$file" ||
26039 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26040 X"$file" : 'X\(//\)[^/]' \| \
26041 X"$file" : 'X\(//\)$' \| \
26042 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26043 $as_echo X"$file" |
26044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26045 s//\1/
26048 /^X\(\/\/\)[^/].*/{
26049 s//\1/
26052 /^X\(\/\/\)$/{
26053 s//\1/
26056 /^X\(\/\).*/{
26057 s//\1/
26060 s/.*/./; q'`
26061 { as_dir=$dirpart/$fdir
26062 case $as_dir in #(
26063 -*) as_dir=./$as_dir;;
26064 esac
26065 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26066 as_dirs=
26067 while :; do
26068 case $as_dir in #(
26069 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26070 *) as_qdir=$as_dir;;
26071 esac
26072 as_dirs="'$as_qdir' $as_dirs"
26073 as_dir=`$as_dirname -- "$as_dir" ||
26074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26075 X"$as_dir" : 'X\(//\)[^/]' \| \
26076 X"$as_dir" : 'X\(//\)$' \| \
26077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26078 $as_echo X"$as_dir" |
26079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26080 s//\1/
26083 /^X\(\/\/\)[^/].*/{
26084 s//\1/
26087 /^X\(\/\/\)$/{
26088 s//\1/
26091 /^X\(\/\).*/{
26092 s//\1/
26095 s/.*/./; q'`
26096 test -d "$as_dir" && break
26097 done
26098 test -z "$as_dirs" || eval "mkdir $as_dirs"
26099 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26100 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26101 { (exit 1); exit 1; }; }; }
26102 # echo "creating $dirpart/$file"
26103 echo '# dummy' > "$dirpart/$file"
26104 done
26105 done
26108 esac
26109 done # for ac_tag
26112 { (exit 0); exit 0; }
26113 _ACEOF
26114 chmod +x $CONFIG_STATUS
26115 ac_clean_files=$ac_clean_files_save
26117 test $ac_write_fail = 0 ||
26118 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26119 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26120 { (exit 1); exit 1; }; }
26123 # configure is writing to config.log, and then calls config.status.
26124 # config.status does its own redirection, appending to config.log.
26125 # Unfortunately, on DOS this fails, as config.log is still kept open
26126 # by configure, so config.status won't be able to write to it; its
26127 # output is simply discarded. So we exec the FD to /dev/null,
26128 # effectively closing config.log, so it can be properly (re)opened and
26129 # appended to by config.status. When coming back to configure, we
26130 # need to make the FD available again.
26131 if test "$no_create" != yes; then
26132 ac_cs_success=:
26133 ac_config_status_args=
26134 test "$silent" = yes &&
26135 ac_config_status_args="$ac_config_status_args --quiet"
26136 exec 5>/dev/null
26137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26138 exec 5>>config.log
26139 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26140 # would make configure fail if this is the last instruction.
26141 $ac_cs_success || { (exit 1); exit 1; }
26143 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26144 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26145 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}