*** empty log message ***
[csql.git] / configure
blob5ad821a5fd82ebb86eb6018985d7a2bd3a86b972
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 && continue
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
4178 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 variants of GNU ld 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 lds 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'
4466 case $host_os in
4467 darwin*)
4468 if test "$GCC" = yes; then
4469 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4470 else
4471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4474 esac
4476 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4477 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4478 if test "${lt_cv_path_NM+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 if test -n "$NM"; then
4482 # Let the user override the test.
4483 lt_cv_path_NM="$NM"
4484 else
4485 lt_nm_to_check="${ac_tool_prefix}nm"
4486 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4487 lt_nm_to_check="$lt_nm_to_check nm"
4489 for lt_tmp_nm in $lt_nm_to_check; do
4490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4491 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4492 IFS="$lt_save_ifs"
4493 test -z "$ac_dir" && ac_dir=.
4494 tmp_nm="$ac_dir/$lt_tmp_nm"
4495 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4496 # Check to see if the nm accepts a BSD-compat flag.
4497 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4498 # nm: unknown option "B" ignored
4499 # Tru64's nm complains that /dev/null is an invalid object file
4500 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4501 */dev/null* | *'Invalid file or object type'*)
4502 lt_cv_path_NM="$tmp_nm -B"
4503 break
4506 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4507 */dev/null*)
4508 lt_cv_path_NM="$tmp_nm -p"
4509 break
4512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4513 continue # so that we can try to find one that supports BSD flags
4515 esac
4517 esac
4519 done
4520 IFS="$lt_save_ifs"
4521 done
4522 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4525 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4526 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4527 NM="$lt_cv_path_NM"
4529 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4530 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4531 LN_S=$as_ln_s
4532 if test "$LN_S" = "ln -s"; then
4533 { echo "$as_me:$LINENO: result: yes" >&5
4534 echo "${ECHO_T}yes" >&6; }
4535 else
4536 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4537 echo "${ECHO_T}no, using $LN_S" >&6; }
4540 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4541 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4542 if test "${lt_cv_deplibs_check_method+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 lt_cv_file_magic_cmd='$MAGIC_CMD'
4546 lt_cv_file_magic_test_file=
4547 lt_cv_deplibs_check_method='unknown'
4548 # Need to set the preceding variable on all platforms that support
4549 # interlibrary dependencies.
4550 # 'none' -- dependencies not supported.
4551 # `unknown' -- same as none, but documents that we really don't know.
4552 # 'pass_all' -- all dependencies passed with no checks.
4553 # 'test_compile' -- check by making test program.
4554 # 'file_magic [[regex]]' -- check by looking for files in library path
4555 # which responds to the $file_magic_cmd with a given extended regex.
4556 # If you have `file' or equivalent on your system and you're not sure
4557 # whether `pass_all' will *always* work, you probably want this one.
4559 case $host_os in
4560 aix4* | aix5*)
4561 lt_cv_deplibs_check_method=pass_all
4564 beos*)
4565 lt_cv_deplibs_check_method=pass_all
4568 bsdi[45]*)
4569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4570 lt_cv_file_magic_cmd='/usr/bin/file -L'
4571 lt_cv_file_magic_test_file=/shlib/libc.so
4574 cygwin*)
4575 # func_win32_libid is a shell function defined in ltmain.sh
4576 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4577 lt_cv_file_magic_cmd='func_win32_libid'
4580 mingw* | pw32*)
4581 # Base MSYS/MinGW do not provide the 'file' command needed by
4582 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4583 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4584 lt_cv_file_magic_cmd='$OBJDUMP -f'
4587 darwin* | rhapsody*)
4588 lt_cv_deplibs_check_method=pass_all
4591 freebsd* | kfreebsd*-gnu | dragonfly*)
4592 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4593 case $host_cpu in
4594 i*86 )
4595 # Not sure whether the presence of OpenBSD here was a mistake.
4596 # Let's accept both of them until this is cleared up.
4597 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4598 lt_cv_file_magic_cmd=/usr/bin/file
4599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4601 esac
4602 else
4603 lt_cv_deplibs_check_method=pass_all
4607 gnu*)
4608 lt_cv_deplibs_check_method=pass_all
4611 hpux10.20* | hpux11*)
4612 lt_cv_file_magic_cmd=/usr/bin/file
4613 case $host_cpu in
4614 ia64*)
4615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4616 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4618 hppa*64*)
4619 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]'
4620 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4623 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4624 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4626 esac
4629 interix3*)
4630 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4634 irix5* | irix6* | nonstopux*)
4635 case $LD in
4636 *-32|*"-32 ") libmagic=32-bit;;
4637 *-n32|*"-n32 ") libmagic=N32;;
4638 *-64|*"-64 ") libmagic=64-bit;;
4639 *) libmagic=never-match;;
4640 esac
4641 lt_cv_deplibs_check_method=pass_all
4644 # This must be Linux ELF.
4645 linux*)
4646 lt_cv_deplibs_check_method=pass_all
4649 netbsd*)
4650 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4652 else
4653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4657 newos6*)
4658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4659 lt_cv_file_magic_cmd=/usr/bin/file
4660 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4663 nto-qnx*)
4664 lt_cv_deplibs_check_method=unknown
4667 openbsd*)
4668 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4670 else
4671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4675 osf3* | osf4* | osf5*)
4676 lt_cv_deplibs_check_method=pass_all
4679 solaris*)
4680 lt_cv_deplibs_check_method=pass_all
4683 sysv4 | sysv4.3*)
4684 case $host_vendor in
4685 motorola)
4686 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]'
4687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4689 ncr)
4690 lt_cv_deplibs_check_method=pass_all
4692 sequent)
4693 lt_cv_file_magic_cmd='/bin/file'
4694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4696 sni)
4697 lt_cv_file_magic_cmd='/bin/file'
4698 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4699 lt_cv_file_magic_test_file=/lib/libc.so
4701 siemens)
4702 lt_cv_deplibs_check_method=pass_all
4705 lt_cv_deplibs_check_method=pass_all
4707 esac
4710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4711 lt_cv_deplibs_check_method=pass_all
4713 esac
4716 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4717 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4718 file_magic_cmd=$lt_cv_file_magic_cmd
4719 deplibs_check_method=$lt_cv_deplibs_check_method
4720 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4725 # If no C compiler was specified, use CC.
4726 LTCC=${LTCC-"$CC"}
4728 # If no C compiler flags were specified, use CFLAGS.
4729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4731 # Allow CC to be a program name with arguments.
4732 compiler=$CC
4735 # Check whether --enable-libtool-lock was given.
4736 if test "${enable_libtool_lock+set}" = set; then
4737 enableval=$enable_libtool_lock;
4740 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4742 # Some flags need to be propagated to the compiler or linker for good
4743 # libtool support.
4744 case $host in
4745 ia64-*-hpux*)
4746 # Find out which ABI we are using.
4747 echo 'int i;' > conftest.$ac_ext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; then
4753 case `/usr/bin/file conftest.$ac_objext` in
4754 *ELF-32*)
4755 HPUX_IA64_MODE="32"
4757 *ELF-64*)
4758 HPUX_IA64_MODE="64"
4760 esac
4762 rm -rf conftest*
4764 *-*-irix6*)
4765 # Find out which ABI we are using.
4766 echo '#line 4766 "configure"' > conftest.$ac_ext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; then
4772 if test "$lt_cv_prog_gnu_ld" = yes; then
4773 case `/usr/bin/file conftest.$ac_objext` in
4774 *32-bit*)
4775 LD="${LD-ld} -melf32bsmip"
4777 *N32*)
4778 LD="${LD-ld} -melf32bmipn32"
4780 *64-bit*)
4781 LD="${LD-ld} -melf64bmip"
4783 esac
4784 else
4785 case `/usr/bin/file conftest.$ac_objext` in
4786 *32-bit*)
4787 LD="${LD-ld} -32"
4789 *N32*)
4790 LD="${LD-ld} -n32"
4792 *64-bit*)
4793 LD="${LD-ld} -64"
4795 esac
4798 rm -rf conftest*
4801 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4802 # Find out which ABI we are using.
4803 echo 'int i;' > conftest.$ac_ext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
4809 case `/usr/bin/file conftest.o` in
4810 *32-bit*)
4811 case $host in
4812 x86_64-*linux*)
4813 LD="${LD-ld} -m elf_i386"
4815 ppc64-*linux*|powerpc64-*linux*)
4816 LD="${LD-ld} -m elf32ppclinux"
4818 s390x-*linux*)
4819 LD="${LD-ld} -m elf_s390"
4821 sparc64-*linux*)
4822 LD="${LD-ld} -m elf32_sparc"
4824 esac
4826 *64-bit*)
4827 case $host in
4828 x86_64-*linux*)
4829 LD="${LD-ld} -m elf_x86_64"
4831 ppc*-*linux*|powerpc*-*linux*)
4832 LD="${LD-ld} -m elf64ppc"
4834 s390*-*linux*)
4835 LD="${LD-ld} -m elf64_s390"
4837 sparc*-*linux*)
4838 LD="${LD-ld} -m elf64_sparc"
4840 esac
4842 esac
4844 rm -rf conftest*
4847 *-*-sco3.2v5*)
4848 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4849 SAVE_CFLAGS="$CFLAGS"
4850 CFLAGS="$CFLAGS -belf"
4851 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4852 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4853 if test "${lt_cv_cc_needs_belf+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4870 main ()
4874 return 0;
4876 _ACEOF
4877 rm -f conftest.$ac_objext conftest$ac_exeext
4878 if { (ac_try="$ac_link"
4879 case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_link") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } && {
4891 test -z "$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 } && test -s conftest$ac_exeext &&
4894 $as_test_x conftest$ac_exeext; then
4895 lt_cv_cc_needs_belf=yes
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 lt_cv_cc_needs_belf=no
4903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4904 conftest$ac_exeext conftest.$ac_ext
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4913 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4914 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4915 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4916 CFLAGS="$SAVE_CFLAGS"
4919 sparc*-*solaris*)
4920 # Find out which ABI we are using.
4921 echo 'int i;' > conftest.$ac_ext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; then
4927 case `/usr/bin/file conftest.o` in
4928 *64-bit*)
4929 case $lt_cv_prog_gnu_ld in
4930 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4931 *) LD="${LD-ld} -64" ;;
4932 esac
4934 esac
4936 rm -rf conftest*
4940 esac
4942 need_locks="$enable_libtool_lock"
4945 ac_ext=c
4946 ac_cpp='$CPP $CPPFLAGS'
4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4951 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4952 # On Suns, sometimes $CPP names a directory.
4953 if test -n "$CPP" && test -d "$CPP"; then
4954 CPP=
4956 if test -z "$CPP"; then
4957 if test "${ac_cv_prog_CPP+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 # Double quotes because CPP needs to be expanded
4961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4963 ac_preproc_ok=false
4964 for ac_c_preproc_warn_flag in '' yes
4966 # Use a header file that comes with gcc, so configuring glibc
4967 # with a fresh cross-compiler works.
4968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969 # <limits.h> exists even on freestanding compilers.
4970 # On the NeXT, cc -E runs the code through the compiler's parser,
4971 # not just through cpp. "Syntax error" is here to catch this case.
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h. */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 #ifdef __STDC__
4979 # include <limits.h>
4980 #else
4981 # include <assert.h>
4982 #endif
4983 Syntax error
4984 _ACEOF
4985 if { (ac_try="$ac_cpp conftest.$ac_ext"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null && {
4998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 }; then
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 # Broken: fails on valid input.
5007 continue
5010 rm -f conftest.err conftest.$ac_ext
5012 # OK, works on sane cases. Now check whether nonexistent headers
5013 # can be detected and how.
5014 cat >conftest.$ac_ext <<_ACEOF
5015 /* confdefs.h. */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 #include <ac_nonexistent.h>
5021 _ACEOF
5022 if { (ac_try="$ac_cpp conftest.$ac_ext"
5023 case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 }; then
5038 # Broken: success on invalid input.
5039 continue
5040 else
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 # Passes both tests.
5045 ac_preproc_ok=:
5046 break
5049 rm -f conftest.err conftest.$ac_ext
5051 done
5052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5053 rm -f conftest.err conftest.$ac_ext
5054 if $ac_preproc_ok; then
5055 break
5058 done
5059 ac_cv_prog_CPP=$CPP
5062 CPP=$ac_cv_prog_CPP
5063 else
5064 ac_cv_prog_CPP=$CPP
5066 { echo "$as_me:$LINENO: result: $CPP" >&5
5067 echo "${ECHO_T}$CPP" >&6; }
5068 ac_preproc_ok=false
5069 for ac_c_preproc_warn_flag in '' yes
5071 # Use a header file that comes with gcc, so configuring glibc
5072 # with a fresh cross-compiler works.
5073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 # <limits.h> exists even on freestanding compilers.
5075 # On the NeXT, cc -E runs the code through the compiler's parser,
5076 # not just through cpp. "Syntax error" is here to catch this case.
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #ifdef __STDC__
5084 # include <limits.h>
5085 #else
5086 # include <assert.h>
5087 #endif
5088 Syntax error
5089 _ACEOF
5090 if { (ac_try="$ac_cpp conftest.$ac_ext"
5091 case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } >/dev/null && {
5103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5104 test ! -s conftest.err
5105 }; then
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 # Broken: fails on valid input.
5112 continue
5115 rm -f conftest.err conftest.$ac_ext
5117 # OK, works on sane cases. Now check whether nonexistent headers
5118 # can be detected and how.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <ac_nonexistent.h>
5126 _ACEOF
5127 if { (ac_try="$ac_cpp conftest.$ac_ext"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 }; then
5143 # Broken: success on invalid input.
5144 continue
5145 else
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 # Passes both tests.
5150 ac_preproc_ok=:
5151 break
5154 rm -f conftest.err conftest.$ac_ext
5156 done
5157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158 rm -f conftest.err conftest.$ac_ext
5159 if $ac_preproc_ok; then
5161 else
5162 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5163 See \`config.log' for more details." >&5
5164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5165 See \`config.log' for more details." >&2;}
5166 { (exit 1); exit 1; }; }
5169 ac_ext=c
5170 ac_cpp='$CPP $CPPFLAGS'
5171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5178 if test "${ac_cv_header_stdc+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <stdlib.h>
5188 #include <stdarg.h>
5189 #include <string.h>
5190 #include <float.h>
5193 main ()
5197 return 0;
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (ac_try="$ac_compile"
5202 case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_compile") 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && {
5214 test -z "$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5216 } && test -s conftest.$ac_objext; then
5217 ac_cv_header_stdc=yes
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 ac_cv_header_stdc=no
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 if test $ac_cv_header_stdc = yes; then
5228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 #include <string.h>
5237 _ACEOF
5238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5239 $EGREP "memchr" >/dev/null 2>&1; then
5241 else
5242 ac_cv_header_stdc=no
5244 rm -f conftest*
5248 if test $ac_cv_header_stdc = yes; then
5249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #include <stdlib.h>
5258 _ACEOF
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 $EGREP "free" >/dev/null 2>&1; then
5262 else
5263 ac_cv_header_stdc=no
5265 rm -f conftest*
5269 if test $ac_cv_header_stdc = yes; then
5270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5271 if test "$cross_compiling" = yes; then
5273 else
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 #include <ctype.h>
5281 #include <stdlib.h>
5282 #if ((' ' & 0x0FF) == 0x020)
5283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5285 #else
5286 # define ISLOWER(c) \
5287 (('a' <= (c) && (c) <= 'i') \
5288 || ('j' <= (c) && (c) <= 'r') \
5289 || ('s' <= (c) && (c) <= 'z'))
5290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5291 #endif
5293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5295 main ()
5297 int i;
5298 for (i = 0; i < 256; i++)
5299 if (XOR (islower (i), ISLOWER (i))
5300 || toupper (i) != TOUPPER (i))
5301 return 2;
5302 return 0;
5304 _ACEOF
5305 rm -f conftest$ac_exeext
5306 if { (ac_try="$ac_link"
5307 case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_link") 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5316 { (case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5319 esac
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_try") 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5326 else
5327 echo "$as_me: program exited with status $ac_status" >&5
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 ( exit $ac_status )
5332 ac_cv_header_stdc=no
5334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5340 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5341 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5342 if test $ac_cv_header_stdc = yes; then
5344 cat >>confdefs.h <<\_ACEOF
5345 #define STDC_HEADERS 1
5346 _ACEOF
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5360 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5361 inttypes.h stdint.h unistd.h
5363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 $ac_includes_default
5377 #include <$ac_header>
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5381 case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384 esac
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } && {
5393 test -z "$ac_c_werror_flag" ||
5394 test ! -s conftest.err
5395 } && test -s conftest.$ac_objext; then
5396 eval "$as_ac_Header=yes"
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 eval "$as_ac_Header=no"
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 ac_res=`eval echo '${'$as_ac_Header'}'`
5407 { echo "$as_me:$LINENO: result: $ac_res" >&5
5408 echo "${ECHO_T}$ac_res" >&6; }
5409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5410 cat >>confdefs.h <<_ACEOF
5411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5412 _ACEOF
5416 done
5420 for ac_header in dlfcn.h
5422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 ac_res=`eval echo '${'$as_ac_Header'}'`
5430 { echo "$as_me:$LINENO: result: $ac_res" >&5
5431 echo "${ECHO_T}$ac_res" >&6; }
5432 else
5433 # Is the header compilable?
5434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 $ac_includes_default
5443 #include <$ac_header>
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_header_compiler=yes
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_header_compiler=no
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5472 echo "${ECHO_T}$ac_header_compiler" >&6; }
5474 # Is the header present?
5475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5477 cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h. */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 #include <$ac_header>
5484 _ACEOF
5485 if { (ac_try="$ac_cpp conftest.$ac_ext"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } >/dev/null && {
5498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 }; then
5501 ac_header_preproc=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_header_preproc=no
5509 rm -f conftest.err conftest.$ac_ext
5510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5511 echo "${ECHO_T}$ac_header_preproc" >&6; }
5513 # So? What about this header?
5514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5515 yes:no: )
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5520 ac_header_preproc=yes
5522 no:yes:* )
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5537 esac
5538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 eval "$as_ac_Header=\$ac_header_preproc"
5545 ac_res=`eval echo '${'$as_ac_Header'}'`
5546 { echo "$as_me:$LINENO: result: $ac_res" >&5
5547 echo "${ECHO_T}$ac_res" >&6; }
5550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5551 cat >>confdefs.h <<_ACEOF
5552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5553 _ACEOF
5557 done
5561 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5562 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5563 (test "X$CXX" != "Xg++"))) ; then
5564 ac_ext=cpp
5565 ac_cpp='$CXXCPP $CPPFLAGS'
5566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5569 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5570 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5571 if test -z "$CXXCPP"; then
5572 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 # Double quotes because CXXCPP needs to be expanded
5576 for CXXCPP in "$CXX -E" "/lib/cpp"
5578 ac_preproc_ok=false
5579 for ac_cxx_preproc_warn_flag in '' yes
5581 # Use a header file that comes with gcc, so configuring glibc
5582 # with a fresh cross-compiler works.
5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 # <limits.h> exists even on freestanding compilers.
5585 # On the NeXT, cc -E runs the code through the compiler's parser,
5586 # not just through cpp. "Syntax error" is here to catch this case.
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 #ifdef __STDC__
5594 # include <limits.h>
5595 #else
5596 # include <assert.h>
5597 #endif
5598 Syntax error
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
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 # Broken: fails on valid input.
5622 continue
5625 rm -f conftest.err conftest.$ac_ext
5627 # OK, works on sane cases. Now check whether nonexistent headers
5628 # can be detected and how.
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <ac_nonexistent.h>
5636 _ACEOF
5637 if { (ac_try="$ac_cpp conftest.$ac_ext"
5638 case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5641 esac
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } >/dev/null && {
5650 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5651 test ! -s conftest.err
5652 }; then
5653 # Broken: success on invalid input.
5654 continue
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 # Passes both tests.
5660 ac_preproc_ok=:
5661 break
5664 rm -f conftest.err conftest.$ac_ext
5666 done
5667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5668 rm -f conftest.err conftest.$ac_ext
5669 if $ac_preproc_ok; then
5670 break
5673 done
5674 ac_cv_prog_CXXCPP=$CXXCPP
5677 CXXCPP=$ac_cv_prog_CXXCPP
5678 else
5679 ac_cv_prog_CXXCPP=$CXXCPP
5681 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5682 echo "${ECHO_T}$CXXCPP" >&6; }
5683 ac_preproc_ok=false
5684 for ac_cxx_preproc_warn_flag in '' yes
5686 # Use a header file that comes with gcc, so configuring glibc
5687 # with a fresh cross-compiler works.
5688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689 # <limits.h> exists even on freestanding compilers.
5690 # On the NeXT, cc -E runs the code through the compiler's parser,
5691 # not just through cpp. "Syntax error" is here to catch this case.
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 #ifdef __STDC__
5699 # include <limits.h>
5700 #else
5701 # include <assert.h>
5702 #endif
5703 Syntax error
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
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 # Broken: fails on valid input.
5727 continue
5730 rm -f conftest.err conftest.$ac_ext
5732 # OK, works on sane cases. Now check whether nonexistent headers
5733 # can be detected and how.
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <ac_nonexistent.h>
5741 _ACEOF
5742 if { (ac_try="$ac_cpp conftest.$ac_ext"
5743 case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } >/dev/null && {
5755 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5756 test ! -s conftest.err
5757 }; then
5758 # Broken: success on invalid input.
5759 continue
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 # Passes both tests.
5765 ac_preproc_ok=:
5766 break
5769 rm -f conftest.err conftest.$ac_ext
5771 done
5772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773 rm -f conftest.err conftest.$ac_ext
5774 if $ac_preproc_ok; then
5776 else
5777 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5778 See \`config.log' for more details." >&5
5779 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5780 See \`config.log' for more details." >&2;}
5781 { (exit 1); exit 1; }; }
5784 ac_ext=cpp
5785 ac_cpp='$CXXCPP $CPPFLAGS'
5786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5793 ac_ext=f
5794 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5795 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5797 if test -n "$ac_tool_prefix"; then
5798 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
5800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5804 if test "${ac_cv_prog_F77+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 if test -n "$F77"; then
5808 ac_cv_prog_F77="$F77" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5821 done
5822 done
5823 IFS=$as_save_IFS
5827 F77=$ac_cv_prog_F77
5828 if test -n "$F77"; then
5829 { echo "$as_me:$LINENO: result: $F77" >&5
5830 echo "${ECHO_T}$F77" >&6; }
5831 else
5832 { echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6; }
5837 test -n "$F77" && break
5838 done
5840 if test -z "$F77"; then
5841 ac_ct_F77=$F77
5842 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
5844 # Extract the first word of "$ac_prog", so it can be a program name with args.
5845 set dummy $ac_prog; ac_word=$2
5846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5848 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 if test -n "$ac_ct_F77"; then
5852 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_ac_ct_F77="$ac_prog"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5865 done
5866 done
5867 IFS=$as_save_IFS
5871 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5872 if test -n "$ac_ct_F77"; then
5873 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5874 echo "${ECHO_T}$ac_ct_F77" >&6; }
5875 else
5876 { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5881 test -n "$ac_ct_F77" && break
5882 done
5884 if test "x$ac_ct_F77" = x; then
5885 F77=""
5886 else
5887 case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5890 whose name does not start with the host triplet. If you think this
5891 configuration is useful to you, please write to autoconf@gnu.org." >&5
5892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5893 whose name does not start with the host triplet. If you think this
5894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897 F77=$ac_ct_F77
5902 # Provide some information about the compiler.
5903 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5904 ac_compiler=`set X $ac_compile; echo $2`
5905 { (ac_try="$ac_compiler --version >&5"
5906 case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compiler --version >&5") 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }
5915 { (ac_try="$ac_compiler -v >&5"
5916 case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compiler -v >&5") 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }
5925 { (ac_try="$ac_compiler -V >&5"
5926 case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compiler -V >&5") 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }
5935 rm -f a.out
5937 # If we don't use `.F' as extension, the preprocessor is not run on the
5938 # input file. (Note that this only needs to work for GNU compilers.)
5939 ac_save_ext=$ac_ext
5940 ac_ext=F
5941 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5942 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5943 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 program main
5948 #ifndef __GNUC__
5949 choke me
5950 #endif
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } && {
5968 test -z "$ac_f77_werror_flag" ||
5969 test ! -s conftest.err
5970 } && test -s conftest.$ac_objext; then
5971 ac_compiler_gnu=yes
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 ac_compiler_gnu=no
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5983 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5984 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5985 ac_ext=$ac_save_ext
5986 ac_test_FFLAGS=${FFLAGS+set}
5987 ac_save_FFLAGS=$FFLAGS
5988 FFLAGS=
5989 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5990 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_f77_g+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 FFLAGS=-g
5995 cat >conftest.$ac_ext <<_ACEOF
5996 program main
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (ac_try="$ac_compile"
6002 case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_f77_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest.$ac_objext; then
6017 ac_cv_prog_f77_g=yes
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_prog_f77_g=no
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6029 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6030 if test "$ac_test_FFLAGS" = set; then
6031 FFLAGS=$ac_save_FFLAGS
6032 elif test $ac_cv_prog_f77_g = yes; then
6033 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6034 FFLAGS="-g -O2"
6035 else
6036 FFLAGS="-g"
6038 else
6039 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6040 FFLAGS="-O2"
6041 else
6042 FFLAGS=
6046 G77=`test $ac_compiler_gnu = yes && echo yes`
6047 ac_ext=cpp
6048 ac_cpp='$CXXCPP $CPPFLAGS'
6049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6055 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6057 # find the maximum length of command line arguments
6058 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6059 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6060 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6064 teststring="ABCD"
6066 case $build_os in
6067 msdosdjgpp*)
6068 # On DJGPP, this test can blow up pretty badly due to problems in libc
6069 # (any single argument exceeding 2000 bytes causes a buffer overrun
6070 # during glob expansion). Even if it were fixed, the result of this
6071 # check would be larger than it should be.
6072 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6075 gnu*)
6076 # Under GNU Hurd, this test is not required because there is
6077 # no limit to the length of command line arguments.
6078 # Libtool will interpret -1 as no limit whatsoever
6079 lt_cv_sys_max_cmd_len=-1;
6082 cygwin* | mingw*)
6083 # On Win9x/ME, this test blows up -- it succeeds, but takes
6084 # about 5 minutes as the teststring grows exponentially.
6085 # Worse, since 9x/ME are not pre-emptively multitasking,
6086 # you end up with a "frozen" computer, even though with patience
6087 # the test eventually succeeds (with a max line length of 256k).
6088 # Instead, let's just punt: use the minimum linelength reported by
6089 # all of the supported platforms: 8192 (on NT/2K/XP).
6090 lt_cv_sys_max_cmd_len=8192;
6093 amigaos*)
6094 # On AmigaOS with pdksh, this test takes hours, literally.
6095 # So we just punt and use a minimum line length of 8192.
6096 lt_cv_sys_max_cmd_len=8192;
6099 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6100 # This has been around since 386BSD, at least. Likely further.
6101 if test -x /sbin/sysctl; then
6102 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6103 elif test -x /usr/sbin/sysctl; then
6104 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6105 else
6106 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6108 # And add a safety zone
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6113 interix*)
6114 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6115 lt_cv_sys_max_cmd_len=196608
6118 osf*)
6119 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6120 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6121 # nice to cause kernel panics so lets avoid the loop below.
6122 # First set a reasonable default.
6123 lt_cv_sys_max_cmd_len=16384
6125 if test -x /sbin/sysconfig; then
6126 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6127 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6128 esac
6131 sco3.2v5*)
6132 lt_cv_sys_max_cmd_len=102400
6134 sysv5* | sco5v6* | sysv4.2uw2*)
6135 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6136 if test -n "$kargmax"; then
6137 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6138 else
6139 lt_cv_sys_max_cmd_len=32768
6143 # If test is not a shell built-in, we'll probably end up computing a
6144 # maximum length that is only half of the actual maximum length, but
6145 # we can't tell.
6146 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6147 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6148 = "XX$teststring") >/dev/null 2>&1 &&
6149 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6150 lt_cv_sys_max_cmd_len=$new_result &&
6151 test $i != 17 # 1/2 MB should be enough
6153 i=`expr $i + 1`
6154 teststring=$teststring$teststring
6155 done
6156 teststring=
6157 # Add a significant safety factor because C++ compilers can tack on massive
6158 # amounts of additional arguments before passing them to the linker.
6159 # It appears as though 1/2 is a usable value.
6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6162 esac
6166 if test -n $lt_cv_sys_max_cmd_len ; then
6167 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6168 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6169 else
6170 { echo "$as_me:$LINENO: result: none" >&5
6171 echo "${ECHO_T}none" >&6; }
6177 # Check for command to grab the raw symbol name followed by C symbol from nm.
6178 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6179 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6180 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6184 # These are sane defaults that work on at least a few old systems.
6185 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6187 # Character class describing NM global symbol codes.
6188 symcode='[BCDEGRST]'
6190 # Regexp to match symbols that can be accessed directly from C.
6191 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6193 # Transform an extracted symbol line into a proper C declaration
6194 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6196 # Transform an extracted symbol line into symbol name and symbol address
6197 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'"
6199 # Define system-specific variables.
6200 case $host_os in
6201 aix*)
6202 symcode='[BCDT]'
6204 cygwin* | mingw* | pw32*)
6205 symcode='[ABCDGISTW]'
6207 hpux*) # Its linker distinguishes data from code symbols
6208 if test "$host_cpu" = ia64; then
6209 symcode='[ABCDEGRST]'
6211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6212 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'"
6214 linux*)
6215 if test "$host_cpu" = ia64; then
6216 symcode='[ABCDGIRSTW]'
6217 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6218 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'"
6221 irix* | nonstopux*)
6222 symcode='[BCDEGRST]'
6224 osf*)
6225 symcode='[BCDEGQRST]'
6227 solaris*)
6228 symcode='[BDRT]'
6230 sco3.2v5*)
6231 symcode='[DT]'
6233 sysv4.2uw2*)
6234 symcode='[DT]'
6236 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6237 symcode='[ABDT]'
6239 sysv4)
6240 symcode='[DFNSTU]'
6242 esac
6244 # Handle CRLF in mingw tool chain
6245 opt_cr=
6246 case $build_os in
6247 mingw*)
6248 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6250 esac
6252 # If we're using GNU nm, then use its standard symbol codes.
6253 case `$NM -V 2>&1` in
6254 *GNU* | *'with BFD'*)
6255 symcode='[ABCDGIRSTW]' ;;
6256 esac
6258 # Try without a prefix undercore, then with it.
6259 for ac_symprfx in "" "_"; do
6261 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6262 symxfrm="\\1 $ac_symprfx\\2 \\2"
6264 # Write the raw and C identifiers.
6265 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6267 # Check to see that the pipe works correctly.
6268 pipe_works=no
6270 rm -f conftest*
6271 cat > conftest.$ac_ext <<EOF
6272 #ifdef __cplusplus
6273 extern "C" {
6274 #endif
6275 char nm_test_var;
6276 void nm_test_func(){}
6277 #ifdef __cplusplus
6279 #endif
6280 int main(){nm_test_var='a';nm_test_func();return(0);}
6283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284 (eval $ac_compile) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; then
6288 # Now try to grab the symbols.
6289 nlist=conftest.nm
6290 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6291 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && test -s "$nlist"; then
6295 # Try sorting and uniquifying the output.
6296 if sort "$nlist" | uniq > "$nlist"T; then
6297 mv -f "$nlist"T "$nlist"
6298 else
6299 rm -f "$nlist"T
6302 # Make sure that we snagged all the symbols we need.
6303 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6304 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6305 cat <<EOF > conftest.$ac_ext
6306 #ifdef __cplusplus
6307 extern "C" {
6308 #endif
6311 # Now generate the symbol file.
6312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6314 cat <<EOF >> conftest.$ac_ext
6315 #if defined (__STDC__) && __STDC__
6316 # define lt_ptr_t void *
6317 #else
6318 # define lt_ptr_t char *
6319 # define const
6320 #endif
6322 /* The mapping between symbol names and symbols. */
6323 const struct {
6324 const char *name;
6325 lt_ptr_t address;
6327 lt_preloaded_symbols[] =
6330 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6331 cat <<\EOF >> conftest.$ac_ext
6332 {0, (lt_ptr_t) 0}
6335 #ifdef __cplusplus
6337 #endif
6339 # Now try linking the two files.
6340 mv conftest.$ac_objext conftstm.$ac_objext
6341 lt_save_LIBS="$LIBS"
6342 lt_save_CFLAGS="$CFLAGS"
6343 LIBS="conftstm.$ac_objext"
6344 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6346 (eval $ac_link) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6350 pipe_works=yes
6352 LIBS="$lt_save_LIBS"
6353 CFLAGS="$lt_save_CFLAGS"
6354 else
6355 echo "cannot find nm_test_func in $nlist" >&5
6357 else
6358 echo "cannot find nm_test_var in $nlist" >&5
6360 else
6361 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6363 else
6364 echo "$progname: failed program was:" >&5
6365 cat conftest.$ac_ext >&5
6367 rm -f conftest* conftst*
6369 # Do not use the global_symbol_pipe unless it works.
6370 if test "$pipe_works" = yes; then
6371 break
6372 else
6373 lt_cv_sys_global_symbol_pipe=
6375 done
6379 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6380 lt_cv_sys_global_symbol_to_cdecl=
6382 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6383 { echo "$as_me:$LINENO: result: failed" >&5
6384 echo "${ECHO_T}failed" >&6; }
6385 else
6386 { echo "$as_me:$LINENO: result: ok" >&5
6387 echo "${ECHO_T}ok" >&6; }
6390 { echo "$as_me:$LINENO: checking for objdir" >&5
6391 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6392 if test "${lt_cv_objdir+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 rm -f .libs 2>/dev/null
6396 mkdir .libs 2>/dev/null
6397 if test -d .libs; then
6398 lt_cv_objdir=.libs
6399 else
6400 # MS-DOS does not allow filenames that begin with a dot.
6401 lt_cv_objdir=_libs
6403 rmdir .libs 2>/dev/null
6405 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6406 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6407 objdir=$lt_cv_objdir
6413 case $host_os in
6414 aix3*)
6415 # AIX sometimes has problems with the GCC collect2 program. For some
6416 # reason, if we set the COLLECT_NAMES environment variable, the problems
6417 # vanish in a puff of smoke.
6418 if test "X${COLLECT_NAMES+set}" != Xset; then
6419 COLLECT_NAMES=
6420 export COLLECT_NAMES
6423 esac
6425 # Sed substitution that helps us do robust quoting. It backslashifies
6426 # metacharacters that are still active within double-quoted strings.
6427 Xsed='sed -e 1s/^X//'
6428 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6430 # Same as above, but do not quote variable references.
6431 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6433 # Sed substitution to delay expansion of an escaped shell variable in a
6434 # double_quote_subst'ed string.
6435 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6437 # Sed substitution to avoid accidental globbing in evaled expressions
6438 no_glob_subst='s/\*/\\\*/g'
6440 # Constants:
6441 rm="rm -f"
6443 # Global variables:
6444 default_ofile=libtool
6445 can_build_shared=yes
6447 # All known linkers require a `.a' archive for static linking (except MSVC,
6448 # which needs '.lib').
6449 libext=a
6450 ltmain="$ac_aux_dir/ltmain.sh"
6451 ofile="$default_ofile"
6452 with_gnu_ld="$lt_cv_prog_gnu_ld"
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}ar; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_prog_AR+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462 if test -n "$AR"; then
6463 ac_cv_prog_AR="$AR" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_AR="${ac_tool_prefix}ar"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6476 done
6477 done
6478 IFS=$as_save_IFS
6482 AR=$ac_cv_prog_AR
6483 if test -n "$AR"; then
6484 { echo "$as_me:$LINENO: result: $AR" >&5
6485 echo "${ECHO_T}$AR" >&6; }
6486 else
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6493 if test -z "$ac_cv_prog_AR"; then
6494 ac_ct_AR=$AR
6495 # Extract the first word of "ar", so it can be a program name with args.
6496 set dummy ar; ac_word=$2
6497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6499 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502 if test -n "$ac_ct_AR"; then
6503 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_ac_ct_AR="ar"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6516 done
6517 done
6518 IFS=$as_save_IFS
6522 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6523 if test -n "$ac_ct_AR"; then
6524 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6525 echo "${ECHO_T}$ac_ct_AR" >&6; }
6526 else
6527 { echo "$as_me:$LINENO: result: no" >&5
6528 echo "${ECHO_T}no" >&6; }
6531 if test "x$ac_ct_AR" = x; then
6532 AR="false"
6533 else
6534 case $cross_compiling:$ac_tool_warned in
6535 yes:)
6536 { echo "$as_me:$LINENO: 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." >&5
6539 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6540 whose name does not start with the host triplet. If you think this
6541 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544 AR=$ac_ct_AR
6546 else
6547 AR="$ac_cv_prog_AR"
6550 if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555 if test "${ac_cv_prog_RANLIB+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 if test -n "$RANLIB"; then
6559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6572 done
6573 done
6574 IFS=$as_save_IFS
6578 RANLIB=$ac_cv_prog_RANLIB
6579 if test -n "$RANLIB"; then
6580 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6581 echo "${ECHO_T}$RANLIB" >&6; }
6582 else
6583 { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6589 if test -z "$ac_cv_prog_RANLIB"; then
6590 ac_ct_RANLIB=$RANLIB
6591 # Extract the first word of "ranlib", so it can be a program name with args.
6592 set dummy ranlib; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 if test -n "$ac_ct_RANLIB"; then
6599 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_prog_ac_ct_RANLIB="ranlib"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6612 done
6613 done
6614 IFS=$as_save_IFS
6618 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6619 if test -n "$ac_ct_RANLIB"; then
6620 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6621 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6622 else
6623 { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6627 if test "x$ac_ct_RANLIB" = x; then
6628 RANLIB=":"
6629 else
6630 case $cross_compiling:$ac_tool_warned in
6631 yes:)
6632 { echo "$as_me:$LINENO: 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." >&5
6635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6636 whose name does not start with the host triplet. If you think this
6637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640 RANLIB=$ac_ct_RANLIB
6642 else
6643 RANLIB="$ac_cv_prog_RANLIB"
6646 if test -n "$ac_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6648 set dummy ${ac_tool_prefix}strip; ac_word=$2
6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651 if test "${ac_cv_prog_STRIP+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 if test -n "$STRIP"; then
6655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6668 done
6669 done
6670 IFS=$as_save_IFS
6674 STRIP=$ac_cv_prog_STRIP
6675 if test -n "$STRIP"; then
6676 { echo "$as_me:$LINENO: result: $STRIP" >&5
6677 echo "${ECHO_T}$STRIP" >&6; }
6678 else
6679 { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6685 if test -z "$ac_cv_prog_STRIP"; then
6686 ac_ct_STRIP=$STRIP
6687 # Extract the first word of "strip", so it can be a program name with args.
6688 set dummy strip; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 if test -n "$ac_ct_STRIP"; then
6695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_prog_ac_ct_STRIP="strip"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6708 done
6709 done
6710 IFS=$as_save_IFS
6714 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6715 if test -n "$ac_ct_STRIP"; then
6716 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6717 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6718 else
6719 { echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6; }
6723 if test "x$ac_ct_STRIP" = x; then
6724 STRIP=":"
6725 else
6726 case $cross_compiling:$ac_tool_warned in
6727 yes:)
6728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6729 whose name does not start with the host triplet. If you think this
6730 configuration is useful to you, please write to autoconf@gnu.org." >&5
6731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6732 whose name does not start with the host triplet. If you think this
6733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6734 ac_tool_warned=yes ;;
6735 esac
6736 STRIP=$ac_ct_STRIP
6738 else
6739 STRIP="$ac_cv_prog_STRIP"
6743 old_CC="$CC"
6744 old_CFLAGS="$CFLAGS"
6746 # Set sane defaults for various variables
6747 test -z "$AR" && AR=ar
6748 test -z "$AR_FLAGS" && AR_FLAGS=cru
6749 test -z "$AS" && AS=as
6750 test -z "$CC" && CC=cc
6751 test -z "$LTCC" && LTCC=$CC
6752 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6753 test -z "$DLLTOOL" && DLLTOOL=dlltool
6754 test -z "$LD" && LD=ld
6755 test -z "$LN_S" && LN_S="ln -s"
6756 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6757 test -z "$NM" && NM=nm
6758 test -z "$SED" && SED=sed
6759 test -z "$OBJDUMP" && OBJDUMP=objdump
6760 test -z "$RANLIB" && RANLIB=:
6761 test -z "$STRIP" && STRIP=:
6762 test -z "$ac_objext" && ac_objext=o
6764 # Determine commands to create old-style static archives.
6765 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6766 old_postinstall_cmds='chmod 644 $oldlib'
6767 old_postuninstall_cmds=
6769 if test -n "$RANLIB"; then
6770 case $host_os in
6771 openbsd*)
6772 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6775 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6777 esac
6778 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6781 for cc_temp in $compiler""; do
6782 case $cc_temp in
6783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6785 \-*) ;;
6786 *) break;;
6787 esac
6788 done
6789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6792 # Only perform the check for file, if the check method requires it
6793 case $deplibs_check_method in
6794 file_magic*)
6795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6796 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6797 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6798 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801 case $MAGIC_CMD in
6802 [\\/*] | ?:[\\/]*)
6803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6806 lt_save_MAGIC_CMD="$MAGIC_CMD"
6807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6809 for ac_dir in $ac_dummy; do
6810 IFS="$lt_save_ifs"
6811 test -z "$ac_dir" && ac_dir=.
6812 if test -f $ac_dir/${ac_tool_prefix}file; then
6813 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6814 if test -n "$file_magic_test_file"; then
6815 case $deplibs_check_method in
6816 "file_magic "*)
6817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6820 $EGREP "$file_magic_regex" > /dev/null; then
6822 else
6823 cat <<EOF 1>&2
6825 *** Warning: the command libtool uses to detect shared libraries,
6826 *** $file_magic_cmd, produces output that libtool cannot recognize.
6827 *** The result is that libtool may fail to recognize shared libraries
6828 *** as such. This will affect the creation of libtool libraries that
6829 *** depend on shared libraries, but programs linked with such libtool
6830 *** libraries will work regardless of this problem. Nevertheless, you
6831 *** may want to report the problem to your system manager and/or to
6832 *** bug-libtool@gnu.org
6835 fi ;;
6836 esac
6838 break
6840 done
6841 IFS="$lt_save_ifs"
6842 MAGIC_CMD="$lt_save_MAGIC_CMD"
6844 esac
6847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6848 if test -n "$MAGIC_CMD"; then
6849 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6850 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6851 else
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6856 if test -z "$lt_cv_path_MAGIC_CMD"; then
6857 if test -n "$ac_tool_prefix"; then
6858 { echo "$as_me:$LINENO: checking for file" >&5
6859 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6860 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 case $MAGIC_CMD in
6864 [\\/*] | ?:[\\/]*)
6865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6868 lt_save_MAGIC_CMD="$MAGIC_CMD"
6869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6871 for ac_dir in $ac_dummy; do
6872 IFS="$lt_save_ifs"
6873 test -z "$ac_dir" && ac_dir=.
6874 if test -f $ac_dir/file; then
6875 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6876 if test -n "$file_magic_test_file"; then
6877 case $deplibs_check_method in
6878 "file_magic "*)
6879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6882 $EGREP "$file_magic_regex" > /dev/null; then
6884 else
6885 cat <<EOF 1>&2
6887 *** Warning: the command libtool uses to detect shared libraries,
6888 *** $file_magic_cmd, produces output that libtool cannot recognize.
6889 *** The result is that libtool may fail to recognize shared libraries
6890 *** as such. This will affect the creation of libtool libraries that
6891 *** depend on shared libraries, but programs linked with such libtool
6892 *** libraries will work regardless of this problem. Nevertheless, you
6893 *** may want to report the problem to your system manager and/or to
6894 *** bug-libtool@gnu.org
6897 fi ;;
6898 esac
6900 break
6902 done
6903 IFS="$lt_save_ifs"
6904 MAGIC_CMD="$lt_save_MAGIC_CMD"
6906 esac
6909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6910 if test -n "$MAGIC_CMD"; then
6911 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6912 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6913 else
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6918 else
6919 MAGIC_CMD=:
6925 esac
6927 enable_dlopen=no
6928 enable_win32_dll=no
6930 # Check whether --enable-libtool-lock was given.
6931 if test "${enable_libtool_lock+set}" = set; then
6932 enableval=$enable_libtool_lock;
6935 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6938 # Check whether --with-pic was given.
6939 if test "${with_pic+set}" = set; then
6940 withval=$with_pic; pic_mode="$withval"
6941 else
6942 pic_mode=default
6945 test -z "$pic_mode" && pic_mode=default
6947 # Use C for the default configuration in the libtool script
6948 tagname=
6949 lt_save_CC="$CC"
6950 ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6957 # Source file extension for C test sources.
6958 ac_ext=c
6960 # Object file extension for compiled C test sources.
6961 objext=o
6962 objext=$objext
6964 # Code to be used in simple compile tests
6965 lt_simple_compile_test_code="int some_variable = 0;\n"
6967 # Code to be used in simple link tests
6968 lt_simple_link_test_code='int main(){return(0);}\n'
6971 # If no C compiler was specified, use CC.
6972 LTCC=${LTCC-"$CC"}
6974 # If no C compiler flags were specified, use CFLAGS.
6975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6977 # Allow CC to be a program name with arguments.
6978 compiler=$CC
6981 # save warnings/boilerplate of simple test code
6982 ac_outfile=conftest.$ac_objext
6983 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6984 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6985 _lt_compiler_boilerplate=`cat conftest.err`
6986 $rm conftest*
6988 ac_outfile=conftest.$ac_objext
6989 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6990 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6991 _lt_linker_boilerplate=`cat conftest.err`
6992 $rm conftest*
6996 lt_prog_compiler_no_builtin_flag=
6998 if test "$GCC" = yes; then
6999 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7002 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7003 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7004 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 lt_cv_prog_compiler_rtti_exceptions=no
7008 ac_outfile=conftest.$ac_objext
7009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7010 lt_compiler_flag="-fno-rtti -fno-exceptions"
7011 # Insert the option either (1) after the last *FLAGS variable, or
7012 # (2) before a word containing "conftest.", or (3) at the end.
7013 # Note that $ac_compile itself does not contain backslashes and begins
7014 # with a dollar sign (not a hyphen), so the echo should work correctly.
7015 # The option is referenced via a variable to avoid confusing sed.
7016 lt_compile=`echo "$ac_compile" | $SED \
7017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7019 -e 's:$: $lt_compiler_flag:'`
7020 (eval echo "\"\$as_me:7020: $lt_compile\"" >&5)
7021 (eval "$lt_compile" 2>conftest.err)
7022 ac_status=$?
7023 cat conftest.err >&5
7024 echo "$as_me:7024: \$? = $ac_status" >&5
7025 if (exit $ac_status) && test -s "$ac_outfile"; then
7026 # The compiler can only warn and ignore the option if not recognized
7027 # So say no if there are warnings other than the usual output.
7028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7031 lt_cv_prog_compiler_rtti_exceptions=yes
7034 $rm conftest*
7037 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7038 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7040 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7041 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7042 else
7048 lt_prog_compiler_wl=
7049 lt_prog_compiler_pic=
7050 lt_prog_compiler_static=
7052 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7053 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7055 if test "$GCC" = yes; then
7056 lt_prog_compiler_wl='-Wl,'
7057 lt_prog_compiler_static='-static'
7059 case $host_os in
7060 aix*)
7061 # All AIX code is PIC.
7062 if test "$host_cpu" = ia64; then
7063 # AIX 5 now supports IA64 processor
7064 lt_prog_compiler_static='-Bstatic'
7068 amigaos*)
7069 # FIXME: we need at least 68020 code to build shared libraries, but
7070 # adding the `-m68020' flag to GCC prevents building anything better,
7071 # like `-m68040'.
7072 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7075 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7076 # PIC is the default for these OSes.
7079 mingw* | pw32* | os2*)
7080 # This hack is so that the source file can tell whether it is being
7081 # built for inclusion in a dll (and should export symbols for example).
7082 lt_prog_compiler_pic='-DDLL_EXPORT'
7085 darwin* | rhapsody*)
7086 # PIC is the default on this platform
7087 # Common symbols not allowed in MH_DYLIB files
7088 lt_prog_compiler_pic='-fno-common'
7091 interix3*)
7092 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7093 # Instead, we relocate shared libraries at runtime.
7096 msdosdjgpp*)
7097 # Just because we use GCC doesn't mean we suddenly get shared libraries
7098 # on systems that don't support them.
7099 lt_prog_compiler_can_build_shared=no
7100 enable_shared=no
7103 sysv4*MP*)
7104 if test -d /usr/nec; then
7105 lt_prog_compiler_pic=-Kconform_pic
7109 hpux*)
7110 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7111 # not for PA HP-UX.
7112 case $host_cpu in
7113 hppa*64*|ia64*)
7114 # +Z the default
7117 lt_prog_compiler_pic='-fPIC'
7119 esac
7123 lt_prog_compiler_pic='-fPIC'
7125 esac
7126 else
7127 # PORTME Check for flag to pass linker flags through the system compiler.
7128 case $host_os in
7129 aix*)
7130 lt_prog_compiler_wl='-Wl,'
7131 if test "$host_cpu" = ia64; then
7132 # AIX 5 now supports IA64 processor
7133 lt_prog_compiler_static='-Bstatic'
7134 else
7135 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7138 darwin*)
7139 # PIC is the default on this platform
7140 # Common symbols not allowed in MH_DYLIB files
7141 case $cc_basename in
7142 xlc*)
7143 lt_prog_compiler_pic='-qnocommon'
7144 lt_prog_compiler_wl='-Wl,'
7146 esac
7149 mingw* | pw32* | os2*)
7150 # This hack is so that the source file can tell whether it is being
7151 # built for inclusion in a dll (and should export symbols for example).
7152 lt_prog_compiler_pic='-DDLL_EXPORT'
7155 hpux9* | hpux10* | hpux11*)
7156 lt_prog_compiler_wl='-Wl,'
7157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7158 # not for PA HP-UX.
7159 case $host_cpu in
7160 hppa*64*|ia64*)
7161 # +Z the default
7164 lt_prog_compiler_pic='+Z'
7166 esac
7167 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7168 lt_prog_compiler_static='${wl}-a ${wl}archive'
7171 irix5* | irix6* | nonstopux*)
7172 lt_prog_compiler_wl='-Wl,'
7173 # PIC (with -KPIC) is the default.
7174 lt_prog_compiler_static='-non_shared'
7177 newsos6)
7178 lt_prog_compiler_pic='-KPIC'
7179 lt_prog_compiler_static='-Bstatic'
7182 linux*)
7183 case $cc_basename in
7184 icc* | ecc*)
7185 lt_prog_compiler_wl='-Wl,'
7186 lt_prog_compiler_pic='-KPIC'
7187 lt_prog_compiler_static='-static'
7189 pgcc* | pgf77* | pgf90* | pgf95*)
7190 # Portland Group compilers (*not* the Pentium gcc compiler,
7191 # which looks to be a dead project)
7192 lt_prog_compiler_wl='-Wl,'
7193 lt_prog_compiler_pic='-fpic'
7194 lt_prog_compiler_static='-Bstatic'
7196 ccc*)
7197 lt_prog_compiler_wl='-Wl,'
7198 # All Alpha code is PIC.
7199 lt_prog_compiler_static='-non_shared'
7201 esac
7204 osf3* | osf4* | osf5*)
7205 lt_prog_compiler_wl='-Wl,'
7206 # All OSF/1 code is PIC.
7207 lt_prog_compiler_static='-non_shared'
7210 solaris*)
7211 lt_prog_compiler_pic='-KPIC'
7212 lt_prog_compiler_static='-Bstatic'
7213 case $cc_basename in
7214 f77* | f90* | f95*)
7215 lt_prog_compiler_wl='-Qoption ld ';;
7217 lt_prog_compiler_wl='-Wl,';;
7218 esac
7221 sunos4*)
7222 lt_prog_compiler_wl='-Qoption ld '
7223 lt_prog_compiler_pic='-PIC'
7224 lt_prog_compiler_static='-Bstatic'
7227 sysv4 | sysv4.2uw2* | sysv4.3*)
7228 lt_prog_compiler_wl='-Wl,'
7229 lt_prog_compiler_pic='-KPIC'
7230 lt_prog_compiler_static='-Bstatic'
7233 sysv4*MP*)
7234 if test -d /usr/nec ;then
7235 lt_prog_compiler_pic='-Kconform_pic'
7236 lt_prog_compiler_static='-Bstatic'
7240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7241 lt_prog_compiler_wl='-Wl,'
7242 lt_prog_compiler_pic='-KPIC'
7243 lt_prog_compiler_static='-Bstatic'
7246 unicos*)
7247 lt_prog_compiler_wl='-Wl,'
7248 lt_prog_compiler_can_build_shared=no
7251 uts4*)
7252 lt_prog_compiler_pic='-pic'
7253 lt_prog_compiler_static='-Bstatic'
7257 lt_prog_compiler_can_build_shared=no
7259 esac
7262 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7263 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7266 # Check to make sure the PIC flag actually works.
7268 if test -n "$lt_prog_compiler_pic"; then
7270 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7271 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7272 if test "${lt_prog_compiler_pic_works+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275 lt_prog_compiler_pic_works=no
7276 ac_outfile=conftest.$ac_objext
7277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7278 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7279 # Insert the option either (1) after the last *FLAGS variable, or
7280 # (2) before a word containing "conftest.", or (3) at the end.
7281 # Note that $ac_compile itself does not contain backslashes and begins
7282 # with a dollar sign (not a hyphen), so the echo should work correctly.
7283 # The option is referenced via a variable to avoid confusing sed.
7284 lt_compile=`echo "$ac_compile" | $SED \
7285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7287 -e 's:$: $lt_compiler_flag:'`
7288 (eval echo "\"\$as_me:7288: $lt_compile\"" >&5)
7289 (eval "$lt_compile" 2>conftest.err)
7290 ac_status=$?
7291 cat conftest.err >&5
7292 echo "$as_me:7292: \$? = $ac_status" >&5
7293 if (exit $ac_status) && test -s "$ac_outfile"; then
7294 # The compiler can only warn and ignore the option if not recognized
7295 # So say no if there are warnings other than the usual output.
7296 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7299 lt_prog_compiler_pic_works=yes
7302 $rm conftest*
7305 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7306 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7308 if test x"$lt_prog_compiler_pic_works" = xyes; then
7309 case $lt_prog_compiler_pic in
7310 "" | " "*) ;;
7311 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7312 esac
7313 else
7314 lt_prog_compiler_pic=
7315 lt_prog_compiler_can_build_shared=no
7319 case $host_os in
7320 # For platforms which do not support PIC, -DPIC is meaningless:
7321 *djgpp*)
7322 lt_prog_compiler_pic=
7325 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7327 esac
7330 # Check to make sure the static flag actually works.
7332 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7333 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7334 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7335 if test "${lt_prog_compiler_static_works+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 lt_prog_compiler_static_works=no
7339 save_LDFLAGS="$LDFLAGS"
7340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7341 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7343 # The linker can only warn and ignore the option if not recognized
7344 # So say no if there are warnings
7345 if test -s conftest.err; then
7346 # Append any errors to the config.log.
7347 cat conftest.err 1>&5
7348 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7350 if diff conftest.exp conftest.er2 >/dev/null; then
7351 lt_prog_compiler_static_works=yes
7353 else
7354 lt_prog_compiler_static_works=yes
7357 $rm conftest*
7358 LDFLAGS="$save_LDFLAGS"
7361 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7362 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7364 if test x"$lt_prog_compiler_static_works" = xyes; then
7366 else
7367 lt_prog_compiler_static=
7371 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7372 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7373 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 lt_cv_prog_compiler_c_o=no
7377 $rm -r conftest 2>/dev/null
7378 mkdir conftest
7379 cd conftest
7380 mkdir out
7381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7383 lt_compiler_flag="-o out/conftest2.$ac_objext"
7384 # Insert the option either (1) after the last *FLAGS variable, or
7385 # (2) before a word containing "conftest.", or (3) at the end.
7386 # Note that $ac_compile itself does not contain backslashes and begins
7387 # with a dollar sign (not a hyphen), so the echo should work correctly.
7388 lt_compile=`echo "$ac_compile" | $SED \
7389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7391 -e 's:$: $lt_compiler_flag:'`
7392 (eval echo "\"\$as_me:7392: $lt_compile\"" >&5)
7393 (eval "$lt_compile" 2>out/conftest.err)
7394 ac_status=$?
7395 cat out/conftest.err >&5
7396 echo "$as_me:7396: \$? = $ac_status" >&5
7397 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7398 then
7399 # The compiler can only warn and ignore the option if not recognized
7400 # So say no if there are warnings
7401 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7402 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7403 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7404 lt_cv_prog_compiler_c_o=yes
7407 chmod u+w . 2>&5
7408 $rm conftest*
7409 # SGI C++ compiler will create directory out/ii_files/ for
7410 # template instantiation
7411 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7412 $rm out/* && rmdir out
7413 cd ..
7414 rmdir conftest
7415 $rm conftest*
7418 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7419 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7422 hard_links="nottested"
7423 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7424 # do not overwrite the value of need_locks provided by the user
7425 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7426 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7427 hard_links=yes
7428 $rm conftest*
7429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7430 touch conftest.a
7431 ln conftest.a conftest.b 2>&5 || hard_links=no
7432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7433 { echo "$as_me:$LINENO: result: $hard_links" >&5
7434 echo "${ECHO_T}$hard_links" >&6; }
7435 if test "$hard_links" = no; then
7436 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7437 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7438 need_locks=warn
7440 else
7441 need_locks=no
7444 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7445 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7447 runpath_var=
7448 allow_undefined_flag=
7449 enable_shared_with_static_runtimes=no
7450 archive_cmds=
7451 archive_expsym_cmds=
7452 old_archive_From_new_cmds=
7453 old_archive_from_expsyms_cmds=
7454 export_dynamic_flag_spec=
7455 whole_archive_flag_spec=
7456 thread_safe_flag_spec=
7457 hardcode_libdir_flag_spec=
7458 hardcode_libdir_flag_spec_ld=
7459 hardcode_libdir_separator=
7460 hardcode_direct=no
7461 hardcode_minus_L=no
7462 hardcode_shlibpath_var=unsupported
7463 link_all_deplibs=unknown
7464 hardcode_automatic=no
7465 module_cmds=
7466 module_expsym_cmds=
7467 always_export_symbols=no
7468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7469 # include_expsyms should be a list of space-separated symbols to be *always*
7470 # included in the symbol list
7471 include_expsyms=
7472 # exclude_expsyms can be an extended regexp of symbols to exclude
7473 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7474 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7475 # as well as any symbol that contains `d'.
7476 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7477 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7478 # platforms (ab)use it in PIC code, but their linkers get confused if
7479 # the symbol is explicitly referenced. Since portable code cannot
7480 # rely on this symbol name, it's probably fine to never include it in
7481 # preloaded symbol tables.
7482 extract_expsyms_cmds=
7483 # Just being paranoid about ensuring that cc_basename is set.
7484 for cc_temp in $compiler""; do
7485 case $cc_temp in
7486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7488 \-*) ;;
7489 *) break;;
7490 esac
7491 done
7492 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7494 case $host_os in
7495 cygwin* | mingw* | pw32*)
7496 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7497 # When not using gcc, we currently assume that we are using
7498 # Microsoft Visual C++.
7499 if test "$GCC" != yes; then
7500 with_gnu_ld=no
7503 interix*)
7504 # we just hope/assume this is gcc and not c89 (= MSVC++)
7505 with_gnu_ld=yes
7507 openbsd*)
7508 with_gnu_ld=no
7510 esac
7512 ld_shlibs=yes
7513 if test "$with_gnu_ld" = yes; then
7514 # If archive_cmds runs LD, not CC, wlarc should be empty
7515 wlarc='${wl}'
7517 # Set some defaults for GNU ld with shared library support. These
7518 # are reset later if shared libraries are not supported. Putting them
7519 # here allows them to be overridden if necessary.
7520 runpath_var=LD_RUN_PATH
7521 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7522 export_dynamic_flag_spec='${wl}--export-dynamic'
7523 # ancient GNU ld didn't support --whole-archive et. al.
7524 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7525 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7526 else
7527 whole_archive_flag_spec=
7529 supports_anon_versioning=no
7530 case `$LD -v 2>/dev/null` in
7531 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7532 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7533 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7534 *\ 2.11.*) ;; # other 2.11 versions
7535 *) supports_anon_versioning=yes ;;
7536 esac
7538 # See if GNU ld supports shared libraries.
7539 case $host_os in
7540 aix3* | aix4* | aix5*)
7541 # On AIX/PPC, the GNU linker is very broken
7542 if test "$host_cpu" != ia64; then
7543 ld_shlibs=no
7544 cat <<EOF 1>&2
7546 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7547 *** to be unable to reliably create shared libraries on AIX.
7548 *** Therefore, libtool is disabling shared libraries support. If you
7549 *** really care for shared libraries, you may want to modify your PATH
7550 *** so that a non-GNU linker is found, and then restart.
7556 amigaos*)
7557 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)'
7558 hardcode_libdir_flag_spec='-L$libdir'
7559 hardcode_minus_L=yes
7561 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7562 # that the semantics of dynamic libraries on AmigaOS, at least up
7563 # to version 4, is to share data among multiple programs linked
7564 # with the same dynamic library. Since this doesn't match the
7565 # behavior of shared libraries on other platforms, we can't use
7566 # them.
7567 ld_shlibs=no
7570 beos*)
7571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7572 allow_undefined_flag=unsupported
7573 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7574 # support --undefined. This deserves some investigation. FIXME
7575 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7576 else
7577 ld_shlibs=no
7581 cygwin* | mingw* | pw32*)
7582 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7583 # as there is no search path for DLLs.
7584 hardcode_libdir_flag_spec='-L$libdir'
7585 allow_undefined_flag=unsupported
7586 always_export_symbols=no
7587 enable_shared_with_static_runtimes=yes
7588 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7590 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7592 # If the export-symbols file already is a .def file (1st line
7593 # is EXPORTS), use it as is; otherwise, prepend...
7594 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7595 cp $export_symbols $output_objdir/$soname.def;
7596 else
7597 echo EXPORTS > $output_objdir/$soname.def;
7598 cat $export_symbols >> $output_objdir/$soname.def;
7600 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7601 else
7602 ld_shlibs=no
7606 interix3*)
7607 hardcode_direct=no
7608 hardcode_shlibpath_var=no
7609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7610 export_dynamic_flag_spec='${wl}-E'
7611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7612 # Instead, shared libraries are loaded at an image base (0x10000000 by
7613 # default) and relocated if they conflict, which is a slow very memory
7614 # consuming and fragmenting process. To avoid this, we pick a random,
7615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7618 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7621 linux*)
7622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7623 tmp_addflag=
7624 case $cc_basename,$host_cpu in
7625 pgcc*) # Portland Group C compiler
7626 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7627 tmp_addflag=' $pic_flag'
7629 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7630 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7631 tmp_addflag=' $pic_flag -Mnomain' ;;
7632 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7633 tmp_addflag=' -i_dynamic' ;;
7634 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7635 tmp_addflag=' -i_dynamic -nofor_main' ;;
7636 ifc* | ifort*) # Intel Fortran compiler
7637 tmp_addflag=' -nofor_main' ;;
7638 esac
7639 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7641 if test $supports_anon_versioning = yes; then
7642 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7643 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7644 $echo "local: *; };" >> $output_objdir/$libname.ver~
7645 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7647 else
7648 ld_shlibs=no
7652 netbsd*)
7653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7654 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7655 wlarc=
7656 else
7657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7662 solaris*)
7663 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7664 ld_shlibs=no
7665 cat <<EOF 1>&2
7667 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7668 *** create shared libraries on Solaris systems. Therefore, libtool
7669 *** is disabling shared libraries support. We urge you to upgrade GNU
7670 *** binutils to release 2.9.1 or newer. Another option is to modify
7671 *** your PATH or compiler configuration so that the native linker is
7672 *** used, and then restart.
7675 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7678 else
7679 ld_shlibs=no
7683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7684 case `$LD -v 2>&1` in
7685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7686 ld_shlibs=no
7687 cat <<_LT_EOF 1>&2
7689 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7690 *** reliably create shared libraries on SCO systems. Therefore, libtool
7691 *** is disabling shared libraries support. We urge you to upgrade GNU
7692 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7693 *** your PATH or compiler configuration so that the native linker is
7694 *** used, and then restart.
7696 _LT_EOF
7699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7700 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7703 else
7704 ld_shlibs=no
7707 esac
7710 sunos4*)
7711 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7712 wlarc=
7713 hardcode_direct=yes
7714 hardcode_shlibpath_var=no
7718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7721 else
7722 ld_shlibs=no
7725 esac
7727 if test "$ld_shlibs" = no; then
7728 runpath_var=
7729 hardcode_libdir_flag_spec=
7730 export_dynamic_flag_spec=
7731 whole_archive_flag_spec=
7733 else
7734 # PORTME fill in a description of your system's linker (not GNU ld)
7735 case $host_os in
7736 aix3*)
7737 allow_undefined_flag=unsupported
7738 always_export_symbols=yes
7739 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'
7740 # Note: this linker hardcodes the directories in LIBPATH if there
7741 # are no directories specified by -L.
7742 hardcode_minus_L=yes
7743 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7744 # Neither direct hardcoding nor static linking is supported with a
7745 # broken collect2.
7746 hardcode_direct=unsupported
7750 aix4* | aix5*)
7751 if test "$host_cpu" = ia64; then
7752 # On IA64, the linker does run time linking by default, so we don't
7753 # have to do anything special.
7754 aix_use_runtimelinking=no
7755 exp_sym_flag='-Bexport'
7756 no_entry_flag=""
7757 else
7758 # If we're using GNU nm, then we don't want the "-C" option.
7759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7760 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7761 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'
7762 else
7763 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'
7765 aix_use_runtimelinking=no
7767 # Test if we are trying to use run time linking or normal
7768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7769 # need to do runtime linking.
7770 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7771 for ld_flag in $LDFLAGS; do
7772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7773 aix_use_runtimelinking=yes
7774 break
7776 done
7778 esac
7780 exp_sym_flag='-bexport'
7781 no_entry_flag='-bnoentry'
7784 # When large executables or shared objects are built, AIX ld can
7785 # have problems creating the table of contents. If linking a library
7786 # or program results in "error TOC overflow" add -mminimal-toc to
7787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7790 archive_cmds=''
7791 hardcode_direct=yes
7792 hardcode_libdir_separator=':'
7793 link_all_deplibs=yes
7795 if test "$GCC" = yes; then
7796 case $host_os in aix4.[012]|aix4.[012].*)
7797 # We only want to do this on AIX 4.2 and lower, the check
7798 # below for broken collect2 doesn't work under 4.3+
7799 collect2name=`${CC} -print-prog-name=collect2`
7800 if test -f "$collect2name" && \
7801 strings "$collect2name" | grep resolve_lib_name >/dev/null
7802 then
7803 # We have reworked collect2
7804 hardcode_direct=yes
7805 else
7806 # We have old collect2
7807 hardcode_direct=unsupported
7808 # It fails to find uninstalled libraries when the uninstalled
7809 # path is not listed in the libpath. Setting hardcode_minus_L
7810 # to unsupported forces relinking
7811 hardcode_minus_L=yes
7812 hardcode_libdir_flag_spec='-L$libdir'
7813 hardcode_libdir_separator=
7816 esac
7817 shared_flag='-shared'
7818 if test "$aix_use_runtimelinking" = yes; then
7819 shared_flag="$shared_flag "'${wl}-G'
7821 else
7822 # not using gcc
7823 if test "$host_cpu" = ia64; then
7824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7825 # chokes on -Wl,-G. The following line is correct:
7826 shared_flag='-G'
7827 else
7828 if test "$aix_use_runtimelinking" = yes; then
7829 shared_flag='${wl}-G'
7830 else
7831 shared_flag='${wl}-bM:SRE'
7836 # It seems that -bexpall does not export symbols beginning with
7837 # underscore (_), so it is better to generate a list of symbols to export.
7838 always_export_symbols=yes
7839 if test "$aix_use_runtimelinking" = yes; then
7840 # Warning - without using the other runtime loading flags (-brtl),
7841 # -berok will link without error, but may produce a broken library.
7842 allow_undefined_flag='-berok'
7843 # Determine the default libpath from the value encoded in an empty executable.
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7852 main ()
7856 return 0;
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest$ac_exeext &&
7876 $as_test_x conftest$ac_exeext; then
7878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7880 # Check for a 64-bit object if we didn't find anything.
7881 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; }
7882 }'`; fi
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7891 conftest$ac_exeext conftest.$ac_ext
7892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7894 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7895 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7896 else
7897 if test "$host_cpu" = ia64; then
7898 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7899 allow_undefined_flag="-z nodefs"
7900 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7901 else
7902 # Determine the default libpath from the value encoded in an empty executable.
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7911 main ()
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (ac_try="$ac_link"
7920 case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923 esac
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_link") 2>conftest.er1
7926 ac_status=$?
7927 grep -v '^ *+' conftest.er1 >conftest.err
7928 rm -f conftest.er1
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && {
7932 test -z "$ac_c_werror_flag" ||
7933 test ! -s conftest.err
7934 } && test -s conftest$ac_exeext &&
7935 $as_test_x conftest$ac_exeext; then
7937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7939 # Check for a 64-bit object if we didn't find anything.
7940 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; }
7941 }'`; fi
7942 else
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7950 conftest$ac_exeext conftest.$ac_ext
7951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7954 # Warning - without using the other run time loading flags,
7955 # -berok will link without error, but may produce a broken library.
7956 no_undefined_flag=' ${wl}-bernotok'
7957 allow_undefined_flag=' ${wl}-berok'
7958 # Exported symbols can be pulled into shared objects from archives
7959 whole_archive_flag_spec='$convenience'
7960 archive_cmds_need_lc=yes
7961 # This is similar to how AIX traditionally builds its shared libraries.
7962 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7967 amigaos*)
7968 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)'
7969 hardcode_libdir_flag_spec='-L$libdir'
7970 hardcode_minus_L=yes
7971 # see comment about different semantics on the GNU ld section
7972 ld_shlibs=no
7975 bsdi[45]*)
7976 export_dynamic_flag_spec=-rdynamic
7979 cygwin* | mingw* | pw32*)
7980 # When not using gcc, we currently assume that we are using
7981 # Microsoft Visual C++.
7982 # hardcode_libdir_flag_spec is actually meaningless, as there is
7983 # no search path for DLLs.
7984 hardcode_libdir_flag_spec=' '
7985 allow_undefined_flag=unsupported
7986 # Tell ltmain to make .lib files, not .a files.
7987 libext=lib
7988 # Tell ltmain to make .dll files, not .so files.
7989 shrext_cmds=".dll"
7990 # FIXME: Setting linknames here is a bad hack.
7991 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7992 # The linker will automatically build a .lib file if we build a DLL.
7993 old_archive_From_new_cmds='true'
7994 # FIXME: Should let the user specify the lib program.
7995 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7996 fix_srcfile_path='`cygpath -w "$srcfile"`'
7997 enable_shared_with_static_runtimes=yes
8000 darwin* | rhapsody*)
8001 case $host_os in
8002 rhapsody* | darwin1.[012])
8003 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8005 *) # Darwin 1.3 on
8006 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8007 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8008 else
8009 case ${MACOSX_DEPLOYMENT_TARGET} in
8010 10.[012])
8011 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8013 10.*)
8014 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8016 esac
8019 esac
8020 archive_cmds_need_lc=no
8021 hardcode_direct=no
8022 hardcode_automatic=yes
8023 hardcode_shlibpath_var=unsupported
8024 whole_archive_flag_spec=''
8025 link_all_deplibs=yes
8026 if test "$GCC" = yes ; then
8027 output_verbose_link_cmd='echo'
8028 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8029 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8030 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8031 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}'
8032 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}'
8033 else
8034 case $cc_basename in
8035 xlc*)
8036 output_verbose_link_cmd='echo'
8037 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8038 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8040 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8041 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}'
8044 ld_shlibs=no
8046 esac
8050 dgux*)
8051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8052 hardcode_libdir_flag_spec='-L$libdir'
8053 hardcode_shlibpath_var=no
8056 freebsd1*)
8057 ld_shlibs=no
8060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8061 # support. Future versions do this automatically, but an explicit c++rt0.o
8062 # does not break anything, and helps significantly (at the cost of a little
8063 # extra space).
8064 freebsd2.2*)
8065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8066 hardcode_libdir_flag_spec='-R$libdir'
8067 hardcode_direct=yes
8068 hardcode_shlibpath_var=no
8071 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8072 freebsd2*)
8073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8074 hardcode_direct=yes
8075 hardcode_minus_L=yes
8076 hardcode_shlibpath_var=no
8079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8080 freebsd* | kfreebsd*-gnu | dragonfly*)
8081 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8082 hardcode_libdir_flag_spec='-R$libdir'
8083 hardcode_direct=yes
8084 hardcode_shlibpath_var=no
8087 hpux9*)
8088 if test "$GCC" = yes; then
8089 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'
8090 else
8091 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'
8093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8094 hardcode_libdir_separator=:
8095 hardcode_direct=yes
8097 # hardcode_minus_L: Not really in the search PATH,
8098 # but as the default location of the library.
8099 hardcode_minus_L=yes
8100 export_dynamic_flag_spec='${wl}-E'
8103 hpux10*)
8104 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8105 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8106 else
8107 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8109 if test "$with_gnu_ld" = no; then
8110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8111 hardcode_libdir_separator=:
8113 hardcode_direct=yes
8114 export_dynamic_flag_spec='${wl}-E'
8116 # hardcode_minus_L: Not really in the search PATH,
8117 # but as the default location of the library.
8118 hardcode_minus_L=yes
8122 hpux11*)
8123 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8124 case $host_cpu in
8125 hppa*64*)
8126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8128 ia64*)
8129 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8132 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8134 esac
8135 else
8136 case $host_cpu in
8137 hppa*64*)
8138 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8140 ia64*)
8141 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8144 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8146 esac
8148 if test "$with_gnu_ld" = no; then
8149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8150 hardcode_libdir_separator=:
8152 case $host_cpu in
8153 hppa*64*|ia64*)
8154 hardcode_libdir_flag_spec_ld='+b $libdir'
8155 hardcode_direct=no
8156 hardcode_shlibpath_var=no
8159 hardcode_direct=yes
8160 export_dynamic_flag_spec='${wl}-E'
8162 # hardcode_minus_L: Not really in the search PATH,
8163 # but as the default location of the library.
8164 hardcode_minus_L=yes
8166 esac
8170 irix5* | irix6* | nonstopux*)
8171 if test "$GCC" = yes; then
8172 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'
8173 else
8174 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'
8175 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8178 hardcode_libdir_separator=:
8179 link_all_deplibs=yes
8182 netbsd*)
8183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8185 else
8186 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8188 hardcode_libdir_flag_spec='-R$libdir'
8189 hardcode_direct=yes
8190 hardcode_shlibpath_var=no
8193 newsos6)
8194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_direct=yes
8196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8197 hardcode_libdir_separator=:
8198 hardcode_shlibpath_var=no
8201 openbsd*)
8202 hardcode_direct=yes
8203 hardcode_shlibpath_var=no
8204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8206 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8207 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8208 export_dynamic_flag_spec='${wl}-E'
8209 else
8210 case $host_os in
8211 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8213 hardcode_libdir_flag_spec='-R$libdir'
8216 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8219 esac
8223 os2*)
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 hardcode_minus_L=yes
8226 allow_undefined_flag=unsupported
8227 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'
8228 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8231 osf3*)
8232 if test "$GCC" = yes; then
8233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8234 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'
8235 else
8236 allow_undefined_flag=' -expect_unresolved \*'
8237 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'
8239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8240 hardcode_libdir_separator=:
8243 osf4* | osf5*) # as osf3* with the addition of -msym flag
8244 if test "$GCC" = yes; then
8245 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8246 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'
8247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8248 else
8249 allow_undefined_flag=' -expect_unresolved \*'
8250 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'
8251 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8252 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8254 # Both c and cxx compiler support -rpath directly
8255 hardcode_libdir_flag_spec='-rpath $libdir'
8257 hardcode_libdir_separator=:
8260 solaris*)
8261 no_undefined_flag=' -z text'
8262 if test "$GCC" = yes; then
8263 wlarc='${wl}'
8264 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8265 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8266 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8267 else
8268 wlarc=''
8269 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8270 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8271 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8273 hardcode_libdir_flag_spec='-R$libdir'
8274 hardcode_shlibpath_var=no
8275 case $host_os in
8276 solaris2.[0-5] | solaris2.[0-5].*) ;;
8278 # The compiler driver will combine linker options so we
8279 # cannot just pass the convience library names through
8280 # without $wl, iff we do not link with $LD.
8281 # Luckily, gcc supports the same syntax we need for Sun Studio.
8282 # Supported since Solaris 2.6 (maybe 2.5.1?)
8283 case $wlarc in
8285 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8287 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8288 esac ;;
8289 esac
8290 link_all_deplibs=yes
8293 sunos4*)
8294 if test "x$host_vendor" = xsequent; then
8295 # Use $CC to link under sequent, because it throws in some extra .o
8296 # files that make .init and .fini sections work.
8297 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8298 else
8299 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8301 hardcode_libdir_flag_spec='-L$libdir'
8302 hardcode_direct=yes
8303 hardcode_minus_L=yes
8304 hardcode_shlibpath_var=no
8307 sysv4)
8308 case $host_vendor in
8309 sni)
8310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8311 hardcode_direct=yes # is this really true???
8313 siemens)
8314 ## LD is ld it makes a PLAMLIB
8315 ## CC just makes a GrossModule.
8316 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8317 reload_cmds='$CC -r -o $output$reload_objs'
8318 hardcode_direct=no
8320 motorola)
8321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8322 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8324 esac
8325 runpath_var='LD_RUN_PATH'
8326 hardcode_shlibpath_var=no
8329 sysv4.3*)
8330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8331 hardcode_shlibpath_var=no
8332 export_dynamic_flag_spec='-Bexport'
8335 sysv4*MP*)
8336 if test -d /usr/nec; then
8337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338 hardcode_shlibpath_var=no
8339 runpath_var=LD_RUN_PATH
8340 hardcode_runpath_var=yes
8341 ld_shlibs=yes
8345 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8346 no_undefined_flag='${wl}-z,text'
8347 archive_cmds_need_lc=no
8348 hardcode_shlibpath_var=no
8349 runpath_var='LD_RUN_PATH'
8351 if test "$GCC" = yes; then
8352 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8354 else
8355 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8356 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8360 sysv5* | sco3.2v5* | sco5v6*)
8361 # Note: We can NOT use -z defs as we might desire, because we do not
8362 # link with -lc, and that would cause any symbols used from libc to
8363 # always be unresolved, which means just about no library would
8364 # ever link correctly. If we're not using GNU ld we use -z text
8365 # though, which does catch some bad symbols but isn't as heavy-handed
8366 # as -z defs.
8367 no_undefined_flag='${wl}-z,text'
8368 allow_undefined_flag='${wl}-z,nodefs'
8369 archive_cmds_need_lc=no
8370 hardcode_shlibpath_var=no
8371 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8372 hardcode_libdir_separator=':'
8373 link_all_deplibs=yes
8374 export_dynamic_flag_spec='${wl}-Bexport'
8375 runpath_var='LD_RUN_PATH'
8377 if test "$GCC" = yes; then
8378 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8379 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8380 else
8381 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8382 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8386 uts4*)
8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388 hardcode_libdir_flag_spec='-L$libdir'
8389 hardcode_shlibpath_var=no
8393 ld_shlibs=no
8395 esac
8398 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8399 echo "${ECHO_T}$ld_shlibs" >&6; }
8400 test "$ld_shlibs" = no && can_build_shared=no
8403 # Do we need to explicitly link libc?
8405 case "x$archive_cmds_need_lc" in
8406 x|xyes)
8407 # Assume -lc should be added
8408 archive_cmds_need_lc=yes
8410 if test "$enable_shared" = yes && test "$GCC" = yes; then
8411 case $archive_cmds in
8412 *'~'*)
8413 # FIXME: we may have to deal with multi-command sequences.
8415 '$CC '*)
8416 # Test whether the compiler implicitly links with -lc since on some
8417 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8418 # to ld, don't add -lc before -lgcc.
8419 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8420 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8421 $rm conftest*
8422 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } 2>conftest.err; then
8429 soname=conftest
8430 lib=conftest
8431 libobjs=conftest.$ac_objext
8432 deplibs=
8433 wl=$lt_prog_compiler_wl
8434 pic_flag=$lt_prog_compiler_pic
8435 compiler_flags=-v
8436 linker_flags=-v
8437 verstring=
8438 output_objdir=.
8439 libname=conftest
8440 lt_save_allow_undefined_flag=$allow_undefined_flag
8441 allow_undefined_flag=
8442 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8443 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }
8447 then
8448 archive_cmds_need_lc=no
8449 else
8450 archive_cmds_need_lc=yes
8452 allow_undefined_flag=$lt_save_allow_undefined_flag
8453 else
8454 cat conftest.err 1>&5
8456 $rm conftest*
8457 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8458 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8460 esac
8463 esac
8465 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8466 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8467 library_names_spec=
8468 libname_spec='lib$name'
8469 soname_spec=
8470 shrext_cmds=".so"
8471 postinstall_cmds=
8472 postuninstall_cmds=
8473 finish_cmds=
8474 finish_eval=
8475 shlibpath_var=
8476 shlibpath_overrides_runpath=unknown
8477 version_type=none
8478 dynamic_linker="$host_os ld.so"
8479 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8480 if test "$GCC" = yes; then
8481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8482 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8483 # if the path contains ";" then we assume it to be the separator
8484 # otherwise default to the standard path separator (i.e. ":") - it is
8485 # assumed that no part of a normal pathname contains ";" but that should
8486 # okay in the real world where ";" in dirpaths is itself problematic.
8487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8488 else
8489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8491 else
8492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8494 need_lib_prefix=unknown
8495 hardcode_into_libs=no
8497 # when you set need_version to no, make sure it does not cause -set_version
8498 # flags to be left without arguments
8499 need_version=unknown
8501 case $host_os in
8502 aix3*)
8503 version_type=linux
8504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8505 shlibpath_var=LIBPATH
8507 # AIX 3 has no versioning support, so we append a major version to the name.
8508 soname_spec='${libname}${release}${shared_ext}$major'
8511 aix4* | aix5*)
8512 version_type=linux
8513 need_lib_prefix=no
8514 need_version=no
8515 hardcode_into_libs=yes
8516 if test "$host_cpu" = ia64; then
8517 # AIX 5 supports IA64
8518 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8519 shlibpath_var=LD_LIBRARY_PATH
8520 else
8521 # With GCC up to 2.95.x, collect2 would create an import file
8522 # for dependence libraries. The import file would start with
8523 # the line `#! .'. This would cause the generated library to
8524 # depend on `.', always an invalid library. This was fixed in
8525 # development snapshots of GCC prior to 3.0.
8526 case $host_os in
8527 aix4 | aix4.[01] | aix4.[01].*)
8528 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8529 echo ' yes '
8530 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8532 else
8533 can_build_shared=no
8536 esac
8537 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8538 # soname into executable. Probably we can add versioning support to
8539 # collect2, so additional links can be useful in future.
8540 if test "$aix_use_runtimelinking" = yes; then
8541 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8542 # instead of lib<name>.a to let people know that these are not
8543 # typical AIX shared libraries.
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8545 else
8546 # We preserve .a as extension for shared libraries through AIX4.2
8547 # and later when we are not doing run time linking.
8548 library_names_spec='${libname}${release}.a $libname.a'
8549 soname_spec='${libname}${release}${shared_ext}$major'
8551 shlibpath_var=LIBPATH
8555 amigaos*)
8556 library_names_spec='$libname.ixlibrary $libname.a'
8557 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8558 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'
8561 beos*)
8562 library_names_spec='${libname}${shared_ext}'
8563 dynamic_linker="$host_os ld.so"
8564 shlibpath_var=LIBRARY_PATH
8567 bsdi[45]*)
8568 version_type=linux
8569 need_version=no
8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8571 soname_spec='${libname}${release}${shared_ext}$major'
8572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8573 shlibpath_var=LD_LIBRARY_PATH
8574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8576 # the default ld.so.conf also contains /usr/contrib/lib and
8577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8578 # libtool to hard-code these into programs
8581 cygwin* | mingw* | pw32*)
8582 version_type=windows
8583 shrext_cmds=".dll"
8584 need_version=no
8585 need_lib_prefix=no
8587 case $GCC,$host_os in
8588 yes,cygwin* | yes,mingw* | yes,pw32*)
8589 library_names_spec='$libname.dll.a'
8590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8591 postinstall_cmds='base_file=`basename \${file}`~
8592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8593 dldir=$destdir/`dirname \$dlpath`~
8594 test -d \$dldir || mkdir -p \$dldir~
8595 $install_prog $dir/$dlname \$dldir/$dlname~
8596 chmod a+x \$dldir/$dlname'
8597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8598 dlpath=$dir/\$dldll~
8599 $rm \$dlpath'
8600 shlibpath_overrides_runpath=yes
8602 case $host_os in
8603 cygwin*)
8604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8606 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8608 mingw*)
8609 # MinGW DLLs use traditional 'lib' prefix
8610 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8612 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8613 # It is most probably a Windows format PATH printed by
8614 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8615 # path with ; separators, and with drive letters. We can handle the
8616 # drive letters (cygwin fileutils understands them), so leave them,
8617 # especially as we might pass files found there to a mingw objdump,
8618 # which wouldn't understand a cygwinified path. Ahh.
8619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8620 else
8621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8624 pw32*)
8625 # pw32 DLLs use 'pw' prefix rather than 'lib'
8626 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8628 esac
8632 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8634 esac
8635 dynamic_linker='Win32 ld.exe'
8636 # FIXME: first we should search . and the directory the executable is in
8637 shlibpath_var=PATH
8640 darwin* | rhapsody*)
8641 dynamic_linker="$host_os dyld"
8642 version_type=darwin
8643 need_lib_prefix=no
8644 need_version=no
8645 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8646 soname_spec='${libname}${release}${major}$shared_ext'
8647 shlibpath_overrides_runpath=yes
8648 shlibpath_var=DYLD_LIBRARY_PATH
8649 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8650 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8651 if test "$GCC" = yes; then
8652 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"`
8653 else
8654 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8656 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8659 dgux*)
8660 version_type=linux
8661 need_lib_prefix=no
8662 need_version=no
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8664 soname_spec='${libname}${release}${shared_ext}$major'
8665 shlibpath_var=LD_LIBRARY_PATH
8668 freebsd1*)
8669 dynamic_linker=no
8672 kfreebsd*-gnu)
8673 version_type=linux
8674 need_lib_prefix=no
8675 need_version=no
8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8677 soname_spec='${libname}${release}${shared_ext}$major'
8678 shlibpath_var=LD_LIBRARY_PATH
8679 shlibpath_overrides_runpath=no
8680 hardcode_into_libs=yes
8681 dynamic_linker='GNU ld.so'
8684 freebsd* | dragonfly*)
8685 # DragonFly does not have aout. When/if they implement a new
8686 # versioning mechanism, adjust this.
8687 if test -x /usr/bin/objformat; then
8688 objformat=`/usr/bin/objformat`
8689 else
8690 case $host_os in
8691 freebsd[123]*) objformat=aout ;;
8692 *) objformat=elf ;;
8693 esac
8695 version_type=freebsd-$objformat
8696 case $version_type in
8697 freebsd-elf*)
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8699 need_version=no
8700 need_lib_prefix=no
8702 freebsd-*)
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8704 need_version=yes
8706 esac
8707 shlibpath_var=LD_LIBRARY_PATH
8708 case $host_os in
8709 freebsd2*)
8710 shlibpath_overrides_runpath=yes
8712 freebsd3.[01]* | freebsdelf3.[01]*)
8713 shlibpath_overrides_runpath=yes
8714 hardcode_into_libs=yes
8716 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8717 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8718 shlibpath_overrides_runpath=no
8719 hardcode_into_libs=yes
8721 freebsd*) # from 4.6 on
8722 shlibpath_overrides_runpath=yes
8723 hardcode_into_libs=yes
8725 esac
8728 gnu*)
8729 version_type=linux
8730 need_lib_prefix=no
8731 need_version=no
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 shlibpath_var=LD_LIBRARY_PATH
8735 hardcode_into_libs=yes
8738 hpux9* | hpux10* | hpux11*)
8739 # Give a soname corresponding to the major version so that dld.sl refuses to
8740 # link against other versions.
8741 version_type=sunos
8742 need_lib_prefix=no
8743 need_version=no
8744 case $host_cpu in
8745 ia64*)
8746 shrext_cmds='.so'
8747 hardcode_into_libs=yes
8748 dynamic_linker="$host_os dld.so"
8749 shlibpath_var=LD_LIBRARY_PATH
8750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 if test "X$HPUX_IA64_MODE" = X32; then
8754 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8755 else
8756 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8760 hppa*64*)
8761 shrext_cmds='.sl'
8762 hardcode_into_libs=yes
8763 dynamic_linker="$host_os dld.sl"
8764 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8772 shrext_cmds='.sl'
8773 dynamic_linker="$host_os dld.sl"
8774 shlibpath_var=SHLIB_PATH
8775 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777 soname_spec='${libname}${release}${shared_ext}$major'
8779 esac
8780 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8781 postinstall_cmds='chmod 555 $lib'
8784 interix3*)
8785 version_type=linux
8786 need_lib_prefix=no
8787 need_version=no
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8791 shlibpath_var=LD_LIBRARY_PATH
8792 shlibpath_overrides_runpath=no
8793 hardcode_into_libs=yes
8796 irix5* | irix6* | nonstopux*)
8797 case $host_os in
8798 nonstopux*) version_type=nonstopux ;;
8800 if test "$lt_cv_prog_gnu_ld" = yes; then
8801 version_type=linux
8802 else
8803 version_type=irix
8804 fi ;;
8805 esac
8806 need_lib_prefix=no
8807 need_version=no
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8810 case $host_os in
8811 irix5* | nonstopux*)
8812 libsuff= shlibsuff=
8815 case $LD in # libtool.m4 will add one of these switches to LD
8816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8817 libsuff= shlibsuff= libmagic=32-bit;;
8818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8819 libsuff=32 shlibsuff=N32 libmagic=N32;;
8820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8822 *) libsuff= shlibsuff= libmagic=never-match;;
8823 esac
8825 esac
8826 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8827 shlibpath_overrides_runpath=no
8828 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8829 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8830 hardcode_into_libs=yes
8833 # No shared lib support for Linux oldld, aout, or coff.
8834 linux*oldld* | linux*aout* | linux*coff*)
8835 dynamic_linker=no
8838 # This must be Linux ELF.
8839 linux*)
8840 version_type=linux
8841 need_lib_prefix=no
8842 need_version=no
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 shlibpath_overrides_runpath=no
8848 # This implies no fast_install, which is unacceptable.
8849 # Some rework will be needed to allow for fast_install
8850 # before this can be enabled.
8851 hardcode_into_libs=yes
8853 # Append ld.so.conf contents to the search path
8854 if test -f /etc/ld.so.conf; then
8855 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8859 # We used to test for /lib/ld.so.1 and disable shared libraries on
8860 # powerpc, because MkLinux only supported shared libraries with the
8861 # GNU dynamic linker. Since this was broken with cross compilers,
8862 # most powerpc-linux boxes support dynamic linking these days and
8863 # people can always --disable-shared, the test was removed, and we
8864 # assume the GNU/Linux dynamic linker is in use.
8865 dynamic_linker='GNU/Linux ld.so'
8868 knetbsd*-gnu)
8869 version_type=linux
8870 need_lib_prefix=no
8871 need_version=no
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 shlibpath_var=LD_LIBRARY_PATH
8875 shlibpath_overrides_runpath=no
8876 hardcode_into_libs=yes
8877 dynamic_linker='GNU ld.so'
8880 netbsd*)
8881 version_type=sunos
8882 need_lib_prefix=no
8883 need_version=no
8884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8887 dynamic_linker='NetBSD (a.out) ld.so'
8888 else
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 dynamic_linker='NetBSD ld.elf_so'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 shlibpath_overrides_runpath=yes
8895 hardcode_into_libs=yes
8898 newsos6)
8899 version_type=linux
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 shlibpath_var=LD_LIBRARY_PATH
8902 shlibpath_overrides_runpath=yes
8905 nto-qnx*)
8906 version_type=linux
8907 need_lib_prefix=no
8908 need_version=no
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=yes
8915 openbsd*)
8916 version_type=sunos
8917 sys_lib_dlsearch_path_spec="/usr/lib"
8918 need_lib_prefix=no
8919 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8920 case $host_os in
8921 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8922 *) need_version=no ;;
8923 esac
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8928 case $host_os in
8929 openbsd2.[89] | openbsd2.[89].*)
8930 shlibpath_overrides_runpath=no
8933 shlibpath_overrides_runpath=yes
8935 esac
8936 else
8937 shlibpath_overrides_runpath=yes
8941 os2*)
8942 libname_spec='$name'
8943 shrext_cmds=".dll"
8944 need_lib_prefix=no
8945 library_names_spec='$libname${shared_ext} $libname.a'
8946 dynamic_linker='OS/2 ld.exe'
8947 shlibpath_var=LIBPATH
8950 osf3* | osf4* | osf5*)
8951 version_type=osf
8952 need_lib_prefix=no
8953 need_version=no
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8958 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8961 solaris*)
8962 version_type=linux
8963 need_lib_prefix=no
8964 need_version=no
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 shlibpath_overrides_runpath=yes
8969 hardcode_into_libs=yes
8970 # ldd complains unless libraries are executable
8971 postinstall_cmds='chmod +x $lib'
8974 sunos4*)
8975 version_type=sunos
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8980 if test "$with_gnu_ld" = yes; then
8981 need_lib_prefix=no
8983 need_version=yes
8986 sysv4 | sysv4.3*)
8987 version_type=linux
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 case $host_vendor in
8992 sni)
8993 shlibpath_overrides_runpath=no
8994 need_lib_prefix=no
8995 export_dynamic_flag_spec='${wl}-Blargedynsym'
8996 runpath_var=LD_RUN_PATH
8998 siemens)
8999 need_lib_prefix=no
9001 motorola)
9002 need_lib_prefix=no
9003 need_version=no
9004 shlibpath_overrides_runpath=no
9005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9007 esac
9010 sysv4*MP*)
9011 if test -d /usr/nec ;then
9012 version_type=linux
9013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9014 soname_spec='$libname${shared_ext}.$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9020 version_type=freebsd-elf
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 hardcode_into_libs=yes
9027 if test "$with_gnu_ld" = yes; then
9028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9029 shlibpath_overrides_runpath=no
9030 else
9031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9032 shlibpath_overrides_runpath=yes
9033 case $host_os in
9034 sco3.2v5*)
9035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9037 esac
9039 sys_lib_dlsearch_path_spec='/usr/lib'
9042 uts4*)
9043 version_type=linux
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 shlibpath_var=LD_LIBRARY_PATH
9050 dynamic_linker=no
9052 esac
9053 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9054 echo "${ECHO_T}$dynamic_linker" >&6; }
9055 test "$dynamic_linker" = no && can_build_shared=no
9057 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9058 if test "$GCC" = yes; then
9059 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9062 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9063 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9064 hardcode_action=
9065 if test -n "$hardcode_libdir_flag_spec" || \
9066 test -n "$runpath_var" || \
9067 test "X$hardcode_automatic" = "Xyes" ; then
9069 # We can hardcode non-existant directories.
9070 if test "$hardcode_direct" != no &&
9071 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9072 # have to relink, otherwise we might link with an installed library
9073 # when we should be linking with a yet-to-be-installed one
9074 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9075 test "$hardcode_minus_L" != no; then
9076 # Linking always hardcodes the temporary library directory.
9077 hardcode_action=relink
9078 else
9079 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9080 hardcode_action=immediate
9082 else
9083 # We cannot hardcode anything, or else we can only hardcode existing
9084 # directories.
9085 hardcode_action=unsupported
9087 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9088 echo "${ECHO_T}$hardcode_action" >&6; }
9090 if test "$hardcode_action" = relink; then
9091 # Fast installation is not supported
9092 enable_fast_install=no
9093 elif test "$shlibpath_overrides_runpath" = yes ||
9094 test "$enable_shared" = no; then
9095 # Fast installation is not necessary
9096 enable_fast_install=needless
9099 striplib=
9100 old_striplib=
9101 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9102 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9103 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9104 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9105 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9106 { echo "$as_me:$LINENO: result: yes" >&5
9107 echo "${ECHO_T}yes" >&6; }
9108 else
9109 # FIXME - insert some real tests, host_os isn't really good enough
9110 case $host_os in
9111 darwin*)
9112 if test -n "$STRIP" ; then
9113 striplib="$STRIP -x"
9114 { echo "$as_me:$LINENO: result: yes" >&5
9115 echo "${ECHO_T}yes" >&6; }
9116 else
9117 { echo "$as_me:$LINENO: result: no" >&5
9118 echo "${ECHO_T}no" >&6; }
9122 { echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6; }
9125 esac
9128 if test "x$enable_dlopen" != xyes; then
9129 enable_dlopen=unknown
9130 enable_dlopen_self=unknown
9131 enable_dlopen_self_static=unknown
9132 else
9133 lt_cv_dlopen=no
9134 lt_cv_dlopen_libs=
9136 case $host_os in
9137 beos*)
9138 lt_cv_dlopen="load_add_on"
9139 lt_cv_dlopen_libs=
9140 lt_cv_dlopen_self=yes
9143 mingw* | pw32*)
9144 lt_cv_dlopen="LoadLibrary"
9145 lt_cv_dlopen_libs=
9148 cygwin*)
9149 lt_cv_dlopen="dlopen"
9150 lt_cv_dlopen_libs=
9153 darwin*)
9154 # if libdl is installed we need to link against it
9155 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9156 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9157 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160 ac_check_lib_save_LIBS=$LIBS
9161 LIBS="-ldl $LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9169 /* Override any GCC internal prototype to avoid an error.
9170 Use char because int might match the return type of a GCC
9171 builtin and then its argument prototype would still apply. */
9172 #ifdef __cplusplus
9173 extern "C"
9174 #endif
9175 char dlopen ();
9177 main ()
9179 return dlopen ();
9181 return 0;
9183 _ACEOF
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9186 case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_c_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest$ac_exeext &&
9201 $as_test_x conftest$ac_exeext; then
9202 ac_cv_lib_dl_dlopen=yes
9203 else
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 ac_cv_lib_dl_dlopen=no
9210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9211 conftest$ac_exeext conftest.$ac_ext
9212 LIBS=$ac_check_lib_save_LIBS
9214 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9215 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9216 if test $ac_cv_lib_dl_dlopen = yes; then
9217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9218 else
9220 lt_cv_dlopen="dyld"
9221 lt_cv_dlopen_libs=
9222 lt_cv_dlopen_self=yes
9229 { echo "$as_me:$LINENO: checking for shl_load" >&5
9230 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9231 if test "${ac_cv_func_shl_load+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9242 #define shl_load innocuous_shl_load
9244 /* System header to define __stub macros and hopefully few prototypes,
9245 which can conflict with char shl_load (); below.
9246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9247 <limits.h> exists even on freestanding compilers. */
9249 #ifdef __STDC__
9250 # include <limits.h>
9251 #else
9252 # include <assert.h>
9253 #endif
9255 #undef shl_load
9257 /* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 char shl_load ();
9264 /* The GNU C library defines this for functions which it implements
9265 to always fail with ENOSYS. Some functions are actually named
9266 something starting with __ and the normal name is an alias. */
9267 #if defined __stub_shl_load || defined __stub___shl_load
9268 choke me
9269 #endif
9272 main ()
9274 return shl_load ();
9276 return 0;
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_link") 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && {
9293 test -z "$ac_c_werror_flag" ||
9294 test ! -s conftest.err
9295 } && test -s conftest$ac_exeext &&
9296 $as_test_x conftest$ac_exeext; then
9297 ac_cv_func_shl_load=yes
9298 else
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_func_shl_load=no
9305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9306 conftest$ac_exeext conftest.$ac_ext
9308 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9309 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9310 if test $ac_cv_func_shl_load = yes; then
9311 lt_cv_dlopen="shl_load"
9312 else
9313 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9314 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318 ac_check_lib_save_LIBS=$LIBS
9319 LIBS="-ldld $LIBS"
9320 cat >conftest.$ac_ext <<_ACEOF
9321 /* confdefs.h. */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9327 /* Override any GCC internal prototype to avoid an error.
9328 Use char because int might match the return type of a GCC
9329 builtin and then its argument prototype would still apply. */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 char shl_load ();
9335 main ()
9337 return shl_load ();
9339 return 0;
9341 _ACEOF
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9344 case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_link") 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && {
9356 test -z "$ac_c_werror_flag" ||
9357 test ! -s conftest.err
9358 } && test -s conftest$ac_exeext &&
9359 $as_test_x conftest$ac_exeext; then
9360 ac_cv_lib_dld_shl_load=yes
9361 else
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 ac_cv_lib_dld_shl_load=no
9368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369 conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9373 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9374 if test $ac_cv_lib_dld_shl_load = yes; then
9375 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9376 else
9377 { echo "$as_me:$LINENO: checking for dlopen" >&5
9378 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9379 if test "${ac_cv_func_dlopen+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382 cat >conftest.$ac_ext <<_ACEOF
9383 /* confdefs.h. */
9384 _ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9388 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9390 #define dlopen innocuous_dlopen
9392 /* System header to define __stub macros and hopefully few prototypes,
9393 which can conflict with char dlopen (); below.
9394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9395 <limits.h> exists even on freestanding compilers. */
9397 #ifdef __STDC__
9398 # include <limits.h>
9399 #else
9400 # include <assert.h>
9401 #endif
9403 #undef dlopen
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9408 #ifdef __cplusplus
9409 extern "C"
9410 #endif
9411 char dlopen ();
9412 /* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415 #if defined __stub_dlopen || defined __stub___dlopen
9416 choke me
9417 #endif
9420 main ()
9422 return dlopen ();
9424 return 0;
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (ac_try="$ac_link"
9429 case "(($ac_try" in
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9432 esac
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434 (eval "$ac_link") 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } && {
9441 test -z "$ac_c_werror_flag" ||
9442 test ! -s conftest.err
9443 } && test -s conftest$ac_exeext &&
9444 $as_test_x conftest$ac_exeext; then
9445 ac_cv_func_dlopen=yes
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_func_dlopen=no
9453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9454 conftest$ac_exeext conftest.$ac_ext
9456 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9457 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9458 if test $ac_cv_func_dlopen = yes; then
9459 lt_cv_dlopen="dlopen"
9460 else
9461 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466 ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-ldl $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char dlopen ();
9483 main ()
9485 return dlopen ();
9487 return 0;
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495 esac
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_link") 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest$ac_exeext &&
9507 $as_test_x conftest$ac_exeext; then
9508 ac_cv_lib_dl_dlopen=yes
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_cv_lib_dl_dlopen=no
9516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LIBS=$ac_check_lib_save_LIBS
9520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9522 if test $ac_cv_lib_dl_dlopen = yes; then
9523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9524 else
9525 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9526 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9527 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530 ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-lsvld $LIBS"
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char dlopen ();
9547 main ()
9549 return dlopen ();
9551 return 0;
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9556 case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest$ac_exeext &&
9571 $as_test_x conftest$ac_exeext; then
9572 ac_cv_lib_svld_dlopen=yes
9573 else
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_svld_dlopen=no
9580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9585 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9586 if test $ac_cv_lib_svld_dlopen = yes; then
9587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9588 else
9589 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9590 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-ldld $LIBS"
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char dld_link ();
9611 main ()
9613 return dld_link ();
9615 return 0;
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest$ac_exeext &&
9635 $as_test_x conftest$ac_exeext; then
9636 ac_cv_lib_dld_dld_link=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_cv_lib_dld_dld_link=no
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645 conftest$ac_exeext conftest.$ac_ext
9646 LIBS=$ac_check_lib_save_LIBS
9648 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9649 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9650 if test $ac_cv_lib_dld_dld_link = yes; then
9651 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9670 esac
9672 if test "x$lt_cv_dlopen" != xno; then
9673 enable_dlopen=yes
9674 else
9675 enable_dlopen=no
9678 case $lt_cv_dlopen in
9679 dlopen)
9680 save_CPPFLAGS="$CPPFLAGS"
9681 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9683 save_LDFLAGS="$LDFLAGS"
9684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9686 save_LIBS="$LIBS"
9687 LIBS="$lt_cv_dlopen_libs $LIBS"
9689 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9690 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9691 if test "${lt_cv_dlopen_self+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 if test "$cross_compiling" = yes; then :
9695 lt_cv_dlopen_self=cross
9696 else
9697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9698 lt_status=$lt_dlunknown
9699 cat > conftest.$ac_ext <<EOF
9700 #line 9700 "configure"
9701 #include "confdefs.h"
9703 #if HAVE_DLFCN_H
9704 #include <dlfcn.h>
9705 #endif
9707 #include <stdio.h>
9709 #ifdef RTLD_GLOBAL
9710 # define LT_DLGLOBAL RTLD_GLOBAL
9711 #else
9712 # ifdef DL_GLOBAL
9713 # define LT_DLGLOBAL DL_GLOBAL
9714 # else
9715 # define LT_DLGLOBAL 0
9716 # endif
9717 #endif
9719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9720 find out it does not work in some platform. */
9721 #ifndef LT_DLLAZY_OR_NOW
9722 # ifdef RTLD_LAZY
9723 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9724 # else
9725 # ifdef DL_LAZY
9726 # define LT_DLLAZY_OR_NOW DL_LAZY
9727 # else
9728 # ifdef RTLD_NOW
9729 # define LT_DLLAZY_OR_NOW RTLD_NOW
9730 # else
9731 # ifdef DL_NOW
9732 # define LT_DLLAZY_OR_NOW DL_NOW
9733 # else
9734 # define LT_DLLAZY_OR_NOW 0
9735 # endif
9736 # endif
9737 # endif
9738 # endif
9739 #endif
9741 #ifdef __cplusplus
9742 extern "C" void exit (int);
9743 #endif
9745 void fnord() { int i=42;}
9746 int main ()
9748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9749 int status = $lt_dlunknown;
9751 if (self)
9753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9754 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9755 /* dlclose (self); */
9757 else
9758 puts (dlerror ());
9760 exit (status);
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9768 (./conftest; exit; ) >&5 2>/dev/null
9769 lt_status=$?
9770 case x$lt_status in
9771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9773 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9774 esac
9775 else :
9776 # compilation failed
9777 lt_cv_dlopen_self=no
9780 rm -fr conftest*
9784 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9785 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9787 if test "x$lt_cv_dlopen_self" = xyes; then
9788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9789 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9790 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9791 if test "${lt_cv_dlopen_self_static+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794 if test "$cross_compiling" = yes; then :
9795 lt_cv_dlopen_self_static=cross
9796 else
9797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9798 lt_status=$lt_dlunknown
9799 cat > conftest.$ac_ext <<EOF
9800 #line 9800 "configure"
9801 #include "confdefs.h"
9803 #if HAVE_DLFCN_H
9804 #include <dlfcn.h>
9805 #endif
9807 #include <stdio.h>
9809 #ifdef RTLD_GLOBAL
9810 # define LT_DLGLOBAL RTLD_GLOBAL
9811 #else
9812 # ifdef DL_GLOBAL
9813 # define LT_DLGLOBAL DL_GLOBAL
9814 # else
9815 # define LT_DLGLOBAL 0
9816 # endif
9817 #endif
9819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9820 find out it does not work in some platform. */
9821 #ifndef LT_DLLAZY_OR_NOW
9822 # ifdef RTLD_LAZY
9823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9824 # else
9825 # ifdef DL_LAZY
9826 # define LT_DLLAZY_OR_NOW DL_LAZY
9827 # else
9828 # ifdef RTLD_NOW
9829 # define LT_DLLAZY_OR_NOW RTLD_NOW
9830 # else
9831 # ifdef DL_NOW
9832 # define LT_DLLAZY_OR_NOW DL_NOW
9833 # else
9834 # define LT_DLLAZY_OR_NOW 0
9835 # endif
9836 # endif
9837 # endif
9838 # endif
9839 #endif
9841 #ifdef __cplusplus
9842 extern "C" void exit (int);
9843 #endif
9845 void fnord() { int i=42;}
9846 int main ()
9848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9849 int status = $lt_dlunknown;
9851 if (self)
9853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9855 /* dlclose (self); */
9857 else
9858 puts (dlerror ());
9860 exit (status);
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9868 (./conftest; exit; ) >&5 2>/dev/null
9869 lt_status=$?
9870 case x$lt_status in
9871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9873 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9874 esac
9875 else :
9876 # compilation failed
9877 lt_cv_dlopen_self_static=no
9880 rm -fr conftest*
9884 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9885 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9888 CPPFLAGS="$save_CPPFLAGS"
9889 LDFLAGS="$save_LDFLAGS"
9890 LIBS="$save_LIBS"
9892 esac
9894 case $lt_cv_dlopen_self in
9895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9896 *) enable_dlopen_self=unknown ;;
9897 esac
9899 case $lt_cv_dlopen_self_static in
9900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9901 *) enable_dlopen_self_static=unknown ;;
9902 esac
9906 # Report which library types will actually be built
9907 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9908 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9909 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9910 echo "${ECHO_T}$can_build_shared" >&6; }
9912 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9913 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9914 test "$can_build_shared" = "no" && enable_shared=no
9916 # On AIX, shared libraries and static libraries use the same namespace, and
9917 # are all built from PIC.
9918 case $host_os in
9919 aix3*)
9920 test "$enable_shared" = yes && enable_static=no
9921 if test -n "$RANLIB"; then
9922 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9923 postinstall_cmds='$RANLIB $lib'
9927 aix4* | aix5*)
9928 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9929 test "$enable_shared" = yes && enable_static=no
9932 esac
9933 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9934 echo "${ECHO_T}$enable_shared" >&6; }
9936 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9938 # Make sure either enable_shared or enable_static is yes.
9939 test "$enable_shared" = yes || enable_static=yes
9940 { echo "$as_me:$LINENO: result: $enable_static" >&5
9941 echo "${ECHO_T}$enable_static" >&6; }
9943 # The else clause should only fire when bootstrapping the
9944 # libtool distribution, otherwise you forgot to ship ltmain.sh
9945 # with your package, and you will get complaints that there are
9946 # no rules to generate ltmain.sh.
9947 if test -f "$ltmain"; then
9948 # See if we are running on zsh, and set the options which allow our commands through
9949 # without removal of \ escapes.
9950 if test -n "${ZSH_VERSION+set}" ; then
9951 setopt NO_GLOB_SUBST
9953 # Now quote all the things that may contain metacharacters while being
9954 # careful not to overquote the AC_SUBSTed values. We take copies of the
9955 # variables and quote the copies for generation of the libtool script.
9956 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9957 SED SHELL STRIP \
9958 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9959 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9960 deplibs_check_method reload_flag reload_cmds need_locks \
9961 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9962 lt_cv_sys_global_symbol_to_c_name_address \
9963 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9964 old_postinstall_cmds old_postuninstall_cmds \
9965 compiler \
9966 CC \
9967 LD \
9968 lt_prog_compiler_wl \
9969 lt_prog_compiler_pic \
9970 lt_prog_compiler_static \
9971 lt_prog_compiler_no_builtin_flag \
9972 export_dynamic_flag_spec \
9973 thread_safe_flag_spec \
9974 whole_archive_flag_spec \
9975 enable_shared_with_static_runtimes \
9976 old_archive_cmds \
9977 old_archive_from_new_cmds \
9978 predep_objects \
9979 postdep_objects \
9980 predeps \
9981 postdeps \
9982 compiler_lib_search_path \
9983 archive_cmds \
9984 archive_expsym_cmds \
9985 postinstall_cmds \
9986 postuninstall_cmds \
9987 old_archive_from_expsyms_cmds \
9988 allow_undefined_flag \
9989 no_undefined_flag \
9990 export_symbols_cmds \
9991 hardcode_libdir_flag_spec \
9992 hardcode_libdir_flag_spec_ld \
9993 hardcode_libdir_separator \
9994 hardcode_automatic \
9995 module_cmds \
9996 module_expsym_cmds \
9997 lt_cv_prog_compiler_c_o \
9998 exclude_expsyms \
9999 include_expsyms; do
10001 case $var in
10002 old_archive_cmds | \
10003 old_archive_from_new_cmds | \
10004 archive_cmds | \
10005 archive_expsym_cmds | \
10006 module_cmds | \
10007 module_expsym_cmds | \
10008 old_archive_from_expsyms_cmds | \
10009 export_symbols_cmds | \
10010 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10011 postinstall_cmds | postuninstall_cmds | \
10012 old_postinstall_cmds | old_postuninstall_cmds | \
10013 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10014 # Double-quote double-evaled strings.
10015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10020 esac
10021 done
10023 case $lt_echo in
10024 *'\$0 --fallback-echo"')
10025 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10027 esac
10029 cfgfile="${ofile}T"
10030 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10031 $rm -f "$cfgfile"
10032 { echo "$as_me:$LINENO: creating $ofile" >&5
10033 echo "$as_me: creating $ofile" >&6;}
10035 cat <<__EOF__ >> "$cfgfile"
10036 #! $SHELL
10038 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10039 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10040 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10042 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10043 # Free Software Foundation, Inc.
10045 # This file is part of GNU Libtool:
10046 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10048 # This program is free software; you can redistribute it and/or modify
10049 # it under the terms of the GNU General Public License as published by
10050 # the Free Software Foundation; either version 2 of the License, or
10051 # (at your option) any later version.
10053 # This program is distributed in the hope that it will be useful, but
10054 # WITHOUT ANY WARRANTY; without even the implied warranty of
10055 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10056 # General Public License for more details.
10058 # You should have received a copy of the GNU General Public License
10059 # along with this program; if not, write to the Free Software
10060 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10062 # As a special exception to the GNU General Public License, if you
10063 # distribute this file as part of a program that contains a
10064 # configuration script generated by Autoconf, you may include it under
10065 # the same distribution terms that you use for the rest of that program.
10067 # A sed program that does not truncate output.
10068 SED=$lt_SED
10070 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10071 Xsed="$SED -e 1s/^X//"
10073 # The HP-UX ksh and POSIX shell print the target directory to stdout
10074 # if CDPATH is set.
10075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10077 # The names of the tagged configurations supported by this script.
10078 available_tags=
10080 # ### BEGIN LIBTOOL CONFIG
10082 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10084 # Shell to use when invoking shell scripts.
10085 SHELL=$lt_SHELL
10087 # Whether or not to build shared libraries.
10088 build_libtool_libs=$enable_shared
10090 # Whether or not to build static libraries.
10091 build_old_libs=$enable_static
10093 # Whether or not to add -lc for building shared libraries.
10094 build_libtool_need_lc=$archive_cmds_need_lc
10096 # Whether or not to disallow shared libs when runtime libs are static
10097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10099 # Whether or not to optimize for fast installation.
10100 fast_install=$enable_fast_install
10102 # The host system.
10103 host_alias=$host_alias
10104 host=$host
10105 host_os=$host_os
10107 # The build system.
10108 build_alias=$build_alias
10109 build=$build
10110 build_os=$build_os
10112 # An echo program that does not interpret backslashes.
10113 echo=$lt_echo
10115 # The archiver.
10116 AR=$lt_AR
10117 AR_FLAGS=$lt_AR_FLAGS
10119 # A C compiler.
10120 LTCC=$lt_LTCC
10122 # LTCC compiler flags.
10123 LTCFLAGS=$lt_LTCFLAGS
10125 # A language-specific compiler.
10126 CC=$lt_compiler
10128 # Is the compiler the GNU C compiler?
10129 with_gcc=$GCC
10131 # An ERE matcher.
10132 EGREP=$lt_EGREP
10134 # The linker used to build libraries.
10135 LD=$lt_LD
10137 # Whether we need hard or soft links.
10138 LN_S=$lt_LN_S
10140 # A BSD-compatible nm program.
10141 NM=$lt_NM
10143 # A symbol stripping program
10144 STRIP=$lt_STRIP
10146 # Used to examine libraries when file_magic_cmd begins "file"
10147 MAGIC_CMD=$MAGIC_CMD
10149 # Used on cygwin: DLL creation program.
10150 DLLTOOL="$DLLTOOL"
10152 # Used on cygwin: object dumper.
10153 OBJDUMP="$OBJDUMP"
10155 # Used on cygwin: assembler.
10156 AS="$AS"
10158 # The name of the directory that contains temporary libtool files.
10159 objdir=$objdir
10161 # How to create reloadable object files.
10162 reload_flag=$lt_reload_flag
10163 reload_cmds=$lt_reload_cmds
10165 # How to pass a linker flag through the compiler.
10166 wl=$lt_lt_prog_compiler_wl
10168 # Object file suffix (normally "o").
10169 objext="$ac_objext"
10171 # Old archive suffix (normally "a").
10172 libext="$libext"
10174 # Shared library suffix (normally ".so").
10175 shrext_cmds='$shrext_cmds'
10177 # Executable file suffix (normally "").
10178 exeext="$exeext"
10180 # Additional compiler flags for building library objects.
10181 pic_flag=$lt_lt_prog_compiler_pic
10182 pic_mode=$pic_mode
10184 # What is the maximum length of a command?
10185 max_cmd_len=$lt_cv_sys_max_cmd_len
10187 # Does compiler simultaneously support -c and -o options?
10188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10190 # Must we lock files when doing compilation?
10191 need_locks=$lt_need_locks
10193 # Do we need the lib prefix for modules?
10194 need_lib_prefix=$need_lib_prefix
10196 # Do we need a version for libraries?
10197 need_version=$need_version
10199 # Whether dlopen is supported.
10200 dlopen_support=$enable_dlopen
10202 # Whether dlopen of programs is supported.
10203 dlopen_self=$enable_dlopen_self
10205 # Whether dlopen of statically linked programs is supported.
10206 dlopen_self_static=$enable_dlopen_self_static
10208 # Compiler flag to prevent dynamic linking.
10209 link_static_flag=$lt_lt_prog_compiler_static
10211 # Compiler flag to turn off builtin functions.
10212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10214 # Compiler flag to allow reflexive dlopens.
10215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10217 # Compiler flag to generate shared objects directly from archives.
10218 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10220 # Compiler flag to generate thread-safe objects.
10221 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10223 # Library versioning type.
10224 version_type=$version_type
10226 # Format of library name prefix.
10227 libname_spec=$lt_libname_spec
10229 # List of archive names. First name is the real one, the rest are links.
10230 # The last name is the one that the linker finds with -lNAME.
10231 library_names_spec=$lt_library_names_spec
10233 # The coded name of the library, if different from the real name.
10234 soname_spec=$lt_soname_spec
10236 # Commands used to build and install an old-style archive.
10237 RANLIB=$lt_RANLIB
10238 old_archive_cmds=$lt_old_archive_cmds
10239 old_postinstall_cmds=$lt_old_postinstall_cmds
10240 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10242 # Create an old-style archive from a shared archive.
10243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10245 # Create a temporary old-style archive to link instead of a shared archive.
10246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10248 # Commands used to build and install a shared archive.
10249 archive_cmds=$lt_archive_cmds
10250 archive_expsym_cmds=$lt_archive_expsym_cmds
10251 postinstall_cmds=$lt_postinstall_cmds
10252 postuninstall_cmds=$lt_postuninstall_cmds
10254 # Commands used to build a loadable module (assumed same as above if empty)
10255 module_cmds=$lt_module_cmds
10256 module_expsym_cmds=$lt_module_expsym_cmds
10258 # Commands to strip libraries.
10259 old_striplib=$lt_old_striplib
10260 striplib=$lt_striplib
10262 # Dependencies to place before the objects being linked to create a
10263 # shared library.
10264 predep_objects=$lt_predep_objects
10266 # Dependencies to place after the objects being linked to create a
10267 # shared library.
10268 postdep_objects=$lt_postdep_objects
10270 # Dependencies to place before the objects being linked to create a
10271 # shared library.
10272 predeps=$lt_predeps
10274 # Dependencies to place after the objects being linked to create a
10275 # shared library.
10276 postdeps=$lt_postdeps
10278 # The library search path used internally by the compiler when linking
10279 # a shared library.
10280 compiler_lib_search_path=$lt_compiler_lib_search_path
10282 # Method to check whether dependent libraries are shared objects.
10283 deplibs_check_method=$lt_deplibs_check_method
10285 # Command to use when deplibs_check_method == file_magic.
10286 file_magic_cmd=$lt_file_magic_cmd
10288 # Flag that allows shared libraries with undefined symbols to be built.
10289 allow_undefined_flag=$lt_allow_undefined_flag
10291 # Flag that forces no undefined symbols.
10292 no_undefined_flag=$lt_no_undefined_flag
10294 # Commands used to finish a libtool library installation in a directory.
10295 finish_cmds=$lt_finish_cmds
10297 # Same as above, but a single script fragment to be evaled but not shown.
10298 finish_eval=$lt_finish_eval
10300 # Take the output of nm and produce a listing of raw symbols and C names.
10301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10303 # Transform the output of nm in a proper C declaration
10304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10306 # Transform the output of nm in a C name address pair
10307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10309 # This is the shared library runtime path variable.
10310 runpath_var=$runpath_var
10312 # This is the shared library path variable.
10313 shlibpath_var=$shlibpath_var
10315 # Is shlibpath searched before the hard-coded library search path?
10316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10318 # How to hardcode a shared library path into an executable.
10319 hardcode_action=$hardcode_action
10321 # Whether we should hardcode library paths into libraries.
10322 hardcode_into_libs=$hardcode_into_libs
10324 # Flag to hardcode \$libdir into a binary during linking.
10325 # This must work even if \$libdir does not exist.
10326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10328 # If ld is used when linking, flag to hardcode \$libdir into
10329 # a binary during linking. This must work even if \$libdir does
10330 # not exist.
10331 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10333 # Whether we need a single -rpath flag with a separated argument.
10334 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10336 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10337 # resulting binary.
10338 hardcode_direct=$hardcode_direct
10340 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10341 # resulting binary.
10342 hardcode_minus_L=$hardcode_minus_L
10344 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10345 # the resulting binary.
10346 hardcode_shlibpath_var=$hardcode_shlibpath_var
10348 # Set to yes if building a shared library automatically hardcodes DIR into the library
10349 # and all subsequent libraries and executables linked against it.
10350 hardcode_automatic=$hardcode_automatic
10352 # Variables whose values should be saved in libtool wrapper scripts and
10353 # restored at relink time.
10354 variables_saved_for_relink="$variables_saved_for_relink"
10356 # Whether libtool must link a program against all its dependency libraries.
10357 link_all_deplibs=$link_all_deplibs
10359 # Compile-time system search path for libraries
10360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10362 # Run-time system search path for libraries
10363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10365 # Fix the shell variable \$srcfile for the compiler.
10366 fix_srcfile_path="$fix_srcfile_path"
10368 # Set to yes if exported symbols are required.
10369 always_export_symbols=$always_export_symbols
10371 # The commands to list exported symbols.
10372 export_symbols_cmds=$lt_export_symbols_cmds
10374 # The commands to extract the exported symbol list from a shared archive.
10375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10377 # Symbols that should not be listed in the preloaded symbols.
10378 exclude_expsyms=$lt_exclude_expsyms
10380 # Symbols that must always be exported.
10381 include_expsyms=$lt_include_expsyms
10383 # ### END LIBTOOL CONFIG
10385 __EOF__
10388 case $host_os in
10389 aix3*)
10390 cat <<\EOF >> "$cfgfile"
10392 # AIX sometimes has problems with the GCC collect2 program. For some
10393 # reason, if we set the COLLECT_NAMES environment variable, the problems
10394 # vanish in a puff of smoke.
10395 if test "X${COLLECT_NAMES+set}" != Xset; then
10396 COLLECT_NAMES=
10397 export COLLECT_NAMES
10401 esac
10403 # We use sed instead of cat because bash on DJGPP gets confused if
10404 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10405 # text mode, it properly converts lines to CR/LF. This bash problem
10406 # is reportedly fixed, but why not run on old versions too?
10407 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10409 mv -f "$cfgfile" "$ofile" || \
10410 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10411 chmod +x "$ofile"
10413 else
10414 # If there is no Makefile yet, we rely on a make rule to execute
10415 # `config.status --recheck' to rerun these tests and create the
10416 # libtool script then.
10417 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10418 if test -f "$ltmain_in"; then
10419 test -f Makefile && make "$ltmain"
10424 ac_ext=cpp
10425 ac_cpp='$CXXCPP $CPPFLAGS'
10426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10430 CC="$lt_save_CC"
10433 # Check whether --with-tags was given.
10434 if test "${with_tags+set}" = set; then
10435 withval=$with_tags; tagnames="$withval"
10439 if test -f "$ltmain" && test -n "$tagnames"; then
10440 if test ! -f "${ofile}"; then
10441 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10442 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10445 if test -z "$LTCC"; then
10446 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10447 if test -z "$LTCC"; then
10448 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10449 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10450 else
10451 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10452 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10455 if test -z "$LTCFLAGS"; then
10456 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10459 # Extract list of available tagged configurations in $ofile.
10460 # Note that this assumes the entire list is on one line.
10461 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10464 for tagname in $tagnames; do
10465 IFS="$lt_save_ifs"
10466 # Check whether tagname contains only valid characters
10467 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10468 "") ;;
10469 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10470 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10471 { (exit 1); exit 1; }; }
10473 esac
10475 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10476 then
10477 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10478 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10479 { (exit 1); exit 1; }; }
10482 # Update the list of available tags.
10483 if test -n "$tagname"; then
10484 echo appending configuration tag \"$tagname\" to $ofile
10486 case $tagname in
10487 CXX)
10488 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10489 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10490 (test "X$CXX" != "Xg++"))) ; then
10491 ac_ext=cpp
10492 ac_cpp='$CXXCPP $CPPFLAGS'
10493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10500 archive_cmds_need_lc_CXX=no
10501 allow_undefined_flag_CXX=
10502 always_export_symbols_CXX=no
10503 archive_expsym_cmds_CXX=
10504 export_dynamic_flag_spec_CXX=
10505 hardcode_direct_CXX=no
10506 hardcode_libdir_flag_spec_CXX=
10507 hardcode_libdir_flag_spec_ld_CXX=
10508 hardcode_libdir_separator_CXX=
10509 hardcode_minus_L_CXX=no
10510 hardcode_shlibpath_var_CXX=unsupported
10511 hardcode_automatic_CXX=no
10512 module_cmds_CXX=
10513 module_expsym_cmds_CXX=
10514 link_all_deplibs_CXX=unknown
10515 old_archive_cmds_CXX=$old_archive_cmds
10516 no_undefined_flag_CXX=
10517 whole_archive_flag_spec_CXX=
10518 enable_shared_with_static_runtimes_CXX=no
10520 # Dependencies to place before and after the object being linked:
10521 predep_objects_CXX=
10522 postdep_objects_CXX=
10523 predeps_CXX=
10524 postdeps_CXX=
10525 compiler_lib_search_path_CXX=
10527 # Source file extension for C++ test sources.
10528 ac_ext=cpp
10530 # Object file extension for compiled C++ test sources.
10531 objext=o
10532 objext_CXX=$objext
10534 # Code to be used in simple compile tests
10535 lt_simple_compile_test_code="int some_variable = 0;\n"
10537 # Code to be used in simple link tests
10538 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10540 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10542 # If no C compiler was specified, use CC.
10543 LTCC=${LTCC-"$CC"}
10545 # If no C compiler flags were specified, use CFLAGS.
10546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10548 # Allow CC to be a program name with arguments.
10549 compiler=$CC
10552 # save warnings/boilerplate of simple test code
10553 ac_outfile=conftest.$ac_objext
10554 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10556 _lt_compiler_boilerplate=`cat conftest.err`
10557 $rm conftest*
10559 ac_outfile=conftest.$ac_objext
10560 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10562 _lt_linker_boilerplate=`cat conftest.err`
10563 $rm conftest*
10566 # Allow CC to be a program name with arguments.
10567 lt_save_CC=$CC
10568 lt_save_LD=$LD
10569 lt_save_GCC=$GCC
10570 GCC=$GXX
10571 lt_save_with_gnu_ld=$with_gnu_ld
10572 lt_save_path_LD=$lt_cv_path_LD
10573 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10574 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10575 else
10576 $as_unset lt_cv_prog_gnu_ld
10578 if test -n "${lt_cv_path_LDCXX+set}"; then
10579 lt_cv_path_LD=$lt_cv_path_LDCXX
10580 else
10581 $as_unset lt_cv_path_LD
10583 test -z "${LDCXX+set}" || LD=$LDCXX
10584 CC=${CXX-"c++"}
10585 compiler=$CC
10586 compiler_CXX=$CC
10587 for cc_temp in $compiler""; do
10588 case $cc_temp in
10589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10591 \-*) ;;
10592 *) break;;
10593 esac
10594 done
10595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10598 # We don't want -fno-exception wen compiling C++ code, so set the
10599 # no_builtin_flag separately
10600 if test "$GXX" = yes; then
10601 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10602 else
10603 lt_prog_compiler_no_builtin_flag_CXX=
10606 if test "$GXX" = yes; then
10607 # Set up default GNU C++ configuration
10610 # Check whether --with-gnu-ld was given.
10611 if test "${with_gnu_ld+set}" = set; then
10612 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10613 else
10614 with_gnu_ld=no
10617 ac_prog=ld
10618 if test "$GCC" = yes; then
10619 # Check if gcc -print-prog-name=ld gives a path.
10620 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10621 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10622 case $host in
10623 *-*-mingw*)
10624 # gcc leaves a trailing carriage return which upsets mingw
10625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10628 esac
10629 case $ac_prog in
10630 # Accept absolute paths.
10631 [\\/]* | ?:[\\/]*)
10632 re_direlt='/[^/][^/]*/\.\./'
10633 # Canonicalize the pathname of ld
10634 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10635 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10636 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10637 done
10638 test -z "$LD" && LD="$ac_prog"
10641 # If it fails, then pretend we aren't using GCC.
10642 ac_prog=ld
10645 # If it is relative, then search for the first ld in PATH.
10646 with_gnu_ld=unknown
10648 esac
10649 elif test "$with_gnu_ld" = yes; then
10650 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10651 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10652 else
10653 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10654 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10656 if test "${lt_cv_path_LD+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659 if test -z "$LD"; then
10660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10661 for ac_dir in $PATH; do
10662 IFS="$lt_save_ifs"
10663 test -z "$ac_dir" && ac_dir=.
10664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10665 lt_cv_path_LD="$ac_dir/$ac_prog"
10666 # Check to see if the program is GNU ld. I'd rather use --version,
10667 # but apparently some variants of GNU ld only accept -v.
10668 # Break only if it was the GNU/non-GNU ld that we prefer.
10669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10670 *GNU* | *'with BFD'*)
10671 test "$with_gnu_ld" != no && break
10674 test "$with_gnu_ld" != yes && break
10676 esac
10678 done
10679 IFS="$lt_save_ifs"
10680 else
10681 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10685 LD="$lt_cv_path_LD"
10686 if test -n "$LD"; then
10687 { echo "$as_me:$LINENO: result: $LD" >&5
10688 echo "${ECHO_T}$LD" >&6; }
10689 else
10690 { echo "$as_me:$LINENO: result: no" >&5
10691 echo "${ECHO_T}no" >&6; }
10693 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10694 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10695 { (exit 1); exit 1; }; }
10696 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10697 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10698 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10702 case `$LD -v 2>&1 </dev/null` in
10703 *GNU* | *'with BFD'*)
10704 lt_cv_prog_gnu_ld=yes
10707 lt_cv_prog_gnu_ld=no
10709 esac
10711 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10712 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10713 with_gnu_ld=$lt_cv_prog_gnu_ld
10717 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10718 # archiving commands below assume that GNU ld is being used.
10719 if test "$with_gnu_ld" = yes; then
10720 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10721 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'
10723 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10726 # If archive_cmds runs LD, not CC, wlarc should be empty
10727 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10728 # investigate it a little bit more. (MM)
10729 wlarc='${wl}'
10731 # ancient GNU ld didn't support --whole-archive et. al.
10732 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10733 grep 'no-whole-archive' > /dev/null; then
10734 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10735 else
10736 whole_archive_flag_spec_CXX=
10738 else
10739 with_gnu_ld=no
10740 wlarc=
10742 # A generic and very simple default shared library creation
10743 # command for GNU C++ for the case where it uses the native
10744 # linker, instead of GNU ld. If possible, this setting should
10745 # overridden to take advantage of the native linker features on
10746 # the platform it is being used on.
10747 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10750 # Commands to make compiler produce verbose output that lists
10751 # what "hidden" libraries, object files and flags are used when
10752 # linking a shared library.
10753 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10755 else
10756 GXX=no
10757 with_gnu_ld=no
10758 wlarc=
10761 # PORTME: fill in a description of your system's C++ link characteristics
10762 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10763 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10764 ld_shlibs_CXX=yes
10765 case $host_os in
10766 aix3*)
10767 # FIXME: insert proper C++ library support
10768 ld_shlibs_CXX=no
10770 aix4* | aix5*)
10771 if test "$host_cpu" = ia64; then
10772 # On IA64, the linker does run time linking by default, so we don't
10773 # have to do anything special.
10774 aix_use_runtimelinking=no
10775 exp_sym_flag='-Bexport'
10776 no_entry_flag=""
10777 else
10778 aix_use_runtimelinking=no
10780 # Test if we are trying to use run time linking or normal
10781 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10782 # need to do runtime linking.
10783 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10784 for ld_flag in $LDFLAGS; do
10785 case $ld_flag in
10786 *-brtl*)
10787 aix_use_runtimelinking=yes
10788 break
10790 esac
10791 done
10793 esac
10795 exp_sym_flag='-bexport'
10796 no_entry_flag='-bnoentry'
10799 # When large executables or shared objects are built, AIX ld can
10800 # have problems creating the table of contents. If linking a library
10801 # or program results in "error TOC overflow" add -mminimal-toc to
10802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10805 archive_cmds_CXX=''
10806 hardcode_direct_CXX=yes
10807 hardcode_libdir_separator_CXX=':'
10808 link_all_deplibs_CXX=yes
10810 if test "$GXX" = yes; then
10811 case $host_os in aix4.[012]|aix4.[012].*)
10812 # We only want to do this on AIX 4.2 and lower, the check
10813 # below for broken collect2 doesn't work under 4.3+
10814 collect2name=`${CC} -print-prog-name=collect2`
10815 if test -f "$collect2name" && \
10816 strings "$collect2name" | grep resolve_lib_name >/dev/null
10817 then
10818 # We have reworked collect2
10819 hardcode_direct_CXX=yes
10820 else
10821 # We have old collect2
10822 hardcode_direct_CXX=unsupported
10823 # It fails to find uninstalled libraries when the uninstalled
10824 # path is not listed in the libpath. Setting hardcode_minus_L
10825 # to unsupported forces relinking
10826 hardcode_minus_L_CXX=yes
10827 hardcode_libdir_flag_spec_CXX='-L$libdir'
10828 hardcode_libdir_separator_CXX=
10831 esac
10832 shared_flag='-shared'
10833 if test "$aix_use_runtimelinking" = yes; then
10834 shared_flag="$shared_flag "'${wl}-G'
10836 else
10837 # not using gcc
10838 if test "$host_cpu" = ia64; then
10839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10840 # chokes on -Wl,-G. The following line is correct:
10841 shared_flag='-G'
10842 else
10843 if test "$aix_use_runtimelinking" = yes; then
10844 shared_flag='${wl}-G'
10845 else
10846 shared_flag='${wl}-bM:SRE'
10851 # It seems that -bexpall does not export symbols beginning with
10852 # underscore (_), so it is better to generate a list of symbols to export.
10853 always_export_symbols_CXX=yes
10854 if test "$aix_use_runtimelinking" = yes; then
10855 # Warning - without using the other runtime loading flags (-brtl),
10856 # -berok will link without error, but may produce a broken library.
10857 allow_undefined_flag_CXX='-berok'
10858 # Determine the default libpath from the value encoded in an empty executable.
10859 cat >conftest.$ac_ext <<_ACEOF
10860 /* confdefs.h. */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10867 main ()
10871 return 0;
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_link") 2>conftest.er1
10882 ac_status=$?
10883 grep -v '^ *+' conftest.er1 >conftest.err
10884 rm -f conftest.er1
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } && {
10888 test -z "$ac_cxx_werror_flag" ||
10889 test ! -s conftest.err
10890 } && test -s conftest$ac_exeext &&
10891 $as_test_x conftest$ac_exeext; then
10893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10895 # Check for a 64-bit object if we didn't find anything.
10896 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; }
10897 }'`; fi
10898 else
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10906 conftest$ac_exeext conftest.$ac_ext
10907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10909 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10911 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10912 else
10913 if test "$host_cpu" = ia64; then
10914 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10915 allow_undefined_flag_CXX="-z nodefs"
10916 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10917 else
10918 # Determine the default libpath from the value encoded in an empty executable.
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h. */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10927 main ()
10931 return 0;
10933 _ACEOF
10934 rm -f conftest.$ac_objext conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_link") 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_cxx_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext &&
10951 $as_test_x conftest$ac_exeext; then
10953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10955 # Check for a 64-bit object if we didn't find anything.
10956 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; }
10957 }'`; fi
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10966 conftest$ac_exeext conftest.$ac_ext
10967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10969 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10970 # Warning - without using the other run time loading flags,
10971 # -berok will link without error, but may produce a broken library.
10972 no_undefined_flag_CXX=' ${wl}-bernotok'
10973 allow_undefined_flag_CXX=' ${wl}-berok'
10974 # Exported symbols can be pulled into shared objects from archives
10975 whole_archive_flag_spec_CXX='$convenience'
10976 archive_cmds_need_lc_CXX=yes
10977 # This is similar to how AIX traditionally builds its shared libraries.
10978 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10983 beos*)
10984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10985 allow_undefined_flag_CXX=unsupported
10986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10987 # support --undefined. This deserves some investigation. FIXME
10988 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10989 else
10990 ld_shlibs_CXX=no
10994 chorus*)
10995 case $cc_basename in
10997 # FIXME: insert proper C++ library support
10998 ld_shlibs_CXX=no
11000 esac
11003 cygwin* | mingw* | pw32*)
11004 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11005 # as there is no search path for DLLs.
11006 hardcode_libdir_flag_spec_CXX='-L$libdir'
11007 allow_undefined_flag_CXX=unsupported
11008 always_export_symbols_CXX=no
11009 enable_shared_with_static_runtimes_CXX=yes
11011 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11012 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11013 # If the export-symbols file already is a .def file (1st line
11014 # is EXPORTS), use it as is; otherwise, prepend...
11015 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11016 cp $export_symbols $output_objdir/$soname.def;
11017 else
11018 echo EXPORTS > $output_objdir/$soname.def;
11019 cat $export_symbols >> $output_objdir/$soname.def;
11021 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11022 else
11023 ld_shlibs_CXX=no
11026 darwin* | rhapsody*)
11027 case $host_os in
11028 rhapsody* | darwin1.[012])
11029 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11031 *) # Darwin 1.3 on
11032 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11033 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11034 else
11035 case ${MACOSX_DEPLOYMENT_TARGET} in
11036 10.[012])
11037 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11039 10.*)
11040 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11042 esac
11045 esac
11046 archive_cmds_need_lc_CXX=no
11047 hardcode_direct_CXX=no
11048 hardcode_automatic_CXX=yes
11049 hardcode_shlibpath_var_CXX=unsupported
11050 whole_archive_flag_spec_CXX=''
11051 link_all_deplibs_CXX=yes
11053 if test "$GXX" = yes ; then
11054 lt_int_apple_cc_single_mod=no
11055 output_verbose_link_cmd='echo'
11056 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11057 lt_int_apple_cc_single_mod=yes
11059 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11060 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11061 else
11062 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11064 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11065 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11066 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11067 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}'
11068 else
11069 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11071 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}'
11072 else
11073 case $cc_basename in
11074 xlc*)
11075 output_verbose_link_cmd='echo'
11076 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11077 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11078 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11079 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11080 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}'
11083 ld_shlibs_CXX=no
11085 esac
11089 dgux*)
11090 case $cc_basename in
11091 ec++*)
11092 # FIXME: insert proper C++ library support
11093 ld_shlibs_CXX=no
11095 ghcx*)
11096 # Green Hills C++ Compiler
11097 # FIXME: insert proper C++ library support
11098 ld_shlibs_CXX=no
11101 # FIXME: insert proper C++ library support
11102 ld_shlibs_CXX=no
11104 esac
11106 freebsd[12]*)
11107 # C++ shared libraries reported to be fairly broken before switch to ELF
11108 ld_shlibs_CXX=no
11110 freebsd-elf*)
11111 archive_cmds_need_lc_CXX=no
11113 freebsd* | kfreebsd*-gnu | dragonfly*)
11114 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11115 # conventions
11116 ld_shlibs_CXX=yes
11118 gnu*)
11120 hpux9*)
11121 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11122 hardcode_libdir_separator_CXX=:
11123 export_dynamic_flag_spec_CXX='${wl}-E'
11124 hardcode_direct_CXX=yes
11125 hardcode_minus_L_CXX=yes # Not in the search PATH,
11126 # but as the default
11127 # location of the library.
11129 case $cc_basename in
11130 CC*)
11131 # FIXME: insert proper C++ library support
11132 ld_shlibs_CXX=no
11134 aCC*)
11135 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'
11136 # Commands to make compiler produce verbose output that lists
11137 # what "hidden" libraries, object files and flags are used when
11138 # linking a shared library.
11140 # There doesn't appear to be a way to prevent this compiler from
11141 # explicitly linking system object files so we need to strip them
11142 # from the output so that they don't get included in the library
11143 # dependencies.
11144 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'
11147 if test "$GXX" = yes; then
11148 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'
11149 else
11150 # FIXME: insert proper C++ library support
11151 ld_shlibs_CXX=no
11154 esac
11156 hpux10*|hpux11*)
11157 if test $with_gnu_ld = no; then
11158 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11159 hardcode_libdir_separator_CXX=:
11161 case $host_cpu in
11162 hppa*64*|ia64*)
11163 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11166 export_dynamic_flag_spec_CXX='${wl}-E'
11168 esac
11170 case $host_cpu in
11171 hppa*64*|ia64*)
11172 hardcode_direct_CXX=no
11173 hardcode_shlibpath_var_CXX=no
11176 hardcode_direct_CXX=yes
11177 hardcode_minus_L_CXX=yes # Not in the search PATH,
11178 # but as the default
11179 # location of the library.
11181 esac
11183 case $cc_basename in
11184 CC*)
11185 # FIXME: insert proper C++ library support
11186 ld_shlibs_CXX=no
11188 aCC*)
11189 case $host_cpu in
11190 hppa*64*)
11191 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11193 ia64*)
11194 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11197 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11199 esac
11200 # Commands to make compiler produce verbose output that lists
11201 # what "hidden" libraries, object files and flags are used when
11202 # linking a shared library.
11204 # There doesn't appear to be a way to prevent this compiler from
11205 # explicitly linking system object files so we need to strip them
11206 # from the output so that they don't get included in the library
11207 # dependencies.
11208 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'
11211 if test "$GXX" = yes; then
11212 if test $with_gnu_ld = no; then
11213 case $host_cpu in
11214 hppa*64*)
11215 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11217 ia64*)
11218 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11221 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'
11223 esac
11225 else
11226 # FIXME: insert proper C++ library support
11227 ld_shlibs_CXX=no
11230 esac
11232 interix3*)
11233 hardcode_direct_CXX=no
11234 hardcode_shlibpath_var_CXX=no
11235 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11236 export_dynamic_flag_spec_CXX='${wl}-E'
11237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11238 # Instead, shared libraries are loaded at an image base (0x10000000 by
11239 # default) and relocated if they conflict, which is a slow very memory
11240 # consuming and fragmenting process. To avoid this, we pick a random,
11241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11243 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11244 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11246 irix5* | irix6*)
11247 case $cc_basename in
11248 CC*)
11249 # SGI C++
11250 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11252 # Archives containing C++ object files must be created using
11253 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11254 # necessary to make sure instantiated templates are included
11255 # in the archive.
11256 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11259 if test "$GXX" = yes; then
11260 if test "$with_gnu_ld" = no; then
11261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11262 else
11263 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'
11266 link_all_deplibs_CXX=yes
11268 esac
11269 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11270 hardcode_libdir_separator_CXX=:
11272 linux*)
11273 case $cc_basename in
11274 KCC*)
11275 # Kuck and Associates, Inc. (KAI) C++ Compiler
11277 # KCC will only create a shared library if the output file
11278 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11279 # to its proper name (with version) after linking.
11280 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'
11281 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'
11282 # Commands to make compiler produce verbose output that lists
11283 # what "hidden" libraries, object files and flags are used when
11284 # linking a shared library.
11286 # There doesn't appear to be a way to prevent this compiler from
11287 # explicitly linking system object files so we need to strip them
11288 # from the output so that they don't get included in the library
11289 # dependencies.
11290 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'
11292 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11293 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11295 # Archives containing C++ object files must be created using
11296 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11297 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11299 icpc*)
11300 # Intel C++
11301 with_gnu_ld=yes
11302 # version 8.0 and above of icpc choke on multiply defined symbols
11303 # if we add $predep_objects and $postdep_objects, however 7.1 and
11304 # earlier do not add the objects themselves.
11305 case `$CC -V 2>&1` in
11306 *"Version 7."*)
11307 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11308 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'
11310 *) # Version 8.0 or newer
11311 tmp_idyn=
11312 case $host_cpu in
11313 ia64*) tmp_idyn=' -i_dynamic';;
11314 esac
11315 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11316 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11318 esac
11319 archive_cmds_need_lc_CXX=no
11320 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11321 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11322 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11324 pgCC*)
11325 # Portland Group C++ compiler
11326 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11327 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11329 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11331 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11333 cxx*)
11334 # Compaq C++
11335 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11336 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'
11338 runpath_var=LD_RUN_PATH
11339 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11340 hardcode_libdir_separator_CXX=:
11342 # Commands to make compiler produce verbose output that lists
11343 # what "hidden" libraries, object files and flags are used when
11344 # linking a shared library.
11346 # There doesn't appear to be a way to prevent this compiler from
11347 # explicitly linking system object files so we need to strip them
11348 # from the output so that they don't get included in the library
11349 # dependencies.
11350 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'
11352 esac
11354 lynxos*)
11355 # FIXME: insert proper C++ library support
11356 ld_shlibs_CXX=no
11358 m88k*)
11359 # FIXME: insert proper C++ library support
11360 ld_shlibs_CXX=no
11362 mvs*)
11363 case $cc_basename in
11364 cxx*)
11365 # FIXME: insert proper C++ library support
11366 ld_shlibs_CXX=no
11369 # FIXME: insert proper C++ library support
11370 ld_shlibs_CXX=no
11372 esac
11374 netbsd*)
11375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11376 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11377 wlarc=
11378 hardcode_libdir_flag_spec_CXX='-R$libdir'
11379 hardcode_direct_CXX=yes
11380 hardcode_shlibpath_var_CXX=no
11382 # Workaround some broken pre-1.5 toolchains
11383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11385 openbsd2*)
11386 # C++ shared libraries are fairly broken
11387 ld_shlibs_CXX=no
11389 openbsd*)
11390 hardcode_direct_CXX=yes
11391 hardcode_shlibpath_var_CXX=no
11392 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11395 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11396 export_dynamic_flag_spec_CXX='${wl}-E'
11397 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11399 output_verbose_link_cmd='echo'
11401 osf3*)
11402 case $cc_basename in
11403 KCC*)
11404 # Kuck and Associates, Inc. (KAI) C++ Compiler
11406 # KCC will only create a shared library if the output file
11407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11408 # to its proper name (with version) after linking.
11409 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'
11411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11412 hardcode_libdir_separator_CXX=:
11414 # Archives containing C++ object files must be created using
11415 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11416 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11419 RCC*)
11420 # Rational C++ 2.4.1
11421 # FIXME: insert proper C++ library support
11422 ld_shlibs_CXX=no
11424 cxx*)
11425 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11426 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11429 hardcode_libdir_separator_CXX=:
11431 # Commands to make compiler produce verbose output that lists
11432 # what "hidden" libraries, object files and flags are used when
11433 # linking a shared library.
11435 # There doesn't appear to be a way to prevent this compiler from
11436 # explicitly linking system object files so we need to strip them
11437 # from the output so that they don't get included in the library
11438 # dependencies.
11439 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'
11442 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11443 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11444 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11447 hardcode_libdir_separator_CXX=:
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11454 else
11455 # FIXME: insert proper C++ library support
11456 ld_shlibs_CXX=no
11459 esac
11461 osf4* | osf5*)
11462 case $cc_basename in
11463 KCC*)
11464 # Kuck and Associates, Inc. (KAI) C++ Compiler
11466 # KCC will only create a shared library if the output file
11467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11468 # to its proper name (with version) after linking.
11469 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'
11471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11472 hardcode_libdir_separator_CXX=:
11474 # Archives containing C++ object files must be created using
11475 # the KAI C++ compiler.
11476 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11478 RCC*)
11479 # Rational C++ 2.4.1
11480 # FIXME: insert proper C++ library support
11481 ld_shlibs_CXX=no
11483 cxx*)
11484 allow_undefined_flag_CXX=' -expect_unresolved \*'
11485 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11486 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11487 echo "-hidden">> $lib.exp~
11488 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11489 $rm $lib.exp'
11491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11492 hardcode_libdir_separator_CXX=:
11494 # Commands to make compiler produce verbose output that lists
11495 # what "hidden" libraries, object files and flags are used when
11496 # linking a shared library.
11498 # There doesn't appear to be a way to prevent this compiler from
11499 # explicitly linking system object files so we need to strip them
11500 # from the output so that they don't get included in the library
11501 # dependencies.
11502 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'
11505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11506 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11507 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11510 hardcode_libdir_separator_CXX=:
11512 # Commands to make compiler produce verbose output that lists
11513 # what "hidden" libraries, object files and flags are used when
11514 # linking a shared library.
11515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11517 else
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11522 esac
11524 psos*)
11525 # FIXME: insert proper C++ library support
11526 ld_shlibs_CXX=no
11528 sunos4*)
11529 case $cc_basename in
11530 CC*)
11531 # Sun C++ 4.x
11532 # FIXME: insert proper C++ library support
11533 ld_shlibs_CXX=no
11535 lcc*)
11536 # Lucid
11537 # FIXME: insert proper C++ library support
11538 ld_shlibs_CXX=no
11541 # FIXME: insert proper C++ library support
11542 ld_shlibs_CXX=no
11544 esac
11546 solaris*)
11547 case $cc_basename in
11548 CC*)
11549 # Sun C++ 4.2, 5.x and Centerline C++
11550 archive_cmds_need_lc_CXX=yes
11551 no_undefined_flag_CXX=' -zdefs'
11552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11553 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11554 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11556 hardcode_libdir_flag_spec_CXX='-R$libdir'
11557 hardcode_shlibpath_var_CXX=no
11558 case $host_os in
11559 solaris2.[0-5] | solaris2.[0-5].*) ;;
11561 # The C++ compiler is used as linker so we must use $wl
11562 # flag to pass the commands to the underlying system
11563 # linker. We must also pass each convience library through
11564 # to the system linker between allextract/defaultextract.
11565 # The C++ compiler will combine linker options so we
11566 # cannot just pass the convience library names through
11567 # without $wl.
11568 # Supported since Solaris 2.6 (maybe 2.5.1?)
11569 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11571 esac
11572 link_all_deplibs_CXX=yes
11574 output_verbose_link_cmd='echo'
11576 # Archives containing C++ object files must be created using
11577 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11578 # necessary to make sure instantiated templates are included
11579 # in the archive.
11580 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11582 gcx*)
11583 # Green Hills C++ Compiler
11584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11586 # The C++ compiler must be used to create the archive.
11587 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11590 # GNU C++ compiler with Solaris linker
11591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11592 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11593 if $CC --version | grep -v '^2\.7' > /dev/null; then
11594 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11595 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11596 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11598 # Commands to make compiler produce verbose output that lists
11599 # what "hidden" libraries, object files and flags are used when
11600 # linking a shared library.
11601 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11602 else
11603 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11604 # platform.
11605 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11606 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11607 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11609 # Commands to make compiler produce verbose output that lists
11610 # what "hidden" libraries, object files and flags are used when
11611 # linking a shared library.
11612 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11615 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11618 esac
11620 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11621 no_undefined_flag_CXX='${wl}-z,text'
11622 archive_cmds_need_lc_CXX=no
11623 hardcode_shlibpath_var_CXX=no
11624 runpath_var='LD_RUN_PATH'
11626 case $cc_basename in
11627 CC*)
11628 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11629 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11633 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 esac
11637 sysv5* | sco3.2v5* | sco5v6*)
11638 # Note: We can NOT use -z defs as we might desire, because we do not
11639 # link with -lc, and that would cause any symbols used from libc to
11640 # always be unresolved, which means just about no library would
11641 # ever link correctly. If we're not using GNU ld we use -z text
11642 # though, which does catch some bad symbols but isn't as heavy-handed
11643 # as -z defs.
11644 # For security reasons, it is highly recommended that you always
11645 # use absolute paths for naming shared libraries, and exclude the
11646 # DT_RUNPATH tag from executables and libraries. But doing so
11647 # requires that you compile everything twice, which is a pain.
11648 # So that behaviour is only enabled if SCOABSPATH is set to a
11649 # non-empty value in the environment. Most likely only useful for
11650 # creating official distributions of packages.
11651 # This is a hack until libtool officially supports absolute path
11652 # names for shared libraries.
11653 no_undefined_flag_CXX='${wl}-z,text'
11654 allow_undefined_flag_CXX='${wl}-z,nodefs'
11655 archive_cmds_need_lc_CXX=no
11656 hardcode_shlibpath_var_CXX=no
11657 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11658 hardcode_libdir_separator_CXX=':'
11659 link_all_deplibs_CXX=yes
11660 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11661 runpath_var='LD_RUN_PATH'
11663 case $cc_basename in
11664 CC*)
11665 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11666 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11670 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11672 esac
11674 tandem*)
11675 case $cc_basename in
11676 NCC*)
11677 # NonStop-UX NCC 3.20
11678 # FIXME: insert proper C++ library support
11679 ld_shlibs_CXX=no
11682 # FIXME: insert proper C++ library support
11683 ld_shlibs_CXX=no
11685 esac
11687 vxworks*)
11688 # FIXME: insert proper C++ library support
11689 ld_shlibs_CXX=no
11692 # FIXME: insert proper C++ library support
11693 ld_shlibs_CXX=no
11695 esac
11696 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11697 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11698 test "$ld_shlibs_CXX" = no && can_build_shared=no
11700 GCC_CXX="$GXX"
11701 LD_CXX="$LD"
11704 cat > conftest.$ac_ext <<EOF
11705 class Foo
11707 public:
11708 Foo (void) { a = 0; }
11709 private:
11710 int a;
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; then
11719 # Parse the compiler output and extract the necessary
11720 # objects, libraries and library flags.
11722 # Sentinel used to keep track of whether or not we are before
11723 # the conftest object file.
11724 pre_test_object_deps_done=no
11726 # The `*' in the case matches for architectures that use `case' in
11727 # $output_verbose_cmd can trigger glob expansion during the loop
11728 # eval without this substitution.
11729 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11731 for p in `eval $output_verbose_link_cmd`; do
11732 case $p in
11734 -L* | -R* | -l*)
11735 # Some compilers place space between "-{L,R}" and the path.
11736 # Remove the space.
11737 if test $p = "-L" \
11738 || test $p = "-R"; then
11739 prev=$p
11740 continue
11741 else
11742 prev=
11745 if test "$pre_test_object_deps_done" = no; then
11746 case $p in
11747 -L* | -R*)
11748 # Internal compiler library paths should come after those
11749 # provided the user. The postdeps already come after the
11750 # user supplied libs so there is no need to process them.
11751 if test -z "$compiler_lib_search_path_CXX"; then
11752 compiler_lib_search_path_CXX="${prev}${p}"
11753 else
11754 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11757 # The "-l" case would never come before the object being
11758 # linked, so don't bother handling this case.
11759 esac
11760 else
11761 if test -z "$postdeps_CXX"; then
11762 postdeps_CXX="${prev}${p}"
11763 else
11764 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11769 *.$objext)
11770 # This assumes that the test object file only shows up
11771 # once in the compiler output.
11772 if test "$p" = "conftest.$objext"; then
11773 pre_test_object_deps_done=yes
11774 continue
11777 if test "$pre_test_object_deps_done" = no; then
11778 if test -z "$predep_objects_CXX"; then
11779 predep_objects_CXX="$p"
11780 else
11781 predep_objects_CXX="$predep_objects_CXX $p"
11783 else
11784 if test -z "$postdep_objects_CXX"; then
11785 postdep_objects_CXX="$p"
11786 else
11787 postdep_objects_CXX="$postdep_objects_CXX $p"
11792 *) ;; # Ignore the rest.
11794 esac
11795 done
11797 # Clean up.
11798 rm -f a.out a.exe
11799 else
11800 echo "libtool.m4: error: problem compiling CXX test program"
11803 $rm -f confest.$objext
11805 # PORTME: override above test on systems where it is broken
11806 case $host_os in
11807 interix3*)
11808 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11809 # hack all around it, let's just trust "g++" to DTRT.
11810 predep_objects_CXX=
11811 postdep_objects_CXX=
11812 postdeps_CXX=
11815 solaris*)
11816 case $cc_basename in
11817 CC*)
11818 # Adding this requires a known-good setup of shared libraries for
11819 # Sun compiler versions before 5.6, else PIC objects from an old
11820 # archive will be linked into the output, leading to subtle bugs.
11821 postdeps_CXX='-lCstd -lCrun'
11823 esac
11825 esac
11828 case " $postdeps_CXX " in
11829 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11830 esac
11832 lt_prog_compiler_wl_CXX=
11833 lt_prog_compiler_pic_CXX=
11834 lt_prog_compiler_static_CXX=
11836 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11837 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11839 # C++ specific cases for pic, static, wl, etc.
11840 if test "$GXX" = yes; then
11841 lt_prog_compiler_wl_CXX='-Wl,'
11842 lt_prog_compiler_static_CXX='-static'
11844 case $host_os in
11845 aix*)
11846 # All AIX code is PIC.
11847 if test "$host_cpu" = ia64; then
11848 # AIX 5 now supports IA64 processor
11849 lt_prog_compiler_static_CXX='-Bstatic'
11852 amigaos*)
11853 # FIXME: we need at least 68020 code to build shared libraries, but
11854 # adding the `-m68020' flag to GCC prevents building anything better,
11855 # like `-m68040'.
11856 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11858 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11859 # PIC is the default for these OSes.
11861 mingw* | os2* | pw32*)
11862 # This hack is so that the source file can tell whether it is being
11863 # built for inclusion in a dll (and should export symbols for example).
11864 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11866 darwin* | rhapsody*)
11867 # PIC is the default on this platform
11868 # Common symbols not allowed in MH_DYLIB files
11869 lt_prog_compiler_pic_CXX='-fno-common'
11871 *djgpp*)
11872 # DJGPP does not support shared libraries at all
11873 lt_prog_compiler_pic_CXX=
11875 interix3*)
11876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11877 # Instead, we relocate shared libraries at runtime.
11879 sysv4*MP*)
11880 if test -d /usr/nec; then
11881 lt_prog_compiler_pic_CXX=-Kconform_pic
11884 hpux*)
11885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11886 # not for PA HP-UX.
11887 case $host_cpu in
11888 hppa*64*|ia64*)
11891 lt_prog_compiler_pic_CXX='-fPIC'
11893 esac
11896 lt_prog_compiler_pic_CXX='-fPIC'
11898 esac
11899 else
11900 case $host_os in
11901 aix4* | aix5*)
11902 # All AIX code is PIC.
11903 if test "$host_cpu" = ia64; then
11904 # AIX 5 now supports IA64 processor
11905 lt_prog_compiler_static_CXX='-Bstatic'
11906 else
11907 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11910 chorus*)
11911 case $cc_basename in
11912 cxch68*)
11913 # Green Hills C++ Compiler
11914 # _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"
11916 esac
11918 darwin*)
11919 # PIC is the default on this platform
11920 # Common symbols not allowed in MH_DYLIB files
11921 case $cc_basename in
11922 xlc*)
11923 lt_prog_compiler_pic_CXX='-qnocommon'
11924 lt_prog_compiler_wl_CXX='-Wl,'
11926 esac
11928 dgux*)
11929 case $cc_basename in
11930 ec++*)
11931 lt_prog_compiler_pic_CXX='-KPIC'
11933 ghcx*)
11934 # Green Hills C++ Compiler
11935 lt_prog_compiler_pic_CXX='-pic'
11939 esac
11941 freebsd* | kfreebsd*-gnu | dragonfly*)
11942 # FreeBSD uses GNU C++
11944 hpux9* | hpux10* | hpux11*)
11945 case $cc_basename in
11946 CC*)
11947 lt_prog_compiler_wl_CXX='-Wl,'
11948 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11949 if test "$host_cpu" != ia64; then
11950 lt_prog_compiler_pic_CXX='+Z'
11953 aCC*)
11954 lt_prog_compiler_wl_CXX='-Wl,'
11955 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11956 case $host_cpu in
11957 hppa*64*|ia64*)
11958 # +Z the default
11961 lt_prog_compiler_pic_CXX='+Z'
11963 esac
11967 esac
11969 interix*)
11970 # This is c89, which is MS Visual C++ (no shared libs)
11971 # Anyone wants to do a port?
11973 irix5* | irix6* | nonstopux*)
11974 case $cc_basename in
11975 CC*)
11976 lt_prog_compiler_wl_CXX='-Wl,'
11977 lt_prog_compiler_static_CXX='-non_shared'
11978 # CC pic flag -KPIC is the default.
11982 esac
11984 linux*)
11985 case $cc_basename in
11986 KCC*)
11987 # KAI C++ Compiler
11988 lt_prog_compiler_wl_CXX='--backend -Wl,'
11989 lt_prog_compiler_pic_CXX='-fPIC'
11991 icpc* | ecpc*)
11992 # Intel C++
11993 lt_prog_compiler_wl_CXX='-Wl,'
11994 lt_prog_compiler_pic_CXX='-KPIC'
11995 lt_prog_compiler_static_CXX='-static'
11997 pgCC*)
11998 # Portland Group C++ compiler.
11999 lt_prog_compiler_wl_CXX='-Wl,'
12000 lt_prog_compiler_pic_CXX='-fpic'
12001 lt_prog_compiler_static_CXX='-Bstatic'
12003 cxx*)
12004 # Compaq C++
12005 # Make sure the PIC flag is empty. It appears that all Alpha
12006 # Linux and Compaq Tru64 Unix objects are PIC.
12007 lt_prog_compiler_pic_CXX=
12008 lt_prog_compiler_static_CXX='-non_shared'
12012 esac
12014 lynxos*)
12016 m88k*)
12018 mvs*)
12019 case $cc_basename in
12020 cxx*)
12021 lt_prog_compiler_pic_CXX='-W c,exportall'
12025 esac
12027 netbsd*)
12029 osf3* | osf4* | osf5*)
12030 case $cc_basename in
12031 KCC*)
12032 lt_prog_compiler_wl_CXX='--backend -Wl,'
12034 RCC*)
12035 # Rational C++ 2.4.1
12036 lt_prog_compiler_pic_CXX='-pic'
12038 cxx*)
12039 # Digital/Compaq C++
12040 lt_prog_compiler_wl_CXX='-Wl,'
12041 # Make sure the PIC flag is empty. It appears that all Alpha
12042 # Linux and Compaq Tru64 Unix objects are PIC.
12043 lt_prog_compiler_pic_CXX=
12044 lt_prog_compiler_static_CXX='-non_shared'
12048 esac
12050 psos*)
12052 solaris*)
12053 case $cc_basename in
12054 CC*)
12055 # Sun C++ 4.2, 5.x and Centerline C++
12056 lt_prog_compiler_pic_CXX='-KPIC'
12057 lt_prog_compiler_static_CXX='-Bstatic'
12058 lt_prog_compiler_wl_CXX='-Qoption ld '
12060 gcx*)
12061 # Green Hills C++ Compiler
12062 lt_prog_compiler_pic_CXX='-PIC'
12066 esac
12068 sunos4*)
12069 case $cc_basename in
12070 CC*)
12071 # Sun C++ 4.x
12072 lt_prog_compiler_pic_CXX='-pic'
12073 lt_prog_compiler_static_CXX='-Bstatic'
12075 lcc*)
12076 # Lucid
12077 lt_prog_compiler_pic_CXX='-pic'
12081 esac
12083 tandem*)
12084 case $cc_basename in
12085 NCC*)
12086 # NonStop-UX NCC 3.20
12087 lt_prog_compiler_pic_CXX='-KPIC'
12091 esac
12093 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12094 case $cc_basename in
12095 CC*)
12096 lt_prog_compiler_wl_CXX='-Wl,'
12097 lt_prog_compiler_pic_CXX='-KPIC'
12098 lt_prog_compiler_static_CXX='-Bstatic'
12100 esac
12102 vxworks*)
12105 lt_prog_compiler_can_build_shared_CXX=no
12107 esac
12110 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12111 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12114 # Check to make sure the PIC flag actually works.
12116 if test -n "$lt_prog_compiler_pic_CXX"; then
12118 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12119 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12120 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123 lt_prog_compiler_pic_works_CXX=no
12124 ac_outfile=conftest.$ac_objext
12125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12126 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12127 # Insert the option either (1) after the last *FLAGS variable, or
12128 # (2) before a word containing "conftest.", or (3) at the end.
12129 # Note that $ac_compile itself does not contain backslashes and begins
12130 # with a dollar sign (not a hyphen), so the echo should work correctly.
12131 # The option is referenced via a variable to avoid confusing sed.
12132 lt_compile=`echo "$ac_compile" | $SED \
12133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12135 -e 's:$: $lt_compiler_flag:'`
12136 (eval echo "\"\$as_me:12136: $lt_compile\"" >&5)
12137 (eval "$lt_compile" 2>conftest.err)
12138 ac_status=$?
12139 cat conftest.err >&5
12140 echo "$as_me:12140: \$? = $ac_status" >&5
12141 if (exit $ac_status) && test -s "$ac_outfile"; then
12142 # The compiler can only warn and ignore the option if not recognized
12143 # So say no if there are warnings other than the usual output.
12144 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12147 lt_prog_compiler_pic_works_CXX=yes
12150 $rm conftest*
12153 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12154 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12156 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12157 case $lt_prog_compiler_pic_CXX in
12158 "" | " "*) ;;
12159 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12160 esac
12161 else
12162 lt_prog_compiler_pic_CXX=
12163 lt_prog_compiler_can_build_shared_CXX=no
12167 case $host_os in
12168 # For platforms which do not support PIC, -DPIC is meaningless:
12169 *djgpp*)
12170 lt_prog_compiler_pic_CXX=
12173 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12175 esac
12178 # Check to make sure the static flag actually works.
12180 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12181 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12182 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12183 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186 lt_prog_compiler_static_works_CXX=no
12187 save_LDFLAGS="$LDFLAGS"
12188 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12189 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12191 # The linker can only warn and ignore the option if not recognized
12192 # So say no if there are warnings
12193 if test -s conftest.err; then
12194 # Append any errors to the config.log.
12195 cat conftest.err 1>&5
12196 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12198 if diff conftest.exp conftest.er2 >/dev/null; then
12199 lt_prog_compiler_static_works_CXX=yes
12201 else
12202 lt_prog_compiler_static_works_CXX=yes
12205 $rm conftest*
12206 LDFLAGS="$save_LDFLAGS"
12209 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12210 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12212 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12214 else
12215 lt_prog_compiler_static_CXX=
12219 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12220 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12221 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 lt_cv_prog_compiler_c_o_CXX=no
12225 $rm -r conftest 2>/dev/null
12226 mkdir conftest
12227 cd conftest
12228 mkdir out
12229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12231 lt_compiler_flag="-o out/conftest2.$ac_objext"
12232 # Insert the option either (1) after the last *FLAGS variable, or
12233 # (2) before a word containing "conftest.", or (3) at the end.
12234 # Note that $ac_compile itself does not contain backslashes and begins
12235 # with a dollar sign (not a hyphen), so the echo should work correctly.
12236 lt_compile=`echo "$ac_compile" | $SED \
12237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12239 -e 's:$: $lt_compiler_flag:'`
12240 (eval echo "\"\$as_me:12240: $lt_compile\"" >&5)
12241 (eval "$lt_compile" 2>out/conftest.err)
12242 ac_status=$?
12243 cat out/conftest.err >&5
12244 echo "$as_me:12244: \$? = $ac_status" >&5
12245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12246 then
12247 # The compiler can only warn and ignore the option if not recognized
12248 # So say no if there are warnings
12249 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12252 lt_cv_prog_compiler_c_o_CXX=yes
12255 chmod u+w . 2>&5
12256 $rm conftest*
12257 # SGI C++ compiler will create directory out/ii_files/ for
12258 # template instantiation
12259 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12260 $rm out/* && rmdir out
12261 cd ..
12262 rmdir conftest
12263 $rm conftest*
12266 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12267 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12270 hard_links="nottested"
12271 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12272 # do not overwrite the value of need_locks provided by the user
12273 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12274 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12275 hard_links=yes
12276 $rm conftest*
12277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12278 touch conftest.a
12279 ln conftest.a conftest.b 2>&5 || hard_links=no
12280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12281 { echo "$as_me:$LINENO: result: $hard_links" >&5
12282 echo "${ECHO_T}$hard_links" >&6; }
12283 if test "$hard_links" = no; then
12284 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12285 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12286 need_locks=warn
12288 else
12289 need_locks=no
12292 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12293 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12295 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12296 case $host_os in
12297 aix4* | aix5*)
12298 # If we're using GNU nm, then we don't want the "-C" option.
12299 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12300 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12301 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'
12302 else
12303 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'
12306 pw32*)
12307 export_symbols_cmds_CXX="$ltdll_cmds"
12309 cygwin* | mingw*)
12310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12313 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12315 esac
12317 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12318 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12319 test "$ld_shlibs_CXX" = no && can_build_shared=no
12322 # Do we need to explicitly link libc?
12324 case "x$archive_cmds_need_lc_CXX" in
12325 x|xyes)
12326 # Assume -lc should be added
12327 archive_cmds_need_lc_CXX=yes
12329 if test "$enable_shared" = yes && test "$GCC" = yes; then
12330 case $archive_cmds_CXX in
12331 *'~'*)
12332 # FIXME: we may have to deal with multi-command sequences.
12334 '$CC '*)
12335 # Test whether the compiler implicitly links with -lc since on some
12336 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12337 # to ld, don't add -lc before -lgcc.
12338 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12339 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12340 $rm conftest*
12341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } 2>conftest.err; then
12348 soname=conftest
12349 lib=conftest
12350 libobjs=conftest.$ac_objext
12351 deplibs=
12352 wl=$lt_prog_compiler_wl_CXX
12353 pic_flag=$lt_prog_compiler_pic_CXX
12354 compiler_flags=-v
12355 linker_flags=-v
12356 verstring=
12357 output_objdir=.
12358 libname=conftest
12359 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12360 allow_undefined_flag_CXX=
12361 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12362 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }
12366 then
12367 archive_cmds_need_lc_CXX=no
12368 else
12369 archive_cmds_need_lc_CXX=yes
12371 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12372 else
12373 cat conftest.err 1>&5
12375 $rm conftest*
12376 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12377 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12379 esac
12382 esac
12384 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12385 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12386 library_names_spec=
12387 libname_spec='lib$name'
12388 soname_spec=
12389 shrext_cmds=".so"
12390 postinstall_cmds=
12391 postuninstall_cmds=
12392 finish_cmds=
12393 finish_eval=
12394 shlibpath_var=
12395 shlibpath_overrides_runpath=unknown
12396 version_type=none
12397 dynamic_linker="$host_os ld.so"
12398 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12399 if test "$GCC" = yes; then
12400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12401 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12402 # if the path contains ";" then we assume it to be the separator
12403 # otherwise default to the standard path separator (i.e. ":") - it is
12404 # assumed that no part of a normal pathname contains ";" but that should
12405 # okay in the real world where ";" in dirpaths is itself problematic.
12406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12407 else
12408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12410 else
12411 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12413 need_lib_prefix=unknown
12414 hardcode_into_libs=no
12416 # when you set need_version to no, make sure it does not cause -set_version
12417 # flags to be left without arguments
12418 need_version=unknown
12420 case $host_os in
12421 aix3*)
12422 version_type=linux
12423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12424 shlibpath_var=LIBPATH
12426 # AIX 3 has no versioning support, so we append a major version to the name.
12427 soname_spec='${libname}${release}${shared_ext}$major'
12430 aix4* | aix5*)
12431 version_type=linux
12432 need_lib_prefix=no
12433 need_version=no
12434 hardcode_into_libs=yes
12435 if test "$host_cpu" = ia64; then
12436 # AIX 5 supports IA64
12437 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12438 shlibpath_var=LD_LIBRARY_PATH
12439 else
12440 # With GCC up to 2.95.x, collect2 would create an import file
12441 # for dependence libraries. The import file would start with
12442 # the line `#! .'. This would cause the generated library to
12443 # depend on `.', always an invalid library. This was fixed in
12444 # development snapshots of GCC prior to 3.0.
12445 case $host_os in
12446 aix4 | aix4.[01] | aix4.[01].*)
12447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12448 echo ' yes '
12449 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12451 else
12452 can_build_shared=no
12455 esac
12456 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12457 # soname into executable. Probably we can add versioning support to
12458 # collect2, so additional links can be useful in future.
12459 if test "$aix_use_runtimelinking" = yes; then
12460 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12461 # instead of lib<name>.a to let people know that these are not
12462 # typical AIX shared libraries.
12463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12464 else
12465 # We preserve .a as extension for shared libraries through AIX4.2
12466 # and later when we are not doing run time linking.
12467 library_names_spec='${libname}${release}.a $libname.a'
12468 soname_spec='${libname}${release}${shared_ext}$major'
12470 shlibpath_var=LIBPATH
12474 amigaos*)
12475 library_names_spec='$libname.ixlibrary $libname.a'
12476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12477 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'
12480 beos*)
12481 library_names_spec='${libname}${shared_ext}'
12482 dynamic_linker="$host_os ld.so"
12483 shlibpath_var=LIBRARY_PATH
12486 bsdi[45]*)
12487 version_type=linux
12488 need_version=no
12489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12490 soname_spec='${libname}${release}${shared_ext}$major'
12491 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12492 shlibpath_var=LD_LIBRARY_PATH
12493 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12494 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12495 # the default ld.so.conf also contains /usr/contrib/lib and
12496 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12497 # libtool to hard-code these into programs
12500 cygwin* | mingw* | pw32*)
12501 version_type=windows
12502 shrext_cmds=".dll"
12503 need_version=no
12504 need_lib_prefix=no
12506 case $GCC,$host_os in
12507 yes,cygwin* | yes,mingw* | yes,pw32*)
12508 library_names_spec='$libname.dll.a'
12509 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12510 postinstall_cmds='base_file=`basename \${file}`~
12511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12512 dldir=$destdir/`dirname \$dlpath`~
12513 test -d \$dldir || mkdir -p \$dldir~
12514 $install_prog $dir/$dlname \$dldir/$dlname~
12515 chmod a+x \$dldir/$dlname'
12516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12517 dlpath=$dir/\$dldll~
12518 $rm \$dlpath'
12519 shlibpath_overrides_runpath=yes
12521 case $host_os in
12522 cygwin*)
12523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12525 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12527 mingw*)
12528 # MinGW DLLs use traditional 'lib' prefix
12529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12531 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12532 # It is most probably a Windows format PATH printed by
12533 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12534 # path with ; separators, and with drive letters. We can handle the
12535 # drive letters (cygwin fileutils understands them), so leave them,
12536 # especially as we might pass files found there to a mingw objdump,
12537 # which wouldn't understand a cygwinified path. Ahh.
12538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12539 else
12540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12543 pw32*)
12544 # pw32 DLLs use 'pw' prefix rather than 'lib'
12545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12547 esac
12551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12553 esac
12554 dynamic_linker='Win32 ld.exe'
12555 # FIXME: first we should search . and the directory the executable is in
12556 shlibpath_var=PATH
12559 darwin* | rhapsody*)
12560 dynamic_linker="$host_os dyld"
12561 version_type=darwin
12562 need_lib_prefix=no
12563 need_version=no
12564 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12565 soname_spec='${libname}${release}${major}$shared_ext'
12566 shlibpath_overrides_runpath=yes
12567 shlibpath_var=DYLD_LIBRARY_PATH
12568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12569 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12570 if test "$GCC" = yes; then
12571 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"`
12572 else
12573 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12575 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12578 dgux*)
12579 version_type=linux
12580 need_lib_prefix=no
12581 need_version=no
12582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12583 soname_spec='${libname}${release}${shared_ext}$major'
12584 shlibpath_var=LD_LIBRARY_PATH
12587 freebsd1*)
12588 dynamic_linker=no
12591 kfreebsd*-gnu)
12592 version_type=linux
12593 need_lib_prefix=no
12594 need_version=no
12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12596 soname_spec='${libname}${release}${shared_ext}$major'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 shlibpath_overrides_runpath=no
12599 hardcode_into_libs=yes
12600 dynamic_linker='GNU ld.so'
12603 freebsd* | dragonfly*)
12604 # DragonFly does not have aout. When/if they implement a new
12605 # versioning mechanism, adjust this.
12606 if test -x /usr/bin/objformat; then
12607 objformat=`/usr/bin/objformat`
12608 else
12609 case $host_os in
12610 freebsd[123]*) objformat=aout ;;
12611 *) objformat=elf ;;
12612 esac
12614 version_type=freebsd-$objformat
12615 case $version_type in
12616 freebsd-elf*)
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12618 need_version=no
12619 need_lib_prefix=no
12621 freebsd-*)
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12623 need_version=yes
12625 esac
12626 shlibpath_var=LD_LIBRARY_PATH
12627 case $host_os in
12628 freebsd2*)
12629 shlibpath_overrides_runpath=yes
12631 freebsd3.[01]* | freebsdelf3.[01]*)
12632 shlibpath_overrides_runpath=yes
12633 hardcode_into_libs=yes
12635 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12636 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12637 shlibpath_overrides_runpath=no
12638 hardcode_into_libs=yes
12640 freebsd*) # from 4.6 on
12641 shlibpath_overrides_runpath=yes
12642 hardcode_into_libs=yes
12644 esac
12647 gnu*)
12648 version_type=linux
12649 need_lib_prefix=no
12650 need_version=no
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12652 soname_spec='${libname}${release}${shared_ext}$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12654 hardcode_into_libs=yes
12657 hpux9* | hpux10* | hpux11*)
12658 # Give a soname corresponding to the major version so that dld.sl refuses to
12659 # link against other versions.
12660 version_type=sunos
12661 need_lib_prefix=no
12662 need_version=no
12663 case $host_cpu in
12664 ia64*)
12665 shrext_cmds='.so'
12666 hardcode_into_libs=yes
12667 dynamic_linker="$host_os dld.so"
12668 shlibpath_var=LD_LIBRARY_PATH
12669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12671 soname_spec='${libname}${release}${shared_ext}$major'
12672 if test "X$HPUX_IA64_MODE" = X32; then
12673 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12674 else
12675 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12679 hppa*64*)
12680 shrext_cmds='.sl'
12681 hardcode_into_libs=yes
12682 dynamic_linker="$host_os dld.sl"
12683 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12691 shrext_cmds='.sl'
12692 dynamic_linker="$host_os dld.sl"
12693 shlibpath_var=SHLIB_PATH
12694 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12696 soname_spec='${libname}${release}${shared_ext}$major'
12698 esac
12699 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12700 postinstall_cmds='chmod 555 $lib'
12703 interix3*)
12704 version_type=linux
12705 need_lib_prefix=no
12706 need_version=no
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12708 soname_spec='${libname}${release}${shared_ext}$major'
12709 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 shlibpath_overrides_runpath=no
12712 hardcode_into_libs=yes
12715 irix5* | irix6* | nonstopux*)
12716 case $host_os in
12717 nonstopux*) version_type=nonstopux ;;
12719 if test "$lt_cv_prog_gnu_ld" = yes; then
12720 version_type=linux
12721 else
12722 version_type=irix
12723 fi ;;
12724 esac
12725 need_lib_prefix=no
12726 need_version=no
12727 soname_spec='${libname}${release}${shared_ext}$major'
12728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12729 case $host_os in
12730 irix5* | nonstopux*)
12731 libsuff= shlibsuff=
12734 case $LD in # libtool.m4 will add one of these switches to LD
12735 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12736 libsuff= shlibsuff= libmagic=32-bit;;
12737 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12738 libsuff=32 shlibsuff=N32 libmagic=N32;;
12739 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12740 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12741 *) libsuff= shlibsuff= libmagic=never-match;;
12742 esac
12744 esac
12745 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12746 shlibpath_overrides_runpath=no
12747 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12748 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12749 hardcode_into_libs=yes
12752 # No shared lib support for Linux oldld, aout, or coff.
12753 linux*oldld* | linux*aout* | linux*coff*)
12754 dynamic_linker=no
12757 # This must be Linux ELF.
12758 linux*)
12759 version_type=linux
12760 need_lib_prefix=no
12761 need_version=no
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763 soname_spec='${libname}${release}${shared_ext}$major'
12764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=no
12767 # This implies no fast_install, which is unacceptable.
12768 # Some rework will be needed to allow for fast_install
12769 # before this can be enabled.
12770 hardcode_into_libs=yes
12772 # Append ld.so.conf contents to the search path
12773 if test -f /etc/ld.so.conf; then
12774 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12778 # We used to test for /lib/ld.so.1 and disable shared libraries on
12779 # powerpc, because MkLinux only supported shared libraries with the
12780 # GNU dynamic linker. Since this was broken with cross compilers,
12781 # most powerpc-linux boxes support dynamic linking these days and
12782 # people can always --disable-shared, the test was removed, and we
12783 # assume the GNU/Linux dynamic linker is in use.
12784 dynamic_linker='GNU/Linux ld.so'
12787 knetbsd*-gnu)
12788 version_type=linux
12789 need_lib_prefix=no
12790 need_version=no
12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12792 soname_spec='${libname}${release}${shared_ext}$major'
12793 shlibpath_var=LD_LIBRARY_PATH
12794 shlibpath_overrides_runpath=no
12795 hardcode_into_libs=yes
12796 dynamic_linker='GNU ld.so'
12799 netbsd*)
12800 version_type=sunos
12801 need_lib_prefix=no
12802 need_version=no
12803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12806 dynamic_linker='NetBSD (a.out) ld.so'
12807 else
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12809 soname_spec='${libname}${release}${shared_ext}$major'
12810 dynamic_linker='NetBSD ld.elf_so'
12812 shlibpath_var=LD_LIBRARY_PATH
12813 shlibpath_overrides_runpath=yes
12814 hardcode_into_libs=yes
12817 newsos6)
12818 version_type=linux
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 shlibpath_overrides_runpath=yes
12824 nto-qnx*)
12825 version_type=linux
12826 need_lib_prefix=no
12827 need_version=no
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12829 soname_spec='${libname}${release}${shared_ext}$major'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=yes
12834 openbsd*)
12835 version_type=sunos
12836 sys_lib_dlsearch_path_spec="/usr/lib"
12837 need_lib_prefix=no
12838 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12839 case $host_os in
12840 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12841 *) need_version=no ;;
12842 esac
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12847 case $host_os in
12848 openbsd2.[89] | openbsd2.[89].*)
12849 shlibpath_overrides_runpath=no
12852 shlibpath_overrides_runpath=yes
12854 esac
12855 else
12856 shlibpath_overrides_runpath=yes
12860 os2*)
12861 libname_spec='$name'
12862 shrext_cmds=".dll"
12863 need_lib_prefix=no
12864 library_names_spec='$libname${shared_ext} $libname.a'
12865 dynamic_linker='OS/2 ld.exe'
12866 shlibpath_var=LIBPATH
12869 osf3* | osf4* | osf5*)
12870 version_type=osf
12871 need_lib_prefix=no
12872 need_version=no
12873 soname_spec='${libname}${release}${shared_ext}$major'
12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12875 shlibpath_var=LD_LIBRARY_PATH
12876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12880 solaris*)
12881 version_type=linux
12882 need_lib_prefix=no
12883 need_version=no
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 shlibpath_overrides_runpath=yes
12888 hardcode_into_libs=yes
12889 # ldd complains unless libraries are executable
12890 postinstall_cmds='chmod +x $lib'
12893 sunos4*)
12894 version_type=sunos
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12896 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12897 shlibpath_var=LD_LIBRARY_PATH
12898 shlibpath_overrides_runpath=yes
12899 if test "$with_gnu_ld" = yes; then
12900 need_lib_prefix=no
12902 need_version=yes
12905 sysv4 | sysv4.3*)
12906 version_type=linux
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 case $host_vendor in
12911 sni)
12912 shlibpath_overrides_runpath=no
12913 need_lib_prefix=no
12914 export_dynamic_flag_spec='${wl}-Blargedynsym'
12915 runpath_var=LD_RUN_PATH
12917 siemens)
12918 need_lib_prefix=no
12920 motorola)
12921 need_lib_prefix=no
12922 need_version=no
12923 shlibpath_overrides_runpath=no
12924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12926 esac
12929 sysv4*MP*)
12930 if test -d /usr/nec ;then
12931 version_type=linux
12932 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12933 soname_spec='$libname${shared_ext}.$major'
12934 shlibpath_var=LD_LIBRARY_PATH
12938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12939 version_type=freebsd-elf
12940 need_lib_prefix=no
12941 need_version=no
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12943 soname_spec='${libname}${release}${shared_ext}$major'
12944 shlibpath_var=LD_LIBRARY_PATH
12945 hardcode_into_libs=yes
12946 if test "$with_gnu_ld" = yes; then
12947 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12948 shlibpath_overrides_runpath=no
12949 else
12950 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12951 shlibpath_overrides_runpath=yes
12952 case $host_os in
12953 sco3.2v5*)
12954 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12956 esac
12958 sys_lib_dlsearch_path_spec='/usr/lib'
12961 uts4*)
12962 version_type=linux
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 shlibpath_var=LD_LIBRARY_PATH
12969 dynamic_linker=no
12971 esac
12972 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12973 echo "${ECHO_T}$dynamic_linker" >&6; }
12974 test "$dynamic_linker" = no && can_build_shared=no
12976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12977 if test "$GCC" = yes; then
12978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12981 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12983 hardcode_action_CXX=
12984 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12985 test -n "$runpath_var_CXX" || \
12986 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12988 # We can hardcode non-existant directories.
12989 if test "$hardcode_direct_CXX" != no &&
12990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12991 # have to relink, otherwise we might link with an installed library
12992 # when we should be linking with a yet-to-be-installed one
12993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12994 test "$hardcode_minus_L_CXX" != no; then
12995 # Linking always hardcodes the temporary library directory.
12996 hardcode_action_CXX=relink
12997 else
12998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12999 hardcode_action_CXX=immediate
13001 else
13002 # We cannot hardcode anything, or else we can only hardcode existing
13003 # directories.
13004 hardcode_action_CXX=unsupported
13006 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13007 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13009 if test "$hardcode_action_CXX" = relink; then
13010 # Fast installation is not supported
13011 enable_fast_install=no
13012 elif test "$shlibpath_overrides_runpath" = yes ||
13013 test "$enable_shared" = no; then
13014 # Fast installation is not necessary
13015 enable_fast_install=needless
13019 # The else clause should only fire when bootstrapping the
13020 # libtool distribution, otherwise you forgot to ship ltmain.sh
13021 # with your package, and you will get complaints that there are
13022 # no rules to generate ltmain.sh.
13023 if test -f "$ltmain"; then
13024 # See if we are running on zsh, and set the options which allow our commands through
13025 # without removal of \ escapes.
13026 if test -n "${ZSH_VERSION+set}" ; then
13027 setopt NO_GLOB_SUBST
13029 # Now quote all the things that may contain metacharacters while being
13030 # careful not to overquote the AC_SUBSTed values. We take copies of the
13031 # variables and quote the copies for generation of the libtool script.
13032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13033 SED SHELL STRIP \
13034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13036 deplibs_check_method reload_flag reload_cmds need_locks \
13037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13038 lt_cv_sys_global_symbol_to_c_name_address \
13039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13040 old_postinstall_cmds old_postuninstall_cmds \
13041 compiler_CXX \
13042 CC_CXX \
13043 LD_CXX \
13044 lt_prog_compiler_wl_CXX \
13045 lt_prog_compiler_pic_CXX \
13046 lt_prog_compiler_static_CXX \
13047 lt_prog_compiler_no_builtin_flag_CXX \
13048 export_dynamic_flag_spec_CXX \
13049 thread_safe_flag_spec_CXX \
13050 whole_archive_flag_spec_CXX \
13051 enable_shared_with_static_runtimes_CXX \
13052 old_archive_cmds_CXX \
13053 old_archive_from_new_cmds_CXX \
13054 predep_objects_CXX \
13055 postdep_objects_CXX \
13056 predeps_CXX \
13057 postdeps_CXX \
13058 compiler_lib_search_path_CXX \
13059 archive_cmds_CXX \
13060 archive_expsym_cmds_CXX \
13061 postinstall_cmds_CXX \
13062 postuninstall_cmds_CXX \
13063 old_archive_from_expsyms_cmds_CXX \
13064 allow_undefined_flag_CXX \
13065 no_undefined_flag_CXX \
13066 export_symbols_cmds_CXX \
13067 hardcode_libdir_flag_spec_CXX \
13068 hardcode_libdir_flag_spec_ld_CXX \
13069 hardcode_libdir_separator_CXX \
13070 hardcode_automatic_CXX \
13071 module_cmds_CXX \
13072 module_expsym_cmds_CXX \
13073 lt_cv_prog_compiler_c_o_CXX \
13074 exclude_expsyms_CXX \
13075 include_expsyms_CXX; do
13077 case $var in
13078 old_archive_cmds_CXX | \
13079 old_archive_from_new_cmds_CXX | \
13080 archive_cmds_CXX | \
13081 archive_expsym_cmds_CXX | \
13082 module_cmds_CXX | \
13083 module_expsym_cmds_CXX | \
13084 old_archive_from_expsyms_cmds_CXX | \
13085 export_symbols_cmds_CXX | \
13086 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13087 postinstall_cmds | postuninstall_cmds | \
13088 old_postinstall_cmds | old_postuninstall_cmds | \
13089 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13090 # Double-quote double-evaled strings.
13091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13096 esac
13097 done
13099 case $lt_echo in
13100 *'\$0 --fallback-echo"')
13101 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13103 esac
13105 cfgfile="$ofile"
13107 cat <<__EOF__ >> "$cfgfile"
13108 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13112 # Shell to use when invoking shell scripts.
13113 SHELL=$lt_SHELL
13115 # Whether or not to build shared libraries.
13116 build_libtool_libs=$enable_shared
13118 # Whether or not to build static libraries.
13119 build_old_libs=$enable_static
13121 # Whether or not to add -lc for building shared libraries.
13122 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13124 # Whether or not to disallow shared libs when runtime libs are static
13125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13127 # Whether or not to optimize for fast installation.
13128 fast_install=$enable_fast_install
13130 # The host system.
13131 host_alias=$host_alias
13132 host=$host
13133 host_os=$host_os
13135 # The build system.
13136 build_alias=$build_alias
13137 build=$build
13138 build_os=$build_os
13140 # An echo program that does not interpret backslashes.
13141 echo=$lt_echo
13143 # The archiver.
13144 AR=$lt_AR
13145 AR_FLAGS=$lt_AR_FLAGS
13147 # A C compiler.
13148 LTCC=$lt_LTCC
13150 # LTCC compiler flags.
13151 LTCFLAGS=$lt_LTCFLAGS
13153 # A language-specific compiler.
13154 CC=$lt_compiler_CXX
13156 # Is the compiler the GNU C compiler?
13157 with_gcc=$GCC_CXX
13159 # An ERE matcher.
13160 EGREP=$lt_EGREP
13162 # The linker used to build libraries.
13163 LD=$lt_LD_CXX
13165 # Whether we need hard or soft links.
13166 LN_S=$lt_LN_S
13168 # A BSD-compatible nm program.
13169 NM=$lt_NM
13171 # A symbol stripping program
13172 STRIP=$lt_STRIP
13174 # Used to examine libraries when file_magic_cmd begins "file"
13175 MAGIC_CMD=$MAGIC_CMD
13177 # Used on cygwin: DLL creation program.
13178 DLLTOOL="$DLLTOOL"
13180 # Used on cygwin: object dumper.
13181 OBJDUMP="$OBJDUMP"
13183 # Used on cygwin: assembler.
13184 AS="$AS"
13186 # The name of the directory that contains temporary libtool files.
13187 objdir=$objdir
13189 # How to create reloadable object files.
13190 reload_flag=$lt_reload_flag
13191 reload_cmds=$lt_reload_cmds
13193 # How to pass a linker flag through the compiler.
13194 wl=$lt_lt_prog_compiler_wl_CXX
13196 # Object file suffix (normally "o").
13197 objext="$ac_objext"
13199 # Old archive suffix (normally "a").
13200 libext="$libext"
13202 # Shared library suffix (normally ".so").
13203 shrext_cmds='$shrext_cmds'
13205 # Executable file suffix (normally "").
13206 exeext="$exeext"
13208 # Additional compiler flags for building library objects.
13209 pic_flag=$lt_lt_prog_compiler_pic_CXX
13210 pic_mode=$pic_mode
13212 # What is the maximum length of a command?
13213 max_cmd_len=$lt_cv_sys_max_cmd_len
13215 # Does compiler simultaneously support -c and -o options?
13216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13218 # Must we lock files when doing compilation?
13219 need_locks=$lt_need_locks
13221 # Do we need the lib prefix for modules?
13222 need_lib_prefix=$need_lib_prefix
13224 # Do we need a version for libraries?
13225 need_version=$need_version
13227 # Whether dlopen is supported.
13228 dlopen_support=$enable_dlopen
13230 # Whether dlopen of programs is supported.
13231 dlopen_self=$enable_dlopen_self
13233 # Whether dlopen of statically linked programs is supported.
13234 dlopen_self_static=$enable_dlopen_self_static
13236 # Compiler flag to prevent dynamic linking.
13237 link_static_flag=$lt_lt_prog_compiler_static_CXX
13239 # Compiler flag to turn off builtin functions.
13240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13242 # Compiler flag to allow reflexive dlopens.
13243 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13245 # Compiler flag to generate shared objects directly from archives.
13246 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13248 # Compiler flag to generate thread-safe objects.
13249 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13251 # Library versioning type.
13252 version_type=$version_type
13254 # Format of library name prefix.
13255 libname_spec=$lt_libname_spec
13257 # List of archive names. First name is the real one, the rest are links.
13258 # The last name is the one that the linker finds with -lNAME.
13259 library_names_spec=$lt_library_names_spec
13261 # The coded name of the library, if different from the real name.
13262 soname_spec=$lt_soname_spec
13264 # Commands used to build and install an old-style archive.
13265 RANLIB=$lt_RANLIB
13266 old_archive_cmds=$lt_old_archive_cmds_CXX
13267 old_postinstall_cmds=$lt_old_postinstall_cmds
13268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13270 # Create an old-style archive from a shared archive.
13271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13273 # Create a temporary old-style archive to link instead of a shared archive.
13274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13276 # Commands used to build and install a shared archive.
13277 archive_cmds=$lt_archive_cmds_CXX
13278 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13279 postinstall_cmds=$lt_postinstall_cmds
13280 postuninstall_cmds=$lt_postuninstall_cmds
13282 # Commands used to build a loadable module (assumed same as above if empty)
13283 module_cmds=$lt_module_cmds_CXX
13284 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13286 # Commands to strip libraries.
13287 old_striplib=$lt_old_striplib
13288 striplib=$lt_striplib
13290 # Dependencies to place before the objects being linked to create a
13291 # shared library.
13292 predep_objects=$lt_predep_objects_CXX
13294 # Dependencies to place after the objects being linked to create a
13295 # shared library.
13296 postdep_objects=$lt_postdep_objects_CXX
13298 # Dependencies to place before the objects being linked to create a
13299 # shared library.
13300 predeps=$lt_predeps_CXX
13302 # Dependencies to place after the objects being linked to create a
13303 # shared library.
13304 postdeps=$lt_postdeps_CXX
13306 # The library search path used internally by the compiler when linking
13307 # a shared library.
13308 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13310 # Method to check whether dependent libraries are shared objects.
13311 deplibs_check_method=$lt_deplibs_check_method
13313 # Command to use when deplibs_check_method == file_magic.
13314 file_magic_cmd=$lt_file_magic_cmd
13316 # Flag that allows shared libraries with undefined symbols to be built.
13317 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13319 # Flag that forces no undefined symbols.
13320 no_undefined_flag=$lt_no_undefined_flag_CXX
13322 # Commands used to finish a libtool library installation in a directory.
13323 finish_cmds=$lt_finish_cmds
13325 # Same as above, but a single script fragment to be evaled but not shown.
13326 finish_eval=$lt_finish_eval
13328 # Take the output of nm and produce a listing of raw symbols and C names.
13329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13331 # Transform the output of nm in a proper C declaration
13332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13334 # Transform the output of nm in a C name address pair
13335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13337 # This is the shared library runtime path variable.
13338 runpath_var=$runpath_var
13340 # This is the shared library path variable.
13341 shlibpath_var=$shlibpath_var
13343 # Is shlibpath searched before the hard-coded library search path?
13344 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13346 # How to hardcode a shared library path into an executable.
13347 hardcode_action=$hardcode_action_CXX
13349 # Whether we should hardcode library paths into libraries.
13350 hardcode_into_libs=$hardcode_into_libs
13352 # Flag to hardcode \$libdir into a binary during linking.
13353 # This must work even if \$libdir does not exist.
13354 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13356 # If ld is used when linking, flag to hardcode \$libdir into
13357 # a binary during linking. This must work even if \$libdir does
13358 # not exist.
13359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13361 # Whether we need a single -rpath flag with a separated argument.
13362 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13364 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13365 # resulting binary.
13366 hardcode_direct=$hardcode_direct_CXX
13368 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13369 # resulting binary.
13370 hardcode_minus_L=$hardcode_minus_L_CXX
13372 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13373 # the resulting binary.
13374 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13376 # Set to yes if building a shared library automatically hardcodes DIR into the library
13377 # and all subsequent libraries and executables linked against it.
13378 hardcode_automatic=$hardcode_automatic_CXX
13380 # Variables whose values should be saved in libtool wrapper scripts and
13381 # restored at relink time.
13382 variables_saved_for_relink="$variables_saved_for_relink"
13384 # Whether libtool must link a program against all its dependency libraries.
13385 link_all_deplibs=$link_all_deplibs_CXX
13387 # Compile-time system search path for libraries
13388 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13390 # Run-time system search path for libraries
13391 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13393 # Fix the shell variable \$srcfile for the compiler.
13394 fix_srcfile_path="$fix_srcfile_path_CXX"
13396 # Set to yes if exported symbols are required.
13397 always_export_symbols=$always_export_symbols_CXX
13399 # The commands to list exported symbols.
13400 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13402 # The commands to extract the exported symbol list from a shared archive.
13403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13405 # Symbols that should not be listed in the preloaded symbols.
13406 exclude_expsyms=$lt_exclude_expsyms_CXX
13408 # Symbols that must always be exported.
13409 include_expsyms=$lt_include_expsyms_CXX
13411 # ### END LIBTOOL TAG CONFIG: $tagname
13413 __EOF__
13416 else
13417 # If there is no Makefile yet, we rely on a make rule to execute
13418 # `config.status --recheck' to rerun these tests and create the
13419 # libtool script then.
13420 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13421 if test -f "$ltmain_in"; then
13422 test -f Makefile && make "$ltmain"
13427 ac_ext=cpp
13428 ac_cpp='$CXXCPP $CPPFLAGS'
13429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13433 CC=$lt_save_CC
13434 LDCXX=$LD
13435 LD=$lt_save_LD
13436 GCC=$lt_save_GCC
13437 with_gnu_ldcxx=$with_gnu_ld
13438 with_gnu_ld=$lt_save_with_gnu_ld
13439 lt_cv_path_LDCXX=$lt_cv_path_LD
13440 lt_cv_path_LD=$lt_save_path_LD
13441 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13442 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13444 else
13445 tagname=""
13449 F77)
13450 if test -n "$F77" && test "X$F77" != "Xno"; then
13452 ac_ext=f
13453 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13454 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13458 archive_cmds_need_lc_F77=no
13459 allow_undefined_flag_F77=
13460 always_export_symbols_F77=no
13461 archive_expsym_cmds_F77=
13462 export_dynamic_flag_spec_F77=
13463 hardcode_direct_F77=no
13464 hardcode_libdir_flag_spec_F77=
13465 hardcode_libdir_flag_spec_ld_F77=
13466 hardcode_libdir_separator_F77=
13467 hardcode_minus_L_F77=no
13468 hardcode_automatic_F77=no
13469 module_cmds_F77=
13470 module_expsym_cmds_F77=
13471 link_all_deplibs_F77=unknown
13472 old_archive_cmds_F77=$old_archive_cmds
13473 no_undefined_flag_F77=
13474 whole_archive_flag_spec_F77=
13475 enable_shared_with_static_runtimes_F77=no
13477 # Source file extension for f77 test sources.
13478 ac_ext=f
13480 # Object file extension for compiled f77 test sources.
13481 objext=o
13482 objext_F77=$objext
13484 # Code to be used in simple compile tests
13485 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13487 # Code to be used in simple link tests
13488 lt_simple_link_test_code=" program t\n end\n"
13490 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13492 # If no C compiler was specified, use CC.
13493 LTCC=${LTCC-"$CC"}
13495 # If no C compiler flags were specified, use CFLAGS.
13496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13498 # Allow CC to be a program name with arguments.
13499 compiler=$CC
13502 # save warnings/boilerplate of simple test code
13503 ac_outfile=conftest.$ac_objext
13504 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13505 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13506 _lt_compiler_boilerplate=`cat conftest.err`
13507 $rm conftest*
13509 ac_outfile=conftest.$ac_objext
13510 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13511 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13512 _lt_linker_boilerplate=`cat conftest.err`
13513 $rm conftest*
13516 # Allow CC to be a program name with arguments.
13517 lt_save_CC="$CC"
13518 CC=${F77-"f77"}
13519 compiler=$CC
13520 compiler_F77=$CC
13521 for cc_temp in $compiler""; do
13522 case $cc_temp in
13523 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13524 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13525 \-*) ;;
13526 *) break;;
13527 esac
13528 done
13529 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13532 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13533 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13534 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13535 echo "${ECHO_T}$can_build_shared" >&6; }
13537 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13538 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13539 test "$can_build_shared" = "no" && enable_shared=no
13541 # On AIX, shared libraries and static libraries use the same namespace, and
13542 # are all built from PIC.
13543 case $host_os in
13544 aix3*)
13545 test "$enable_shared" = yes && enable_static=no
13546 if test -n "$RANLIB"; then
13547 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13548 postinstall_cmds='$RANLIB $lib'
13551 aix4* | aix5*)
13552 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13553 test "$enable_shared" = yes && enable_static=no
13556 esac
13557 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13558 echo "${ECHO_T}$enable_shared" >&6; }
13560 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13561 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13562 # Make sure either enable_shared or enable_static is yes.
13563 test "$enable_shared" = yes || enable_static=yes
13564 { echo "$as_me:$LINENO: result: $enable_static" >&5
13565 echo "${ECHO_T}$enable_static" >&6; }
13567 GCC_F77="$G77"
13568 LD_F77="$LD"
13570 lt_prog_compiler_wl_F77=
13571 lt_prog_compiler_pic_F77=
13572 lt_prog_compiler_static_F77=
13574 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13577 if test "$GCC" = yes; then
13578 lt_prog_compiler_wl_F77='-Wl,'
13579 lt_prog_compiler_static_F77='-static'
13581 case $host_os in
13582 aix*)
13583 # All AIX code is PIC.
13584 if test "$host_cpu" = ia64; then
13585 # AIX 5 now supports IA64 processor
13586 lt_prog_compiler_static_F77='-Bstatic'
13590 amigaos*)
13591 # FIXME: we need at least 68020 code to build shared libraries, but
13592 # adding the `-m68020' flag to GCC prevents building anything better,
13593 # like `-m68040'.
13594 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13597 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13598 # PIC is the default for these OSes.
13601 mingw* | pw32* | os2*)
13602 # This hack is so that the source file can tell whether it is being
13603 # built for inclusion in a dll (and should export symbols for example).
13604 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13607 darwin* | rhapsody*)
13608 # PIC is the default on this platform
13609 # Common symbols not allowed in MH_DYLIB files
13610 lt_prog_compiler_pic_F77='-fno-common'
13613 interix3*)
13614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13615 # Instead, we relocate shared libraries at runtime.
13618 msdosdjgpp*)
13619 # Just because we use GCC doesn't mean we suddenly get shared libraries
13620 # on systems that don't support them.
13621 lt_prog_compiler_can_build_shared_F77=no
13622 enable_shared=no
13625 sysv4*MP*)
13626 if test -d /usr/nec; then
13627 lt_prog_compiler_pic_F77=-Kconform_pic
13631 hpux*)
13632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13633 # not for PA HP-UX.
13634 case $host_cpu in
13635 hppa*64*|ia64*)
13636 # +Z the default
13639 lt_prog_compiler_pic_F77='-fPIC'
13641 esac
13645 lt_prog_compiler_pic_F77='-fPIC'
13647 esac
13648 else
13649 # PORTME Check for flag to pass linker flags through the system compiler.
13650 case $host_os in
13651 aix*)
13652 lt_prog_compiler_wl_F77='-Wl,'
13653 if test "$host_cpu" = ia64; then
13654 # AIX 5 now supports IA64 processor
13655 lt_prog_compiler_static_F77='-Bstatic'
13656 else
13657 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13660 darwin*)
13661 # PIC is the default on this platform
13662 # Common symbols not allowed in MH_DYLIB files
13663 case $cc_basename in
13664 xlc*)
13665 lt_prog_compiler_pic_F77='-qnocommon'
13666 lt_prog_compiler_wl_F77='-Wl,'
13668 esac
13671 mingw* | pw32* | os2*)
13672 # This hack is so that the source file can tell whether it is being
13673 # built for inclusion in a dll (and should export symbols for example).
13674 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13677 hpux9* | hpux10* | hpux11*)
13678 lt_prog_compiler_wl_F77='-Wl,'
13679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13680 # not for PA HP-UX.
13681 case $host_cpu in
13682 hppa*64*|ia64*)
13683 # +Z the default
13686 lt_prog_compiler_pic_F77='+Z'
13688 esac
13689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13690 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13693 irix5* | irix6* | nonstopux*)
13694 lt_prog_compiler_wl_F77='-Wl,'
13695 # PIC (with -KPIC) is the default.
13696 lt_prog_compiler_static_F77='-non_shared'
13699 newsos6)
13700 lt_prog_compiler_pic_F77='-KPIC'
13701 lt_prog_compiler_static_F77='-Bstatic'
13704 linux*)
13705 case $cc_basename in
13706 icc* | ecc*)
13707 lt_prog_compiler_wl_F77='-Wl,'
13708 lt_prog_compiler_pic_F77='-KPIC'
13709 lt_prog_compiler_static_F77='-static'
13711 pgcc* | pgf77* | pgf90* | pgf95*)
13712 # Portland Group compilers (*not* the Pentium gcc compiler,
13713 # which looks to be a dead project)
13714 lt_prog_compiler_wl_F77='-Wl,'
13715 lt_prog_compiler_pic_F77='-fpic'
13716 lt_prog_compiler_static_F77='-Bstatic'
13718 ccc*)
13719 lt_prog_compiler_wl_F77='-Wl,'
13720 # All Alpha code is PIC.
13721 lt_prog_compiler_static_F77='-non_shared'
13723 esac
13726 osf3* | osf4* | osf5*)
13727 lt_prog_compiler_wl_F77='-Wl,'
13728 # All OSF/1 code is PIC.
13729 lt_prog_compiler_static_F77='-non_shared'
13732 solaris*)
13733 lt_prog_compiler_pic_F77='-KPIC'
13734 lt_prog_compiler_static_F77='-Bstatic'
13735 case $cc_basename in
13736 f77* | f90* | f95*)
13737 lt_prog_compiler_wl_F77='-Qoption ld ';;
13739 lt_prog_compiler_wl_F77='-Wl,';;
13740 esac
13743 sunos4*)
13744 lt_prog_compiler_wl_F77='-Qoption ld '
13745 lt_prog_compiler_pic_F77='-PIC'
13746 lt_prog_compiler_static_F77='-Bstatic'
13749 sysv4 | sysv4.2uw2* | sysv4.3*)
13750 lt_prog_compiler_wl_F77='-Wl,'
13751 lt_prog_compiler_pic_F77='-KPIC'
13752 lt_prog_compiler_static_F77='-Bstatic'
13755 sysv4*MP*)
13756 if test -d /usr/nec ;then
13757 lt_prog_compiler_pic_F77='-Kconform_pic'
13758 lt_prog_compiler_static_F77='-Bstatic'
13762 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13763 lt_prog_compiler_wl_F77='-Wl,'
13764 lt_prog_compiler_pic_F77='-KPIC'
13765 lt_prog_compiler_static_F77='-Bstatic'
13768 unicos*)
13769 lt_prog_compiler_wl_F77='-Wl,'
13770 lt_prog_compiler_can_build_shared_F77=no
13773 uts4*)
13774 lt_prog_compiler_pic_F77='-pic'
13775 lt_prog_compiler_static_F77='-Bstatic'
13779 lt_prog_compiler_can_build_shared_F77=no
13781 esac
13784 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13785 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13788 # Check to make sure the PIC flag actually works.
13790 if test -n "$lt_prog_compiler_pic_F77"; then
13792 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13793 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13794 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 lt_prog_compiler_pic_works_F77=no
13798 ac_outfile=conftest.$ac_objext
13799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13800 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13801 # Insert the option either (1) after the last *FLAGS variable, or
13802 # (2) before a word containing "conftest.", or (3) at the end.
13803 # Note that $ac_compile itself does not contain backslashes and begins
13804 # with a dollar sign (not a hyphen), so the echo should work correctly.
13805 # The option is referenced via a variable to avoid confusing sed.
13806 lt_compile=`echo "$ac_compile" | $SED \
13807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13809 -e 's:$: $lt_compiler_flag:'`
13810 (eval echo "\"\$as_me:13810: $lt_compile\"" >&5)
13811 (eval "$lt_compile" 2>conftest.err)
13812 ac_status=$?
13813 cat conftest.err >&5
13814 echo "$as_me:13814: \$? = $ac_status" >&5
13815 if (exit $ac_status) && test -s "$ac_outfile"; then
13816 # The compiler can only warn and ignore the option if not recognized
13817 # So say no if there are warnings other than the usual output.
13818 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13821 lt_prog_compiler_pic_works_F77=yes
13824 $rm conftest*
13827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13828 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13830 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13831 case $lt_prog_compiler_pic_F77 in
13832 "" | " "*) ;;
13833 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13834 esac
13835 else
13836 lt_prog_compiler_pic_F77=
13837 lt_prog_compiler_can_build_shared_F77=no
13841 case $host_os in
13842 # For platforms which do not support PIC, -DPIC is meaningless:
13843 *djgpp*)
13844 lt_prog_compiler_pic_F77=
13847 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13849 esac
13852 # Check to make sure the static flag actually works.
13854 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13855 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13856 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13857 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 lt_prog_compiler_static_works_F77=no
13861 save_LDFLAGS="$LDFLAGS"
13862 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13863 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13864 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13865 # The linker can only warn and ignore the option if not recognized
13866 # So say no if there are warnings
13867 if test -s conftest.err; then
13868 # Append any errors to the config.log.
13869 cat conftest.err 1>&5
13870 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13872 if diff conftest.exp conftest.er2 >/dev/null; then
13873 lt_prog_compiler_static_works_F77=yes
13875 else
13876 lt_prog_compiler_static_works_F77=yes
13879 $rm conftest*
13880 LDFLAGS="$save_LDFLAGS"
13883 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13884 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13886 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13888 else
13889 lt_prog_compiler_static_F77=
13893 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13894 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13895 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898 lt_cv_prog_compiler_c_o_F77=no
13899 $rm -r conftest 2>/dev/null
13900 mkdir conftest
13901 cd conftest
13902 mkdir out
13903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13905 lt_compiler_flag="-o out/conftest2.$ac_objext"
13906 # Insert the option either (1) after the last *FLAGS variable, or
13907 # (2) before a word containing "conftest.", or (3) at the end.
13908 # Note that $ac_compile itself does not contain backslashes and begins
13909 # with a dollar sign (not a hyphen), so the echo should work correctly.
13910 lt_compile=`echo "$ac_compile" | $SED \
13911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13913 -e 's:$: $lt_compiler_flag:'`
13914 (eval echo "\"\$as_me:13914: $lt_compile\"" >&5)
13915 (eval "$lt_compile" 2>out/conftest.err)
13916 ac_status=$?
13917 cat out/conftest.err >&5
13918 echo "$as_me:13918: \$? = $ac_status" >&5
13919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13920 then
13921 # The compiler can only warn and ignore the option if not recognized
13922 # So say no if there are warnings
13923 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13926 lt_cv_prog_compiler_c_o_F77=yes
13929 chmod u+w . 2>&5
13930 $rm conftest*
13931 # SGI C++ compiler will create directory out/ii_files/ for
13932 # template instantiation
13933 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13934 $rm out/* && rmdir out
13935 cd ..
13936 rmdir conftest
13937 $rm conftest*
13940 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13941 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13944 hard_links="nottested"
13945 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13946 # do not overwrite the value of need_locks provided by the user
13947 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13948 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13949 hard_links=yes
13950 $rm conftest*
13951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13952 touch conftest.a
13953 ln conftest.a conftest.b 2>&5 || hard_links=no
13954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13955 { echo "$as_me:$LINENO: result: $hard_links" >&5
13956 echo "${ECHO_T}$hard_links" >&6; }
13957 if test "$hard_links" = no; then
13958 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13959 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13960 need_locks=warn
13962 else
13963 need_locks=no
13966 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13967 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13969 runpath_var=
13970 allow_undefined_flag_F77=
13971 enable_shared_with_static_runtimes_F77=no
13972 archive_cmds_F77=
13973 archive_expsym_cmds_F77=
13974 old_archive_From_new_cmds_F77=
13975 old_archive_from_expsyms_cmds_F77=
13976 export_dynamic_flag_spec_F77=
13977 whole_archive_flag_spec_F77=
13978 thread_safe_flag_spec_F77=
13979 hardcode_libdir_flag_spec_F77=
13980 hardcode_libdir_flag_spec_ld_F77=
13981 hardcode_libdir_separator_F77=
13982 hardcode_direct_F77=no
13983 hardcode_minus_L_F77=no
13984 hardcode_shlibpath_var_F77=unsupported
13985 link_all_deplibs_F77=unknown
13986 hardcode_automatic_F77=no
13987 module_cmds_F77=
13988 module_expsym_cmds_F77=
13989 always_export_symbols_F77=no
13990 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13991 # include_expsyms should be a list of space-separated symbols to be *always*
13992 # included in the symbol list
13993 include_expsyms_F77=
13994 # exclude_expsyms can be an extended regexp of symbols to exclude
13995 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13996 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13997 # as well as any symbol that contains `d'.
13998 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13999 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14000 # platforms (ab)use it in PIC code, but their linkers get confused if
14001 # the symbol is explicitly referenced. Since portable code cannot
14002 # rely on this symbol name, it's probably fine to never include it in
14003 # preloaded symbol tables.
14004 extract_expsyms_cmds=
14005 # Just being paranoid about ensuring that cc_basename is set.
14006 for cc_temp in $compiler""; do
14007 case $cc_temp in
14008 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14009 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14010 \-*) ;;
14011 *) break;;
14012 esac
14013 done
14014 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14016 case $host_os in
14017 cygwin* | mingw* | pw32*)
14018 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14019 # When not using gcc, we currently assume that we are using
14020 # Microsoft Visual C++.
14021 if test "$GCC" != yes; then
14022 with_gnu_ld=no
14025 interix*)
14026 # we just hope/assume this is gcc and not c89 (= MSVC++)
14027 with_gnu_ld=yes
14029 openbsd*)
14030 with_gnu_ld=no
14032 esac
14034 ld_shlibs_F77=yes
14035 if test "$with_gnu_ld" = yes; then
14036 # If archive_cmds runs LD, not CC, wlarc should be empty
14037 wlarc='${wl}'
14039 # Set some defaults for GNU ld with shared library support. These
14040 # are reset later if shared libraries are not supported. Putting them
14041 # here allows them to be overridden if necessary.
14042 runpath_var=LD_RUN_PATH
14043 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14044 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14045 # ancient GNU ld didn't support --whole-archive et. al.
14046 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14047 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14048 else
14049 whole_archive_flag_spec_F77=
14051 supports_anon_versioning=no
14052 case `$LD -v 2>/dev/null` in
14053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14056 *\ 2.11.*) ;; # other 2.11 versions
14057 *) supports_anon_versioning=yes ;;
14058 esac
14060 # See if GNU ld supports shared libraries.
14061 case $host_os in
14062 aix3* | aix4* | aix5*)
14063 # On AIX/PPC, the GNU linker is very broken
14064 if test "$host_cpu" != ia64; then
14065 ld_shlibs_F77=no
14066 cat <<EOF 1>&2
14068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14069 *** to be unable to reliably create shared libraries on AIX.
14070 *** Therefore, libtool is disabling shared libraries support. If you
14071 *** really care for shared libraries, you may want to modify your PATH
14072 *** so that a non-GNU linker is found, and then restart.
14078 amigaos*)
14079 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)'
14080 hardcode_libdir_flag_spec_F77='-L$libdir'
14081 hardcode_minus_L_F77=yes
14083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14084 # that the semantics of dynamic libraries on AmigaOS, at least up
14085 # to version 4, is to share data among multiple programs linked
14086 # with the same dynamic library. Since this doesn't match the
14087 # behavior of shared libraries on other platforms, we can't use
14088 # them.
14089 ld_shlibs_F77=no
14092 beos*)
14093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14094 allow_undefined_flag_F77=unsupported
14095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14096 # support --undefined. This deserves some investigation. FIXME
14097 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14098 else
14099 ld_shlibs_F77=no
14103 cygwin* | mingw* | pw32*)
14104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14105 # as there is no search path for DLLs.
14106 hardcode_libdir_flag_spec_F77='-L$libdir'
14107 allow_undefined_flag_F77=unsupported
14108 always_export_symbols_F77=no
14109 enable_shared_with_static_runtimes_F77=yes
14110 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14113 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14114 # If the export-symbols file already is a .def file (1st line
14115 # is EXPORTS), use it as is; otherwise, prepend...
14116 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14117 cp $export_symbols $output_objdir/$soname.def;
14118 else
14119 echo EXPORTS > $output_objdir/$soname.def;
14120 cat $export_symbols >> $output_objdir/$soname.def;
14122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14123 else
14124 ld_shlibs_F77=no
14128 interix3*)
14129 hardcode_direct_F77=no
14130 hardcode_shlibpath_var_F77=no
14131 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14132 export_dynamic_flag_spec_F77='${wl}-E'
14133 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14134 # Instead, shared libraries are loaded at an image base (0x10000000 by
14135 # default) and relocated if they conflict, which is a slow very memory
14136 # consuming and fragmenting process. To avoid this, we pick a random,
14137 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14138 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14139 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14140 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14143 linux*)
14144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14145 tmp_addflag=
14146 case $cc_basename,$host_cpu in
14147 pgcc*) # Portland Group C compiler
14148 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14149 tmp_addflag=' $pic_flag'
14151 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14152 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14153 tmp_addflag=' $pic_flag -Mnomain' ;;
14154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14155 tmp_addflag=' -i_dynamic' ;;
14156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14157 tmp_addflag=' -i_dynamic -nofor_main' ;;
14158 ifc* | ifort*) # Intel Fortran compiler
14159 tmp_addflag=' -nofor_main' ;;
14160 esac
14161 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14163 if test $supports_anon_versioning = yes; then
14164 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14166 $echo "local: *; };" >> $output_objdir/$libname.ver~
14167 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14169 else
14170 ld_shlibs_F77=no
14174 netbsd*)
14175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14176 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14177 wlarc=
14178 else
14179 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14180 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14184 solaris*)
14185 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14186 ld_shlibs_F77=no
14187 cat <<EOF 1>&2
14189 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14190 *** create shared libraries on Solaris systems. Therefore, libtool
14191 *** is disabling shared libraries support. We urge you to upgrade GNU
14192 *** binutils to release 2.9.1 or newer. Another option is to modify
14193 *** your PATH or compiler configuration so that the native linker is
14194 *** used, and then restart.
14197 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14200 else
14201 ld_shlibs_F77=no
14205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14206 case `$LD -v 2>&1` in
14207 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14208 ld_shlibs_F77=no
14209 cat <<_LT_EOF 1>&2
14211 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14212 *** reliably create shared libraries on SCO systems. Therefore, libtool
14213 *** is disabling shared libraries support. We urge you to upgrade GNU
14214 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14215 *** your PATH or compiler configuration so that the native linker is
14216 *** used, and then restart.
14218 _LT_EOF
14221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14222 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14223 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14224 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14225 else
14226 ld_shlibs_F77=no
14229 esac
14232 sunos4*)
14233 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14234 wlarc=
14235 hardcode_direct_F77=yes
14236 hardcode_shlibpath_var_F77=no
14240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14241 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14243 else
14244 ld_shlibs_F77=no
14247 esac
14249 if test "$ld_shlibs_F77" = no; then
14250 runpath_var=
14251 hardcode_libdir_flag_spec_F77=
14252 export_dynamic_flag_spec_F77=
14253 whole_archive_flag_spec_F77=
14255 else
14256 # PORTME fill in a description of your system's linker (not GNU ld)
14257 case $host_os in
14258 aix3*)
14259 allow_undefined_flag_F77=unsupported
14260 always_export_symbols_F77=yes
14261 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'
14262 # Note: this linker hardcodes the directories in LIBPATH if there
14263 # are no directories specified by -L.
14264 hardcode_minus_L_F77=yes
14265 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14266 # Neither direct hardcoding nor static linking is supported with a
14267 # broken collect2.
14268 hardcode_direct_F77=unsupported
14272 aix4* | aix5*)
14273 if test "$host_cpu" = ia64; then
14274 # On IA64, the linker does run time linking by default, so we don't
14275 # have to do anything special.
14276 aix_use_runtimelinking=no
14277 exp_sym_flag='-Bexport'
14278 no_entry_flag=""
14279 else
14280 # If we're using GNU nm, then we don't want the "-C" option.
14281 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14282 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14283 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'
14284 else
14285 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'
14287 aix_use_runtimelinking=no
14289 # Test if we are trying to use run time linking or normal
14290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14291 # need to do runtime linking.
14292 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14293 for ld_flag in $LDFLAGS; do
14294 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14295 aix_use_runtimelinking=yes
14296 break
14298 done
14300 esac
14302 exp_sym_flag='-bexport'
14303 no_entry_flag='-bnoentry'
14306 # When large executables or shared objects are built, AIX ld can
14307 # have problems creating the table of contents. If linking a library
14308 # or program results in "error TOC overflow" add -mminimal-toc to
14309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14312 archive_cmds_F77=''
14313 hardcode_direct_F77=yes
14314 hardcode_libdir_separator_F77=':'
14315 link_all_deplibs_F77=yes
14317 if test "$GCC" = yes; then
14318 case $host_os in aix4.[012]|aix4.[012].*)
14319 # We only want to do this on AIX 4.2 and lower, the check
14320 # below for broken collect2 doesn't work under 4.3+
14321 collect2name=`${CC} -print-prog-name=collect2`
14322 if test -f "$collect2name" && \
14323 strings "$collect2name" | grep resolve_lib_name >/dev/null
14324 then
14325 # We have reworked collect2
14326 hardcode_direct_F77=yes
14327 else
14328 # We have old collect2
14329 hardcode_direct_F77=unsupported
14330 # It fails to find uninstalled libraries when the uninstalled
14331 # path is not listed in the libpath. Setting hardcode_minus_L
14332 # to unsupported forces relinking
14333 hardcode_minus_L_F77=yes
14334 hardcode_libdir_flag_spec_F77='-L$libdir'
14335 hardcode_libdir_separator_F77=
14338 esac
14339 shared_flag='-shared'
14340 if test "$aix_use_runtimelinking" = yes; then
14341 shared_flag="$shared_flag "'${wl}-G'
14343 else
14344 # not using gcc
14345 if test "$host_cpu" = ia64; then
14346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14347 # chokes on -Wl,-G. The following line is correct:
14348 shared_flag='-G'
14349 else
14350 if test "$aix_use_runtimelinking" = yes; then
14351 shared_flag='${wl}-G'
14352 else
14353 shared_flag='${wl}-bM:SRE'
14358 # It seems that -bexpall does not export symbols beginning with
14359 # underscore (_), so it is better to generate a list of symbols to export.
14360 always_export_symbols_F77=yes
14361 if test "$aix_use_runtimelinking" = yes; then
14362 # Warning - without using the other runtime loading flags (-brtl),
14363 # -berok will link without error, but may produce a broken library.
14364 allow_undefined_flag_F77='-berok'
14365 # Determine the default libpath from the value encoded in an empty executable.
14366 cat >conftest.$ac_ext <<_ACEOF
14367 program main
14370 _ACEOF
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (ac_try="$ac_link"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_link") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_f77_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest$ac_exeext &&
14388 $as_test_x conftest$ac_exeext; then
14390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14392 # Check for a 64-bit object if we didn't find anything.
14393 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; }
14394 }'`; fi
14395 else
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14403 conftest$ac_exeext conftest.$ac_ext
14404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14406 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14407 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14408 else
14409 if test "$host_cpu" = ia64; then
14410 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14411 allow_undefined_flag_F77="-z nodefs"
14412 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14413 else
14414 # Determine the default libpath from the value encoded in an empty executable.
14415 cat >conftest.$ac_ext <<_ACEOF
14416 program main
14419 _ACEOF
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (ac_try="$ac_link"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_link") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && {
14434 test -z "$ac_f77_werror_flag" ||
14435 test ! -s conftest.err
14436 } && test -s conftest$ac_exeext &&
14437 $as_test_x conftest$ac_exeext; then
14439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14441 # Check for a 64-bit object if we didn't find anything.
14442 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; }
14443 }'`; fi
14444 else
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14452 conftest$ac_exeext conftest.$ac_ext
14453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14455 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14456 # Warning - without using the other run time loading flags,
14457 # -berok will link without error, but may produce a broken library.
14458 no_undefined_flag_F77=' ${wl}-bernotok'
14459 allow_undefined_flag_F77=' ${wl}-berok'
14460 # Exported symbols can be pulled into shared objects from archives
14461 whole_archive_flag_spec_F77='$convenience'
14462 archive_cmds_need_lc_F77=yes
14463 # This is similar to how AIX traditionally builds its shared libraries.
14464 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14469 amigaos*)
14470 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)'
14471 hardcode_libdir_flag_spec_F77='-L$libdir'
14472 hardcode_minus_L_F77=yes
14473 # see comment about different semantics on the GNU ld section
14474 ld_shlibs_F77=no
14477 bsdi[45]*)
14478 export_dynamic_flag_spec_F77=-rdynamic
14481 cygwin* | mingw* | pw32*)
14482 # When not using gcc, we currently assume that we are using
14483 # Microsoft Visual C++.
14484 # hardcode_libdir_flag_spec is actually meaningless, as there is
14485 # no search path for DLLs.
14486 hardcode_libdir_flag_spec_F77=' '
14487 allow_undefined_flag_F77=unsupported
14488 # Tell ltmain to make .lib files, not .a files.
14489 libext=lib
14490 # Tell ltmain to make .dll files, not .so files.
14491 shrext_cmds=".dll"
14492 # FIXME: Setting linknames here is a bad hack.
14493 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14494 # The linker will automatically build a .lib file if we build a DLL.
14495 old_archive_From_new_cmds_F77='true'
14496 # FIXME: Should let the user specify the lib program.
14497 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14498 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14499 enable_shared_with_static_runtimes_F77=yes
14502 darwin* | rhapsody*)
14503 case $host_os in
14504 rhapsody* | darwin1.[012])
14505 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14507 *) # Darwin 1.3 on
14508 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14509 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14510 else
14511 case ${MACOSX_DEPLOYMENT_TARGET} in
14512 10.[012])
14513 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14515 10.*)
14516 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14518 esac
14521 esac
14522 archive_cmds_need_lc_F77=no
14523 hardcode_direct_F77=no
14524 hardcode_automatic_F77=yes
14525 hardcode_shlibpath_var_F77=unsupported
14526 whole_archive_flag_spec_F77=''
14527 link_all_deplibs_F77=yes
14528 if test "$GCC" = yes ; then
14529 output_verbose_link_cmd='echo'
14530 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14531 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14532 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14533 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14534 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}'
14535 else
14536 case $cc_basename in
14537 xlc*)
14538 output_verbose_link_cmd='echo'
14539 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14540 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14541 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14542 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14543 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}'
14546 ld_shlibs_F77=no
14548 esac
14552 dgux*)
14553 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_libdir_flag_spec_F77='-L$libdir'
14555 hardcode_shlibpath_var_F77=no
14558 freebsd1*)
14559 ld_shlibs_F77=no
14562 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14563 # support. Future versions do this automatically, but an explicit c++rt0.o
14564 # does not break anything, and helps significantly (at the cost of a little
14565 # extra space).
14566 freebsd2.2*)
14567 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14568 hardcode_libdir_flag_spec_F77='-R$libdir'
14569 hardcode_direct_F77=yes
14570 hardcode_shlibpath_var_F77=no
14573 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14574 freebsd2*)
14575 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14576 hardcode_direct_F77=yes
14577 hardcode_minus_L_F77=yes
14578 hardcode_shlibpath_var_F77=no
14581 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14582 freebsd* | kfreebsd*-gnu | dragonfly*)
14583 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14584 hardcode_libdir_flag_spec_F77='-R$libdir'
14585 hardcode_direct_F77=yes
14586 hardcode_shlibpath_var_F77=no
14589 hpux9*)
14590 if test "$GCC" = yes; then
14591 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'
14592 else
14593 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'
14595 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14596 hardcode_libdir_separator_F77=:
14597 hardcode_direct_F77=yes
14599 # hardcode_minus_L: Not really in the search PATH,
14600 # but as the default location of the library.
14601 hardcode_minus_L_F77=yes
14602 export_dynamic_flag_spec_F77='${wl}-E'
14605 hpux10*)
14606 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14607 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14608 else
14609 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14611 if test "$with_gnu_ld" = no; then
14612 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14613 hardcode_libdir_separator_F77=:
14615 hardcode_direct_F77=yes
14616 export_dynamic_flag_spec_F77='${wl}-E'
14618 # hardcode_minus_L: Not really in the search PATH,
14619 # but as the default location of the library.
14620 hardcode_minus_L_F77=yes
14624 hpux11*)
14625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14626 case $host_cpu in
14627 hppa*64*)
14628 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14630 ia64*)
14631 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14634 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14636 esac
14637 else
14638 case $host_cpu in
14639 hppa*64*)
14640 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14642 ia64*)
14643 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14646 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14648 esac
14650 if test "$with_gnu_ld" = no; then
14651 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14652 hardcode_libdir_separator_F77=:
14654 case $host_cpu in
14655 hppa*64*|ia64*)
14656 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14657 hardcode_direct_F77=no
14658 hardcode_shlibpath_var_F77=no
14661 hardcode_direct_F77=yes
14662 export_dynamic_flag_spec_F77='${wl}-E'
14664 # hardcode_minus_L: Not really in the search PATH,
14665 # but as the default location of the library.
14666 hardcode_minus_L_F77=yes
14668 esac
14672 irix5* | irix6* | nonstopux*)
14673 if test "$GCC" = yes; then
14674 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'
14675 else
14676 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'
14677 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14679 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14680 hardcode_libdir_separator_F77=:
14681 link_all_deplibs_F77=yes
14684 netbsd*)
14685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14686 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14687 else
14688 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14690 hardcode_libdir_flag_spec_F77='-R$libdir'
14691 hardcode_direct_F77=yes
14692 hardcode_shlibpath_var_F77=no
14695 newsos6)
14696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14697 hardcode_direct_F77=yes
14698 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14699 hardcode_libdir_separator_F77=:
14700 hardcode_shlibpath_var_F77=no
14703 openbsd*)
14704 hardcode_direct_F77=yes
14705 hardcode_shlibpath_var_F77=no
14706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14707 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14708 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14709 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14710 export_dynamic_flag_spec_F77='${wl}-E'
14711 else
14712 case $host_os in
14713 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14714 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14715 hardcode_libdir_flag_spec_F77='-R$libdir'
14718 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14719 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14721 esac
14725 os2*)
14726 hardcode_libdir_flag_spec_F77='-L$libdir'
14727 hardcode_minus_L_F77=yes
14728 allow_undefined_flag_F77=unsupported
14729 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'
14730 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14733 osf3*)
14734 if test "$GCC" = yes; then
14735 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14736 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'
14737 else
14738 allow_undefined_flag_F77=' -expect_unresolved \*'
14739 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'
14741 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14742 hardcode_libdir_separator_F77=:
14745 osf4* | osf5*) # as osf3* with the addition of -msym flag
14746 if test "$GCC" = yes; then
14747 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14748 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'
14749 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14750 else
14751 allow_undefined_flag_F77=' -expect_unresolved \*'
14752 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'
14753 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~
14754 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14756 # Both c and cxx compiler support -rpath directly
14757 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14759 hardcode_libdir_separator_F77=:
14762 solaris*)
14763 no_undefined_flag_F77=' -z text'
14764 if test "$GCC" = yes; then
14765 wlarc='${wl}'
14766 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14767 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14768 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14769 else
14770 wlarc=''
14771 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14772 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14773 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14775 hardcode_libdir_flag_spec_F77='-R$libdir'
14776 hardcode_shlibpath_var_F77=no
14777 case $host_os in
14778 solaris2.[0-5] | solaris2.[0-5].*) ;;
14780 # The compiler driver will combine linker options so we
14781 # cannot just pass the convience library names through
14782 # without $wl, iff we do not link with $LD.
14783 # Luckily, gcc supports the same syntax we need for Sun Studio.
14784 # Supported since Solaris 2.6 (maybe 2.5.1?)
14785 case $wlarc in
14787 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14789 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14790 esac ;;
14791 esac
14792 link_all_deplibs_F77=yes
14795 sunos4*)
14796 if test "x$host_vendor" = xsequent; then
14797 # Use $CC to link under sequent, because it throws in some extra .o
14798 # files that make .init and .fini sections work.
14799 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14800 else
14801 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_libdir_flag_spec_F77='-L$libdir'
14804 hardcode_direct_F77=yes
14805 hardcode_minus_L_F77=yes
14806 hardcode_shlibpath_var_F77=no
14809 sysv4)
14810 case $host_vendor in
14811 sni)
14812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813 hardcode_direct_F77=yes # is this really true???
14815 siemens)
14816 ## LD is ld it makes a PLAMLIB
14817 ## CC just makes a GrossModule.
14818 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14819 reload_cmds_F77='$CC -r -o $output$reload_objs'
14820 hardcode_direct_F77=no
14822 motorola)
14823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14826 esac
14827 runpath_var='LD_RUN_PATH'
14828 hardcode_shlibpath_var_F77=no
14831 sysv4.3*)
14832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14833 hardcode_shlibpath_var_F77=no
14834 export_dynamic_flag_spec_F77='-Bexport'
14837 sysv4*MP*)
14838 if test -d /usr/nec; then
14839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14840 hardcode_shlibpath_var_F77=no
14841 runpath_var=LD_RUN_PATH
14842 hardcode_runpath_var=yes
14843 ld_shlibs_F77=yes
14847 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14848 no_undefined_flag_F77='${wl}-z,text'
14849 archive_cmds_need_lc_F77=no
14850 hardcode_shlibpath_var_F77=no
14851 runpath_var='LD_RUN_PATH'
14853 if test "$GCC" = yes; then
14854 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14855 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14856 else
14857 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14858 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14862 sysv5* | sco3.2v5* | sco5v6*)
14863 # Note: We can NOT use -z defs as we might desire, because we do not
14864 # link with -lc, and that would cause any symbols used from libc to
14865 # always be unresolved, which means just about no library would
14866 # ever link correctly. If we're not using GNU ld we use -z text
14867 # though, which does catch some bad symbols but isn't as heavy-handed
14868 # as -z defs.
14869 no_undefined_flag_F77='${wl}-z,text'
14870 allow_undefined_flag_F77='${wl}-z,nodefs'
14871 archive_cmds_need_lc_F77=no
14872 hardcode_shlibpath_var_F77=no
14873 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14874 hardcode_libdir_separator_F77=':'
14875 link_all_deplibs_F77=yes
14876 export_dynamic_flag_spec_F77='${wl}-Bexport'
14877 runpath_var='LD_RUN_PATH'
14879 if test "$GCC" = yes; then
14880 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14881 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14882 else
14883 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14884 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14888 uts4*)
14889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14890 hardcode_libdir_flag_spec_F77='-L$libdir'
14891 hardcode_shlibpath_var_F77=no
14895 ld_shlibs_F77=no
14897 esac
14900 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14901 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14902 test "$ld_shlibs_F77" = no && can_build_shared=no
14905 # Do we need to explicitly link libc?
14907 case "x$archive_cmds_need_lc_F77" in
14908 x|xyes)
14909 # Assume -lc should be added
14910 archive_cmds_need_lc_F77=yes
14912 if test "$enable_shared" = yes && test "$GCC" = yes; then
14913 case $archive_cmds_F77 in
14914 *'~'*)
14915 # FIXME: we may have to deal with multi-command sequences.
14917 '$CC '*)
14918 # Test whether the compiler implicitly links with -lc since on some
14919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14920 # to ld, don't add -lc before -lgcc.
14921 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14922 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14923 $rm conftest*
14924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14927 (eval $ac_compile) 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } 2>conftest.err; then
14931 soname=conftest
14932 lib=conftest
14933 libobjs=conftest.$ac_objext
14934 deplibs=
14935 wl=$lt_prog_compiler_wl_F77
14936 pic_flag=$lt_prog_compiler_pic_F77
14937 compiler_flags=-v
14938 linker_flags=-v
14939 verstring=
14940 output_objdir=.
14941 libname=conftest
14942 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14943 allow_undefined_flag_F77=
14944 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14945 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }
14949 then
14950 archive_cmds_need_lc_F77=no
14951 else
14952 archive_cmds_need_lc_F77=yes
14954 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14955 else
14956 cat conftest.err 1>&5
14958 $rm conftest*
14959 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14960 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14962 esac
14965 esac
14967 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14968 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14969 library_names_spec=
14970 libname_spec='lib$name'
14971 soname_spec=
14972 shrext_cmds=".so"
14973 postinstall_cmds=
14974 postuninstall_cmds=
14975 finish_cmds=
14976 finish_eval=
14977 shlibpath_var=
14978 shlibpath_overrides_runpath=unknown
14979 version_type=none
14980 dynamic_linker="$host_os ld.so"
14981 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14982 if test "$GCC" = yes; then
14983 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14984 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14985 # if the path contains ";" then we assume it to be the separator
14986 # otherwise default to the standard path separator (i.e. ":") - it is
14987 # assumed that no part of a normal pathname contains ";" but that should
14988 # okay in the real world where ";" in dirpaths is itself problematic.
14989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14990 else
14991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14993 else
14994 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14996 need_lib_prefix=unknown
14997 hardcode_into_libs=no
14999 # when you set need_version to no, make sure it does not cause -set_version
15000 # flags to be left without arguments
15001 need_version=unknown
15003 case $host_os in
15004 aix3*)
15005 version_type=linux
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15007 shlibpath_var=LIBPATH
15009 # AIX 3 has no versioning support, so we append a major version to the name.
15010 soname_spec='${libname}${release}${shared_ext}$major'
15013 aix4* | aix5*)
15014 version_type=linux
15015 need_lib_prefix=no
15016 need_version=no
15017 hardcode_into_libs=yes
15018 if test "$host_cpu" = ia64; then
15019 # AIX 5 supports IA64
15020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15021 shlibpath_var=LD_LIBRARY_PATH
15022 else
15023 # With GCC up to 2.95.x, collect2 would create an import file
15024 # for dependence libraries. The import file would start with
15025 # the line `#! .'. This would cause the generated library to
15026 # depend on `.', always an invalid library. This was fixed in
15027 # development snapshots of GCC prior to 3.0.
15028 case $host_os in
15029 aix4 | aix4.[01] | aix4.[01].*)
15030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15031 echo ' yes '
15032 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15034 else
15035 can_build_shared=no
15038 esac
15039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15040 # soname into executable. Probably we can add versioning support to
15041 # collect2, so additional links can be useful in future.
15042 if test "$aix_use_runtimelinking" = yes; then
15043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15044 # instead of lib<name>.a to let people know that these are not
15045 # typical AIX shared libraries.
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 else
15048 # We preserve .a as extension for shared libraries through AIX4.2
15049 # and later when we are not doing run time linking.
15050 library_names_spec='${libname}${release}.a $libname.a'
15051 soname_spec='${libname}${release}${shared_ext}$major'
15053 shlibpath_var=LIBPATH
15057 amigaos*)
15058 library_names_spec='$libname.ixlibrary $libname.a'
15059 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15060 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'
15063 beos*)
15064 library_names_spec='${libname}${shared_ext}'
15065 dynamic_linker="$host_os ld.so"
15066 shlibpath_var=LIBRARY_PATH
15069 bsdi[45]*)
15070 version_type=linux
15071 need_version=no
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073 soname_spec='${libname}${release}${shared_ext}$major'
15074 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15075 shlibpath_var=LD_LIBRARY_PATH
15076 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15077 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15078 # the default ld.so.conf also contains /usr/contrib/lib and
15079 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15080 # libtool to hard-code these into programs
15083 cygwin* | mingw* | pw32*)
15084 version_type=windows
15085 shrext_cmds=".dll"
15086 need_version=no
15087 need_lib_prefix=no
15089 case $GCC,$host_os in
15090 yes,cygwin* | yes,mingw* | yes,pw32*)
15091 library_names_spec='$libname.dll.a'
15092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15093 postinstall_cmds='base_file=`basename \${file}`~
15094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15095 dldir=$destdir/`dirname \$dlpath`~
15096 test -d \$dldir || mkdir -p \$dldir~
15097 $install_prog $dir/$dlname \$dldir/$dlname~
15098 chmod a+x \$dldir/$dlname'
15099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15100 dlpath=$dir/\$dldll~
15101 $rm \$dlpath'
15102 shlibpath_overrides_runpath=yes
15104 case $host_os in
15105 cygwin*)
15106 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15107 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15108 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15110 mingw*)
15111 # MinGW DLLs use traditional 'lib' prefix
15112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15114 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15115 # It is most probably a Windows format PATH printed by
15116 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15117 # path with ; separators, and with drive letters. We can handle the
15118 # drive letters (cygwin fileutils understands them), so leave them,
15119 # especially as we might pass files found there to a mingw objdump,
15120 # which wouldn't understand a cygwinified path. Ahh.
15121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15122 else
15123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15126 pw32*)
15127 # pw32 DLLs use 'pw' prefix rather than 'lib'
15128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15130 esac
15134 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15136 esac
15137 dynamic_linker='Win32 ld.exe'
15138 # FIXME: first we should search . and the directory the executable is in
15139 shlibpath_var=PATH
15142 darwin* | rhapsody*)
15143 dynamic_linker="$host_os dyld"
15144 version_type=darwin
15145 need_lib_prefix=no
15146 need_version=no
15147 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15148 soname_spec='${libname}${release}${major}$shared_ext'
15149 shlibpath_overrides_runpath=yes
15150 shlibpath_var=DYLD_LIBRARY_PATH
15151 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15152 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15153 if test "$GCC" = yes; then
15154 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"`
15155 else
15156 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15161 dgux*)
15162 version_type=linux
15163 need_lib_prefix=no
15164 need_version=no
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15166 soname_spec='${libname}${release}${shared_ext}$major'
15167 shlibpath_var=LD_LIBRARY_PATH
15170 freebsd1*)
15171 dynamic_linker=no
15174 kfreebsd*-gnu)
15175 version_type=linux
15176 need_lib_prefix=no
15177 need_version=no
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 shlibpath_var=LD_LIBRARY_PATH
15181 shlibpath_overrides_runpath=no
15182 hardcode_into_libs=yes
15183 dynamic_linker='GNU ld.so'
15186 freebsd* | dragonfly*)
15187 # DragonFly does not have aout. When/if they implement a new
15188 # versioning mechanism, adjust this.
15189 if test -x /usr/bin/objformat; then
15190 objformat=`/usr/bin/objformat`
15191 else
15192 case $host_os in
15193 freebsd[123]*) objformat=aout ;;
15194 *) objformat=elf ;;
15195 esac
15197 version_type=freebsd-$objformat
15198 case $version_type in
15199 freebsd-elf*)
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15201 need_version=no
15202 need_lib_prefix=no
15204 freebsd-*)
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15206 need_version=yes
15208 esac
15209 shlibpath_var=LD_LIBRARY_PATH
15210 case $host_os in
15211 freebsd2*)
15212 shlibpath_overrides_runpath=yes
15214 freebsd3.[01]* | freebsdelf3.[01]*)
15215 shlibpath_overrides_runpath=yes
15216 hardcode_into_libs=yes
15218 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15219 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15220 shlibpath_overrides_runpath=no
15221 hardcode_into_libs=yes
15223 freebsd*) # from 4.6 on
15224 shlibpath_overrides_runpath=yes
15225 hardcode_into_libs=yes
15227 esac
15230 gnu*)
15231 version_type=linux
15232 need_lib_prefix=no
15233 need_version=no
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 shlibpath_var=LD_LIBRARY_PATH
15237 hardcode_into_libs=yes
15240 hpux9* | hpux10* | hpux11*)
15241 # Give a soname corresponding to the major version so that dld.sl refuses to
15242 # link against other versions.
15243 version_type=sunos
15244 need_lib_prefix=no
15245 need_version=no
15246 case $host_cpu in
15247 ia64*)
15248 shrext_cmds='.so'
15249 hardcode_into_libs=yes
15250 dynamic_linker="$host_os dld.so"
15251 shlibpath_var=LD_LIBRARY_PATH
15252 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 if test "X$HPUX_IA64_MODE" = X32; then
15256 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15257 else
15258 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15262 hppa*64*)
15263 shrext_cmds='.sl'
15264 hardcode_into_libs=yes
15265 dynamic_linker="$host_os dld.sl"
15266 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15274 shrext_cmds='.sl'
15275 dynamic_linker="$host_os dld.sl"
15276 shlibpath_var=SHLIB_PATH
15277 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15281 esac
15282 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15283 postinstall_cmds='chmod 555 $lib'
15286 interix3*)
15287 version_type=linux
15288 need_lib_prefix=no
15289 need_version=no
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15291 soname_spec='${libname}${release}${shared_ext}$major'
15292 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=no
15295 hardcode_into_libs=yes
15298 irix5* | irix6* | nonstopux*)
15299 case $host_os in
15300 nonstopux*) version_type=nonstopux ;;
15302 if test "$lt_cv_prog_gnu_ld" = yes; then
15303 version_type=linux
15304 else
15305 version_type=irix
15306 fi ;;
15307 esac
15308 need_lib_prefix=no
15309 need_version=no
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15312 case $host_os in
15313 irix5* | nonstopux*)
15314 libsuff= shlibsuff=
15317 case $LD in # libtool.m4 will add one of these switches to LD
15318 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15319 libsuff= shlibsuff= libmagic=32-bit;;
15320 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15321 libsuff=32 shlibsuff=N32 libmagic=N32;;
15322 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15323 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15324 *) libsuff= shlibsuff= libmagic=never-match;;
15325 esac
15327 esac
15328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15329 shlibpath_overrides_runpath=no
15330 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15331 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15332 hardcode_into_libs=yes
15335 # No shared lib support for Linux oldld, aout, or coff.
15336 linux*oldld* | linux*aout* | linux*coff*)
15337 dynamic_linker=no
15340 # This must be Linux ELF.
15341 linux*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 shlibpath_overrides_runpath=no
15350 # This implies no fast_install, which is unacceptable.
15351 # Some rework will be needed to allow for fast_install
15352 # before this can be enabled.
15353 hardcode_into_libs=yes
15355 # Append ld.so.conf contents to the search path
15356 if test -f /etc/ld.so.conf; then
15357 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15358 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15361 # We used to test for /lib/ld.so.1 and disable shared libraries on
15362 # powerpc, because MkLinux only supported shared libraries with the
15363 # GNU dynamic linker. Since this was broken with cross compilers,
15364 # most powerpc-linux boxes support dynamic linking these days and
15365 # people can always --disable-shared, the test was removed, and we
15366 # assume the GNU/Linux dynamic linker is in use.
15367 dynamic_linker='GNU/Linux ld.so'
15370 knetbsd*-gnu)
15371 version_type=linux
15372 need_lib_prefix=no
15373 need_version=no
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15375 soname_spec='${libname}${release}${shared_ext}$major'
15376 shlibpath_var=LD_LIBRARY_PATH
15377 shlibpath_overrides_runpath=no
15378 hardcode_into_libs=yes
15379 dynamic_linker='GNU ld.so'
15382 netbsd*)
15383 version_type=sunos
15384 need_lib_prefix=no
15385 need_version=no
15386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15389 dynamic_linker='NetBSD (a.out) ld.so'
15390 else
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 dynamic_linker='NetBSD ld.elf_so'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 shlibpath_overrides_runpath=yes
15397 hardcode_into_libs=yes
15400 newsos6)
15401 version_type=linux
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 shlibpath_overrides_runpath=yes
15407 nto-qnx*)
15408 version_type=linux
15409 need_lib_prefix=no
15410 need_version=no
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 shlibpath_overrides_runpath=yes
15417 openbsd*)
15418 version_type=sunos
15419 sys_lib_dlsearch_path_spec="/usr/lib"
15420 need_lib_prefix=no
15421 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15422 case $host_os in
15423 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15424 *) need_version=no ;;
15425 esac
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15430 case $host_os in
15431 openbsd2.[89] | openbsd2.[89].*)
15432 shlibpath_overrides_runpath=no
15435 shlibpath_overrides_runpath=yes
15437 esac
15438 else
15439 shlibpath_overrides_runpath=yes
15443 os2*)
15444 libname_spec='$name'
15445 shrext_cmds=".dll"
15446 need_lib_prefix=no
15447 library_names_spec='$libname${shared_ext} $libname.a'
15448 dynamic_linker='OS/2 ld.exe'
15449 shlibpath_var=LIBPATH
15452 osf3* | osf4* | osf5*)
15453 version_type=osf
15454 need_lib_prefix=no
15455 need_version=no
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15460 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15463 solaris*)
15464 version_type=linux
15465 need_lib_prefix=no
15466 need_version=no
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468 soname_spec='${libname}${release}${shared_ext}$major'
15469 shlibpath_var=LD_LIBRARY_PATH
15470 shlibpath_overrides_runpath=yes
15471 hardcode_into_libs=yes
15472 # ldd complains unless libraries are executable
15473 postinstall_cmds='chmod +x $lib'
15476 sunos4*)
15477 version_type=sunos
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15479 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=yes
15482 if test "$with_gnu_ld" = yes; then
15483 need_lib_prefix=no
15485 need_version=yes
15488 sysv4 | sysv4.3*)
15489 version_type=linux
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 case $host_vendor in
15494 sni)
15495 shlibpath_overrides_runpath=no
15496 need_lib_prefix=no
15497 export_dynamic_flag_spec='${wl}-Blargedynsym'
15498 runpath_var=LD_RUN_PATH
15500 siemens)
15501 need_lib_prefix=no
15503 motorola)
15504 need_lib_prefix=no
15505 need_version=no
15506 shlibpath_overrides_runpath=no
15507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15509 esac
15512 sysv4*MP*)
15513 if test -d /usr/nec ;then
15514 version_type=linux
15515 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15516 soname_spec='$libname${shared_ext}.$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15522 version_type=freebsd-elf
15523 need_lib_prefix=no
15524 need_version=no
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 hardcode_into_libs=yes
15529 if test "$with_gnu_ld" = yes; then
15530 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15531 shlibpath_overrides_runpath=no
15532 else
15533 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15534 shlibpath_overrides_runpath=yes
15535 case $host_os in
15536 sco3.2v5*)
15537 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15539 esac
15541 sys_lib_dlsearch_path_spec='/usr/lib'
15544 uts4*)
15545 version_type=linux
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 shlibpath_var=LD_LIBRARY_PATH
15552 dynamic_linker=no
15554 esac
15555 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15556 echo "${ECHO_T}$dynamic_linker" >&6; }
15557 test "$dynamic_linker" = no && can_build_shared=no
15559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15560 if test "$GCC" = yes; then
15561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15564 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15565 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15566 hardcode_action_F77=
15567 if test -n "$hardcode_libdir_flag_spec_F77" || \
15568 test -n "$runpath_var_F77" || \
15569 test "X$hardcode_automatic_F77" = "Xyes" ; then
15571 # We can hardcode non-existant directories.
15572 if test "$hardcode_direct_F77" != no &&
15573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15574 # have to relink, otherwise we might link with an installed library
15575 # when we should be linking with a yet-to-be-installed one
15576 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15577 test "$hardcode_minus_L_F77" != no; then
15578 # Linking always hardcodes the temporary library directory.
15579 hardcode_action_F77=relink
15580 else
15581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15582 hardcode_action_F77=immediate
15584 else
15585 # We cannot hardcode anything, or else we can only hardcode existing
15586 # directories.
15587 hardcode_action_F77=unsupported
15589 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15590 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15592 if test "$hardcode_action_F77" = relink; then
15593 # Fast installation is not supported
15594 enable_fast_install=no
15595 elif test "$shlibpath_overrides_runpath" = yes ||
15596 test "$enable_shared" = no; then
15597 # Fast installation is not necessary
15598 enable_fast_install=needless
15602 # The else clause should only fire when bootstrapping the
15603 # libtool distribution, otherwise you forgot to ship ltmain.sh
15604 # with your package, and you will get complaints that there are
15605 # no rules to generate ltmain.sh.
15606 if test -f "$ltmain"; then
15607 # See if we are running on zsh, and set the options which allow our commands through
15608 # without removal of \ escapes.
15609 if test -n "${ZSH_VERSION+set}" ; then
15610 setopt NO_GLOB_SUBST
15612 # Now quote all the things that may contain metacharacters while being
15613 # careful not to overquote the AC_SUBSTed values. We take copies of the
15614 # variables and quote the copies for generation of the libtool script.
15615 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15616 SED SHELL STRIP \
15617 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15618 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15619 deplibs_check_method reload_flag reload_cmds need_locks \
15620 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15621 lt_cv_sys_global_symbol_to_c_name_address \
15622 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15623 old_postinstall_cmds old_postuninstall_cmds \
15624 compiler_F77 \
15625 CC_F77 \
15626 LD_F77 \
15627 lt_prog_compiler_wl_F77 \
15628 lt_prog_compiler_pic_F77 \
15629 lt_prog_compiler_static_F77 \
15630 lt_prog_compiler_no_builtin_flag_F77 \
15631 export_dynamic_flag_spec_F77 \
15632 thread_safe_flag_spec_F77 \
15633 whole_archive_flag_spec_F77 \
15634 enable_shared_with_static_runtimes_F77 \
15635 old_archive_cmds_F77 \
15636 old_archive_from_new_cmds_F77 \
15637 predep_objects_F77 \
15638 postdep_objects_F77 \
15639 predeps_F77 \
15640 postdeps_F77 \
15641 compiler_lib_search_path_F77 \
15642 archive_cmds_F77 \
15643 archive_expsym_cmds_F77 \
15644 postinstall_cmds_F77 \
15645 postuninstall_cmds_F77 \
15646 old_archive_from_expsyms_cmds_F77 \
15647 allow_undefined_flag_F77 \
15648 no_undefined_flag_F77 \
15649 export_symbols_cmds_F77 \
15650 hardcode_libdir_flag_spec_F77 \
15651 hardcode_libdir_flag_spec_ld_F77 \
15652 hardcode_libdir_separator_F77 \
15653 hardcode_automatic_F77 \
15654 module_cmds_F77 \
15655 module_expsym_cmds_F77 \
15656 lt_cv_prog_compiler_c_o_F77 \
15657 exclude_expsyms_F77 \
15658 include_expsyms_F77; do
15660 case $var in
15661 old_archive_cmds_F77 | \
15662 old_archive_from_new_cmds_F77 | \
15663 archive_cmds_F77 | \
15664 archive_expsym_cmds_F77 | \
15665 module_cmds_F77 | \
15666 module_expsym_cmds_F77 | \
15667 old_archive_from_expsyms_cmds_F77 | \
15668 export_symbols_cmds_F77 | \
15669 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15670 postinstall_cmds | postuninstall_cmds | \
15671 old_postinstall_cmds | old_postuninstall_cmds | \
15672 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15673 # Double-quote double-evaled strings.
15674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15679 esac
15680 done
15682 case $lt_echo in
15683 *'\$0 --fallback-echo"')
15684 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15686 esac
15688 cfgfile="$ofile"
15690 cat <<__EOF__ >> "$cfgfile"
15691 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15695 # Shell to use when invoking shell scripts.
15696 SHELL=$lt_SHELL
15698 # Whether or not to build shared libraries.
15699 build_libtool_libs=$enable_shared
15701 # Whether or not to build static libraries.
15702 build_old_libs=$enable_static
15704 # Whether or not to add -lc for building shared libraries.
15705 build_libtool_need_lc=$archive_cmds_need_lc_F77
15707 # Whether or not to disallow shared libs when runtime libs are static
15708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15710 # Whether or not to optimize for fast installation.
15711 fast_install=$enable_fast_install
15713 # The host system.
15714 host_alias=$host_alias
15715 host=$host
15716 host_os=$host_os
15718 # The build system.
15719 build_alias=$build_alias
15720 build=$build
15721 build_os=$build_os
15723 # An echo program that does not interpret backslashes.
15724 echo=$lt_echo
15726 # The archiver.
15727 AR=$lt_AR
15728 AR_FLAGS=$lt_AR_FLAGS
15730 # A C compiler.
15731 LTCC=$lt_LTCC
15733 # LTCC compiler flags.
15734 LTCFLAGS=$lt_LTCFLAGS
15736 # A language-specific compiler.
15737 CC=$lt_compiler_F77
15739 # Is the compiler the GNU C compiler?
15740 with_gcc=$GCC_F77
15742 # An ERE matcher.
15743 EGREP=$lt_EGREP
15745 # The linker used to build libraries.
15746 LD=$lt_LD_F77
15748 # Whether we need hard or soft links.
15749 LN_S=$lt_LN_S
15751 # A BSD-compatible nm program.
15752 NM=$lt_NM
15754 # A symbol stripping program
15755 STRIP=$lt_STRIP
15757 # Used to examine libraries when file_magic_cmd begins "file"
15758 MAGIC_CMD=$MAGIC_CMD
15760 # Used on cygwin: DLL creation program.
15761 DLLTOOL="$DLLTOOL"
15763 # Used on cygwin: object dumper.
15764 OBJDUMP="$OBJDUMP"
15766 # Used on cygwin: assembler.
15767 AS="$AS"
15769 # The name of the directory that contains temporary libtool files.
15770 objdir=$objdir
15772 # How to create reloadable object files.
15773 reload_flag=$lt_reload_flag
15774 reload_cmds=$lt_reload_cmds
15776 # How to pass a linker flag through the compiler.
15777 wl=$lt_lt_prog_compiler_wl_F77
15779 # Object file suffix (normally "o").
15780 objext="$ac_objext"
15782 # Old archive suffix (normally "a").
15783 libext="$libext"
15785 # Shared library suffix (normally ".so").
15786 shrext_cmds='$shrext_cmds'
15788 # Executable file suffix (normally "").
15789 exeext="$exeext"
15791 # Additional compiler flags for building library objects.
15792 pic_flag=$lt_lt_prog_compiler_pic_F77
15793 pic_mode=$pic_mode
15795 # What is the maximum length of a command?
15796 max_cmd_len=$lt_cv_sys_max_cmd_len
15798 # Does compiler simultaneously support -c and -o options?
15799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15801 # Must we lock files when doing compilation?
15802 need_locks=$lt_need_locks
15804 # Do we need the lib prefix for modules?
15805 need_lib_prefix=$need_lib_prefix
15807 # Do we need a version for libraries?
15808 need_version=$need_version
15810 # Whether dlopen is supported.
15811 dlopen_support=$enable_dlopen
15813 # Whether dlopen of programs is supported.
15814 dlopen_self=$enable_dlopen_self
15816 # Whether dlopen of statically linked programs is supported.
15817 dlopen_self_static=$enable_dlopen_self_static
15819 # Compiler flag to prevent dynamic linking.
15820 link_static_flag=$lt_lt_prog_compiler_static_F77
15822 # Compiler flag to turn off builtin functions.
15823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15825 # Compiler flag to allow reflexive dlopens.
15826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15828 # Compiler flag to generate shared objects directly from archives.
15829 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15831 # Compiler flag to generate thread-safe objects.
15832 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15834 # Library versioning type.
15835 version_type=$version_type
15837 # Format of library name prefix.
15838 libname_spec=$lt_libname_spec
15840 # List of archive names. First name is the real one, the rest are links.
15841 # The last name is the one that the linker finds with -lNAME.
15842 library_names_spec=$lt_library_names_spec
15844 # The coded name of the library, if different from the real name.
15845 soname_spec=$lt_soname_spec
15847 # Commands used to build and install an old-style archive.
15848 RANLIB=$lt_RANLIB
15849 old_archive_cmds=$lt_old_archive_cmds_F77
15850 old_postinstall_cmds=$lt_old_postinstall_cmds
15851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15853 # Create an old-style archive from a shared archive.
15854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15856 # Create a temporary old-style archive to link instead of a shared archive.
15857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15859 # Commands used to build and install a shared archive.
15860 archive_cmds=$lt_archive_cmds_F77
15861 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15862 postinstall_cmds=$lt_postinstall_cmds
15863 postuninstall_cmds=$lt_postuninstall_cmds
15865 # Commands used to build a loadable module (assumed same as above if empty)
15866 module_cmds=$lt_module_cmds_F77
15867 module_expsym_cmds=$lt_module_expsym_cmds_F77
15869 # Commands to strip libraries.
15870 old_striplib=$lt_old_striplib
15871 striplib=$lt_striplib
15873 # Dependencies to place before the objects being linked to create a
15874 # shared library.
15875 predep_objects=$lt_predep_objects_F77
15877 # Dependencies to place after the objects being linked to create a
15878 # shared library.
15879 postdep_objects=$lt_postdep_objects_F77
15881 # Dependencies to place before the objects being linked to create a
15882 # shared library.
15883 predeps=$lt_predeps_F77
15885 # Dependencies to place after the objects being linked to create a
15886 # shared library.
15887 postdeps=$lt_postdeps_F77
15889 # The library search path used internally by the compiler when linking
15890 # a shared library.
15891 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15893 # Method to check whether dependent libraries are shared objects.
15894 deplibs_check_method=$lt_deplibs_check_method
15896 # Command to use when deplibs_check_method == file_magic.
15897 file_magic_cmd=$lt_file_magic_cmd
15899 # Flag that allows shared libraries with undefined symbols to be built.
15900 allow_undefined_flag=$lt_allow_undefined_flag_F77
15902 # Flag that forces no undefined symbols.
15903 no_undefined_flag=$lt_no_undefined_flag_F77
15905 # Commands used to finish a libtool library installation in a directory.
15906 finish_cmds=$lt_finish_cmds
15908 # Same as above, but a single script fragment to be evaled but not shown.
15909 finish_eval=$lt_finish_eval
15911 # Take the output of nm and produce a listing of raw symbols and C names.
15912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15914 # Transform the output of nm in a proper C declaration
15915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15917 # Transform the output of nm in a C name address pair
15918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15920 # This is the shared library runtime path variable.
15921 runpath_var=$runpath_var
15923 # This is the shared library path variable.
15924 shlibpath_var=$shlibpath_var
15926 # Is shlibpath searched before the hard-coded library search path?
15927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15929 # How to hardcode a shared library path into an executable.
15930 hardcode_action=$hardcode_action_F77
15932 # Whether we should hardcode library paths into libraries.
15933 hardcode_into_libs=$hardcode_into_libs
15935 # Flag to hardcode \$libdir into a binary during linking.
15936 # This must work even if \$libdir does not exist.
15937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15939 # If ld is used when linking, flag to hardcode \$libdir into
15940 # a binary during linking. This must work even if \$libdir does
15941 # not exist.
15942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15944 # Whether we need a single -rpath flag with a separated argument.
15945 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15948 # resulting binary.
15949 hardcode_direct=$hardcode_direct_F77
15951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15952 # resulting binary.
15953 hardcode_minus_L=$hardcode_minus_L_F77
15955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15956 # the resulting binary.
15957 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15959 # Set to yes if building a shared library automatically hardcodes DIR into the library
15960 # and all subsequent libraries and executables linked against it.
15961 hardcode_automatic=$hardcode_automatic_F77
15963 # Variables whose values should be saved in libtool wrapper scripts and
15964 # restored at relink time.
15965 variables_saved_for_relink="$variables_saved_for_relink"
15967 # Whether libtool must link a program against all its dependency libraries.
15968 link_all_deplibs=$link_all_deplibs_F77
15970 # Compile-time system search path for libraries
15971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15973 # Run-time system search path for libraries
15974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15976 # Fix the shell variable \$srcfile for the compiler.
15977 fix_srcfile_path="$fix_srcfile_path_F77"
15979 # Set to yes if exported symbols are required.
15980 always_export_symbols=$always_export_symbols_F77
15982 # The commands to list exported symbols.
15983 export_symbols_cmds=$lt_export_symbols_cmds_F77
15985 # The commands to extract the exported symbol list from a shared archive.
15986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15988 # Symbols that should not be listed in the preloaded symbols.
15989 exclude_expsyms=$lt_exclude_expsyms_F77
15991 # Symbols that must always be exported.
15992 include_expsyms=$lt_include_expsyms_F77
15994 # ### END LIBTOOL TAG CONFIG: $tagname
15996 __EOF__
15999 else
16000 # If there is no Makefile yet, we rely on a make rule to execute
16001 # `config.status --recheck' to rerun these tests and create the
16002 # libtool script then.
16003 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16004 if test -f "$ltmain_in"; then
16005 test -f Makefile && make "$ltmain"
16010 ac_ext=cpp
16011 ac_cpp='$CXXCPP $CPPFLAGS'
16012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16016 CC="$lt_save_CC"
16018 else
16019 tagname=""
16023 GCJ)
16024 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16027 # Source file extension for Java test sources.
16028 ac_ext=java
16030 # Object file extension for compiled Java test sources.
16031 objext=o
16032 objext_GCJ=$objext
16034 # Code to be used in simple compile tests
16035 lt_simple_compile_test_code="class foo {}\n"
16037 # Code to be used in simple link tests
16038 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16040 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16042 # If no C compiler was specified, use CC.
16043 LTCC=${LTCC-"$CC"}
16045 # If no C compiler flags were specified, use CFLAGS.
16046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16048 # Allow CC to be a program name with arguments.
16049 compiler=$CC
16052 # save warnings/boilerplate of simple test code
16053 ac_outfile=conftest.$ac_objext
16054 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16056 _lt_compiler_boilerplate=`cat conftest.err`
16057 $rm conftest*
16059 ac_outfile=conftest.$ac_objext
16060 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16062 _lt_linker_boilerplate=`cat conftest.err`
16063 $rm conftest*
16066 # Allow CC to be a program name with arguments.
16067 lt_save_CC="$CC"
16068 CC=${GCJ-"gcj"}
16069 compiler=$CC
16070 compiler_GCJ=$CC
16071 for cc_temp in $compiler""; do
16072 case $cc_temp in
16073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16075 \-*) ;;
16076 *) break;;
16077 esac
16078 done
16079 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16082 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16083 archive_cmds_need_lc_GCJ=no
16085 old_archive_cmds_GCJ=$old_archive_cmds
16088 lt_prog_compiler_no_builtin_flag_GCJ=
16090 if test "$GCC" = yes; then
16091 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16094 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16095 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16096 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099 lt_cv_prog_compiler_rtti_exceptions=no
16100 ac_outfile=conftest.$ac_objext
16101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16102 lt_compiler_flag="-fno-rtti -fno-exceptions"
16103 # Insert the option either (1) after the last *FLAGS variable, or
16104 # (2) before a word containing "conftest.", or (3) at the end.
16105 # Note that $ac_compile itself does not contain backslashes and begins
16106 # with a dollar sign (not a hyphen), so the echo should work correctly.
16107 # The option is referenced via a variable to avoid confusing sed.
16108 lt_compile=`echo "$ac_compile" | $SED \
16109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16111 -e 's:$: $lt_compiler_flag:'`
16112 (eval echo "\"\$as_me:16112: $lt_compile\"" >&5)
16113 (eval "$lt_compile" 2>conftest.err)
16114 ac_status=$?
16115 cat conftest.err >&5
16116 echo "$as_me:16116: \$? = $ac_status" >&5
16117 if (exit $ac_status) && test -s "$ac_outfile"; then
16118 # The compiler can only warn and ignore the option if not recognized
16119 # So say no if there are warnings other than the usual output.
16120 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16123 lt_cv_prog_compiler_rtti_exceptions=yes
16126 $rm conftest*
16129 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16130 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16132 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16133 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16134 else
16140 lt_prog_compiler_wl_GCJ=
16141 lt_prog_compiler_pic_GCJ=
16142 lt_prog_compiler_static_GCJ=
16144 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16145 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16147 if test "$GCC" = yes; then
16148 lt_prog_compiler_wl_GCJ='-Wl,'
16149 lt_prog_compiler_static_GCJ='-static'
16151 case $host_os in
16152 aix*)
16153 # All AIX code is PIC.
16154 if test "$host_cpu" = ia64; then
16155 # AIX 5 now supports IA64 processor
16156 lt_prog_compiler_static_GCJ='-Bstatic'
16160 amigaos*)
16161 # FIXME: we need at least 68020 code to build shared libraries, but
16162 # adding the `-m68020' flag to GCC prevents building anything better,
16163 # like `-m68040'.
16164 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16167 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16168 # PIC is the default for these OSes.
16171 mingw* | pw32* | os2*)
16172 # This hack is so that the source file can tell whether it is being
16173 # built for inclusion in a dll (and should export symbols for example).
16174 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16177 darwin* | rhapsody*)
16178 # PIC is the default on this platform
16179 # Common symbols not allowed in MH_DYLIB files
16180 lt_prog_compiler_pic_GCJ='-fno-common'
16183 interix3*)
16184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16185 # Instead, we relocate shared libraries at runtime.
16188 msdosdjgpp*)
16189 # Just because we use GCC doesn't mean we suddenly get shared libraries
16190 # on systems that don't support them.
16191 lt_prog_compiler_can_build_shared_GCJ=no
16192 enable_shared=no
16195 sysv4*MP*)
16196 if test -d /usr/nec; then
16197 lt_prog_compiler_pic_GCJ=-Kconform_pic
16201 hpux*)
16202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16203 # not for PA HP-UX.
16204 case $host_cpu in
16205 hppa*64*|ia64*)
16206 # +Z the default
16209 lt_prog_compiler_pic_GCJ='-fPIC'
16211 esac
16215 lt_prog_compiler_pic_GCJ='-fPIC'
16217 esac
16218 else
16219 # PORTME Check for flag to pass linker flags through the system compiler.
16220 case $host_os in
16221 aix*)
16222 lt_prog_compiler_wl_GCJ='-Wl,'
16223 if test "$host_cpu" = ia64; then
16224 # AIX 5 now supports IA64 processor
16225 lt_prog_compiler_static_GCJ='-Bstatic'
16226 else
16227 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16230 darwin*)
16231 # PIC is the default on this platform
16232 # Common symbols not allowed in MH_DYLIB files
16233 case $cc_basename in
16234 xlc*)
16235 lt_prog_compiler_pic_GCJ='-qnocommon'
16236 lt_prog_compiler_wl_GCJ='-Wl,'
16238 esac
16241 mingw* | pw32* | os2*)
16242 # This hack is so that the source file can tell whether it is being
16243 # built for inclusion in a dll (and should export symbols for example).
16244 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16247 hpux9* | hpux10* | hpux11*)
16248 lt_prog_compiler_wl_GCJ='-Wl,'
16249 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16250 # not for PA HP-UX.
16251 case $host_cpu in
16252 hppa*64*|ia64*)
16253 # +Z the default
16256 lt_prog_compiler_pic_GCJ='+Z'
16258 esac
16259 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16260 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16263 irix5* | irix6* | nonstopux*)
16264 lt_prog_compiler_wl_GCJ='-Wl,'
16265 # PIC (with -KPIC) is the default.
16266 lt_prog_compiler_static_GCJ='-non_shared'
16269 newsos6)
16270 lt_prog_compiler_pic_GCJ='-KPIC'
16271 lt_prog_compiler_static_GCJ='-Bstatic'
16274 linux*)
16275 case $cc_basename in
16276 icc* | ecc*)
16277 lt_prog_compiler_wl_GCJ='-Wl,'
16278 lt_prog_compiler_pic_GCJ='-KPIC'
16279 lt_prog_compiler_static_GCJ='-static'
16281 pgcc* | pgf77* | pgf90* | pgf95*)
16282 # Portland Group compilers (*not* the Pentium gcc compiler,
16283 # which looks to be a dead project)
16284 lt_prog_compiler_wl_GCJ='-Wl,'
16285 lt_prog_compiler_pic_GCJ='-fpic'
16286 lt_prog_compiler_static_GCJ='-Bstatic'
16288 ccc*)
16289 lt_prog_compiler_wl_GCJ='-Wl,'
16290 # All Alpha code is PIC.
16291 lt_prog_compiler_static_GCJ='-non_shared'
16293 esac
16296 osf3* | osf4* | osf5*)
16297 lt_prog_compiler_wl_GCJ='-Wl,'
16298 # All OSF/1 code is PIC.
16299 lt_prog_compiler_static_GCJ='-non_shared'
16302 solaris*)
16303 lt_prog_compiler_pic_GCJ='-KPIC'
16304 lt_prog_compiler_static_GCJ='-Bstatic'
16305 case $cc_basename in
16306 f77* | f90* | f95*)
16307 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16309 lt_prog_compiler_wl_GCJ='-Wl,';;
16310 esac
16313 sunos4*)
16314 lt_prog_compiler_wl_GCJ='-Qoption ld '
16315 lt_prog_compiler_pic_GCJ='-PIC'
16316 lt_prog_compiler_static_GCJ='-Bstatic'
16319 sysv4 | sysv4.2uw2* | sysv4.3*)
16320 lt_prog_compiler_wl_GCJ='-Wl,'
16321 lt_prog_compiler_pic_GCJ='-KPIC'
16322 lt_prog_compiler_static_GCJ='-Bstatic'
16325 sysv4*MP*)
16326 if test -d /usr/nec ;then
16327 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16328 lt_prog_compiler_static_GCJ='-Bstatic'
16332 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16333 lt_prog_compiler_wl_GCJ='-Wl,'
16334 lt_prog_compiler_pic_GCJ='-KPIC'
16335 lt_prog_compiler_static_GCJ='-Bstatic'
16338 unicos*)
16339 lt_prog_compiler_wl_GCJ='-Wl,'
16340 lt_prog_compiler_can_build_shared_GCJ=no
16343 uts4*)
16344 lt_prog_compiler_pic_GCJ='-pic'
16345 lt_prog_compiler_static_GCJ='-Bstatic'
16349 lt_prog_compiler_can_build_shared_GCJ=no
16351 esac
16354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16355 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16358 # Check to make sure the PIC flag actually works.
16360 if test -n "$lt_prog_compiler_pic_GCJ"; then
16362 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16363 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16364 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367 lt_prog_compiler_pic_works_GCJ=no
16368 ac_outfile=conftest.$ac_objext
16369 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16370 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16371 # Insert the option either (1) after the last *FLAGS variable, or
16372 # (2) before a word containing "conftest.", or (3) at the end.
16373 # Note that $ac_compile itself does not contain backslashes and begins
16374 # with a dollar sign (not a hyphen), so the echo should work correctly.
16375 # The option is referenced via a variable to avoid confusing sed.
16376 lt_compile=`echo "$ac_compile" | $SED \
16377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16379 -e 's:$: $lt_compiler_flag:'`
16380 (eval echo "\"\$as_me:16380: $lt_compile\"" >&5)
16381 (eval "$lt_compile" 2>conftest.err)
16382 ac_status=$?
16383 cat conftest.err >&5
16384 echo "$as_me:16384: \$? = $ac_status" >&5
16385 if (exit $ac_status) && test -s "$ac_outfile"; then
16386 # The compiler can only warn and ignore the option if not recognized
16387 # So say no if there are warnings other than the usual output.
16388 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16390 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16391 lt_prog_compiler_pic_works_GCJ=yes
16394 $rm conftest*
16397 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16398 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16400 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16401 case $lt_prog_compiler_pic_GCJ in
16402 "" | " "*) ;;
16403 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16404 esac
16405 else
16406 lt_prog_compiler_pic_GCJ=
16407 lt_prog_compiler_can_build_shared_GCJ=no
16411 case $host_os in
16412 # For platforms which do not support PIC, -DPIC is meaningless:
16413 *djgpp*)
16414 lt_prog_compiler_pic_GCJ=
16417 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16419 esac
16422 # Check to make sure the static flag actually works.
16424 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16425 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16426 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16427 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430 lt_prog_compiler_static_works_GCJ=no
16431 save_LDFLAGS="$LDFLAGS"
16432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16433 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16435 # The linker can only warn and ignore the option if not recognized
16436 # So say no if there are warnings
16437 if test -s conftest.err; then
16438 # Append any errors to the config.log.
16439 cat conftest.err 1>&5
16440 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16442 if diff conftest.exp conftest.er2 >/dev/null; then
16443 lt_prog_compiler_static_works_GCJ=yes
16445 else
16446 lt_prog_compiler_static_works_GCJ=yes
16449 $rm conftest*
16450 LDFLAGS="$save_LDFLAGS"
16453 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16454 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16456 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16458 else
16459 lt_prog_compiler_static_GCJ=
16463 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16465 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 lt_cv_prog_compiler_c_o_GCJ=no
16469 $rm -r conftest 2>/dev/null
16470 mkdir conftest
16471 cd conftest
16472 mkdir out
16473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16475 lt_compiler_flag="-o out/conftest2.$ac_objext"
16476 # Insert the option either (1) after the last *FLAGS variable, or
16477 # (2) before a word containing "conftest.", or (3) at the end.
16478 # Note that $ac_compile itself does not contain backslashes and begins
16479 # with a dollar sign (not a hyphen), so the echo should work correctly.
16480 lt_compile=`echo "$ac_compile" | $SED \
16481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16483 -e 's:$: $lt_compiler_flag:'`
16484 (eval echo "\"\$as_me:16484: $lt_compile\"" >&5)
16485 (eval "$lt_compile" 2>out/conftest.err)
16486 ac_status=$?
16487 cat out/conftest.err >&5
16488 echo "$as_me:16488: \$? = $ac_status" >&5
16489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16490 then
16491 # The compiler can only warn and ignore the option if not recognized
16492 # So say no if there are warnings
16493 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16496 lt_cv_prog_compiler_c_o_GCJ=yes
16499 chmod u+w . 2>&5
16500 $rm conftest*
16501 # SGI C++ compiler will create directory out/ii_files/ for
16502 # template instantiation
16503 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16504 $rm out/* && rmdir out
16505 cd ..
16506 rmdir conftest
16507 $rm conftest*
16510 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16511 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16514 hard_links="nottested"
16515 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16516 # do not overwrite the value of need_locks provided by the user
16517 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16518 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16519 hard_links=yes
16520 $rm conftest*
16521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16522 touch conftest.a
16523 ln conftest.a conftest.b 2>&5 || hard_links=no
16524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16525 { echo "$as_me:$LINENO: result: $hard_links" >&5
16526 echo "${ECHO_T}$hard_links" >&6; }
16527 if test "$hard_links" = no; then
16528 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16529 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16530 need_locks=warn
16532 else
16533 need_locks=no
16536 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16537 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16539 runpath_var=
16540 allow_undefined_flag_GCJ=
16541 enable_shared_with_static_runtimes_GCJ=no
16542 archive_cmds_GCJ=
16543 archive_expsym_cmds_GCJ=
16544 old_archive_From_new_cmds_GCJ=
16545 old_archive_from_expsyms_cmds_GCJ=
16546 export_dynamic_flag_spec_GCJ=
16547 whole_archive_flag_spec_GCJ=
16548 thread_safe_flag_spec_GCJ=
16549 hardcode_libdir_flag_spec_GCJ=
16550 hardcode_libdir_flag_spec_ld_GCJ=
16551 hardcode_libdir_separator_GCJ=
16552 hardcode_direct_GCJ=no
16553 hardcode_minus_L_GCJ=no
16554 hardcode_shlibpath_var_GCJ=unsupported
16555 link_all_deplibs_GCJ=unknown
16556 hardcode_automatic_GCJ=no
16557 module_cmds_GCJ=
16558 module_expsym_cmds_GCJ=
16559 always_export_symbols_GCJ=no
16560 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16561 # include_expsyms should be a list of space-separated symbols to be *always*
16562 # included in the symbol list
16563 include_expsyms_GCJ=
16564 # exclude_expsyms can be an extended regexp of symbols to exclude
16565 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16566 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16567 # as well as any symbol that contains `d'.
16568 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16569 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16570 # platforms (ab)use it in PIC code, but their linkers get confused if
16571 # the symbol is explicitly referenced. Since portable code cannot
16572 # rely on this symbol name, it's probably fine to never include it in
16573 # preloaded symbol tables.
16574 extract_expsyms_cmds=
16575 # Just being paranoid about ensuring that cc_basename is set.
16576 for cc_temp in $compiler""; do
16577 case $cc_temp in
16578 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16579 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16580 \-*) ;;
16581 *) break;;
16582 esac
16583 done
16584 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16586 case $host_os in
16587 cygwin* | mingw* | pw32*)
16588 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16589 # When not using gcc, we currently assume that we are using
16590 # Microsoft Visual C++.
16591 if test "$GCC" != yes; then
16592 with_gnu_ld=no
16595 interix*)
16596 # we just hope/assume this is gcc and not c89 (= MSVC++)
16597 with_gnu_ld=yes
16599 openbsd*)
16600 with_gnu_ld=no
16602 esac
16604 ld_shlibs_GCJ=yes
16605 if test "$with_gnu_ld" = yes; then
16606 # If archive_cmds runs LD, not CC, wlarc should be empty
16607 wlarc='${wl}'
16609 # Set some defaults for GNU ld with shared library support. These
16610 # are reset later if shared libraries are not supported. Putting them
16611 # here allows them to be overridden if necessary.
16612 runpath_var=LD_RUN_PATH
16613 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16614 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16615 # ancient GNU ld didn't support --whole-archive et. al.
16616 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16617 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16618 else
16619 whole_archive_flag_spec_GCJ=
16621 supports_anon_versioning=no
16622 case `$LD -v 2>/dev/null` in
16623 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16626 *\ 2.11.*) ;; # other 2.11 versions
16627 *) supports_anon_versioning=yes ;;
16628 esac
16630 # See if GNU ld supports shared libraries.
16631 case $host_os in
16632 aix3* | aix4* | aix5*)
16633 # On AIX/PPC, the GNU linker is very broken
16634 if test "$host_cpu" != ia64; then
16635 ld_shlibs_GCJ=no
16636 cat <<EOF 1>&2
16638 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16639 *** to be unable to reliably create shared libraries on AIX.
16640 *** Therefore, libtool is disabling shared libraries support. If you
16641 *** really care for shared libraries, you may want to modify your PATH
16642 *** so that a non-GNU linker is found, and then restart.
16648 amigaos*)
16649 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)'
16650 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16651 hardcode_minus_L_GCJ=yes
16653 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16654 # that the semantics of dynamic libraries on AmigaOS, at least up
16655 # to version 4, is to share data among multiple programs linked
16656 # with the same dynamic library. Since this doesn't match the
16657 # behavior of shared libraries on other platforms, we can't use
16658 # them.
16659 ld_shlibs_GCJ=no
16662 beos*)
16663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16664 allow_undefined_flag_GCJ=unsupported
16665 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16666 # support --undefined. This deserves some investigation. FIXME
16667 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16668 else
16669 ld_shlibs_GCJ=no
16673 cygwin* | mingw* | pw32*)
16674 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16675 # as there is no search path for DLLs.
16676 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16677 allow_undefined_flag_GCJ=unsupported
16678 always_export_symbols_GCJ=no
16679 enable_shared_with_static_runtimes_GCJ=yes
16680 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16682 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16683 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16684 # If the export-symbols file already is a .def file (1st line
16685 # is EXPORTS), use it as is; otherwise, prepend...
16686 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16687 cp $export_symbols $output_objdir/$soname.def;
16688 else
16689 echo EXPORTS > $output_objdir/$soname.def;
16690 cat $export_symbols >> $output_objdir/$soname.def;
16692 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16693 else
16694 ld_shlibs_GCJ=no
16698 interix3*)
16699 hardcode_direct_GCJ=no
16700 hardcode_shlibpath_var_GCJ=no
16701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16702 export_dynamic_flag_spec_GCJ='${wl}-E'
16703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16704 # Instead, shared libraries are loaded at an image base (0x10000000 by
16705 # default) and relocated if they conflict, which is a slow very memory
16706 # consuming and fragmenting process. To avoid this, we pick a random,
16707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16708 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16709 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16710 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16713 linux*)
16714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16715 tmp_addflag=
16716 case $cc_basename,$host_cpu in
16717 pgcc*) # Portland Group C compiler
16718 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16719 tmp_addflag=' $pic_flag'
16721 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16722 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16723 tmp_addflag=' $pic_flag -Mnomain' ;;
16724 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16725 tmp_addflag=' -i_dynamic' ;;
16726 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16727 tmp_addflag=' -i_dynamic -nofor_main' ;;
16728 ifc* | ifort*) # Intel Fortran compiler
16729 tmp_addflag=' -nofor_main' ;;
16730 esac
16731 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16733 if test $supports_anon_versioning = yes; then
16734 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16736 $echo "local: *; };" >> $output_objdir/$libname.ver~
16737 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16739 else
16740 ld_shlibs_GCJ=no
16744 netbsd*)
16745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16746 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16747 wlarc=
16748 else
16749 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16750 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16754 solaris*)
16755 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16756 ld_shlibs_GCJ=no
16757 cat <<EOF 1>&2
16759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16760 *** create shared libraries on Solaris systems. Therefore, libtool
16761 *** is disabling shared libraries support. We urge you to upgrade GNU
16762 *** binutils to release 2.9.1 or newer. Another option is to modify
16763 *** your PATH or compiler configuration so that the native linker is
16764 *** used, and then restart.
16767 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16769 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16770 else
16771 ld_shlibs_GCJ=no
16775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16776 case `$LD -v 2>&1` in
16777 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16778 ld_shlibs_GCJ=no
16779 cat <<_LT_EOF 1>&2
16781 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16782 *** reliably create shared libraries on SCO systems. Therefore, libtool
16783 *** is disabling shared libraries support. We urge you to upgrade GNU
16784 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16785 *** your PATH or compiler configuration so that the native linker is
16786 *** used, and then restart.
16788 _LT_EOF
16791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16792 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16793 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16794 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16795 else
16796 ld_shlibs_GCJ=no
16799 esac
16802 sunos4*)
16803 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16804 wlarc=
16805 hardcode_direct_GCJ=yes
16806 hardcode_shlibpath_var_GCJ=no
16810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16811 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16812 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16813 else
16814 ld_shlibs_GCJ=no
16817 esac
16819 if test "$ld_shlibs_GCJ" = no; then
16820 runpath_var=
16821 hardcode_libdir_flag_spec_GCJ=
16822 export_dynamic_flag_spec_GCJ=
16823 whole_archive_flag_spec_GCJ=
16825 else
16826 # PORTME fill in a description of your system's linker (not GNU ld)
16827 case $host_os in
16828 aix3*)
16829 allow_undefined_flag_GCJ=unsupported
16830 always_export_symbols_GCJ=yes
16831 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'
16832 # Note: this linker hardcodes the directories in LIBPATH if there
16833 # are no directories specified by -L.
16834 hardcode_minus_L_GCJ=yes
16835 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16836 # Neither direct hardcoding nor static linking is supported with a
16837 # broken collect2.
16838 hardcode_direct_GCJ=unsupported
16842 aix4* | aix5*)
16843 if test "$host_cpu" = ia64; then
16844 # On IA64, the linker does run time linking by default, so we don't
16845 # have to do anything special.
16846 aix_use_runtimelinking=no
16847 exp_sym_flag='-Bexport'
16848 no_entry_flag=""
16849 else
16850 # If we're using GNU nm, then we don't want the "-C" option.
16851 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16852 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16853 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'
16854 else
16855 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'
16857 aix_use_runtimelinking=no
16859 # Test if we are trying to use run time linking or normal
16860 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16861 # need to do runtime linking.
16862 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16863 for ld_flag in $LDFLAGS; do
16864 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16865 aix_use_runtimelinking=yes
16866 break
16868 done
16870 esac
16872 exp_sym_flag='-bexport'
16873 no_entry_flag='-bnoentry'
16876 # When large executables or shared objects are built, AIX ld can
16877 # have problems creating the table of contents. If linking a library
16878 # or program results in "error TOC overflow" add -mminimal-toc to
16879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16882 archive_cmds_GCJ=''
16883 hardcode_direct_GCJ=yes
16884 hardcode_libdir_separator_GCJ=':'
16885 link_all_deplibs_GCJ=yes
16887 if test "$GCC" = yes; then
16888 case $host_os in aix4.[012]|aix4.[012].*)
16889 # We only want to do this on AIX 4.2 and lower, the check
16890 # below for broken collect2 doesn't work under 4.3+
16891 collect2name=`${CC} -print-prog-name=collect2`
16892 if test -f "$collect2name" && \
16893 strings "$collect2name" | grep resolve_lib_name >/dev/null
16894 then
16895 # We have reworked collect2
16896 hardcode_direct_GCJ=yes
16897 else
16898 # We have old collect2
16899 hardcode_direct_GCJ=unsupported
16900 # It fails to find uninstalled libraries when the uninstalled
16901 # path is not listed in the libpath. Setting hardcode_minus_L
16902 # to unsupported forces relinking
16903 hardcode_minus_L_GCJ=yes
16904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16905 hardcode_libdir_separator_GCJ=
16908 esac
16909 shared_flag='-shared'
16910 if test "$aix_use_runtimelinking" = yes; then
16911 shared_flag="$shared_flag "'${wl}-G'
16913 else
16914 # not using gcc
16915 if test "$host_cpu" = ia64; then
16916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16917 # chokes on -Wl,-G. The following line is correct:
16918 shared_flag='-G'
16919 else
16920 if test "$aix_use_runtimelinking" = yes; then
16921 shared_flag='${wl}-G'
16922 else
16923 shared_flag='${wl}-bM:SRE'
16928 # It seems that -bexpall does not export symbols beginning with
16929 # underscore (_), so it is better to generate a list of symbols to export.
16930 always_export_symbols_GCJ=yes
16931 if test "$aix_use_runtimelinking" = yes; then
16932 # Warning - without using the other runtime loading flags (-brtl),
16933 # -berok will link without error, but may produce a broken library.
16934 allow_undefined_flag_GCJ='-berok'
16935 # Determine the default libpath from the value encoded in an empty executable.
16936 cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h. */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16944 main ()
16948 return 0;
16950 _ACEOF
16951 rm -f conftest.$ac_objext conftest$ac_exeext
16952 if { (ac_try="$ac_link"
16953 case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_link") 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_cxx_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest$ac_exeext &&
16968 $as_test_x conftest$ac_exeext; then
16970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16972 # Check for a 64-bit object if we didn't find anything.
16973 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; }
16974 }'`; fi
16975 else
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16983 conftest$ac_exeext conftest.$ac_ext
16984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16986 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16987 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16988 else
16989 if test "$host_cpu" = ia64; then
16990 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16991 allow_undefined_flag_GCJ="-z nodefs"
16992 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16993 else
16994 # Determine the default libpath from the value encoded in an empty executable.
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17003 main ()
17007 return 0;
17009 _ACEOF
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_link") 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && {
17024 test -z "$ac_cxx_werror_flag" ||
17025 test ! -s conftest.err
17026 } && test -s conftest$ac_exeext &&
17027 $as_test_x conftest$ac_exeext; then
17029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17031 # Check for a 64-bit object if we didn't find anything.
17032 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; }
17033 }'`; fi
17034 else
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17042 conftest$ac_exeext conftest.$ac_ext
17043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17045 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17046 # Warning - without using the other run time loading flags,
17047 # -berok will link without error, but may produce a broken library.
17048 no_undefined_flag_GCJ=' ${wl}-bernotok'
17049 allow_undefined_flag_GCJ=' ${wl}-berok'
17050 # Exported symbols can be pulled into shared objects from archives
17051 whole_archive_flag_spec_GCJ='$convenience'
17052 archive_cmds_need_lc_GCJ=yes
17053 # This is similar to how AIX traditionally builds its shared libraries.
17054 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17059 amigaos*)
17060 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)'
17061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17062 hardcode_minus_L_GCJ=yes
17063 # see comment about different semantics on the GNU ld section
17064 ld_shlibs_GCJ=no
17067 bsdi[45]*)
17068 export_dynamic_flag_spec_GCJ=-rdynamic
17071 cygwin* | mingw* | pw32*)
17072 # When not using gcc, we currently assume that we are using
17073 # Microsoft Visual C++.
17074 # hardcode_libdir_flag_spec is actually meaningless, as there is
17075 # no search path for DLLs.
17076 hardcode_libdir_flag_spec_GCJ=' '
17077 allow_undefined_flag_GCJ=unsupported
17078 # Tell ltmain to make .lib files, not .a files.
17079 libext=lib
17080 # Tell ltmain to make .dll files, not .so files.
17081 shrext_cmds=".dll"
17082 # FIXME: Setting linknames here is a bad hack.
17083 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17084 # The linker will automatically build a .lib file if we build a DLL.
17085 old_archive_From_new_cmds_GCJ='true'
17086 # FIXME: Should let the user specify the lib program.
17087 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17088 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17089 enable_shared_with_static_runtimes_GCJ=yes
17092 darwin* | rhapsody*)
17093 case $host_os in
17094 rhapsody* | darwin1.[012])
17095 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17097 *) # Darwin 1.3 on
17098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17099 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17100 else
17101 case ${MACOSX_DEPLOYMENT_TARGET} in
17102 10.[012])
17103 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17105 10.*)
17106 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17108 esac
17111 esac
17112 archive_cmds_need_lc_GCJ=no
17113 hardcode_direct_GCJ=no
17114 hardcode_automatic_GCJ=yes
17115 hardcode_shlibpath_var_GCJ=unsupported
17116 whole_archive_flag_spec_GCJ=''
17117 link_all_deplibs_GCJ=yes
17118 if test "$GCC" = yes ; then
17119 output_verbose_link_cmd='echo'
17120 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17121 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17123 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17124 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}'
17125 else
17126 case $cc_basename in
17127 xlc*)
17128 output_verbose_link_cmd='echo'
17129 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17130 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17132 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17133 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}'
17136 ld_shlibs_GCJ=no
17138 esac
17142 dgux*)
17143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17145 hardcode_shlibpath_var_GCJ=no
17148 freebsd1*)
17149 ld_shlibs_GCJ=no
17152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17153 # support. Future versions do this automatically, but an explicit c++rt0.o
17154 # does not break anything, and helps significantly (at the cost of a little
17155 # extra space).
17156 freebsd2.2*)
17157 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17158 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17159 hardcode_direct_GCJ=yes
17160 hardcode_shlibpath_var_GCJ=no
17163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17164 freebsd2*)
17165 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17166 hardcode_direct_GCJ=yes
17167 hardcode_minus_L_GCJ=yes
17168 hardcode_shlibpath_var_GCJ=no
17171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17172 freebsd* | kfreebsd*-gnu | dragonfly*)
17173 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17174 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17175 hardcode_direct_GCJ=yes
17176 hardcode_shlibpath_var_GCJ=no
17179 hpux9*)
17180 if test "$GCC" = yes; then
17181 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'
17182 else
17183 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'
17185 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17186 hardcode_libdir_separator_GCJ=:
17187 hardcode_direct_GCJ=yes
17189 # hardcode_minus_L: Not really in the search PATH,
17190 # but as the default location of the library.
17191 hardcode_minus_L_GCJ=yes
17192 export_dynamic_flag_spec_GCJ='${wl}-E'
17195 hpux10*)
17196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17197 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17198 else
17199 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17201 if test "$with_gnu_ld" = no; then
17202 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17203 hardcode_libdir_separator_GCJ=:
17205 hardcode_direct_GCJ=yes
17206 export_dynamic_flag_spec_GCJ='${wl}-E'
17208 # hardcode_minus_L: Not really in the search PATH,
17209 # but as the default location of the library.
17210 hardcode_minus_L_GCJ=yes
17214 hpux11*)
17215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17216 case $host_cpu in
17217 hppa*64*)
17218 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17220 ia64*)
17221 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17224 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17226 esac
17227 else
17228 case $host_cpu in
17229 hppa*64*)
17230 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17232 ia64*)
17233 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17236 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17238 esac
17240 if test "$with_gnu_ld" = no; then
17241 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17242 hardcode_libdir_separator_GCJ=:
17244 case $host_cpu in
17245 hppa*64*|ia64*)
17246 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17247 hardcode_direct_GCJ=no
17248 hardcode_shlibpath_var_GCJ=no
17251 hardcode_direct_GCJ=yes
17252 export_dynamic_flag_spec_GCJ='${wl}-E'
17254 # hardcode_minus_L: Not really in the search PATH,
17255 # but as the default location of the library.
17256 hardcode_minus_L_GCJ=yes
17258 esac
17262 irix5* | irix6* | nonstopux*)
17263 if test "$GCC" = yes; then
17264 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'
17265 else
17266 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'
17267 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17269 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17270 hardcode_libdir_separator_GCJ=:
17271 link_all_deplibs_GCJ=yes
17274 netbsd*)
17275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17276 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17277 else
17278 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17280 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17281 hardcode_direct_GCJ=yes
17282 hardcode_shlibpath_var_GCJ=no
17285 newsos6)
17286 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17287 hardcode_direct_GCJ=yes
17288 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17289 hardcode_libdir_separator_GCJ=:
17290 hardcode_shlibpath_var_GCJ=no
17293 openbsd*)
17294 hardcode_direct_GCJ=yes
17295 hardcode_shlibpath_var_GCJ=no
17296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17297 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17298 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17299 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17300 export_dynamic_flag_spec_GCJ='${wl}-E'
17301 else
17302 case $host_os in
17303 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17304 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17305 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17308 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17309 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17311 esac
17315 os2*)
17316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17317 hardcode_minus_L_GCJ=yes
17318 allow_undefined_flag_GCJ=unsupported
17319 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'
17320 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17323 osf3*)
17324 if test "$GCC" = yes; then
17325 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17326 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'
17327 else
17328 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17329 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'
17331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17332 hardcode_libdir_separator_GCJ=:
17335 osf4* | osf5*) # as osf3* with the addition of -msym flag
17336 if test "$GCC" = yes; then
17337 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17338 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'
17339 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17340 else
17341 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17342 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'
17343 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~
17344 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17346 # Both c and cxx compiler support -rpath directly
17347 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17349 hardcode_libdir_separator_GCJ=:
17352 solaris*)
17353 no_undefined_flag_GCJ=' -z text'
17354 if test "$GCC" = yes; then
17355 wlarc='${wl}'
17356 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17358 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17359 else
17360 wlarc=''
17361 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17363 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17365 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17366 hardcode_shlibpath_var_GCJ=no
17367 case $host_os in
17368 solaris2.[0-5] | solaris2.[0-5].*) ;;
17370 # The compiler driver will combine linker options so we
17371 # cannot just pass the convience library names through
17372 # without $wl, iff we do not link with $LD.
17373 # Luckily, gcc supports the same syntax we need for Sun Studio.
17374 # Supported since Solaris 2.6 (maybe 2.5.1?)
17375 case $wlarc in
17377 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17379 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17380 esac ;;
17381 esac
17382 link_all_deplibs_GCJ=yes
17385 sunos4*)
17386 if test "x$host_vendor" = xsequent; then
17387 # Use $CC to link under sequent, because it throws in some extra .o
17388 # files that make .init and .fini sections work.
17389 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17390 else
17391 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17393 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17394 hardcode_direct_GCJ=yes
17395 hardcode_minus_L_GCJ=yes
17396 hardcode_shlibpath_var_GCJ=no
17399 sysv4)
17400 case $host_vendor in
17401 sni)
17402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403 hardcode_direct_GCJ=yes # is this really true???
17405 siemens)
17406 ## LD is ld it makes a PLAMLIB
17407 ## CC just makes a GrossModule.
17408 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17409 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17410 hardcode_direct_GCJ=no
17412 motorola)
17413 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17414 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17416 esac
17417 runpath_var='LD_RUN_PATH'
17418 hardcode_shlibpath_var_GCJ=no
17421 sysv4.3*)
17422 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17423 hardcode_shlibpath_var_GCJ=no
17424 export_dynamic_flag_spec_GCJ='-Bexport'
17427 sysv4*MP*)
17428 if test -d /usr/nec; then
17429 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17430 hardcode_shlibpath_var_GCJ=no
17431 runpath_var=LD_RUN_PATH
17432 hardcode_runpath_var=yes
17433 ld_shlibs_GCJ=yes
17437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17438 no_undefined_flag_GCJ='${wl}-z,text'
17439 archive_cmds_need_lc_GCJ=no
17440 hardcode_shlibpath_var_GCJ=no
17441 runpath_var='LD_RUN_PATH'
17443 if test "$GCC" = yes; then
17444 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17445 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17446 else
17447 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17448 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17452 sysv5* | sco3.2v5* | sco5v6*)
17453 # Note: We can NOT use -z defs as we might desire, because we do not
17454 # link with -lc, and that would cause any symbols used from libc to
17455 # always be unresolved, which means just about no library would
17456 # ever link correctly. If we're not using GNU ld we use -z text
17457 # though, which does catch some bad symbols but isn't as heavy-handed
17458 # as -z defs.
17459 no_undefined_flag_GCJ='${wl}-z,text'
17460 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17461 archive_cmds_need_lc_GCJ=no
17462 hardcode_shlibpath_var_GCJ=no
17463 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17464 hardcode_libdir_separator_GCJ=':'
17465 link_all_deplibs_GCJ=yes
17466 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17467 runpath_var='LD_RUN_PATH'
17469 if test "$GCC" = yes; then
17470 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17471 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17472 else
17473 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17474 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17478 uts4*)
17479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17481 hardcode_shlibpath_var_GCJ=no
17485 ld_shlibs_GCJ=no
17487 esac
17490 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17491 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17492 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17495 # Do we need to explicitly link libc?
17497 case "x$archive_cmds_need_lc_GCJ" in
17498 x|xyes)
17499 # Assume -lc should be added
17500 archive_cmds_need_lc_GCJ=yes
17502 if test "$enable_shared" = yes && test "$GCC" = yes; then
17503 case $archive_cmds_GCJ in
17504 *'~'*)
17505 # FIXME: we may have to deal with multi-command sequences.
17507 '$CC '*)
17508 # Test whether the compiler implicitly links with -lc since on some
17509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17510 # to ld, don't add -lc before -lgcc.
17511 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17512 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17513 $rm conftest*
17514 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17517 (eval $ac_compile) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } 2>conftest.err; then
17521 soname=conftest
17522 lib=conftest
17523 libobjs=conftest.$ac_objext
17524 deplibs=
17525 wl=$lt_prog_compiler_wl_GCJ
17526 pic_flag=$lt_prog_compiler_pic_GCJ
17527 compiler_flags=-v
17528 linker_flags=-v
17529 verstring=
17530 output_objdir=.
17531 libname=conftest
17532 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17533 allow_undefined_flag_GCJ=
17534 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17535 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }
17539 then
17540 archive_cmds_need_lc_GCJ=no
17541 else
17542 archive_cmds_need_lc_GCJ=yes
17544 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17545 else
17546 cat conftest.err 1>&5
17548 $rm conftest*
17549 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17550 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17552 esac
17555 esac
17557 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17558 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17559 library_names_spec=
17560 libname_spec='lib$name'
17561 soname_spec=
17562 shrext_cmds=".so"
17563 postinstall_cmds=
17564 postuninstall_cmds=
17565 finish_cmds=
17566 finish_eval=
17567 shlibpath_var=
17568 shlibpath_overrides_runpath=unknown
17569 version_type=none
17570 dynamic_linker="$host_os ld.so"
17571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17572 if test "$GCC" = yes; then
17573 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17574 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17575 # if the path contains ";" then we assume it to be the separator
17576 # otherwise default to the standard path separator (i.e. ":") - it is
17577 # assumed that no part of a normal pathname contains ";" but that should
17578 # okay in the real world where ";" in dirpaths is itself problematic.
17579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17580 else
17581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17583 else
17584 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17586 need_lib_prefix=unknown
17587 hardcode_into_libs=no
17589 # when you set need_version to no, make sure it does not cause -set_version
17590 # flags to be left without arguments
17591 need_version=unknown
17593 case $host_os in
17594 aix3*)
17595 version_type=linux
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17597 shlibpath_var=LIBPATH
17599 # AIX 3 has no versioning support, so we append a major version to the name.
17600 soname_spec='${libname}${release}${shared_ext}$major'
17603 aix4* | aix5*)
17604 version_type=linux
17605 need_lib_prefix=no
17606 need_version=no
17607 hardcode_into_libs=yes
17608 if test "$host_cpu" = ia64; then
17609 # AIX 5 supports IA64
17610 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17611 shlibpath_var=LD_LIBRARY_PATH
17612 else
17613 # With GCC up to 2.95.x, collect2 would create an import file
17614 # for dependence libraries. The import file would start with
17615 # the line `#! .'. This would cause the generated library to
17616 # depend on `.', always an invalid library. This was fixed in
17617 # development snapshots of GCC prior to 3.0.
17618 case $host_os in
17619 aix4 | aix4.[01] | aix4.[01].*)
17620 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17621 echo ' yes '
17622 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17624 else
17625 can_build_shared=no
17628 esac
17629 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17630 # soname into executable. Probably we can add versioning support to
17631 # collect2, so additional links can be useful in future.
17632 if test "$aix_use_runtimelinking" = yes; then
17633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17634 # instead of lib<name>.a to let people know that these are not
17635 # typical AIX shared libraries.
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637 else
17638 # We preserve .a as extension for shared libraries through AIX4.2
17639 # and later when we are not doing run time linking.
17640 library_names_spec='${libname}${release}.a $libname.a'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17643 shlibpath_var=LIBPATH
17647 amigaos*)
17648 library_names_spec='$libname.ixlibrary $libname.a'
17649 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17650 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'
17653 beos*)
17654 library_names_spec='${libname}${shared_ext}'
17655 dynamic_linker="$host_os ld.so"
17656 shlibpath_var=LIBRARY_PATH
17659 bsdi[45]*)
17660 version_type=linux
17661 need_version=no
17662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17663 soname_spec='${libname}${release}${shared_ext}$major'
17664 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17665 shlibpath_var=LD_LIBRARY_PATH
17666 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17667 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17668 # the default ld.so.conf also contains /usr/contrib/lib and
17669 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17670 # libtool to hard-code these into programs
17673 cygwin* | mingw* | pw32*)
17674 version_type=windows
17675 shrext_cmds=".dll"
17676 need_version=no
17677 need_lib_prefix=no
17679 case $GCC,$host_os in
17680 yes,cygwin* | yes,mingw* | yes,pw32*)
17681 library_names_spec='$libname.dll.a'
17682 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17683 postinstall_cmds='base_file=`basename \${file}`~
17684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17685 dldir=$destdir/`dirname \$dlpath`~
17686 test -d \$dldir || mkdir -p \$dldir~
17687 $install_prog $dir/$dlname \$dldir/$dlname~
17688 chmod a+x \$dldir/$dlname'
17689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17690 dlpath=$dir/\$dldll~
17691 $rm \$dlpath'
17692 shlibpath_overrides_runpath=yes
17694 case $host_os in
17695 cygwin*)
17696 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17697 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17698 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17700 mingw*)
17701 # MinGW DLLs use traditional 'lib' prefix
17702 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17704 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17705 # It is most probably a Windows format PATH printed by
17706 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17707 # path with ; separators, and with drive letters. We can handle the
17708 # drive letters (cygwin fileutils understands them), so leave them,
17709 # especially as we might pass files found there to a mingw objdump,
17710 # which wouldn't understand a cygwinified path. Ahh.
17711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17712 else
17713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17716 pw32*)
17717 # pw32 DLLs use 'pw' prefix rather than 'lib'
17718 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17720 esac
17724 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17726 esac
17727 dynamic_linker='Win32 ld.exe'
17728 # FIXME: first we should search . and the directory the executable is in
17729 shlibpath_var=PATH
17732 darwin* | rhapsody*)
17733 dynamic_linker="$host_os dyld"
17734 version_type=darwin
17735 need_lib_prefix=no
17736 need_version=no
17737 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17738 soname_spec='${libname}${release}${major}$shared_ext'
17739 shlibpath_overrides_runpath=yes
17740 shlibpath_var=DYLD_LIBRARY_PATH
17741 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17742 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17743 if test "$GCC" = yes; then
17744 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"`
17745 else
17746 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17751 dgux*)
17752 version_type=linux
17753 need_lib_prefix=no
17754 need_version=no
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17757 shlibpath_var=LD_LIBRARY_PATH
17760 freebsd1*)
17761 dynamic_linker=no
17764 kfreebsd*-gnu)
17765 version_type=linux
17766 need_lib_prefix=no
17767 need_version=no
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17769 soname_spec='${libname}${release}${shared_ext}$major'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 shlibpath_overrides_runpath=no
17772 hardcode_into_libs=yes
17773 dynamic_linker='GNU ld.so'
17776 freebsd* | dragonfly*)
17777 # DragonFly does not have aout. When/if they implement a new
17778 # versioning mechanism, adjust this.
17779 if test -x /usr/bin/objformat; then
17780 objformat=`/usr/bin/objformat`
17781 else
17782 case $host_os in
17783 freebsd[123]*) objformat=aout ;;
17784 *) objformat=elf ;;
17785 esac
17787 version_type=freebsd-$objformat
17788 case $version_type in
17789 freebsd-elf*)
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17791 need_version=no
17792 need_lib_prefix=no
17794 freebsd-*)
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17796 need_version=yes
17798 esac
17799 shlibpath_var=LD_LIBRARY_PATH
17800 case $host_os in
17801 freebsd2*)
17802 shlibpath_overrides_runpath=yes
17804 freebsd3.[01]* | freebsdelf3.[01]*)
17805 shlibpath_overrides_runpath=yes
17806 hardcode_into_libs=yes
17808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17810 shlibpath_overrides_runpath=no
17811 hardcode_into_libs=yes
17813 freebsd*) # from 4.6 on
17814 shlibpath_overrides_runpath=yes
17815 hardcode_into_libs=yes
17817 esac
17820 gnu*)
17821 version_type=linux
17822 need_lib_prefix=no
17823 need_version=no
17824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17825 soname_spec='${libname}${release}${shared_ext}$major'
17826 shlibpath_var=LD_LIBRARY_PATH
17827 hardcode_into_libs=yes
17830 hpux9* | hpux10* | hpux11*)
17831 # Give a soname corresponding to the major version so that dld.sl refuses to
17832 # link against other versions.
17833 version_type=sunos
17834 need_lib_prefix=no
17835 need_version=no
17836 case $host_cpu in
17837 ia64*)
17838 shrext_cmds='.so'
17839 hardcode_into_libs=yes
17840 dynamic_linker="$host_os dld.so"
17841 shlibpath_var=LD_LIBRARY_PATH
17842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844 soname_spec='${libname}${release}${shared_ext}$major'
17845 if test "X$HPUX_IA64_MODE" = X32; then
17846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17847 else
17848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17852 hppa*64*)
17853 shrext_cmds='.sl'
17854 hardcode_into_libs=yes
17855 dynamic_linker="$host_os dld.sl"
17856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17864 shrext_cmds='.sl'
17865 dynamic_linker="$host_os dld.sl"
17866 shlibpath_var=SHLIB_PATH
17867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869 soname_spec='${libname}${release}${shared_ext}$major'
17871 esac
17872 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17873 postinstall_cmds='chmod 555 $lib'
17876 interix3*)
17877 version_type=linux
17878 need_lib_prefix=no
17879 need_version=no
17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17881 soname_spec='${libname}${release}${shared_ext}$major'
17882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 shlibpath_overrides_runpath=no
17885 hardcode_into_libs=yes
17888 irix5* | irix6* | nonstopux*)
17889 case $host_os in
17890 nonstopux*) version_type=nonstopux ;;
17892 if test "$lt_cv_prog_gnu_ld" = yes; then
17893 version_type=linux
17894 else
17895 version_type=irix
17896 fi ;;
17897 esac
17898 need_lib_prefix=no
17899 need_version=no
17900 soname_spec='${libname}${release}${shared_ext}$major'
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17902 case $host_os in
17903 irix5* | nonstopux*)
17904 libsuff= shlibsuff=
17907 case $LD in # libtool.m4 will add one of these switches to LD
17908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17909 libsuff= shlibsuff= libmagic=32-bit;;
17910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17911 libsuff=32 shlibsuff=N32 libmagic=N32;;
17912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17913 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17914 *) libsuff= shlibsuff= libmagic=never-match;;
17915 esac
17917 esac
17918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17919 shlibpath_overrides_runpath=no
17920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17922 hardcode_into_libs=yes
17925 # No shared lib support for Linux oldld, aout, or coff.
17926 linux*oldld* | linux*aout* | linux*coff*)
17927 dynamic_linker=no
17930 # This must be Linux ELF.
17931 linux*)
17932 version_type=linux
17933 need_lib_prefix=no
17934 need_version=no
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17936 soname_spec='${libname}${release}${shared_ext}$major'
17937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17938 shlibpath_var=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath=no
17940 # This implies no fast_install, which is unacceptable.
17941 # Some rework will be needed to allow for fast_install
17942 # before this can be enabled.
17943 hardcode_into_libs=yes
17945 # Append ld.so.conf contents to the search path
17946 if test -f /etc/ld.so.conf; then
17947 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17948 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17951 # We used to test for /lib/ld.so.1 and disable shared libraries on
17952 # powerpc, because MkLinux only supported shared libraries with the
17953 # GNU dynamic linker. Since this was broken with cross compilers,
17954 # most powerpc-linux boxes support dynamic linking these days and
17955 # people can always --disable-shared, the test was removed, and we
17956 # assume the GNU/Linux dynamic linker is in use.
17957 dynamic_linker='GNU/Linux ld.so'
17960 knetbsd*-gnu)
17961 version_type=linux
17962 need_lib_prefix=no
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath=no
17968 hardcode_into_libs=yes
17969 dynamic_linker='GNU ld.so'
17972 netbsd*)
17973 version_type=sunos
17974 need_lib_prefix=no
17975 need_version=no
17976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17979 dynamic_linker='NetBSD (a.out) ld.so'
17980 else
17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982 soname_spec='${libname}${release}${shared_ext}$major'
17983 dynamic_linker='NetBSD ld.elf_so'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 shlibpath_overrides_runpath=yes
17987 hardcode_into_libs=yes
17990 newsos6)
17991 version_type=linux
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993 shlibpath_var=LD_LIBRARY_PATH
17994 shlibpath_overrides_runpath=yes
17997 nto-qnx*)
17998 version_type=linux
17999 need_lib_prefix=no
18000 need_version=no
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 shlibpath_var=LD_LIBRARY_PATH
18004 shlibpath_overrides_runpath=yes
18007 openbsd*)
18008 version_type=sunos
18009 sys_lib_dlsearch_path_spec="/usr/lib"
18010 need_lib_prefix=no
18011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18012 case $host_os in
18013 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18014 *) need_version=no ;;
18015 esac
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18018 shlibpath_var=LD_LIBRARY_PATH
18019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18020 case $host_os in
18021 openbsd2.[89] | openbsd2.[89].*)
18022 shlibpath_overrides_runpath=no
18025 shlibpath_overrides_runpath=yes
18027 esac
18028 else
18029 shlibpath_overrides_runpath=yes
18033 os2*)
18034 libname_spec='$name'
18035 shrext_cmds=".dll"
18036 need_lib_prefix=no
18037 library_names_spec='$libname${shared_ext} $libname.a'
18038 dynamic_linker='OS/2 ld.exe'
18039 shlibpath_var=LIBPATH
18042 osf3* | osf4* | osf5*)
18043 version_type=osf
18044 need_lib_prefix=no
18045 need_version=no
18046 soname_spec='${libname}${release}${shared_ext}$major'
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18053 solaris*)
18054 version_type=linux
18055 need_lib_prefix=no
18056 need_version=no
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 shlibpath_var=LD_LIBRARY_PATH
18060 shlibpath_overrides_runpath=yes
18061 hardcode_into_libs=yes
18062 # ldd complains unless libraries are executable
18063 postinstall_cmds='chmod +x $lib'
18066 sunos4*)
18067 version_type=sunos
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18069 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18070 shlibpath_var=LD_LIBRARY_PATH
18071 shlibpath_overrides_runpath=yes
18072 if test "$with_gnu_ld" = yes; then
18073 need_lib_prefix=no
18075 need_version=yes
18078 sysv4 | sysv4.3*)
18079 version_type=linux
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 case $host_vendor in
18084 sni)
18085 shlibpath_overrides_runpath=no
18086 need_lib_prefix=no
18087 export_dynamic_flag_spec='${wl}-Blargedynsym'
18088 runpath_var=LD_RUN_PATH
18090 siemens)
18091 need_lib_prefix=no
18093 motorola)
18094 need_lib_prefix=no
18095 need_version=no
18096 shlibpath_overrides_runpath=no
18097 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18099 esac
18102 sysv4*MP*)
18103 if test -d /usr/nec ;then
18104 version_type=linux
18105 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18106 soname_spec='$libname${shared_ext}.$major'
18107 shlibpath_var=LD_LIBRARY_PATH
18111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18112 version_type=freebsd-elf
18113 need_lib_prefix=no
18114 need_version=no
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18116 soname_spec='${libname}${release}${shared_ext}$major'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 hardcode_into_libs=yes
18119 if test "$with_gnu_ld" = yes; then
18120 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18121 shlibpath_overrides_runpath=no
18122 else
18123 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18124 shlibpath_overrides_runpath=yes
18125 case $host_os in
18126 sco3.2v5*)
18127 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18129 esac
18131 sys_lib_dlsearch_path_spec='/usr/lib'
18134 uts4*)
18135 version_type=linux
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 shlibpath_var=LD_LIBRARY_PATH
18142 dynamic_linker=no
18144 esac
18145 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18146 echo "${ECHO_T}$dynamic_linker" >&6; }
18147 test "$dynamic_linker" = no && can_build_shared=no
18149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18150 if test "$GCC" = yes; then
18151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18154 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18155 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18156 hardcode_action_GCJ=
18157 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18158 test -n "$runpath_var_GCJ" || \
18159 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18161 # We can hardcode non-existant directories.
18162 if test "$hardcode_direct_GCJ" != no &&
18163 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18164 # have to relink, otherwise we might link with an installed library
18165 # when we should be linking with a yet-to-be-installed one
18166 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18167 test "$hardcode_minus_L_GCJ" != no; then
18168 # Linking always hardcodes the temporary library directory.
18169 hardcode_action_GCJ=relink
18170 else
18171 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18172 hardcode_action_GCJ=immediate
18174 else
18175 # We cannot hardcode anything, or else we can only hardcode existing
18176 # directories.
18177 hardcode_action_GCJ=unsupported
18179 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18180 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18182 if test "$hardcode_action_GCJ" = relink; then
18183 # Fast installation is not supported
18184 enable_fast_install=no
18185 elif test "$shlibpath_overrides_runpath" = yes ||
18186 test "$enable_shared" = no; then
18187 # Fast installation is not necessary
18188 enable_fast_install=needless
18192 # The else clause should only fire when bootstrapping the
18193 # libtool distribution, otherwise you forgot to ship ltmain.sh
18194 # with your package, and you will get complaints that there are
18195 # no rules to generate ltmain.sh.
18196 if test -f "$ltmain"; then
18197 # See if we are running on zsh, and set the options which allow our commands through
18198 # without removal of \ escapes.
18199 if test -n "${ZSH_VERSION+set}" ; then
18200 setopt NO_GLOB_SUBST
18202 # Now quote all the things that may contain metacharacters while being
18203 # careful not to overquote the AC_SUBSTed values. We take copies of the
18204 # variables and quote the copies for generation of the libtool script.
18205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18206 SED SHELL STRIP \
18207 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18208 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18209 deplibs_check_method reload_flag reload_cmds need_locks \
18210 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18211 lt_cv_sys_global_symbol_to_c_name_address \
18212 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18213 old_postinstall_cmds old_postuninstall_cmds \
18214 compiler_GCJ \
18215 CC_GCJ \
18216 LD_GCJ \
18217 lt_prog_compiler_wl_GCJ \
18218 lt_prog_compiler_pic_GCJ \
18219 lt_prog_compiler_static_GCJ \
18220 lt_prog_compiler_no_builtin_flag_GCJ \
18221 export_dynamic_flag_spec_GCJ \
18222 thread_safe_flag_spec_GCJ \
18223 whole_archive_flag_spec_GCJ \
18224 enable_shared_with_static_runtimes_GCJ \
18225 old_archive_cmds_GCJ \
18226 old_archive_from_new_cmds_GCJ \
18227 predep_objects_GCJ \
18228 postdep_objects_GCJ \
18229 predeps_GCJ \
18230 postdeps_GCJ \
18231 compiler_lib_search_path_GCJ \
18232 archive_cmds_GCJ \
18233 archive_expsym_cmds_GCJ \
18234 postinstall_cmds_GCJ \
18235 postuninstall_cmds_GCJ \
18236 old_archive_from_expsyms_cmds_GCJ \
18237 allow_undefined_flag_GCJ \
18238 no_undefined_flag_GCJ \
18239 export_symbols_cmds_GCJ \
18240 hardcode_libdir_flag_spec_GCJ \
18241 hardcode_libdir_flag_spec_ld_GCJ \
18242 hardcode_libdir_separator_GCJ \
18243 hardcode_automatic_GCJ \
18244 module_cmds_GCJ \
18245 module_expsym_cmds_GCJ \
18246 lt_cv_prog_compiler_c_o_GCJ \
18247 exclude_expsyms_GCJ \
18248 include_expsyms_GCJ; do
18250 case $var in
18251 old_archive_cmds_GCJ | \
18252 old_archive_from_new_cmds_GCJ | \
18253 archive_cmds_GCJ | \
18254 archive_expsym_cmds_GCJ | \
18255 module_cmds_GCJ | \
18256 module_expsym_cmds_GCJ | \
18257 old_archive_from_expsyms_cmds_GCJ | \
18258 export_symbols_cmds_GCJ | \
18259 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18260 postinstall_cmds | postuninstall_cmds | \
18261 old_postinstall_cmds | old_postuninstall_cmds | \
18262 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18263 # Double-quote double-evaled strings.
18264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18269 esac
18270 done
18272 case $lt_echo in
18273 *'\$0 --fallback-echo"')
18274 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18276 esac
18278 cfgfile="$ofile"
18280 cat <<__EOF__ >> "$cfgfile"
18281 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18285 # Shell to use when invoking shell scripts.
18286 SHELL=$lt_SHELL
18288 # Whether or not to build shared libraries.
18289 build_libtool_libs=$enable_shared
18291 # Whether or not to build static libraries.
18292 build_old_libs=$enable_static
18294 # Whether or not to add -lc for building shared libraries.
18295 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18297 # Whether or not to disallow shared libs when runtime libs are static
18298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18300 # Whether or not to optimize for fast installation.
18301 fast_install=$enable_fast_install
18303 # The host system.
18304 host_alias=$host_alias
18305 host=$host
18306 host_os=$host_os
18308 # The build system.
18309 build_alias=$build_alias
18310 build=$build
18311 build_os=$build_os
18313 # An echo program that does not interpret backslashes.
18314 echo=$lt_echo
18316 # The archiver.
18317 AR=$lt_AR
18318 AR_FLAGS=$lt_AR_FLAGS
18320 # A C compiler.
18321 LTCC=$lt_LTCC
18323 # LTCC compiler flags.
18324 LTCFLAGS=$lt_LTCFLAGS
18326 # A language-specific compiler.
18327 CC=$lt_compiler_GCJ
18329 # Is the compiler the GNU C compiler?
18330 with_gcc=$GCC_GCJ
18332 # An ERE matcher.
18333 EGREP=$lt_EGREP
18335 # The linker used to build libraries.
18336 LD=$lt_LD_GCJ
18338 # Whether we need hard or soft links.
18339 LN_S=$lt_LN_S
18341 # A BSD-compatible nm program.
18342 NM=$lt_NM
18344 # A symbol stripping program
18345 STRIP=$lt_STRIP
18347 # Used to examine libraries when file_magic_cmd begins "file"
18348 MAGIC_CMD=$MAGIC_CMD
18350 # Used on cygwin: DLL creation program.
18351 DLLTOOL="$DLLTOOL"
18353 # Used on cygwin: object dumper.
18354 OBJDUMP="$OBJDUMP"
18356 # Used on cygwin: assembler.
18357 AS="$AS"
18359 # The name of the directory that contains temporary libtool files.
18360 objdir=$objdir
18362 # How to create reloadable object files.
18363 reload_flag=$lt_reload_flag
18364 reload_cmds=$lt_reload_cmds
18366 # How to pass a linker flag through the compiler.
18367 wl=$lt_lt_prog_compiler_wl_GCJ
18369 # Object file suffix (normally "o").
18370 objext="$ac_objext"
18372 # Old archive suffix (normally "a").
18373 libext="$libext"
18375 # Shared library suffix (normally ".so").
18376 shrext_cmds='$shrext_cmds'
18378 # Executable file suffix (normally "").
18379 exeext="$exeext"
18381 # Additional compiler flags for building library objects.
18382 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18383 pic_mode=$pic_mode
18385 # What is the maximum length of a command?
18386 max_cmd_len=$lt_cv_sys_max_cmd_len
18388 # Does compiler simultaneously support -c and -o options?
18389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18391 # Must we lock files when doing compilation?
18392 need_locks=$lt_need_locks
18394 # Do we need the lib prefix for modules?
18395 need_lib_prefix=$need_lib_prefix
18397 # Do we need a version for libraries?
18398 need_version=$need_version
18400 # Whether dlopen is supported.
18401 dlopen_support=$enable_dlopen
18403 # Whether dlopen of programs is supported.
18404 dlopen_self=$enable_dlopen_self
18406 # Whether dlopen of statically linked programs is supported.
18407 dlopen_self_static=$enable_dlopen_self_static
18409 # Compiler flag to prevent dynamic linking.
18410 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18412 # Compiler flag to turn off builtin functions.
18413 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18415 # Compiler flag to allow reflexive dlopens.
18416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18418 # Compiler flag to generate shared objects directly from archives.
18419 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18421 # Compiler flag to generate thread-safe objects.
18422 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18424 # Library versioning type.
18425 version_type=$version_type
18427 # Format of library name prefix.
18428 libname_spec=$lt_libname_spec
18430 # List of archive names. First name is the real one, the rest are links.
18431 # The last name is the one that the linker finds with -lNAME.
18432 library_names_spec=$lt_library_names_spec
18434 # The coded name of the library, if different from the real name.
18435 soname_spec=$lt_soname_spec
18437 # Commands used to build and install an old-style archive.
18438 RANLIB=$lt_RANLIB
18439 old_archive_cmds=$lt_old_archive_cmds_GCJ
18440 old_postinstall_cmds=$lt_old_postinstall_cmds
18441 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18443 # Create an old-style archive from a shared archive.
18444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18446 # Create a temporary old-style archive to link instead of a shared archive.
18447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18449 # Commands used to build and install a shared archive.
18450 archive_cmds=$lt_archive_cmds_GCJ
18451 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18452 postinstall_cmds=$lt_postinstall_cmds
18453 postuninstall_cmds=$lt_postuninstall_cmds
18455 # Commands used to build a loadable module (assumed same as above if empty)
18456 module_cmds=$lt_module_cmds_GCJ
18457 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18459 # Commands to strip libraries.
18460 old_striplib=$lt_old_striplib
18461 striplib=$lt_striplib
18463 # Dependencies to place before the objects being linked to create a
18464 # shared library.
18465 predep_objects=$lt_predep_objects_GCJ
18467 # Dependencies to place after the objects being linked to create a
18468 # shared library.
18469 postdep_objects=$lt_postdep_objects_GCJ
18471 # Dependencies to place before the objects being linked to create a
18472 # shared library.
18473 predeps=$lt_predeps_GCJ
18475 # Dependencies to place after the objects being linked to create a
18476 # shared library.
18477 postdeps=$lt_postdeps_GCJ
18479 # The library search path used internally by the compiler when linking
18480 # a shared library.
18481 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18483 # Method to check whether dependent libraries are shared objects.
18484 deplibs_check_method=$lt_deplibs_check_method
18486 # Command to use when deplibs_check_method == file_magic.
18487 file_magic_cmd=$lt_file_magic_cmd
18489 # Flag that allows shared libraries with undefined symbols to be built.
18490 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18492 # Flag that forces no undefined symbols.
18493 no_undefined_flag=$lt_no_undefined_flag_GCJ
18495 # Commands used to finish a libtool library installation in a directory.
18496 finish_cmds=$lt_finish_cmds
18498 # Same as above, but a single script fragment to be evaled but not shown.
18499 finish_eval=$lt_finish_eval
18501 # Take the output of nm and produce a listing of raw symbols and C names.
18502 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18504 # Transform the output of nm in a proper C declaration
18505 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18507 # Transform the output of nm in a C name address pair
18508 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18510 # This is the shared library runtime path variable.
18511 runpath_var=$runpath_var
18513 # This is the shared library path variable.
18514 shlibpath_var=$shlibpath_var
18516 # Is shlibpath searched before the hard-coded library search path?
18517 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18519 # How to hardcode a shared library path into an executable.
18520 hardcode_action=$hardcode_action_GCJ
18522 # Whether we should hardcode library paths into libraries.
18523 hardcode_into_libs=$hardcode_into_libs
18525 # Flag to hardcode \$libdir into a binary during linking.
18526 # This must work even if \$libdir does not exist.
18527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18529 # If ld is used when linking, flag to hardcode \$libdir into
18530 # a binary during linking. This must work even if \$libdir does
18531 # not exist.
18532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18534 # Whether we need a single -rpath flag with a separated argument.
18535 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18537 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18538 # resulting binary.
18539 hardcode_direct=$hardcode_direct_GCJ
18541 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18542 # resulting binary.
18543 hardcode_minus_L=$hardcode_minus_L_GCJ
18545 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18546 # the resulting binary.
18547 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18549 # Set to yes if building a shared library automatically hardcodes DIR into the library
18550 # and all subsequent libraries and executables linked against it.
18551 hardcode_automatic=$hardcode_automatic_GCJ
18553 # Variables whose values should be saved in libtool wrapper scripts and
18554 # restored at relink time.
18555 variables_saved_for_relink="$variables_saved_for_relink"
18557 # Whether libtool must link a program against all its dependency libraries.
18558 link_all_deplibs=$link_all_deplibs_GCJ
18560 # Compile-time system search path for libraries
18561 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18563 # Run-time system search path for libraries
18564 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18566 # Fix the shell variable \$srcfile for the compiler.
18567 fix_srcfile_path="$fix_srcfile_path_GCJ"
18569 # Set to yes if exported symbols are required.
18570 always_export_symbols=$always_export_symbols_GCJ
18572 # The commands to list exported symbols.
18573 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18575 # The commands to extract the exported symbol list from a shared archive.
18576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18578 # Symbols that should not be listed in the preloaded symbols.
18579 exclude_expsyms=$lt_exclude_expsyms_GCJ
18581 # Symbols that must always be exported.
18582 include_expsyms=$lt_include_expsyms_GCJ
18584 # ### END LIBTOOL TAG CONFIG: $tagname
18586 __EOF__
18589 else
18590 # If there is no Makefile yet, we rely on a make rule to execute
18591 # `config.status --recheck' to rerun these tests and create the
18592 # libtool script then.
18593 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18594 if test -f "$ltmain_in"; then
18595 test -f Makefile && make "$ltmain"
18600 ac_ext=cpp
18601 ac_cpp='$CXXCPP $CPPFLAGS'
18602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18606 CC="$lt_save_CC"
18608 else
18609 tagname=""
18616 # Source file extension for RC test sources.
18617 ac_ext=rc
18619 # Object file extension for compiled RC test sources.
18620 objext=o
18621 objext_RC=$objext
18623 # Code to be used in simple compile tests
18624 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18626 # Code to be used in simple link tests
18627 lt_simple_link_test_code="$lt_simple_compile_test_code"
18629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18631 # If no C compiler was specified, use CC.
18632 LTCC=${LTCC-"$CC"}
18634 # If no C compiler flags were specified, use CFLAGS.
18635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18637 # Allow CC to be a program name with arguments.
18638 compiler=$CC
18641 # save warnings/boilerplate of simple test code
18642 ac_outfile=conftest.$ac_objext
18643 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18645 _lt_compiler_boilerplate=`cat conftest.err`
18646 $rm conftest*
18648 ac_outfile=conftest.$ac_objext
18649 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18651 _lt_linker_boilerplate=`cat conftest.err`
18652 $rm conftest*
18655 # Allow CC to be a program name with arguments.
18656 lt_save_CC="$CC"
18657 CC=${RC-"windres"}
18658 compiler=$CC
18659 compiler_RC=$CC
18660 for cc_temp in $compiler""; do
18661 case $cc_temp in
18662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18664 \-*) ;;
18665 *) break;;
18666 esac
18667 done
18668 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18670 lt_cv_prog_compiler_c_o_RC=yes
18672 # The else clause should only fire when bootstrapping the
18673 # libtool distribution, otherwise you forgot to ship ltmain.sh
18674 # with your package, and you will get complaints that there are
18675 # no rules to generate ltmain.sh.
18676 if test -f "$ltmain"; then
18677 # See if we are running on zsh, and set the options which allow our commands through
18678 # without removal of \ escapes.
18679 if test -n "${ZSH_VERSION+set}" ; then
18680 setopt NO_GLOB_SUBST
18682 # Now quote all the things that may contain metacharacters while being
18683 # careful not to overquote the AC_SUBSTed values. We take copies of the
18684 # variables and quote the copies for generation of the libtool script.
18685 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18686 SED SHELL STRIP \
18687 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18688 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18689 deplibs_check_method reload_flag reload_cmds need_locks \
18690 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18691 lt_cv_sys_global_symbol_to_c_name_address \
18692 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18693 old_postinstall_cmds old_postuninstall_cmds \
18694 compiler_RC \
18695 CC_RC \
18696 LD_RC \
18697 lt_prog_compiler_wl_RC \
18698 lt_prog_compiler_pic_RC \
18699 lt_prog_compiler_static_RC \
18700 lt_prog_compiler_no_builtin_flag_RC \
18701 export_dynamic_flag_spec_RC \
18702 thread_safe_flag_spec_RC \
18703 whole_archive_flag_spec_RC \
18704 enable_shared_with_static_runtimes_RC \
18705 old_archive_cmds_RC \
18706 old_archive_from_new_cmds_RC \
18707 predep_objects_RC \
18708 postdep_objects_RC \
18709 predeps_RC \
18710 postdeps_RC \
18711 compiler_lib_search_path_RC \
18712 archive_cmds_RC \
18713 archive_expsym_cmds_RC \
18714 postinstall_cmds_RC \
18715 postuninstall_cmds_RC \
18716 old_archive_from_expsyms_cmds_RC \
18717 allow_undefined_flag_RC \
18718 no_undefined_flag_RC \
18719 export_symbols_cmds_RC \
18720 hardcode_libdir_flag_spec_RC \
18721 hardcode_libdir_flag_spec_ld_RC \
18722 hardcode_libdir_separator_RC \
18723 hardcode_automatic_RC \
18724 module_cmds_RC \
18725 module_expsym_cmds_RC \
18726 lt_cv_prog_compiler_c_o_RC \
18727 exclude_expsyms_RC \
18728 include_expsyms_RC; do
18730 case $var in
18731 old_archive_cmds_RC | \
18732 old_archive_from_new_cmds_RC | \
18733 archive_cmds_RC | \
18734 archive_expsym_cmds_RC | \
18735 module_cmds_RC | \
18736 module_expsym_cmds_RC | \
18737 old_archive_from_expsyms_cmds_RC | \
18738 export_symbols_cmds_RC | \
18739 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18740 postinstall_cmds | postuninstall_cmds | \
18741 old_postinstall_cmds | old_postuninstall_cmds | \
18742 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18743 # Double-quote double-evaled strings.
18744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18749 esac
18750 done
18752 case $lt_echo in
18753 *'\$0 --fallback-echo"')
18754 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18756 esac
18758 cfgfile="$ofile"
18760 cat <<__EOF__ >> "$cfgfile"
18761 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18765 # Shell to use when invoking shell scripts.
18766 SHELL=$lt_SHELL
18768 # Whether or not to build shared libraries.
18769 build_libtool_libs=$enable_shared
18771 # Whether or not to build static libraries.
18772 build_old_libs=$enable_static
18774 # Whether or not to add -lc for building shared libraries.
18775 build_libtool_need_lc=$archive_cmds_need_lc_RC
18777 # Whether or not to disallow shared libs when runtime libs are static
18778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18780 # Whether or not to optimize for fast installation.
18781 fast_install=$enable_fast_install
18783 # The host system.
18784 host_alias=$host_alias
18785 host=$host
18786 host_os=$host_os
18788 # The build system.
18789 build_alias=$build_alias
18790 build=$build
18791 build_os=$build_os
18793 # An echo program that does not interpret backslashes.
18794 echo=$lt_echo
18796 # The archiver.
18797 AR=$lt_AR
18798 AR_FLAGS=$lt_AR_FLAGS
18800 # A C compiler.
18801 LTCC=$lt_LTCC
18803 # LTCC compiler flags.
18804 LTCFLAGS=$lt_LTCFLAGS
18806 # A language-specific compiler.
18807 CC=$lt_compiler_RC
18809 # Is the compiler the GNU C compiler?
18810 with_gcc=$GCC_RC
18812 # An ERE matcher.
18813 EGREP=$lt_EGREP
18815 # The linker used to build libraries.
18816 LD=$lt_LD_RC
18818 # Whether we need hard or soft links.
18819 LN_S=$lt_LN_S
18821 # A BSD-compatible nm program.
18822 NM=$lt_NM
18824 # A symbol stripping program
18825 STRIP=$lt_STRIP
18827 # Used to examine libraries when file_magic_cmd begins "file"
18828 MAGIC_CMD=$MAGIC_CMD
18830 # Used on cygwin: DLL creation program.
18831 DLLTOOL="$DLLTOOL"
18833 # Used on cygwin: object dumper.
18834 OBJDUMP="$OBJDUMP"
18836 # Used on cygwin: assembler.
18837 AS="$AS"
18839 # The name of the directory that contains temporary libtool files.
18840 objdir=$objdir
18842 # How to create reloadable object files.
18843 reload_flag=$lt_reload_flag
18844 reload_cmds=$lt_reload_cmds
18846 # How to pass a linker flag through the compiler.
18847 wl=$lt_lt_prog_compiler_wl_RC
18849 # Object file suffix (normally "o").
18850 objext="$ac_objext"
18852 # Old archive suffix (normally "a").
18853 libext="$libext"
18855 # Shared library suffix (normally ".so").
18856 shrext_cmds='$shrext_cmds'
18858 # Executable file suffix (normally "").
18859 exeext="$exeext"
18861 # Additional compiler flags for building library objects.
18862 pic_flag=$lt_lt_prog_compiler_pic_RC
18863 pic_mode=$pic_mode
18865 # What is the maximum length of a command?
18866 max_cmd_len=$lt_cv_sys_max_cmd_len
18868 # Does compiler simultaneously support -c and -o options?
18869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18871 # Must we lock files when doing compilation?
18872 need_locks=$lt_need_locks
18874 # Do we need the lib prefix for modules?
18875 need_lib_prefix=$need_lib_prefix
18877 # Do we need a version for libraries?
18878 need_version=$need_version
18880 # Whether dlopen is supported.
18881 dlopen_support=$enable_dlopen
18883 # Whether dlopen of programs is supported.
18884 dlopen_self=$enable_dlopen_self
18886 # Whether dlopen of statically linked programs is supported.
18887 dlopen_self_static=$enable_dlopen_self_static
18889 # Compiler flag to prevent dynamic linking.
18890 link_static_flag=$lt_lt_prog_compiler_static_RC
18892 # Compiler flag to turn off builtin functions.
18893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18895 # Compiler flag to allow reflexive dlopens.
18896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18898 # Compiler flag to generate shared objects directly from archives.
18899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18901 # Compiler flag to generate thread-safe objects.
18902 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18904 # Library versioning type.
18905 version_type=$version_type
18907 # Format of library name prefix.
18908 libname_spec=$lt_libname_spec
18910 # List of archive names. First name is the real one, the rest are links.
18911 # The last name is the one that the linker finds with -lNAME.
18912 library_names_spec=$lt_library_names_spec
18914 # The coded name of the library, if different from the real name.
18915 soname_spec=$lt_soname_spec
18917 # Commands used to build and install an old-style archive.
18918 RANLIB=$lt_RANLIB
18919 old_archive_cmds=$lt_old_archive_cmds_RC
18920 old_postinstall_cmds=$lt_old_postinstall_cmds
18921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18923 # Create an old-style archive from a shared archive.
18924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18926 # Create a temporary old-style archive to link instead of a shared archive.
18927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18929 # Commands used to build and install a shared archive.
18930 archive_cmds=$lt_archive_cmds_RC
18931 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18932 postinstall_cmds=$lt_postinstall_cmds
18933 postuninstall_cmds=$lt_postuninstall_cmds
18935 # Commands used to build a loadable module (assumed same as above if empty)
18936 module_cmds=$lt_module_cmds_RC
18937 module_expsym_cmds=$lt_module_expsym_cmds_RC
18939 # Commands to strip libraries.
18940 old_striplib=$lt_old_striplib
18941 striplib=$lt_striplib
18943 # Dependencies to place before the objects being linked to create a
18944 # shared library.
18945 predep_objects=$lt_predep_objects_RC
18947 # Dependencies to place after the objects being linked to create a
18948 # shared library.
18949 postdep_objects=$lt_postdep_objects_RC
18951 # Dependencies to place before the objects being linked to create a
18952 # shared library.
18953 predeps=$lt_predeps_RC
18955 # Dependencies to place after the objects being linked to create a
18956 # shared library.
18957 postdeps=$lt_postdeps_RC
18959 # The library search path used internally by the compiler when linking
18960 # a shared library.
18961 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18963 # Method to check whether dependent libraries are shared objects.
18964 deplibs_check_method=$lt_deplibs_check_method
18966 # Command to use when deplibs_check_method == file_magic.
18967 file_magic_cmd=$lt_file_magic_cmd
18969 # Flag that allows shared libraries with undefined symbols to be built.
18970 allow_undefined_flag=$lt_allow_undefined_flag_RC
18972 # Flag that forces no undefined symbols.
18973 no_undefined_flag=$lt_no_undefined_flag_RC
18975 # Commands used to finish a libtool library installation in a directory.
18976 finish_cmds=$lt_finish_cmds
18978 # Same as above, but a single script fragment to be evaled but not shown.
18979 finish_eval=$lt_finish_eval
18981 # Take the output of nm and produce a listing of raw symbols and C names.
18982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18984 # Transform the output of nm in a proper C declaration
18985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18987 # Transform the output of nm in a C name address pair
18988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18990 # This is the shared library runtime path variable.
18991 runpath_var=$runpath_var
18993 # This is the shared library path variable.
18994 shlibpath_var=$shlibpath_var
18996 # Is shlibpath searched before the hard-coded library search path?
18997 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18999 # How to hardcode a shared library path into an executable.
19000 hardcode_action=$hardcode_action_RC
19002 # Whether we should hardcode library paths into libraries.
19003 hardcode_into_libs=$hardcode_into_libs
19005 # Flag to hardcode \$libdir into a binary during linking.
19006 # This must work even if \$libdir does not exist.
19007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19009 # If ld is used when linking, flag to hardcode \$libdir into
19010 # a binary during linking. This must work even if \$libdir does
19011 # not exist.
19012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19014 # Whether we need a single -rpath flag with a separated argument.
19015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19017 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19018 # resulting binary.
19019 hardcode_direct=$hardcode_direct_RC
19021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19022 # resulting binary.
19023 hardcode_minus_L=$hardcode_minus_L_RC
19025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19026 # the resulting binary.
19027 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19029 # Set to yes if building a shared library automatically hardcodes DIR into the library
19030 # and all subsequent libraries and executables linked against it.
19031 hardcode_automatic=$hardcode_automatic_RC
19033 # Variables whose values should be saved in libtool wrapper scripts and
19034 # restored at relink time.
19035 variables_saved_for_relink="$variables_saved_for_relink"
19037 # Whether libtool must link a program against all its dependency libraries.
19038 link_all_deplibs=$link_all_deplibs_RC
19040 # Compile-time system search path for libraries
19041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19043 # Run-time system search path for libraries
19044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19046 # Fix the shell variable \$srcfile for the compiler.
19047 fix_srcfile_path="$fix_srcfile_path_RC"
19049 # Set to yes if exported symbols are required.
19050 always_export_symbols=$always_export_symbols_RC
19052 # The commands to list exported symbols.
19053 export_symbols_cmds=$lt_export_symbols_cmds_RC
19055 # The commands to extract the exported symbol list from a shared archive.
19056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19058 # Symbols that should not be listed in the preloaded symbols.
19059 exclude_expsyms=$lt_exclude_expsyms_RC
19061 # Symbols that must always be exported.
19062 include_expsyms=$lt_include_expsyms_RC
19064 # ### END LIBTOOL TAG CONFIG: $tagname
19066 __EOF__
19069 else
19070 # If there is no Makefile yet, we rely on a make rule to execute
19071 # `config.status --recheck' to rerun these tests and create the
19072 # libtool script then.
19073 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19074 if test -f "$ltmain_in"; then
19075 test -f Makefile && make "$ltmain"
19080 ac_ext=cpp
19081 ac_cpp='$CXXCPP $CPPFLAGS'
19082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19086 CC="$lt_save_CC"
19091 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19092 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19093 { (exit 1); exit 1; }; }
19095 esac
19097 # Append the new tag name to the list of available tags.
19098 if test -n "$tagname" ; then
19099 available_tags="$available_tags $tagname"
19102 done
19103 IFS="$lt_save_ifs"
19105 # Now substitute the updated list of available tags.
19106 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19107 mv "${ofile}T" "$ofile"
19108 chmod +x "$ofile"
19109 else
19110 rm -f "${ofile}T"
19111 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19112 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19113 { (exit 1); exit 1; }; }
19119 # This can be used to rebuild libtool when needed
19120 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19122 # Always use our own libtool.
19123 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19125 # Prevent multiple expansion
19146 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19147 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19148 if test "${ac_cv_c_bigendian+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151 # See if sys/param.h defines the BYTE_ORDER macro.
19152 cat >conftest.$ac_ext <<_ACEOF
19153 /* confdefs.h. */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19158 #include <sys/types.h>
19159 #include <sys/param.h>
19162 main ()
19164 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
19165 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
19166 bogus endian macros
19167 #endif
19170 return 0;
19172 _ACEOF
19173 rm -f conftest.$ac_objext
19174 if { (ac_try="$ac_compile"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_compile") 2>conftest.er1
19181 ac_status=$?
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_cxx_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest.$ac_objext; then
19190 # It does; now see whether it defined to BIG_ENDIAN or not.
19191 cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h. */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19197 #include <sys/types.h>
19198 #include <sys/param.h>
19201 main ()
19203 #if BYTE_ORDER != BIG_ENDIAN
19204 not big endian
19205 #endif
19208 return 0;
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_compile") 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } && {
19225 test -z "$ac_cxx_werror_flag" ||
19226 test ! -s conftest.err
19227 } && test -s conftest.$ac_objext; then
19228 ac_cv_c_bigendian=yes
19229 else
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ac_cv_c_bigendian=no
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 else
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 # It does not; compile a test program.
19242 if test "$cross_compiling" = yes; then
19243 # try to guess the endianness by grepping values into an object file
19244 ac_cv_c_bigendian=unknown
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19252 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19253 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19254 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19255 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19256 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19258 main ()
19260 _ascii (); _ebcdic ();
19262 return 0;
19264 _ACEOF
19265 rm -f conftest.$ac_objext
19266 if { (ac_try="$ac_compile"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_compile") 2>conftest.er1
19273 ac_status=$?
19274 grep -v '^ *+' conftest.er1 >conftest.err
19275 rm -f conftest.er1
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } && {
19279 test -z "$ac_cxx_werror_flag" ||
19280 test ! -s conftest.err
19281 } && test -s conftest.$ac_objext; then
19282 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19283 ac_cv_c_bigendian=yes
19285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19286 if test "$ac_cv_c_bigendian" = unknown; then
19287 ac_cv_c_bigendian=no
19288 else
19289 # finding both strings is unlikely to happen, but who knows?
19290 ac_cv_c_bigendian=unknown
19293 else
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301 else
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h. */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 $ac_includes_default
19310 main ()
19313 /* Are we little or big endian? From Harbison&Steele. */
19314 union
19316 long int l;
19317 char c[sizeof (long int)];
19318 } u;
19319 u.l = 1;
19320 return u.c[sizeof (long int) - 1] == 1;
19323 return 0;
19325 _ACEOF
19326 rm -f conftest$ac_exeext
19327 if { (ac_try="$ac_link"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_link") 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19337 { (case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19340 esac
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_try") 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_cv_c_bigendian=no
19347 else
19348 echo "$as_me: program exited with status $ac_status" >&5
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 ( exit $ac_status )
19353 ac_cv_c_bigendian=yes
19355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19365 case $ac_cv_c_bigendian in
19366 yes)
19368 cat >>confdefs.h <<\_ACEOF
19369 #define WORDS_BIGENDIAN 1
19370 _ACEOF
19375 { { echo "$as_me:$LINENO: error: unknown endianness
19376 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19377 echo "$as_me: error: unknown endianness
19378 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19379 { (exit 1); exit 1; }; } ;;
19380 esac
19382 { echo "$as_me:$LINENO: checking host system type" >&5
19383 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19384 if test "${ac_cv_host+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387 if test "x$host_alias" = x; then
19388 ac_cv_host=$ac_cv_build
19389 else
19390 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19391 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19392 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19393 { (exit 1); exit 1; }; }
19397 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19398 echo "${ECHO_T}$ac_cv_host" >&6; }
19399 case $ac_cv_host in
19400 *-*-*) ;;
19401 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19402 echo "$as_me: error: invalid value of canonical host" >&2;}
19403 { (exit 1); exit 1; }; };;
19404 esac
19405 host=$ac_cv_host
19406 ac_save_IFS=$IFS; IFS='-'
19407 set x $ac_cv_host
19408 shift
19409 host_cpu=$1
19410 host_vendor=$2
19411 shift; shift
19412 # Remember, the first character of IFS is used to create $*,
19413 # except with old shells:
19414 host_os=$*
19415 IFS=$ac_save_IFS
19416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19419 for ac_prog in 'bison -y' byacc
19421 # Extract the first word of "$ac_prog", so it can be a program name with args.
19422 set dummy $ac_prog; ac_word=$2
19423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19425 if test "${ac_cv_prog_YACC+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 else
19428 if test -n "$YACC"; then
19429 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19430 else
19431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19432 for as_dir in $PATH
19434 IFS=$as_save_IFS
19435 test -z "$as_dir" && as_dir=.
19436 for ac_exec_ext in '' $ac_executable_extensions; do
19437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19438 ac_cv_prog_YACC="$ac_prog"
19439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19440 break 2
19442 done
19443 done
19444 IFS=$as_save_IFS
19448 YACC=$ac_cv_prog_YACC
19449 if test -n "$YACC"; then
19450 { echo "$as_me:$LINENO: result: $YACC" >&5
19451 echo "${ECHO_T}$YACC" >&6; }
19452 else
19453 { echo "$as_me:$LINENO: result: no" >&5
19454 echo "${ECHO_T}no" >&6; }
19458 test -n "$YACC" && break
19459 done
19460 test -n "$YACC" || YACC="yacc"
19462 for ac_prog in flex lex
19464 # Extract the first word of "$ac_prog", so it can be a program name with args.
19465 set dummy $ac_prog; ac_word=$2
19466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19468 if test "${ac_cv_prog_LEX+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 if test -n "$LEX"; then
19472 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19473 else
19474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19475 for as_dir in $PATH
19477 IFS=$as_save_IFS
19478 test -z "$as_dir" && as_dir=.
19479 for ac_exec_ext in '' $ac_executable_extensions; do
19480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19481 ac_cv_prog_LEX="$ac_prog"
19482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19483 break 2
19485 done
19486 done
19487 IFS=$as_save_IFS
19491 LEX=$ac_cv_prog_LEX
19492 if test -n "$LEX"; then
19493 { echo "$as_me:$LINENO: result: $LEX" >&5
19494 echo "${ECHO_T}$LEX" >&6; }
19495 else
19496 { echo "$as_me:$LINENO: result: no" >&5
19497 echo "${ECHO_T}no" >&6; }
19501 test -n "$LEX" && break
19502 done
19503 test -n "$LEX" || LEX=":"
19505 if test "x$LEX" != "x:"; then
19506 cat >conftest.l <<_ACEOF
19508 a { ECHO; }
19509 b { REJECT; }
19510 c { yymore (); }
19511 d { yyless (1); }
19512 e { yyless (input () != 0); }
19513 f { unput (yytext[0]); }
19514 . { BEGIN INITIAL; }
19516 #ifdef YYTEXT_POINTER
19517 extern char *yytext;
19518 #endif
19520 main (void)
19522 return ! yylex () + ! yywrap ();
19524 _ACEOF
19525 { (ac_try="$LEX conftest.l"
19526 case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$LEX conftest.l") 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }
19535 { echo "$as_me:$LINENO: checking lex output file root" >&5
19536 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
19537 if test "${ac_cv_prog_lex_root+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 else
19541 if test -f lex.yy.c; then
19542 ac_cv_prog_lex_root=lex.yy
19543 elif test -f lexyy.c; then
19544 ac_cv_prog_lex_root=lexyy
19545 else
19546 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
19547 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
19548 { (exit 1); exit 1; }; }
19551 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19552 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
19553 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
19555 if test -z "${LEXLIB+set}"; then
19556 { echo "$as_me:$LINENO: checking lex library" >&5
19557 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
19558 if test "${ac_cv_lib_lex+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19562 ac_save_LIBS=$LIBS
19563 ac_cv_lib_lex='none needed'
19564 for ac_lib in '' -lfl -ll; do
19565 LIBS="$ac_lib $ac_save_LIBS"
19566 cat >conftest.$ac_ext <<_ACEOF
19567 `cat $LEX_OUTPUT_ROOT.c`
19568 _ACEOF
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (ac_try="$ac_link"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_link") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_cxx_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest$ac_exeext &&
19586 $as_test_x conftest$ac_exeext; then
19587 ac_cv_lib_lex=$ac_lib
19588 else
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19596 conftest$ac_exeext conftest.$ac_ext
19597 test "$ac_cv_lib_lex" != 'none needed' && break
19598 done
19599 LIBS=$ac_save_LIBS
19602 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
19603 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
19604 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
19608 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19609 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
19610 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613 # POSIX says lex can declare yytext either as a pointer or an array; the
19614 # default is implementation-dependent. Figure out which it is, since
19615 # not all implementations provide the %pointer and %array declarations.
19616 ac_cv_prog_lex_yytext_pointer=no
19617 ac_save_LIBS=$LIBS
19618 LIBS="$LEXLIB $ac_save_LIBS"
19619 cat >conftest.$ac_ext <<_ACEOF
19620 #define YYTEXT_POINTER 1
19621 `cat $LEX_OUTPUT_ROOT.c`
19622 _ACEOF
19623 rm -f conftest.$ac_objext conftest$ac_exeext
19624 if { (ac_try="$ac_link"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_link") 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_cxx_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest$ac_exeext &&
19640 $as_test_x conftest$ac_exeext; then
19641 ac_cv_prog_lex_yytext_pointer=yes
19642 else
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650 conftest$ac_exeext conftest.$ac_ext
19651 LIBS=$ac_save_LIBS
19654 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19655 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
19656 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define YYTEXT_POINTER 1
19660 _ACEOF
19663 rm -f conftest.l $LEX_OUTPUT_ROOT.c
19666 if test "$LEX" = :; then
19667 LEX=${am_missing_run}flex
19670 case "${host_os}" in
19671 *linux* )
19672 OSTYPE=LINUX
19674 esac
19675 case "${host_cpu}" in
19676 i686 | i386 )
19677 CPUTYPE=i686
19679 esac
19680 echo "#ifndef BUILD_H" >build.h
19681 echo "#define BUILD_H" >>build.h
19682 echo "#define CSQL" >>build.h
19683 echo "#define ${OSTYPE}" >>build.h
19684 echo "#define ${CPUTYPE}" >>build.h
19685 echo "#endif " >>build.h
19686 cp build.h include
19702 for ac_header in stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
19703 string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
19704 signal.h
19706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 ac_res=`eval echo '${'$as_ac_Header'}'`
19714 { echo "$as_me:$LINENO: result: $ac_res" >&5
19715 echo "${ECHO_T}$ac_res" >&6; }
19716 else
19717 # Is the header compilable?
19718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h. */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 $ac_includes_default
19727 #include <$ac_header>
19728 _ACEOF
19729 rm -f conftest.$ac_objext
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 ac_header_compiler=yes
19747 else
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 ac_header_compiler=no
19754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19756 echo "${ECHO_T}$ac_header_compiler" >&6; }
19758 # Is the header present?
19759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19761 cat >conftest.$ac_ext <<_ACEOF
19762 /* confdefs.h. */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19767 #include <$ac_header>
19768 _ACEOF
19769 if { (ac_try="$ac_cpp conftest.$ac_ext"
19770 case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19776 ac_status=$?
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } >/dev/null && {
19782 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19783 test ! -s conftest.err
19784 }; then
19785 ac_header_preproc=yes
19786 else
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_header_preproc=no
19793 rm -f conftest.err conftest.$ac_ext
19794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19795 echo "${ECHO_T}$ac_header_preproc" >&6; }
19797 # So? What about this header?
19798 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19799 yes:no: )
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19804 ac_header_preproc=yes
19806 no:yes:* )
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19821 esac
19822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827 eval "$as_ac_Header=\$ac_header_preproc"
19829 ac_res=`eval echo '${'$as_ac_Header'}'`
19830 { echo "$as_me:$LINENO: result: $ac_res" >&5
19831 echo "${ECHO_T}$ac_res" >&6; }
19834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19835 cat >>confdefs.h <<_ACEOF
19836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19837 _ACEOF
19841 done
19846 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile src/storage/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 src/odbc/Makefile"
19848 cat >confcache <<\_ACEOF
19849 # This file is a shell script that caches the results of configure
19850 # tests run on this system so they can be shared between configure
19851 # scripts and configure runs, see configure's option --config-cache.
19852 # It is not useful on other systems. If it contains results you don't
19853 # want to keep, you may remove or edit it.
19855 # config.status only pays attention to the cache file if you give it
19856 # the --recheck option to rerun configure.
19858 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19860 # following values.
19862 _ACEOF
19864 # The following way of writing the cache mishandles newlines in values,
19865 # but we know of no workaround that is simple, portable, and efficient.
19866 # So, we kill variables containing newlines.
19867 # Ultrix sh set writes to stderr and can't be redirected directly,
19868 # and sets the high bit in the cache file unless we assign to the vars.
19870 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19871 eval ac_val=\$$ac_var
19872 case $ac_val in #(
19873 *${as_nl}*)
19874 case $ac_var in #(
19875 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19876 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19877 esac
19878 case $ac_var in #(
19879 _ | IFS | as_nl) ;; #(
19880 *) $as_unset $ac_var ;;
19881 esac ;;
19882 esac
19883 done
19885 (set) 2>&1 |
19886 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19887 *${as_nl}ac_space=\ *)
19888 # `set' does not quote correctly, so add quotes (double-quote
19889 # substitution turns \\\\ into \\, and sed turns \\ into \).
19890 sed -n \
19891 "s/'/'\\\\''/g;
19892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19893 ;; #(
19895 # `set' quotes correctly as required by POSIX, so do not add quotes.
19896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19898 esac |
19899 sort
19901 sed '
19902 /^ac_cv_env_/b end
19903 t clear
19904 :clear
19905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19906 t end
19907 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19908 :end' >>confcache
19909 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19910 if test -w "$cache_file"; then
19911 test "x$cache_file" != "x/dev/null" &&
19912 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19913 echo "$as_me: updating cache $cache_file" >&6;}
19914 cat confcache >$cache_file
19915 else
19916 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19917 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19920 rm -f confcache
19922 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19923 # Let make expand exec_prefix.
19924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19926 DEFS=-DHAVE_CONFIG_H
19928 ac_libobjs=
19929 ac_ltlibobjs=
19930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19931 # 1. Remove the extension, and $U if already installed.
19932 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19933 ac_i=`echo "$ac_i" | sed "$ac_script"`
19934 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19935 # will be set to the directory where LIBOBJS objects are built.
19936 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19937 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19938 done
19939 LIBOBJS=$ac_libobjs
19941 LTLIBOBJS=$ac_ltlibobjs
19944 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19945 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19946 Usually this means the macro was only invoked conditionally." >&5
19947 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19948 Usually this means the macro was only invoked conditionally." >&2;}
19949 { (exit 1); exit 1; }; }
19951 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19952 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19953 Usually this means the macro was only invoked conditionally." >&5
19954 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19955 Usually this means the macro was only invoked conditionally." >&2;}
19956 { (exit 1); exit 1; }; }
19958 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19959 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19960 Usually this means the macro was only invoked conditionally." >&5
19961 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19962 Usually this means the macro was only invoked conditionally." >&2;}
19963 { (exit 1); exit 1; }; }
19966 : ${CONFIG_STATUS=./config.status}
19967 ac_clean_files_save=$ac_clean_files
19968 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19969 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19970 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19971 cat >$CONFIG_STATUS <<_ACEOF
19972 #! $SHELL
19973 # Generated by $as_me.
19974 # Run this file to recreate the current configuration.
19975 # Compiler output produced by configure, useful for debugging
19976 # configure, is in config.log if it exists.
19978 debug=false
19979 ac_cs_recheck=false
19980 ac_cs_silent=false
19981 SHELL=\${CONFIG_SHELL-$SHELL}
19982 _ACEOF
19984 cat >>$CONFIG_STATUS <<\_ACEOF
19985 ## --------------------- ##
19986 ## M4sh Initialization. ##
19987 ## --------------------- ##
19989 # Be more Bourne compatible
19990 DUALCASE=1; export DUALCASE # for MKS sh
19991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19992 emulate sh
19993 NULLCMD=:
19994 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19995 # is contrary to our usage. Disable this feature.
19996 alias -g '${1+"$@"}'='"$@"'
19997 setopt NO_GLOB_SUBST
19998 else
19999 case `(set -o) 2>/dev/null` in
20000 *posix*) set -o posix ;;
20001 esac
20008 # PATH needs CR
20009 # Avoid depending upon Character Ranges.
20010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20013 as_cr_digits='0123456789'
20014 as_cr_alnum=$as_cr_Letters$as_cr_digits
20016 # The user is always right.
20017 if test "${PATH_SEPARATOR+set}" != set; then
20018 echo "#! /bin/sh" >conf$$.sh
20019 echo "exit 0" >>conf$$.sh
20020 chmod +x conf$$.sh
20021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20022 PATH_SEPARATOR=';'
20023 else
20024 PATH_SEPARATOR=:
20026 rm -f conf$$.sh
20029 # Support unset when possible.
20030 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20031 as_unset=unset
20032 else
20033 as_unset=false
20037 # IFS
20038 # We need space, tab and new line, in precisely that order. Quoting is
20039 # there to prevent editors from complaining about space-tab.
20040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20041 # splitting by setting IFS to empty value.)
20042 as_nl='
20044 IFS=" "" $as_nl"
20046 # Find who we are. Look in the path if we contain no directory separator.
20047 case $0 in
20048 *[\\/]* ) as_myself=$0 ;;
20049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20050 for as_dir in $PATH
20052 IFS=$as_save_IFS
20053 test -z "$as_dir" && as_dir=.
20054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20055 done
20056 IFS=$as_save_IFS
20059 esac
20060 # We did not find ourselves, most probably we were run as `sh COMMAND'
20061 # in which case we are not to be found in the path.
20062 if test "x$as_myself" = x; then
20063 as_myself=$0
20065 if test ! -f "$as_myself"; then
20066 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20067 { (exit 1); exit 1; }
20070 # Work around bugs in pre-3.0 UWIN ksh.
20071 for as_var in ENV MAIL MAILPATH
20072 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20073 done
20074 PS1='$ '
20075 PS2='> '
20076 PS4='+ '
20078 # NLS nuisances.
20079 for as_var in \
20080 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20081 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20082 LC_TELEPHONE LC_TIME
20084 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20085 eval $as_var=C; export $as_var
20086 else
20087 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20089 done
20091 # Required to use basename.
20092 if expr a : '\(a\)' >/dev/null 2>&1 &&
20093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20094 as_expr=expr
20095 else
20096 as_expr=false
20099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20100 as_basename=basename
20101 else
20102 as_basename=false
20106 # Name of the executable.
20107 as_me=`$as_basename -- "$0" ||
20108 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20109 X"$0" : 'X\(//\)$' \| \
20110 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20111 echo X/"$0" |
20112 sed '/^.*\/\([^/][^/]*\)\/*$/{
20113 s//\1/
20116 /^X\/\(\/\/\)$/{
20117 s//\1/
20120 /^X\/\(\/\).*/{
20121 s//\1/
20124 s/.*/./; q'`
20126 # CDPATH.
20127 $as_unset CDPATH
20131 as_lineno_1=$LINENO
20132 as_lineno_2=$LINENO
20133 test "x$as_lineno_1" != "x$as_lineno_2" &&
20134 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20136 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20137 # uniformly replaced by the line number. The first 'sed' inserts a
20138 # line-number line after each line using $LINENO; the second 'sed'
20139 # does the real work. The second script uses 'N' to pair each
20140 # line-number line with the line containing $LINENO, and appends
20141 # trailing '-' during substitution so that $LINENO is not a special
20142 # case at line end.
20143 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20144 # scripts with optimization help from Paolo Bonzini. Blame Lee
20145 # E. McMahon (1931-1989) for sed's syntax. :-)
20146 sed -n '
20148 /[$]LINENO/=
20149 ' <$as_myself |
20150 sed '
20151 s/[$]LINENO.*/&-/
20152 t lineno
20154 :lineno
20156 :loop
20157 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20158 t loop
20159 s/-\n.*//
20160 ' >$as_me.lineno &&
20161 chmod +x "$as_me.lineno" ||
20162 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20163 { (exit 1); exit 1; }; }
20165 # Don't try to exec as it changes $[0], causing all sort of problems
20166 # (the dirname of $[0] is not the place where we might find the
20167 # original and so on. Autoconf is especially sensitive to this).
20168 . "./$as_me.lineno"
20169 # Exit status is that of the last command.
20170 exit
20174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20175 as_dirname=dirname
20176 else
20177 as_dirname=false
20180 ECHO_C= ECHO_N= ECHO_T=
20181 case `echo -n x` in
20182 -n*)
20183 case `echo 'x\c'` in
20184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20185 *) ECHO_C='\c';;
20186 esac;;
20188 ECHO_N='-n';;
20189 esac
20191 if expr a : '\(a\)' >/dev/null 2>&1 &&
20192 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20193 as_expr=expr
20194 else
20195 as_expr=false
20198 rm -f conf$$ conf$$.exe conf$$.file
20199 if test -d conf$$.dir; then
20200 rm -f conf$$.dir/conf$$.file
20201 else
20202 rm -f conf$$.dir
20203 mkdir conf$$.dir
20205 echo >conf$$.file
20206 if ln -s conf$$.file conf$$ 2>/dev/null; then
20207 as_ln_s='ln -s'
20208 # ... but there are two gotchas:
20209 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20210 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20211 # In both cases, we have to default to `cp -p'.
20212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20213 as_ln_s='cp -p'
20214 elif ln conf$$.file conf$$ 2>/dev/null; then
20215 as_ln_s=ln
20216 else
20217 as_ln_s='cp -p'
20219 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20220 rmdir conf$$.dir 2>/dev/null
20222 if mkdir -p . 2>/dev/null; then
20223 as_mkdir_p=:
20224 else
20225 test -d ./-p && rmdir ./-p
20226 as_mkdir_p=false
20229 if test -x / >/dev/null 2>&1; then
20230 as_test_x='test -x'
20231 else
20232 if ls -dL / >/dev/null 2>&1; then
20233 as_ls_L_option=L
20234 else
20235 as_ls_L_option=
20237 as_test_x='
20238 eval sh -c '\''
20239 if test -d "$1"; then
20240 test -d "$1/.";
20241 else
20242 case $1 in
20243 -*)set "./$1";;
20244 esac;
20245 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20246 ???[sx]*):;;*)false;;esac;fi
20247 '\'' sh
20250 as_executable_p=$as_test_x
20252 # Sed expression to map a string onto a valid CPP name.
20253 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20255 # Sed expression to map a string onto a valid variable name.
20256 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20259 exec 6>&1
20261 # Save the log message, to keep $[0] and so on meaningful, and to
20262 # report actual input values of CONFIG_FILES etc. instead of their
20263 # values after options handling.
20264 ac_log="
20265 This file was extended by $as_me, which was
20266 generated by GNU Autoconf 2.61. Invocation command line was
20268 CONFIG_FILES = $CONFIG_FILES
20269 CONFIG_HEADERS = $CONFIG_HEADERS
20270 CONFIG_LINKS = $CONFIG_LINKS
20271 CONFIG_COMMANDS = $CONFIG_COMMANDS
20272 $ $0 $@
20274 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20277 _ACEOF
20279 cat >>$CONFIG_STATUS <<_ACEOF
20280 # Files that config.status was made for.
20281 config_files="$ac_config_files"
20282 config_headers="$ac_config_headers"
20283 config_commands="$ac_config_commands"
20285 _ACEOF
20287 cat >>$CONFIG_STATUS <<\_ACEOF
20288 ac_cs_usage="\
20289 \`$as_me' instantiates files from templates according to the
20290 current configuration.
20292 Usage: $0 [OPTIONS] [FILE]...
20294 -h, --help print this help, then exit
20295 -V, --version print version number and configuration settings, then exit
20296 -q, --quiet do not print progress messages
20297 -d, --debug don't remove temporary files
20298 --recheck update $as_me by reconfiguring in the same conditions
20299 --file=FILE[:TEMPLATE]
20300 instantiate the configuration file FILE
20301 --header=FILE[:TEMPLATE]
20302 instantiate the configuration header FILE
20304 Configuration files:
20305 $config_files
20307 Configuration headers:
20308 $config_headers
20310 Configuration commands:
20311 $config_commands
20313 Report bugs to <bug-autoconf@gnu.org>."
20315 _ACEOF
20316 cat >>$CONFIG_STATUS <<_ACEOF
20317 ac_cs_version="\\
20318 config.status
20319 configured by $0, generated by GNU Autoconf 2.61,
20320 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20322 Copyright (C) 2006 Free Software Foundation, Inc.
20323 This config.status script is free software; the Free Software Foundation
20324 gives unlimited permission to copy, distribute and modify it."
20326 ac_pwd='$ac_pwd'
20327 srcdir='$srcdir'
20328 INSTALL='$INSTALL'
20329 _ACEOF
20331 cat >>$CONFIG_STATUS <<\_ACEOF
20332 # If no file are specified by the user, then we need to provide default
20333 # value. By we need to know if files were specified by the user.
20334 ac_need_defaults=:
20335 while test $# != 0
20337 case $1 in
20338 --*=*)
20339 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20340 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20341 ac_shift=:
20344 ac_option=$1
20345 ac_optarg=$2
20346 ac_shift=shift
20348 esac
20350 case $ac_option in
20351 # Handling of the options.
20352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20353 ac_cs_recheck=: ;;
20354 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20355 echo "$ac_cs_version"; exit ;;
20356 --debug | --debu | --deb | --de | --d | -d )
20357 debug=: ;;
20358 --file | --fil | --fi | --f )
20359 $ac_shift
20360 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20361 ac_need_defaults=false;;
20362 --header | --heade | --head | --hea )
20363 $ac_shift
20364 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20365 ac_need_defaults=false;;
20366 --he | --h)
20367 # Conflict between --help and --header
20368 { echo "$as_me: error: ambiguous option: $1
20369 Try \`$0 --help' for more information." >&2
20370 { (exit 1); exit 1; }; };;
20371 --help | --hel | -h )
20372 echo "$ac_cs_usage"; exit ;;
20373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20375 ac_cs_silent=: ;;
20377 # This is an error.
20378 -*) { echo "$as_me: error: unrecognized option: $1
20379 Try \`$0 --help' for more information." >&2
20380 { (exit 1); exit 1; }; } ;;
20382 *) ac_config_targets="$ac_config_targets $1"
20383 ac_need_defaults=false ;;
20385 esac
20386 shift
20387 done
20389 ac_configure_extra_args=
20391 if $ac_cs_silent; then
20392 exec 6>/dev/null
20393 ac_configure_extra_args="$ac_configure_extra_args --silent"
20396 _ACEOF
20397 cat >>$CONFIG_STATUS <<_ACEOF
20398 if \$ac_cs_recheck; then
20399 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20400 CONFIG_SHELL=$SHELL
20401 export CONFIG_SHELL
20402 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20405 _ACEOF
20406 cat >>$CONFIG_STATUS <<\_ACEOF
20407 exec 5>>config.log
20409 echo
20410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20411 ## Running $as_me. ##
20412 _ASBOX
20413 echo "$ac_log"
20414 } >&5
20416 _ACEOF
20417 cat >>$CONFIG_STATUS <<_ACEOF
20419 # INIT-COMMANDS
20421 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20423 _ACEOF
20425 cat >>$CONFIG_STATUS <<\_ACEOF
20427 # Handling of arguments.
20428 for ac_config_target in $ac_config_targets
20430 case $ac_config_target in
20431 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20432 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20433 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20434 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20435 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20436 "src/storage/Makefile") CONFIG_FILES="$CONFIG_FILES src/storage/Makefile" ;;
20437 "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20438 "src/adapter/Makefile") CONFIG_FILES="$CONFIG_FILES src/adapter/Makefile" ;;
20439 "src/gateway/Makefile") CONFIG_FILES="$CONFIG_FILES src/gateway/Makefile" ;;
20440 "src/cache/Makefile") CONFIG_FILES="$CONFIG_FILES src/cache/Makefile" ;;
20441 "src/network/Makefile") CONFIG_FILES="$CONFIG_FILES src/network/Makefile" ;;
20442 "src/sqllog/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqllog/Makefile" ;;
20443 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
20444 "src/jdbc/Makefile") CONFIG_FILES="$CONFIG_FILES src/jdbc/Makefile" ;;
20445 "src/odbc/Makefile") CONFIG_FILES="$CONFIG_FILES src/odbc/Makefile" ;;
20447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20448 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20449 { (exit 1); exit 1; }; };;
20450 esac
20451 done
20454 # If the user did not use the arguments to specify the items to instantiate,
20455 # then the envvar interface is used. Set only those that are not.
20456 # We use the long form for the default assignment because of an extremely
20457 # bizarre bug on SunOS 4.1.3.
20458 if $ac_need_defaults; then
20459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20464 # Have a temporary directory for convenience. Make it in the build tree
20465 # simply because there is no reason against having it here, and in addition,
20466 # creating and moving files from /tmp can sometimes cause problems.
20467 # Hook for its removal unless debugging.
20468 # Note that there is a small window in which the directory will not be cleaned:
20469 # after its creation but before its name has been assigned to `$tmp'.
20470 $debug ||
20472 tmp=
20473 trap 'exit_status=$?
20474 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20476 trap '{ (exit 1); exit 1; }' 1 2 13 15
20478 # Create a (secure) tmp directory for tmp files.
20481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20482 test -n "$tmp" && test -d "$tmp"
20483 } ||
20485 tmp=./conf$$-$RANDOM
20486 (umask 077 && mkdir "$tmp")
20487 } ||
20489 echo "$me: cannot create a temporary directory in ." >&2
20490 { (exit 1); exit 1; }
20494 # Set up the sed scripts for CONFIG_FILES section.
20497 # No need to generate the scripts if there are no CONFIG_FILES.
20498 # This happens for instance when ./config.status config.h
20499 if test -n "$CONFIG_FILES"; then
20501 _ACEOF
20505 ac_delim='%!_!# '
20506 for ac_last_try in false false false false false :; do
20507 cat >conf$$subs.sed <<_ACEOF
20508 SHELL!$SHELL$ac_delim
20509 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20510 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20511 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20512 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20513 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20514 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20515 exec_prefix!$exec_prefix$ac_delim
20516 prefix!$prefix$ac_delim
20517 program_transform_name!$program_transform_name$ac_delim
20518 bindir!$bindir$ac_delim
20519 sbindir!$sbindir$ac_delim
20520 libexecdir!$libexecdir$ac_delim
20521 datarootdir!$datarootdir$ac_delim
20522 datadir!$datadir$ac_delim
20523 sysconfdir!$sysconfdir$ac_delim
20524 sharedstatedir!$sharedstatedir$ac_delim
20525 localstatedir!$localstatedir$ac_delim
20526 includedir!$includedir$ac_delim
20527 oldincludedir!$oldincludedir$ac_delim
20528 docdir!$docdir$ac_delim
20529 infodir!$infodir$ac_delim
20530 htmldir!$htmldir$ac_delim
20531 dvidir!$dvidir$ac_delim
20532 pdfdir!$pdfdir$ac_delim
20533 psdir!$psdir$ac_delim
20534 libdir!$libdir$ac_delim
20535 localedir!$localedir$ac_delim
20536 mandir!$mandir$ac_delim
20537 DEFS!$DEFS$ac_delim
20538 ECHO_C!$ECHO_C$ac_delim
20539 ECHO_N!$ECHO_N$ac_delim
20540 ECHO_T!$ECHO_T$ac_delim
20541 LIBS!$LIBS$ac_delim
20542 build_alias!$build_alias$ac_delim
20543 host_alias!$host_alias$ac_delim
20544 target_alias!$target_alias$ac_delim
20545 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20546 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20547 INSTALL_DATA!$INSTALL_DATA$ac_delim
20548 CYGPATH_W!$CYGPATH_W$ac_delim
20549 PACKAGE!$PACKAGE$ac_delim
20550 VERSION!$VERSION$ac_delim
20551 ACLOCAL!$ACLOCAL$ac_delim
20552 AUTOCONF!$AUTOCONF$ac_delim
20553 AUTOMAKE!$AUTOMAKE$ac_delim
20554 AUTOHEADER!$AUTOHEADER$ac_delim
20555 MAKEINFO!$MAKEINFO$ac_delim
20556 install_sh!$install_sh$ac_delim
20557 STRIP!$STRIP$ac_delim
20558 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20559 mkdir_p!$mkdir_p$ac_delim
20560 AWK!$AWK$ac_delim
20561 SET_MAKE!$SET_MAKE$ac_delim
20562 am__leading_dot!$am__leading_dot$ac_delim
20563 AMTAR!$AMTAR$ac_delim
20564 am__tar!$am__tar$ac_delim
20565 am__untar!$am__untar$ac_delim
20566 CXX!$CXX$ac_delim
20567 CXXFLAGS!$CXXFLAGS$ac_delim
20568 LDFLAGS!$LDFLAGS$ac_delim
20569 CPPFLAGS!$CPPFLAGS$ac_delim
20570 ac_ct_CXX!$ac_ct_CXX$ac_delim
20571 EXEEXT!$EXEEXT$ac_delim
20572 OBJEXT!$OBJEXT$ac_delim
20573 DEPDIR!$DEPDIR$ac_delim
20574 am__include!$am__include$ac_delim
20575 am__quote!$am__quote$ac_delim
20576 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20577 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20578 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20579 CXXDEPMODE!$CXXDEPMODE$ac_delim
20580 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20581 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20582 build!$build$ac_delim
20583 build_cpu!$build_cpu$ac_delim
20584 build_vendor!$build_vendor$ac_delim
20585 build_os!$build_os$ac_delim
20586 host!$host$ac_delim
20587 host_cpu!$host_cpu$ac_delim
20588 host_vendor!$host_vendor$ac_delim
20589 host_os!$host_os$ac_delim
20590 CC!$CC$ac_delim
20591 CFLAGS!$CFLAGS$ac_delim
20592 ac_ct_CC!$ac_ct_CC$ac_delim
20593 CCDEPMODE!$CCDEPMODE$ac_delim
20594 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20595 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20596 GREP!$GREP$ac_delim
20597 EGREP!$EGREP$ac_delim
20598 LN_S!$LN_S$ac_delim
20599 ECHO!$ECHO$ac_delim
20600 AR!$AR$ac_delim
20601 RANLIB!$RANLIB$ac_delim
20602 CPP!$CPP$ac_delim
20603 CXXCPP!$CXXCPP$ac_delim
20604 F77!$F77$ac_delim
20605 _ACEOF
20607 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20608 break
20609 elif $ac_last_try; then
20610 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20611 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20612 { (exit 1); exit 1; }; }
20613 else
20614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20616 done
20618 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20619 if test -n "$ac_eof"; then
20620 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20621 ac_eof=`expr $ac_eof + 1`
20624 cat >>$CONFIG_STATUS <<_ACEOF
20625 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20627 _ACEOF
20628 sed '
20629 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20630 s/^/s,@/; s/!/@,|#_!!_#|/
20633 s/'"$ac_delim"'$/,g/; t
20634 s/$/\\/; p
20635 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20636 ' >>$CONFIG_STATUS <conf$$subs.sed
20637 rm -f conf$$subs.sed
20638 cat >>$CONFIG_STATUS <<_ACEOF
20639 CEOF$ac_eof
20640 _ACEOF
20643 ac_delim='%!_!# '
20644 for ac_last_try in false false false false false :; do
20645 cat >conf$$subs.sed <<_ACEOF
20646 FFLAGS!$FFLAGS$ac_delim
20647 ac_ct_F77!$ac_ct_F77$ac_delim
20648 LIBTOOL!$LIBTOOL$ac_delim
20649 YACC!$YACC$ac_delim
20650 YFLAGS!$YFLAGS$ac_delim
20651 LEX!$LEX$ac_delim
20652 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
20653 LEXLIB!$LEXLIB$ac_delim
20654 LIBOBJS!$LIBOBJS$ac_delim
20655 LTLIBOBJS!$LTLIBOBJS$ac_delim
20656 _ACEOF
20658 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20659 break
20660 elif $ac_last_try; then
20661 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20662 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20663 { (exit 1); exit 1; }; }
20664 else
20665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20667 done
20669 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20670 if test -n "$ac_eof"; then
20671 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20672 ac_eof=`expr $ac_eof + 1`
20675 cat >>$CONFIG_STATUS <<_ACEOF
20676 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20678 _ACEOF
20679 sed '
20680 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20681 s/^/s,@/; s/!/@,|#_!!_#|/
20684 s/'"$ac_delim"'$/,g/; t
20685 s/$/\\/; p
20686 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20687 ' >>$CONFIG_STATUS <conf$$subs.sed
20688 rm -f conf$$subs.sed
20689 cat >>$CONFIG_STATUS <<_ACEOF
20690 :end
20691 s/|#_!!_#|//g
20692 CEOF$ac_eof
20693 _ACEOF
20696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20698 # trailing colons and then remove the whole line if VPATH becomes empty
20699 # (actually we leave an empty line to preserve line numbers).
20700 if test "x$srcdir" = x.; then
20701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20702 s/:*\$(srcdir):*/:/
20703 s/:*\${srcdir}:*/:/
20704 s/:*@srcdir@:*/:/
20705 s/^\([^=]*=[ ]*\):*/\1/
20706 s/:*$//
20707 s/^[^=]*=[ ]*$//
20711 cat >>$CONFIG_STATUS <<\_ACEOF
20712 fi # test -n "$CONFIG_FILES"
20715 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20717 case $ac_tag in
20718 :[FHLC]) ac_mode=$ac_tag; continue;;
20719 esac
20720 case $ac_mode$ac_tag in
20721 :[FHL]*:*);;
20722 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20723 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20724 { (exit 1); exit 1; }; };;
20725 :[FH]-) ac_tag=-:-;;
20726 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20727 esac
20728 ac_save_IFS=$IFS
20729 IFS=:
20730 set x $ac_tag
20731 IFS=$ac_save_IFS
20732 shift
20733 ac_file=$1
20734 shift
20736 case $ac_mode in
20737 :L) ac_source=$1;;
20738 :[FH])
20739 ac_file_inputs=
20740 for ac_f
20742 case $ac_f in
20743 -) ac_f="$tmp/stdin";;
20744 *) # Look for the file first in the build tree, then in the source tree
20745 # (if the path is not absolute). The absolute path cannot be DOS-style,
20746 # because $ac_f cannot contain `:'.
20747 test -f "$ac_f" ||
20748 case $ac_f in
20749 [\\/$]*) false;;
20750 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20751 esac ||
20752 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20753 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20754 { (exit 1); exit 1; }; };;
20755 esac
20756 ac_file_inputs="$ac_file_inputs $ac_f"
20757 done
20759 # Let's still pretend it is `configure' which instantiates (i.e., don't
20760 # use $as_me), people would be surprised to read:
20761 # /* config.h. Generated by config.status. */
20762 configure_input="Generated from "`IFS=:
20763 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20764 if test x"$ac_file" != x-; then
20765 configure_input="$ac_file. $configure_input"
20766 { echo "$as_me:$LINENO: creating $ac_file" >&5
20767 echo "$as_me: creating $ac_file" >&6;}
20770 case $ac_tag in
20771 *:-:* | *:-) cat >"$tmp/stdin";;
20772 esac
20774 esac
20776 ac_dir=`$as_dirname -- "$ac_file" ||
20777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20778 X"$ac_file" : 'X\(//\)[^/]' \| \
20779 X"$ac_file" : 'X\(//\)$' \| \
20780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20781 echo X"$ac_file" |
20782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20783 s//\1/
20786 /^X\(\/\/\)[^/].*/{
20787 s//\1/
20790 /^X\(\/\/\)$/{
20791 s//\1/
20794 /^X\(\/\).*/{
20795 s//\1/
20798 s/.*/./; q'`
20799 { as_dir="$ac_dir"
20800 case $as_dir in #(
20801 -*) as_dir=./$as_dir;;
20802 esac
20803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20804 as_dirs=
20805 while :; do
20806 case $as_dir in #(
20807 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20808 *) as_qdir=$as_dir;;
20809 esac
20810 as_dirs="'$as_qdir' $as_dirs"
20811 as_dir=`$as_dirname -- "$as_dir" ||
20812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20813 X"$as_dir" : 'X\(//\)[^/]' \| \
20814 X"$as_dir" : 'X\(//\)$' \| \
20815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20816 echo X"$as_dir" |
20817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20818 s//\1/
20821 /^X\(\/\/\)[^/].*/{
20822 s//\1/
20825 /^X\(\/\/\)$/{
20826 s//\1/
20829 /^X\(\/\).*/{
20830 s//\1/
20833 s/.*/./; q'`
20834 test -d "$as_dir" && break
20835 done
20836 test -z "$as_dirs" || eval "mkdir $as_dirs"
20837 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20838 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20839 { (exit 1); exit 1; }; }; }
20840 ac_builddir=.
20842 case "$ac_dir" in
20843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20846 # A ".." for each directory in $ac_dir_suffix.
20847 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20848 case $ac_top_builddir_sub in
20849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20851 esac ;;
20852 esac
20853 ac_abs_top_builddir=$ac_pwd
20854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20855 # for backward compatibility:
20856 ac_top_builddir=$ac_top_build_prefix
20858 case $srcdir in
20859 .) # We are building in place.
20860 ac_srcdir=.
20861 ac_top_srcdir=$ac_top_builddir_sub
20862 ac_abs_top_srcdir=$ac_pwd ;;
20863 [\\/]* | ?:[\\/]* ) # Absolute name.
20864 ac_srcdir=$srcdir$ac_dir_suffix;
20865 ac_top_srcdir=$srcdir
20866 ac_abs_top_srcdir=$srcdir ;;
20867 *) # Relative name.
20868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20869 ac_top_srcdir=$ac_top_build_prefix$srcdir
20870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20871 esac
20872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20875 case $ac_mode in
20878 # CONFIG_FILE
20881 case $INSTALL in
20882 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20883 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20884 esac
20885 _ACEOF
20887 cat >>$CONFIG_STATUS <<\_ACEOF
20888 # If the template does not know about datarootdir, expand it.
20889 # FIXME: This hack should be removed a few years after 2.60.
20890 ac_datarootdir_hack=; ac_datarootdir_seen=
20892 case `sed -n '/datarootdir/ {
20896 /@datadir@/p
20897 /@docdir@/p
20898 /@infodir@/p
20899 /@localedir@/p
20900 /@mandir@/p
20901 ' $ac_file_inputs` in
20902 *datarootdir*) ac_datarootdir_seen=yes;;
20903 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20904 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20905 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20906 _ACEOF
20907 cat >>$CONFIG_STATUS <<_ACEOF
20908 ac_datarootdir_hack='
20909 s&@datadir@&$datadir&g
20910 s&@docdir@&$docdir&g
20911 s&@infodir@&$infodir&g
20912 s&@localedir@&$localedir&g
20913 s&@mandir@&$mandir&g
20914 s&\\\${datarootdir}&$datarootdir&g' ;;
20915 esac
20916 _ACEOF
20918 # Neutralize VPATH when `$srcdir' = `.'.
20919 # Shell code in configure.ac might set extrasub.
20920 # FIXME: do we really want to maintain this feature?
20921 cat >>$CONFIG_STATUS <<_ACEOF
20922 sed "$ac_vpsub
20923 $extrasub
20924 _ACEOF
20925 cat >>$CONFIG_STATUS <<\_ACEOF
20927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20928 s&@configure_input@&$configure_input&;t t
20929 s&@top_builddir@&$ac_top_builddir_sub&;t t
20930 s&@srcdir@&$ac_srcdir&;t t
20931 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20932 s&@top_srcdir@&$ac_top_srcdir&;t t
20933 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20934 s&@builddir@&$ac_builddir&;t t
20935 s&@abs_builddir@&$ac_abs_builddir&;t t
20936 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20937 s&@INSTALL@&$ac_INSTALL&;t t
20938 $ac_datarootdir_hack
20939 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20941 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20942 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20943 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20944 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20945 which seems to be undefined. Please make sure it is defined." >&5
20946 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20947 which seems to be undefined. Please make sure it is defined." >&2;}
20949 rm -f "$tmp/stdin"
20950 case $ac_file in
20951 -) cat "$tmp/out"; rm -f "$tmp/out";;
20952 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20953 esac
20957 # CONFIG_HEADER
20959 _ACEOF
20961 # Transform confdefs.h into a sed script `conftest.defines', that
20962 # substitutes the proper values into config.h.in to produce config.h.
20963 rm -f conftest.defines conftest.tail
20964 # First, append a space to every undef/define line, to ease matching.
20965 echo 's/$/ /' >conftest.defines
20966 # Then, protect against being on the right side of a sed subst, or in
20967 # an unquoted here document, in config.status. If some macros were
20968 # called several times there might be several #defines for the same
20969 # symbol, which is useless. But do not sort them, since the last
20970 # AC_DEFINE must be honored.
20971 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20972 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20973 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20974 # PARAMS is the parameter list in the macro definition--in most cases, it's
20975 # just an empty string.
20976 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20977 ac_dB='\\)[ (].*,\\1define\\2'
20978 ac_dC=' '
20979 ac_dD=' ,'
20981 uniq confdefs.h |
20982 sed -n '
20983 t rset
20984 :rset
20985 s/^[ ]*#[ ]*define[ ][ ]*//
20986 t ok
20989 s/[\\&,]/\\&/g
20990 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20991 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20992 ' >>conftest.defines
20994 # Remove the space that was appended to ease matching.
20995 # Then replace #undef with comments. This is necessary, for
20996 # example, in the case of _POSIX_SOURCE, which is predefined and required
20997 # on some systems where configure will not decide to define it.
20998 # (The regexp can be short, since the line contains either #define or #undef.)
20999 echo 's/ $//
21000 s,^[ #]*u.*,/* & */,' >>conftest.defines
21002 # Break up conftest.defines:
21003 ac_max_sed_lines=50
21005 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21006 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21007 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21008 # et cetera.
21009 ac_in='$ac_file_inputs'
21010 ac_out='"$tmp/out1"'
21011 ac_nxt='"$tmp/out2"'
21013 while :
21015 # Write a here document:
21016 cat >>$CONFIG_STATUS <<_ACEOF
21017 # First, check the format of the line:
21018 cat >"\$tmp/defines.sed" <<\\CEOF
21019 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21020 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21022 :def
21023 _ACEOF
21024 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21025 echo 'CEOF
21026 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21027 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21028 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21029 grep . conftest.tail >/dev/null || break
21030 rm -f conftest.defines
21031 mv conftest.tail conftest.defines
21032 done
21033 rm -f conftest.defines conftest.tail
21035 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21036 cat >>$CONFIG_STATUS <<\_ACEOF
21037 if test x"$ac_file" != x-; then
21038 echo "/* $configure_input */" >"$tmp/config.h"
21039 cat "$ac_result" >>"$tmp/config.h"
21040 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21041 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21042 echo "$as_me: $ac_file is unchanged" >&6;}
21043 else
21044 rm -f $ac_file
21045 mv "$tmp/config.h" $ac_file
21047 else
21048 echo "/* $configure_input */"
21049 cat "$ac_result"
21051 rm -f "$tmp/out12"
21052 # Compute $ac_file's index in $config_headers.
21053 _am_stamp_count=1
21054 for _am_header in $config_headers :; do
21055 case $_am_header in
21056 $ac_file | $ac_file:* )
21057 break ;;
21059 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21060 esac
21061 done
21062 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21063 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21064 X$ac_file : 'X\(//\)[^/]' \| \
21065 X$ac_file : 'X\(//\)$' \| \
21066 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21067 echo X$ac_file |
21068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21069 s//\1/
21072 /^X\(\/\/\)[^/].*/{
21073 s//\1/
21076 /^X\(\/\/\)$/{
21077 s//\1/
21080 /^X\(\/\).*/{
21081 s//\1/
21084 s/.*/./; q'`/stamp-h$_am_stamp_count
21087 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21088 echo "$as_me: executing $ac_file commands" >&6;}
21090 esac
21093 case $ac_file$ac_mode in
21094 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21095 # Strip MF so we end up with the name of the file.
21096 mf=`echo "$mf" | sed -e 's/:.*$//'`
21097 # Check whether this is an Automake generated Makefile or not.
21098 # We used to match only the files named `Makefile.in', but
21099 # some people rename them; so instead we look at the file content.
21100 # Grep'ing the first line is not enough: some people post-process
21101 # each Makefile.in and add a new line on top of each file to say so.
21102 # So let's grep whole file.
21103 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21104 dirpart=`$as_dirname -- "$mf" ||
21105 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21106 X"$mf" : 'X\(//\)[^/]' \| \
21107 X"$mf" : 'X\(//\)$' \| \
21108 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21109 echo X"$mf" |
21110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21111 s//\1/
21114 /^X\(\/\/\)[^/].*/{
21115 s//\1/
21118 /^X\(\/\/\)$/{
21119 s//\1/
21122 /^X\(\/\).*/{
21123 s//\1/
21126 s/.*/./; q'`
21127 else
21128 continue
21130 # Extract the definition of DEPDIR, am__include, and am__quote
21131 # from the Makefile without running `make'.
21132 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21133 test -z "$DEPDIR" && continue
21134 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21135 test -z "am__include" && continue
21136 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21137 # When using ansi2knr, U may be empty or an underscore; expand it
21138 U=`sed -n 's/^U = //p' < "$mf"`
21139 # Find all dependency output files, they are included files with
21140 # $(DEPDIR) in their names. We invoke sed twice because it is the
21141 # simplest approach to changing $(DEPDIR) to its actual value in the
21142 # expansion.
21143 for file in `sed -n "
21144 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21145 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21146 # Make sure the directory exists.
21147 test -f "$dirpart/$file" && continue
21148 fdir=`$as_dirname -- "$file" ||
21149 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21150 X"$file" : 'X\(//\)[^/]' \| \
21151 X"$file" : 'X\(//\)$' \| \
21152 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21153 echo X"$file" |
21154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21155 s//\1/
21158 /^X\(\/\/\)[^/].*/{
21159 s//\1/
21162 /^X\(\/\/\)$/{
21163 s//\1/
21166 /^X\(\/\).*/{
21167 s//\1/
21170 s/.*/./; q'`
21171 { as_dir=$dirpart/$fdir
21172 case $as_dir in #(
21173 -*) as_dir=./$as_dir;;
21174 esac
21175 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21176 as_dirs=
21177 while :; do
21178 case $as_dir in #(
21179 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21180 *) as_qdir=$as_dir;;
21181 esac
21182 as_dirs="'$as_qdir' $as_dirs"
21183 as_dir=`$as_dirname -- "$as_dir" ||
21184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21185 X"$as_dir" : 'X\(//\)[^/]' \| \
21186 X"$as_dir" : 'X\(//\)$' \| \
21187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21188 echo X"$as_dir" |
21189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21190 s//\1/
21193 /^X\(\/\/\)[^/].*/{
21194 s//\1/
21197 /^X\(\/\/\)$/{
21198 s//\1/
21201 /^X\(\/\).*/{
21202 s//\1/
21205 s/.*/./; q'`
21206 test -d "$as_dir" && break
21207 done
21208 test -z "$as_dirs" || eval "mkdir $as_dirs"
21209 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21210 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21211 { (exit 1); exit 1; }; }; }
21212 # echo "creating $dirpart/$file"
21213 echo '# dummy' > "$dirpart/$file"
21214 done
21215 done
21218 esac
21219 done # for ac_tag
21222 { (exit 0); exit 0; }
21223 _ACEOF
21224 chmod +x $CONFIG_STATUS
21225 ac_clean_files=$ac_clean_files_save
21228 # configure is writing to config.log, and then calls config.status.
21229 # config.status does its own redirection, appending to config.log.
21230 # Unfortunately, on DOS this fails, as config.log is still kept open
21231 # by configure, so config.status won't be able to write to it; its
21232 # output is simply discarded. So we exec the FD to /dev/null,
21233 # effectively closing config.log, so it can be properly (re)opened and
21234 # appended to by config.status. When coming back to configure, we
21235 # need to make the FD available again.
21236 if test "$no_create" != yes; then
21237 ac_cs_success=:
21238 ac_config_status_args=
21239 test "$silent" = yes &&
21240 ac_config_status_args="$ac_config_status_args --quiet"
21241 exec 5>/dev/null
21242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21243 exec 5>>config.log
21244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21245 # would make configure fail if this is the last instruction.
21246 $ac_cs_success || { (exit 1); exit 1; }