commenting out parameters which are not supported in 2.0 release
[csql.git] / configure
bloba0deaf4c3054862e67dbea2c89956edfa320bd41
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597 echo_test_string="`eval $cmd`" &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 ac_unique_file="configure.in"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
829 CXXFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CXX
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CXXDEPMODE
842 am__fastdepCXX_TRUE
843 am__fastdepCXX_FALSE
844 build
845 build_cpu
846 build_vendor
847 build_os
848 host
849 host_cpu
850 host_vendor
851 host_os
853 CFLAGS
854 ac_ct_CC
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 GREP
859 EGREP
860 LN_S
861 ECHO
863 RANLIB
865 CXXCPP
867 FFLAGS
868 ac_ct_F77
869 LIBTOOL
870 YACC
871 YFLAGS
873 LEX_OUTPUT_ROOT
874 LEXLIB
875 LIBOBJS
876 LTLIBOBJS'
877 ac_subst_files=''
878 ac_precious_vars='build_alias
879 host_alias
880 target_alias
882 CXXFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
888 CFLAGS
890 CXXCPP
892 FFLAGS
893 YACC
894 YFLAGS'
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
943 ac_prev=
944 ac_dashdash=
945 for ac_option
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
950 ac_prev=
951 continue
954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
963 ac_dashdash=yes ;;
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
982 --config-cache | -C)
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1213 -with-* | --with-*)
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271 esac
1272 done
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 # Be sure to have absolute directory names.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1293 done
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
1337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366 { (exit 1); exit 1; }; }
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1452 cat <<\_ACEOF
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
1465 if test -n "$ac_init_help"; then
1467 cat <<\_ACEOF
1469 Optional Features:
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --disable-dependency-tracking speeds up one-time build
1473 --enable-dependency-tracking do not reject slow dependency extractors
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-tags[=TAGS] include additional configurations [automatic]
1488 Some influential environment variables:
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1500 F77 Fortran 77 compiler command
1501 FFLAGS Fortran 77 compiler flags
1502 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1503 the first program found out of: `bison -y', `byacc', `yacc'.
1504 YFLAGS The list of arguments that will be passed by default to $YACC.
1505 This script will default YFLAGS to the empty string to avoid a
1506 default value of `-d' given by some make applications.
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1511 _ACEOF
1512 ac_status=$?
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" || continue
1519 ac_builddir=.
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 configure
1572 generated by GNU Autoconf 2.61
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579 exit
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1585 It was created by $as_me, which was
1586 generated by GNU Autoconf 2.61. Invocation command line was
1588 $ $0 $@
1590 _ACEOF
1591 exec 5>>config.log
1593 cat <<_ASUNAME
1594 ## --------- ##
1595 ## Platform. ##
1596 ## --------- ##
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1607 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1608 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1611 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1612 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1613 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615 _ASUNAME
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 echo "PATH: $as_dir"
1623 done
1624 IFS=$as_save_IFS
1626 } >&5
1628 cat >&5 <<_ACEOF
1631 ## ----------- ##
1632 ## Core tests. ##
1633 ## ----------- ##
1635 _ACEOF
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_configure_args=
1644 ac_configure_args0=
1645 ac_configure_args1=
1646 ac_must_keep_next=false
1647 for ac_pass in 1 2
1649 for ac_arg
1651 case $ac_arg in
1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654 | -silent | --silent | --silen | --sile | --sil)
1655 continue ;;
1656 *\'*)
1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658 esac
1659 case $ac_pass in
1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663 if test $ac_must_keep_next = true; then
1664 ac_must_keep_next=false # Got value, back to normal.
1665 else
1666 case $ac_arg in
1667 *=* | --config-cache | -C | -disable-* | --disable-* \
1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670 | -with-* | --with-* | -without-* | --without-* | --x)
1671 case "$ac_configure_args0 " in
1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673 esac
1675 -* ) ac_must_keep_next=true ;;
1676 esac
1678 ac_configure_args="$ac_configure_args '$ac_arg'"
1680 esac
1681 done
1682 done
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log. We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692 # Save into config.log some information that might help in debugging.
1694 echo
1696 cat <<\_ASBOX
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1700 _ASBOX
1701 echo
1702 # The following way of writing the cache mishandles newlines in values,
1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705 eval ac_val=\$$ac_var
1706 case $ac_val in #(
1707 *${as_nl}*)
1708 case $ac_var in #(
1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711 esac
1712 case $ac_var in #(
1713 _ | IFS | as_nl) ;; #(
1714 *) $as_unset $ac_var ;;
1715 esac ;;
1716 esac
1717 done
1718 (set) 2>&1 |
1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720 *${as_nl}ac_space=\ *)
1721 sed -n \
1722 "s/'\''/'\''\\\\'\'''\''/g;
1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724 ;; #(
1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728 esac |
1729 sort
1731 echo
1733 cat <<\_ASBOX
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1737 _ASBOX
1738 echo
1739 for ac_var in $ac_subst_vars
1741 eval ac_val=\$$ac_var
1742 case $ac_val in
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 esac
1745 echo "$ac_var='\''$ac_val'\''"
1746 done | sort
1747 echo
1749 if test -n "$ac_subst_files"; then
1750 cat <<\_ASBOX
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1754 _ASBOX
1755 echo
1756 for ac_var in $ac_subst_files
1758 eval ac_val=\$$ac_var
1759 case $ac_val in
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 esac
1762 echo "$ac_var='\''$ac_val'\''"
1763 done | sort
1764 echo
1767 if test -s confdefs.h; then
1768 cat <<\_ASBOX
1769 ## ----------- ##
1770 ## confdefs.h. ##
1771 ## ----------- ##
1772 _ASBOX
1773 echo
1774 cat confdefs.h
1775 echo
1777 test "$ac_signal" != 0 &&
1778 echo "$as_me: caught signal $ac_signal"
1779 echo "$as_me: exit $exit_status"
1780 } >&5
1781 rm -f core *.core core.conftest.* &&
1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783 exit $exit_status
1785 for ac_signal in 1 2 13 15; do
1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 done
1788 ac_signal=0
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1793 # Predefined preprocessor variables.
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 _ACEOF
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 _ACEOF
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823 set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 else
1827 set x "$ac_default_prefix/share/config.site" \
1828 "$ac_default_prefix/etc/config.site"
1830 shift
1831 for ac_site_file
1833 if test -r "$ac_site_file"; then
1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1837 . "$ac_site_file"
1839 done
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 echo "$as_me: loading cache $cache_file" >&6;}
1847 case $cache_file in
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1850 esac
1852 else
1853 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 echo "$as_me: creating cache $cache_file" >&6;}
1855 >$cache_file
1858 # Check that the precious variables saved in the cache have kept the same
1859 # value.
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1867 set,)
1868 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1871 ,set)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,);;
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1881 echo "$as_me: former value: $ac_old_val" >&2;}
1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1883 echo "$as_me: current value: $ac_new_val" >&2;}
1884 ac_cache_corrupted=:
1885 fi;;
1886 esac
1887 # Pass precious variables to config.status.
1888 if test "$ac_new_set" = set; then
1889 case $ac_new_val in
1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 *) ac_arg=$ac_var=$ac_new_val ;;
1892 esac
1893 case " $ac_configure_args " in
1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 esac
1898 done
1899 if $ac_cache_corrupted; then
1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904 { (exit 1); exit 1; }; }
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 ac_config_headers="$ac_config_headers config.h"
1933 am__api_version="1.9"
1934 ac_aux_dir=
1935 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1949 done
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965 # Find a good install program. We prefer a C program (faster),
1966 # so one script is as good as another. But avoid the broken or
1967 # incompatible versions:
1968 # SysV /etc/install, /usr/sbin/install
1969 # SunOS /usr/etc/install
1970 # IRIX /sbin/install
1971 # AIX /bin/install
1972 # AmigaOS /C/install, which installs bootblocks on floppy discs
1973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1976 # OS/2's system install, which has a completely different semantic
1977 # ./install, which can be erroneously created by make from ./install.sh.
1978 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1979 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1980 if test -z "$INSTALL"; then
1981 if test "${ac_cv_path_install+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 # Account for people who put trailing slashes in PATH elements.
1990 case $as_dir/ in
1991 ./ | .// | /cC/* | \
1992 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1993 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1994 /usr/ucb/* ) ;;
1996 # OSF1 and SCO ODT 3.0 have their own names for install.
1997 # Don't use installbsd from OSF since it installs stuff as root
1998 # by default.
1999 for ac_prog in ginstall scoinst install; do
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2002 if test $ac_prog = install &&
2003 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004 # AIX install. It has an incompatible calling convention.
2006 elif test $ac_prog = install &&
2007 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008 # program-specific install script used by HP pwplus--don't use.
2010 else
2011 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2012 break 3
2015 done
2016 done
2018 esac
2019 done
2020 IFS=$as_save_IFS
2024 if test "${ac_cv_path_install+set}" = set; then
2025 INSTALL=$ac_cv_path_install
2026 else
2027 # As a last resort, use the slow shell script. Don't cache a
2028 # value for INSTALL within a source directory, because that will
2029 # break other packages using the cache if that directory is
2030 # removed, or if the value is a relative name.
2031 INSTALL=$ac_install_sh
2034 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2035 echo "${ECHO_T}$INSTALL" >&6; }
2037 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2038 # It thinks the first close brace ends the variable substitution.
2039 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2041 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2043 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2045 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2046 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2047 # Just in case
2048 sleep 1
2049 echo timestamp > conftest.file
2050 # Do `set' in a subshell so we don't clobber the current shell's
2051 # arguments. Must try -L first in case configure is actually a
2052 # symlink; some systems play weird games with the mod time of symlinks
2053 # (eg FreeBSD returns the mod time of the symlink's containing
2054 # directory).
2055 if (
2056 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2057 if test "$*" = "X"; then
2058 # -L didn't work.
2059 set X `ls -t $srcdir/configure conftest.file`
2061 rm -f conftest.file
2062 if test "$*" != "X $srcdir/configure conftest.file" \
2063 && test "$*" != "X conftest.file $srcdir/configure"; then
2065 # If neither matched, then we have a broken ls. This can happen
2066 # if, for instance, CONFIG_SHELL is bash and it inherits a
2067 # broken ls alias from the environment. This has actually
2068 # happened. Such a system could not be considered "sane".
2069 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2070 alias in your environment" >&5
2071 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2072 alias in your environment" >&2;}
2073 { (exit 1); exit 1; }; }
2076 test "$2" = conftest.file
2078 then
2079 # Ok.
2081 else
2082 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2083 Check your system clock" >&5
2084 echo "$as_me: error: newly created file is older than distributed files!
2085 Check your system clock" >&2;}
2086 { (exit 1); exit 1; }; }
2088 { echo "$as_me:$LINENO: result: yes" >&5
2089 echo "${ECHO_T}yes" >&6; }
2090 test "$program_prefix" != NONE &&
2091 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2092 # Use a double $ so make ignores it.
2093 test "$program_suffix" != NONE &&
2094 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2095 # Double any \ or $. echo might interpret backslashes.
2096 # By default was `s,x,x', remove it if useless.
2097 cat <<\_ACEOF >conftest.sed
2098 s/[\\$]/&&/g;s/;s,x,x,$//
2099 _ACEOF
2100 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2101 rm -f conftest.sed
2103 # expand $ac_aux_dir to an absolute path
2104 am_aux_dir=`cd $ac_aux_dir && pwd`
2106 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2107 # Use eval to expand $SHELL
2108 if eval "$MISSING --run true"; then
2109 am_missing_run="$MISSING --run "
2110 else
2111 am_missing_run=
2112 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2113 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2116 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2117 # We used to keeping the `.' as first argument, in order to
2118 # allow $(mkdir_p) to be used without argument. As in
2119 # $(mkdir_p) $(somedir)
2120 # where $(somedir) is conditionally defined. However this is wrong
2121 # for two reasons:
2122 # 1. if the package is installed by a user who cannot write `.'
2123 # make install will fail,
2124 # 2. the above comment should most certainly read
2125 # $(mkdir_p) $(DESTDIR)$(somedir)
2126 # so it does not work when $(somedir) is undefined and
2127 # $(DESTDIR) is not.
2128 # To support the latter case, we have to write
2129 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2130 # so the `.' trick is pointless.
2131 mkdir_p='mkdir -p --'
2132 else
2133 # On NextStep and OpenStep, the `mkdir' command does not
2134 # recognize any option. It will interpret all options as
2135 # directories to create, and then abort because `.' already
2136 # exists.
2137 for d in ./-p ./--version;
2139 test -d $d && rmdir $d
2140 done
2141 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2142 if test -f "$ac_aux_dir/mkinstalldirs"; then
2143 mkdir_p='$(mkinstalldirs)'
2144 else
2145 mkdir_p='$(install_sh) -d'
2149 for ac_prog in gawk mawk nawk awk
2151 # Extract the first word of "$ac_prog", so it can be a program name with args.
2152 set dummy $ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_AWK+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 if test -n "$AWK"; then
2159 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_AWK="$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2172 done
2173 done
2174 IFS=$as_save_IFS
2178 AWK=$ac_cv_prog_AWK
2179 if test -n "$AWK"; then
2180 { echo "$as_me:$LINENO: result: $AWK" >&5
2181 echo "${ECHO_T}$AWK" >&6; }
2182 else
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2188 test -n "$AWK" && break
2189 done
2191 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2192 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2193 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2194 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197 cat >conftest.make <<\_ACEOF
2198 SHELL = /bin/sh
2199 all:
2200 @echo '@@@%%%=$(MAKE)=@@@%%%'
2201 _ACEOF
2202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2204 *@@@%%%=?*=@@@%%%*)
2205 eval ac_cv_prog_make_${ac_make}_set=yes;;
2207 eval ac_cv_prog_make_${ac_make}_set=no;;
2208 esac
2209 rm -f conftest.make
2211 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2212 { echo "$as_me:$LINENO: result: yes" >&5
2213 echo "${ECHO_T}yes" >&6; }
2214 SET_MAKE=
2215 else
2216 { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2218 SET_MAKE="MAKE=${MAKE-make}"
2221 rm -rf .tst 2>/dev/null
2222 mkdir .tst 2>/dev/null
2223 if test -d .tst; then
2224 am__leading_dot=.
2225 else
2226 am__leading_dot=_
2228 rmdir .tst 2>/dev/null
2230 # test to see if srcdir already configured
2231 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2232 test -f $srcdir/config.status; then
2233 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2234 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2235 { (exit 1); exit 1; }; }
2238 # test whether we have cygpath
2239 if test -z "$CYGPATH_W"; then
2240 if (cygpath --version) >/dev/null 2>/dev/null; then
2241 CYGPATH_W='cygpath -w'
2242 else
2243 CYGPATH_W=echo
2248 # Define the identity of the package.
2249 PACKAGE=csql
2250 VERSION=0.1
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE "$PACKAGE"
2255 _ACEOF
2258 cat >>confdefs.h <<_ACEOF
2259 #define VERSION "$VERSION"
2260 _ACEOF
2262 # Some tools Automake needs.
2264 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2267 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2270 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2273 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2276 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2278 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2280 # Installed binaries are usually stripped using `strip' when the user
2281 # run `make install-strip'. However `strip' might not be the right
2282 # tool to use in cross-compilation environments, therefore Automake
2283 # will honor the `STRIP' environment variable to overrule this program.
2284 if test "$cross_compiling" != no; then
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}strip; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_STRIP+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 if test -n "$STRIP"; then
2294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2307 done
2308 done
2309 IFS=$as_save_IFS
2313 STRIP=$ac_cv_prog_STRIP
2314 if test -n "$STRIP"; then
2315 { echo "$as_me:$LINENO: result: $STRIP" >&5
2316 echo "${ECHO_T}$STRIP" >&6; }
2317 else
2318 { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2324 if test -z "$ac_cv_prog_STRIP"; then
2325 ac_ct_STRIP=$STRIP
2326 # Extract the first word of "strip", so it can be a program name with args.
2327 set dummy strip; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 if test -n "$ac_ct_STRIP"; then
2334 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_ac_ct_STRIP="strip"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2347 done
2348 done
2349 IFS=$as_save_IFS
2353 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2354 if test -n "$ac_ct_STRIP"; then
2355 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2356 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2357 else
2358 { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2362 if test "x$ac_ct_STRIP" = x; then
2363 STRIP=":"
2364 else
2365 case $cross_compiling:$ac_tool_warned in
2366 yes:)
2367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet. If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&5
2370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2371 whose name does not start with the host triplet. If you think this
2372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2373 ac_tool_warned=yes ;;
2374 esac
2375 STRIP=$ac_ct_STRIP
2377 else
2378 STRIP="$ac_cv_prog_STRIP"
2382 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2384 # We need awk for the "check" target. The system "awk" is bad on
2385 # some platforms.
2386 # Always define AMTAR for backward compatibility.
2388 AMTAR=${AMTAR-"${am_missing_run}tar"}
2390 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2397 ac_ext=cpp
2398 ac_cpp='$CXXCPP $CPPFLAGS'
2399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2403 ac_ext=cpp
2404 ac_cpp='$CXXCPP $CPPFLAGS'
2405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2408 if test -z "$CXX"; then
2409 if test -n "$CCC"; then
2410 CXX=$CCC
2411 else
2412 if test -n "$ac_tool_prefix"; then
2413 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CXX+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$CXX"; then
2423 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2436 done
2437 done
2438 IFS=$as_save_IFS
2442 CXX=$ac_cv_prog_CXX
2443 if test -n "$CXX"; then
2444 { echo "$as_me:$LINENO: result: $CXX" >&5
2445 echo "${ECHO_T}$CXX" >&6; }
2446 else
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2452 test -n "$CXX" && break
2453 done
2455 if test -z "$CXX"; then
2456 ac_ct_CXX=$CXX
2457 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 if test -n "$ac_ct_CXX"; then
2467 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_ac_ct_CXX="$ac_prog"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2482 IFS=$as_save_IFS
2486 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2487 if test -n "$ac_ct_CXX"; then
2488 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2489 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2490 else
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2496 test -n "$ac_ct_CXX" && break
2497 done
2499 if test "x$ac_ct_CXX" = x; then
2500 CXX="g++"
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet. If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512 CXX=$ac_ct_CXX
2518 # Provide some information about the compiler.
2519 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2520 ac_compiler=`set X $ac_compile; echo $2`
2521 { (ac_try="$ac_compiler --version >&5"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compiler --version >&5") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531 { (ac_try="$ac_compiler -v >&5"
2532 case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compiler -v >&5") 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (ac_try="$ac_compiler -V >&5"
2542 case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compiler -V >&5") 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h. */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2560 main ()
2564 return 0;
2566 _ACEOF
2567 ac_clean_files_save=$ac_clean_files
2568 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2569 # Try to create an executable without -o first, disregard a.out.
2570 # It will help us diagnose broken compilers, and finding out an intuition
2571 # of exeext.
2572 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2573 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2574 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2576 # List of possible output files, starting from the most likely.
2577 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2578 # only as a last resort. b.out is created by i960 compilers.
2579 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2581 # The IRIX 6 linker writes into existing files which may not be
2582 # executable, retaining their permissions. Remove them first so a
2583 # subsequent execution test works.
2584 ac_rmfiles=
2585 for ac_file in $ac_files
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2590 esac
2591 done
2592 rm -f $ac_rmfiles
2594 if { (ac_try="$ac_link_default"
2595 case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_link_default") 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; then
2604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2605 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2606 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2607 # so that the user can short-circuit this test for compilers unknown to
2608 # Autoconf.
2609 for ac_file in $ac_files ''
2611 test -f "$ac_file" || continue
2612 case $ac_file in
2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2615 [ab].out )
2616 # We found the default executable, but exeext='' is most
2617 # certainly right.
2618 break;;
2619 *.* )
2620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2621 then :; else
2622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624 # We set ac_cv_exeext here because the later test for it is not
2625 # safe: cross compilers may not add the suffix if given an `-o'
2626 # argument, so we may need to know it at that point already.
2627 # Even if this section looks crufty: it has the advantage of
2628 # actually working.
2629 break;;
2631 break;;
2632 esac
2633 done
2634 test "$ac_cv_exeext" = no && ac_cv_exeext=
2636 else
2637 ac_file=''
2640 { echo "$as_me:$LINENO: result: $ac_file" >&5
2641 echo "${ECHO_T}$ac_file" >&6; }
2642 if test -z "$ac_file"; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2647 See \`config.log' for more details." >&5
2648 echo "$as_me: error: C++ compiler cannot create executables
2649 See \`config.log' for more details." >&2;}
2650 { (exit 77); exit 77; }; }
2653 ac_exeext=$ac_cv_exeext
2655 # Check that the compiler produces executables we can run. If not, either
2656 # the compiler is broken, or we cross compile.
2657 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2658 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2659 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2660 # If not cross compiling, check that we can run a simple program.
2661 if test "$cross_compiling" != yes; then
2662 if { ac_try='./$ac_file'
2663 { (case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_try") 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 cross_compiling=no
2673 else
2674 if test "$cross_compiling" = maybe; then
2675 cross_compiling=yes
2676 else
2677 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2678 If you meant to cross compile, use \`--host'.
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot run C++ compiled programs.
2681 If you meant to cross compile, use \`--host'.
2682 See \`config.log' for more details." >&2;}
2683 { (exit 1); exit 1; }; }
2687 { echo "$as_me:$LINENO: result: yes" >&5
2688 echo "${ECHO_T}yes" >&6; }
2690 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2691 ac_clean_files=$ac_clean_files_save
2692 # Check that the compiler produces executables we can run. If not, either
2693 # the compiler is broken, or we cross compile.
2694 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2695 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2696 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2697 echo "${ECHO_T}$cross_compiling" >&6; }
2699 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2700 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2701 if { (ac_try="$ac_link"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_link") 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; then
2711 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2712 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2713 # work properly (i.e., refer to `conftest.exe'), while it won't with
2714 # `rm'.
2715 for ac_file in conftest.exe conftest conftest.*; do
2716 test -f "$ac_file" || continue
2717 case $ac_file in
2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2719 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2720 break;;
2721 * ) break;;
2722 esac
2723 done
2724 else
2725 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2726 See \`config.log' for more details." >&5
2727 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2728 See \`config.log' for more details." >&2;}
2729 { (exit 1); exit 1; }; }
2732 rm -f conftest$ac_cv_exeext
2733 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2734 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2736 rm -f conftest.$ac_ext
2737 EXEEXT=$ac_cv_exeext
2738 ac_exeext=$EXEEXT
2739 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2740 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2741 if test "${ac_cv_objext+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2752 main ()
2756 return 0;
2758 _ACEOF
2759 rm -f conftest.o conftest.obj
2760 if { (ac_try="$ac_compile"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compile") 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; then
2770 for ac_file in conftest.o conftest.obj conftest.*; do
2771 test -f "$ac_file" || continue;
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2775 break;;
2776 esac
2777 done
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2782 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2791 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2792 echo "${ECHO_T}$ac_cv_objext" >&6; }
2793 OBJEXT=$ac_cv_objext
2794 ac_objext=$OBJEXT
2795 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2796 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2797 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2808 main ()
2810 #ifndef __GNUC__
2811 choke me
2812 #endif
2815 return 0;
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (ac_try="$ac_compile"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_compile") 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } && {
2832 test -z "$ac_cxx_werror_flag" ||
2833 test ! -s conftest.err
2834 } && test -s conftest.$ac_objext; then
2835 ac_compiler_gnu=yes
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 ac_compiler_gnu=no
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2847 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2848 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2849 GXX=`test $ac_compiler_gnu = yes && echo yes`
2850 ac_test_CXXFLAGS=${CXXFLAGS+set}
2851 ac_save_CXXFLAGS=$CXXFLAGS
2852 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2853 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_cxx_g+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2858 ac_cxx_werror_flag=yes
2859 ac_cv_prog_cxx_g=no
2860 CXXFLAGS="-g"
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2869 main ()
2873 return 0;
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_cxx_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2893 ac_cv_prog_cxx_g=yes
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 CXXFLAGS=""
2899 cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h. */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2907 main ()
2911 return 0;
2913 _ACEOF
2914 rm -f conftest.$ac_objext
2915 if { (ac_try="$ac_compile"
2916 case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compile") 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } && {
2928 test -z "$ac_cxx_werror_flag" ||
2929 test ! -s conftest.err
2930 } && test -s conftest.$ac_objext; then
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2937 CXXFLAGS="-g"
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2946 main ()
2950 return 0;
2952 _ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2955 case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } && {
2967 test -z "$ac_cxx_werror_flag" ||
2968 test ! -s conftest.err
2969 } && test -s conftest.$ac_objext; then
2970 ac_cv_prog_cxx_g=yes
2971 else
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2987 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2988 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2989 if test "$ac_test_CXXFLAGS" = set; then
2990 CXXFLAGS=$ac_save_CXXFLAGS
2991 elif test $ac_cv_prog_cxx_g = yes; then
2992 if test "$GXX" = yes; then
2993 CXXFLAGS="-g -O2"
2994 else
2995 CXXFLAGS="-g"
2997 else
2998 if test "$GXX" = yes; then
2999 CXXFLAGS="-O2"
3000 else
3001 CXXFLAGS=
3004 ac_ext=cpp
3005 ac_cpp='$CXXCPP $CPPFLAGS'
3006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3009 DEPDIR="${am__leading_dot}deps"
3011 ac_config_commands="$ac_config_commands depfiles"
3014 am_make=${MAKE-make}
3015 cat > confinc << 'END'
3016 am__doit:
3017 @echo done
3018 .PHONY: am__doit
3020 # If we don't find an include directive, just comment out the code.
3021 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3022 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3023 am__include="#"
3024 am__quote=
3025 _am_result=none
3026 # First try GNU make style include.
3027 echo "include confinc" > confmf
3028 # We grep out `Entering directory' and `Leaving directory'
3029 # messages which can occur if `w' ends up in MAKEFLAGS.
3030 # In particular we don't look at `^make:' because GNU make might
3031 # be invoked under some other name (usually "gmake"), in which
3032 # case it prints its new name instead of `make'.
3033 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3034 am__include=include
3035 am__quote=
3036 _am_result=GNU
3038 # Now try BSD make style include.
3039 if test "$am__include" = "#"; then
3040 echo '.include "confinc"' > confmf
3041 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3042 am__include=.include
3043 am__quote="\""
3044 _am_result=BSD
3049 { echo "$as_me:$LINENO: result: $_am_result" >&5
3050 echo "${ECHO_T}$_am_result" >&6; }
3051 rm -f confinc confmf
3053 # Check whether --enable-dependency-tracking was given.
3054 if test "${enable_dependency_tracking+set}" = set; then
3055 enableval=$enable_dependency_tracking;
3058 if test "x$enable_dependency_tracking" != xno; then
3059 am_depcomp="$ac_aux_dir/depcomp"
3060 AMDEPBACKSLASH='\'
3064 if test "x$enable_dependency_tracking" != xno; then
3065 AMDEP_TRUE=
3066 AMDEP_FALSE='#'
3067 else
3068 AMDEP_TRUE='#'
3069 AMDEP_FALSE=
3075 depcc="$CXX" am_compiler_list=
3077 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3078 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3079 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3083 # We make a subdir and do the tests there. Otherwise we can end up
3084 # making bogus files that we don't know about and never remove. For
3085 # instance it was reported that on HP-UX the gcc test will end up
3086 # making a dummy file named `D' -- because `-MD' means `put the output
3087 # in D'.
3088 mkdir conftest.dir
3089 # Copy depcomp to subdir because otherwise we won't find it if we're
3090 # using a relative directory.
3091 cp "$am_depcomp" conftest.dir
3092 cd conftest.dir
3093 # We will build objects and dependencies in a subdirectory because
3094 # it helps to detect inapplicable dependency modes. For instance
3095 # both Tru64's cc and ICC support -MD to output dependencies as a
3096 # side effect of compilation, but ICC will put the dependencies in
3097 # the current directory while Tru64 will put them in the object
3098 # directory.
3099 mkdir sub
3101 am_cv_CXX_dependencies_compiler_type=none
3102 if test "$am_compiler_list" = ""; then
3103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3105 for depmode in $am_compiler_list; do
3106 # Setup a source with many dependencies, because some compilers
3107 # like to wrap large dependency lists on column 80 (with \), and
3108 # we should not choose a depcomp mode which is confused by this.
3110 # We need to recreate these files for each test, as the compiler may
3111 # overwrite some of them when testing with obscure command lines.
3112 # This happens at least with the AIX C compiler.
3113 : > sub/conftest.c
3114 for i in 1 2 3 4 5 6; do
3115 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3116 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3117 # Solaris 8's {/usr,}/bin/sh.
3118 touch sub/conftst$i.h
3119 done
3120 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3122 case $depmode in
3123 nosideeffect)
3124 # after this tag, mechanisms are not by side-effect, so they'll
3125 # only be used when explicitly requested
3126 if test "x$enable_dependency_tracking" = xyes; then
3127 continue
3128 else
3129 break
3132 none) break ;;
3133 esac
3134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3135 # mode. It turns out that the SunPro C++ compiler does not properly
3136 # handle `-M -o', and we need to detect this.
3137 if depmode=$depmode \
3138 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3139 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3140 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3141 >/dev/null 2>conftest.err &&
3142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3143 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3145 # icc doesn't choke on unknown options, it will just issue warnings
3146 # or remarks (even with -Werror). So we grep stderr for any message
3147 # that says an option was ignored or not supported.
3148 # When given -MP, icc 7.0 and 7.1 complain thusly:
3149 # icc: Command line warning: ignoring option '-M'; no argument required
3150 # The diagnosis changed in icc 8.0:
3151 # icc: Command line remark: option '-MP' not supported
3152 if (grep 'ignoring option' conftest.err ||
3153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3154 am_cv_CXX_dependencies_compiler_type=$depmode
3155 break
3158 done
3160 cd ..
3161 rm -rf conftest.dir
3162 else
3163 am_cv_CXX_dependencies_compiler_type=none
3167 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3168 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3169 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3174 test "x$enable_dependency_tracking" != xno \
3175 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3176 am__fastdepCXX_TRUE=
3177 am__fastdepCXX_FALSE='#'
3178 else
3179 am__fastdepCXX_TRUE='#'
3180 am__fastdepCXX_FALSE=
3185 # Check whether --enable-shared was given.
3186 if test "${enable_shared+set}" = set; then
3187 enableval=$enable_shared; p=${PACKAGE-default}
3188 case $enableval in
3189 yes) enable_shared=yes ;;
3190 no) enable_shared=no ;;
3192 enable_shared=no
3193 # Look at the argument we got. We use all the common list separators.
3194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3195 for pkg in $enableval; do
3196 IFS="$lt_save_ifs"
3197 if test "X$pkg" = "X$p"; then
3198 enable_shared=yes
3200 done
3201 IFS="$lt_save_ifs"
3203 esac
3204 else
3205 enable_shared=yes
3209 # Check whether --enable-static was given.
3210 if test "${enable_static+set}" = set; then
3211 enableval=$enable_static; p=${PACKAGE-default}
3212 case $enableval in
3213 yes) enable_static=yes ;;
3214 no) enable_static=no ;;
3216 enable_static=no
3217 # Look at the argument we got. We use all the common list separators.
3218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3219 for pkg in $enableval; do
3220 IFS="$lt_save_ifs"
3221 if test "X$pkg" = "X$p"; then
3222 enable_static=yes
3224 done
3225 IFS="$lt_save_ifs"
3227 esac
3228 else
3229 enable_static=yes
3233 # Check whether --enable-fast-install was given.
3234 if test "${enable_fast_install+set}" = set; then
3235 enableval=$enable_fast_install; p=${PACKAGE-default}
3236 case $enableval in
3237 yes) enable_fast_install=yes ;;
3238 no) enable_fast_install=no ;;
3240 enable_fast_install=no
3241 # Look at the argument we got. We use all the common list separators.
3242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3243 for pkg in $enableval; do
3244 IFS="$lt_save_ifs"
3245 if test "X$pkg" = "X$p"; then
3246 enable_fast_install=yes
3248 done
3249 IFS="$lt_save_ifs"
3251 esac
3252 else
3253 enable_fast_install=yes
3257 # Make sure we can run config.sub.
3258 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3259 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3260 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3261 { (exit 1); exit 1; }; }
3263 { echo "$as_me:$LINENO: checking build system type" >&5
3264 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3265 if test "${ac_cv_build+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 ac_build_alias=$build_alias
3269 test "x$ac_build_alias" = x &&
3270 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3271 test "x$ac_build_alias" = x &&
3272 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3273 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3274 { (exit 1); exit 1; }; }
3275 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3276 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3277 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3278 { (exit 1); exit 1; }; }
3281 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3282 echo "${ECHO_T}$ac_cv_build" >&6; }
3283 case $ac_cv_build in
3284 *-*-*) ;;
3285 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3286 echo "$as_me: error: invalid value of canonical build" >&2;}
3287 { (exit 1); exit 1; }; };;
3288 esac
3289 build=$ac_cv_build
3290 ac_save_IFS=$IFS; IFS='-'
3291 set x $ac_cv_build
3292 shift
3293 build_cpu=$1
3294 build_vendor=$2
3295 shift; shift
3296 # Remember, the first character of IFS is used to create $*,
3297 # except with old shells:
3298 build_os=$*
3299 IFS=$ac_save_IFS
3300 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3303 { echo "$as_me:$LINENO: checking host system type" >&5
3304 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3305 if test "${ac_cv_host+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 if test "x$host_alias" = x; then
3309 ac_cv_host=$ac_cv_build
3310 else
3311 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3312 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3313 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3314 { (exit 1); exit 1; }; }
3318 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3319 echo "${ECHO_T}$ac_cv_host" >&6; }
3320 case $ac_cv_host in
3321 *-*-*) ;;
3322 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3323 echo "$as_me: error: invalid value of canonical host" >&2;}
3324 { (exit 1); exit 1; }; };;
3325 esac
3326 host=$ac_cv_host
3327 ac_save_IFS=$IFS; IFS='-'
3328 set x $ac_cv_host
3329 shift
3330 host_cpu=$1
3331 host_vendor=$2
3332 shift; shift
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3335 host_os=$*
3336 IFS=$ac_save_IFS
3337 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3347 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3350 if test "${ac_cv_prog_CC+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3367 done
3368 done
3369 IFS=$as_save_IFS
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375 { echo "$as_me:$LINENO: result: $CC" >&5
3376 echo "${ECHO_T}$CC" >&6; }
3377 else
3378 { echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6; }
3384 if test -z "$ac_cv_prog_CC"; then
3385 ac_ct_CC=$CC
3386 # Extract the first word of "gcc", so it can be a program name with args.
3387 set dummy gcc; ac_word=$2
3388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CC="gcc"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3407 done
3408 done
3409 IFS=$as_save_IFS
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3416 echo "${ECHO_T}$ac_ct_CC" >&6; }
3417 else
3418 { echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6; }
3422 if test "x$ac_ct_CC" = x; then
3423 CC=""
3424 else
3425 case $cross_compiling:$ac_tool_warned in
3426 yes:)
3427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3428 whose name does not start with the host triplet. If you think this
3429 configuration is useful to you, please write to autoconf@gnu.org." >&5
3430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3431 whose name does not start with the host triplet. If you think this
3432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435 CC=$ac_ct_CC
3437 else
3438 CC="$ac_cv_prog_CC"
3441 if test -z "$CC"; then
3442 if test -n "$ac_tool_prefix"; then
3443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3444 set dummy ${ac_tool_prefix}cc; ac_word=$2
3445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_CC+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3460 ac_cv_prog_CC="${ac_tool_prefix}cc"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3464 done
3465 done
3466 IFS=$as_save_IFS
3470 CC=$ac_cv_prog_CC
3471 if test -n "$CC"; then
3472 { echo "$as_me:$LINENO: result: $CC" >&5
3473 echo "${ECHO_T}$CC" >&6; }
3474 else
3475 { echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6; }
3482 if test -z "$CC"; then
3483 # Extract the first word of "cc", so it can be a program name with args.
3484 set dummy cc; ac_word=$2
3485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3487 if test "${ac_cv_prog_CC+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 ac_prog_rejected=no
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3502 ac_prog_rejected=yes
3503 continue
3505 ac_cv_prog_CC="cc"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3509 done
3510 done
3511 IFS=$as_save_IFS
3513 if test $ac_prog_rejected = yes; then
3514 # We found a bogon in the path, so make sure we never use it.
3515 set dummy $ac_cv_prog_CC
3516 shift
3517 if test $# != 0; then
3518 # We chose a different compiler from the bogus one.
3519 # However, it has the same basename, so the bogon will be chosen
3520 # first if we set CC to just the basename; use the full file name.
3521 shift
3522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3527 CC=$ac_cv_prog_CC
3528 if test -n "$CC"; then
3529 { echo "$as_me:$LINENO: result: $CC" >&5
3530 echo "${ECHO_T}$CC" >&6; }
3531 else
3532 { echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6; }
3538 if test -z "$CC"; then
3539 if test -n "$ac_tool_prefix"; then
3540 for ac_prog in cl.exe
3542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3546 if test "${ac_cv_prog_CC+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3563 done
3564 done
3565 IFS=$as_save_IFS
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { echo "$as_me:$LINENO: result: $CC" >&5
3572 echo "${ECHO_T}$CC" >&6; }
3573 else
3574 { echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6; }
3579 test -n "$CC" && break
3580 done
3582 if test -z "$CC"; then
3583 ac_ct_CC=$CC
3584 for ac_prog in cl.exe
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 if test -n "$ac_ct_CC"; then
3594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_ac_ct_CC="$ac_prog"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3607 done
3608 done
3609 IFS=$as_save_IFS
3613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3614 if test -n "$ac_ct_CC"; then
3615 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3616 echo "${ECHO_T}$ac_ct_CC" >&6; }
3617 else
3618 { echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6; }
3623 test -n "$ac_ct_CC" && break
3624 done
3626 if test "x$ac_ct_CC" = x; then
3627 CC=""
3628 else
3629 case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3632 whose name does not start with the host triplet. If you think this
3633 configuration is useful to you, please write to autoconf@gnu.org." >&5
3634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3635 whose name does not start with the host triplet. If you think this
3636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639 CC=$ac_ct_CC
3646 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3647 See \`config.log' for more details." >&5
3648 echo "$as_me: error: no acceptable C compiler found in \$PATH
3649 See \`config.log' for more details." >&2;}
3650 { (exit 1); exit 1; }; }
3652 # Provide some information about the compiler.
3653 echo "$as_me:$LINENO: checking for C compiler version" >&5
3654 ac_compiler=`set X $ac_compile; echo $2`
3655 { (ac_try="$ac_compiler --version >&5"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_compiler --version >&5") 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }
3665 { (ac_try="$ac_compiler -v >&5"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_compiler -v >&5") 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }
3675 { (ac_try="$ac_compiler -V >&5"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compiler -V >&5") 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }
3686 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3687 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3688 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3699 main ()
3701 #ifndef __GNUC__
3702 choke me
3703 #endif
3706 return 0;
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (ac_try="$ac_compile"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 ac_compiler_gnu=yes
3727 else
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 ac_compiler_gnu=no
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3740 GCC=`test $ac_compiler_gnu = yes && echo yes`
3741 ac_test_CFLAGS=${CFLAGS+set}
3742 ac_save_CFLAGS=$CFLAGS
3743 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3744 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3745 if test "${ac_cv_prog_cc_g+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 ac_save_c_werror_flag=$ac_c_werror_flag
3749 ac_c_werror_flag=yes
3750 ac_cv_prog_cc_g=no
3751 CFLAGS="-g"
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3760 main ()
3764 return 0;
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (ac_try="$ac_compile"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_compile") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest.$ac_objext; then
3784 ac_cv_prog_cc_g=yes
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 CFLAGS=""
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3798 main ()
3802 return 0;
3804 _ACEOF
3805 rm -f conftest.$ac_objext
3806 if { (ac_try="$ac_compile"
3807 case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 ac_c_werror_flag=$ac_save_c_werror_flag
3828 CFLAGS="-g"
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3837 main ()
3841 return 0;
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (ac_try="$ac_compile"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_compile") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && {
3858 test -z "$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 } && test -s conftest.$ac_objext; then
3861 ac_cv_prog_cc_g=yes
3862 else
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_c_werror_flag=$ac_save_c_werror_flag
3878 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3880 if test "$ac_test_CFLAGS" = set; then
3881 CFLAGS=$ac_save_CFLAGS
3882 elif test $ac_cv_prog_cc_g = yes; then
3883 if test "$GCC" = yes; then
3884 CFLAGS="-g -O2"
3885 else
3886 CFLAGS="-g"
3888 else
3889 if test "$GCC" = yes; then
3890 CFLAGS="-O2"
3891 else
3892 CFLAGS=
3895 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3896 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3897 if test "${ac_cv_prog_cc_c89+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 ac_cv_prog_cc_c89=no
3901 ac_save_CC=$CC
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 #include <stdarg.h>
3909 #include <stdio.h>
3910 #include <sys/types.h>
3911 #include <sys/stat.h>
3912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3913 struct buf { int x; };
3914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915 static char *e (p, i)
3916 char **p;
3917 int i;
3919 return p[i];
3921 static char *f (char * (*g) (char **, int), char **p, ...)
3923 char *s;
3924 va_list v;
3925 va_start (v,p);
3926 s = g (p, va_arg (v,int));
3927 va_end (v);
3928 return s;
3931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3932 function prototypes and stuff, but not '\xHH' hex character constants.
3933 These don't provoke an error unfortunately, instead are silently treated
3934 as 'x'. The following induces an error, until -std is added to get
3935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3936 array size at least. It's necessary to write '\x00'==0 to get something
3937 that's true only with -std. */
3938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3941 inside strings and character constants. */
3942 #define FOO(x) 'x'
3943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3945 int test (int i, double x);
3946 struct s1 {int (*f) (int a);};
3947 struct s2 {int (*f) (double a);};
3948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3949 int argc;
3950 char **argv;
3952 main ()
3954 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3956 return 0;
3958 _ACEOF
3959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3962 CC="$ac_save_CC $ac_arg"
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.$ac_objext; then
3980 ac_cv_prog_cc_c89=$ac_arg
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3988 rm -f core conftest.err conftest.$ac_objext
3989 test "x$ac_cv_prog_cc_c89" != "xno" && break
3990 done
3991 rm -f conftest.$ac_ext
3992 CC=$ac_save_CC
3995 # AC_CACHE_VAL
3996 case "x$ac_cv_prog_cc_c89" in
3998 { echo "$as_me:$LINENO: result: none needed" >&5
3999 echo "${ECHO_T}none needed" >&6; } ;;
4000 xno)
4001 { echo "$as_me:$LINENO: result: unsupported" >&5
4002 echo "${ECHO_T}unsupported" >&6; } ;;
4004 CC="$CC $ac_cv_prog_cc_c89"
4005 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4006 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4007 esac
4010 ac_ext=cpp
4011 ac_cpp='$CXXCPP $CPPFLAGS'
4012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4016 depcc="$CC" am_compiler_list=
4018 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4019 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4020 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024 # We make a subdir and do the tests there. Otherwise we can end up
4025 # making bogus files that we don't know about and never remove. For
4026 # instance it was reported that on HP-UX the gcc test will end up
4027 # making a dummy file named `D' -- because `-MD' means `put the output
4028 # in D'.
4029 mkdir conftest.dir
4030 # Copy depcomp to subdir because otherwise we won't find it if we're
4031 # using a relative directory.
4032 cp "$am_depcomp" conftest.dir
4033 cd conftest.dir
4034 # We will build objects and dependencies in a subdirectory because
4035 # it helps to detect inapplicable dependency modes. For instance
4036 # both Tru64's cc and ICC support -MD to output dependencies as a
4037 # side effect of compilation, but ICC will put the dependencies in
4038 # the current directory while Tru64 will put them in the object
4039 # directory.
4040 mkdir sub
4042 am_cv_CC_dependencies_compiler_type=none
4043 if test "$am_compiler_list" = ""; then
4044 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4046 for depmode in $am_compiler_list; do
4047 # Setup a source with many dependencies, because some compilers
4048 # like to wrap large dependency lists on column 80 (with \), and
4049 # we should not choose a depcomp mode which is confused by this.
4051 # We need to recreate these files for each test, as the compiler may
4052 # overwrite some of them when testing with obscure command lines.
4053 # This happens at least with the AIX C compiler.
4054 : > sub/conftest.c
4055 for i in 1 2 3 4 5 6; do
4056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4057 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4058 # Solaris 8's {/usr,}/bin/sh.
4059 touch sub/conftst$i.h
4060 done
4061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4063 case $depmode in
4064 nosideeffect)
4065 # after this tag, mechanisms are not by side-effect, so they'll
4066 # only be used when explicitly requested
4067 if test "x$enable_dependency_tracking" = xyes; then
4068 continue
4069 else
4070 break
4073 none) break ;;
4074 esac
4075 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076 # mode. It turns out that the SunPro C++ compiler does not properly
4077 # handle `-M -o', and we need to detect this.
4078 if depmode=$depmode \
4079 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4082 >/dev/null 2>conftest.err &&
4083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4086 # icc doesn't choke on unknown options, it will just issue warnings
4087 # or remarks (even with -Werror). So we grep stderr for any message
4088 # that says an option was ignored or not supported.
4089 # When given -MP, icc 7.0 and 7.1 complain thusly:
4090 # icc: Command line warning: ignoring option '-M'; no argument required
4091 # The diagnosis changed in icc 8.0:
4092 # icc: Command line remark: option '-MP' not supported
4093 if (grep 'ignoring option' conftest.err ||
4094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4095 am_cv_CC_dependencies_compiler_type=$depmode
4096 break
4099 done
4101 cd ..
4102 rm -rf conftest.dir
4103 else
4104 am_cv_CC_dependencies_compiler_type=none
4108 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4109 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4110 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4115 test "x$enable_dependency_tracking" != xno \
4116 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4117 am__fastdepCC_TRUE=
4118 am__fastdepCC_FALSE='#'
4119 else
4120 am__fastdepCC_TRUE='#'
4121 am__fastdepCC_FALSE=
4125 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4126 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4127 if test "${lt_cv_path_SED+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 # Loop through the user's path and test for sed and gsed.
4131 # Then use that list of sed's as ones to test for truncation.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for lt_ac_prog in sed gsed; do
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4140 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4142 done
4143 done
4144 done
4145 lt_ac_max=0
4146 lt_ac_count=0
4147 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4148 # along with /bin/sed that truncates output.
4149 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4150 test ! -f $lt_ac_sed && break
4151 cat /dev/null > conftest.in
4152 lt_ac_count=0
4153 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4154 # Check for GNU sed and select it if it is found.
4155 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4156 lt_cv_path_SED=$lt_ac_sed
4157 break
4159 while true; do
4160 cat conftest.in conftest.in >conftest.tmp
4161 mv conftest.tmp conftest.in
4162 cp conftest.in conftest.nl
4163 echo >>conftest.nl
4164 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4165 cmp -s conftest.out conftest.nl || break
4166 # 10000 chars as input seems more than enough
4167 test $lt_ac_count -gt 10 && break
4168 lt_ac_count=`expr $lt_ac_count + 1`
4169 if test $lt_ac_count -gt $lt_ac_max; then
4170 lt_ac_max=$lt_ac_count
4171 lt_cv_path_SED=$lt_ac_sed
4173 done
4174 done
4175 SED=$lt_cv_path_SED
4179 { echo "$as_me:$LINENO: result: $SED" >&5
4180 echo "${ECHO_T}$SED" >&6; }
4182 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4183 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4184 if test "${ac_cv_path_GREP+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 # Extract the first word of "grep ggrep" to use in msg output
4188 if test -z "$GREP"; then
4189 set dummy grep ggrep; ac_prog_name=$2
4190 if test "${ac_cv_path_GREP+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 ac_path_GREP_found=false
4194 # Loop through the user's path and test for each of PROGNAME-LIST
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_prog in grep ggrep; do
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4203 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4204 # Check for GNU ac_path_GREP and select it if it is found.
4205 # Check for GNU $ac_path_GREP
4206 case `"$ac_path_GREP" --version 2>&1` in
4207 *GNU*)
4208 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4210 ac_count=0
4211 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4212 while :
4214 cat "conftest.in" "conftest.in" >"conftest.tmp"
4215 mv "conftest.tmp" "conftest.in"
4216 cp "conftest.in" "conftest.nl"
4217 echo 'GREP' >> "conftest.nl"
4218 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220 ac_count=`expr $ac_count + 1`
4221 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4222 # Best one so far, save it but keep looking for a better one
4223 ac_cv_path_GREP="$ac_path_GREP"
4224 ac_path_GREP_max=$ac_count
4226 # 10*(2^10) chars as input seems more than enough
4227 test $ac_count -gt 10 && break
4228 done
4229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230 esac
4233 $ac_path_GREP_found && break 3
4234 done
4235 done
4237 done
4238 IFS=$as_save_IFS
4243 GREP="$ac_cv_path_GREP"
4244 if test -z "$GREP"; then
4245 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4246 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4247 { (exit 1); exit 1; }; }
4250 else
4251 ac_cv_path_GREP=$GREP
4256 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4257 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4258 GREP="$ac_cv_path_GREP"
4261 { echo "$as_me:$LINENO: checking for egrep" >&5
4262 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4263 if test "${ac_cv_path_EGREP+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4267 then ac_cv_path_EGREP="$GREP -E"
4268 else
4269 # Extract the first word of "egrep" to use in msg output
4270 if test -z "$EGREP"; then
4271 set dummy egrep; ac_prog_name=$2
4272 if test "${ac_cv_path_EGREP+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 ac_path_EGREP_found=false
4276 # Loop through the user's path and test for each of PROGNAME-LIST
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_prog in egrep; do
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4285 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4286 # Check for GNU ac_path_EGREP and select it if it is found.
4287 # Check for GNU $ac_path_EGREP
4288 case `"$ac_path_EGREP" --version 2>&1` in
4289 *GNU*)
4290 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292 ac_count=0
4293 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4294 while :
4296 cat "conftest.in" "conftest.in" >"conftest.tmp"
4297 mv "conftest.tmp" "conftest.in"
4298 cp "conftest.in" "conftest.nl"
4299 echo 'EGREP' >> "conftest.nl"
4300 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302 ac_count=`expr $ac_count + 1`
4303 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4304 # Best one so far, save it but keep looking for a better one
4305 ac_cv_path_EGREP="$ac_path_EGREP"
4306 ac_path_EGREP_max=$ac_count
4308 # 10*(2^10) chars as input seems more than enough
4309 test $ac_count -gt 10 && break
4310 done
4311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312 esac
4315 $ac_path_EGREP_found && break 3
4316 done
4317 done
4319 done
4320 IFS=$as_save_IFS
4325 EGREP="$ac_cv_path_EGREP"
4326 if test -z "$EGREP"; then
4327 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4328 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4329 { (exit 1); exit 1; }; }
4332 else
4333 ac_cv_path_EGREP=$EGREP
4339 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4340 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4341 EGREP="$ac_cv_path_EGREP"
4345 # Check whether --with-gnu-ld was given.
4346 if test "${with_gnu_ld+set}" = set; then
4347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4348 else
4349 with_gnu_ld=no
4352 ac_prog=ld
4353 if test "$GCC" = yes; then
4354 # Check if gcc -print-prog-name=ld gives a path.
4355 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4356 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4357 case $host in
4358 *-*-mingw*)
4359 # gcc leaves a trailing carriage return which upsets mingw
4360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4363 esac
4364 case $ac_prog in
4365 # Accept absolute paths.
4366 [\\/]* | ?:[\\/]*)
4367 re_direlt='/[^/][^/]*/\.\./'
4368 # Canonicalize the pathname of ld
4369 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4370 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4371 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4372 done
4373 test -z "$LD" && LD="$ac_prog"
4376 # If it fails, then pretend we aren't using GCC.
4377 ac_prog=ld
4380 # If it is relative, then search for the first ld in PATH.
4381 with_gnu_ld=unknown
4383 esac
4384 elif test "$with_gnu_ld" = yes; then
4385 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4386 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4387 else
4388 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4389 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4391 if test "${lt_cv_path_LD+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 if test -z "$LD"; then
4395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4396 for ac_dir in $PATH; do
4397 IFS="$lt_save_ifs"
4398 test -z "$ac_dir" && ac_dir=.
4399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4400 lt_cv_path_LD="$ac_dir/$ac_prog"
4401 # Check to see if the program is GNU ld. I'd rather use --version,
4402 # but apparently some GNU ld's only accept -v.
4403 # Break only if it was the GNU/non-GNU ld that we prefer.
4404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4405 *GNU* | *'with BFD'*)
4406 test "$with_gnu_ld" != no && break
4409 test "$with_gnu_ld" != yes && break
4411 esac
4413 done
4414 IFS="$lt_save_ifs"
4415 else
4416 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4420 LD="$lt_cv_path_LD"
4421 if test -n "$LD"; then
4422 { echo "$as_me:$LINENO: result: $LD" >&5
4423 echo "${ECHO_T}$LD" >&6; }
4424 else
4425 { echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6; }
4428 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4429 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4430 { (exit 1); exit 1; }; }
4431 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4432 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4433 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4437 case `$LD -v 2>&1 </dev/null` in
4438 *GNU* | *'with BFD'*)
4439 lt_cv_prog_gnu_ld=yes
4442 lt_cv_prog_gnu_ld=no
4444 esac
4446 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4447 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4448 with_gnu_ld=$lt_cv_prog_gnu_ld
4451 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4452 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4453 if test "${lt_cv_ld_reload_flag+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 lt_cv_ld_reload_flag='-r'
4458 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4459 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4460 reload_flag=$lt_cv_ld_reload_flag
4461 case $reload_flag in
4462 "" | " "*) ;;
4463 *) reload_flag=" $reload_flag" ;;
4464 esac
4465 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4467 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4468 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4469 if test "${lt_cv_path_NM+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$NM"; then
4473 # Let the user override the test.
4474 lt_cv_path_NM="$NM"
4475 else
4476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4477 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4478 IFS="$lt_save_ifs"
4479 test -z "$ac_dir" && ac_dir=.
4480 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4481 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4482 # Check to see if the nm accepts a BSD-compat flag.
4483 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4484 # nm: unknown option "B" ignored
4485 # Tru64's nm complains that /dev/null is an invalid object file
4486 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4487 */dev/null* | *'Invalid file or object type'*)
4488 lt_cv_path_NM="$tmp_nm -B"
4489 break
4492 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4493 */dev/null*)
4494 lt_cv_path_NM="$tmp_nm -p"
4495 break
4498 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4499 continue # so that we can try to find one that supports BSD flags
4501 esac
4502 esac
4504 done
4505 IFS="$lt_save_ifs"
4506 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4509 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4510 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4511 NM="$lt_cv_path_NM"
4513 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4514 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4515 LN_S=$as_ln_s
4516 if test "$LN_S" = "ln -s"; then
4517 { echo "$as_me:$LINENO: result: yes" >&5
4518 echo "${ECHO_T}yes" >&6; }
4519 else
4520 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4521 echo "${ECHO_T}no, using $LN_S" >&6; }
4524 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4525 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4526 if test "${lt_cv_deplibs_check_method+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 lt_cv_file_magic_cmd='$MAGIC_CMD'
4530 lt_cv_file_magic_test_file=
4531 lt_cv_deplibs_check_method='unknown'
4532 # Need to set the preceding variable on all platforms that support
4533 # interlibrary dependencies.
4534 # 'none' -- dependencies not supported.
4535 # `unknown' -- same as none, but documents that we really don't know.
4536 # 'pass_all' -- all dependencies passed with no checks.
4537 # 'test_compile' -- check by making test program.
4538 # 'file_magic [[regex]]' -- check by looking for files in library path
4539 # which responds to the $file_magic_cmd with a given extended regex.
4540 # If you have `file' or equivalent on your system and you're not sure
4541 # whether `pass_all' will *always* work, you probably want this one.
4543 case $host_os in
4544 aix4* | aix5*)
4545 lt_cv_deplibs_check_method=pass_all
4548 beos*)
4549 lt_cv_deplibs_check_method=pass_all
4552 bsdi4*)
4553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4554 lt_cv_file_magic_cmd='/usr/bin/file -L'
4555 lt_cv_file_magic_test_file=/shlib/libc.so
4558 cygwin*)
4559 # func_win32_libid is a shell function defined in ltmain.sh
4560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4561 lt_cv_file_magic_cmd='func_win32_libid'
4564 mingw* | pw32*)
4565 # Base MSYS/MinGW do not provide the 'file' command needed by
4566 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4567 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4568 lt_cv_file_magic_cmd='$OBJDUMP -f'
4571 darwin* | rhapsody*)
4572 lt_cv_deplibs_check_method=pass_all
4575 freebsd* | kfreebsd*-gnu)
4576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4577 case $host_cpu in
4578 i*86 )
4579 # Not sure whether the presence of OpenBSD here was a mistake.
4580 # Let's accept both of them until this is cleared up.
4581 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4582 lt_cv_file_magic_cmd=/usr/bin/file
4583 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4585 esac
4586 else
4587 lt_cv_deplibs_check_method=pass_all
4591 gnu*)
4592 lt_cv_deplibs_check_method=pass_all
4595 hpux10.20* | hpux11*)
4596 lt_cv_file_magic_cmd=/usr/bin/file
4597 case "$host_cpu" in
4598 ia64*)
4599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4600 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4602 hppa*64*)
4603 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]'
4604 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4608 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4610 esac
4613 irix5* | irix6* | nonstopux*)
4614 case $LD in
4615 *-32|*"-32 ") libmagic=32-bit;;
4616 *-n32|*"-n32 ") libmagic=N32;;
4617 *-64|*"-64 ") libmagic=64-bit;;
4618 *) libmagic=never-match;;
4619 esac
4620 lt_cv_deplibs_check_method=pass_all
4623 # This must be Linux ELF.
4624 linux*)
4625 case $host_cpu in
4626 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4627 lt_cv_deplibs_check_method=pass_all ;;
4629 # glibc up to 2.1.1 does not perform some relocations on ARM
4630 # this will be overridden with pass_all, but let us keep it just in case
4631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4632 esac
4633 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4634 lt_cv_deplibs_check_method=pass_all
4637 netbsd*)
4638 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4640 else
4641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4645 newos6*)
4646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4647 lt_cv_file_magic_cmd=/usr/bin/file
4648 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4651 nto-qnx*)
4652 lt_cv_deplibs_check_method=unknown
4655 openbsd*)
4656 lt_cv_file_magic_cmd=/usr/bin/file
4657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4660 else
4661 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4665 osf3* | osf4* | osf5*)
4666 lt_cv_deplibs_check_method=pass_all
4669 sco3.2v5*)
4670 lt_cv_deplibs_check_method=pass_all
4673 solaris*)
4674 lt_cv_deplibs_check_method=pass_all
4677 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4678 case $host_vendor in
4679 motorola)
4680 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]'
4681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4683 ncr)
4684 lt_cv_deplibs_check_method=pass_all
4686 sequent)
4687 lt_cv_file_magic_cmd='/bin/file'
4688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4690 sni)
4691 lt_cv_file_magic_cmd='/bin/file'
4692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4693 lt_cv_file_magic_test_file=/lib/libc.so
4695 siemens)
4696 lt_cv_deplibs_check_method=pass_all
4698 esac
4701 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4702 lt_cv_deplibs_check_method=pass_all
4704 esac
4707 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4708 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4709 file_magic_cmd=$lt_cv_file_magic_cmd
4710 deplibs_check_method=$lt_cv_deplibs_check_method
4711 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4716 # If no C compiler was specified, use CC.
4717 LTCC=${LTCC-"$CC"}
4719 # Allow CC to be a program name with arguments.
4720 compiler=$CC
4723 # Check whether --enable-libtool-lock was given.
4724 if test "${enable_libtool_lock+set}" = set; then
4725 enableval=$enable_libtool_lock;
4728 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4730 # Some flags need to be propagated to the compiler or linker for good
4731 # libtool support.
4732 case $host in
4733 ia64-*-hpux*)
4734 # Find out which ABI we are using.
4735 echo 'int i;' > conftest.$ac_ext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; then
4741 case `/usr/bin/file conftest.$ac_objext` in
4742 *ELF-32*)
4743 HPUX_IA64_MODE="32"
4745 *ELF-64*)
4746 HPUX_IA64_MODE="64"
4748 esac
4750 rm -rf conftest*
4752 *-*-irix6*)
4753 # Find out which ABI we are using.
4754 echo '#line 4754 "configure"' > conftest.$ac_ext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; then
4760 if test "$lt_cv_prog_gnu_ld" = yes; then
4761 case `/usr/bin/file conftest.$ac_objext` in
4762 *32-bit*)
4763 LD="${LD-ld} -melf32bsmip"
4765 *N32*)
4766 LD="${LD-ld} -melf32bmipn32"
4768 *64-bit*)
4769 LD="${LD-ld} -melf64bmip"
4771 esac
4772 else
4773 case `/usr/bin/file conftest.$ac_objext` in
4774 *32-bit*)
4775 LD="${LD-ld} -32"
4777 *N32*)
4778 LD="${LD-ld} -n32"
4780 *64-bit*)
4781 LD="${LD-ld} -64"
4783 esac
4786 rm -rf conftest*
4789 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4790 # Find out which ABI we are using.
4791 echo 'int i;' > conftest.$ac_ext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; then
4797 case "`/usr/bin/file conftest.o`" in
4798 *32-bit*)
4799 case $host in
4800 x86_64-*linux*)
4801 LD="${LD-ld} -m elf_i386"
4803 ppc64-*linux*|powerpc64-*linux*)
4804 LD="${LD-ld} -m elf32ppclinux"
4806 s390x-*linux*)
4807 LD="${LD-ld} -m elf_s390"
4809 sparc64-*linux*)
4810 LD="${LD-ld} -m elf32_sparc"
4812 esac
4814 *64-bit*)
4815 case $host in
4816 x86_64-*linux*)
4817 LD="${LD-ld} -m elf_x86_64"
4819 ppc*-*linux*|powerpc*-*linux*)
4820 LD="${LD-ld} -m elf64ppc"
4822 s390*-*linux*)
4823 LD="${LD-ld} -m elf64_s390"
4825 sparc*-*linux*)
4826 LD="${LD-ld} -m elf64_sparc"
4828 esac
4830 esac
4832 rm -rf conftest*
4835 *-*-sco3.2v5*)
4836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4837 SAVE_CFLAGS="$CFLAGS"
4838 CFLAGS="$CFLAGS -belf"
4839 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4840 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4841 if test "${lt_cv_cc_needs_belf+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4858 main ()
4862 return 0;
4864 _ACEOF
4865 rm -f conftest.$ac_objext conftest$ac_exeext
4866 if { (ac_try="$ac_link"
4867 case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4870 esac
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_link") 2>conftest.er1
4873 ac_status=$?
4874 grep -v '^ *+' conftest.er1 >conftest.err
4875 rm -f conftest.er1
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest$ac_exeext &&
4882 $as_test_x conftest$ac_exeext; then
4883 lt_cv_cc_needs_belf=yes
4884 else
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4888 lt_cv_cc_needs_belf=no
4891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4892 conftest$ac_exeext conftest.$ac_ext
4893 ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4901 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4902 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4903 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4904 CFLAGS="$SAVE_CFLAGS"
4908 esac
4910 need_locks="$enable_libtool_lock"
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4920 # On Suns, sometimes $CPP names a directory.
4921 if test -n "$CPP" && test -d "$CPP"; then
4922 CPP=
4924 if test -z "$CPP"; then
4925 if test "${ac_cv_prog_CPP+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 # Double quotes because CPP needs to be expanded
4929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4931 ac_preproc_ok=false
4932 for ac_c_preproc_warn_flag in '' yes
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #ifdef __STDC__
4947 # include <limits.h>
4948 #else
4949 # include <assert.h>
4950 #endif
4951 Syntax error
4952 _ACEOF
4953 if { (ac_try="$ac_cpp conftest.$ac_ext"
4954 case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null && {
4966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4967 test ! -s conftest.err
4968 }; then
4970 else
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4974 # Broken: fails on valid input.
4975 continue
4978 rm -f conftest.err conftest.$ac_ext
4980 # OK, works on sane cases. Now check whether nonexistent headers
4981 # can be detected and how.
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if { (ac_try="$ac_cpp conftest.$ac_ext"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } >/dev/null && {
5003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5004 test ! -s conftest.err
5005 }; then
5006 # Broken: success on invalid input.
5007 continue
5008 else
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 # Passes both tests.
5013 ac_preproc_ok=:
5014 break
5017 rm -f conftest.err conftest.$ac_ext
5019 done
5020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021 rm -f conftest.err conftest.$ac_ext
5022 if $ac_preproc_ok; then
5023 break
5026 done
5027 ac_cv_prog_CPP=$CPP
5030 CPP=$ac_cv_prog_CPP
5031 else
5032 ac_cv_prog_CPP=$CPP
5034 { echo "$as_me:$LINENO: result: $CPP" >&5
5035 echo "${ECHO_T}$CPP" >&6; }
5036 ac_preproc_ok=false
5037 for ac_c_preproc_warn_flag in '' yes
5039 # Use a header file that comes with gcc, so configuring glibc
5040 # with a fresh cross-compiler works.
5041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5042 # <limits.h> exists even on freestanding compilers.
5043 # On the NeXT, cc -E runs the code through the compiler's parser,
5044 # not just through cpp. "Syntax error" is here to catch this case.
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 #ifdef __STDC__
5052 # include <limits.h>
5053 #else
5054 # include <assert.h>
5055 #endif
5056 Syntax error
5057 _ACEOF
5058 if { (ac_try="$ac_cpp conftest.$ac_ext"
5059 case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062 esac
5063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null && {
5071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5072 test ! -s conftest.err
5073 }; then
5075 else
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 # Broken: fails on valid input.
5080 continue
5083 rm -f conftest.err conftest.$ac_ext
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <ac_nonexistent.h>
5094 _ACEOF
5095 if { (ac_try="$ac_cpp conftest.$ac_ext"
5096 case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null && {
5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 }; then
5111 # Broken: success on invalid input.
5112 continue
5113 else
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5122 rm -f conftest.err conftest.$ac_ext
5124 done
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.err conftest.$ac_ext
5127 if $ac_preproc_ok; then
5129 else
5130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5131 See \`config.log' for more details." >&5
5132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5133 See \`config.log' for more details." >&2;}
5134 { (exit 1); exit 1; }; }
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5145 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5146 if test "${ac_cv_header_stdc+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h. */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 #include <stdlib.h>
5156 #include <stdarg.h>
5157 #include <string.h>
5158 #include <float.h>
5161 main ()
5165 return 0;
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (ac_try="$ac_compile"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_compile") 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && {
5182 test -z "$ac_c_werror_flag" ||
5183 test ! -s conftest.err
5184 } && test -s conftest.$ac_objext; then
5185 ac_cv_header_stdc=yes
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ac_cv_header_stdc=no
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 if test $ac_cv_header_stdc = yes; then
5196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <string.h>
5205 _ACEOF
5206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5207 $EGREP "memchr" >/dev/null 2>&1; then
5209 else
5210 ac_cv_header_stdc=no
5212 rm -f conftest*
5216 if test $ac_cv_header_stdc = yes; then
5217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <stdlib.h>
5226 _ACEOF
5227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5228 $EGREP "free" >/dev/null 2>&1; then
5230 else
5231 ac_cv_header_stdc=no
5233 rm -f conftest*
5237 if test $ac_cv_header_stdc = yes; then
5238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5239 if test "$cross_compiling" = yes; then
5241 else
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <ctype.h>
5249 #include <stdlib.h>
5250 #if ((' ' & 0x0FF) == 0x020)
5251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5253 #else
5254 # define ISLOWER(c) \
5255 (('a' <= (c) && (c) <= 'i') \
5256 || ('j' <= (c) && (c) <= 'r') \
5257 || ('s' <= (c) && (c) <= 'z'))
5258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5259 #endif
5261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5263 main ()
5265 int i;
5266 for (i = 0; i < 256; i++)
5267 if (XOR (islower (i), ISLOWER (i))
5268 || toupper (i) != TOUPPER (i))
5269 return 2;
5270 return 0;
5272 _ACEOF
5273 rm -f conftest$ac_exeext
5274 if { (ac_try="$ac_link"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_link") 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5284 { (case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_try") 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5294 else
5295 echo "$as_me: program exited with status $ac_status" >&5
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5299 ( exit $ac_status )
5300 ac_cv_header_stdc=no
5302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5308 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5309 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5310 if test $ac_cv_header_stdc = yes; then
5312 cat >>confdefs.h <<\_ACEOF
5313 #define STDC_HEADERS 1
5314 _ACEOF
5318 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5328 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5329 inttypes.h stdint.h unistd.h
5331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 $ac_includes_default
5345 #include <$ac_header>
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (ac_try="$ac_compile"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compile") 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && {
5361 test -z "$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5363 } && test -s conftest.$ac_objext; then
5364 eval "$as_ac_Header=yes"
5365 else
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 eval "$as_ac_Header=no"
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 ac_res=`eval echo '${'$as_ac_Header'}'`
5375 { echo "$as_me:$LINENO: result: $ac_res" >&5
5376 echo "${ECHO_T}$ac_res" >&6; }
5377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5378 cat >>confdefs.h <<_ACEOF
5379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380 _ACEOF
5384 done
5388 for ac_header in dlfcn.h
5390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_res=`eval echo '${'$as_ac_Header'}'`
5398 { echo "$as_me:$LINENO: result: $ac_res" >&5
5399 echo "${ECHO_T}$ac_res" >&6; }
5400 else
5401 # Is the header compilable?
5402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 $ac_includes_default
5411 #include <$ac_header>
5412 _ACEOF
5413 rm -f conftest.$ac_objext
5414 if { (ac_try="$ac_compile"
5415 case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418 esac
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_compile") 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } && {
5427 test -z "$ac_c_werror_flag" ||
5428 test ! -s conftest.err
5429 } && test -s conftest.$ac_objext; then
5430 ac_header_compiler=yes
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5435 ac_header_compiler=no
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5440 echo "${ECHO_T}$ac_header_compiler" >&6; }
5442 # Is the header present?
5443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <$ac_header>
5452 _ACEOF
5453 if { (ac_try="$ac_cpp conftest.$ac_ext"
5454 case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } >/dev/null && {
5466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5467 test ! -s conftest.err
5468 }; then
5469 ac_header_preproc=yes
5470 else
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 ac_header_preproc=no
5477 rm -f conftest.err conftest.$ac_ext
5478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5479 echo "${ECHO_T}$ac_header_preproc" >&6; }
5481 # So? What about this header?
5482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5483 yes:no: )
5484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5488 ac_header_preproc=yes
5490 no:yes:* )
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5505 esac
5506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 eval "$as_ac_Header=\$ac_header_preproc"
5513 ac_res=`eval echo '${'$as_ac_Header'}'`
5514 { echo "$as_me:$LINENO: result: $ac_res" >&5
5515 echo "${ECHO_T}$ac_res" >&6; }
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h <<_ACEOF
5520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5521 _ACEOF
5525 done
5527 ac_ext=cpp
5528 ac_cpp='$CXXCPP $CPPFLAGS'
5529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5532 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5533 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5534 if test -z "$CXXCPP"; then
5535 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 # Double quotes because CXXCPP needs to be expanded
5539 for CXXCPP in "$CXX -E" "/lib/cpp"
5541 ac_preproc_ok=false
5542 for ac_cxx_preproc_warn_flag in '' yes
5544 # Use a header file that comes with gcc, so configuring glibc
5545 # with a fresh cross-compiler works.
5546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5547 # <limits.h> exists even on freestanding compilers.
5548 # On the NeXT, cc -E runs the code through the compiler's parser,
5549 # not just through cpp. "Syntax error" is here to catch this case.
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #ifdef __STDC__
5557 # include <limits.h>
5558 #else
5559 # include <assert.h>
5560 #endif
5561 Syntax error
5562 _ACEOF
5563 if { (ac_try="$ac_cpp conftest.$ac_ext"
5564 case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567 esac
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } >/dev/null && {
5576 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5577 test ! -s conftest.err
5578 }; then
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 # Broken: fails on valid input.
5585 continue
5588 rm -f conftest.err conftest.$ac_ext
5590 # OK, works on sane cases. Now check whether nonexistent headers
5591 # can be detected and how.
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 #include <ac_nonexistent.h>
5599 _ACEOF
5600 if { (ac_try="$ac_cpp conftest.$ac_ext"
5601 case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } >/dev/null && {
5613 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5614 test ! -s conftest.err
5615 }; then
5616 # Broken: success on invalid input.
5617 continue
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 # Passes both tests.
5623 ac_preproc_ok=:
5624 break
5627 rm -f conftest.err conftest.$ac_ext
5629 done
5630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5631 rm -f conftest.err conftest.$ac_ext
5632 if $ac_preproc_ok; then
5633 break
5636 done
5637 ac_cv_prog_CXXCPP=$CXXCPP
5640 CXXCPP=$ac_cv_prog_CXXCPP
5641 else
5642 ac_cv_prog_CXXCPP=$CXXCPP
5644 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5645 echo "${ECHO_T}$CXXCPP" >&6; }
5646 ac_preproc_ok=false
5647 for ac_cxx_preproc_warn_flag in '' yes
5649 # Use a header file that comes with gcc, so configuring glibc
5650 # with a fresh cross-compiler works.
5651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652 # <limits.h> exists even on freestanding compilers.
5653 # On the NeXT, cc -E runs the code through the compiler's parser,
5654 # not just through cpp. "Syntax error" is here to catch this case.
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #ifdef __STDC__
5662 # include <limits.h>
5663 #else
5664 # include <assert.h>
5665 #endif
5666 Syntax error
5667 _ACEOF
5668 if { (ac_try="$ac_cpp conftest.$ac_ext"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } >/dev/null && {
5681 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5682 test ! -s conftest.err
5683 }; then
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 # Broken: fails on valid input.
5690 continue
5693 rm -f conftest.err conftest.$ac_ext
5695 # OK, works on sane cases. Now check whether nonexistent headers
5696 # can be detected and how.
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <ac_nonexistent.h>
5704 _ACEOF
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5719 test ! -s conftest.err
5720 }; then
5721 # Broken: success on invalid input.
5722 continue
5723 else
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5727 # Passes both tests.
5728 ac_preproc_ok=:
5729 break
5732 rm -f conftest.err conftest.$ac_ext
5734 done
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.err conftest.$ac_ext
5737 if $ac_preproc_ok; then
5739 else
5740 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5741 See \`config.log' for more details." >&5
5742 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5743 See \`config.log' for more details." >&2;}
5744 { (exit 1); exit 1; }; }
5747 ac_ext=cpp
5748 ac_cpp='$CXXCPP $CPPFLAGS'
5749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5754 ac_ext=f
5755 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5756 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5758 if test -n "$ac_tool_prefix"; then
5759 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
5761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765 if test "${ac_cv_prog_F77+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 if test -n "$F77"; then
5769 ac_cv_prog_F77="$F77" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5782 done
5783 done
5784 IFS=$as_save_IFS
5788 F77=$ac_cv_prog_F77
5789 if test -n "$F77"; then
5790 { echo "$as_me:$LINENO: result: $F77" >&5
5791 echo "${ECHO_T}$F77" >&6; }
5792 else
5793 { echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6; }
5798 test -n "$F77" && break
5799 done
5801 if test -z "$F77"; then
5802 ac_ct_F77=$F77
5803 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
5805 # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy $ac_prog; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812 if test -n "$ac_ct_F77"; then
5813 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_prog_ac_ct_F77="$ac_prog"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5826 done
5827 done
5828 IFS=$as_save_IFS
5832 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5833 if test -n "$ac_ct_F77"; then
5834 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5835 echo "${ECHO_T}$ac_ct_F77" >&6; }
5836 else
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5842 test -n "$ac_ct_F77" && break
5843 done
5845 if test "x$ac_ct_F77" = x; then
5846 F77=""
5847 else
5848 case $cross_compiling:$ac_tool_warned in
5849 yes:)
5850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5851 whose name does not start with the host triplet. If you think this
5852 configuration is useful to you, please write to autoconf@gnu.org." >&5
5853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5854 whose name does not start with the host triplet. If you think this
5855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5856 ac_tool_warned=yes ;;
5857 esac
5858 F77=$ac_ct_F77
5863 # Provide some information about the compiler.
5864 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5865 ac_compiler=`set X $ac_compile; echo $2`
5866 { (ac_try="$ac_compiler --version >&5"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compiler --version >&5") 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }
5876 { (ac_try="$ac_compiler -v >&5"
5877 case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5880 esac
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_compiler -v >&5") 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }
5886 { (ac_try="$ac_compiler -V >&5"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compiler -V >&5") 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }
5896 rm -f a.out
5898 # If we don't use `.F' as extension, the preprocessor is not run on the
5899 # input file. (Note that this only needs to work for GNU compilers.)
5900 ac_save_ext=$ac_ext
5901 ac_ext=F
5902 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5903 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5904 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907 cat >conftest.$ac_ext <<_ACEOF
5908 program main
5909 #ifndef __GNUC__
5910 choke me
5911 #endif
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5917 case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_f77_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.$ac_objext; then
5932 ac_compiler_gnu=yes
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 ac_compiler_gnu=no
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5944 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5945 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5946 ac_ext=$ac_save_ext
5947 ac_test_FFLAGS=${FFLAGS+set}
5948 ac_save_FFLAGS=$FFLAGS
5949 FFLAGS=
5950 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5951 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5952 if test "${ac_cv_prog_f77_g+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 FFLAGS=-g
5956 cat >conftest.$ac_ext <<_ACEOF
5957 program main
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_f77_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.$ac_objext; then
5978 ac_cv_prog_f77_g=yes
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_cv_prog_f77_g=no
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5990 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5991 if test "$ac_test_FFLAGS" = set; then
5992 FFLAGS=$ac_save_FFLAGS
5993 elif test $ac_cv_prog_f77_g = yes; then
5994 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5995 FFLAGS="-g -O2"
5996 else
5997 FFLAGS="-g"
5999 else
6000 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6001 FFLAGS="-O2"
6002 else
6003 FFLAGS=
6007 G77=`test $ac_compiler_gnu = yes && echo yes`
6008 ac_ext=cpp
6009 ac_cpp='$CXXCPP $CPPFLAGS'
6010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6016 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6018 # find the maximum length of command line arguments
6019 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6025 teststring="ABCD"
6027 case $build_os in
6028 msdosdjgpp*)
6029 # On DJGPP, this test can blow up pretty badly due to problems in libc
6030 # (any single argument exceeding 2000 bytes causes a buffer overrun
6031 # during glob expansion). Even if it were fixed, the result of this
6032 # check would be larger than it should be.
6033 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6036 gnu*)
6037 # Under GNU Hurd, this test is not required because there is
6038 # no limit to the length of command line arguments.
6039 # Libtool will interpret -1 as no limit whatsoever
6040 lt_cv_sys_max_cmd_len=-1;
6043 cygwin* | mingw*)
6044 # On Win9x/ME, this test blows up -- it succeeds, but takes
6045 # about 5 minutes as the teststring grows exponentially.
6046 # Worse, since 9x/ME are not pre-emptively multitasking,
6047 # you end up with a "frozen" computer, even though with patience
6048 # the test eventually succeeds (with a max line length of 256k).
6049 # Instead, let's just punt: use the minimum linelength reported by
6050 # all of the supported platforms: 8192 (on NT/2K/XP).
6051 lt_cv_sys_max_cmd_len=8192;
6054 amigaos*)
6055 # On AmigaOS with pdksh, this test takes hours, literally.
6056 # So we just punt and use a minimum line length of 8192.
6057 lt_cv_sys_max_cmd_len=8192;
6061 # If test is not a shell built-in, we'll probably end up computing a
6062 # maximum length that is only half of the actual maximum length, but
6063 # we can't tell.
6064 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6065 = "XX$teststring") >/dev/null 2>&1 &&
6066 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6067 lt_cv_sys_max_cmd_len=$new_result &&
6068 test $i != 17 # 1/2 MB should be enough
6070 i=`expr $i + 1`
6071 teststring=$teststring$teststring
6072 done
6073 teststring=
6074 # Add a significant safety factor because C++ compilers can tack on massive
6075 # amounts of additional arguments before passing them to the linker.
6076 # It appears as though 1/2 is a usable value.
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6079 esac
6083 if test -n $lt_cv_sys_max_cmd_len ; then
6084 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6085 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6086 else
6087 { echo "$as_me:$LINENO: result: none" >&5
6088 echo "${ECHO_T}none" >&6; }
6094 # Check for command to grab the raw symbol name followed by C symbol from nm.
6095 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6096 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6097 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6101 # These are sane defaults that work on at least a few old systems.
6102 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6104 # Character class describing NM global symbol codes.
6105 symcode='[BCDEGRST]'
6107 # Regexp to match symbols that can be accessed directly from C.
6108 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6110 # Transform the above into a raw symbol and a C symbol.
6111 symxfrm='\1 \2\3 \3'
6113 # Transform an extracted symbol line into a proper C declaration
6114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6116 # Transform an extracted symbol line into symbol name and symbol address
6117 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'"
6119 # Define system-specific variables.
6120 case $host_os in
6121 aix*)
6122 symcode='[BCDT]'
6124 cygwin* | mingw* | pw32*)
6125 symcode='[ABCDGISTW]'
6127 hpux*) # Its linker distinguishes data from code symbols
6128 if test "$host_cpu" = ia64; then
6129 symcode='[ABCDEGRST]'
6131 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6132 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'"
6134 irix* | nonstopux*)
6135 symcode='[BCDEGRST]'
6137 osf*)
6138 symcode='[BCDEGQRST]'
6140 solaris* | sysv5*)
6141 symcode='[BDRT]'
6143 sysv4)
6144 symcode='[DFNSTU]'
6146 esac
6148 # Handle CRLF in mingw tool chain
6149 opt_cr=
6150 case $build_os in
6151 mingw*)
6152 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6154 esac
6156 # If we're using GNU nm, then use its standard symbol codes.
6157 case `$NM -V 2>&1` in
6158 *GNU* | *'with BFD'*)
6159 symcode='[ABCDGIRSTW]' ;;
6160 esac
6162 # Try without a prefix undercore, then with it.
6163 for ac_symprfx in "" "_"; do
6165 # Write the raw and C identifiers.
6166 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6168 # Check to see that the pipe works correctly.
6169 pipe_works=no
6171 rm -f conftest*
6172 cat > conftest.$ac_ext <<EOF
6173 #ifdef __cplusplus
6174 extern "C" {
6175 #endif
6176 char nm_test_var;
6177 void nm_test_func(){}
6178 #ifdef __cplusplus
6180 #endif
6181 int main(){nm_test_var='a';nm_test_func();return(0);}
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; then
6189 # Now try to grab the symbols.
6190 nlist=conftest.nm
6191 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6192 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && test -s "$nlist"; then
6196 # Try sorting and uniquifying the output.
6197 if sort "$nlist" | uniq > "$nlist"T; then
6198 mv -f "$nlist"T "$nlist"
6199 else
6200 rm -f "$nlist"T
6203 # Make sure that we snagged all the symbols we need.
6204 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6205 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6206 cat <<EOF > conftest.$ac_ext
6207 #ifdef __cplusplus
6208 extern "C" {
6209 #endif
6212 # Now generate the symbol file.
6213 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6215 cat <<EOF >> conftest.$ac_ext
6216 #if defined (__STDC__) && __STDC__
6217 # define lt_ptr_t void *
6218 #else
6219 # define lt_ptr_t char *
6220 # define const
6221 #endif
6223 /* The mapping between symbol names and symbols. */
6224 const struct {
6225 const char *name;
6226 lt_ptr_t address;
6228 lt_preloaded_symbols[] =
6231 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6232 cat <<\EOF >> conftest.$ac_ext
6233 {0, (lt_ptr_t) 0}
6236 #ifdef __cplusplus
6238 #endif
6240 # Now try linking the two files.
6241 mv conftest.$ac_objext conftstm.$ac_objext
6242 lt_save_LIBS="$LIBS"
6243 lt_save_CFLAGS="$CFLAGS"
6244 LIBS="conftstm.$ac_objext"
6245 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6251 pipe_works=yes
6253 LIBS="$lt_save_LIBS"
6254 CFLAGS="$lt_save_CFLAGS"
6255 else
6256 echo "cannot find nm_test_func in $nlist" >&5
6258 else
6259 echo "cannot find nm_test_var in $nlist" >&5
6261 else
6262 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6264 else
6265 echo "$progname: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6268 rm -f conftest* conftst*
6270 # Do not use the global_symbol_pipe unless it works.
6271 if test "$pipe_works" = yes; then
6272 break
6273 else
6274 lt_cv_sys_global_symbol_pipe=
6276 done
6280 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6281 lt_cv_sys_global_symbol_to_cdecl=
6283 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6284 { echo "$as_me:$LINENO: result: failed" >&5
6285 echo "${ECHO_T}failed" >&6; }
6286 else
6287 { echo "$as_me:$LINENO: result: ok" >&5
6288 echo "${ECHO_T}ok" >&6; }
6291 { echo "$as_me:$LINENO: checking for objdir" >&5
6292 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6293 if test "${lt_cv_objdir+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 rm -f .libs 2>/dev/null
6297 mkdir .libs 2>/dev/null
6298 if test -d .libs; then
6299 lt_cv_objdir=.libs
6300 else
6301 # MS-DOS does not allow filenames that begin with a dot.
6302 lt_cv_objdir=_libs
6304 rmdir .libs 2>/dev/null
6306 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6307 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6308 objdir=$lt_cv_objdir
6314 case $host_os in
6315 aix3*)
6316 # AIX sometimes has problems with the GCC collect2 program. For some
6317 # reason, if we set the COLLECT_NAMES environment variable, the problems
6318 # vanish in a puff of smoke.
6319 if test "X${COLLECT_NAMES+set}" != Xset; then
6320 COLLECT_NAMES=
6321 export COLLECT_NAMES
6324 esac
6326 # Sed substitution that helps us do robust quoting. It backslashifies
6327 # metacharacters that are still active within double-quoted strings.
6328 Xsed='sed -e s/^X//'
6329 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6331 # Same as above, but do not quote variable references.
6332 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6334 # Sed substitution to delay expansion of an escaped shell variable in a
6335 # double_quote_subst'ed string.
6336 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6338 # Sed substitution to avoid accidental globbing in evaled expressions
6339 no_glob_subst='s/\*/\\\*/g'
6341 # Constants:
6342 rm="rm -f"
6344 # Global variables:
6345 default_ofile=libtool
6346 can_build_shared=yes
6348 # All known linkers require a `.a' archive for static linking (except M$VC,
6349 # which needs '.lib').
6350 libext=a
6351 ltmain="$ac_aux_dir/ltmain.sh"
6352 ofile="$default_ofile"
6353 with_gnu_ld="$lt_cv_prog_gnu_ld"
6355 if test -n "$ac_tool_prefix"; then
6356 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6357 set dummy ${ac_tool_prefix}ar; ac_word=$2
6358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360 if test "${ac_cv_prog_AR+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 if test -n "$AR"; then
6364 ac_cv_prog_AR="$AR" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_AR="${ac_tool_prefix}ar"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6377 done
6378 done
6379 IFS=$as_save_IFS
6383 AR=$ac_cv_prog_AR
6384 if test -n "$AR"; then
6385 { echo "$as_me:$LINENO: result: $AR" >&5
6386 echo "${ECHO_T}$AR" >&6; }
6387 else
6388 { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6394 if test -z "$ac_cv_prog_AR"; then
6395 ac_ct_AR=$AR
6396 # Extract the first word of "ar", so it can be a program name with args.
6397 set dummy ar; ac_word=$2
6398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403 if test -n "$ac_ct_AR"; then
6404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_ac_ct_AR="ar"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6419 IFS=$as_save_IFS
6423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6424 if test -n "$ac_ct_AR"; then
6425 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6426 echo "${ECHO_T}$ac_ct_AR" >&6; }
6427 else
6428 { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6432 if test "x$ac_ct_AR" = x; then
6433 AR="false"
6434 else
6435 case $cross_compiling:$ac_tool_warned in
6436 yes:)
6437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet. If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&5
6440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6441 whose name does not start with the host triplet. If you think this
6442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6443 ac_tool_warned=yes ;;
6444 esac
6445 AR=$ac_ct_AR
6447 else
6448 AR="$ac_cv_prog_AR"
6451 if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_prog_RANLIB+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459 if test -n "$RANLIB"; then
6460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 RANLIB=$ac_cv_prog_RANLIB
6480 if test -n "$RANLIB"; then
6481 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6482 echo "${ECHO_T}$RANLIB" >&6; }
6483 else
6484 { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6490 if test -z "$ac_cv_prog_RANLIB"; then
6491 ac_ct_RANLIB=$RANLIB
6492 # Extract the first word of "ranlib", so it can be a program name with args.
6493 set dummy ranlib; ac_word=$2
6494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 if test -n "$ac_ct_RANLIB"; then
6500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_ac_ct_RANLIB="ranlib"
6510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6520 if test -n "$ac_ct_RANLIB"; then
6521 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6522 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6523 else
6524 { echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6; }
6528 if test "x$ac_ct_RANLIB" = x; then
6529 RANLIB=":"
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6534 whose name does not start with the host triplet. If you think this
6535 configuration is useful to you, please write to autoconf@gnu.org." >&5
6536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6537 whose name does not start with the host triplet. If you think this
6538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 RANLIB=$ac_ct_RANLIB
6543 else
6544 RANLIB="$ac_cv_prog_RANLIB"
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}strip; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_prog_STRIP+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 if test -n "$STRIP"; then
6556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6569 done
6570 done
6571 IFS=$as_save_IFS
6575 STRIP=$ac_cv_prog_STRIP
6576 if test -n "$STRIP"; then
6577 { echo "$as_me:$LINENO: result: $STRIP" >&5
6578 echo "${ECHO_T}$STRIP" >&6; }
6579 else
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6586 if test -z "$ac_cv_prog_STRIP"; then
6587 ac_ct_STRIP=$STRIP
6588 # Extract the first word of "strip", so it can be a program name with args.
6589 set dummy strip; ac_word=$2
6590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6592 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595 if test -n "$ac_ct_STRIP"; then
6596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_ac_ct_STRIP="strip"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6616 if test -n "$ac_ct_STRIP"; then
6617 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6618 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6619 else
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6624 if test "x$ac_ct_STRIP" = x; then
6625 STRIP=":"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6630 whose name does not start with the host triplet. If you think this
6631 configuration is useful to you, please write to autoconf@gnu.org." >&5
6632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6633 whose name does not start with the host triplet. If you think this
6634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6635 ac_tool_warned=yes ;;
6636 esac
6637 STRIP=$ac_ct_STRIP
6639 else
6640 STRIP="$ac_cv_prog_STRIP"
6644 old_CC="$CC"
6645 old_CFLAGS="$CFLAGS"
6647 # Set sane defaults for various variables
6648 test -z "$AR" && AR=ar
6649 test -z "$AR_FLAGS" && AR_FLAGS=cru
6650 test -z "$AS" && AS=as
6651 test -z "$CC" && CC=cc
6652 test -z "$LTCC" && LTCC=$CC
6653 test -z "$DLLTOOL" && DLLTOOL=dlltool
6654 test -z "$LD" && LD=ld
6655 test -z "$LN_S" && LN_S="ln -s"
6656 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6657 test -z "$NM" && NM=nm
6658 test -z "$SED" && SED=sed
6659 test -z "$OBJDUMP" && OBJDUMP=objdump
6660 test -z "$RANLIB" && RANLIB=:
6661 test -z "$STRIP" && STRIP=:
6662 test -z "$ac_objext" && ac_objext=o
6664 # Determine commands to create old-style static archives.
6665 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6666 old_postinstall_cmds='chmod 644 $oldlib'
6667 old_postuninstall_cmds=
6669 if test -n "$RANLIB"; then
6670 case $host_os in
6671 openbsd*)
6672 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6675 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6677 esac
6678 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6681 # Only perform the check for file, if the check method requires it
6682 case $deplibs_check_method in
6683 file_magic*)
6684 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6685 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6686 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6687 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 case $MAGIC_CMD in
6691 [\\/*] | ?:[\\/]*)
6692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6695 lt_save_MAGIC_CMD="$MAGIC_CMD"
6696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6698 for ac_dir in $ac_dummy; do
6699 IFS="$lt_save_ifs"
6700 test -z "$ac_dir" && ac_dir=.
6701 if test -f $ac_dir/${ac_tool_prefix}file; then
6702 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6703 if test -n "$file_magic_test_file"; then
6704 case $deplibs_check_method in
6705 "file_magic "*)
6706 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6709 $EGREP "$file_magic_regex" > /dev/null; then
6711 else
6712 cat <<EOF 1>&2
6714 *** Warning: the command libtool uses to detect shared libraries,
6715 *** $file_magic_cmd, produces output that libtool cannot recognize.
6716 *** The result is that libtool may fail to recognize shared libraries
6717 *** as such. This will affect the creation of libtool libraries that
6718 *** depend on shared libraries, but programs linked with such libtool
6719 *** libraries will work regardless of this problem. Nevertheless, you
6720 *** may want to report the problem to your system manager and/or to
6721 *** bug-libtool@gnu.org
6724 fi ;;
6725 esac
6727 break
6729 done
6730 IFS="$lt_save_ifs"
6731 MAGIC_CMD="$lt_save_MAGIC_CMD"
6733 esac
6736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6737 if test -n "$MAGIC_CMD"; then
6738 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6739 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6740 else
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6745 if test -z "$lt_cv_path_MAGIC_CMD"; then
6746 if test -n "$ac_tool_prefix"; then
6747 { echo "$as_me:$LINENO: checking for file" >&5
6748 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6749 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752 case $MAGIC_CMD in
6753 [\\/*] | ?:[\\/]*)
6754 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6757 lt_save_MAGIC_CMD="$MAGIC_CMD"
6758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6760 for ac_dir in $ac_dummy; do
6761 IFS="$lt_save_ifs"
6762 test -z "$ac_dir" && ac_dir=.
6763 if test -f $ac_dir/file; then
6764 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6765 if test -n "$file_magic_test_file"; then
6766 case $deplibs_check_method in
6767 "file_magic "*)
6768 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6771 $EGREP "$file_magic_regex" > /dev/null; then
6773 else
6774 cat <<EOF 1>&2
6776 *** Warning: the command libtool uses to detect shared libraries,
6777 *** $file_magic_cmd, produces output that libtool cannot recognize.
6778 *** The result is that libtool may fail to recognize shared libraries
6779 *** as such. This will affect the creation of libtool libraries that
6780 *** depend on shared libraries, but programs linked with such libtool
6781 *** libraries will work regardless of this problem. Nevertheless, you
6782 *** may want to report the problem to your system manager and/or to
6783 *** bug-libtool@gnu.org
6786 fi ;;
6787 esac
6789 break
6791 done
6792 IFS="$lt_save_ifs"
6793 MAGIC_CMD="$lt_save_MAGIC_CMD"
6795 esac
6798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6799 if test -n "$MAGIC_CMD"; then
6800 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6801 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6802 else
6803 { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6807 else
6808 MAGIC_CMD=:
6814 esac
6816 enable_dlopen=no
6817 enable_win32_dll=no
6819 # Check whether --enable-libtool-lock was given.
6820 if test "${enable_libtool_lock+set}" = set; then
6821 enableval=$enable_libtool_lock;
6824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6827 # Check whether --with-pic was given.
6828 if test "${with_pic+set}" = set; then
6829 withval=$with_pic; pic_mode="$withval"
6830 else
6831 pic_mode=default
6834 test -z "$pic_mode" && pic_mode=default
6836 # Use C for the default configuration in the libtool script
6837 tagname=
6838 lt_save_CC="$CC"
6839 ac_ext=c
6840 ac_cpp='$CPP $CPPFLAGS'
6841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 # Source file extension for C test sources.
6847 ac_ext=c
6849 # Object file extension for compiled C test sources.
6850 objext=o
6851 objext=$objext
6853 # Code to be used in simple compile tests
6854 lt_simple_compile_test_code="int some_variable = 0;\n"
6856 # Code to be used in simple link tests
6857 lt_simple_link_test_code='int main(){return(0);}\n'
6860 # If no C compiler was specified, use CC.
6861 LTCC=${LTCC-"$CC"}
6863 # Allow CC to be a program name with arguments.
6864 compiler=$CC
6868 # Check for any special shared library compilation flags.
6870 lt_prog_cc_shlib=
6871 if test "$GCC" = no; then
6872 case $host_os in
6873 sco3.2v5*)
6874 lt_prog_cc_shlib='-belf'
6876 esac
6878 if test -n "$lt_prog_cc_shlib"; then
6879 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6880 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6881 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6882 else
6883 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6884 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6885 lt_cv_prog_cc_can_build_shared=no
6891 # Check to make sure the static flag actually works.
6893 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6894 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6895 if test "${lt_prog_compiler_static_works+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 lt_prog_compiler_static_works=no
6899 save_LDFLAGS="$LDFLAGS"
6900 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6901 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6903 # The compiler can only warn and ignore the option if not recognized
6904 # So say no if there are warnings
6905 if test -s conftest.err; then
6906 # Append any errors to the config.log.
6907 cat conftest.err 1>&5
6908 else
6909 lt_prog_compiler_static_works=yes
6912 $rm conftest*
6913 LDFLAGS="$save_LDFLAGS"
6916 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6917 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6919 if test x"$lt_prog_compiler_static_works" = xyes; then
6921 else
6922 lt_prog_compiler_static=
6928 lt_prog_compiler_no_builtin_flag=
6930 if test "$GCC" = yes; then
6931 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6934 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6935 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6936 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 lt_cv_prog_compiler_rtti_exceptions=no
6940 ac_outfile=conftest.$ac_objext
6941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6942 lt_compiler_flag="-fno-rtti -fno-exceptions"
6943 # Insert the option either (1) after the last *FLAGS variable, or
6944 # (2) before a word containing "conftest.", or (3) at the end.
6945 # Note that $ac_compile itself does not contain backslashes and begins
6946 # with a dollar sign (not a hyphen), so the echo should work correctly.
6947 # The option is referenced via a variable to avoid confusing sed.
6948 lt_compile=`echo "$ac_compile" | $SED \
6949 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6951 -e 's:$: $lt_compiler_flag:'`
6952 (eval echo "\"\$as_me:6952: $lt_compile\"" >&5)
6953 (eval "$lt_compile" 2>conftest.err)
6954 ac_status=$?
6955 cat conftest.err >&5
6956 echo "$as_me:6956: \$? = $ac_status" >&5
6957 if (exit $ac_status) && test -s "$ac_outfile"; then
6958 # The compiler can only warn and ignore the option if not recognized
6959 # So say no if there are warnings
6960 if test ! -s conftest.err; then
6961 lt_cv_prog_compiler_rtti_exceptions=yes
6964 $rm conftest*
6967 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6968 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6970 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6971 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6972 else
6978 lt_prog_compiler_wl=
6979 lt_prog_compiler_pic=
6980 lt_prog_compiler_static=
6982 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6983 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6985 if test "$GCC" = yes; then
6986 lt_prog_compiler_wl='-Wl,'
6987 lt_prog_compiler_static='-static'
6989 case $host_os in
6990 aix*)
6991 # All AIX code is PIC.
6992 if test "$host_cpu" = ia64; then
6993 # AIX 5 now supports IA64 processor
6994 lt_prog_compiler_static='-Bstatic'
6998 amigaos*)
6999 # FIXME: we need at least 68020 code to build shared libraries, but
7000 # adding the `-m68020' flag to GCC prevents building anything better,
7001 # like `-m68040'.
7002 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7005 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7006 # PIC is the default for these OSes.
7009 mingw* | pw32* | os2*)
7010 # This hack is so that the source file can tell whether it is being
7011 # built for inclusion in a dll (and should export symbols for example).
7012 lt_prog_compiler_pic='-DDLL_EXPORT'
7015 darwin* | rhapsody*)
7016 # PIC is the default on this platform
7017 # Common symbols not allowed in MH_DYLIB files
7018 lt_prog_compiler_pic='-fno-common'
7021 msdosdjgpp*)
7022 # Just because we use GCC doesn't mean we suddenly get shared libraries
7023 # on systems that don't support them.
7024 lt_prog_compiler_can_build_shared=no
7025 enable_shared=no
7028 sysv4*MP*)
7029 if test -d /usr/nec; then
7030 lt_prog_compiler_pic=-Kconform_pic
7034 hpux*)
7035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7036 # not for PA HP-UX.
7037 case "$host_cpu" in
7038 hppa*64*|ia64*)
7039 # +Z the default
7042 lt_prog_compiler_pic='-fPIC'
7044 esac
7048 lt_prog_compiler_pic='-fPIC'
7050 esac
7051 else
7052 # PORTME Check for flag to pass linker flags through the system compiler.
7053 case $host_os in
7054 aix*)
7055 lt_prog_compiler_wl='-Wl,'
7056 if test "$host_cpu" = ia64; then
7057 # AIX 5 now supports IA64 processor
7058 lt_prog_compiler_static='-Bstatic'
7059 else
7060 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7064 mingw* | pw32* | os2*)
7065 # This hack is so that the source file can tell whether it is being
7066 # built for inclusion in a dll (and should export symbols for example).
7067 lt_prog_compiler_pic='-DDLL_EXPORT'
7070 hpux9* | hpux10* | hpux11*)
7071 lt_prog_compiler_wl='-Wl,'
7072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7073 # not for PA HP-UX.
7074 case "$host_cpu" in
7075 hppa*64*|ia64*)
7076 # +Z the default
7079 lt_prog_compiler_pic='+Z'
7081 esac
7082 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7083 lt_prog_compiler_static='${wl}-a ${wl}archive'
7086 irix5* | irix6* | nonstopux*)
7087 lt_prog_compiler_wl='-Wl,'
7088 # PIC (with -KPIC) is the default.
7089 lt_prog_compiler_static='-non_shared'
7092 newsos6)
7093 lt_prog_compiler_pic='-KPIC'
7094 lt_prog_compiler_static='-Bstatic'
7097 linux*)
7098 case $CC in
7099 icc* | ecc*)
7100 lt_prog_compiler_wl='-Wl,'
7101 lt_prog_compiler_pic='-KPIC'
7102 lt_prog_compiler_static='-static'
7104 ccc*)
7105 lt_prog_compiler_wl='-Wl,'
7106 # All Alpha code is PIC.
7107 lt_prog_compiler_static='-non_shared'
7109 esac
7112 osf3* | osf4* | osf5*)
7113 lt_prog_compiler_wl='-Wl,'
7114 # All OSF/1 code is PIC.
7115 lt_prog_compiler_static='-non_shared'
7118 sco3.2v5*)
7119 lt_prog_compiler_pic='-Kpic'
7120 lt_prog_compiler_static='-dn'
7123 solaris*)
7124 lt_prog_compiler_wl='-Wl,'
7125 lt_prog_compiler_pic='-KPIC'
7126 lt_prog_compiler_static='-Bstatic'
7129 sunos4*)
7130 lt_prog_compiler_wl='-Qoption ld '
7131 lt_prog_compiler_pic='-PIC'
7132 lt_prog_compiler_static='-Bstatic'
7135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7136 lt_prog_compiler_wl='-Wl,'
7137 lt_prog_compiler_pic='-KPIC'
7138 lt_prog_compiler_static='-Bstatic'
7141 sysv4*MP*)
7142 if test -d /usr/nec ;then
7143 lt_prog_compiler_pic='-Kconform_pic'
7144 lt_prog_compiler_static='-Bstatic'
7148 uts4*)
7149 lt_prog_compiler_pic='-pic'
7150 lt_prog_compiler_static='-Bstatic'
7154 lt_prog_compiler_can_build_shared=no
7156 esac
7159 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7160 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7163 # Check to make sure the PIC flag actually works.
7165 if test -n "$lt_prog_compiler_pic"; then
7167 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7168 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7169 if test "${lt_prog_compiler_pic_works+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 lt_prog_compiler_pic_works=no
7173 ac_outfile=conftest.$ac_objext
7174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7175 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7176 # Insert the option either (1) after the last *FLAGS variable, or
7177 # (2) before a word containing "conftest.", or (3) at the end.
7178 # Note that $ac_compile itself does not contain backslashes and begins
7179 # with a dollar sign (not a hyphen), so the echo should work correctly.
7180 # The option is referenced via a variable to avoid confusing sed.
7181 lt_compile=`echo "$ac_compile" | $SED \
7182 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7184 -e 's:$: $lt_compiler_flag:'`
7185 (eval echo "\"\$as_me:7185: $lt_compile\"" >&5)
7186 (eval "$lt_compile" 2>conftest.err)
7187 ac_status=$?
7188 cat conftest.err >&5
7189 echo "$as_me:7189: \$? = $ac_status" >&5
7190 if (exit $ac_status) && test -s "$ac_outfile"; then
7191 # The compiler can only warn and ignore the option if not recognized
7192 # So say no if there are warnings
7193 if test ! -s conftest.err; then
7194 lt_prog_compiler_pic_works=yes
7197 $rm conftest*
7200 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7201 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7203 if test x"$lt_prog_compiler_pic_works" = xyes; then
7204 case $lt_prog_compiler_pic in
7205 "" | " "*) ;;
7206 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7207 esac
7208 else
7209 lt_prog_compiler_pic=
7210 lt_prog_compiler_can_build_shared=no
7214 case "$host_os" in
7215 # For platforms which do not support PIC, -DPIC is meaningless:
7216 *djgpp*)
7217 lt_prog_compiler_pic=
7220 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7222 esac
7224 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7225 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7226 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 lt_cv_prog_compiler_c_o=no
7230 $rm -r conftest 2>/dev/null
7231 mkdir conftest
7232 cd conftest
7233 mkdir out
7234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7236 lt_compiler_flag="-o out/conftest2.$ac_objext"
7237 # Insert the option either (1) after the last *FLAGS variable, or
7238 # (2) before a word containing "conftest.", or (3) at the end.
7239 # Note that $ac_compile itself does not contain backslashes and begins
7240 # with a dollar sign (not a hyphen), so the echo should work correctly.
7241 lt_compile=`echo "$ac_compile" | $SED \
7242 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7244 -e 's:$: $lt_compiler_flag:'`
7245 (eval echo "\"\$as_me:7245: $lt_compile\"" >&5)
7246 (eval "$lt_compile" 2>out/conftest.err)
7247 ac_status=$?
7248 cat out/conftest.err >&5
7249 echo "$as_me:7249: \$? = $ac_status" >&5
7250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7251 then
7252 # The compiler can only warn and ignore the option if not recognized
7253 # So say no if there are warnings
7254 if test ! -s out/conftest.err; then
7255 lt_cv_prog_compiler_c_o=yes
7258 chmod u+w .
7259 $rm conftest*
7260 # SGI C++ compiler will create directory out/ii_files/ for
7261 # template instantiation
7262 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7263 $rm out/* && rmdir out
7264 cd ..
7265 rmdir conftest
7266 $rm conftest*
7269 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7270 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7273 hard_links="nottested"
7274 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7275 # do not overwrite the value of need_locks provided by the user
7276 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7278 hard_links=yes
7279 $rm conftest*
7280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7281 touch conftest.a
7282 ln conftest.a conftest.b 2>&5 || hard_links=no
7283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7284 { echo "$as_me:$LINENO: result: $hard_links" >&5
7285 echo "${ECHO_T}$hard_links" >&6; }
7286 if test "$hard_links" = no; then
7287 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7289 need_locks=warn
7291 else
7292 need_locks=no
7295 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7298 runpath_var=
7299 allow_undefined_flag=
7300 enable_shared_with_static_runtimes=no
7301 archive_cmds=
7302 archive_expsym_cmds=
7303 old_archive_From_new_cmds=
7304 old_archive_from_expsyms_cmds=
7305 export_dynamic_flag_spec=
7306 whole_archive_flag_spec=
7307 thread_safe_flag_spec=
7308 hardcode_libdir_flag_spec=
7309 hardcode_libdir_flag_spec_ld=
7310 hardcode_libdir_separator=
7311 hardcode_direct=no
7312 hardcode_minus_L=no
7313 hardcode_shlibpath_var=unsupported
7314 link_all_deplibs=unknown
7315 hardcode_automatic=no
7316 module_cmds=
7317 module_expsym_cmds=
7318 always_export_symbols=no
7319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7320 # include_expsyms should be a list of space-separated symbols to be *always*
7321 # included in the symbol list
7322 include_expsyms=
7323 # exclude_expsyms can be an extended regexp of symbols to exclude
7324 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7325 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7326 # as well as any symbol that contains `d'.
7327 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7329 # platforms (ab)use it in PIC code, but their linkers get confused if
7330 # the symbol is explicitly referenced. Since portable code cannot
7331 # rely on this symbol name, it's probably fine to never include it in
7332 # preloaded symbol tables.
7333 extract_expsyms_cmds=
7335 case $host_os in
7336 cygwin* | mingw* | pw32*)
7337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7338 # When not using gcc, we currently assume that we are using
7339 # Microsoft Visual C++.
7340 if test "$GCC" != yes; then
7341 with_gnu_ld=no
7344 openbsd*)
7345 with_gnu_ld=no
7347 esac
7349 ld_shlibs=yes
7350 if test "$with_gnu_ld" = yes; then
7351 # If archive_cmds runs LD, not CC, wlarc should be empty
7352 wlarc='${wl}'
7354 # See if GNU ld supports shared libraries.
7355 case $host_os in
7356 aix3* | aix4* | aix5*)
7357 # On AIX/PPC, the GNU linker is very broken
7358 if test "$host_cpu" != ia64; then
7359 ld_shlibs=no
7360 cat <<EOF 1>&2
7362 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7363 *** to be unable to reliably create shared libraries on AIX.
7364 *** Therefore, libtool is disabling shared libraries support. If you
7365 *** really care for shared libraries, you may want to modify your PATH
7366 *** so that a non-GNU linker is found, and then restart.
7372 amigaos*)
7373 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)'
7374 hardcode_libdir_flag_spec='-L$libdir'
7375 hardcode_minus_L=yes
7377 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7378 # that the semantics of dynamic libraries on AmigaOS, at least up
7379 # to version 4, is to share data among multiple programs linked
7380 # with the same dynamic library. Since this doesn't match the
7381 # behavior of shared libraries on other platforms, we can't use
7382 # them.
7383 ld_shlibs=no
7386 beos*)
7387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7388 allow_undefined_flag=unsupported
7389 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7390 # support --undefined. This deserves some investigation. FIXME
7391 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7392 else
7393 ld_shlibs=no
7397 cygwin* | mingw* | pw32*)
7398 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7399 # as there is no search path for DLLs.
7400 hardcode_libdir_flag_spec='-L$libdir'
7401 allow_undefined_flag=unsupported
7402 always_export_symbols=no
7403 enable_shared_with_static_runtimes=yes
7404 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7406 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7408 # If the export-symbols file already is a .def file (1st line
7409 # is EXPORTS), use it as is; otherwise, prepend...
7410 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7411 cp $export_symbols $output_objdir/$soname.def;
7412 else
7413 echo EXPORTS > $output_objdir/$soname.def;
7414 cat $export_symbols >> $output_objdir/$soname.def;
7416 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7417 else
7418 ld_shlibs=no
7422 netbsd*)
7423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7424 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7425 wlarc=
7426 else
7427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7432 solaris* | sysv5*)
7433 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7434 ld_shlibs=no
7435 cat <<EOF 1>&2
7437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7438 *** create shared libraries on Solaris systems. Therefore, libtool
7439 *** is disabling shared libraries support. We urge you to upgrade GNU
7440 *** binutils to release 2.9.1 or newer. Another option is to modify
7441 *** your PATH or compiler configuration so that the native linker is
7442 *** used, and then restart.
7445 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7448 else
7449 ld_shlibs=no
7453 sunos4*)
7454 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7455 wlarc=
7456 hardcode_direct=yes
7457 hardcode_shlibpath_var=no
7460 linux*)
7461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7462 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7463 archive_cmds="$tmp_archive_cmds"
7464 supports_anon_versioning=no
7465 case `$LD -v 2>/dev/null` in
7466 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7467 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7468 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7469 *\ 2.11.*) ;; # other 2.11 versions
7470 *) supports_anon_versioning=yes ;;
7471 esac
7472 if test $supports_anon_versioning = yes; then
7473 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7475 $echo "local: *; };" >> $output_objdir/$libname.ver~
7476 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7477 else
7478 archive_expsym_cmds="$tmp_archive_cmds"
7480 else
7481 ld_shlibs=no
7486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489 else
7490 ld_shlibs=no
7493 esac
7495 if test "$ld_shlibs" = yes; then
7496 runpath_var=LD_RUN_PATH
7497 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7498 export_dynamic_flag_spec='${wl}--export-dynamic'
7499 # ancient GNU ld didn't support --whole-archive et. al.
7500 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7501 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7502 else
7503 whole_archive_flag_spec=
7506 else
7507 # PORTME fill in a description of your system's linker (not GNU ld)
7508 case $host_os in
7509 aix3*)
7510 allow_undefined_flag=unsupported
7511 always_export_symbols=yes
7512 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'
7513 # Note: this linker hardcodes the directories in LIBPATH if there
7514 # are no directories specified by -L.
7515 hardcode_minus_L=yes
7516 if test "$GCC" = yes && test -z "$link_static_flag"; then
7517 # Neither direct hardcoding nor static linking is supported with a
7518 # broken collect2.
7519 hardcode_direct=unsupported
7523 aix4* | aix5*)
7524 if test "$host_cpu" = ia64; then
7525 # On IA64, the linker does run time linking by default, so we don't
7526 # have to do anything special.
7527 aix_use_runtimelinking=no
7528 exp_sym_flag='-Bexport'
7529 no_entry_flag=""
7530 else
7531 # If we're using GNU nm, then we don't want the "-C" option.
7532 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7533 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7534 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'
7535 else
7536 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'
7538 aix_use_runtimelinking=no
7540 # Test if we are trying to use run time linking or normal
7541 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7542 # need to do runtime linking.
7543 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7544 for ld_flag in $LDFLAGS; do
7545 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7546 aix_use_runtimelinking=yes
7547 break
7549 done
7550 esac
7552 exp_sym_flag='-bexport'
7553 no_entry_flag='-bnoentry'
7556 # When large executables or shared objects are built, AIX ld can
7557 # have problems creating the table of contents. If linking a library
7558 # or program results in "error TOC overflow" add -mminimal-toc to
7559 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7560 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7562 archive_cmds=''
7563 hardcode_direct=yes
7564 hardcode_libdir_separator=':'
7565 link_all_deplibs=yes
7567 if test "$GCC" = yes; then
7568 case $host_os in aix4.012|aix4.012.*)
7569 # We only want to do this on AIX 4.2 and lower, the check
7570 # below for broken collect2 doesn't work under 4.3+
7571 collect2name=`${CC} -print-prog-name=collect2`
7572 if test -f "$collect2name" && \
7573 strings "$collect2name" | grep resolve_lib_name >/dev/null
7574 then
7575 # We have reworked collect2
7576 hardcode_direct=yes
7577 else
7578 # We have old collect2
7579 hardcode_direct=unsupported
7580 # It fails to find uninstalled libraries when the uninstalled
7581 # path is not listed in the libpath. Setting hardcode_minus_L
7582 # to unsupported forces relinking
7583 hardcode_minus_L=yes
7584 hardcode_libdir_flag_spec='-L$libdir'
7585 hardcode_libdir_separator=
7587 esac
7588 shared_flag='-shared'
7589 else
7590 # not using gcc
7591 if test "$host_cpu" = ia64; then
7592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7593 # chokes on -Wl,-G. The following line is correct:
7594 shared_flag='-G'
7595 else
7596 if test "$aix_use_runtimelinking" = yes; then
7597 shared_flag='${wl}-G'
7598 else
7599 shared_flag='${wl}-bM:SRE'
7604 # It seems that -bexpall does not export symbols beginning with
7605 # underscore (_), so it is better to generate a list of symbols to export.
7606 always_export_symbols=yes
7607 if test "$aix_use_runtimelinking" = yes; then
7608 # Warning - without using the other runtime loading flags (-brtl),
7609 # -berok will link without error, but may produce a broken library.
7610 allow_undefined_flag='-berok'
7611 # Determine the default libpath from the value encoded in an empty executable.
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7620 main ()
7624 return 0;
7626 _ACEOF
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (ac_try="$ac_link"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_link") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest$ac_exeext &&
7644 $as_test_x conftest$ac_exeext; then
7646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7648 # Check for a 64-bit object if we didn't find anything.
7649 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7650 }'`; fi
7651 else
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7659 conftest$ac_exeext conftest.$ac_ext
7660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7663 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7664 else
7665 if test "$host_cpu" = ia64; then
7666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7667 allow_undefined_flag="-z nodefs"
7668 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7669 else
7670 # Determine the default libpath from the value encoded in an empty executable.
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7679 main ()
7683 return 0;
7685 _ACEOF
7686 rm -f conftest.$ac_objext conftest$ac_exeext
7687 if { (ac_try="$ac_link"
7688 case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7691 esac
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_link") 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && {
7700 test -z "$ac_c_werror_flag" ||
7701 test ! -s conftest.err
7702 } && test -s conftest$ac_exeext &&
7703 $as_test_x conftest$ac_exeext; then
7705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7707 # Check for a 64-bit object if we didn't find anything.
7708 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7709 }'`; fi
7710 else
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7718 conftest$ac_exeext conftest.$ac_ext
7719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7721 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7722 # Warning - without using the other run time loading flags,
7723 # -berok will link without error, but may produce a broken library.
7724 no_undefined_flag=' ${wl}-bernotok'
7725 allow_undefined_flag=' ${wl}-berok'
7726 # -bexpall does not export symbols beginning with underscore (_)
7727 always_export_symbols=yes
7728 # Exported symbols can be pulled into shared objects from archives
7729 whole_archive_flag_spec=' '
7730 archive_cmds_need_lc=yes
7731 # This is similar to how AIX traditionally builds it's shared libraries.
7732 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7737 amigaos*)
7738 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)'
7739 hardcode_libdir_flag_spec='-L$libdir'
7740 hardcode_minus_L=yes
7741 # see comment about different semantics on the GNU ld section
7742 ld_shlibs=no
7745 bsdi4*)
7746 export_dynamic_flag_spec=-rdynamic
7749 cygwin* | mingw* | pw32*)
7750 # When not using gcc, we currently assume that we are using
7751 # Microsoft Visual C++.
7752 # hardcode_libdir_flag_spec is actually meaningless, as there is
7753 # no search path for DLLs.
7754 hardcode_libdir_flag_spec=' '
7755 allow_undefined_flag=unsupported
7756 # Tell ltmain to make .lib files, not .a files.
7757 libext=lib
7758 # Tell ltmain to make .dll files, not .so files.
7759 shrext_cmds=".dll"
7760 # FIXME: Setting linknames here is a bad hack.
7761 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7762 # The linker will automatically build a .lib file if we build a DLL.
7763 old_archive_From_new_cmds='true'
7764 # FIXME: Should let the user specify the lib program.
7765 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7766 fix_srcfile_path='`cygpath -w "$srcfile"`'
7767 enable_shared_with_static_runtimes=yes
7770 darwin* | rhapsody*)
7771 if test "$GXX" = yes ; then
7772 archive_cmds_need_lc=no
7773 case "$host_os" in
7774 rhapsody* | darwin1.[012])
7775 allow_undefined_flag='-undefined suppress'
7777 *) # Darwin 1.3 on
7778 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7779 allow_undefined_flag='-flat_namespace -undefined suppress'
7780 else
7781 case ${MACOSX_DEPLOYMENT_TARGET} in
7782 10.[012])
7783 allow_undefined_flag='-flat_namespace -undefined suppress'
7785 10.*)
7786 allow_undefined_flag='-undefined dynamic_lookup'
7788 esac
7791 esac
7792 lt_int_apple_cc_single_mod=no
7793 output_verbose_link_cmd='echo'
7794 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7795 lt_int_apple_cc_single_mod=yes
7797 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7798 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7799 else
7800 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7802 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7804 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7805 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7806 else
7807 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7809 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}'
7810 hardcode_direct=no
7811 hardcode_automatic=yes
7812 hardcode_shlibpath_var=unsupported
7813 whole_archive_flag_spec='-all_load $convenience'
7814 link_all_deplibs=yes
7815 else
7816 ld_shlibs=no
7820 dgux*)
7821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7822 hardcode_libdir_flag_spec='-L$libdir'
7823 hardcode_shlibpath_var=no
7826 freebsd1*)
7827 ld_shlibs=no
7830 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7831 # support. Future versions do this automatically, but an explicit c++rt0.o
7832 # does not break anything, and helps significantly (at the cost of a little
7833 # extra space).
7834 freebsd2.2*)
7835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7836 hardcode_libdir_flag_spec='-R$libdir'
7837 hardcode_direct=yes
7838 hardcode_shlibpath_var=no
7841 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7842 freebsd2*)
7843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7844 hardcode_direct=yes
7845 hardcode_minus_L=yes
7846 hardcode_shlibpath_var=no
7849 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7850 freebsd* | kfreebsd*-gnu)
7851 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7852 hardcode_libdir_flag_spec='-R$libdir'
7853 hardcode_direct=yes
7854 hardcode_shlibpath_var=no
7857 hpux9*)
7858 if test "$GCC" = yes; then
7859 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'
7860 else
7861 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'
7863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7864 hardcode_libdir_separator=:
7865 hardcode_direct=yes
7867 # hardcode_minus_L: Not really in the search PATH,
7868 # but as the default location of the library.
7869 hardcode_minus_L=yes
7870 export_dynamic_flag_spec='${wl}-E'
7873 hpux10* | hpux11*)
7874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7875 case "$host_cpu" in
7876 hppa*64*|ia64*)
7877 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7880 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7882 esac
7883 else
7884 case "$host_cpu" in
7885 hppa*64*|ia64*)
7886 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7889 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7891 esac
7893 if test "$with_gnu_ld" = no; then
7894 case "$host_cpu" in
7895 hppa*64*)
7896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7897 hardcode_libdir_flag_spec_ld='+b $libdir'
7898 hardcode_libdir_separator=:
7899 hardcode_direct=no
7900 hardcode_shlibpath_var=no
7902 ia64*)
7903 hardcode_libdir_flag_spec='-L$libdir'
7904 hardcode_direct=no
7905 hardcode_shlibpath_var=no
7907 # hardcode_minus_L: Not really in the search PATH,
7908 # but as the default location of the library.
7909 hardcode_minus_L=yes
7912 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7913 hardcode_libdir_separator=:
7914 hardcode_direct=yes
7915 export_dynamic_flag_spec='${wl}-E'
7917 # hardcode_minus_L: Not really in the search PATH,
7918 # but as the default location of the library.
7919 hardcode_minus_L=yes
7921 esac
7925 irix5* | irix6* | nonstopux*)
7926 if test "$GCC" = yes; then
7927 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'
7928 else
7929 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'
7930 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933 hardcode_libdir_separator=:
7934 link_all_deplibs=yes
7937 netbsd*)
7938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7940 else
7941 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7943 hardcode_libdir_flag_spec='-R$libdir'
7944 hardcode_direct=yes
7945 hardcode_shlibpath_var=no
7948 newsos6)
7949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950 hardcode_direct=yes
7951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7952 hardcode_libdir_separator=:
7953 hardcode_shlibpath_var=no
7956 openbsd*)
7957 hardcode_direct=yes
7958 hardcode_shlibpath_var=no
7959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7960 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7961 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7962 export_dynamic_flag_spec='${wl}-E'
7963 else
7964 case $host_os in
7965 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7967 hardcode_libdir_flag_spec='-R$libdir'
7970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7973 esac
7977 os2*)
7978 hardcode_libdir_flag_spec='-L$libdir'
7979 hardcode_minus_L=yes
7980 allow_undefined_flag=unsupported
7981 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'
7982 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7985 osf3*)
7986 if test "$GCC" = yes; then
7987 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7988 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'
7989 else
7990 allow_undefined_flag=' -expect_unresolved \*'
7991 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'
7993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7994 hardcode_libdir_separator=:
7997 osf4* | osf5*) # as osf3* with the addition of -msym flag
7998 if test "$GCC" = yes; then
7999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8000 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'
8001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8002 else
8003 allow_undefined_flag=' -expect_unresolved \*'
8004 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'
8005 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8006 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8008 # Both c and cxx compiler support -rpath directly
8009 hardcode_libdir_flag_spec='-rpath $libdir'
8011 hardcode_libdir_separator=:
8014 sco3.2v5*)
8015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8016 hardcode_shlibpath_var=no
8017 export_dynamic_flag_spec='${wl}-Bexport'
8018 runpath_var=LD_RUN_PATH
8019 hardcode_runpath_var=yes
8022 solaris*)
8023 no_undefined_flag=' -z text'
8024 if test "$GCC" = yes; then
8025 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8026 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8027 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8028 else
8029 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8033 hardcode_libdir_flag_spec='-R$libdir'
8034 hardcode_shlibpath_var=no
8035 case $host_os in
8036 solaris2.[0-5] | solaris2.[0-5].*) ;;
8037 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8038 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8039 esac
8040 link_all_deplibs=yes
8043 sunos4*)
8044 if test "x$host_vendor" = xsequent; then
8045 # Use $CC to link under sequent, because it throws in some extra .o
8046 # files that make .init and .fini sections work.
8047 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8048 else
8049 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8051 hardcode_libdir_flag_spec='-L$libdir'
8052 hardcode_direct=yes
8053 hardcode_minus_L=yes
8054 hardcode_shlibpath_var=no
8057 sysv4)
8058 case $host_vendor in
8059 sni)
8060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8061 hardcode_direct=yes # is this really true???
8063 siemens)
8064 ## LD is ld it makes a PLAMLIB
8065 ## CC just makes a GrossModule.
8066 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8067 reload_cmds='$CC -r -o $output$reload_objs'
8068 hardcode_direct=no
8070 motorola)
8071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8072 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8074 esac
8075 runpath_var='LD_RUN_PATH'
8076 hardcode_shlibpath_var=no
8079 sysv4.3*)
8080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8081 hardcode_shlibpath_var=no
8082 export_dynamic_flag_spec='-Bexport'
8085 sysv4*MP*)
8086 if test -d /usr/nec; then
8087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8088 hardcode_shlibpath_var=no
8089 runpath_var=LD_RUN_PATH
8090 hardcode_runpath_var=yes
8091 ld_shlibs=yes
8095 sysv4.2uw2*)
8096 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8097 hardcode_direct=yes
8098 hardcode_minus_L=no
8099 hardcode_shlibpath_var=no
8100 hardcode_runpath_var=yes
8101 runpath_var=LD_RUN_PATH
8104 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8105 no_undefined_flag='${wl}-z ${wl}text'
8106 if test "$GCC" = yes; then
8107 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8108 else
8109 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8111 runpath_var='LD_RUN_PATH'
8112 hardcode_shlibpath_var=no
8115 sysv5*)
8116 no_undefined_flag=' -z text'
8117 # $CC -shared without GNU ld will not create a library from C++
8118 # object files and a static libstdc++, better avoid it by now
8119 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8121 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8122 hardcode_libdir_flag_spec=
8123 hardcode_shlibpath_var=no
8124 runpath_var='LD_RUN_PATH'
8127 uts4*)
8128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 hardcode_shlibpath_var=no
8134 ld_shlibs=no
8136 esac
8139 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8140 echo "${ECHO_T}$ld_shlibs" >&6; }
8141 test "$ld_shlibs" = no && can_build_shared=no
8143 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8144 if test "$GCC" = yes; then
8145 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8149 # Do we need to explicitly link libc?
8151 case "x$archive_cmds_need_lc" in
8152 x|xyes)
8153 # Assume -lc should be added
8154 archive_cmds_need_lc=yes
8156 if test "$enable_shared" = yes && test "$GCC" = yes; then
8157 case $archive_cmds in
8158 *'~'*)
8159 # FIXME: we may have to deal with multi-command sequences.
8161 '$CC '*)
8162 # Test whether the compiler implicitly links with -lc since on some
8163 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8164 # to ld, don't add -lc before -lgcc.
8165 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8166 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8167 $rm conftest*
8168 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } 2>conftest.err; then
8175 soname=conftest
8176 lib=conftest
8177 libobjs=conftest.$ac_objext
8178 deplibs=
8179 wl=$lt_prog_compiler_wl
8180 compiler_flags=-v
8181 linker_flags=-v
8182 verstring=
8183 output_objdir=.
8184 libname=conftest
8185 lt_save_allow_undefined_flag=$allow_undefined_flag
8186 allow_undefined_flag=
8187 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8188 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }
8192 then
8193 archive_cmds_need_lc=no
8194 else
8195 archive_cmds_need_lc=yes
8197 allow_undefined_flag=$lt_save_allow_undefined_flag
8198 else
8199 cat conftest.err 1>&5
8201 $rm conftest*
8202 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8203 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8205 esac
8208 esac
8210 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8211 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8212 library_names_spec=
8213 libname_spec='lib$name'
8214 soname_spec=
8215 shrext_cmds=".so"
8216 postinstall_cmds=
8217 postuninstall_cmds=
8218 finish_cmds=
8219 finish_eval=
8220 shlibpath_var=
8221 shlibpath_overrides_runpath=unknown
8222 version_type=none
8223 dynamic_linker="$host_os ld.so"
8224 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8225 if test "$GCC" = yes; then
8226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8227 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8228 # if the path contains ";" then we assume it to be the separator
8229 # otherwise default to the standard path separator (i.e. ":") - it is
8230 # assumed that no part of a normal pathname contains ";" but that should
8231 # okay in the real world where ";" in dirpaths is itself problematic.
8232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8233 else
8234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8236 else
8237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8239 need_lib_prefix=unknown
8240 hardcode_into_libs=no
8242 # when you set need_version to no, make sure it does not cause -set_version
8243 # flags to be left without arguments
8244 need_version=unknown
8246 case $host_os in
8247 aix3*)
8248 version_type=linux
8249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8250 shlibpath_var=LIBPATH
8252 # AIX 3 has no versioning support, so we append a major version to the name.
8253 soname_spec='${libname}${release}${shared_ext}$major'
8256 aix4* | aix5*)
8257 version_type=linux
8258 need_lib_prefix=no
8259 need_version=no
8260 hardcode_into_libs=yes
8261 if test "$host_cpu" = ia64; then
8262 # AIX 5 supports IA64
8263 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8264 shlibpath_var=LD_LIBRARY_PATH
8265 else
8266 # With GCC up to 2.95.x, collect2 would create an import file
8267 # for dependence libraries. The import file would start with
8268 # the line `#! .'. This would cause the generated library to
8269 # depend on `.', always an invalid library. This was fixed in
8270 # development snapshots of GCC prior to 3.0.
8271 case $host_os in
8272 aix4 | aix4.[01] | aix4.[01].*)
8273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8274 echo ' yes '
8275 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8277 else
8278 can_build_shared=no
8281 esac
8282 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8283 # soname into executable. Probably we can add versioning support to
8284 # collect2, so additional links can be useful in future.
8285 if test "$aix_use_runtimelinking" = yes; then
8286 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8287 # instead of lib<name>.a to let people know that these are not
8288 # typical AIX shared libraries.
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290 else
8291 # We preserve .a as extension for shared libraries through AIX4.2
8292 # and later when we are not doing run time linking.
8293 library_names_spec='${libname}${release}.a $libname.a'
8294 soname_spec='${libname}${release}${shared_ext}$major'
8296 shlibpath_var=LIBPATH
8300 amigaos*)
8301 library_names_spec='$libname.ixlibrary $libname.a'
8302 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8303 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'
8306 beos*)
8307 library_names_spec='${libname}${shared_ext}'
8308 dynamic_linker="$host_os ld.so"
8309 shlibpath_var=LIBRARY_PATH
8312 bsdi4*)
8313 version_type=linux
8314 need_version=no
8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8316 soname_spec='${libname}${release}${shared_ext}$major'
8317 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8318 shlibpath_var=LD_LIBRARY_PATH
8319 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8320 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8321 # the default ld.so.conf also contains /usr/contrib/lib and
8322 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8323 # libtool to hard-code these into programs
8326 cygwin* | mingw* | pw32*)
8327 version_type=windows
8328 shrext_cmds=".dll"
8329 need_version=no
8330 need_lib_prefix=no
8332 case $GCC,$host_os in
8333 yes,cygwin* | yes,mingw* | yes,pw32*)
8334 library_names_spec='$libname.dll.a'
8335 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8336 postinstall_cmds='base_file=`basename \${file}`~
8337 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8338 dldir=$destdir/`dirname \$dlpath`~
8339 test -d \$dldir || mkdir -p \$dldir~
8340 $install_prog $dir/$dlname \$dldir/$dlname'
8341 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8342 dlpath=$dir/\$dldll~
8343 $rm \$dlpath'
8344 shlibpath_overrides_runpath=yes
8346 case $host_os in
8347 cygwin*)
8348 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8349 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8350 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8352 mingw*)
8353 # MinGW DLLs use traditional 'lib' prefix
8354 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8355 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8356 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8357 # It is most probably a Windows format PATH printed by
8358 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8359 # path with ; separators, and with drive letters. We can handle the
8360 # drive letters (cygwin fileutils understands them), so leave them,
8361 # especially as we might pass files found there to a mingw objdump,
8362 # which wouldn't understand a cygwinified path. Ahh.
8363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8364 else
8365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8368 pw32*)
8369 # pw32 DLLs use 'pw' prefix rather than 'lib'
8370 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8372 esac
8376 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8378 esac
8379 dynamic_linker='Win32 ld.exe'
8380 # FIXME: first we should search . and the directory the executable is in
8381 shlibpath_var=PATH
8384 darwin* | rhapsody*)
8385 dynamic_linker="$host_os dyld"
8386 version_type=darwin
8387 need_lib_prefix=no
8388 need_version=no
8389 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8390 soname_spec='${libname}${release}${major}$shared_ext'
8391 shlibpath_overrides_runpath=yes
8392 shlibpath_var=DYLD_LIBRARY_PATH
8393 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8394 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8395 if test "$GCC" = yes; then
8396 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8397 else
8398 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8403 dgux*)
8404 version_type=linux
8405 need_lib_prefix=no
8406 need_version=no
8407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8408 soname_spec='${libname}${release}${shared_ext}$major'
8409 shlibpath_var=LD_LIBRARY_PATH
8412 freebsd1*)
8413 dynamic_linker=no
8416 kfreebsd*-gnu)
8417 version_type=linux
8418 need_lib_prefix=no
8419 need_version=no
8420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8421 soname_spec='${libname}${release}${shared_ext}$major'
8422 shlibpath_var=LD_LIBRARY_PATH
8423 shlibpath_overrides_runpath=no
8424 hardcode_into_libs=yes
8425 dynamic_linker='GNU ld.so'
8428 freebsd*)
8429 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8430 version_type=freebsd-$objformat
8431 case $version_type in
8432 freebsd-elf*)
8433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8434 need_version=no
8435 need_lib_prefix=no
8437 freebsd-*)
8438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8439 need_version=yes
8441 esac
8442 shlibpath_var=LD_LIBRARY_PATH
8443 case $host_os in
8444 freebsd2*)
8445 shlibpath_overrides_runpath=yes
8447 freebsd3.01* | freebsdelf3.01*)
8448 shlibpath_overrides_runpath=yes
8449 hardcode_into_libs=yes
8451 *) # from 3.2 on
8452 shlibpath_overrides_runpath=no
8453 hardcode_into_libs=yes
8455 esac
8458 gnu*)
8459 version_type=linux
8460 need_lib_prefix=no
8461 need_version=no
8462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 shlibpath_var=LD_LIBRARY_PATH
8465 hardcode_into_libs=yes
8468 hpux9* | hpux10* | hpux11*)
8469 # Give a soname corresponding to the major version so that dld.sl refuses to
8470 # link against other versions.
8471 version_type=sunos
8472 need_lib_prefix=no
8473 need_version=no
8474 case "$host_cpu" in
8475 ia64*)
8476 shrext_cmds='.so'
8477 hardcode_into_libs=yes
8478 dynamic_linker="$host_os dld.so"
8479 shlibpath_var=LD_LIBRARY_PATH
8480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8482 soname_spec='${libname}${release}${shared_ext}$major'
8483 if test "X$HPUX_IA64_MODE" = X32; then
8484 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8485 else
8486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8490 hppa*64*)
8491 shrext_cmds='.sl'
8492 hardcode_into_libs=yes
8493 dynamic_linker="$host_os dld.sl"
8494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8497 soname_spec='${libname}${release}${shared_ext}$major'
8498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8502 shrext_cmds='.sl'
8503 dynamic_linker="$host_os dld.sl"
8504 shlibpath_var=SHLIB_PATH
8505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8507 soname_spec='${libname}${release}${shared_ext}$major'
8509 esac
8510 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8511 postinstall_cmds='chmod 555 $lib'
8514 irix5* | irix6* | nonstopux*)
8515 case $host_os in
8516 nonstopux*) version_type=nonstopux ;;
8518 if test "$lt_cv_prog_gnu_ld" = yes; then
8519 version_type=linux
8520 else
8521 version_type=irix
8522 fi ;;
8523 esac
8524 need_lib_prefix=no
8525 need_version=no
8526 soname_spec='${libname}${release}${shared_ext}$major'
8527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8528 case $host_os in
8529 irix5* | nonstopux*)
8530 libsuff= shlibsuff=
8533 case $LD in # libtool.m4 will add one of these switches to LD
8534 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8535 libsuff= shlibsuff= libmagic=32-bit;;
8536 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8537 libsuff=32 shlibsuff=N32 libmagic=N32;;
8538 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8539 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8540 *) libsuff= shlibsuff= libmagic=never-match;;
8541 esac
8543 esac
8544 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8545 shlibpath_overrides_runpath=no
8546 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8547 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8548 hardcode_into_libs=yes
8551 # No shared lib support for Linux oldld, aout, or coff.
8552 linux*oldld* | linux*aout* | linux*coff*)
8553 dynamic_linker=no
8556 # This must be Linux ELF.
8557 linux*)
8558 version_type=linux
8559 need_lib_prefix=no
8560 need_version=no
8561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562 soname_spec='${libname}${release}${shared_ext}$major'
8563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8564 shlibpath_var=LD_LIBRARY_PATH
8565 shlibpath_overrides_runpath=no
8566 # This implies no fast_install, which is unacceptable.
8567 # Some rework will be needed to allow for fast_install
8568 # before this can be enabled.
8569 hardcode_into_libs=yes
8571 # find out which ABI we are using
8572 libsuff=
8573 case "$host_cpu" in
8574 x86_64*|s390x*|powerpc64*)
8575 echo '#line 8575 "configure"' > conftest.$ac_ext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8577 (eval $ac_compile) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; then
8581 case `/usr/bin/file conftest.$ac_objext` in
8582 *64-bit*)
8583 libsuff=64
8584 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8586 esac
8588 rm -rf conftest*
8590 esac
8592 # Append ld.so.conf contents to the search path
8593 if test -f /etc/ld.so.conf; then
8594 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8595 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8598 # We used to test for /lib/ld.so.1 and disable shared libraries on
8599 # powerpc, because MkLinux only supported shared libraries with the
8600 # GNU dynamic linker. Since this was broken with cross compilers,
8601 # most powerpc-linux boxes support dynamic linking these days and
8602 # people can always --disable-shared, the test was removed, and we
8603 # assume the GNU/Linux dynamic linker is in use.
8604 dynamic_linker='GNU/Linux ld.so'
8607 knetbsd*-gnu)
8608 version_type=linux
8609 need_lib_prefix=no
8610 need_version=no
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 shlibpath_overrides_runpath=no
8615 hardcode_into_libs=yes
8616 dynamic_linker='GNU ld.so'
8619 netbsd*)
8620 version_type=sunos
8621 need_lib_prefix=no
8622 need_version=no
8623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8626 dynamic_linker='NetBSD (a.out) ld.so'
8627 else
8628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8629 soname_spec='${libname}${release}${shared_ext}$major'
8630 dynamic_linker='NetBSD ld.elf_so'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 shlibpath_overrides_runpath=yes
8634 hardcode_into_libs=yes
8637 newsos6)
8638 version_type=linux
8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640 shlibpath_var=LD_LIBRARY_PATH
8641 shlibpath_overrides_runpath=yes
8644 nto-qnx*)
8645 version_type=linux
8646 need_lib_prefix=no
8647 need_version=no
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 shlibpath_var=LD_LIBRARY_PATH
8651 shlibpath_overrides_runpath=yes
8654 openbsd*)
8655 version_type=sunos
8656 need_lib_prefix=no
8657 need_version=yes
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8660 shlibpath_var=LD_LIBRARY_PATH
8661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662 case $host_os in
8663 openbsd2.[89] | openbsd2.[89].*)
8664 shlibpath_overrides_runpath=no
8667 shlibpath_overrides_runpath=yes
8669 esac
8670 else
8671 shlibpath_overrides_runpath=yes
8675 os2*)
8676 libname_spec='$name'
8677 shrext_cmds=".dll"
8678 need_lib_prefix=no
8679 library_names_spec='$libname${shared_ext} $libname.a'
8680 dynamic_linker='OS/2 ld.exe'
8681 shlibpath_var=LIBPATH
8684 osf3* | osf4* | osf5*)
8685 version_type=osf
8686 need_lib_prefix=no
8687 need_version=no
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8695 sco3.2v5*)
8696 version_type=osf
8697 soname_spec='${libname}${release}${shared_ext}$major'
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 shlibpath_var=LD_LIBRARY_PATH
8702 solaris*)
8703 version_type=linux
8704 need_lib_prefix=no
8705 need_version=no
8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707 soname_spec='${libname}${release}${shared_ext}$major'
8708 shlibpath_var=LD_LIBRARY_PATH
8709 shlibpath_overrides_runpath=yes
8710 hardcode_into_libs=yes
8711 # ldd complains unless libraries are executable
8712 postinstall_cmds='chmod +x $lib'
8715 sunos4*)
8716 version_type=sunos
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8719 shlibpath_var=LD_LIBRARY_PATH
8720 shlibpath_overrides_runpath=yes
8721 if test "$with_gnu_ld" = yes; then
8722 need_lib_prefix=no
8724 need_version=yes
8727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8728 version_type=linux
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8731 shlibpath_var=LD_LIBRARY_PATH
8732 case $host_vendor in
8733 sni)
8734 shlibpath_overrides_runpath=no
8735 need_lib_prefix=no
8736 export_dynamic_flag_spec='${wl}-Blargedynsym'
8737 runpath_var=LD_RUN_PATH
8739 siemens)
8740 need_lib_prefix=no
8742 motorola)
8743 need_lib_prefix=no
8744 need_version=no
8745 shlibpath_overrides_runpath=no
8746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8748 esac
8751 sysv4*MP*)
8752 if test -d /usr/nec ;then
8753 version_type=linux
8754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8755 soname_spec='$libname${shared_ext}.$major'
8756 shlibpath_var=LD_LIBRARY_PATH
8760 uts4*)
8761 version_type=linux
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8764 shlibpath_var=LD_LIBRARY_PATH
8768 dynamic_linker=no
8770 esac
8771 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8772 echo "${ECHO_T}$dynamic_linker" >&6; }
8773 test "$dynamic_linker" = no && can_build_shared=no
8775 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8776 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8777 hardcode_action=
8778 if test -n "$hardcode_libdir_flag_spec" || \
8779 test -n "$runpath_var " || \
8780 test "X$hardcode_automatic"="Xyes" ; then
8782 # We can hardcode non-existant directories.
8783 if test "$hardcode_direct" != no &&
8784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8785 # have to relink, otherwise we might link with an installed library
8786 # when we should be linking with a yet-to-be-installed one
8787 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8788 test "$hardcode_minus_L" != no; then
8789 # Linking always hardcodes the temporary library directory.
8790 hardcode_action=relink
8791 else
8792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8793 hardcode_action=immediate
8795 else
8796 # We cannot hardcode anything, or else we can only hardcode existing
8797 # directories.
8798 hardcode_action=unsupported
8800 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8801 echo "${ECHO_T}$hardcode_action" >&6; }
8803 if test "$hardcode_action" = relink; then
8804 # Fast installation is not supported
8805 enable_fast_install=no
8806 elif test "$shlibpath_overrides_runpath" = yes ||
8807 test "$enable_shared" = no; then
8808 # Fast installation is not necessary
8809 enable_fast_install=needless
8812 striplib=
8813 old_striplib=
8814 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8815 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8816 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8817 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8818 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8819 { echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6; }
8821 else
8822 # FIXME - insert some real tests, host_os isn't really good enough
8823 case $host_os in
8824 darwin*)
8825 if test -n "$STRIP" ; then
8826 striplib="$STRIP -x"
8827 { echo "$as_me:$LINENO: result: yes" >&5
8828 echo "${ECHO_T}yes" >&6; }
8829 else
8830 { echo "$as_me:$LINENO: result: no" >&5
8831 echo "${ECHO_T}no" >&6; }
8835 { echo "$as_me:$LINENO: result: no" >&5
8836 echo "${ECHO_T}no" >&6; }
8838 esac
8841 if test "x$enable_dlopen" != xyes; then
8842 enable_dlopen=unknown
8843 enable_dlopen_self=unknown
8844 enable_dlopen_self_static=unknown
8845 else
8846 lt_cv_dlopen=no
8847 lt_cv_dlopen_libs=
8849 case $host_os in
8850 beos*)
8851 lt_cv_dlopen="load_add_on"
8852 lt_cv_dlopen_libs=
8853 lt_cv_dlopen_self=yes
8856 mingw* | pw32*)
8857 lt_cv_dlopen="LoadLibrary"
8858 lt_cv_dlopen_libs=
8861 cygwin*)
8862 lt_cv_dlopen="dlopen"
8863 lt_cv_dlopen_libs=
8866 darwin*)
8867 # if libdl is installed we need to link against it
8868 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8869 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8870 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873 ac_check_lib_save_LIBS=$LIBS
8874 LIBS="-ldl $LIBS"
8875 cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h. */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8882 /* Override any GCC internal prototype to avoid an error.
8883 Use char because int might match the return type of a GCC
8884 builtin and then its argument prototype would still apply. */
8885 #ifdef __cplusplus
8886 extern "C"
8887 #endif
8888 char dlopen ();
8890 main ()
8892 return dlopen ();
8894 return 0;
8896 _ACEOF
8897 rm -f conftest.$ac_objext conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8899 case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_link") 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } && {
8911 test -z "$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 } && test -s conftest$ac_exeext &&
8914 $as_test_x conftest$ac_exeext; then
8915 ac_cv_lib_dl_dlopen=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ac_cv_lib_dl_dlopen=no
8923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8924 conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8927 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8929 if test $ac_cv_lib_dl_dlopen = yes; then
8930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8931 else
8933 lt_cv_dlopen="dyld"
8934 lt_cv_dlopen_libs=
8935 lt_cv_dlopen_self=yes
8942 { echo "$as_me:$LINENO: checking for shl_load" >&5
8943 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8944 if test "${ac_cv_func_shl_load+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8955 #define shl_load innocuous_shl_load
8957 /* System header to define __stub macros and hopefully few prototypes,
8958 which can conflict with char shl_load (); below.
8959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8960 <limits.h> exists even on freestanding compilers. */
8962 #ifdef __STDC__
8963 # include <limits.h>
8964 #else
8965 # include <assert.h>
8966 #endif
8968 #undef shl_load
8970 /* Override any GCC internal prototype to avoid an error.
8971 Use char because int might match the return type of a GCC
8972 builtin and then its argument prototype would still apply. */
8973 #ifdef __cplusplus
8974 extern "C"
8975 #endif
8976 char shl_load ();
8977 /* The GNU C library defines this for functions which it implements
8978 to always fail with ENOSYS. Some functions are actually named
8979 something starting with __ and the normal name is an alias. */
8980 #if defined __stub_shl_load || defined __stub___shl_load
8981 choke me
8982 #endif
8985 main ()
8987 return shl_load ();
8989 return 0;
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (ac_try="$ac_link"
8994 case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_link") 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest$ac_exeext &&
9009 $as_test_x conftest$ac_exeext; then
9010 ac_cv_func_shl_load=yes
9011 else
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_cv_func_shl_load=no
9018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9019 conftest$ac_exeext conftest.$ac_ext
9021 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9022 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9023 if test $ac_cv_func_shl_load = yes; then
9024 lt_cv_dlopen="shl_load"
9025 else
9026 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9027 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9028 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031 ac_check_lib_save_LIBS=$LIBS
9032 LIBS="-ldld $LIBS"
9033 cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h. */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9040 /* Override any GCC internal prototype to avoid an error.
9041 Use char because int might match the return type of a GCC
9042 builtin and then its argument prototype would still apply. */
9043 #ifdef __cplusplus
9044 extern "C"
9045 #endif
9046 char shl_load ();
9048 main ()
9050 return shl_load ();
9052 return 0;
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (ac_try="$ac_link"
9057 case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_link") 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_c_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest$ac_exeext &&
9072 $as_test_x conftest$ac_exeext; then
9073 ac_cv_lib_dld_shl_load=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_lib_dld_shl_load=no
9081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9082 conftest$ac_exeext conftest.$ac_ext
9083 LIBS=$ac_check_lib_save_LIBS
9085 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9086 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9087 if test $ac_cv_lib_dld_shl_load = yes; then
9088 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9089 else
9090 { echo "$as_me:$LINENO: checking for dlopen" >&5
9091 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9092 if test "${ac_cv_func_dlopen+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 else
9095 cat >conftest.$ac_ext <<_ACEOF
9096 /* confdefs.h. */
9097 _ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9101 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9103 #define dlopen innocuous_dlopen
9105 /* System header to define __stub macros and hopefully few prototypes,
9106 which can conflict with char dlopen (); below.
9107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9108 <limits.h> exists even on freestanding compilers. */
9110 #ifdef __STDC__
9111 # include <limits.h>
9112 #else
9113 # include <assert.h>
9114 #endif
9116 #undef dlopen
9118 /* Override any GCC internal prototype to avoid an error.
9119 Use char because int might match the return type of a GCC
9120 builtin and then its argument prototype would still apply. */
9121 #ifdef __cplusplus
9122 extern "C"
9123 #endif
9124 char dlopen ();
9125 /* The GNU C library defines this for functions which it implements
9126 to always fail with ENOSYS. Some functions are actually named
9127 something starting with __ and the normal name is an alias. */
9128 #if defined __stub_dlopen || defined __stub___dlopen
9129 choke me
9130 #endif
9133 main ()
9135 return dlopen ();
9137 return 0;
9139 _ACEOF
9140 rm -f conftest.$ac_objext conftest$ac_exeext
9141 if { (ac_try="$ac_link"
9142 case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_link") 2>conftest.er1
9148 ac_status=$?
9149 grep -v '^ *+' conftest.er1 >conftest.err
9150 rm -f conftest.er1
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } && {
9154 test -z "$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9156 } && test -s conftest$ac_exeext &&
9157 $as_test_x conftest$ac_exeext; then
9158 ac_cv_func_dlopen=yes
9159 else
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9163 ac_cv_func_dlopen=no
9166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9167 conftest$ac_exeext conftest.$ac_ext
9169 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9170 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9171 if test $ac_cv_func_dlopen = yes; then
9172 lt_cv_dlopen="dlopen"
9173 else
9174 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9175 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9176 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179 ac_check_lib_save_LIBS=$LIBS
9180 LIBS="-ldl $LIBS"
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h. */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9188 /* Override any GCC internal prototype to avoid an error.
9189 Use char because int might match the return type of a GCC
9190 builtin and then its argument prototype would still apply. */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 char dlopen ();
9196 main ()
9198 return dlopen ();
9200 return 0;
9202 _ACEOF
9203 rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9205 case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_link") 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } && {
9217 test -z "$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9219 } && test -s conftest$ac_exeext &&
9220 $as_test_x conftest$ac_exeext; then
9221 ac_cv_lib_dl_dlopen=yes
9222 else
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_cv_lib_dl_dlopen=no
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LIBS=$ac_check_lib_save_LIBS
9233 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9235 if test $ac_cv_lib_dl_dlopen = yes; then
9236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9237 else
9238 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9239 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9240 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243 ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lsvld $LIBS"
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9252 /* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
9255 #ifdef __cplusplus
9256 extern "C"
9257 #endif
9258 char dlopen ();
9260 main ()
9262 return dlopen ();
9264 return 0;
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (ac_try="$ac_link"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_link") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest$ac_exeext &&
9284 $as_test_x conftest$ac_exeext; then
9285 ac_cv_lib_svld_dlopen=yes
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 ac_cv_lib_svld_dlopen=no
9293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9297 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9298 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9299 if test $ac_cv_lib_svld_dlopen = yes; then
9300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9301 else
9302 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9303 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9304 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307 ac_check_lib_save_LIBS=$LIBS
9308 LIBS="-ldld $LIBS"
9309 cat >conftest.$ac_ext <<_ACEOF
9310 /* confdefs.h. */
9311 _ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h. */
9316 /* Override any GCC internal prototype to avoid an error.
9317 Use char because int might match the return type of a GCC
9318 builtin and then its argument prototype would still apply. */
9319 #ifdef __cplusplus
9320 extern "C"
9321 #endif
9322 char dld_link ();
9324 main ()
9326 return dld_link ();
9328 return 0;
9330 _ACEOF
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (ac_try="$ac_link"
9333 case "(($ac_try" in
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9336 esac
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_link") 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest$ac_exeext &&
9348 $as_test_x conftest$ac_exeext; then
9349 ac_cv_lib_dld_dld_link=yes
9350 else
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 ac_cv_lib_dld_dld_link=no
9357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9358 conftest$ac_exeext conftest.$ac_ext
9359 LIBS=$ac_check_lib_save_LIBS
9361 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9362 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9363 if test $ac_cv_lib_dld_dld_link = yes; then
9364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9383 esac
9385 if test "x$lt_cv_dlopen" != xno; then
9386 enable_dlopen=yes
9387 else
9388 enable_dlopen=no
9391 case $lt_cv_dlopen in
9392 dlopen)
9393 save_CPPFLAGS="$CPPFLAGS"
9394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9396 save_LDFLAGS="$LDFLAGS"
9397 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9399 save_LIBS="$LIBS"
9400 LIBS="$lt_cv_dlopen_libs $LIBS"
9402 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9403 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9404 if test "${lt_cv_dlopen_self+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407 if test "$cross_compiling" = yes; then :
9408 lt_cv_dlopen_self=cross
9409 else
9410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9411 lt_status=$lt_dlunknown
9412 cat > conftest.$ac_ext <<EOF
9413 #line 9413 "configure"
9414 #include "confdefs.h"
9416 #if HAVE_DLFCN_H
9417 #include <dlfcn.h>
9418 #endif
9420 #include <stdio.h>
9422 #ifdef RTLD_GLOBAL
9423 # define LT_DLGLOBAL RTLD_GLOBAL
9424 #else
9425 # ifdef DL_GLOBAL
9426 # define LT_DLGLOBAL DL_GLOBAL
9427 # else
9428 # define LT_DLGLOBAL 0
9429 # endif
9430 #endif
9432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9433 find out it does not work in some platform. */
9434 #ifndef LT_DLLAZY_OR_NOW
9435 # ifdef RTLD_LAZY
9436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9437 # else
9438 # ifdef DL_LAZY
9439 # define LT_DLLAZY_OR_NOW DL_LAZY
9440 # else
9441 # ifdef RTLD_NOW
9442 # define LT_DLLAZY_OR_NOW RTLD_NOW
9443 # else
9444 # ifdef DL_NOW
9445 # define LT_DLLAZY_OR_NOW DL_NOW
9446 # else
9447 # define LT_DLLAZY_OR_NOW 0
9448 # endif
9449 # endif
9450 # endif
9451 # endif
9452 #endif
9454 #ifdef __cplusplus
9455 extern "C" void exit (int);
9456 #endif
9458 void fnord() { int i=42;}
9459 int main ()
9461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9462 int status = $lt_dlunknown;
9464 if (self)
9466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9468 /* dlclose (self); */
9471 exit (status);
9474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475 (eval $ac_link) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9479 (./conftest; exit; ) 2>/dev/null
9480 lt_status=$?
9481 case x$lt_status in
9482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9484 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9485 esac
9486 else :
9487 # compilation failed
9488 lt_cv_dlopen_self=no
9491 rm -fr conftest*
9495 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9496 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9498 if test "x$lt_cv_dlopen_self" = xyes; then
9499 LDFLAGS="$LDFLAGS $link_static_flag"
9500 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9501 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9502 if test "${lt_cv_dlopen_self_static+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 if test "$cross_compiling" = yes; then :
9506 lt_cv_dlopen_self_static=cross
9507 else
9508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9509 lt_status=$lt_dlunknown
9510 cat > conftest.$ac_ext <<EOF
9511 #line 9511 "configure"
9512 #include "confdefs.h"
9514 #if HAVE_DLFCN_H
9515 #include <dlfcn.h>
9516 #endif
9518 #include <stdio.h>
9520 #ifdef RTLD_GLOBAL
9521 # define LT_DLGLOBAL RTLD_GLOBAL
9522 #else
9523 # ifdef DL_GLOBAL
9524 # define LT_DLGLOBAL DL_GLOBAL
9525 # else
9526 # define LT_DLGLOBAL 0
9527 # endif
9528 #endif
9530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9531 find out it does not work in some platform. */
9532 #ifndef LT_DLLAZY_OR_NOW
9533 # ifdef RTLD_LAZY
9534 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9535 # else
9536 # ifdef DL_LAZY
9537 # define LT_DLLAZY_OR_NOW DL_LAZY
9538 # else
9539 # ifdef RTLD_NOW
9540 # define LT_DLLAZY_OR_NOW RTLD_NOW
9541 # else
9542 # ifdef DL_NOW
9543 # define LT_DLLAZY_OR_NOW DL_NOW
9544 # else
9545 # define LT_DLLAZY_OR_NOW 0
9546 # endif
9547 # endif
9548 # endif
9549 # endif
9550 #endif
9552 #ifdef __cplusplus
9553 extern "C" void exit (int);
9554 #endif
9556 void fnord() { int i=42;}
9557 int main ()
9559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9560 int status = $lt_dlunknown;
9562 if (self)
9564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9565 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9566 /* dlclose (self); */
9569 exit (status);
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9577 (./conftest; exit; ) 2>/dev/null
9578 lt_status=$?
9579 case x$lt_status in
9580 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9581 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9582 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9583 esac
9584 else :
9585 # compilation failed
9586 lt_cv_dlopen_self_static=no
9589 rm -fr conftest*
9593 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9594 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9597 CPPFLAGS="$save_CPPFLAGS"
9598 LDFLAGS="$save_LDFLAGS"
9599 LIBS="$save_LIBS"
9601 esac
9603 case $lt_cv_dlopen_self in
9604 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9605 *) enable_dlopen_self=unknown ;;
9606 esac
9608 case $lt_cv_dlopen_self_static in
9609 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9610 *) enable_dlopen_self_static=unknown ;;
9611 esac
9615 # Report which librarie types wil actually be built
9616 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9617 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9618 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9619 echo "${ECHO_T}$can_build_shared" >&6; }
9621 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9622 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9623 test "$can_build_shared" = "no" && enable_shared=no
9625 # On AIX, shared libraries and static libraries use the same namespace, and
9626 # are all built from PIC.
9627 case "$host_os" in
9628 aix3*)
9629 test "$enable_shared" = yes && enable_static=no
9630 if test -n "$RANLIB"; then
9631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9632 postinstall_cmds='$RANLIB $lib'
9636 aix4* | aix5*)
9637 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9638 test "$enable_shared" = yes && enable_static=no
9641 darwin* | rhapsody*)
9642 if test "$GCC" = yes; then
9643 archive_cmds_need_lc=no
9644 case "$host_os" in
9645 rhapsody* | darwin1.[012])
9646 allow_undefined_flag='-undefined suppress'
9648 *) # Darwin 1.3 on
9649 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9650 allow_undefined_flag='-flat_namespace -undefined suppress'
9651 else
9652 case ${MACOSX_DEPLOYMENT_TARGET} in
9653 10.[012])
9654 allow_undefined_flag='-flat_namespace -undefined suppress'
9656 10.*)
9657 allow_undefined_flag='-undefined dynamic_lookup'
9659 esac
9662 esac
9663 output_verbose_link_cmd='echo'
9664 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9665 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9667 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9668 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}'
9669 hardcode_direct=no
9670 hardcode_automatic=yes
9671 hardcode_shlibpath_var=unsupported
9672 whole_archive_flag_spec='-all_load $convenience'
9673 link_all_deplibs=yes
9674 else
9675 ld_shlibs=no
9678 esac
9679 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9680 echo "${ECHO_T}$enable_shared" >&6; }
9682 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9683 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9684 # Make sure either enable_shared or enable_static is yes.
9685 test "$enable_shared" = yes || enable_static=yes
9686 { echo "$as_me:$LINENO: result: $enable_static" >&5
9687 echo "${ECHO_T}$enable_static" >&6; }
9689 # The else clause should only fire when bootstrapping the
9690 # libtool distribution, otherwise you forgot to ship ltmain.sh
9691 # with your package, and you will get complaints that there are
9692 # no rules to generate ltmain.sh.
9693 if test -f "$ltmain"; then
9694 # See if we are running on zsh, and set the options which allow our commands through
9695 # without removal of \ escapes.
9696 if test -n "${ZSH_VERSION+set}" ; then
9697 setopt NO_GLOB_SUBST
9699 # Now quote all the things that may contain metacharacters while being
9700 # careful not to overquote the AC_SUBSTed values. We take copies of the
9701 # variables and quote the copies for generation of the libtool script.
9702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9703 SED SHELL STRIP \
9704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9706 deplibs_check_method reload_flag reload_cmds need_locks \
9707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9708 lt_cv_sys_global_symbol_to_c_name_address \
9709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9710 old_postinstall_cmds old_postuninstall_cmds \
9711 compiler \
9712 CC \
9713 LD \
9714 lt_prog_compiler_wl \
9715 lt_prog_compiler_pic \
9716 lt_prog_compiler_static \
9717 lt_prog_compiler_no_builtin_flag \
9718 export_dynamic_flag_spec \
9719 thread_safe_flag_spec \
9720 whole_archive_flag_spec \
9721 enable_shared_with_static_runtimes \
9722 old_archive_cmds \
9723 old_archive_from_new_cmds \
9724 predep_objects \
9725 postdep_objects \
9726 predeps \
9727 postdeps \
9728 compiler_lib_search_path \
9729 archive_cmds \
9730 archive_expsym_cmds \
9731 postinstall_cmds \
9732 postuninstall_cmds \
9733 old_archive_from_expsyms_cmds \
9734 allow_undefined_flag \
9735 no_undefined_flag \
9736 export_symbols_cmds \
9737 hardcode_libdir_flag_spec \
9738 hardcode_libdir_flag_spec_ld \
9739 hardcode_libdir_separator \
9740 hardcode_automatic \
9741 module_cmds \
9742 module_expsym_cmds \
9743 lt_cv_prog_compiler_c_o \
9744 exclude_expsyms \
9745 include_expsyms; do
9747 case $var in
9748 old_archive_cmds | \
9749 old_archive_from_new_cmds | \
9750 archive_cmds | \
9751 archive_expsym_cmds | \
9752 module_cmds | \
9753 module_expsym_cmds | \
9754 old_archive_from_expsyms_cmds | \
9755 export_symbols_cmds | \
9756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9757 postinstall_cmds | postuninstall_cmds | \
9758 old_postinstall_cmds | old_postuninstall_cmds | \
9759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9760 # Double-quote double-evaled strings.
9761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9766 esac
9767 done
9769 case $lt_echo in
9770 *'\$0 --fallback-echo"')
9771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9773 esac
9775 cfgfile="${ofile}T"
9776 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9777 $rm -f "$cfgfile"
9778 { echo "$as_me:$LINENO: creating $ofile" >&5
9779 echo "$as_me: creating $ofile" >&6;}
9781 cat <<__EOF__ >> "$cfgfile"
9782 #! $SHELL
9784 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9785 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9786 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9788 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9789 # Free Software Foundation, Inc.
9791 # This file is part of GNU Libtool:
9792 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9794 # This program is free software; you can redistribute it and/or modify
9795 # it under the terms of the GNU General Public License as published by
9796 # the Free Software Foundation; either version 2 of the License, or
9797 # (at your option) any later version.
9799 # This program is distributed in the hope that it will be useful, but
9800 # WITHOUT ANY WARRANTY; without even the implied warranty of
9801 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9802 # General Public License for more details.
9804 # You should have received a copy of the GNU General Public License
9805 # along with this program; if not, write to the Free Software
9806 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9808 # As a special exception to the GNU General Public License, if you
9809 # distribute this file as part of a program that contains a
9810 # configuration script generated by Autoconf, you may include it under
9811 # the same distribution terms that you use for the rest of that program.
9813 # A sed program that does not truncate output.
9814 SED=$lt_SED
9816 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9817 Xsed="$SED -e s/^X//"
9819 # The HP-UX ksh and POSIX shell print the target directory to stdout
9820 # if CDPATH is set.
9821 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9823 # The names of the tagged configurations supported by this script.
9824 available_tags=
9826 # ### BEGIN LIBTOOL CONFIG
9828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9830 # Shell to use when invoking shell scripts.
9831 SHELL=$lt_SHELL
9833 # Whether or not to build shared libraries.
9834 build_libtool_libs=$enable_shared
9836 # Whether or not to build static libraries.
9837 build_old_libs=$enable_static
9839 # Whether or not to add -lc for building shared libraries.
9840 build_libtool_need_lc=$archive_cmds_need_lc
9842 # Whether or not to disallow shared libs when runtime libs are static
9843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9845 # Whether or not to optimize for fast installation.
9846 fast_install=$enable_fast_install
9848 # The host system.
9849 host_alias=$host_alias
9850 host=$host
9852 # An echo program that does not interpret backslashes.
9853 echo=$lt_echo
9855 # The archiver.
9856 AR=$lt_AR
9857 AR_FLAGS=$lt_AR_FLAGS
9859 # A C compiler.
9860 LTCC=$lt_LTCC
9862 # A language-specific compiler.
9863 CC=$lt_compiler
9865 # Is the compiler the GNU C compiler?
9866 with_gcc=$GCC
9868 # An ERE matcher.
9869 EGREP=$lt_EGREP
9871 # The linker used to build libraries.
9872 LD=$lt_LD
9874 # Whether we need hard or soft links.
9875 LN_S=$lt_LN_S
9877 # A BSD-compatible nm program.
9878 NM=$lt_NM
9880 # A symbol stripping program
9881 STRIP=$lt_STRIP
9883 # Used to examine libraries when file_magic_cmd begins "file"
9884 MAGIC_CMD=$MAGIC_CMD
9886 # Used on cygwin: DLL creation program.
9887 DLLTOOL="$DLLTOOL"
9889 # Used on cygwin: object dumper.
9890 OBJDUMP="$OBJDUMP"
9892 # Used on cygwin: assembler.
9893 AS="$AS"
9895 # The name of the directory that contains temporary libtool files.
9896 objdir=$objdir
9898 # How to create reloadable object files.
9899 reload_flag=$lt_reload_flag
9900 reload_cmds=$lt_reload_cmds
9902 # How to pass a linker flag through the compiler.
9903 wl=$lt_lt_prog_compiler_wl
9905 # Object file suffix (normally "o").
9906 objext="$ac_objext"
9908 # Old archive suffix (normally "a").
9909 libext="$libext"
9911 # Shared library suffix (normally ".so").
9912 shrext_cmds='$shrext_cmds'
9914 # Executable file suffix (normally "").
9915 exeext="$exeext"
9917 # Additional compiler flags for building library objects.
9918 pic_flag=$lt_lt_prog_compiler_pic
9919 pic_mode=$pic_mode
9921 # What is the maximum length of a command?
9922 max_cmd_len=$lt_cv_sys_max_cmd_len
9924 # Does compiler simultaneously support -c and -o options?
9925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9927 # Must we lock files when doing compilation ?
9928 need_locks=$lt_need_locks
9930 # Do we need the lib prefix for modules?
9931 need_lib_prefix=$need_lib_prefix
9933 # Do we need a version for libraries?
9934 need_version=$need_version
9936 # Whether dlopen is supported.
9937 dlopen_support=$enable_dlopen
9939 # Whether dlopen of programs is supported.
9940 dlopen_self=$enable_dlopen_self
9942 # Whether dlopen of statically linked programs is supported.
9943 dlopen_self_static=$enable_dlopen_self_static
9945 # Compiler flag to prevent dynamic linking.
9946 link_static_flag=$lt_lt_prog_compiler_static
9948 # Compiler flag to turn off builtin functions.
9949 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9951 # Compiler flag to allow reflexive dlopens.
9952 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9954 # Compiler flag to generate shared objects directly from archives.
9955 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9957 # Compiler flag to generate thread-safe objects.
9958 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9960 # Library versioning type.
9961 version_type=$version_type
9963 # Format of library name prefix.
9964 libname_spec=$lt_libname_spec
9966 # List of archive names. First name is the real one, the rest are links.
9967 # The last name is the one that the linker finds with -lNAME.
9968 library_names_spec=$lt_library_names_spec
9970 # The coded name of the library, if different from the real name.
9971 soname_spec=$lt_soname_spec
9973 # Commands used to build and install an old-style archive.
9974 RANLIB=$lt_RANLIB
9975 old_archive_cmds=$lt_old_archive_cmds
9976 old_postinstall_cmds=$lt_old_postinstall_cmds
9977 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9979 # Create an old-style archive from a shared archive.
9980 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9982 # Create a temporary old-style archive to link instead of a shared archive.
9983 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9985 # Commands used to build and install a shared archive.
9986 archive_cmds=$lt_archive_cmds
9987 archive_expsym_cmds=$lt_archive_expsym_cmds
9988 postinstall_cmds=$lt_postinstall_cmds
9989 postuninstall_cmds=$lt_postuninstall_cmds
9991 # Commands used to build a loadable module (assumed same as above if empty)
9992 module_cmds=$lt_module_cmds
9993 module_expsym_cmds=$lt_module_expsym_cmds
9995 # Commands to strip libraries.
9996 old_striplib=$lt_old_striplib
9997 striplib=$lt_striplib
9999 # Dependencies to place before the objects being linked to create a
10000 # shared library.
10001 predep_objects=$lt_predep_objects
10003 # Dependencies to place after the objects being linked to create a
10004 # shared library.
10005 postdep_objects=$lt_postdep_objects
10007 # Dependencies to place before the objects being linked to create a
10008 # shared library.
10009 predeps=$lt_predeps
10011 # Dependencies to place after the objects being linked to create a
10012 # shared library.
10013 postdeps=$lt_postdeps
10015 # The library search path used internally by the compiler when linking
10016 # a shared library.
10017 compiler_lib_search_path=$lt_compiler_lib_search_path
10019 # Method to check whether dependent libraries are shared objects.
10020 deplibs_check_method=$lt_deplibs_check_method
10022 # Command to use when deplibs_check_method == file_magic.
10023 file_magic_cmd=$lt_file_magic_cmd
10025 # Flag that allows shared libraries with undefined symbols to be built.
10026 allow_undefined_flag=$lt_allow_undefined_flag
10028 # Flag that forces no undefined symbols.
10029 no_undefined_flag=$lt_no_undefined_flag
10031 # Commands used to finish a libtool library installation in a directory.
10032 finish_cmds=$lt_finish_cmds
10034 # Same as above, but a single script fragment to be evaled but not shown.
10035 finish_eval=$lt_finish_eval
10037 # Take the output of nm and produce a listing of raw symbols and C names.
10038 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10040 # Transform the output of nm in a proper C declaration
10041 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10043 # Transform the output of nm in a C name address pair
10044 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10046 # This is the shared library runtime path variable.
10047 runpath_var=$runpath_var
10049 # This is the shared library path variable.
10050 shlibpath_var=$shlibpath_var
10052 # Is shlibpath searched before the hard-coded library search path?
10053 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10055 # How to hardcode a shared library path into an executable.
10056 hardcode_action=$hardcode_action
10058 # Whether we should hardcode library paths into libraries.
10059 hardcode_into_libs=$hardcode_into_libs
10061 # Flag to hardcode \$libdir into a binary during linking.
10062 # This must work even if \$libdir does not exist.
10063 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10065 # If ld is used when linking, flag to hardcode \$libdir into
10066 # a binary during linking. This must work even if \$libdir does
10067 # not exist.
10068 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10070 # Whether we need a single -rpath flag with a separated argument.
10071 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10073 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10074 # resulting binary.
10075 hardcode_direct=$hardcode_direct
10077 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10078 # resulting binary.
10079 hardcode_minus_L=$hardcode_minus_L
10081 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10082 # the resulting binary.
10083 hardcode_shlibpath_var=$hardcode_shlibpath_var
10085 # Set to yes if building a shared library automatically hardcodes DIR into the library
10086 # and all subsequent libraries and executables linked against it.
10087 hardcode_automatic=$hardcode_automatic
10089 # Variables whose values should be saved in libtool wrapper scripts and
10090 # restored at relink time.
10091 variables_saved_for_relink="$variables_saved_for_relink"
10093 # Whether libtool must link a program against all its dependency libraries.
10094 link_all_deplibs=$link_all_deplibs
10096 # Compile-time system search path for libraries
10097 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10099 # Run-time system search path for libraries
10100 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10102 # Fix the shell variable \$srcfile for the compiler.
10103 fix_srcfile_path="$fix_srcfile_path"
10105 # Set to yes if exported symbols are required.
10106 always_export_symbols=$always_export_symbols
10108 # The commands to list exported symbols.
10109 export_symbols_cmds=$lt_export_symbols_cmds
10111 # The commands to extract the exported symbol list from a shared archive.
10112 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10114 # Symbols that should not be listed in the preloaded symbols.
10115 exclude_expsyms=$lt_exclude_expsyms
10117 # Symbols that must always be exported.
10118 include_expsyms=$lt_include_expsyms
10120 # ### END LIBTOOL CONFIG
10122 __EOF__
10125 case $host_os in
10126 aix3*)
10127 cat <<\EOF >> "$cfgfile"
10129 # AIX sometimes has problems with the GCC collect2 program. For some
10130 # reason, if we set the COLLECT_NAMES environment variable, the problems
10131 # vanish in a puff of smoke.
10132 if test "X${COLLECT_NAMES+set}" != Xset; then
10133 COLLECT_NAMES=
10134 export COLLECT_NAMES
10138 esac
10140 # We use sed instead of cat because bash on DJGPP gets confused if
10141 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10142 # text mode, it properly converts lines to CR/LF. This bash problem
10143 # is reportedly fixed, but why not run on old versions too?
10144 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10146 mv -f "$cfgfile" "$ofile" || \
10147 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10148 chmod +x "$ofile"
10150 else
10151 # If there is no Makefile yet, we rely on a make rule to execute
10152 # `config.status --recheck' to rerun these tests and create the
10153 # libtool script then.
10154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10155 if test -f "$ltmain_in"; then
10156 test -f Makefile && make "$ltmain"
10161 ac_ext=cpp
10162 ac_cpp='$CXXCPP $CPPFLAGS'
10163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10167 CC="$lt_save_CC"
10170 # Check whether --with-tags was given.
10171 if test "${with_tags+set}" = set; then
10172 withval=$with_tags; tagnames="$withval"
10176 if test -f "$ltmain" && test -n "$tagnames"; then
10177 if test ! -f "${ofile}"; then
10178 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10179 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10182 if test -z "$LTCC"; then
10183 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10184 if test -z "$LTCC"; then
10185 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10186 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10187 else
10188 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10189 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10193 # Extract list of available tagged configurations in $ofile.
10194 # Note that this assumes the entire list is on one line.
10195 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10198 for tagname in $tagnames; do
10199 IFS="$lt_save_ifs"
10200 # Check whether tagname contains only valid characters
10201 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10202 "") ;;
10203 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10204 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10205 { (exit 1); exit 1; }; }
10207 esac
10209 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10210 then
10211 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10212 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10213 { (exit 1); exit 1; }; }
10216 # Update the list of available tags.
10217 if test -n "$tagname"; then
10218 echo appending configuration tag \"$tagname\" to $ofile
10220 case $tagname in
10221 CXX)
10222 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10223 ac_ext=cpp
10224 ac_cpp='$CXXCPP $CPPFLAGS'
10225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10232 archive_cmds_need_lc_CXX=no
10233 allow_undefined_flag_CXX=
10234 always_export_symbols_CXX=no
10235 archive_expsym_cmds_CXX=
10236 export_dynamic_flag_spec_CXX=
10237 hardcode_direct_CXX=no
10238 hardcode_libdir_flag_spec_CXX=
10239 hardcode_libdir_flag_spec_ld_CXX=
10240 hardcode_libdir_separator_CXX=
10241 hardcode_minus_L_CXX=no
10242 hardcode_automatic_CXX=no
10243 module_cmds_CXX=
10244 module_expsym_cmds_CXX=
10245 link_all_deplibs_CXX=unknown
10246 old_archive_cmds_CXX=$old_archive_cmds
10247 no_undefined_flag_CXX=
10248 whole_archive_flag_spec_CXX=
10249 enable_shared_with_static_runtimes_CXX=no
10251 # Dependencies to place before and after the object being linked:
10252 predep_objects_CXX=
10253 postdep_objects_CXX=
10254 predeps_CXX=
10255 postdeps_CXX=
10256 compiler_lib_search_path_CXX=
10258 # Source file extension for C++ test sources.
10259 ac_ext=cc
10261 # Object file extension for compiled C++ test sources.
10262 objext=o
10263 objext_CXX=$objext
10265 # Code to be used in simple compile tests
10266 lt_simple_compile_test_code="int some_variable = 0;\n"
10268 # Code to be used in simple link tests
10269 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10271 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10273 # If no C compiler was specified, use CC.
10274 LTCC=${LTCC-"$CC"}
10276 # Allow CC to be a program name with arguments.
10277 compiler=$CC
10280 # Allow CC to be a program name with arguments.
10281 lt_save_CC=$CC
10282 lt_save_LD=$LD
10283 lt_save_GCC=$GCC
10284 GCC=$GXX
10285 lt_save_with_gnu_ld=$with_gnu_ld
10286 lt_save_path_LD=$lt_cv_path_LD
10287 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10288 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10289 else
10290 unset lt_cv_prog_gnu_ld
10292 if test -n "${lt_cv_path_LDCXX+set}"; then
10293 lt_cv_path_LD=$lt_cv_path_LDCXX
10294 else
10295 unset lt_cv_path_LD
10297 test -z "${LDCXX+set}" || LD=$LDCXX
10298 CC=${CXX-"c++"}
10299 compiler=$CC
10300 compiler_CXX=$CC
10301 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10303 # We don't want -fno-exception wen compiling C++ code, so set the
10304 # no_builtin_flag separately
10305 if test "$GXX" = yes; then
10306 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10307 else
10308 lt_prog_compiler_no_builtin_flag_CXX=
10311 if test "$GXX" = yes; then
10312 # Set up default GNU C++ configuration
10315 # Check whether --with-gnu-ld was given.
10316 if test "${with_gnu_ld+set}" = set; then
10317 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10318 else
10319 with_gnu_ld=no
10322 ac_prog=ld
10323 if test "$GCC" = yes; then
10324 # Check if gcc -print-prog-name=ld gives a path.
10325 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10326 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10327 case $host in
10328 *-*-mingw*)
10329 # gcc leaves a trailing carriage return which upsets mingw
10330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10333 esac
10334 case $ac_prog in
10335 # Accept absolute paths.
10336 [\\/]* | ?:[\\/]*)
10337 re_direlt='/[^/][^/]*/\.\./'
10338 # Canonicalize the pathname of ld
10339 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10340 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10341 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10342 done
10343 test -z "$LD" && LD="$ac_prog"
10346 # If it fails, then pretend we aren't using GCC.
10347 ac_prog=ld
10350 # If it is relative, then search for the first ld in PATH.
10351 with_gnu_ld=unknown
10353 esac
10354 elif test "$with_gnu_ld" = yes; then
10355 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10356 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10357 else
10358 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10359 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10361 if test "${lt_cv_path_LD+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364 if test -z "$LD"; then
10365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10366 for ac_dir in $PATH; do
10367 IFS="$lt_save_ifs"
10368 test -z "$ac_dir" && ac_dir=.
10369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10370 lt_cv_path_LD="$ac_dir/$ac_prog"
10371 # Check to see if the program is GNU ld. I'd rather use --version,
10372 # but apparently some GNU ld's only accept -v.
10373 # Break only if it was the GNU/non-GNU ld that we prefer.
10374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10375 *GNU* | *'with BFD'*)
10376 test "$with_gnu_ld" != no && break
10379 test "$with_gnu_ld" != yes && break
10381 esac
10383 done
10384 IFS="$lt_save_ifs"
10385 else
10386 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10390 LD="$lt_cv_path_LD"
10391 if test -n "$LD"; then
10392 { echo "$as_me:$LINENO: result: $LD" >&5
10393 echo "${ECHO_T}$LD" >&6; }
10394 else
10395 { echo "$as_me:$LINENO: result: no" >&5
10396 echo "${ECHO_T}no" >&6; }
10398 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10399 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10400 { (exit 1); exit 1; }; }
10401 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10402 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10403 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10407 case `$LD -v 2>&1 </dev/null` in
10408 *GNU* | *'with BFD'*)
10409 lt_cv_prog_gnu_ld=yes
10412 lt_cv_prog_gnu_ld=no
10414 esac
10416 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10417 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10418 with_gnu_ld=$lt_cv_prog_gnu_ld
10422 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10423 # archiving commands below assume that GNU ld is being used.
10424 if test "$with_gnu_ld" = yes; then
10425 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10426 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'
10428 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10431 # If archive_cmds runs LD, not CC, wlarc should be empty
10432 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10433 # investigate it a little bit more. (MM)
10434 wlarc='${wl}'
10436 # ancient GNU ld didn't support --whole-archive et. al.
10437 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10438 grep 'no-whole-archive' > /dev/null; then
10439 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10440 else
10441 whole_archive_flag_spec_CXX=
10443 else
10444 with_gnu_ld=no
10445 wlarc=
10447 # A generic and very simple default shared library creation
10448 # command for GNU C++ for the case where it uses the native
10449 # linker, instead of GNU ld. If possible, this setting should
10450 # overridden to take advantage of the native linker features on
10451 # the platform it is being used on.
10452 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10455 # Commands to make compiler produce verbose output that lists
10456 # what "hidden" libraries, object files and flags are used when
10457 # linking a shared library.
10458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10460 else
10461 GXX=no
10462 with_gnu_ld=no
10463 wlarc=
10466 # PORTME: fill in a description of your system's C++ link characteristics
10467 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10468 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10469 ld_shlibs_CXX=yes
10470 case $host_os in
10471 aix3*)
10472 # FIXME: insert proper C++ library support
10473 ld_shlibs_CXX=no
10475 aix4* | aix5*)
10476 if test "$host_cpu" = ia64; then
10477 # On IA64, the linker does run time linking by default, so we don't
10478 # have to do anything special.
10479 aix_use_runtimelinking=no
10480 exp_sym_flag='-Bexport'
10481 no_entry_flag=""
10482 else
10483 aix_use_runtimelinking=no
10485 # Test if we are trying to use run time linking or normal
10486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10487 # need to do runtime linking.
10488 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10489 for ld_flag in $LDFLAGS; do
10490 case $ld_flag in
10491 *-brtl*)
10492 aix_use_runtimelinking=yes
10493 break
10495 esac
10496 done
10497 esac
10499 exp_sym_flag='-bexport'
10500 no_entry_flag='-bnoentry'
10503 # When large executables or shared objects are built, AIX ld can
10504 # have problems creating the table of contents. If linking a library
10505 # or program results in "error TOC overflow" add -mminimal-toc to
10506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10509 archive_cmds_CXX=''
10510 hardcode_direct_CXX=yes
10511 hardcode_libdir_separator_CXX=':'
10512 link_all_deplibs_CXX=yes
10514 if test "$GXX" = yes; then
10515 case $host_os in aix4.012|aix4.012.*)
10516 # We only want to do this on AIX 4.2 and lower, the check
10517 # below for broken collect2 doesn't work under 4.3+
10518 collect2name=`${CC} -print-prog-name=collect2`
10519 if test -f "$collect2name" && \
10520 strings "$collect2name" | grep resolve_lib_name >/dev/null
10521 then
10522 # We have reworked collect2
10523 hardcode_direct_CXX=yes
10524 else
10525 # We have old collect2
10526 hardcode_direct_CXX=unsupported
10527 # It fails to find uninstalled libraries when the uninstalled
10528 # path is not listed in the libpath. Setting hardcode_minus_L
10529 # to unsupported forces relinking
10530 hardcode_minus_L_CXX=yes
10531 hardcode_libdir_flag_spec_CXX='-L$libdir'
10532 hardcode_libdir_separator_CXX=
10534 esac
10535 shared_flag='-shared'
10536 else
10537 # not using gcc
10538 if test "$host_cpu" = ia64; then
10539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10540 # chokes on -Wl,-G. The following line is correct:
10541 shared_flag='-G'
10542 else
10543 if test "$aix_use_runtimelinking" = yes; then
10544 shared_flag='${wl}-G'
10545 else
10546 shared_flag='${wl}-bM:SRE'
10551 # It seems that -bexpall does not export symbols beginning with
10552 # underscore (_), so it is better to generate a list of symbols to export.
10553 always_export_symbols_CXX=yes
10554 if test "$aix_use_runtimelinking" = yes; then
10555 # Warning - without using the other runtime loading flags (-brtl),
10556 # -berok will link without error, but may produce a broken library.
10557 allow_undefined_flag_CXX='-berok'
10558 # Determine the default libpath from the value encoded in an empty executable.
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h. */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10567 main ()
10571 return 0;
10573 _ACEOF
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (ac_try="$ac_link"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_link") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_cxx_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest$ac_exeext &&
10591 $as_test_x conftest$ac_exeext; then
10593 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10595 # Check for a 64-bit object if we didn't find anything.
10596 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10597 }'`; fi
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10606 conftest$ac_exeext conftest.$ac_ext
10607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10609 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10611 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10612 else
10613 if test "$host_cpu" = ia64; then
10614 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10615 allow_undefined_flag_CXX="-z nodefs"
10616 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10617 else
10618 # Determine the default libpath from the value encoded in an empty executable.
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h. */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10627 main ()
10631 return 0;
10633 _ACEOF
10634 rm -f conftest.$ac_objext conftest$ac_exeext
10635 if { (ac_try="$ac_link"
10636 case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10639 esac
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_link") 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && {
10648 test -z "$ac_cxx_werror_flag" ||
10649 test ! -s conftest.err
10650 } && test -s conftest$ac_exeext &&
10651 $as_test_x conftest$ac_exeext; then
10653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10655 # Check for a 64-bit object if we didn't find anything.
10656 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10657 }'`; fi
10658 else
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10666 conftest$ac_exeext conftest.$ac_ext
10667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10669 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10670 # Warning - without using the other run time loading flags,
10671 # -berok will link without error, but may produce a broken library.
10672 no_undefined_flag_CXX=' ${wl}-bernotok'
10673 allow_undefined_flag_CXX=' ${wl}-berok'
10674 # -bexpall does not export symbols beginning with underscore (_)
10675 always_export_symbols_CXX=yes
10676 # Exported symbols can be pulled into shared objects from archives
10677 whole_archive_flag_spec_CXX=' '
10678 archive_cmds_need_lc_CXX=yes
10679 # This is similar to how AIX traditionally builds it's shared libraries.
10680 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10684 chorus*)
10685 case $cc_basename in
10687 # FIXME: insert proper C++ library support
10688 ld_shlibs_CXX=no
10690 esac
10693 cygwin* | mingw* | pw32*)
10694 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10695 # as there is no search path for DLLs.
10696 hardcode_libdir_flag_spec_CXX='-L$libdir'
10697 allow_undefined_flag_CXX=unsupported
10698 always_export_symbols_CXX=no
10699 enable_shared_with_static_runtimes_CXX=yes
10701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10702 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10703 # If the export-symbols file already is a .def file (1st line
10704 # is EXPORTS), use it as is; otherwise, prepend...
10705 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10706 cp $export_symbols $output_objdir/$soname.def;
10707 else
10708 echo EXPORTS > $output_objdir/$soname.def;
10709 cat $export_symbols >> $output_objdir/$soname.def;
10711 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10712 else
10713 ld_shlibs_CXX=no
10717 darwin* | rhapsody*)
10718 if test "$GXX" = yes; then
10719 archive_cmds_need_lc_CXX=no
10720 case "$host_os" in
10721 rhapsody* | darwin1.[012])
10722 allow_undefined_flag_CXX='-undefined suppress'
10724 *) # Darwin 1.3 on
10725 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10726 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10727 else
10728 case ${MACOSX_DEPLOYMENT_TARGET} in
10729 10.[012])
10730 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10732 10.*)
10733 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10735 esac
10738 esac
10739 lt_int_apple_cc_single_mod=no
10740 output_verbose_link_cmd='echo'
10741 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10742 lt_int_apple_cc_single_mod=yes
10744 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10745 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10746 else
10747 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10749 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10751 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10752 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10753 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10754 else
10755 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10757 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}'
10758 hardcode_direct_CXX=no
10759 hardcode_automatic_CXX=yes
10760 hardcode_shlibpath_var_CXX=unsupported
10761 whole_archive_flag_spec_CXX='-all_load $convenience'
10762 link_all_deplibs_CXX=yes
10763 else
10764 ld_shlibs_CXX=no
10768 dgux*)
10769 case $cc_basename in
10770 ec++)
10771 # FIXME: insert proper C++ library support
10772 ld_shlibs_CXX=no
10774 ghcx)
10775 # Green Hills C++ Compiler
10776 # FIXME: insert proper C++ library support
10777 ld_shlibs_CXX=no
10780 # FIXME: insert proper C++ library support
10781 ld_shlibs_CXX=no
10783 esac
10785 freebsd12*)
10786 # C++ shared libraries reported to be fairly broken before switch to ELF
10787 ld_shlibs_CXX=no
10789 freebsd-elf*)
10790 archive_cmds_need_lc_CXX=no
10792 freebsd* | kfreebsd*-gnu)
10793 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10794 # conventions
10795 ld_shlibs_CXX=yes
10797 gnu*)
10799 hpux9*)
10800 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10801 hardcode_libdir_separator_CXX=:
10802 export_dynamic_flag_spec_CXX='${wl}-E'
10803 hardcode_direct_CXX=yes
10804 hardcode_minus_L_CXX=yes # Not in the search PATH,
10805 # but as the default
10806 # location of the library.
10808 case $cc_basename in
10810 # FIXME: insert proper C++ library support
10811 ld_shlibs_CXX=no
10813 aCC)
10814 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'
10815 # Commands to make compiler produce verbose output that lists
10816 # what "hidden" libraries, object files and flags are used when
10817 # linking a shared library.
10819 # There doesn't appear to be a way to prevent this compiler from
10820 # explicitly linking system object files so we need to strip them
10821 # from the output so that they don't get included in the library
10822 # dependencies.
10823 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'
10826 if test "$GXX" = yes; then
10827 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'
10828 else
10829 # FIXME: insert proper C++ library support
10830 ld_shlibs_CXX=no
10833 esac
10835 hpux10*|hpux11*)
10836 if test $with_gnu_ld = no; then
10837 case "$host_cpu" in
10838 hppa*64*)
10839 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10840 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10841 hardcode_libdir_separator_CXX=:
10843 ia64*)
10844 hardcode_libdir_flag_spec_CXX='-L$libdir'
10847 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10848 hardcode_libdir_separator_CXX=:
10849 export_dynamic_flag_spec_CXX='${wl}-E'
10851 esac
10853 case "$host_cpu" in
10854 hppa*64*)
10855 hardcode_direct_CXX=no
10856 hardcode_shlibpath_var_CXX=no
10858 ia64*)
10859 hardcode_direct_CXX=no
10860 hardcode_shlibpath_var_CXX=no
10861 hardcode_minus_L_CXX=yes # Not in the search PATH,
10862 # but as the default
10863 # location of the library.
10866 hardcode_direct_CXX=yes
10867 hardcode_minus_L_CXX=yes # Not in the search PATH,
10868 # but as the default
10869 # location of the library.
10871 esac
10873 case $cc_basename in
10875 # FIXME: insert proper C++ library support
10876 ld_shlibs_CXX=no
10878 aCC)
10879 case "$host_cpu" in
10880 hppa*64*|ia64*)
10881 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10884 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10886 esac
10887 # Commands to make compiler produce verbose output that lists
10888 # what "hidden" libraries, object files and flags are used when
10889 # linking a shared library.
10891 # There doesn't appear to be a way to prevent this compiler from
10892 # explicitly linking system object files so we need to strip them
10893 # from the output so that they don't get included in the library
10894 # dependencies.
10895 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'
10898 if test "$GXX" = yes; then
10899 if test $with_gnu_ld = no; then
10900 case "$host_cpu" in
10901 ia64*|hppa*64*)
10902 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10905 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'
10907 esac
10909 else
10910 # FIXME: insert proper C++ library support
10911 ld_shlibs_CXX=no
10914 esac
10916 irix5* | irix6*)
10917 case $cc_basename in
10919 # SGI C++
10920 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 ${objdir}/so_locations -o $lib'
10922 # Archives containing C++ object files must be created using
10923 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10924 # necessary to make sure instantiated templates are included
10925 # in the archive.
10926 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10929 if test "$GXX" = yes; then
10930 if test "$with_gnu_ld" = no; then
10931 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}${objdir}/so_locations -o $lib'
10932 else
10933 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'
10936 link_all_deplibs_CXX=yes
10938 esac
10939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10940 hardcode_libdir_separator_CXX=:
10942 linux*)
10943 case $cc_basename in
10944 KCC)
10945 # Kuck and Associates, Inc. (KAI) C++ Compiler
10947 # KCC will only create a shared library if the output file
10948 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10949 # to its proper name (with version) after linking.
10950 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'
10951 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'
10952 # Commands to make compiler produce verbose output that lists
10953 # what "hidden" libraries, object files and flags are used when
10954 # linking a shared library.
10956 # There doesn't appear to be a way to prevent this compiler from
10957 # explicitly linking system object files so we need to strip them
10958 # from the output so that they don't get included in the library
10959 # dependencies.
10960 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'
10962 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10965 # Archives containing C++ object files must be created using
10966 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10967 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10969 icpc)
10970 # Intel C++
10971 with_gnu_ld=yes
10972 archive_cmds_need_lc_CXX=no
10973 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10974 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'
10975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10977 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10979 cxx)
10980 # Compaq C++
10981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10982 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'
10984 runpath_var=LD_RUN_PATH
10985 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10986 hardcode_libdir_separator_CXX=:
10988 # Commands to make compiler produce verbose output that lists
10989 # what "hidden" libraries, object files and flags are used when
10990 # linking a shared library.
10992 # There doesn't appear to be a way to prevent this compiler from
10993 # explicitly linking system object files so we need to strip them
10994 # from the output so that they don't get included in the library
10995 # dependencies.
10996 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'
10998 esac
11000 lynxos*)
11001 # FIXME: insert proper C++ library support
11002 ld_shlibs_CXX=no
11004 m88k*)
11005 # FIXME: insert proper C++ library support
11006 ld_shlibs_CXX=no
11008 mvs*)
11009 case $cc_basename in
11010 cxx)
11011 # FIXME: insert proper C++ library support
11012 ld_shlibs_CXX=no
11015 # FIXME: insert proper C++ library support
11016 ld_shlibs_CXX=no
11018 esac
11020 netbsd*)
11021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11022 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11023 wlarc=
11024 hardcode_libdir_flag_spec_CXX='-R$libdir'
11025 hardcode_direct_CXX=yes
11026 hardcode_shlibpath_var_CXX=no
11028 # Workaround some broken pre-1.5 toolchains
11029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11031 osf3*)
11032 case $cc_basename in
11033 KCC)
11034 # Kuck and Associates, Inc. (KAI) C++ Compiler
11036 # KCC will only create a shared library if the output file
11037 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11038 # to its proper name (with version) after linking.
11039 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'
11041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11042 hardcode_libdir_separator_CXX=:
11044 # Archives containing C++ object files must be created using
11045 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11046 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11049 RCC)
11050 # Rational C++ 2.4.1
11051 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no
11054 cxx)
11055 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11056 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 ${objdir}/so_locations -o $lib'
11058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11059 hardcode_libdir_separator_CXX=:
11061 # Commands to make compiler produce verbose output that lists
11062 # what "hidden" libraries, object files and flags are used when
11063 # linking a shared library.
11065 # There doesn't appear to be a way to prevent this compiler from
11066 # explicitly linking system object files so we need to strip them
11067 # from the output so that they don't get included in the library
11068 # dependencies.
11069 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'
11072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11074 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}${objdir}/so_locations -o $lib'
11076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11077 hardcode_libdir_separator_CXX=:
11079 # Commands to make compiler produce verbose output that lists
11080 # what "hidden" libraries, object files and flags are used when
11081 # linking a shared library.
11082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11084 else
11085 # FIXME: insert proper C++ library support
11086 ld_shlibs_CXX=no
11089 esac
11091 osf4* | osf5*)
11092 case $cc_basename in
11093 KCC)
11094 # Kuck and Associates, Inc. (KAI) C++ Compiler
11096 # KCC will only create a shared library if the output file
11097 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11098 # to its proper name (with version) after linking.
11099 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'
11101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11102 hardcode_libdir_separator_CXX=:
11104 # Archives containing C++ object files must be created using
11105 # the KAI C++ compiler.
11106 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11108 RCC)
11109 # Rational C++ 2.4.1
11110 # FIXME: insert proper C++ library support
11111 ld_shlibs_CXX=no
11113 cxx)
11114 allow_undefined_flag_CXX=' -expect_unresolved \*'
11115 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 ${objdir}/so_locations -o $lib'
11116 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11117 echo "-hidden">> $lib.exp~
11118 $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 $objdir/so_locations -o $lib~
11119 $rm $lib.exp'
11121 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11122 hardcode_libdir_separator_CXX=:
11124 # Commands to make compiler produce verbose output that lists
11125 # what "hidden" libraries, object files and flags are used when
11126 # linking a shared library.
11128 # There doesn't appear to be a way to prevent this compiler from
11129 # explicitly linking system object files so we need to strip them
11130 # from the output so that they don't get included in the library
11131 # dependencies.
11132 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'
11135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11136 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11137 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}${objdir}/so_locations -o $lib'
11139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11140 hardcode_libdir_separator_CXX=:
11142 # Commands to make compiler produce verbose output that lists
11143 # what "hidden" libraries, object files and flags are used when
11144 # linking a shared library.
11145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11147 else
11148 # FIXME: insert proper C++ library support
11149 ld_shlibs_CXX=no
11152 esac
11154 psos*)
11155 # FIXME: insert proper C++ library support
11156 ld_shlibs_CXX=no
11158 sco*)
11159 archive_cmds_need_lc_CXX=no
11160 case $cc_basename in
11162 # FIXME: insert proper C++ library support
11163 ld_shlibs_CXX=no
11166 # FIXME: insert proper C++ library support
11167 ld_shlibs_CXX=no
11169 esac
11171 sunos4*)
11172 case $cc_basename in
11174 # Sun C++ 4.x
11175 # FIXME: insert proper C++ library support
11176 ld_shlibs_CXX=no
11178 lcc)
11179 # Lucid
11180 # FIXME: insert proper C++ library support
11181 ld_shlibs_CXX=no
11184 # FIXME: insert proper C++ library support
11185 ld_shlibs_CXX=no
11187 esac
11189 solaris*)
11190 case $cc_basename in
11192 # Sun C++ 4.2, 5.x and Centerline C++
11193 no_undefined_flag_CXX=' -zdefs'
11194 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11195 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11196 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11198 hardcode_libdir_flag_spec_CXX='-R$libdir'
11199 hardcode_shlibpath_var_CXX=no
11200 case $host_os in
11201 solaris2.0-5 | solaris2.0-5.*) ;;
11203 # The C++ compiler is used as linker so we must use $wl
11204 # flag to pass the commands to the underlying system
11205 # linker.
11206 # Supported since Solaris 2.6 (maybe 2.5.1?)
11207 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11209 esac
11210 link_all_deplibs_CXX=yes
11212 # Commands to make compiler produce verbose output that lists
11213 # what "hidden" libraries, object files and flags are used when
11214 # linking a shared library.
11216 # There doesn't appear to be a way to prevent this compiler from
11217 # explicitly linking system object files so we need to strip them
11218 # from the output so that they don't get included in the library
11219 # dependencies.
11220 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11222 # Archives containing C++ object files must be created using
11223 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11224 # necessary to make sure instantiated templates are included
11225 # in the archive.
11226 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11228 gcx)
11229 # Green Hills C++ Compiler
11230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11232 # The C++ compiler must be used to create the archive.
11233 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11236 # GNU C++ compiler with Solaris linker
11237 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11238 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11239 if $CC --version | grep -v '^2\.7' > /dev/null; then
11240 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11241 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11242 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11244 # Commands to make compiler produce verbose output that lists
11245 # what "hidden" libraries, object files and flags are used when
11246 # linking a shared library.
11247 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11248 else
11249 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11250 # platform.
11251 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11252 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11253 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11255 # Commands to make compiler produce verbose output that lists
11256 # what "hidden" libraries, object files and flags are used when
11257 # linking a shared library.
11258 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11261 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11264 esac
11266 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11267 archive_cmds_need_lc_CXX=no
11269 tandem*)
11270 case $cc_basename in
11271 NCC)
11272 # NonStop-UX NCC 3.20
11273 # FIXME: insert proper C++ library support
11274 ld_shlibs_CXX=no
11277 # FIXME: insert proper C++ library support
11278 ld_shlibs_CXX=no
11280 esac
11282 vxworks*)
11283 # FIXME: insert proper C++ library support
11284 ld_shlibs_CXX=no
11287 # FIXME: insert proper C++ library support
11288 ld_shlibs_CXX=no
11290 esac
11291 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11292 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11293 test "$ld_shlibs_CXX" = no && can_build_shared=no
11295 GCC_CXX="$GXX"
11296 LD_CXX="$LD"
11299 cat > conftest.$ac_ext <<EOF
11300 class Foo
11302 public:
11303 Foo (void) { a = 0; }
11304 private:
11305 int a;
11309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11310 (eval $ac_compile) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; then
11314 # Parse the compiler output and extract the necessary
11315 # objects, libraries and library flags.
11317 # Sentinel used to keep track of whether or not we are before
11318 # the conftest object file.
11319 pre_test_object_deps_done=no
11321 # The `*' in the case matches for architectures that use `case' in
11322 # $output_verbose_cmd can trigger glob expansion during the loop
11323 # eval without this substitution.
11324 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11326 for p in `eval $output_verbose_link_cmd`; do
11327 case $p in
11329 -L* | -R* | -l*)
11330 # Some compilers place space between "-{L,R}" and the path.
11331 # Remove the space.
11332 if test $p = "-L" \
11333 || test $p = "-R"; then
11334 prev=$p
11335 continue
11336 else
11337 prev=
11340 if test "$pre_test_object_deps_done" = no; then
11341 case $p in
11342 -L* | -R*)
11343 # Internal compiler library paths should come after those
11344 # provided the user. The postdeps already come after the
11345 # user supplied libs so there is no need to process them.
11346 if test -z "$compiler_lib_search_path_CXX"; then
11347 compiler_lib_search_path_CXX="${prev}${p}"
11348 else
11349 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11352 # The "-l" case would never come before the object being
11353 # linked, so don't bother handling this case.
11354 esac
11355 else
11356 if test -z "$postdeps_CXX"; then
11357 postdeps_CXX="${prev}${p}"
11358 else
11359 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11364 *.$objext)
11365 # This assumes that the test object file only shows up
11366 # once in the compiler output.
11367 if test "$p" = "conftest.$objext"; then
11368 pre_test_object_deps_done=yes
11369 continue
11372 if test "$pre_test_object_deps_done" = no; then
11373 if test -z "$predep_objects_CXX"; then
11374 predep_objects_CXX="$p"
11375 else
11376 predep_objects_CXX="$predep_objects_CXX $p"
11378 else
11379 if test -z "$postdep_objects_CXX"; then
11380 postdep_objects_CXX="$p"
11381 else
11382 postdep_objects_CXX="$postdep_objects_CXX $p"
11387 *) ;; # Ignore the rest.
11389 esac
11390 done
11392 # Clean up.
11393 rm -f a.out a.exe
11394 else
11395 echo "libtool.m4: error: problem compiling CXX test program"
11398 $rm -f confest.$objext
11400 case " $postdeps_CXX " in
11401 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11402 esac
11404 lt_prog_compiler_wl_CXX=
11405 lt_prog_compiler_pic_CXX=
11406 lt_prog_compiler_static_CXX=
11408 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11409 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11411 # C++ specific cases for pic, static, wl, etc.
11412 if test "$GXX" = yes; then
11413 lt_prog_compiler_wl_CXX='-Wl,'
11414 lt_prog_compiler_static_CXX='-static'
11416 case $host_os in
11417 aix*)
11418 # All AIX code is PIC.
11419 if test "$host_cpu" = ia64; then
11420 # AIX 5 now supports IA64 processor
11421 lt_prog_compiler_static_CXX='-Bstatic'
11424 amigaos*)
11425 # FIXME: we need at least 68020 code to build shared libraries, but
11426 # adding the `-m68020' flag to GCC prevents building anything better,
11427 # like `-m68040'.
11428 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11430 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11431 # PIC is the default for these OSes.
11433 mingw* | os2* | pw32*)
11434 # This hack is so that the source file can tell whether it is being
11435 # built for inclusion in a dll (and should export symbols for example).
11436 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11438 darwin* | rhapsody*)
11439 # PIC is the default on this platform
11440 # Common symbols not allowed in MH_DYLIB files
11441 lt_prog_compiler_pic_CXX='-fno-common'
11443 *djgpp*)
11444 # DJGPP does not support shared libraries at all
11445 lt_prog_compiler_pic_CXX=
11447 sysv4*MP*)
11448 if test -d /usr/nec; then
11449 lt_prog_compiler_pic_CXX=-Kconform_pic
11452 hpux*)
11453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11454 # not for PA HP-UX.
11455 case "$host_cpu" in
11456 hppa*64*|ia64*)
11459 lt_prog_compiler_pic_CXX='-fPIC'
11461 esac
11464 lt_prog_compiler_pic_CXX='-fPIC'
11466 esac
11467 else
11468 case $host_os in
11469 aix4* | aix5*)
11470 # All AIX code is PIC.
11471 if test "$host_cpu" = ia64; then
11472 # AIX 5 now supports IA64 processor
11473 lt_prog_compiler_static_CXX='-Bstatic'
11474 else
11475 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11478 chorus*)
11479 case $cc_basename in
11480 cxch68)
11481 # Green Hills C++ Compiler
11482 # _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"
11484 esac
11486 dgux*)
11487 case $cc_basename in
11488 ec++)
11489 lt_prog_compiler_pic_CXX='-KPIC'
11491 ghcx)
11492 # Green Hills C++ Compiler
11493 lt_prog_compiler_pic_CXX='-pic'
11497 esac
11499 freebsd* | kfreebsd*-gnu)
11500 # FreeBSD uses GNU C++
11502 hpux9* | hpux10* | hpux11*)
11503 case $cc_basename in
11505 lt_prog_compiler_wl_CXX='-Wl,'
11506 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11507 if test "$host_cpu" != ia64; then
11508 lt_prog_compiler_pic_CXX='+Z'
11511 aCC)
11512 lt_prog_compiler_wl_CXX='-Wl,'
11513 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11514 case "$host_cpu" in
11515 hppa*64*|ia64*)
11516 # +Z the default
11519 lt_prog_compiler_pic_CXX='+Z'
11521 esac
11525 esac
11527 irix5* | irix6* | nonstopux*)
11528 case $cc_basename in
11530 lt_prog_compiler_wl_CXX='-Wl,'
11531 lt_prog_compiler_static_CXX='-non_shared'
11532 # CC pic flag -KPIC is the default.
11536 esac
11538 linux*)
11539 case $cc_basename in
11540 KCC)
11541 # KAI C++ Compiler
11542 lt_prog_compiler_wl_CXX='--backend -Wl,'
11543 lt_prog_compiler_pic_CXX='-fPIC'
11545 icpc)
11546 # Intel C++
11547 lt_prog_compiler_wl_CXX='-Wl,'
11548 lt_prog_compiler_pic_CXX='-KPIC'
11549 lt_prog_compiler_static_CXX='-static'
11551 cxx)
11552 # Compaq C++
11553 # Make sure the PIC flag is empty. It appears that all Alpha
11554 # Linux and Compaq Tru64 Unix objects are PIC.
11555 lt_prog_compiler_pic_CXX=
11556 lt_prog_compiler_static_CXX='-non_shared'
11560 esac
11562 lynxos*)
11564 m88k*)
11566 mvs*)
11567 case $cc_basename in
11568 cxx)
11569 lt_prog_compiler_pic_CXX='-W c,exportall'
11573 esac
11575 netbsd*)
11577 osf3* | osf4* | osf5*)
11578 case $cc_basename in
11579 KCC)
11580 lt_prog_compiler_wl_CXX='--backend -Wl,'
11582 RCC)
11583 # Rational C++ 2.4.1
11584 lt_prog_compiler_pic_CXX='-pic'
11586 cxx)
11587 # Digital/Compaq C++
11588 lt_prog_compiler_wl_CXX='-Wl,'
11589 # Make sure the PIC flag is empty. It appears that all Alpha
11590 # Linux and Compaq Tru64 Unix objects are PIC.
11591 lt_prog_compiler_pic_CXX=
11592 lt_prog_compiler_static_CXX='-non_shared'
11596 esac
11598 psos*)
11600 sco*)
11601 case $cc_basename in
11603 lt_prog_compiler_pic_CXX='-fPIC'
11607 esac
11609 solaris*)
11610 case $cc_basename in
11612 # Sun C++ 4.2, 5.x and Centerline C++
11613 lt_prog_compiler_pic_CXX='-KPIC'
11614 lt_prog_compiler_static_CXX='-Bstatic'
11615 lt_prog_compiler_wl_CXX='-Qoption ld '
11617 gcx)
11618 # Green Hills C++ Compiler
11619 lt_prog_compiler_pic_CXX='-PIC'
11623 esac
11625 sunos4*)
11626 case $cc_basename in
11628 # Sun C++ 4.x
11629 lt_prog_compiler_pic_CXX='-pic'
11630 lt_prog_compiler_static_CXX='-Bstatic'
11632 lcc)
11633 # Lucid
11634 lt_prog_compiler_pic_CXX='-pic'
11638 esac
11640 tandem*)
11641 case $cc_basename in
11642 NCC)
11643 # NonStop-UX NCC 3.20
11644 lt_prog_compiler_pic_CXX='-KPIC'
11648 esac
11650 unixware*)
11652 vxworks*)
11655 lt_prog_compiler_can_build_shared_CXX=no
11657 esac
11660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11661 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11664 # Check to make sure the PIC flag actually works.
11666 if test -n "$lt_prog_compiler_pic_CXX"; then
11668 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11669 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11670 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673 lt_prog_compiler_pic_works_CXX=no
11674 ac_outfile=conftest.$ac_objext
11675 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11676 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11677 # Insert the option either (1) after the last *FLAGS variable, or
11678 # (2) before a word containing "conftest.", or (3) at the end.
11679 # Note that $ac_compile itself does not contain backslashes and begins
11680 # with a dollar sign (not a hyphen), so the echo should work correctly.
11681 # The option is referenced via a variable to avoid confusing sed.
11682 lt_compile=`echo "$ac_compile" | $SED \
11683 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11685 -e 's:$: $lt_compiler_flag:'`
11686 (eval echo "\"\$as_me:11686: $lt_compile\"" >&5)
11687 (eval "$lt_compile" 2>conftest.err)
11688 ac_status=$?
11689 cat conftest.err >&5
11690 echo "$as_me:11690: \$? = $ac_status" >&5
11691 if (exit $ac_status) && test -s "$ac_outfile"; then
11692 # The compiler can only warn and ignore the option if not recognized
11693 # So say no if there are warnings
11694 if test ! -s conftest.err; then
11695 lt_prog_compiler_pic_works_CXX=yes
11698 $rm conftest*
11701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11702 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11704 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11705 case $lt_prog_compiler_pic_CXX in
11706 "" | " "*) ;;
11707 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11708 esac
11709 else
11710 lt_prog_compiler_pic_CXX=
11711 lt_prog_compiler_can_build_shared_CXX=no
11715 case "$host_os" in
11716 # For platforms which do not support PIC, -DPIC is meaningless:
11717 *djgpp*)
11718 lt_prog_compiler_pic_CXX=
11721 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11723 esac
11725 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11726 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11727 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 lt_cv_prog_compiler_c_o_CXX=no
11731 $rm -r conftest 2>/dev/null
11732 mkdir conftest
11733 cd conftest
11734 mkdir out
11735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11737 lt_compiler_flag="-o out/conftest2.$ac_objext"
11738 # Insert the option either (1) after the last *FLAGS variable, or
11739 # (2) before a word containing "conftest.", or (3) at the end.
11740 # Note that $ac_compile itself does not contain backslashes and begins
11741 # with a dollar sign (not a hyphen), so the echo should work correctly.
11742 lt_compile=`echo "$ac_compile" | $SED \
11743 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11745 -e 's:$: $lt_compiler_flag:'`
11746 (eval echo "\"\$as_me:11746: $lt_compile\"" >&5)
11747 (eval "$lt_compile" 2>out/conftest.err)
11748 ac_status=$?
11749 cat out/conftest.err >&5
11750 echo "$as_me:11750: \$? = $ac_status" >&5
11751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11752 then
11753 # The compiler can only warn and ignore the option if not recognized
11754 # So say no if there are warnings
11755 if test ! -s out/conftest.err; then
11756 lt_cv_prog_compiler_c_o_CXX=yes
11759 chmod u+w .
11760 $rm conftest*
11761 # SGI C++ compiler will create directory out/ii_files/ for
11762 # template instantiation
11763 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11764 $rm out/* && rmdir out
11765 cd ..
11766 rmdir conftest
11767 $rm conftest*
11770 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11771 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11774 hard_links="nottested"
11775 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11776 # do not overwrite the value of need_locks provided by the user
11777 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11778 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11779 hard_links=yes
11780 $rm conftest*
11781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11782 touch conftest.a
11783 ln conftest.a conftest.b 2>&5 || hard_links=no
11784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11785 { echo "$as_me:$LINENO: result: $hard_links" >&5
11786 echo "${ECHO_T}$hard_links" >&6; }
11787 if test "$hard_links" = no; then
11788 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11789 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11790 need_locks=warn
11792 else
11793 need_locks=no
11796 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11797 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11799 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11800 case $host_os in
11801 aix4* | aix5*)
11802 # If we're using GNU nm, then we don't want the "-C" option.
11803 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11804 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11805 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'
11806 else
11807 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'
11810 pw32*)
11811 export_symbols_cmds_CXX="$ltdll_cmds"
11813 cygwin* | mingw*)
11814 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11817 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11819 esac
11821 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11822 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11823 test "$ld_shlibs_CXX" = no && can_build_shared=no
11825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11826 if test "$GCC" = yes; then
11827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11831 # Do we need to explicitly link libc?
11833 case "x$archive_cmds_need_lc_CXX" in
11834 x|xyes)
11835 # Assume -lc should be added
11836 archive_cmds_need_lc_CXX=yes
11838 if test "$enable_shared" = yes && test "$GCC" = yes; then
11839 case $archive_cmds_CXX in
11840 *'~'*)
11841 # FIXME: we may have to deal with multi-command sequences.
11843 '$CC '*)
11844 # Test whether the compiler implicitly links with -lc since on some
11845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11846 # to ld, don't add -lc before -lgcc.
11847 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11848 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11849 $rm conftest*
11850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853 (eval $ac_compile) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } 2>conftest.err; then
11857 soname=conftest
11858 lib=conftest
11859 libobjs=conftest.$ac_objext
11860 deplibs=
11861 wl=$lt_prog_compiler_wl_CXX
11862 compiler_flags=-v
11863 linker_flags=-v
11864 verstring=
11865 output_objdir=.
11866 libname=conftest
11867 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11868 allow_undefined_flag_CXX=
11869 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11870 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }
11874 then
11875 archive_cmds_need_lc_CXX=no
11876 else
11877 archive_cmds_need_lc_CXX=yes
11879 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11880 else
11881 cat conftest.err 1>&5
11883 $rm conftest*
11884 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11885 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11887 esac
11890 esac
11892 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11893 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11894 library_names_spec=
11895 libname_spec='lib$name'
11896 soname_spec=
11897 shrext_cmds=".so"
11898 postinstall_cmds=
11899 postuninstall_cmds=
11900 finish_cmds=
11901 finish_eval=
11902 shlibpath_var=
11903 shlibpath_overrides_runpath=unknown
11904 version_type=none
11905 dynamic_linker="$host_os ld.so"
11906 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11907 if test "$GCC" = yes; then
11908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11909 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11910 # if the path contains ";" then we assume it to be the separator
11911 # otherwise default to the standard path separator (i.e. ":") - it is
11912 # assumed that no part of a normal pathname contains ";" but that should
11913 # okay in the real world where ";" in dirpaths is itself problematic.
11914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11915 else
11916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11918 else
11919 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11921 need_lib_prefix=unknown
11922 hardcode_into_libs=no
11924 # when you set need_version to no, make sure it does not cause -set_version
11925 # flags to be left without arguments
11926 need_version=unknown
11928 case $host_os in
11929 aix3*)
11930 version_type=linux
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11932 shlibpath_var=LIBPATH
11934 # AIX 3 has no versioning support, so we append a major version to the name.
11935 soname_spec='${libname}${release}${shared_ext}$major'
11938 aix4* | aix5*)
11939 version_type=linux
11940 need_lib_prefix=no
11941 need_version=no
11942 hardcode_into_libs=yes
11943 if test "$host_cpu" = ia64; then
11944 # AIX 5 supports IA64
11945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11946 shlibpath_var=LD_LIBRARY_PATH
11947 else
11948 # With GCC up to 2.95.x, collect2 would create an import file
11949 # for dependence libraries. The import file would start with
11950 # the line `#! .'. This would cause the generated library to
11951 # depend on `.', always an invalid library. This was fixed in
11952 # development snapshots of GCC prior to 3.0.
11953 case $host_os in
11954 aix4 | aix4.[01] | aix4.[01].*)
11955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11956 echo ' yes '
11957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11959 else
11960 can_build_shared=no
11963 esac
11964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11965 # soname into executable. Probably we can add versioning support to
11966 # collect2, so additional links can be useful in future.
11967 if test "$aix_use_runtimelinking" = yes; then
11968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11969 # instead of lib<name>.a to let people know that these are not
11970 # typical AIX shared libraries.
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972 else
11973 # We preserve .a as extension for shared libraries through AIX4.2
11974 # and later when we are not doing run time linking.
11975 library_names_spec='${libname}${release}.a $libname.a'
11976 soname_spec='${libname}${release}${shared_ext}$major'
11978 shlibpath_var=LIBPATH
11982 amigaos*)
11983 library_names_spec='$libname.ixlibrary $libname.a'
11984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11985 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'
11988 beos*)
11989 library_names_spec='${libname}${shared_ext}'
11990 dynamic_linker="$host_os ld.so"
11991 shlibpath_var=LIBRARY_PATH
11994 bsdi4*)
11995 version_type=linux
11996 need_version=no
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998 soname_spec='${libname}${release}${shared_ext}$major'
11999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12000 shlibpath_var=LD_LIBRARY_PATH
12001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12003 # the default ld.so.conf also contains /usr/contrib/lib and
12004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12005 # libtool to hard-code these into programs
12008 cygwin* | mingw* | pw32*)
12009 version_type=windows
12010 shrext_cmds=".dll"
12011 need_version=no
12012 need_lib_prefix=no
12014 case $GCC,$host_os in
12015 yes,cygwin* | yes,mingw* | yes,pw32*)
12016 library_names_spec='$libname.dll.a'
12017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12018 postinstall_cmds='base_file=`basename \${file}`~
12019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12020 dldir=$destdir/`dirname \$dlpath`~
12021 test -d \$dldir || mkdir -p \$dldir~
12022 $install_prog $dir/$dlname \$dldir/$dlname'
12023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12024 dlpath=$dir/\$dldll~
12025 $rm \$dlpath'
12026 shlibpath_overrides_runpath=yes
12028 case $host_os in
12029 cygwin*)
12030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12034 mingw*)
12035 # MinGW DLLs use traditional 'lib' prefix
12036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12039 # It is most probably a Windows format PATH printed by
12040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12041 # path with ; separators, and with drive letters. We can handle the
12042 # drive letters (cygwin fileutils understands them), so leave them,
12043 # especially as we might pass files found there to a mingw objdump,
12044 # which wouldn't understand a cygwinified path. Ahh.
12045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12046 else
12047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12050 pw32*)
12051 # pw32 DLLs use 'pw' prefix rather than 'lib'
12052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12054 esac
12058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12060 esac
12061 dynamic_linker='Win32 ld.exe'
12062 # FIXME: first we should search . and the directory the executable is in
12063 shlibpath_var=PATH
12066 darwin* | rhapsody*)
12067 dynamic_linker="$host_os dyld"
12068 version_type=darwin
12069 need_lib_prefix=no
12070 need_version=no
12071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12072 soname_spec='${libname}${release}${major}$shared_ext'
12073 shlibpath_overrides_runpath=yes
12074 shlibpath_var=DYLD_LIBRARY_PATH
12075 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12077 if test "$GCC" = yes; then
12078 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12079 else
12080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12085 dgux*)
12086 version_type=linux
12087 need_lib_prefix=no
12088 need_version=no
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12090 soname_spec='${libname}${release}${shared_ext}$major'
12091 shlibpath_var=LD_LIBRARY_PATH
12094 freebsd1*)
12095 dynamic_linker=no
12098 kfreebsd*-gnu)
12099 version_type=linux
12100 need_lib_prefix=no
12101 need_version=no
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12103 soname_spec='${libname}${release}${shared_ext}$major'
12104 shlibpath_var=LD_LIBRARY_PATH
12105 shlibpath_overrides_runpath=no
12106 hardcode_into_libs=yes
12107 dynamic_linker='GNU ld.so'
12110 freebsd*)
12111 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12112 version_type=freebsd-$objformat
12113 case $version_type in
12114 freebsd-elf*)
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12116 need_version=no
12117 need_lib_prefix=no
12119 freebsd-*)
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12121 need_version=yes
12123 esac
12124 shlibpath_var=LD_LIBRARY_PATH
12125 case $host_os in
12126 freebsd2*)
12127 shlibpath_overrides_runpath=yes
12129 freebsd3.01* | freebsdelf3.01*)
12130 shlibpath_overrides_runpath=yes
12131 hardcode_into_libs=yes
12133 *) # from 3.2 on
12134 shlibpath_overrides_runpath=no
12135 hardcode_into_libs=yes
12137 esac
12140 gnu*)
12141 version_type=linux
12142 need_lib_prefix=no
12143 need_version=no
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 shlibpath_var=LD_LIBRARY_PATH
12147 hardcode_into_libs=yes
12150 hpux9* | hpux10* | hpux11*)
12151 # Give a soname corresponding to the major version so that dld.sl refuses to
12152 # link against other versions.
12153 version_type=sunos
12154 need_lib_prefix=no
12155 need_version=no
12156 case "$host_cpu" in
12157 ia64*)
12158 shrext_cmds='.so'
12159 hardcode_into_libs=yes
12160 dynamic_linker="$host_os dld.so"
12161 shlibpath_var=LD_LIBRARY_PATH
12162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 if test "X$HPUX_IA64_MODE" = X32; then
12166 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12167 else
12168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12172 hppa*64*)
12173 shrext_cmds='.sl'
12174 hardcode_into_libs=yes
12175 dynamic_linker="$host_os dld.sl"
12176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179 soname_spec='${libname}${release}${shared_ext}$major'
12180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12184 shrext_cmds='.sl'
12185 dynamic_linker="$host_os dld.sl"
12186 shlibpath_var=SHLIB_PATH
12187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12189 soname_spec='${libname}${release}${shared_ext}$major'
12191 esac
12192 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12193 postinstall_cmds='chmod 555 $lib'
12196 irix5* | irix6* | nonstopux*)
12197 case $host_os in
12198 nonstopux*) version_type=nonstopux ;;
12200 if test "$lt_cv_prog_gnu_ld" = yes; then
12201 version_type=linux
12202 else
12203 version_type=irix
12204 fi ;;
12205 esac
12206 need_lib_prefix=no
12207 need_version=no
12208 soname_spec='${libname}${release}${shared_ext}$major'
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12210 case $host_os in
12211 irix5* | nonstopux*)
12212 libsuff= shlibsuff=
12215 case $LD in # libtool.m4 will add one of these switches to LD
12216 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12217 libsuff= shlibsuff= libmagic=32-bit;;
12218 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12219 libsuff=32 shlibsuff=N32 libmagic=N32;;
12220 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12221 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12222 *) libsuff= shlibsuff= libmagic=never-match;;
12223 esac
12225 esac
12226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12227 shlibpath_overrides_runpath=no
12228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12230 hardcode_into_libs=yes
12233 # No shared lib support for Linux oldld, aout, or coff.
12234 linux*oldld* | linux*aout* | linux*coff*)
12235 dynamic_linker=no
12238 # This must be Linux ELF.
12239 linux*)
12240 version_type=linux
12241 need_lib_prefix=no
12242 need_version=no
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 soname_spec='${libname}${release}${shared_ext}$major'
12245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12246 shlibpath_var=LD_LIBRARY_PATH
12247 shlibpath_overrides_runpath=no
12248 # This implies no fast_install, which is unacceptable.
12249 # Some rework will be needed to allow for fast_install
12250 # before this can be enabled.
12251 hardcode_into_libs=yes
12253 # find out which ABI we are using
12254 libsuff=
12255 case "$host_cpu" in
12256 x86_64*|s390x*|powerpc64*)
12257 echo '#line 12257 "configure"' > conftest.$ac_ext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; then
12263 case `/usr/bin/file conftest.$ac_objext` in
12264 *64-bit*)
12265 libsuff=64
12266 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12268 esac
12270 rm -rf conftest*
12272 esac
12274 # Append ld.so.conf contents to the search path
12275 if test -f /etc/ld.so.conf; then
12276 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12277 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12280 # We used to test for /lib/ld.so.1 and disable shared libraries on
12281 # powerpc, because MkLinux only supported shared libraries with the
12282 # GNU dynamic linker. Since this was broken with cross compilers,
12283 # most powerpc-linux boxes support dynamic linking these days and
12284 # people can always --disable-shared, the test was removed, and we
12285 # assume the GNU/Linux dynamic linker is in use.
12286 dynamic_linker='GNU/Linux ld.so'
12289 knetbsd*-gnu)
12290 version_type=linux
12291 need_lib_prefix=no
12292 need_version=no
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294 soname_spec='${libname}${release}${shared_ext}$major'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=no
12297 hardcode_into_libs=yes
12298 dynamic_linker='GNU ld.so'
12301 netbsd*)
12302 version_type=sunos
12303 need_lib_prefix=no
12304 need_version=no
12305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12308 dynamic_linker='NetBSD (a.out) ld.so'
12309 else
12310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12311 soname_spec='${libname}${release}${shared_ext}$major'
12312 dynamic_linker='NetBSD ld.elf_so'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 shlibpath_overrides_runpath=yes
12316 hardcode_into_libs=yes
12319 newsos6)
12320 version_type=linux
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes
12326 nto-qnx*)
12327 version_type=linux
12328 need_lib_prefix=no
12329 need_version=no
12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12333 shlibpath_overrides_runpath=yes
12336 openbsd*)
12337 version_type=sunos
12338 need_lib_prefix=no
12339 need_version=yes
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12342 shlibpath_var=LD_LIBRARY_PATH
12343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12344 case $host_os in
12345 openbsd2.[89] | openbsd2.[89].*)
12346 shlibpath_overrides_runpath=no
12349 shlibpath_overrides_runpath=yes
12351 esac
12352 else
12353 shlibpath_overrides_runpath=yes
12357 os2*)
12358 libname_spec='$name'
12359 shrext_cmds=".dll"
12360 need_lib_prefix=no
12361 library_names_spec='$libname${shared_ext} $libname.a'
12362 dynamic_linker='OS/2 ld.exe'
12363 shlibpath_var=LIBPATH
12366 osf3* | osf4* | osf5*)
12367 version_type=osf
12368 need_lib_prefix=no
12369 need_version=no
12370 soname_spec='${libname}${release}${shared_ext}$major'
12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12372 shlibpath_var=LD_LIBRARY_PATH
12373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12377 sco3.2v5*)
12378 version_type=osf
12379 soname_spec='${libname}${release}${shared_ext}$major'
12380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12381 shlibpath_var=LD_LIBRARY_PATH
12384 solaris*)
12385 version_type=linux
12386 need_lib_prefix=no
12387 need_version=no
12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12389 soname_spec='${libname}${release}${shared_ext}$major'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=yes
12392 hardcode_into_libs=yes
12393 # ldd complains unless libraries are executable
12394 postinstall_cmds='chmod +x $lib'
12397 sunos4*)
12398 version_type=sunos
12399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=yes
12403 if test "$with_gnu_ld" = yes; then
12404 need_lib_prefix=no
12406 need_version=yes
12409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12410 version_type=linux
12411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12412 soname_spec='${libname}${release}${shared_ext}$major'
12413 shlibpath_var=LD_LIBRARY_PATH
12414 case $host_vendor in
12415 sni)
12416 shlibpath_overrides_runpath=no
12417 need_lib_prefix=no
12418 export_dynamic_flag_spec='${wl}-Blargedynsym'
12419 runpath_var=LD_RUN_PATH
12421 siemens)
12422 need_lib_prefix=no
12424 motorola)
12425 need_lib_prefix=no
12426 need_version=no
12427 shlibpath_overrides_runpath=no
12428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12430 esac
12433 sysv4*MP*)
12434 if test -d /usr/nec ;then
12435 version_type=linux
12436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12437 soname_spec='$libname${shared_ext}.$major'
12438 shlibpath_var=LD_LIBRARY_PATH
12442 uts4*)
12443 version_type=linux
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445 soname_spec='${libname}${release}${shared_ext}$major'
12446 shlibpath_var=LD_LIBRARY_PATH
12450 dynamic_linker=no
12452 esac
12453 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12454 echo "${ECHO_T}$dynamic_linker" >&6; }
12455 test "$dynamic_linker" = no && can_build_shared=no
12457 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12458 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12459 hardcode_action_CXX=
12460 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12461 test -n "$runpath_var CXX" || \
12462 test "X$hardcode_automatic_CXX"="Xyes" ; then
12464 # We can hardcode non-existant directories.
12465 if test "$hardcode_direct_CXX" != no &&
12466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12467 # have to relink, otherwise we might link with an installed library
12468 # when we should be linking with a yet-to-be-installed one
12469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12470 test "$hardcode_minus_L_CXX" != no; then
12471 # Linking always hardcodes the temporary library directory.
12472 hardcode_action_CXX=relink
12473 else
12474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12475 hardcode_action_CXX=immediate
12477 else
12478 # We cannot hardcode anything, or else we can only hardcode existing
12479 # directories.
12480 hardcode_action_CXX=unsupported
12482 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12483 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12485 if test "$hardcode_action_CXX" = relink; then
12486 # Fast installation is not supported
12487 enable_fast_install=no
12488 elif test "$shlibpath_overrides_runpath" = yes ||
12489 test "$enable_shared" = no; then
12490 # Fast installation is not necessary
12491 enable_fast_install=needless
12494 striplib=
12495 old_striplib=
12496 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12497 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12498 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12501 { echo "$as_me:$LINENO: result: yes" >&5
12502 echo "${ECHO_T}yes" >&6; }
12503 else
12504 # FIXME - insert some real tests, host_os isn't really good enough
12505 case $host_os in
12506 darwin*)
12507 if test -n "$STRIP" ; then
12508 striplib="$STRIP -x"
12509 { echo "$as_me:$LINENO: result: yes" >&5
12510 echo "${ECHO_T}yes" >&6; }
12511 else
12512 { echo "$as_me:$LINENO: result: no" >&5
12513 echo "${ECHO_T}no" >&6; }
12517 { echo "$as_me:$LINENO: result: no" >&5
12518 echo "${ECHO_T}no" >&6; }
12520 esac
12523 if test "x$enable_dlopen" != xyes; then
12524 enable_dlopen=unknown
12525 enable_dlopen_self=unknown
12526 enable_dlopen_self_static=unknown
12527 else
12528 lt_cv_dlopen=no
12529 lt_cv_dlopen_libs=
12531 case $host_os in
12532 beos*)
12533 lt_cv_dlopen="load_add_on"
12534 lt_cv_dlopen_libs=
12535 lt_cv_dlopen_self=yes
12538 mingw* | pw32*)
12539 lt_cv_dlopen="LoadLibrary"
12540 lt_cv_dlopen_libs=
12543 cygwin*)
12544 lt_cv_dlopen="dlopen"
12545 lt_cv_dlopen_libs=
12548 darwin*)
12549 # if libdl is installed we need to link against it
12550 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12551 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555 ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-ldl $LIBS"
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h. */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12564 /* Override any GCC internal prototype to avoid an error.
12565 Use char because int might match the return type of a GCC
12566 builtin and then its argument prototype would still apply. */
12567 #ifdef __cplusplus
12568 extern "C"
12569 #endif
12570 char dlopen ();
12572 main ()
12574 return dlopen ();
12576 return 0;
12578 _ACEOF
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (ac_try="$ac_link"
12581 case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_link") 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } && {
12593 test -z "$ac_cxx_werror_flag" ||
12594 test ! -s conftest.err
12595 } && test -s conftest$ac_exeext &&
12596 $as_test_x conftest$ac_exeext; then
12597 ac_cv_lib_dl_dlopen=yes
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_cv_lib_dl_dlopen=no
12605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12606 conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12609 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12610 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12611 if test $ac_cv_lib_dl_dlopen = yes; then
12612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12613 else
12615 lt_cv_dlopen="dyld"
12616 lt_cv_dlopen_libs=
12617 lt_cv_dlopen_self=yes
12624 { echo "$as_me:$LINENO: checking for shl_load" >&5
12625 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12626 if test "${ac_cv_func_shl_load+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h. */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12637 #define shl_load innocuous_shl_load
12639 /* System header to define __stub macros and hopefully few prototypes,
12640 which can conflict with char shl_load (); below.
12641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12642 <limits.h> exists even on freestanding compilers. */
12644 #ifdef __STDC__
12645 # include <limits.h>
12646 #else
12647 # include <assert.h>
12648 #endif
12650 #undef shl_load
12652 /* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
12655 #ifdef __cplusplus
12656 extern "C"
12657 #endif
12658 char shl_load ();
12659 /* The GNU C library defines this for functions which it implements
12660 to always fail with ENOSYS. Some functions are actually named
12661 something starting with __ and the normal name is an alias. */
12662 #if defined __stub_shl_load || defined __stub___shl_load
12663 choke me
12664 #endif
12667 main ()
12669 return shl_load ();
12671 return 0;
12673 _ACEOF
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (ac_try="$ac_link"
12676 case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_link") 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_cxx_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest$ac_exeext &&
12691 $as_test_x conftest$ac_exeext; then
12692 ac_cv_func_shl_load=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_cv_func_shl_load=no
12700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12701 conftest$ac_exeext conftest.$ac_ext
12703 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12704 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12705 if test $ac_cv_func_shl_load = yes; then
12706 lt_cv_dlopen="shl_load"
12707 else
12708 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12709 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12710 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713 ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-ldld $LIBS"
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12722 /* Override any GCC internal prototype to avoid an error.
12723 Use char because int might match the return type of a GCC
12724 builtin and then its argument prototype would still apply. */
12725 #ifdef __cplusplus
12726 extern "C"
12727 #endif
12728 char shl_load ();
12730 main ()
12732 return shl_load ();
12734 return 0;
12736 _ACEOF
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_cxx_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest$ac_exeext &&
12754 $as_test_x conftest$ac_exeext; then
12755 ac_cv_lib_dld_shl_load=yes
12756 else
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_cv_lib_dld_shl_load=no
12763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12764 conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12767 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12768 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12769 if test $ac_cv_lib_dld_shl_load = yes; then
12770 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12771 else
12772 { echo "$as_me:$LINENO: checking for dlopen" >&5
12773 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12774 if test "${ac_cv_func_dlopen+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12785 #define dlopen innocuous_dlopen
12787 /* System header to define __stub macros and hopefully few prototypes,
12788 which can conflict with char dlopen (); below.
12789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12790 <limits.h> exists even on freestanding compilers. */
12792 #ifdef __STDC__
12793 # include <limits.h>
12794 #else
12795 # include <assert.h>
12796 #endif
12798 #undef dlopen
12800 /* Override any GCC internal prototype to avoid an error.
12801 Use char because int might match the return type of a GCC
12802 builtin and then its argument prototype would still apply. */
12803 #ifdef __cplusplus
12804 extern "C"
12805 #endif
12806 char dlopen ();
12807 /* The GNU C library defines this for functions which it implements
12808 to always fail with ENOSYS. Some functions are actually named
12809 something starting with __ and the normal name is an alias. */
12810 #if defined __stub_dlopen || defined __stub___dlopen
12811 choke me
12812 #endif
12815 main ()
12817 return dlopen ();
12819 return 0;
12821 _ACEOF
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && {
12836 test -z "$ac_cxx_werror_flag" ||
12837 test ! -s conftest.err
12838 } && test -s conftest$ac_exeext &&
12839 $as_test_x conftest$ac_exeext; then
12840 ac_cv_func_dlopen=yes
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 ac_cv_func_dlopen=no
12848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849 conftest$ac_exeext conftest.$ac_ext
12851 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12852 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12853 if test $ac_cv_func_dlopen = yes; then
12854 lt_cv_dlopen="dlopen"
12855 else
12856 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12857 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861 ac_check_lib_save_LIBS=$LIBS
12862 LIBS="-ldl $LIBS"
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12873 #ifdef __cplusplus
12874 extern "C"
12875 #endif
12876 char dlopen ();
12878 main ()
12880 return dlopen ();
12882 return 0;
12884 _ACEOF
12885 rm -f conftest.$ac_objext conftest$ac_exeext
12886 if { (ac_try="$ac_link"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_link") 2>conftest.er1
12893 ac_status=$?
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } && {
12899 test -z "$ac_cxx_werror_flag" ||
12900 test ! -s conftest.err
12901 } && test -s conftest$ac_exeext &&
12902 $as_test_x conftest$ac_exeext; then
12903 ac_cv_lib_dl_dlopen=yes
12904 else
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 ac_cv_lib_dl_dlopen=no
12911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12912 conftest$ac_exeext conftest.$ac_ext
12913 LIBS=$ac_check_lib_save_LIBS
12915 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12916 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12917 if test $ac_cv_lib_dl_dlopen = yes; then
12918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12919 else
12920 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12921 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12922 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 ac_check_lib_save_LIBS=$LIBS
12926 LIBS="-lsvld $LIBS"
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h. */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char dlopen ();
12942 main ()
12944 return dlopen ();
12946 return 0;
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (ac_try="$ac_link"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_cxx_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest$ac_exeext &&
12966 $as_test_x conftest$ac_exeext; then
12967 ac_cv_lib_svld_dlopen=yes
12968 else
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 ac_cv_lib_svld_dlopen=no
12975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12979 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12980 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12981 if test $ac_cv_lib_svld_dlopen = yes; then
12982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12983 else
12984 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12985 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12986 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989 ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-ldld $LIBS"
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h. */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char dld_link ();
13006 main ()
13008 return dld_link ();
13010 return 0;
13012 _ACEOF
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_link") 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && {
13027 test -z "$ac_cxx_werror_flag" ||
13028 test ! -s conftest.err
13029 } && test -s conftest$ac_exeext &&
13030 $as_test_x conftest$ac_exeext; then
13031 ac_cv_lib_dld_dld_link=yes
13032 else
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_cv_lib_dld_dld_link=no
13039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13040 conftest$ac_exeext conftest.$ac_ext
13041 LIBS=$ac_check_lib_save_LIBS
13043 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13044 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13045 if test $ac_cv_lib_dld_dld_link = yes; then
13046 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13065 esac
13067 if test "x$lt_cv_dlopen" != xno; then
13068 enable_dlopen=yes
13069 else
13070 enable_dlopen=no
13073 case $lt_cv_dlopen in
13074 dlopen)
13075 save_CPPFLAGS="$CPPFLAGS"
13076 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13078 save_LDFLAGS="$LDFLAGS"
13079 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13081 save_LIBS="$LIBS"
13082 LIBS="$lt_cv_dlopen_libs $LIBS"
13084 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13085 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13086 if test "${lt_cv_dlopen_self+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 if test "$cross_compiling" = yes; then :
13090 lt_cv_dlopen_self=cross
13091 else
13092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13093 lt_status=$lt_dlunknown
13094 cat > conftest.$ac_ext <<EOF
13095 #line 13095 "configure"
13096 #include "confdefs.h"
13098 #if HAVE_DLFCN_H
13099 #include <dlfcn.h>
13100 #endif
13102 #include <stdio.h>
13104 #ifdef RTLD_GLOBAL
13105 # define LT_DLGLOBAL RTLD_GLOBAL
13106 #else
13107 # ifdef DL_GLOBAL
13108 # define LT_DLGLOBAL DL_GLOBAL
13109 # else
13110 # define LT_DLGLOBAL 0
13111 # endif
13112 #endif
13114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13115 find out it does not work in some platform. */
13116 #ifndef LT_DLLAZY_OR_NOW
13117 # ifdef RTLD_LAZY
13118 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13119 # else
13120 # ifdef DL_LAZY
13121 # define LT_DLLAZY_OR_NOW DL_LAZY
13122 # else
13123 # ifdef RTLD_NOW
13124 # define LT_DLLAZY_OR_NOW RTLD_NOW
13125 # else
13126 # ifdef DL_NOW
13127 # define LT_DLLAZY_OR_NOW DL_NOW
13128 # else
13129 # define LT_DLLAZY_OR_NOW 0
13130 # endif
13131 # endif
13132 # endif
13133 # endif
13134 #endif
13136 #ifdef __cplusplus
13137 extern "C" void exit (int);
13138 #endif
13140 void fnord() { int i=42;}
13141 int main ()
13143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13144 int status = $lt_dlunknown;
13146 if (self)
13148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13149 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13150 /* dlclose (self); */
13153 exit (status);
13156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13157 (eval $ac_link) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13161 (./conftest; exit; ) 2>/dev/null
13162 lt_status=$?
13163 case x$lt_status in
13164 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13165 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13166 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13167 esac
13168 else :
13169 # compilation failed
13170 lt_cv_dlopen_self=no
13173 rm -fr conftest*
13177 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13178 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13180 if test "x$lt_cv_dlopen_self" = xyes; then
13181 LDFLAGS="$LDFLAGS $link_static_flag"
13182 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13183 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13184 if test "${lt_cv_dlopen_self_static+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187 if test "$cross_compiling" = yes; then :
13188 lt_cv_dlopen_self_static=cross
13189 else
13190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13191 lt_status=$lt_dlunknown
13192 cat > conftest.$ac_ext <<EOF
13193 #line 13193 "configure"
13194 #include "confdefs.h"
13196 #if HAVE_DLFCN_H
13197 #include <dlfcn.h>
13198 #endif
13200 #include <stdio.h>
13202 #ifdef RTLD_GLOBAL
13203 # define LT_DLGLOBAL RTLD_GLOBAL
13204 #else
13205 # ifdef DL_GLOBAL
13206 # define LT_DLGLOBAL DL_GLOBAL
13207 # else
13208 # define LT_DLGLOBAL 0
13209 # endif
13210 #endif
13212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13213 find out it does not work in some platform. */
13214 #ifndef LT_DLLAZY_OR_NOW
13215 # ifdef RTLD_LAZY
13216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13217 # else
13218 # ifdef DL_LAZY
13219 # define LT_DLLAZY_OR_NOW DL_LAZY
13220 # else
13221 # ifdef RTLD_NOW
13222 # define LT_DLLAZY_OR_NOW RTLD_NOW
13223 # else
13224 # ifdef DL_NOW
13225 # define LT_DLLAZY_OR_NOW DL_NOW
13226 # else
13227 # define LT_DLLAZY_OR_NOW 0
13228 # endif
13229 # endif
13230 # endif
13231 # endif
13232 #endif
13234 #ifdef __cplusplus
13235 extern "C" void exit (int);
13236 #endif
13238 void fnord() { int i=42;}
13239 int main ()
13241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13242 int status = $lt_dlunknown;
13244 if (self)
13246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13247 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13248 /* dlclose (self); */
13251 exit (status);
13254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255 (eval $ac_link) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13259 (./conftest; exit; ) 2>/dev/null
13260 lt_status=$?
13261 case x$lt_status in
13262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13264 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13265 esac
13266 else :
13267 # compilation failed
13268 lt_cv_dlopen_self_static=no
13271 rm -fr conftest*
13275 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13276 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13279 CPPFLAGS="$save_CPPFLAGS"
13280 LDFLAGS="$save_LDFLAGS"
13281 LIBS="$save_LIBS"
13283 esac
13285 case $lt_cv_dlopen_self in
13286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13287 *) enable_dlopen_self=unknown ;;
13288 esac
13290 case $lt_cv_dlopen_self_static in
13291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13292 *) enable_dlopen_self_static=unknown ;;
13293 esac
13297 # The else clause should only fire when bootstrapping the
13298 # libtool distribution, otherwise you forgot to ship ltmain.sh
13299 # with your package, and you will get complaints that there are
13300 # no rules to generate ltmain.sh.
13301 if test -f "$ltmain"; then
13302 # See if we are running on zsh, and set the options which allow our commands through
13303 # without removal of \ escapes.
13304 if test -n "${ZSH_VERSION+set}" ; then
13305 setopt NO_GLOB_SUBST
13307 # Now quote all the things that may contain metacharacters while being
13308 # careful not to overquote the AC_SUBSTed values. We take copies of the
13309 # variables and quote the copies for generation of the libtool script.
13310 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13311 SED SHELL STRIP \
13312 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13313 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13314 deplibs_check_method reload_flag reload_cmds need_locks \
13315 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13316 lt_cv_sys_global_symbol_to_c_name_address \
13317 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13318 old_postinstall_cmds old_postuninstall_cmds \
13319 compiler_CXX \
13320 CC_CXX \
13321 LD_CXX \
13322 lt_prog_compiler_wl_CXX \
13323 lt_prog_compiler_pic_CXX \
13324 lt_prog_compiler_static_CXX \
13325 lt_prog_compiler_no_builtin_flag_CXX \
13326 export_dynamic_flag_spec_CXX \
13327 thread_safe_flag_spec_CXX \
13328 whole_archive_flag_spec_CXX \
13329 enable_shared_with_static_runtimes_CXX \
13330 old_archive_cmds_CXX \
13331 old_archive_from_new_cmds_CXX \
13332 predep_objects_CXX \
13333 postdep_objects_CXX \
13334 predeps_CXX \
13335 postdeps_CXX \
13336 compiler_lib_search_path_CXX \
13337 archive_cmds_CXX \
13338 archive_expsym_cmds_CXX \
13339 postinstall_cmds_CXX \
13340 postuninstall_cmds_CXX \
13341 old_archive_from_expsyms_cmds_CXX \
13342 allow_undefined_flag_CXX \
13343 no_undefined_flag_CXX \
13344 export_symbols_cmds_CXX \
13345 hardcode_libdir_flag_spec_CXX \
13346 hardcode_libdir_flag_spec_ld_CXX \
13347 hardcode_libdir_separator_CXX \
13348 hardcode_automatic_CXX \
13349 module_cmds_CXX \
13350 module_expsym_cmds_CXX \
13351 lt_cv_prog_compiler_c_o_CXX \
13352 exclude_expsyms_CXX \
13353 include_expsyms_CXX; do
13355 case $var in
13356 old_archive_cmds_CXX | \
13357 old_archive_from_new_cmds_CXX | \
13358 archive_cmds_CXX | \
13359 archive_expsym_cmds_CXX | \
13360 module_cmds_CXX | \
13361 module_expsym_cmds_CXX | \
13362 old_archive_from_expsyms_cmds_CXX | \
13363 export_symbols_cmds_CXX | \
13364 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13365 postinstall_cmds | postuninstall_cmds | \
13366 old_postinstall_cmds | old_postuninstall_cmds | \
13367 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13368 # Double-quote double-evaled strings.
13369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13374 esac
13375 done
13377 case $lt_echo in
13378 *'\$0 --fallback-echo"')
13379 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13381 esac
13383 cfgfile="$ofile"
13385 cat <<__EOF__ >> "$cfgfile"
13386 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13390 # Shell to use when invoking shell scripts.
13391 SHELL=$lt_SHELL
13393 # Whether or not to build shared libraries.
13394 build_libtool_libs=$enable_shared
13396 # Whether or not to build static libraries.
13397 build_old_libs=$enable_static
13399 # Whether or not to add -lc for building shared libraries.
13400 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13402 # Whether or not to disallow shared libs when runtime libs are static
13403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13405 # Whether or not to optimize for fast installation.
13406 fast_install=$enable_fast_install
13408 # The host system.
13409 host_alias=$host_alias
13410 host=$host
13412 # An echo program that does not interpret backslashes.
13413 echo=$lt_echo
13415 # The archiver.
13416 AR=$lt_AR
13417 AR_FLAGS=$lt_AR_FLAGS
13419 # A C compiler.
13420 LTCC=$lt_LTCC
13422 # A language-specific compiler.
13423 CC=$lt_compiler_CXX
13425 # Is the compiler the GNU C compiler?
13426 with_gcc=$GCC_CXX
13428 # An ERE matcher.
13429 EGREP=$lt_EGREP
13431 # The linker used to build libraries.
13432 LD=$lt_LD_CXX
13434 # Whether we need hard or soft links.
13435 LN_S=$lt_LN_S
13437 # A BSD-compatible nm program.
13438 NM=$lt_NM
13440 # A symbol stripping program
13441 STRIP=$lt_STRIP
13443 # Used to examine libraries when file_magic_cmd begins "file"
13444 MAGIC_CMD=$MAGIC_CMD
13446 # Used on cygwin: DLL creation program.
13447 DLLTOOL="$DLLTOOL"
13449 # Used on cygwin: object dumper.
13450 OBJDUMP="$OBJDUMP"
13452 # Used on cygwin: assembler.
13453 AS="$AS"
13455 # The name of the directory that contains temporary libtool files.
13456 objdir=$objdir
13458 # How to create reloadable object files.
13459 reload_flag=$lt_reload_flag
13460 reload_cmds=$lt_reload_cmds
13462 # How to pass a linker flag through the compiler.
13463 wl=$lt_lt_prog_compiler_wl_CXX
13465 # Object file suffix (normally "o").
13466 objext="$ac_objext"
13468 # Old archive suffix (normally "a").
13469 libext="$libext"
13471 # Shared library suffix (normally ".so").
13472 shrext_cmds='$shrext_cmds'
13474 # Executable file suffix (normally "").
13475 exeext="$exeext"
13477 # Additional compiler flags for building library objects.
13478 pic_flag=$lt_lt_prog_compiler_pic_CXX
13479 pic_mode=$pic_mode
13481 # What is the maximum length of a command?
13482 max_cmd_len=$lt_cv_sys_max_cmd_len
13484 # Does compiler simultaneously support -c and -o options?
13485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13487 # Must we lock files when doing compilation ?
13488 need_locks=$lt_need_locks
13490 # Do we need the lib prefix for modules?
13491 need_lib_prefix=$need_lib_prefix
13493 # Do we need a version for libraries?
13494 need_version=$need_version
13496 # Whether dlopen is supported.
13497 dlopen_support=$enable_dlopen
13499 # Whether dlopen of programs is supported.
13500 dlopen_self=$enable_dlopen_self
13502 # Whether dlopen of statically linked programs is supported.
13503 dlopen_self_static=$enable_dlopen_self_static
13505 # Compiler flag to prevent dynamic linking.
13506 link_static_flag=$lt_lt_prog_compiler_static_CXX
13508 # Compiler flag to turn off builtin functions.
13509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13511 # Compiler flag to allow reflexive dlopens.
13512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13514 # Compiler flag to generate shared objects directly from archives.
13515 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13517 # Compiler flag to generate thread-safe objects.
13518 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13520 # Library versioning type.
13521 version_type=$version_type
13523 # Format of library name prefix.
13524 libname_spec=$lt_libname_spec
13526 # List of archive names. First name is the real one, the rest are links.
13527 # The last name is the one that the linker finds with -lNAME.
13528 library_names_spec=$lt_library_names_spec
13530 # The coded name of the library, if different from the real name.
13531 soname_spec=$lt_soname_spec
13533 # Commands used to build and install an old-style archive.
13534 RANLIB=$lt_RANLIB
13535 old_archive_cmds=$lt_old_archive_cmds_CXX
13536 old_postinstall_cmds=$lt_old_postinstall_cmds
13537 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13539 # Create an old-style archive from a shared archive.
13540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13542 # Create a temporary old-style archive to link instead of a shared archive.
13543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13545 # Commands used to build and install a shared archive.
13546 archive_cmds=$lt_archive_cmds_CXX
13547 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13548 postinstall_cmds=$lt_postinstall_cmds
13549 postuninstall_cmds=$lt_postuninstall_cmds
13551 # Commands used to build a loadable module (assumed same as above if empty)
13552 module_cmds=$lt_module_cmds_CXX
13553 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13555 # Commands to strip libraries.
13556 old_striplib=$lt_old_striplib
13557 striplib=$lt_striplib
13559 # Dependencies to place before the objects being linked to create a
13560 # shared library.
13561 predep_objects=$lt_predep_objects_CXX
13563 # Dependencies to place after the objects being linked to create a
13564 # shared library.
13565 postdep_objects=$lt_postdep_objects_CXX
13567 # Dependencies to place before the objects being linked to create a
13568 # shared library.
13569 predeps=$lt_predeps_CXX
13571 # Dependencies to place after the objects being linked to create a
13572 # shared library.
13573 postdeps=$lt_postdeps_CXX
13575 # The library search path used internally by the compiler when linking
13576 # a shared library.
13577 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13579 # Method to check whether dependent libraries are shared objects.
13580 deplibs_check_method=$lt_deplibs_check_method
13582 # Command to use when deplibs_check_method == file_magic.
13583 file_magic_cmd=$lt_file_magic_cmd
13585 # Flag that allows shared libraries with undefined symbols to be built.
13586 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13588 # Flag that forces no undefined symbols.
13589 no_undefined_flag=$lt_no_undefined_flag_CXX
13591 # Commands used to finish a libtool library installation in a directory.
13592 finish_cmds=$lt_finish_cmds
13594 # Same as above, but a single script fragment to be evaled but not shown.
13595 finish_eval=$lt_finish_eval
13597 # Take the output of nm and produce a listing of raw symbols and C names.
13598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13600 # Transform the output of nm in a proper C declaration
13601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13603 # Transform the output of nm in a C name address pair
13604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13606 # This is the shared library runtime path variable.
13607 runpath_var=$runpath_var
13609 # This is the shared library path variable.
13610 shlibpath_var=$shlibpath_var
13612 # Is shlibpath searched before the hard-coded library search path?
13613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13615 # How to hardcode a shared library path into an executable.
13616 hardcode_action=$hardcode_action_CXX
13618 # Whether we should hardcode library paths into libraries.
13619 hardcode_into_libs=$hardcode_into_libs
13621 # Flag to hardcode \$libdir into a binary during linking.
13622 # This must work even if \$libdir does not exist.
13623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13625 # If ld is used when linking, flag to hardcode \$libdir into
13626 # a binary during linking. This must work even if \$libdir does
13627 # not exist.
13628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13630 # Whether we need a single -rpath flag with a separated argument.
13631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13634 # resulting binary.
13635 hardcode_direct=$hardcode_direct_CXX
13637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13638 # resulting binary.
13639 hardcode_minus_L=$hardcode_minus_L_CXX
13641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13642 # the resulting binary.
13643 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13645 # Set to yes if building a shared library automatically hardcodes DIR into the library
13646 # and all subsequent libraries and executables linked against it.
13647 hardcode_automatic=$hardcode_automatic_CXX
13649 # Variables whose values should be saved in libtool wrapper scripts and
13650 # restored at relink time.
13651 variables_saved_for_relink="$variables_saved_for_relink"
13653 # Whether libtool must link a program against all its dependency libraries.
13654 link_all_deplibs=$link_all_deplibs_CXX
13656 # Compile-time system search path for libraries
13657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13659 # Run-time system search path for libraries
13660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13662 # Fix the shell variable \$srcfile for the compiler.
13663 fix_srcfile_path="$fix_srcfile_path_CXX"
13665 # Set to yes if exported symbols are required.
13666 always_export_symbols=$always_export_symbols_CXX
13668 # The commands to list exported symbols.
13669 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13671 # The commands to extract the exported symbol list from a shared archive.
13672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13674 # Symbols that should not be listed in the preloaded symbols.
13675 exclude_expsyms=$lt_exclude_expsyms_CXX
13677 # Symbols that must always be exported.
13678 include_expsyms=$lt_include_expsyms_CXX
13680 # ### END LIBTOOL TAG CONFIG: $tagname
13682 __EOF__
13685 else
13686 # If there is no Makefile yet, we rely on a make rule to execute
13687 # `config.status --recheck' to rerun these tests and create the
13688 # libtool script then.
13689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13690 if test -f "$ltmain_in"; then
13691 test -f Makefile && make "$ltmain"
13696 ac_ext=cpp
13697 ac_cpp='$CXXCPP $CPPFLAGS'
13698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13702 CC=$lt_save_CC
13703 LDCXX=$LD
13704 LD=$lt_save_LD
13705 GCC=$lt_save_GCC
13706 with_gnu_ldcxx=$with_gnu_ld
13707 with_gnu_ld=$lt_save_with_gnu_ld
13708 lt_cv_path_LDCXX=$lt_cv_path_LD
13709 lt_cv_path_LD=$lt_save_path_LD
13710 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13711 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13713 else
13714 tagname=""
13718 F77)
13719 if test -n "$F77" && test "X$F77" != "Xno"; then
13721 ac_ext=f
13722 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13723 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13724 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13727 archive_cmds_need_lc_F77=no
13728 allow_undefined_flag_F77=
13729 always_export_symbols_F77=no
13730 archive_expsym_cmds_F77=
13731 export_dynamic_flag_spec_F77=
13732 hardcode_direct_F77=no
13733 hardcode_libdir_flag_spec_F77=
13734 hardcode_libdir_flag_spec_ld_F77=
13735 hardcode_libdir_separator_F77=
13736 hardcode_minus_L_F77=no
13737 hardcode_automatic_F77=no
13738 module_cmds_F77=
13739 module_expsym_cmds_F77=
13740 link_all_deplibs_F77=unknown
13741 old_archive_cmds_F77=$old_archive_cmds
13742 no_undefined_flag_F77=
13743 whole_archive_flag_spec_F77=
13744 enable_shared_with_static_runtimes_F77=no
13746 # Source file extension for f77 test sources.
13747 ac_ext=f
13749 # Object file extension for compiled f77 test sources.
13750 objext=o
13751 objext_F77=$objext
13753 # Code to be used in simple compile tests
13754 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13756 # Code to be used in simple link tests
13757 lt_simple_link_test_code=" program t\n end\n"
13759 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13761 # If no C compiler was specified, use CC.
13762 LTCC=${LTCC-"$CC"}
13764 # Allow CC to be a program name with arguments.
13765 compiler=$CC
13768 # Allow CC to be a program name with arguments.
13769 lt_save_CC="$CC"
13770 CC=${F77-"f77"}
13771 compiler=$CC
13772 compiler_F77=$CC
13773 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13775 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13776 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13777 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13778 echo "${ECHO_T}$can_build_shared" >&6; }
13780 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13781 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13782 test "$can_build_shared" = "no" && enable_shared=no
13784 # On AIX, shared libraries and static libraries use the same namespace, and
13785 # are all built from PIC.
13786 case "$host_os" in
13787 aix3*)
13788 test "$enable_shared" = yes && enable_static=no
13789 if test -n "$RANLIB"; then
13790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13791 postinstall_cmds='$RANLIB $lib'
13794 aix4* | aix5*)
13795 test "$enable_shared" = yes && enable_static=no
13797 esac
13798 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13799 echo "${ECHO_T}$enable_shared" >&6; }
13801 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13802 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13803 # Make sure either enable_shared or enable_static is yes.
13804 test "$enable_shared" = yes || enable_static=yes
13805 { echo "$as_me:$LINENO: result: $enable_static" >&5
13806 echo "${ECHO_T}$enable_static" >&6; }
13808 test "$ld_shlibs_F77" = no && can_build_shared=no
13810 GCC_F77="$G77"
13811 LD_F77="$LD"
13813 lt_prog_compiler_wl_F77=
13814 lt_prog_compiler_pic_F77=
13815 lt_prog_compiler_static_F77=
13817 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13818 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13820 if test "$GCC" = yes; then
13821 lt_prog_compiler_wl_F77='-Wl,'
13822 lt_prog_compiler_static_F77='-static'
13824 case $host_os in
13825 aix*)
13826 # All AIX code is PIC.
13827 if test "$host_cpu" = ia64; then
13828 # AIX 5 now supports IA64 processor
13829 lt_prog_compiler_static_F77='-Bstatic'
13833 amigaos*)
13834 # FIXME: we need at least 68020 code to build shared libraries, but
13835 # adding the `-m68020' flag to GCC prevents building anything better,
13836 # like `-m68040'.
13837 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13840 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13841 # PIC is the default for these OSes.
13844 mingw* | pw32* | os2*)
13845 # This hack is so that the source file can tell whether it is being
13846 # built for inclusion in a dll (and should export symbols for example).
13847 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13850 darwin* | rhapsody*)
13851 # PIC is the default on this platform
13852 # Common symbols not allowed in MH_DYLIB files
13853 lt_prog_compiler_pic_F77='-fno-common'
13856 msdosdjgpp*)
13857 # Just because we use GCC doesn't mean we suddenly get shared libraries
13858 # on systems that don't support them.
13859 lt_prog_compiler_can_build_shared_F77=no
13860 enable_shared=no
13863 sysv4*MP*)
13864 if test -d /usr/nec; then
13865 lt_prog_compiler_pic_F77=-Kconform_pic
13869 hpux*)
13870 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13871 # not for PA HP-UX.
13872 case "$host_cpu" in
13873 hppa*64*|ia64*)
13874 # +Z the default
13877 lt_prog_compiler_pic_F77='-fPIC'
13879 esac
13883 lt_prog_compiler_pic_F77='-fPIC'
13885 esac
13886 else
13887 # PORTME Check for flag to pass linker flags through the system compiler.
13888 case $host_os in
13889 aix*)
13890 lt_prog_compiler_wl_F77='-Wl,'
13891 if test "$host_cpu" = ia64; then
13892 # AIX 5 now supports IA64 processor
13893 lt_prog_compiler_static_F77='-Bstatic'
13894 else
13895 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13899 mingw* | pw32* | os2*)
13900 # This hack is so that the source file can tell whether it is being
13901 # built for inclusion in a dll (and should export symbols for example).
13902 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13905 hpux9* | hpux10* | hpux11*)
13906 lt_prog_compiler_wl_F77='-Wl,'
13907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13908 # not for PA HP-UX.
13909 case "$host_cpu" in
13910 hppa*64*|ia64*)
13911 # +Z the default
13914 lt_prog_compiler_pic_F77='+Z'
13916 esac
13917 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13918 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13921 irix5* | irix6* | nonstopux*)
13922 lt_prog_compiler_wl_F77='-Wl,'
13923 # PIC (with -KPIC) is the default.
13924 lt_prog_compiler_static_F77='-non_shared'
13927 newsos6)
13928 lt_prog_compiler_pic_F77='-KPIC'
13929 lt_prog_compiler_static_F77='-Bstatic'
13932 linux*)
13933 case $CC in
13934 icc* | ecc*)
13935 lt_prog_compiler_wl_F77='-Wl,'
13936 lt_prog_compiler_pic_F77='-KPIC'
13937 lt_prog_compiler_static_F77='-static'
13939 ccc*)
13940 lt_prog_compiler_wl_F77='-Wl,'
13941 # All Alpha code is PIC.
13942 lt_prog_compiler_static_F77='-non_shared'
13944 esac
13947 osf3* | osf4* | osf5*)
13948 lt_prog_compiler_wl_F77='-Wl,'
13949 # All OSF/1 code is PIC.
13950 lt_prog_compiler_static_F77='-non_shared'
13953 sco3.2v5*)
13954 lt_prog_compiler_pic_F77='-Kpic'
13955 lt_prog_compiler_static_F77='-dn'
13958 solaris*)
13959 lt_prog_compiler_wl_F77='-Wl,'
13960 lt_prog_compiler_pic_F77='-KPIC'
13961 lt_prog_compiler_static_F77='-Bstatic'
13964 sunos4*)
13965 lt_prog_compiler_wl_F77='-Qoption ld '
13966 lt_prog_compiler_pic_F77='-PIC'
13967 lt_prog_compiler_static_F77='-Bstatic'
13970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13971 lt_prog_compiler_wl_F77='-Wl,'
13972 lt_prog_compiler_pic_F77='-KPIC'
13973 lt_prog_compiler_static_F77='-Bstatic'
13976 sysv4*MP*)
13977 if test -d /usr/nec ;then
13978 lt_prog_compiler_pic_F77='-Kconform_pic'
13979 lt_prog_compiler_static_F77='-Bstatic'
13983 uts4*)
13984 lt_prog_compiler_pic_F77='-pic'
13985 lt_prog_compiler_static_F77='-Bstatic'
13989 lt_prog_compiler_can_build_shared_F77=no
13991 esac
13994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13995 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13998 # Check to make sure the PIC flag actually works.
14000 if test -n "$lt_prog_compiler_pic_F77"; then
14002 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14003 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14004 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007 lt_prog_compiler_pic_works_F77=no
14008 ac_outfile=conftest.$ac_objext
14009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14010 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14011 # Insert the option either (1) after the last *FLAGS variable, or
14012 # (2) before a word containing "conftest.", or (3) at the end.
14013 # Note that $ac_compile itself does not contain backslashes and begins
14014 # with a dollar sign (not a hyphen), so the echo should work correctly.
14015 # The option is referenced via a variable to avoid confusing sed.
14016 lt_compile=`echo "$ac_compile" | $SED \
14017 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14019 -e 's:$: $lt_compiler_flag:'`
14020 (eval echo "\"\$as_me:14020: $lt_compile\"" >&5)
14021 (eval "$lt_compile" 2>conftest.err)
14022 ac_status=$?
14023 cat conftest.err >&5
14024 echo "$as_me:14024: \$? = $ac_status" >&5
14025 if (exit $ac_status) && test -s "$ac_outfile"; then
14026 # The compiler can only warn and ignore the option if not recognized
14027 # So say no if there are warnings
14028 if test ! -s conftest.err; then
14029 lt_prog_compiler_pic_works_F77=yes
14032 $rm conftest*
14035 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14036 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14038 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14039 case $lt_prog_compiler_pic_F77 in
14040 "" | " "*) ;;
14041 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14042 esac
14043 else
14044 lt_prog_compiler_pic_F77=
14045 lt_prog_compiler_can_build_shared_F77=no
14049 case "$host_os" in
14050 # For platforms which do not support PIC, -DPIC is meaningless:
14051 *djgpp*)
14052 lt_prog_compiler_pic_F77=
14055 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14057 esac
14059 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14060 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14061 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 lt_cv_prog_compiler_c_o_F77=no
14065 $rm -r conftest 2>/dev/null
14066 mkdir conftest
14067 cd conftest
14068 mkdir out
14069 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14071 lt_compiler_flag="-o out/conftest2.$ac_objext"
14072 # Insert the option either (1) after the last *FLAGS variable, or
14073 # (2) before a word containing "conftest.", or (3) at the end.
14074 # Note that $ac_compile itself does not contain backslashes and begins
14075 # with a dollar sign (not a hyphen), so the echo should work correctly.
14076 lt_compile=`echo "$ac_compile" | $SED \
14077 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14079 -e 's:$: $lt_compiler_flag:'`
14080 (eval echo "\"\$as_me:14080: $lt_compile\"" >&5)
14081 (eval "$lt_compile" 2>out/conftest.err)
14082 ac_status=$?
14083 cat out/conftest.err >&5
14084 echo "$as_me:14084: \$? = $ac_status" >&5
14085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14086 then
14087 # The compiler can only warn and ignore the option if not recognized
14088 # So say no if there are warnings
14089 if test ! -s out/conftest.err; then
14090 lt_cv_prog_compiler_c_o_F77=yes
14093 chmod u+w .
14094 $rm conftest*
14095 # SGI C++ compiler will create directory out/ii_files/ for
14096 # template instantiation
14097 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14098 $rm out/* && rmdir out
14099 cd ..
14100 rmdir conftest
14101 $rm conftest*
14104 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14105 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14108 hard_links="nottested"
14109 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14110 # do not overwrite the value of need_locks provided by the user
14111 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14112 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14113 hard_links=yes
14114 $rm conftest*
14115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14116 touch conftest.a
14117 ln conftest.a conftest.b 2>&5 || hard_links=no
14118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14119 { echo "$as_me:$LINENO: result: $hard_links" >&5
14120 echo "${ECHO_T}$hard_links" >&6; }
14121 if test "$hard_links" = no; then
14122 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14123 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14124 need_locks=warn
14126 else
14127 need_locks=no
14130 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14131 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14133 runpath_var=
14134 allow_undefined_flag_F77=
14135 enable_shared_with_static_runtimes_F77=no
14136 archive_cmds_F77=
14137 archive_expsym_cmds_F77=
14138 old_archive_From_new_cmds_F77=
14139 old_archive_from_expsyms_cmds_F77=
14140 export_dynamic_flag_spec_F77=
14141 whole_archive_flag_spec_F77=
14142 thread_safe_flag_spec_F77=
14143 hardcode_libdir_flag_spec_F77=
14144 hardcode_libdir_flag_spec_ld_F77=
14145 hardcode_libdir_separator_F77=
14146 hardcode_direct_F77=no
14147 hardcode_minus_L_F77=no
14148 hardcode_shlibpath_var_F77=unsupported
14149 link_all_deplibs_F77=unknown
14150 hardcode_automatic_F77=no
14151 module_cmds_F77=
14152 module_expsym_cmds_F77=
14153 always_export_symbols_F77=no
14154 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14155 # include_expsyms should be a list of space-separated symbols to be *always*
14156 # included in the symbol list
14157 include_expsyms_F77=
14158 # exclude_expsyms can be an extended regexp of symbols to exclude
14159 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14160 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14161 # as well as any symbol that contains `d'.
14162 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14163 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14164 # platforms (ab)use it in PIC code, but their linkers get confused if
14165 # the symbol is explicitly referenced. Since portable code cannot
14166 # rely on this symbol name, it's probably fine to never include it in
14167 # preloaded symbol tables.
14168 extract_expsyms_cmds=
14170 case $host_os in
14171 cygwin* | mingw* | pw32*)
14172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14173 # When not using gcc, we currently assume that we are using
14174 # Microsoft Visual C++.
14175 if test "$GCC" != yes; then
14176 with_gnu_ld=no
14179 openbsd*)
14180 with_gnu_ld=no
14182 esac
14184 ld_shlibs_F77=yes
14185 if test "$with_gnu_ld" = yes; then
14186 # If archive_cmds runs LD, not CC, wlarc should be empty
14187 wlarc='${wl}'
14189 # See if GNU ld supports shared libraries.
14190 case $host_os in
14191 aix3* | aix4* | aix5*)
14192 # On AIX/PPC, the GNU linker is very broken
14193 if test "$host_cpu" != ia64; then
14194 ld_shlibs_F77=no
14195 cat <<EOF 1>&2
14197 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14198 *** to be unable to reliably create shared libraries on AIX.
14199 *** Therefore, libtool is disabling shared libraries support. If you
14200 *** really care for shared libraries, you may want to modify your PATH
14201 *** so that a non-GNU linker is found, and then restart.
14207 amigaos*)
14208 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)'
14209 hardcode_libdir_flag_spec_F77='-L$libdir'
14210 hardcode_minus_L_F77=yes
14212 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14213 # that the semantics of dynamic libraries on AmigaOS, at least up
14214 # to version 4, is to share data among multiple programs linked
14215 # with the same dynamic library. Since this doesn't match the
14216 # behavior of shared libraries on other platforms, we can't use
14217 # them.
14218 ld_shlibs_F77=no
14221 beos*)
14222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14223 allow_undefined_flag_F77=unsupported
14224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14225 # support --undefined. This deserves some investigation. FIXME
14226 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227 else
14228 ld_shlibs_F77=no
14232 cygwin* | mingw* | pw32*)
14233 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14234 # as there is no search path for DLLs.
14235 hardcode_libdir_flag_spec_F77='-L$libdir'
14236 allow_undefined_flag_F77=unsupported
14237 always_export_symbols_F77=no
14238 enable_shared_with_static_runtimes_F77=yes
14239 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14241 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14242 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14243 # If the export-symbols file already is a .def file (1st line
14244 # is EXPORTS), use it as is; otherwise, prepend...
14245 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14246 cp $export_symbols $output_objdir/$soname.def;
14247 else
14248 echo EXPORTS > $output_objdir/$soname.def;
14249 cat $export_symbols >> $output_objdir/$soname.def;
14251 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14252 else
14253 ld_shlibs=no
14257 netbsd*)
14258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14259 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14260 wlarc=
14261 else
14262 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14267 solaris* | sysv5*)
14268 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14269 ld_shlibs_F77=no
14270 cat <<EOF 1>&2
14272 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14273 *** create shared libraries on Solaris systems. Therefore, libtool
14274 *** is disabling shared libraries support. We urge you to upgrade GNU
14275 *** binutils to release 2.9.1 or newer. Another option is to modify
14276 *** your PATH or compiler configuration so that the native linker is
14277 *** used, and then restart.
14280 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14281 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14282 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14283 else
14284 ld_shlibs_F77=no
14288 sunos4*)
14289 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14290 wlarc=
14291 hardcode_direct_F77=yes
14292 hardcode_shlibpath_var_F77=no
14295 linux*)
14296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14297 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14298 archive_cmds_F77="$tmp_archive_cmds"
14299 supports_anon_versioning=no
14300 case `$LD -v 2>/dev/null` in
14301 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14302 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14303 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14304 *\ 2.11.*) ;; # other 2.11 versions
14305 *) supports_anon_versioning=yes ;;
14306 esac
14307 if test $supports_anon_versioning = yes; then
14308 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14310 $echo "local: *; };" >> $output_objdir/$libname.ver~
14311 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14312 else
14313 archive_expsym_cmds_F77="$tmp_archive_cmds"
14315 else
14316 ld_shlibs_F77=no
14321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14322 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14323 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14324 else
14325 ld_shlibs_F77=no
14328 esac
14330 if test "$ld_shlibs_F77" = yes; then
14331 runpath_var=LD_RUN_PATH
14332 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14333 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14334 # ancient GNU ld didn't support --whole-archive et. al.
14335 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14336 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14337 else
14338 whole_archive_flag_spec_F77=
14341 else
14342 # PORTME fill in a description of your system's linker (not GNU ld)
14343 case $host_os in
14344 aix3*)
14345 allow_undefined_flag_F77=unsupported
14346 always_export_symbols_F77=yes
14347 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'
14348 # Note: this linker hardcodes the directories in LIBPATH if there
14349 # are no directories specified by -L.
14350 hardcode_minus_L_F77=yes
14351 if test "$GCC" = yes && test -z "$link_static_flag"; then
14352 # Neither direct hardcoding nor static linking is supported with a
14353 # broken collect2.
14354 hardcode_direct_F77=unsupported
14358 aix4* | aix5*)
14359 if test "$host_cpu" = ia64; then
14360 # On IA64, the linker does run time linking by default, so we don't
14361 # have to do anything special.
14362 aix_use_runtimelinking=no
14363 exp_sym_flag='-Bexport'
14364 no_entry_flag=""
14365 else
14366 # If we're using GNU nm, then we don't want the "-C" option.
14367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14368 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14369 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'
14370 else
14371 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'
14373 aix_use_runtimelinking=no
14375 # Test if we are trying to use run time linking or normal
14376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14377 # need to do runtime linking.
14378 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14379 for ld_flag in $LDFLAGS; do
14380 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14381 aix_use_runtimelinking=yes
14382 break
14384 done
14385 esac
14387 exp_sym_flag='-bexport'
14388 no_entry_flag='-bnoentry'
14391 # When large executables or shared objects are built, AIX ld can
14392 # have problems creating the table of contents. If linking a library
14393 # or program results in "error TOC overflow" add -mminimal-toc to
14394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14397 archive_cmds_F77=''
14398 hardcode_direct_F77=yes
14399 hardcode_libdir_separator_F77=':'
14400 link_all_deplibs_F77=yes
14402 if test "$GCC" = yes; then
14403 case $host_os in aix4.012|aix4.012.*)
14404 # We only want to do this on AIX 4.2 and lower, the check
14405 # below for broken collect2 doesn't work under 4.3+
14406 collect2name=`${CC} -print-prog-name=collect2`
14407 if test -f "$collect2name" && \
14408 strings "$collect2name" | grep resolve_lib_name >/dev/null
14409 then
14410 # We have reworked collect2
14411 hardcode_direct_F77=yes
14412 else
14413 # We have old collect2
14414 hardcode_direct_F77=unsupported
14415 # It fails to find uninstalled libraries when the uninstalled
14416 # path is not listed in the libpath. Setting hardcode_minus_L
14417 # to unsupported forces relinking
14418 hardcode_minus_L_F77=yes
14419 hardcode_libdir_flag_spec_F77='-L$libdir'
14420 hardcode_libdir_separator_F77=
14422 esac
14423 shared_flag='-shared'
14424 else
14425 # not using gcc
14426 if test "$host_cpu" = ia64; then
14427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14428 # chokes on -Wl,-G. The following line is correct:
14429 shared_flag='-G'
14430 else
14431 if test "$aix_use_runtimelinking" = yes; then
14432 shared_flag='${wl}-G'
14433 else
14434 shared_flag='${wl}-bM:SRE'
14439 # It seems that -bexpall does not export symbols beginning with
14440 # underscore (_), so it is better to generate a list of symbols to export.
14441 always_export_symbols_F77=yes
14442 if test "$aix_use_runtimelinking" = yes; then
14443 # Warning - without using the other runtime loading flags (-brtl),
14444 # -berok will link without error, but may produce a broken library.
14445 allow_undefined_flag_F77='-berok'
14446 # Determine the default libpath from the value encoded in an empty executable.
14447 cat >conftest.$ac_ext <<_ACEOF
14448 program main
14451 _ACEOF
14452 rm -f conftest.$ac_objext conftest$ac_exeext
14453 if { (ac_try="$ac_link"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457 esac
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459 (eval "$ac_link") 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } && {
14466 test -z "$ac_f77_werror_flag" ||
14467 test ! -s conftest.err
14468 } && test -s conftest$ac_exeext &&
14469 $as_test_x conftest$ac_exeext; then
14471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14473 # Check for a 64-bit object if we didn't find anything.
14474 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14475 }'`; fi
14476 else
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14484 conftest$ac_exeext conftest.$ac_ext
14485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14487 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14488 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14489 else
14490 if test "$host_cpu" = ia64; then
14491 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14492 allow_undefined_flag_F77="-z nodefs"
14493 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14494 else
14495 # Determine the default libpath from the value encoded in an empty executable.
14496 cat >conftest.$ac_ext <<_ACEOF
14497 program main
14500 _ACEOF
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505 *) ac_try_echo=$ac_try;;
14506 esac
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508 (eval "$ac_link") 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } && {
14515 test -z "$ac_f77_werror_flag" ||
14516 test ! -s conftest.err
14517 } && test -s conftest$ac_exeext &&
14518 $as_test_x conftest$ac_exeext; then
14520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14522 # Check for a 64-bit object if we didn't find anything.
14523 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14524 }'`; fi
14525 else
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14533 conftest$ac_exeext conftest.$ac_ext
14534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14536 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14537 # Warning - without using the other run time loading flags,
14538 # -berok will link without error, but may produce a broken library.
14539 no_undefined_flag_F77=' ${wl}-bernotok'
14540 allow_undefined_flag_F77=' ${wl}-berok'
14541 # -bexpall does not export symbols beginning with underscore (_)
14542 always_export_symbols_F77=yes
14543 # Exported symbols can be pulled into shared objects from archives
14544 whole_archive_flag_spec_F77=' '
14545 archive_cmds_need_lc_F77=yes
14546 # This is similar to how AIX traditionally builds it's shared libraries.
14547 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14552 amigaos*)
14553 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)'
14554 hardcode_libdir_flag_spec_F77='-L$libdir'
14555 hardcode_minus_L_F77=yes
14556 # see comment about different semantics on the GNU ld section
14557 ld_shlibs_F77=no
14560 bsdi4*)
14561 export_dynamic_flag_spec_F77=-rdynamic
14564 cygwin* | mingw* | pw32*)
14565 # When not using gcc, we currently assume that we are using
14566 # Microsoft Visual C++.
14567 # hardcode_libdir_flag_spec is actually meaningless, as there is
14568 # no search path for DLLs.
14569 hardcode_libdir_flag_spec_F77=' '
14570 allow_undefined_flag_F77=unsupported
14571 # Tell ltmain to make .lib files, not .a files.
14572 libext=lib
14573 # Tell ltmain to make .dll files, not .so files.
14574 shrext_cmds=".dll"
14575 # FIXME: Setting linknames here is a bad hack.
14576 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14577 # The linker will automatically build a .lib file if we build a DLL.
14578 old_archive_From_new_cmds_F77='true'
14579 # FIXME: Should let the user specify the lib program.
14580 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14581 fix_srcfile_path='`cygpath -w "$srcfile"`'
14582 enable_shared_with_static_runtimes_F77=yes
14585 darwin* | rhapsody*)
14586 if test "$GXX" = yes ; then
14587 archive_cmds_need_lc_F77=no
14588 case "$host_os" in
14589 rhapsody* | darwin1.[012])
14590 allow_undefined_flag_F77='-undefined suppress'
14592 *) # Darwin 1.3 on
14593 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14594 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14595 else
14596 case ${MACOSX_DEPLOYMENT_TARGET} in
14597 10.[012])
14598 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14600 10.*)
14601 allow_undefined_flag_F77='-undefined dynamic_lookup'
14603 esac
14606 esac
14607 lt_int_apple_cc_single_mod=no
14608 output_verbose_link_cmd='echo'
14609 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14610 lt_int_apple_cc_single_mod=yes
14612 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14613 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14614 else
14615 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14617 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14618 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14619 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14620 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14621 else
14622 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14624 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}'
14625 hardcode_direct_F77=no
14626 hardcode_automatic_F77=yes
14627 hardcode_shlibpath_var_F77=unsupported
14628 whole_archive_flag_spec_F77='-all_load $convenience'
14629 link_all_deplibs_F77=yes
14630 else
14631 ld_shlibs_F77=no
14635 dgux*)
14636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14637 hardcode_libdir_flag_spec_F77='-L$libdir'
14638 hardcode_shlibpath_var_F77=no
14641 freebsd1*)
14642 ld_shlibs_F77=no
14645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14646 # support. Future versions do this automatically, but an explicit c++rt0.o
14647 # does not break anything, and helps significantly (at the cost of a little
14648 # extra space).
14649 freebsd2.2*)
14650 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14651 hardcode_libdir_flag_spec_F77='-R$libdir'
14652 hardcode_direct_F77=yes
14653 hardcode_shlibpath_var_F77=no
14656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14657 freebsd2*)
14658 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_direct_F77=yes
14660 hardcode_minus_L_F77=yes
14661 hardcode_shlibpath_var_F77=no
14664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14665 freebsd* | kfreebsd*-gnu)
14666 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14667 hardcode_libdir_flag_spec_F77='-R$libdir'
14668 hardcode_direct_F77=yes
14669 hardcode_shlibpath_var_F77=no
14672 hpux9*)
14673 if test "$GCC" = yes; then
14674 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'
14675 else
14676 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'
14678 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14679 hardcode_libdir_separator_F77=:
14680 hardcode_direct_F77=yes
14682 # hardcode_minus_L: Not really in the search PATH,
14683 # but as the default location of the library.
14684 hardcode_minus_L_F77=yes
14685 export_dynamic_flag_spec_F77='${wl}-E'
14688 hpux10* | hpux11*)
14689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14690 case "$host_cpu" in
14691 hppa*64*|ia64*)
14692 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14695 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14697 esac
14698 else
14699 case "$host_cpu" in
14700 hppa*64*|ia64*)
14701 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14704 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14706 esac
14708 if test "$with_gnu_ld" = no; then
14709 case "$host_cpu" in
14710 hppa*64*)
14711 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14712 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14713 hardcode_libdir_separator_F77=:
14714 hardcode_direct_F77=no
14715 hardcode_shlibpath_var_F77=no
14717 ia64*)
14718 hardcode_libdir_flag_spec_F77='-L$libdir'
14719 hardcode_direct_F77=no
14720 hardcode_shlibpath_var_F77=no
14722 # hardcode_minus_L: Not really in the search PATH,
14723 # but as the default location of the library.
14724 hardcode_minus_L_F77=yes
14727 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14728 hardcode_libdir_separator_F77=:
14729 hardcode_direct_F77=yes
14730 export_dynamic_flag_spec_F77='${wl}-E'
14732 # hardcode_minus_L: Not really in the search PATH,
14733 # but as the default location of the library.
14734 hardcode_minus_L_F77=yes
14736 esac
14740 irix5* | irix6* | nonstopux*)
14741 if test "$GCC" = yes; then
14742 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'
14743 else
14744 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'
14745 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14747 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14748 hardcode_libdir_separator_F77=:
14749 link_all_deplibs_F77=yes
14752 netbsd*)
14753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14754 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14755 else
14756 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14758 hardcode_libdir_flag_spec_F77='-R$libdir'
14759 hardcode_direct_F77=yes
14760 hardcode_shlibpath_var_F77=no
14763 newsos6)
14764 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14765 hardcode_direct_F77=yes
14766 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14767 hardcode_libdir_separator_F77=:
14768 hardcode_shlibpath_var_F77=no
14771 openbsd*)
14772 hardcode_direct_F77=yes
14773 hardcode_shlibpath_var_F77=no
14774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14775 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14776 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14777 export_dynamic_flag_spec_F77='${wl}-E'
14778 else
14779 case $host_os in
14780 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14781 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14782 hardcode_libdir_flag_spec_F77='-R$libdir'
14785 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14786 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14788 esac
14792 os2*)
14793 hardcode_libdir_flag_spec_F77='-L$libdir'
14794 hardcode_minus_L_F77=yes
14795 allow_undefined_flag_F77=unsupported
14796 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'
14797 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14800 osf3*)
14801 if test "$GCC" = yes; then
14802 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14803 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'
14804 else
14805 allow_undefined_flag_F77=' -expect_unresolved \*'
14806 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'
14808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14809 hardcode_libdir_separator_F77=:
14812 osf4* | osf5*) # as osf3* with the addition of -msym flag
14813 if test "$GCC" = yes; then
14814 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14815 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'
14816 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14817 else
14818 allow_undefined_flag_F77=' -expect_unresolved \*'
14819 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'
14820 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~
14821 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14823 # Both c and cxx compiler support -rpath directly
14824 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14826 hardcode_libdir_separator_F77=:
14829 sco3.2v5*)
14830 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14831 hardcode_shlibpath_var_F77=no
14832 export_dynamic_flag_spec_F77='${wl}-Bexport'
14833 runpath_var=LD_RUN_PATH
14834 hardcode_runpath_var=yes
14837 solaris*)
14838 no_undefined_flag_F77=' -z text'
14839 if test "$GCC" = yes; then
14840 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14841 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14842 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14843 else
14844 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14845 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14848 hardcode_libdir_flag_spec_F77='-R$libdir'
14849 hardcode_shlibpath_var_F77=no
14850 case $host_os in
14851 solaris2.[0-5] | solaris2.[0-5].*) ;;
14852 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14853 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14854 esac
14855 link_all_deplibs_F77=yes
14858 sunos4*)
14859 if test "x$host_vendor" = xsequent; then
14860 # Use $CC to link under sequent, because it throws in some extra .o
14861 # files that make .init and .fini sections work.
14862 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14863 else
14864 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14866 hardcode_libdir_flag_spec_F77='-L$libdir'
14867 hardcode_direct_F77=yes
14868 hardcode_minus_L_F77=yes
14869 hardcode_shlibpath_var_F77=no
14872 sysv4)
14873 case $host_vendor in
14874 sni)
14875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876 hardcode_direct_F77=yes # is this really true???
14878 siemens)
14879 ## LD is ld it makes a PLAMLIB
14880 ## CC just makes a GrossModule.
14881 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14882 reload_cmds_F77='$CC -r -o $output$reload_objs'
14883 hardcode_direct_F77=no
14885 motorola)
14886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14887 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14889 esac
14890 runpath_var='LD_RUN_PATH'
14891 hardcode_shlibpath_var_F77=no
14894 sysv4.3*)
14895 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14896 hardcode_shlibpath_var_F77=no
14897 export_dynamic_flag_spec_F77='-Bexport'
14900 sysv4*MP*)
14901 if test -d /usr/nec; then
14902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14903 hardcode_shlibpath_var_F77=no
14904 runpath_var=LD_RUN_PATH
14905 hardcode_runpath_var=yes
14906 ld_shlibs_F77=yes
14910 sysv4.2uw2*)
14911 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_direct_F77=yes
14913 hardcode_minus_L_F77=no
14914 hardcode_shlibpath_var_F77=no
14915 hardcode_runpath_var=yes
14916 runpath_var=LD_RUN_PATH
14919 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14920 no_undefined_flag_F77='${wl}-z ${wl}text'
14921 if test "$GCC" = yes; then
14922 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14923 else
14924 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14926 runpath_var='LD_RUN_PATH'
14927 hardcode_shlibpath_var_F77=no
14930 sysv5*)
14931 no_undefined_flag_F77=' -z text'
14932 # $CC -shared without GNU ld will not create a library from C++
14933 # object files and a static libstdc++, better avoid it by now
14934 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14935 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14937 hardcode_libdir_flag_spec_F77=
14938 hardcode_shlibpath_var_F77=no
14939 runpath_var='LD_RUN_PATH'
14942 uts4*)
14943 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14944 hardcode_libdir_flag_spec_F77='-L$libdir'
14945 hardcode_shlibpath_var_F77=no
14949 ld_shlibs_F77=no
14951 esac
14954 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14955 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14956 test "$ld_shlibs_F77" = no && can_build_shared=no
14958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14959 if test "$GCC" = yes; then
14960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14964 # Do we need to explicitly link libc?
14966 case "x$archive_cmds_need_lc_F77" in
14967 x|xyes)
14968 # Assume -lc should be added
14969 archive_cmds_need_lc_F77=yes
14971 if test "$enable_shared" = yes && test "$GCC" = yes; then
14972 case $archive_cmds_F77 in
14973 *'~'*)
14974 # FIXME: we may have to deal with multi-command sequences.
14976 '$CC '*)
14977 # Test whether the compiler implicitly links with -lc since on some
14978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14979 # to ld, don't add -lc before -lgcc.
14980 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14982 $rm conftest*
14983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14986 (eval $ac_compile) 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } 2>conftest.err; then
14990 soname=conftest
14991 lib=conftest
14992 libobjs=conftest.$ac_objext
14993 deplibs=
14994 wl=$lt_prog_compiler_wl_F77
14995 compiler_flags=-v
14996 linker_flags=-v
14997 verstring=
14998 output_objdir=.
14999 libname=conftest
15000 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15001 allow_undefined_flag_F77=
15002 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15003 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }
15007 then
15008 archive_cmds_need_lc_F77=no
15009 else
15010 archive_cmds_need_lc_F77=yes
15012 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15013 else
15014 cat conftest.err 1>&5
15016 $rm conftest*
15017 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15018 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15020 esac
15023 esac
15025 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15026 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15027 library_names_spec=
15028 libname_spec='lib$name'
15029 soname_spec=
15030 shrext_cmds=".so"
15031 postinstall_cmds=
15032 postuninstall_cmds=
15033 finish_cmds=
15034 finish_eval=
15035 shlibpath_var=
15036 shlibpath_overrides_runpath=unknown
15037 version_type=none
15038 dynamic_linker="$host_os ld.so"
15039 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15040 if test "$GCC" = yes; then
15041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15042 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15043 # if the path contains ";" then we assume it to be the separator
15044 # otherwise default to the standard path separator (i.e. ":") - it is
15045 # assumed that no part of a normal pathname contains ";" but that should
15046 # okay in the real world where ";" in dirpaths is itself problematic.
15047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15048 else
15049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15051 else
15052 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15054 need_lib_prefix=unknown
15055 hardcode_into_libs=no
15057 # when you set need_version to no, make sure it does not cause -set_version
15058 # flags to be left without arguments
15059 need_version=unknown
15061 case $host_os in
15062 aix3*)
15063 version_type=linux
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15065 shlibpath_var=LIBPATH
15067 # AIX 3 has no versioning support, so we append a major version to the name.
15068 soname_spec='${libname}${release}${shared_ext}$major'
15071 aix4* | aix5*)
15072 version_type=linux
15073 need_lib_prefix=no
15074 need_version=no
15075 hardcode_into_libs=yes
15076 if test "$host_cpu" = ia64; then
15077 # AIX 5 supports IA64
15078 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 else
15081 # With GCC up to 2.95.x, collect2 would create an import file
15082 # for dependence libraries. The import file would start with
15083 # the line `#! .'. This would cause the generated library to
15084 # depend on `.', always an invalid library. This was fixed in
15085 # development snapshots of GCC prior to 3.0.
15086 case $host_os in
15087 aix4 | aix4.[01] | aix4.[01].*)
15088 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15089 echo ' yes '
15090 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15092 else
15093 can_build_shared=no
15096 esac
15097 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15098 # soname into executable. Probably we can add versioning support to
15099 # collect2, so additional links can be useful in future.
15100 if test "$aix_use_runtimelinking" = yes; then
15101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15102 # instead of lib<name>.a to let people know that these are not
15103 # typical AIX shared libraries.
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 else
15106 # We preserve .a as extension for shared libraries through AIX4.2
15107 # and later when we are not doing run time linking.
15108 library_names_spec='${libname}${release}.a $libname.a'
15109 soname_spec='${libname}${release}${shared_ext}$major'
15111 shlibpath_var=LIBPATH
15115 amigaos*)
15116 library_names_spec='$libname.ixlibrary $libname.a'
15117 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15118 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'
15121 beos*)
15122 library_names_spec='${libname}${shared_ext}'
15123 dynamic_linker="$host_os ld.so"
15124 shlibpath_var=LIBRARY_PATH
15127 bsdi4*)
15128 version_type=linux
15129 need_version=no
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15136 # the default ld.so.conf also contains /usr/contrib/lib and
15137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15138 # libtool to hard-code these into programs
15141 cygwin* | mingw* | pw32*)
15142 version_type=windows
15143 shrext_cmds=".dll"
15144 need_version=no
15145 need_lib_prefix=no
15147 case $GCC,$host_os in
15148 yes,cygwin* | yes,mingw* | yes,pw32*)
15149 library_names_spec='$libname.dll.a'
15150 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15151 postinstall_cmds='base_file=`basename \${file}`~
15152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15153 dldir=$destdir/`dirname \$dlpath`~
15154 test -d \$dldir || mkdir -p \$dldir~
15155 $install_prog $dir/$dlname \$dldir/$dlname'
15156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15157 dlpath=$dir/\$dldll~
15158 $rm \$dlpath'
15159 shlibpath_overrides_runpath=yes
15161 case $host_os in
15162 cygwin*)
15163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15165 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15167 mingw*)
15168 # MinGW DLLs use traditional 'lib' prefix
15169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15171 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15172 # It is most probably a Windows format PATH printed by
15173 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15174 # path with ; separators, and with drive letters. We can handle the
15175 # drive letters (cygwin fileutils understands them), so leave them,
15176 # especially as we might pass files found there to a mingw objdump,
15177 # which wouldn't understand a cygwinified path. Ahh.
15178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15179 else
15180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15183 pw32*)
15184 # pw32 DLLs use 'pw' prefix rather than 'lib'
15185 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15187 esac
15191 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15193 esac
15194 dynamic_linker='Win32 ld.exe'
15195 # FIXME: first we should search . and the directory the executable is in
15196 shlibpath_var=PATH
15199 darwin* | rhapsody*)
15200 dynamic_linker="$host_os dyld"
15201 version_type=darwin
15202 need_lib_prefix=no
15203 need_version=no
15204 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15205 soname_spec='${libname}${release}${major}$shared_ext'
15206 shlibpath_overrides_runpath=yes
15207 shlibpath_var=DYLD_LIBRARY_PATH
15208 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15209 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15210 if test "$GCC" = yes; then
15211 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15212 else
15213 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15218 dgux*)
15219 version_type=linux
15220 need_lib_prefix=no
15221 need_version=no
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15223 soname_spec='${libname}${release}${shared_ext}$major'
15224 shlibpath_var=LD_LIBRARY_PATH
15227 freebsd1*)
15228 dynamic_linker=no
15231 kfreebsd*-gnu)
15232 version_type=linux
15233 need_lib_prefix=no
15234 need_version=no
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=no
15239 hardcode_into_libs=yes
15240 dynamic_linker='GNU ld.so'
15243 freebsd*)
15244 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15245 version_type=freebsd-$objformat
15246 case $version_type in
15247 freebsd-elf*)
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15249 need_version=no
15250 need_lib_prefix=no
15252 freebsd-*)
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15254 need_version=yes
15256 esac
15257 shlibpath_var=LD_LIBRARY_PATH
15258 case $host_os in
15259 freebsd2*)
15260 shlibpath_overrides_runpath=yes
15262 freebsd3.01* | freebsdelf3.01*)
15263 shlibpath_overrides_runpath=yes
15264 hardcode_into_libs=yes
15266 *) # from 3.2 on
15267 shlibpath_overrides_runpath=no
15268 hardcode_into_libs=yes
15270 esac
15273 gnu*)
15274 version_type=linux
15275 need_lib_prefix=no
15276 need_version=no
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 hardcode_into_libs=yes
15283 hpux9* | hpux10* | hpux11*)
15284 # Give a soname corresponding to the major version so that dld.sl refuses to
15285 # link against other versions.
15286 version_type=sunos
15287 need_lib_prefix=no
15288 need_version=no
15289 case "$host_cpu" in
15290 ia64*)
15291 shrext_cmds='.so'
15292 hardcode_into_libs=yes
15293 dynamic_linker="$host_os dld.so"
15294 shlibpath_var=LD_LIBRARY_PATH
15295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 if test "X$HPUX_IA64_MODE" = X32; then
15299 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15300 else
15301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15305 hppa*64*)
15306 shrext_cmds='.sl'
15307 hardcode_into_libs=yes
15308 dynamic_linker="$host_os dld.sl"
15309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15317 shrext_cmds='.sl'
15318 dynamic_linker="$host_os dld.sl"
15319 shlibpath_var=SHLIB_PATH
15320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15324 esac
15325 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15326 postinstall_cmds='chmod 555 $lib'
15329 irix5* | irix6* | nonstopux*)
15330 case $host_os in
15331 nonstopux*) version_type=nonstopux ;;
15333 if test "$lt_cv_prog_gnu_ld" = yes; then
15334 version_type=linux
15335 else
15336 version_type=irix
15337 fi ;;
15338 esac
15339 need_lib_prefix=no
15340 need_version=no
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15343 case $host_os in
15344 irix5* | nonstopux*)
15345 libsuff= shlibsuff=
15348 case $LD in # libtool.m4 will add one of these switches to LD
15349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15350 libsuff= shlibsuff= libmagic=32-bit;;
15351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15352 libsuff=32 shlibsuff=N32 libmagic=N32;;
15353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15355 *) libsuff= shlibsuff= libmagic=never-match;;
15356 esac
15358 esac
15359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15360 shlibpath_overrides_runpath=no
15361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15363 hardcode_into_libs=yes
15366 # No shared lib support for Linux oldld, aout, or coff.
15367 linux*oldld* | linux*aout* | linux*coff*)
15368 dynamic_linker=no
15371 # This must be Linux ELF.
15372 linux*)
15373 version_type=linux
15374 need_lib_prefix=no
15375 need_version=no
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=no
15381 # This implies no fast_install, which is unacceptable.
15382 # Some rework will be needed to allow for fast_install
15383 # before this can be enabled.
15384 hardcode_into_libs=yes
15386 # find out which ABI we are using
15387 libsuff=
15388 case "$host_cpu" in
15389 x86_64*|s390x*|powerpc64*)
15390 echo '#line 15390 "configure"' > conftest.$ac_ext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15392 (eval $ac_compile) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; then
15396 case `/usr/bin/file conftest.$ac_objext` in
15397 *64-bit*)
15398 libsuff=64
15399 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15401 esac
15403 rm -rf conftest*
15405 esac
15407 # Append ld.so.conf contents to the search path
15408 if test -f /etc/ld.so.conf; then
15409 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15410 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15413 # We used to test for /lib/ld.so.1 and disable shared libraries on
15414 # powerpc, because MkLinux only supported shared libraries with the
15415 # GNU dynamic linker. Since this was broken with cross compilers,
15416 # most powerpc-linux boxes support dynamic linking these days and
15417 # people can always --disable-shared, the test was removed, and we
15418 # assume the GNU/Linux dynamic linker is in use.
15419 dynamic_linker='GNU/Linux ld.so'
15422 knetbsd*-gnu)
15423 version_type=linux
15424 need_lib_prefix=no
15425 need_version=no
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=no
15430 hardcode_into_libs=yes
15431 dynamic_linker='GNU ld.so'
15434 netbsd*)
15435 version_type=sunos
15436 need_lib_prefix=no
15437 need_version=no
15438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15441 dynamic_linker='NetBSD (a.out) ld.so'
15442 else
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 dynamic_linker='NetBSD ld.elf_so'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 shlibpath_overrides_runpath=yes
15449 hardcode_into_libs=yes
15452 newsos6)
15453 version_type=linux
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=yes
15459 nto-qnx*)
15460 version_type=linux
15461 need_lib_prefix=no
15462 need_version=no
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 shlibpath_overrides_runpath=yes
15469 openbsd*)
15470 version_type=sunos
15471 need_lib_prefix=no
15472 need_version=yes
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15477 case $host_os in
15478 openbsd2.[89] | openbsd2.[89].*)
15479 shlibpath_overrides_runpath=no
15482 shlibpath_overrides_runpath=yes
15484 esac
15485 else
15486 shlibpath_overrides_runpath=yes
15490 os2*)
15491 libname_spec='$name'
15492 shrext_cmds=".dll"
15493 need_lib_prefix=no
15494 library_names_spec='$libname${shared_ext} $libname.a'
15495 dynamic_linker='OS/2 ld.exe'
15496 shlibpath_var=LIBPATH
15499 osf3* | osf4* | osf5*)
15500 version_type=osf
15501 need_lib_prefix=no
15502 need_version=no
15503 soname_spec='${libname}${release}${shared_ext}$major'
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15510 sco3.2v5*)
15511 version_type=osf
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514 shlibpath_var=LD_LIBRARY_PATH
15517 solaris*)
15518 version_type=linux
15519 need_lib_prefix=no
15520 need_version=no
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=yes
15525 hardcode_into_libs=yes
15526 # ldd complains unless libraries are executable
15527 postinstall_cmds='chmod +x $lib'
15530 sunos4*)
15531 version_type=sunos
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 shlibpath_overrides_runpath=yes
15536 if test "$with_gnu_ld" = yes; then
15537 need_lib_prefix=no
15539 need_version=yes
15542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15543 version_type=linux
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 case $host_vendor in
15548 sni)
15549 shlibpath_overrides_runpath=no
15550 need_lib_prefix=no
15551 export_dynamic_flag_spec='${wl}-Blargedynsym'
15552 runpath_var=LD_RUN_PATH
15554 siemens)
15555 need_lib_prefix=no
15557 motorola)
15558 need_lib_prefix=no
15559 need_version=no
15560 shlibpath_overrides_runpath=no
15561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15563 esac
15566 sysv4*MP*)
15567 if test -d /usr/nec ;then
15568 version_type=linux
15569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15570 soname_spec='$libname${shared_ext}.$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15575 uts4*)
15576 version_type=linux
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 shlibpath_var=LD_LIBRARY_PATH
15583 dynamic_linker=no
15585 esac
15586 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15587 echo "${ECHO_T}$dynamic_linker" >&6; }
15588 test "$dynamic_linker" = no && can_build_shared=no
15590 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15592 hardcode_action_F77=
15593 if test -n "$hardcode_libdir_flag_spec_F77" || \
15594 test -n "$runpath_var F77" || \
15595 test "X$hardcode_automatic_F77"="Xyes" ; then
15597 # We can hardcode non-existant directories.
15598 if test "$hardcode_direct_F77" != no &&
15599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15600 # have to relink, otherwise we might link with an installed library
15601 # when we should be linking with a yet-to-be-installed one
15602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15603 test "$hardcode_minus_L_F77" != no; then
15604 # Linking always hardcodes the temporary library directory.
15605 hardcode_action_F77=relink
15606 else
15607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15608 hardcode_action_F77=immediate
15610 else
15611 # We cannot hardcode anything, or else we can only hardcode existing
15612 # directories.
15613 hardcode_action_F77=unsupported
15615 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15616 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15618 if test "$hardcode_action_F77" = relink; then
15619 # Fast installation is not supported
15620 enable_fast_install=no
15621 elif test "$shlibpath_overrides_runpath" = yes ||
15622 test "$enable_shared" = no; then
15623 # Fast installation is not necessary
15624 enable_fast_install=needless
15627 striplib=
15628 old_striplib=
15629 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15630 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15631 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15633 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15634 { echo "$as_me:$LINENO: result: yes" >&5
15635 echo "${ECHO_T}yes" >&6; }
15636 else
15637 # FIXME - insert some real tests, host_os isn't really good enough
15638 case $host_os in
15639 darwin*)
15640 if test -n "$STRIP" ; then
15641 striplib="$STRIP -x"
15642 { echo "$as_me:$LINENO: result: yes" >&5
15643 echo "${ECHO_T}yes" >&6; }
15644 else
15645 { echo "$as_me:$LINENO: result: no" >&5
15646 echo "${ECHO_T}no" >&6; }
15650 { echo "$as_me:$LINENO: result: no" >&5
15651 echo "${ECHO_T}no" >&6; }
15653 esac
15658 # The else clause should only fire when bootstrapping the
15659 # libtool distribution, otherwise you forgot to ship ltmain.sh
15660 # with your package, and you will get complaints that there are
15661 # no rules to generate ltmain.sh.
15662 if test -f "$ltmain"; then
15663 # See if we are running on zsh, and set the options which allow our commands through
15664 # without removal of \ escapes.
15665 if test -n "${ZSH_VERSION+set}" ; then
15666 setopt NO_GLOB_SUBST
15668 # Now quote all the things that may contain metacharacters while being
15669 # careful not to overquote the AC_SUBSTed values. We take copies of the
15670 # variables and quote the copies for generation of the libtool script.
15671 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15672 SED SHELL STRIP \
15673 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15674 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15675 deplibs_check_method reload_flag reload_cmds need_locks \
15676 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15677 lt_cv_sys_global_symbol_to_c_name_address \
15678 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15679 old_postinstall_cmds old_postuninstall_cmds \
15680 compiler_F77 \
15681 CC_F77 \
15682 LD_F77 \
15683 lt_prog_compiler_wl_F77 \
15684 lt_prog_compiler_pic_F77 \
15685 lt_prog_compiler_static_F77 \
15686 lt_prog_compiler_no_builtin_flag_F77 \
15687 export_dynamic_flag_spec_F77 \
15688 thread_safe_flag_spec_F77 \
15689 whole_archive_flag_spec_F77 \
15690 enable_shared_with_static_runtimes_F77 \
15691 old_archive_cmds_F77 \
15692 old_archive_from_new_cmds_F77 \
15693 predep_objects_F77 \
15694 postdep_objects_F77 \
15695 predeps_F77 \
15696 postdeps_F77 \
15697 compiler_lib_search_path_F77 \
15698 archive_cmds_F77 \
15699 archive_expsym_cmds_F77 \
15700 postinstall_cmds_F77 \
15701 postuninstall_cmds_F77 \
15702 old_archive_from_expsyms_cmds_F77 \
15703 allow_undefined_flag_F77 \
15704 no_undefined_flag_F77 \
15705 export_symbols_cmds_F77 \
15706 hardcode_libdir_flag_spec_F77 \
15707 hardcode_libdir_flag_spec_ld_F77 \
15708 hardcode_libdir_separator_F77 \
15709 hardcode_automatic_F77 \
15710 module_cmds_F77 \
15711 module_expsym_cmds_F77 \
15712 lt_cv_prog_compiler_c_o_F77 \
15713 exclude_expsyms_F77 \
15714 include_expsyms_F77; do
15716 case $var in
15717 old_archive_cmds_F77 | \
15718 old_archive_from_new_cmds_F77 | \
15719 archive_cmds_F77 | \
15720 archive_expsym_cmds_F77 | \
15721 module_cmds_F77 | \
15722 module_expsym_cmds_F77 | \
15723 old_archive_from_expsyms_cmds_F77 | \
15724 export_symbols_cmds_F77 | \
15725 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15726 postinstall_cmds | postuninstall_cmds | \
15727 old_postinstall_cmds | old_postuninstall_cmds | \
15728 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15729 # Double-quote double-evaled strings.
15730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15735 esac
15736 done
15738 case $lt_echo in
15739 *'\$0 --fallback-echo"')
15740 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15742 esac
15744 cfgfile="$ofile"
15746 cat <<__EOF__ >> "$cfgfile"
15747 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15751 # Shell to use when invoking shell scripts.
15752 SHELL=$lt_SHELL
15754 # Whether or not to build shared libraries.
15755 build_libtool_libs=$enable_shared
15757 # Whether or not to build static libraries.
15758 build_old_libs=$enable_static
15760 # Whether or not to add -lc for building shared libraries.
15761 build_libtool_need_lc=$archive_cmds_need_lc_F77
15763 # Whether or not to disallow shared libs when runtime libs are static
15764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15766 # Whether or not to optimize for fast installation.
15767 fast_install=$enable_fast_install
15769 # The host system.
15770 host_alias=$host_alias
15771 host=$host
15773 # An echo program that does not interpret backslashes.
15774 echo=$lt_echo
15776 # The archiver.
15777 AR=$lt_AR
15778 AR_FLAGS=$lt_AR_FLAGS
15780 # A C compiler.
15781 LTCC=$lt_LTCC
15783 # A language-specific compiler.
15784 CC=$lt_compiler_F77
15786 # Is the compiler the GNU C compiler?
15787 with_gcc=$GCC_F77
15789 # An ERE matcher.
15790 EGREP=$lt_EGREP
15792 # The linker used to build libraries.
15793 LD=$lt_LD_F77
15795 # Whether we need hard or soft links.
15796 LN_S=$lt_LN_S
15798 # A BSD-compatible nm program.
15799 NM=$lt_NM
15801 # A symbol stripping program
15802 STRIP=$lt_STRIP
15804 # Used to examine libraries when file_magic_cmd begins "file"
15805 MAGIC_CMD=$MAGIC_CMD
15807 # Used on cygwin: DLL creation program.
15808 DLLTOOL="$DLLTOOL"
15810 # Used on cygwin: object dumper.
15811 OBJDUMP="$OBJDUMP"
15813 # Used on cygwin: assembler.
15814 AS="$AS"
15816 # The name of the directory that contains temporary libtool files.
15817 objdir=$objdir
15819 # How to create reloadable object files.
15820 reload_flag=$lt_reload_flag
15821 reload_cmds=$lt_reload_cmds
15823 # How to pass a linker flag through the compiler.
15824 wl=$lt_lt_prog_compiler_wl_F77
15826 # Object file suffix (normally "o").
15827 objext="$ac_objext"
15829 # Old archive suffix (normally "a").
15830 libext="$libext"
15832 # Shared library suffix (normally ".so").
15833 shrext_cmds='$shrext_cmds'
15835 # Executable file suffix (normally "").
15836 exeext="$exeext"
15838 # Additional compiler flags for building library objects.
15839 pic_flag=$lt_lt_prog_compiler_pic_F77
15840 pic_mode=$pic_mode
15842 # What is the maximum length of a command?
15843 max_cmd_len=$lt_cv_sys_max_cmd_len
15845 # Does compiler simultaneously support -c and -o options?
15846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15848 # Must we lock files when doing compilation ?
15849 need_locks=$lt_need_locks
15851 # Do we need the lib prefix for modules?
15852 need_lib_prefix=$need_lib_prefix
15854 # Do we need a version for libraries?
15855 need_version=$need_version
15857 # Whether dlopen is supported.
15858 dlopen_support=$enable_dlopen
15860 # Whether dlopen of programs is supported.
15861 dlopen_self=$enable_dlopen_self
15863 # Whether dlopen of statically linked programs is supported.
15864 dlopen_self_static=$enable_dlopen_self_static
15866 # Compiler flag to prevent dynamic linking.
15867 link_static_flag=$lt_lt_prog_compiler_static_F77
15869 # Compiler flag to turn off builtin functions.
15870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15872 # Compiler flag to allow reflexive dlopens.
15873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15875 # Compiler flag to generate shared objects directly from archives.
15876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15878 # Compiler flag to generate thread-safe objects.
15879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15881 # Library versioning type.
15882 version_type=$version_type
15884 # Format of library name prefix.
15885 libname_spec=$lt_libname_spec
15887 # List of archive names. First name is the real one, the rest are links.
15888 # The last name is the one that the linker finds with -lNAME.
15889 library_names_spec=$lt_library_names_spec
15891 # The coded name of the library, if different from the real name.
15892 soname_spec=$lt_soname_spec
15894 # Commands used to build and install an old-style archive.
15895 RANLIB=$lt_RANLIB
15896 old_archive_cmds=$lt_old_archive_cmds_F77
15897 old_postinstall_cmds=$lt_old_postinstall_cmds
15898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15900 # Create an old-style archive from a shared archive.
15901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15903 # Create a temporary old-style archive to link instead of a shared archive.
15904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15906 # Commands used to build and install a shared archive.
15907 archive_cmds=$lt_archive_cmds_F77
15908 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15909 postinstall_cmds=$lt_postinstall_cmds
15910 postuninstall_cmds=$lt_postuninstall_cmds
15912 # Commands used to build a loadable module (assumed same as above if empty)
15913 module_cmds=$lt_module_cmds_F77
15914 module_expsym_cmds=$lt_module_expsym_cmds_F77
15916 # Commands to strip libraries.
15917 old_striplib=$lt_old_striplib
15918 striplib=$lt_striplib
15920 # Dependencies to place before the objects being linked to create a
15921 # shared library.
15922 predep_objects=$lt_predep_objects_F77
15924 # Dependencies to place after the objects being linked to create a
15925 # shared library.
15926 postdep_objects=$lt_postdep_objects_F77
15928 # Dependencies to place before the objects being linked to create a
15929 # shared library.
15930 predeps=$lt_predeps_F77
15932 # Dependencies to place after the objects being linked to create a
15933 # shared library.
15934 postdeps=$lt_postdeps_F77
15936 # The library search path used internally by the compiler when linking
15937 # a shared library.
15938 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15940 # Method to check whether dependent libraries are shared objects.
15941 deplibs_check_method=$lt_deplibs_check_method
15943 # Command to use when deplibs_check_method == file_magic.
15944 file_magic_cmd=$lt_file_magic_cmd
15946 # Flag that allows shared libraries with undefined symbols to be built.
15947 allow_undefined_flag=$lt_allow_undefined_flag_F77
15949 # Flag that forces no undefined symbols.
15950 no_undefined_flag=$lt_no_undefined_flag_F77
15952 # Commands used to finish a libtool library installation in a directory.
15953 finish_cmds=$lt_finish_cmds
15955 # Same as above, but a single script fragment to be evaled but not shown.
15956 finish_eval=$lt_finish_eval
15958 # Take the output of nm and produce a listing of raw symbols and C names.
15959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15961 # Transform the output of nm in a proper C declaration
15962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15964 # Transform the output of nm in a C name address pair
15965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15967 # This is the shared library runtime path variable.
15968 runpath_var=$runpath_var
15970 # This is the shared library path variable.
15971 shlibpath_var=$shlibpath_var
15973 # Is shlibpath searched before the hard-coded library search path?
15974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15976 # How to hardcode a shared library path into an executable.
15977 hardcode_action=$hardcode_action_F77
15979 # Whether we should hardcode library paths into libraries.
15980 hardcode_into_libs=$hardcode_into_libs
15982 # Flag to hardcode \$libdir into a binary during linking.
15983 # This must work even if \$libdir does not exist.
15984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15986 # If ld is used when linking, flag to hardcode \$libdir into
15987 # a binary during linking. This must work even if \$libdir does
15988 # not exist.
15989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15991 # Whether we need a single -rpath flag with a separated argument.
15992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15995 # resulting binary.
15996 hardcode_direct=$hardcode_direct_F77
15998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15999 # resulting binary.
16000 hardcode_minus_L=$hardcode_minus_L_F77
16002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16003 # the resulting binary.
16004 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16006 # Set to yes if building a shared library automatically hardcodes DIR into the library
16007 # and all subsequent libraries and executables linked against it.
16008 hardcode_automatic=$hardcode_automatic_F77
16010 # Variables whose values should be saved in libtool wrapper scripts and
16011 # restored at relink time.
16012 variables_saved_for_relink="$variables_saved_for_relink"
16014 # Whether libtool must link a program against all its dependency libraries.
16015 link_all_deplibs=$link_all_deplibs_F77
16017 # Compile-time system search path for libraries
16018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16020 # Run-time system search path for libraries
16021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16023 # Fix the shell variable \$srcfile for the compiler.
16024 fix_srcfile_path="$fix_srcfile_path_F77"
16026 # Set to yes if exported symbols are required.
16027 always_export_symbols=$always_export_symbols_F77
16029 # The commands to list exported symbols.
16030 export_symbols_cmds=$lt_export_symbols_cmds_F77
16032 # The commands to extract the exported symbol list from a shared archive.
16033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16035 # Symbols that should not be listed in the preloaded symbols.
16036 exclude_expsyms=$lt_exclude_expsyms_F77
16038 # Symbols that must always be exported.
16039 include_expsyms=$lt_include_expsyms_F77
16041 # ### END LIBTOOL TAG CONFIG: $tagname
16043 __EOF__
16046 else
16047 # If there is no Makefile yet, we rely on a make rule to execute
16048 # `config.status --recheck' to rerun these tests and create the
16049 # libtool script then.
16050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16051 if test -f "$ltmain_in"; then
16052 test -f Makefile && make "$ltmain"
16057 ac_ext=cpp
16058 ac_cpp='$CXXCPP $CPPFLAGS'
16059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16063 CC="$lt_save_CC"
16065 else
16066 tagname=""
16070 GCJ)
16071 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16074 # Source file extension for Java test sources.
16075 ac_ext=java
16077 # Object file extension for compiled Java test sources.
16078 objext=o
16079 objext_GCJ=$objext
16081 # Code to be used in simple compile tests
16082 lt_simple_compile_test_code="class foo {}\n"
16084 # Code to be used in simple link tests
16085 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16089 # If no C compiler was specified, use CC.
16090 LTCC=${LTCC-"$CC"}
16092 # Allow CC to be a program name with arguments.
16093 compiler=$CC
16096 # Allow CC to be a program name with arguments.
16097 lt_save_CC="$CC"
16098 CC=${GCJ-"gcj"}
16099 compiler=$CC
16100 compiler_GCJ=$CC
16102 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16103 archive_cmds_need_lc_GCJ=no
16106 lt_prog_compiler_no_builtin_flag_GCJ=
16108 if test "$GCC" = yes; then
16109 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16112 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16113 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16114 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117 lt_cv_prog_compiler_rtti_exceptions=no
16118 ac_outfile=conftest.$ac_objext
16119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16120 lt_compiler_flag="-fno-rtti -fno-exceptions"
16121 # Insert the option either (1) after the last *FLAGS variable, or
16122 # (2) before a word containing "conftest.", or (3) at the end.
16123 # Note that $ac_compile itself does not contain backslashes and begins
16124 # with a dollar sign (not a hyphen), so the echo should work correctly.
16125 # The option is referenced via a variable to avoid confusing sed.
16126 lt_compile=`echo "$ac_compile" | $SED \
16127 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16129 -e 's:$: $lt_compiler_flag:'`
16130 (eval echo "\"\$as_me:16130: $lt_compile\"" >&5)
16131 (eval "$lt_compile" 2>conftest.err)
16132 ac_status=$?
16133 cat conftest.err >&5
16134 echo "$as_me:16134: \$? = $ac_status" >&5
16135 if (exit $ac_status) && test -s "$ac_outfile"; then
16136 # The compiler can only warn and ignore the option if not recognized
16137 # So say no if there are warnings
16138 if test ! -s conftest.err; then
16139 lt_cv_prog_compiler_rtti_exceptions=yes
16142 $rm conftest*
16145 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16146 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16149 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16150 else
16156 lt_prog_compiler_wl_GCJ=
16157 lt_prog_compiler_pic_GCJ=
16158 lt_prog_compiler_static_GCJ=
16160 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16161 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16163 if test "$GCC" = yes; then
16164 lt_prog_compiler_wl_GCJ='-Wl,'
16165 lt_prog_compiler_static_GCJ='-static'
16167 case $host_os in
16168 aix*)
16169 # All AIX code is PIC.
16170 if test "$host_cpu" = ia64; then
16171 # AIX 5 now supports IA64 processor
16172 lt_prog_compiler_static_GCJ='-Bstatic'
16176 amigaos*)
16177 # FIXME: we need at least 68020 code to build shared libraries, but
16178 # adding the `-m68020' flag to GCC prevents building anything better,
16179 # like `-m68040'.
16180 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16183 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16184 # PIC is the default for these OSes.
16187 mingw* | pw32* | os2*)
16188 # This hack is so that the source file can tell whether it is being
16189 # built for inclusion in a dll (and should export symbols for example).
16190 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16193 darwin* | rhapsody*)
16194 # PIC is the default on this platform
16195 # Common symbols not allowed in MH_DYLIB files
16196 lt_prog_compiler_pic_GCJ='-fno-common'
16199 msdosdjgpp*)
16200 # Just because we use GCC doesn't mean we suddenly get shared libraries
16201 # on systems that don't support them.
16202 lt_prog_compiler_can_build_shared_GCJ=no
16203 enable_shared=no
16206 sysv4*MP*)
16207 if test -d /usr/nec; then
16208 lt_prog_compiler_pic_GCJ=-Kconform_pic
16212 hpux*)
16213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16214 # not for PA HP-UX.
16215 case "$host_cpu" in
16216 hppa*64*|ia64*)
16217 # +Z the default
16220 lt_prog_compiler_pic_GCJ='-fPIC'
16222 esac
16226 lt_prog_compiler_pic_GCJ='-fPIC'
16228 esac
16229 else
16230 # PORTME Check for flag to pass linker flags through the system compiler.
16231 case $host_os in
16232 aix*)
16233 lt_prog_compiler_wl_GCJ='-Wl,'
16234 if test "$host_cpu" = ia64; then
16235 # AIX 5 now supports IA64 processor
16236 lt_prog_compiler_static_GCJ='-Bstatic'
16237 else
16238 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16242 mingw* | pw32* | os2*)
16243 # This hack is so that the source file can tell whether it is being
16244 # built for inclusion in a dll (and should export symbols for example).
16245 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16248 hpux9* | hpux10* | hpux11*)
16249 lt_prog_compiler_wl_GCJ='-Wl,'
16250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16251 # not for PA HP-UX.
16252 case "$host_cpu" in
16253 hppa*64*|ia64*)
16254 # +Z the default
16257 lt_prog_compiler_pic_GCJ='+Z'
16259 esac
16260 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16261 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16264 irix5* | irix6* | nonstopux*)
16265 lt_prog_compiler_wl_GCJ='-Wl,'
16266 # PIC (with -KPIC) is the default.
16267 lt_prog_compiler_static_GCJ='-non_shared'
16270 newsos6)
16271 lt_prog_compiler_pic_GCJ='-KPIC'
16272 lt_prog_compiler_static_GCJ='-Bstatic'
16275 linux*)
16276 case $CC in
16277 icc* | ecc*)
16278 lt_prog_compiler_wl_GCJ='-Wl,'
16279 lt_prog_compiler_pic_GCJ='-KPIC'
16280 lt_prog_compiler_static_GCJ='-static'
16282 ccc*)
16283 lt_prog_compiler_wl_GCJ='-Wl,'
16284 # All Alpha code is PIC.
16285 lt_prog_compiler_static_GCJ='-non_shared'
16287 esac
16290 osf3* | osf4* | osf5*)
16291 lt_prog_compiler_wl_GCJ='-Wl,'
16292 # All OSF/1 code is PIC.
16293 lt_prog_compiler_static_GCJ='-non_shared'
16296 sco3.2v5*)
16297 lt_prog_compiler_pic_GCJ='-Kpic'
16298 lt_prog_compiler_static_GCJ='-dn'
16301 solaris*)
16302 lt_prog_compiler_wl_GCJ='-Wl,'
16303 lt_prog_compiler_pic_GCJ='-KPIC'
16304 lt_prog_compiler_static_GCJ='-Bstatic'
16307 sunos4*)
16308 lt_prog_compiler_wl_GCJ='-Qoption ld '
16309 lt_prog_compiler_pic_GCJ='-PIC'
16310 lt_prog_compiler_static_GCJ='-Bstatic'
16313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16314 lt_prog_compiler_wl_GCJ='-Wl,'
16315 lt_prog_compiler_pic_GCJ='-KPIC'
16316 lt_prog_compiler_static_GCJ='-Bstatic'
16319 sysv4*MP*)
16320 if test -d /usr/nec ;then
16321 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16322 lt_prog_compiler_static_GCJ='-Bstatic'
16326 uts4*)
16327 lt_prog_compiler_pic_GCJ='-pic'
16328 lt_prog_compiler_static_GCJ='-Bstatic'
16332 lt_prog_compiler_can_build_shared_GCJ=no
16334 esac
16337 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16338 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16341 # Check to make sure the PIC flag actually works.
16343 if test -n "$lt_prog_compiler_pic_GCJ"; then
16345 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16346 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16347 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350 lt_prog_compiler_pic_works_GCJ=no
16351 ac_outfile=conftest.$ac_objext
16352 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16353 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16354 # Insert the option either (1) after the last *FLAGS variable, or
16355 # (2) before a word containing "conftest.", or (3) at the end.
16356 # Note that $ac_compile itself does not contain backslashes and begins
16357 # with a dollar sign (not a hyphen), so the echo should work correctly.
16358 # The option is referenced via a variable to avoid confusing sed.
16359 lt_compile=`echo "$ac_compile" | $SED \
16360 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16362 -e 's:$: $lt_compiler_flag:'`
16363 (eval echo "\"\$as_me:16363: $lt_compile\"" >&5)
16364 (eval "$lt_compile" 2>conftest.err)
16365 ac_status=$?
16366 cat conftest.err >&5
16367 echo "$as_me:16367: \$? = $ac_status" >&5
16368 if (exit $ac_status) && test -s "$ac_outfile"; then
16369 # The compiler can only warn and ignore the option if not recognized
16370 # So say no if there are warnings
16371 if test ! -s conftest.err; then
16372 lt_prog_compiler_pic_works_GCJ=yes
16375 $rm conftest*
16378 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16379 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16381 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16382 case $lt_prog_compiler_pic_GCJ in
16383 "" | " "*) ;;
16384 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16385 esac
16386 else
16387 lt_prog_compiler_pic_GCJ=
16388 lt_prog_compiler_can_build_shared_GCJ=no
16392 case "$host_os" in
16393 # For platforms which do not support PIC, -DPIC is meaningless:
16394 *djgpp*)
16395 lt_prog_compiler_pic_GCJ=
16398 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16400 esac
16402 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16403 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16404 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 else
16407 lt_cv_prog_compiler_c_o_GCJ=no
16408 $rm -r conftest 2>/dev/null
16409 mkdir conftest
16410 cd conftest
16411 mkdir out
16412 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16414 lt_compiler_flag="-o out/conftest2.$ac_objext"
16415 # Insert the option either (1) after the last *FLAGS variable, or
16416 # (2) before a word containing "conftest.", or (3) at the end.
16417 # Note that $ac_compile itself does not contain backslashes and begins
16418 # with a dollar sign (not a hyphen), so the echo should work correctly.
16419 lt_compile=`echo "$ac_compile" | $SED \
16420 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16422 -e 's:$: $lt_compiler_flag:'`
16423 (eval echo "\"\$as_me:16423: $lt_compile\"" >&5)
16424 (eval "$lt_compile" 2>out/conftest.err)
16425 ac_status=$?
16426 cat out/conftest.err >&5
16427 echo "$as_me:16427: \$? = $ac_status" >&5
16428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16429 then
16430 # The compiler can only warn and ignore the option if not recognized
16431 # So say no if there are warnings
16432 if test ! -s out/conftest.err; then
16433 lt_cv_prog_compiler_c_o_GCJ=yes
16436 chmod u+w .
16437 $rm conftest*
16438 # SGI C++ compiler will create directory out/ii_files/ for
16439 # template instantiation
16440 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16441 $rm out/* && rmdir out
16442 cd ..
16443 rmdir conftest
16444 $rm conftest*
16447 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16448 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16451 hard_links="nottested"
16452 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16453 # do not overwrite the value of need_locks provided by the user
16454 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16455 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16456 hard_links=yes
16457 $rm conftest*
16458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16459 touch conftest.a
16460 ln conftest.a conftest.b 2>&5 || hard_links=no
16461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16462 { echo "$as_me:$LINENO: result: $hard_links" >&5
16463 echo "${ECHO_T}$hard_links" >&6; }
16464 if test "$hard_links" = no; then
16465 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16466 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16467 need_locks=warn
16469 else
16470 need_locks=no
16473 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16474 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16476 runpath_var=
16477 allow_undefined_flag_GCJ=
16478 enable_shared_with_static_runtimes_GCJ=no
16479 archive_cmds_GCJ=
16480 archive_expsym_cmds_GCJ=
16481 old_archive_From_new_cmds_GCJ=
16482 old_archive_from_expsyms_cmds_GCJ=
16483 export_dynamic_flag_spec_GCJ=
16484 whole_archive_flag_spec_GCJ=
16485 thread_safe_flag_spec_GCJ=
16486 hardcode_libdir_flag_spec_GCJ=
16487 hardcode_libdir_flag_spec_ld_GCJ=
16488 hardcode_libdir_separator_GCJ=
16489 hardcode_direct_GCJ=no
16490 hardcode_minus_L_GCJ=no
16491 hardcode_shlibpath_var_GCJ=unsupported
16492 link_all_deplibs_GCJ=unknown
16493 hardcode_automatic_GCJ=no
16494 module_cmds_GCJ=
16495 module_expsym_cmds_GCJ=
16496 always_export_symbols_GCJ=no
16497 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16498 # include_expsyms should be a list of space-separated symbols to be *always*
16499 # included in the symbol list
16500 include_expsyms_GCJ=
16501 # exclude_expsyms can be an extended regexp of symbols to exclude
16502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16504 # as well as any symbol that contains `d'.
16505 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16507 # platforms (ab)use it in PIC code, but their linkers get confused if
16508 # the symbol is explicitly referenced. Since portable code cannot
16509 # rely on this symbol name, it's probably fine to never include it in
16510 # preloaded symbol tables.
16511 extract_expsyms_cmds=
16513 case $host_os in
16514 cygwin* | mingw* | pw32*)
16515 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16516 # When not using gcc, we currently assume that we are using
16517 # Microsoft Visual C++.
16518 if test "$GCC" != yes; then
16519 with_gnu_ld=no
16522 openbsd*)
16523 with_gnu_ld=no
16525 esac
16527 ld_shlibs_GCJ=yes
16528 if test "$with_gnu_ld" = yes; then
16529 # If archive_cmds runs LD, not CC, wlarc should be empty
16530 wlarc='${wl}'
16532 # See if GNU ld supports shared libraries.
16533 case $host_os in
16534 aix3* | aix4* | aix5*)
16535 # On AIX/PPC, the GNU linker is very broken
16536 if test "$host_cpu" != ia64; then
16537 ld_shlibs_GCJ=no
16538 cat <<EOF 1>&2
16540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16541 *** to be unable to reliably create shared libraries on AIX.
16542 *** Therefore, libtool is disabling shared libraries support. If you
16543 *** really care for shared libraries, you may want to modify your PATH
16544 *** so that a non-GNU linker is found, and then restart.
16550 amigaos*)
16551 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)'
16552 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553 hardcode_minus_L_GCJ=yes
16555 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16556 # that the semantics of dynamic libraries on AmigaOS, at least up
16557 # to version 4, is to share data among multiple programs linked
16558 # with the same dynamic library. Since this doesn't match the
16559 # behavior of shared libraries on other platforms, we can't use
16560 # them.
16561 ld_shlibs_GCJ=no
16564 beos*)
16565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16566 allow_undefined_flag_GCJ=unsupported
16567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16568 # support --undefined. This deserves some investigation. FIXME
16569 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16570 else
16571 ld_shlibs_GCJ=no
16575 cygwin* | mingw* | pw32*)
16576 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16577 # as there is no search path for DLLs.
16578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579 allow_undefined_flag_GCJ=unsupported
16580 always_export_symbols_GCJ=no
16581 enable_shared_with_static_runtimes_GCJ=yes
16582 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16584 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16585 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16586 # If the export-symbols file already is a .def file (1st line
16587 # is EXPORTS), use it as is; otherwise, prepend...
16588 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16589 cp $export_symbols $output_objdir/$soname.def;
16590 else
16591 echo EXPORTS > $output_objdir/$soname.def;
16592 cat $export_symbols >> $output_objdir/$soname.def;
16594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16595 else
16596 ld_shlibs=no
16600 netbsd*)
16601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16602 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16603 wlarc=
16604 else
16605 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16606 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16610 solaris* | sysv5*)
16611 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16612 ld_shlibs_GCJ=no
16613 cat <<EOF 1>&2
16615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16616 *** create shared libraries on Solaris systems. Therefore, libtool
16617 *** is disabling shared libraries support. We urge you to upgrade GNU
16618 *** binutils to release 2.9.1 or newer. Another option is to modify
16619 *** your PATH or compiler configuration so that the native linker is
16620 *** used, and then restart.
16623 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16624 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16625 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16626 else
16627 ld_shlibs_GCJ=no
16631 sunos4*)
16632 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16633 wlarc=
16634 hardcode_direct_GCJ=yes
16635 hardcode_shlibpath_var_GCJ=no
16638 linux*)
16639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16640 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16641 archive_cmds_GCJ="$tmp_archive_cmds"
16642 supports_anon_versioning=no
16643 case `$LD -v 2>/dev/null` in
16644 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16647 *\ 2.11.*) ;; # other 2.11 versions
16648 *) supports_anon_versioning=yes ;;
16649 esac
16650 if test $supports_anon_versioning = yes; then
16651 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16653 $echo "local: *; };" >> $output_objdir/$libname.ver~
16654 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16655 else
16656 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16658 else
16659 ld_shlibs_GCJ=no
16664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16665 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16666 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16667 else
16668 ld_shlibs_GCJ=no
16671 esac
16673 if test "$ld_shlibs_GCJ" = yes; then
16674 runpath_var=LD_RUN_PATH
16675 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16676 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16677 # ancient GNU ld didn't support --whole-archive et. al.
16678 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16679 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16680 else
16681 whole_archive_flag_spec_GCJ=
16684 else
16685 # PORTME fill in a description of your system's linker (not GNU ld)
16686 case $host_os in
16687 aix3*)
16688 allow_undefined_flag_GCJ=unsupported
16689 always_export_symbols_GCJ=yes
16690 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'
16691 # Note: this linker hardcodes the directories in LIBPATH if there
16692 # are no directories specified by -L.
16693 hardcode_minus_L_GCJ=yes
16694 if test "$GCC" = yes && test -z "$link_static_flag"; then
16695 # Neither direct hardcoding nor static linking is supported with a
16696 # broken collect2.
16697 hardcode_direct_GCJ=unsupported
16701 aix4* | aix5*)
16702 if test "$host_cpu" = ia64; then
16703 # On IA64, the linker does run time linking by default, so we don't
16704 # have to do anything special.
16705 aix_use_runtimelinking=no
16706 exp_sym_flag='-Bexport'
16707 no_entry_flag=""
16708 else
16709 # If we're using GNU nm, then we don't want the "-C" option.
16710 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16711 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16712 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'
16713 else
16714 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'
16716 aix_use_runtimelinking=no
16718 # Test if we are trying to use run time linking or normal
16719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16720 # need to do runtime linking.
16721 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16722 for ld_flag in $LDFLAGS; do
16723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16724 aix_use_runtimelinking=yes
16725 break
16727 done
16728 esac
16730 exp_sym_flag='-bexport'
16731 no_entry_flag='-bnoentry'
16734 # When large executables or shared objects are built, AIX ld can
16735 # have problems creating the table of contents. If linking a library
16736 # or program results in "error TOC overflow" add -mminimal-toc to
16737 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16738 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16740 archive_cmds_GCJ=''
16741 hardcode_direct_GCJ=yes
16742 hardcode_libdir_separator_GCJ=':'
16743 link_all_deplibs_GCJ=yes
16745 if test "$GCC" = yes; then
16746 case $host_os in aix4.012|aix4.012.*)
16747 # We only want to do this on AIX 4.2 and lower, the check
16748 # below for broken collect2 doesn't work under 4.3+
16749 collect2name=`${CC} -print-prog-name=collect2`
16750 if test -f "$collect2name" && \
16751 strings "$collect2name" | grep resolve_lib_name >/dev/null
16752 then
16753 # We have reworked collect2
16754 hardcode_direct_GCJ=yes
16755 else
16756 # We have old collect2
16757 hardcode_direct_GCJ=unsupported
16758 # It fails to find uninstalled libraries when the uninstalled
16759 # path is not listed in the libpath. Setting hardcode_minus_L
16760 # to unsupported forces relinking
16761 hardcode_minus_L_GCJ=yes
16762 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16763 hardcode_libdir_separator_GCJ=
16765 esac
16766 shared_flag='-shared'
16767 else
16768 # not using gcc
16769 if test "$host_cpu" = ia64; then
16770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16771 # chokes on -Wl,-G. The following line is correct:
16772 shared_flag='-G'
16773 else
16774 if test "$aix_use_runtimelinking" = yes; then
16775 shared_flag='${wl}-G'
16776 else
16777 shared_flag='${wl}-bM:SRE'
16782 # It seems that -bexpall does not export symbols beginning with
16783 # underscore (_), so it is better to generate a list of symbols to export.
16784 always_export_symbols_GCJ=yes
16785 if test "$aix_use_runtimelinking" = yes; then
16786 # Warning - without using the other runtime loading flags (-brtl),
16787 # -berok will link without error, but may produce a broken library.
16788 allow_undefined_flag_GCJ='-berok'
16789 # Determine the default libpath from the value encoded in an empty executable.
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16798 main ()
16802 return 0;
16804 _ACEOF
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16810 esac
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
16813 ac_status=$?
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } && {
16819 test -z "$ac_cxx_werror_flag" ||
16820 test ! -s conftest.err
16821 } && test -s conftest$ac_exeext &&
16822 $as_test_x conftest$ac_exeext; then
16824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16826 # Check for a 64-bit object if we didn't find anything.
16827 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16828 }'`; fi
16829 else
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837 conftest$ac_exeext conftest.$ac_ext
16838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16840 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16841 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16842 else
16843 if test "$host_cpu" = ia64; then
16844 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16845 allow_undefined_flag_GCJ="-z nodefs"
16846 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16847 else
16848 # Determine the default libpath from the value encoded in an empty executable.
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16857 main ()
16861 return 0;
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (ac_try="$ac_link"
16866 case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_link") 2>conftest.er1
16872 ac_status=$?
16873 grep -v '^ *+' conftest.er1 >conftest.err
16874 rm -f conftest.er1
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } && {
16878 test -z "$ac_cxx_werror_flag" ||
16879 test ! -s conftest.err
16880 } && test -s conftest$ac_exeext &&
16881 $as_test_x conftest$ac_exeext; then
16883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16885 # Check for a 64-bit object if we didn't find anything.
16886 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16887 }'`; fi
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16896 conftest$ac_exeext conftest.$ac_ext
16897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16899 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16900 # Warning - without using the other run time loading flags,
16901 # -berok will link without error, but may produce a broken library.
16902 no_undefined_flag_GCJ=' ${wl}-bernotok'
16903 allow_undefined_flag_GCJ=' ${wl}-berok'
16904 # -bexpall does not export symbols beginning with underscore (_)
16905 always_export_symbols_GCJ=yes
16906 # Exported symbols can be pulled into shared objects from archives
16907 whole_archive_flag_spec_GCJ=' '
16908 archive_cmds_need_lc_GCJ=yes
16909 # This is similar to how AIX traditionally builds it's shared libraries.
16910 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16915 amigaos*)
16916 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)'
16917 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16918 hardcode_minus_L_GCJ=yes
16919 # see comment about different semantics on the GNU ld section
16920 ld_shlibs_GCJ=no
16923 bsdi4*)
16924 export_dynamic_flag_spec_GCJ=-rdynamic
16927 cygwin* | mingw* | pw32*)
16928 # When not using gcc, we currently assume that we are using
16929 # Microsoft Visual C++.
16930 # hardcode_libdir_flag_spec is actually meaningless, as there is
16931 # no search path for DLLs.
16932 hardcode_libdir_flag_spec_GCJ=' '
16933 allow_undefined_flag_GCJ=unsupported
16934 # Tell ltmain to make .lib files, not .a files.
16935 libext=lib
16936 # Tell ltmain to make .dll files, not .so files.
16937 shrext_cmds=".dll"
16938 # FIXME: Setting linknames here is a bad hack.
16939 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16940 # The linker will automatically build a .lib file if we build a DLL.
16941 old_archive_From_new_cmds_GCJ='true'
16942 # FIXME: Should let the user specify the lib program.
16943 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16944 fix_srcfile_path='`cygpath -w "$srcfile"`'
16945 enable_shared_with_static_runtimes_GCJ=yes
16948 darwin* | rhapsody*)
16949 if test "$GXX" = yes ; then
16950 archive_cmds_need_lc_GCJ=no
16951 case "$host_os" in
16952 rhapsody* | darwin1.[012])
16953 allow_undefined_flag_GCJ='-undefined suppress'
16955 *) # Darwin 1.3 on
16956 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16957 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16958 else
16959 case ${MACOSX_DEPLOYMENT_TARGET} in
16960 10.[012])
16961 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16963 10.*)
16964 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16966 esac
16969 esac
16970 lt_int_apple_cc_single_mod=no
16971 output_verbose_link_cmd='echo'
16972 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16973 lt_int_apple_cc_single_mod=yes
16975 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16976 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16977 else
16978 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16980 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16981 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16982 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16983 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16984 else
16985 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16987 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}'
16988 hardcode_direct_GCJ=no
16989 hardcode_automatic_GCJ=yes
16990 hardcode_shlibpath_var_GCJ=unsupported
16991 whole_archive_flag_spec_GCJ='-all_load $convenience'
16992 link_all_deplibs_GCJ=yes
16993 else
16994 ld_shlibs_GCJ=no
16998 dgux*)
16999 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17000 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17001 hardcode_shlibpath_var_GCJ=no
17004 freebsd1*)
17005 ld_shlibs_GCJ=no
17008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17009 # support. Future versions do this automatically, but an explicit c++rt0.o
17010 # does not break anything, and helps significantly (at the cost of a little
17011 # extra space).
17012 freebsd2.2*)
17013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17014 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17015 hardcode_direct_GCJ=yes
17016 hardcode_shlibpath_var_GCJ=no
17019 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17020 freebsd2*)
17021 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17022 hardcode_direct_GCJ=yes
17023 hardcode_minus_L_GCJ=yes
17024 hardcode_shlibpath_var_GCJ=no
17027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17028 freebsd* | kfreebsd*-gnu)
17029 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17030 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17031 hardcode_direct_GCJ=yes
17032 hardcode_shlibpath_var_GCJ=no
17035 hpux9*)
17036 if test "$GCC" = yes; then
17037 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'
17038 else
17039 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'
17041 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17042 hardcode_libdir_separator_GCJ=:
17043 hardcode_direct_GCJ=yes
17045 # hardcode_minus_L: Not really in the search PATH,
17046 # but as the default location of the library.
17047 hardcode_minus_L_GCJ=yes
17048 export_dynamic_flag_spec_GCJ='${wl}-E'
17051 hpux10* | hpux11*)
17052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17053 case "$host_cpu" in
17054 hppa*64*|ia64*)
17055 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17060 esac
17061 else
17062 case "$host_cpu" in
17063 hppa*64*|ia64*)
17064 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17067 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17069 esac
17071 if test "$with_gnu_ld" = no; then
17072 case "$host_cpu" in
17073 hppa*64*)
17074 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17075 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17076 hardcode_libdir_separator_GCJ=:
17077 hardcode_direct_GCJ=no
17078 hardcode_shlibpath_var_GCJ=no
17080 ia64*)
17081 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17082 hardcode_direct_GCJ=no
17083 hardcode_shlibpath_var_GCJ=no
17085 # hardcode_minus_L: Not really in the search PATH,
17086 # but as the default location of the library.
17087 hardcode_minus_L_GCJ=yes
17090 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17091 hardcode_libdir_separator_GCJ=:
17092 hardcode_direct_GCJ=yes
17093 export_dynamic_flag_spec_GCJ='${wl}-E'
17095 # hardcode_minus_L: Not really in the search PATH,
17096 # but as the default location of the library.
17097 hardcode_minus_L_GCJ=yes
17099 esac
17103 irix5* | irix6* | nonstopux*)
17104 if test "$GCC" = yes; then
17105 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'
17106 else
17107 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'
17108 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17110 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17111 hardcode_libdir_separator_GCJ=:
17112 link_all_deplibs_GCJ=yes
17115 netbsd*)
17116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17117 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17118 else
17119 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17121 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17122 hardcode_direct_GCJ=yes
17123 hardcode_shlibpath_var_GCJ=no
17126 newsos6)
17127 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17128 hardcode_direct_GCJ=yes
17129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17130 hardcode_libdir_separator_GCJ=:
17131 hardcode_shlibpath_var_GCJ=no
17134 openbsd*)
17135 hardcode_direct_GCJ=yes
17136 hardcode_shlibpath_var_GCJ=no
17137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17138 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17139 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17140 export_dynamic_flag_spec_GCJ='${wl}-E'
17141 else
17142 case $host_os in
17143 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17144 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17148 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17149 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17151 esac
17155 os2*)
17156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17157 hardcode_minus_L_GCJ=yes
17158 allow_undefined_flag_GCJ=unsupported
17159 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'
17160 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17163 osf3*)
17164 if test "$GCC" = yes; then
17165 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17166 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'
17167 else
17168 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17169 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'
17171 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17172 hardcode_libdir_separator_GCJ=:
17175 osf4* | osf5*) # as osf3* with the addition of -msym flag
17176 if test "$GCC" = yes; then
17177 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17178 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'
17179 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17180 else
17181 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17182 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'
17183 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~
17184 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17186 # Both c and cxx compiler support -rpath directly
17187 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17189 hardcode_libdir_separator_GCJ=:
17192 sco3.2v5*)
17193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17194 hardcode_shlibpath_var_GCJ=no
17195 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17196 runpath_var=LD_RUN_PATH
17197 hardcode_runpath_var=yes
17200 solaris*)
17201 no_undefined_flag_GCJ=' -z text'
17202 if test "$GCC" = yes; then
17203 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17205 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17206 else
17207 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17208 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17209 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17211 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17212 hardcode_shlibpath_var_GCJ=no
17213 case $host_os in
17214 solaris2.[0-5] | solaris2.[0-5].*) ;;
17215 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17216 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17217 esac
17218 link_all_deplibs_GCJ=yes
17221 sunos4*)
17222 if test "x$host_vendor" = xsequent; then
17223 # Use $CC to link under sequent, because it throws in some extra .o
17224 # files that make .init and .fini sections work.
17225 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17226 else
17227 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17229 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17230 hardcode_direct_GCJ=yes
17231 hardcode_minus_L_GCJ=yes
17232 hardcode_shlibpath_var_GCJ=no
17235 sysv4)
17236 case $host_vendor in
17237 sni)
17238 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17239 hardcode_direct_GCJ=yes # is this really true???
17241 siemens)
17242 ## LD is ld it makes a PLAMLIB
17243 ## CC just makes a GrossModule.
17244 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17245 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17246 hardcode_direct_GCJ=no
17248 motorola)
17249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17252 esac
17253 runpath_var='LD_RUN_PATH'
17254 hardcode_shlibpath_var_GCJ=no
17257 sysv4.3*)
17258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259 hardcode_shlibpath_var_GCJ=no
17260 export_dynamic_flag_spec_GCJ='-Bexport'
17263 sysv4*MP*)
17264 if test -d /usr/nec; then
17265 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17266 hardcode_shlibpath_var_GCJ=no
17267 runpath_var=LD_RUN_PATH
17268 hardcode_runpath_var=yes
17269 ld_shlibs_GCJ=yes
17273 sysv4.2uw2*)
17274 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17275 hardcode_direct_GCJ=yes
17276 hardcode_minus_L_GCJ=no
17277 hardcode_shlibpath_var_GCJ=no
17278 hardcode_runpath_var=yes
17279 runpath_var=LD_RUN_PATH
17282 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17283 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17284 if test "$GCC" = yes; then
17285 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17286 else
17287 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17289 runpath_var='LD_RUN_PATH'
17290 hardcode_shlibpath_var_GCJ=no
17293 sysv5*)
17294 no_undefined_flag_GCJ=' -z text'
17295 # $CC -shared without GNU ld will not create a library from C++
17296 # object files and a static libstdc++, better avoid it by now
17297 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17298 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17299 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17300 hardcode_libdir_flag_spec_GCJ=
17301 hardcode_shlibpath_var_GCJ=no
17302 runpath_var='LD_RUN_PATH'
17305 uts4*)
17306 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17307 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17308 hardcode_shlibpath_var_GCJ=no
17312 ld_shlibs_GCJ=no
17314 esac
17317 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17318 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17319 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17321 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17322 if test "$GCC" = yes; then
17323 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17327 # Do we need to explicitly link libc?
17329 case "x$archive_cmds_need_lc_GCJ" in
17330 x|xyes)
17331 # Assume -lc should be added
17332 archive_cmds_need_lc_GCJ=yes
17334 if test "$enable_shared" = yes && test "$GCC" = yes; then
17335 case $archive_cmds_GCJ in
17336 *'~'*)
17337 # FIXME: we may have to deal with multi-command sequences.
17339 '$CC '*)
17340 # Test whether the compiler implicitly links with -lc since on some
17341 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17342 # to ld, don't add -lc before -lgcc.
17343 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17344 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17345 $rm conftest*
17346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17349 (eval $ac_compile) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } 2>conftest.err; then
17353 soname=conftest
17354 lib=conftest
17355 libobjs=conftest.$ac_objext
17356 deplibs=
17357 wl=$lt_prog_compiler_wl_GCJ
17358 compiler_flags=-v
17359 linker_flags=-v
17360 verstring=
17361 output_objdir=.
17362 libname=conftest
17363 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17364 allow_undefined_flag_GCJ=
17365 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17366 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }
17370 then
17371 archive_cmds_need_lc_GCJ=no
17372 else
17373 archive_cmds_need_lc_GCJ=yes
17375 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17376 else
17377 cat conftest.err 1>&5
17379 $rm conftest*
17380 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17381 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17383 esac
17386 esac
17388 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17389 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17390 library_names_spec=
17391 libname_spec='lib$name'
17392 soname_spec=
17393 shrext_cmds=".so"
17394 postinstall_cmds=
17395 postuninstall_cmds=
17396 finish_cmds=
17397 finish_eval=
17398 shlibpath_var=
17399 shlibpath_overrides_runpath=unknown
17400 version_type=none
17401 dynamic_linker="$host_os ld.so"
17402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17403 if test "$GCC" = yes; then
17404 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17405 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17406 # if the path contains ";" then we assume it to be the separator
17407 # otherwise default to the standard path separator (i.e. ":") - it is
17408 # assumed that no part of a normal pathname contains ";" but that should
17409 # okay in the real world where ";" in dirpaths is itself problematic.
17410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17411 else
17412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17414 else
17415 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17417 need_lib_prefix=unknown
17418 hardcode_into_libs=no
17420 # when you set need_version to no, make sure it does not cause -set_version
17421 # flags to be left without arguments
17422 need_version=unknown
17424 case $host_os in
17425 aix3*)
17426 version_type=linux
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17428 shlibpath_var=LIBPATH
17430 # AIX 3 has no versioning support, so we append a major version to the name.
17431 soname_spec='${libname}${release}${shared_ext}$major'
17434 aix4* | aix5*)
17435 version_type=linux
17436 need_lib_prefix=no
17437 need_version=no
17438 hardcode_into_libs=yes
17439 if test "$host_cpu" = ia64; then
17440 # AIX 5 supports IA64
17441 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 else
17444 # With GCC up to 2.95.x, collect2 would create an import file
17445 # for dependence libraries. The import file would start with
17446 # the line `#! .'. This would cause the generated library to
17447 # depend on `.', always an invalid library. This was fixed in
17448 # development snapshots of GCC prior to 3.0.
17449 case $host_os in
17450 aix4 | aix4.[01] | aix4.[01].*)
17451 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17452 echo ' yes '
17453 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17455 else
17456 can_build_shared=no
17459 esac
17460 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17461 # soname into executable. Probably we can add versioning support to
17462 # collect2, so additional links can be useful in future.
17463 if test "$aix_use_runtimelinking" = yes; then
17464 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17465 # instead of lib<name>.a to let people know that these are not
17466 # typical AIX shared libraries.
17467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17468 else
17469 # We preserve .a as extension for shared libraries through AIX4.2
17470 # and later when we are not doing run time linking.
17471 library_names_spec='${libname}${release}.a $libname.a'
17472 soname_spec='${libname}${release}${shared_ext}$major'
17474 shlibpath_var=LIBPATH
17478 amigaos*)
17479 library_names_spec='$libname.ixlibrary $libname.a'
17480 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17481 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'
17484 beos*)
17485 library_names_spec='${libname}${shared_ext}'
17486 dynamic_linker="$host_os ld.so"
17487 shlibpath_var=LIBRARY_PATH
17490 bsdi4*)
17491 version_type=linux
17492 need_version=no
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17496 shlibpath_var=LD_LIBRARY_PATH
17497 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17498 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17499 # the default ld.so.conf also contains /usr/contrib/lib and
17500 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17501 # libtool to hard-code these into programs
17504 cygwin* | mingw* | pw32*)
17505 version_type=windows
17506 shrext_cmds=".dll"
17507 need_version=no
17508 need_lib_prefix=no
17510 case $GCC,$host_os in
17511 yes,cygwin* | yes,mingw* | yes,pw32*)
17512 library_names_spec='$libname.dll.a'
17513 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17514 postinstall_cmds='base_file=`basename \${file}`~
17515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17516 dldir=$destdir/`dirname \$dlpath`~
17517 test -d \$dldir || mkdir -p \$dldir~
17518 $install_prog $dir/$dlname \$dldir/$dlname'
17519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17520 dlpath=$dir/\$dldll~
17521 $rm \$dlpath'
17522 shlibpath_overrides_runpath=yes
17524 case $host_os in
17525 cygwin*)
17526 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17527 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17528 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17530 mingw*)
17531 # MinGW DLLs use traditional 'lib' prefix
17532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17534 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17535 # It is most probably a Windows format PATH printed by
17536 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17537 # path with ; separators, and with drive letters. We can handle the
17538 # drive letters (cygwin fileutils understands them), so leave them,
17539 # especially as we might pass files found there to a mingw objdump,
17540 # which wouldn't understand a cygwinified path. Ahh.
17541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17542 else
17543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17546 pw32*)
17547 # pw32 DLLs use 'pw' prefix rather than 'lib'
17548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17550 esac
17554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17556 esac
17557 dynamic_linker='Win32 ld.exe'
17558 # FIXME: first we should search . and the directory the executable is in
17559 shlibpath_var=PATH
17562 darwin* | rhapsody*)
17563 dynamic_linker="$host_os dyld"
17564 version_type=darwin
17565 need_lib_prefix=no
17566 need_version=no
17567 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17568 soname_spec='${libname}${release}${major}$shared_ext'
17569 shlibpath_overrides_runpath=yes
17570 shlibpath_var=DYLD_LIBRARY_PATH
17571 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17572 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17573 if test "$GCC" = yes; then
17574 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17575 else
17576 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17581 dgux*)
17582 version_type=linux
17583 need_lib_prefix=no
17584 need_version=no
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17590 freebsd1*)
17591 dynamic_linker=no
17594 kfreebsd*-gnu)
17595 version_type=linux
17596 need_lib_prefix=no
17597 need_version=no
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 shlibpath_var=LD_LIBRARY_PATH
17601 shlibpath_overrides_runpath=no
17602 hardcode_into_libs=yes
17603 dynamic_linker='GNU ld.so'
17606 freebsd*)
17607 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17608 version_type=freebsd-$objformat
17609 case $version_type in
17610 freebsd-elf*)
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17612 need_version=no
17613 need_lib_prefix=no
17615 freebsd-*)
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17617 need_version=yes
17619 esac
17620 shlibpath_var=LD_LIBRARY_PATH
17621 case $host_os in
17622 freebsd2*)
17623 shlibpath_overrides_runpath=yes
17625 freebsd3.01* | freebsdelf3.01*)
17626 shlibpath_overrides_runpath=yes
17627 hardcode_into_libs=yes
17629 *) # from 3.2 on
17630 shlibpath_overrides_runpath=no
17631 hardcode_into_libs=yes
17633 esac
17636 gnu*)
17637 version_type=linux
17638 need_lib_prefix=no
17639 need_version=no
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 hardcode_into_libs=yes
17646 hpux9* | hpux10* | hpux11*)
17647 # Give a soname corresponding to the major version so that dld.sl refuses to
17648 # link against other versions.
17649 version_type=sunos
17650 need_lib_prefix=no
17651 need_version=no
17652 case "$host_cpu" in
17653 ia64*)
17654 shrext_cmds='.so'
17655 hardcode_into_libs=yes
17656 dynamic_linker="$host_os dld.so"
17657 shlibpath_var=LD_LIBRARY_PATH
17658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17660 soname_spec='${libname}${release}${shared_ext}$major'
17661 if test "X$HPUX_IA64_MODE" = X32; then
17662 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17663 else
17664 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17668 hppa*64*)
17669 shrext_cmds='.sl'
17670 hardcode_into_libs=yes
17671 dynamic_linker="$host_os dld.sl"
17672 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17680 shrext_cmds='.sl'
17681 dynamic_linker="$host_os dld.sl"
17682 shlibpath_var=SHLIB_PATH
17683 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17685 soname_spec='${libname}${release}${shared_ext}$major'
17687 esac
17688 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17689 postinstall_cmds='chmod 555 $lib'
17692 irix5* | irix6* | nonstopux*)
17693 case $host_os in
17694 nonstopux*) version_type=nonstopux ;;
17696 if test "$lt_cv_prog_gnu_ld" = yes; then
17697 version_type=linux
17698 else
17699 version_type=irix
17700 fi ;;
17701 esac
17702 need_lib_prefix=no
17703 need_version=no
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17706 case $host_os in
17707 irix5* | nonstopux*)
17708 libsuff= shlibsuff=
17711 case $LD in # libtool.m4 will add one of these switches to LD
17712 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17713 libsuff= shlibsuff= libmagic=32-bit;;
17714 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17715 libsuff=32 shlibsuff=N32 libmagic=N32;;
17716 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17717 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17718 *) libsuff= shlibsuff= libmagic=never-match;;
17719 esac
17721 esac
17722 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17723 shlibpath_overrides_runpath=no
17724 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17725 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17726 hardcode_into_libs=yes
17729 # No shared lib support for Linux oldld, aout, or coff.
17730 linux*oldld* | linux*aout* | linux*coff*)
17731 dynamic_linker=no
17734 # This must be Linux ELF.
17735 linux*)
17736 version_type=linux
17737 need_lib_prefix=no
17738 need_version=no
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 soname_spec='${libname}${release}${shared_ext}$major'
17741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath=no
17744 # This implies no fast_install, which is unacceptable.
17745 # Some rework will be needed to allow for fast_install
17746 # before this can be enabled.
17747 hardcode_into_libs=yes
17749 # find out which ABI we are using
17750 libsuff=
17751 case "$host_cpu" in
17752 x86_64*|s390x*|powerpc64*)
17753 echo '#line 17753 "configure"' > conftest.$ac_ext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755 (eval $ac_compile) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; then
17759 case `/usr/bin/file conftest.$ac_objext` in
17760 *64-bit*)
17761 libsuff=64
17762 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17764 esac
17766 rm -rf conftest*
17768 esac
17770 # Append ld.so.conf contents to the search path
17771 if test -f /etc/ld.so.conf; then
17772 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17773 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17776 # We used to test for /lib/ld.so.1 and disable shared libraries on
17777 # powerpc, because MkLinux only supported shared libraries with the
17778 # GNU dynamic linker. Since this was broken with cross compilers,
17779 # most powerpc-linux boxes support dynamic linking these days and
17780 # people can always --disable-shared, the test was removed, and we
17781 # assume the GNU/Linux dynamic linker is in use.
17782 dynamic_linker='GNU/Linux ld.so'
17785 knetbsd*-gnu)
17786 version_type=linux
17787 need_lib_prefix=no
17788 need_version=no
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17790 soname_spec='${libname}${release}${shared_ext}$major'
17791 shlibpath_var=LD_LIBRARY_PATH
17792 shlibpath_overrides_runpath=no
17793 hardcode_into_libs=yes
17794 dynamic_linker='GNU ld.so'
17797 netbsd*)
17798 version_type=sunos
17799 need_lib_prefix=no
17800 need_version=no
17801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17804 dynamic_linker='NetBSD (a.out) ld.so'
17805 else
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17807 soname_spec='${libname}${release}${shared_ext}$major'
17808 dynamic_linker='NetBSD ld.elf_so'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 shlibpath_overrides_runpath=yes
17812 hardcode_into_libs=yes
17815 newsos6)
17816 version_type=linux
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818 shlibpath_var=LD_LIBRARY_PATH
17819 shlibpath_overrides_runpath=yes
17822 nto-qnx*)
17823 version_type=linux
17824 need_lib_prefix=no
17825 need_version=no
17826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17827 soname_spec='${libname}${release}${shared_ext}$major'
17828 shlibpath_var=LD_LIBRARY_PATH
17829 shlibpath_overrides_runpath=yes
17832 openbsd*)
17833 version_type=sunos
17834 need_lib_prefix=no
17835 need_version=yes
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17840 case $host_os in
17841 openbsd2.[89] | openbsd2.[89].*)
17842 shlibpath_overrides_runpath=no
17845 shlibpath_overrides_runpath=yes
17847 esac
17848 else
17849 shlibpath_overrides_runpath=yes
17853 os2*)
17854 libname_spec='$name'
17855 shrext_cmds=".dll"
17856 need_lib_prefix=no
17857 library_names_spec='$libname${shared_ext} $libname.a'
17858 dynamic_linker='OS/2 ld.exe'
17859 shlibpath_var=LIBPATH
17862 osf3* | osf4* | osf5*)
17863 version_type=osf
17864 need_lib_prefix=no
17865 need_version=no
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17873 sco3.2v5*)
17874 version_type=osf
17875 soname_spec='${libname}${release}${shared_ext}$major'
17876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17877 shlibpath_var=LD_LIBRARY_PATH
17880 solaris*)
17881 version_type=linux
17882 need_lib_prefix=no
17883 need_version=no
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath=yes
17888 hardcode_into_libs=yes
17889 # ldd complains unless libraries are executable
17890 postinstall_cmds='chmod +x $lib'
17893 sunos4*)
17894 version_type=sunos
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17896 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17897 shlibpath_var=LD_LIBRARY_PATH
17898 shlibpath_overrides_runpath=yes
17899 if test "$with_gnu_ld" = yes; then
17900 need_lib_prefix=no
17902 need_version=yes
17905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17906 version_type=linux
17907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17908 soname_spec='${libname}${release}${shared_ext}$major'
17909 shlibpath_var=LD_LIBRARY_PATH
17910 case $host_vendor in
17911 sni)
17912 shlibpath_overrides_runpath=no
17913 need_lib_prefix=no
17914 export_dynamic_flag_spec='${wl}-Blargedynsym'
17915 runpath_var=LD_RUN_PATH
17917 siemens)
17918 need_lib_prefix=no
17920 motorola)
17921 need_lib_prefix=no
17922 need_version=no
17923 shlibpath_overrides_runpath=no
17924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17926 esac
17929 sysv4*MP*)
17930 if test -d /usr/nec ;then
17931 version_type=linux
17932 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17933 soname_spec='$libname${shared_ext}.$major'
17934 shlibpath_var=LD_LIBRARY_PATH
17938 uts4*)
17939 version_type=linux
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 soname_spec='${libname}${release}${shared_ext}$major'
17942 shlibpath_var=LD_LIBRARY_PATH
17946 dynamic_linker=no
17948 esac
17949 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17950 echo "${ECHO_T}$dynamic_linker" >&6; }
17951 test "$dynamic_linker" = no && can_build_shared=no
17953 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17954 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17955 hardcode_action_GCJ=
17956 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17957 test -n "$runpath_var GCJ" || \
17958 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17960 # We can hardcode non-existant directories.
17961 if test "$hardcode_direct_GCJ" != no &&
17962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17963 # have to relink, otherwise we might link with an installed library
17964 # when we should be linking with a yet-to-be-installed one
17965 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17966 test "$hardcode_minus_L_GCJ" != no; then
17967 # Linking always hardcodes the temporary library directory.
17968 hardcode_action_GCJ=relink
17969 else
17970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17971 hardcode_action_GCJ=immediate
17973 else
17974 # We cannot hardcode anything, or else we can only hardcode existing
17975 # directories.
17976 hardcode_action_GCJ=unsupported
17978 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17979 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17981 if test "$hardcode_action_GCJ" = relink; then
17982 # Fast installation is not supported
17983 enable_fast_install=no
17984 elif test "$shlibpath_overrides_runpath" = yes ||
17985 test "$enable_shared" = no; then
17986 # Fast installation is not necessary
17987 enable_fast_install=needless
17990 striplib=
17991 old_striplib=
17992 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17993 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17994 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17995 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17996 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17997 { echo "$as_me:$LINENO: result: yes" >&5
17998 echo "${ECHO_T}yes" >&6; }
17999 else
18000 # FIXME - insert some real tests, host_os isn't really good enough
18001 case $host_os in
18002 darwin*)
18003 if test -n "$STRIP" ; then
18004 striplib="$STRIP -x"
18005 { echo "$as_me:$LINENO: result: yes" >&5
18006 echo "${ECHO_T}yes" >&6; }
18007 else
18008 { echo "$as_me:$LINENO: result: no" >&5
18009 echo "${ECHO_T}no" >&6; }
18013 { echo "$as_me:$LINENO: result: no" >&5
18014 echo "${ECHO_T}no" >&6; }
18016 esac
18019 if test "x$enable_dlopen" != xyes; then
18020 enable_dlopen=unknown
18021 enable_dlopen_self=unknown
18022 enable_dlopen_self_static=unknown
18023 else
18024 lt_cv_dlopen=no
18025 lt_cv_dlopen_libs=
18027 case $host_os in
18028 beos*)
18029 lt_cv_dlopen="load_add_on"
18030 lt_cv_dlopen_libs=
18031 lt_cv_dlopen_self=yes
18034 mingw* | pw32*)
18035 lt_cv_dlopen="LoadLibrary"
18036 lt_cv_dlopen_libs=
18039 cygwin*)
18040 lt_cv_dlopen="dlopen"
18041 lt_cv_dlopen_libs=
18044 darwin*)
18045 # if libdl is installed we need to link against it
18046 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18047 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18048 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051 ac_check_lib_save_LIBS=$LIBS
18052 LIBS="-ldl $LIBS"
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18060 /* Override any GCC internal prototype to avoid an error.
18061 Use char because int might match the return type of a GCC
18062 builtin and then its argument prototype would still apply. */
18063 #ifdef __cplusplus
18064 extern "C"
18065 #endif
18066 char dlopen ();
18068 main ()
18070 return dlopen ();
18072 return 0;
18074 _ACEOF
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (ac_try="$ac_link"
18077 case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_link") 2>conftest.er1
18083 ac_status=$?
18084 grep -v '^ *+' conftest.er1 >conftest.err
18085 rm -f conftest.er1
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } && {
18089 test -z "$ac_cxx_werror_flag" ||
18090 test ! -s conftest.err
18091 } && test -s conftest$ac_exeext &&
18092 $as_test_x conftest$ac_exeext; then
18093 ac_cv_lib_dl_dlopen=yes
18094 else
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 ac_cv_lib_dl_dlopen=no
18101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18102 conftest$ac_exeext conftest.$ac_ext
18103 LIBS=$ac_check_lib_save_LIBS
18105 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18106 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18107 if test $ac_cv_lib_dl_dlopen = yes; then
18108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18109 else
18111 lt_cv_dlopen="dyld"
18112 lt_cv_dlopen_libs=
18113 lt_cv_dlopen_self=yes
18120 { echo "$as_me:$LINENO: checking for shl_load" >&5
18121 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18122 if test "${ac_cv_func_shl_load+set}" = set; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h. */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18133 #define shl_load innocuous_shl_load
18135 /* System header to define __stub macros and hopefully few prototypes,
18136 which can conflict with char shl_load (); below.
18137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18138 <limits.h> exists even on freestanding compilers. */
18140 #ifdef __STDC__
18141 # include <limits.h>
18142 #else
18143 # include <assert.h>
18144 #endif
18146 #undef shl_load
18148 /* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18151 #ifdef __cplusplus
18152 extern "C"
18153 #endif
18154 char shl_load ();
18155 /* The GNU C library defines this for functions which it implements
18156 to always fail with ENOSYS. Some functions are actually named
18157 something starting with __ and the normal name is an alias. */
18158 #if defined __stub_shl_load || defined __stub___shl_load
18159 choke me
18160 #endif
18163 main ()
18165 return shl_load ();
18167 return 0;
18169 _ACEOF
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (ac_try="$ac_link"
18172 case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_link") 2>conftest.er1
18178 ac_status=$?
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } && {
18184 test -z "$ac_cxx_werror_flag" ||
18185 test ! -s conftest.err
18186 } && test -s conftest$ac_exeext &&
18187 $as_test_x conftest$ac_exeext; then
18188 ac_cv_func_shl_load=yes
18189 else
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18193 ac_cv_func_shl_load=no
18196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18197 conftest$ac_exeext conftest.$ac_ext
18199 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18200 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18201 if test $ac_cv_func_shl_load = yes; then
18202 lt_cv_dlopen="shl_load"
18203 else
18204 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18205 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18206 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209 ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-ldld $LIBS"
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h. */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18218 /* Override any GCC internal prototype to avoid an error.
18219 Use char because int might match the return type of a GCC
18220 builtin and then its argument prototype would still apply. */
18221 #ifdef __cplusplus
18222 extern "C"
18223 #endif
18224 char shl_load ();
18226 main ()
18228 return shl_load ();
18230 return 0;
18232 _ACEOF
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (ac_try="$ac_link"
18235 case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_link") 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } && {
18247 test -z "$ac_cxx_werror_flag" ||
18248 test ! -s conftest.err
18249 } && test -s conftest$ac_exeext &&
18250 $as_test_x conftest$ac_exeext; then
18251 ac_cv_lib_dld_shl_load=yes
18252 else
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_cv_lib_dld_shl_load=no
18259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18260 conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18263 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18264 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18265 if test $ac_cv_lib_dld_shl_load = yes; then
18266 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18267 else
18268 { echo "$as_me:$LINENO: checking for dlopen" >&5
18269 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18270 if test "${ac_cv_func_dlopen+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h. */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18281 #define dlopen innocuous_dlopen
18283 /* System header to define __stub macros and hopefully few prototypes,
18284 which can conflict with char dlopen (); below.
18285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18286 <limits.h> exists even on freestanding compilers. */
18288 #ifdef __STDC__
18289 # include <limits.h>
18290 #else
18291 # include <assert.h>
18292 #endif
18294 #undef dlopen
18296 /* Override any GCC internal prototype to avoid an error.
18297 Use char because int might match the return type of a GCC
18298 builtin and then its argument prototype would still apply. */
18299 #ifdef __cplusplus
18300 extern "C"
18301 #endif
18302 char dlopen ();
18303 /* The GNU C library defines this for functions which it implements
18304 to always fail with ENOSYS. Some functions are actually named
18305 something starting with __ and the normal name is an alias. */
18306 #if defined __stub_dlopen || defined __stub___dlopen
18307 choke me
18308 #endif
18311 main ()
18313 return dlopen ();
18315 return 0;
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_cxx_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest$ac_exeext &&
18335 $as_test_x conftest$ac_exeext; then
18336 ac_cv_func_dlopen=yes
18337 else
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_cv_func_dlopen=no
18344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18345 conftest$ac_exeext conftest.$ac_ext
18347 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18348 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18349 if test $ac_cv_func_dlopen = yes; then
18350 lt_cv_dlopen="dlopen"
18351 else
18352 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18353 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18354 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18356 else
18357 ac_check_lib_save_LIBS=$LIBS
18358 LIBS="-ldl $LIBS"
18359 cat >conftest.$ac_ext <<_ACEOF
18360 /* confdefs.h. */
18361 _ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h. */
18366 /* Override any GCC internal prototype to avoid an error.
18367 Use char because int might match the return type of a GCC
18368 builtin and then its argument prototype would still apply. */
18369 #ifdef __cplusplus
18370 extern "C"
18371 #endif
18372 char dlopen ();
18374 main ()
18376 return dlopen ();
18378 return 0;
18380 _ACEOF
18381 rm -f conftest.$ac_objext conftest$ac_exeext
18382 if { (ac_try="$ac_link"
18383 case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18386 esac
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_link") 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } && {
18395 test -z "$ac_cxx_werror_flag" ||
18396 test ! -s conftest.err
18397 } && test -s conftest$ac_exeext &&
18398 $as_test_x conftest$ac_exeext; then
18399 ac_cv_lib_dl_dlopen=yes
18400 else
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18404 ac_cv_lib_dl_dlopen=no
18407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18408 conftest$ac_exeext conftest.$ac_ext
18409 LIBS=$ac_check_lib_save_LIBS
18411 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18412 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18413 if test $ac_cv_lib_dl_dlopen = yes; then
18414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18415 else
18416 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18417 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18418 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 else
18421 ac_check_lib_save_LIBS=$LIBS
18422 LIBS="-lsvld $LIBS"
18423 cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h. */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18430 /* Override any GCC internal prototype to avoid an error.
18431 Use char because int might match the return type of a GCC
18432 builtin and then its argument prototype would still apply. */
18433 #ifdef __cplusplus
18434 extern "C"
18435 #endif
18436 char dlopen ();
18438 main ()
18440 return dlopen ();
18442 return 0;
18444 _ACEOF
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18453 ac_status=$?
18454 grep -v '^ *+' conftest.er1 >conftest.err
18455 rm -f conftest.er1
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } && {
18459 test -z "$ac_cxx_werror_flag" ||
18460 test ! -s conftest.err
18461 } && test -s conftest$ac_exeext &&
18462 $as_test_x conftest$ac_exeext; then
18463 ac_cv_lib_svld_dlopen=yes
18464 else
18465 echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18468 ac_cv_lib_svld_dlopen=no
18471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18472 conftest$ac_exeext conftest.$ac_ext
18473 LIBS=$ac_check_lib_save_LIBS
18475 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18476 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18477 if test $ac_cv_lib_svld_dlopen = yes; then
18478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18479 else
18480 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18481 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18482 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 else
18485 ac_check_lib_save_LIBS=$LIBS
18486 LIBS="-ldld $LIBS"
18487 cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h. */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18494 /* Override any GCC internal prototype to avoid an error.
18495 Use char because int might match the return type of a GCC
18496 builtin and then its argument prototype would still apply. */
18497 #ifdef __cplusplus
18498 extern "C"
18499 #endif
18500 char dld_link ();
18502 main ()
18504 return dld_link ();
18506 return 0;
18508 _ACEOF
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } && {
18523 test -z "$ac_cxx_werror_flag" ||
18524 test ! -s conftest.err
18525 } && test -s conftest$ac_exeext &&
18526 $as_test_x conftest$ac_exeext; then
18527 ac_cv_lib_dld_dld_link=yes
18528 else
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_cv_lib_dld_dld_link=no
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536 conftest$ac_exeext conftest.$ac_ext
18537 LIBS=$ac_check_lib_save_LIBS
18539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18541 if test $ac_cv_lib_dld_dld_link = yes; then
18542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18561 esac
18563 if test "x$lt_cv_dlopen" != xno; then
18564 enable_dlopen=yes
18565 else
18566 enable_dlopen=no
18569 case $lt_cv_dlopen in
18570 dlopen)
18571 save_CPPFLAGS="$CPPFLAGS"
18572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18574 save_LDFLAGS="$LDFLAGS"
18575 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18577 save_LIBS="$LIBS"
18578 LIBS="$lt_cv_dlopen_libs $LIBS"
18580 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18582 if test "${lt_cv_dlopen_self+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585 if test "$cross_compiling" = yes; then :
18586 lt_cv_dlopen_self=cross
18587 else
18588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18589 lt_status=$lt_dlunknown
18590 cat > conftest.$ac_ext <<EOF
18591 #line 18591 "configure"
18592 #include "confdefs.h"
18594 #if HAVE_DLFCN_H
18595 #include <dlfcn.h>
18596 #endif
18598 #include <stdio.h>
18600 #ifdef RTLD_GLOBAL
18601 # define LT_DLGLOBAL RTLD_GLOBAL
18602 #else
18603 # ifdef DL_GLOBAL
18604 # define LT_DLGLOBAL DL_GLOBAL
18605 # else
18606 # define LT_DLGLOBAL 0
18607 # endif
18608 #endif
18610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18611 find out it does not work in some platform. */
18612 #ifndef LT_DLLAZY_OR_NOW
18613 # ifdef RTLD_LAZY
18614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18615 # else
18616 # ifdef DL_LAZY
18617 # define LT_DLLAZY_OR_NOW DL_LAZY
18618 # else
18619 # ifdef RTLD_NOW
18620 # define LT_DLLAZY_OR_NOW RTLD_NOW
18621 # else
18622 # ifdef DL_NOW
18623 # define LT_DLLAZY_OR_NOW DL_NOW
18624 # else
18625 # define LT_DLLAZY_OR_NOW 0
18626 # endif
18627 # endif
18628 # endif
18629 # endif
18630 #endif
18632 #ifdef __cplusplus
18633 extern "C" void exit (int);
18634 #endif
18636 void fnord() { int i=42;}
18637 int main ()
18639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18640 int status = $lt_dlunknown;
18642 if (self)
18644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18646 /* dlclose (self); */
18649 exit (status);
18652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18653 (eval $ac_link) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18657 (./conftest; exit; ) 2>/dev/null
18658 lt_status=$?
18659 case x$lt_status in
18660 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18661 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18662 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18663 esac
18664 else :
18665 # compilation failed
18666 lt_cv_dlopen_self=no
18669 rm -fr conftest*
18673 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18674 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18676 if test "x$lt_cv_dlopen_self" = xyes; then
18677 LDFLAGS="$LDFLAGS $link_static_flag"
18678 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18679 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18680 if test "${lt_cv_dlopen_self_static+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683 if test "$cross_compiling" = yes; then :
18684 lt_cv_dlopen_self_static=cross
18685 else
18686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18687 lt_status=$lt_dlunknown
18688 cat > conftest.$ac_ext <<EOF
18689 #line 18689 "configure"
18690 #include "confdefs.h"
18692 #if HAVE_DLFCN_H
18693 #include <dlfcn.h>
18694 #endif
18696 #include <stdio.h>
18698 #ifdef RTLD_GLOBAL
18699 # define LT_DLGLOBAL RTLD_GLOBAL
18700 #else
18701 # ifdef DL_GLOBAL
18702 # define LT_DLGLOBAL DL_GLOBAL
18703 # else
18704 # define LT_DLGLOBAL 0
18705 # endif
18706 #endif
18708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18709 find out it does not work in some platform. */
18710 #ifndef LT_DLLAZY_OR_NOW
18711 # ifdef RTLD_LAZY
18712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18713 # else
18714 # ifdef DL_LAZY
18715 # define LT_DLLAZY_OR_NOW DL_LAZY
18716 # else
18717 # ifdef RTLD_NOW
18718 # define LT_DLLAZY_OR_NOW RTLD_NOW
18719 # else
18720 # ifdef DL_NOW
18721 # define LT_DLLAZY_OR_NOW DL_NOW
18722 # else
18723 # define LT_DLLAZY_OR_NOW 0
18724 # endif
18725 # endif
18726 # endif
18727 # endif
18728 #endif
18730 #ifdef __cplusplus
18731 extern "C" void exit (int);
18732 #endif
18734 void fnord() { int i=42;}
18735 int main ()
18737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18738 int status = $lt_dlunknown;
18740 if (self)
18742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18744 /* dlclose (self); */
18747 exit (status);
18750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18751 (eval $ac_link) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18755 (./conftest; exit; ) 2>/dev/null
18756 lt_status=$?
18757 case x$lt_status in
18758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18760 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18761 esac
18762 else :
18763 # compilation failed
18764 lt_cv_dlopen_self_static=no
18767 rm -fr conftest*
18771 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18772 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18775 CPPFLAGS="$save_CPPFLAGS"
18776 LDFLAGS="$save_LDFLAGS"
18777 LIBS="$save_LIBS"
18779 esac
18781 case $lt_cv_dlopen_self in
18782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18783 *) enable_dlopen_self=unknown ;;
18784 esac
18786 case $lt_cv_dlopen_self_static in
18787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18788 *) enable_dlopen_self_static=unknown ;;
18789 esac
18793 # The else clause should only fire when bootstrapping the
18794 # libtool distribution, otherwise you forgot to ship ltmain.sh
18795 # with your package, and you will get complaints that there are
18796 # no rules to generate ltmain.sh.
18797 if test -f "$ltmain"; then
18798 # See if we are running on zsh, and set the options which allow our commands through
18799 # without removal of \ escapes.
18800 if test -n "${ZSH_VERSION+set}" ; then
18801 setopt NO_GLOB_SUBST
18803 # Now quote all the things that may contain metacharacters while being
18804 # careful not to overquote the AC_SUBSTed values. We take copies of the
18805 # variables and quote the copies for generation of the libtool script.
18806 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18807 SED SHELL STRIP \
18808 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18809 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18810 deplibs_check_method reload_flag reload_cmds need_locks \
18811 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18812 lt_cv_sys_global_symbol_to_c_name_address \
18813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18814 old_postinstall_cmds old_postuninstall_cmds \
18815 compiler_GCJ \
18816 CC_GCJ \
18817 LD_GCJ \
18818 lt_prog_compiler_wl_GCJ \
18819 lt_prog_compiler_pic_GCJ \
18820 lt_prog_compiler_static_GCJ \
18821 lt_prog_compiler_no_builtin_flag_GCJ \
18822 export_dynamic_flag_spec_GCJ \
18823 thread_safe_flag_spec_GCJ \
18824 whole_archive_flag_spec_GCJ \
18825 enable_shared_with_static_runtimes_GCJ \
18826 old_archive_cmds_GCJ \
18827 old_archive_from_new_cmds_GCJ \
18828 predep_objects_GCJ \
18829 postdep_objects_GCJ \
18830 predeps_GCJ \
18831 postdeps_GCJ \
18832 compiler_lib_search_path_GCJ \
18833 archive_cmds_GCJ \
18834 archive_expsym_cmds_GCJ \
18835 postinstall_cmds_GCJ \
18836 postuninstall_cmds_GCJ \
18837 old_archive_from_expsyms_cmds_GCJ \
18838 allow_undefined_flag_GCJ \
18839 no_undefined_flag_GCJ \
18840 export_symbols_cmds_GCJ \
18841 hardcode_libdir_flag_spec_GCJ \
18842 hardcode_libdir_flag_spec_ld_GCJ \
18843 hardcode_libdir_separator_GCJ \
18844 hardcode_automatic_GCJ \
18845 module_cmds_GCJ \
18846 module_expsym_cmds_GCJ \
18847 lt_cv_prog_compiler_c_o_GCJ \
18848 exclude_expsyms_GCJ \
18849 include_expsyms_GCJ; do
18851 case $var in
18852 old_archive_cmds_GCJ | \
18853 old_archive_from_new_cmds_GCJ | \
18854 archive_cmds_GCJ | \
18855 archive_expsym_cmds_GCJ | \
18856 module_cmds_GCJ | \
18857 module_expsym_cmds_GCJ | \
18858 old_archive_from_expsyms_cmds_GCJ | \
18859 export_symbols_cmds_GCJ | \
18860 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18861 postinstall_cmds | postuninstall_cmds | \
18862 old_postinstall_cmds | old_postuninstall_cmds | \
18863 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18864 # Double-quote double-evaled strings.
18865 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18870 esac
18871 done
18873 case $lt_echo in
18874 *'\$0 --fallback-echo"')
18875 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18877 esac
18879 cfgfile="$ofile"
18881 cat <<__EOF__ >> "$cfgfile"
18882 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18886 # Shell to use when invoking shell scripts.
18887 SHELL=$lt_SHELL
18889 # Whether or not to build shared libraries.
18890 build_libtool_libs=$enable_shared
18892 # Whether or not to build static libraries.
18893 build_old_libs=$enable_static
18895 # Whether or not to add -lc for building shared libraries.
18896 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18898 # Whether or not to disallow shared libs when runtime libs are static
18899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18901 # Whether or not to optimize for fast installation.
18902 fast_install=$enable_fast_install
18904 # The host system.
18905 host_alias=$host_alias
18906 host=$host
18908 # An echo program that does not interpret backslashes.
18909 echo=$lt_echo
18911 # The archiver.
18912 AR=$lt_AR
18913 AR_FLAGS=$lt_AR_FLAGS
18915 # A C compiler.
18916 LTCC=$lt_LTCC
18918 # A language-specific compiler.
18919 CC=$lt_compiler_GCJ
18921 # Is the compiler the GNU C compiler?
18922 with_gcc=$GCC_GCJ
18924 # An ERE matcher.
18925 EGREP=$lt_EGREP
18927 # The linker used to build libraries.
18928 LD=$lt_LD_GCJ
18930 # Whether we need hard or soft links.
18931 LN_S=$lt_LN_S
18933 # A BSD-compatible nm program.
18934 NM=$lt_NM
18936 # A symbol stripping program
18937 STRIP=$lt_STRIP
18939 # Used to examine libraries when file_magic_cmd begins "file"
18940 MAGIC_CMD=$MAGIC_CMD
18942 # Used on cygwin: DLL creation program.
18943 DLLTOOL="$DLLTOOL"
18945 # Used on cygwin: object dumper.
18946 OBJDUMP="$OBJDUMP"
18948 # Used on cygwin: assembler.
18949 AS="$AS"
18951 # The name of the directory that contains temporary libtool files.
18952 objdir=$objdir
18954 # How to create reloadable object files.
18955 reload_flag=$lt_reload_flag
18956 reload_cmds=$lt_reload_cmds
18958 # How to pass a linker flag through the compiler.
18959 wl=$lt_lt_prog_compiler_wl_GCJ
18961 # Object file suffix (normally "o").
18962 objext="$ac_objext"
18964 # Old archive suffix (normally "a").
18965 libext="$libext"
18967 # Shared library suffix (normally ".so").
18968 shrext_cmds='$shrext_cmds'
18970 # Executable file suffix (normally "").
18971 exeext="$exeext"
18973 # Additional compiler flags for building library objects.
18974 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18975 pic_mode=$pic_mode
18977 # What is the maximum length of a command?
18978 max_cmd_len=$lt_cv_sys_max_cmd_len
18980 # Does compiler simultaneously support -c and -o options?
18981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18983 # Must we lock files when doing compilation ?
18984 need_locks=$lt_need_locks
18986 # Do we need the lib prefix for modules?
18987 need_lib_prefix=$need_lib_prefix
18989 # Do we need a version for libraries?
18990 need_version=$need_version
18992 # Whether dlopen is supported.
18993 dlopen_support=$enable_dlopen
18995 # Whether dlopen of programs is supported.
18996 dlopen_self=$enable_dlopen_self
18998 # Whether dlopen of statically linked programs is supported.
18999 dlopen_self_static=$enable_dlopen_self_static
19001 # Compiler flag to prevent dynamic linking.
19002 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19004 # Compiler flag to turn off builtin functions.
19005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19007 # Compiler flag to allow reflexive dlopens.
19008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19010 # Compiler flag to generate shared objects directly from archives.
19011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19013 # Compiler flag to generate thread-safe objects.
19014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19016 # Library versioning type.
19017 version_type=$version_type
19019 # Format of library name prefix.
19020 libname_spec=$lt_libname_spec
19022 # List of archive names. First name is the real one, the rest are links.
19023 # The last name is the one that the linker finds with -lNAME.
19024 library_names_spec=$lt_library_names_spec
19026 # The coded name of the library, if different from the real name.
19027 soname_spec=$lt_soname_spec
19029 # Commands used to build and install an old-style archive.
19030 RANLIB=$lt_RANLIB
19031 old_archive_cmds=$lt_old_archive_cmds_GCJ
19032 old_postinstall_cmds=$lt_old_postinstall_cmds
19033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19035 # Create an old-style archive from a shared archive.
19036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19038 # Create a temporary old-style archive to link instead of a shared archive.
19039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19041 # Commands used to build and install a shared archive.
19042 archive_cmds=$lt_archive_cmds_GCJ
19043 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19044 postinstall_cmds=$lt_postinstall_cmds
19045 postuninstall_cmds=$lt_postuninstall_cmds
19047 # Commands used to build a loadable module (assumed same as above if empty)
19048 module_cmds=$lt_module_cmds_GCJ
19049 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19051 # Commands to strip libraries.
19052 old_striplib=$lt_old_striplib
19053 striplib=$lt_striplib
19055 # Dependencies to place before the objects being linked to create a
19056 # shared library.
19057 predep_objects=$lt_predep_objects_GCJ
19059 # Dependencies to place after the objects being linked to create a
19060 # shared library.
19061 postdep_objects=$lt_postdep_objects_GCJ
19063 # Dependencies to place before the objects being linked to create a
19064 # shared library.
19065 predeps=$lt_predeps_GCJ
19067 # Dependencies to place after the objects being linked to create a
19068 # shared library.
19069 postdeps=$lt_postdeps_GCJ
19071 # The library search path used internally by the compiler when linking
19072 # a shared library.
19073 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19075 # Method to check whether dependent libraries are shared objects.
19076 deplibs_check_method=$lt_deplibs_check_method
19078 # Command to use when deplibs_check_method == file_magic.
19079 file_magic_cmd=$lt_file_magic_cmd
19081 # Flag that allows shared libraries with undefined symbols to be built.
19082 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19084 # Flag that forces no undefined symbols.
19085 no_undefined_flag=$lt_no_undefined_flag_GCJ
19087 # Commands used to finish a libtool library installation in a directory.
19088 finish_cmds=$lt_finish_cmds
19090 # Same as above, but a single script fragment to be evaled but not shown.
19091 finish_eval=$lt_finish_eval
19093 # Take the output of nm and produce a listing of raw symbols and C names.
19094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19096 # Transform the output of nm in a proper C declaration
19097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19099 # Transform the output of nm in a C name address pair
19100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19102 # This is the shared library runtime path variable.
19103 runpath_var=$runpath_var
19105 # This is the shared library path variable.
19106 shlibpath_var=$shlibpath_var
19108 # Is shlibpath searched before the hard-coded library search path?
19109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19111 # How to hardcode a shared library path into an executable.
19112 hardcode_action=$hardcode_action_GCJ
19114 # Whether we should hardcode library paths into libraries.
19115 hardcode_into_libs=$hardcode_into_libs
19117 # Flag to hardcode \$libdir into a binary during linking.
19118 # This must work even if \$libdir does not exist.
19119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19121 # If ld is used when linking, flag to hardcode \$libdir into
19122 # a binary during linking. This must work even if \$libdir does
19123 # not exist.
19124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19126 # Whether we need a single -rpath flag with a separated argument.
19127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19130 # resulting binary.
19131 hardcode_direct=$hardcode_direct_GCJ
19133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19134 # resulting binary.
19135 hardcode_minus_L=$hardcode_minus_L_GCJ
19137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19138 # the resulting binary.
19139 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19141 # Set to yes if building a shared library automatically hardcodes DIR into the library
19142 # and all subsequent libraries and executables linked against it.
19143 hardcode_automatic=$hardcode_automatic_GCJ
19145 # Variables whose values should be saved in libtool wrapper scripts and
19146 # restored at relink time.
19147 variables_saved_for_relink="$variables_saved_for_relink"
19149 # Whether libtool must link a program against all its dependency libraries.
19150 link_all_deplibs=$link_all_deplibs_GCJ
19152 # Compile-time system search path for libraries
19153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19155 # Run-time system search path for libraries
19156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19158 # Fix the shell variable \$srcfile for the compiler.
19159 fix_srcfile_path="$fix_srcfile_path_GCJ"
19161 # Set to yes if exported symbols are required.
19162 always_export_symbols=$always_export_symbols_GCJ
19164 # The commands to list exported symbols.
19165 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19167 # The commands to extract the exported symbol list from a shared archive.
19168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19170 # Symbols that should not be listed in the preloaded symbols.
19171 exclude_expsyms=$lt_exclude_expsyms_GCJ
19173 # Symbols that must always be exported.
19174 include_expsyms=$lt_include_expsyms_GCJ
19176 # ### END LIBTOOL TAG CONFIG: $tagname
19178 __EOF__
19181 else
19182 # If there is no Makefile yet, we rely on a make rule to execute
19183 # `config.status --recheck' to rerun these tests and create the
19184 # libtool script then.
19185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19186 if test -f "$ltmain_in"; then
19187 test -f Makefile && make "$ltmain"
19192 ac_ext=cpp
19193 ac_cpp='$CXXCPP $CPPFLAGS'
19194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19198 CC="$lt_save_CC"
19200 else
19201 tagname=""
19208 # Source file extension for RC test sources.
19209 ac_ext=rc
19211 # Object file extension for compiled RC test sources.
19212 objext=o
19213 objext_RC=$objext
19215 # Code to be used in simple compile tests
19216 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19218 # Code to be used in simple link tests
19219 lt_simple_link_test_code="$lt_simple_compile_test_code"
19221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19223 # If no C compiler was specified, use CC.
19224 LTCC=${LTCC-"$CC"}
19226 # Allow CC to be a program name with arguments.
19227 compiler=$CC
19230 # Allow CC to be a program name with arguments.
19231 lt_save_CC="$CC"
19232 CC=${RC-"windres"}
19233 compiler=$CC
19234 compiler_RC=$CC
19235 lt_cv_prog_compiler_c_o_RC=yes
19237 # The else clause should only fire when bootstrapping the
19238 # libtool distribution, otherwise you forgot to ship ltmain.sh
19239 # with your package, and you will get complaints that there are
19240 # no rules to generate ltmain.sh.
19241 if test -f "$ltmain"; then
19242 # See if we are running on zsh, and set the options which allow our commands through
19243 # without removal of \ escapes.
19244 if test -n "${ZSH_VERSION+set}" ; then
19245 setopt NO_GLOB_SUBST
19247 # Now quote all the things that may contain metacharacters while being
19248 # careful not to overquote the AC_SUBSTed values. We take copies of the
19249 # variables and quote the copies for generation of the libtool script.
19250 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19251 SED SHELL STRIP \
19252 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19253 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19254 deplibs_check_method reload_flag reload_cmds need_locks \
19255 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19256 lt_cv_sys_global_symbol_to_c_name_address \
19257 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19258 old_postinstall_cmds old_postuninstall_cmds \
19259 compiler_RC \
19260 CC_RC \
19261 LD_RC \
19262 lt_prog_compiler_wl_RC \
19263 lt_prog_compiler_pic_RC \
19264 lt_prog_compiler_static_RC \
19265 lt_prog_compiler_no_builtin_flag_RC \
19266 export_dynamic_flag_spec_RC \
19267 thread_safe_flag_spec_RC \
19268 whole_archive_flag_spec_RC \
19269 enable_shared_with_static_runtimes_RC \
19270 old_archive_cmds_RC \
19271 old_archive_from_new_cmds_RC \
19272 predep_objects_RC \
19273 postdep_objects_RC \
19274 predeps_RC \
19275 postdeps_RC \
19276 compiler_lib_search_path_RC \
19277 archive_cmds_RC \
19278 archive_expsym_cmds_RC \
19279 postinstall_cmds_RC \
19280 postuninstall_cmds_RC \
19281 old_archive_from_expsyms_cmds_RC \
19282 allow_undefined_flag_RC \
19283 no_undefined_flag_RC \
19284 export_symbols_cmds_RC \
19285 hardcode_libdir_flag_spec_RC \
19286 hardcode_libdir_flag_spec_ld_RC \
19287 hardcode_libdir_separator_RC \
19288 hardcode_automatic_RC \
19289 module_cmds_RC \
19290 module_expsym_cmds_RC \
19291 lt_cv_prog_compiler_c_o_RC \
19292 exclude_expsyms_RC \
19293 include_expsyms_RC; do
19295 case $var in
19296 old_archive_cmds_RC | \
19297 old_archive_from_new_cmds_RC | \
19298 archive_cmds_RC | \
19299 archive_expsym_cmds_RC | \
19300 module_cmds_RC | \
19301 module_expsym_cmds_RC | \
19302 old_archive_from_expsyms_cmds_RC | \
19303 export_symbols_cmds_RC | \
19304 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19305 postinstall_cmds | postuninstall_cmds | \
19306 old_postinstall_cmds | old_postuninstall_cmds | \
19307 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19308 # Double-quote double-evaled strings.
19309 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19314 esac
19315 done
19317 case $lt_echo in
19318 *'\$0 --fallback-echo"')
19319 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19321 esac
19323 cfgfile="$ofile"
19325 cat <<__EOF__ >> "$cfgfile"
19326 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19330 # Shell to use when invoking shell scripts.
19331 SHELL=$lt_SHELL
19333 # Whether or not to build shared libraries.
19334 build_libtool_libs=$enable_shared
19336 # Whether or not to build static libraries.
19337 build_old_libs=$enable_static
19339 # Whether or not to add -lc for building shared libraries.
19340 build_libtool_need_lc=$archive_cmds_need_lc_RC
19342 # Whether or not to disallow shared libs when runtime libs are static
19343 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19345 # Whether or not to optimize for fast installation.
19346 fast_install=$enable_fast_install
19348 # The host system.
19349 host_alias=$host_alias
19350 host=$host
19352 # An echo program that does not interpret backslashes.
19353 echo=$lt_echo
19355 # The archiver.
19356 AR=$lt_AR
19357 AR_FLAGS=$lt_AR_FLAGS
19359 # A C compiler.
19360 LTCC=$lt_LTCC
19362 # A language-specific compiler.
19363 CC=$lt_compiler_RC
19365 # Is the compiler the GNU C compiler?
19366 with_gcc=$GCC_RC
19368 # An ERE matcher.
19369 EGREP=$lt_EGREP
19371 # The linker used to build libraries.
19372 LD=$lt_LD_RC
19374 # Whether we need hard or soft links.
19375 LN_S=$lt_LN_S
19377 # A BSD-compatible nm program.
19378 NM=$lt_NM
19380 # A symbol stripping program
19381 STRIP=$lt_STRIP
19383 # Used to examine libraries when file_magic_cmd begins "file"
19384 MAGIC_CMD=$MAGIC_CMD
19386 # Used on cygwin: DLL creation program.
19387 DLLTOOL="$DLLTOOL"
19389 # Used on cygwin: object dumper.
19390 OBJDUMP="$OBJDUMP"
19392 # Used on cygwin: assembler.
19393 AS="$AS"
19395 # The name of the directory that contains temporary libtool files.
19396 objdir=$objdir
19398 # How to create reloadable object files.
19399 reload_flag=$lt_reload_flag
19400 reload_cmds=$lt_reload_cmds
19402 # How to pass a linker flag through the compiler.
19403 wl=$lt_lt_prog_compiler_wl_RC
19405 # Object file suffix (normally "o").
19406 objext="$ac_objext"
19408 # Old archive suffix (normally "a").
19409 libext="$libext"
19411 # Shared library suffix (normally ".so").
19412 shrext_cmds='$shrext_cmds'
19414 # Executable file suffix (normally "").
19415 exeext="$exeext"
19417 # Additional compiler flags for building library objects.
19418 pic_flag=$lt_lt_prog_compiler_pic_RC
19419 pic_mode=$pic_mode
19421 # What is the maximum length of a command?
19422 max_cmd_len=$lt_cv_sys_max_cmd_len
19424 # Does compiler simultaneously support -c and -o options?
19425 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19427 # Must we lock files when doing compilation ?
19428 need_locks=$lt_need_locks
19430 # Do we need the lib prefix for modules?
19431 need_lib_prefix=$need_lib_prefix
19433 # Do we need a version for libraries?
19434 need_version=$need_version
19436 # Whether dlopen is supported.
19437 dlopen_support=$enable_dlopen
19439 # Whether dlopen of programs is supported.
19440 dlopen_self=$enable_dlopen_self
19442 # Whether dlopen of statically linked programs is supported.
19443 dlopen_self_static=$enable_dlopen_self_static
19445 # Compiler flag to prevent dynamic linking.
19446 link_static_flag=$lt_lt_prog_compiler_static_RC
19448 # Compiler flag to turn off builtin functions.
19449 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19451 # Compiler flag to allow reflexive dlopens.
19452 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19454 # Compiler flag to generate shared objects directly from archives.
19455 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19457 # Compiler flag to generate thread-safe objects.
19458 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19460 # Library versioning type.
19461 version_type=$version_type
19463 # Format of library name prefix.
19464 libname_spec=$lt_libname_spec
19466 # List of archive names. First name is the real one, the rest are links.
19467 # The last name is the one that the linker finds with -lNAME.
19468 library_names_spec=$lt_library_names_spec
19470 # The coded name of the library, if different from the real name.
19471 soname_spec=$lt_soname_spec
19473 # Commands used to build and install an old-style archive.
19474 RANLIB=$lt_RANLIB
19475 old_archive_cmds=$lt_old_archive_cmds_RC
19476 old_postinstall_cmds=$lt_old_postinstall_cmds
19477 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19479 # Create an old-style archive from a shared archive.
19480 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19482 # Create a temporary old-style archive to link instead of a shared archive.
19483 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19485 # Commands used to build and install a shared archive.
19486 archive_cmds=$lt_archive_cmds_RC
19487 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19488 postinstall_cmds=$lt_postinstall_cmds
19489 postuninstall_cmds=$lt_postuninstall_cmds
19491 # Commands used to build a loadable module (assumed same as above if empty)
19492 module_cmds=$lt_module_cmds_RC
19493 module_expsym_cmds=$lt_module_expsym_cmds_RC
19495 # Commands to strip libraries.
19496 old_striplib=$lt_old_striplib
19497 striplib=$lt_striplib
19499 # Dependencies to place before the objects being linked to create a
19500 # shared library.
19501 predep_objects=$lt_predep_objects_RC
19503 # Dependencies to place after the objects being linked to create a
19504 # shared library.
19505 postdep_objects=$lt_postdep_objects_RC
19507 # Dependencies to place before the objects being linked to create a
19508 # shared library.
19509 predeps=$lt_predeps_RC
19511 # Dependencies to place after the objects being linked to create a
19512 # shared library.
19513 postdeps=$lt_postdeps_RC
19515 # The library search path used internally by the compiler when linking
19516 # a shared library.
19517 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19519 # Method to check whether dependent libraries are shared objects.
19520 deplibs_check_method=$lt_deplibs_check_method
19522 # Command to use when deplibs_check_method == file_magic.
19523 file_magic_cmd=$lt_file_magic_cmd
19525 # Flag that allows shared libraries with undefined symbols to be built.
19526 allow_undefined_flag=$lt_allow_undefined_flag_RC
19528 # Flag that forces no undefined symbols.
19529 no_undefined_flag=$lt_no_undefined_flag_RC
19531 # Commands used to finish a libtool library installation in a directory.
19532 finish_cmds=$lt_finish_cmds
19534 # Same as above, but a single script fragment to be evaled but not shown.
19535 finish_eval=$lt_finish_eval
19537 # Take the output of nm and produce a listing of raw symbols and C names.
19538 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19540 # Transform the output of nm in a proper C declaration
19541 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19543 # Transform the output of nm in a C name address pair
19544 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19546 # This is the shared library runtime path variable.
19547 runpath_var=$runpath_var
19549 # This is the shared library path variable.
19550 shlibpath_var=$shlibpath_var
19552 # Is shlibpath searched before the hard-coded library search path?
19553 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19555 # How to hardcode a shared library path into an executable.
19556 hardcode_action=$hardcode_action_RC
19558 # Whether we should hardcode library paths into libraries.
19559 hardcode_into_libs=$hardcode_into_libs
19561 # Flag to hardcode \$libdir into a binary during linking.
19562 # This must work even if \$libdir does not exist.
19563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19565 # If ld is used when linking, flag to hardcode \$libdir into
19566 # a binary during linking. This must work even if \$libdir does
19567 # not exist.
19568 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19570 # Whether we need a single -rpath flag with a separated argument.
19571 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19573 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19574 # resulting binary.
19575 hardcode_direct=$hardcode_direct_RC
19577 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19578 # resulting binary.
19579 hardcode_minus_L=$hardcode_minus_L_RC
19581 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19582 # the resulting binary.
19583 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19585 # Set to yes if building a shared library automatically hardcodes DIR into the library
19586 # and all subsequent libraries and executables linked against it.
19587 hardcode_automatic=$hardcode_automatic_RC
19589 # Variables whose values should be saved in libtool wrapper scripts and
19590 # restored at relink time.
19591 variables_saved_for_relink="$variables_saved_for_relink"
19593 # Whether libtool must link a program against all its dependency libraries.
19594 link_all_deplibs=$link_all_deplibs_RC
19596 # Compile-time system search path for libraries
19597 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19599 # Run-time system search path for libraries
19600 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19602 # Fix the shell variable \$srcfile for the compiler.
19603 fix_srcfile_path="$fix_srcfile_path_RC"
19605 # Set to yes if exported symbols are required.
19606 always_export_symbols=$always_export_symbols_RC
19608 # The commands to list exported symbols.
19609 export_symbols_cmds=$lt_export_symbols_cmds_RC
19611 # The commands to extract the exported symbol list from a shared archive.
19612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19614 # Symbols that should not be listed in the preloaded symbols.
19615 exclude_expsyms=$lt_exclude_expsyms_RC
19617 # Symbols that must always be exported.
19618 include_expsyms=$lt_include_expsyms_RC
19620 # ### END LIBTOOL TAG CONFIG: $tagname
19622 __EOF__
19625 else
19626 # If there is no Makefile yet, we rely on a make rule to execute
19627 # `config.status --recheck' to rerun these tests and create the
19628 # libtool script then.
19629 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19630 if test -f "$ltmain_in"; then
19631 test -f Makefile && make "$ltmain"
19636 ac_ext=cpp
19637 ac_cpp='$CXXCPP $CPPFLAGS'
19638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19642 CC="$lt_save_CC"
19647 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19648 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19649 { (exit 1); exit 1; }; }
19651 esac
19653 # Append the new tag name to the list of available tags.
19654 if test -n "$tagname" ; then
19655 available_tags="$available_tags $tagname"
19658 done
19659 IFS="$lt_save_ifs"
19661 # Now substitute the updated list of available tags.
19662 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19663 mv "${ofile}T" "$ofile"
19664 chmod +x "$ofile"
19665 else
19666 rm -f "${ofile}T"
19667 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19668 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19669 { (exit 1); exit 1; }; }
19675 # This can be used to rebuild libtool when needed
19676 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19678 # Always use our own libtool.
19679 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19681 # Prevent multiple expansion
19702 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19703 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19704 if test "${ac_cv_c_bigendian+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707 # See if sys/param.h defines the BYTE_ORDER macro.
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h. */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714 #include <sys/types.h>
19715 #include <sys/param.h>
19718 main ()
19720 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
19721 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
19722 bogus endian macros
19723 #endif
19726 return 0;
19728 _ACEOF
19729 rm -f conftest.$ac_objext
19730 if { (ac_try="$ac_compile"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_compile") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && {
19743 test -z "$ac_cxx_werror_flag" ||
19744 test ! -s conftest.err
19745 } && test -s conftest.$ac_objext; then
19746 # It does; now see whether it defined to BIG_ENDIAN or not.
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h. */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753 #include <sys/types.h>
19754 #include <sys/param.h>
19757 main ()
19759 #if BYTE_ORDER != BIG_ENDIAN
19760 not big endian
19761 #endif
19764 return 0;
19766 _ACEOF
19767 rm -f conftest.$ac_objext
19768 if { (ac_try="$ac_compile"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_compile") 2>conftest.er1
19775 ac_status=$?
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && {
19781 test -z "$ac_cxx_werror_flag" ||
19782 test ! -s conftest.err
19783 } && test -s conftest.$ac_objext; then
19784 ac_cv_c_bigendian=yes
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_cv_c_bigendian=no
19792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 # It does not; compile a test program.
19798 if test "$cross_compiling" = yes; then
19799 # try to guess the endianness by grepping values into an object file
19800 ac_cv_c_bigendian=unknown
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h. */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19808 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19810 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19811 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19814 main ()
19816 _ascii (); _ebcdic ();
19818 return 0;
19820 _ACEOF
19821 rm -f conftest.$ac_objext
19822 if { (ac_try="$ac_compile"
19823 case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_compile") 2>conftest.er1
19829 ac_status=$?
19830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } && {
19835 test -z "$ac_cxx_werror_flag" ||
19836 test ! -s conftest.err
19837 } && test -s conftest.$ac_objext; then
19838 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19839 ac_cv_c_bigendian=yes
19841 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19842 if test "$ac_cv_c_bigendian" = unknown; then
19843 ac_cv_c_bigendian=no
19844 else
19845 # finding both strings is unlikely to happen, but who knows?
19846 ac_cv_c_bigendian=unknown
19849 else
19850 echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 else
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 $ac_includes_default
19866 main ()
19869 /* Are we little or big endian? From Harbison&Steele. */
19870 union
19872 long int l;
19873 char c[sizeof (long int)];
19874 } u;
19875 u.l = 1;
19876 return u.c[sizeof (long int) - 1] == 1;
19879 return 0;
19881 _ACEOF
19882 rm -f conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_link") 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_cv_c_bigendian=no
19903 else
19904 echo "$as_me: program exited with status $ac_status" >&5
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 ( exit $ac_status )
19909 ac_cv_c_bigendian=yes
19911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19919 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19920 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19921 case $ac_cv_c_bigendian in
19922 yes)
19924 cat >>confdefs.h <<\_ACEOF
19925 #define WORDS_BIGENDIAN 1
19926 _ACEOF
19931 { { echo "$as_me:$LINENO: error: unknown endianness
19932 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19933 echo "$as_me: error: unknown endianness
19934 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19935 { (exit 1); exit 1; }; } ;;
19936 esac
19938 { echo "$as_me:$LINENO: checking host system type" >&5
19939 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19940 if test "${ac_cv_host+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943 if test "x$host_alias" = x; then
19944 ac_cv_host=$ac_cv_build
19945 else
19946 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19947 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19948 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19949 { (exit 1); exit 1; }; }
19953 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19954 echo "${ECHO_T}$ac_cv_host" >&6; }
19955 case $ac_cv_host in
19956 *-*-*) ;;
19957 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19958 echo "$as_me: error: invalid value of canonical host" >&2;}
19959 { (exit 1); exit 1; }; };;
19960 esac
19961 host=$ac_cv_host
19962 ac_save_IFS=$IFS; IFS='-'
19963 set x $ac_cv_host
19964 shift
19965 host_cpu=$1
19966 host_vendor=$2
19967 shift; shift
19968 # Remember, the first character of IFS is used to create $*,
19969 # except with old shells:
19970 host_os=$*
19971 IFS=$ac_save_IFS
19972 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19975 for ac_prog in 'bison -y' byacc
19977 # Extract the first word of "$ac_prog", so it can be a program name with args.
19978 set dummy $ac_prog; ac_word=$2
19979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19981 if test "${ac_cv_prog_YACC+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984 if test -n "$YACC"; then
19985 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19986 else
19987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19988 for as_dir in $PATH
19990 IFS=$as_save_IFS
19991 test -z "$as_dir" && as_dir=.
19992 for ac_exec_ext in '' $ac_executable_extensions; do
19993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19994 ac_cv_prog_YACC="$ac_prog"
19995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19996 break 2
19998 done
19999 done
20000 IFS=$as_save_IFS
20004 YACC=$ac_cv_prog_YACC
20005 if test -n "$YACC"; then
20006 { echo "$as_me:$LINENO: result: $YACC" >&5
20007 echo "${ECHO_T}$YACC" >&6; }
20008 else
20009 { echo "$as_me:$LINENO: result: no" >&5
20010 echo "${ECHO_T}no" >&6; }
20014 test -n "$YACC" && break
20015 done
20016 test -n "$YACC" || YACC="yacc"
20018 for ac_prog in flex lex
20020 # Extract the first word of "$ac_prog", so it can be a program name with args.
20021 set dummy $ac_prog; ac_word=$2
20022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20024 if test "${ac_cv_prog_LEX+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027 if test -n "$LEX"; then
20028 ac_cv_prog_LEX="$LEX" # Let the user override the test.
20029 else
20030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20031 for as_dir in $PATH
20033 IFS=$as_save_IFS
20034 test -z "$as_dir" && as_dir=.
20035 for ac_exec_ext in '' $ac_executable_extensions; do
20036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20037 ac_cv_prog_LEX="$ac_prog"
20038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20039 break 2
20041 done
20042 done
20043 IFS=$as_save_IFS
20047 LEX=$ac_cv_prog_LEX
20048 if test -n "$LEX"; then
20049 { echo "$as_me:$LINENO: result: $LEX" >&5
20050 echo "${ECHO_T}$LEX" >&6; }
20051 else
20052 { echo "$as_me:$LINENO: result: no" >&5
20053 echo "${ECHO_T}no" >&6; }
20057 test -n "$LEX" && break
20058 done
20059 test -n "$LEX" || LEX=":"
20061 if test "x$LEX" != "x:"; then
20062 cat >conftest.l <<_ACEOF
20064 a { ECHO; }
20065 b { REJECT; }
20066 c { yymore (); }
20067 d { yyless (1); }
20068 e { yyless (input () != 0); }
20069 f { unput (yytext[0]); }
20070 . { BEGIN INITIAL; }
20072 #ifdef YYTEXT_POINTER
20073 extern char *yytext;
20074 #endif
20076 main (void)
20078 return ! yylex () + ! yywrap ();
20080 _ACEOF
20081 { (ac_try="$LEX conftest.l"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$LEX conftest.l") 2>&5
20088 ac_status=$?
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }
20091 { echo "$as_me:$LINENO: checking lex output file root" >&5
20092 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
20093 if test "${ac_cv_prog_lex_root+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20097 if test -f lex.yy.c; then
20098 ac_cv_prog_lex_root=lex.yy
20099 elif test -f lexyy.c; then
20100 ac_cv_prog_lex_root=lexyy
20101 else
20102 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20103 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20104 { (exit 1); exit 1; }; }
20107 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20108 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
20109 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20111 if test -z "${LEXLIB+set}"; then
20112 { echo "$as_me:$LINENO: checking lex library" >&5
20113 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
20114 if test "${ac_cv_lib_lex+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20118 ac_save_LIBS=$LIBS
20119 ac_cv_lib_lex='none needed'
20120 for ac_lib in '' -lfl -ll; do
20121 LIBS="$ac_lib $ac_save_LIBS"
20122 cat >conftest.$ac_ext <<_ACEOF
20123 `cat $LEX_OUTPUT_ROOT.c`
20124 _ACEOF
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_link") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_cxx_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest$ac_exeext &&
20142 $as_test_x conftest$ac_exeext; then
20143 ac_cv_lib_lex=$ac_lib
20144 else
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20152 conftest$ac_exeext conftest.$ac_ext
20153 test "$ac_cv_lib_lex" != 'none needed' && break
20154 done
20155 LIBS=$ac_save_LIBS
20158 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
20159 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
20160 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
20164 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20165 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
20166 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169 # POSIX says lex can declare yytext either as a pointer or an array; the
20170 # default is implementation-dependent. Figure out which it is, since
20171 # not all implementations provide the %pointer and %array declarations.
20172 ac_cv_prog_lex_yytext_pointer=no
20173 ac_save_LIBS=$LIBS
20174 LIBS="$LEXLIB $ac_save_LIBS"
20175 cat >conftest.$ac_ext <<_ACEOF
20176 #define YYTEXT_POINTER 1
20177 `cat $LEX_OUTPUT_ROOT.c`
20178 _ACEOF
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_cxx_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest$ac_exeext &&
20196 $as_test_x conftest$ac_exeext; then
20197 ac_cv_prog_lex_yytext_pointer=yes
20198 else
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20206 conftest$ac_exeext conftest.$ac_ext
20207 LIBS=$ac_save_LIBS
20210 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20211 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
20212 if test $ac_cv_prog_lex_yytext_pointer = yes; then
20214 cat >>confdefs.h <<\_ACEOF
20215 #define YYTEXT_POINTER 1
20216 _ACEOF
20219 rm -f conftest.l $LEX_OUTPUT_ROOT.c
20222 if test "$LEX" = :; then
20223 LEX=${am_missing_run}flex
20226 case "${host_os}" in
20227 *linux* )
20228 OSTYPE=LINUX
20230 esac
20231 case "${host_cpu}" in
20232 i686 | i386 )
20233 CPUTYPE=i686
20235 esac
20236 echo "#ifndef BUILD_H" >build.h
20237 echo "#define BUILD_H" >>build.h
20238 echo "#define CSQL" >>build.h
20239 echo "#define ${OSTYPE}" >>build.h
20240 echo "#define ${CPUTYPE}" >>build.h
20241 echo "#endif " >>build.h
20242 cp build.h include
20258 for ac_header in stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
20259 string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
20260 signal.h
20262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 ac_res=`eval echo '${'$as_ac_Header'}'`
20270 { echo "$as_me:$LINENO: result: $ac_res" >&5
20271 echo "${ECHO_T}$ac_res" >&6; }
20272 else
20273 # Is the header compilable?
20274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 $ac_includes_default
20283 #include <$ac_header>
20284 _ACEOF
20285 rm -f conftest.$ac_objext
20286 if { (ac_try="$ac_compile"
20287 case "(($ac_try" in
20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20290 esac
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292 (eval "$ac_compile") 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } && {
20299 test -z "$ac_cxx_werror_flag" ||
20300 test ! -s conftest.err
20301 } && test -s conftest.$ac_objext; then
20302 ac_header_compiler=yes
20303 else
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20307 ac_header_compiler=no
20310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20312 echo "${ECHO_T}$ac_header_compiler" >&6; }
20314 # Is the header present?
20315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20317 cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h. */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 #include <$ac_header>
20324 _ACEOF
20325 if { (ac_try="$ac_cpp conftest.$ac_ext"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } >/dev/null && {
20338 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20339 test ! -s conftest.err
20340 }; then
20341 ac_header_preproc=yes
20342 else
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_header_preproc=no
20349 rm -f conftest.err conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20351 echo "${ECHO_T}$ac_header_preproc" >&6; }
20353 # So? What about this header?
20354 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20355 yes:no: )
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20360 ac_header_preproc=yes
20362 no:yes:* )
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20377 esac
20378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383 eval "$as_ac_Header=\$ac_header_preproc"
20385 ac_res=`eval echo '${'$as_ac_Header'}'`
20386 { echo "$as_me:$LINENO: result: $ac_res" >&5
20387 echo "${ECHO_T}$ac_res" >&6; }
20390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20391 cat >>confdefs.h <<_ACEOF
20392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20393 _ACEOF
20397 done
20402 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile src/server/Makefile src/sql/Makefile src/adapter/Makefile src/gateway/Makefile src/cache/Makefile src/network/Makefile src/sqllog/Makefile src/tools/Makefile src/jdbc/Makefile"
20404 cat >confcache <<\_ACEOF
20405 # This file is a shell script that caches the results of configure
20406 # tests run on this system so they can be shared between configure
20407 # scripts and configure runs, see configure's option --config-cache.
20408 # It is not useful on other systems. If it contains results you don't
20409 # want to keep, you may remove or edit it.
20411 # config.status only pays attention to the cache file if you give it
20412 # the --recheck option to rerun configure.
20414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20416 # following values.
20418 _ACEOF
20420 # The following way of writing the cache mishandles newlines in values,
20421 # but we know of no workaround that is simple, portable, and efficient.
20422 # So, we kill variables containing newlines.
20423 # Ultrix sh set writes to stderr and can't be redirected directly,
20424 # and sets the high bit in the cache file unless we assign to the vars.
20426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20427 eval ac_val=\$$ac_var
20428 case $ac_val in #(
20429 *${as_nl}*)
20430 case $ac_var in #(
20431 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20432 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20433 esac
20434 case $ac_var in #(
20435 _ | IFS | as_nl) ;; #(
20436 *) $as_unset $ac_var ;;
20437 esac ;;
20438 esac
20439 done
20441 (set) 2>&1 |
20442 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20443 *${as_nl}ac_space=\ *)
20444 # `set' does not quote correctly, so add quotes (double-quote
20445 # substitution turns \\\\ into \\, and sed turns \\ into \).
20446 sed -n \
20447 "s/'/'\\\\''/g;
20448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20449 ;; #(
20451 # `set' quotes correctly as required by POSIX, so do not add quotes.
20452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20454 esac |
20455 sort
20457 sed '
20458 /^ac_cv_env_/b end
20459 t clear
20460 :clear
20461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20462 t end
20463 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20464 :end' >>confcache
20465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20466 if test -w "$cache_file"; then
20467 test "x$cache_file" != "x/dev/null" &&
20468 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20469 echo "$as_me: updating cache $cache_file" >&6;}
20470 cat confcache >$cache_file
20471 else
20472 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20473 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20476 rm -f confcache
20478 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20479 # Let make expand exec_prefix.
20480 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20482 DEFS=-DHAVE_CONFIG_H
20484 ac_libobjs=
20485 ac_ltlibobjs=
20486 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20487 # 1. Remove the extension, and $U if already installed.
20488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20489 ac_i=`echo "$ac_i" | sed "$ac_script"`
20490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20491 # will be set to the directory where LIBOBJS objects are built.
20492 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20493 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20494 done
20495 LIBOBJS=$ac_libobjs
20497 LTLIBOBJS=$ac_ltlibobjs
20500 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20501 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20502 Usually this means the macro was only invoked conditionally." >&5
20503 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20504 Usually this means the macro was only invoked conditionally." >&2;}
20505 { (exit 1); exit 1; }; }
20507 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20508 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20509 Usually this means the macro was only invoked conditionally." >&5
20510 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20511 Usually this means the macro was only invoked conditionally." >&2;}
20512 { (exit 1); exit 1; }; }
20514 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20515 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20516 Usually this means the macro was only invoked conditionally." >&5
20517 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20518 Usually this means the macro was only invoked conditionally." >&2;}
20519 { (exit 1); exit 1; }; }
20522 : ${CONFIG_STATUS=./config.status}
20523 ac_clean_files_save=$ac_clean_files
20524 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20525 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20526 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20527 cat >$CONFIG_STATUS <<_ACEOF
20528 #! $SHELL
20529 # Generated by $as_me.
20530 # Run this file to recreate the current configuration.
20531 # Compiler output produced by configure, useful for debugging
20532 # configure, is in config.log if it exists.
20534 debug=false
20535 ac_cs_recheck=false
20536 ac_cs_silent=false
20537 SHELL=\${CONFIG_SHELL-$SHELL}
20538 _ACEOF
20540 cat >>$CONFIG_STATUS <<\_ACEOF
20541 ## --------------------- ##
20542 ## M4sh Initialization. ##
20543 ## --------------------- ##
20545 # Be more Bourne compatible
20546 DUALCASE=1; export DUALCASE # for MKS sh
20547 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20548 emulate sh
20549 NULLCMD=:
20550 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20551 # is contrary to our usage. Disable this feature.
20552 alias -g '${1+"$@"}'='"$@"'
20553 setopt NO_GLOB_SUBST
20554 else
20555 case `(set -o) 2>/dev/null` in
20556 *posix*) set -o posix ;;
20557 esac
20564 # PATH needs CR
20565 # Avoid depending upon Character Ranges.
20566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20569 as_cr_digits='0123456789'
20570 as_cr_alnum=$as_cr_Letters$as_cr_digits
20572 # The user is always right.
20573 if test "${PATH_SEPARATOR+set}" != set; then
20574 echo "#! /bin/sh" >conf$$.sh
20575 echo "exit 0" >>conf$$.sh
20576 chmod +x conf$$.sh
20577 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20578 PATH_SEPARATOR=';'
20579 else
20580 PATH_SEPARATOR=:
20582 rm -f conf$$.sh
20585 # Support unset when possible.
20586 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20587 as_unset=unset
20588 else
20589 as_unset=false
20593 # IFS
20594 # We need space, tab and new line, in precisely that order. Quoting is
20595 # there to prevent editors from complaining about space-tab.
20596 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20597 # splitting by setting IFS to empty value.)
20598 as_nl='
20600 IFS=" "" $as_nl"
20602 # Find who we are. Look in the path if we contain no directory separator.
20603 case $0 in
20604 *[\\/]* ) as_myself=$0 ;;
20605 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20606 for as_dir in $PATH
20608 IFS=$as_save_IFS
20609 test -z "$as_dir" && as_dir=.
20610 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20611 done
20612 IFS=$as_save_IFS
20615 esac
20616 # We did not find ourselves, most probably we were run as `sh COMMAND'
20617 # in which case we are not to be found in the path.
20618 if test "x$as_myself" = x; then
20619 as_myself=$0
20621 if test ! -f "$as_myself"; then
20622 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20623 { (exit 1); exit 1; }
20626 # Work around bugs in pre-3.0 UWIN ksh.
20627 for as_var in ENV MAIL MAILPATH
20628 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20629 done
20630 PS1='$ '
20631 PS2='> '
20632 PS4='+ '
20634 # NLS nuisances.
20635 for as_var in \
20636 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20637 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20638 LC_TELEPHONE LC_TIME
20640 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20641 eval $as_var=C; export $as_var
20642 else
20643 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20645 done
20647 # Required to use basename.
20648 if expr a : '\(a\)' >/dev/null 2>&1 &&
20649 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20650 as_expr=expr
20651 else
20652 as_expr=false
20655 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20656 as_basename=basename
20657 else
20658 as_basename=false
20662 # Name of the executable.
20663 as_me=`$as_basename -- "$0" ||
20664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20665 X"$0" : 'X\(//\)$' \| \
20666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20667 echo X/"$0" |
20668 sed '/^.*\/\([^/][^/]*\)\/*$/{
20669 s//\1/
20672 /^X\/\(\/\/\)$/{
20673 s//\1/
20676 /^X\/\(\/\).*/{
20677 s//\1/
20680 s/.*/./; q'`
20682 # CDPATH.
20683 $as_unset CDPATH
20687 as_lineno_1=$LINENO
20688 as_lineno_2=$LINENO
20689 test "x$as_lineno_1" != "x$as_lineno_2" &&
20690 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20692 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20693 # uniformly replaced by the line number. The first 'sed' inserts a
20694 # line-number line after each line using $LINENO; the second 'sed'
20695 # does the real work. The second script uses 'N' to pair each
20696 # line-number line with the line containing $LINENO, and appends
20697 # trailing '-' during substitution so that $LINENO is not a special
20698 # case at line end.
20699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20700 # scripts with optimization help from Paolo Bonzini. Blame Lee
20701 # E. McMahon (1931-1989) for sed's syntax. :-)
20702 sed -n '
20704 /[$]LINENO/=
20705 ' <$as_myself |
20706 sed '
20707 s/[$]LINENO.*/&-/
20708 t lineno
20710 :lineno
20712 :loop
20713 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20714 t loop
20715 s/-\n.*//
20716 ' >$as_me.lineno &&
20717 chmod +x "$as_me.lineno" ||
20718 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20719 { (exit 1); exit 1; }; }
20721 # Don't try to exec as it changes $[0], causing all sort of problems
20722 # (the dirname of $[0] is not the place where we might find the
20723 # original and so on. Autoconf is especially sensitive to this).
20724 . "./$as_me.lineno"
20725 # Exit status is that of the last command.
20726 exit
20730 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20731 as_dirname=dirname
20732 else
20733 as_dirname=false
20736 ECHO_C= ECHO_N= ECHO_T=
20737 case `echo -n x` in
20738 -n*)
20739 case `echo 'x\c'` in
20740 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20741 *) ECHO_C='\c';;
20742 esac;;
20744 ECHO_N='-n';;
20745 esac
20747 if expr a : '\(a\)' >/dev/null 2>&1 &&
20748 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20749 as_expr=expr
20750 else
20751 as_expr=false
20754 rm -f conf$$ conf$$.exe conf$$.file
20755 if test -d conf$$.dir; then
20756 rm -f conf$$.dir/conf$$.file
20757 else
20758 rm -f conf$$.dir
20759 mkdir conf$$.dir
20761 echo >conf$$.file
20762 if ln -s conf$$.file conf$$ 2>/dev/null; then
20763 as_ln_s='ln -s'
20764 # ... but there are two gotchas:
20765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20767 # In both cases, we have to default to `cp -p'.
20768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20769 as_ln_s='cp -p'
20770 elif ln conf$$.file conf$$ 2>/dev/null; then
20771 as_ln_s=ln
20772 else
20773 as_ln_s='cp -p'
20775 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20776 rmdir conf$$.dir 2>/dev/null
20778 if mkdir -p . 2>/dev/null; then
20779 as_mkdir_p=:
20780 else
20781 test -d ./-p && rmdir ./-p
20782 as_mkdir_p=false
20785 if test -x / >/dev/null 2>&1; then
20786 as_test_x='test -x'
20787 else
20788 if ls -dL / >/dev/null 2>&1; then
20789 as_ls_L_option=L
20790 else
20791 as_ls_L_option=
20793 as_test_x='
20794 eval sh -c '\''
20795 if test -d "$1"; then
20796 test -d "$1/.";
20797 else
20798 case $1 in
20799 -*)set "./$1";;
20800 esac;
20801 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20802 ???[sx]*):;;*)false;;esac;fi
20803 '\'' sh
20806 as_executable_p=$as_test_x
20808 # Sed expression to map a string onto a valid CPP name.
20809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20811 # Sed expression to map a string onto a valid variable name.
20812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20815 exec 6>&1
20817 # Save the log message, to keep $[0] and so on meaningful, and to
20818 # report actual input values of CONFIG_FILES etc. instead of their
20819 # values after options handling.
20820 ac_log="
20821 This file was extended by $as_me, which was
20822 generated by GNU Autoconf 2.61. Invocation command line was
20824 CONFIG_FILES = $CONFIG_FILES
20825 CONFIG_HEADERS = $CONFIG_HEADERS
20826 CONFIG_LINKS = $CONFIG_LINKS
20827 CONFIG_COMMANDS = $CONFIG_COMMANDS
20828 $ $0 $@
20830 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20833 _ACEOF
20835 cat >>$CONFIG_STATUS <<_ACEOF
20836 # Files that config.status was made for.
20837 config_files="$ac_config_files"
20838 config_headers="$ac_config_headers"
20839 config_commands="$ac_config_commands"
20841 _ACEOF
20843 cat >>$CONFIG_STATUS <<\_ACEOF
20844 ac_cs_usage="\
20845 \`$as_me' instantiates files from templates according to the
20846 current configuration.
20848 Usage: $0 [OPTIONS] [FILE]...
20850 -h, --help print this help, then exit
20851 -V, --version print version number and configuration settings, then exit
20852 -q, --quiet do not print progress messages
20853 -d, --debug don't remove temporary files
20854 --recheck update $as_me by reconfiguring in the same conditions
20855 --file=FILE[:TEMPLATE]
20856 instantiate the configuration file FILE
20857 --header=FILE[:TEMPLATE]
20858 instantiate the configuration header FILE
20860 Configuration files:
20861 $config_files
20863 Configuration headers:
20864 $config_headers
20866 Configuration commands:
20867 $config_commands
20869 Report bugs to <bug-autoconf@gnu.org>."
20871 _ACEOF
20872 cat >>$CONFIG_STATUS <<_ACEOF
20873 ac_cs_version="\\
20874 config.status
20875 configured by $0, generated by GNU Autoconf 2.61,
20876 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20878 Copyright (C) 2006 Free Software Foundation, Inc.
20879 This config.status script is free software; the Free Software Foundation
20880 gives unlimited permission to copy, distribute and modify it."
20882 ac_pwd='$ac_pwd'
20883 srcdir='$srcdir'
20884 INSTALL='$INSTALL'
20885 _ACEOF
20887 cat >>$CONFIG_STATUS <<\_ACEOF
20888 # If no file are specified by the user, then we need to provide default
20889 # value. By we need to know if files were specified by the user.
20890 ac_need_defaults=:
20891 while test $# != 0
20893 case $1 in
20894 --*=*)
20895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20897 ac_shift=:
20900 ac_option=$1
20901 ac_optarg=$2
20902 ac_shift=shift
20904 esac
20906 case $ac_option in
20907 # Handling of the options.
20908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20909 ac_cs_recheck=: ;;
20910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20911 echo "$ac_cs_version"; exit ;;
20912 --debug | --debu | --deb | --de | --d | -d )
20913 debug=: ;;
20914 --file | --fil | --fi | --f )
20915 $ac_shift
20916 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20917 ac_need_defaults=false;;
20918 --header | --heade | --head | --hea )
20919 $ac_shift
20920 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20921 ac_need_defaults=false;;
20922 --he | --h)
20923 # Conflict between --help and --header
20924 { echo "$as_me: error: ambiguous option: $1
20925 Try \`$0 --help' for more information." >&2
20926 { (exit 1); exit 1; }; };;
20927 --help | --hel | -h )
20928 echo "$ac_cs_usage"; exit ;;
20929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20931 ac_cs_silent=: ;;
20933 # This is an error.
20934 -*) { echo "$as_me: error: unrecognized option: $1
20935 Try \`$0 --help' for more information." >&2
20936 { (exit 1); exit 1; }; } ;;
20938 *) ac_config_targets="$ac_config_targets $1"
20939 ac_need_defaults=false ;;
20941 esac
20942 shift
20943 done
20945 ac_configure_extra_args=
20947 if $ac_cs_silent; then
20948 exec 6>/dev/null
20949 ac_configure_extra_args="$ac_configure_extra_args --silent"
20952 _ACEOF
20953 cat >>$CONFIG_STATUS <<_ACEOF
20954 if \$ac_cs_recheck; then
20955 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20956 CONFIG_SHELL=$SHELL
20957 export CONFIG_SHELL
20958 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20961 _ACEOF
20962 cat >>$CONFIG_STATUS <<\_ACEOF
20963 exec 5>>config.log
20965 echo
20966 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20967 ## Running $as_me. ##
20968 _ASBOX
20969 echo "$ac_log"
20970 } >&5
20972 _ACEOF
20973 cat >>$CONFIG_STATUS <<_ACEOF
20975 # INIT-COMMANDS
20977 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20979 _ACEOF
20981 cat >>$CONFIG_STATUS <<\_ACEOF
20983 # Handling of arguments.
20984 for ac_config_target in $ac_config_targets
20986 case $ac_config_target in
20987 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20988 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20989 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20990 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20991 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20992 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
20993 "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20994 "src/adapter/Makefile") CONFIG_FILES="$CONFIG_FILES src/adapter/Makefile" ;;
20995 "src/gateway/Makefile") CONFIG_FILES="$CONFIG_FILES src/gateway/Makefile" ;;
20996 "src/cache/Makefile") CONFIG_FILES="$CONFIG_FILES src/cache/Makefile" ;;
20997 "src/network/Makefile") CONFIG_FILES="$CONFIG_FILES src/network/Makefile" ;;
20998 "src/sqllog/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqllog/Makefile" ;;
20999 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21000 "src/jdbc/Makefile") CONFIG_FILES="$CONFIG_FILES src/jdbc/Makefile" ;;
21002 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21003 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21004 { (exit 1); exit 1; }; };;
21005 esac
21006 done
21009 # If the user did not use the arguments to specify the items to instantiate,
21010 # then the envvar interface is used. Set only those that are not.
21011 # We use the long form for the default assignment because of an extremely
21012 # bizarre bug on SunOS 4.1.3.
21013 if $ac_need_defaults; then
21014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21019 # Have a temporary directory for convenience. Make it in the build tree
21020 # simply because there is no reason against having it here, and in addition,
21021 # creating and moving files from /tmp can sometimes cause problems.
21022 # Hook for its removal unless debugging.
21023 # Note that there is a small window in which the directory will not be cleaned:
21024 # after its creation but before its name has been assigned to `$tmp'.
21025 $debug ||
21027 tmp=
21028 trap 'exit_status=$?
21029 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21031 trap '{ (exit 1); exit 1; }' 1 2 13 15
21033 # Create a (secure) tmp directory for tmp files.
21036 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21037 test -n "$tmp" && test -d "$tmp"
21038 } ||
21040 tmp=./conf$$-$RANDOM
21041 (umask 077 && mkdir "$tmp")
21042 } ||
21044 echo "$me: cannot create a temporary directory in ." >&2
21045 { (exit 1); exit 1; }
21049 # Set up the sed scripts for CONFIG_FILES section.
21052 # No need to generate the scripts if there are no CONFIG_FILES.
21053 # This happens for instance when ./config.status config.h
21054 if test -n "$CONFIG_FILES"; then
21056 _ACEOF
21060 ac_delim='%!_!# '
21061 for ac_last_try in false false false false false :; do
21062 cat >conf$$subs.sed <<_ACEOF
21063 SHELL!$SHELL$ac_delim
21064 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21065 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21066 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21067 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21068 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21069 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21070 exec_prefix!$exec_prefix$ac_delim
21071 prefix!$prefix$ac_delim
21072 program_transform_name!$program_transform_name$ac_delim
21073 bindir!$bindir$ac_delim
21074 sbindir!$sbindir$ac_delim
21075 libexecdir!$libexecdir$ac_delim
21076 datarootdir!$datarootdir$ac_delim
21077 datadir!$datadir$ac_delim
21078 sysconfdir!$sysconfdir$ac_delim
21079 sharedstatedir!$sharedstatedir$ac_delim
21080 localstatedir!$localstatedir$ac_delim
21081 includedir!$includedir$ac_delim
21082 oldincludedir!$oldincludedir$ac_delim
21083 docdir!$docdir$ac_delim
21084 infodir!$infodir$ac_delim
21085 htmldir!$htmldir$ac_delim
21086 dvidir!$dvidir$ac_delim
21087 pdfdir!$pdfdir$ac_delim
21088 psdir!$psdir$ac_delim
21089 libdir!$libdir$ac_delim
21090 localedir!$localedir$ac_delim
21091 mandir!$mandir$ac_delim
21092 DEFS!$DEFS$ac_delim
21093 ECHO_C!$ECHO_C$ac_delim
21094 ECHO_N!$ECHO_N$ac_delim
21095 ECHO_T!$ECHO_T$ac_delim
21096 LIBS!$LIBS$ac_delim
21097 build_alias!$build_alias$ac_delim
21098 host_alias!$host_alias$ac_delim
21099 target_alias!$target_alias$ac_delim
21100 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21101 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21102 INSTALL_DATA!$INSTALL_DATA$ac_delim
21103 CYGPATH_W!$CYGPATH_W$ac_delim
21104 PACKAGE!$PACKAGE$ac_delim
21105 VERSION!$VERSION$ac_delim
21106 ACLOCAL!$ACLOCAL$ac_delim
21107 AUTOCONF!$AUTOCONF$ac_delim
21108 AUTOMAKE!$AUTOMAKE$ac_delim
21109 AUTOHEADER!$AUTOHEADER$ac_delim
21110 MAKEINFO!$MAKEINFO$ac_delim
21111 install_sh!$install_sh$ac_delim
21112 STRIP!$STRIP$ac_delim
21113 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21114 mkdir_p!$mkdir_p$ac_delim
21115 AWK!$AWK$ac_delim
21116 SET_MAKE!$SET_MAKE$ac_delim
21117 am__leading_dot!$am__leading_dot$ac_delim
21118 AMTAR!$AMTAR$ac_delim
21119 am__tar!$am__tar$ac_delim
21120 am__untar!$am__untar$ac_delim
21121 CXX!$CXX$ac_delim
21122 CXXFLAGS!$CXXFLAGS$ac_delim
21123 LDFLAGS!$LDFLAGS$ac_delim
21124 CPPFLAGS!$CPPFLAGS$ac_delim
21125 ac_ct_CXX!$ac_ct_CXX$ac_delim
21126 EXEEXT!$EXEEXT$ac_delim
21127 OBJEXT!$OBJEXT$ac_delim
21128 DEPDIR!$DEPDIR$ac_delim
21129 am__include!$am__include$ac_delim
21130 am__quote!$am__quote$ac_delim
21131 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21132 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21133 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21134 CXXDEPMODE!$CXXDEPMODE$ac_delim
21135 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21136 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21137 build!$build$ac_delim
21138 build_cpu!$build_cpu$ac_delim
21139 build_vendor!$build_vendor$ac_delim
21140 build_os!$build_os$ac_delim
21141 host!$host$ac_delim
21142 host_cpu!$host_cpu$ac_delim
21143 host_vendor!$host_vendor$ac_delim
21144 host_os!$host_os$ac_delim
21145 CC!$CC$ac_delim
21146 CFLAGS!$CFLAGS$ac_delim
21147 ac_ct_CC!$ac_ct_CC$ac_delim
21148 CCDEPMODE!$CCDEPMODE$ac_delim
21149 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21150 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21151 GREP!$GREP$ac_delim
21152 EGREP!$EGREP$ac_delim
21153 LN_S!$LN_S$ac_delim
21154 ECHO!$ECHO$ac_delim
21155 AR!$AR$ac_delim
21156 RANLIB!$RANLIB$ac_delim
21157 CPP!$CPP$ac_delim
21158 CXXCPP!$CXXCPP$ac_delim
21159 F77!$F77$ac_delim
21160 _ACEOF
21162 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21163 break
21164 elif $ac_last_try; then
21165 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21166 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21167 { (exit 1); exit 1; }; }
21168 else
21169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21171 done
21173 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21174 if test -n "$ac_eof"; then
21175 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21176 ac_eof=`expr $ac_eof + 1`
21179 cat >>$CONFIG_STATUS <<_ACEOF
21180 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21182 _ACEOF
21183 sed '
21184 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21185 s/^/s,@/; s/!/@,|#_!!_#|/
21188 s/'"$ac_delim"'$/,g/; t
21189 s/$/\\/; p
21190 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21191 ' >>$CONFIG_STATUS <conf$$subs.sed
21192 rm -f conf$$subs.sed
21193 cat >>$CONFIG_STATUS <<_ACEOF
21194 CEOF$ac_eof
21195 _ACEOF
21198 ac_delim='%!_!# '
21199 for ac_last_try in false false false false false :; do
21200 cat >conf$$subs.sed <<_ACEOF
21201 FFLAGS!$FFLAGS$ac_delim
21202 ac_ct_F77!$ac_ct_F77$ac_delim
21203 LIBTOOL!$LIBTOOL$ac_delim
21204 YACC!$YACC$ac_delim
21205 YFLAGS!$YFLAGS$ac_delim
21206 LEX!$LEX$ac_delim
21207 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
21208 LEXLIB!$LEXLIB$ac_delim
21209 LIBOBJS!$LIBOBJS$ac_delim
21210 LTLIBOBJS!$LTLIBOBJS$ac_delim
21211 _ACEOF
21213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21214 break
21215 elif $ac_last_try; then
21216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21218 { (exit 1); exit 1; }; }
21219 else
21220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21222 done
21224 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21225 if test -n "$ac_eof"; then
21226 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21227 ac_eof=`expr $ac_eof + 1`
21230 cat >>$CONFIG_STATUS <<_ACEOF
21231 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21233 _ACEOF
21234 sed '
21235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21236 s/^/s,@/; s/!/@,|#_!!_#|/
21239 s/'"$ac_delim"'$/,g/; t
21240 s/$/\\/; p
21241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21242 ' >>$CONFIG_STATUS <conf$$subs.sed
21243 rm -f conf$$subs.sed
21244 cat >>$CONFIG_STATUS <<_ACEOF
21245 :end
21246 s/|#_!!_#|//g
21247 CEOF$ac_eof
21248 _ACEOF
21251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21253 # trailing colons and then remove the whole line if VPATH becomes empty
21254 # (actually we leave an empty line to preserve line numbers).
21255 if test "x$srcdir" = x.; then
21256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21257 s/:*\$(srcdir):*/:/
21258 s/:*\${srcdir}:*/:/
21259 s/:*@srcdir@:*/:/
21260 s/^\([^=]*=[ ]*\):*/\1/
21261 s/:*$//
21262 s/^[^=]*=[ ]*$//
21266 cat >>$CONFIG_STATUS <<\_ACEOF
21267 fi # test -n "$CONFIG_FILES"
21270 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21272 case $ac_tag in
21273 :[FHLC]) ac_mode=$ac_tag; continue;;
21274 esac
21275 case $ac_mode$ac_tag in
21276 :[FHL]*:*);;
21277 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21278 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21279 { (exit 1); exit 1; }; };;
21280 :[FH]-) ac_tag=-:-;;
21281 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21282 esac
21283 ac_save_IFS=$IFS
21284 IFS=:
21285 set x $ac_tag
21286 IFS=$ac_save_IFS
21287 shift
21288 ac_file=$1
21289 shift
21291 case $ac_mode in
21292 :L) ac_source=$1;;
21293 :[FH])
21294 ac_file_inputs=
21295 for ac_f
21297 case $ac_f in
21298 -) ac_f="$tmp/stdin";;
21299 *) # Look for the file first in the build tree, then in the source tree
21300 # (if the path is not absolute). The absolute path cannot be DOS-style,
21301 # because $ac_f cannot contain `:'.
21302 test -f "$ac_f" ||
21303 case $ac_f in
21304 [\\/$]*) false;;
21305 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21306 esac ||
21307 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21308 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21309 { (exit 1); exit 1; }; };;
21310 esac
21311 ac_file_inputs="$ac_file_inputs $ac_f"
21312 done
21314 # Let's still pretend it is `configure' which instantiates (i.e., don't
21315 # use $as_me), people would be surprised to read:
21316 # /* config.h. Generated by config.status. */
21317 configure_input="Generated from "`IFS=:
21318 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21319 if test x"$ac_file" != x-; then
21320 configure_input="$ac_file. $configure_input"
21321 { echo "$as_me:$LINENO: creating $ac_file" >&5
21322 echo "$as_me: creating $ac_file" >&6;}
21325 case $ac_tag in
21326 *:-:* | *:-) cat >"$tmp/stdin";;
21327 esac
21329 esac
21331 ac_dir=`$as_dirname -- "$ac_file" ||
21332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21333 X"$ac_file" : 'X\(//\)[^/]' \| \
21334 X"$ac_file" : 'X\(//\)$' \| \
21335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21336 echo X"$ac_file" |
21337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21338 s//\1/
21341 /^X\(\/\/\)[^/].*/{
21342 s//\1/
21345 /^X\(\/\/\)$/{
21346 s//\1/
21349 /^X\(\/\).*/{
21350 s//\1/
21353 s/.*/./; q'`
21354 { as_dir="$ac_dir"
21355 case $as_dir in #(
21356 -*) as_dir=./$as_dir;;
21357 esac
21358 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21359 as_dirs=
21360 while :; do
21361 case $as_dir in #(
21362 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21363 *) as_qdir=$as_dir;;
21364 esac
21365 as_dirs="'$as_qdir' $as_dirs"
21366 as_dir=`$as_dirname -- "$as_dir" ||
21367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21368 X"$as_dir" : 'X\(//\)[^/]' \| \
21369 X"$as_dir" : 'X\(//\)$' \| \
21370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21371 echo X"$as_dir" |
21372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21373 s//\1/
21376 /^X\(\/\/\)[^/].*/{
21377 s//\1/
21380 /^X\(\/\/\)$/{
21381 s//\1/
21384 /^X\(\/\).*/{
21385 s//\1/
21388 s/.*/./; q'`
21389 test -d "$as_dir" && break
21390 done
21391 test -z "$as_dirs" || eval "mkdir $as_dirs"
21392 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21393 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21394 { (exit 1); exit 1; }; }; }
21395 ac_builddir=.
21397 case "$ac_dir" in
21398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21401 # A ".." for each directory in $ac_dir_suffix.
21402 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21403 case $ac_top_builddir_sub in
21404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21406 esac ;;
21407 esac
21408 ac_abs_top_builddir=$ac_pwd
21409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21410 # for backward compatibility:
21411 ac_top_builddir=$ac_top_build_prefix
21413 case $srcdir in
21414 .) # We are building in place.
21415 ac_srcdir=.
21416 ac_top_srcdir=$ac_top_builddir_sub
21417 ac_abs_top_srcdir=$ac_pwd ;;
21418 [\\/]* | ?:[\\/]* ) # Absolute name.
21419 ac_srcdir=$srcdir$ac_dir_suffix;
21420 ac_top_srcdir=$srcdir
21421 ac_abs_top_srcdir=$srcdir ;;
21422 *) # Relative name.
21423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21424 ac_top_srcdir=$ac_top_build_prefix$srcdir
21425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21426 esac
21427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21430 case $ac_mode in
21433 # CONFIG_FILE
21436 case $INSTALL in
21437 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21438 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21439 esac
21440 _ACEOF
21442 cat >>$CONFIG_STATUS <<\_ACEOF
21443 # If the template does not know about datarootdir, expand it.
21444 # FIXME: This hack should be removed a few years after 2.60.
21445 ac_datarootdir_hack=; ac_datarootdir_seen=
21447 case `sed -n '/datarootdir/ {
21451 /@datadir@/p
21452 /@docdir@/p
21453 /@infodir@/p
21454 /@localedir@/p
21455 /@mandir@/p
21456 ' $ac_file_inputs` in
21457 *datarootdir*) ac_datarootdir_seen=yes;;
21458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21459 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21460 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21461 _ACEOF
21462 cat >>$CONFIG_STATUS <<_ACEOF
21463 ac_datarootdir_hack='
21464 s&@datadir@&$datadir&g
21465 s&@docdir@&$docdir&g
21466 s&@infodir@&$infodir&g
21467 s&@localedir@&$localedir&g
21468 s&@mandir@&$mandir&g
21469 s&\\\${datarootdir}&$datarootdir&g' ;;
21470 esac
21471 _ACEOF
21473 # Neutralize VPATH when `$srcdir' = `.'.
21474 # Shell code in configure.ac might set extrasub.
21475 # FIXME: do we really want to maintain this feature?
21476 cat >>$CONFIG_STATUS <<_ACEOF
21477 sed "$ac_vpsub
21478 $extrasub
21479 _ACEOF
21480 cat >>$CONFIG_STATUS <<\_ACEOF
21482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21483 s&@configure_input@&$configure_input&;t t
21484 s&@top_builddir@&$ac_top_builddir_sub&;t t
21485 s&@srcdir@&$ac_srcdir&;t t
21486 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21487 s&@top_srcdir@&$ac_top_srcdir&;t t
21488 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21489 s&@builddir@&$ac_builddir&;t t
21490 s&@abs_builddir@&$ac_abs_builddir&;t t
21491 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21492 s&@INSTALL@&$ac_INSTALL&;t t
21493 $ac_datarootdir_hack
21494 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21497 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21499 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21500 which seems to be undefined. Please make sure it is defined." >&5
21501 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21502 which seems to be undefined. Please make sure it is defined." >&2;}
21504 rm -f "$tmp/stdin"
21505 case $ac_file in
21506 -) cat "$tmp/out"; rm -f "$tmp/out";;
21507 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21508 esac
21512 # CONFIG_HEADER
21514 _ACEOF
21516 # Transform confdefs.h into a sed script `conftest.defines', that
21517 # substitutes the proper values into config.h.in to produce config.h.
21518 rm -f conftest.defines conftest.tail
21519 # First, append a space to every undef/define line, to ease matching.
21520 echo 's/$/ /' >conftest.defines
21521 # Then, protect against being on the right side of a sed subst, or in
21522 # an unquoted here document, in config.status. If some macros were
21523 # called several times there might be several #defines for the same
21524 # symbol, which is useless. But do not sort them, since the last
21525 # AC_DEFINE must be honored.
21526 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21527 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21528 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21529 # PARAMS is the parameter list in the macro definition--in most cases, it's
21530 # just an empty string.
21531 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21532 ac_dB='\\)[ (].*,\\1define\\2'
21533 ac_dC=' '
21534 ac_dD=' ,'
21536 uniq confdefs.h |
21537 sed -n '
21538 t rset
21539 :rset
21540 s/^[ ]*#[ ]*define[ ][ ]*//
21541 t ok
21544 s/[\\&,]/\\&/g
21545 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21546 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21547 ' >>conftest.defines
21549 # Remove the space that was appended to ease matching.
21550 # Then replace #undef with comments. This is necessary, for
21551 # example, in the case of _POSIX_SOURCE, which is predefined and required
21552 # on some systems where configure will not decide to define it.
21553 # (The regexp can be short, since the line contains either #define or #undef.)
21554 echo 's/ $//
21555 s,^[ #]*u.*,/* & */,' >>conftest.defines
21557 # Break up conftest.defines:
21558 ac_max_sed_lines=50
21560 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21561 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21562 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21563 # et cetera.
21564 ac_in='$ac_file_inputs'
21565 ac_out='"$tmp/out1"'
21566 ac_nxt='"$tmp/out2"'
21568 while :
21570 # Write a here document:
21571 cat >>$CONFIG_STATUS <<_ACEOF
21572 # First, check the format of the line:
21573 cat >"\$tmp/defines.sed" <<\\CEOF
21574 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21575 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21577 :def
21578 _ACEOF
21579 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21580 echo 'CEOF
21581 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21582 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21583 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21584 grep . conftest.tail >/dev/null || break
21585 rm -f conftest.defines
21586 mv conftest.tail conftest.defines
21587 done
21588 rm -f conftest.defines conftest.tail
21590 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21591 cat >>$CONFIG_STATUS <<\_ACEOF
21592 if test x"$ac_file" != x-; then
21593 echo "/* $configure_input */" >"$tmp/config.h"
21594 cat "$ac_result" >>"$tmp/config.h"
21595 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21596 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21597 echo "$as_me: $ac_file is unchanged" >&6;}
21598 else
21599 rm -f $ac_file
21600 mv "$tmp/config.h" $ac_file
21602 else
21603 echo "/* $configure_input */"
21604 cat "$ac_result"
21606 rm -f "$tmp/out12"
21607 # Compute $ac_file's index in $config_headers.
21608 _am_stamp_count=1
21609 for _am_header in $config_headers :; do
21610 case $_am_header in
21611 $ac_file | $ac_file:* )
21612 break ;;
21614 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21615 esac
21616 done
21617 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21618 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21619 X$ac_file : 'X\(//\)[^/]' \| \
21620 X$ac_file : 'X\(//\)$' \| \
21621 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21622 echo X$ac_file |
21623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21624 s//\1/
21627 /^X\(\/\/\)[^/].*/{
21628 s//\1/
21631 /^X\(\/\/\)$/{
21632 s//\1/
21635 /^X\(\/\).*/{
21636 s//\1/
21639 s/.*/./; q'`/stamp-h$_am_stamp_count
21642 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21643 echo "$as_me: executing $ac_file commands" >&6;}
21645 esac
21648 case $ac_file$ac_mode in
21649 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21650 # Strip MF so we end up with the name of the file.
21651 mf=`echo "$mf" | sed -e 's/:.*$//'`
21652 # Check whether this is an Automake generated Makefile or not.
21653 # We used to match only the files named `Makefile.in', but
21654 # some people rename them; so instead we look at the file content.
21655 # Grep'ing the first line is not enough: some people post-process
21656 # each Makefile.in and add a new line on top of each file to say so.
21657 # So let's grep whole file.
21658 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21659 dirpart=`$as_dirname -- "$mf" ||
21660 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21661 X"$mf" : 'X\(//\)[^/]' \| \
21662 X"$mf" : 'X\(//\)$' \| \
21663 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21664 echo X"$mf" |
21665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21666 s//\1/
21669 /^X\(\/\/\)[^/].*/{
21670 s//\1/
21673 /^X\(\/\/\)$/{
21674 s//\1/
21677 /^X\(\/\).*/{
21678 s//\1/
21681 s/.*/./; q'`
21682 else
21683 continue
21685 # Extract the definition of DEPDIR, am__include, and am__quote
21686 # from the Makefile without running `make'.
21687 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21688 test -z "$DEPDIR" && continue
21689 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21690 test -z "am__include" && continue
21691 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21692 # When using ansi2knr, U may be empty or an underscore; expand it
21693 U=`sed -n 's/^U = //p' < "$mf"`
21694 # Find all dependency output files, they are included files with
21695 # $(DEPDIR) in their names. We invoke sed twice because it is the
21696 # simplest approach to changing $(DEPDIR) to its actual value in the
21697 # expansion.
21698 for file in `sed -n "
21699 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21700 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21701 # Make sure the directory exists.
21702 test -f "$dirpart/$file" && continue
21703 fdir=`$as_dirname -- "$file" ||
21704 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21705 X"$file" : 'X\(//\)[^/]' \| \
21706 X"$file" : 'X\(//\)$' \| \
21707 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21708 echo X"$file" |
21709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21710 s//\1/
21713 /^X\(\/\/\)[^/].*/{
21714 s//\1/
21717 /^X\(\/\/\)$/{
21718 s//\1/
21721 /^X\(\/\).*/{
21722 s//\1/
21725 s/.*/./; q'`
21726 { as_dir=$dirpart/$fdir
21727 case $as_dir in #(
21728 -*) as_dir=./$as_dir;;
21729 esac
21730 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21731 as_dirs=
21732 while :; do
21733 case $as_dir in #(
21734 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21735 *) as_qdir=$as_dir;;
21736 esac
21737 as_dirs="'$as_qdir' $as_dirs"
21738 as_dir=`$as_dirname -- "$as_dir" ||
21739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21740 X"$as_dir" : 'X\(//\)[^/]' \| \
21741 X"$as_dir" : 'X\(//\)$' \| \
21742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21743 echo X"$as_dir" |
21744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21745 s//\1/
21748 /^X\(\/\/\)[^/].*/{
21749 s//\1/
21752 /^X\(\/\/\)$/{
21753 s//\1/
21756 /^X\(\/\).*/{
21757 s//\1/
21760 s/.*/./; q'`
21761 test -d "$as_dir" && break
21762 done
21763 test -z "$as_dirs" || eval "mkdir $as_dirs"
21764 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21765 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21766 { (exit 1); exit 1; }; }; }
21767 # echo "creating $dirpart/$file"
21768 echo '# dummy' > "$dirpart/$file"
21769 done
21770 done
21773 esac
21774 done # for ac_tag
21777 { (exit 0); exit 0; }
21778 _ACEOF
21779 chmod +x $CONFIG_STATUS
21780 ac_clean_files=$ac_clean_files_save
21783 # configure is writing to config.log, and then calls config.status.
21784 # config.status does its own redirection, appending to config.log.
21785 # Unfortunately, on DOS this fails, as config.log is still kept open
21786 # by configure, so config.status won't be able to write to it; its
21787 # output is simply discarded. So we exec the FD to /dev/null,
21788 # effectively closing config.log, so it can be properly (re)opened and
21789 # appended to by config.status. When coming back to configure, we
21790 # need to make the FD available again.
21791 if test "$no_create" != yes; then
21792 ac_cs_success=:
21793 ac_config_status_args=
21794 test "$silent" = yes &&
21795 ac_config_status_args="$ac_config_status_args --quiet"
21796 exec 5>/dev/null
21797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21798 exec 5>>config.log
21799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21800 # would make configure fail if this is the last instruction.
21801 $ac_cs_success || { (exit 1); exit 1; }