2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libchise 0.5.0.
5 # Report bugs to <chise-en@m17n.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
621 echo_test_string="`eval $cmd`" &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
691 # maybe with a smaller string...
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 # Oops. We lost completely, so just stick with echo.
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
740 ac_default_prefix=/usr/local
742 ac_config_libobj_dir=.
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='libchise'
752 PACKAGE_TARNAME='libchise'
753 PACKAGE_VERSION='0.5.0'
754 PACKAGE_STRING='libchise 0.5.0'
755 PACKAGE_BUGREPORT='chise-en@m17n.org'
757 ac_unique_file="chise.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
771 # ifdef HAVE_STDLIB_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
794 ac_subst_vars='LTLIBOBJS
859 program_transform_name
871 enable_option_checking
882 ac_precious_vars='build_alias
899 # Initialize some variables set by options.
901 ac_init_version=false
902 ac_unrecognized_opts=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
913 program_transform_name=s,x,x,
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 # Accept the important Cygnus configure options, so we can diagnose typos.
965 case $ac_dashdash$ac_option in
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
987 cache_file=config.cache ;;
989 -datadir | --datadir | --datadi | --datad)
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1001 -disable-* | --disable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1016 eval enable_$ac_useropt=no ;;
1018 -docdir | --docdir | --docdi | --doc | --do)
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_$ac_useropt"
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval enable_$ac_useropt=\$ac_optarg ;;
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 htmldir=$ac_optarg ;;
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1088 -libdir | --libdir | --libdi | --libd)
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1179 -psdir | --psdir | --psdi | --psd | --ps)
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 sbindir=$ac_optarg ;;
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 sharedstatedir=$ac_optarg ;;
1205 -site | --site | --sit)
1207 -site=* | --site=* | --sit=*)
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval with_$ac_useropt=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1265 eval with_$ac_useropt=no ;;
1268 # Obsolete; use --with-x.
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1319 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1320 { (exit 1); exit 1; }; } ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 # Check all directory arguments for consistency.
1326 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val=\$$ac_var
1332 # Remove trailing slashes.
1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\$ac_val;;
1338 # Be sure to have absolute directory names.
1340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1344 { (exit 1); exit 1; }; }
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1352 target=$target_alias
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1359 If a cross compiler is detected then cross compile mode will be used." >&2
1360 elif test "x$build_alias" != "x$host_alias"; then
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368 test "$silent" = yes && exec 6>/dev/null
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1375 { (exit 1); exit 1; }; }
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1378 { (exit 1); exit 1; }; }
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1413 ac_srcdir_defaulted=no
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1418 { (exit 1); exit 1; }; }
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1423 { (exit 1); exit 1; }; }
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 # Report the --help message.
1445 if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1449 \`configure' configures libchise 0.5.0 to adapt to many kinds of systems.
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE. See below for descriptions of some of the useful variables.
1456 Defaults for the options are specified in brackets.
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print \`checking...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for \`--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469 Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1475 By default, \`make install' will install all the files in
1476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1477 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478 for instance \`--prefix=\$HOME'.
1480 For better control, use the options below.
1482 Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/libchise]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 --target=TARGET configure for building compilers for TARGET [HOST]
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of libchise 0.5.0:";;
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-static[=PKGS] build static libraries [default=yes]
1525 --enable-fast-install[=PKGS]
1526 optimize for fast installation [default=yes]
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-pic try to use only PIC/non-PIC objects [default=use
1535 --with-tags[=TAGS] include additional configurations [automatic]
1536 --with-site-includes=PATH List of directories to search first for header files
1538 --with-site-libraries=PATH List of directories to search first for libraries
1541 Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1550 CXX C++ compiler command
1551 CXXFLAGS C++ compiler flags
1552 CXXCPP C++ preprocessor
1553 F77 Fortran 77 compiler command
1554 FFLAGS Fortran 77 compiler flags
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1559 Report bugs to <chise-en@m17n.org>.
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1589 .) # We are building in place.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1622 libchise configure 0.5.0
1623 generated by GNU Autoconf 2.63
1625 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1626 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1632 cat >config.log <<_ACEOF
1633 This file contains any messages produced by compilers while
1634 running configure, to aid debugging if configure makes a mistake.
1636 It was created by libchise $as_me 0.5.0, which was
1637 generated by GNU Autoconf 2.63. Invocation command line was
1649 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1650 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1651 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1652 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1653 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1655 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1656 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1658 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1659 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1660 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1661 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1662 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1663 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1664 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 $as_echo "PATH: $as_dir"
1689 # Keep a trace of the command line.
1690 # Strip out --no-create and --no-recursion so they do not pile up.
1691 # Strip out --silent because we don't want to record it for future runs.
1692 # Also quote any args containing shell meta-characters.
1693 # Make two passes to allow for proper duplicate-argument suppression.
1697 ac_must_keep_next=false
1703 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1705 | -silent | --silent | --silen | --sile | --sil)
1708 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1713 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1714 if test $ac_must_keep_next = true; then
1715 ac_must_keep_next=false # Got value, back to normal.
1718 *=* | --config-cache | -C | -disable-* | --disable-* \
1719 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1720 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1721 | -with-* | --with-* | -without-* | --without-* | --x)
1722 case "$ac_configure_args0 " in
1723 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726 -* ) ac_must_keep_next=true ;;
1729 ac_configure_args="$ac_configure_args '$ac_arg'"
1734 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1735 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1737 # When interrupted or exit'd, cleanup temporary files, and complete
1738 # config.log. We remove comments because anyway the quotes in there
1739 # would cause problems or look ugly.
1740 # WARNING: Use '\'' to represent an apostrophe within the trap.
1741 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1742 trap 'exit_status=$?
1743 # Save into config.log some information that might help in debugging.
1748 ## ---------------- ##
1749 ## Cache variables. ##
1750 ## ---------------- ##
1753 # The following way of writing the cache mishandles newlines in values,
1755 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1756 eval ac_val=\$$ac_var
1760 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1764 _ | IFS | as_nl) ;; #(
1765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1766 *) $as_unset $ac_var ;;
1771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1791 for ac_var in $ac_subst_vars
1793 eval ac_val=\$$ac_var
1795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797 $as_echo "$ac_var='\''$ac_val'\''"
1801 if test -n "$ac_subst_files"; then
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1808 for ac_var in $ac_subst_files
1810 eval ac_val=\$$ac_var
1812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 $as_echo "$ac_var='\''$ac_val'\''"
1819 if test -s confdefs.h; then
1829 test "$ac_signal" != 0 &&
1830 $as_echo "$as_me: caught signal $ac_signal"
1831 $as_echo "$as_me: exit $exit_status"
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1837 for ac_signal in 1 2 13 15; do
1838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1845 # Predefined preprocessor variables.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer an explicitly selected file to automatically selected ones.
1876 if test -n "$CONFIG_SITE"; then
1877 ac_site_file1=$CONFIG_SITE
1878 elif test "x$prefix" != xNONE; then
1879 ac_site_file1=$prefix/share/config.site
1880 ac_site_file2=$prefix/etc/config.site
1882 ac_site_file1=$ac_default_prefix/share/config.site
1883 ac_site_file2=$ac_default_prefix/etc/config.site
1885 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1887 test "x$ac_site_file" = xNONE && continue
1888 if test -r "$ac_site_file"; then
1889 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1891 sed 's/^/| /' "$ac_site_file" >&5
1896 if test -r "$cache_file"; then
1897 # Some versions of bash will fail to source /dev/null (special
1898 # files actually), so we avoid doing that.
1899 if test -f "$cache_file"; then
1900 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1901 $as_echo "$as_me: loading cache $cache_file" >&6;}
1903 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1904 *) . "./$cache_file";;
1908 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1909 $as_echo "$as_me: creating cache $cache_file" >&6;}
1913 # Check that the precious variables saved in the cache have kept the same
1915 ac_cache_corrupted=false
1916 for ac_var in $ac_precious_vars; do
1917 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1918 eval ac_new_set=\$ac_env_${ac_var}_set
1919 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1920 eval ac_new_val=\$ac_env_${ac_var}_value
1921 case $ac_old_set,$ac_new_set in
1923 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1924 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1925 ac_cache_corrupted=: ;;
1927 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1929 ac_cache_corrupted=: ;;
1932 if test "x$ac_old_val" != "x$ac_new_val"; then
1933 # differences in whitespace do not lead to failure.
1934 ac_old_val_w=`echo x $ac_old_val`
1935 ac_new_val_w=`echo x $ac_new_val`
1936 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1937 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1938 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1939 ac_cache_corrupted=:
1941 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1942 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1943 eval $ac_var=\$ac_old_val
1945 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1946 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1947 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1948 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1954 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 if $ac_cache_corrupted; then
1964 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1966 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1967 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1968 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1969 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1970 { (exit 1); exit 1; }; }
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 ac_config_headers="$ac_config_headers config.h"
2009 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2010 if test -f "$ac_dir/install-sh"; then
2012 ac_install_sh="$ac_aux_dir/install-sh -c"
2014 elif test -f "$ac_dir/install.sh"; then
2016 ac_install_sh="$ac_aux_dir/install.sh -c"
2018 elif test -f "$ac_dir/shtool"; then
2020 ac_install_sh="$ac_aux_dir/shtool install -c"
2024 if test -z "$ac_aux_dir"; then
2025 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2026 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2027 { (exit 1); exit 1; }; }
2030 # These three variables are undocumented and unsupported,
2031 # and are intended to be withdrawn in a future Autoconf release.
2032 # They can cause serious problems if a builder's source tree is in a directory
2033 # whose full name contains unusual characters.
2034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2039 # Make sure we can run config.sub.
2040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2041 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2042 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2043 { (exit 1); exit 1; }; }
2045 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2046 $as_echo_n "checking build system type... " >&6; }
2047 if test "${ac_cv_build+set}" = set; then
2048 $as_echo_n "(cached) " >&6
2050 ac_build_alias=$build_alias
2051 test "x$ac_build_alias" = x &&
2052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2053 test "x$ac_build_alias" = x &&
2054 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2055 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2056 { (exit 1); exit 1; }; }
2057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2058 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2059 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2060 { (exit 1); exit 1; }; }
2063 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2064 $as_echo "$ac_cv_build" >&6; }
2065 case $ac_cv_build in
2067 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2068 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2069 { (exit 1); exit 1; }; };;
2072 ac_save_IFS=$IFS; IFS='-'
2078 # Remember, the first character of IFS is used to create $*,
2079 # except with old shells:
2082 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2085 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2086 $as_echo_n "checking host system type... " >&6; }
2087 if test "${ac_cv_host+set}" = set; then
2088 $as_echo_n "(cached) " >&6
2090 if test "x$host_alias" = x; then
2091 ac_cv_host=$ac_cv_build
2093 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2094 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2095 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2096 { (exit 1); exit 1; }; }
2100 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2101 $as_echo "$ac_cv_host" >&6; }
2104 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2105 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2106 { (exit 1); exit 1; }; };;
2109 ac_save_IFS=$IFS; IFS='-'
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2119 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2122 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2123 $as_echo_n "checking target system type... " >&6; }
2124 if test "${ac_cv_target+set}" = set; then
2125 $as_echo_n "(cached) " >&6
2127 if test "x$target_alias" = x; then
2128 ac_cv_target=$ac_cv_host
2130 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2131 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2132 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2133 { (exit 1); exit 1; }; }
2137 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2138 $as_echo "$ac_cv_target" >&6; }
2139 case $ac_cv_target in
2141 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2142 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2143 { (exit 1); exit 1; }; };;
2145 target=$ac_cv_target
2146 ac_save_IFS=$IFS; IFS='-'
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2156 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2159 # The aliases save the names the user supplied, while $host etc.
2160 # will get canonicalized.
2161 test -n "$target_alias" &&
2162 test "$program_prefix$program_suffix$program_transform_name" = \
2164 program_prefix=${target_alias}-
2166 # Checks for programs.
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172 if test -n "$ac_tool_prefix"; then
2173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 $as_echo_n "checking for $ac_word... " >&6; }
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 $as_echo_n "(cached) " >&6
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2191 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 if test -n "$CC"; then
2202 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2203 $as_echo "$CC" >&6; }
2205 { $as_echo "$as_me:$LINENO: result: no" >&5
2206 $as_echo "no" >&6; }
2211 if test -z "$ac_cv_prog_CC"; then
2213 # Extract the first word of "gcc", so it can be a program name with args.
2214 set dummy gcc; ac_word=$2
2215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 $as_echo_n "checking for $ac_word... " >&6; }
2217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2218 $as_echo_n "(cached) " >&6
2220 if test -n "$ac_ct_CC"; then
2221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230 ac_cv_prog_ac_ct_CC="gcc"
2231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241 if test -n "$ac_ct_CC"; then
2242 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243 $as_echo "$ac_ct_CC" >&6; }
2245 { $as_echo "$as_me:$LINENO: result: no" >&5
2246 $as_echo "no" >&6; }
2249 if test "x$ac_ct_CC" = x; then
2252 case $cross_compiling:$ac_tool_warned in
2254 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2256 ac_tool_warned=yes ;;
2264 if test -z "$CC"; then
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}cc; ac_word=$2
2268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 $as_echo_n "checking for $ac_word... " >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 $as_echo_n "(cached) " >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_CC="${ac_tool_prefix}cc"
2284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2296 $as_echo "$CC" >&6; }
2298 { $as_echo "$as_me:$LINENO: result: no" >&5
2299 $as_echo "no" >&6; }
2305 if test -z "$CC"; then
2306 # Extract the first word of "cc", so it can be a program name with args.
2307 set dummy cc; ac_word=$2
2308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 $as_echo_n "checking for $ac_word... " >&6; }
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311 $as_echo_n "(cached) " >&6
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2325 ac_prog_rejected=yes
2329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 if test $ac_prog_rejected = yes; then
2337 # We found a bogon in the path, so make sure we never use it.
2338 set dummy $ac_cv_prog_CC
2340 if test $# != 0; then
2341 # We chose a different compiler from the bogus one.
2342 # However, it has the same basename, so the bogon will be chosen
2343 # first if we set CC to just the basename; use the full file name.
2345 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2351 if test -n "$CC"; then
2352 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2353 $as_echo "$CC" >&6; }
2355 { $as_echo "$as_me:$LINENO: result: no" >&5
2356 $as_echo "no" >&6; }
2361 if test -z "$CC"; then
2362 if test -n "$ac_tool_prefix"; then
2363 for ac_prog in cl.exe
2365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 $as_echo_n "checking for $ac_word... " >&6; }
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370 $as_echo_n "(cached) " >&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 if test -n "$CC"; then
2394 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2395 $as_echo "$CC" >&6; }
2397 { $as_echo "$as_me:$LINENO: result: no" >&5
2398 $as_echo "no" >&6; }
2402 test -n "$CC" && break
2405 if test -z "$CC"; then
2407 for ac_prog in cl.exe
2409 # Extract the first word of "$ac_prog", so it can be a program name with args.
2410 set dummy $ac_prog; ac_word=$2
2411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2414 $as_echo_n "(cached) " >&6
2416 if test -n "$ac_ct_CC"; then
2417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_ac_ct_CC="$ac_prog"
2427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437 if test -n "$ac_ct_CC"; then
2438 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2439 $as_echo "$ac_ct_CC" >&6; }
2441 { $as_echo "$as_me:$LINENO: result: no" >&5
2442 $as_echo "no" >&6; }
2446 test -n "$ac_ct_CC" && break
2449 if test "x$ac_ct_CC" = x; then
2452 case $cross_compiling:$ac_tool_warned in
2454 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456 ac_tool_warned=yes ;;
2465 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2468 See \`config.log' for more details." >&5
2469 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2470 See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }; }
2473 # Provide some information about the compiler.
2474 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2477 { (ac_try="$ac_compiler --version >&5"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2483 $as_echo "$ac_try_echo") >&5
2484 (eval "$ac_compiler --version >&5") 2>&5
2486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }
2488 { (ac_try="$ac_compiler -v >&5"
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2494 $as_echo "$ac_try_echo") >&5
2495 (eval "$ac_compiler -v >&5") 2>&5
2497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }
2499 { (ac_try="$ac_compiler -V >&5"
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2505 $as_echo "$ac_try_echo") >&5
2506 (eval "$ac_compiler -V >&5") 2>&5
2508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2526 ac_clean_files_save=$ac_clean_files
2527 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2528 # Try to create an executable without -o first, disregard a.out.
2529 # It will help us diagnose broken compilers, and finding out an intuition
2531 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2532 $as_echo_n "checking for C compiler default output file name... " >&6; }
2533 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2535 # The possible output files:
2536 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2539 for ac_file in $ac_files
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2543 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2548 if { (ac_try="$ac_link_default"
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2554 $as_echo "$ac_try_echo") >&5
2555 (eval "$ac_link_default") 2>&5
2557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; then
2559 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2560 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2561 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2562 # so that the user can short-circuit this test for compilers unknown to
2564 for ac_file in $ac_files ''
2566 test -f "$ac_file" || continue
2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2571 # We found the default executable, but exeext='' is most
2575 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2579 # We set ac_cv_exeext here because the later test for it is not
2580 # safe: cross compilers may not add the suffix if given an `-o'
2581 # argument, so we may need to know it at that point already.
2582 # Even if this section looks crufty: it has the advantage of
2589 test "$ac_cv_exeext" = no && ac_cv_exeext=
2595 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2596 $as_echo "$ac_file" >&6; }
2597 if test -z "$ac_file"; then
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2601 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2604 See \`config.log' for more details." >&5
2605 $as_echo "$as_me: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&2;}
2607 { (exit 77); exit 77; }; }; }
2610 ac_exeext=$ac_cv_exeext
2612 # Check that the compiler produces executables we can run. If not, either
2613 # the compiler is broken, or we cross compile.
2614 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2615 $as_echo_n "checking whether the C compiler works... " >&6; }
2616 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2617 # If not cross compiling, check that we can run a simple program.
2618 if test "$cross_compiling" != yes; then
2619 if { ac_try='./$ac_file'
2620 { (case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2625 $as_echo "$ac_try_echo") >&5
2626 (eval "$ac_try") 2>&5
2628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2632 if test "$cross_compiling" = maybe; then
2635 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&5
2640 $as_echo "$as_me: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'.
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }; }
2647 { $as_echo "$as_me:$LINENO: result: yes" >&5
2648 $as_echo "yes" >&6; }
2650 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2651 ac_clean_files=$ac_clean_files_save
2652 # Check that the compiler produces executables we can run. If not, either
2653 # the compiler is broken, or we cross compile.
2654 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2655 $as_echo_n "checking whether we are cross compiling... " >&6; }
2656 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2657 $as_echo "$cross_compiling" >&6; }
2659 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2660 $as_echo_n "checking for suffix of executables... " >&6; }
2661 if { (ac_try="$ac_link"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2667 $as_echo "$ac_try_echo") >&5
2668 (eval "$ac_link") 2>&5
2670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2673 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2674 # work properly (i.e., refer to `conftest.exe'), while it won't with
2676 for ac_file in conftest.exe conftest conftest.*; do
2677 test -f "$ac_file" || continue
2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2680 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2686 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2689 See \`config.log' for more details." >&5
2690 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2691 See \`config.log' for more details." >&2;}
2692 { (exit 1); exit 1; }; }; }
2695 rm -f conftest$ac_cv_exeext
2696 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2697 $as_echo "$ac_cv_exeext" >&6; }
2699 rm -f conftest.$ac_ext
2700 EXEEXT=$ac_cv_exeext
2702 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2703 $as_echo_n "checking for suffix of object files... " >&6; }
2704 if test "${ac_cv_objext+set}" = set; then
2705 $as_echo_n "(cached) " >&6
2707 cat >conftest.$ac_ext <<_ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2722 rm -f conftest.o conftest.obj
2723 if { (ac_try="$ac_compile"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2729 $as_echo "$ac_try_echo") >&5
2730 (eval "$ac_compile") 2>&5
2732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; then
2734 for ac_file in conftest.o conftest.obj conftest.*; do
2735 test -f "$ac_file" || continue;
2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2738 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2743 $as_echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2749 See \`config.log' for more details." >&5
2750 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2751 See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }; }
2755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2757 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2758 $as_echo "$ac_cv_objext" >&6; }
2759 OBJEXT=$ac_cv_objext
2761 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2764 $as_echo_n "(cached) " >&6
2766 cat >conftest.$ac_ext <<_ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2784 rm -f conftest.$ac_objext
2785 if { (ac_try="$ac_compile"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2791 $as_echo "$ac_try_echo") >&5
2792 (eval "$ac_compile") 2>conftest.er1
2794 grep -v '^ *+' conftest.er1 >conftest.err
2796 cat conftest.err >&5
2797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest.$ac_objext; then
2804 $as_echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2814 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2816 if test $ac_compiler_gnu = yes; then
2821 ac_test_CFLAGS=${CFLAGS+set}
2822 ac_save_CFLAGS=$CFLAGS
2823 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2824 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2825 if test "${ac_cv_prog_cc_g+set}" = set; then
2826 $as_echo_n "(cached) " >&6
2828 ac_save_c_werror_flag=$ac_c_werror_flag
2829 ac_c_werror_flag=yes
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2847 rm -f conftest.$ac_objext
2848 if { (ac_try="$ac_compile"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2854 $as_echo "$ac_try_echo") >&5
2855 (eval "$ac_compile") 2>conftest.er1
2857 grep -v '^ *+' conftest.er1 >conftest.err
2859 cat conftest.err >&5
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest.$ac_objext; then
2867 $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2886 rm -f conftest.$ac_objext
2887 if { (ac_try="$ac_compile"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893 $as_echo "$ac_try_echo") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2906 $as_echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 ac_c_werror_flag=$ac_save_c_werror_flag
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2933 $as_echo "$ac_try_echo") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } && {
2941 test -z "$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2943 } && test -s conftest.$ac_objext; then
2946 $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2961 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2962 $as_echo "$ac_cv_prog_cc_g" >&6; }
2963 if test "$ac_test_CFLAGS" = set; then
2964 CFLAGS=$ac_save_CFLAGS
2965 elif test $ac_cv_prog_cc_g = yes; then
2966 if test "$GCC" = yes; then
2972 if test "$GCC" = yes; then
2978 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2979 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2980 if test "${ac_cv_prog_cc_c89+set}" = set; then
2981 $as_echo_n "(cached) " >&6
2983 ac_cv_prog_cc_c89=no
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2993 #include <sys/types.h>
2994 #include <sys/stat.h>
2995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2996 struct buf { int x; };
2997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2998 static char *e (p, i)
3004 static char *f (char * (*g) (char **, int), char **p, ...)
3009 s = g (p, va_arg (v,int));
3014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3015 function prototypes and stuff, but not '\xHH' hex character constants.
3016 These don't provoke an error unfortunately, instead are silently treated
3017 as 'x'. The following induces an error, until -std is added to get
3018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3019 array size at least. It's necessary to write '\x00'==0 to get something
3020 that's true only with -std. */
3021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3024 inside strings and character constants. */
3026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3028 int test (int i, double x);
3029 struct s1 {int (*f) (int a);};
3030 struct s2 {int (*f) (double a);};
3031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3045 CC="$ac_save_CC $ac_arg"
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053 $as_echo "$ac_try_echo") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3056 grep -v '^ *+' conftest.er1 >conftest.err
3058 cat conftest.err >&5
3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_c_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
3064 ac_cv_prog_cc_c89=$ac_arg
3066 $as_echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3072 rm -f core conftest.err conftest.$ac_objext
3073 test "x$ac_cv_prog_cc_c89" != "xno" && break
3075 rm -f conftest.$ac_ext
3080 case "x$ac_cv_prog_cc_c89" in
3082 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3083 $as_echo "none needed" >&6; } ;;
3085 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3086 $as_echo "unsupported" >&6; } ;;
3088 CC="$CC $ac_cv_prog_cc_c89"
3089 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3090 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 # Check whether --enable-shared was given.
3101 if test "${enable_shared+set}" = set; then
3102 enableval=$enable_shared; p=${PACKAGE-default}
3104 yes) enable_shared=yes ;;
3105 no) enable_shared=no ;;
3108 # Look at the argument we got. We use all the common list separators.
3109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3110 for pkg in $enableval; do
3112 if test "X$pkg" = "X$p"; then
3124 # Check whether --enable-static was given.
3125 if test "${enable_static+set}" = set; then
3126 enableval=$enable_static; p=${PACKAGE-default}
3128 yes) enable_static=yes ;;
3129 no) enable_static=no ;;
3132 # Look at the argument we got. We use all the common list separators.
3133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3134 for pkg in $enableval; do
3136 if test "X$pkg" = "X$p"; then
3148 # Check whether --enable-fast-install was given.
3149 if test "${enable_fast_install+set}" = set; then
3150 enableval=$enable_fast_install; p=${PACKAGE-default}
3152 yes) enable_fast_install=yes ;;
3153 no) enable_fast_install=no ;;
3155 enable_fast_install=no
3156 # Look at the argument we got. We use all the common list separators.
3157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3158 for pkg in $enableval; do
3160 if test "X$pkg" = "X$p"; then
3161 enable_fast_install=yes
3168 enable_fast_install=yes
3172 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3173 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3174 if test "${lt_cv_path_SED+set}" = set; then
3175 $as_echo_n "(cached) " >&6
3177 # Loop through the user's path and test for sed and gsed.
3178 # Then use that list of sed's as ones to test for truncation.
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 test -z "$as_dir" && as_dir=.
3184 for lt_ac_prog in sed gsed; do
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3187 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3194 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3195 # along with /bin/sed that truncates output.
3196 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3197 test ! -f $lt_ac_sed && break
3198 cat /dev/null > conftest.in
3200 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3201 # Check for GNU sed and select it if it is found.
3202 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3203 lt_cv_path_SED=$lt_ac_sed
3207 cat conftest.in conftest.in >conftest.tmp
3208 mv conftest.tmp conftest.in
3209 cp conftest.in conftest.nl
3211 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3212 cmp -s conftest.out conftest.nl || break
3213 # 10000 chars as input seems more than enough
3214 test $lt_ac_count -gt 10 && break
3215 lt_ac_count=`expr $lt_ac_count + 1`
3216 if test $lt_ac_count -gt $lt_ac_max; then
3217 lt_ac_max=$lt_ac_count
3218 lt_cv_path_SED=$lt_ac_sed
3226 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3227 $as_echo "$SED" >&6; }
3229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3231 if test "${ac_cv_path_GREP+set}" = set; then
3232 $as_echo_n "(cached) " >&6
3234 if test -z "$GREP"; then
3235 ac_path_GREP_found=false
3236 # Loop through the user's path and test for each of PROGNAME-LIST
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3241 test -z "$as_dir" && as_dir=.
3242 for ac_prog in grep ggrep; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3246 # Check for GNU ac_path_GREP and select it if it is found.
3247 # Check for GNU $ac_path_GREP
3248 case `"$ac_path_GREP" --version 2>&1` in
3250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3253 $as_echo_n 0123456789 >"conftest.in"
3256 cat "conftest.in" "conftest.in" >"conftest.tmp"
3257 mv "conftest.tmp" "conftest.in"
3258 cp "conftest.in" "conftest.nl"
3259 $as_echo 'GREP' >> "conftest.nl"
3260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3262 ac_count=`expr $ac_count + 1`
3263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3264 # Best one so far, save it but keep looking for a better one
3265 ac_cv_path_GREP="$ac_path_GREP"
3266 ac_path_GREP_max=$ac_count
3268 # 10*(2^10) chars as input seems more than enough
3269 test $ac_count -gt 10 && break
3271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3274 $ac_path_GREP_found && break 3
3279 if test -z "$ac_cv_path_GREP"; then
3280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3282 { (exit 1); exit 1; }; }
3285 ac_cv_path_GREP=$GREP
3289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3290 $as_echo "$ac_cv_path_GREP" >&6; }
3291 GREP="$ac_cv_path_GREP"
3294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3295 $as_echo_n "checking for egrep... " >&6; }
3296 if test "${ac_cv_path_EGREP+set}" = set; then
3297 $as_echo_n "(cached) " >&6
3299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3300 then ac_cv_path_EGREP="$GREP -E"
3302 if test -z "$EGREP"; then
3303 ac_path_EGREP_found=false
3304 # Loop through the user's path and test for each of PROGNAME-LIST
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3309 test -z "$as_dir" && as_dir=.
3310 for ac_prog in egrep; do
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3314 # Check for GNU ac_path_EGREP and select it if it is found.
3315 # Check for GNU $ac_path_EGREP
3316 case `"$ac_path_EGREP" --version 2>&1` in
3318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3321 $as_echo_n 0123456789 >"conftest.in"
3324 cat "conftest.in" "conftest.in" >"conftest.tmp"
3325 mv "conftest.tmp" "conftest.in"
3326 cp "conftest.in" "conftest.nl"
3327 $as_echo 'EGREP' >> "conftest.nl"
3328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3330 ac_count=`expr $ac_count + 1`
3331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3332 # Best one so far, save it but keep looking for a better one
3333 ac_cv_path_EGREP="$ac_path_EGREP"
3334 ac_path_EGREP_max=$ac_count
3336 # 10*(2^10) chars as input seems more than enough
3337 test $ac_count -gt 10 && break
3339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3342 $ac_path_EGREP_found && break 3
3347 if test -z "$ac_cv_path_EGREP"; then
3348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3353 ac_cv_path_EGREP=$EGREP
3358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3359 $as_echo "$ac_cv_path_EGREP" >&6; }
3360 EGREP="$ac_cv_path_EGREP"
3364 # Check whether --with-gnu-ld was given.
3365 if test "${with_gnu_ld+set}" = set; then
3366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3372 if test "$GCC" = yes; then
3373 # Check if gcc -print-prog-name=ld gives a path.
3374 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3375 $as_echo_n "checking for ld used by $CC... " >&6; }
3378 # gcc leaves a trailing carriage return which upsets mingw
3379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3384 # Accept absolute paths.
3386 re_direlt='/[^/][^/]*/\.\./'
3387 # Canonicalize the pathname of ld
3388 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3390 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3392 test -z "$LD" && LD="$ac_prog"
3395 # If it fails, then pretend we aren't using GCC.
3399 # If it is relative, then search for the first ld in PATH.
3403 elif test "$with_gnu_ld" = yes; then
3404 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3405 $as_echo_n "checking for GNU ld... " >&6; }
3407 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3408 $as_echo_n "checking for non-GNU ld... " >&6; }
3410 if test "${lt_cv_path_LD+set}" = set; then
3411 $as_echo_n "(cached) " >&6
3413 if test -z "$LD"; then
3414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3415 for ac_dir in $PATH; do
3417 test -z "$ac_dir" && ac_dir=.
3418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3419 lt_cv_path_LD="$ac_dir/$ac_prog"
3420 # Check to see if the program is GNU ld. I'd rather use --version,
3421 # but apparently some GNU ld's only accept -v.
3422 # Break only if it was the GNU/non-GNU ld that we prefer.
3423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3424 *GNU* | *'with BFD'*)
3425 test "$with_gnu_ld" != no && break
3428 test "$with_gnu_ld" != yes && break
3435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3440 if test -n "$LD"; then
3441 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3442 $as_echo "$LD" >&6; }
3444 { $as_echo "$as_me:$LINENO: result: no" >&5
3445 $as_echo "no" >&6; }
3447 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3448 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3449 { (exit 1); exit 1; }; }
3450 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3451 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3453 $as_echo_n "(cached) " >&6
3455 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3456 case `$LD -v 2>&1 </dev/null` in
3457 *GNU* | *'with BFD'*)
3458 lt_cv_prog_gnu_ld=yes
3461 lt_cv_prog_gnu_ld=no
3465 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3466 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3467 with_gnu_ld=$lt_cv_prog_gnu_ld
3470 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3471 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3472 if test "${lt_cv_ld_reload_flag+set}" = set; then
3473 $as_echo_n "(cached) " >&6
3475 lt_cv_ld_reload_flag='-r'
3477 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3478 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3479 reload_flag=$lt_cv_ld_reload_flag
3480 case $reload_flag in
3482 *) reload_flag=" $reload_flag" ;;
3484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3486 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3487 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3488 if test "${lt_cv_path_NM+set}" = set; then
3489 $as_echo_n "(cached) " >&6
3491 if test -n "$NM"; then
3492 # Let the user override the test.
3495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3496 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3498 test -z "$ac_dir" && ac_dir=.
3499 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3500 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3501 # Check to see if the nm accepts a BSD-compat flag.
3502 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3503 # nm: unknown option "B" ignored
3504 # Tru64's nm complains that /dev/null is an invalid object file
3505 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3506 */dev/null* | *'Invalid file or object type'*)
3507 lt_cv_path_NM="$tmp_nm -B"
3511 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3513 lt_cv_path_NM="$tmp_nm -p"
3517 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3518 continue # so that we can try to find one that supports BSD flags
3525 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3528 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3529 $as_echo "$lt_cv_path_NM" >&6; }
3532 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3533 $as_echo_n "checking whether ln -s works... " >&6; }
3535 if test "$LN_S" = "ln -s"; then
3536 { $as_echo "$as_me:$LINENO: result: yes" >&5
3537 $as_echo "yes" >&6; }
3539 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3540 $as_echo "no, using $LN_S" >&6; }
3543 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3544 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
3545 if test "${lt_cv_deplibs_check_method+set}" = set; then
3546 $as_echo_n "(cached) " >&6
3548 lt_cv_file_magic_cmd='$MAGIC_CMD'
3549 lt_cv_file_magic_test_file=
3550 lt_cv_deplibs_check_method='unknown'
3551 # Need to set the preceding variable on all platforms that support
3552 # interlibrary dependencies.
3553 # 'none' -- dependencies not supported.
3554 # `unknown' -- same as none, but documents that we really don't know.
3555 # 'pass_all' -- all dependencies passed with no checks.
3556 # 'test_compile' -- check by making test program.
3557 # 'file_magic [[regex]]' -- check by looking for files in library path
3558 # which responds to the $file_magic_cmd with a given extended regex.
3559 # If you have `file' or equivalent on your system and you're not sure
3560 # whether `pass_all' will *always* work, you probably want this one.
3564 lt_cv_deplibs_check_method=pass_all
3568 lt_cv_deplibs_check_method=pass_all
3572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3573 lt_cv_file_magic_cmd='/usr/bin/file -L'
3574 lt_cv_file_magic_test_file=/shlib/libc.so
3577 cygwin* | mingw* | pw32*)
3578 # win32_libid is a shell function defined in ltmain.sh
3579 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3580 lt_cv_file_magic_cmd='win32_libid'
3583 darwin* | rhapsody*)
3584 # this will be overwritten by pass_all, but leave it in just in case
3585 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3586 lt_cv_file_magic_cmd='/usr/bin/file -L'
3588 rhapsody* | darwin1.[012])
3589 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3592 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3595 lt_cv_deplibs_check_method=pass_all
3598 freebsd* | kfreebsd*-gnu)
3599 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3602 # Not sure whether the presence of OpenBSD here was a mistake.
3603 # Let's accept both of them until this is cleared up.
3604 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3605 lt_cv_file_magic_cmd=/usr/bin/file
3606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3610 lt_cv_deplibs_check_method=pass_all
3615 lt_cv_deplibs_check_method=pass_all
3618 hpux10.20* | hpux11*)
3619 lt_cv_file_magic_cmd=/usr/bin/file
3622 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3623 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3626 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]'
3627 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3630 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3631 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3636 irix5* | irix6* | nonstopux*)
3638 irix5* | nonstopux*)
3639 # this will be overridden with pass_all, but let us keep it just in case
3640 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3644 *-32|*"-32 ") libmagic=32-bit;;
3645 *-n32|*"-n32 ") libmagic=N32;;
3646 *-64|*"-64 ") libmagic=64-bit;;
3647 *) libmagic=never-match;;
3649 # this will be overridden with pass_all, but let us keep it just in case
3650 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3653 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3654 lt_cv_deplibs_check_method=pass_all
3657 # This must be Linux ELF.
3659 # linux always uses pass_all now, this code is the old way (tm)
3661 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
3662 lt_cv_deplibs_check_method=pass_all ;;
3664 # glibc up to 2.1.1 does not perform some relocations on ARM
3665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3667 lt_cv_deplibs_check_method=pass_all
3668 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3672 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3681 lt_cv_file_magic_cmd=/usr/bin/file
3682 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3686 lt_cv_deplibs_check_method=unknown
3690 lt_cv_file_magic_cmd=/usr/bin/file
3691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3695 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3699 osf3* | osf4* | osf5*)
3700 # this will be overridden with pass_all, but let us keep it just in case
3701 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3702 lt_cv_file_magic_test_file=/shlib/libc.so
3703 lt_cv_deplibs_check_method=pass_all
3707 lt_cv_deplibs_check_method=pass_all
3711 lt_cv_deplibs_check_method=pass_all
3712 lt_cv_file_magic_test_file=/lib/libc.so
3715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3716 case $host_vendor in
3718 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]'
3719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3722 lt_cv_deplibs_check_method=pass_all
3725 lt_cv_file_magic_cmd='/bin/file'
3726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3729 lt_cv_file_magic_cmd='/bin/file'
3730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3731 lt_cv_file_magic_test_file=/lib/libc.so
3734 lt_cv_deplibs_check_method=pass_all
3739 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3740 lt_cv_deplibs_check_method=pass_all
3745 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3746 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3747 file_magic_cmd=$lt_cv_file_magic_cmd
3748 deplibs_check_method=$lt_cv_deplibs_check_method
3749 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3754 # If no C compiler was specified, use CC.
3757 # Allow CC to be a program name with arguments.
3761 # Check whether --enable-libtool-lock was given.
3762 if test "${enable_libtool_lock+set}" = set; then
3763 enableval=$enable_libtool_lock;
3766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3768 # Some flags need to be propagated to the compiler or linker for good
3772 # Find out which ABI we are using.
3773 echo 'int i;' > conftest.$ac_ext
3774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3775 (eval $ac_compile) 2>&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; then
3779 case `/usr/bin/file conftest.$ac_objext` in
3791 # Find out which ABI we are using.
3792 echo '#line 3792 "configure"' > conftest.$ac_ext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>&5
3796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; then
3798 if test "$lt_cv_prog_gnu_ld" = yes; then
3799 case `/usr/bin/file conftest.$ac_objext` in
3801 LD="${LD-ld} -melf32bsmip"
3804 LD="${LD-ld} -melf32bmipn32"
3807 LD="${LD-ld} -melf64bmip"
3811 case `/usr/bin/file conftest.$ac_objext` in
3827 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3828 # Find out which ABI we are using.
3829 echo 'int i;' > conftest.$ac_ext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; then
3835 case "`/usr/bin/file conftest.o`" in
3839 LD="${LD-ld} -m elf_i386"
3841 ppc64-*linux*|powerpc64-*linux*)
3842 LD="${LD-ld} -m elf32ppclinux"
3845 LD="${LD-ld} -m elf_s390"
3848 LD="${LD-ld} -m elf32_sparc"
3855 LD="${LD-ld} -m elf_x86_64"
3857 ppc*-*linux*|powerpc*-*linux*)
3858 LD="${LD-ld} -m elf64ppc"
3861 LD="${LD-ld} -m elf64_s390"
3864 LD="${LD-ld} -m elf64_sparc"
3874 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3875 SAVE_CFLAGS="$CFLAGS"
3876 CFLAGS="$CFLAGS -belf"
3877 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3878 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
3879 if test "${lt_cv_cc_needs_belf+set}" = set; then
3880 $as_echo_n "(cached) " >&6
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3903 rm -f conftest.$ac_objext conftest$ac_exeext
3904 if { (ac_try="$ac_link"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911 (eval "$ac_link") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest$ac_exeext && {
3921 test "$cross_compiling" = yes ||
3922 $as_test_x conftest$ac_exeext
3924 lt_cv_cc_needs_belf=yes
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 lt_cv_cc_needs_belf=no
3932 rm -rf conftest.dSYM
3933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3934 conftest$ac_exeext conftest.$ac_ext
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3943 $as_echo "$lt_cv_cc_needs_belf" >&6; }
3944 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3945 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3946 CFLAGS="$SAVE_CFLAGS"
3952 need_locks="$enable_libtool_lock"
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3961 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3962 # On Suns, sometimes $CPP names a directory.
3963 if test -n "$CPP" && test -d "$CPP"; then
3966 if test -z "$CPP"; then
3967 if test "${ac_cv_prog_CPP+set}" = set; then
3968 $as_echo_n "(cached) " >&6
3970 # Double quotes because CPP needs to be expanded
3971 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3974 for ac_c_preproc_warn_flag in '' yes
3976 # Use a header file that comes with gcc, so configuring glibc
3977 # with a fresh cross-compiler works.
3978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 # <limits.h> exists even on freestanding compilers.
3980 # On the NeXT, cc -E runs the code through the compiler's parser,
3981 # not just through cpp. "Syntax error" is here to catch this case.
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3989 # include <limits.h>
3991 # include <assert.h>
3995 if { (ac_try="$ac_cpp conftest.$ac_ext"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null && {
4009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4014 $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 # Broken: fails on valid input.
4021 rm -f conftest.err conftest.$ac_ext
4023 # OK, works on sane cases. Now check whether nonexistent headers
4024 # can be detected and how.
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include <ac_nonexistent.h>
4033 if { (ac_try="$ac_cpp conftest.$ac_ext"
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4039 $as_echo "$ac_try_echo") >&5
4040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } >/dev/null && {
4047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4048 test ! -s conftest.err
4050 # Broken: success on invalid input.
4053 $as_echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 # Passes both tests.
4061 rm -f conftest.err conftest.$ac_ext
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then
4078 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4079 $as_echo "$CPP" >&6; }
4081 for ac_c_preproc_warn_flag in '' yes
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error" is here to catch this case.
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4096 # include <limits.h>
4098 # include <assert.h>
4102 if { (ac_try="$ac_cpp conftest.$ac_ext"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev/null && {
4116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 # Broken: fails on valid input.
4128 rm -f conftest.err conftest.$ac_ext
4130 # OK, works on sane cases. Now check whether nonexistent headers
4131 # can be detected and how.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <ac_nonexistent.h>
4140 if { (ac_try="$ac_cpp conftest.$ac_ext"
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146 $as_echo "$ac_try_echo") >&5
4147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } >/dev/null && {
4154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4157 # Broken: success on invalid input.
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 # Passes both tests.
4168 rm -f conftest.err conftest.$ac_ext
4171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4172 rm -f conftest.err conftest.$ac_ext
4173 if $ac_preproc_ok; then
4176 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4178 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4179 See \`config.log' for more details." >&5
4180 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4181 See \`config.log' for more details." >&2;}
4182 { (exit 1); exit 1; }; }; }
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4193 $as_echo_n "checking for ANSI C header files... " >&6; }
4194 if test "${ac_cv_header_stdc+set}" = set; then
4195 $as_echo_n "(cached) " >&6
4197 cat >conftest.$ac_ext <<_ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4223 $as_echo "$ac_try_echo") >&5
4224 (eval "$ac_compile") 2>conftest.er1
4226 grep -v '^ *+' conftest.er1 >conftest.err
4228 cat conftest.err >&5
4229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest.$ac_objext; then
4234 ac_cv_header_stdc=yes
4236 $as_echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 ac_cv_header_stdc=no
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 if test $ac_cv_header_stdc = yes; then
4245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256 $EGREP "memchr" >/dev/null 2>&1; then
4259 ac_cv_header_stdc=no
4265 if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277 $EGREP "free" >/dev/null 2>&1; then
4280 ac_cv_header_stdc=no
4286 if test $ac_cv_header_stdc = yes; then
4287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4288 if test "$cross_compiling" = yes; then
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4299 #if ((' ' & 0x0FF) == 0x020)
4300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4303 # define ISLOWER(c) \
4304 (('a' <= (c) && (c) <= 'i') \
4305 || ('j' <= (c) && (c) <= 'r') \
4306 || ('s' <= (c) && (c) <= 'z'))
4307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4315 for (i = 0; i < 256; i++)
4316 if (XOR (islower (i), ISLOWER (i))
4317 || toupper (i) != TOUPPER (i))
4322 rm -f conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329 $as_echo "$ac_try_echo") >&5
4330 (eval "$ac_link") 2>&5
4332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4334 { (case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4339 $as_echo "$ac_try_echo") >&5
4340 (eval "$ac_try") 2>&5
4342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4346 $as_echo "$as_me: program exited with status $ac_status" >&5
4347 $as_echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4351 ac_cv_header_stdc=no
4353 rm -rf conftest.dSYM
4354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4360 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4361 $as_echo "$ac_cv_header_stdc" >&6; }
4362 if test $ac_cv_header_stdc = yes; then
4364 cat >>confdefs.h <<\_ACEOF
4365 #define STDC_HEADERS 1
4370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4381 inttypes.h stdint.h unistd.h
4383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4385 $as_echo_n "checking for $ac_header... " >&6; }
4386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4387 $as_echo_n "(cached) " >&6
4389 cat >conftest.$ac_ext <<_ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 $ac_includes_default
4397 #include <$ac_header>
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4406 $as_echo "$ac_try_echo") >&5
4407 (eval "$ac_compile") 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && {
4414 test -z "$ac_c_werror_flag" ||
4415 test ! -s conftest.err
4416 } && test -s conftest.$ac_objext; then
4417 eval "$as_ac_Header=yes"
4419 $as_echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 eval "$as_ac_Header=no"
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 ac_res=`eval 'as_val=${'$as_ac_Header'}
4428 $as_echo "$as_val"'`
4429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4430 $as_echo "$ac_res" >&6; }
4431 as_val=`eval 'as_val=${'$as_ac_Header'}
4432 $as_echo "$as_val"'`
4433 if test "x$as_val" = x""yes; then
4434 cat >>confdefs.h <<_ACEOF
4435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4444 for ac_header in dlfcn.h
4446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4448 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4449 $as_echo_n "checking for $ac_header... " >&6; }
4450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4451 $as_echo_n "(cached) " >&6
4453 ac_res=`eval 'as_val=${'$as_ac_Header'}
4454 $as_echo "$as_val"'`
4455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4456 $as_echo "$ac_res" >&6; }
4458 # Is the header compilable?
4459 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4460 $as_echo_n "checking $ac_header usability... " >&6; }
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 $ac_includes_default
4468 #include <$ac_header>
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4477 $as_echo "$ac_try_echo") >&5
4478 (eval "$ac_compile") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && {
4485 test -z "$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4487 } && test -s conftest.$ac_objext; then
4488 ac_header_compiler=yes
4490 $as_echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 ac_header_compiler=no
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4498 $as_echo "$ac_header_compiler" >&6; }
4500 # Is the header present?
4501 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4502 $as_echo_n "checking $ac_header presence... " >&6; }
4503 cat >conftest.$ac_ext <<_ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4509 #include <$ac_header>
4511 if { (ac_try="$ac_cpp conftest.$ac_ext"
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4517 $as_echo "$ac_try_echo") >&5
4518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4520 grep -v '^ *+' conftest.er1 >conftest.err
4522 cat conftest.err >&5
4523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } >/dev/null && {
4525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4526 test ! -s conftest.err
4528 ac_header_preproc=yes
4530 $as_echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 ac_header_preproc=no
4536 rm -f conftest.err conftest.$ac_ext
4537 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4538 $as_echo "$ac_header_preproc" >&6; }
4540 # So? What about this header?
4541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4544 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4546 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4547 ac_header_preproc=yes
4550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4551 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4553 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4555 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4557 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4559 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4561 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4563 ## -------------------------------- ##
4564 ## Report this to chise-en@m17n.org ##
4565 ## -------------------------------- ##
4567 ) | sed "s/^/$as_me: WARNING: /" >&2
4570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4571 $as_echo_n "checking for $ac_header... " >&6; }
4572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4573 $as_echo_n "(cached) " >&6
4575 eval "$as_ac_Header=\$ac_header_preproc"
4577 ac_res=`eval 'as_val=${'$as_ac_Header'}
4578 $as_echo "$as_val"'`
4579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4580 $as_echo "$ac_res" >&6; }
4583 as_val=`eval 'as_val=${'$as_ac_Header'}
4584 $as_echo "$as_val"'`
4585 if test "x$as_val" = x""yes; then
4586 cat >>confdefs.h <<_ACEOF
4587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 ac_cpp='$CXXCPP $CPPFLAGS'
4596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4599 if test -z "$CXX"; then
4600 if test -n "$CCC"; then
4603 if test -n "$ac_tool_prefix"; then
4604 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if test "${ac_cv_prog_CXX+set}" = set; then
4611 $as_echo_n "(cached) " >&6
4613 if test -n "$CXX"; then
4614 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 if test -n "$CXX"; then
4635 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4636 $as_echo "$CXX" >&6; }
4638 { $as_echo "$as_me:$LINENO: result: no" >&5
4639 $as_echo "no" >&6; }
4643 test -n "$CXX" && break
4646 if test -z "$CXX"; then
4648 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4650 # Extract the first word of "$ac_prog", so it can be a program name with args.
4651 set dummy $ac_prog; ac_word=$2
4652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4655 $as_echo_n "(cached) " >&6
4657 if test -n "$ac_ct_CXX"; then
4658 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_ac_ct_CXX="$ac_prog"
4668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4678 if test -n "$ac_ct_CXX"; then
4679 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4680 $as_echo "$ac_ct_CXX" >&6; }
4682 { $as_echo "$as_me:$LINENO: result: no" >&5
4683 $as_echo "no" >&6; }
4687 test -n "$ac_ct_CXX" && break
4690 if test "x$ac_ct_CXX" = x; then
4693 case $cross_compiling:$ac_tool_warned in
4695 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4705 # Provide some information about the compiler.
4706 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4709 { (ac_try="$ac_compiler --version >&5"
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4715 $as_echo "$ac_try_echo") >&5
4716 (eval "$ac_compiler --version >&5") 2>&5
4718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }
4720 { (ac_try="$ac_compiler -v >&5"
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4726 $as_echo "$ac_try_echo") >&5
4727 (eval "$ac_compiler -v >&5") 2>&5
4729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }
4731 { (ac_try="$ac_compiler -V >&5"
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4737 $as_echo "$ac_try_echo") >&5
4738 (eval "$ac_compiler -V >&5") 2>&5
4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }
4743 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4744 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4745 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4746 $as_echo_n "(cached) " >&6
4748 cat >conftest.$ac_ext <<_ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4766 rm -f conftest.$ac_objext
4767 if { (ac_try="$ac_compile"
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774 (eval "$ac_compile") 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && {
4781 test -z "$ac_cxx_werror_flag" ||
4782 test ! -s conftest.err
4783 } && test -s conftest.$ac_objext; then
4786 $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4796 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4798 if test $ac_compiler_gnu = yes; then
4803 ac_test_CXXFLAGS=${CXXFLAGS+set}
4804 ac_save_CXXFLAGS=$CXXFLAGS
4805 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4807 if test "${ac_cv_prog_cxx_g+set}" = set; then
4808 $as_echo_n "(cached) " >&6
4810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4811 ac_cxx_werror_flag=yes
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_cxx_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_cv_prog_cxx_g=yes
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4868 rm -f conftest.$ac_objext
4869 if { (ac_try="$ac_compile"
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875 $as_echo "$ac_try_echo") >&5
4876 (eval "$ac_compile") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && {
4883 test -z "$ac_cxx_werror_flag" ||
4884 test ! -s conftest.err
4885 } && test -s conftest.$ac_objext; then
4888 $as_echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4893 cat >conftest.$ac_ext <<_ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4908 rm -f conftest.$ac_objext
4909 if { (ac_try="$ac_compile"
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4915 $as_echo "$ac_try_echo") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_cxx_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4926 ac_cv_prog_cxx_g=yes
4928 $as_echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4943 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4944 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4945 if test "$ac_test_CXXFLAGS" = set; then
4946 CXXFLAGS=$ac_save_CXXFLAGS
4947 elif test $ac_cv_prog_cxx_g = yes; then
4948 if test "$GXX" = yes; then
4954 if test "$GXX" = yes; then
4961 ac_cpp='$CXXCPP $CPPFLAGS'
4962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4967 ac_cpp='$CXXCPP $CPPFLAGS'
4968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4971 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4972 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4973 if test -z "$CXXCPP"; then
4974 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4975 $as_echo_n "(cached) " >&6
4977 # Double quotes because CXXCPP needs to be expanded
4978 for CXXCPP in "$CXX -E" "/lib/cpp"
4981 for ac_cxx_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4996 # include <limits.h>
4998 # include <assert.h>
5002 if { (ac_try="$ac_cpp conftest.$ac_ext"
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5008 $as_echo "$ac_try_echo") >&5
5009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011 grep -v '^ *+' conftest.er1 >conftest.err
5013 cat conftest.err >&5
5014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } >/dev/null && {
5016 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5017 test ! -s conftest.err
5021 $as_echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5024 # Broken: fails on valid input.
5028 rm -f conftest.err conftest.$ac_ext
5030 # OK, works on sane cases. Now check whether nonexistent headers
5031 # can be detected and how.
5032 cat >conftest.$ac_ext <<_ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 #include <ac_nonexistent.h>
5040 if { (ac_try="$ac_cpp conftest.$ac_ext"
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5046 $as_echo "$ac_try_echo") >&5
5047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } >/dev/null && {
5054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5055 test ! -s conftest.err
5057 # Broken: success on invalid input.
5060 $as_echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 # Passes both tests.
5068 rm -f conftest.err conftest.$ac_ext
5071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5072 rm -f conftest.err conftest.$ac_ext
5073 if $ac_preproc_ok; then
5078 ac_cv_prog_CXXCPP=$CXXCPP
5081 CXXCPP=$ac_cv_prog_CXXCPP
5083 ac_cv_prog_CXXCPP=$CXXCPP
5085 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5086 $as_echo "$CXXCPP" >&6; }
5088 for ac_cxx_preproc_warn_flag in '' yes
5090 # Use a header file that comes with gcc, so configuring glibc
5091 # with a fresh cross-compiler works.
5092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093 # <limits.h> exists even on freestanding compilers.
5094 # On the NeXT, cc -E runs the code through the compiler's parser,
5095 # not just through cpp. "Syntax error" is here to catch this case.
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5103 # include <limits.h>
5105 # include <assert.h>
5109 if { (ac_try="$ac_cpp conftest.$ac_ext"
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115 $as_echo "$ac_try_echo") >&5
5116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } >/dev/null && {
5123 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5124 test ! -s conftest.err
5128 $as_echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5131 # Broken: fails on valid input.
5135 rm -f conftest.err conftest.$ac_ext
5137 # OK, works on sane cases. Now check whether nonexistent headers
5138 # can be detected and how.
5139 cat >conftest.$ac_ext <<_ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 #include <ac_nonexistent.h>
5147 if { (ac_try="$ac_cpp conftest.$ac_ext"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5153 $as_echo "$ac_try_echo") >&5
5154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5156 grep -v '^ *+' conftest.er1 >conftest.err
5158 cat conftest.err >&5
5159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } >/dev/null && {
5161 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5162 test ! -s conftest.err
5164 # Broken: success on invalid input.
5167 $as_echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 # Passes both tests.
5175 rm -f conftest.err conftest.$ac_ext
5178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5179 rm -f conftest.err conftest.$ac_ext
5180 if $ac_preproc_ok; then
5183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5185 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5186 See \`config.log' for more details." >&5
5187 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5188 See \`config.log' for more details." >&2;}
5189 { (exit 1); exit 1; }; }; }
5193 ac_cpp='$CXXCPP $CPPFLAGS'
5194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5201 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5203 if test -n "$ac_tool_prefix"; then
5204 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
5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_F77+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5213 if test -n "$F77"; then
5214 ac_cv_prog_F77="$F77" # Let the user override the test.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 if test -n "$F77"; then
5235 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5236 $as_echo "$F77" >&6; }
5238 { $as_echo "$as_me:$LINENO: result: no" >&5
5239 $as_echo "no" >&6; }
5243 test -n "$F77" && break
5246 if test -z "$F77"; then
5248 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
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$ac_ct_F77"; then
5258 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_F77="$ac_prog"
5268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5278 if test -n "$ac_ct_F77"; then
5279 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5280 $as_echo "$ac_ct_F77" >&6; }
5282 { $as_echo "$as_me:$LINENO: result: no" >&5
5283 $as_echo "no" >&6; }
5287 test -n "$ac_ct_F77" && break
5290 if test "x$ac_ct_F77" = x; then
5293 case $cross_compiling:$ac_tool_warned in
5295 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5304 # Provide some information about the compiler.
5305 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5308 { (ac_try="$ac_compiler --version >&5"
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5314 $as_echo "$ac_try_echo") >&5
5315 (eval "$ac_compiler --version >&5") 2>&5
5317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }
5319 { (ac_try="$ac_compiler -v >&5"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5325 $as_echo "$ac_try_echo") >&5
5326 (eval "$ac_compiler -v >&5") 2>&5
5328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }
5330 { (ac_try="$ac_compiler -V >&5"
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5336 $as_echo "$ac_try_echo") >&5
5337 (eval "$ac_compiler -V >&5") 2>&5
5339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }
5343 # If we don't use `.F' as extension, the preprocessor is not run on the
5344 # input file. (Note that this only needs to work for GNU compilers.)
5347 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5348 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5349 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5350 $as_echo_n "(cached) " >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (ac_try="$ac_compile"
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5367 $as_echo "$ac_try_echo") >&5
5368 (eval "$ac_compile") 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } && {
5375 test -z "$ac_f77_werror_flag" ||
5376 test ! -s conftest.err
5377 } && test -s conftest.$ac_objext; then
5380 $as_echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5390 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5391 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5393 ac_test_FFLAGS=${FFLAGS+set}
5394 ac_save_FFLAGS=$FFLAGS
5396 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5397 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5398 if test "${ac_cv_prog_f77_g+set}" = set; then
5399 $as_echo_n "(cached) " >&6
5402 cat >conftest.$ac_ext <<_ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5414 $as_echo "$ac_try_echo") >&5
5415 (eval "$ac_compile") 2>conftest.er1
5417 grep -v '^ *+' conftest.er1 >conftest.err
5419 cat conftest.err >&5
5420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && {
5422 test -z "$ac_f77_werror_flag" ||
5423 test ! -s conftest.err
5424 } && test -s conftest.$ac_objext; then
5425 ac_cv_prog_f77_g=yes
5427 $as_echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5437 $as_echo "$ac_cv_prog_f77_g" >&6; }
5438 if test "$ac_test_FFLAGS" = set; then
5439 FFLAGS=$ac_save_FFLAGS
5440 elif test $ac_cv_prog_f77_g = yes; then
5441 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5447 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5454 if test $ac_compiler_gnu = yes; then
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5469 # find the maximum length of command line arguments
5470 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5471 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5472 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5473 $as_echo_n "(cached) " >&6
5480 # On DJGPP, this test can blow up pretty badly due to problems in libc
5481 # (any single argument exceeding 2000 bytes causes a buffer overrun
5482 # during glob expansion). Even if it were fixed, the result of this
5483 # check would be larger than it should be.
5484 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5488 # Under GNU Hurd, this test is not required because there is
5489 # no limit to the length of command line arguments.
5490 # Libtool will interpret -1 as no limit whatsoever
5491 lt_cv_sys_max_cmd_len=-1;
5495 # On Win9x/ME, this test blows up -- it succeeds, but takes
5496 # about 5 minutes as the teststring grows exponentially.
5497 # Worse, since 9x/ME are not pre-emptively multitasking,
5498 # you end up with a "frozen" computer, even though with patience
5499 # the test eventually succeeds (with a max line length of 256k).
5500 # Instead, let's just punt: use the minimum linelength reported by
5501 # all of the supported platforms: 8192 (on NT/2K/XP).
5502 lt_cv_sys_max_cmd_len=8192;
5506 # On AmigaOS with pdksh, this test takes hours, literally.
5507 # So we just punt and use a minimum line length of 8192.
5508 lt_cv_sys_max_cmd_len=8192;
5512 # If test is not a shell built-in, we'll probably end up computing a
5513 # maximum length that is only half of the actual maximum length, but
5515 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5516 = "XX$testring") >/dev/null 2>&1 &&
5517 new_result=`expr "X$testring" : ".*" 2>&1` &&
5518 lt_cv_sys_max_cmd_len=$new_result &&
5519 test $i != 17 # 1/2 MB should be enough
5522 testring=$testring$testring
5525 # Add a significant safety factor because C++ compilers can tack on massive
5526 # amounts of additional arguments before passing them to the linker.
5527 # It appears as though 1/2 is a usable value.
5528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5534 if test -n $lt_cv_sys_max_cmd_len ; then
5535 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5536 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5538 { $as_echo "$as_me:$LINENO: result: none" >&5
5539 $as_echo "none" >&6; }
5545 # Check for command to grab the raw symbol name followed by C symbol from nm.
5546 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5547 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5548 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5549 $as_echo_n "(cached) " >&6
5552 # These are sane defaults that work on at least a few old systems.
5553 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5555 # Character class describing NM global symbol codes.
5556 symcode='[BCDEGRST]'
5558 # Regexp to match symbols that can be accessed directly from C.
5559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5561 # Transform the above into a raw symbol and a C symbol.
5562 symxfrm='\1 \2\3 \3'
5564 # Transform an extracted symbol line into a proper C declaration
5565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5567 # Transform an extracted symbol line into symbol name and symbol address
5568 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'"
5570 # Define system-specific variables.
5575 cygwin* | mingw* | pw32*)
5576 symcode='[ABCDGISTW]'
5578 hpux*) # Its linker distinguishes data from code symbols
5579 if test "$host_cpu" = ia64; then
5580 symcode='[ABCDEGRST]'
5582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5583 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'"
5586 symcode='[BCDEGRST]'
5589 symcode='[BCDEGQRST]'
5599 # Handle CRLF in mingw tool chain
5603 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5607 # If we're using GNU nm, then use its standard symbol codes.
5608 case `$NM -V 2>&1` in
5609 *GNU* | *'with BFD'*)
5610 symcode='[ABCDGIRSTW]' ;;
5613 # Try without a prefix undercore, then with it.
5614 for ac_symprfx in "" "_"; do
5616 # Write the raw and C identifiers.
5617 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5619 # Check to see that the pipe works correctly.
5623 cat > conftest.$ac_ext <<EOF
5628 void nm_test_func(){}
5632 int main(){nm_test_var='a';nm_test_func();return(0);}
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>&5
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; then
5640 # Now try to grab the symbols.
5642 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5643 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } && test -s "$nlist"; then
5647 # Try sorting and uniquifying the output.
5648 if sort "$nlist" | uniq > "$nlist"T; then
5649 mv -f "$nlist"T "$nlist"
5654 # Make sure that we snagged all the symbols we need.
5655 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5656 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5657 cat <<EOF > conftest.$ac_ext
5663 # Now generate the symbol file.
5664 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5666 cat <<EOF >> conftest.$ac_ext
5667 #if defined (__STDC__) && __STDC__
5668 # define lt_ptr_t void *
5670 # define lt_ptr_t char *
5674 /* The mapping between symbol names and symbols. */
5679 lt_preloaded_symbols[] =
5682 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5683 cat <<\EOF >> conftest.$ac_ext
5691 # Now try linking the two files.
5692 mv conftest.$ac_objext conftstm.$ac_objext
5693 lt_save_LIBS="$LIBS"
5694 lt_save_CFLAGS="$CFLAGS"
5695 LIBS="conftstm.$ac_objext"
5696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>&5
5700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5704 LIBS="$lt_save_LIBS"
5705 CFLAGS="$lt_save_CFLAGS"
5707 echo "cannot find nm_test_func in $nlist" >&5
5710 echo "cannot find nm_test_var in $nlist" >&5
5713 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5716 echo "$progname: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5719 rm -f conftest* conftst*
5721 # Do not use the global_symbol_pipe unless it works.
5722 if test "$pipe_works" = yes; then
5725 lt_cv_sys_global_symbol_pipe=
5731 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5732 lt_cv_sys_global_symbol_to_cdecl=
5734 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5735 { $as_echo "$as_me:$LINENO: result: failed" >&5
5736 $as_echo "failed" >&6; }
5738 { $as_echo "$as_me:$LINENO: result: ok" >&5
5739 $as_echo "ok" >&6; }
5742 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
5743 $as_echo_n "checking for objdir... " >&6; }
5744 if test "${lt_cv_objdir+set}" = set; then
5745 $as_echo_n "(cached) " >&6
5747 rm -f .libs 2>/dev/null
5748 mkdir .libs 2>/dev/null
5749 if test -d .libs; then
5752 # MS-DOS does not allow filenames that begin with a dot.
5755 rmdir .libs 2>/dev/null
5757 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5758 $as_echo "$lt_cv_objdir" >&6; }
5759 objdir=$lt_cv_objdir
5767 # AIX sometimes has problems with the GCC collect2 program. For some
5768 # reason, if we set the COLLECT_NAMES environment variable, the problems
5769 # vanish in a puff of smoke.
5770 if test "X${COLLECT_NAMES+set}" != Xset; then
5772 export COLLECT_NAMES
5777 # Sed substitution that helps us do robust quoting. It backslashifies
5778 # metacharacters that are still active within double-quoted strings.
5779 Xsed='sed -e s/^X//'
5780 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5782 # Same as above, but do not quote variable references.
5783 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5785 # Sed substitution to delay expansion of an escaped shell variable in a
5786 # double_quote_subst'ed string.
5787 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5789 # Sed substitution to avoid accidental globbing in evaled expressions
5790 no_glob_subst='s/\*/\\\*/g'
5796 default_ofile=libtool
5797 can_build_shared=yes
5799 # All known linkers require a `.a' archive for static linking (except M$VC,
5800 # which needs '.lib').
5802 ltmain="$ac_aux_dir/ltmain.sh"
5803 ofile="$default_ofile"
5804 with_gnu_ld="$lt_cv_prog_gnu_ld"
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ar; ac_word=$2
5809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_AR+set}" = set; then
5812 $as_echo_n "(cached) " >&6
5814 if test -n "$AR"; then
5815 ac_cv_prog_AR="$AR" # Let the user override the test.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_AR="${ac_tool_prefix}ar"
5825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 if test -n "$AR"; then
5836 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5837 $as_echo "$AR" >&6; }
5839 { $as_echo "$as_me:$LINENO: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test -z "$ac_cv_prog_AR"; then
5847 # Extract the first word of "ar", so it can be a program name with args.
5848 set dummy ar; ac_word=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5854 if test -n "$ac_ct_AR"; then
5855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_AR="ar"
5865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5875 if test -n "$ac_ct_AR"; then
5876 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5877 $as_echo "$ac_ct_AR" >&6; }
5879 { $as_echo "$as_me:$LINENO: result: no" >&5
5880 $as_echo "no" >&6; }
5883 if test "x$ac_ct_AR" = x; then
5886 case $cross_compiling:$ac_tool_warned in
5888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if test "${ac_cv_prog_RANLIB+set}" = set; then
5904 $as_echo_n "(cached) " >&6
5906 if test -n "$RANLIB"; then
5907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 RANLIB=$ac_cv_prog_RANLIB
5927 if test -n "$RANLIB"; then
5928 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5929 $as_echo "$RANLIB" >&6; }
5931 { $as_echo "$as_me:$LINENO: result: no" >&5
5932 $as_echo "no" >&6; }
5937 if test -z "$ac_cv_prog_RANLIB"; then
5938 ac_ct_RANLIB=$RANLIB
5939 # Extract the first word of "ranlib", so it can be a program name with args.
5940 set dummy ranlib; ac_word=$2
5941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5944 $as_echo_n "(cached) " >&6
5946 if test -n "$ac_ct_RANLIB"; then
5947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_RANLIB="ranlib"
5957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967 if test -n "$ac_ct_RANLIB"; then
5968 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5969 $as_echo "$ac_ct_RANLIB" >&6; }
5971 { $as_echo "$as_me:$LINENO: result: no" >&5
5972 $as_echo "no" >&6; }
5975 if test "x$ac_ct_RANLIB" = x; then
5978 case $cross_compiling:$ac_tool_warned in
5980 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982 ac_tool_warned=yes ;;
5984 RANLIB=$ac_ct_RANLIB
5987 RANLIB="$ac_cv_prog_RANLIB"
5990 if test -n "$ac_tool_prefix"; then
5991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}strip; ac_word=$2
5993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if test "${ac_cv_prog_STRIP+set}" = set; then
5996 $as_echo_n "(cached) " >&6
5998 if test -n "$STRIP"; then
5999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 STRIP=$ac_cv_prog_STRIP
6019 if test -n "$STRIP"; then
6020 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6021 $as_echo "$STRIP" >&6; }
6023 { $as_echo "$as_me:$LINENO: result: no" >&5
6024 $as_echo "no" >&6; }
6029 if test -z "$ac_cv_prog_STRIP"; then
6031 # Extract the first word of "strip", so it can be a program name with args.
6032 set dummy strip; ac_word=$2
6033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6036 $as_echo_n "(cached) " >&6
6038 if test -n "$ac_ct_STRIP"; then
6039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_ac_ct_STRIP="strip"
6049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6059 if test -n "$ac_ct_STRIP"; then
6060 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6061 $as_echo "$ac_ct_STRIP" >&6; }
6063 { $as_echo "$as_me:$LINENO: result: no" >&5
6064 $as_echo "no" >&6; }
6067 if test "x$ac_ct_STRIP" = x; then
6070 case $cross_compiling:$ac_tool_warned in
6072 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6079 STRIP="$ac_cv_prog_STRIP"
6084 old_CFLAGS="$CFLAGS"
6086 # Set sane defaults for various variables
6087 test -z "$AR" && AR=ar
6088 test -z "$AR_FLAGS" && AR_FLAGS=cru
6089 test -z "$AS" && AS=as
6090 test -z "$CC" && CC=cc
6091 test -z "$LTCC" && LTCC=$CC
6092 test -z "$DLLTOOL" && DLLTOOL=dlltool
6093 test -z "$LD" && LD=ld
6094 test -z "$LN_S" && LN_S="ln -s"
6095 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6096 test -z "$NM" && NM=nm
6097 test -z "$SED" && SED=sed
6098 test -z "$OBJDUMP" && OBJDUMP=objdump
6099 test -z "$RANLIB" && RANLIB=:
6100 test -z "$STRIP" && STRIP=:
6101 test -z "$ac_objext" && ac_objext=o
6103 # Determine commands to create old-style static archives.
6104 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6105 old_postinstall_cmds='chmod 644 $oldlib'
6106 old_postuninstall_cmds=
6108 if test -n "$RANLIB"; then
6111 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6114 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6117 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6120 # Only perform the check for file, if the check method requires it
6121 case $deplibs_check_method in
6123 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6124 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6125 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6126 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6127 $as_echo_n "(cached) " >&6
6131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6134 lt_save_MAGIC_CMD="$MAGIC_CMD"
6135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6137 for ac_dir in $ac_dummy; do
6139 test -z "$ac_dir" && ac_dir=.
6140 if test -f $ac_dir/${ac_tool_prefix}file; then
6141 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6142 if test -n "$file_magic_test_file"; then
6143 case $deplibs_check_method in
6145 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6148 $EGREP "$file_magic_regex" > /dev/null; then
6153 *** Warning: the command libtool uses to detect shared libraries,
6154 *** $file_magic_cmd, produces output that libtool cannot recognize.
6155 *** The result is that libtool may fail to recognize shared libraries
6156 *** as such. This will affect the creation of libtool libraries that
6157 *** depend on shared libraries, but programs linked with such libtool
6158 *** libraries will work regardless of this problem. Nevertheless, you
6159 *** may want to report the problem to your system manager and/or to
6160 *** bug-libtool@gnu.org
6170 MAGIC_CMD="$lt_save_MAGIC_CMD"
6175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6176 if test -n "$MAGIC_CMD"; then
6177 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6178 $as_echo "$MAGIC_CMD" >&6; }
6180 { $as_echo "$as_me:$LINENO: result: no" >&5
6181 $as_echo "no" >&6; }
6184 if test -z "$lt_cv_path_MAGIC_CMD"; then
6185 if test -n "$ac_tool_prefix"; then
6186 { $as_echo "$as_me:$LINENO: checking for file" >&5
6187 $as_echo_n "checking for file... " >&6; }
6188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6189 $as_echo_n "(cached) " >&6
6193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6196 lt_save_MAGIC_CMD="$MAGIC_CMD"
6197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6199 for ac_dir in $ac_dummy; do
6201 test -z "$ac_dir" && ac_dir=.
6202 if test -f $ac_dir/file; then
6203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6204 if test -n "$file_magic_test_file"; then
6205 case $deplibs_check_method in
6207 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6210 $EGREP "$file_magic_regex" > /dev/null; then
6215 *** Warning: the command libtool uses to detect shared libraries,
6216 *** $file_magic_cmd, produces output that libtool cannot recognize.
6217 *** The result is that libtool may fail to recognize shared libraries
6218 *** as such. This will affect the creation of libtool libraries that
6219 *** depend on shared libraries, but programs linked with such libtool
6220 *** libraries will work regardless of this problem. Nevertheless, you
6221 *** may want to report the problem to your system manager and/or to
6222 *** bug-libtool@gnu.org
6232 MAGIC_CMD="$lt_save_MAGIC_CMD"
6237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6238 if test -n "$MAGIC_CMD"; then
6239 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6240 $as_echo "$MAGIC_CMD" >&6; }
6242 { $as_echo "$as_me:$LINENO: result: no" >&5
6243 $as_echo "no" >&6; }
6258 # Check whether --enable-libtool-lock was given.
6259 if test "${enable_libtool_lock+set}" = set; then
6260 enableval=$enable_libtool_lock;
6263 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6266 # Check whether --with-pic was given.
6267 if test "${with_pic+set}" = set; then
6268 withval=$with_pic; pic_mode="$withval"
6273 test -z "$pic_mode" && pic_mode=default
6275 # Use C for the default configuration in the libtool script
6279 ac_cpp='$CPP $CPPFLAGS'
6280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6285 # Source file extension for C test sources.
6288 # Object file extension for compiled C test sources.
6292 # Code to be used in simple compile tests
6293 lt_simple_compile_test_code="int some_variable = 0;\n"
6295 # Code to be used in simple link tests
6296 lt_simple_link_test_code='int main(){return(0);}\n'
6299 # If no C compiler was specified, use CC.
6302 # Allow CC to be a program name with arguments.
6307 # Check for any special shared library compilation flags.
6310 if test "$GCC" = no; then
6313 lt_prog_cc_shlib='-belf'
6317 if test -n "$lt_prog_cc_shlib"; then
6318 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6319 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6320 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6322 { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6323 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6324 lt_cv_prog_cc_can_build_shared=no
6330 # Check to make sure the static flag actually works.
6332 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6333 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6334 if test "${lt_prog_compiler_static_works+set}" = set; then
6335 $as_echo_n "(cached) " >&6
6337 lt_prog_compiler_static_works=no
6338 save_LDFLAGS="$LDFLAGS"
6339 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6340 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6342 # The compiler can only warn and ignore the option if not recognized
6343 # So say no if there are warnings
6344 if test -s conftest.err; then
6345 # Append any errors to the config.log.
6346 cat conftest.err 1>&5
6348 lt_prog_compiler_static_works=yes
6352 LDFLAGS="$save_LDFLAGS"
6355 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6356 $as_echo "$lt_prog_compiler_static_works" >&6; }
6358 if test x"$lt_prog_compiler_static_works" = xyes; then
6361 lt_prog_compiler_static=
6367 ## There is no encapsulation within the following macros, do not change
6368 ## the running order or otherwise move them around unless you know exactly
6369 ## what you are doing...
6371 lt_prog_compiler_no_builtin_flag=
6373 if test "$GCC" = yes; then
6374 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6377 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6378 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6380 $as_echo_n "(cached) " >&6
6382 lt_cv_prog_compiler_rtti_exceptions=no
6383 ac_outfile=conftest.$ac_objext
6384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6385 lt_compiler_flag="-fno-rtti -fno-exceptions"
6386 # Insert the option either (1) after the last *FLAGS variable, or
6387 # (2) before a word containing "conftest.", or (3) at the end.
6388 # Note that $ac_compile itself does not contain backslashes and begins
6389 # with a dollar sign (not a hyphen), so the echo should work correctly.
6390 # The option is referenced via a variable to avoid confusing sed.
6391 lt_compile=`echo "$ac_compile" | $SED \
6392 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6394 -e 's:$: $lt_compiler_flag:'`
6395 (eval echo "\"\$as_me:6395: $lt_compile\"" >&5)
6396 (eval "$lt_compile" 2>conftest.err)
6398 cat conftest.err >&5
6399 echo "$as_me:6399: \$? = $ac_status" >&5
6400 if (exit $ac_status) && test -s "$ac_outfile"; then
6401 # The compiler can only warn and ignore the option if not recognized
6402 # So say no if there are warnings
6403 if test ! -s conftest.err; then
6404 lt_cv_prog_compiler_rtti_exceptions=yes
6410 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6411 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6413 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6414 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6421 lt_prog_compiler_wl=
6422 lt_prog_compiler_pic=
6423 lt_prog_compiler_static=
6425 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6426 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6428 if test "$GCC" = yes; then
6429 lt_prog_compiler_wl='-Wl,'
6430 lt_prog_compiler_static='-static'
6434 # All AIX code is PIC.
6435 if test "$host_cpu" = ia64; then
6436 # AIX 5 now supports IA64 processor
6437 lt_prog_compiler_static='-Bstatic'
6442 # FIXME: we need at least 68020 code to build shared libraries, but
6443 # adding the `-m68020' flag to GCC prevents building anything better,
6445 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6448 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6449 # PIC is the default for these OSes.
6452 mingw* | pw32* | os2*)
6453 # This hack is so that the source file can tell whether it is being
6454 # built for inclusion in a dll (and should export symbols for example).
6455 lt_prog_compiler_pic='-DDLL_EXPORT'
6458 darwin* | rhapsody*)
6459 # PIC is the default on this platform
6460 # Common symbols not allowed in MH_DYLIB files
6461 lt_prog_compiler_pic='-fno-common'
6465 # Just because we use GCC doesn't mean we suddenly get shared libraries
6466 # on systems that don't support them.
6467 lt_prog_compiler_can_build_shared=no
6472 if test -d /usr/nec; then
6473 lt_prog_compiler_pic=-Kconform_pic
6478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6485 lt_prog_compiler_pic='-fPIC'
6491 lt_prog_compiler_pic='-fPIC'
6495 # PORTME Check for flag to pass linker flags through the system compiler.
6498 lt_prog_compiler_wl='-Wl,'
6499 if test "$host_cpu" = ia64; then
6500 # AIX 5 now supports IA64 processor
6501 lt_prog_compiler_static='-Bstatic'
6503 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6507 mingw* | pw32* | os2*)
6508 # This hack is so that the source file can tell whether it is being
6509 # built for inclusion in a dll (and should export symbols for example).
6510 lt_prog_compiler_pic='-DDLL_EXPORT'
6513 hpux9* | hpux10* | hpux11*)
6514 lt_prog_compiler_wl='-Wl,'
6515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6522 lt_prog_compiler_pic='+Z'
6525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6526 lt_prog_compiler_static='${wl}-a ${wl}archive'
6529 irix5* | irix6* | nonstopux*)
6530 lt_prog_compiler_wl='-Wl,'
6531 # PIC (with -KPIC) is the default.
6532 lt_prog_compiler_static='-non_shared'
6536 lt_prog_compiler_pic='-KPIC'
6537 lt_prog_compiler_static='-Bstatic'
6543 lt_prog_compiler_wl='-Wl,'
6544 lt_prog_compiler_pic='-KPIC'
6545 lt_prog_compiler_static='-static'
6548 lt_prog_compiler_wl='-Wl,'
6549 # All Alpha code is PIC.
6550 lt_prog_compiler_static='-non_shared'
6555 osf3* | osf4* | osf5*)
6556 lt_prog_compiler_wl='-Wl,'
6557 # All OSF/1 code is PIC.
6558 lt_prog_compiler_static='-non_shared'
6562 lt_prog_compiler_pic='-Kpic'
6563 lt_prog_compiler_static='-dn'
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-KPIC'
6569 lt_prog_compiler_static='-Bstatic'
6573 lt_prog_compiler_wl='-Qoption ld '
6574 lt_prog_compiler_pic='-PIC'
6575 lt_prog_compiler_static='-Bstatic'
6578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6579 lt_prog_compiler_wl='-Wl,'
6580 lt_prog_compiler_pic='-KPIC'
6581 lt_prog_compiler_static='-Bstatic'
6585 if test -d /usr/nec ;then
6586 lt_prog_compiler_pic='-Kconform_pic'
6587 lt_prog_compiler_static='-Bstatic'
6592 lt_prog_compiler_pic='-pic'
6593 lt_prog_compiler_static='-Bstatic'
6597 lt_prog_compiler_can_build_shared=no
6602 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6603 $as_echo "$lt_prog_compiler_pic" >&6; }
6606 # Check to make sure the PIC flag actually works.
6608 if test -n "$lt_prog_compiler_pic"; then
6610 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6611 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6612 if test "${lt_prog_compiler_pic_works+set}" = set; then
6613 $as_echo_n "(cached) " >&6
6615 lt_prog_compiler_pic_works=no
6616 ac_outfile=conftest.$ac_objext
6617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6618 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6619 # Insert the option either (1) after the last *FLAGS variable, or
6620 # (2) before a word containing "conftest.", or (3) at the end.
6621 # Note that $ac_compile itself does not contain backslashes and begins
6622 # with a dollar sign (not a hyphen), so the echo should work correctly.
6623 # The option is referenced via a variable to avoid confusing sed.
6624 lt_compile=`echo "$ac_compile" | $SED \
6625 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6627 -e 's:$: $lt_compiler_flag:'`
6628 (eval echo "\"\$as_me:6628: $lt_compile\"" >&5)
6629 (eval "$lt_compile" 2>conftest.err)
6631 cat conftest.err >&5
6632 echo "$as_me:6632: \$? = $ac_status" >&5
6633 if (exit $ac_status) && test -s "$ac_outfile"; then
6634 # The compiler can only warn and ignore the option if not recognized
6635 # So say no if there are warnings
6636 if test ! -s conftest.err; then
6637 lt_prog_compiler_pic_works=yes
6643 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6644 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6646 if test x"$lt_prog_compiler_pic_works" = xyes; then
6647 case $lt_prog_compiler_pic in
6649 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6652 lt_prog_compiler_pic=
6653 lt_prog_compiler_can_build_shared=no
6658 # For platforms which do not support PIC, -DPIC is meaningless:
6660 lt_prog_compiler_pic=
6663 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6667 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6669 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6670 $as_echo_n "(cached) " >&6
6672 lt_cv_prog_compiler_c_o=no
6673 $rm -r conftest 2>/dev/null
6677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6679 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6680 # that will create temporary files in the current directory regardless of
6681 # the output directory. Thus, making CWD read-only will cause this test
6682 # to fail, enabling locking or at least warning the user not to do parallel
6686 lt_compiler_flag="-o out/conftest2.$ac_objext"
6687 # Insert the option either (1) after the last *FLAGS variable, or
6688 # (2) before a word containing "conftest.", or (3) at the end.
6689 # Note that $ac_compile itself does not contain backslashes and begins
6690 # with a dollar sign (not a hyphen), so the echo should work correctly.
6691 lt_compile=`echo "$ac_compile" | $SED \
6692 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6694 -e 's:$: $lt_compiler_flag:'`
6695 (eval echo "\"\$as_me:6695: $lt_compile\"" >&5)
6696 (eval "$lt_compile" 2>out/conftest.err)
6698 cat out/conftest.err >&5
6699 echo "$as_me:6699: \$? = $ac_status" >&5
6700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6702 # The compiler can only warn and ignore the option if not recognized
6703 # So say no if there are warnings
6704 if test ! -s out/conftest.err; then
6705 lt_cv_prog_compiler_c_o=yes
6710 # SGI C++ compiler will create directory out/ii_files/ for
6711 # template instantiation
6712 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6713 $rm out/* && rmdir out
6719 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6720 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6723 hard_links="nottested"
6724 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6725 # do not overwrite the value of need_locks provided by the user
6726 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6727 $as_echo_n "checking if we can lock with hard links... " >&6; }
6730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6732 ln conftest.a conftest.b 2>&5 || hard_links=no
6733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6734 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
6735 $as_echo "$hard_links" >&6; }
6736 if test "$hard_links" = no; then
6737 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6738 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6745 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6746 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6749 allow_undefined_flag=
6750 enable_shared_with_static_runtimes=no
6752 archive_expsym_cmds=
6753 old_archive_From_new_cmds=
6754 old_archive_from_expsyms_cmds=
6755 export_dynamic_flag_spec=
6756 whole_archive_flag_spec=
6757 thread_safe_flag_spec=
6758 hardcode_libdir_flag_spec=
6759 hardcode_libdir_flag_spec_ld=
6760 hardcode_libdir_separator=
6763 hardcode_shlibpath_var=unsupported
6764 link_all_deplibs=unknown
6765 hardcode_automatic=no
6768 always_export_symbols=no
6769 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6770 # include_expsyms should be a list of space-separated symbols to be *always*
6771 # included in the symbol list
6773 # exclude_expsyms can be an extended regexp of symbols to exclude
6774 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6775 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6776 # as well as any symbol that contains `d'.
6777 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6778 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6779 # platforms (ab)use it in PIC code, but their linkers get confused if
6780 # the symbol is explicitly referenced. Since portable code cannot
6781 # rely on this symbol name, it's probably fine to never include it in
6782 # preloaded symbol tables.
6783 extract_expsyms_cmds=
6786 cygwin* | mingw* | pw32*)
6787 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6788 # When not using gcc, we currently assume that we are using
6789 # Microsoft Visual C++.
6790 if test "$GCC" != yes; then
6800 if test "$with_gnu_ld" = yes; then
6801 # If archive_cmds runs LD, not CC, wlarc should be empty
6804 # See if GNU ld supports shared libraries.
6806 aix3* | aix4* | aix5*)
6807 # On AIX/PPC, the GNU linker is very broken
6808 if test "$host_cpu" != ia64; then
6812 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6813 *** to be unable to reliably create shared libraries on AIX.
6814 *** Therefore, libtool is disabling shared libraries support. If you
6815 *** really care for shared libraries, you may want to modify your PATH
6816 *** so that a non-GNU linker is found, and then restart.
6823 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)'
6824 hardcode_libdir_flag_spec='-L$libdir'
6825 hardcode_minus_L=yes
6827 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6828 # that the semantics of dynamic libraries on AmigaOS, at least up
6829 # to version 4, is to share data among multiple programs linked
6830 # with the same dynamic library. Since this doesn't match the
6831 # behavior of shared libraries on other platforms, we can't use
6837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6838 allow_undefined_flag=unsupported
6839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6840 # support --undefined. This deserves some investigation. FIXME
6841 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6847 cygwin* | mingw* | pw32*)
6848 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6849 # as there is no search path for DLLs.
6850 hardcode_libdir_flag_spec='-L$libdir'
6851 allow_undefined_flag=unsupported
6852 always_export_symbols=no
6853 enable_shared_with_static_runtimes=yes
6854 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6856 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6858 # If the export-symbols file already is a .def file (1st line
6859 # is EXPORTS), use it as is; otherwise, prepend...
6860 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6861 cp $export_symbols $output_objdir/$soname.def;
6863 echo EXPORTS > $output_objdir/$soname.def;
6864 cat $export_symbols >> $output_objdir/$soname.def;
6866 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6874 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6883 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6887 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6888 *** create shared libraries on Solaris systems. Therefore, libtool
6889 *** is disabling shared libraries support. We urge you to upgrade GNU
6890 *** binutils to release 2.9.1 or newer. Another option is to modify
6891 *** your PATH or compiler configuration so that the native linker is
6892 *** used, and then restart.
6895 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6897 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6904 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6907 hardcode_shlibpath_var=no
6911 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6912 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6913 archive_cmds="$tmp_archive_cmds"
6914 supports_anon_versioning=no
6915 case `$LD -v 2>/dev/null` in
6916 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6917 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6918 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6919 *\ 2.11.*) ;; # other 2.11 versions
6920 *) supports_anon_versioning=yes ;;
6922 if test $supports_anon_versioning = yes; then
6923 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6925 $echo "local: *; };" >> $output_objdir/$libname.ver~
6926 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6928 archive_expsym_cmds="$tmp_archive_cmds"
6936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6945 if test "$ld_shlibs" = yes; then
6946 runpath_var=LD_RUN_PATH
6947 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6948 export_dynamic_flag_spec='${wl}--export-dynamic'
6949 # ancient GNU ld didn't support --whole-archive et. al.
6950 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6951 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6953 whole_archive_flag_spec=
6957 # PORTME fill in a description of your system's linker (not GNU ld)
6960 allow_undefined_flag=unsupported
6961 always_export_symbols=yes
6962 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'
6963 # Note: this linker hardcodes the directories in LIBPATH if there
6964 # are no directories specified by -L.
6965 hardcode_minus_L=yes
6966 if test "$GCC" = yes && test -z "$link_static_flag"; then
6967 # Neither direct hardcoding nor static linking is supported with a
6969 hardcode_direct=unsupported
6974 if test "$host_cpu" = ia64; then
6975 # On IA64, the linker does run time linking by default, so we don't
6976 # have to do anything special.
6977 aix_use_runtimelinking=no
6978 exp_sym_flag='-Bexport'
6981 # If we're using GNU nm, then we don't want the "-C" option.
6982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6983 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6984 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'
6986 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'
6988 aix_use_runtimelinking=no
6990 # Test if we are trying to use run time linking or normal
6991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6992 # need to do runtime linking.
6993 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6994 for ld_flag in $LDFLAGS; do
6995 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6996 aix_use_runtimelinking=yes
7002 exp_sym_flag='-bexport'
7003 no_entry_flag='-bnoentry'
7006 # When large executables or shared objects are built, AIX ld can
7007 # have problems creating the table of contents. If linking a library
7008 # or program results in "error TOC overflow" add -mminimal-toc to
7009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7014 hardcode_libdir_separator=':'
7015 link_all_deplibs=yes
7017 if test "$GCC" = yes; then
7018 case $host_os in aix4.012|aix4.012.*)
7019 # We only want to do this on AIX 4.2 and lower, the check
7020 # below for broken collect2 doesn't work under 4.3+
7021 collect2name=`${CC} -print-prog-name=collect2`
7022 if test -f "$collect2name" && \
7023 strings "$collect2name" | grep resolve_lib_name >/dev/null
7025 # We have reworked collect2
7028 # We have old collect2
7029 hardcode_direct=unsupported
7030 # It fails to find uninstalled libraries when the uninstalled
7031 # path is not listed in the libpath. Setting hardcode_minus_L
7032 # to unsupported forces relinking
7033 hardcode_minus_L=yes
7034 hardcode_libdir_flag_spec='-L$libdir'
7035 hardcode_libdir_separator=
7038 shared_flag='-shared'
7041 if test "$host_cpu" = ia64; then
7042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7043 # chokes on -Wl,-G. The following line is correct:
7046 if test "$aix_use_runtimelinking" = yes; then
7047 shared_flag='${wl}-G'
7049 shared_flag='${wl}-bM:SRE'
7054 # It seems that -bexpall does not export symbols beginning with
7055 # underscore (_), so it is better to generate a list of symbols to export.
7056 always_export_symbols=yes
7057 if test "$aix_use_runtimelinking" = yes; then
7058 # Warning - without using the other runtime loading flags (-brtl),
7059 # -berok will link without error, but may produce a broken library.
7060 allow_undefined_flag='-berok'
7061 # Determine the default libpath from the value encoded in an empty executable.
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (ac_try="$ac_link"
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7084 $as_echo "$ac_try_echo") >&5
7085 (eval "$ac_link") 2>conftest.er1
7087 grep -v '^ *+' conftest.er1 >conftest.err
7089 cat conftest.err >&5
7090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest$ac_exeext && {
7095 test "$cross_compiling" = yes ||
7096 $as_test_x conftest$ac_exeext
7099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7101 # Check for a 64-bit object if we didn't find anything.
7102 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; }
7105 $as_echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7111 rm -rf conftest.dSYM
7112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7113 conftest$ac_exeext conftest.$ac_ext
7114 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7116 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7117 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7119 if test "$host_cpu" = ia64; then
7120 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7121 allow_undefined_flag="-z nodefs"
7122 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7124 # Determine the default libpath from the value encoded in an empty executable.
7125 cat >conftest.$ac_ext <<_ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (ac_try="$ac_link"
7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7147 $as_echo "$ac_try_echo") >&5
7148 (eval "$ac_link") 2>conftest.er1
7150 grep -v '^ *+' conftest.er1 >conftest.err
7152 cat conftest.err >&5
7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest$ac_exeext && {
7158 test "$cross_compiling" = yes ||
7159 $as_test_x conftest$ac_exeext
7162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7164 # Check for a 64-bit object if we didn't find anything.
7165 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; }
7168 $as_echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7174 rm -rf conftest.dSYM
7175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7176 conftest$ac_exeext conftest.$ac_ext
7177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7179 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7180 # Warning - without using the other run time loading flags,
7181 # -berok will link without error, but may produce a broken library.
7182 no_undefined_flag=' ${wl}-bernotok'
7183 allow_undefined_flag=' ${wl}-berok'
7184 # -bexpall does not export symbols beginning with underscore (_)
7185 always_export_symbols=yes
7186 # Exported symbols can be pulled into shared objects from archives
7187 whole_archive_flag_spec=' '
7188 archive_cmds_need_lc=yes
7189 # This is similar to how AIX traditionally builds it's shared libraries.
7190 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7196 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)'
7197 hardcode_libdir_flag_spec='-L$libdir'
7198 hardcode_minus_L=yes
7199 # see comment about different semantics on the GNU ld section
7204 export_dynamic_flag_spec=-rdynamic
7207 cygwin* | mingw* | pw32*)
7208 # When not using gcc, we currently assume that we are using
7209 # Microsoft Visual C++.
7210 # hardcode_libdir_flag_spec is actually meaningless, as there is
7211 # no search path for DLLs.
7212 hardcode_libdir_flag_spec=' '
7213 allow_undefined_flag=unsupported
7214 # Tell ltmain to make .lib files, not .a files.
7216 # Tell ltmain to make .dll files, not .so files.
7218 # FIXME: Setting linknames here is a bad hack.
7219 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7220 # The linker will automatically build a .lib file if we build a DLL.
7221 old_archive_From_new_cmds='true'
7222 # FIXME: Should let the user specify the lib program.
7223 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7224 fix_srcfile_path='`cygpath -w "$srcfile"`'
7225 enable_shared_with_static_runtimes=yes
7228 darwin* | rhapsody*)
7229 if test "$GXX" = yes ; then
7230 archive_cmds_need_lc=no
7232 rhapsody* | darwin1.[012])
7233 allow_undefined_flag='-undefined suppress'
7236 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7237 allow_undefined_flag='-flat_namespace -undefined suppress'
7239 case ${MACOSX_DEPLOYMENT_TARGET} in
7241 allow_undefined_flag='-flat_namespace -undefined suppress'
7244 allow_undefined_flag='-undefined dynamic_lookup'
7250 lt_int_apple_cc_single_mod=no
7251 output_verbose_link_cmd='echo'
7252 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7253 lt_int_apple_cc_single_mod=yes
7255 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7256 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7258 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7260 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7261 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7262 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7263 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7265 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7267 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}'
7269 hardcode_automatic=yes
7270 hardcode_shlibpath_var=unsupported
7271 whole_archive_flag_spec='-all_load $convenience'
7272 link_all_deplibs=yes
7279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280 hardcode_libdir_flag_spec='-L$libdir'
7281 hardcode_shlibpath_var=no
7288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7289 # support. Future versions do this automatically, but an explicit c++rt0.o
7290 # does not break anything, and helps significantly (at the cost of a little
7293 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7294 hardcode_libdir_flag_spec='-R$libdir'
7296 hardcode_shlibpath_var=no
7299 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7303 hardcode_minus_L=yes
7304 hardcode_shlibpath_var=no
7307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7308 freebsd* | kfreebsd*-gnu)
7309 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7310 hardcode_libdir_flag_spec='-R$libdir'
7312 hardcode_shlibpath_var=no
7316 if test "$GCC" = yes; then
7317 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'
7319 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'
7321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7322 hardcode_libdir_separator=:
7325 # hardcode_minus_L: Not really in the search PATH,
7326 # but as the default location of the library.
7327 hardcode_minus_L=yes
7328 export_dynamic_flag_spec='${wl}-E'
7332 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7335 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7344 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7347 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7351 if test "$with_gnu_ld" = no; then
7354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7355 hardcode_libdir_flag_spec_ld='+b $libdir'
7356 hardcode_libdir_separator=:
7358 hardcode_shlibpath_var=no
7361 hardcode_libdir_flag_spec='-L$libdir'
7363 hardcode_shlibpath_var=no
7365 # hardcode_minus_L: Not really in the search PATH,
7366 # but as the default location of the library.
7367 hardcode_minus_L=yes
7370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7371 hardcode_libdir_separator=:
7373 export_dynamic_flag_spec='${wl}-E'
7375 # hardcode_minus_L: Not really in the search PATH,
7376 # but as the default location of the library.
7377 hardcode_minus_L=yes
7383 irix5* | irix6* | nonstopux*)
7384 if test "$GCC" = yes; then
7385 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'
7387 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'
7388 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7391 hardcode_libdir_separator=:
7392 link_all_deplibs=yes
7396 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7399 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7401 hardcode_libdir_flag_spec='-R$libdir'
7403 hardcode_shlibpath_var=no
7407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7410 hardcode_libdir_separator=:
7411 hardcode_shlibpath_var=no
7416 hardcode_shlibpath_var=no
7417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7419 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7420 export_dynamic_flag_spec='${wl}-E'
7423 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7425 hardcode_libdir_flag_spec='-R$libdir'
7428 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7436 hardcode_libdir_flag_spec='-L$libdir'
7437 hardcode_minus_L=yes
7438 allow_undefined_flag=unsupported
7439 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'
7440 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7444 if test "$GCC" = yes; then
7445 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7446 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'
7448 allow_undefined_flag=' -expect_unresolved \*'
7449 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'
7451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7452 hardcode_libdir_separator=:
7455 osf4* | osf5*) # as osf3* with the addition of -msym flag
7456 if test "$GCC" = yes; then
7457 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7458 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'
7459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7461 allow_undefined_flag=' -expect_unresolved \*'
7462 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'
7463 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7464 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7466 # Both c and cxx compiler support -rpath directly
7467 hardcode_libdir_flag_spec='-rpath $libdir'
7469 hardcode_libdir_separator=:
7473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7474 hardcode_shlibpath_var=no
7475 export_dynamic_flag_spec='${wl}-Bexport'
7476 runpath_var=LD_RUN_PATH
7477 hardcode_runpath_var=yes
7481 no_undefined_flag=' -z text'
7482 if test "$GCC" = yes; then
7483 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7484 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7485 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7487 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7488 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7491 hardcode_libdir_flag_spec='-R$libdir'
7492 hardcode_shlibpath_var=no
7494 solaris2.[0-5] | solaris2.[0-5].*) ;;
7495 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7498 link_all_deplibs=yes
7502 if test "x$host_vendor" = xsequent; then
7503 # Use $CC to link under sequent, because it throws in some extra .o
7504 # files that make .init and .fini sections work.
7505 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7509 hardcode_libdir_flag_spec='-L$libdir'
7511 hardcode_minus_L=yes
7512 hardcode_shlibpath_var=no
7516 case $host_vendor in
7518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519 hardcode_direct=yes # is this really true???
7522 ## LD is ld it makes a PLAMLIB
7523 ## CC just makes a GrossModule.
7524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7525 reload_cmds='$CC -r -o $output$reload_objs'
7529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7533 runpath_var='LD_RUN_PATH'
7534 hardcode_shlibpath_var=no
7538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539 hardcode_shlibpath_var=no
7540 export_dynamic_flag_spec='-Bexport'
7544 if test -d /usr/nec; then
7545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_shlibpath_var=no
7547 runpath_var=LD_RUN_PATH
7548 hardcode_runpath_var=yes
7554 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7557 hardcode_shlibpath_var=no
7558 hardcode_runpath_var=yes
7559 runpath_var=LD_RUN_PATH
7562 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7563 no_undefined_flag='${wl}-z ${wl}text'
7564 if test "$GCC" = yes; then
7565 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7567 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7569 runpath_var='LD_RUN_PATH'
7570 hardcode_shlibpath_var=no
7574 no_undefined_flag=' -z text'
7575 # $CC -shared without GNU ld will not create a library from C++
7576 # object files and a static libstdc++, better avoid it by now
7577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7578 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7580 hardcode_libdir_flag_spec=
7581 hardcode_shlibpath_var=no
7582 runpath_var='LD_RUN_PATH'
7586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587 hardcode_libdir_flag_spec='-L$libdir'
7588 hardcode_shlibpath_var=no
7597 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7598 $as_echo "$ld_shlibs" >&6; }
7599 test "$ld_shlibs" = no && can_build_shared=no
7601 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7602 if test "$GCC" = yes; then
7603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7607 # Do we need to explicitly link libc?
7609 case "x$archive_cmds_need_lc" in
7611 # Assume -lc should be added
7612 archive_cmds_need_lc=yes
7614 if test "$enable_shared" = yes && test "$GCC" = yes; then
7615 case $archive_cmds in
7617 # FIXME: we may have to deal with multi-command sequences.
7620 # Test whether the compiler implicitly links with -lc since on some
7621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7622 # to ld, don't add -lc before -lgcc.
7623 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7624 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>&5
7631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } 2>conftest.err; then
7635 libobjs=conftest.$ac_objext
7637 wl=$lt_prog_compiler_wl
7643 lt_save_allow_undefined_flag=$allow_undefined_flag
7644 allow_undefined_flag=
7645 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7646 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }
7651 archive_cmds_need_lc=no
7653 archive_cmds_need_lc=yes
7655 allow_undefined_flag=$lt_save_allow_undefined_flag
7657 cat conftest.err 1>&5
7660 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7661 $as_echo "$archive_cmds_need_lc" >&6; }
7668 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7671 libname_spec='lib$name'
7679 shlibpath_overrides_runpath=unknown
7681 dynamic_linker="$host_os ld.so"
7682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7683 if test "$GCC" = yes; then
7684 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7685 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7686 # if the path contains ";" then we assume it to be the separator
7687 # otherwise default to the standard path separator (i.e. ":") - it is
7688 # assumed that no part of a normal pathname contains ";" but that should
7689 # okay in the real world where ";" in dirpaths is itself problematic.
7690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7697 need_lib_prefix=unknown
7698 hardcode_into_libs=no
7700 # when you set need_version to no, make sure it does not cause -set_version
7701 # flags to be left without arguments
7702 need_version=unknown
7707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7708 shlibpath_var=LIBPATH
7710 # AIX 3 has no versioning support, so we append a major version to the name.
7711 soname_spec='${libname}${release}${shared_ext}$major'
7718 hardcode_into_libs=yes
7719 if test "$host_cpu" = ia64; then
7720 # AIX 5 supports IA64
7721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7722 shlibpath_var=LD_LIBRARY_PATH
7724 # With GCC up to 2.95.x, collect2 would create an import file
7725 # for dependence libraries. The import file would start with
7726 # the line `#! .'. This would cause the generated library to
7727 # depend on `.', always an invalid library. This was fixed in
7728 # development snapshots of GCC prior to 3.0.
7730 aix4 | aix4.[01] | aix4.[01].*)
7731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7733 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7741 # soname into executable. Probably we can add versioning support to
7742 # collect2, so additional links can be useful in future.
7743 if test "$aix_use_runtimelinking" = yes; then
7744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7745 # instead of lib<name>.a to let people know that these are not
7746 # typical AIX shared libraries.
7747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7749 # We preserve .a as extension for shared libraries through AIX4.2
7750 # and later when we are not doing run time linking.
7751 library_names_spec='${libname}${release}.a $libname.a'
7752 soname_spec='${libname}${release}${shared_ext}$major'
7754 shlibpath_var=LIBPATH
7759 library_names_spec='$libname.ixlibrary $libname.a'
7760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7761 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'
7765 library_names_spec='${libname}${shared_ext}'
7766 dynamic_linker="$host_os ld.so"
7767 shlibpath_var=LIBRARY_PATH
7773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7774 soname_spec='${libname}${release}${shared_ext}$major'
7775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7776 shlibpath_var=LD_LIBRARY_PATH
7777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7779 # the default ld.so.conf also contains /usr/contrib/lib and
7780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7781 # libtool to hard-code these into programs
7784 cygwin* | mingw* | pw32*)
7785 version_type=windows
7790 case $GCC,$host_os in
7791 yes,cygwin* | yes,mingw* | yes,pw32*)
7792 library_names_spec='$libname.dll.a'
7793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7794 postinstall_cmds='base_file=`basename \${file}`~
7795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7796 dldir=$destdir/`dirname \$dlpath`~
7797 test -d \$dldir || mkdir -p \$dldir~
7798 $install_prog $dir/$dlname \$dldir/$dlname'
7799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7800 dlpath=$dir/\$dldll~
7802 shlibpath_overrides_runpath=yes
7806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7807 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7808 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7811 # MinGW DLLs use traditional 'lib' prefix
7812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7814 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7815 # It is most probably a Windows format PATH printed by
7816 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7817 # path with ; separators, and with drive letters. We can handle the
7818 # drive letters (cygwin fileutils understands them), so leave them,
7819 # especially as we might pass files found there to a mingw objdump,
7820 # which wouldn't understand a cygwinified path. Ahh.
7821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7827 # pw32 DLLs use 'pw' prefix rather than 'lib'
7828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7834 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7837 dynamic_linker='Win32 ld.exe'
7838 # FIXME: first we should search . and the directory the executable is in
7842 darwin* | rhapsody*)
7843 dynamic_linker="$host_os dyld"
7847 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7848 soname_spec='${libname}${release}${major}$shared_ext'
7849 shlibpath_overrides_runpath=yes
7850 shlibpath_var=DYLD_LIBRARY_PATH
7851 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7852 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7853 if test "$GCC" = yes; then
7854 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"`
7856 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7866 soname_spec='${libname}${release}${shared_ext}$major'
7867 shlibpath_var=LD_LIBRARY_PATH
7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7879 soname_spec='${libname}${release}${shared_ext}$major'
7880 shlibpath_var=LD_LIBRARY_PATH
7881 shlibpath_overrides_runpath=no
7882 hardcode_into_libs=yes
7883 dynamic_linker='GNU ld.so'
7887 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7888 version_type=freebsd-$objformat
7889 case $version_type in
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7900 shlibpath_var=LD_LIBRARY_PATH
7903 shlibpath_overrides_runpath=yes
7905 freebsd3.01* | freebsdelf3.01*)
7906 shlibpath_overrides_runpath=yes
7907 hardcode_into_libs=yes
7910 shlibpath_overrides_runpath=no
7911 hardcode_into_libs=yes
7920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7921 soname_spec='${libname}${release}${shared_ext}$major'
7922 shlibpath_var=LD_LIBRARY_PATH
7923 hardcode_into_libs=yes
7926 hpux9* | hpux10* | hpux11*)
7927 # Give a soname corresponding to the major version so that dld.sl refuses to
7928 # link against other versions.
7935 hardcode_into_libs=yes
7936 dynamic_linker="$host_os dld.so"
7937 shlibpath_var=LD_LIBRARY_PATH
7938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7940 soname_spec='${libname}${release}${shared_ext}$major'
7941 if test "X$HPUX_IA64_MODE" = X32; then
7942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7950 hardcode_into_libs=yes
7951 dynamic_linker="$host_os dld.sl"
7952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7955 soname_spec='${libname}${release}${shared_ext}$major'
7956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7961 dynamic_linker="$host_os dld.sl"
7962 shlibpath_var=SHLIB_PATH
7963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965 soname_spec='${libname}${release}${shared_ext}$major'
7968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7969 postinstall_cmds='chmod 555 $lib'
7972 irix5* | irix6* | nonstopux*)
7974 nonstopux*) version_type=nonstopux ;;
7976 if test "$lt_cv_prog_gnu_ld" = yes; then
7984 soname_spec='${libname}${release}${shared_ext}$major'
7985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7987 irix5* | nonstopux*)
7991 case $LD in # libtool.m4 will add one of these switches to LD
7992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7993 libsuff= shlibsuff= libmagic=32-bit;;
7994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7995 libsuff=32 shlibsuff=N32 libmagic=N32;;
7996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7998 *) libsuff= shlibsuff= libmagic=never-match;;
8002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8003 shlibpath_overrides_runpath=no
8004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8006 hardcode_into_libs=yes
8009 # No shared lib support for Linux oldld, aout, or coff.
8010 linux*oldld* | linux*aout* | linux*coff*)
8014 # This must be Linux ELF.
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 soname_spec='${libname}${release}${shared_ext}$major'
8021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8022 shlibpath_var=LD_LIBRARY_PATH
8023 shlibpath_overrides_runpath=no
8024 # This implies no fast_install, which is unacceptable.
8025 # Some rework will be needed to allow for fast_install
8026 # before this can be enabled.
8027 hardcode_into_libs=yes
8029 # We used to test for /lib/ld.so.1 and disable shared libraries on
8030 # powerpc, because MkLinux only supported shared libraries with the
8031 # GNU dynamic linker. Since this was broken with cross compilers,
8032 # most powerpc-linux boxes support dynamic linking these days and
8033 # people can always --disable-shared, the test was removed, and we
8034 # assume the GNU/Linux dynamic linker is in use.
8035 dynamic_linker='GNU/Linux ld.so'
8042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8045 dynamic_linker='NetBSD (a.out) ld.so'
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8048 soname_spec='${libname}${release}${shared_ext}$major'
8049 dynamic_linker='NetBSD ld.elf_so'
8051 shlibpath_var=LD_LIBRARY_PATH
8052 shlibpath_overrides_runpath=yes
8053 hardcode_into_libs=yes
8058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8059 shlibpath_var=LD_LIBRARY_PATH
8060 shlibpath_overrides_runpath=yes
8067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8068 soname_spec='${libname}${release}${shared_ext}$major'
8069 shlibpath_var=LD_LIBRARY_PATH
8070 shlibpath_overrides_runpath=yes
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8079 shlibpath_var=LD_LIBRARY_PATH
8080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8082 openbsd2.[89] | openbsd2.[89].*)
8083 shlibpath_overrides_runpath=no
8086 shlibpath_overrides_runpath=yes
8090 shlibpath_overrides_runpath=yes
8095 libname_spec='$name'
8098 library_names_spec='$libname${shared_ext} $libname.a'
8099 dynamic_linker='OS/2 ld.exe'
8100 shlibpath_var=LIBPATH
8103 osf3* | osf4* | osf5*)
8107 soname_spec='${libname}${release}${shared_ext}$major'
8108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8109 shlibpath_var=LD_LIBRARY_PATH
8110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8116 soname_spec='${libname}${release}${shared_ext}$major'
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118 shlibpath_var=LD_LIBRARY_PATH
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8126 soname_spec='${libname}${release}${shared_ext}$major'
8127 shlibpath_var=LD_LIBRARY_PATH
8128 shlibpath_overrides_runpath=yes
8129 hardcode_into_libs=yes
8130 # ldd complains unless libraries are executable
8131 postinstall_cmds='chmod +x $lib'
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8138 shlibpath_var=LD_LIBRARY_PATH
8139 shlibpath_overrides_runpath=yes
8140 if test "$with_gnu_ld" = yes; then
8146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8149 soname_spec='${libname}${release}${shared_ext}$major'
8150 shlibpath_var=LD_LIBRARY_PATH
8151 case $host_vendor in
8153 shlibpath_overrides_runpath=no
8155 export_dynamic_flag_spec='${wl}-Blargedynsym'
8156 runpath_var=LD_RUN_PATH
8164 shlibpath_overrides_runpath=no
8165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8171 if test -d /usr/nec ;then
8173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8174 soname_spec='$libname${shared_ext}.$major'
8175 shlibpath_var=LD_LIBRARY_PATH
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182 soname_spec='${libname}${release}${shared_ext}$major'
8183 shlibpath_var=LD_LIBRARY_PATH
8190 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8191 $as_echo "$dynamic_linker" >&6; }
8192 test "$dynamic_linker" = no && can_build_shared=no
8194 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8195 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8197 if test -n "$hardcode_libdir_flag_spec" || \
8198 test -n "$runpath_var " || \
8199 test "X$hardcode_automatic"="Xyes" ; then
8201 # We can hardcode non-existant directories.
8202 if test "$hardcode_direct" != no &&
8203 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8204 # have to relink, otherwise we might link with an installed library
8205 # when we should be linking with a yet-to-be-installed one
8206 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8207 test "$hardcode_minus_L" != no; then
8208 # Linking always hardcodes the temporary library directory.
8209 hardcode_action=relink
8211 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8212 hardcode_action=immediate
8215 # We cannot hardcode anything, or else we can only hardcode existing
8217 hardcode_action=unsupported
8219 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
8220 $as_echo "$hardcode_action" >&6; }
8222 if test "$hardcode_action" = relink; then
8223 # Fast installation is not supported
8224 enable_fast_install=no
8225 elif test "$shlibpath_overrides_runpath" = yes ||
8226 test "$enable_shared" = no; then
8227 # Fast installation is not necessary
8228 enable_fast_install=needless
8233 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8234 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8235 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8236 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8237 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8238 { $as_echo "$as_me:$LINENO: result: yes" >&5
8239 $as_echo "yes" >&6; }
8241 # FIXME - insert some real tests, host_os isn't really good enough
8244 if test -n "$STRIP" ; then
8245 striplib="$STRIP -x"
8246 { $as_echo "$as_me:$LINENO: result: yes" >&5
8247 $as_echo "yes" >&6; }
8249 { $as_echo "$as_me:$LINENO: result: no" >&5
8250 $as_echo "no" >&6; }
8254 { $as_echo "$as_me:$LINENO: result: no" >&5
8255 $as_echo "no" >&6; }
8260 if test "x$enable_dlopen" != xyes; then
8261 enable_dlopen=unknown
8262 enable_dlopen_self=unknown
8263 enable_dlopen_self_static=unknown
8270 lt_cv_dlopen="load_add_on"
8272 lt_cv_dlopen_self=yes
8276 lt_cv_dlopen="LoadLibrary"
8281 lt_cv_dlopen="dlopen"
8286 # if libdl is installed we need to link against it
8287 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8290 $as_echo_n "(cached) " >&6
8292 ac_check_lib_save_LIBS=$LIBS
8294 cat >conftest.$ac_ext <<_ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8301 /* Override any GCC internal prototype to avoid an error.
8302 Use char because int might match the return type of a GCC
8303 builtin and then its argument prototype would still apply. */
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8323 $as_echo "$ac_try_echo") >&5
8324 (eval "$ac_link") 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } && {
8331 test -z "$ac_c_werror_flag" ||
8332 test ! -s conftest.err
8333 } && test -s conftest$ac_exeext && {
8334 test "$cross_compiling" = yes ||
8335 $as_test_x conftest$ac_exeext
8337 ac_cv_lib_dl_dlopen=yes
8339 $as_echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_cv_lib_dl_dlopen=no
8345 rm -rf conftest.dSYM
8346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8347 conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_lib_save_LIBS
8350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8351 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8352 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
8353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8358 lt_cv_dlopen_self=yes
8365 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
8366 $as_echo_n "checking for shl_load... " >&6; }
8367 if test "${ac_cv_func_shl_load+set}" = set; then
8368 $as_echo_n "(cached) " >&6
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8378 #define shl_load innocuous_shl_load
8380 /* System header to define __stub macros and hopefully few prototypes,
8381 which can conflict with char shl_load (); below.
8382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8383 <limits.h> exists even on freestanding compilers. */
8386 # include <limits.h>
8388 # include <assert.h>
8393 /* Override any GCC internal prototype to avoid an error.
8394 Use char because int might match the return type of a GCC
8395 builtin and then its argument prototype would still apply. */
8400 /* The GNU C library defines this for functions which it implements
8401 to always fail with ENOSYS. Some functions are actually named
8402 something starting with __ and the normal name is an alias. */
8403 #if defined __stub_shl_load || defined __stub___shl_load
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (ac_try="$ac_link"
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8422 $as_echo "$ac_try_echo") >&5
8423 (eval "$ac_link") 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest$ac_exeext && {
8433 test "$cross_compiling" = yes ||
8434 $as_test_x conftest$ac_exeext
8436 ac_cv_func_shl_load=yes
8438 $as_echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_func_shl_load=no
8444 rm -rf conftest.dSYM
8445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8446 conftest$ac_exeext conftest.$ac_ext
8448 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8449 $as_echo "$ac_cv_func_shl_load" >&6; }
8450 if test "x$ac_cv_func_shl_load" = x""yes; then
8451 lt_cv_dlopen="shl_load"
8453 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8454 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8455 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8456 $as_echo_n "(cached) " >&6
8458 ac_check_lib_save_LIBS=$LIBS
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8467 /* Override any GCC internal prototype to avoid an error.
8468 Use char because int might match the return type of a GCC
8469 builtin and then its argument prototype would still apply. */
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (ac_try="$ac_link"
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8489 $as_echo "$ac_try_echo") >&5
8490 (eval "$ac_link") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest$ac_exeext && {
8500 test "$cross_compiling" = yes ||
8501 $as_test_x conftest$ac_exeext
8503 ac_cv_lib_dld_shl_load=yes
8505 $as_echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_cv_lib_dld_shl_load=no
8511 rm -rf conftest.dSYM
8512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8513 conftest$ac_exeext conftest.$ac_ext
8514 LIBS=$ac_check_lib_save_LIBS
8516 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8517 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8518 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
8519 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8521 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
8522 $as_echo_n "checking for dlopen... " >&6; }
8523 if test "${ac_cv_func_dlopen+set}" = set; then
8524 $as_echo_n "(cached) " >&6
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8534 #define dlopen innocuous_dlopen
8536 /* System header to define __stub macros and hopefully few prototypes,
8537 which can conflict with char dlopen (); below.
8538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8539 <limits.h> exists even on freestanding compilers. */
8542 # include <limits.h>
8544 # include <assert.h>
8549 /* Override any GCC internal prototype to avoid an error.
8550 Use char because int might match the return type of a GCC
8551 builtin and then its argument prototype would still apply. */
8556 /* The GNU C library defines this for functions which it implements
8557 to always fail with ENOSYS. Some functions are actually named
8558 something starting with __ and the normal name is an alias. */
8559 #if defined __stub_dlopen || defined __stub___dlopen
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (ac_try="$ac_link"
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8578 $as_echo "$ac_try_echo") >&5
8579 (eval "$ac_link") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest$ac_exeext && {
8589 test "$cross_compiling" = yes ||
8590 $as_test_x conftest$ac_exeext
8592 ac_cv_func_dlopen=yes
8594 $as_echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_cv_func_dlopen=no
8600 rm -rf conftest.dSYM
8601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8602 conftest$ac_exeext conftest.$ac_ext
8604 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8605 $as_echo "$ac_cv_func_dlopen" >&6; }
8606 if test "x$ac_cv_func_dlopen" = x""yes; then
8607 lt_cv_dlopen="dlopen"
8609 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8610 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8611 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8612 $as_echo_n "(cached) " >&6
8614 ac_check_lib_save_LIBS=$LIBS
8616 cat >conftest.$ac_ext <<_ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8623 /* Override any GCC internal prototype to avoid an error.
8624 Use char because int might match the return type of a GCC
8625 builtin and then its argument prototype would still apply. */
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8645 $as_echo "$ac_try_echo") >&5
8646 (eval "$ac_link") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest$ac_exeext && {
8656 test "$cross_compiling" = yes ||
8657 $as_test_x conftest$ac_exeext
8659 ac_cv_lib_dl_dlopen=yes
8661 $as_echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 ac_cv_lib_dl_dlopen=no
8667 rm -rf conftest.dSYM
8668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8669 conftest$ac_exeext conftest.$ac_ext
8670 LIBS=$ac_check_lib_save_LIBS
8672 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8673 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8674 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
8675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8677 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8678 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8679 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8680 $as_echo_n "(cached) " >&6
8682 ac_check_lib_save_LIBS=$LIBS
8684 cat >conftest.$ac_ext <<_ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8691 /* Override any GCC internal prototype to avoid an error.
8692 Use char because int might match the return type of a GCC
8693 builtin and then its argument prototype would still apply. */
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (ac_try="$ac_link"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8713 $as_echo "$ac_try_echo") >&5
8714 (eval "$ac_link") 2>conftest.er1
8716 grep -v '^ *+' conftest.er1 >conftest.err
8718 cat conftest.err >&5
8719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest$ac_exeext && {
8724 test "$cross_compiling" = yes ||
8725 $as_test_x conftest$ac_exeext
8727 ac_cv_lib_svld_dlopen=yes
8729 $as_echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 ac_cv_lib_svld_dlopen=no
8735 rm -rf conftest.dSYM
8736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8737 conftest$ac_exeext conftest.$ac_ext
8738 LIBS=$ac_check_lib_save_LIBS
8740 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8741 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8742 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
8743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8745 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8746 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8747 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8748 $as_echo_n "(cached) " >&6
8750 ac_check_lib_save_LIBS=$LIBS
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8759 /* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8781 $as_echo "$ac_try_echo") >&5
8782 (eval "$ac_link") 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest$ac_exeext && {
8792 test "$cross_compiling" = yes ||
8793 $as_test_x conftest$ac_exeext
8795 ac_cv_lib_dld_dld_link=yes
8797 $as_echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_lib_dld_dld_link=no
8803 rm -rf conftest.dSYM
8804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 conftest$ac_exeext conftest.$ac_ext
8806 LIBS=$ac_check_lib_save_LIBS
8808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8809 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8810 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
8811 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8832 if test "x$lt_cv_dlopen" != xno; then
8838 case $lt_cv_dlopen in
8840 save_CPPFLAGS="$CPPFLAGS"
8841 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8843 save_LDFLAGS="$LDFLAGS"
8844 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8847 LIBS="$lt_cv_dlopen_libs $LIBS"
8849 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8850 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8851 if test "${lt_cv_dlopen_self+set}" = set; then
8852 $as_echo_n "(cached) " >&6
8854 if test "$cross_compiling" = yes; then :
8855 lt_cv_dlopen_self=cross
8857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8858 lt_status=$lt_dlunknown
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8860 "configure"
8861 #include "confdefs.h"
8870 # define LT_DLGLOBAL RTLD_GLOBAL
8873 # define LT_DLGLOBAL DL_GLOBAL
8875 # define LT_DLGLOBAL 0
8879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8880 find out it does not work in some platform. */
8881 #ifndef LT_DLLAZY_OR_NOW
8883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8886 # define LT_DLLAZY_OR_NOW DL_LAZY
8889 # define LT_DLLAZY_OR_NOW RTLD_NOW
8892 # define LT_DLLAZY_OR_NOW DL_NOW
8894 # define LT_DLLAZY_OR_NOW 0
8902 extern "C" void exit (int);
8905 void fnord() { int i=42;}
8908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8909 int status = $lt_dlunknown;
8913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8914 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8915 /* dlclose (self); */
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>&5
8924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8926 (./conftest; exit; ) 2>/dev/null
8929 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8930 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8931 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8934 # compilation failed
8935 lt_cv_dlopen_self=no
8942 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8943 $as_echo "$lt_cv_dlopen_self" >&6; }
8945 if test "x$lt_cv_dlopen_self" = xyes; then
8946 LDFLAGS="$LDFLAGS $link_static_flag"
8947 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8948 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8949 if test "${lt_cv_dlopen_self_static+set}" = set; then
8950 $as_echo_n "(cached) " >&6
8952 if test "$cross_compiling" = yes; then :
8953 lt_cv_dlopen_self_static=cross
8955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8956 lt_status=$lt_dlunknown
8957 cat > conftest.$ac_ext <<EOF
8958 #line 8958 "configure"
8959 #include "confdefs.h"
8968 # define LT_DLGLOBAL RTLD_GLOBAL
8971 # define LT_DLGLOBAL DL_GLOBAL
8973 # define LT_DLGLOBAL 0
8977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8978 find out it does not work in some platform. */
8979 #ifndef LT_DLLAZY_OR_NOW
8981 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8984 # define LT_DLLAZY_OR_NOW DL_LAZY
8987 # define LT_DLLAZY_OR_NOW RTLD_NOW
8990 # define LT_DLLAZY_OR_NOW DL_NOW
8992 # define LT_DLLAZY_OR_NOW 0
9000 extern "C" void exit (int);
9003 void fnord() { int i=42;}
9006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9007 int status = $lt_dlunknown;
9011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9013 /* dlclose (self); */
9019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020 (eval $ac_link) 2>&5
9022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9024 (./conftest; exit; ) 2>/dev/null
9027 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9028 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9029 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9032 # compilation failed
9033 lt_cv_dlopen_self_static=no
9040 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9041 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9044 CPPFLAGS="$save_CPPFLAGS"
9045 LDFLAGS="$save_LDFLAGS"
9050 case $lt_cv_dlopen_self in
9051 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9052 *) enable_dlopen_self=unknown ;;
9055 case $lt_cv_dlopen_self_static in
9056 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9057 *) enable_dlopen_self_static=unknown ;;
9062 # Report which librarie types wil actually be built
9063 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9064 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9065 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
9066 $as_echo "$can_build_shared" >&6; }
9068 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9069 $as_echo_n "checking whether to build shared libraries... " >&6; }
9070 test "$can_build_shared" = "no" && enable_shared=no
9072 # On AIX, shared libraries and static libraries use the same namespace, and
9073 # are all built from PIC.
9076 test "$enable_shared" = yes && enable_static=no
9077 if test -n "$RANLIB"; then
9078 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9079 postinstall_cmds='$RANLIB $lib'
9084 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9085 test "$enable_shared" = yes && enable_static=no
9088 darwin* | rhapsody*)
9089 if test "$GCC" = yes; then
9090 archive_cmds_need_lc=no
9092 rhapsody* | darwin1.[012])
9093 allow_undefined_flag='-undefined suppress'
9096 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9097 allow_undefined_flag='-flat_namespace -undefined suppress'
9099 case ${MACOSX_DEPLOYMENT_TARGET} in
9101 allow_undefined_flag='-flat_namespace -undefined suppress'
9104 allow_undefined_flag='-undefined dynamic_lookup'
9110 output_verbose_link_cmd='echo'
9111 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9112 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9114 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}'
9115 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}'
9117 hardcode_automatic=yes
9118 hardcode_shlibpath_var=unsupported
9119 whole_archive_flag_spec='-all_load $convenience'
9120 link_all_deplibs=yes
9126 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
9127 $as_echo "$enable_shared" >&6; }
9129 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9130 $as_echo_n "checking whether to build static libraries... " >&6; }
9131 # Make sure either enable_shared or enable_static is yes.
9132 test "$enable_shared" = yes || enable_static=yes
9133 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
9134 $as_echo "$enable_static" >&6; }
9136 # The else clause should only fire when bootstrapping the
9137 # libtool distribution, otherwise you forgot to ship ltmain.sh
9138 # with your package, and you will get complaints that there are
9139 # no rules to generate ltmain.sh.
9140 if test -f "$ltmain"; then
9141 # See if we are running on zsh, and set the options which allow our commands through
9142 # without removal of \ escapes.
9143 if test -n "${ZSH_VERSION+set}" ; then
9144 setopt NO_GLOB_SUBST
9146 # Now quote all the things that may contain metacharacters while being
9147 # careful not to overquote the AC_SUBSTed values. We take copies of the
9148 # variables and quote the copies for generation of the libtool script.
9149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9153 deplibs_check_method reload_flag reload_cmds need_locks \
9154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9155 lt_cv_sys_global_symbol_to_c_name_address \
9156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9157 old_postinstall_cmds old_postuninstall_cmds \
9161 lt_prog_compiler_wl \
9162 lt_prog_compiler_pic \
9163 lt_prog_compiler_static \
9164 lt_prog_compiler_no_builtin_flag \
9165 export_dynamic_flag_spec \
9166 thread_safe_flag_spec \
9167 whole_archive_flag_spec \
9168 enable_shared_with_static_runtimes \
9170 old_archive_from_new_cmds \
9175 compiler_lib_search_path \
9177 archive_expsym_cmds \
9179 postuninstall_cmds \
9180 old_archive_from_expsyms_cmds \
9181 allow_undefined_flag \
9183 export_symbols_cmds \
9184 hardcode_libdir_flag_spec \
9185 hardcode_libdir_flag_spec_ld \
9186 hardcode_libdir_separator \
9187 hardcode_automatic \
9189 module_expsym_cmds \
9190 lt_cv_prog_compiler_c_o \
9195 old_archive_cmds | \
9196 old_archive_from_new_cmds | \
9198 archive_expsym_cmds | \
9200 module_expsym_cmds | \
9201 old_archive_from_expsyms_cmds | \
9202 export_symbols_cmds | \
9203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9204 postinstall_cmds | postuninstall_cmds | \
9205 old_postinstall_cmds | old_postuninstall_cmds | \
9206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9207 # Double-quote double-evaled strings.
9208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9217 *'\$0 --fallback-echo"')
9218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9223 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9225 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
9226 $as_echo "$as_me: creating $ofile" >&6;}
9228 cat <<__EOF__ >> "$cfgfile"
9231 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9232 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9233 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9235 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9236 # Free Software Foundation, Inc.
9238 # This file is part of GNU Libtool:
9239 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9241 # This program is free software; you can redistribute it and/or modify
9242 # it under the terms of the GNU General Public License as published by
9243 # the Free Software Foundation; either version 2 of the License, or
9244 # (at your option) any later version.
9246 # This program is distributed in the hope that it will be useful, but
9247 # WITHOUT ANY WARRANTY; without even the implied warranty of
9248 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9249 # General Public License for more details.
9251 # You should have received a copy of the GNU General Public License
9252 # along with this program; if not, write to the Free Software
9253 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9255 # As a special exception to the GNU General Public License, if you
9256 # distribute this file as part of a program that contains a
9257 # configuration script generated by Autoconf, you may include it under
9258 # the same distribution terms that you use for the rest of that program.
9260 # A sed program that does not truncate output.
9263 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9264 Xsed="$SED -e s/^X//"
9266 # The HP-UX ksh and POSIX shell print the target directory to stdout
9268 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9270 # The names of the tagged configurations supported by this script.
9273 # ### BEGIN LIBTOOL CONFIG
9275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9277 # Shell to use when invoking shell scripts.
9280 # Whether or not to build shared libraries.
9281 build_libtool_libs=$enable_shared
9283 # Whether or not to build static libraries.
9284 build_old_libs=$enable_static
9286 # Whether or not to add -lc for building shared libraries.
9287 build_libtool_need_lc=$archive_cmds_need_lc
9289 # Whether or not to disallow shared libs when runtime libs are static
9290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9292 # Whether or not to optimize for fast installation.
9293 fast_install=$enable_fast_install
9296 host_alias=$host_alias
9299 # An echo program that does not interpret backslashes.
9304 AR_FLAGS=$lt_AR_FLAGS
9309 # A language-specific compiler.
9312 # Is the compiler the GNU C compiler?
9318 # The linker used to build libraries.
9321 # Whether we need hard or soft links.
9324 # A BSD-compatible nm program.
9327 # A symbol stripping program
9330 # Used to examine libraries when file_magic_cmd begins "file"
9331 MAGIC_CMD=$MAGIC_CMD
9333 # Used on cygwin: DLL creation program.
9336 # Used on cygwin: object dumper.
9339 # Used on cygwin: assembler.
9342 # The name of the directory that contains temporary libtool files.
9345 # How to create reloadable object files.
9346 reload_flag=$lt_reload_flag
9347 reload_cmds=$lt_reload_cmds
9349 # How to pass a linker flag through the compiler.
9350 wl=$lt_lt_prog_compiler_wl
9352 # Object file suffix (normally "o").
9355 # Old archive suffix (normally "a").
9358 # Shared library suffix (normally ".so").
9361 # Executable file suffix (normally "").
9364 # Additional compiler flags for building library objects.
9365 pic_flag=$lt_lt_prog_compiler_pic
9368 # What is the maximum length of a command?
9369 max_cmd_len=$lt_cv_sys_max_cmd_len
9371 # Does compiler simultaneously support -c and -o options?
9372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9374 # Must we lock files when doing compilation ?
9375 need_locks=$lt_need_locks
9377 # Do we need the lib prefix for modules?
9378 need_lib_prefix=$need_lib_prefix
9380 # Do we need a version for libraries?
9381 need_version=$need_version
9383 # Whether dlopen is supported.
9384 dlopen_support=$enable_dlopen
9386 # Whether dlopen of programs is supported.
9387 dlopen_self=$enable_dlopen_self
9389 # Whether dlopen of statically linked programs is supported.
9390 dlopen_self_static=$enable_dlopen_self_static
9392 # Compiler flag to prevent dynamic linking.
9393 link_static_flag=$lt_lt_prog_compiler_static
9395 # Compiler flag to turn off builtin functions.
9396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9398 # Compiler flag to allow reflexive dlopens.
9399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9401 # Compiler flag to generate shared objects directly from archives.
9402 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9404 # Compiler flag to generate thread-safe objects.
9405 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9407 # Library versioning type.
9408 version_type=$version_type
9410 # Format of library name prefix.
9411 libname_spec=$lt_libname_spec
9413 # List of archive names. First name is the real one, the rest are links.
9414 # The last name is the one that the linker finds with -lNAME.
9415 library_names_spec=$lt_library_names_spec
9417 # The coded name of the library, if different from the real name.
9418 soname_spec=$lt_soname_spec
9420 # Commands used to build and install an old-style archive.
9422 old_archive_cmds=$lt_old_archive_cmds
9423 old_postinstall_cmds=$lt_old_postinstall_cmds
9424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9426 # Create an old-style archive from a shared archive.
9427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9429 # Create a temporary old-style archive to link instead of a shared archive.
9430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9432 # Commands used to build and install a shared archive.
9433 archive_cmds=$lt_archive_cmds
9434 archive_expsym_cmds=$lt_archive_expsym_cmds
9435 postinstall_cmds=$lt_postinstall_cmds
9436 postuninstall_cmds=$lt_postuninstall_cmds
9438 # Commands used to build a loadable module (assumed same as above if empty)
9439 module_cmds=$lt_module_cmds
9440 module_expsym_cmds=$lt_module_expsym_cmds
9442 # Commands to strip libraries.
9443 old_striplib=$lt_old_striplib
9444 striplib=$lt_striplib
9446 # Dependencies to place before the objects being linked to create a
9448 predep_objects=$lt_predep_objects
9450 # Dependencies to place after the objects being linked to create a
9452 postdep_objects=$lt_postdep_objects
9454 # Dependencies to place before the objects being linked to create a
9458 # Dependencies to place after the objects being linked to create a
9460 postdeps=$lt_postdeps
9462 # The library search path used internally by the compiler when linking
9464 compiler_lib_search_path=$lt_compiler_lib_search_path
9466 # Method to check whether dependent libraries are shared objects.
9467 deplibs_check_method=$lt_deplibs_check_method
9469 # Command to use when deplibs_check_method == file_magic.
9470 file_magic_cmd=$lt_file_magic_cmd
9472 # Flag that allows shared libraries with undefined symbols to be built.
9473 allow_undefined_flag=$lt_allow_undefined_flag
9475 # Flag that forces no undefined symbols.
9476 no_undefined_flag=$lt_no_undefined_flag
9478 # Commands used to finish a libtool library installation in a directory.
9479 finish_cmds=$lt_finish_cmds
9481 # Same as above, but a single script fragment to be evaled but not shown.
9482 finish_eval=$lt_finish_eval
9484 # Take the output of nm and produce a listing of raw symbols and C names.
9485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9487 # Transform the output of nm in a proper C declaration
9488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9490 # Transform the output of nm in a C name address pair
9491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9493 # This is the shared library runtime path variable.
9494 runpath_var=$runpath_var
9496 # This is the shared library path variable.
9497 shlibpath_var=$shlibpath_var
9499 # Is shlibpath searched before the hard-coded library search path?
9500 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9502 # How to hardcode a shared library path into an executable.
9503 hardcode_action=$hardcode_action
9505 # Whether we should hardcode library paths into libraries.
9506 hardcode_into_libs=$hardcode_into_libs
9508 # Flag to hardcode \$libdir into a binary during linking.
9509 # This must work even if \$libdir does not exist.
9510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9512 # If ld is used when linking, flag to hardcode \$libdir into
9513 # a binary during linking. This must work even if \$libdir does
9515 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9517 # Whether we need a single -rpath flag with a separated argument.
9518 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9520 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9522 hardcode_direct=$hardcode_direct
9524 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9526 hardcode_minus_L=$hardcode_minus_L
9528 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9529 # the resulting binary.
9530 hardcode_shlibpath_var=$hardcode_shlibpath_var
9532 # Set to yes if building a shared library automatically hardcodes DIR into the library
9533 # and all subsequent libraries and executables linked against it.
9534 hardcode_automatic=$hardcode_automatic
9536 # Variables whose values should be saved in libtool wrapper scripts and
9537 # restored at relink time.
9538 variables_saved_for_relink="$variables_saved_for_relink"
9540 # Whether libtool must link a program against all its dependency libraries.
9541 link_all_deplibs=$link_all_deplibs
9543 # Compile-time system search path for libraries
9544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9546 # Run-time system search path for libraries
9547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9549 # Fix the shell variable \$srcfile for the compiler.
9550 fix_srcfile_path="$fix_srcfile_path"
9552 # Set to yes if exported symbols are required.
9553 always_export_symbols=$always_export_symbols
9555 # The commands to list exported symbols.
9556 export_symbols_cmds=$lt_export_symbols_cmds
9558 # The commands to extract the exported symbol list from a shared archive.
9559 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9561 # Symbols that should not be listed in the preloaded symbols.
9562 exclude_expsyms=$lt_exclude_expsyms
9564 # Symbols that must always be exported.
9565 include_expsyms=$lt_include_expsyms
9567 # ### END LIBTOOL CONFIG
9574 cat <<\EOF >> "$cfgfile"
9576 # AIX sometimes has problems with the GCC collect2 program. For some
9577 # reason, if we set the COLLECT_NAMES environment variable, the problems
9578 # vanish in a puff of smoke.
9579 if test "X${COLLECT_NAMES+set}" != Xset; then
9581 export COLLECT_NAMES
9587 # We use sed instead of cat because bash on DJGPP gets confused if
9588 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9589 # text mode, it properly converts lines to CR/LF. This bash problem
9590 # is reportedly fixed, but why not run on old versions too?
9591 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9593 mv -f "$cfgfile" "$ofile" || \
9594 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9598 # If there is no Makefile yet, we rely on a make rule to execute
9599 # `config.status --recheck' to rerun these tests and create the
9600 # libtool script then.
9601 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9602 if test -f "$ltmain_in"; then
9603 test -f Makefile && make "$ltmain"
9609 ac_cpp='$CPP $CPPFLAGS'
9610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9617 # Check whether --with-tags was given.
9618 if test "${with_tags+set}" = set; then
9619 withval=$with_tags; tagnames="$withval"
9623 if test -f "$ltmain" && test -n "$tagnames"; then
9624 if test ! -f "${ofile}"; then
9625 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9626 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9629 if test -z "$LTCC"; then
9630 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9631 if test -z "$LTCC"; then
9632 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9633 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9635 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9636 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9640 # Extract list of available tagged configurations in $ofile.
9641 # Note that this assumes the entire list is on one line.
9642 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9645 for tagname in $tagnames; do
9647 # Check whether tagname contains only valid characters
9648 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9650 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9651 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
9652 { (exit 1); exit 1; }; }
9656 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9658 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9659 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9660 { (exit 1); exit 1; }; }
9663 # Update the list of available tags.
9664 if test -n "$tagname"; then
9665 echo appending configuration tag \"$tagname\" to $ofile
9669 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9671 ac_cpp='$CXXCPP $CPPFLAGS'
9672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9679 archive_cmds_need_lc_CXX=no
9680 allow_undefined_flag_CXX=
9681 always_export_symbols_CXX=no
9682 archive_expsym_cmds_CXX=
9683 export_dynamic_flag_spec_CXX=
9684 hardcode_direct_CXX=no
9685 hardcode_libdir_flag_spec_CXX=
9686 hardcode_libdir_flag_spec_ld_CXX=
9687 hardcode_libdir_separator_CXX=
9688 hardcode_minus_L_CXX=no
9689 hardcode_automatic_CXX=no
9691 module_expsym_cmds_CXX=
9692 link_all_deplibs_CXX=unknown
9693 old_archive_cmds_CXX=$old_archive_cmds
9694 no_undefined_flag_CXX=
9695 whole_archive_flag_spec_CXX=
9696 enable_shared_with_static_runtimes_CXX=no
9698 # Dependencies to place before and after the object being linked:
9700 postdep_objects_CXX=
9703 compiler_lib_search_path_CXX=
9705 # Source file extension for C++ test sources.
9708 # Object file extension for compiled C++ test sources.
9712 # Code to be used in simple compile tests
9713 lt_simple_compile_test_code="int some_variable = 0;\n"
9715 # Code to be used in simple link tests
9716 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9718 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9720 # If no C compiler was specified, use CC.
9723 # Allow CC to be a program name with arguments.
9727 # Allow CC to be a program name with arguments.
9732 lt_save_with_gnu_ld=$with_gnu_ld
9733 lt_save_path_LD=$lt_cv_path_LD
9734 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9735 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9737 unset lt_cv_prog_gnu_ld
9739 if test -n "${lt_cv_path_LDCXX+set}"; then
9740 lt_cv_path_LD=$lt_cv_path_LDCXX
9744 test -z "${LDCXX+set}" || LD=$LDCXX
9748 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9750 # We don't want -fno-exception wen compiling C++ code, so set the
9751 # no_builtin_flag separately
9752 if test "$GXX" = yes; then
9753 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9755 lt_prog_compiler_no_builtin_flag_CXX=
9758 if test "$GXX" = yes; then
9759 # Set up default GNU C++ configuration
9762 # Check whether --with-gnu-ld was given.
9763 if test "${with_gnu_ld+set}" = set; then
9764 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9770 if test "$GCC" = yes; then
9771 # Check if gcc -print-prog-name=ld gives a path.
9772 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9773 $as_echo_n "checking for ld used by $CC... " >&6; }
9776 # gcc leaves a trailing carriage return which upsets mingw
9777 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9779 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9782 # Accept absolute paths.
9784 re_direlt='/[^/][^/]*/\.\./'
9785 # Canonicalize the pathname of ld
9786 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9787 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9788 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9790 test -z "$LD" && LD="$ac_prog"
9793 # If it fails, then pretend we aren't using GCC.
9797 # If it is relative, then search for the first ld in PATH.
9801 elif test "$with_gnu_ld" = yes; then
9802 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9803 $as_echo_n "checking for GNU ld... " >&6; }
9805 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9806 $as_echo_n "checking for non-GNU ld... " >&6; }
9808 if test "${lt_cv_path_LD+set}" = set; then
9809 $as_echo_n "(cached) " >&6
9811 if test -z "$LD"; then
9812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9813 for ac_dir in $PATH; do
9815 test -z "$ac_dir" && ac_dir=.
9816 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9817 lt_cv_path_LD="$ac_dir/$ac_prog"
9818 # Check to see if the program is GNU ld. I'd rather use --version,
9819 # but apparently some GNU ld's only accept -v.
9820 # Break only if it was the GNU/non-GNU ld that we prefer.
9821 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9822 *GNU* | *'with BFD'*)
9823 test "$with_gnu_ld" != no && break
9826 test "$with_gnu_ld" != yes && break
9833 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9838 if test -n "$LD"; then
9839 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9840 $as_echo "$LD" >&6; }
9842 { $as_echo "$as_me:$LINENO: result: no" >&5
9843 $as_echo "no" >&6; }
9845 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9846 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9847 { (exit 1); exit 1; }; }
9848 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9849 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9850 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9851 $as_echo_n "(cached) " >&6
9853 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9854 case `$LD -v 2>&1 </dev/null` in
9855 *GNU* | *'with BFD'*)
9856 lt_cv_prog_gnu_ld=yes
9859 lt_cv_prog_gnu_ld=no
9863 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9864 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9865 with_gnu_ld=$lt_cv_prog_gnu_ld
9869 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9870 # archiving commands below assume that GNU ld is being used.
9871 if test "$with_gnu_ld" = yes; then
9872 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9873 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'
9875 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9876 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9878 # If archive_cmds runs LD, not CC, wlarc should be empty
9879 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9880 # investigate it a little bit more. (MM)
9883 # ancient GNU ld didn't support --whole-archive et. al.
9884 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9885 grep 'no-whole-archive' > /dev/null; then
9886 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9888 whole_archive_flag_spec_CXX=
9894 # A generic and very simple default shared library creation
9895 # command for GNU C++ for the case where it uses the native
9896 # linker, instead of GNU ld. If possible, this setting should
9897 # overridden to take advantage of the native linker features on
9898 # the platform it is being used on.
9899 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9902 # Commands to make compiler produce verbose output that lists
9903 # what "hidden" libraries, object files and flags are used when
9904 # linking a shared library.
9905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9913 # PORTME: fill in a description of your system's C++ link characteristics
9914 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9915 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9919 # FIXME: insert proper C++ library support
9923 if test "$host_cpu" = ia64; then
9924 # On IA64, the linker does run time linking by default, so we don't
9925 # have to do anything special.
9926 aix_use_runtimelinking=no
9927 exp_sym_flag='-Bexport'
9930 aix_use_runtimelinking=no
9932 # Test if we are trying to use run time linking or normal
9933 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9934 # need to do runtime linking.
9935 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9936 for ld_flag in $LDFLAGS; do
9939 aix_use_runtimelinking=yes
9946 exp_sym_flag='-bexport'
9947 no_entry_flag='-bnoentry'
9950 # When large executables or shared objects are built, AIX ld can
9951 # have problems creating the table of contents. If linking a library
9952 # or program results in "error TOC overflow" add -mminimal-toc to
9953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9957 hardcode_direct_CXX=yes
9958 hardcode_libdir_separator_CXX=':'
9959 link_all_deplibs_CXX=yes
9961 if test "$GXX" = yes; then
9962 case $host_os in aix4.012|aix4.012.*)
9963 # We only want to do this on AIX 4.2 and lower, the check
9964 # below for broken collect2 doesn't work under 4.3+
9965 collect2name=`${CC} -print-prog-name=collect2`
9966 if test -f "$collect2name" && \
9967 strings "$collect2name" | grep resolve_lib_name >/dev/null
9969 # We have reworked collect2
9970 hardcode_direct_CXX=yes
9972 # We have old collect2
9973 hardcode_direct_CXX=unsupported
9974 # It fails to find uninstalled libraries when the uninstalled
9975 # path is not listed in the libpath. Setting hardcode_minus_L
9976 # to unsupported forces relinking
9977 hardcode_minus_L_CXX=yes
9978 hardcode_libdir_flag_spec_CXX='-L$libdir'
9979 hardcode_libdir_separator_CXX=
9982 shared_flag='-shared'
9985 if test "$host_cpu" = ia64; then
9986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9987 # chokes on -Wl,-G. The following line is correct:
9990 if test "$aix_use_runtimelinking" = yes; then
9991 shared_flag='${wl}-G'
9993 shared_flag='${wl}-bM:SRE'
9998 # It seems that -bexpall does not export symbols beginning with
9999 # underscore (_), so it is better to generate a list of symbols to export.
10000 always_export_symbols_CXX=yes
10001 if test "$aix_use_runtimelinking" = yes; then
10002 # Warning - without using the other runtime loading flags (-brtl),
10003 # -berok will link without error, but may produce a broken library.
10004 allow_undefined_flag_CXX='-berok'
10005 # Determine the default libpath from the value encoded in an empty executable.
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (ac_try="$ac_link"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10028 $as_echo "$ac_try_echo") >&5
10029 (eval "$ac_link") 2>conftest.er1
10031 grep -v '^ *+' conftest.er1 >conftest.err
10033 cat conftest.err >&5
10034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_cxx_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest$ac_exeext && {
10039 test "$cross_compiling" = yes ||
10040 $as_test_x conftest$ac_exeext
10043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10045 # Check for a 64-bit object if we didn't find anything.
10046 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; }
10049 $as_echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10055 rm -rf conftest.dSYM
10056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10057 conftest$ac_exeext conftest.$ac_ext
10058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10060 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10062 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10064 if test "$host_cpu" = ia64; then
10065 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10066 allow_undefined_flag_CXX="-z nodefs"
10067 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10069 # Determine the default libpath from the value encoded in an empty executable.
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10092 $as_echo "$ac_try_echo") >&5
10093 (eval "$ac_link") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_cxx_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest$ac_exeext && {
10103 test "$cross_compiling" = yes ||
10104 $as_test_x conftest$ac_exeext
10107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10109 # Check for a 64-bit object if we didn't find anything.
10110 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; }
10113 $as_echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10119 rm -rf conftest.dSYM
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121 conftest$ac_exeext conftest.$ac_ext
10122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10124 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10125 # Warning - without using the other run time loading flags,
10126 # -berok will link without error, but may produce a broken library.
10127 no_undefined_flag_CXX=' ${wl}-bernotok'
10128 allow_undefined_flag_CXX=' ${wl}-berok'
10129 # -bexpall does not export symbols beginning with underscore (_)
10130 always_export_symbols_CXX=yes
10131 # Exported symbols can be pulled into shared objects from archives
10132 whole_archive_flag_spec_CXX=' '
10133 archive_cmds_need_lc_CXX=yes
10134 # This is similar to how AIX traditionally builds it's shared libraries.
10135 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10140 case $cc_basename in
10142 # FIXME: insert proper C++ library support
10148 cygwin* | mingw* | pw32*)
10149 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10150 # as there is no search path for DLLs.
10151 hardcode_libdir_flag_spec_CXX='-L$libdir'
10152 allow_undefined_flag_CXX=unsupported
10153 always_export_symbols_CXX=no
10154 enable_shared_with_static_runtimes_CXX=yes
10156 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10157 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10158 # If the export-symbols file already is a .def file (1st line
10159 # is EXPORTS), use it as is; otherwise, prepend...
10160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10161 cp $export_symbols $output_objdir/$soname.def;
10163 echo EXPORTS > $output_objdir/$soname.def;
10164 cat $export_symbols >> $output_objdir/$soname.def;
10166 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10172 darwin* | rhapsody*)
10173 if test "$GXX" = yes; then
10174 archive_cmds_need_lc_CXX=no
10176 rhapsody* | darwin1.[012])
10177 allow_undefined_flag_CXX='-undefined suppress'
10180 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10181 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10183 case ${MACOSX_DEPLOYMENT_TARGET} in
10185 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10188 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10194 lt_int_apple_cc_single_mod=no
10195 output_verbose_link_cmd='echo'
10196 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10197 lt_int_apple_cc_single_mod=yes
10199 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10200 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10202 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10204 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10207 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10208 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}'
10210 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10212 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}'
10213 hardcode_direct_CXX=no
10214 hardcode_automatic_CXX=yes
10215 hardcode_shlibpath_var_CXX=unsupported
10216 whole_archive_flag_spec_CXX='-all_load $convenience'
10217 link_all_deplibs_CXX=yes
10224 case $cc_basename in
10226 # FIXME: insert proper C++ library support
10230 # Green Hills C++ Compiler
10231 # FIXME: insert proper C++ library support
10235 # FIXME: insert proper C++ library support
10241 # C++ shared libraries reported to be fairly broken before switch to ELF
10245 archive_cmds_need_lc_CXX=no
10247 freebsd* | kfreebsd*-gnu)
10248 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10255 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10256 hardcode_libdir_separator_CXX=:
10257 export_dynamic_flag_spec_CXX='${wl}-E'
10258 hardcode_direct_CXX=yes
10259 hardcode_minus_L_CXX=yes # Not in the search PATH,
10260 # but as the default
10261 # location of the library.
10263 case $cc_basename in
10265 # FIXME: insert proper C++ library support
10269 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'
10270 # Commands to make compiler produce verbose output that lists
10271 # what "hidden" libraries, object files and flags are used when
10272 # linking a shared library.
10274 # There doesn't appear to be a way to prevent this compiler from
10275 # explicitly linking system object files so we need to strip them
10276 # from the output so that they don't get included in the library
10278 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10281 if test "$GXX" = yes; then
10282 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'
10284 # FIXME: insert proper C++ library support
10291 if test $with_gnu_ld = no; then
10292 case "$host_cpu" in
10294 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10295 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10296 hardcode_libdir_separator_CXX=:
10299 hardcode_libdir_flag_spec_CXX='-L$libdir'
10302 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10303 hardcode_libdir_separator_CXX=:
10304 export_dynamic_flag_spec_CXX='${wl}-E'
10308 case "$host_cpu" in
10310 hardcode_direct_CXX=no
10311 hardcode_shlibpath_var_CXX=no
10314 hardcode_direct_CXX=no
10315 hardcode_shlibpath_var_CXX=no
10316 hardcode_minus_L_CXX=yes # Not in the search PATH,
10317 # but as the default
10318 # location of the library.
10321 hardcode_direct_CXX=yes
10322 hardcode_minus_L_CXX=yes # Not in the search PATH,
10323 # but as the default
10324 # location of the library.
10328 case $cc_basename in
10330 # FIXME: insert proper C++ library support
10334 case "$host_cpu" in
10336 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10339 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10342 # Commands to make compiler produce verbose output that lists
10343 # what "hidden" libraries, object files and flags are used when
10344 # linking a shared library.
10346 # There doesn't appear to be a way to prevent this compiler from
10347 # explicitly linking system object files so we need to strip them
10348 # from the output so that they don't get included in the library
10350 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'
10353 if test "$GXX" = yes; then
10354 if test $with_gnu_ld = no; then
10355 case "$host_cpu" in
10357 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10360 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'
10365 # FIXME: insert proper C++ library support
10372 case $cc_basename in
10375 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10377 # Archives containing C++ object files must be created using
10378 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10379 # necessary to make sure instantiated templates are included
10381 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10384 if test "$GXX" = yes; then
10385 if test "$with_gnu_ld" = no; then
10386 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10388 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'
10391 link_all_deplibs_CXX=yes
10394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10395 hardcode_libdir_separator_CXX=:
10398 case $cc_basename in
10400 # Kuck and Associates, Inc. (KAI) C++ Compiler
10402 # KCC will only create a shared library if the output file
10403 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10404 # to its proper name (with version) after linking.
10405 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'
10406 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'
10407 # Commands to make compiler produce verbose output that lists
10408 # what "hidden" libraries, object files and flags are used when
10409 # linking a shared library.
10411 # There doesn't appear to be a way to prevent this compiler from
10412 # explicitly linking system object files so we need to strip them
10413 # from the output so that they don't get included in the library
10415 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'
10417 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10420 # Archives containing C++ object files must be created using
10421 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10422 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10427 archive_cmds_need_lc_CXX=no
10428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429 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'
10430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10432 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10437 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'
10439 runpath_var=LD_RUN_PATH
10440 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10441 hardcode_libdir_separator_CXX=:
10443 # Commands to make compiler produce verbose output that lists
10444 # what "hidden" libraries, object files and flags are used when
10445 # linking a shared library.
10447 # There doesn't appear to be a way to prevent this compiler from
10448 # explicitly linking system object files so we need to strip them
10449 # from the output so that they don't get included in the library
10451 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'
10456 # FIXME: insert proper C++ library support
10460 # FIXME: insert proper C++ library support
10464 case $cc_basename in
10466 # FIXME: insert proper C++ library support
10470 # FIXME: insert proper C++ library support
10476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10477 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10479 hardcode_libdir_flag_spec_CXX='-R$libdir'
10480 hardcode_direct_CXX=yes
10481 hardcode_shlibpath_var_CXX=no
10483 # Workaround some broken pre-1.5 toolchains
10484 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10487 case $cc_basename in
10489 # Kuck and Associates, Inc. (KAI) C++ Compiler
10491 # KCC will only create a shared library if the output file
10492 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10493 # to its proper name (with version) after linking.
10494 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'
10496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10497 hardcode_libdir_separator_CXX=:
10499 # Archives containing C++ object files must be created using
10500 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10501 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10505 # Rational C++ 2.4.1
10506 # FIXME: insert proper C++ library support
10510 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10511 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10513 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10514 hardcode_libdir_separator_CXX=:
10516 # Commands to make compiler produce verbose output that lists
10517 # what "hidden" libraries, object files and flags are used when
10518 # linking a shared library.
10520 # There doesn't appear to be a way to prevent this compiler from
10521 # explicitly linking system object files so we need to strip them
10522 # from the output so that they don't get included in the library
10524 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'
10527 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10528 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10529 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10532 hardcode_libdir_separator_CXX=:
10534 # Commands to make compiler produce verbose output that lists
10535 # what "hidden" libraries, object files and flags are used when
10536 # linking a shared library.
10537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10540 # FIXME: insert proper C++ library support
10547 case $cc_basename in
10549 # Kuck and Associates, Inc. (KAI) C++ Compiler
10551 # KCC will only create a shared library if the output file
10552 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10553 # to its proper name (with version) after linking.
10554 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'
10556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10557 hardcode_libdir_separator_CXX=:
10559 # Archives containing C++ object files must be created using
10560 # the KAI C++ compiler.
10561 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10564 # Rational C++ 2.4.1
10565 # FIXME: insert proper C++ library support
10569 allow_undefined_flag_CXX=' -expect_unresolved \*'
10570 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10571 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10572 echo "-hidden">> $lib.exp~
10573 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10576 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10577 hardcode_libdir_separator_CXX=:
10579 # Commands to make compiler produce verbose output that lists
10580 # what "hidden" libraries, object files and flags are used when
10581 # linking a shared library.
10583 # There doesn't appear to be a way to prevent this compiler from
10584 # explicitly linking system object files so we need to strip them
10585 # from the output so that they don't get included in the library
10587 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'
10590 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10591 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10592 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10595 hardcode_libdir_separator_CXX=:
10597 # Commands to make compiler produce verbose output that lists
10598 # what "hidden" libraries, object files and flags are used when
10599 # linking a shared library.
10600 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10603 # FIXME: insert proper C++ library support
10610 # FIXME: insert proper C++ library support
10614 archive_cmds_need_lc_CXX=no
10615 case $cc_basename in
10617 # FIXME: insert proper C++ library support
10621 # FIXME: insert proper C++ library support
10627 case $cc_basename in
10630 # FIXME: insert proper C++ library support
10635 # FIXME: insert proper C++ library support
10639 # FIXME: insert proper C++ library support
10645 case $cc_basename in
10647 # Sun C++ 4.2, 5.x and Centerline C++
10648 no_undefined_flag_CXX=' -zdefs'
10649 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10650 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10651 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10653 hardcode_libdir_flag_spec_CXX='-R$libdir'
10654 hardcode_shlibpath_var_CXX=no
10656 solaris2.0-5 | solaris2.0-5.*) ;;
10658 # The C++ compiler is used as linker so we must use $wl
10659 # flag to pass the commands to the underlying system
10661 # Supported since Solaris 2.6 (maybe 2.5.1?)
10662 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10665 link_all_deplibs_CXX=yes
10667 # Commands to make compiler produce verbose output that lists
10668 # what "hidden" libraries, object files and flags are used when
10669 # linking a shared library.
10671 # There doesn't appear to be a way to prevent this compiler from
10672 # explicitly linking system object files so we need to strip them
10673 # from the output so that they don't get included in the library
10675 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10677 # Archives containing C++ object files must be created using
10678 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10679 # necessary to make sure instantiated templates are included
10681 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10684 # Green Hills C++ Compiler
10685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10687 # The C++ compiler must be used to create the archive.
10688 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10691 # GNU C++ compiler with Solaris linker
10692 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10693 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10694 if $CC --version | grep -v '^2\.7' > /dev/null; then
10695 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10696 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10697 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10699 # Commands to make compiler produce verbose output that lists
10700 # what "hidden" libraries, object files and flags are used when
10701 # linking a shared library.
10702 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10704 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10706 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10707 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10708 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10710 # Commands to make compiler produce verbose output that lists
10711 # what "hidden" libraries, object files and flags are used when
10712 # linking a shared library.
10713 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10716 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10721 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10722 archive_cmds_need_lc_CXX=no
10725 case $cc_basename in
10727 # NonStop-UX NCC 3.20
10728 # FIXME: insert proper C++ library support
10732 # FIXME: insert proper C++ library support
10738 # FIXME: insert proper C++ library support
10742 # FIXME: insert proper C++ library support
10746 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10747 $as_echo "$ld_shlibs_CXX" >&6; }
10748 test "$ld_shlibs_CXX" = no && can_build_shared=no
10754 ## There is no encapsulation within the following macros, do not change
10755 ## the running order or otherwise move them around unless you know exactly
10756 ## what you are doing...
10758 cat > conftest.$ac_ext <<EOF
10762 Foo (void) { a = 0; }
10768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769 (eval $ac_compile) 2>&5
10771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; then
10773 # Parse the compiler output and extract the necessary
10774 # objects, libraries and library flags.
10776 # Sentinel used to keep track of whether or not we are before
10777 # the conftest object file.
10778 pre_test_object_deps_done=no
10780 # The `*' in the case matches for architectures that use `case' in
10781 # $output_verbose_cmd can trigger glob expansion during the loop
10782 # eval without this substitution.
10783 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10785 for p in `eval $output_verbose_link_cmd`; do
10789 # Some compilers place space between "-{L,R}" and the path.
10790 # Remove the space.
10791 if test $p = "-L" \
10792 || test $p = "-R"; then
10799 if test "$pre_test_object_deps_done" = no; then
10802 # Internal compiler library paths should come after those
10803 # provided the user. The postdeps already come after the
10804 # user supplied libs so there is no need to process them.
10805 if test -z "$compiler_lib_search_path_CXX"; then
10806 compiler_lib_search_path_CXX="${prev}${p}"
10808 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10811 # The "-l" case would never come before the object being
10812 # linked, so don't bother handling this case.
10815 if test -z "$postdeps_CXX"; then
10816 postdeps_CXX="${prev}${p}"
10818 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10824 # This assumes that the test object file only shows up
10825 # once in the compiler output.
10826 if test "$p" = "conftest.$objext"; then
10827 pre_test_object_deps_done=yes
10831 if test "$pre_test_object_deps_done" = no; then
10832 if test -z "$predep_objects_CXX"; then
10833 predep_objects_CXX="$p"
10835 predep_objects_CXX="$predep_objects_CXX $p"
10838 if test -z "$postdep_objects_CXX"; then
10839 postdep_objects_CXX="$p"
10841 postdep_objects_CXX="$postdep_objects_CXX $p"
10846 *) ;; # Ignore the rest.
10854 echo "libtool.m4: error: problem compiling CXX test program"
10857 $rm -f confest.$objext
10859 case " $postdeps_CXX " in
10860 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10863 lt_prog_compiler_wl_CXX=
10864 lt_prog_compiler_pic_CXX=
10865 lt_prog_compiler_static_CXX=
10867 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10868 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10870 # C++ specific cases for pic, static, wl, etc.
10871 if test "$GXX" = yes; then
10872 lt_prog_compiler_wl_CXX='-Wl,'
10873 lt_prog_compiler_static_CXX='-static'
10877 # All AIX code is PIC.
10878 if test "$host_cpu" = ia64; then
10879 # AIX 5 now supports IA64 processor
10880 lt_prog_compiler_static_CXX='-Bstatic'
10884 # FIXME: we need at least 68020 code to build shared libraries, but
10885 # adding the `-m68020' flag to GCC prevents building anything better,
10887 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10889 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10890 # PIC is the default for these OSes.
10892 mingw* | os2* | pw32*)
10893 # This hack is so that the source file can tell whether it is being
10894 # built for inclusion in a dll (and should export symbols for example).
10895 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10897 darwin* | rhapsody*)
10898 # PIC is the default on this platform
10899 # Common symbols not allowed in MH_DYLIB files
10900 lt_prog_compiler_pic_CXX='-fno-common'
10903 # DJGPP does not support shared libraries at all
10904 lt_prog_compiler_pic_CXX=
10907 if test -d /usr/nec; then
10908 lt_prog_compiler_pic_CXX=-Kconform_pic
10912 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10913 # not for PA HP-UX.
10914 case "$host_cpu" in
10918 lt_prog_compiler_pic_CXX='-fPIC'
10923 lt_prog_compiler_pic_CXX='-fPIC'
10929 # All AIX code is PIC.
10930 if test "$host_cpu" = ia64; then
10931 # AIX 5 now supports IA64 processor
10932 lt_prog_compiler_static_CXX='-Bstatic'
10934 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10938 case $cc_basename in
10940 # Green Hills C++ Compiler
10941 # _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"
10946 case $cc_basename in
10948 lt_prog_compiler_pic_CXX='-KPIC'
10951 # Green Hills C++ Compiler
10952 lt_prog_compiler_pic_CXX='-pic'
10958 freebsd* | kfreebsd*-gnu)
10959 # FreeBSD uses GNU C++
10961 hpux9* | hpux10* | hpux11*)
10962 case $cc_basename in
10964 lt_prog_compiler_wl_CXX='-Wl,'
10965 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10966 if test "$host_cpu" != ia64; then
10967 lt_prog_compiler_pic_CXX='+Z'
10971 lt_prog_compiler_wl_CXX='-Wl,'
10972 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10973 case "$host_cpu" in
10978 lt_prog_compiler_pic_CXX='+Z'
10986 irix5* | irix6* | nonstopux*)
10987 case $cc_basename in
10989 lt_prog_compiler_wl_CXX='-Wl,'
10990 lt_prog_compiler_static_CXX='-non_shared'
10991 # CC pic flag -KPIC is the default.
10998 case $cc_basename in
11001 lt_prog_compiler_wl_CXX='--backend -Wl,'
11002 lt_prog_compiler_pic_CXX='-fPIC'
11006 lt_prog_compiler_wl_CXX='-Wl,'
11007 lt_prog_compiler_pic_CXX='-KPIC'
11008 lt_prog_compiler_static_CXX='-static'
11012 # Make sure the PIC flag is empty. It appears that all Alpha
11013 # Linux and Compaq Tru64 Unix objects are PIC.
11014 lt_prog_compiler_pic_CXX=
11015 lt_prog_compiler_static_CXX='-non_shared'
11026 case $cc_basename in
11028 lt_prog_compiler_pic_CXX='-W c,exportall'
11036 osf3* | osf4* | osf5*)
11037 case $cc_basename in
11039 lt_prog_compiler_wl_CXX='--backend -Wl,'
11042 # Rational C++ 2.4.1
11043 lt_prog_compiler_pic_CXX='-pic'
11046 # Digital/Compaq C++
11047 lt_prog_compiler_wl_CXX='-Wl,'
11048 # Make sure the PIC flag is empty. It appears that all Alpha
11049 # Linux and Compaq Tru64 Unix objects are PIC.
11050 lt_prog_compiler_pic_CXX=
11051 lt_prog_compiler_static_CXX='-non_shared'
11060 case $cc_basename in
11062 lt_prog_compiler_pic_CXX='-fPIC'
11069 case $cc_basename in
11071 # Sun C++ 4.2, 5.x and Centerline C++
11072 lt_prog_compiler_pic_CXX='-KPIC'
11073 lt_prog_compiler_static_CXX='-Bstatic'
11074 lt_prog_compiler_wl_CXX='-Qoption ld '
11077 # Green Hills C++ Compiler
11078 lt_prog_compiler_pic_CXX='-PIC'
11085 case $cc_basename in
11088 lt_prog_compiler_pic_CXX='-pic'
11089 lt_prog_compiler_static_CXX='-Bstatic'
11093 lt_prog_compiler_pic_CXX='-pic'
11100 case $cc_basename in
11102 # NonStop-UX NCC 3.20
11103 lt_prog_compiler_pic_CXX='-KPIC'
11114 lt_prog_compiler_can_build_shared_CXX=no
11119 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11120 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11123 # Check to make sure the PIC flag actually works.
11125 if test -n "$lt_prog_compiler_pic_CXX"; then
11127 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11128 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11129 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11130 $as_echo_n "(cached) " >&6
11132 lt_prog_compiler_pic_works_CXX=no
11133 ac_outfile=conftest.$ac_objext
11134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11135 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11136 # Insert the option either (1) after the last *FLAGS variable, or
11137 # (2) before a word containing "conftest.", or (3) at the end.
11138 # Note that $ac_compile itself does not contain backslashes and begins
11139 # with a dollar sign (not a hyphen), so the echo should work correctly.
11140 # The option is referenced via a variable to avoid confusing sed.
11141 lt_compile=`echo "$ac_compile" | $SED \
11142 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11144 -e 's:$: $lt_compiler_flag:'`
11145 (eval echo "\"\$as_me:11145: $lt_compile\"" >&5)
11146 (eval "$lt_compile" 2>conftest.err)
11148 cat conftest.err >&5
11149 echo "$as_me:11149: \$? = $ac_status" >&5
11150 if (exit $ac_status) && test -s "$ac_outfile"; then
11151 # The compiler can only warn and ignore the option if not recognized
11152 # So say no if there are warnings
11153 if test ! -s conftest.err; then
11154 lt_prog_compiler_pic_works_CXX=yes
11160 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11161 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11163 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11164 case $lt_prog_compiler_pic_CXX in
11166 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11169 lt_prog_compiler_pic_CXX=
11170 lt_prog_compiler_can_build_shared_CXX=no
11175 # For platforms which do not support PIC, -DPIC is meaningless:
11177 lt_prog_compiler_pic_CXX=
11180 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11184 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11186 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11187 $as_echo_n "(cached) " >&6
11189 lt_cv_prog_compiler_c_o_CXX=no
11190 $rm -r conftest 2>/dev/null
11194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11196 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11197 # that will create temporary files in the current directory regardless of
11198 # the output directory. Thus, making CWD read-only will cause this test
11199 # to fail, enabling locking or at least warning the user not to do parallel
11203 lt_compiler_flag="-o out/conftest2.$ac_objext"
11204 # Insert the option either (1) after the last *FLAGS variable, or
11205 # (2) before a word containing "conftest.", or (3) at the end.
11206 # Note that $ac_compile itself does not contain backslashes and begins
11207 # with a dollar sign (not a hyphen), so the echo should work correctly.
11208 lt_compile=`echo "$ac_compile" | $SED \
11209 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11211 -e 's:$: $lt_compiler_flag:'`
11212 (eval echo "\"\$as_me:11212: $lt_compile\"" >&5)
11213 (eval "$lt_compile" 2>out/conftest.err)
11215 cat out/conftest.err >&5
11216 echo "$as_me:11216: \$? = $ac_status" >&5
11217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11219 # The compiler can only warn and ignore the option if not recognized
11220 # So say no if there are warnings
11221 if test ! -s out/conftest.err; then
11222 lt_cv_prog_compiler_c_o_CXX=yes
11227 # SGI C++ compiler will create directory out/ii_files/ for
11228 # template instantiation
11229 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11230 $rm out/* && rmdir out
11236 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11237 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11240 hard_links="nottested"
11241 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11242 # do not overwrite the value of need_locks provided by the user
11243 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11244 $as_echo_n "checking if we can lock with hard links... " >&6; }
11247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11249 ln conftest.a conftest.b 2>&5 || hard_links=no
11250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11251 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11252 $as_echo "$hard_links" >&6; }
11253 if test "$hard_links" = no; then
11254 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11255 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11262 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11265 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11268 # If we're using GNU nm, then we don't want the "-C" option.
11269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11270 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11271 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'
11273 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'
11277 export_symbols_cmds_CXX="$ltdll_cmds"
11280 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11283 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11287 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11288 $as_echo "$ld_shlibs_CXX" >&6; }
11289 test "$ld_shlibs_CXX" = no && can_build_shared=no
11291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11292 if test "$GCC" = yes; then
11293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11297 # Do we need to explicitly link libc?
11299 case "x$archive_cmds_need_lc_CXX" in
11301 # Assume -lc should be added
11302 archive_cmds_need_lc_CXX=yes
11304 if test "$enable_shared" = yes && test "$GCC" = yes; then
11305 case $archive_cmds_CXX in
11307 # FIXME: we may have to deal with multi-command sequences.
11310 # Test whether the compiler implicitly links with -lc since on some
11311 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11312 # to ld, don't add -lc before -lgcc.
11313 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11314 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11319 (eval $ac_compile) 2>&5
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } 2>conftest.err; then
11325 libobjs=conftest.$ac_objext
11327 wl=$lt_prog_compiler_wl_CXX
11333 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11334 allow_undefined_flag_CXX=
11335 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11336 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }
11341 archive_cmds_need_lc_CXX=no
11343 archive_cmds_need_lc_CXX=yes
11345 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11347 cat conftest.err 1>&5
11350 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11351 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11358 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11359 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11360 library_names_spec=
11361 libname_spec='lib$name'
11365 postuninstall_cmds=
11369 shlibpath_overrides_runpath=unknown
11371 dynamic_linker="$host_os ld.so"
11372 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11373 if test "$GCC" = yes; then
11374 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11375 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11376 # if the path contains ";" then we assume it to be the separator
11377 # otherwise default to the standard path separator (i.e. ":") - it is
11378 # assumed that no part of a normal pathname contains ";" but that should
11379 # okay in the real world where ";" in dirpaths is itself problematic.
11380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11387 need_lib_prefix=unknown
11388 hardcode_into_libs=no
11390 # when you set need_version to no, make sure it does not cause -set_version
11391 # flags to be left without arguments
11392 need_version=unknown
11397 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11398 shlibpath_var=LIBPATH
11400 # AIX 3 has no versioning support, so we append a major version to the name.
11401 soname_spec='${libname}${release}${shared_ext}$major'
11408 hardcode_into_libs=yes
11409 if test "$host_cpu" = ia64; then
11410 # AIX 5 supports IA64
11411 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11412 shlibpath_var=LD_LIBRARY_PATH
11414 # With GCC up to 2.95.x, collect2 would create an import file
11415 # for dependence libraries. The import file would start with
11416 # the line `#! .'. This would cause the generated library to
11417 # depend on `.', always an invalid library. This was fixed in
11418 # development snapshots of GCC prior to 3.0.
11420 aix4 | aix4.[01] | aix4.[01].*)
11421 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11423 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11426 can_build_shared=no
11430 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11431 # soname into executable. Probably we can add versioning support to
11432 # collect2, so additional links can be useful in future.
11433 if test "$aix_use_runtimelinking" = yes; then
11434 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11435 # instead of lib<name>.a to let people know that these are not
11436 # typical AIX shared libraries.
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 # We preserve .a as extension for shared libraries through AIX4.2
11440 # and later when we are not doing run time linking.
11441 library_names_spec='${libname}${release}.a $libname.a'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11444 shlibpath_var=LIBPATH
11449 library_names_spec='$libname.ixlibrary $libname.a'
11450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451 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'
11455 library_names_spec='${libname}${shared_ext}'
11456 dynamic_linker="$host_os ld.so"
11457 shlibpath_var=LIBRARY_PATH
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11468 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11469 # the default ld.so.conf also contains /usr/contrib/lib and
11470 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11471 # libtool to hard-code these into programs
11474 cygwin* | mingw* | pw32*)
11475 version_type=windows
11480 case $GCC,$host_os in
11481 yes,cygwin* | yes,mingw* | yes,pw32*)
11482 library_names_spec='$libname.dll.a'
11483 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11484 postinstall_cmds='base_file=`basename \${file}`~
11485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11486 dldir=$destdir/`dirname \$dlpath`~
11487 test -d \$dldir || mkdir -p \$dldir~
11488 $install_prog $dir/$dlname \$dldir/$dlname'
11489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11490 dlpath=$dir/\$dldll~
11492 shlibpath_overrides_runpath=yes
11496 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11497 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11498 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11501 # MinGW DLLs use traditional 'lib' prefix
11502 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11503 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11504 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11505 # It is most probably a Windows format PATH printed by
11506 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11507 # path with ; separators, and with drive letters. We can handle the
11508 # drive letters (cygwin fileutils understands them), so leave them,
11509 # especially as we might pass files found there to a mingw objdump,
11510 # which wouldn't understand a cygwinified path. Ahh.
11511 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11517 # pw32 DLLs use 'pw' prefix rather than 'lib'
11518 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11524 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11527 dynamic_linker='Win32 ld.exe'
11528 # FIXME: first we should search . and the directory the executable is in
11532 darwin* | rhapsody*)
11533 dynamic_linker="$host_os dyld"
11534 version_type=darwin
11537 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11538 soname_spec='${libname}${release}${major}$shared_ext'
11539 shlibpath_overrides_runpath=yes
11540 shlibpath_var=DYLD_LIBRARY_PATH
11541 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11542 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11543 if test "$GCC" = yes; then
11544 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"`
11546 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11548 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 shlibpath_var=LD_LIBRARY_PATH
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=no
11572 hardcode_into_libs=yes
11573 dynamic_linker='GNU ld.so'
11577 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11578 version_type=freebsd-$objformat
11579 case $version_type in
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11590 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11595 freebsd3.01* | freebsdelf3.01*)
11596 shlibpath_overrides_runpath=yes
11597 hardcode_into_libs=yes
11600 shlibpath_overrides_runpath=no
11601 hardcode_into_libs=yes
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11611 soname_spec='${libname}${release}${shared_ext}$major'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 hardcode_into_libs=yes
11616 hpux9* | hpux10* | hpux11*)
11617 # Give a soname corresponding to the major version so that dld.sl refuses to
11618 # link against other versions.
11622 case "$host_cpu" in
11625 hardcode_into_libs=yes
11626 dynamic_linker="$host_os dld.so"
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 if test "X$HPUX_IA64_MODE" = X32; then
11632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11640 hardcode_into_libs=yes
11641 dynamic_linker="$host_os dld.sl"
11642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11651 dynamic_linker="$host_os dld.sl"
11652 shlibpath_var=SHLIB_PATH
11653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655 soname_spec='${libname}${release}${shared_ext}$major'
11658 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11659 postinstall_cmds='chmod 555 $lib'
11662 irix5* | irix6* | nonstopux*)
11664 nonstopux*) version_type=nonstopux ;;
11666 if test "$lt_cv_prog_gnu_ld" = yes; then
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11677 irix5* | nonstopux*)
11678 libsuff= shlibsuff=
11681 case $LD in # libtool.m4 will add one of these switches to LD
11682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11683 libsuff= shlibsuff= libmagic=32-bit;;
11684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11685 libsuff=32 shlibsuff=N32 libmagic=N32;;
11686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11687 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11688 *) libsuff= shlibsuff= libmagic=never-match;;
11692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11693 shlibpath_overrides_runpath=no
11694 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11695 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11696 hardcode_into_libs=yes
11699 # No shared lib support for Linux oldld, aout, or coff.
11700 linux*oldld* | linux*aout* | linux*coff*)
11704 # This must be Linux ELF.
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=no
11714 # This implies no fast_install, which is unacceptable.
11715 # Some rework will be needed to allow for fast_install
11716 # before this can be enabled.
11717 hardcode_into_libs=yes
11719 # We used to test for /lib/ld.so.1 and disable shared libraries on
11720 # powerpc, because MkLinux only supported shared libraries with the
11721 # GNU dynamic linker. Since this was broken with cross compilers,
11722 # most powerpc-linux boxes support dynamic linking these days and
11723 # people can always --disable-shared, the test was removed, and we
11724 # assume the GNU/Linux dynamic linker is in use.
11725 dynamic_linker='GNU/Linux ld.so'
11732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11735 dynamic_linker='NetBSD (a.out) ld.so'
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 dynamic_linker='NetBSD ld.elf_so'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=yes
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11769 shlibpath_var=LD_LIBRARY_PATH
11770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11772 openbsd2.[89] | openbsd2.[89].*)
11773 shlibpath_overrides_runpath=no
11776 shlibpath_overrides_runpath=yes
11780 shlibpath_overrides_runpath=yes
11785 libname_spec='$name'
11788 library_names_spec='$libname${shared_ext} $libname.a'
11789 dynamic_linker='OS/2 ld.exe'
11790 shlibpath_var=LIBPATH
11793 osf3* | osf4* | osf5*)
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11801 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 shlibpath_var=LD_LIBRARY_PATH
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=yes
11819 hardcode_into_libs=yes
11820 # ldd complains unless libraries are executable
11821 postinstall_cmds='chmod +x $lib'
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath=yes
11830 if test "$with_gnu_ld" = yes; then
11836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839 soname_spec='${libname}${release}${shared_ext}$major'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 case $host_vendor in
11843 shlibpath_overrides_runpath=no
11845 export_dynamic_flag_spec='${wl}-Blargedynsym'
11846 runpath_var=LD_RUN_PATH
11854 shlibpath_overrides_runpath=no
11855 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11861 if test -d /usr/nec ;then
11863 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11864 soname_spec='$libname${shared_ext}.$major'
11865 shlibpath_var=LD_LIBRARY_PATH
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11880 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11881 $as_echo "$dynamic_linker" >&6; }
11882 test "$dynamic_linker" = no && can_build_shared=no
11884 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11885 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11886 hardcode_action_CXX=
11887 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11888 test -n "$runpath_var CXX" || \
11889 test "X$hardcode_automatic_CXX"="Xyes" ; then
11891 # We can hardcode non-existant directories.
11892 if test "$hardcode_direct_CXX" != no &&
11893 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11894 # have to relink, otherwise we might link with an installed library
11895 # when we should be linking with a yet-to-be-installed one
11896 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11897 test "$hardcode_minus_L_CXX" != no; then
11898 # Linking always hardcodes the temporary library directory.
11899 hardcode_action_CXX=relink
11901 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11902 hardcode_action_CXX=immediate
11905 # We cannot hardcode anything, or else we can only hardcode existing
11907 hardcode_action_CXX=unsupported
11909 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11910 $as_echo "$hardcode_action_CXX" >&6; }
11912 if test "$hardcode_action_CXX" = relink; then
11913 # Fast installation is not supported
11914 enable_fast_install=no
11915 elif test "$shlibpath_overrides_runpath" = yes ||
11916 test "$enable_shared" = no; then
11917 # Fast installation is not necessary
11918 enable_fast_install=needless
11923 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11924 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11925 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11926 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11927 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11928 { $as_echo "$as_me:$LINENO: result: yes" >&5
11929 $as_echo "yes" >&6; }
11931 # FIXME - insert some real tests, host_os isn't really good enough
11934 if test -n "$STRIP" ; then
11935 striplib="$STRIP -x"
11936 { $as_echo "$as_me:$LINENO: result: yes" >&5
11937 $as_echo "yes" >&6; }
11939 { $as_echo "$as_me:$LINENO: result: no" >&5
11940 $as_echo "no" >&6; }
11944 { $as_echo "$as_me:$LINENO: result: no" >&5
11945 $as_echo "no" >&6; }
11950 if test "x$enable_dlopen" != xyes; then
11951 enable_dlopen=unknown
11952 enable_dlopen_self=unknown
11953 enable_dlopen_self_static=unknown
11960 lt_cv_dlopen="load_add_on"
11962 lt_cv_dlopen_self=yes
11966 lt_cv_dlopen="LoadLibrary"
11971 lt_cv_dlopen="dlopen"
11976 # if libdl is installed we need to link against it
11977 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11978 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11980 $as_echo_n "(cached) " >&6
11982 ac_check_lib_save_LIBS=$LIBS
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11991 /* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (ac_try="$ac_link"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12013 $as_echo "$ac_try_echo") >&5
12014 (eval "$ac_link") 2>conftest.er1
12016 grep -v '^ *+' conftest.er1 >conftest.err
12018 cat conftest.err >&5
12019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } && {
12021 test -z "$ac_cxx_werror_flag" ||
12022 test ! -s conftest.err
12023 } && test -s conftest$ac_exeext && {
12024 test "$cross_compiling" = yes ||
12025 $as_test_x conftest$ac_exeext
12027 ac_cv_lib_dl_dlopen=yes
12029 $as_echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_cv_lib_dl_dlopen=no
12035 rm -rf conftest.dSYM
12036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12037 conftest$ac_exeext conftest.$ac_ext
12038 LIBS=$ac_check_lib_save_LIBS
12040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12041 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12042 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12046 lt_cv_dlopen="dyld"
12048 lt_cv_dlopen_self=yes
12055 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12056 $as_echo_n "checking for shl_load... " >&6; }
12057 if test "${ac_cv_func_shl_load+set}" = set; then
12058 $as_echo_n "(cached) " >&6
12060 cat >conftest.$ac_ext <<_ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12068 #define shl_load innocuous_shl_load
12070 /* System header to define __stub macros and hopefully few prototypes,
12071 which can conflict with char shl_load (); below.
12072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12073 <limits.h> exists even on freestanding compilers. */
12076 # include <limits.h>
12078 # include <assert.h>
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12090 /* The GNU C library defines this for functions which it implements
12091 to always fail with ENOSYS. Some functions are actually named
12092 something starting with __ and the normal name is an alias. */
12093 #if defined __stub_shl_load || defined __stub___shl_load
12100 return shl_load ();
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12112 $as_echo "$ac_try_echo") >&5
12113 (eval "$ac_link") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_cxx_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest$ac_exeext && {
12123 test "$cross_compiling" = yes ||
12124 $as_test_x conftest$ac_exeext
12126 ac_cv_func_shl_load=yes
12128 $as_echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_cv_func_shl_load=no
12134 rm -rf conftest.dSYM
12135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12136 conftest$ac_exeext conftest.$ac_ext
12138 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12139 $as_echo "$ac_cv_func_shl_load" >&6; }
12140 if test "x$ac_cv_func_shl_load" = x""yes; then
12141 lt_cv_dlopen="shl_load"
12143 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12144 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12145 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12146 $as_echo_n "(cached) " >&6
12148 ac_check_lib_save_LIBS=$LIBS
12150 cat >conftest.$ac_ext <<_ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12167 return shl_load ();
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12179 $as_echo "$ac_try_echo") >&5
12180 (eval "$ac_link") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_cxx_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext && {
12190 test "$cross_compiling" = yes ||
12191 $as_test_x conftest$ac_exeext
12193 ac_cv_lib_dld_shl_load=yes
12195 $as_echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 ac_cv_lib_dld_shl_load=no
12201 rm -rf conftest.dSYM
12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12206 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12207 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12208 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12209 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12211 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12212 $as_echo_n "checking for dlopen... " >&6; }
12213 if test "${ac_cv_func_dlopen+set}" = set; then
12214 $as_echo_n "(cached) " >&6
12216 cat >conftest.$ac_ext <<_ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12224 #define dlopen innocuous_dlopen
12226 /* System header to define __stub macros and hopefully few prototypes,
12227 which can conflict with char dlopen (); below.
12228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229 <limits.h> exists even on freestanding compilers. */
12232 # include <limits.h>
12234 # include <assert.h>
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12246 /* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249 #if defined __stub_dlopen || defined __stub___dlopen
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12268 $as_echo "$ac_try_echo") >&5
12269 (eval "$ac_link") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_cxx_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest$ac_exeext && {
12279 test "$cross_compiling" = yes ||
12280 $as_test_x conftest$ac_exeext
12282 ac_cv_func_dlopen=yes
12284 $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ac_cv_func_dlopen=no
12290 rm -rf conftest.dSYM
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12294 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12295 $as_echo "$ac_cv_func_dlopen" >&6; }
12296 if test "x$ac_cv_func_dlopen" = x""yes; then
12297 lt_cv_dlopen="dlopen"
12299 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12300 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12302 $as_echo_n "(cached) " >&6
12304 ac_check_lib_save_LIBS=$LIBS
12306 cat >conftest.$ac_ext <<_ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (ac_try="$ac_link"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12335 $as_echo "$ac_try_echo") >&5
12336 (eval "$ac_link") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_cxx_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest$ac_exeext && {
12346 test "$cross_compiling" = yes ||
12347 $as_test_x conftest$ac_exeext
12349 ac_cv_lib_dl_dlopen=yes
12351 $as_echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_lib_dl_dlopen=no
12357 rm -rf conftest.dSYM
12358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12359 conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12363 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12364 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12367 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12368 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12369 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12370 $as_echo_n "(cached) " >&6
12372 ac_check_lib_save_LIBS=$LIBS
12373 LIBS="-lsvld $LIBS"
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12381 /* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12396 rm -f conftest.$ac_objext conftest$ac_exeext
12397 if { (ac_try="$ac_link"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403 $as_echo "$ac_try_echo") >&5
12404 (eval "$ac_link") 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_cxx_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest$ac_exeext && {
12414 test "$cross_compiling" = yes ||
12415 $as_test_x conftest$ac_exeext
12417 ac_cv_lib_svld_dlopen=yes
12419 $as_echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 ac_cv_lib_svld_dlopen=no
12425 rm -rf conftest.dSYM
12426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12431 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12432 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12435 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12436 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12437 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12438 $as_echo_n "(cached) " >&6
12440 ac_check_lib_save_LIBS=$LIBS
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12459 return dld_link ();
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (ac_try="$ac_link"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12471 $as_echo "$ac_try_echo") >&5
12472 (eval "$ac_link") 2>conftest.er1
12474 grep -v '^ *+' conftest.er1 >conftest.err
12476 cat conftest.err >&5
12477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } && {
12479 test -z "$ac_cxx_werror_flag" ||
12480 test ! -s conftest.err
12481 } && test -s conftest$ac_exeext && {
12482 test "$cross_compiling" = yes ||
12483 $as_test_x conftest$ac_exeext
12485 ac_cv_lib_dld_dld_link=yes
12487 $as_echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12490 ac_cv_lib_dld_dld_link=no
12493 rm -rf conftest.dSYM
12494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12500 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12522 if test "x$lt_cv_dlopen" != xno; then
12528 case $lt_cv_dlopen in
12530 save_CPPFLAGS="$CPPFLAGS"
12531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12533 save_LDFLAGS="$LDFLAGS"
12534 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12537 LIBS="$lt_cv_dlopen_libs $LIBS"
12539 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12541 if test "${lt_cv_dlopen_self+set}" = set; then
12542 $as_echo_n "(cached) " >&6
12544 if test "$cross_compiling" = yes; then :
12545 lt_cv_dlopen_self=cross
12547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12548 lt_status=$lt_dlunknown
12549 cat > conftest.$ac_ext <<EOF
12550 #line 12550 "configure"
12551 #include "confdefs.h"
12560 # define LT_DLGLOBAL RTLD_GLOBAL
12563 # define LT_DLGLOBAL DL_GLOBAL
12565 # define LT_DLGLOBAL 0
12569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12570 find out it does not work in some platform. */
12571 #ifndef LT_DLLAZY_OR_NOW
12573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12576 # define LT_DLLAZY_OR_NOW DL_LAZY
12579 # define LT_DLLAZY_OR_NOW RTLD_NOW
12582 # define LT_DLLAZY_OR_NOW DL_NOW
12584 # define LT_DLLAZY_OR_NOW 0
12592 extern "C" void exit (int);
12595 void fnord() { int i=42;}
12598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12599 int status = $lt_dlunknown;
12603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12605 /* dlclose (self); */
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>&5
12614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12616 (./conftest; exit; ) 2>/dev/null
12618 case x$lt_status in
12619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12621 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12624 # compilation failed
12625 lt_cv_dlopen_self=no
12632 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12633 $as_echo "$lt_cv_dlopen_self" >&6; }
12635 if test "x$lt_cv_dlopen_self" = xyes; then
12636 LDFLAGS="$LDFLAGS $link_static_flag"
12637 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12638 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12639 if test "${lt_cv_dlopen_self_static+set}" = set; then
12640 $as_echo_n "(cached) " >&6
12642 if test "$cross_compiling" = yes; then :
12643 lt_cv_dlopen_self_static=cross
12645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12646 lt_status=$lt_dlunknown
12647 cat > conftest.$ac_ext <<EOF
12648 #line 12648 "configure"
12649 #include "confdefs.h"
12658 # define LT_DLGLOBAL RTLD_GLOBAL
12661 # define LT_DLGLOBAL DL_GLOBAL
12663 # define LT_DLGLOBAL 0
12667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12668 find out it does not work in some platform. */
12669 #ifndef LT_DLLAZY_OR_NOW
12671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12674 # define LT_DLLAZY_OR_NOW DL_LAZY
12677 # define LT_DLLAZY_OR_NOW RTLD_NOW
12680 # define LT_DLLAZY_OR_NOW DL_NOW
12682 # define LT_DLLAZY_OR_NOW 0
12690 extern "C" void exit (int);
12693 void fnord() { int i=42;}
12696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12697 int status = $lt_dlunknown;
12701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12703 /* dlclose (self); */
12709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12710 (eval $ac_link) 2>&5
12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12714 (./conftest; exit; ) 2>/dev/null
12716 case x$lt_status in
12717 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12718 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12719 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12722 # compilation failed
12723 lt_cv_dlopen_self_static=no
12730 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12731 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12734 CPPFLAGS="$save_CPPFLAGS"
12735 LDFLAGS="$save_LDFLAGS"
12740 case $lt_cv_dlopen_self in
12741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12742 *) enable_dlopen_self=unknown ;;
12745 case $lt_cv_dlopen_self_static in
12746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12747 *) enable_dlopen_self_static=unknown ;;
12752 # The else clause should only fire when bootstrapping the
12753 # libtool distribution, otherwise you forgot to ship ltmain.sh
12754 # with your package, and you will get complaints that there are
12755 # no rules to generate ltmain.sh.
12756 if test -f "$ltmain"; then
12757 # See if we are running on zsh, and set the options which allow our commands through
12758 # without removal of \ escapes.
12759 if test -n "${ZSH_VERSION+set}" ; then
12760 setopt NO_GLOB_SUBST
12762 # Now quote all the things that may contain metacharacters while being
12763 # careful not to overquote the AC_SUBSTed values. We take copies of the
12764 # variables and quote the copies for generation of the libtool script.
12765 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12767 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12768 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12769 deplibs_check_method reload_flag reload_cmds need_locks \
12770 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12771 lt_cv_sys_global_symbol_to_c_name_address \
12772 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12773 old_postinstall_cmds old_postuninstall_cmds \
12777 lt_prog_compiler_wl_CXX \
12778 lt_prog_compiler_pic_CXX \
12779 lt_prog_compiler_static_CXX \
12780 lt_prog_compiler_no_builtin_flag_CXX \
12781 export_dynamic_flag_spec_CXX \
12782 thread_safe_flag_spec_CXX \
12783 whole_archive_flag_spec_CXX \
12784 enable_shared_with_static_runtimes_CXX \
12785 old_archive_cmds_CXX \
12786 old_archive_from_new_cmds_CXX \
12787 predep_objects_CXX \
12788 postdep_objects_CXX \
12791 compiler_lib_search_path_CXX \
12793 archive_expsym_cmds_CXX \
12794 postinstall_cmds_CXX \
12795 postuninstall_cmds_CXX \
12796 old_archive_from_expsyms_cmds_CXX \
12797 allow_undefined_flag_CXX \
12798 no_undefined_flag_CXX \
12799 export_symbols_cmds_CXX \
12800 hardcode_libdir_flag_spec_CXX \
12801 hardcode_libdir_flag_spec_ld_CXX \
12802 hardcode_libdir_separator_CXX \
12803 hardcode_automatic_CXX \
12805 module_expsym_cmds_CXX \
12806 lt_cv_prog_compiler_c_o_CXX \
12807 exclude_expsyms_CXX \
12808 include_expsyms_CXX; do
12811 old_archive_cmds_CXX | \
12812 old_archive_from_new_cmds_CXX | \
12813 archive_cmds_CXX | \
12814 archive_expsym_cmds_CXX | \
12815 module_cmds_CXX | \
12816 module_expsym_cmds_CXX | \
12817 old_archive_from_expsyms_cmds_CXX | \
12818 export_symbols_cmds_CXX | \
12819 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12820 postinstall_cmds | postuninstall_cmds | \
12821 old_postinstall_cmds | old_postuninstall_cmds | \
12822 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12823 # Double-quote double-evaled strings.
12824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12833 *'\$0 --fallback-echo"')
12834 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12840 cat <<__EOF__ >> "$cfgfile"
12841 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12843 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12845 # Shell to use when invoking shell scripts.
12848 # Whether or not to build shared libraries.
12849 build_libtool_libs=$enable_shared
12851 # Whether or not to build static libraries.
12852 build_old_libs=$enable_static
12854 # Whether or not to add -lc for building shared libraries.
12855 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12857 # Whether or not to disallow shared libs when runtime libs are static
12858 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12860 # Whether or not to optimize for fast installation.
12861 fast_install=$enable_fast_install
12864 host_alias=$host_alias
12867 # An echo program that does not interpret backslashes.
12872 AR_FLAGS=$lt_AR_FLAGS
12877 # A language-specific compiler.
12878 CC=$lt_compiler_CXX
12880 # Is the compiler the GNU C compiler?
12886 # The linker used to build libraries.
12889 # Whether we need hard or soft links.
12892 # A BSD-compatible nm program.
12895 # A symbol stripping program
12898 # Used to examine libraries when file_magic_cmd begins "file"
12899 MAGIC_CMD=$MAGIC_CMD
12901 # Used on cygwin: DLL creation program.
12904 # Used on cygwin: object dumper.
12907 # Used on cygwin: assembler.
12910 # The name of the directory that contains temporary libtool files.
12913 # How to create reloadable object files.
12914 reload_flag=$lt_reload_flag
12915 reload_cmds=$lt_reload_cmds
12917 # How to pass a linker flag through the compiler.
12918 wl=$lt_lt_prog_compiler_wl_CXX
12920 # Object file suffix (normally "o").
12921 objext="$ac_objext"
12923 # Old archive suffix (normally "a").
12926 # Shared library suffix (normally ".so").
12929 # Executable file suffix (normally "").
12932 # Additional compiler flags for building library objects.
12933 pic_flag=$lt_lt_prog_compiler_pic_CXX
12936 # What is the maximum length of a command?
12937 max_cmd_len=$lt_cv_sys_max_cmd_len
12939 # Does compiler simultaneously support -c and -o options?
12940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12942 # Must we lock files when doing compilation ?
12943 need_locks=$lt_need_locks
12945 # Do we need the lib prefix for modules?
12946 need_lib_prefix=$need_lib_prefix
12948 # Do we need a version for libraries?
12949 need_version=$need_version
12951 # Whether dlopen is supported.
12952 dlopen_support=$enable_dlopen
12954 # Whether dlopen of programs is supported.
12955 dlopen_self=$enable_dlopen_self
12957 # Whether dlopen of statically linked programs is supported.
12958 dlopen_self_static=$enable_dlopen_self_static
12960 # Compiler flag to prevent dynamic linking.
12961 link_static_flag=$lt_lt_prog_compiler_static_CXX
12963 # Compiler flag to turn off builtin functions.
12964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12966 # Compiler flag to allow reflexive dlopens.
12967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12969 # Compiler flag to generate shared objects directly from archives.
12970 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12972 # Compiler flag to generate thread-safe objects.
12973 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12975 # Library versioning type.
12976 version_type=$version_type
12978 # Format of library name prefix.
12979 libname_spec=$lt_libname_spec
12981 # List of archive names. First name is the real one, the rest are links.
12982 # The last name is the one that the linker finds with -lNAME.
12983 library_names_spec=$lt_library_names_spec
12985 # The coded name of the library, if different from the real name.
12986 soname_spec=$lt_soname_spec
12988 # Commands used to build and install an old-style archive.
12990 old_archive_cmds=$lt_old_archive_cmds_CXX
12991 old_postinstall_cmds=$lt_old_postinstall_cmds
12992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12994 # Create an old-style archive from a shared archive.
12995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12997 # Create a temporary old-style archive to link instead of a shared archive.
12998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13000 # Commands used to build and install a shared archive.
13001 archive_cmds=$lt_archive_cmds_CXX
13002 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13003 postinstall_cmds=$lt_postinstall_cmds
13004 postuninstall_cmds=$lt_postuninstall_cmds
13006 # Commands used to build a loadable module (assumed same as above if empty)
13007 module_cmds=$lt_module_cmds_CXX
13008 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13010 # Commands to strip libraries.
13011 old_striplib=$lt_old_striplib
13012 striplib=$lt_striplib
13014 # Dependencies to place before the objects being linked to create a
13016 predep_objects=$lt_predep_objects_CXX
13018 # Dependencies to place after the objects being linked to create a
13020 postdep_objects=$lt_postdep_objects_CXX
13022 # Dependencies to place before the objects being linked to create a
13024 predeps=$lt_predeps_CXX
13026 # Dependencies to place after the objects being linked to create a
13028 postdeps=$lt_postdeps_CXX
13030 # The library search path used internally by the compiler when linking
13031 # a shared library.
13032 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13034 # Method to check whether dependent libraries are shared objects.
13035 deplibs_check_method=$lt_deplibs_check_method
13037 # Command to use when deplibs_check_method == file_magic.
13038 file_magic_cmd=$lt_file_magic_cmd
13040 # Flag that allows shared libraries with undefined symbols to be built.
13041 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13043 # Flag that forces no undefined symbols.
13044 no_undefined_flag=$lt_no_undefined_flag_CXX
13046 # Commands used to finish a libtool library installation in a directory.
13047 finish_cmds=$lt_finish_cmds
13049 # Same as above, but a single script fragment to be evaled but not shown.
13050 finish_eval=$lt_finish_eval
13052 # Take the output of nm and produce a listing of raw symbols and C names.
13053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13055 # Transform the output of nm in a proper C declaration
13056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13058 # Transform the output of nm in a C name address pair
13059 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13061 # This is the shared library runtime path variable.
13062 runpath_var=$runpath_var
13064 # This is the shared library path variable.
13065 shlibpath_var=$shlibpath_var
13067 # Is shlibpath searched before the hard-coded library search path?
13068 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13070 # How to hardcode a shared library path into an executable.
13071 hardcode_action=$hardcode_action_CXX
13073 # Whether we should hardcode library paths into libraries.
13074 hardcode_into_libs=$hardcode_into_libs
13076 # Flag to hardcode \$libdir into a binary during linking.
13077 # This must work even if \$libdir does not exist.
13078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13080 # If ld is used when linking, flag to hardcode \$libdir into
13081 # a binary during linking. This must work even if \$libdir does
13083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13085 # Whether we need a single -rpath flag with a separated argument.
13086 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13088 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13089 # resulting binary.
13090 hardcode_direct=$hardcode_direct_CXX
13092 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13093 # resulting binary.
13094 hardcode_minus_L=$hardcode_minus_L_CXX
13096 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13097 # the resulting binary.
13098 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13100 # Set to yes if building a shared library automatically hardcodes DIR into the library
13101 # and all subsequent libraries and executables linked against it.
13102 hardcode_automatic=$hardcode_automatic_CXX
13104 # Variables whose values should be saved in libtool wrapper scripts and
13105 # restored at relink time.
13106 variables_saved_for_relink="$variables_saved_for_relink"
13108 # Whether libtool must link a program against all its dependency libraries.
13109 link_all_deplibs=$link_all_deplibs_CXX
13111 # Compile-time system search path for libraries
13112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13114 # Run-time system search path for libraries
13115 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13117 # Fix the shell variable \$srcfile for the compiler.
13118 fix_srcfile_path="$fix_srcfile_path_CXX"
13120 # Set to yes if exported symbols are required.
13121 always_export_symbols=$always_export_symbols_CXX
13123 # The commands to list exported symbols.
13124 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13126 # The commands to extract the exported symbol list from a shared archive.
13127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13129 # Symbols that should not be listed in the preloaded symbols.
13130 exclude_expsyms=$lt_exclude_expsyms_CXX
13132 # Symbols that must always be exported.
13133 include_expsyms=$lt_include_expsyms_CXX
13135 # ### END LIBTOOL TAG CONFIG: $tagname
13141 # If there is no Makefile yet, we rely on a make rule to execute
13142 # `config.status --recheck' to rerun these tests and create the
13143 # libtool script then.
13144 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13145 if test -f "$ltmain_in"; then
13146 test -f Makefile && make "$ltmain"
13152 ac_cpp='$CPP $CPPFLAGS'
13153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13161 with_gnu_ldcxx=$with_gnu_ld
13162 with_gnu_ld=$lt_save_with_gnu_ld
13163 lt_cv_path_LDCXX=$lt_cv_path_LD
13164 lt_cv_path_LD=$lt_save_path_LD
13165 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13166 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13174 if test -n "$F77" && test "X$F77" != "Xno"; then
13177 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13178 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13179 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13182 archive_cmds_need_lc_F77=no
13183 allow_undefined_flag_F77=
13184 always_export_symbols_F77=no
13185 archive_expsym_cmds_F77=
13186 export_dynamic_flag_spec_F77=
13187 hardcode_direct_F77=no
13188 hardcode_libdir_flag_spec_F77=
13189 hardcode_libdir_flag_spec_ld_F77=
13190 hardcode_libdir_separator_F77=
13191 hardcode_minus_L_F77=no
13192 hardcode_automatic_F77=no
13194 module_expsym_cmds_F77=
13195 link_all_deplibs_F77=unknown
13196 old_archive_cmds_F77=$old_archive_cmds
13197 no_undefined_flag_F77=
13198 whole_archive_flag_spec_F77=
13199 enable_shared_with_static_runtimes_F77=no
13201 # Source file extension for f77 test sources.
13204 # Object file extension for compiled f77 test sources.
13208 # Code to be used in simple compile tests
13209 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13211 # Code to be used in simple link tests
13212 lt_simple_link_test_code=" program t\n end\n"
13214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13216 # If no C compiler was specified, use CC.
13219 # Allow CC to be a program name with arguments.
13223 # Allow CC to be a program name with arguments.
13228 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13230 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13231 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13232 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13233 $as_echo "$can_build_shared" >&6; }
13235 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13236 $as_echo_n "checking whether to build shared libraries... " >&6; }
13237 test "$can_build_shared" = "no" && enable_shared=no
13239 # On AIX, shared libraries and static libraries use the same namespace, and
13240 # are all built from PIC.
13243 test "$enable_shared" = yes && enable_static=no
13244 if test -n "$RANLIB"; then
13245 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13246 postinstall_cmds='$RANLIB $lib'
13250 test "$enable_shared" = yes && enable_static=no
13253 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13254 $as_echo "$enable_shared" >&6; }
13256 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13257 $as_echo_n "checking whether to build static libraries... " >&6; }
13258 # Make sure either enable_shared or enable_static is yes.
13259 test "$enable_shared" = yes || enable_static=yes
13260 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13261 $as_echo "$enable_static" >&6; }
13263 test "$ld_shlibs_F77" = no && can_build_shared=no
13268 lt_prog_compiler_wl_F77=
13269 lt_prog_compiler_pic_F77=
13270 lt_prog_compiler_static_F77=
13272 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13273 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13275 if test "$GCC" = yes; then
13276 lt_prog_compiler_wl_F77='-Wl,'
13277 lt_prog_compiler_static_F77='-static'
13281 # All AIX code is PIC.
13282 if test "$host_cpu" = ia64; then
13283 # AIX 5 now supports IA64 processor
13284 lt_prog_compiler_static_F77='-Bstatic'
13289 # FIXME: we need at least 68020 code to build shared libraries, but
13290 # adding the `-m68020' flag to GCC prevents building anything better,
13292 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13295 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13296 # PIC is the default for these OSes.
13299 mingw* | pw32* | os2*)
13300 # This hack is so that the source file can tell whether it is being
13301 # built for inclusion in a dll (and should export symbols for example).
13302 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13305 darwin* | rhapsody*)
13306 # PIC is the default on this platform
13307 # Common symbols not allowed in MH_DYLIB files
13308 lt_prog_compiler_pic_F77='-fno-common'
13312 # Just because we use GCC doesn't mean we suddenly get shared libraries
13313 # on systems that don't support them.
13314 lt_prog_compiler_can_build_shared_F77=no
13319 if test -d /usr/nec; then
13320 lt_prog_compiler_pic_F77=-Kconform_pic
13325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13326 # not for PA HP-UX.
13327 case "$host_cpu" in
13332 lt_prog_compiler_pic_F77='-fPIC'
13338 lt_prog_compiler_pic_F77='-fPIC'
13342 # PORTME Check for flag to pass linker flags through the system compiler.
13345 lt_prog_compiler_wl_F77='-Wl,'
13346 if test "$host_cpu" = ia64; then
13347 # AIX 5 now supports IA64 processor
13348 lt_prog_compiler_static_F77='-Bstatic'
13350 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13354 mingw* | pw32* | os2*)
13355 # This hack is so that the source file can tell whether it is being
13356 # built for inclusion in a dll (and should export symbols for example).
13357 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13360 hpux9* | hpux10* | hpux11*)
13361 lt_prog_compiler_wl_F77='-Wl,'
13362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13363 # not for PA HP-UX.
13364 case "$host_cpu" in
13369 lt_prog_compiler_pic_F77='+Z'
13372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13373 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13376 irix5* | irix6* | nonstopux*)
13377 lt_prog_compiler_wl_F77='-Wl,'
13378 # PIC (with -KPIC) is the default.
13379 lt_prog_compiler_static_F77='-non_shared'
13383 lt_prog_compiler_pic_F77='-KPIC'
13384 lt_prog_compiler_static_F77='-Bstatic'
13390 lt_prog_compiler_wl_F77='-Wl,'
13391 lt_prog_compiler_pic_F77='-KPIC'
13392 lt_prog_compiler_static_F77='-static'
13395 lt_prog_compiler_wl_F77='-Wl,'
13396 # All Alpha code is PIC.
13397 lt_prog_compiler_static_F77='-non_shared'
13402 osf3* | osf4* | osf5*)
13403 lt_prog_compiler_wl_F77='-Wl,'
13404 # All OSF/1 code is PIC.
13405 lt_prog_compiler_static_F77='-non_shared'
13409 lt_prog_compiler_pic_F77='-Kpic'
13410 lt_prog_compiler_static_F77='-dn'
13414 lt_prog_compiler_wl_F77='-Wl,'
13415 lt_prog_compiler_pic_F77='-KPIC'
13416 lt_prog_compiler_static_F77='-Bstatic'
13420 lt_prog_compiler_wl_F77='-Qoption ld '
13421 lt_prog_compiler_pic_F77='-PIC'
13422 lt_prog_compiler_static_F77='-Bstatic'
13425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13426 lt_prog_compiler_wl_F77='-Wl,'
13427 lt_prog_compiler_pic_F77='-KPIC'
13428 lt_prog_compiler_static_F77='-Bstatic'
13432 if test -d /usr/nec ;then
13433 lt_prog_compiler_pic_F77='-Kconform_pic'
13434 lt_prog_compiler_static_F77='-Bstatic'
13439 lt_prog_compiler_pic_F77='-pic'
13440 lt_prog_compiler_static_F77='-Bstatic'
13444 lt_prog_compiler_can_build_shared_F77=no
13449 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13450 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13453 # Check to make sure the PIC flag actually works.
13455 if test -n "$lt_prog_compiler_pic_F77"; then
13457 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13458 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13459 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13460 $as_echo_n "(cached) " >&6
13462 lt_prog_compiler_pic_works_F77=no
13463 ac_outfile=conftest.$ac_objext
13464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13465 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13466 # Insert the option either (1) after the last *FLAGS variable, or
13467 # (2) before a word containing "conftest.", or (3) at the end.
13468 # Note that $ac_compile itself does not contain backslashes and begins
13469 # with a dollar sign (not a hyphen), so the echo should work correctly.
13470 # The option is referenced via a variable to avoid confusing sed.
13471 lt_compile=`echo "$ac_compile" | $SED \
13472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13474 -e 's:$: $lt_compiler_flag:'`
13475 (eval echo "\"\$as_me:13475: $lt_compile\"" >&5)
13476 (eval "$lt_compile" 2>conftest.err)
13478 cat conftest.err >&5
13479 echo "$as_me:13479: \$? = $ac_status" >&5
13480 if (exit $ac_status) && test -s "$ac_outfile"; then
13481 # The compiler can only warn and ignore the option if not recognized
13482 # So say no if there are warnings
13483 if test ! -s conftest.err; then
13484 lt_prog_compiler_pic_works_F77=yes
13490 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13491 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13493 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13494 case $lt_prog_compiler_pic_F77 in
13496 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13499 lt_prog_compiler_pic_F77=
13500 lt_prog_compiler_can_build_shared_F77=no
13505 # For platforms which do not support PIC, -DPIC is meaningless:
13507 lt_prog_compiler_pic_F77=
13510 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13514 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13516 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13517 $as_echo_n "(cached) " >&6
13519 lt_cv_prog_compiler_c_o_F77=no
13520 $rm -r conftest 2>/dev/null
13524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13526 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13527 # that will create temporary files in the current directory regardless of
13528 # the output directory. Thus, making CWD read-only will cause this test
13529 # to fail, enabling locking or at least warning the user not to do parallel
13533 lt_compiler_flag="-o out/conftest2.$ac_objext"
13534 # Insert the option either (1) after the last *FLAGS variable, or
13535 # (2) before a word containing "conftest.", or (3) at the end.
13536 # Note that $ac_compile itself does not contain backslashes and begins
13537 # with a dollar sign (not a hyphen), so the echo should work correctly.
13538 lt_compile=`echo "$ac_compile" | $SED \
13539 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13541 -e 's:$: $lt_compiler_flag:'`
13542 (eval echo "\"\$as_me:13542: $lt_compile\"" >&5)
13543 (eval "$lt_compile" 2>out/conftest.err)
13545 cat out/conftest.err >&5
13546 echo "$as_me:13546: \$? = $ac_status" >&5
13547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13549 # The compiler can only warn and ignore the option if not recognized
13550 # So say no if there are warnings
13551 if test ! -s out/conftest.err; then
13552 lt_cv_prog_compiler_c_o_F77=yes
13557 # SGI C++ compiler will create directory out/ii_files/ for
13558 # template instantiation
13559 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13560 $rm out/* && rmdir out
13566 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13567 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13570 hard_links="nottested"
13571 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13572 # do not overwrite the value of need_locks provided by the user
13573 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13574 $as_echo_n "checking if we can lock with hard links... " >&6; }
13577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13579 ln conftest.a conftest.b 2>&5 || hard_links=no
13580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13581 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13582 $as_echo "$hard_links" >&6; }
13583 if test "$hard_links" = no; then
13584 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13592 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13593 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13596 allow_undefined_flag_F77=
13597 enable_shared_with_static_runtimes_F77=no
13599 archive_expsym_cmds_F77=
13600 old_archive_From_new_cmds_F77=
13601 old_archive_from_expsyms_cmds_F77=
13602 export_dynamic_flag_spec_F77=
13603 whole_archive_flag_spec_F77=
13604 thread_safe_flag_spec_F77=
13605 hardcode_libdir_flag_spec_F77=
13606 hardcode_libdir_flag_spec_ld_F77=
13607 hardcode_libdir_separator_F77=
13608 hardcode_direct_F77=no
13609 hardcode_minus_L_F77=no
13610 hardcode_shlibpath_var_F77=unsupported
13611 link_all_deplibs_F77=unknown
13612 hardcode_automatic_F77=no
13614 module_expsym_cmds_F77=
13615 always_export_symbols_F77=no
13616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13617 # include_expsyms should be a list of space-separated symbols to be *always*
13618 # included in the symbol list
13619 include_expsyms_F77=
13620 # exclude_expsyms can be an extended regexp of symbols to exclude
13621 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13623 # as well as any symbol that contains `d'.
13624 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13626 # platforms (ab)use it in PIC code, but their linkers get confused if
13627 # the symbol is explicitly referenced. Since portable code cannot
13628 # rely on this symbol name, it's probably fine to never include it in
13629 # preloaded symbol tables.
13630 extract_expsyms_cmds=
13633 cygwin* | mingw* | pw32*)
13634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13635 # When not using gcc, we currently assume that we are using
13636 # Microsoft Visual C++.
13637 if test "$GCC" != yes; then
13647 if test "$with_gnu_ld" = yes; then
13648 # If archive_cmds runs LD, not CC, wlarc should be empty
13651 # See if GNU ld supports shared libraries.
13653 aix3* | aix4* | aix5*)
13654 # On AIX/PPC, the GNU linker is very broken
13655 if test "$host_cpu" != ia64; then
13659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13660 *** to be unable to reliably create shared libraries on AIX.
13661 *** Therefore, libtool is disabling shared libraries support. If you
13662 *** really care for shared libraries, you may want to modify your PATH
13663 *** so that a non-GNU linker is found, and then restart.
13670 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)'
13671 hardcode_libdir_flag_spec_F77='-L$libdir'
13672 hardcode_minus_L_F77=yes
13674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13675 # that the semantics of dynamic libraries on AmigaOS, at least up
13676 # to version 4, is to share data among multiple programs linked
13677 # with the same dynamic library. Since this doesn't match the
13678 # behavior of shared libraries on other platforms, we can't use
13684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13685 allow_undefined_flag_F77=unsupported
13686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13687 # support --undefined. This deserves some investigation. FIXME
13688 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13694 cygwin* | mingw* | pw32*)
13695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13696 # as there is no search path for DLLs.
13697 hardcode_libdir_flag_spec_F77='-L$libdir'
13698 allow_undefined_flag_F77=unsupported
13699 always_export_symbols_F77=no
13700 enable_shared_with_static_runtimes_F77=yes
13701 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13705 # If the export-symbols file already is a .def file (1st line
13706 # is EXPORTS), use it as is; otherwise, prepend...
13707 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13708 cp $export_symbols $output_objdir/$soname.def;
13710 echo EXPORTS > $output_objdir/$soname.def;
13711 cat $export_symbols >> $output_objdir/$soname.def;
13713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13721 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13724 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13730 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13735 *** create shared libraries on Solaris systems. Therefore, libtool
13736 *** is disabling shared libraries support. We urge you to upgrade GNU
13737 *** binutils to release 2.9.1 or newer. Another option is to modify
13738 *** your PATH or compiler configuration so that the native linker is
13739 *** used, and then restart.
13742 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13751 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13753 hardcode_direct_F77=yes
13754 hardcode_shlibpath_var_F77=no
13758 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13759 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13760 archive_cmds_F77="$tmp_archive_cmds"
13761 supports_anon_versioning=no
13762 case `$LD -v 2>/dev/null` in
13763 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13766 *\ 2.11.*) ;; # other 2.11 versions
13767 *) supports_anon_versioning=yes ;;
13769 if test $supports_anon_versioning = yes; then
13770 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13772 $echo "local: *; };" >> $output_objdir/$libname.ver~
13773 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13775 archive_expsym_cmds_F77="$tmp_archive_cmds"
13783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13784 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13792 if test "$ld_shlibs_F77" = yes; then
13793 runpath_var=LD_RUN_PATH
13794 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13795 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13796 # ancient GNU ld didn't support --whole-archive et. al.
13797 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13798 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13800 whole_archive_flag_spec_F77=
13804 # PORTME fill in a description of your system's linker (not GNU ld)
13807 allow_undefined_flag_F77=unsupported
13808 always_export_symbols_F77=yes
13809 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'
13810 # Note: this linker hardcodes the directories in LIBPATH if there
13811 # are no directories specified by -L.
13812 hardcode_minus_L_F77=yes
13813 if test "$GCC" = yes && test -z "$link_static_flag"; then
13814 # Neither direct hardcoding nor static linking is supported with a
13816 hardcode_direct_F77=unsupported
13821 if test "$host_cpu" = ia64; then
13822 # On IA64, the linker does run time linking by default, so we don't
13823 # have to do anything special.
13824 aix_use_runtimelinking=no
13825 exp_sym_flag='-Bexport'
13828 # If we're using GNU nm, then we don't want the "-C" option.
13829 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13830 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13831 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'
13833 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'
13835 aix_use_runtimelinking=no
13837 # Test if we are trying to use run time linking or normal
13838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13839 # need to do runtime linking.
13840 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13841 for ld_flag in $LDFLAGS; do
13842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13843 aix_use_runtimelinking=yes
13849 exp_sym_flag='-bexport'
13850 no_entry_flag='-bnoentry'
13853 # When large executables or shared objects are built, AIX ld can
13854 # have problems creating the table of contents. If linking a library
13855 # or program results in "error TOC overflow" add -mminimal-toc to
13856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13859 archive_cmds_F77=''
13860 hardcode_direct_F77=yes
13861 hardcode_libdir_separator_F77=':'
13862 link_all_deplibs_F77=yes
13864 if test "$GCC" = yes; then
13865 case $host_os in aix4.012|aix4.012.*)
13866 # We only want to do this on AIX 4.2 and lower, the check
13867 # below for broken collect2 doesn't work under 4.3+
13868 collect2name=`${CC} -print-prog-name=collect2`
13869 if test -f "$collect2name" && \
13870 strings "$collect2name" | grep resolve_lib_name >/dev/null
13872 # We have reworked collect2
13873 hardcode_direct_F77=yes
13875 # We have old collect2
13876 hardcode_direct_F77=unsupported
13877 # It fails to find uninstalled libraries when the uninstalled
13878 # path is not listed in the libpath. Setting hardcode_minus_L
13879 # to unsupported forces relinking
13880 hardcode_minus_L_F77=yes
13881 hardcode_libdir_flag_spec_F77='-L$libdir'
13882 hardcode_libdir_separator_F77=
13885 shared_flag='-shared'
13888 if test "$host_cpu" = ia64; then
13889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13890 # chokes on -Wl,-G. The following line is correct:
13893 if test "$aix_use_runtimelinking" = yes; then
13894 shared_flag='${wl}-G'
13896 shared_flag='${wl}-bM:SRE'
13901 # It seems that -bexpall does not export symbols beginning with
13902 # underscore (_), so it is better to generate a list of symbols to export.
13903 always_export_symbols_F77=yes
13904 if test "$aix_use_runtimelinking" = yes; then
13905 # Warning - without using the other runtime loading flags (-brtl),
13906 # -berok will link without error, but may produce a broken library.
13907 allow_undefined_flag_F77='-berok'
13908 # Determine the default libpath from the value encoded in an empty executable.
13909 cat >conftest.$ac_ext <<_ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13921 $as_echo "$ac_try_echo") >&5
13922 (eval "$ac_link") 2>conftest.er1
13924 grep -v '^ *+' conftest.er1 >conftest.err
13926 cat conftest.err >&5
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_f77_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest$ac_exeext && {
13932 test "$cross_compiling" = yes ||
13933 $as_test_x conftest$ac_exeext
13936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13938 # Check for a 64-bit object if we didn't find anything.
13939 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; }
13942 $as_echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13948 rm -rf conftest.dSYM
13949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13950 conftest$ac_exeext conftest.$ac_ext
13951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13953 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13954 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13956 if test "$host_cpu" = ia64; then
13957 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13958 allow_undefined_flag_F77="-z nodefs"
13959 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13961 # Determine the default libpath from the value encoded in an empty executable.
13962 cat >conftest.$ac_ext <<_ACEOF
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13974 $as_echo "$ac_try_echo") >&5
13975 (eval "$ac_link") 2>conftest.er1
13977 grep -v '^ *+' conftest.er1 >conftest.err
13979 cat conftest.err >&5
13980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_f77_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest$ac_exeext && {
13985 test "$cross_compiling" = yes ||
13986 $as_test_x conftest$ac_exeext
13989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13991 # Check for a 64-bit object if we didn't find anything.
13992 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; }
13995 $as_echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
14001 rm -rf conftest.dSYM
14002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14003 conftest$ac_exeext conftest.$ac_ext
14004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14006 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14007 # Warning - without using the other run time loading flags,
14008 # -berok will link without error, but may produce a broken library.
14009 no_undefined_flag_F77=' ${wl}-bernotok'
14010 allow_undefined_flag_F77=' ${wl}-berok'
14011 # -bexpall does not export symbols beginning with underscore (_)
14012 always_export_symbols_F77=yes
14013 # Exported symbols can be pulled into shared objects from archives
14014 whole_archive_flag_spec_F77=' '
14015 archive_cmds_need_lc_F77=yes
14016 # This is similar to how AIX traditionally builds it's shared libraries.
14017 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14023 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)'
14024 hardcode_libdir_flag_spec_F77='-L$libdir'
14025 hardcode_minus_L_F77=yes
14026 # see comment about different semantics on the GNU ld section
14031 export_dynamic_flag_spec_F77=-rdynamic
14034 cygwin* | mingw* | pw32*)
14035 # When not using gcc, we currently assume that we are using
14036 # Microsoft Visual C++.
14037 # hardcode_libdir_flag_spec is actually meaningless, as there is
14038 # no search path for DLLs.
14039 hardcode_libdir_flag_spec_F77=' '
14040 allow_undefined_flag_F77=unsupported
14041 # Tell ltmain to make .lib files, not .a files.
14043 # Tell ltmain to make .dll files, not .so files.
14045 # FIXME: Setting linknames here is a bad hack.
14046 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14047 # The linker will automatically build a .lib file if we build a DLL.
14048 old_archive_From_new_cmds_F77='true'
14049 # FIXME: Should let the user specify the lib program.
14050 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14051 fix_srcfile_path='`cygpath -w "$srcfile"`'
14052 enable_shared_with_static_runtimes_F77=yes
14055 darwin* | rhapsody*)
14056 if test "$GXX" = yes ; then
14057 archive_cmds_need_lc_F77=no
14059 rhapsody* | darwin1.[012])
14060 allow_undefined_flag_F77='-undefined suppress'
14063 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14064 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14066 case ${MACOSX_DEPLOYMENT_TARGET} in
14068 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14071 allow_undefined_flag_F77='-undefined dynamic_lookup'
14077 lt_int_apple_cc_single_mod=no
14078 output_verbose_link_cmd='echo'
14079 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14080 lt_int_apple_cc_single_mod=yes
14082 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14083 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14085 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14087 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14088 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14089 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14090 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14092 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14094 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}'
14095 hardcode_direct_F77=no
14096 hardcode_automatic_F77=yes
14097 hardcode_shlibpath_var_F77=unsupported
14098 whole_archive_flag_spec_F77='-all_load $convenience'
14099 link_all_deplibs_F77=yes
14106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14107 hardcode_libdir_flag_spec_F77='-L$libdir'
14108 hardcode_shlibpath_var_F77=no
14115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14116 # support. Future versions do this automatically, but an explicit c++rt0.o
14117 # does not break anything, and helps significantly (at the cost of a little
14120 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14121 hardcode_libdir_flag_spec_F77='-R$libdir'
14122 hardcode_direct_F77=yes
14123 hardcode_shlibpath_var_F77=no
14126 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14128 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14129 hardcode_direct_F77=yes
14130 hardcode_minus_L_F77=yes
14131 hardcode_shlibpath_var_F77=no
14134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14135 freebsd* | kfreebsd*-gnu)
14136 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14137 hardcode_libdir_flag_spec_F77='-R$libdir'
14138 hardcode_direct_F77=yes
14139 hardcode_shlibpath_var_F77=no
14143 if test "$GCC" = yes; then
14144 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'
14146 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'
14148 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14149 hardcode_libdir_separator_F77=:
14150 hardcode_direct_F77=yes
14152 # hardcode_minus_L: Not really in the search PATH,
14153 # but as the default location of the library.
14154 hardcode_minus_L_F77=yes
14155 export_dynamic_flag_spec_F77='${wl}-E'
14159 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14160 case "$host_cpu" in
14162 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14165 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14169 case "$host_cpu" in
14171 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14174 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14178 if test "$with_gnu_ld" = no; then
14179 case "$host_cpu" in
14181 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14182 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14183 hardcode_libdir_separator_F77=:
14184 hardcode_direct_F77=no
14185 hardcode_shlibpath_var_F77=no
14188 hardcode_libdir_flag_spec_F77='-L$libdir'
14189 hardcode_direct_F77=no
14190 hardcode_shlibpath_var_F77=no
14192 # hardcode_minus_L: Not really in the search PATH,
14193 # but as the default location of the library.
14194 hardcode_minus_L_F77=yes
14197 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14198 hardcode_libdir_separator_F77=:
14199 hardcode_direct_F77=yes
14200 export_dynamic_flag_spec_F77='${wl}-E'
14202 # hardcode_minus_L: Not really in the search PATH,
14203 # but as the default location of the library.
14204 hardcode_minus_L_F77=yes
14210 irix5* | irix6* | nonstopux*)
14211 if test "$GCC" = yes; then
14212 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'
14214 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'
14215 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14217 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14218 hardcode_libdir_separator_F77=:
14219 link_all_deplibs_F77=yes
14223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14224 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14226 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14228 hardcode_libdir_flag_spec_F77='-R$libdir'
14229 hardcode_direct_F77=yes
14230 hardcode_shlibpath_var_F77=no
14234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14235 hardcode_direct_F77=yes
14236 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14237 hardcode_libdir_separator_F77=:
14238 hardcode_shlibpath_var_F77=no
14242 hardcode_direct_F77=yes
14243 hardcode_shlibpath_var_F77=no
14244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14245 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14246 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14247 export_dynamic_flag_spec_F77='${wl}-E'
14250 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14252 hardcode_libdir_flag_spec_F77='-R$libdir'
14255 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14256 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14263 hardcode_libdir_flag_spec_F77='-L$libdir'
14264 hardcode_minus_L_F77=yes
14265 allow_undefined_flag_F77=unsupported
14266 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'
14267 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14271 if test "$GCC" = yes; then
14272 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14273 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'
14275 allow_undefined_flag_F77=' -expect_unresolved \*'
14276 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'
14278 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14279 hardcode_libdir_separator_F77=:
14282 osf4* | osf5*) # as osf3* with the addition of -msym flag
14283 if test "$GCC" = yes; then
14284 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14285 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'
14286 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14288 allow_undefined_flag_F77=' -expect_unresolved \*'
14289 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'
14290 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~
14291 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14293 # Both c and cxx compiler support -rpath directly
14294 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14296 hardcode_libdir_separator_F77=:
14300 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_shlibpath_var_F77=no
14302 export_dynamic_flag_spec_F77='${wl}-Bexport'
14303 runpath_var=LD_RUN_PATH
14304 hardcode_runpath_var=yes
14308 no_undefined_flag_F77=' -z text'
14309 if test "$GCC" = yes; then
14310 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14311 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14312 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14314 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14315 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14316 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14318 hardcode_libdir_flag_spec_F77='-R$libdir'
14319 hardcode_shlibpath_var_F77=no
14321 solaris2.[0-5] | solaris2.[0-5].*) ;;
14322 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14323 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14325 link_all_deplibs_F77=yes
14329 if test "x$host_vendor" = xsequent; then
14330 # Use $CC to link under sequent, because it throws in some extra .o
14331 # files that make .init and .fini sections work.
14332 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14334 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14336 hardcode_libdir_flag_spec_F77='-L$libdir'
14337 hardcode_direct_F77=yes
14338 hardcode_minus_L_F77=yes
14339 hardcode_shlibpath_var_F77=no
14343 case $host_vendor in
14345 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_direct_F77=yes # is this really true???
14349 ## LD is ld it makes a PLAMLIB
14350 ## CC just makes a GrossModule.
14351 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14352 reload_cmds_F77='$CC -r -o $output$reload_objs'
14353 hardcode_direct_F77=no
14356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14357 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14360 runpath_var='LD_RUN_PATH'
14361 hardcode_shlibpath_var_F77=no
14365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14366 hardcode_shlibpath_var_F77=no
14367 export_dynamic_flag_spec_F77='-Bexport'
14371 if test -d /usr/nec; then
14372 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14373 hardcode_shlibpath_var_F77=no
14374 runpath_var=LD_RUN_PATH
14375 hardcode_runpath_var=yes
14381 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14382 hardcode_direct_F77=yes
14383 hardcode_minus_L_F77=no
14384 hardcode_shlibpath_var_F77=no
14385 hardcode_runpath_var=yes
14386 runpath_var=LD_RUN_PATH
14389 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14390 no_undefined_flag_F77='${wl}-z ${wl}text'
14391 if test "$GCC" = yes; then
14392 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14394 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14396 runpath_var='LD_RUN_PATH'
14397 hardcode_shlibpath_var_F77=no
14401 no_undefined_flag_F77=' -z text'
14402 # $CC -shared without GNU ld will not create a library from C++
14403 # object files and a static libstdc++, better avoid it by now
14404 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14405 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14407 hardcode_libdir_flag_spec_F77=
14408 hardcode_shlibpath_var_F77=no
14409 runpath_var='LD_RUN_PATH'
14413 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14414 hardcode_libdir_flag_spec_F77='-L$libdir'
14415 hardcode_shlibpath_var_F77=no
14424 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14425 $as_echo "$ld_shlibs_F77" >&6; }
14426 test "$ld_shlibs_F77" = no && can_build_shared=no
14428 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14429 if test "$GCC" = yes; then
14430 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14434 # Do we need to explicitly link libc?
14436 case "x$archive_cmds_need_lc_F77" in
14438 # Assume -lc should be added
14439 archive_cmds_need_lc_F77=yes
14441 if test "$enable_shared" = yes && test "$GCC" = yes; then
14442 case $archive_cmds_F77 in
14444 # FIXME: we may have to deal with multi-command sequences.
14447 # Test whether the compiler implicitly links with -lc since on some
14448 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14449 # to ld, don't add -lc before -lgcc.
14450 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14451 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456 (eval $ac_compile) 2>&5
14458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } 2>conftest.err; then
14462 libobjs=conftest.$ac_objext
14464 wl=$lt_prog_compiler_wl_F77
14470 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14471 allow_undefined_flag_F77=
14472 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14473 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }
14478 archive_cmds_need_lc_F77=no
14480 archive_cmds_need_lc_F77=yes
14482 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14484 cat conftest.err 1>&5
14487 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14488 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14495 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14496 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14497 library_names_spec=
14498 libname_spec='lib$name'
14502 postuninstall_cmds=
14506 shlibpath_overrides_runpath=unknown
14508 dynamic_linker="$host_os ld.so"
14509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14510 if test "$GCC" = yes; then
14511 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14512 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14513 # if the path contains ";" then we assume it to be the separator
14514 # otherwise default to the standard path separator (i.e. ":") - it is
14515 # assumed that no part of a normal pathname contains ";" but that should
14516 # okay in the real world where ";" in dirpaths is itself problematic.
14517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14522 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14524 need_lib_prefix=unknown
14525 hardcode_into_libs=no
14527 # when you set need_version to no, make sure it does not cause -set_version
14528 # flags to be left without arguments
14529 need_version=unknown
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14535 shlibpath_var=LIBPATH
14537 # AIX 3 has no versioning support, so we append a major version to the name.
14538 soname_spec='${libname}${release}${shared_ext}$major'
14545 hardcode_into_libs=yes
14546 if test "$host_cpu" = ia64; then
14547 # AIX 5 supports IA64
14548 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14549 shlibpath_var=LD_LIBRARY_PATH
14551 # With GCC up to 2.95.x, collect2 would create an import file
14552 # for dependence libraries. The import file would start with
14553 # the line `#! .'. This would cause the generated library to
14554 # depend on `.', always an invalid library. This was fixed in
14555 # development snapshots of GCC prior to 3.0.
14557 aix4 | aix4.[01] | aix4.[01].*)
14558 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14560 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14563 can_build_shared=no
14567 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14568 # soname into executable. Probably we can add versioning support to
14569 # collect2, so additional links can be useful in future.
14570 if test "$aix_use_runtimelinking" = yes; then
14571 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14572 # instead of lib<name>.a to let people know that these are not
14573 # typical AIX shared libraries.
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576 # We preserve .a as extension for shared libraries through AIX4.2
14577 # and later when we are not doing run time linking.
14578 library_names_spec='${libname}${release}.a $libname.a'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14581 shlibpath_var=LIBPATH
14586 library_names_spec='$libname.ixlibrary $libname.a'
14587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14588 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'
14592 library_names_spec='${libname}${shared_ext}'
14593 dynamic_linker="$host_os ld.so"
14594 shlibpath_var=LIBRARY_PATH
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14605 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14606 # the default ld.so.conf also contains /usr/contrib/lib and
14607 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14608 # libtool to hard-code these into programs
14611 cygwin* | mingw* | pw32*)
14612 version_type=windows
14617 case $GCC,$host_os in
14618 yes,cygwin* | yes,mingw* | yes,pw32*)
14619 library_names_spec='$libname.dll.a'
14620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14621 postinstall_cmds='base_file=`basename \${file}`~
14622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14623 dldir=$destdir/`dirname \$dlpath`~
14624 test -d \$dldir || mkdir -p \$dldir~
14625 $install_prog $dir/$dlname \$dldir/$dlname'
14626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14627 dlpath=$dir/\$dldll~
14629 shlibpath_overrides_runpath=yes
14633 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14634 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14635 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14638 # MinGW DLLs use traditional 'lib' prefix
14639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14641 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14642 # It is most probably a Windows format PATH printed by
14643 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14644 # path with ; separators, and with drive letters. We can handle the
14645 # drive letters (cygwin fileutils understands them), so leave them,
14646 # especially as we might pass files found there to a mingw objdump,
14647 # which wouldn't understand a cygwinified path. Ahh.
14648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14654 # pw32 DLLs use 'pw' prefix rather than 'lib'
14655 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14661 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14664 dynamic_linker='Win32 ld.exe'
14665 # FIXME: first we should search . and the directory the executable is in
14669 darwin* | rhapsody*)
14670 dynamic_linker="$host_os dyld"
14671 version_type=darwin
14674 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14675 soname_spec='${libname}${release}${major}$shared_ext'
14676 shlibpath_overrides_runpath=yes
14677 shlibpath_var=DYLD_LIBRARY_PATH
14678 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14679 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14680 if test "$GCC" = yes; then
14681 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"`
14683 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14685 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 shlibpath_var=LD_LIBRARY_PATH
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 shlibpath_var=LD_LIBRARY_PATH
14708 shlibpath_overrides_runpath=no
14709 hardcode_into_libs=yes
14710 dynamic_linker='GNU ld.so'
14714 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14715 version_type=freebsd-$objformat
14716 case $version_type in
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14727 shlibpath_var=LD_LIBRARY_PATH
14730 shlibpath_overrides_runpath=yes
14732 freebsd3.01* | freebsdelf3.01*)
14733 shlibpath_overrides_runpath=yes
14734 hardcode_into_libs=yes
14737 shlibpath_overrides_runpath=no
14738 hardcode_into_libs=yes
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 hardcode_into_libs=yes
14753 hpux9* | hpux10* | hpux11*)
14754 # Give a soname corresponding to the major version so that dld.sl refuses to
14755 # link against other versions.
14759 case "$host_cpu" in
14762 hardcode_into_libs=yes
14763 dynamic_linker="$host_os dld.so"
14764 shlibpath_var=LD_LIBRARY_PATH
14765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 if test "X$HPUX_IA64_MODE" = X32; then
14769 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14771 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14777 hardcode_into_libs=yes
14778 dynamic_linker="$host_os dld.sl"
14779 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14788 dynamic_linker="$host_os dld.sl"
14789 shlibpath_var=SHLIB_PATH
14790 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14795 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14796 postinstall_cmds='chmod 555 $lib'
14799 irix5* | irix6* | nonstopux*)
14801 nonstopux*) version_type=nonstopux ;;
14803 if test "$lt_cv_prog_gnu_ld" = yes; then
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14814 irix5* | nonstopux*)
14815 libsuff= shlibsuff=
14818 case $LD in # libtool.m4 will add one of these switches to LD
14819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14820 libsuff= shlibsuff= libmagic=32-bit;;
14821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14822 libsuff=32 shlibsuff=N32 libmagic=N32;;
14823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14825 *) libsuff= shlibsuff= libmagic=never-match;;
14829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14830 shlibpath_overrides_runpath=no
14831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14833 hardcode_into_libs=yes
14836 # No shared lib support for Linux oldld, aout, or coff.
14837 linux*oldld* | linux*aout* | linux*coff*)
14841 # This must be Linux ELF.
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 shlibpath_overrides_runpath=no
14851 # This implies no fast_install, which is unacceptable.
14852 # Some rework will be needed to allow for fast_install
14853 # before this can be enabled.
14854 hardcode_into_libs=yes
14856 # We used to test for /lib/ld.so.1 and disable shared libraries on
14857 # powerpc, because MkLinux only supported shared libraries with the
14858 # GNU dynamic linker. Since this was broken with cross compilers,
14859 # most powerpc-linux boxes support dynamic linking these days and
14860 # people can always --disable-shared, the test was removed, and we
14861 # assume the GNU/Linux dynamic linker is in use.
14862 dynamic_linker='GNU/Linux ld.so'
14869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14872 dynamic_linker='NetBSD (a.out) ld.so'
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 dynamic_linker='NetBSD ld.elf_so'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=yes
14880 hardcode_into_libs=yes
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14909 openbsd2.[89] | openbsd2.[89].*)
14910 shlibpath_overrides_runpath=no
14913 shlibpath_overrides_runpath=yes
14917 shlibpath_overrides_runpath=yes
14922 libname_spec='$name'
14925 library_names_spec='$libname${shared_ext} $libname.a'
14926 dynamic_linker='OS/2 ld.exe'
14927 shlibpath_var=LIBPATH
14930 osf3* | osf4* | osf5*)
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 shlibpath_var=LD_LIBRARY_PATH
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 shlibpath_overrides_runpath=yes
14956 hardcode_into_libs=yes
14957 # ldd complains unless libraries are executable
14958 postinstall_cmds='chmod +x $lib'
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14964 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14965 shlibpath_var=LD_LIBRARY_PATH
14966 shlibpath_overrides_runpath=yes
14967 if test "$with_gnu_ld" = yes; then
14973 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976 soname_spec='${libname}${release}${shared_ext}$major'
14977 shlibpath_var=LD_LIBRARY_PATH
14978 case $host_vendor in
14980 shlibpath_overrides_runpath=no
14982 export_dynamic_flag_spec='${wl}-Blargedynsym'
14983 runpath_var=LD_RUN_PATH
14991 shlibpath_overrides_runpath=no
14992 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14998 if test -d /usr/nec ;then
15000 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15001 soname_spec='$libname${shared_ext}.$major'
15002 shlibpath_var=LD_LIBRARY_PATH
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 soname_spec='${libname}${release}${shared_ext}$major'
15010 shlibpath_var=LD_LIBRARY_PATH
15017 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15018 $as_echo "$dynamic_linker" >&6; }
15019 test "$dynamic_linker" = no && can_build_shared=no
15021 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15022 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15023 hardcode_action_F77=
15024 if test -n "$hardcode_libdir_flag_spec_F77" || \
15025 test -n "$runpath_var F77" || \
15026 test "X$hardcode_automatic_F77"="Xyes" ; then
15028 # We can hardcode non-existant directories.
15029 if test "$hardcode_direct_F77" != no &&
15030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15031 # have to relink, otherwise we might link with an installed library
15032 # when we should be linking with a yet-to-be-installed one
15033 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15034 test "$hardcode_minus_L_F77" != no; then
15035 # Linking always hardcodes the temporary library directory.
15036 hardcode_action_F77=relink
15038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15039 hardcode_action_F77=immediate
15042 # We cannot hardcode anything, or else we can only hardcode existing
15044 hardcode_action_F77=unsupported
15046 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15047 $as_echo "$hardcode_action_F77" >&6; }
15049 if test "$hardcode_action_F77" = relink; then
15050 # Fast installation is not supported
15051 enable_fast_install=no
15052 elif test "$shlibpath_overrides_runpath" = yes ||
15053 test "$enable_shared" = no; then
15054 # Fast installation is not necessary
15055 enable_fast_install=needless
15060 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15061 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15062 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15063 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15064 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15065 { $as_echo "$as_me:$LINENO: result: yes" >&5
15066 $as_echo "yes" >&6; }
15068 # FIXME - insert some real tests, host_os isn't really good enough
15071 if test -n "$STRIP" ; then
15072 striplib="$STRIP -x"
15073 { $as_echo "$as_me:$LINENO: result: yes" >&5
15074 $as_echo "yes" >&6; }
15076 { $as_echo "$as_me:$LINENO: result: no" >&5
15077 $as_echo "no" >&6; }
15081 { $as_echo "$as_me:$LINENO: result: no" >&5
15082 $as_echo "no" >&6; }
15089 # The else clause should only fire when bootstrapping the
15090 # libtool distribution, otherwise you forgot to ship ltmain.sh
15091 # with your package, and you will get complaints that there are
15092 # no rules to generate ltmain.sh.
15093 if test -f "$ltmain"; then
15094 # See if we are running on zsh, and set the options which allow our commands through
15095 # without removal of \ escapes.
15096 if test -n "${ZSH_VERSION+set}" ; then
15097 setopt NO_GLOB_SUBST
15099 # Now quote all the things that may contain metacharacters while being
15100 # careful not to overquote the AC_SUBSTed values. We take copies of the
15101 # variables and quote the copies for generation of the libtool script.
15102 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15104 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15105 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15106 deplibs_check_method reload_flag reload_cmds need_locks \
15107 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15108 lt_cv_sys_global_symbol_to_c_name_address \
15109 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15110 old_postinstall_cmds old_postuninstall_cmds \
15114 lt_prog_compiler_wl_F77 \
15115 lt_prog_compiler_pic_F77 \
15116 lt_prog_compiler_static_F77 \
15117 lt_prog_compiler_no_builtin_flag_F77 \
15118 export_dynamic_flag_spec_F77 \
15119 thread_safe_flag_spec_F77 \
15120 whole_archive_flag_spec_F77 \
15121 enable_shared_with_static_runtimes_F77 \
15122 old_archive_cmds_F77 \
15123 old_archive_from_new_cmds_F77 \
15124 predep_objects_F77 \
15125 postdep_objects_F77 \
15128 compiler_lib_search_path_F77 \
15130 archive_expsym_cmds_F77 \
15131 postinstall_cmds_F77 \
15132 postuninstall_cmds_F77 \
15133 old_archive_from_expsyms_cmds_F77 \
15134 allow_undefined_flag_F77 \
15135 no_undefined_flag_F77 \
15136 export_symbols_cmds_F77 \
15137 hardcode_libdir_flag_spec_F77 \
15138 hardcode_libdir_flag_spec_ld_F77 \
15139 hardcode_libdir_separator_F77 \
15140 hardcode_automatic_F77 \
15142 module_expsym_cmds_F77 \
15143 lt_cv_prog_compiler_c_o_F77 \
15144 exclude_expsyms_F77 \
15145 include_expsyms_F77; do
15148 old_archive_cmds_F77 | \
15149 old_archive_from_new_cmds_F77 | \
15150 archive_cmds_F77 | \
15151 archive_expsym_cmds_F77 | \
15152 module_cmds_F77 | \
15153 module_expsym_cmds_F77 | \
15154 old_archive_from_expsyms_cmds_F77 | \
15155 export_symbols_cmds_F77 | \
15156 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15157 postinstall_cmds | postuninstall_cmds | \
15158 old_postinstall_cmds | old_postuninstall_cmds | \
15159 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15160 # Double-quote double-evaled strings.
15161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15170 *'\$0 --fallback-echo"')
15171 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15177 cat <<__EOF__ >> "$cfgfile"
15178 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15182 # Shell to use when invoking shell scripts.
15185 # Whether or not to build shared libraries.
15186 build_libtool_libs=$enable_shared
15188 # Whether or not to build static libraries.
15189 build_old_libs=$enable_static
15191 # Whether or not to add -lc for building shared libraries.
15192 build_libtool_need_lc=$archive_cmds_need_lc_F77
15194 # Whether or not to disallow shared libs when runtime libs are static
15195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15197 # Whether or not to optimize for fast installation.
15198 fast_install=$enable_fast_install
15201 host_alias=$host_alias
15204 # An echo program that does not interpret backslashes.
15209 AR_FLAGS=$lt_AR_FLAGS
15214 # A language-specific compiler.
15215 CC=$lt_compiler_F77
15217 # Is the compiler the GNU C compiler?
15223 # The linker used to build libraries.
15226 # Whether we need hard or soft links.
15229 # A BSD-compatible nm program.
15232 # A symbol stripping program
15235 # Used to examine libraries when file_magic_cmd begins "file"
15236 MAGIC_CMD=$MAGIC_CMD
15238 # Used on cygwin: DLL creation program.
15241 # Used on cygwin: object dumper.
15244 # Used on cygwin: assembler.
15247 # The name of the directory that contains temporary libtool files.
15250 # How to create reloadable object files.
15251 reload_flag=$lt_reload_flag
15252 reload_cmds=$lt_reload_cmds
15254 # How to pass a linker flag through the compiler.
15255 wl=$lt_lt_prog_compiler_wl_F77
15257 # Object file suffix (normally "o").
15258 objext="$ac_objext"
15260 # Old archive suffix (normally "a").
15263 # Shared library suffix (normally ".so").
15266 # Executable file suffix (normally "").
15269 # Additional compiler flags for building library objects.
15270 pic_flag=$lt_lt_prog_compiler_pic_F77
15273 # What is the maximum length of a command?
15274 max_cmd_len=$lt_cv_sys_max_cmd_len
15276 # Does compiler simultaneously support -c and -o options?
15277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15279 # Must we lock files when doing compilation ?
15280 need_locks=$lt_need_locks
15282 # Do we need the lib prefix for modules?
15283 need_lib_prefix=$need_lib_prefix
15285 # Do we need a version for libraries?
15286 need_version=$need_version
15288 # Whether dlopen is supported.
15289 dlopen_support=$enable_dlopen
15291 # Whether dlopen of programs is supported.
15292 dlopen_self=$enable_dlopen_self
15294 # Whether dlopen of statically linked programs is supported.
15295 dlopen_self_static=$enable_dlopen_self_static
15297 # Compiler flag to prevent dynamic linking.
15298 link_static_flag=$lt_lt_prog_compiler_static_F77
15300 # Compiler flag to turn off builtin functions.
15301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15303 # Compiler flag to allow reflexive dlopens.
15304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15306 # Compiler flag to generate shared objects directly from archives.
15307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15309 # Compiler flag to generate thread-safe objects.
15310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15312 # Library versioning type.
15313 version_type=$version_type
15315 # Format of library name prefix.
15316 libname_spec=$lt_libname_spec
15318 # List of archive names. First name is the real one, the rest are links.
15319 # The last name is the one that the linker finds with -lNAME.
15320 library_names_spec=$lt_library_names_spec
15322 # The coded name of the library, if different from the real name.
15323 soname_spec=$lt_soname_spec
15325 # Commands used to build and install an old-style archive.
15327 old_archive_cmds=$lt_old_archive_cmds_F77
15328 old_postinstall_cmds=$lt_old_postinstall_cmds
15329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15331 # Create an old-style archive from a shared archive.
15332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15334 # Create a temporary old-style archive to link instead of a shared archive.
15335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15337 # Commands used to build and install a shared archive.
15338 archive_cmds=$lt_archive_cmds_F77
15339 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15340 postinstall_cmds=$lt_postinstall_cmds
15341 postuninstall_cmds=$lt_postuninstall_cmds
15343 # Commands used to build a loadable module (assumed same as above if empty)
15344 module_cmds=$lt_module_cmds_F77
15345 module_expsym_cmds=$lt_module_expsym_cmds_F77
15347 # Commands to strip libraries.
15348 old_striplib=$lt_old_striplib
15349 striplib=$lt_striplib
15351 # Dependencies to place before the objects being linked to create a
15353 predep_objects=$lt_predep_objects_F77
15355 # Dependencies to place after the objects being linked to create a
15357 postdep_objects=$lt_postdep_objects_F77
15359 # Dependencies to place before the objects being linked to create a
15361 predeps=$lt_predeps_F77
15363 # Dependencies to place after the objects being linked to create a
15365 postdeps=$lt_postdeps_F77
15367 # The library search path used internally by the compiler when linking
15368 # a shared library.
15369 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15371 # Method to check whether dependent libraries are shared objects.
15372 deplibs_check_method=$lt_deplibs_check_method
15374 # Command to use when deplibs_check_method == file_magic.
15375 file_magic_cmd=$lt_file_magic_cmd
15377 # Flag that allows shared libraries with undefined symbols to be built.
15378 allow_undefined_flag=$lt_allow_undefined_flag_F77
15380 # Flag that forces no undefined symbols.
15381 no_undefined_flag=$lt_no_undefined_flag_F77
15383 # Commands used to finish a libtool library installation in a directory.
15384 finish_cmds=$lt_finish_cmds
15386 # Same as above, but a single script fragment to be evaled but not shown.
15387 finish_eval=$lt_finish_eval
15389 # Take the output of nm and produce a listing of raw symbols and C names.
15390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15392 # Transform the output of nm in a proper C declaration
15393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15395 # Transform the output of nm in a C name address pair
15396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15398 # This is the shared library runtime path variable.
15399 runpath_var=$runpath_var
15401 # This is the shared library path variable.
15402 shlibpath_var=$shlibpath_var
15404 # Is shlibpath searched before the hard-coded library search path?
15405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15407 # How to hardcode a shared library path into an executable.
15408 hardcode_action=$hardcode_action_F77
15410 # Whether we should hardcode library paths into libraries.
15411 hardcode_into_libs=$hardcode_into_libs
15413 # Flag to hardcode \$libdir into a binary during linking.
15414 # This must work even if \$libdir does not exist.
15415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15417 # If ld is used when linking, flag to hardcode \$libdir into
15418 # a binary during linking. This must work even if \$libdir does
15420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15422 # Whether we need a single -rpath flag with a separated argument.
15423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15426 # resulting binary.
15427 hardcode_direct=$hardcode_direct_F77
15429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15430 # resulting binary.
15431 hardcode_minus_L=$hardcode_minus_L_F77
15433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15434 # the resulting binary.
15435 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15437 # Set to yes if building a shared library automatically hardcodes DIR into the library
15438 # and all subsequent libraries and executables linked against it.
15439 hardcode_automatic=$hardcode_automatic_F77
15441 # Variables whose values should be saved in libtool wrapper scripts and
15442 # restored at relink time.
15443 variables_saved_for_relink="$variables_saved_for_relink"
15445 # Whether libtool must link a program against all its dependency libraries.
15446 link_all_deplibs=$link_all_deplibs_F77
15448 # Compile-time system search path for libraries
15449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15451 # Run-time system search path for libraries
15452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15454 # Fix the shell variable \$srcfile for the compiler.
15455 fix_srcfile_path="$fix_srcfile_path_F77"
15457 # Set to yes if exported symbols are required.
15458 always_export_symbols=$always_export_symbols_F77
15460 # The commands to list exported symbols.
15461 export_symbols_cmds=$lt_export_symbols_cmds_F77
15463 # The commands to extract the exported symbol list from a shared archive.
15464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15466 # Symbols that should not be listed in the preloaded symbols.
15467 exclude_expsyms=$lt_exclude_expsyms_F77
15469 # Symbols that must always be exported.
15470 include_expsyms=$lt_include_expsyms_F77
15472 # ### END LIBTOOL TAG CONFIG: $tagname
15478 # If there is no Makefile yet, we rely on a make rule to execute
15479 # `config.status --recheck' to rerun these tests and create the
15480 # libtool script then.
15481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15482 if test -f "$ltmain_in"; then
15483 test -f Makefile && make "$ltmain"
15489 ac_cpp='$CPP $CPPFLAGS'
15490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15502 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15505 # Source file extension for Java test sources.
15508 # Object file extension for compiled Java test sources.
15512 # Code to be used in simple compile tests
15513 lt_simple_compile_test_code="class foo {}\n"
15515 # Code to be used in simple link tests
15516 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15518 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15520 # If no C compiler was specified, use CC.
15523 # Allow CC to be a program name with arguments.
15527 # Allow CC to be a program name with arguments.
15533 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15534 archive_cmds_need_lc_GCJ=no
15537 ## There is no encapsulation within the following macros, do not change
15538 ## the running order or otherwise move them around unless you know exactly
15539 ## what you are doing...
15541 lt_prog_compiler_no_builtin_flag_GCJ=
15543 if test "$GCC" = yes; then
15544 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15547 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15548 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15549 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15550 $as_echo_n "(cached) " >&6
15552 lt_cv_prog_compiler_rtti_exceptions=no
15553 ac_outfile=conftest.$ac_objext
15554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15555 lt_compiler_flag="-fno-rtti -fno-exceptions"
15556 # Insert the option either (1) after the last *FLAGS variable, or
15557 # (2) before a word containing "conftest.", or (3) at the end.
15558 # Note that $ac_compile itself does not contain backslashes and begins
15559 # with a dollar sign (not a hyphen), so the echo should work correctly.
15560 # The option is referenced via a variable to avoid confusing sed.
15561 lt_compile=`echo "$ac_compile" | $SED \
15562 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15564 -e 's:$: $lt_compiler_flag:'`
15565 (eval echo "\"\$as_me:15565: $lt_compile\"" >&5)
15566 (eval "$lt_compile" 2>conftest.err)
15568 cat conftest.err >&5
15569 echo "$as_me:15569: \$? = $ac_status" >&5
15570 if (exit $ac_status) && test -s "$ac_outfile"; then
15571 # The compiler can only warn and ignore the option if not recognized
15572 # So say no if there are warnings
15573 if test ! -s conftest.err; then
15574 lt_cv_prog_compiler_rtti_exceptions=yes
15580 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15584 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15591 lt_prog_compiler_wl_GCJ=
15592 lt_prog_compiler_pic_GCJ=
15593 lt_prog_compiler_static_GCJ=
15595 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15596 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15598 if test "$GCC" = yes; then
15599 lt_prog_compiler_wl_GCJ='-Wl,'
15600 lt_prog_compiler_static_GCJ='-static'
15604 # All AIX code is PIC.
15605 if test "$host_cpu" = ia64; then
15606 # AIX 5 now supports IA64 processor
15607 lt_prog_compiler_static_GCJ='-Bstatic'
15612 # FIXME: we need at least 68020 code to build shared libraries, but
15613 # adding the `-m68020' flag to GCC prevents building anything better,
15615 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15618 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15619 # PIC is the default for these OSes.
15622 mingw* | pw32* | os2*)
15623 # This hack is so that the source file can tell whether it is being
15624 # built for inclusion in a dll (and should export symbols for example).
15625 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15628 darwin* | rhapsody*)
15629 # PIC is the default on this platform
15630 # Common symbols not allowed in MH_DYLIB files
15631 lt_prog_compiler_pic_GCJ='-fno-common'
15635 # Just because we use GCC doesn't mean we suddenly get shared libraries
15636 # on systems that don't support them.
15637 lt_prog_compiler_can_build_shared_GCJ=no
15642 if test -d /usr/nec; then
15643 lt_prog_compiler_pic_GCJ=-Kconform_pic
15648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15649 # not for PA HP-UX.
15650 case "$host_cpu" in
15655 lt_prog_compiler_pic_GCJ='-fPIC'
15661 lt_prog_compiler_pic_GCJ='-fPIC'
15665 # PORTME Check for flag to pass linker flags through the system compiler.
15668 lt_prog_compiler_wl_GCJ='-Wl,'
15669 if test "$host_cpu" = ia64; then
15670 # AIX 5 now supports IA64 processor
15671 lt_prog_compiler_static_GCJ='-Bstatic'
15673 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15677 mingw* | pw32* | os2*)
15678 # This hack is so that the source file can tell whether it is being
15679 # built for inclusion in a dll (and should export symbols for example).
15680 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15683 hpux9* | hpux10* | hpux11*)
15684 lt_prog_compiler_wl_GCJ='-Wl,'
15685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15686 # not for PA HP-UX.
15687 case "$host_cpu" in
15692 lt_prog_compiler_pic_GCJ='+Z'
15695 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15696 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15699 irix5* | irix6* | nonstopux*)
15700 lt_prog_compiler_wl_GCJ='-Wl,'
15701 # PIC (with -KPIC) is the default.
15702 lt_prog_compiler_static_GCJ='-non_shared'
15706 lt_prog_compiler_pic_GCJ='-KPIC'
15707 lt_prog_compiler_static_GCJ='-Bstatic'
15713 lt_prog_compiler_wl_GCJ='-Wl,'
15714 lt_prog_compiler_pic_GCJ='-KPIC'
15715 lt_prog_compiler_static_GCJ='-static'
15718 lt_prog_compiler_wl_GCJ='-Wl,'
15719 # All Alpha code is PIC.
15720 lt_prog_compiler_static_GCJ='-non_shared'
15725 osf3* | osf4* | osf5*)
15726 lt_prog_compiler_wl_GCJ='-Wl,'
15727 # All OSF/1 code is PIC.
15728 lt_prog_compiler_static_GCJ='-non_shared'
15732 lt_prog_compiler_pic_GCJ='-Kpic'
15733 lt_prog_compiler_static_GCJ='-dn'
15737 lt_prog_compiler_wl_GCJ='-Wl,'
15738 lt_prog_compiler_pic_GCJ='-KPIC'
15739 lt_prog_compiler_static_GCJ='-Bstatic'
15743 lt_prog_compiler_wl_GCJ='-Qoption ld '
15744 lt_prog_compiler_pic_GCJ='-PIC'
15745 lt_prog_compiler_static_GCJ='-Bstatic'
15748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15749 lt_prog_compiler_wl_GCJ='-Wl,'
15750 lt_prog_compiler_pic_GCJ='-KPIC'
15751 lt_prog_compiler_static_GCJ='-Bstatic'
15755 if test -d /usr/nec ;then
15756 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15757 lt_prog_compiler_static_GCJ='-Bstatic'
15762 lt_prog_compiler_pic_GCJ='-pic'
15763 lt_prog_compiler_static_GCJ='-Bstatic'
15767 lt_prog_compiler_can_build_shared_GCJ=no
15772 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15773 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15776 # Check to make sure the PIC flag actually works.
15778 if test -n "$lt_prog_compiler_pic_GCJ"; then
15780 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15781 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15782 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15783 $as_echo_n "(cached) " >&6
15785 lt_prog_compiler_pic_works_GCJ=no
15786 ac_outfile=conftest.$ac_objext
15787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15788 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15789 # Insert the option either (1) after the last *FLAGS variable, or
15790 # (2) before a word containing "conftest.", or (3) at the end.
15791 # Note that $ac_compile itself does not contain backslashes and begins
15792 # with a dollar sign (not a hyphen), so the echo should work correctly.
15793 # The option is referenced via a variable to avoid confusing sed.
15794 lt_compile=`echo "$ac_compile" | $SED \
15795 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797 -e 's:$: $lt_compiler_flag:'`
15798 (eval echo "\"\$as_me:15798: $lt_compile\"" >&5)
15799 (eval "$lt_compile" 2>conftest.err)
15801 cat conftest.err >&5
15802 echo "$as_me:15802: \$? = $ac_status" >&5
15803 if (exit $ac_status) && test -s "$ac_outfile"; then
15804 # The compiler can only warn and ignore the option if not recognized
15805 # So say no if there are warnings
15806 if test ! -s conftest.err; then
15807 lt_prog_compiler_pic_works_GCJ=yes
15813 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15814 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15816 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15817 case $lt_prog_compiler_pic_GCJ in
15819 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15822 lt_prog_compiler_pic_GCJ=
15823 lt_prog_compiler_can_build_shared_GCJ=no
15828 # For platforms which do not support PIC, -DPIC is meaningless:
15830 lt_prog_compiler_pic_GCJ=
15833 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15837 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15839 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15840 $as_echo_n "(cached) " >&6
15842 lt_cv_prog_compiler_c_o_GCJ=no
15843 $rm -r conftest 2>/dev/null
15847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15849 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15850 # that will create temporary files in the current directory regardless of
15851 # the output directory. Thus, making CWD read-only will cause this test
15852 # to fail, enabling locking or at least warning the user not to do parallel
15856 lt_compiler_flag="-o out/conftest2.$ac_objext"
15857 # Insert the option either (1) after the last *FLAGS variable, or
15858 # (2) before a word containing "conftest.", or (3) at the end.
15859 # Note that $ac_compile itself does not contain backslashes and begins
15860 # with a dollar sign (not a hyphen), so the echo should work correctly.
15861 lt_compile=`echo "$ac_compile" | $SED \
15862 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15864 -e 's:$: $lt_compiler_flag:'`
15865 (eval echo "\"\$as_me:15865: $lt_compile\"" >&5)
15866 (eval "$lt_compile" 2>out/conftest.err)
15868 cat out/conftest.err >&5
15869 echo "$as_me:15869: \$? = $ac_status" >&5
15870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15872 # The compiler can only warn and ignore the option if not recognized
15873 # So say no if there are warnings
15874 if test ! -s out/conftest.err; then
15875 lt_cv_prog_compiler_c_o_GCJ=yes
15880 # SGI C++ compiler will create directory out/ii_files/ for
15881 # template instantiation
15882 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15883 $rm out/* && rmdir out
15889 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15890 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15893 hard_links="nottested"
15894 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15895 # do not overwrite the value of need_locks provided by the user
15896 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15897 $as_echo_n "checking if we can lock with hard links... " >&6; }
15900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902 ln conftest.a conftest.b 2>&5 || hard_links=no
15903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15904 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15905 $as_echo "$hard_links" >&6; }
15906 if test "$hard_links" = no; then
15907 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15908 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15915 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15916 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15919 allow_undefined_flag_GCJ=
15920 enable_shared_with_static_runtimes_GCJ=no
15922 archive_expsym_cmds_GCJ=
15923 old_archive_From_new_cmds_GCJ=
15924 old_archive_from_expsyms_cmds_GCJ=
15925 export_dynamic_flag_spec_GCJ=
15926 whole_archive_flag_spec_GCJ=
15927 thread_safe_flag_spec_GCJ=
15928 hardcode_libdir_flag_spec_GCJ=
15929 hardcode_libdir_flag_spec_ld_GCJ=
15930 hardcode_libdir_separator_GCJ=
15931 hardcode_direct_GCJ=no
15932 hardcode_minus_L_GCJ=no
15933 hardcode_shlibpath_var_GCJ=unsupported
15934 link_all_deplibs_GCJ=unknown
15935 hardcode_automatic_GCJ=no
15937 module_expsym_cmds_GCJ=
15938 always_export_symbols_GCJ=no
15939 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15940 # include_expsyms should be a list of space-separated symbols to be *always*
15941 # included in the symbol list
15942 include_expsyms_GCJ=
15943 # exclude_expsyms can be an extended regexp of symbols to exclude
15944 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15945 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15946 # as well as any symbol that contains `d'.
15947 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15948 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15949 # platforms (ab)use it in PIC code, but their linkers get confused if
15950 # the symbol is explicitly referenced. Since portable code cannot
15951 # rely on this symbol name, it's probably fine to never include it in
15952 # preloaded symbol tables.
15953 extract_expsyms_cmds=
15956 cygwin* | mingw* | pw32*)
15957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15958 # When not using gcc, we currently assume that we are using
15959 # Microsoft Visual C++.
15960 if test "$GCC" != yes; then
15970 if test "$with_gnu_ld" = yes; then
15971 # If archive_cmds runs LD, not CC, wlarc should be empty
15974 # See if GNU ld supports shared libraries.
15976 aix3* | aix4* | aix5*)
15977 # On AIX/PPC, the GNU linker is very broken
15978 if test "$host_cpu" != ia64; then
15982 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15983 *** to be unable to reliably create shared libraries on AIX.
15984 *** Therefore, libtool is disabling shared libraries support. If you
15985 *** really care for shared libraries, you may want to modify your PATH
15986 *** so that a non-GNU linker is found, and then restart.
15993 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)'
15994 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15995 hardcode_minus_L_GCJ=yes
15997 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15998 # that the semantics of dynamic libraries on AmigaOS, at least up
15999 # to version 4, is to share data among multiple programs linked
16000 # with the same dynamic library. Since this doesn't match the
16001 # behavior of shared libraries on other platforms, we can't use
16007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16008 allow_undefined_flag_GCJ=unsupported
16009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16010 # support --undefined. This deserves some investigation. FIXME
16011 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 cygwin* | mingw* | pw32*)
16018 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16019 # as there is no search path for DLLs.
16020 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16021 allow_undefined_flag_GCJ=unsupported
16022 always_export_symbols_GCJ=no
16023 enable_shared_with_static_runtimes_GCJ=yes
16024 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16027 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16028 # If the export-symbols file already is a .def file (1st line
16029 # is EXPORTS), use it as is; otherwise, prepend...
16030 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16031 cp $export_symbols $output_objdir/$soname.def;
16033 echo EXPORTS > $output_objdir/$soname.def;
16034 cat $export_symbols >> $output_objdir/$soname.def;
16036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16044 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16058 *** create shared libraries on Solaris systems. Therefore, libtool
16059 *** is disabling shared libraries support. We urge you to upgrade GNU
16060 *** binutils to release 2.9.1 or newer. Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16074 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16076 hardcode_direct_GCJ=yes
16077 hardcode_shlibpath_var_GCJ=no
16081 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16082 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16083 archive_cmds_GCJ="$tmp_archive_cmds"
16084 supports_anon_versioning=no
16085 case `$LD -v 2>/dev/null` in
16086 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16087 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16088 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16089 *\ 2.11.*) ;; # other 2.11 versions
16090 *) supports_anon_versioning=yes ;;
16092 if test $supports_anon_versioning = yes; then
16093 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16095 $echo "local: *; };" >> $output_objdir/$libname.ver~
16096 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16098 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16107 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16115 if test "$ld_shlibs_GCJ" = yes; then
16116 runpath_var=LD_RUN_PATH
16117 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16118 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16119 # ancient GNU ld didn't support --whole-archive et. al.
16120 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16121 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16123 whole_archive_flag_spec_GCJ=
16127 # PORTME fill in a description of your system's linker (not GNU ld)
16130 allow_undefined_flag_GCJ=unsupported
16131 always_export_symbols_GCJ=yes
16132 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'
16133 # Note: this linker hardcodes the directories in LIBPATH if there
16134 # are no directories specified by -L.
16135 hardcode_minus_L_GCJ=yes
16136 if test "$GCC" = yes && test -z "$link_static_flag"; then
16137 # Neither direct hardcoding nor static linking is supported with a
16139 hardcode_direct_GCJ=unsupported
16144 if test "$host_cpu" = ia64; then
16145 # On IA64, the linker does run time linking by default, so we don't
16146 # have to do anything special.
16147 aix_use_runtimelinking=no
16148 exp_sym_flag='-Bexport'
16151 # If we're using GNU nm, then we don't want the "-C" option.
16152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16154 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'
16156 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'
16158 aix_use_runtimelinking=no
16160 # Test if we are trying to use run time linking or normal
16161 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16162 # need to do runtime linking.
16163 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16164 for ld_flag in $LDFLAGS; do
16165 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16166 aix_use_runtimelinking=yes
16172 exp_sym_flag='-bexport'
16173 no_entry_flag='-bnoentry'
16176 # When large executables or shared objects are built, AIX ld can
16177 # have problems creating the table of contents. If linking a library
16178 # or program results in "error TOC overflow" add -mminimal-toc to
16179 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16180 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16182 archive_cmds_GCJ=''
16183 hardcode_direct_GCJ=yes
16184 hardcode_libdir_separator_GCJ=':'
16185 link_all_deplibs_GCJ=yes
16187 if test "$GCC" = yes; then
16188 case $host_os in aix4.012|aix4.012.*)
16189 # We only want to do this on AIX 4.2 and lower, the check
16190 # below for broken collect2 doesn't work under 4.3+
16191 collect2name=`${CC} -print-prog-name=collect2`
16192 if test -f "$collect2name" && \
16193 strings "$collect2name" | grep resolve_lib_name >/dev/null
16195 # We have reworked collect2
16196 hardcode_direct_GCJ=yes
16198 # We have old collect2
16199 hardcode_direct_GCJ=unsupported
16200 # It fails to find uninstalled libraries when the uninstalled
16201 # path is not listed in the libpath. Setting hardcode_minus_L
16202 # to unsupported forces relinking
16203 hardcode_minus_L_GCJ=yes
16204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16205 hardcode_libdir_separator_GCJ=
16208 shared_flag='-shared'
16211 if test "$host_cpu" = ia64; then
16212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16213 # chokes on -Wl,-G. The following line is correct:
16216 if test "$aix_use_runtimelinking" = yes; then
16217 shared_flag='${wl}-G'
16219 shared_flag='${wl}-bM:SRE'
16224 # It seems that -bexpall does not export symbols beginning with
16225 # underscore (_), so it is better to generate a list of symbols to export.
16226 always_export_symbols_GCJ=yes
16227 if test "$aix_use_runtimelinking" = yes; then
16228 # Warning - without using the other runtime loading flags (-brtl),
16229 # -berok will link without error, but may produce a broken library.
16230 allow_undefined_flag_GCJ='-berok'
16231 # Determine the default libpath from the value encoded in an empty executable.
16232 cat >conftest.$ac_ext <<_ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (ac_try="$ac_link"
16249 case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16254 $as_echo "$ac_try_echo") >&5
16255 (eval "$ac_link") 2>conftest.er1
16257 grep -v '^ *+' conftest.er1 >conftest.err
16259 cat conftest.err >&5
16260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest$ac_exeext && {
16265 test "$cross_compiling" = yes ||
16266 $as_test_x conftest$ac_exeext
16269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16271 # Check for a 64-bit object if we didn't find anything.
16272 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; }
16275 $as_echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16281 rm -rf conftest.dSYM
16282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16283 conftest$ac_exeext conftest.$ac_ext
16284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16286 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16287 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16289 if test "$host_cpu" = ia64; then
16290 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16291 allow_undefined_flag_GCJ="-z nodefs"
16292 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16294 # Determine the default libpath from the value encoded in an empty executable.
16295 cat >conftest.$ac_ext <<_ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318 (eval "$ac_link") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest$ac_exeext && {
16328 test "$cross_compiling" = yes ||
16329 $as_test_x conftest$ac_exeext
16332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16334 # Check for a 64-bit object if we didn't find anything.
16335 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; }
16338 $as_echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16344 rm -rf conftest.dSYM
16345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16346 conftest$ac_exeext conftest.$ac_ext
16347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16349 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16350 # Warning - without using the other run time loading flags,
16351 # -berok will link without error, but may produce a broken library.
16352 no_undefined_flag_GCJ=' ${wl}-bernotok'
16353 allow_undefined_flag_GCJ=' ${wl}-berok'
16354 # -bexpall does not export symbols beginning with underscore (_)
16355 always_export_symbols_GCJ=yes
16356 # Exported symbols can be pulled into shared objects from archives
16357 whole_archive_flag_spec_GCJ=' '
16358 archive_cmds_need_lc_GCJ=yes
16359 # This is similar to how AIX traditionally builds it's shared libraries.
16360 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16366 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)'
16367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368 hardcode_minus_L_GCJ=yes
16369 # see comment about different semantics on the GNU ld section
16374 export_dynamic_flag_spec_GCJ=-rdynamic
16377 cygwin* | mingw* | pw32*)
16378 # When not using gcc, we currently assume that we are using
16379 # Microsoft Visual C++.
16380 # hardcode_libdir_flag_spec is actually meaningless, as there is
16381 # no search path for DLLs.
16382 hardcode_libdir_flag_spec_GCJ=' '
16383 allow_undefined_flag_GCJ=unsupported
16384 # Tell ltmain to make .lib files, not .a files.
16386 # Tell ltmain to make .dll files, not .so files.
16388 # FIXME: Setting linknames here is a bad hack.
16389 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16390 # The linker will automatically build a .lib file if we build a DLL.
16391 old_archive_From_new_cmds_GCJ='true'
16392 # FIXME: Should let the user specify the lib program.
16393 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16394 fix_srcfile_path='`cygpath -w "$srcfile"`'
16395 enable_shared_with_static_runtimes_GCJ=yes
16398 darwin* | rhapsody*)
16399 if test "$GXX" = yes ; then
16400 archive_cmds_need_lc_GCJ=no
16402 rhapsody* | darwin1.[012])
16403 allow_undefined_flag_GCJ='-undefined suppress'
16406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16407 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16409 case ${MACOSX_DEPLOYMENT_TARGET} in
16411 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16414 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16420 lt_int_apple_cc_single_mod=no
16421 output_verbose_link_cmd='echo'
16422 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16423 lt_int_apple_cc_single_mod=yes
16425 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16426 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16428 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16430 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16432 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16433 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16435 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16437 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}'
16438 hardcode_direct_GCJ=no
16439 hardcode_automatic_GCJ=yes
16440 hardcode_shlibpath_var_GCJ=unsupported
16441 whole_archive_flag_spec_GCJ='-all_load $convenience'
16442 link_all_deplibs_GCJ=yes
16449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16451 hardcode_shlibpath_var_GCJ=no
16458 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16459 # support. Future versions do this automatically, but an explicit c++rt0.o
16460 # does not break anything, and helps significantly (at the cost of a little
16463 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16464 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16465 hardcode_direct_GCJ=yes
16466 hardcode_shlibpath_var_GCJ=no
16469 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16471 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_direct_GCJ=yes
16473 hardcode_minus_L_GCJ=yes
16474 hardcode_shlibpath_var_GCJ=no
16477 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16478 freebsd* | kfreebsd*-gnu)
16479 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16480 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16481 hardcode_direct_GCJ=yes
16482 hardcode_shlibpath_var_GCJ=no
16486 if test "$GCC" = yes; then
16487 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'
16489 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'
16491 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16492 hardcode_libdir_separator_GCJ=:
16493 hardcode_direct_GCJ=yes
16495 # hardcode_minus_L: Not really in the search PATH,
16496 # but as the default location of the library.
16497 hardcode_minus_L_GCJ=yes
16498 export_dynamic_flag_spec_GCJ='${wl}-E'
16502 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16503 case "$host_cpu" in
16505 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16512 case "$host_cpu" in
16514 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16521 if test "$with_gnu_ld" = no; then
16522 case "$host_cpu" in
16524 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16525 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16526 hardcode_libdir_separator_GCJ=:
16527 hardcode_direct_GCJ=no
16528 hardcode_shlibpath_var_GCJ=no
16531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532 hardcode_direct_GCJ=no
16533 hardcode_shlibpath_var_GCJ=no
16535 # hardcode_minus_L: Not really in the search PATH,
16536 # but as the default location of the library.
16537 hardcode_minus_L_GCJ=yes
16540 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16541 hardcode_libdir_separator_GCJ=:
16542 hardcode_direct_GCJ=yes
16543 export_dynamic_flag_spec_GCJ='${wl}-E'
16545 # hardcode_minus_L: Not really in the search PATH,
16546 # but as the default location of the library.
16547 hardcode_minus_L_GCJ=yes
16553 irix5* | irix6* | nonstopux*)
16554 if test "$GCC" = yes; then
16555 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'
16557 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'
16558 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16560 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16561 hardcode_libdir_separator_GCJ=:
16562 link_all_deplibs_GCJ=yes
16566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16567 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16569 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16571 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16572 hardcode_direct_GCJ=yes
16573 hardcode_shlibpath_var_GCJ=no
16577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_direct_GCJ=yes
16579 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16580 hardcode_libdir_separator_GCJ=:
16581 hardcode_shlibpath_var_GCJ=no
16585 hardcode_direct_GCJ=yes
16586 hardcode_shlibpath_var_GCJ=no
16587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16588 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16590 export_dynamic_flag_spec_GCJ='${wl}-E'
16593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16594 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16595 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16598 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16606 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16607 hardcode_minus_L_GCJ=yes
16608 allow_undefined_flag_GCJ=unsupported
16609 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'
16610 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16614 if test "$GCC" = yes; then
16615 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16616 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'
16618 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16619 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'
16621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16622 hardcode_libdir_separator_GCJ=:
16625 osf4* | osf5*) # as osf3* with the addition of -msym flag
16626 if test "$GCC" = yes; then
16627 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16628 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'
16629 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16631 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16632 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'
16633 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~
16634 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16636 # Both c and cxx compiler support -rpath directly
16637 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16639 hardcode_libdir_separator_GCJ=:
16643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_shlibpath_var_GCJ=no
16645 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16646 runpath_var=LD_RUN_PATH
16647 hardcode_runpath_var=yes
16651 no_undefined_flag_GCJ=' -z text'
16652 if test "$GCC" = yes; then
16653 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16655 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16657 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16661 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16662 hardcode_shlibpath_var_GCJ=no
16664 solaris2.[0-5] | solaris2.[0-5].*) ;;
16665 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16666 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16668 link_all_deplibs_GCJ=yes
16672 if test "x$host_vendor" = xsequent; then
16673 # Use $CC to link under sequent, because it throws in some extra .o
16674 # files that make .init and .fini sections work.
16675 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16677 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16680 hardcode_direct_GCJ=yes
16681 hardcode_minus_L_GCJ=yes
16682 hardcode_shlibpath_var_GCJ=no
16686 case $host_vendor in
16688 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_direct_GCJ=yes # is this really true???
16692 ## LD is ld it makes a PLAMLIB
16693 ## CC just makes a GrossModule.
16694 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16695 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16696 hardcode_direct_GCJ=no
16699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16703 runpath_var='LD_RUN_PATH'
16704 hardcode_shlibpath_var_GCJ=no
16708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 hardcode_shlibpath_var_GCJ=no
16710 export_dynamic_flag_spec_GCJ='-Bexport'
16714 if test -d /usr/nec; then
16715 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716 hardcode_shlibpath_var_GCJ=no
16717 runpath_var=LD_RUN_PATH
16718 hardcode_runpath_var=yes
16724 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16725 hardcode_direct_GCJ=yes
16726 hardcode_minus_L_GCJ=no
16727 hardcode_shlibpath_var_GCJ=no
16728 hardcode_runpath_var=yes
16729 runpath_var=LD_RUN_PATH
16732 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16733 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16734 if test "$GCC" = yes; then
16735 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16739 runpath_var='LD_RUN_PATH'
16740 hardcode_shlibpath_var_GCJ=no
16744 no_undefined_flag_GCJ=' -z text'
16745 # $CC -shared without GNU ld will not create a library from C++
16746 # object files and a static libstdc++, better avoid it by now
16747 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16750 hardcode_libdir_flag_spec_GCJ=
16751 hardcode_shlibpath_var_GCJ=no
16752 runpath_var='LD_RUN_PATH'
16756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16758 hardcode_shlibpath_var_GCJ=no
16767 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16768 $as_echo "$ld_shlibs_GCJ" >&6; }
16769 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16772 if test "$GCC" = yes; then
16773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16777 # Do we need to explicitly link libc?
16779 case "x$archive_cmds_need_lc_GCJ" in
16781 # Assume -lc should be added
16782 archive_cmds_need_lc_GCJ=yes
16784 if test "$enable_shared" = yes && test "$GCC" = yes; then
16785 case $archive_cmds_GCJ in
16787 # FIXME: we may have to deal with multi-command sequences.
16790 # Test whether the compiler implicitly links with -lc since on some
16791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16792 # to ld, don't add -lc before -lgcc.
16793 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16794 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>&5
16801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } 2>conftest.err; then
16805 libobjs=conftest.$ac_objext
16807 wl=$lt_prog_compiler_wl_GCJ
16813 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16814 allow_undefined_flag_GCJ=
16815 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16816 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }
16821 archive_cmds_need_lc_GCJ=no
16823 archive_cmds_need_lc_GCJ=yes
16825 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16827 cat conftest.err 1>&5
16830 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16831 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16838 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16839 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16840 library_names_spec=
16841 libname_spec='lib$name'
16845 postuninstall_cmds=
16849 shlibpath_overrides_runpath=unknown
16851 dynamic_linker="$host_os ld.so"
16852 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16853 if test "$GCC" = yes; then
16854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16855 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16856 # if the path contains ";" then we assume it to be the separator
16857 # otherwise default to the standard path separator (i.e. ":") - it is
16858 # assumed that no part of a normal pathname contains ";" but that should
16859 # okay in the real world where ";" in dirpaths is itself problematic.
16860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16867 need_lib_prefix=unknown
16868 hardcode_into_libs=no
16870 # when you set need_version to no, make sure it does not cause -set_version
16871 # flags to be left without arguments
16872 need_version=unknown
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16878 shlibpath_var=LIBPATH
16880 # AIX 3 has no versioning support, so we append a major version to the name.
16881 soname_spec='${libname}${release}${shared_ext}$major'
16888 hardcode_into_libs=yes
16889 if test "$host_cpu" = ia64; then
16890 # AIX 5 supports IA64
16891 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16892 shlibpath_var=LD_LIBRARY_PATH
16894 # With GCC up to 2.95.x, collect2 would create an import file
16895 # for dependence libraries. The import file would start with
16896 # the line `#! .'. This would cause the generated library to
16897 # depend on `.', always an invalid library. This was fixed in
16898 # development snapshots of GCC prior to 3.0.
16900 aix4 | aix4.[01] | aix4.[01].*)
16901 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16903 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16906 can_build_shared=no
16910 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16911 # soname into executable. Probably we can add versioning support to
16912 # collect2, so additional links can be useful in future.
16913 if test "$aix_use_runtimelinking" = yes; then
16914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16915 # instead of lib<name>.a to let people know that these are not
16916 # typical AIX shared libraries.
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919 # We preserve .a as extension for shared libraries through AIX4.2
16920 # and later when we are not doing run time linking.
16921 library_names_spec='${libname}${release}.a $libname.a'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16924 shlibpath_var=LIBPATH
16929 library_names_spec='$libname.ixlibrary $libname.a'
16930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16931 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'
16935 library_names_spec='${libname}${shared_ext}'
16936 dynamic_linker="$host_os ld.so"
16937 shlibpath_var=LIBRARY_PATH
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16949 # the default ld.so.conf also contains /usr/contrib/lib and
16950 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16951 # libtool to hard-code these into programs
16954 cygwin* | mingw* | pw32*)
16955 version_type=windows
16960 case $GCC,$host_os in
16961 yes,cygwin* | yes,mingw* | yes,pw32*)
16962 library_names_spec='$libname.dll.a'
16963 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16964 postinstall_cmds='base_file=`basename \${file}`~
16965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16966 dldir=$destdir/`dirname \$dlpath`~
16967 test -d \$dldir || mkdir -p \$dldir~
16968 $install_prog $dir/$dlname \$dldir/$dlname'
16969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16970 dlpath=$dir/\$dldll~
16972 shlibpath_overrides_runpath=yes
16976 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16977 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16978 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16981 # MinGW DLLs use traditional 'lib' prefix
16982 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16983 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16984 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16985 # It is most probably a Windows format PATH printed by
16986 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16987 # path with ; separators, and with drive letters. We can handle the
16988 # drive letters (cygwin fileutils understands them), so leave them,
16989 # especially as we might pass files found there to a mingw objdump,
16990 # which wouldn't understand a cygwinified path. Ahh.
16991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16997 # pw32 DLLs use 'pw' prefix rather than 'lib'
16998 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17004 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17007 dynamic_linker='Win32 ld.exe'
17008 # FIXME: first we should search . and the directory the executable is in
17012 darwin* | rhapsody*)
17013 dynamic_linker="$host_os dyld"
17014 version_type=darwin
17017 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17018 soname_spec='${libname}${release}${major}$shared_ext'
17019 shlibpath_overrides_runpath=yes
17020 shlibpath_var=DYLD_LIBRARY_PATH
17021 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17022 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17023 if test "$GCC" = yes; then
17024 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"`
17026 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=no
17052 hardcode_into_libs=yes
17053 dynamic_linker='GNU ld.so'
17057 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17058 version_type=freebsd-$objformat
17059 case $version_type in
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17070 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes
17075 freebsd3.01* | freebsdelf3.01*)
17076 shlibpath_overrides_runpath=yes
17077 hardcode_into_libs=yes
17080 shlibpath_overrides_runpath=no
17081 hardcode_into_libs=yes
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 shlibpath_var=LD_LIBRARY_PATH
17093 hardcode_into_libs=yes
17096 hpux9* | hpux10* | hpux11*)
17097 # Give a soname corresponding to the major version so that dld.sl refuses to
17098 # link against other versions.
17102 case "$host_cpu" in
17105 hardcode_into_libs=yes
17106 dynamic_linker="$host_os dld.so"
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 if test "X$HPUX_IA64_MODE" = X32; then
17112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17120 hardcode_into_libs=yes
17121 dynamic_linker="$host_os dld.sl"
17122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17131 dynamic_linker="$host_os dld.sl"
17132 shlibpath_var=SHLIB_PATH
17133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17138 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17139 postinstall_cmds='chmod 555 $lib'
17142 irix5* | irix6* | nonstopux*)
17144 nonstopux*) version_type=nonstopux ;;
17146 if test "$lt_cv_prog_gnu_ld" = yes; then
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17157 irix5* | nonstopux*)
17158 libsuff= shlibsuff=
17161 case $LD in # libtool.m4 will add one of these switches to LD
17162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17163 libsuff= shlibsuff= libmagic=32-bit;;
17164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17165 libsuff=32 shlibsuff=N32 libmagic=N32;;
17166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17168 *) libsuff= shlibsuff= libmagic=never-match;;
17172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17173 shlibpath_overrides_runpath=no
17174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17176 hardcode_into_libs=yes
17179 # No shared lib support for Linux oldld, aout, or coff.
17180 linux*oldld* | linux*aout* | linux*coff*)
17184 # This must be Linux ELF.
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath=no
17194 # This implies no fast_install, which is unacceptable.
17195 # Some rework will be needed to allow for fast_install
17196 # before this can be enabled.
17197 hardcode_into_libs=yes
17199 # We used to test for /lib/ld.so.1 and disable shared libraries on
17200 # powerpc, because MkLinux only supported shared libraries with the
17201 # GNU dynamic linker. Since this was broken with cross compilers,
17202 # most powerpc-linux boxes support dynamic linking these days and
17203 # people can always --disable-shared, the test was removed, and we
17204 # assume the GNU/Linux dynamic linker is in use.
17205 dynamic_linker='GNU/Linux ld.so'
17212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17215 dynamic_linker='NetBSD (a.out) ld.so'
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17218 soname_spec='${libname}${release}${shared_ext}$major'
17219 dynamic_linker='NetBSD ld.elf_so'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=yes
17223 hardcode_into_libs=yes
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238 soname_spec='${libname}${release}${shared_ext}$major'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 shlibpath_overrides_runpath=yes
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17252 openbsd2.[89] | openbsd2.[89].*)
17253 shlibpath_overrides_runpath=no
17256 shlibpath_overrides_runpath=yes
17260 shlibpath_overrides_runpath=yes
17265 libname_spec='$name'
17268 library_names_spec='$libname${shared_ext} $libname.a'
17269 dynamic_linker='OS/2 ld.exe'
17270 shlibpath_var=LIBPATH
17273 osf3* | osf4* | osf5*)
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 shlibpath_var=LD_LIBRARY_PATH
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 shlibpath_overrides_runpath=yes
17299 hardcode_into_libs=yes
17300 # ldd complains unless libraries are executable
17301 postinstall_cmds='chmod +x $lib'
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17308 shlibpath_var=LD_LIBRARY_PATH
17309 shlibpath_overrides_runpath=yes
17310 if test "$with_gnu_ld" = yes; then
17316 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319 soname_spec='${libname}${release}${shared_ext}$major'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 case $host_vendor in
17323 shlibpath_overrides_runpath=no
17325 export_dynamic_flag_spec='${wl}-Blargedynsym'
17326 runpath_var=LD_RUN_PATH
17334 shlibpath_overrides_runpath=no
17335 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17341 if test -d /usr/nec ;then
17343 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17344 soname_spec='$libname${shared_ext}.$major'
17345 shlibpath_var=LD_LIBRARY_PATH
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 shlibpath_var=LD_LIBRARY_PATH
17360 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17361 $as_echo "$dynamic_linker" >&6; }
17362 test "$dynamic_linker" = no && can_build_shared=no
17364 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17365 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17366 hardcode_action_GCJ=
17367 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17368 test -n "$runpath_var GCJ" || \
17369 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17371 # We can hardcode non-existant directories.
17372 if test "$hardcode_direct_GCJ" != no &&
17373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17374 # have to relink, otherwise we might link with an installed library
17375 # when we should be linking with a yet-to-be-installed one
17376 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17377 test "$hardcode_minus_L_GCJ" != no; then
17378 # Linking always hardcodes the temporary library directory.
17379 hardcode_action_GCJ=relink
17381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17382 hardcode_action_GCJ=immediate
17385 # We cannot hardcode anything, or else we can only hardcode existing
17387 hardcode_action_GCJ=unsupported
17389 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17390 $as_echo "$hardcode_action_GCJ" >&6; }
17392 if test "$hardcode_action_GCJ" = relink; then
17393 # Fast installation is not supported
17394 enable_fast_install=no
17395 elif test "$shlibpath_overrides_runpath" = yes ||
17396 test "$enable_shared" = no; then
17397 # Fast installation is not necessary
17398 enable_fast_install=needless
17403 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17404 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17405 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17406 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17407 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17408 { $as_echo "$as_me:$LINENO: result: yes" >&5
17409 $as_echo "yes" >&6; }
17411 # FIXME - insert some real tests, host_os isn't really good enough
17414 if test -n "$STRIP" ; then
17415 striplib="$STRIP -x"
17416 { $as_echo "$as_me:$LINENO: result: yes" >&5
17417 $as_echo "yes" >&6; }
17419 { $as_echo "$as_me:$LINENO: result: no" >&5
17420 $as_echo "no" >&6; }
17424 { $as_echo "$as_me:$LINENO: result: no" >&5
17425 $as_echo "no" >&6; }
17430 if test "x$enable_dlopen" != xyes; then
17431 enable_dlopen=unknown
17432 enable_dlopen_self=unknown
17433 enable_dlopen_self_static=unknown
17440 lt_cv_dlopen="load_add_on"
17442 lt_cv_dlopen_self=yes
17446 lt_cv_dlopen="LoadLibrary"
17451 lt_cv_dlopen="dlopen"
17456 # if libdl is installed we need to link against it
17457 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17460 $as_echo_n "(cached) " >&6
17462 ac_check_lib_save_LIBS=$LIBS
17464 cat >conftest.$ac_ext <<_ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17471 /* Override any GCC internal prototype to avoid an error.
17472 Use char because int might match the return type of a GCC
17473 builtin and then its argument prototype would still apply. */
17486 rm -f conftest.$ac_objext conftest$ac_exeext
17487 if { (ac_try="$ac_link"
17488 case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17493 $as_echo "$ac_try_echo") >&5
17494 (eval "$ac_link") 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } && {
17501 test -z "$ac_c_werror_flag" ||
17502 test ! -s conftest.err
17503 } && test -s conftest$ac_exeext && {
17504 test "$cross_compiling" = yes ||
17505 $as_test_x conftest$ac_exeext
17507 ac_cv_lib_dl_dlopen=yes
17509 $as_echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17512 ac_cv_lib_dl_dlopen=no
17515 rm -rf conftest.dSYM
17516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17517 conftest$ac_exeext conftest.$ac_ext
17518 LIBS=$ac_check_lib_save_LIBS
17520 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17521 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17522 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
17523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17526 lt_cv_dlopen="dyld"
17528 lt_cv_dlopen_self=yes
17535 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
17536 $as_echo_n "checking for shl_load... " >&6; }
17537 if test "${ac_cv_func_shl_load+set}" = set; then
17538 $as_echo_n "(cached) " >&6
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17548 #define shl_load innocuous_shl_load
17550 /* System header to define __stub macros and hopefully few prototypes,
17551 which can conflict with char shl_load (); below.
17552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17553 <limits.h> exists even on freestanding compilers. */
17556 # include <limits.h>
17558 # include <assert.h>
17563 /* Override any GCC internal prototype to avoid an error.
17564 Use char because int might match the return type of a GCC
17565 builtin and then its argument prototype would still apply. */
17570 /* The GNU C library defines this for functions which it implements
17571 to always fail with ENOSYS. Some functions are actually named
17572 something starting with __ and the normal name is an alias. */
17573 #if defined __stub_shl_load || defined __stub___shl_load
17580 return shl_load ();
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (ac_try="$ac_link"
17587 case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17592 $as_echo "$ac_try_echo") >&5
17593 (eval "$ac_link") 2>conftest.er1
17595 grep -v '^ *+' conftest.er1 >conftest.err
17597 cat conftest.err >&5
17598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } && {
17600 test -z "$ac_c_werror_flag" ||
17601 test ! -s conftest.err
17602 } && test -s conftest$ac_exeext && {
17603 test "$cross_compiling" = yes ||
17604 $as_test_x conftest$ac_exeext
17606 ac_cv_func_shl_load=yes
17608 $as_echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_cv_func_shl_load=no
17614 rm -rf conftest.dSYM
17615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17616 conftest$ac_exeext conftest.$ac_ext
17618 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17619 $as_echo "$ac_cv_func_shl_load" >&6; }
17620 if test "x$ac_cv_func_shl_load" = x""yes; then
17621 lt_cv_dlopen="shl_load"
17623 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17624 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17625 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17626 $as_echo_n "(cached) " >&6
17628 ac_check_lib_save_LIBS=$LIBS
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17637 /* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17647 return shl_load ();
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (ac_try="$ac_link"
17654 case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17659 $as_echo "$ac_try_echo") >&5
17660 (eval "$ac_link") 2>conftest.er1
17662 grep -v '^ *+' conftest.er1 >conftest.err
17664 cat conftest.err >&5
17665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } && {
17667 test -z "$ac_c_werror_flag" ||
17668 test ! -s conftest.err
17669 } && test -s conftest$ac_exeext && {
17670 test "$cross_compiling" = yes ||
17671 $as_test_x conftest$ac_exeext
17673 ac_cv_lib_dld_shl_load=yes
17675 $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_cv_lib_dld_shl_load=no
17681 rm -rf conftest.dSYM
17682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17683 conftest$ac_exeext conftest.$ac_ext
17684 LIBS=$ac_check_lib_save_LIBS
17686 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17687 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17688 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
17689 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17691 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
17692 $as_echo_n "checking for dlopen... " >&6; }
17693 if test "${ac_cv_func_dlopen+set}" = set; then
17694 $as_echo_n "(cached) " >&6
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17704 #define dlopen innocuous_dlopen
17706 /* System header to define __stub macros and hopefully few prototypes,
17707 which can conflict with char dlopen (); below.
17708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17709 <limits.h> exists even on freestanding compilers. */
17712 # include <limits.h>
17714 # include <assert.h>
17719 /* Override any GCC internal prototype to avoid an error.
17720 Use char because int might match the return type of a GCC
17721 builtin and then its argument prototype would still apply. */
17726 /* The GNU C library defines this for functions which it implements
17727 to always fail with ENOSYS. Some functions are actually named
17728 something starting with __ and the normal name is an alias. */
17729 #if defined __stub_dlopen || defined __stub___dlopen
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (ac_try="$ac_link"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17748 $as_echo "$ac_try_echo") >&5
17749 (eval "$ac_link") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest$ac_exeext && {
17759 test "$cross_compiling" = yes ||
17760 $as_test_x conftest$ac_exeext
17762 ac_cv_func_dlopen=yes
17764 $as_echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 ac_cv_func_dlopen=no
17770 rm -rf conftest.dSYM
17771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17772 conftest$ac_exeext conftest.$ac_ext
17774 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17775 $as_echo "$ac_cv_func_dlopen" >&6; }
17776 if test "x$ac_cv_func_dlopen" = x""yes; then
17777 lt_cv_dlopen="dlopen"
17779 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17780 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17782 $as_echo_n "(cached) " >&6
17784 ac_check_lib_save_LIBS=$LIBS
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17793 /* Override any GCC internal prototype to avoid an error.
17794 Use char because int might match the return type of a GCC
17795 builtin and then its argument prototype would still apply. */
17808 rm -f conftest.$ac_objext conftest$ac_exeext
17809 if { (ac_try="$ac_link"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17815 $as_echo "$ac_try_echo") >&5
17816 (eval "$ac_link") 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } && {
17823 test -z "$ac_c_werror_flag" ||
17824 test ! -s conftest.err
17825 } && test -s conftest$ac_exeext && {
17826 test "$cross_compiling" = yes ||
17827 $as_test_x conftest$ac_exeext
17829 ac_cv_lib_dl_dlopen=yes
17831 $as_echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17834 ac_cv_lib_dl_dlopen=no
17837 rm -rf conftest.dSYM
17838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17839 conftest$ac_exeext conftest.$ac_ext
17840 LIBS=$ac_check_lib_save_LIBS
17842 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17844 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
17845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17847 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17848 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17850 $as_echo_n "(cached) " >&6
17852 ac_check_lib_save_LIBS=$LIBS
17853 LIBS="-lsvld $LIBS"
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 /* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17883 $as_echo "$ac_try_echo") >&5
17884 (eval "$ac_link") 2>conftest.er1
17886 grep -v '^ *+' conftest.er1 >conftest.err
17888 cat conftest.err >&5
17889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); } && {
17891 test -z "$ac_c_werror_flag" ||
17892 test ! -s conftest.err
17893 } && test -s conftest$ac_exeext && {
17894 test "$cross_compiling" = yes ||
17895 $as_test_x conftest$ac_exeext
17897 ac_cv_lib_svld_dlopen=yes
17899 $as_echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 ac_cv_lib_svld_dlopen=no
17905 rm -rf conftest.dSYM
17906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17907 conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17910 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17911 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17912 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
17913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17915 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17916 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17918 $as_echo_n "(cached) " >&6
17920 ac_check_lib_save_LIBS=$LIBS
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17929 /* Override any GCC internal prototype to avoid an error.
17930 Use char because int might match the return type of a GCC
17931 builtin and then its argument prototype would still apply. */
17939 return dld_link ();
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17951 $as_echo "$ac_try_echo") >&5
17952 (eval "$ac_link") 2>conftest.er1
17954 grep -v '^ *+' conftest.er1 >conftest.err
17956 cat conftest.err >&5
17957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && {
17959 test -z "$ac_c_werror_flag" ||
17960 test ! -s conftest.err
17961 } && test -s conftest$ac_exeext && {
17962 test "$cross_compiling" = yes ||
17963 $as_test_x conftest$ac_exeext
17965 ac_cv_lib_dld_dld_link=yes
17967 $as_echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_cv_lib_dld_dld_link=no
17973 rm -rf conftest.dSYM
17974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17975 conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17978 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17979 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17980 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
17981 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18002 if test "x$lt_cv_dlopen" != xno; then
18008 case $lt_cv_dlopen in
18010 save_CPPFLAGS="$CPPFLAGS"
18011 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18013 save_LDFLAGS="$LDFLAGS"
18014 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18017 LIBS="$lt_cv_dlopen_libs $LIBS"
18019 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18020 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18021 if test "${lt_cv_dlopen_self+set}" = set; then
18022 $as_echo_n "(cached) " >&6
18024 if test "$cross_compiling" = yes; then :
18025 lt_cv_dlopen_self=cross
18027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18028 lt_status=$lt_dlunknown
18029 cat > conftest.$ac_ext <<EOF
18030 #line 18030 "configure"
18031 #include "confdefs.h"
18040 # define LT_DLGLOBAL RTLD_GLOBAL
18043 # define LT_DLGLOBAL DL_GLOBAL
18045 # define LT_DLGLOBAL 0
18049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18050 find out it does not work in some platform. */
18051 #ifndef LT_DLLAZY_OR_NOW
18053 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18056 # define LT_DLLAZY_OR_NOW DL_LAZY
18059 # define LT_DLLAZY_OR_NOW RTLD_NOW
18062 # define LT_DLLAZY_OR_NOW DL_NOW
18064 # define LT_DLLAZY_OR_NOW 0
18072 extern "C" void exit (int);
18075 void fnord() { int i=42;}
18078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18079 int status = $lt_dlunknown;
18083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18084 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18085 /* dlclose (self); */
18091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092 (eval $ac_link) 2>&5
18094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18096 (./conftest; exit; ) 2>/dev/null
18098 case x$lt_status in
18099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18101 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18104 # compilation failed
18105 lt_cv_dlopen_self=no
18112 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18113 $as_echo "$lt_cv_dlopen_self" >&6; }
18115 if test "x$lt_cv_dlopen_self" = xyes; then
18116 LDFLAGS="$LDFLAGS $link_static_flag"
18117 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18118 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18119 if test "${lt_cv_dlopen_self_static+set}" = set; then
18120 $as_echo_n "(cached) " >&6
18122 if test "$cross_compiling" = yes; then :
18123 lt_cv_dlopen_self_static=cross
18125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18126 lt_status=$lt_dlunknown
18127 cat > conftest.$ac_ext <<EOF
18128 #line 18128 "configure"
18129 #include "confdefs.h"
18138 # define LT_DLGLOBAL RTLD_GLOBAL
18141 # define LT_DLGLOBAL DL_GLOBAL
18143 # define LT_DLGLOBAL 0
18147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18148 find out it does not work in some platform. */
18149 #ifndef LT_DLLAZY_OR_NOW
18151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18154 # define LT_DLLAZY_OR_NOW DL_LAZY
18157 # define LT_DLLAZY_OR_NOW RTLD_NOW
18160 # define LT_DLLAZY_OR_NOW DL_NOW
18162 # define LT_DLLAZY_OR_NOW 0
18170 extern "C" void exit (int);
18173 void fnord() { int i=42;}
18176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18177 int status = $lt_dlunknown;
18181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18183 /* dlclose (self); */
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>&5
18192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18194 (./conftest; exit; ) 2>/dev/null
18196 case x$lt_status in
18197 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18198 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18199 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18202 # compilation failed
18203 lt_cv_dlopen_self_static=no
18210 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18211 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18214 CPPFLAGS="$save_CPPFLAGS"
18215 LDFLAGS="$save_LDFLAGS"
18220 case $lt_cv_dlopen_self in
18221 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18222 *) enable_dlopen_self=unknown ;;
18225 case $lt_cv_dlopen_self_static in
18226 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18227 *) enable_dlopen_self_static=unknown ;;
18232 # The else clause should only fire when bootstrapping the
18233 # libtool distribution, otherwise you forgot to ship ltmain.sh
18234 # with your package, and you will get complaints that there are
18235 # no rules to generate ltmain.sh.
18236 if test -f "$ltmain"; then
18237 # See if we are running on zsh, and set the options which allow our commands through
18238 # without removal of \ escapes.
18239 if test -n "${ZSH_VERSION+set}" ; then
18240 setopt NO_GLOB_SUBST
18242 # Now quote all the things that may contain metacharacters while being
18243 # careful not to overquote the AC_SUBSTed values. We take copies of the
18244 # variables and quote the copies for generation of the libtool script.
18245 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18247 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18248 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18249 deplibs_check_method reload_flag reload_cmds need_locks \
18250 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18251 lt_cv_sys_global_symbol_to_c_name_address \
18252 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18253 old_postinstall_cmds old_postuninstall_cmds \
18257 lt_prog_compiler_wl_GCJ \
18258 lt_prog_compiler_pic_GCJ \
18259 lt_prog_compiler_static_GCJ \
18260 lt_prog_compiler_no_builtin_flag_GCJ \
18261 export_dynamic_flag_spec_GCJ \
18262 thread_safe_flag_spec_GCJ \
18263 whole_archive_flag_spec_GCJ \
18264 enable_shared_with_static_runtimes_GCJ \
18265 old_archive_cmds_GCJ \
18266 old_archive_from_new_cmds_GCJ \
18267 predep_objects_GCJ \
18268 postdep_objects_GCJ \
18271 compiler_lib_search_path_GCJ \
18273 archive_expsym_cmds_GCJ \
18274 postinstall_cmds_GCJ \
18275 postuninstall_cmds_GCJ \
18276 old_archive_from_expsyms_cmds_GCJ \
18277 allow_undefined_flag_GCJ \
18278 no_undefined_flag_GCJ \
18279 export_symbols_cmds_GCJ \
18280 hardcode_libdir_flag_spec_GCJ \
18281 hardcode_libdir_flag_spec_ld_GCJ \
18282 hardcode_libdir_separator_GCJ \
18283 hardcode_automatic_GCJ \
18285 module_expsym_cmds_GCJ \
18286 lt_cv_prog_compiler_c_o_GCJ \
18287 exclude_expsyms_GCJ \
18288 include_expsyms_GCJ; do
18291 old_archive_cmds_GCJ | \
18292 old_archive_from_new_cmds_GCJ | \
18293 archive_cmds_GCJ | \
18294 archive_expsym_cmds_GCJ | \
18295 module_cmds_GCJ | \
18296 module_expsym_cmds_GCJ | \
18297 old_archive_from_expsyms_cmds_GCJ | \
18298 export_symbols_cmds_GCJ | \
18299 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18300 postinstall_cmds | postuninstall_cmds | \
18301 old_postinstall_cmds | old_postuninstall_cmds | \
18302 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18303 # Double-quote double-evaled strings.
18304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18313 *'\$0 --fallback-echo"')
18314 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18320 cat <<__EOF__ >> "$cfgfile"
18321 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18325 # Shell to use when invoking shell scripts.
18328 # Whether or not to build shared libraries.
18329 build_libtool_libs=$enable_shared
18331 # Whether or not to build static libraries.
18332 build_old_libs=$enable_static
18334 # Whether or not to add -lc for building shared libraries.
18335 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18337 # Whether or not to disallow shared libs when runtime libs are static
18338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18340 # Whether or not to optimize for fast installation.
18341 fast_install=$enable_fast_install
18344 host_alias=$host_alias
18347 # An echo program that does not interpret backslashes.
18352 AR_FLAGS=$lt_AR_FLAGS
18357 # A language-specific compiler.
18358 CC=$lt_compiler_GCJ
18360 # Is the compiler the GNU C compiler?
18366 # The linker used to build libraries.
18369 # Whether we need hard or soft links.
18372 # A BSD-compatible nm program.
18375 # A symbol stripping program
18378 # Used to examine libraries when file_magic_cmd begins "file"
18379 MAGIC_CMD=$MAGIC_CMD
18381 # Used on cygwin: DLL creation program.
18384 # Used on cygwin: object dumper.
18387 # Used on cygwin: assembler.
18390 # The name of the directory that contains temporary libtool files.
18393 # How to create reloadable object files.
18394 reload_flag=$lt_reload_flag
18395 reload_cmds=$lt_reload_cmds
18397 # How to pass a linker flag through the compiler.
18398 wl=$lt_lt_prog_compiler_wl_GCJ
18400 # Object file suffix (normally "o").
18401 objext="$ac_objext"
18403 # Old archive suffix (normally "a").
18406 # Shared library suffix (normally ".so").
18409 # Executable file suffix (normally "").
18412 # Additional compiler flags for building library objects.
18413 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18416 # What is the maximum length of a command?
18417 max_cmd_len=$lt_cv_sys_max_cmd_len
18419 # Does compiler simultaneously support -c and -o options?
18420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18422 # Must we lock files when doing compilation ?
18423 need_locks=$lt_need_locks
18425 # Do we need the lib prefix for modules?
18426 need_lib_prefix=$need_lib_prefix
18428 # Do we need a version for libraries?
18429 need_version=$need_version
18431 # Whether dlopen is supported.
18432 dlopen_support=$enable_dlopen
18434 # Whether dlopen of programs is supported.
18435 dlopen_self=$enable_dlopen_self
18437 # Whether dlopen of statically linked programs is supported.
18438 dlopen_self_static=$enable_dlopen_self_static
18440 # Compiler flag to prevent dynamic linking.
18441 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18443 # Compiler flag to turn off builtin functions.
18444 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18446 # Compiler flag to allow reflexive dlopens.
18447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18449 # Compiler flag to generate shared objects directly from archives.
18450 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18452 # Compiler flag to generate thread-safe objects.
18453 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18455 # Library versioning type.
18456 version_type=$version_type
18458 # Format of library name prefix.
18459 libname_spec=$lt_libname_spec
18461 # List of archive names. First name is the real one, the rest are links.
18462 # The last name is the one that the linker finds with -lNAME.
18463 library_names_spec=$lt_library_names_spec
18465 # The coded name of the library, if different from the real name.
18466 soname_spec=$lt_soname_spec
18468 # Commands used to build and install an old-style archive.
18470 old_archive_cmds=$lt_old_archive_cmds_GCJ
18471 old_postinstall_cmds=$lt_old_postinstall_cmds
18472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18474 # Create an old-style archive from a shared archive.
18475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18477 # Create a temporary old-style archive to link instead of a shared archive.
18478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18480 # Commands used to build and install a shared archive.
18481 archive_cmds=$lt_archive_cmds_GCJ
18482 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18483 postinstall_cmds=$lt_postinstall_cmds
18484 postuninstall_cmds=$lt_postuninstall_cmds
18486 # Commands used to build a loadable module (assumed same as above if empty)
18487 module_cmds=$lt_module_cmds_GCJ
18488 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18490 # Commands to strip libraries.
18491 old_striplib=$lt_old_striplib
18492 striplib=$lt_striplib
18494 # Dependencies to place before the objects being linked to create a
18496 predep_objects=$lt_predep_objects_GCJ
18498 # Dependencies to place after the objects being linked to create a
18500 postdep_objects=$lt_postdep_objects_GCJ
18502 # Dependencies to place before the objects being linked to create a
18504 predeps=$lt_predeps_GCJ
18506 # Dependencies to place after the objects being linked to create a
18508 postdeps=$lt_postdeps_GCJ
18510 # The library search path used internally by the compiler when linking
18511 # a shared library.
18512 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18514 # Method to check whether dependent libraries are shared objects.
18515 deplibs_check_method=$lt_deplibs_check_method
18517 # Command to use when deplibs_check_method == file_magic.
18518 file_magic_cmd=$lt_file_magic_cmd
18520 # Flag that allows shared libraries with undefined symbols to be built.
18521 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18523 # Flag that forces no undefined symbols.
18524 no_undefined_flag=$lt_no_undefined_flag_GCJ
18526 # Commands used to finish a libtool library installation in a directory.
18527 finish_cmds=$lt_finish_cmds
18529 # Same as above, but a single script fragment to be evaled but not shown.
18530 finish_eval=$lt_finish_eval
18532 # Take the output of nm and produce a listing of raw symbols and C names.
18533 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18535 # Transform the output of nm in a proper C declaration
18536 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18538 # Transform the output of nm in a C name address pair
18539 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18541 # This is the shared library runtime path variable.
18542 runpath_var=$runpath_var
18544 # This is the shared library path variable.
18545 shlibpath_var=$shlibpath_var
18547 # Is shlibpath searched before the hard-coded library search path?
18548 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18550 # How to hardcode a shared library path into an executable.
18551 hardcode_action=$hardcode_action_GCJ
18553 # Whether we should hardcode library paths into libraries.
18554 hardcode_into_libs=$hardcode_into_libs
18556 # Flag to hardcode \$libdir into a binary during linking.
18557 # This must work even if \$libdir does not exist.
18558 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18560 # If ld is used when linking, flag to hardcode \$libdir into
18561 # a binary during linking. This must work even if \$libdir does
18563 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18565 # Whether we need a single -rpath flag with a separated argument.
18566 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18568 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18569 # resulting binary.
18570 hardcode_direct=$hardcode_direct_GCJ
18572 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18573 # resulting binary.
18574 hardcode_minus_L=$hardcode_minus_L_GCJ
18576 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18577 # the resulting binary.
18578 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18580 # Set to yes if building a shared library automatically hardcodes DIR into the library
18581 # and all subsequent libraries and executables linked against it.
18582 hardcode_automatic=$hardcode_automatic_GCJ
18584 # Variables whose values should be saved in libtool wrapper scripts and
18585 # restored at relink time.
18586 variables_saved_for_relink="$variables_saved_for_relink"
18588 # Whether libtool must link a program against all its dependency libraries.
18589 link_all_deplibs=$link_all_deplibs_GCJ
18591 # Compile-time system search path for libraries
18592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18594 # Run-time system search path for libraries
18595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18597 # Fix the shell variable \$srcfile for the compiler.
18598 fix_srcfile_path="$fix_srcfile_path_GCJ"
18600 # Set to yes if exported symbols are required.
18601 always_export_symbols=$always_export_symbols_GCJ
18603 # The commands to list exported symbols.
18604 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18606 # The commands to extract the exported symbol list from a shared archive.
18607 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18609 # Symbols that should not be listed in the preloaded symbols.
18610 exclude_expsyms=$lt_exclude_expsyms_GCJ
18612 # Symbols that must always be exported.
18613 include_expsyms=$lt_include_expsyms_GCJ
18615 # ### END LIBTOOL TAG CONFIG: $tagname
18621 # If there is no Makefile yet, we rely on a make rule to execute
18622 # `config.status --recheck' to rerun these tests and create the
18623 # libtool script then.
18624 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18625 if test -f "$ltmain_in"; then
18626 test -f Makefile && make "$ltmain"
18632 ac_cpp='$CPP $CPPFLAGS'
18633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18647 # Source file extension for RC test sources.
18650 # Object file extension for compiled RC test sources.
18654 # Code to be used in simple compile tests
18655 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18657 # Code to be used in simple link tests
18658 lt_simple_link_test_code="$lt_simple_compile_test_code"
18660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18662 # If no C compiler was specified, use CC.
18665 # Allow CC to be a program name with arguments.
18669 # Allow CC to be a program name with arguments.
18674 lt_cv_prog_compiler_c_o_RC=yes
18676 # The else clause should only fire when bootstrapping the
18677 # libtool distribution, otherwise you forgot to ship ltmain.sh
18678 # with your package, and you will get complaints that there are
18679 # no rules to generate ltmain.sh.
18680 if test -f "$ltmain"; then
18681 # See if we are running on zsh, and set the options which allow our commands through
18682 # without removal of \ escapes.
18683 if test -n "${ZSH_VERSION+set}" ; then
18684 setopt NO_GLOB_SUBST
18686 # Now quote all the things that may contain metacharacters while being
18687 # careful not to overquote the AC_SUBSTed values. We take copies of the
18688 # variables and quote the copies for generation of the libtool script.
18689 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18691 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18692 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18693 deplibs_check_method reload_flag reload_cmds need_locks \
18694 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18695 lt_cv_sys_global_symbol_to_c_name_address \
18696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18697 old_postinstall_cmds old_postuninstall_cmds \
18701 lt_prog_compiler_wl_RC \
18702 lt_prog_compiler_pic_RC \
18703 lt_prog_compiler_static_RC \
18704 lt_prog_compiler_no_builtin_flag_RC \
18705 export_dynamic_flag_spec_RC \
18706 thread_safe_flag_spec_RC \
18707 whole_archive_flag_spec_RC \
18708 enable_shared_with_static_runtimes_RC \
18709 old_archive_cmds_RC \
18710 old_archive_from_new_cmds_RC \
18711 predep_objects_RC \
18712 postdep_objects_RC \
18715 compiler_lib_search_path_RC \
18717 archive_expsym_cmds_RC \
18718 postinstall_cmds_RC \
18719 postuninstall_cmds_RC \
18720 old_archive_from_expsyms_cmds_RC \
18721 allow_undefined_flag_RC \
18722 no_undefined_flag_RC \
18723 export_symbols_cmds_RC \
18724 hardcode_libdir_flag_spec_RC \
18725 hardcode_libdir_flag_spec_ld_RC \
18726 hardcode_libdir_separator_RC \
18727 hardcode_automatic_RC \
18729 module_expsym_cmds_RC \
18730 lt_cv_prog_compiler_c_o_RC \
18731 exclude_expsyms_RC \
18732 include_expsyms_RC; do
18735 old_archive_cmds_RC | \
18736 old_archive_from_new_cmds_RC | \
18737 archive_cmds_RC | \
18738 archive_expsym_cmds_RC | \
18740 module_expsym_cmds_RC | \
18741 old_archive_from_expsyms_cmds_RC | \
18742 export_symbols_cmds_RC | \
18743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18744 postinstall_cmds | postuninstall_cmds | \
18745 old_postinstall_cmds | old_postuninstall_cmds | \
18746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18747 # Double-quote double-evaled strings.
18748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18757 *'\$0 --fallback-echo"')
18758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18764 cat <<__EOF__ >> "$cfgfile"
18765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18769 # Shell to use when invoking shell scripts.
18772 # Whether or not to build shared libraries.
18773 build_libtool_libs=$enable_shared
18775 # Whether or not to build static libraries.
18776 build_old_libs=$enable_static
18778 # Whether or not to add -lc for building shared libraries.
18779 build_libtool_need_lc=$archive_cmds_need_lc_RC
18781 # Whether or not to disallow shared libs when runtime libs are static
18782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18784 # Whether or not to optimize for fast installation.
18785 fast_install=$enable_fast_install
18788 host_alias=$host_alias
18791 # An echo program that does not interpret backslashes.
18796 AR_FLAGS=$lt_AR_FLAGS
18801 # A language-specific compiler.
18804 # Is the compiler the GNU C compiler?
18810 # The linker used to build libraries.
18813 # Whether we need hard or soft links.
18816 # A BSD-compatible nm program.
18819 # A symbol stripping program
18822 # Used to examine libraries when file_magic_cmd begins "file"
18823 MAGIC_CMD=$MAGIC_CMD
18825 # Used on cygwin: DLL creation program.
18828 # Used on cygwin: object dumper.
18831 # Used on cygwin: assembler.
18834 # The name of the directory that contains temporary libtool files.
18837 # How to create reloadable object files.
18838 reload_flag=$lt_reload_flag
18839 reload_cmds=$lt_reload_cmds
18841 # How to pass a linker flag through the compiler.
18842 wl=$lt_lt_prog_compiler_wl_RC
18844 # Object file suffix (normally "o").
18845 objext="$ac_objext"
18847 # Old archive suffix (normally "a").
18850 # Shared library suffix (normally ".so").
18853 # Executable file suffix (normally "").
18856 # Additional compiler flags for building library objects.
18857 pic_flag=$lt_lt_prog_compiler_pic_RC
18860 # What is the maximum length of a command?
18861 max_cmd_len=$lt_cv_sys_max_cmd_len
18863 # Does compiler simultaneously support -c and -o options?
18864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18866 # Must we lock files when doing compilation ?
18867 need_locks=$lt_need_locks
18869 # Do we need the lib prefix for modules?
18870 need_lib_prefix=$need_lib_prefix
18872 # Do we need a version for libraries?
18873 need_version=$need_version
18875 # Whether dlopen is supported.
18876 dlopen_support=$enable_dlopen
18878 # Whether dlopen of programs is supported.
18879 dlopen_self=$enable_dlopen_self
18881 # Whether dlopen of statically linked programs is supported.
18882 dlopen_self_static=$enable_dlopen_self_static
18884 # Compiler flag to prevent dynamic linking.
18885 link_static_flag=$lt_lt_prog_compiler_static_RC
18887 # Compiler flag to turn off builtin functions.
18888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18890 # Compiler flag to allow reflexive dlopens.
18891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18893 # Compiler flag to generate shared objects directly from archives.
18894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18896 # Compiler flag to generate thread-safe objects.
18897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18899 # Library versioning type.
18900 version_type=$version_type
18902 # Format of library name prefix.
18903 libname_spec=$lt_libname_spec
18905 # List of archive names. First name is the real one, the rest are links.
18906 # The last name is the one that the linker finds with -lNAME.
18907 library_names_spec=$lt_library_names_spec
18909 # The coded name of the library, if different from the real name.
18910 soname_spec=$lt_soname_spec
18912 # Commands used to build and install an old-style archive.
18914 old_archive_cmds=$lt_old_archive_cmds_RC
18915 old_postinstall_cmds=$lt_old_postinstall_cmds
18916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18918 # Create an old-style archive from a shared archive.
18919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18921 # Create a temporary old-style archive to link instead of a shared archive.
18922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18924 # Commands used to build and install a shared archive.
18925 archive_cmds=$lt_archive_cmds_RC
18926 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18927 postinstall_cmds=$lt_postinstall_cmds
18928 postuninstall_cmds=$lt_postuninstall_cmds
18930 # Commands used to build a loadable module (assumed same as above if empty)
18931 module_cmds=$lt_module_cmds_RC
18932 module_expsym_cmds=$lt_module_expsym_cmds_RC
18934 # Commands to strip libraries.
18935 old_striplib=$lt_old_striplib
18936 striplib=$lt_striplib
18938 # Dependencies to place before the objects being linked to create a
18940 predep_objects=$lt_predep_objects_RC
18942 # Dependencies to place after the objects being linked to create a
18944 postdep_objects=$lt_postdep_objects_RC
18946 # Dependencies to place before the objects being linked to create a
18948 predeps=$lt_predeps_RC
18950 # Dependencies to place after the objects being linked to create a
18952 postdeps=$lt_postdeps_RC
18954 # The library search path used internally by the compiler when linking
18955 # a shared library.
18956 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18958 # Method to check whether dependent libraries are shared objects.
18959 deplibs_check_method=$lt_deplibs_check_method
18961 # Command to use when deplibs_check_method == file_magic.
18962 file_magic_cmd=$lt_file_magic_cmd
18964 # Flag that allows shared libraries with undefined symbols to be built.
18965 allow_undefined_flag=$lt_allow_undefined_flag_RC
18967 # Flag that forces no undefined symbols.
18968 no_undefined_flag=$lt_no_undefined_flag_RC
18970 # Commands used to finish a libtool library installation in a directory.
18971 finish_cmds=$lt_finish_cmds
18973 # Same as above, but a single script fragment to be evaled but not shown.
18974 finish_eval=$lt_finish_eval
18976 # Take the output of nm and produce a listing of raw symbols and C names.
18977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18979 # Transform the output of nm in a proper C declaration
18980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18982 # Transform the output of nm in a C name address pair
18983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18985 # This is the shared library runtime path variable.
18986 runpath_var=$runpath_var
18988 # This is the shared library path variable.
18989 shlibpath_var=$shlibpath_var
18991 # Is shlibpath searched before the hard-coded library search path?
18992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18994 # How to hardcode a shared library path into an executable.
18995 hardcode_action=$hardcode_action_RC
18997 # Whether we should hardcode library paths into libraries.
18998 hardcode_into_libs=$hardcode_into_libs
19000 # Flag to hardcode \$libdir into a binary during linking.
19001 # This must work even if \$libdir does not exist.
19002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19004 # If ld is used when linking, flag to hardcode \$libdir into
19005 # a binary during linking. This must work even if \$libdir does
19007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19009 # Whether we need a single -rpath flag with a separated argument.
19010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19013 # resulting binary.
19014 hardcode_direct=$hardcode_direct_RC
19016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19017 # resulting binary.
19018 hardcode_minus_L=$hardcode_minus_L_RC
19020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19021 # the resulting binary.
19022 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19024 # Set to yes if building a shared library automatically hardcodes DIR into the library
19025 # and all subsequent libraries and executables linked against it.
19026 hardcode_automatic=$hardcode_automatic_RC
19028 # Variables whose values should be saved in libtool wrapper scripts and
19029 # restored at relink time.
19030 variables_saved_for_relink="$variables_saved_for_relink"
19032 # Whether libtool must link a program against all its dependency libraries.
19033 link_all_deplibs=$link_all_deplibs_RC
19035 # Compile-time system search path for libraries
19036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19038 # Run-time system search path for libraries
19039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19041 # Fix the shell variable \$srcfile for the compiler.
19042 fix_srcfile_path="$fix_srcfile_path_RC"
19044 # Set to yes if exported symbols are required.
19045 always_export_symbols=$always_export_symbols_RC
19047 # The commands to list exported symbols.
19048 export_symbols_cmds=$lt_export_symbols_cmds_RC
19050 # The commands to extract the exported symbol list from a shared archive.
19051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19053 # Symbols that should not be listed in the preloaded symbols.
19054 exclude_expsyms=$lt_exclude_expsyms_RC
19056 # Symbols that must always be exported.
19057 include_expsyms=$lt_include_expsyms_RC
19059 # ### END LIBTOOL TAG CONFIG: $tagname
19065 # If there is no Makefile yet, we rely on a make rule to execute
19066 # `config.status --recheck' to rerun these tests and create the
19067 # libtool script then.
19068 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19069 if test -f "$ltmain_in"; then
19070 test -f Makefile && make "$ltmain"
19076 ac_cpp='$CPP $CPPFLAGS'
19077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19086 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19087 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19088 { (exit 1); exit 1; }; }
19092 # Append the new tag name to the list of available tags.
19093 if test -n "$tagname" ; then
19094 available_tags="$available_tags $tagname"
19100 # Now substitute the updated list of available tags.
19101 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19102 mv "${ofile}T" "$ofile"
19106 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19107 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19108 { (exit 1); exit 1; }; }
19114 # This can be used to rebuild libtool when needed
19115 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19117 # Always use our own libtool.
19118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19120 # Prevent multiple expansion
19141 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
19142 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
19144 # Settings for optional paths
19146 # Check whether --with-site_includes was given.
19147 if test "${with_site_includes+set}" = set; then
19148 withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
19150 SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
19152 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^ *//'`
19155 if test -f /sw/include/db3/db.h; then
19156 CFLAGS="-I/sw/include/db3 $CFLAGS"
19157 elif test -f /sw/include/db4/db.h; then
19158 CFLAGS="-I/sw/include/db4 $CFLAGS"
19165 # Check whether --with-site_libraries was given.
19166 if test "${with_site_libraries+set}" = set; then
19167 withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
19169 SITE_LIBS="$SITE_LIBS -L$dir"
19171 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^ *//'`
19176 # Checks for libraries.
19178 { $as_echo "$as_me:$LINENO: checking for concord_open_ds in -lconcord" >&5
19179 $as_echo_n "checking for concord_open_ds in -lconcord... " >&6; }
19180 if test "${ac_cv_lib_concord_concord_open_ds+set}" = set; then
19181 $as_echo_n "(cached) " >&6
19183 ac_check_lib_save_LIBS=$LIBS
19184 LIBS="-lconcord $LIBS"
19185 cat >conftest.$ac_ext <<_ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19192 /* Override any GCC internal prototype to avoid an error.
19193 Use char because int might match the return type of a GCC
19194 builtin and then its argument prototype would still apply. */
19198 char concord_open_ds ();
19202 return concord_open_ds ();
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (ac_try="$ac_link"
19209 case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19214 $as_echo "$ac_try_echo") >&5
19215 (eval "$ac_link") 2>conftest.er1
19217 grep -v '^ *+' conftest.er1 >conftest.err
19219 cat conftest.err >&5
19220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } && {
19222 test -z "$ac_c_werror_flag" ||
19223 test ! -s conftest.err
19224 } && test -s conftest$ac_exeext && {
19225 test "$cross_compiling" = yes ||
19226 $as_test_x conftest$ac_exeext
19228 ac_cv_lib_concord_concord_open_ds=yes
19230 $as_echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ac_cv_lib_concord_concord_open_ds=no
19236 rm -rf conftest.dSYM
19237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19238 conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_concord_concord_open_ds" >&5
19242 $as_echo "$ac_cv_lib_concord_concord_open_ds" >&6; }
19243 if test "x$ac_cv_lib_concord_concord_open_ds" = x""yes; then
19244 cat >>confdefs.h <<_ACEOF
19245 #define HAVE_LIBCONCORD 1
19248 LIBS="-lconcord $LIBS"
19251 { { $as_echo "$as_me:$LINENO: error: libconcord is not found." >&5
19252 $as_echo "$as_me: error: libconcord is not found." >&2;}
19253 { (exit 1); exit 1; }; }
19257 # Checks for header files.
19259 # Checks for typedefs, structures, and compiler characteristics.
19260 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19261 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19262 if test "${ac_cv_c_const+set}" = set; then
19263 $as_echo_n "(cached) " >&6
19265 cat >conftest.$ac_ext <<_ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19275 /* FIXME: Include the comments suggested by Paul. */
19276 #ifndef __cplusplus
19277 /* Ultrix mips cc rejects this. */
19278 typedef int charset[2];
19280 /* SunOS 4.1.1 cc rejects this. */
19281 char const *const *pcpcc;
19283 /* NEC SVR4.0.2 mips cc rejects this. */
19284 struct point {int x, y;};
19285 static struct point const zero = {0,0};
19286 /* AIX XL C 1.02.0.0 rejects this.
19287 It does not let you subtract one const X* pointer from another in
19288 an arm of an if-expression whose if-part is not a constant
19290 const char *g = "string";
19291 pcpcc = &g + (g ? g-g : 0);
19292 /* HPUX 7.0 cc rejects these. */
19294 ppc = (char**) pcpcc;
19295 pcpcc = (char const *const *) ppc;
19296 { /* SCO 3.2v4 cc rejects this. */
19298 char const *s = 0 ? (char *) 0 : (char const *) 0;
19303 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19304 int x[] = {25, 17};
19305 const int *foo = &x[0];
19308 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19309 typedef const int *iptr;
19313 { /* AIX XL C 1.02.0.0 rejects this saying
19314 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19315 struct s { int j; const int *ap[3]; };
19316 struct s *b; b->j = 5;
19318 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19319 const int foo = 10;
19320 if (!foo) return 0;
19322 return !cs[0] && !zero.x;
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19336 $as_echo "$ac_try_echo") >&5
19337 (eval "$ac_compile") 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } && {
19344 test -z "$ac_c_werror_flag" ||
19345 test ! -s conftest.err
19346 } && test -s conftest.$ac_objext; then
19349 $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19357 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19358 $as_echo "$ac_cv_c_const" >&6; }
19359 if test $ac_cv_c_const = no; then
19361 cat >>confdefs.h <<\_ACEOF
19367 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19368 $as_echo_n "checking for inline... " >&6; }
19369 if test "${ac_cv_c_inline+set}" = set; then
19370 $as_echo_n "(cached) " >&6
19373 for ac_kw in inline __inline__ __inline; do
19374 cat >conftest.$ac_ext <<_ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380 #ifndef __cplusplus
19382 static $ac_kw foo_t static_foo () {return 0; }
19383 $ac_kw foo_t foo () {return 0; }
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19394 $as_echo "$ac_try_echo") >&5
19395 (eval "$ac_compile") 2>conftest.er1
19397 grep -v '^ *+' conftest.er1 >conftest.err
19399 cat conftest.err >&5
19400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && {
19402 test -z "$ac_c_werror_flag" ||
19403 test ! -s conftest.err
19404 } && test -s conftest.$ac_objext; then
19405 ac_cv_c_inline=$ac_kw
19407 $as_echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 test "$ac_cv_c_inline" != no && break
19418 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19419 $as_echo "$ac_cv_c_inline" >&6; }
19422 case $ac_cv_c_inline in
19425 case $ac_cv_c_inline in
19427 *) ac_val=$ac_cv_c_inline;;
19429 cat >>confdefs.h <<_ACEOF
19430 #ifndef __cplusplus
19431 #define inline $ac_val
19438 # Checks for library functions.
19439 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19440 # for constant arguments. Useless!
19441 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19442 $as_echo_n "checking for working alloca.h... " >&6; }
19443 if test "${ac_cv_working_alloca_h+set}" = set; then
19444 $as_echo_n "(cached) " >&6
19446 cat >conftest.$ac_ext <<_ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452 #include <alloca.h>
19456 char *p = (char *) alloca (2 * sizeof (int));
19462 rm -f conftest.$ac_objext conftest$ac_exeext
19463 if { (ac_try="$ac_link"
19464 case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19469 $as_echo "$ac_try_echo") >&5
19470 (eval "$ac_link") 2>conftest.er1
19472 grep -v '^ *+' conftest.er1 >conftest.err
19474 cat conftest.err >&5
19475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest$ac_exeext && {
19480 test "$cross_compiling" = yes ||
19481 $as_test_x conftest$ac_exeext
19483 ac_cv_working_alloca_h=yes
19485 $as_echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 ac_cv_working_alloca_h=no
19491 rm -rf conftest.dSYM
19492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19493 conftest$ac_exeext conftest.$ac_ext
19495 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19496 $as_echo "$ac_cv_working_alloca_h" >&6; }
19497 if test $ac_cv_working_alloca_h = yes; then
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE_ALLOCA_H 1
19505 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19506 $as_echo_n "checking for alloca... " >&6; }
19507 if test "${ac_cv_func_alloca_works+set}" = set; then
19508 $as_echo_n "(cached) " >&6
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19517 # define alloca __builtin_alloca
19520 # include <malloc.h>
19521 # define alloca _alloca
19523 # ifdef HAVE_ALLOCA_H
19524 # include <alloca.h>
19529 # ifndef alloca /* predefined by HP cc +Olibcalls */
19540 char *p = (char *) alloca (1);
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19553 $as_echo "$ac_try_echo") >&5
19554 (eval "$ac_link") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1 >conftest.err
19558 cat conftest.err >&5
19559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest$ac_exeext && {
19564 test "$cross_compiling" = yes ||
19565 $as_test_x conftest$ac_exeext
19567 ac_cv_func_alloca_works=yes
19569 $as_echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_cv_func_alloca_works=no
19575 rm -rf conftest.dSYM
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19579 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19580 $as_echo "$ac_cv_func_alloca_works" >&6; }
19582 if test $ac_cv_func_alloca_works = yes; then
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_ALLOCA 1
19589 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19590 # that cause trouble. Some versions do not even contain alloca or
19591 # contain a buggy version. If you still want to use their alloca,
19592 # use ar to extract alloca.o from them instead of compiling alloca.c.
19594 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19596 cat >>confdefs.h <<\_ACEOF
19601 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19602 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19603 if test "${ac_cv_os_cray+set}" = set; then
19604 $as_echo_n "(cached) " >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #if defined CRAY && ! defined CRAY2
19619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19620 $EGREP "webecray" >/dev/null 2>&1; then
19628 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19629 $as_echo "$ac_cv_os_cray" >&6; }
19630 if test $ac_cv_os_cray = yes; then
19631 for ac_func in _getb67 GETB67 getb67; do
19632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19633 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19634 $as_echo_n "checking for $ac_func... " >&6; }
19635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19636 $as_echo_n "(cached) " >&6
19638 cat >conftest.$ac_ext <<_ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19646 #define $ac_func innocuous_$ac_func
19648 /* System header to define __stub macros and hopefully few prototypes,
19649 which can conflict with char $ac_func (); below.
19650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19651 <limits.h> exists even on freestanding compilers. */
19654 # include <limits.h>
19656 # include <assert.h>
19661 /* Override any GCC internal prototype to avoid an error.
19662 Use char because int might match the return type of a GCC
19663 builtin and then its argument prototype would still apply. */
19668 /* The GNU C library defines this for functions which it implements
19669 to always fail with ENOSYS. Some functions are actually named
19670 something starting with __ and the normal name is an alias. */
19671 #if defined __stub_$ac_func || defined __stub___$ac_func
19678 return $ac_func ();
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (ac_try="$ac_link"
19685 case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19690 $as_echo "$ac_try_echo") >&5
19691 (eval "$ac_link") 2>conftest.er1
19693 grep -v '^ *+' conftest.er1 >conftest.err
19695 cat conftest.err >&5
19696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } && {
19698 test -z "$ac_c_werror_flag" ||
19699 test ! -s conftest.err
19700 } && test -s conftest$ac_exeext && {
19701 test "$cross_compiling" = yes ||
19702 $as_test_x conftest$ac_exeext
19704 eval "$as_ac_var=yes"
19706 $as_echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19709 eval "$as_ac_var=no"
19712 rm -rf conftest.dSYM
19713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19714 conftest$ac_exeext conftest.$ac_ext
19716 ac_res=`eval 'as_val=${'$as_ac_var'}
19717 $as_echo "$as_val"'`
19718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19719 $as_echo "$ac_res" >&6; }
19720 as_val=`eval 'as_val=${'$as_ac_var'}
19721 $as_echo "$as_val"'`
19722 if test "x$as_val" = x""yes; then
19724 cat >>confdefs.h <<_ACEOF
19725 #define CRAY_STACKSEG_END $ac_func
19734 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19735 $as_echo_n "checking stack direction for C alloca... " >&6; }
19736 if test "${ac_cv_c_stack_direction+set}" = set; then
19737 $as_echo_n "(cached) " >&6
19739 if test "$cross_compiling" = yes; then
19740 ac_cv_c_stack_direction=0
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 $ac_includes_default
19750 find_stack_direction ()
19752 static char *addr = 0;
19757 return find_stack_direction ();
19760 return (&dummy > addr) ? 1 : -1;
19766 return find_stack_direction () < 0;
19769 rm -f conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19776 $as_echo "$ac_try_echo") >&5
19777 (eval "$ac_link") 2>&5
19779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19786 $as_echo "$ac_try_echo") >&5
19787 (eval "$ac_try") 2>&5
19789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 ac_cv_c_stack_direction=1
19793 $as_echo "$as_me: program exited with status $ac_status" >&5
19794 $as_echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 ( exit $ac_status )
19798 ac_cv_c_stack_direction=-1
19800 rm -rf conftest.dSYM
19801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19806 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19807 $as_echo "$ac_cv_c_stack_direction" >&6; }
19809 cat >>confdefs.h <<_ACEOF
19810 #define STACK_DIRECTION $ac_cv_c_stack_direction
19817 if test "${ac_cv_header_minix_config_h+set}" = set; then
19818 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
19819 $as_echo_n "checking for minix/config.h... " >&6; }
19820 if test "${ac_cv_header_minix_config_h+set}" = set; then
19821 $as_echo_n "(cached) " >&6
19823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19824 $as_echo "$ac_cv_header_minix_config_h" >&6; }
19826 # Is the header compilable?
19827 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
19828 $as_echo_n "checking minix/config.h usability... " >&6; }
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 $ac_includes_default
19836 #include <minix/config.h>
19838 rm -f conftest.$ac_objext
19839 if { (ac_try="$ac_compile"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846 (eval "$ac_compile") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && {
19853 test -z "$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19855 } && test -s conftest.$ac_objext; then
19856 ac_header_compiler=yes
19858 $as_echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 ac_header_compiler=no
19864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19866 $as_echo "$ac_header_compiler" >&6; }
19868 # Is the header present?
19869 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
19870 $as_echo_n "checking minix/config.h presence... " >&6; }
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 #include <minix/config.h>
19879 if { (ac_try="$ac_cpp conftest.$ac_ext"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19885 $as_echo "$ac_try_echo") >&5
19886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } >/dev/null && {
19893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19896 ac_header_preproc=yes
19898 $as_echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19901 ac_header_preproc=no
19904 rm -f conftest.err conftest.$ac_ext
19905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19906 $as_echo "$ac_header_preproc" >&6; }
19908 # So? What about this header?
19909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19911 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
19912 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19913 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
19914 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
19915 ac_header_preproc=yes
19918 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
19919 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
19920 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
19921 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
19922 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
19923 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
19924 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
19925 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
19926 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
19927 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
19928 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
19929 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
19931 ## -------------------------------- ##
19932 ## Report this to chise-en@m17n.org ##
19933 ## -------------------------------- ##
19935 ) | sed "s/^/$as_me: WARNING: /" >&2
19938 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
19939 $as_echo_n "checking for minix/config.h... " >&6; }
19940 if test "${ac_cv_header_minix_config_h+set}" = set; then
19941 $as_echo_n "(cached) " >&6
19943 ac_cv_header_minix_config_h=$ac_header_preproc
19945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19946 $as_echo "$ac_cv_header_minix_config_h" >&6; }
19949 if test "x$ac_cv_header_minix_config_h" = x""yes; then
19956 if test "$MINIX" = yes; then
19958 cat >>confdefs.h <<\_ACEOF
19959 #define _POSIX_SOURCE 1
19963 cat >>confdefs.h <<\_ACEOF
19964 #define _POSIX_1_SOURCE 2
19968 cat >>confdefs.h <<\_ACEOF
19976 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
19977 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
19978 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
19979 $as_echo_n "(cached) " >&6
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19988 # define __EXTENSIONS__ 1
19989 $ac_includes_default
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20005 $as_echo "$ac_try_echo") >&5
20006 (eval "$ac_compile") 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest.$ac_objext; then
20016 ac_cv_safe_to_define___extensions__=yes
20018 $as_echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_cv_safe_to_define___extensions__=no
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
20027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
20028 test $ac_cv_safe_to_define___extensions__ = yes &&
20029 cat >>confdefs.h <<\_ACEOF
20030 #define __EXTENSIONS__ 1
20033 cat >>confdefs.h <<\_ACEOF
20034 #define _ALL_SOURCE 1
20037 cat >>confdefs.h <<\_ACEOF
20038 #define _GNU_SOURCE 1
20041 cat >>confdefs.h <<\_ACEOF
20042 #define _POSIX_PTHREAD_SEMANTICS 1
20045 cat >>confdefs.h <<\_ACEOF
20046 #define _TANDEM_SOURCE 1
20050 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
20051 $as_echo_n "checking for working strnlen... " >&6; }
20052 if test "${ac_cv_func_strnlen_working+set}" = set; then
20053 $as_echo_n "(cached) " >&6
20055 if test "$cross_compiling" = yes; then
20056 ac_cv_func_strnlen_working=no
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20070 #define S_LEN (sizeof S - 1)
20072 /* At least one implementation is buggy: that of AIX 4.3 would
20073 give strnlen (S, 1) == 3. */
20076 for (i = 0; i < S_LEN + 1; ++i)
20078 int expected = i <= S_LEN ? i : S_LEN;
20079 if (strnlen (S, i) != expected)
20088 rm -f conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20095 $as_echo "$ac_try_echo") >&5
20096 (eval "$ac_link") 2>&5
20098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20100 { (case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20105 $as_echo "$ac_try_echo") >&5
20106 (eval "$ac_try") 2>&5
20108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 ac_cv_func_strnlen_working=yes
20112 $as_echo "$as_me: program exited with status $ac_status" >&5
20113 $as_echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ( exit $ac_status )
20117 ac_cv_func_strnlen_working=no
20119 rm -rf conftest.dSYM
20120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20125 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
20126 $as_echo "$ac_cv_func_strnlen_working" >&6; }
20127 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
20128 *" strnlen.$ac_objext "* ) ;;
20129 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
20136 for ac_func in strnlen
20138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20139 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20140 $as_echo_n "checking for $ac_func... " >&6; }
20141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20142 $as_echo_n "(cached) " >&6
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20152 #define $ac_func innocuous_$ac_func
20154 /* System header to define __stub macros and hopefully few prototypes,
20155 which can conflict with char $ac_func (); below.
20156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20157 <limits.h> exists even on freestanding compilers. */
20160 # include <limits.h>
20162 # include <assert.h>
20167 /* Override any GCC internal prototype to avoid an error.
20168 Use char because int might match the return type of a GCC
20169 builtin and then its argument prototype would still apply. */
20174 /* The GNU C library defines this for functions which it implements
20175 to always fail with ENOSYS. Some functions are actually named
20176 something starting with __ and the normal name is an alias. */
20177 #if defined __stub_$ac_func || defined __stub___$ac_func
20184 return $ac_func ();
20189 rm -f conftest.$ac_objext conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20196 $as_echo "$ac_try_echo") >&5
20197 (eval "$ac_link") 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && {
20204 test -z "$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20206 } && test -s conftest$ac_exeext && {
20207 test "$cross_compiling" = yes ||
20208 $as_test_x conftest$ac_exeext
20210 eval "$as_ac_var=yes"
20212 $as_echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 eval "$as_ac_var=no"
20218 rm -rf conftest.dSYM
20219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20220 conftest$ac_exeext conftest.$ac_ext
20222 ac_res=`eval 'as_val=${'$as_ac_var'}
20223 $as_echo "$as_val"'`
20224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20225 $as_echo "$ac_res" >&6; }
20226 as_val=`eval 'as_val=${'$as_ac_var'}
20227 $as_echo "$as_val"'`
20228 if test "x$as_val" = x""yes; then
20229 cat >>confdefs.h <<_ACEOF
20230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20237 ac_config_files="$ac_config_files Makefile"
20239 cat >confcache <<\_ACEOF
20240 # This file is a shell script that caches the results of configure
20241 # tests run on this system so they can be shared between configure
20242 # scripts and configure runs, see configure's option --config-cache.
20243 # It is not useful on other systems. If it contains results you don't
20244 # want to keep, you may remove or edit it.
20246 # config.status only pays attention to the cache file if you give it
20247 # the --recheck option to rerun configure.
20249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20251 # following values.
20255 # The following way of writing the cache mishandles newlines in values,
20256 # but we know of no workaround that is simple, portable, and efficient.
20257 # So, we kill variables containing newlines.
20258 # Ultrix sh set writes to stderr and can't be redirected directly,
20259 # and sets the high bit in the cache file unless we assign to the vars.
20261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20262 eval ac_val=\$$ac_var
20266 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20267 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20270 _ | IFS | as_nl) ;; #(
20271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20272 *) $as_unset $ac_var ;;
20278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20279 *${as_nl}ac_space=\ *)
20280 # `set' does not quote correctly, so add quotes (double-quote
20281 # substitution turns \\\\ into \\, and sed turns \\ into \).
20284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20287 # `set' quotes correctly as required by POSIX, so do not add quotes.
20288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20302 if test -w "$cache_file"; then
20303 test "x$cache_file" != "x/dev/null" &&
20304 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20305 $as_echo "$as_me: updating cache $cache_file" >&6;}
20306 cat confcache >$cache_file
20308 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20309 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20315 # Let make expand exec_prefix.
20316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20318 DEFS=-DHAVE_CONFIG_H
20322 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20323 # 1. Remove the extension, and $U if already installed.
20324 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20325 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20326 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20327 # will be set to the directory where LIBOBJS objects are built.
20328 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20329 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20331 LIBOBJS=$ac_libobjs
20333 LTLIBOBJS=$ac_ltlibobjs
20337 : ${CONFIG_STATUS=./config.status}
20339 ac_clean_files_save=$ac_clean_files
20340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20341 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20342 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20343 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20345 # Generated by $as_me.
20346 # Run this file to recreate the current configuration.
20347 # Compiler output produced by configure, useful for debugging
20348 # configure, is in config.log if it exists.
20351 ac_cs_recheck=false
20353 SHELL=\${CONFIG_SHELL-$SHELL}
20356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20357 ## --------------------- ##
20358 ## M4sh Initialization. ##
20359 ## --------------------- ##
20361 # Be more Bourne compatible
20362 DUALCASE=1; export DUALCASE # for MKS sh
20363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20367 # is contrary to our usage. Disable this feature.
20368 alias -g '${1+"$@"}'='"$@"'
20369 setopt NO_GLOB_SUBST
20371 case `(set -o) 2>/dev/null` in
20372 *posix*) set -o posix ;;
20381 # Avoid depending upon Character Ranges.
20382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20385 as_cr_digits='0123456789'
20386 as_cr_alnum=$as_cr_Letters$as_cr_digits
20391 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20392 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20395 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20396 as_echo='printf %s\n'
20397 as_echo_n='printf %s'
20399 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20400 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20401 as_echo_n='/usr/ucb/echo -n'
20403 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20404 as_echo_n_body='eval
20408 expr "X$arg" : "X\\(.*\\)$as_nl";
20409 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20411 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20413 export as_echo_n_body
20414 as_echo_n='sh -c $as_echo_n_body as_echo'
20416 export as_echo_body
20417 as_echo='sh -c $as_echo_body as_echo'
20420 # The user is always right.
20421 if test "${PATH_SEPARATOR+set}" != set; then
20423 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20424 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20429 # Support unset when possible.
20430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20438 # We need space, tab and new line, in precisely that order. Quoting is
20439 # there to prevent editors from complaining about space-tab.
20440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20441 # splitting by setting IFS to empty value.)
20444 # Find who we are. Look in the path if we contain no directory separator.
20446 *[\\/]* ) as_myself=$0 ;;
20447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20448 for as_dir in $PATH
20451 test -z "$as_dir" && as_dir=.
20452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20458 # We did not find ourselves, most probably we were run as `sh COMMAND'
20459 # in which case we are not to be found in the path.
20460 if test "x$as_myself" = x; then
20463 if test ! -f "$as_myself"; then
20464 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20465 { (exit 1); exit 1; }
20468 # Work around bugs in pre-3.0 UWIN ksh.
20469 for as_var in ENV MAIL MAILPATH
20470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20482 # Required to use basename.
20483 if expr a : '\(a\)' >/dev/null 2>&1 &&
20484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20491 as_basename=basename
20497 # Name of the executable.
20498 as_me=`$as_basename -- "$0" ||
20499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20500 X"$0" : 'X\(//\)$' \| \
20501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20503 sed '/^.*\/\([^/][^/]*\)\/*$/{
20522 as_lineno_1=$LINENO
20523 as_lineno_2=$LINENO
20524 test "x$as_lineno_1" != "x$as_lineno_2" &&
20525 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20528 # uniformly replaced by the line number. The first 'sed' inserts a
20529 # line-number line after each line using $LINENO; the second 'sed'
20530 # does the real work. The second script uses 'N' to pair each
20531 # line-number line with the line containing $LINENO, and appends
20532 # trailing '-' during substitution so that $LINENO is not a special
20533 # case at line end.
20534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20535 # scripts with optimization help from Paolo Bonzini. Blame Lee
20536 # E. McMahon (1931-1989) for sed's syntax. :-)
20548 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20551 ' >$as_me.lineno &&
20552 chmod +x "$as_me.lineno" ||
20553 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20554 { (exit 1); exit 1; }; }
20556 # Don't try to exec as it changes $[0], causing all sort of problems
20557 # (the dirname of $[0] is not the place where we might find the
20558 # original and so on. Autoconf is especially sensitive to this).
20559 . "./$as_me.lineno"
20560 # Exit status is that of the last command.
20565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20571 ECHO_C= ECHO_N= ECHO_T=
20572 case `echo -n x` in
20574 case `echo 'x\c'` in
20575 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20581 if expr a : '\(a\)' >/dev/null 2>&1 &&
20582 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20588 rm -f conf$$ conf$$.exe conf$$.file
20589 if test -d conf$$.dir; then
20590 rm -f conf$$.dir/conf$$.file
20593 mkdir conf$$.dir 2>/dev/null
20595 if (echo >conf$$.file) 2>/dev/null; then
20596 if ln -s conf$$.file conf$$ 2>/dev/null; then
20598 # ... but there are two gotchas:
20599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20601 # In both cases, we have to default to `cp -p'.
20602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20604 elif ln conf$$.file conf$$ 2>/dev/null; then
20612 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20613 rmdir conf$$.dir 2>/dev/null
20615 if mkdir -p . 2>/dev/null; then
20618 test -d ./-p && rmdir ./-p
20622 if test -x / >/dev/null 2>&1; then
20623 as_test_x='test -x'
20625 if ls -dL / >/dev/null 2>&1; then
20632 if test -d "$1"; then
20638 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20639 ???[sx]*):;;*)false;;esac;fi
20643 as_executable_p=$as_test_x
20645 # Sed expression to map a string onto a valid CPP name.
20646 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20648 # Sed expression to map a string onto a valid variable name.
20649 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20654 # Save the log message, to keep $[0] and so on meaningful, and to
20655 # report actual input values of CONFIG_FILES etc. instead of their
20656 # values after options handling.
20658 This file was extended by libchise $as_me 0.5.0, which was
20659 generated by GNU Autoconf 2.63. Invocation command line was
20661 CONFIG_FILES = $CONFIG_FILES
20662 CONFIG_HEADERS = $CONFIG_HEADERS
20663 CONFIG_LINKS = $CONFIG_LINKS
20664 CONFIG_COMMANDS = $CONFIG_COMMANDS
20667 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20672 case $ac_config_files in *"
20673 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20676 case $ac_config_headers in *"
20677 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20682 # Files that config.status was made for.
20683 config_files="$ac_config_files"
20684 config_headers="$ac_config_headers"
20688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20690 \`$as_me' instantiates files from templates according to the
20691 current configuration.
20693 Usage: $0 [OPTION]... [FILE]...
20695 -h, --help print this help, then exit
20696 -V, --version print version number and configuration settings, then exit
20697 -q, --quiet, --silent
20698 do not print progress messages
20699 -d, --debug don't remove temporary files
20700 --recheck update $as_me by reconfiguring in the same conditions
20701 --file=FILE[:TEMPLATE]
20702 instantiate the configuration file FILE
20703 --header=FILE[:TEMPLATE]
20704 instantiate the configuration header FILE
20706 Configuration files:
20709 Configuration headers:
20712 Report bugs to <bug-autoconf@gnu.org>."
20715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20717 libchise config.status 0.5.0
20718 configured by $0, generated by GNU Autoconf 2.63,
20719 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20721 Copyright (C) 2008 Free Software Foundation, Inc.
20722 This config.status script is free software; the Free Software Foundation
20723 gives unlimited permission to copy, distribute and modify it."
20727 test -n "\$AWK" || AWK=awk
20730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20731 # The default lists apply if the user does not specify any file.
20737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20749 # Handling of the options.
20750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20752 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20753 $as_echo "$ac_cs_version"; exit ;;
20754 --debug | --debu | --deb | --de | --d | -d )
20756 --file | --fil | --fi | --f )
20759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20761 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20762 ac_need_defaults=false;;
20763 --header | --heade | --head | --hea )
20766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20768 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20769 ac_need_defaults=false;;
20771 # Conflict between --help and --header
20772 { $as_echo "$as_me: error: ambiguous option: $1
20773 Try \`$0 --help' for more information." >&2
20774 { (exit 1); exit 1; }; };;
20775 --help | --hel | -h )
20776 $as_echo "$ac_cs_usage"; exit ;;
20777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20781 # This is an error.
20782 -*) { $as_echo "$as_me: error: unrecognized option: $1
20783 Try \`$0 --help' for more information." >&2
20784 { (exit 1); exit 1; }; } ;;
20786 *) ac_config_targets="$ac_config_targets $1"
20787 ac_need_defaults=false ;;
20793 ac_configure_extra_args=
20795 if $ac_cs_silent; then
20797 ac_configure_extra_args="$ac_configure_extra_args --silent"
20801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20802 if \$ac_cs_recheck; then
20803 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20805 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20806 CONFIG_SHELL='$SHELL'
20807 export CONFIG_SHELL
20812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20816 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20817 ## Running $as_me. ##
20823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20828 # Handling of arguments.
20829 for ac_config_target in $ac_config_targets
20831 case $ac_config_target in
20832 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20833 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20835 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20836 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20837 { (exit 1); exit 1; }; };;
20842 # If the user did not use the arguments to specify the items to instantiate,
20843 # then the envvar interface is used. Set only those that are not.
20844 # We use the long form for the default assignment because of an extremely
20845 # bizarre bug on SunOS 4.1.3.
20846 if $ac_need_defaults; then
20847 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20848 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20851 # Have a temporary directory for convenience. Make it in the build tree
20852 # simply because there is no reason against having it here, and in addition,
20853 # creating and moving files from /tmp can sometimes cause problems.
20854 # Hook for its removal unless debugging.
20855 # Note that there is a small window in which the directory will not be cleaned:
20856 # after its creation but before its name has been assigned to `$tmp'.
20860 trap 'exit_status=$?
20861 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20863 trap '{ (exit 1); exit 1; }' 1 2 13 15
20865 # Create a (secure) tmp directory for tmp files.
20868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20869 test -n "$tmp" && test -d "$tmp"
20872 tmp=./conf$$-$RANDOM
20873 (umask 077 && mkdir "$tmp")
20876 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20877 { (exit 1); exit 1; }
20880 # Set up the scripts for CONFIG_FILES section.
20881 # No need to generate them if there are no CONFIG_FILES.
20882 # This happens for instance with `./config.status config.h'.
20883 if test -n "$CONFIG_FILES"; then
20887 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20888 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20891 ac_cs_awk_cr=$ac_cr
20894 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20899 echo "cat >conf$$subs.awk <<_ACEOF" &&
20900 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20902 } >conf$$subs.sh ||
20903 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20904 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20905 { (exit 1); exit 1; }; }
20906 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20908 for ac_last_try in false false false false false :; do
20909 . ./conf$$subs.sh ||
20910 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20911 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20912 { (exit 1); exit 1; }; }
20914 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20915 if test $ac_delim_n = $ac_delim_num; then
20917 elif $ac_last_try; then
20918 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20919 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20920 { (exit 1); exit 1; }; }
20922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20925 rm -f conf$$subs.sh
20927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20928 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20932 s/^/S["/; s/!.*/"]=/
20942 s/\(.\{148\}\).*/\1/
20944 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20949 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20956 s/\(.\{148\}\).*/\1/
20958 s/["\\]/\\&/g; s/^/"/; s/$/"/
20962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20967 ' <conf$$subs.awk | sed '
20972 ' >>$CONFIG_STATUS || ac_write_fail=1
20973 rm -f conf$$subs.awk
20974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20976 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20977 for (key in S) S_is_set[key] = 1
20983 nfields = split(line, field, "@")
20985 len = length(field[1])
20986 for (i = 2; i < nfields; i++) {
20988 keylen = length(key)
20989 if (S_is_set[key]) {
20991 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20992 len += length(value) + length(field[++i])
21003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21004 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21005 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21008 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21009 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21010 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21011 { (exit 1); exit 1; }; }
21014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21016 # trailing colons and then remove the whole line if VPATH becomes empty
21017 # (actually we leave an empty line to preserve line numbers).
21018 if test "x$srcdir" = x.; then
21019 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21020 s/:*\$(srcdir):*/:/
21021 s/:*\${srcdir}:*/:/
21023 s/^\([^=]*=[ ]*\):*/\1/
21029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21030 fi # test -n "$CONFIG_FILES"
21032 # Set up the scripts for CONFIG_HEADERS section.
21033 # No need to generate them if there are no CONFIG_HEADERS.
21034 # This happens for instance with `./config.status Makefile'.
21035 if test -n "$CONFIG_HEADERS"; then
21036 cat >"$tmp/defines.awk" <<\_ACAWK ||
21040 # Transform confdefs.h into an awk script `defines.awk', embedded as
21041 # here-document in config.status, that substitutes the proper values into
21042 # config.h.in to produce config.h.
21044 # Create a delimiter string that does not exist in confdefs.h, to ease
21045 # handling of long lines.
21047 for ac_last_try in false false :; do
21048 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21049 if test -z "$ac_t"; then
21051 elif $ac_last_try; then
21052 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21053 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21054 { (exit 1); exit 1; }; }
21056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21060 # For the awk script, D is an array of macro values keyed by name,
21061 # likewise P contains macro parameters if any. Preserve backslash
21062 # newline sequences.
21064 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21066 s/.\{148\}/&'"$ac_delim"'/g
21069 s/^[ ]*#[ ]*define[ ][ ]*/ /
21076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21078 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21082 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21083 D["\1"]=" \3\\\\\\n"\\/p
21085 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21090 s/.\{148\}/&'"$ac_delim"'/g
21095 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21098 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21100 ' <confdefs.h | sed '
21101 s/'"$ac_delim"'/"\\\
21102 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21105 for (key in D) D_is_set[key] = 1
21108 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21110 split(line, arg, " ")
21111 if (arg[1] == "#") {
21115 defundef = substr(arg[1], 2)
21118 split(mac1, mac2, "(") #)
21120 prefix = substr(line, 1, index(line, defundef) - 1)
21121 if (D_is_set[macro]) {
21122 # Preserve the white space surrounding the "#".
21123 print prefix "define", macro P[macro] D[macro]
21126 # Replace #undef with comments. This is necessary, for example,
21127 # in the case of _POSIX_SOURCE, which is predefined and required
21128 # on some systems where configure will not decide to define it.
21129 if (defundef == "undef") {
21130 print "/*", prefix defundef, macro, "*/"
21138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21139 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21140 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21141 { (exit 1); exit 1; }; }
21142 fi # test -n "$CONFIG_HEADERS"
21145 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
21150 :[FHLC]) ac_mode=$ac_tag; continue;;
21152 case $ac_mode$ac_tag in
21154 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21155 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21156 { (exit 1); exit 1; }; };;
21157 :[FH]-) ac_tag=-:-;;
21158 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21175 -) ac_f="$tmp/stdin";;
21176 *) # Look for the file first in the build tree, then in the source tree
21177 # (if the path is not absolute). The absolute path cannot be DOS-style,
21178 # because $ac_f cannot contain `:'.
21182 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21184 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21185 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21186 { (exit 1); exit 1; }; };;
21188 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21189 ac_file_inputs="$ac_file_inputs '$ac_f'"
21192 # Let's still pretend it is `configure' which instantiates (i.e., don't
21193 # use $as_me), people would be surprised to read:
21194 # /* config.h. Generated by config.status. */
21195 configure_input='Generated from '`
21196 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21198 if test x"$ac_file" != x-; then
21199 configure_input="$ac_file. $configure_input"
21200 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21201 $as_echo "$as_me: creating $ac_file" >&6;}
21203 # Neutralize special characters interpreted by sed in replacement strings.
21204 case $configure_input in #(
21205 *\&* | *\|* | *\\* )
21206 ac_sed_conf_input=`$as_echo "$configure_input" |
21207 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21208 *) ac_sed_conf_input=$configure_input;;
21212 *:-:* | *:-) cat >"$tmp/stdin" \
21213 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21214 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21215 { (exit 1); exit 1; }; } ;;
21220 ac_dir=`$as_dirname -- "$ac_file" ||
21221 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222 X"$ac_file" : 'X\(//\)[^/]' \| \
21223 X"$ac_file" : 'X\(//\)$' \| \
21224 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21225 $as_echo X"$ac_file" |
21226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21230 /^X\(\/\/\)[^/].*/{
21245 -*) as_dir=./$as_dir;;
21247 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21251 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21252 *) as_qdir=$as_dir;;
21254 as_dirs="'$as_qdir' $as_dirs"
21255 as_dir=`$as_dirname -- "$as_dir" ||
21256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21257 X"$as_dir" : 'X\(//\)[^/]' \| \
21258 X"$as_dir" : 'X\(//\)$' \| \
21259 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21260 $as_echo X"$as_dir" |
21261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21265 /^X\(\/\/\)[^/].*/{
21278 test -d "$as_dir" && break
21280 test -z "$as_dirs" || eval "mkdir $as_dirs"
21281 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21282 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21283 { (exit 1); exit 1; }; }; }
21287 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21289 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21290 # A ".." for each directory in $ac_dir_suffix.
21291 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21292 case $ac_top_builddir_sub in
21293 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21294 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21297 ac_abs_top_builddir=$ac_pwd
21298 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21299 # for backward compatibility:
21300 ac_top_builddir=$ac_top_build_prefix
21303 .) # We are building in place.
21305 ac_top_srcdir=$ac_top_builddir_sub
21306 ac_abs_top_srcdir=$ac_pwd ;;
21307 [\\/]* | ?:[\\/]* ) # Absolute name.
21308 ac_srcdir=$srcdir$ac_dir_suffix;
21309 ac_top_srcdir=$srcdir
21310 ac_abs_top_srcdir=$srcdir ;;
21311 *) # Relative name.
21312 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21313 ac_top_srcdir=$ac_top_build_prefix$srcdir
21314 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21316 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21328 # If the template does not know about datarootdir, expand it.
21329 # FIXME: This hack should be removed a few years after 2.60.
21330 ac_datarootdir_hack=; ac_datarootdir_seen=
21343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21344 *datarootdir*) ac_datarootdir_seen=yes;;
21345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21346 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21350 ac_datarootdir_hack='
21351 s&@datadir@&$datadir&g
21352 s&@docdir@&$docdir&g
21353 s&@infodir@&$infodir&g
21354 s&@localedir@&$localedir&g
21355 s&@mandir@&$mandir&g
21356 s&\\\${datarootdir}&$datarootdir&g' ;;
21360 # Neutralize VPATH when `$srcdir' = `.'.
21361 # Shell code in configure.ac might set extrasub.
21362 # FIXME: do we really want to maintain this feature?
21363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21364 ac_sed_extra="$ac_vpsub
21367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21370 s|@configure_input@|$ac_sed_conf_input|;t t
21371 s&@top_builddir@&$ac_top_builddir_sub&;t t
21372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21373 s&@srcdir@&$ac_srcdir&;t t
21374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21375 s&@top_srcdir@&$ac_top_srcdir&;t t
21376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21377 s&@builddir@&$ac_builddir&;t t
21378 s&@abs_builddir@&$ac_abs_builddir&;t t
21379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21380 $ac_datarootdir_hack
21382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21383 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21384 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21385 { (exit 1); exit 1; }; }
21387 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21388 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21389 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21390 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21391 which seems to be undefined. Please make sure it is defined." >&5
21392 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21393 which seems to be undefined. Please make sure it is defined." >&2;}
21397 -) cat "$tmp/out" && rm -f "$tmp/out";;
21398 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21400 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21401 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21402 { (exit 1); exit 1; }; }
21408 if test x"$ac_file" != x-; then
21410 $as_echo "/* $configure_input */" \
21411 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21412 } >"$tmp/config.h" \
21413 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21414 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21415 { (exit 1); exit 1; }; }
21416 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21417 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21418 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21421 mv "$tmp/config.h" "$ac_file" \
21422 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21423 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21424 { (exit 1); exit 1; }; }
21427 $as_echo "/* $configure_input */" \
21428 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21429 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21430 $as_echo "$as_me: error: could not create -" >&2;}
21431 { (exit 1); exit 1; }; }
21441 { (exit 0); exit 0; }
21443 chmod +x $CONFIG_STATUS
21444 ac_clean_files=$ac_clean_files_save
21446 test $ac_write_fail = 0 ||
21447 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21448 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21449 { (exit 1); exit 1; }; }
21452 # configure is writing to config.log, and then calls config.status.
21453 # config.status does its own redirection, appending to config.log.
21454 # Unfortunately, on DOS this fails, as config.log is still kept open
21455 # by configure, so config.status won't be able to write to it; its
21456 # output is simply discarded. So we exec the FD to /dev/null,
21457 # effectively closing config.log, so it can be properly (re)opened and
21458 # appended to by config.status. When coming back to configure, we
21459 # need to make the FD available again.
21460 if test "$no_create" != yes; then
21462 ac_config_status_args=
21463 test "$silent" = yes &&
21464 ac_config_status_args="$ac_config_status_args --quiet"
21466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21469 # would make configure fail if this is the last instruction.
21470 $ac_cs_success || { (exit 1); exit 1; }
21472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21473 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}