2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="../../src/c++/common/base/base64.cpp"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
832 INSTALL_STRIP_PROGRAM
882 ac_precious_vars='build_alias
899 # Initialize some variables set by options.
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name=s,x,x,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
985 cache_file=config.cache ;;
987 -datadir | --datadir | --datadi | --datad)
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
999 -disable-* | --disable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_$ac_feature=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1189 -site=* | --site=* | --sit=*)
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_$ac_package=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 # Be sure to have absolute directory names.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 --target=TARGET configure for building compilers for TARGET [HOST]
1468 if test -n "$ac_init_help"; then
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --disable-dependency-tracking speeds up one-time build
1476 --enable-dependency-tracking do not reject slow dependency extractors
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-static[=PKGS] build static libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --enable-unit-tests enables tests embedded in the source code of the
1483 library (changes content of the library)
1484 --enable-integration-tests
1485 enables tests outside of the library (can be used
1486 together with normal builds of the library)
1487 --enable-assert turn on assertions
1488 --enable-wchar enable Unicode wchar usage
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-pic try to use only PIC/non-PIC objects [default=use
1496 --with-tags[=TAGS] include additional configurations [automatic]
1497 --with-transport-agent=curl/mac/mozilla
1498 force to use the specified transport agent. NOTE:
1499 the Mozilla transport agent requires
1500 --with-mozilla-sdk-path=DIR for setting the Mozilla
1502 --with-mozilla-sdk-path=DIR
1503 use the Mozilla SDK from directory DIR
1505 Some influential environment variables:
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
1511 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1512 you have headers in a nonstandard directory <include dir>
1513 CC C compiler command
1514 CFLAGS C compiler flags
1516 CXXCPP C++ preprocessor
1517 F77 Fortran 77 compiler command
1518 FFLAGS Fortran 77 compiler flags
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1584 generated by GNU Autoconf 2.61
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.61. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next=false
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next=true ;;
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1870 # Check that the precious variables saved in the cache have kept the same
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1893 echo "$as_me: former value: $ac_old_val" >&2;}
1894 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1895 echo "$as_me: current value: $ac_new_val" >&2;}
1896 ac_cache_corrupted=:
1899 # Pass precious variables to config.status.
1900 if test "$ac_new_set" = set; then
1902 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 *) ac_arg=$ac_var=$ac_new_val ;;
1905 case " $ac_configure_args " in
1906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1907 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 if $ac_cache_corrupted; then
1912 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1948 elif test -f "$ac_dir/install.sh"; then
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1952 elif test -f "$ac_dir/shtool"; then
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 if test -z "$ac_aux_dir"; then
1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961 { (exit 1); exit 1; }; }
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973 # Make sure we can run config.sub.
1974 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1975 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1976 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1977 { (exit 1); exit 1; }; }
1979 { echo "$as_me:$LINENO: checking build system type" >&5
1980 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1981 if test "${ac_cv_build+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 ac_build_alias=$build_alias
1985 test "x$ac_build_alias" = x &&
1986 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1987 test "x$ac_build_alias" = x &&
1988 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1989 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1990 { (exit 1); exit 1; }; }
1991 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1992 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1993 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1994 { (exit 1); exit 1; }; }
1997 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1998 echo "${ECHO_T}$ac_cv_build" >&6; }
1999 case $ac_cv_build in
2001 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2002 echo "$as_me: error: invalid value of canonical build" >&2;}
2003 { (exit 1); exit 1; }; };;
2006 ac_save_IFS=$IFS; IFS='-'
2012 # Remember, the first character of IFS is used to create $*,
2013 # except with old shells:
2016 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2019 { echo "$as_me:$LINENO: checking host system type" >&5
2020 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2021 if test "${ac_cv_host+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test "x$host_alias" = x; then
2025 ac_cv_host=$ac_cv_build
2027 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2028 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2029 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2030 { (exit 1); exit 1; }; }
2034 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2035 echo "${ECHO_T}$ac_cv_host" >&6; }
2038 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2039 echo "$as_me: error: invalid value of canonical host" >&2;}
2040 { (exit 1); exit 1; }; };;
2043 ac_save_IFS=$IFS; IFS='-'
2049 # Remember, the first character of IFS is used to create $*,
2050 # except with old shells:
2053 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2056 { echo "$as_me:$LINENO: checking target system type" >&5
2057 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2058 if test "${ac_cv_target+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test "x$target_alias" = x; then
2062 ac_cv_target=$ac_cv_host
2064 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2065 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2066 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2067 { (exit 1); exit 1; }; }
2071 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2072 echo "${ECHO_T}$ac_cv_target" >&6; }
2073 case $ac_cv_target in
2075 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2076 echo "$as_me: error: invalid value of canonical target" >&2;}
2077 { (exit 1); exit 1; }; };;
2079 target=$ac_cv_target
2080 ac_save_IFS=$IFS; IFS='-'
2086 # Remember, the first character of IFS is used to create $*,
2087 # except with old shells:
2090 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2093 # The aliases save the names the user supplied, while $host etc.
2094 # will get canonicalized.
2095 test -n "$target_alias" &&
2096 test "$program_prefix$program_suffix$program_transform_name" = \
2098 program_prefix=${target_alias}-
2099 am__api_version="1.9"
2100 # Find a good install program. We prefer a C program (faster),
2101 # so one script is as good as another. But avoid the broken or
2102 # incompatible versions:
2103 # SysV /etc/install, /usr/sbin/install
2104 # SunOS /usr/etc/install
2105 # IRIX /sbin/install
2107 # AmigaOS /C/install, which installs bootblocks on floppy discs
2108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2111 # OS/2's system install, which has a completely different semantic
2112 # ./install, which can be erroneously created by make from ./install.sh.
2113 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2115 if test -z "$INSTALL"; then
2116 if test "${ac_cv_path_install+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 # Account for people who put trailing slashes in PATH elements.
2126 ./ | .// | /cC/* | \
2127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2128 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2131 # OSF1 and SCO ODT 3.0 have their own names for install.
2132 # Don't use installbsd from OSF since it installs stuff as root
2134 for ac_prog in ginstall scoinst install; do
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2137 if test $ac_prog = install &&
2138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2139 # AIX install. It has an incompatible calling convention.
2141 elif test $ac_prog = install &&
2142 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2143 # program-specific install script used by HP pwplus--don't use.
2146 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2159 if test "${ac_cv_path_install+set}" = set; then
2160 INSTALL=$ac_cv_path_install
2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for INSTALL within a source directory, because that will
2164 # break other packages using the cache if that directory is
2165 # removed, or if the value is a relative name.
2166 INSTALL=$ac_install_sh
2169 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2170 echo "${ECHO_T}$INSTALL" >&6; }
2172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2173 # It thinks the first close brace ends the variable substitution.
2174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2180 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2181 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2184 echo timestamp > conftest.file
2185 # Do `set' in a subshell so we don't clobber the current shell's
2186 # arguments. Must try -L first in case configure is actually a
2187 # symlink; some systems play weird games with the mod time of symlinks
2188 # (eg FreeBSD returns the mod time of the symlink's containing
2191 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2192 if test "$*" = "X"; then
2194 set X `ls -t $srcdir/configure conftest.file`
2197 if test "$*" != "X $srcdir/configure conftest.file" \
2198 && test "$*" != "X conftest.file $srcdir/configure"; then
2200 # If neither matched, then we have a broken ls. This can happen
2201 # if, for instance, CONFIG_SHELL is bash and it inherits a
2202 # broken ls alias from the environment. This has actually
2203 # happened. Such a system could not be considered "sane".
2204 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2205 alias in your environment" >&5
2206 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2207 alias in your environment" >&2;}
2208 { (exit 1); exit 1; }; }
2211 test "$2" = conftest.file
2217 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2218 Check your system clock" >&5
2219 echo "$as_me: error: newly created file is older than distributed files!
2220 Check your system clock" >&2;}
2221 { (exit 1); exit 1; }; }
2223 { echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6; }
2225 test "$program_prefix" != NONE &&
2226 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2227 # Use a double $ so make ignores it.
2228 test "$program_suffix" != NONE &&
2229 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2230 # Double any \ or $. echo might interpret backslashes.
2231 # By default was `s,x,x', remove it if useless.
2232 cat <<\_ACEOF >conftest.sed
2233 s/[\\$]/&&/g;s/;s,x,x,$//
2235 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2238 # expand $ac_aux_dir to an absolute path
2239 am_aux_dir=`cd $ac_aux_dir && pwd`
2241 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2242 # Use eval to expand $SHELL
2243 if eval "$MISSING --run true"; then
2244 am_missing_run="$MISSING --run "
2247 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2248 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2251 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2252 # We used to keeping the `.' as first argument, in order to
2253 # allow $(mkdir_p) to be used without argument. As in
2254 # $(mkdir_p) $(somedir)
2255 # where $(somedir) is conditionally defined. However this is wrong
2257 # 1. if the package is installed by a user who cannot write `.'
2258 # make install will fail,
2259 # 2. the above comment should most certainly read
2260 # $(mkdir_p) $(DESTDIR)$(somedir)
2261 # so it does not work when $(somedir) is undefined and
2262 # $(DESTDIR) is not.
2263 # To support the latter case, we have to write
2264 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2265 # so the `.' trick is pointless.
2266 mkdir_p='mkdir -p --'
2268 # On NextStep and OpenStep, the `mkdir' command does not
2269 # recognize any option. It will interpret all options as
2270 # directories to create, and then abort because `.' already
2272 for d in ./-p ./--version;
2274 test -d $d && rmdir $d
2276 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2277 if test -f "$ac_aux_dir/mkinstalldirs"; then
2278 mkdir_p='$(mkinstalldirs)'
2280 mkdir_p='$(install_sh) -d'
2284 for ac_prog in gawk mawk nawk awk
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_AWK+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$AWK"; then
2294 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_AWK="$ac_prog"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 if test -n "$AWK"; then
2315 { echo "$as_me:$LINENO: result: $AWK" >&5
2316 echo "${ECHO_T}$AWK" >&6; }
2318 { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2323 test -n "$AWK" && break
2326 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2327 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2328 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2329 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.make <<\_ACEOF
2335 @echo '@@@%%%=$(MAKE)=@@@%%%'
2337 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2338 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2340 eval ac_cv_prog_make_${ac_make}_set=yes;;
2342 eval ac_cv_prog_make_${ac_make}_set=no;;
2346 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2347 { echo "$as_me:$LINENO: result: yes" >&5
2348 echo "${ECHO_T}yes" >&6; }
2351 { echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6; }
2353 SET_MAKE="MAKE=${MAKE-make}"
2356 rm -rf .tst 2>/dev/null
2357 mkdir .tst 2>/dev/null
2358 if test -d .tst; then
2363 rmdir .tst 2>/dev/null
2365 # test to see if srcdir already configured
2366 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2367 test -f $srcdir/config.status; then
2368 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2369 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2370 { (exit 1); exit 1; }; }
2373 # test whether we have cygpath
2374 if test -z "$CYGPATH_W"; then
2375 if (cygpath --version) >/dev/null 2>/dev/null; then
2376 CYGPATH_W='cygpath -w'
2383 # Define the identity of the package.
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE "$PACKAGE"
2393 cat >>confdefs.h <<_ACEOF
2394 #define VERSION "$VERSION"
2397 # Some tools Automake needs.
2399 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2402 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2405 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2408 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2411 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2413 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2415 # Installed binaries are usually stripped using `strip' when the user
2416 # run `make install-strip'. However `strip' might not be the right
2417 # tool to use in cross-compilation environments, therefore Automake
2418 # will honor the `STRIP' environment variable to overrule this program.
2419 if test "$cross_compiling" != no; then
2420 if test -n "$ac_tool_prefix"; then
2421 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2422 set dummy ${ac_tool_prefix}strip; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_STRIP+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 if test -n "$STRIP"; then
2429 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 STRIP=$ac_cv_prog_STRIP
2449 if test -n "$STRIP"; then
2450 { echo "$as_me:$LINENO: result: $STRIP" >&5
2451 echo "${ECHO_T}$STRIP" >&6; }
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2459 if test -z "$ac_cv_prog_STRIP"; then
2461 # Extract the first word of "strip", so it can be a program name with args.
2462 set dummy strip; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$ac_ct_STRIP"; then
2469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_ac_ct_STRIP="strip"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2489 if test -n "$ac_ct_STRIP"; then
2490 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2491 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2497 if test "x$ac_ct_STRIP" = x; then
2500 case $cross_compiling:$ac_tool_warned in
2502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2503 whose name does not start with the host triplet. If you think this
2504 configuration is useful to you, please write to autoconf@gnu.org." >&5
2505 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2506 whose name does not start with the host triplet. If you think this
2507 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2508 ac_tool_warned=yes ;;
2513 STRIP="$ac_cv_prog_STRIP"
2517 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2519 # We need awk for the "check" target. The system "awk" is bad on
2521 # Always define AMTAR for backward compatibility.
2523 AMTAR=${AMTAR-"${am_missing_run}tar"}
2525 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2531 ac_config_headers="$ac_config_headers config.h"
2535 ac_cpp='$CXXCPP $CPPFLAGS'
2536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2539 if test -z "$CXX"; then
2540 if test -n "$CCC"; then
2543 if test -n "$ac_tool_prefix"; then
2544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_CXX+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 if test -n "$CXX"; then
2554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 if test -n "$CXX"; then
2575 { echo "$as_me:$LINENO: result: $CXX" >&5
2576 echo "${ECHO_T}$CXX" >&6; }
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2583 test -n "$CXX" && break
2586 if test -z "$CXX"; then
2588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy $ac_prog; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 if test -n "$ac_ct_CXX"; then
2598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_ac_ct_CXX="$ac_prog"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2618 if test -n "$ac_ct_CXX"; then
2619 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2620 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2627 test -n "$ac_ct_CXX" && break
2630 if test "x$ac_ct_CXX" = x; then
2633 case $cross_compiling:$ac_tool_warned in
2635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&5
2638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet. If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2641 ac_tool_warned=yes ;;
2649 # Provide some information about the compiler.
2650 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2651 ac_compiler=`set X $ac_compile; echo $2`
2652 { (ac_try="$ac_compiler --version >&5"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler --version >&5") 2>&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (ac_try="$ac_compiler -v >&5"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler -v >&5") 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672 { (ac_try="$ac_compiler -V >&5"
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler -V >&5") 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 ac_clean_files_save=$ac_clean_files
2699 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2700 # Try to create an executable without -o first, disregard a.out.
2701 # It will help us diagnose broken compilers, and finding out an intuition
2703 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2704 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2705 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2707 # List of possible output files, starting from the most likely.
2708 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2709 # only as a last resort. b.out is created by i960 compilers.
2710 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2712 # The IRIX 6 linker writes into existing files which may not be
2713 # executable, retaining their permissions. Remove them first so a
2714 # subsequent execution test works.
2716 for ac_file in $ac_files
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2720 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2725 if { (ac_try="$ac_link_default"
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_link_default") 2>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; then
2735 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2736 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2737 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2738 # so that the user can short-circuit this test for compilers unknown to
2740 for ac_file in $ac_files ''
2742 test -f "$ac_file" || continue
2744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2747 # We found the default executable, but exeext='' is most
2751 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2755 # We set ac_cv_exeext here because the later test for it is not
2756 # safe: cross compilers may not add the suffix if given an `-o'
2757 # argument, so we may need to know it at that point already.
2758 # Even if this section looks crufty: it has the advantage of
2765 test "$ac_cv_exeext" = no && ac_cv_exeext=
2771 { echo "$as_me:$LINENO: result: $ac_file" >&5
2772 echo "${ECHO_T}$ac_file" >&6; }
2773 if test -z "$ac_file"; then
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2778 See \`config.log' for more details." >&5
2779 echo "$as_me: error: C++ compiler cannot create executables
2780 See \`config.log' for more details." >&2;}
2781 { (exit 77); exit 77; }; }
2784 ac_exeext=$ac_cv_exeext
2786 # Check that the compiler produces executables we can run. If not, either
2787 # the compiler is broken, or we cross compile.
2788 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2789 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2790 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2791 # If not cross compiling, check that we can run a simple program.
2792 if test "$cross_compiling" != yes; then
2793 if { ac_try='./$ac_file'
2794 { (case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_try") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2805 if test "$cross_compiling" = maybe; then
2808 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2809 If you meant to cross compile, use \`--host'.
2810 See \`config.log' for more details." >&5
2811 echo "$as_me: error: cannot run C++ compiled programs.
2812 If you meant to cross compile, use \`--host'.
2813 See \`config.log' for more details." >&2;}
2814 { (exit 1); exit 1; }; }
2818 { echo "$as_me:$LINENO: result: yes" >&5
2819 echo "${ECHO_T}yes" >&6; }
2821 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2822 ac_clean_files=$ac_clean_files_save
2823 # Check that the compiler produces executables we can run. If not, either
2824 # the compiler is broken, or we cross compile.
2825 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2826 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2827 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2828 echo "${ECHO_T}$cross_compiling" >&6; }
2830 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2831 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2832 if { (ac_try="$ac_link"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_link") 2>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; then
2842 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2843 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2844 # work properly (i.e., refer to `conftest.exe'), while it won't with
2846 for ac_file in conftest.exe conftest conftest.*; do
2847 test -f "$ac_file" || continue
2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2863 rm -f conftest$ac_cv_exeext
2864 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2865 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2867 rm -f conftest.$ac_ext
2868 EXEEXT=$ac_cv_exeext
2870 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2871 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2872 if test "${ac_cv_objext+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 cat >conftest.$ac_ext <<_ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2890 rm -f conftest.o conftest.obj
2891 if { (ac_try="$ac_compile"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
2901 for ac_file in conftest.o conftest.obj conftest.*; do
2902 test -f "$ac_file" || continue;
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2905 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2913 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2916 See \`config.log' for more details." >&2;}
2917 { (exit 1); exit 1; }; }
2920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2922 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2923 echo "${ECHO_T}$ac_cv_objext" >&6; }
2924 OBJEXT=$ac_cv_objext
2926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } && {
2963 test -z "$ac_cxx_werror_flag" ||
2964 test ! -s conftest.err
2965 } && test -s conftest.$ac_objext; then
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2978 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2979 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2980 GXX=`test $ac_compiler_gnu = yes && echo yes`
2981 ac_test_CXXFLAGS=${CXXFLAGS+set}
2982 ac_save_CXXFLAGS=$CXXFLAGS
2983 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2984 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_cxx_g+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2989 ac_cxx_werror_flag=yes
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3007 rm -f conftest.$ac_objext
3008 if { (ac_try="$ac_compile"
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compile") 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } && {
3021 test -z "$ac_cxx_werror_flag" ||
3022 test ! -s conftest.err
3023 } && test -s conftest.$ac_objext; then
3024 ac_cv_prog_cxx_g=yes
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_cxx_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_cxx_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3101 ac_cv_prog_cxx_g=yes
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3118 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3119 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3120 if test "$ac_test_CXXFLAGS" = set; then
3121 CXXFLAGS=$ac_save_CXXFLAGS
3122 elif test $ac_cv_prog_cxx_g = yes; then
3123 if test "$GXX" = yes; then
3129 if test "$GXX" = yes; then
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 DEPDIR="${am__leading_dot}deps"
3142 ac_config_commands="$ac_config_commands depfiles"
3145 am_make=${MAKE-make}
3146 cat > confinc << 'END'
3151 # If we don't find an include directive, just comment out the code.
3152 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3153 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3157 # First try GNU make style include.
3158 echo "include confinc" > confmf
3159 # We grep out `Entering directory' and `Leaving directory'
3160 # messages which can occur if `w' ends up in MAKEFLAGS.
3161 # In particular we don't look at `^make:' because GNU make might
3162 # be invoked under some other name (usually "gmake"), in which
3163 # case it prints its new name instead of `make'.
3164 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3169 # Now try BSD make style include.
3170 if test "$am__include" = "#"; then
3171 echo '.include "confinc"' > confmf
3172 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3173 am__include=.include
3180 { echo "$as_me:$LINENO: result: $_am_result" >&5
3181 echo "${ECHO_T}$_am_result" >&6; }
3182 rm -f confinc confmf
3184 # Check whether --enable-dependency-tracking was given.
3185 if test "${enable_dependency_tracking+set}" = set; then
3186 enableval=$enable_dependency_tracking;
3189 if test "x$enable_dependency_tracking" != xno; then
3190 am_depcomp="$ac_aux_dir/depcomp"
3195 if test "x$enable_dependency_tracking" != xno; then
3206 depcc="$CXX" am_compiler_list=
3208 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3209 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3210 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3214 # We make a subdir and do the tests there. Otherwise we can end up
3215 # making bogus files that we don't know about and never remove. For
3216 # instance it was reported that on HP-UX the gcc test will end up
3217 # making a dummy file named `D' -- because `-MD' means `put the output
3220 # Copy depcomp to subdir because otherwise we won't find it if we're
3221 # using a relative directory.
3222 cp "$am_depcomp" conftest.dir
3224 # We will build objects and dependencies in a subdirectory because
3225 # it helps to detect inapplicable dependency modes. For instance
3226 # both Tru64's cc and ICC support -MD to output dependencies as a
3227 # side effect of compilation, but ICC will put the dependencies in
3228 # the current directory while Tru64 will put them in the object
3232 am_cv_CXX_dependencies_compiler_type=none
3233 if test "$am_compiler_list" = ""; then
3234 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3236 for depmode in $am_compiler_list; do
3237 # Setup a source with many dependencies, because some compilers
3238 # like to wrap large dependency lists on column 80 (with \), and
3239 # we should not choose a depcomp mode which is confused by this.
3241 # We need to recreate these files for each test, as the compiler may
3242 # overwrite some of them when testing with obscure command lines.
3243 # This happens at least with the AIX C compiler.
3245 for i in 1 2 3 4 5 6; do
3246 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3247 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3248 # Solaris 8's {/usr,}/bin/sh.
3249 touch sub/conftst$i.h
3251 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3255 # after this tag, mechanisms are not by side-effect, so they'll
3256 # only be used when explicitly requested
3257 if test "x$enable_dependency_tracking" = xyes; then
3265 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3266 # mode. It turns out that the SunPro C++ compiler does not properly
3267 # handle `-M -o', and we need to detect this.
3268 if depmode=$depmode \
3269 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3270 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3271 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3272 >/dev/null 2>conftest.err &&
3273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3274 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3276 # icc doesn't choke on unknown options, it will just issue warnings
3277 # or remarks (even with -Werror). So we grep stderr for any message
3278 # that says an option was ignored or not supported.
3279 # When given -MP, icc 7.0 and 7.1 complain thusly:
3280 # icc: Command line warning: ignoring option '-M'; no argument required
3281 # The diagnosis changed in icc 8.0:
3282 # icc: Command line remark: option '-MP' not supported
3283 if (grep 'ignoring option' conftest.err ||
3284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3285 am_cv_CXX_dependencies_compiler_type=$depmode
3294 am_cv_CXX_dependencies_compiler_type=none
3298 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3299 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3300 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3305 test "x$enable_dependency_tracking" != xno \
3306 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3307 am__fastdepCXX_TRUE=
3308 am__fastdepCXX_FALSE='#'
3310 am__fastdepCXX_TRUE='#'
3311 am__fastdepCXX_FALSE=
3315 # Check whether --enable-shared was given.
3316 if test "${enable_shared+set}" = set; then
3317 enableval=$enable_shared; p=${PACKAGE-default}
3319 yes) enable_shared=yes ;;
3320 no) enable_shared=no ;;
3323 # Look at the argument we got. We use all the common list separators.
3324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3325 for pkg in $enableval; do
3327 if test "X$pkg" = "X$p"; then
3339 # Check whether --enable-static was given.
3340 if test "${enable_static+set}" = set; then
3341 enableval=$enable_static; p=${PACKAGE-default}
3343 yes) enable_static=yes ;;
3344 no) enable_static=no ;;
3347 # Look at the argument we got. We use all the common list separators.
3348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3349 for pkg in $enableval; do
3351 if test "X$pkg" = "X$p"; then
3363 # Check whether --enable-fast-install was given.
3364 if test "${enable_fast_install+set}" = set; then
3365 enableval=$enable_fast_install; p=${PACKAGE-default}
3367 yes) enable_fast_install=yes ;;
3368 no) enable_fast_install=no ;;
3370 enable_fast_install=no
3371 # Look at the argument we got. We use all the common list separators.
3372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3373 for pkg in $enableval; do
3375 if test "X$pkg" = "X$p"; then
3376 enable_fast_install=yes
3383 enable_fast_install=yes
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 if test -n "$CC"; then
3422 { echo "$as_me:$LINENO: result: $CC" >&5
3423 echo "${ECHO_T}$CC" >&6; }
3425 { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3431 if test -z "$ac_cv_prog_CC"; then
3433 # Extract the first word of "gcc", so it can be a program name with args.
3434 set dummy gcc; ac_word=$2
3435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_ac_ct_CC="gcc"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3463 echo "${ECHO_T}$ac_ct_CC" >&6; }
3465 { echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6; }
3469 if test "x$ac_ct_CC" = x; then
3472 case $cross_compiling:$ac_tool_warned in
3474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3475 whose name does not start with the host triplet. If you think this
3476 configuration is useful to you, please write to autoconf@gnu.org." >&5
3477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3478 whose name does not start with the host triplet. If you think this
3479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3480 ac_tool_warned=yes ;;
3488 if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}cc; ac_word=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_CC="${ac_tool_prefix}cc"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 if test -n "$CC"; then
3519 { echo "$as_me:$LINENO: result: $CC" >&5
3520 echo "${ECHO_T}$CC" >&6; }
3522 { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3529 if test -z "$CC"; then
3530 # Extract the first word of "cc", so it can be a program name with args.
3531 set dummy cc; ac_word=$2
3532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_CC+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3549 ac_prog_rejected=yes
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 if test $ac_prog_rejected = yes; then
3561 # We found a bogon in the path, so make sure we never use it.
3562 set dummy $ac_cv_prog_CC
3564 if test $# != 0; then
3565 # We chose a different compiler from the bogus one.
3566 # However, it has the same basename, so the bogon will be chosen
3567 # first if we set CC to just the basename; use the full file name.
3569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3575 if test -n "$CC"; then
3576 { echo "$as_me:$LINENO: result: $CC" >&5
3577 echo "${ECHO_T}$CC" >&6; }
3579 { echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6; }
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 for ac_prog in cl.exe
3589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 if test -n "$CC"; then
3618 { echo "$as_me:$LINENO: result: $CC" >&5
3619 echo "${ECHO_T}$CC" >&6; }
3621 { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3626 test -n "$CC" && break
3629 if test -z "$CC"; then
3631 for ac_prog in cl.exe
3633 # Extract the first word of "$ac_prog", so it can be a program name with args.
3634 set dummy $ac_prog; ac_word=$2
3635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 if test -n "$ac_ct_CC"; then
3641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 ac_cv_prog_ac_ct_CC="$ac_prog"
3651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3661 if test -n "$ac_ct_CC"; then
3662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3663 echo "${ECHO_T}$ac_ct_CC" >&6; }
3665 { echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6; }
3670 test -n "$ac_ct_CC" && break
3673 if test "x$ac_ct_CC" = x; then
3676 case $cross_compiling:$ac_tool_warned in
3678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3679 whose name does not start with the host triplet. If you think this
3680 configuration is useful to you, please write to autoconf@gnu.org." >&5
3681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3682 whose name does not start with the host triplet. If you think this
3683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3684 ac_tool_warned=yes ;;
3693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3694 See \`config.log' for more details." >&5
3695 echo "$as_me: error: no acceptable C compiler found in \$PATH
3696 See \`config.log' for more details." >&2;}
3697 { (exit 1); exit 1; }; }
3699 # Provide some information about the compiler.
3700 echo "$as_me:$LINENO: checking for C compiler version" >&5
3701 ac_compiler=`set X $ac_compile; echo $2`
3702 { (ac_try="$ac_compiler --version >&5"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_compiler --version >&5") 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }
3712 { (ac_try="$ac_compiler -v >&5"
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_compiler -v >&5") 2>&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }
3722 { (ac_try="$ac_compiler -V >&5"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_compiler -V >&5") 2>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }
3733 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 cat >conftest.$ac_ext <<_ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_compile") 2>conftest.er1
3765 grep -v '^ *+' conftest.er1 >conftest.err
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } && {
3770 test -z "$ac_c_werror_flag" ||
3771 test ! -s conftest.err
3772 } && test -s conftest.$ac_objext; then
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3785 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3786 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3787 GCC=`test $ac_compiler_gnu = yes && echo yes`
3788 ac_test_CFLAGS=${CFLAGS+set}
3789 ac_save_CFLAGS=$CFLAGS
3790 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3792 if test "${ac_cv_prog_cc_g+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_save_c_werror_flag=$ac_c_werror_flag
3796 ac_c_werror_flag=yes
3799 cat >conftest.$ac_ext <<_ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3814 rm -f conftest.$ac_objext
3815 if { (ac_try="$ac_compile"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_compile") 2>conftest.er1
3823 grep -v '^ *+' conftest.er1 >conftest.err
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } && {
3828 test -z "$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 } && test -s conftest.$ac_objext; then
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && {
3866 test -z "$ac_c_werror_flag" ||
3867 test ! -s conftest.err
3868 } && test -s conftest.$ac_objext; then
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3891 rm -f conftest.$ac_objext
3892 if { (ac_try="$ac_compile"
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_compile") 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && {
3905 test -z "$ac_c_werror_flag" ||
3906 test ! -s conftest.err
3907 } && test -s conftest.$ac_objext; then
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 ac_c_werror_flag=$ac_save_c_werror_flag
3925 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3926 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3927 if test "$ac_test_CFLAGS" = set; then
3928 CFLAGS=$ac_save_CFLAGS
3929 elif test $ac_cv_prog_cc_g = yes; then
3930 if test "$GCC" = yes; then
3936 if test "$GCC" = yes; then
3942 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3943 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3944 if test "${ac_cv_prog_cc_c89+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 ac_cv_prog_cc_c89=no
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3957 #include <sys/types.h>
3958 #include <sys/stat.h>
3959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3960 struct buf { int x; };
3961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3962 static char *e (p, i)
3968 static char *f (char * (*g) (char **, int), char **p, ...)
3973 s = g (p, va_arg (v,int));
3978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3979 function prototypes and stuff, but not '\xHH' hex character constants.
3980 These don't provoke an error unfortunately, instead are silently treated
3981 as 'x'. The following induces an error, until -std is added to get
3982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3983 array size at least. It's necessary to write '\x00'==0 to get something
3984 that's true only with -std. */
3985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3988 inside strings and character constants. */
3990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3992 int test (int i, double x);
3993 struct s1 {int (*f) (int a);};
3994 struct s2 {int (*f) (double a);};
3995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4007 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4009 CC="$ac_save_CC $ac_arg"
4010 rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_compile") 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } && {
4024 test -z "$ac_c_werror_flag" ||
4025 test ! -s conftest.err
4026 } && test -s conftest.$ac_objext; then
4027 ac_cv_prog_cc_c89=$ac_arg
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4035 rm -f core conftest.err conftest.$ac_objext
4036 test "x$ac_cv_prog_cc_c89" != "xno" && break
4038 rm -f conftest.$ac_ext
4043 case "x$ac_cv_prog_cc_c89" in
4045 { echo "$as_me:$LINENO: result: none needed" >&5
4046 echo "${ECHO_T}none needed" >&6; } ;;
4048 { echo "$as_me:$LINENO: result: unsupported" >&5
4049 echo "${ECHO_T}unsupported" >&6; } ;;
4051 CC="$CC $ac_cv_prog_cc_c89"
4052 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4053 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 depcc="$CC" am_compiler_list=
4065 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4066 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4067 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4071 # We make a subdir and do the tests there. Otherwise we can end up
4072 # making bogus files that we don't know about and never remove. For
4073 # instance it was reported that on HP-UX the gcc test will end up
4074 # making a dummy file named `D' -- because `-MD' means `put the output
4077 # Copy depcomp to subdir because otherwise we won't find it if we're
4078 # using a relative directory.
4079 cp "$am_depcomp" conftest.dir
4081 # We will build objects and dependencies in a subdirectory because
4082 # it helps to detect inapplicable dependency modes. For instance
4083 # both Tru64's cc and ICC support -MD to output dependencies as a
4084 # side effect of compilation, but ICC will put the dependencies in
4085 # the current directory while Tru64 will put them in the object
4089 am_cv_CC_dependencies_compiler_type=none
4090 if test "$am_compiler_list" = ""; then
4091 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4093 for depmode in $am_compiler_list; do
4094 # Setup a source with many dependencies, because some compilers
4095 # like to wrap large dependency lists on column 80 (with \), and
4096 # we should not choose a depcomp mode which is confused by this.
4098 # We need to recreate these files for each test, as the compiler may
4099 # overwrite some of them when testing with obscure command lines.
4100 # This happens at least with the AIX C compiler.
4102 for i in 1 2 3 4 5 6; do
4103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4105 # Solaris 8's {/usr,}/bin/sh.
4106 touch sub/conftst$i.h
4108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4112 # after this tag, mechanisms are not by side-effect, so they'll
4113 # only be used when explicitly requested
4114 if test "x$enable_dependency_tracking" = xyes; then
4122 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4123 # mode. It turns out that the SunPro C++ compiler does not properly
4124 # handle `-M -o', and we need to detect this.
4125 if depmode=$depmode \
4126 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4129 >/dev/null 2>conftest.err &&
4130 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4131 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4132 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4133 # icc doesn't choke on unknown options, it will just issue warnings
4134 # or remarks (even with -Werror). So we grep stderr for any message
4135 # that says an option was ignored or not supported.
4136 # When given -MP, icc 7.0 and 7.1 complain thusly:
4137 # icc: Command line warning: ignoring option '-M'; no argument required
4138 # The diagnosis changed in icc 8.0:
4139 # icc: Command line remark: option '-MP' not supported
4140 if (grep 'ignoring option' conftest.err ||
4141 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4142 am_cv_CC_dependencies_compiler_type=$depmode
4151 am_cv_CC_dependencies_compiler_type=none
4155 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4156 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4162 test "x$enable_dependency_tracking" != xno \
4163 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4165 am__fastdepCC_FALSE='#'
4167 am__fastdepCC_TRUE='#'
4168 am__fastdepCC_FALSE=
4172 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4173 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4174 if test "${lt_cv_path_SED+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 # Loop through the user's path and test for sed and gsed.
4178 # Then use that list of sed's as ones to test for truncation.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for lt_ac_prog in sed gsed; do
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4187 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4194 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4195 # along with /bin/sed that truncates output.
4196 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4197 test ! -f $lt_ac_sed && continue
4198 cat /dev/null > conftest.in
4200 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4201 # Check for GNU sed and select it if it is found.
4202 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4203 lt_cv_path_SED=$lt_ac_sed
4207 cat conftest.in conftest.in >conftest.tmp
4208 mv conftest.tmp conftest.in
4209 cp conftest.in conftest.nl
4211 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4212 cmp -s conftest.out conftest.nl || break
4213 # 10000 chars as input seems more than enough
4214 test $lt_ac_count -gt 10 && break
4215 lt_ac_count=`expr $lt_ac_count + 1`
4216 if test $lt_ac_count -gt $lt_ac_max; then
4217 lt_ac_max=$lt_ac_count
4218 lt_cv_path_SED=$lt_ac_sed
4226 { echo "$as_me:$LINENO: result: $SED" >&5
4227 echo "${ECHO_T}$SED" >&6; }
4229 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 # Extract the first word of "grep ggrep" to use in msg output
4235 if test -z "$GREP"; then
4236 set dummy grep ggrep; ac_prog_name=$2
4237 if test "${ac_cv_path_GREP+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 ac_path_GREP_found=false
4241 # Loop through the user's path and test for each of PROGNAME-LIST
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246 test -z "$as_dir" && as_dir=.
4247 for ac_prog in grep ggrep; do
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4250 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4251 # Check for GNU ac_path_GREP and select it if it is found.
4252 # Check for GNU $ac_path_GREP
4253 case `"$ac_path_GREP" --version 2>&1` in
4255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4258 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4261 cat "conftest.in" "conftest.in" >"conftest.tmp"
4262 mv "conftest.tmp" "conftest.in"
4263 cp "conftest.in" "conftest.nl"
4264 echo 'GREP' >> "conftest.nl"
4265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267 ac_count=`expr $ac_count + 1`
4268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4269 # Best one so far, save it but keep looking for a better one
4270 ac_cv_path_GREP="$ac_path_GREP"
4271 ac_path_GREP_max=$ac_count
4273 # 10*(2^10) chars as input seems more than enough
4274 test $ac_count -gt 10 && break
4276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 $ac_path_GREP_found && break 3
4290 GREP="$ac_cv_path_GREP"
4291 if test -z "$GREP"; then
4292 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4293 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4294 { (exit 1); exit 1; }; }
4298 ac_cv_path_GREP=$GREP
4303 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4304 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4305 GREP="$ac_cv_path_GREP"
4308 { echo "$as_me:$LINENO: checking for egrep" >&5
4309 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4310 if test "${ac_cv_path_EGREP+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4314 then ac_cv_path_EGREP="$GREP -E"
4316 # Extract the first word of "egrep" to use in msg output
4317 if test -z "$EGREP"; then
4318 set dummy egrep; ac_prog_name=$2
4319 if test "${ac_cv_path_EGREP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 ac_path_EGREP_found=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328 test -z "$as_dir" && as_dir=.
4329 for ac_prog in egrep; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4332 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4333 # Check for GNU ac_path_EGREP and select it if it is found.
4334 # Check for GNU $ac_path_EGREP
4335 case `"$ac_path_EGREP" --version 2>&1` in
4337 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4340 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 echo 'EGREP' >> "conftest.nl"
4347 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349 ac_count=`expr $ac_count + 1`
4350 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_EGREP="$ac_path_EGREP"
4353 ac_path_EGREP_max=$ac_count
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 $ac_path_EGREP_found && break 3
4372 EGREP="$ac_cv_path_EGREP"
4373 if test -z "$EGREP"; then
4374 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4375 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4376 { (exit 1); exit 1; }; }
4380 ac_cv_path_EGREP=$EGREP
4386 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4387 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4388 EGREP="$ac_cv_path_EGREP"
4392 # Check whether --with-gnu-ld was given.
4393 if test "${with_gnu_ld+set}" = set; then
4394 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4400 if test "$GCC" = yes; then
4401 # Check if gcc -print-prog-name=ld gives a path.
4402 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4403 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4406 # gcc leaves a trailing carriage return which upsets mingw
4407 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4409 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4412 # Accept absolute paths.
4414 re_direlt='/[^/][^/]*/\.\./'
4415 # Canonicalize the pathname of ld
4416 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4417 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4418 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4420 test -z "$LD" && LD="$ac_prog"
4423 # If it fails, then pretend we aren't using GCC.
4427 # If it is relative, then search for the first ld in PATH.
4431 elif test "$with_gnu_ld" = yes; then
4432 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4433 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4435 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4436 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4438 if test "${lt_cv_path_LD+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -z "$LD"; then
4442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4443 for ac_dir in $PATH; do
4445 test -z "$ac_dir" && ac_dir=.
4446 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4447 lt_cv_path_LD="$ac_dir/$ac_prog"
4448 # Check to see if the program is GNU ld. I'd rather use --version,
4449 # but apparently some variants of GNU ld only accept -v.
4450 # Break only if it was the GNU/non-GNU ld that we prefer.
4451 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4452 *GNU* | *'with BFD'*)
4453 test "$with_gnu_ld" != no && break
4456 test "$with_gnu_ld" != yes && break
4463 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4468 if test -n "$LD"; then
4469 { echo "$as_me:$LINENO: result: $LD" >&5
4470 echo "${ECHO_T}$LD" >&6; }
4472 { echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6; }
4475 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4476 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4477 { (exit 1); exit 1; }; }
4478 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4479 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4480 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4484 case `$LD -v 2>&1 </dev/null` in
4485 *GNU* | *'with BFD'*)
4486 lt_cv_prog_gnu_ld=yes
4489 lt_cv_prog_gnu_ld=no
4493 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4494 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4495 with_gnu_ld=$lt_cv_prog_gnu_ld
4498 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4499 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4500 if test "${lt_cv_ld_reload_flag+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 lt_cv_ld_reload_flag='-r'
4505 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4506 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4507 reload_flag=$lt_cv_ld_reload_flag
4508 case $reload_flag in
4510 *) reload_flag=" $reload_flag" ;;
4512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4515 if test "$GCC" = yes; then
4516 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4518 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4523 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4524 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4525 if test "${lt_cv_path_NM+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 if test -n "$NM"; then
4529 # Let the user override the test.
4532 lt_nm_to_check="${ac_tool_prefix}nm"
4533 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4534 lt_nm_to_check="$lt_nm_to_check nm"
4536 for lt_tmp_nm in $lt_nm_to_check; do
4537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4538 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4540 test -z "$ac_dir" && ac_dir=.
4541 tmp_nm="$ac_dir/$lt_tmp_nm"
4542 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4543 # Check to see if the nm accepts a BSD-compat flag.
4544 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4545 # nm: unknown option "B" ignored
4546 # Tru64's nm complains that /dev/null is an invalid object file
4547 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4548 */dev/null* | *'Invalid file or object type'*)
4549 lt_cv_path_NM="$tmp_nm -B"
4553 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4555 lt_cv_path_NM="$tmp_nm -p"
4559 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4560 continue # so that we can try to find one that supports BSD flags
4569 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4572 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4573 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4576 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4577 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4579 if test "$LN_S" = "ln -s"; then
4580 { echo "$as_me:$LINENO: result: yes" >&5
4581 echo "${ECHO_T}yes" >&6; }
4583 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4584 echo "${ECHO_T}no, using $LN_S" >&6; }
4587 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4588 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4589 if test "${lt_cv_deplibs_check_method+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 lt_cv_file_magic_cmd='$MAGIC_CMD'
4593 lt_cv_file_magic_test_file=
4594 lt_cv_deplibs_check_method='unknown'
4595 # Need to set the preceding variable on all platforms that support
4596 # interlibrary dependencies.
4597 # 'none' -- dependencies not supported.
4598 # `unknown' -- same as none, but documents that we really don't know.
4599 # 'pass_all' -- all dependencies passed with no checks.
4600 # 'test_compile' -- check by making test program.
4601 # 'file_magic [[regex]]' -- check by looking for files in library path
4602 # which responds to the $file_magic_cmd with a given extended regex.
4603 # If you have `file' or equivalent on your system and you're not sure
4604 # whether `pass_all' will *always* work, you probably want this one.
4608 lt_cv_deplibs_check_method=pass_all
4612 lt_cv_deplibs_check_method=pass_all
4616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4617 lt_cv_file_magic_cmd='/usr/bin/file -L'
4618 lt_cv_file_magic_test_file=/shlib/libc.so
4622 # func_win32_libid is a shell function defined in ltmain.sh
4623 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4624 lt_cv_file_magic_cmd='func_win32_libid'
4628 # Base MSYS/MinGW do not provide the 'file' command needed by
4629 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4630 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4631 lt_cv_file_magic_cmd='$OBJDUMP -f'
4634 darwin* | rhapsody*)
4635 lt_cv_deplibs_check_method=pass_all
4638 freebsd* | dragonfly*)
4639 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4642 # Not sure whether the presence of OpenBSD here was a mistake.
4643 # Let's accept both of them until this is cleared up.
4644 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4645 lt_cv_file_magic_cmd=/usr/bin/file
4646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4650 lt_cv_deplibs_check_method=pass_all
4655 lt_cv_deplibs_check_method=pass_all
4658 hpux10.20* | hpux11*)
4659 lt_cv_file_magic_cmd=/usr/bin/file
4662 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4663 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4666 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]'
4667 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4671 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4677 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4681 irix5* | irix6* | nonstopux*)
4683 *-32|*"-32 ") libmagic=32-bit;;
4684 *-n32|*"-n32 ") libmagic=N32;;
4685 *-64|*"-64 ") libmagic=64-bit;;
4686 *) libmagic=never-match;;
4688 lt_cv_deplibs_check_method=pass_all
4691 # This must be Linux ELF.
4692 linux* | k*bsd*-gnu)
4693 lt_cv_deplibs_check_method=pass_all
4696 netbsd* | netbsdelf*-gnu)
4697 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4706 lt_cv_file_magic_cmd=/usr/bin/file
4707 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4711 lt_cv_deplibs_check_method=unknown
4715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4722 osf3* | osf4* | osf5*)
4723 lt_cv_deplibs_check_method=pass_all
4727 lt_cv_deplibs_check_method=pass_all
4731 case $host_vendor in
4733 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]'
4734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4737 lt_cv_deplibs_check_method=pass_all
4740 lt_cv_file_magic_cmd='/bin/file'
4741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4744 lt_cv_file_magic_cmd='/bin/file'
4745 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4746 lt_cv_file_magic_test_file=/lib/libc.so
4749 lt_cv_deplibs_check_method=pass_all
4752 lt_cv_deplibs_check_method=pass_all
4757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4758 lt_cv_deplibs_check_method=pass_all
4763 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4764 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4765 file_magic_cmd=$lt_cv_file_magic_cmd
4766 deplibs_check_method=$lt_cv_deplibs_check_method
4767 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4772 # If no C compiler was specified, use CC.
4775 # If no C compiler flags were specified, use CFLAGS.
4776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4778 # Allow CC to be a program name with arguments.
4782 # Check whether --enable-libtool-lock was given.
4783 if test "${enable_libtool_lock+set}" = set; then
4784 enableval=$enable_libtool_lock;
4787 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4789 # Some flags need to be propagated to the compiler or linker for good
4793 # Find out which ABI we are using.
4794 echo 'int i;' > conftest.$ac_ext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; then
4800 case `/usr/bin/file conftest.$ac_objext` in
4812 # Find out which ABI we are using.
4813 echo '#line 4813 "configure"' > conftest.$ac_ext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; then
4819 if test "$lt_cv_prog_gnu_ld" = yes; then
4820 case `/usr/bin/file conftest.$ac_objext` in
4822 LD="${LD-ld} -melf32bsmip"
4825 LD="${LD-ld} -melf32bmipn32"
4828 LD="${LD-ld} -melf64bmip"
4832 case `/usr/bin/file conftest.$ac_objext` in
4848 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4849 # Find out which ABI we are using.
4850 echo 'int i;' > conftest.$ac_ext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; then
4856 case `/usr/bin/file conftest.o` in
4860 LD="${LD-ld} -m elf_i386"
4862 ppc64-*linux*|powerpc64-*linux*)
4863 LD="${LD-ld} -m elf32ppclinux"
4866 LD="${LD-ld} -m elf_s390"
4869 LD="${LD-ld} -m elf32_sparc"
4876 LD="${LD-ld} -m elf_x86_64"
4878 ppc*-*linux*|powerpc*-*linux*)
4879 LD="${LD-ld} -m elf64ppc"
4882 LD="${LD-ld} -m elf64_s390"
4885 LD="${LD-ld} -m elf64_sparc"
4895 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4896 SAVE_CFLAGS="$CFLAGS"
4897 CFLAGS="$CFLAGS -belf"
4898 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4899 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4900 if test "${lt_cv_cc_needs_belf+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4924 rm -f conftest.$ac_objext conftest$ac_exeext
4925 if { (ac_try="$ac_link"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_link") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest$ac_exeext &&
4941 $as_test_x conftest$ac_exeext; then
4942 lt_cv_cc_needs_belf=yes
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 lt_cv_cc_needs_belf=no
4950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4951 conftest$ac_exeext conftest.$ac_ext
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4960 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4961 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4962 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4963 CFLAGS="$SAVE_CFLAGS"
4967 # Find out which ABI we are using.
4968 echo 'int i;' > conftest.$ac_ext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; then
4974 case `/usr/bin/file conftest.o` in
4976 case $lt_cv_prog_gnu_ld in
4977 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4978 *) LD="${LD-ld} -64" ;;
4989 need_locks="$enable_libtool_lock"
4993 ac_cpp='$CPP $CPPFLAGS'
4994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4998 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4999 # On Suns, sometimes $CPP names a directory.
5000 if test -n "$CPP" && test -d "$CPP"; then
5003 if test -z "$CPP"; then
5004 if test "${ac_cv_prog_CPP+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 # Double quotes because CPP needs to be expanded
5008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5011 for ac_c_preproc_warn_flag in '' yes
5013 # Use a header file that comes with gcc, so configuring glibc
5014 # with a fresh cross-compiler works.
5015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016 # <limits.h> exists even on freestanding compilers.
5017 # On the NeXT, cc -E runs the code through the compiler's parser,
5018 # not just through cpp. "Syntax error" is here to catch this case.
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5026 # include <limits.h>
5028 # include <assert.h>
5032 if { (ac_try="$ac_cpp conftest.$ac_ext"
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } >/dev/null && {
5045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 # Broken: fails on valid input.
5057 rm -f conftest.err conftest.$ac_ext
5059 # OK, works on sane cases. Now check whether nonexistent headers
5060 # can be detected and how.
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 #include <ac_nonexistent.h>
5069 if { (ac_try="$ac_cpp conftest.$ac_ext"
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5077 grep -v '^ *+' conftest.er1 >conftest.err
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } >/dev/null && {
5082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5083 test ! -s conftest.err
5085 # Broken: success on invalid input.
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 # Passes both tests.
5096 rm -f conftest.err conftest.$ac_ext
5099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5100 rm -f conftest.err conftest.$ac_ext
5101 if $ac_preproc_ok; then
5113 { echo "$as_me:$LINENO: result: $CPP" >&5
5114 echo "${ECHO_T}$CPP" >&6; }
5116 for ac_c_preproc_warn_flag in '' yes
5118 # Use a header file that comes with gcc, so configuring glibc
5119 # with a fresh cross-compiler works.
5120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5121 # <limits.h> exists even on freestanding compilers.
5122 # On the NeXT, cc -E runs the code through the compiler's parser,
5123 # not just through cpp. "Syntax error" is here to catch this case.
5124 cat >conftest.$ac_ext <<_ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5131 # include <limits.h>
5133 # include <assert.h>
5137 if { (ac_try="$ac_cpp conftest.$ac_ext"
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5145 grep -v '^ *+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } >/dev/null && {
5150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5151 test ! -s conftest.err
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 # Broken: fails on valid input.
5162 rm -f conftest.err conftest.$ac_ext
5164 # OK, works on sane cases. Now check whether nonexistent headers
5165 # can be detected and how.
5166 cat >conftest.$ac_ext <<_ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #include <ac_nonexistent.h>
5174 if { (ac_try="$ac_cpp conftest.$ac_ext"
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5182 grep -v '^ *+' conftest.er1 >conftest.err
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null && {
5187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5190 # Broken: success on invalid input.
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 # Passes both tests.
5201 rm -f conftest.err conftest.$ac_ext
5204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205 rm -f conftest.err conftest.$ac_ext
5206 if $ac_preproc_ok; then
5209 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5210 See \`config.log' for more details." >&5
5211 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5212 See \`config.log' for more details." >&2;}
5213 { (exit 1); exit 1; }; }
5217 ac_cpp='$CPP $CPPFLAGS'
5218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5225 if test "${ac_cv_header_stdc+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 cat >conftest.$ac_ext <<_ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
5264 ac_cv_header_stdc=yes
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_cv_header_stdc=no
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 if test $ac_cv_header_stdc = yes; then
5275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5276 cat >conftest.$ac_ext <<_ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286 $EGREP "memchr" >/dev/null 2>&1; then
5289 ac_cv_header_stdc=no
5295 if test $ac_cv_header_stdc = yes; then
5296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "free" >/dev/null 2>&1; then
5310 ac_cv_header_stdc=no
5316 if test $ac_cv_header_stdc = yes; then
5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318 if test "$cross_compiling" = yes; then
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5329 #if ((' ' & 0x0FF) == 0x020)
5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5333 # define ISLOWER(c) \
5334 (('a' <= (c) && (c) <= 'i') \
5335 || ('j' <= (c) && (c) <= 'r') \
5336 || ('s' <= (c) && (c) <= 'z'))
5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5345 for (i = 0; i < 256; i++)
5346 if (XOR (islower (i), ISLOWER (i))
5347 || toupper (i) != TOUPPER (i))
5352 rm -f conftest$ac_exeext
5353 if { (ac_try="$ac_link"
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_link") 2>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5363 { (case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_try") 2>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5374 echo "$as_me: program exited with status $ac_status" >&5
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5379 ac_cv_header_stdc=no
5381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5387 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5388 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5389 if test $ac_cv_header_stdc = yes; then
5391 cat >>confdefs.h <<\_ACEOF
5392 #define STDC_HEADERS 1
5397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5408 inttypes.h stdint.h unistd.h
5410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 $ac_includes_default
5424 #include <$ac_header>
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5443 eval "$as_ac_Header=yes"
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 eval "$as_ac_Header=no"
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 ac_res=`eval echo '${'$as_ac_Header'}'`
5454 { echo "$as_me:$LINENO: result: $ac_res" >&5
5455 echo "${ECHO_T}$ac_res" >&6; }
5456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457 cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5467 for ac_header in dlfcn.h
5469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_res=`eval echo '${'$as_ac_Header'}'`
5477 { echo "$as_me:$LINENO: result: $ac_res" >&5
5478 echo "${ECHO_T}$ac_res" >&6; }
5480 # Is the header compilable?
5481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 #include <$ac_header>
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compile") 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } && {
5506 test -z "$ac_c_werror_flag" ||
5507 test ! -s conftest.err
5508 } && test -s conftest.$ac_objext; then
5509 ac_header_compiler=yes
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 ac_header_compiler=no
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5519 echo "${ECHO_T}$ac_header_compiler" >&6; }
5521 # Is the header present?
5522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5524 cat >conftest.$ac_ext <<_ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #include <$ac_header>
5532 if { (ac_try="$ac_cpp conftest.$ac_ext"
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } >/dev/null && {
5545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5548 ac_header_preproc=yes
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 ac_header_preproc=no
5556 rm -f conftest.err conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5558 echo "${ECHO_T}$ac_header_preproc" >&6; }
5560 # So? What about this header?
5561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5567 ac_header_preproc=yes
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 eval "$as_ac_Header=\$ac_header_preproc"
5592 ac_res=`eval echo '${'$as_ac_Header'}'`
5593 { echo "$as_me:$LINENO: result: $ac_res" >&5
5594 echo "${ECHO_T}$ac_res" >&6; }
5597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5598 cat >>confdefs.h <<_ACEOF
5599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5608 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5609 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5610 (test "X$CXX" != "Xg++"))) ; then
5612 ac_cpp='$CXXCPP $CPPFLAGS'
5613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5617 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5618 if test -z "$CXXCPP"; then
5619 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 # Double quotes because CXXCPP needs to be expanded
5623 for CXXCPP in "$CXX -E" "/lib/cpp"
5626 for ac_cxx_preproc_warn_flag in '' yes
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5641 # include <limits.h>
5643 # include <assert.h>
5647 if { (ac_try="$ac_cpp conftest.$ac_ext"
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } >/dev/null && {
5660 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5661 test ! -s conftest.err
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 # Broken: fails on valid input.
5672 rm -f conftest.err conftest.$ac_ext
5674 # OK, works on sane cases. Now check whether nonexistent headers
5675 # can be detected and how.
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 #include <ac_nonexistent.h>
5684 if { (ac_try="$ac_cpp conftest.$ac_ext"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } >/dev/null && {
5697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5698 test ! -s conftest.err
5700 # Broken: success on invalid input.
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706 # Passes both tests.
5711 rm -f conftest.err conftest.$ac_ext
5714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5715 rm -f conftest.err conftest.$ac_ext
5716 if $ac_preproc_ok; then
5721 ac_cv_prog_CXXCPP=$CXXCPP
5724 CXXCPP=$ac_cv_prog_CXXCPP
5726 ac_cv_prog_CXXCPP=$CXXCPP
5728 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5729 echo "${ECHO_T}$CXXCPP" >&6; }
5731 for ac_cxx_preproc_warn_flag in '' yes
5733 # Use a header file that comes with gcc, so configuring glibc
5734 # with a fresh cross-compiler works.
5735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736 # <limits.h> exists even on freestanding compilers.
5737 # On the NeXT, cc -E runs the code through the compiler's parser,
5738 # not just through cpp. "Syntax error" is here to catch this case.
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5746 # include <limits.h>
5748 # include <assert.h>
5752 if { (ac_try="$ac_cpp conftest.$ac_ext"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } >/dev/null && {
5765 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 # Broken: fails on valid input.
5777 rm -f conftest.err conftest.$ac_ext
5779 # OK, works on sane cases. Now check whether nonexistent headers
5780 # can be detected and how.
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 #include <ac_nonexistent.h>
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null && {
5802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803 test ! -s conftest.err
5805 # Broken: success on invalid input.
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 # Passes both tests.
5816 rm -f conftest.err conftest.$ac_ext
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.$ac_ext
5821 if $ac_preproc_ok; then
5824 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5825 See \`config.log' for more details." >&5
5826 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5827 See \`config.log' for more details." >&2;}
5828 { (exit 1); exit 1; }; }
5832 ac_cpp='$CXXCPP $CPPFLAGS'
5833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5841 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5842 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5844 if test -n "$ac_tool_prefix"; then
5845 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
5847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_F77+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$F77"; then
5855 ac_cv_prog_F77="$F77" # 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_F77="$ac_tool_prefix$ac_prog"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 if test -n "$F77"; then
5876 { echo "$as_me:$LINENO: result: $F77" >&5
5877 echo "${ECHO_T}$F77" >&6; }
5879 { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5884 test -n "$F77" && break
5887 if test -z "$F77"; then
5889 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
5891 # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 if test -n "$ac_ct_F77"; then
5899 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_prog_ac_ct_F77="$ac_prog"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5919 if test -n "$ac_ct_F77"; then
5920 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5921 echo "${ECHO_T}$ac_ct_F77" >&6; }
5923 { echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6; }
5928 test -n "$ac_ct_F77" && break
5931 if test "x$ac_ct_F77" = x; then
5934 case $cross_compiling:$ac_tool_warned in
5936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5937 whose name does not start with the host triplet. If you think this
5938 configuration is useful to you, please write to autoconf@gnu.org." >&5
5939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5940 whose name does not start with the host triplet. If you think this
5941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5942 ac_tool_warned=yes ;;
5949 # Provide some information about the compiler.
5950 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5951 ac_compiler=`set X $ac_compile; echo $2`
5952 { (ac_try="$ac_compiler --version >&5"
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_compiler --version >&5") 2>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }
5962 { (ac_try="$ac_compiler -v >&5"
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compiler -v >&5") 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }
5972 { (ac_try="$ac_compiler -V >&5"
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compiler -V >&5") 2>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }
5984 # If we don't use `.F' as extension, the preprocessor is not run on the
5985 # input file. (Note that this only needs to work for GNU compilers.)
5988 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5989 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5990 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.$ac_ext <<_ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_f77_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6030 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6031 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6033 ac_test_FFLAGS=${FFLAGS+set}
6034 ac_save_FFLAGS=$FFLAGS
6036 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6037 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_f77_g+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 cat >conftest.$ac_ext <<_ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compile") 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_f77_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest.$ac_objext; then
6064 ac_cv_prog_f77_g=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6076 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6077 if test "$ac_test_FFLAGS" = set; then
6078 FFLAGS=$ac_save_FFLAGS
6079 elif test $ac_cv_prog_f77_g = yes; then
6080 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6086 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6093 G77=`test $ac_compiler_gnu = yes && echo yes`
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6104 # find the maximum length of command line arguments
6105 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6106 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6107 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 # On DJGPP, this test can blow up pretty badly due to problems in libc
6116 # (any single argument exceeding 2000 bytes causes a buffer overrun
6117 # during glob expansion). Even if it were fixed, the result of this
6118 # check would be larger than it should be.
6119 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6123 # Under GNU Hurd, this test is not required because there is
6124 # no limit to the length of command line arguments.
6125 # Libtool will interpret -1 as no limit whatsoever
6126 lt_cv_sys_max_cmd_len=-1;
6130 # On Win9x/ME, this test blows up -- it succeeds, but takes
6131 # about 5 minutes as the teststring grows exponentially.
6132 # Worse, since 9x/ME are not pre-emptively multitasking,
6133 # you end up with a "frozen" computer, even though with patience
6134 # the test eventually succeeds (with a max line length of 256k).
6135 # Instead, let's just punt: use the minimum linelength reported by
6136 # all of the supported platforms: 8192 (on NT/2K/XP).
6137 lt_cv_sys_max_cmd_len=8192;
6141 # On AmigaOS with pdksh, this test takes hours, literally.
6142 # So we just punt and use a minimum line length of 8192.
6143 lt_cv_sys_max_cmd_len=8192;
6146 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6147 # This has been around since 386BSD, at least. Likely further.
6148 if test -x /sbin/sysctl; then
6149 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6150 elif test -x /usr/sbin/sysctl; then
6151 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6153 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6155 # And add a safety zone
6156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6161 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6162 lt_cv_sys_max_cmd_len=196608
6166 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6167 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6168 # nice to cause kernel panics so lets avoid the loop below.
6169 # First set a reasonable default.
6170 lt_cv_sys_max_cmd_len=16384
6172 if test -x /sbin/sysconfig; then
6173 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6174 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6179 lt_cv_sys_max_cmd_len=102400
6181 sysv5* | sco5v6* | sysv4.2uw2*)
6182 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6183 if test -n "$kargmax"; then
6184 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6186 lt_cv_sys_max_cmd_len=32768
6190 # If test is not a shell built-in, we'll probably end up computing a
6191 # maximum length that is only half of the actual maximum length, but
6193 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6194 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6195 = "XX$teststring") >/dev/null 2>&1 &&
6196 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6197 lt_cv_sys_max_cmd_len=$new_result &&
6198 test $i != 17 # 1/2 MB should be enough
6201 teststring=$teststring$teststring
6204 # Add a significant safety factor because C++ compilers can tack on massive
6205 # amounts of additional arguments before passing them to the linker.
6206 # It appears as though 1/2 is a usable value.
6207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6213 if test -n $lt_cv_sys_max_cmd_len ; then
6214 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6215 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6217 { echo "$as_me:$LINENO: result: none" >&5
6218 echo "${ECHO_T}none" >&6; }
6224 # Check for command to grab the raw symbol name followed by C symbol from nm.
6225 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6226 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6227 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 # These are sane defaults that work on at least a few old systems.
6232 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6234 # Character class describing NM global symbol codes.
6235 symcode='[BCDEGRST]'
6237 # Regexp to match symbols that can be accessed directly from C.
6238 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6240 # Transform an extracted symbol line into a proper C declaration
6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6243 # Transform an extracted symbol line into symbol name and symbol address
6244 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'"
6246 # Define system-specific variables.
6251 cygwin* | mingw* | pw32*)
6252 symcode='[ABCDGISTW]'
6254 hpux*) # Its linker distinguishes data from code symbols
6255 if test "$host_cpu" = ia64; then
6256 symcode='[ABCDEGRST]'
6258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6259 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'"
6261 linux* | k*bsd*-gnu)
6262 if test "$host_cpu" = ia64; then
6263 symcode='[ABCDGIRSTW]'
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6265 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'"
6269 symcode='[BCDEGRST]'
6272 symcode='[BCDEGQRST]'
6283 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6291 # Handle CRLF in mingw tool chain
6295 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6299 # If we're using GNU nm, then use its standard symbol codes.
6300 case `$NM -V 2>&1` in
6301 *GNU* | *'with BFD'*)
6302 symcode='[ABCDGIRSTW]' ;;
6305 # Try without a prefix undercore, then with it.
6306 for ac_symprfx in "" "_"; do
6308 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6309 symxfrm="\\1 $ac_symprfx\\2 \\2"
6311 # Write the raw and C identifiers.
6312 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6314 # Check to see that the pipe works correctly.
6318 cat > conftest.$ac_ext <<EOF
6323 void nm_test_func(){}
6327 int main(){nm_test_var='a';nm_test_func();return(0);}
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; then
6335 # Now try to grab the symbols.
6337 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6338 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && test -s "$nlist"; then
6342 # Try sorting and uniquifying the output.
6343 if sort "$nlist" | uniq > "$nlist"T; then
6344 mv -f "$nlist"T "$nlist"
6349 # Make sure that we snagged all the symbols we need.
6350 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6351 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6352 cat <<EOF > conftest.$ac_ext
6358 # Now generate the symbol file.
6359 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6361 cat <<EOF >> conftest.$ac_ext
6362 #if defined (__STDC__) && __STDC__
6363 # define lt_ptr_t void *
6365 # define lt_ptr_t char *
6369 /* The mapping between symbol names and symbols. */
6374 lt_preloaded_symbols[] =
6377 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6378 cat <<\EOF >> conftest.$ac_ext
6386 # Now try linking the two files.
6387 mv conftest.$ac_objext conftstm.$ac_objext
6388 lt_save_LIBS="$LIBS"
6389 lt_save_CFLAGS="$CFLAGS"
6390 LIBS="conftstm.$ac_objext"
6391 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6393 (eval $ac_link) 2>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6399 LIBS="$lt_save_LIBS"
6400 CFLAGS="$lt_save_CFLAGS"
6402 echo "cannot find nm_test_func in $nlist" >&5
6405 echo "cannot find nm_test_var in $nlist" >&5
6408 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6411 echo "$progname: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 rm -f conftest* conftst*
6416 # Do not use the global_symbol_pipe unless it works.
6417 if test "$pipe_works" = yes; then
6420 lt_cv_sys_global_symbol_pipe=
6426 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6427 lt_cv_sys_global_symbol_to_cdecl=
6429 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6430 { echo "$as_me:$LINENO: result: failed" >&5
6431 echo "${ECHO_T}failed" >&6; }
6433 { echo "$as_me:$LINENO: result: ok" >&5
6434 echo "${ECHO_T}ok" >&6; }
6437 { echo "$as_me:$LINENO: checking for objdir" >&5
6438 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6439 if test "${lt_cv_objdir+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 rm -f .libs 2>/dev/null
6443 mkdir .libs 2>/dev/null
6444 if test -d .libs; then
6447 # MS-DOS does not allow filenames that begin with a dot.
6450 rmdir .libs 2>/dev/null
6452 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6453 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6454 objdir=$lt_cv_objdir
6462 # AIX sometimes has problems with the GCC collect2 program. For some
6463 # reason, if we set the COLLECT_NAMES environment variable, the problems
6464 # vanish in a puff of smoke.
6465 if test "X${COLLECT_NAMES+set}" != Xset; then
6467 export COLLECT_NAMES
6472 # Sed substitution that helps us do robust quoting. It backslashifies
6473 # metacharacters that are still active within double-quoted strings.
6474 Xsed='sed -e 1s/^X//'
6475 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6477 # Same as above, but do not quote variable references.
6478 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6480 # Sed substitution to delay expansion of an escaped shell variable in a
6481 # double_quote_subst'ed string.
6482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6484 # Sed substitution to avoid accidental globbing in evaled expressions
6485 no_glob_subst='s/\*/\\\*/g'
6491 default_ofile=libtool
6492 can_build_shared=yes
6494 # All known linkers require a `.a' archive for static linking (except MSVC,
6495 # which needs '.lib').
6497 ltmain="$ac_aux_dir/ltmain.sh"
6498 ofile="$default_ofile"
6499 with_gnu_ld="$lt_cv_prog_gnu_ld"
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}ar; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_prog_AR+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 if test -n "$AR"; then
6510 ac_cv_prog_AR="$AR" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_AR="${ac_tool_prefix}ar"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 if test -n "$AR"; then
6531 { echo "$as_me:$LINENO: result: $AR" >&5
6532 echo "${ECHO_T}$AR" >&6; }
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6540 if test -z "$ac_cv_prog_AR"; then
6542 # Extract the first word of "ar", so it can be a program name with args.
6543 set dummy ar; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 if test -n "$ac_ct_AR"; then
6550 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_ac_ct_AR="ar"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6570 if test -n "$ac_ct_AR"; then
6571 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6572 echo "${ECHO_T}$ac_ct_AR" >&6; }
6574 { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6578 if test "x$ac_ct_AR" = x; then
6581 case $cross_compiling:$ac_tool_warned in
6583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6584 whose name does not start with the host triplet. If you think this
6585 configuration is useful to you, please write to autoconf@gnu.org." >&5
6586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6587 whose name does not start with the host triplet. If you think this
6588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6589 ac_tool_warned=yes ;;
6597 if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_prog_RANLIB+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 if test -n "$RANLIB"; then
6606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 RANLIB=$ac_cv_prog_RANLIB
6626 if test -n "$RANLIB"; then
6627 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6628 echo "${ECHO_T}$RANLIB" >&6; }
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6636 if test -z "$ac_cv_prog_RANLIB"; then
6637 ac_ct_RANLIB=$RANLIB
6638 # Extract the first word of "ranlib", so it can be a program name with args.
6639 set dummy ranlib; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 if test -n "$ac_ct_RANLIB"; then
6646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_ac_ct_RANLIB="ranlib"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6666 if test -n "$ac_ct_RANLIB"; then
6667 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6668 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6674 if test "x$ac_ct_RANLIB" = x; then
6677 case $cross_compiling:$ac_tool_warned in
6679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet. If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&5
6682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6683 whose name does not start with the host triplet. If you think this
6684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6685 ac_tool_warned=yes ;;
6687 RANLIB=$ac_ct_RANLIB
6690 RANLIB="$ac_cv_prog_RANLIB"
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}strip; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_prog_STRIP+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 if test -n "$STRIP"; then
6702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 STRIP=$ac_cv_prog_STRIP
6722 if test -n "$STRIP"; then
6723 { echo "$as_me:$LINENO: result: $STRIP" >&5
6724 echo "${ECHO_T}$STRIP" >&6; }
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6732 if test -z "$ac_cv_prog_STRIP"; then
6734 # Extract the first word of "strip", so it can be a program name with args.
6735 set dummy strip; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 if test -n "$ac_ct_STRIP"; then
6742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_ac_ct_STRIP="strip"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6762 if test -n "$ac_ct_STRIP"; then
6763 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6764 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6770 if test "x$ac_ct_STRIP" = x; then
6773 case $cross_compiling:$ac_tool_warned in
6775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6776 whose name does not start with the host triplet. If you think this
6777 configuration is useful to you, please write to autoconf@gnu.org." >&5
6778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6779 whose name does not start with the host triplet. If you think this
6780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6781 ac_tool_warned=yes ;;
6786 STRIP="$ac_cv_prog_STRIP"
6791 old_CFLAGS="$CFLAGS"
6793 # Set sane defaults for various variables
6794 test -z "$AR" && AR=ar
6795 test -z "$AR_FLAGS" && AR_FLAGS=cru
6796 test -z "$AS" && AS=as
6797 test -z "$CC" && CC=cc
6798 test -z "$LTCC" && LTCC=$CC
6799 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6800 test -z "$DLLTOOL" && DLLTOOL=dlltool
6801 test -z "$LD" && LD=ld
6802 test -z "$LN_S" && LN_S="ln -s"
6803 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6804 test -z "$NM" && NM=nm
6805 test -z "$SED" && SED=sed
6806 test -z "$OBJDUMP" && OBJDUMP=objdump
6807 test -z "$RANLIB" && RANLIB=:
6808 test -z "$STRIP" && STRIP=:
6809 test -z "$ac_objext" && ac_objext=o
6811 # Determine commands to create old-style static archives.
6812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6813 old_postinstall_cmds='chmod 644 $oldlib'
6814 old_postuninstall_cmds=
6816 if test -n "$RANLIB"; then
6819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6828 for cc_temp in $compiler""; do
6830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6836 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6839 # Only perform the check for file, if the check method requires it
6840 case $deplibs_check_method in
6842 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6843 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6844 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6845 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6853 lt_save_MAGIC_CMD="$MAGIC_CMD"
6854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6855 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6856 for ac_dir in $ac_dummy; do
6858 test -z "$ac_dir" && ac_dir=.
6859 if test -f $ac_dir/${ac_tool_prefix}file; then
6860 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6861 if test -n "$file_magic_test_file"; then
6862 case $deplibs_check_method in
6864 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6866 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6867 $EGREP "$file_magic_regex" > /dev/null; then
6872 *** Warning: the command libtool uses to detect shared libraries,
6873 *** $file_magic_cmd, produces output that libtool cannot recognize.
6874 *** The result is that libtool may fail to recognize shared libraries
6875 *** as such. This will affect the creation of libtool libraries that
6876 *** depend on shared libraries, but programs linked with such libtool
6877 *** libraries will work regardless of this problem. Nevertheless, you
6878 *** may want to report the problem to your system manager and/or to
6879 *** bug-libtool@gnu.org
6889 MAGIC_CMD="$lt_save_MAGIC_CMD"
6894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6895 if test -n "$MAGIC_CMD"; then
6896 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6897 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6903 if test -z "$lt_cv_path_MAGIC_CMD"; then
6904 if test -n "$ac_tool_prefix"; then
6905 { echo "$as_me:$LINENO: checking for file" >&5
6906 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6915 lt_save_MAGIC_CMD="$MAGIC_CMD"
6916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6918 for ac_dir in $ac_dummy; do
6920 test -z "$ac_dir" && ac_dir=.
6921 if test -f $ac_dir/file; then
6922 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6923 if test -n "$file_magic_test_file"; then
6924 case $deplibs_check_method in
6926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6929 $EGREP "$file_magic_regex" > /dev/null; then
6934 *** Warning: the command libtool uses to detect shared libraries,
6935 *** $file_magic_cmd, produces output that libtool cannot recognize.
6936 *** The result is that libtool may fail to recognize shared libraries
6937 *** as such. This will affect the creation of libtool libraries that
6938 *** depend on shared libraries, but programs linked with such libtool
6939 *** libraries will work regardless of this problem. Nevertheless, you
6940 *** may want to report the problem to your system manager and/or to
6941 *** bug-libtool@gnu.org
6951 MAGIC_CMD="$lt_save_MAGIC_CMD"
6956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6957 if test -n "$MAGIC_CMD"; then
6958 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6959 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6961 { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6977 # Check whether --enable-libtool-lock was given.
6978 if test "${enable_libtool_lock+set}" = set; then
6979 enableval=$enable_libtool_lock;
6982 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6985 # Check whether --with-pic was given.
6986 if test "${with_pic+set}" = set; then
6987 withval=$with_pic; pic_mode="$withval"
6992 test -z "$pic_mode" && pic_mode=default
6994 # Use C for the default configuration in the libtool script
6998 ac_cpp='$CPP $CPPFLAGS'
6999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7004 # Source file extension for C test sources.
7007 # Object file extension for compiled C test sources.
7011 # Code to be used in simple compile tests
7012 lt_simple_compile_test_code="int some_variable = 0;\n"
7014 # Code to be used in simple link tests
7015 lt_simple_link_test_code='int main(){return(0);}\n'
7018 # If no C compiler was specified, use CC.
7021 # If no C compiler flags were specified, use CFLAGS.
7022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7024 # Allow CC to be a program name with arguments.
7028 # save warnings/boilerplate of simple test code
7029 ac_outfile=conftest.$ac_objext
7030 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7032 _lt_compiler_boilerplate=`cat conftest.err`
7035 ac_outfile=conftest.$ac_objext
7036 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7038 _lt_linker_boilerplate=`cat conftest.err`
7043 lt_prog_compiler_no_builtin_flag=
7045 if test "$GCC" = yes; then
7046 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7049 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7050 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7051 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 lt_cv_prog_compiler_rtti_exceptions=no
7055 ac_outfile=conftest.$ac_objext
7056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7057 lt_compiler_flag="-fno-rtti -fno-exceptions"
7058 # Insert the option either (1) after the last *FLAGS variable, or
7059 # (2) before a word containing "conftest.", or (3) at the end.
7060 # Note that $ac_compile itself does not contain backslashes and begins
7061 # with a dollar sign (not a hyphen), so the echo should work correctly.
7062 # The option is referenced via a variable to avoid confusing sed.
7063 lt_compile=`echo "$ac_compile" | $SED \
7064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7066 -e 's:$: $lt_compiler_flag:'`
7067 (eval echo "\"\$as_me:7067: $lt_compile\"" >&5)
7068 (eval "$lt_compile" 2>conftest.err)
7070 cat conftest.err >&5
7071 echo "$as_me:7071: \$? = $ac_status" >&5
7072 if (exit $ac_status) && test -s "$ac_outfile"; then
7073 # The compiler can only warn and ignore the option if not recognized
7074 # So say no if there are warnings other than the usual output.
7075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7078 lt_cv_prog_compiler_rtti_exceptions=yes
7084 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7085 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7087 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7088 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7095 lt_prog_compiler_wl=
7096 lt_prog_compiler_pic=
7097 lt_prog_compiler_static=
7099 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7100 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7102 if test "$GCC" = yes; then
7103 lt_prog_compiler_wl='-Wl,'
7104 lt_prog_compiler_static='-static'
7108 # All AIX code is PIC.
7109 if test "$host_cpu" = ia64; then
7110 # AIX 5 now supports IA64 processor
7111 lt_prog_compiler_static='-Bstatic'
7116 # FIXME: we need at least 68020 code to build shared libraries, but
7117 # adding the `-m68020' flag to GCC prevents building anything better,
7119 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7122 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7123 # PIC is the default for these OSes.
7126 mingw* | pw32* | os2*)
7127 # This hack is so that the source file can tell whether it is being
7128 # built for inclusion in a dll (and should export symbols for example).
7129 lt_prog_compiler_pic='-DDLL_EXPORT'
7132 darwin* | rhapsody*)
7133 # PIC is the default on this platform
7134 # Common symbols not allowed in MH_DYLIB files
7135 lt_prog_compiler_pic='-fno-common'
7139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7140 # Instead, we relocate shared libraries at runtime.
7144 # Just because we use GCC doesn't mean we suddenly get shared libraries
7145 # on systems that don't support them.
7146 lt_prog_compiler_can_build_shared=no
7151 if test -d /usr/nec; then
7152 lt_prog_compiler_pic=-Kconform_pic
7157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7164 lt_prog_compiler_pic='-fPIC'
7170 lt_prog_compiler_pic='-fPIC'
7174 # PORTME Check for flag to pass linker flags through the system compiler.
7177 lt_prog_compiler_wl='-Wl,'
7178 if test "$host_cpu" = ia64; then
7179 # AIX 5 now supports IA64 processor
7180 lt_prog_compiler_static='-Bstatic'
7182 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7186 # PIC is the default on this platform
7187 # Common symbols not allowed in MH_DYLIB files
7188 case $cc_basename in
7190 lt_prog_compiler_pic='-qnocommon'
7191 lt_prog_compiler_wl='-Wl,'
7196 mingw* | pw32* | os2*)
7197 # This hack is so that the source file can tell whether it is being
7198 # built for inclusion in a dll (and should export symbols for example).
7199 lt_prog_compiler_pic='-DDLL_EXPORT'
7202 hpux9* | hpux10* | hpux11*)
7203 lt_prog_compiler_wl='-Wl,'
7204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7211 lt_prog_compiler_pic='+Z'
7214 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7215 lt_prog_compiler_static='${wl}-a ${wl}archive'
7218 irix5* | irix6* | nonstopux*)
7219 lt_prog_compiler_wl='-Wl,'
7220 # PIC (with -KPIC) is the default.
7221 lt_prog_compiler_static='-non_shared'
7225 lt_prog_compiler_pic='-KPIC'
7226 lt_prog_compiler_static='-Bstatic'
7229 linux* | k*bsd*-gnu)
7230 case $cc_basename in
7232 lt_prog_compiler_wl='-Wl,'
7233 lt_prog_compiler_pic='-KPIC'
7234 lt_prog_compiler_static='-static'
7236 pgcc* | pgf77* | pgf90* | pgf95*)
7237 # Portland Group compilers (*not* the Pentium gcc compiler,
7238 # which looks to be a dead project)
7239 lt_prog_compiler_wl='-Wl,'
7240 lt_prog_compiler_pic='-fpic'
7241 lt_prog_compiler_static='-Bstatic'
7244 lt_prog_compiler_wl='-Wl,'
7245 # All Alpha code is PIC.
7246 lt_prog_compiler_static='-non_shared'
7251 osf3* | osf4* | osf5*)
7252 lt_prog_compiler_wl='-Wl,'
7253 # All OSF/1 code is PIC.
7254 lt_prog_compiler_static='-non_shared'
7258 lt_prog_compiler_pic='-KPIC'
7259 lt_prog_compiler_static='-Bstatic'
7260 case $cc_basename in
7262 lt_prog_compiler_wl='-Qoption ld ';;
7264 lt_prog_compiler_wl='-Wl,';;
7269 lt_prog_compiler_wl='-Qoption ld '
7270 lt_prog_compiler_pic='-PIC'
7271 lt_prog_compiler_static='-Bstatic'
7274 sysv4 | sysv4.2uw2* | sysv4.3*)
7275 lt_prog_compiler_wl='-Wl,'
7276 lt_prog_compiler_pic='-KPIC'
7277 lt_prog_compiler_static='-Bstatic'
7281 if test -d /usr/nec ;then
7282 lt_prog_compiler_pic='-Kconform_pic'
7283 lt_prog_compiler_static='-Bstatic'
7287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7288 lt_prog_compiler_wl='-Wl,'
7289 lt_prog_compiler_pic='-KPIC'
7290 lt_prog_compiler_static='-Bstatic'
7294 lt_prog_compiler_wl='-Wl,'
7295 lt_prog_compiler_can_build_shared=no
7299 lt_prog_compiler_pic='-pic'
7300 lt_prog_compiler_static='-Bstatic'
7304 lt_prog_compiler_can_build_shared=no
7309 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7310 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7313 # Check to make sure the PIC flag actually works.
7315 if test -n "$lt_prog_compiler_pic"; then
7317 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7318 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7319 if test "${lt_prog_compiler_pic_works+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 lt_prog_compiler_pic_works=no
7323 ac_outfile=conftest.$ac_objext
7324 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7325 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7326 # Insert the option either (1) after the last *FLAGS variable, or
7327 # (2) before a word containing "conftest.", or (3) at the end.
7328 # Note that $ac_compile itself does not contain backslashes and begins
7329 # with a dollar sign (not a hyphen), so the echo should work correctly.
7330 # The option is referenced via a variable to avoid confusing sed.
7331 lt_compile=`echo "$ac_compile" | $SED \
7332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7334 -e 's:$: $lt_compiler_flag:'`
7335 (eval echo "\"\$as_me:7335: $lt_compile\"" >&5)
7336 (eval "$lt_compile" 2>conftest.err)
7338 cat conftest.err >&5
7339 echo "$as_me:7339: \$? = $ac_status" >&5
7340 if (exit $ac_status) && test -s "$ac_outfile"; then
7341 # The compiler can only warn and ignore the option if not recognized
7342 # So say no if there are warnings other than the usual output.
7343 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7345 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7346 lt_prog_compiler_pic_works=yes
7352 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7353 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7355 if test x"$lt_prog_compiler_pic_works" = xyes; then
7356 case $lt_prog_compiler_pic in
7358 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7361 lt_prog_compiler_pic=
7362 lt_prog_compiler_can_build_shared=no
7367 # For platforms which do not support PIC, -DPIC is meaningless:
7369 lt_prog_compiler_pic=
7372 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7377 # Check to make sure the static flag actually works.
7379 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7380 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7381 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7382 if test "${lt_prog_compiler_static_works+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 lt_prog_compiler_static_works=no
7386 save_LDFLAGS="$LDFLAGS"
7387 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7388 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7389 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7390 # The linker can only warn and ignore the option if not recognized
7391 # So say no if there are warnings
7392 if test -s conftest.err; then
7393 # Append any errors to the config.log.
7394 cat conftest.err 1>&5
7395 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7397 if diff conftest.exp conftest.er2 >/dev/null; then
7398 lt_prog_compiler_static_works=yes
7401 lt_prog_compiler_static_works=yes
7405 LDFLAGS="$save_LDFLAGS"
7408 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7409 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7411 if test x"$lt_prog_compiler_static_works" = xyes; then
7414 lt_prog_compiler_static=
7418 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7419 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7420 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 lt_cv_prog_compiler_c_o=no
7424 $rm -r conftest 2>/dev/null
7428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7430 lt_compiler_flag="-o out/conftest2.$ac_objext"
7431 # Insert the option either (1) after the last *FLAGS variable, or
7432 # (2) before a word containing "conftest.", or (3) at the end.
7433 # Note that $ac_compile itself does not contain backslashes and begins
7434 # with a dollar sign (not a hyphen), so the echo should work correctly.
7435 lt_compile=`echo "$ac_compile" | $SED \
7436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438 -e 's:$: $lt_compiler_flag:'`
7439 (eval echo "\"\$as_me:7439: $lt_compile\"" >&5)
7440 (eval "$lt_compile" 2>out/conftest.err)
7442 cat out/conftest.err >&5
7443 echo "$as_me:7443: \$? = $ac_status" >&5
7444 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7446 # The compiler can only warn and ignore the option if not recognized
7447 # So say no if there are warnings
7448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7451 lt_cv_prog_compiler_c_o=yes
7456 # SGI C++ compiler will create directory out/ii_files/ for
7457 # template instantiation
7458 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7459 $rm out/* && rmdir out
7465 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7466 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7469 hard_links="nottested"
7470 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7471 # do not overwrite the value of need_locks provided by the user
7472 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7473 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7478 ln conftest.a conftest.b 2>&5 || hard_links=no
7479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7480 { echo "$as_me:$LINENO: result: $hard_links" >&5
7481 echo "${ECHO_T}$hard_links" >&6; }
7482 if test "$hard_links" = no; then
7483 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7484 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7491 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7492 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7495 allow_undefined_flag=
7496 enable_shared_with_static_runtimes=no
7498 archive_expsym_cmds=
7499 old_archive_From_new_cmds=
7500 old_archive_from_expsyms_cmds=
7501 export_dynamic_flag_spec=
7502 whole_archive_flag_spec=
7503 thread_safe_flag_spec=
7504 hardcode_libdir_flag_spec=
7505 hardcode_libdir_flag_spec_ld=
7506 hardcode_libdir_separator=
7509 hardcode_shlibpath_var=unsupported
7510 link_all_deplibs=unknown
7511 hardcode_automatic=no
7514 always_export_symbols=no
7515 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7516 # include_expsyms should be a list of space-separated symbols to be *always*
7517 # included in the symbol list
7519 # exclude_expsyms can be an extended regexp of symbols to exclude
7520 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7521 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7522 # as well as any symbol that contains `d'.
7523 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7525 # platforms (ab)use it in PIC code, but their linkers get confused if
7526 # the symbol is explicitly referenced. Since portable code cannot
7527 # rely on this symbol name, it's probably fine to never include it in
7528 # preloaded symbol tables.
7529 extract_expsyms_cmds=
7530 # Just being paranoid about ensuring that cc_basename is set.
7531 for cc_temp in $compiler""; do
7533 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7534 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7539 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7542 cygwin* | mingw* | pw32*)
7543 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7544 # When not using gcc, we currently assume that we are using
7545 # Microsoft Visual C++.
7546 if test "$GCC" != yes; then
7551 # we just hope/assume this is gcc and not c89 (= MSVC++)
7560 if test "$with_gnu_ld" = yes; then
7561 # If archive_cmds runs LD, not CC, wlarc should be empty
7564 # Set some defaults for GNU ld with shared library support. These
7565 # are reset later if shared libraries are not supported. Putting them
7566 # here allows them to be overridden if necessary.
7567 runpath_var=LD_RUN_PATH
7568 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7569 export_dynamic_flag_spec='${wl}--export-dynamic'
7570 # ancient GNU ld didn't support --whole-archive et. al.
7571 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7572 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7574 whole_archive_flag_spec=
7576 supports_anon_versioning=no
7577 case `$LD -v 2>/dev/null` in
7578 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7579 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7580 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7581 *\ 2.11.*) ;; # other 2.11 versions
7582 *) supports_anon_versioning=yes ;;
7585 # See if GNU ld supports shared libraries.
7587 aix3* | aix4* | aix5*)
7588 # On AIX/PPC, the GNU linker is very broken
7589 if test "$host_cpu" != ia64; then
7593 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7594 *** to be unable to reliably create shared libraries on AIX.
7595 *** Therefore, libtool is disabling shared libraries support. If you
7596 *** really care for shared libraries, you may want to modify your PATH
7597 *** so that a non-GNU linker is found, and then restart.
7604 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)'
7605 hardcode_libdir_flag_spec='-L$libdir'
7606 hardcode_minus_L=yes
7608 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7609 # that the semantics of dynamic libraries on AmigaOS, at least up
7610 # to version 4, is to share data among multiple programs linked
7611 # with the same dynamic library. Since this doesn't match the
7612 # behavior of shared libraries on other platforms, we can't use
7618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7619 allow_undefined_flag=unsupported
7620 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7621 # support --undefined. This deserves some investigation. FIXME
7622 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7628 cygwin* | mingw* | pw32*)
7629 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7630 # as there is no search path for DLLs.
7631 hardcode_libdir_flag_spec='-L$libdir'
7632 allow_undefined_flag=unsupported
7633 always_export_symbols=no
7634 enable_shared_with_static_runtimes=yes
7635 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7637 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7639 # If the export-symbols file already is a .def file (1st line
7640 # is EXPORTS), use it as is; otherwise, prepend...
7641 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7642 cp $export_symbols $output_objdir/$soname.def;
7644 echo EXPORTS > $output_objdir/$soname.def;
7645 cat $export_symbols >> $output_objdir/$soname.def;
7647 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7655 hardcode_shlibpath_var=no
7656 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7657 export_dynamic_flag_spec='${wl}-E'
7658 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7659 # Instead, shared libraries are loaded at an image base (0x10000000 by
7660 # default) and relocated if they conflict, which is a slow very memory
7661 # consuming and fragmenting process. To avoid this, we pick a random,
7662 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7663 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7665 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7668 linux* | k*bsd*-gnu)
7669 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7671 case $cc_basename,$host_cpu in
7672 pgcc*) # Portland Group C compiler
7673 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7674 tmp_addflag=' $pic_flag'
7676 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7677 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7678 tmp_addflag=' $pic_flag -Mnomain' ;;
7679 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7680 tmp_addflag=' -i_dynamic' ;;
7681 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7682 tmp_addflag=' -i_dynamic -nofor_main' ;;
7683 ifc* | ifort*) # Intel Fortran compiler
7684 tmp_addflag=' -nofor_main' ;;
7686 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7688 if test $supports_anon_versioning = yes; then
7689 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7690 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7691 $echo "local: *; };" >> $output_objdir/$libname.ver~
7692 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7700 netbsd* | netbsdelf*-gnu)
7701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7702 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7715 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7716 *** create shared libraries on Solaris systems. Therefore, libtool
7717 *** is disabling shared libraries support. We urge you to upgrade GNU
7718 *** binutils to release 2.9.1 or newer. Another option is to modify
7719 *** your PATH or compiler configuration so that the native linker is
7720 *** used, and then restart.
7723 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7732 case `$LD -v 2>&1` in
7733 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7737 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7738 *** reliably create shared libraries on SCO systems. Therefore, libtool
7739 *** is disabling shared libraries support. We urge you to upgrade GNU
7740 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7741 *** your PATH or compiler configuration so that the native linker is
7742 *** used, and then restart.
7747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7759 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7762 hardcode_shlibpath_var=no
7766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7775 if test "$ld_shlibs" = no; then
7777 hardcode_libdir_flag_spec=
7778 export_dynamic_flag_spec=
7779 whole_archive_flag_spec=
7782 # PORTME fill in a description of your system's linker (not GNU ld)
7785 allow_undefined_flag=unsupported
7786 always_export_symbols=yes
7787 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'
7788 # Note: this linker hardcodes the directories in LIBPATH if there
7789 # are no directories specified by -L.
7790 hardcode_minus_L=yes
7791 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7792 # Neither direct hardcoding nor static linking is supported with a
7794 hardcode_direct=unsupported
7799 if test "$host_cpu" = ia64; then
7800 # On IA64, the linker does run time linking by default, so we don't
7801 # have to do anything special.
7802 aix_use_runtimelinking=no
7803 exp_sym_flag='-Bexport'
7806 # If we're using GNU nm, then we don't want the "-C" option.
7807 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7808 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7809 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'
7811 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'
7813 aix_use_runtimelinking=no
7815 # Test if we are trying to use run time linking or normal
7816 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7817 # need to do runtime linking.
7818 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7819 for ld_flag in $LDFLAGS; do
7820 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7821 aix_use_runtimelinking=yes
7828 exp_sym_flag='-bexport'
7829 no_entry_flag='-bnoentry'
7832 # When large executables or shared objects are built, AIX ld can
7833 # have problems creating the table of contents. If linking a library
7834 # or program results in "error TOC overflow" add -mminimal-toc to
7835 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7836 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7840 hardcode_libdir_separator=':'
7841 link_all_deplibs=yes
7843 if test "$GCC" = yes; then
7844 case $host_os in aix4.[012]|aix4.[012].*)
7845 # We only want to do this on AIX 4.2 and lower, the check
7846 # below for broken collect2 doesn't work under 4.3+
7847 collect2name=`${CC} -print-prog-name=collect2`
7848 if test -f "$collect2name" && \
7849 strings "$collect2name" | grep resolve_lib_name >/dev/null
7851 # We have reworked collect2
7854 # We have old collect2
7855 hardcode_direct=unsupported
7856 # It fails to find uninstalled libraries when the uninstalled
7857 # path is not listed in the libpath. Setting hardcode_minus_L
7858 # to unsupported forces relinking
7859 hardcode_minus_L=yes
7860 hardcode_libdir_flag_spec='-L$libdir'
7861 hardcode_libdir_separator=
7865 shared_flag='-shared'
7866 if test "$aix_use_runtimelinking" = yes; then
7867 shared_flag="$shared_flag "'${wl}-G'
7871 if test "$host_cpu" = ia64; then
7872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7873 # chokes on -Wl,-G. The following line is correct:
7876 if test "$aix_use_runtimelinking" = yes; then
7877 shared_flag='${wl}-G'
7879 shared_flag='${wl}-bM:SRE'
7884 # It seems that -bexpall does not export symbols beginning with
7885 # underscore (_), so it is better to generate a list of symbols to export.
7886 always_export_symbols=yes
7887 if test "$aix_use_runtimelinking" = yes; then
7888 # Warning - without using the other runtime loading flags (-brtl),
7889 # -berok will link without error, but may produce a broken library.
7890 allow_undefined_flag='-berok'
7891 # Determine the default libpath from the value encoded in an empty executable.
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (ac_try="$ac_link"
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_link") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest$ac_exeext &&
7924 $as_test_x conftest$ac_exeext; then
7926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7928 # Check for a 64-bit object if we didn't find anything.
7929 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; }
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7939 conftest$ac_exeext conftest.$ac_ext
7940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7943 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7945 if test "$host_cpu" = ia64; then
7946 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7947 allow_undefined_flag="-z nodefs"
7948 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7950 # Determine the default libpath from the value encoded in an empty executable.
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_link") 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } && {
7980 test -z "$ac_c_werror_flag" ||
7981 test ! -s conftest.err
7982 } && test -s conftest$ac_exeext &&
7983 $as_test_x conftest$ac_exeext; then
7985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7987 # Check for a 64-bit object if we didn't find anything.
7988 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; }
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998 conftest$ac_exeext conftest.$ac_ext
7999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8001 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8002 # Warning - without using the other run time loading flags,
8003 # -berok will link without error, but may produce a broken library.
8004 no_undefined_flag=' ${wl}-bernotok'
8005 allow_undefined_flag=' ${wl}-berok'
8006 # Exported symbols can be pulled into shared objects from archives
8007 whole_archive_flag_spec='$convenience'
8008 archive_cmds_need_lc=yes
8009 # This is similar to how AIX traditionally builds its shared libraries.
8010 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8016 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)'
8017 hardcode_libdir_flag_spec='-L$libdir'
8018 hardcode_minus_L=yes
8019 # see comment about different semantics on the GNU ld section
8024 export_dynamic_flag_spec=-rdynamic
8027 cygwin* | mingw* | pw32*)
8028 # When not using gcc, we currently assume that we are using
8029 # Microsoft Visual C++.
8030 # hardcode_libdir_flag_spec is actually meaningless, as there is
8031 # no search path for DLLs.
8032 hardcode_libdir_flag_spec=' '
8033 allow_undefined_flag=unsupported
8034 # Tell ltmain to make .lib files, not .a files.
8036 # Tell ltmain to make .dll files, not .so files.
8038 # FIXME: Setting linknames here is a bad hack.
8039 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8040 # The linker will automatically build a .lib file if we build a DLL.
8041 old_archive_From_new_cmds='true'
8042 # FIXME: Should let the user specify the lib program.
8043 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8044 fix_srcfile_path='`cygpath -w "$srcfile"`'
8045 enable_shared_with_static_runtimes=yes
8048 darwin* | rhapsody*)
8050 rhapsody* | darwin1.[012])
8051 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8055 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8057 case ${MACOSX_DEPLOYMENT_TARGET} in
8059 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8062 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8068 archive_cmds_need_lc=no
8070 hardcode_automatic=yes
8071 hardcode_shlibpath_var=unsupported
8072 whole_archive_flag_spec=''
8073 link_all_deplibs=yes
8074 if test "$GCC" = yes ; then
8075 output_verbose_link_cmd='echo'
8076 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8077 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8078 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8079 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}'
8080 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}'
8082 case $cc_basename in
8084 output_verbose_link_cmd='echo'
8085 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8086 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8088 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8089 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}'
8099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8100 hardcode_libdir_flag_spec='-L$libdir'
8101 hardcode_shlibpath_var=no
8108 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8109 # support. Future versions do this automatically, but an explicit c++rt0.o
8110 # does not break anything, and helps significantly (at the cost of a little
8113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8114 hardcode_libdir_flag_spec='-R$libdir'
8116 hardcode_shlibpath_var=no
8119 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8123 hardcode_minus_L=yes
8124 hardcode_shlibpath_var=no
8127 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8128 freebsd* | dragonfly*)
8129 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8130 hardcode_libdir_flag_spec='-R$libdir'
8132 hardcode_shlibpath_var=no
8136 if test "$GCC" = yes; then
8137 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'
8139 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'
8141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8142 hardcode_libdir_separator=:
8145 # hardcode_minus_L: Not really in the search PATH,
8146 # but as the default location of the library.
8147 hardcode_minus_L=yes
8148 export_dynamic_flag_spec='${wl}-E'
8152 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8153 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8155 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8157 if test "$with_gnu_ld" = no; then
8158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8159 hardcode_libdir_separator=:
8162 export_dynamic_flag_spec='${wl}-E'
8164 # hardcode_minus_L: Not really in the search PATH,
8165 # but as the default location of the library.
8166 hardcode_minus_L=yes
8171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8174 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8177 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8180 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8186 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8189 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8192 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8196 if test "$with_gnu_ld" = no; then
8197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8198 hardcode_libdir_separator=:
8202 hardcode_libdir_flag_spec_ld='+b $libdir'
8204 hardcode_shlibpath_var=no
8208 export_dynamic_flag_spec='${wl}-E'
8210 # hardcode_minus_L: Not really in the search PATH,
8211 # but as the default location of the library.
8212 hardcode_minus_L=yes
8218 irix5* | irix6* | nonstopux*)
8219 if test "$GCC" = yes; then
8220 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'
8222 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'
8223 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8226 hardcode_libdir_separator=:
8227 link_all_deplibs=yes
8230 netbsd* | netbsdelf*-gnu)
8231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8234 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8236 hardcode_libdir_flag_spec='-R$libdir'
8238 hardcode_shlibpath_var=no
8242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8245 hardcode_libdir_separator=:
8246 hardcode_shlibpath_var=no
8251 hardcode_shlibpath_var=no
8252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8254 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8255 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8256 export_dynamic_flag_spec='${wl}-E'
8259 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8261 hardcode_libdir_flag_spec='-R$libdir'
8264 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8272 hardcode_libdir_flag_spec='-L$libdir'
8273 hardcode_minus_L=yes
8274 allow_undefined_flag=unsupported
8275 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'
8276 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8280 if test "$GCC" = yes; then
8281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8282 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'
8284 allow_undefined_flag=' -expect_unresolved \*'
8285 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'
8287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288 hardcode_libdir_separator=:
8291 osf4* | osf5*) # as osf3* with the addition of -msym flag
8292 if test "$GCC" = yes; then
8293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8294 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'
8295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8297 allow_undefined_flag=' -expect_unresolved \*'
8298 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'
8299 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8300 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8302 # Both c and cxx compiler support -rpath directly
8303 hardcode_libdir_flag_spec='-rpath $libdir'
8305 hardcode_libdir_separator=:
8309 no_undefined_flag=' -z text'
8310 if test "$GCC" = yes; then
8312 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8313 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8314 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8317 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8318 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8321 hardcode_libdir_flag_spec='-R$libdir'
8322 hardcode_shlibpath_var=no
8324 solaris2.[0-5] | solaris2.[0-5].*) ;;
8326 # The compiler driver will combine linker options so we
8327 # cannot just pass the convience library names through
8328 # without $wl, iff we do not link with $LD.
8329 # Luckily, gcc supports the same syntax we need for Sun Studio.
8330 # Supported since Solaris 2.6 (maybe 2.5.1?)
8333 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8335 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8338 link_all_deplibs=yes
8342 if test "x$host_vendor" = xsequent; then
8343 # Use $CC to link under sequent, because it throws in some extra .o
8344 # files that make .init and .fini sections work.
8345 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8347 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8349 hardcode_libdir_flag_spec='-L$libdir'
8351 hardcode_minus_L=yes
8352 hardcode_shlibpath_var=no
8356 case $host_vendor in
8358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_direct=yes # is this really true???
8362 ## LD is ld it makes a PLAMLIB
8363 ## CC just makes a GrossModule.
8364 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8365 reload_cmds='$CC -r -o $output$reload_objs'
8369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8370 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8373 runpath_var='LD_RUN_PATH'
8374 hardcode_shlibpath_var=no
8378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8379 hardcode_shlibpath_var=no
8380 export_dynamic_flag_spec='-Bexport'
8384 if test -d /usr/nec; then
8385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_shlibpath_var=no
8387 runpath_var=LD_RUN_PATH
8388 hardcode_runpath_var=yes
8393 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8394 no_undefined_flag='${wl}-z,text'
8395 archive_cmds_need_lc=no
8396 hardcode_shlibpath_var=no
8397 runpath_var='LD_RUN_PATH'
8399 if test "$GCC" = yes; then
8400 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8404 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8408 sysv5* | sco3.2v5* | sco5v6*)
8409 # Note: We can NOT use -z defs as we might desire, because we do not
8410 # link with -lc, and that would cause any symbols used from libc to
8411 # always be unresolved, which means just about no library would
8412 # ever link correctly. If we're not using GNU ld we use -z text
8413 # though, which does catch some bad symbols but isn't as heavy-handed
8415 no_undefined_flag='${wl}-z,text'
8416 allow_undefined_flag='${wl}-z,nodefs'
8417 archive_cmds_need_lc=no
8418 hardcode_shlibpath_var=no
8419 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8420 hardcode_libdir_separator=':'
8421 link_all_deplibs=yes
8422 export_dynamic_flag_spec='${wl}-Bexport'
8423 runpath_var='LD_RUN_PATH'
8425 if test "$GCC" = yes; then
8426 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8430 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8436 hardcode_libdir_flag_spec='-L$libdir'
8437 hardcode_shlibpath_var=no
8446 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8447 echo "${ECHO_T}$ld_shlibs" >&6; }
8448 test "$ld_shlibs" = no && can_build_shared=no
8451 # Do we need to explicitly link libc?
8453 case "x$archive_cmds_need_lc" in
8455 # Assume -lc should be added
8456 archive_cmds_need_lc=yes
8458 if test "$enable_shared" = yes && test "$GCC" = yes; then
8459 case $archive_cmds in
8461 # FIXME: we may have to deal with multi-command sequences.
8464 # Test whether the compiler implicitly links with -lc since on some
8465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8466 # to ld, don't add -lc before -lgcc.
8467 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8468 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } 2>conftest.err; then
8479 libobjs=conftest.$ac_objext
8481 wl=$lt_prog_compiler_wl
8482 pic_flag=$lt_prog_compiler_pic
8488 lt_save_allow_undefined_flag=$allow_undefined_flag
8489 allow_undefined_flag=
8490 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8491 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }
8496 archive_cmds_need_lc=no
8498 archive_cmds_need_lc=yes
8500 allow_undefined_flag=$lt_save_allow_undefined_flag
8502 cat conftest.err 1>&5
8505 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8506 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8513 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8516 libname_spec='lib$name'
8524 shlibpath_overrides_runpath=unknown
8526 dynamic_linker="$host_os ld.so"
8527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8528 if test "$GCC" = yes; then
8529 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8530 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8531 # if the path contains ";" then we assume it to be the separator
8532 # otherwise default to the standard path separator (i.e. ":") - it is
8533 # assumed that no part of a normal pathname contains ";" but that should
8534 # okay in the real world where ";" in dirpaths is itself problematic.
8535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8542 need_lib_prefix=unknown
8543 hardcode_into_libs=no
8545 # when you set need_version to no, make sure it does not cause -set_version
8546 # flags to be left without arguments
8547 need_version=unknown
8552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8553 shlibpath_var=LIBPATH
8555 # AIX 3 has no versioning support, so we append a major version to the name.
8556 soname_spec='${libname}${release}${shared_ext}$major'
8563 hardcode_into_libs=yes
8564 if test "$host_cpu" = ia64; then
8565 # AIX 5 supports IA64
8566 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8567 shlibpath_var=LD_LIBRARY_PATH
8569 # With GCC up to 2.95.x, collect2 would create an import file
8570 # for dependence libraries. The import file would start with
8571 # the line `#! .'. This would cause the generated library to
8572 # depend on `.', always an invalid library. This was fixed in
8573 # development snapshots of GCC prior to 3.0.
8575 aix4 | aix4.[01] | aix4.[01].*)
8576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8578 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8585 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8586 # soname into executable. Probably we can add versioning support to
8587 # collect2, so additional links can be useful in future.
8588 if test "$aix_use_runtimelinking" = yes; then
8589 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8590 # instead of lib<name>.a to let people know that these are not
8591 # typical AIX shared libraries.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 # We preserve .a as extension for shared libraries through AIX4.2
8595 # and later when we are not doing run time linking.
8596 library_names_spec='${libname}${release}.a $libname.a'
8597 soname_spec='${libname}${release}${shared_ext}$major'
8599 shlibpath_var=LIBPATH
8604 library_names_spec='$libname.ixlibrary $libname.a'
8605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8606 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'
8610 library_names_spec='${libname}${shared_ext}'
8611 dynamic_linker="$host_os ld.so"
8612 shlibpath_var=LIBRARY_PATH
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8621 shlibpath_var=LD_LIBRARY_PATH
8622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8624 # the default ld.so.conf also contains /usr/contrib/lib and
8625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8626 # libtool to hard-code these into programs
8629 cygwin* | mingw* | pw32*)
8630 version_type=windows
8635 case $GCC,$host_os in
8636 yes,cygwin* | yes,mingw* | yes,pw32*)
8637 library_names_spec='$libname.dll.a'
8638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8639 postinstall_cmds='base_file=`basename \${file}`~
8640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8641 dldir=$destdir/`dirname \$dlpath`~
8642 test -d \$dldir || mkdir -p \$dldir~
8643 $install_prog $dir/$dlname \$dldir/$dlname~
8644 chmod a+x \$dldir/$dlname'
8645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8646 dlpath=$dir/\$dldll~
8648 shlibpath_overrides_runpath=yes
8652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8654 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8657 # MinGW DLLs use traditional 'lib' prefix
8658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8660 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8661 # It is most probably a Windows format PATH printed by
8662 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8663 # path with ; separators, and with drive letters. We can handle the
8664 # drive letters (cygwin fileutils understands them), so leave them,
8665 # especially as we might pass files found there to a mingw objdump,
8666 # which wouldn't understand a cygwinified path. Ahh.
8667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8673 # pw32 DLLs use 'pw' prefix rather than 'lib'
8674 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8680 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8683 dynamic_linker='Win32 ld.exe'
8684 # FIXME: first we should search . and the directory the executable is in
8688 darwin* | rhapsody*)
8689 dynamic_linker="$host_os dyld"
8693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8694 soname_spec='${libname}${release}${major}$shared_ext'
8695 shlibpath_overrides_runpath=yes
8696 shlibpath_var=DYLD_LIBRARY_PATH
8697 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8699 if test "$GCC" = yes; then
8700 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"`
8702 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 shlibpath_var=LD_LIBRARY_PATH
8720 freebsd* | dragonfly*)
8721 # DragonFly does not have aout. When/if they implement a new
8722 # versioning mechanism, adjust this.
8723 if test -x /usr/bin/objformat; then
8724 objformat=`/usr/bin/objformat`
8727 freebsd[123]*) objformat=aout ;;
8731 version_type=freebsd-$objformat
8732 case $version_type in
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8743 shlibpath_var=LD_LIBRARY_PATH
8746 shlibpath_overrides_runpath=yes
8748 freebsd3.[01]* | freebsdelf3.[01]*)
8749 shlibpath_overrides_runpath=yes
8750 hardcode_into_libs=yes
8752 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8753 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8754 shlibpath_overrides_runpath=no
8755 hardcode_into_libs=yes
8757 freebsd*) # from 4.6 on
8758 shlibpath_overrides_runpath=yes
8759 hardcode_into_libs=yes
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 hardcode_into_libs=yes
8774 hpux9* | hpux10* | hpux11*)
8775 # Give a soname corresponding to the major version so that dld.sl refuses to
8776 # link against other versions.
8783 hardcode_into_libs=yes
8784 dynamic_linker="$host_os dld.so"
8785 shlibpath_var=LD_LIBRARY_PATH
8786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 if test "X$HPUX_IA64_MODE" = X32; then
8790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8798 hardcode_into_libs=yes
8799 dynamic_linker="$host_os dld.sl"
8800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8809 dynamic_linker="$host_os dld.sl"
8810 shlibpath_var=SHLIB_PATH
8811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8816 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8817 postinstall_cmds='chmod 555 $lib'
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 shlibpath_overrides_runpath=no
8829 hardcode_into_libs=yes
8832 irix5* | irix6* | nonstopux*)
8834 nonstopux*) version_type=nonstopux ;;
8836 if test "$lt_cv_prog_gnu_ld" = yes; then
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8847 irix5* | nonstopux*)
8851 case $LD in # libtool.m4 will add one of these switches to LD
8852 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8853 libsuff= shlibsuff= libmagic=32-bit;;
8854 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8855 libsuff=32 shlibsuff=N32 libmagic=N32;;
8856 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8857 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8858 *) libsuff= shlibsuff= libmagic=never-match;;
8862 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8863 shlibpath_overrides_runpath=no
8864 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8865 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8866 hardcode_into_libs=yes
8869 # No shared lib support for Linux oldld, aout, or coff.
8870 linux*oldld* | linux*aout* | linux*coff*)
8874 # This must be Linux ELF.
8875 linux* | k*bsd*-gnu)
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 shlibpath_overrides_runpath=no
8884 # This implies no fast_install, which is unacceptable.
8885 # Some rework will be needed to allow for fast_install
8886 # before this can be enabled.
8887 hardcode_into_libs=yes
8889 # Append ld.so.conf contents to the search path
8890 if test -f /etc/ld.so.conf; then
8891 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8892 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8895 # We used to test for /lib/ld.so.1 and disable shared libraries on
8896 # powerpc, because MkLinux only supported shared libraries with the
8897 # GNU dynamic linker. Since this was broken with cross compilers,
8898 # most powerpc-linux boxes support dynamic linking these days and
8899 # people can always --disable-shared, the test was removed, and we
8900 # assume the GNU/Linux dynamic linker is in use.
8901 dynamic_linker='GNU/Linux ld.so'
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 shlibpath_var=LD_LIBRARY_PATH
8911 shlibpath_overrides_runpath=no
8912 hardcode_into_libs=yes
8913 dynamic_linker='NetBSD ld.elf_so'
8920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8923 dynamic_linker='NetBSD (a.out) ld.so'
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 dynamic_linker='NetBSD ld.elf_so'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=yes
8931 hardcode_into_libs=yes
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=yes
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=yes
8953 sys_lib_dlsearch_path_spec="/usr/lib"
8955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8958 *) need_version=no ;;
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8965 openbsd2.[89] | openbsd2.[89].*)
8966 shlibpath_overrides_runpath=no
8969 shlibpath_overrides_runpath=yes
8973 shlibpath_overrides_runpath=yes
8978 libname_spec='$name'
8981 library_names_spec='$libname${shared_ext} $libname.a'
8982 dynamic_linker='OS/2 ld.exe'
8983 shlibpath_var=LIBPATH
8986 osf3* | osf4* | osf5*)
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes
9005 hardcode_into_libs=yes
9006 # ldd complains unless libraries are executable
9007 postinstall_cmds='chmod +x $lib'
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 shlibpath_overrides_runpath=yes
9016 if test "$with_gnu_ld" = yes; then
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 case $host_vendor in
9029 shlibpath_overrides_runpath=no
9031 export_dynamic_flag_spec='${wl}-Blargedynsym'
9032 runpath_var=LD_RUN_PATH
9040 shlibpath_overrides_runpath=no
9041 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9047 if test -d /usr/nec ;then
9049 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9050 soname_spec='$libname${shared_ext}.$major'
9051 shlibpath_var=LD_LIBRARY_PATH
9055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9056 version_type=freebsd-elf
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 hardcode_into_libs=yes
9063 if test "$with_gnu_ld" = yes; then
9064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9065 shlibpath_overrides_runpath=no
9067 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9068 shlibpath_overrides_runpath=yes
9071 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9075 sys_lib_dlsearch_path_spec='/usr/lib'
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LD_LIBRARY_PATH
9089 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9090 echo "${ECHO_T}$dynamic_linker" >&6; }
9091 test "$dynamic_linker" = no && can_build_shared=no
9093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9094 if test "$GCC" = yes; then
9095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9098 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9099 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9101 if test -n "$hardcode_libdir_flag_spec" || \
9102 test -n "$runpath_var" || \
9103 test "X$hardcode_automatic" = "Xyes" ; then
9105 # We can hardcode non-existant directories.
9106 if test "$hardcode_direct" != no &&
9107 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9108 # have to relink, otherwise we might link with an installed library
9109 # when we should be linking with a yet-to-be-installed one
9110 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9111 test "$hardcode_minus_L" != no; then
9112 # Linking always hardcodes the temporary library directory.
9113 hardcode_action=relink
9115 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9116 hardcode_action=immediate
9119 # We cannot hardcode anything, or else we can only hardcode existing
9121 hardcode_action=unsupported
9123 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9124 echo "${ECHO_T}$hardcode_action" >&6; }
9126 if test "$hardcode_action" = relink; then
9127 # Fast installation is not supported
9128 enable_fast_install=no
9129 elif test "$shlibpath_overrides_runpath" = yes ||
9130 test "$enable_shared" = no; then
9131 # Fast installation is not necessary
9132 enable_fast_install=needless
9137 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9138 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9139 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9140 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9141 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9142 { echo "$as_me:$LINENO: result: yes" >&5
9143 echo "${ECHO_T}yes" >&6; }
9145 # FIXME - insert some real tests, host_os isn't really good enough
9148 if test -n "$STRIP" ; then
9149 striplib="$STRIP -x"
9150 { echo "$as_me:$LINENO: result: yes" >&5
9151 echo "${ECHO_T}yes" >&6; }
9153 { echo "$as_me:$LINENO: result: no" >&5
9154 echo "${ECHO_T}no" >&6; }
9158 { echo "$as_me:$LINENO: result: no" >&5
9159 echo "${ECHO_T}no" >&6; }
9164 if test "x$enable_dlopen" != xyes; then
9165 enable_dlopen=unknown
9166 enable_dlopen_self=unknown
9167 enable_dlopen_self_static=unknown
9174 lt_cv_dlopen="load_add_on"
9176 lt_cv_dlopen_self=yes
9180 lt_cv_dlopen="LoadLibrary"
9185 lt_cv_dlopen="dlopen"
9190 # if libdl is installed we need to link against it
9191 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9192 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9193 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 ac_check_lib_save_LIBS=$LIBS
9198 cat >conftest.$ac_ext <<_ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9205 /* Override any GCC internal prototype to avoid an error.
9206 Use char because int might match the return type of a GCC
9207 builtin and then its argument prototype would still apply. */
9220 rm -f conftest.$ac_objext conftest$ac_exeext
9221 if { (ac_try="$ac_link"
9223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224 *) ac_try_echo=$ac_try;;
9226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9227 (eval "$ac_link") 2>conftest.er1
9229 grep -v '^ *+' conftest.er1 >conftest.err
9231 cat conftest.err >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } && {
9234 test -z "$ac_c_werror_flag" ||
9235 test ! -s conftest.err
9236 } && test -s conftest$ac_exeext &&
9237 $as_test_x conftest$ac_exeext; then
9238 ac_cv_lib_dl_dlopen=yes
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 ac_cv_lib_dl_dlopen=no
9246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9247 conftest$ac_exeext conftest.$ac_ext
9248 LIBS=$ac_check_lib_save_LIBS
9250 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9252 if test $ac_cv_lib_dl_dlopen = yes; then
9253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9258 lt_cv_dlopen_self=yes
9265 { echo "$as_me:$LINENO: checking for shl_load" >&5
9266 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9267 if test "${ac_cv_func_shl_load+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 cat >conftest.$ac_ext <<_ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9276 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9278 #define shl_load innocuous_shl_load
9280 /* System header to define __stub macros and hopefully few prototypes,
9281 which can conflict with char shl_load (); below.
9282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9283 <limits.h> exists even on freestanding compilers. */
9286 # include <limits.h>
9288 # include <assert.h>
9293 /* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9300 /* The GNU C library defines this for functions which it implements
9301 to always fail with ENOSYS. Some functions are actually named
9302 something starting with __ and the normal name is an alias. */
9303 #if defined __stub_shl_load || defined __stub___shl_load
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (ac_try="$ac_link"
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_link") 2>conftest.er1
9324 grep -v '^ *+' conftest.er1 >conftest.err
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && {
9329 test -z "$ac_c_werror_flag" ||
9330 test ! -s conftest.err
9331 } && test -s conftest$ac_exeext &&
9332 $as_test_x conftest$ac_exeext; then
9333 ac_cv_func_shl_load=yes
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_func_shl_load=no
9341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342 conftest$ac_exeext conftest.$ac_ext
9344 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9345 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9346 if test $ac_cv_func_shl_load = yes; then
9347 lt_cv_dlopen="shl_load"
9349 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9350 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9351 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 ac_check_lib_save_LIBS=$LIBS
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (ac_try="$ac_link"
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_link") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext &&
9395 $as_test_x conftest$ac_exeext; then
9396 ac_cv_lib_dld_shl_load=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_cv_lib_dld_shl_load=no
9404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9405 conftest$ac_exeext conftest.$ac_ext
9406 LIBS=$ac_check_lib_save_LIBS
9408 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9409 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9410 if test $ac_cv_lib_dld_shl_load = yes; then
9411 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9413 { echo "$as_me:$LINENO: checking for dlopen" >&5
9414 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9415 if test "${ac_cv_func_dlopen+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9426 #define dlopen innocuous_dlopen
9428 /* System header to define __stub macros and hopefully few prototypes,
9429 which can conflict with char dlopen (); below.
9430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9431 <limits.h> exists even on freestanding compilers. */
9434 # include <limits.h>
9436 # include <assert.h>
9441 /* Override any GCC internal prototype to avoid an error.
9442 Use char because int might match the return type of a GCC
9443 builtin and then its argument prototype would still apply. */
9448 /* The GNU C library defines this for functions which it implements
9449 to always fail with ENOSYS. Some functions are actually named
9450 something starting with __ and the normal name is an alias. */
9451 #if defined __stub_dlopen || defined __stub___dlopen
9463 rm -f conftest.$ac_objext conftest$ac_exeext
9464 if { (ac_try="$ac_link"
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_link") 2>conftest.er1
9472 grep -v '^ *+' conftest.er1 >conftest.err
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } && {
9477 test -z "$ac_c_werror_flag" ||
9478 test ! -s conftest.err
9479 } && test -s conftest$ac_exeext &&
9480 $as_test_x conftest$ac_exeext; then
9481 ac_cv_func_dlopen=yes
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 ac_cv_func_dlopen=no
9489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9490 conftest$ac_exeext conftest.$ac_ext
9492 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9493 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9494 if test $ac_cv_func_dlopen = yes; then
9495 lt_cv_dlopen="dlopen"
9497 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9498 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9499 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 ac_check_lib_save_LIBS=$LIBS
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_link") 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest$ac_exeext &&
9543 $as_test_x conftest$ac_exeext; then
9544 ac_cv_lib_dl_dlopen=yes
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_lib_dl_dlopen=no
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553 conftest$ac_exeext conftest.$ac_ext
9554 LIBS=$ac_check_lib_save_LIBS
9556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9558 if test $ac_cv_lib_dl_dlopen = yes; then
9559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9561 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9562 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9563 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 ac_check_lib_save_LIBS=$LIBS
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_link") 2>conftest.er1
9599 grep -v '^ *+' conftest.er1 >conftest.err
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } && {
9604 test -z "$ac_c_werror_flag" ||
9605 test ! -s conftest.err
9606 } && test -s conftest$ac_exeext &&
9607 $as_test_x conftest$ac_exeext; then
9608 ac_cv_lib_svld_dlopen=yes
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9613 ac_cv_lib_svld_dlopen=no
9616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9617 conftest$ac_exeext conftest.$ac_ext
9618 LIBS=$ac_check_lib_save_LIBS
9620 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9621 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9622 if test $ac_cv_lib_svld_dlopen = yes; then
9623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9625 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9626 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9627 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 ac_check_lib_save_LIBS=$LIBS
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_link") 2>conftest.er1
9663 grep -v '^ *+' conftest.er1 >conftest.err
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest$ac_exeext &&
9671 $as_test_x conftest$ac_exeext; then
9672 ac_cv_lib_dld_dld_link=yes
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_cv_lib_dld_dld_link=no
9680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681 conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9684 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9685 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9686 if test $ac_cv_lib_dld_dld_link = yes; then
9687 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9708 if test "x$lt_cv_dlopen" != xno; then
9714 case $lt_cv_dlopen in
9716 save_CPPFLAGS="$CPPFLAGS"
9717 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9719 save_LDFLAGS="$LDFLAGS"
9720 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9723 LIBS="$lt_cv_dlopen_libs $LIBS"
9725 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9726 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9727 if test "${lt_cv_dlopen_self+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 if test "$cross_compiling" = yes; then :
9731 lt_cv_dlopen_self=cross
9733 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9734 lt_status=$lt_dlunknown
9735 cat > conftest.$ac_ext <<EOF
9736 #line 9736 "configure"
9737 #include "confdefs.h"
9746 # define LT_DLGLOBAL RTLD_GLOBAL
9749 # define LT_DLGLOBAL DL_GLOBAL
9751 # define LT_DLGLOBAL 0
9755 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9756 find out it does not work in some platform. */
9757 #ifndef LT_DLLAZY_OR_NOW
9759 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9762 # define LT_DLLAZY_OR_NOW DL_LAZY
9765 # define LT_DLLAZY_OR_NOW RTLD_NOW
9768 # define LT_DLLAZY_OR_NOW DL_NOW
9770 # define LT_DLLAZY_OR_NOW 0
9778 extern "C" void exit (int);
9781 void fnord() { int i=42;}
9784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9785 int status = $lt_dlunknown;
9789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9790 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9791 /* dlclose (self); */
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9804 (./conftest; exit; ) >&5 2>/dev/null
9807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9809 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9812 # compilation failed
9813 lt_cv_dlopen_self=no
9820 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9821 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9823 if test "x$lt_cv_dlopen_self" = xyes; then
9824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9825 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9826 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9827 if test "${lt_cv_dlopen_self_static+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 if test "$cross_compiling" = yes; then :
9831 lt_cv_dlopen_self_static=cross
9833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9834 lt_status=$lt_dlunknown
9835 cat > conftest.$ac_ext <<EOF
9836 #line 9836 "configure"
9837 #include "confdefs.h"
9846 # define LT_DLGLOBAL RTLD_GLOBAL
9849 # define LT_DLGLOBAL DL_GLOBAL
9851 # define LT_DLGLOBAL 0
9855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9856 find out it does not work in some platform. */
9857 #ifndef LT_DLLAZY_OR_NOW
9859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9862 # define LT_DLLAZY_OR_NOW DL_LAZY
9865 # define LT_DLLAZY_OR_NOW RTLD_NOW
9868 # define LT_DLLAZY_OR_NOW DL_NOW
9870 # define LT_DLLAZY_OR_NOW 0
9878 extern "C" void exit (int);
9881 void fnord() { int i=42;}
9884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9885 int status = $lt_dlunknown;
9889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9891 /* dlclose (self); */
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9904 (./conftest; exit; ) >&5 2>/dev/null
9907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9909 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9912 # compilation failed
9913 lt_cv_dlopen_self_static=no
9920 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9921 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9924 CPPFLAGS="$save_CPPFLAGS"
9925 LDFLAGS="$save_LDFLAGS"
9930 case $lt_cv_dlopen_self in
9931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9932 *) enable_dlopen_self=unknown ;;
9935 case $lt_cv_dlopen_self_static in
9936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9937 *) enable_dlopen_self_static=unknown ;;
9942 # Report which library types will actually be built
9943 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9945 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9946 echo "${ECHO_T}$can_build_shared" >&6; }
9948 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9950 test "$can_build_shared" = "no" && enable_shared=no
9952 # On AIX, shared libraries and static libraries use the same namespace, and
9953 # are all built from PIC.
9956 test "$enable_shared" = yes && enable_static=no
9957 if test -n "$RANLIB"; then
9958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9959 postinstall_cmds='$RANLIB $lib'
9964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9965 test "$enable_shared" = yes && enable_static=no
9969 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9970 echo "${ECHO_T}$enable_shared" >&6; }
9972 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9973 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9974 # Make sure either enable_shared or enable_static is yes.
9975 test "$enable_shared" = yes || enable_static=yes
9976 { echo "$as_me:$LINENO: result: $enable_static" >&5
9977 echo "${ECHO_T}$enable_static" >&6; }
9979 # The else clause should only fire when bootstrapping the
9980 # libtool distribution, otherwise you forgot to ship ltmain.sh
9981 # with your package, and you will get complaints that there are
9982 # no rules to generate ltmain.sh.
9983 if test -f "$ltmain"; then
9984 # See if we are running on zsh, and set the options which allow our commands through
9985 # without removal of \ escapes.
9986 if test -n "${ZSH_VERSION+set}" ; then
9987 setopt NO_GLOB_SUBST
9989 # Now quote all the things that may contain metacharacters while being
9990 # careful not to overquote the AC_SUBSTed values. We take copies of the
9991 # variables and quote the copies for generation of the libtool script.
9992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9994 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9995 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9996 deplibs_check_method reload_flag reload_cmds need_locks \
9997 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9998 lt_cv_sys_global_symbol_to_c_name_address \
9999 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10000 old_postinstall_cmds old_postuninstall_cmds \
10004 lt_prog_compiler_wl \
10005 lt_prog_compiler_pic \
10006 lt_prog_compiler_static \
10007 lt_prog_compiler_no_builtin_flag \
10008 export_dynamic_flag_spec \
10009 thread_safe_flag_spec \
10010 whole_archive_flag_spec \
10011 enable_shared_with_static_runtimes \
10013 old_archive_from_new_cmds \
10018 compiler_lib_search_path \
10020 archive_expsym_cmds \
10022 postuninstall_cmds \
10023 old_archive_from_expsyms_cmds \
10024 allow_undefined_flag \
10025 no_undefined_flag \
10026 export_symbols_cmds \
10027 hardcode_libdir_flag_spec \
10028 hardcode_libdir_flag_spec_ld \
10029 hardcode_libdir_separator \
10030 hardcode_automatic \
10032 module_expsym_cmds \
10033 lt_cv_prog_compiler_c_o \
10035 include_expsyms; do
10038 old_archive_cmds | \
10039 old_archive_from_new_cmds | \
10041 archive_expsym_cmds | \
10043 module_expsym_cmds | \
10044 old_archive_from_expsyms_cmds | \
10045 export_symbols_cmds | \
10046 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10047 postinstall_cmds | postuninstall_cmds | \
10048 old_postinstall_cmds | old_postuninstall_cmds | \
10049 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10050 # Double-quote double-evaled strings.
10051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10060 *'\$0 --fallback-echo"')
10061 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10065 cfgfile="${ofile}T"
10066 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10068 { echo "$as_me:$LINENO: creating $ofile" >&5
10069 echo "$as_me: creating $ofile" >&6;}
10071 cat <<__EOF__ >> "$cfgfile"
10074 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10075 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10076 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10078 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10079 # Free Software Foundation, Inc.
10081 # This file is part of GNU Libtool:
10082 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10084 # This program is free software; you can redistribute it and/or modify
10085 # it under the terms of the GNU General Public License as published by
10086 # the Free Software Foundation; either version 2 of the License, or
10087 # (at your option) any later version.
10089 # This program is distributed in the hope that it will be useful, but
10090 # WITHOUT ANY WARRANTY; without even the implied warranty of
10091 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10092 # General Public License for more details.
10094 # You should have received a copy of the GNU General Public License
10095 # along with this program; if not, write to the Free Software
10096 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10098 # As a special exception to the GNU General Public License, if you
10099 # distribute this file as part of a program that contains a
10100 # configuration script generated by Autoconf, you may include it under
10101 # the same distribution terms that you use for the rest of that program.
10103 # A sed program that does not truncate output.
10106 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10107 Xsed="$SED -e 1s/^X//"
10109 # The HP-UX ksh and POSIX shell print the target directory to stdout
10110 # if CDPATH is set.
10111 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10113 # The names of the tagged configurations supported by this script.
10116 # ### BEGIN LIBTOOL CONFIG
10118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10120 # Shell to use when invoking shell scripts.
10123 # Whether or not to build shared libraries.
10124 build_libtool_libs=$enable_shared
10126 # Whether or not to build static libraries.
10127 build_old_libs=$enable_static
10129 # Whether or not to add -lc for building shared libraries.
10130 build_libtool_need_lc=$archive_cmds_need_lc
10132 # Whether or not to disallow shared libs when runtime libs are static
10133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10135 # Whether or not to optimize for fast installation.
10136 fast_install=$enable_fast_install
10139 host_alias=$host_alias
10143 # The build system.
10144 build_alias=$build_alias
10148 # An echo program that does not interpret backslashes.
10153 AR_FLAGS=$lt_AR_FLAGS
10158 # LTCC compiler flags.
10159 LTCFLAGS=$lt_LTCFLAGS
10161 # A language-specific compiler.
10164 # Is the compiler the GNU C compiler?
10170 # The linker used to build libraries.
10173 # Whether we need hard or soft links.
10176 # A BSD-compatible nm program.
10179 # A symbol stripping program
10182 # Used to examine libraries when file_magic_cmd begins "file"
10183 MAGIC_CMD=$MAGIC_CMD
10185 # Used on cygwin: DLL creation program.
10188 # Used on cygwin: object dumper.
10191 # Used on cygwin: assembler.
10194 # The name of the directory that contains temporary libtool files.
10197 # How to create reloadable object files.
10198 reload_flag=$lt_reload_flag
10199 reload_cmds=$lt_reload_cmds
10201 # How to pass a linker flag through the compiler.
10202 wl=$lt_lt_prog_compiler_wl
10204 # Object file suffix (normally "o").
10205 objext="$ac_objext"
10207 # Old archive suffix (normally "a").
10210 # Shared library suffix (normally ".so").
10211 shrext_cmds='$shrext_cmds'
10213 # Executable file suffix (normally "").
10216 # Additional compiler flags for building library objects.
10217 pic_flag=$lt_lt_prog_compiler_pic
10220 # What is the maximum length of a command?
10221 max_cmd_len=$lt_cv_sys_max_cmd_len
10223 # Does compiler simultaneously support -c and -o options?
10224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10226 # Must we lock files when doing compilation?
10227 need_locks=$lt_need_locks
10229 # Do we need the lib prefix for modules?
10230 need_lib_prefix=$need_lib_prefix
10232 # Do we need a version for libraries?
10233 need_version=$need_version
10235 # Whether dlopen is supported.
10236 dlopen_support=$enable_dlopen
10238 # Whether dlopen of programs is supported.
10239 dlopen_self=$enable_dlopen_self
10241 # Whether dlopen of statically linked programs is supported.
10242 dlopen_self_static=$enable_dlopen_self_static
10244 # Compiler flag to prevent dynamic linking.
10245 link_static_flag=$lt_lt_prog_compiler_static
10247 # Compiler flag to turn off builtin functions.
10248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10250 # Compiler flag to allow reflexive dlopens.
10251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10253 # Compiler flag to generate shared objects directly from archives.
10254 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10256 # Compiler flag to generate thread-safe objects.
10257 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10259 # Library versioning type.
10260 version_type=$version_type
10262 # Format of library name prefix.
10263 libname_spec=$lt_libname_spec
10265 # List of archive names. First name is the real one, the rest are links.
10266 # The last name is the one that the linker finds with -lNAME.
10267 library_names_spec=$lt_library_names_spec
10269 # The coded name of the library, if different from the real name.
10270 soname_spec=$lt_soname_spec
10272 # Commands used to build and install an old-style archive.
10274 old_archive_cmds=$lt_old_archive_cmds
10275 old_postinstall_cmds=$lt_old_postinstall_cmds
10276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10278 # Create an old-style archive from a shared archive.
10279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10281 # Create a temporary old-style archive to link instead of a shared archive.
10282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10284 # Commands used to build and install a shared archive.
10285 archive_cmds=$lt_archive_cmds
10286 archive_expsym_cmds=$lt_archive_expsym_cmds
10287 postinstall_cmds=$lt_postinstall_cmds
10288 postuninstall_cmds=$lt_postuninstall_cmds
10290 # Commands used to build a loadable module (assumed same as above if empty)
10291 module_cmds=$lt_module_cmds
10292 module_expsym_cmds=$lt_module_expsym_cmds
10294 # Commands to strip libraries.
10295 old_striplib=$lt_old_striplib
10296 striplib=$lt_striplib
10298 # Dependencies to place before the objects being linked to create a
10300 predep_objects=$lt_predep_objects
10302 # Dependencies to place after the objects being linked to create a
10304 postdep_objects=$lt_postdep_objects
10306 # Dependencies to place before the objects being linked to create a
10308 predeps=$lt_predeps
10310 # Dependencies to place after the objects being linked to create a
10312 postdeps=$lt_postdeps
10314 # The library search path used internally by the compiler when linking
10315 # a shared library.
10316 compiler_lib_search_path=$lt_compiler_lib_search_path
10318 # Method to check whether dependent libraries are shared objects.
10319 deplibs_check_method=$lt_deplibs_check_method
10321 # Command to use when deplibs_check_method == file_magic.
10322 file_magic_cmd=$lt_file_magic_cmd
10324 # Flag that allows shared libraries with undefined symbols to be built.
10325 allow_undefined_flag=$lt_allow_undefined_flag
10327 # Flag that forces no undefined symbols.
10328 no_undefined_flag=$lt_no_undefined_flag
10330 # Commands used to finish a libtool library installation in a directory.
10331 finish_cmds=$lt_finish_cmds
10333 # Same as above, but a single script fragment to be evaled but not shown.
10334 finish_eval=$lt_finish_eval
10336 # Take the output of nm and produce a listing of raw symbols and C names.
10337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10339 # Transform the output of nm in a proper C declaration
10340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10342 # Transform the output of nm in a C name address pair
10343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10345 # This is the shared library runtime path variable.
10346 runpath_var=$runpath_var
10348 # This is the shared library path variable.
10349 shlibpath_var=$shlibpath_var
10351 # Is shlibpath searched before the hard-coded library search path?
10352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10354 # How to hardcode a shared library path into an executable.
10355 hardcode_action=$hardcode_action
10357 # Whether we should hardcode library paths into libraries.
10358 hardcode_into_libs=$hardcode_into_libs
10360 # Flag to hardcode \$libdir into a binary during linking.
10361 # This must work even if \$libdir does not exist.
10362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10364 # If ld is used when linking, flag to hardcode \$libdir into
10365 # a binary during linking. This must work even if \$libdir does
10367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10369 # Whether we need a single -rpath flag with a separated argument.
10370 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10373 # resulting binary.
10374 hardcode_direct=$hardcode_direct
10376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10377 # resulting binary.
10378 hardcode_minus_L=$hardcode_minus_L
10380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10381 # the resulting binary.
10382 hardcode_shlibpath_var=$hardcode_shlibpath_var
10384 # Set to yes if building a shared library automatically hardcodes DIR into the library
10385 # and all subsequent libraries and executables linked against it.
10386 hardcode_automatic=$hardcode_automatic
10388 # Variables whose values should be saved in libtool wrapper scripts and
10389 # restored at relink time.
10390 variables_saved_for_relink="$variables_saved_for_relink"
10392 # Whether libtool must link a program against all its dependency libraries.
10393 link_all_deplibs=$link_all_deplibs
10395 # Compile-time system search path for libraries
10396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10398 # Run-time system search path for libraries
10399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10401 # Fix the shell variable \$srcfile for the compiler.
10402 fix_srcfile_path="$fix_srcfile_path"
10404 # Set to yes if exported symbols are required.
10405 always_export_symbols=$always_export_symbols
10407 # The commands to list exported symbols.
10408 export_symbols_cmds=$lt_export_symbols_cmds
10410 # The commands to extract the exported symbol list from a shared archive.
10411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10413 # Symbols that should not be listed in the preloaded symbols.
10414 exclude_expsyms=$lt_exclude_expsyms
10416 # Symbols that must always be exported.
10417 include_expsyms=$lt_include_expsyms
10419 # ### END LIBTOOL CONFIG
10426 cat <<\EOF >> "$cfgfile"
10428 # AIX sometimes has problems with the GCC collect2 program. For some
10429 # reason, if we set the COLLECT_NAMES environment variable, the problems
10430 # vanish in a puff of smoke.
10431 if test "X${COLLECT_NAMES+set}" != Xset; then
10433 export COLLECT_NAMES
10439 # We use sed instead of cat because bash on DJGPP gets confused if
10440 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10441 # text mode, it properly converts lines to CR/LF. This bash problem
10442 # is reportedly fixed, but why not run on old versions too?
10443 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10445 mv -f "$cfgfile" "$ofile" || \
10446 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10450 # If there is no Makefile yet, we rely on a make rule to execute
10451 # `config.status --recheck' to rerun these tests and create the
10452 # libtool script then.
10453 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10454 if test -f "$ltmain_in"; then
10455 test -f Makefile && make "$ltmain"
10461 ac_cpp='$CPP $CPPFLAGS'
10462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10469 # Check whether --with-tags was given.
10470 if test "${with_tags+set}" = set; then
10471 withval=$with_tags; tagnames="$withval"
10475 if test -f "$ltmain" && test -n "$tagnames"; then
10476 if test ! -f "${ofile}"; then
10477 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10478 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10481 if test -z "$LTCC"; then
10482 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10483 if test -z "$LTCC"; then
10484 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10485 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10488 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10491 if test -z "$LTCFLAGS"; then
10492 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10495 # Extract list of available tagged configurations in $ofile.
10496 # Note that this assumes the entire list is on one line.
10497 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10500 for tagname in $tagnames; do
10502 # Check whether tagname contains only valid characters
10503 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10505 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10506 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10507 { (exit 1); exit 1; }; }
10511 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10513 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10514 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10515 { (exit 1); exit 1; }; }
10518 # Update the list of available tags.
10519 if test -n "$tagname"; then
10520 echo appending configuration tag \"$tagname\" to $ofile
10524 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10525 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10526 (test "X$CXX" != "Xg++"))) ; then
10528 ac_cpp='$CXXCPP $CPPFLAGS'
10529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10536 archive_cmds_need_lc_CXX=no
10537 allow_undefined_flag_CXX=
10538 always_export_symbols_CXX=no
10539 archive_expsym_cmds_CXX=
10540 export_dynamic_flag_spec_CXX=
10541 hardcode_direct_CXX=no
10542 hardcode_libdir_flag_spec_CXX=
10543 hardcode_libdir_flag_spec_ld_CXX=
10544 hardcode_libdir_separator_CXX=
10545 hardcode_minus_L_CXX=no
10546 hardcode_shlibpath_var_CXX=unsupported
10547 hardcode_automatic_CXX=no
10549 module_expsym_cmds_CXX=
10550 link_all_deplibs_CXX=unknown
10551 old_archive_cmds_CXX=$old_archive_cmds
10552 no_undefined_flag_CXX=
10553 whole_archive_flag_spec_CXX=
10554 enable_shared_with_static_runtimes_CXX=no
10556 # Dependencies to place before and after the object being linked:
10557 predep_objects_CXX=
10558 postdep_objects_CXX=
10561 compiler_lib_search_path_CXX=
10563 # Source file extension for C++ test sources.
10566 # Object file extension for compiled C++ test sources.
10570 # Code to be used in simple compile tests
10571 lt_simple_compile_test_code="int some_variable = 0;\n"
10573 # Code to be used in simple link tests
10574 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10576 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10578 # If no C compiler was specified, use CC.
10581 # If no C compiler flags were specified, use CFLAGS.
10582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10584 # Allow CC to be a program name with arguments.
10588 # save warnings/boilerplate of simple test code
10589 ac_outfile=conftest.$ac_objext
10590 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10591 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10592 _lt_compiler_boilerplate=`cat conftest.err`
10595 ac_outfile=conftest.$ac_objext
10596 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10597 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10598 _lt_linker_boilerplate=`cat conftest.err`
10602 # Allow CC to be a program name with arguments.
10607 lt_save_with_gnu_ld=$with_gnu_ld
10608 lt_save_path_LD=$lt_cv_path_LD
10609 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10610 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10612 $as_unset lt_cv_prog_gnu_ld
10614 if test -n "${lt_cv_path_LDCXX+set}"; then
10615 lt_cv_path_LD=$lt_cv_path_LDCXX
10617 $as_unset lt_cv_path_LD
10619 test -z "${LDCXX+set}" || LD=$LDCXX
10623 for cc_temp in $compiler""; do
10625 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10626 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10631 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10634 # We don't want -fno-exception wen compiling C++ code, so set the
10635 # no_builtin_flag separately
10636 if test "$GXX" = yes; then
10637 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10639 lt_prog_compiler_no_builtin_flag_CXX=
10642 if test "$GXX" = yes; then
10643 # Set up default GNU C++ configuration
10646 # Check whether --with-gnu-ld was given.
10647 if test "${with_gnu_ld+set}" = set; then
10648 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10654 if test "$GCC" = yes; then
10655 # Check if gcc -print-prog-name=ld gives a path.
10656 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10657 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10660 # gcc leaves a trailing carriage return which upsets mingw
10661 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10663 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10666 # Accept absolute paths.
10668 re_direlt='/[^/][^/]*/\.\./'
10669 # Canonicalize the pathname of ld
10670 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10671 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10672 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10674 test -z "$LD" && LD="$ac_prog"
10677 # If it fails, then pretend we aren't using GCC.
10681 # If it is relative, then search for the first ld in PATH.
10682 with_gnu_ld=unknown
10685 elif test "$with_gnu_ld" = yes; then
10686 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10687 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10689 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10690 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10692 if test "${lt_cv_path_LD+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 if test -z "$LD"; then
10696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10697 for ac_dir in $PATH; do
10699 test -z "$ac_dir" && ac_dir=.
10700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10701 lt_cv_path_LD="$ac_dir/$ac_prog"
10702 # Check to see if the program is GNU ld. I'd rather use --version,
10703 # but apparently some variants of GNU ld only accept -v.
10704 # Break only if it was the GNU/non-GNU ld that we prefer.
10705 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10706 *GNU* | *'with BFD'*)
10707 test "$with_gnu_ld" != no && break
10710 test "$with_gnu_ld" != yes && break
10717 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10721 LD="$lt_cv_path_LD"
10722 if test -n "$LD"; then
10723 { echo "$as_me:$LINENO: result: $LD" >&5
10724 echo "${ECHO_T}$LD" >&6; }
10726 { echo "$as_me:$LINENO: result: no" >&5
10727 echo "${ECHO_T}no" >&6; }
10729 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10730 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10731 { (exit 1); exit 1; }; }
10732 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10733 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10734 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10738 case `$LD -v 2>&1 </dev/null` in
10739 *GNU* | *'with BFD'*)
10740 lt_cv_prog_gnu_ld=yes
10743 lt_cv_prog_gnu_ld=no
10747 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10748 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10749 with_gnu_ld=$lt_cv_prog_gnu_ld
10753 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10754 # archiving commands below assume that GNU ld is being used.
10755 if test "$with_gnu_ld" = yes; then
10756 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10757 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'
10759 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10762 # If archive_cmds runs LD, not CC, wlarc should be empty
10763 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10764 # investigate it a little bit more. (MM)
10767 # ancient GNU ld didn't support --whole-archive et. al.
10768 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10769 grep 'no-whole-archive' > /dev/null; then
10770 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10772 whole_archive_flag_spec_CXX=
10778 # A generic and very simple default shared library creation
10779 # command for GNU C++ for the case where it uses the native
10780 # linker, instead of GNU ld. If possible, this setting should
10781 # overridden to take advantage of the native linker features on
10782 # the platform it is being used on.
10783 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10786 # Commands to make compiler produce verbose output that lists
10787 # what "hidden" libraries, object files and flags are used when
10788 # linking a shared library.
10789 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10797 # PORTME: fill in a description of your system's C++ link characteristics
10798 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10803 # FIXME: insert proper C++ library support
10807 if test "$host_cpu" = ia64; then
10808 # On IA64, the linker does run time linking by default, so we don't
10809 # have to do anything special.
10810 aix_use_runtimelinking=no
10811 exp_sym_flag='-Bexport'
10814 aix_use_runtimelinking=no
10816 # Test if we are trying to use run time linking or normal
10817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10818 # need to do runtime linking.
10819 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10820 for ld_flag in $LDFLAGS; do
10823 aix_use_runtimelinking=yes
10831 exp_sym_flag='-bexport'
10832 no_entry_flag='-bnoentry'
10835 # When large executables or shared objects are built, AIX ld can
10836 # have problems creating the table of contents. If linking a library
10837 # or program results in "error TOC overflow" add -mminimal-toc to
10838 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10839 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10841 archive_cmds_CXX=''
10842 hardcode_direct_CXX=yes
10843 hardcode_libdir_separator_CXX=':'
10844 link_all_deplibs_CXX=yes
10846 if test "$GXX" = yes; then
10847 case $host_os in aix4.[012]|aix4.[012].*)
10848 # We only want to do this on AIX 4.2 and lower, the check
10849 # below for broken collect2 doesn't work under 4.3+
10850 collect2name=`${CC} -print-prog-name=collect2`
10851 if test -f "$collect2name" && \
10852 strings "$collect2name" | grep resolve_lib_name >/dev/null
10854 # We have reworked collect2
10855 hardcode_direct_CXX=yes
10857 # We have old collect2
10858 hardcode_direct_CXX=unsupported
10859 # It fails to find uninstalled libraries when the uninstalled
10860 # path is not listed in the libpath. Setting hardcode_minus_L
10861 # to unsupported forces relinking
10862 hardcode_minus_L_CXX=yes
10863 hardcode_libdir_flag_spec_CXX='-L$libdir'
10864 hardcode_libdir_separator_CXX=
10868 shared_flag='-shared'
10869 if test "$aix_use_runtimelinking" = yes; then
10870 shared_flag="$shared_flag "'${wl}-G'
10874 if test "$host_cpu" = ia64; then
10875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10876 # chokes on -Wl,-G. The following line is correct:
10879 if test "$aix_use_runtimelinking" = yes; then
10880 shared_flag='${wl}-G'
10882 shared_flag='${wl}-bM:SRE'
10887 # It seems that -bexpall does not export symbols beginning with
10888 # underscore (_), so it is better to generate a list of symbols to export.
10889 always_export_symbols_CXX=yes
10890 if test "$aix_use_runtimelinking" = yes; then
10891 # Warning - without using the other runtime loading flags (-brtl),
10892 # -berok will link without error, but may produce a broken library.
10893 allow_undefined_flag_CXX='-berok'
10894 # Determine the default libpath from the value encoded in an empty executable.
10895 cat >conftest.$ac_ext <<_ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (ac_try="$ac_link"
10912 case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_link") 2>conftest.er1
10919 grep -v '^ *+' conftest.er1 >conftest.err
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_cxx_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest$ac_exeext &&
10927 $as_test_x conftest$ac_exeext; then
10929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10931 # Check for a 64-bit object if we didn't find anything.
10932 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; }
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10942 conftest$ac_exeext conftest.$ac_ext
10943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10945 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10947 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10949 if test "$host_cpu" = ia64; then
10950 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10951 allow_undefined_flag_CXX="-z nodefs"
10952 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10954 # Determine the default libpath from the value encoded in an empty executable.
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1 >conftest.err
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_cxx_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest$ac_exeext &&
10987 $as_test_x conftest$ac_exeext; then
10989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10991 # Check for a 64-bit object if we didn't find anything.
10992 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; }
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
11001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11002 conftest$ac_exeext conftest.$ac_ext
11003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11005 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11006 # Warning - without using the other run time loading flags,
11007 # -berok will link without error, but may produce a broken library.
11008 no_undefined_flag_CXX=' ${wl}-bernotok'
11009 allow_undefined_flag_CXX=' ${wl}-berok'
11010 # Exported symbols can be pulled into shared objects from archives
11011 whole_archive_flag_spec_CXX='$convenience'
11012 archive_cmds_need_lc_CXX=yes
11013 # This is similar to how AIX traditionally builds its shared libraries.
11014 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11021 allow_undefined_flag_CXX=unsupported
11022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11023 # support --undefined. This deserves some investigation. FIXME
11024 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11031 case $cc_basename in
11033 # FIXME: insert proper C++ library support
11039 cygwin* | mingw* | pw32*)
11040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11041 # as there is no search path for DLLs.
11042 hardcode_libdir_flag_spec_CXX='-L$libdir'
11043 allow_undefined_flag_CXX=unsupported
11044 always_export_symbols_CXX=no
11045 enable_shared_with_static_runtimes_CXX=yes
11047 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11048 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11049 # If the export-symbols file already is a .def file (1st line
11050 # is EXPORTS), use it as is; otherwise, prepend...
11051 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11052 cp $export_symbols $output_objdir/$soname.def;
11054 echo EXPORTS > $output_objdir/$soname.def;
11055 cat $export_symbols >> $output_objdir/$soname.def;
11057 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11062 darwin* | rhapsody*)
11064 rhapsody* | darwin1.[012])
11065 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11068 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11069 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11071 case ${MACOSX_DEPLOYMENT_TARGET} in
11073 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11076 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11082 archive_cmds_need_lc_CXX=no
11083 hardcode_direct_CXX=no
11084 hardcode_automatic_CXX=yes
11085 hardcode_shlibpath_var_CXX=unsupported
11086 whole_archive_flag_spec_CXX=''
11087 link_all_deplibs_CXX=yes
11089 if test "$GXX" = yes ; then
11090 lt_int_apple_cc_single_mod=no
11091 output_verbose_link_cmd='echo'
11092 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11093 lt_int_apple_cc_single_mod=yes
11095 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11096 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11098 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11100 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11101 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11102 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11103 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}'
11105 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11107 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}'
11109 case $cc_basename in
11111 output_verbose_link_cmd='echo'
11112 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11113 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11115 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11116 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}'
11126 case $cc_basename in
11128 # FIXME: insert proper C++ library support
11132 # Green Hills C++ Compiler
11133 # FIXME: insert proper C++ library support
11137 # FIXME: insert proper C++ library support
11143 # C++ shared libraries reported to be fairly broken before switch to ELF
11147 archive_cmds_need_lc_CXX=no
11149 freebsd* | dragonfly*)
11150 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11157 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11158 hardcode_libdir_separator_CXX=:
11159 export_dynamic_flag_spec_CXX='${wl}-E'
11160 hardcode_direct_CXX=yes
11161 hardcode_minus_L_CXX=yes # Not in the search PATH,
11162 # but as the default
11163 # location of the library.
11165 case $cc_basename in
11167 # FIXME: insert proper C++ library support
11171 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'
11172 # Commands to make compiler produce verbose output that lists
11173 # what "hidden" libraries, object files and flags are used when
11174 # linking a shared library.
11176 # There doesn't appear to be a way to prevent this compiler from
11177 # explicitly linking system object files so we need to strip them
11178 # from the output so that they don't get included in the library
11180 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'
11183 if test "$GXX" = yes; then
11184 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'
11186 # FIXME: insert proper C++ library support
11193 if test $with_gnu_ld = no; then
11194 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11195 hardcode_libdir_separator_CXX=:
11199 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11202 export_dynamic_flag_spec_CXX='${wl}-E'
11208 hardcode_direct_CXX=no
11209 hardcode_shlibpath_var_CXX=no
11212 hardcode_direct_CXX=yes
11213 hardcode_minus_L_CXX=yes # Not in the search PATH,
11214 # but as the default
11215 # location of the library.
11219 case $cc_basename in
11221 # FIXME: insert proper C++ library support
11227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11230 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11233 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11236 # Commands to make compiler produce verbose output that lists
11237 # what "hidden" libraries, object files and flags are used when
11238 # linking a shared library.
11240 # There doesn't appear to be a way to prevent this compiler from
11241 # explicitly linking system object files so we need to strip them
11242 # from the output so that they don't get included in the library
11244 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'
11247 if test "$GXX" = yes; then
11248 if test $with_gnu_ld = no; then
11251 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11254 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11257 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'
11262 # FIXME: insert proper C++ library support
11269 hardcode_direct_CXX=no
11270 hardcode_shlibpath_var_CXX=no
11271 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11272 export_dynamic_flag_spec_CXX='${wl}-E'
11273 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11274 # Instead, shared libraries are loaded at an image base (0x10000000 by
11275 # default) and relocated if they conflict, which is a slow very memory
11276 # consuming and fragmenting process. To avoid this, we pick a random,
11277 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11278 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11279 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11280 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11283 case $cc_basename in
11286 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11288 # Archives containing C++ object files must be created using
11289 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11290 # necessary to make sure instantiated templates are included
11292 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11295 if test "$GXX" = yes; then
11296 if test "$with_gnu_ld" = no; then
11297 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11299 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'
11302 link_all_deplibs_CXX=yes
11305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11306 hardcode_libdir_separator_CXX=:
11308 linux* | k*bsd*-gnu)
11309 case $cc_basename in
11311 # Kuck and Associates, Inc. (KAI) C++ Compiler
11313 # KCC will only create a shared library if the output file
11314 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11315 # to its proper name (with version) after linking.
11316 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'
11317 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'
11318 # Commands to make compiler produce verbose output that lists
11319 # what "hidden" libraries, object files and flags are used when
11320 # linking a shared library.
11322 # There doesn't appear to be a way to prevent this compiler from
11323 # explicitly linking system object files so we need to strip them
11324 # from the output so that they don't get included in the library
11326 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'
11328 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11331 # Archives containing C++ object files must be created using
11332 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11333 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11338 # version 8.0 and above of icpc choke on multiply defined symbols
11339 # if we add $predep_objects and $postdep_objects, however 7.1 and
11340 # earlier do not add the objects themselves.
11341 case `$CC -V 2>&1` in
11343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11344 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'
11346 *) # Version 8.0 or newer
11349 ia64*) tmp_idyn=' -i_dynamic';;
11351 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11352 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11355 archive_cmds_need_lc_CXX=no
11356 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11357 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11358 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11361 # Portland Group C++ compiler
11362 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11363 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11365 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11367 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11371 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11372 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'
11374 runpath_var=LD_RUN_PATH
11375 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11376 hardcode_libdir_separator_CXX=:
11378 # Commands to make compiler produce verbose output that lists
11379 # what "hidden" libraries, object files and flags are used when
11380 # linking a shared library.
11382 # There doesn't appear to be a way to prevent this compiler from
11383 # explicitly linking system object files so we need to strip them
11384 # from the output so that they don't get included in the library
11386 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'
11391 # FIXME: insert proper C++ library support
11395 # FIXME: insert proper C++ library support
11399 case $cc_basename in
11401 # FIXME: insert proper C++ library support
11405 # FIXME: insert proper C++ library support
11410 netbsd* | netbsdelf*-gnu)
11411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11412 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11414 hardcode_libdir_flag_spec_CXX='-R$libdir'
11415 hardcode_direct_CXX=yes
11416 hardcode_shlibpath_var_CXX=no
11418 # Workaround some broken pre-1.5 toolchains
11419 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11422 # C++ shared libraries are fairly broken
11426 hardcode_direct_CXX=yes
11427 hardcode_shlibpath_var_CXX=no
11428 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11431 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11432 export_dynamic_flag_spec_CXX='${wl}-E'
11433 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11435 output_verbose_link_cmd='echo'
11438 case $cc_basename in
11440 # Kuck and Associates, Inc. (KAI) C++ Compiler
11442 # KCC will only create a shared library if the output file
11443 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11444 # to its proper name (with version) after linking.
11445 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'
11447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11448 hardcode_libdir_separator_CXX=:
11450 # Archives containing C++ object files must be created using
11451 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11452 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11456 # Rational C++ 2.4.1
11457 # FIXME: insert proper C++ library support
11461 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11462 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11465 hardcode_libdir_separator_CXX=:
11467 # Commands to make compiler produce verbose output that lists
11468 # what "hidden" libraries, object files and flags are used when
11469 # linking a shared library.
11471 # There doesn't appear to be a way to prevent this compiler from
11472 # explicitly linking system object files so we need to strip them
11473 # from the output so that they don't get included in the library
11475 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'
11478 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11479 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11480 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11483 hardcode_libdir_separator_CXX=:
11485 # Commands to make compiler produce verbose output that lists
11486 # what "hidden" libraries, object files and flags are used when
11487 # linking a shared library.
11488 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11491 # FIXME: insert proper C++ library support
11498 case $cc_basename in
11500 # Kuck and Associates, Inc. (KAI) C++ Compiler
11502 # KCC will only create a shared library if the output file
11503 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11504 # to its proper name (with version) after linking.
11505 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'
11507 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11508 hardcode_libdir_separator_CXX=:
11510 # Archives containing C++ object files must be created using
11511 # the KAI C++ compiler.
11512 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11515 # Rational C++ 2.4.1
11516 # FIXME: insert proper C++ library support
11520 allow_undefined_flag_CXX=' -expect_unresolved \*'
11521 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11522 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11523 echo "-hidden">> $lib.exp~
11524 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11527 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11528 hardcode_libdir_separator_CXX=:
11530 # Commands to make compiler produce verbose output that lists
11531 # what "hidden" libraries, object files and flags are used when
11532 # linking a shared library.
11534 # There doesn't appear to be a way to prevent this compiler from
11535 # explicitly linking system object files so we need to strip them
11536 # from the output so that they don't get included in the library
11538 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'
11541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11542 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11543 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11545 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11546 hardcode_libdir_separator_CXX=:
11548 # Commands to make compiler produce verbose output that lists
11549 # what "hidden" libraries, object files and flags are used when
11550 # linking a shared library.
11551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11554 # FIXME: insert proper C++ library support
11561 # FIXME: insert proper C++ library support
11565 case $cc_basename in
11568 # FIXME: insert proper C++ library support
11573 # FIXME: insert proper C++ library support
11577 # FIXME: insert proper C++ library support
11583 case $cc_basename in
11585 # Sun C++ 4.2, 5.x and Centerline C++
11586 archive_cmds_need_lc_CXX=yes
11587 no_undefined_flag_CXX=' -zdefs'
11588 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11589 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11590 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11592 hardcode_libdir_flag_spec_CXX='-R$libdir'
11593 hardcode_shlibpath_var_CXX=no
11595 solaris2.[0-5] | solaris2.[0-5].*) ;;
11597 # The C++ compiler is used as linker so we must use $wl
11598 # flag to pass the commands to the underlying system
11599 # linker. We must also pass each convience library through
11600 # to the system linker between allextract/defaultextract.
11601 # The C++ compiler will combine linker options so we
11602 # cannot just pass the convience library names through
11604 # Supported since Solaris 2.6 (maybe 2.5.1?)
11605 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11608 link_all_deplibs_CXX=yes
11610 output_verbose_link_cmd='echo'
11612 # Archives containing C++ object files must be created using
11613 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11614 # necessary to make sure instantiated templates are included
11616 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11619 # Green Hills C++ Compiler
11620 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11622 # The C++ compiler must be used to create the archive.
11623 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11626 # GNU C++ compiler with Solaris linker
11627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11628 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11629 if $CC --version | grep -v '^2\.7' > /dev/null; then
11630 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11631 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11632 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11634 # Commands to make compiler produce verbose output that lists
11635 # what "hidden" libraries, object files and flags are used when
11636 # linking a shared library.
11637 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11639 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11641 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11642 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11643 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11645 # Commands to make compiler produce verbose output that lists
11646 # what "hidden" libraries, object files and flags are used when
11647 # linking a shared library.
11648 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11651 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11657 no_undefined_flag_CXX='${wl}-z,text'
11658 archive_cmds_need_lc_CXX=no
11659 hardcode_shlibpath_var_CXX=no
11660 runpath_var='LD_RUN_PATH'
11662 case $cc_basename in
11664 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11665 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11668 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11673 sysv5* | sco3.2v5* | sco5v6*)
11674 # Note: We can NOT use -z defs as we might desire, because we do not
11675 # link with -lc, and that would cause any symbols used from libc to
11676 # always be unresolved, which means just about no library would
11677 # ever link correctly. If we're not using GNU ld we use -z text
11678 # though, which does catch some bad symbols but isn't as heavy-handed
11680 # For security reasons, it is highly recommended that you always
11681 # use absolute paths for naming shared libraries, and exclude the
11682 # DT_RUNPATH tag from executables and libraries. But doing so
11683 # requires that you compile everything twice, which is a pain.
11684 # So that behaviour is only enabled if SCOABSPATH is set to a
11685 # non-empty value in the environment. Most likely only useful for
11686 # creating official distributions of packages.
11687 # This is a hack until libtool officially supports absolute path
11688 # names for shared libraries.
11689 no_undefined_flag_CXX='${wl}-z,text'
11690 allow_undefined_flag_CXX='${wl}-z,nodefs'
11691 archive_cmds_need_lc_CXX=no
11692 hardcode_shlibpath_var_CXX=no
11693 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11694 hardcode_libdir_separator_CXX=':'
11695 link_all_deplibs_CXX=yes
11696 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11697 runpath_var='LD_RUN_PATH'
11699 case $cc_basename in
11701 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11702 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11705 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11706 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11711 case $cc_basename in
11713 # NonStop-UX NCC 3.20
11714 # FIXME: insert proper C++ library support
11718 # FIXME: insert proper C++ library support
11724 # FIXME: insert proper C++ library support
11728 # FIXME: insert proper C++ library support
11732 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11733 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11734 test "$ld_shlibs_CXX" = no && can_build_shared=no
11740 cat > conftest.$ac_ext <<EOF
11744 Foo (void) { a = 0; }
11750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751 (eval $ac_compile) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; then
11755 # Parse the compiler output and extract the necessary
11756 # objects, libraries and library flags.
11758 # Sentinel used to keep track of whether or not we are before
11759 # the conftest object file.
11760 pre_test_object_deps_done=no
11762 # The `*' in the case matches for architectures that use `case' in
11763 # $output_verbose_cmd can trigger glob expansion during the loop
11764 # eval without this substitution.
11765 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11767 for p in `eval $output_verbose_link_cmd`; do
11771 # Some compilers place space between "-{L,R}" and the path.
11772 # Remove the space.
11773 if test $p = "-L" \
11774 || test $p = "-R"; then
11781 if test "$pre_test_object_deps_done" = no; then
11784 # Internal compiler library paths should come after those
11785 # provided the user. The postdeps already come after the
11786 # user supplied libs so there is no need to process them.
11787 if test -z "$compiler_lib_search_path_CXX"; then
11788 compiler_lib_search_path_CXX="${prev}${p}"
11790 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11793 # The "-l" case would never come before the object being
11794 # linked, so don't bother handling this case.
11797 if test -z "$postdeps_CXX"; then
11798 postdeps_CXX="${prev}${p}"
11800 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11806 # This assumes that the test object file only shows up
11807 # once in the compiler output.
11808 if test "$p" = "conftest.$objext"; then
11809 pre_test_object_deps_done=yes
11813 if test "$pre_test_object_deps_done" = no; then
11814 if test -z "$predep_objects_CXX"; then
11815 predep_objects_CXX="$p"
11817 predep_objects_CXX="$predep_objects_CXX $p"
11820 if test -z "$postdep_objects_CXX"; then
11821 postdep_objects_CXX="$p"
11823 postdep_objects_CXX="$postdep_objects_CXX $p"
11828 *) ;; # Ignore the rest.
11836 echo "libtool.m4: error: problem compiling CXX test program"
11839 $rm -f confest.$objext
11841 # PORTME: override above test on systems where it is broken
11844 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11845 # hack all around it, let's just trust "g++" to DTRT.
11846 predep_objects_CXX=
11847 postdep_objects_CXX=
11852 case $cc_basename in
11854 # Adding this requires a known-good setup of shared libraries for
11855 # Sun compiler versions before 5.6, else PIC objects from an old
11856 # archive will be linked into the output, leading to subtle bugs.
11857 postdeps_CXX='-lCstd -lCrun'
11864 case " $postdeps_CXX " in
11865 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11868 lt_prog_compiler_wl_CXX=
11869 lt_prog_compiler_pic_CXX=
11870 lt_prog_compiler_static_CXX=
11872 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11873 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11875 # C++ specific cases for pic, static, wl, etc.
11876 if test "$GXX" = yes; then
11877 lt_prog_compiler_wl_CXX='-Wl,'
11878 lt_prog_compiler_static_CXX='-static'
11882 # All AIX code is PIC.
11883 if test "$host_cpu" = ia64; then
11884 # AIX 5 now supports IA64 processor
11885 lt_prog_compiler_static_CXX='-Bstatic'
11889 # FIXME: we need at least 68020 code to build shared libraries, but
11890 # adding the `-m68020' flag to GCC prevents building anything better,
11892 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11894 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11895 # PIC is the default for these OSes.
11897 mingw* | os2* | pw32*)
11898 # This hack is so that the source file can tell whether it is being
11899 # built for inclusion in a dll (and should export symbols for example).
11900 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11902 darwin* | rhapsody*)
11903 # PIC is the default on this platform
11904 # Common symbols not allowed in MH_DYLIB files
11905 lt_prog_compiler_pic_CXX='-fno-common'
11908 # DJGPP does not support shared libraries at all
11909 lt_prog_compiler_pic_CXX=
11912 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11913 # Instead, we relocate shared libraries at runtime.
11916 if test -d /usr/nec; then
11917 lt_prog_compiler_pic_CXX=-Kconform_pic
11921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11922 # not for PA HP-UX.
11927 lt_prog_compiler_pic_CXX='-fPIC'
11932 lt_prog_compiler_pic_CXX='-fPIC'
11938 # All AIX code is PIC.
11939 if test "$host_cpu" = ia64; then
11940 # AIX 5 now supports IA64 processor
11941 lt_prog_compiler_static_CXX='-Bstatic'
11943 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11947 case $cc_basename in
11949 # Green Hills C++ Compiler
11950 # _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"
11955 # PIC is the default on this platform
11956 # Common symbols not allowed in MH_DYLIB files
11957 case $cc_basename in
11959 lt_prog_compiler_pic_CXX='-qnocommon'
11960 lt_prog_compiler_wl_CXX='-Wl,'
11965 case $cc_basename in
11967 lt_prog_compiler_pic_CXX='-KPIC'
11970 # Green Hills C++ Compiler
11971 lt_prog_compiler_pic_CXX='-pic'
11977 freebsd* | dragonfly*)
11978 # FreeBSD uses GNU C++
11980 hpux9* | hpux10* | hpux11*)
11981 case $cc_basename in
11983 lt_prog_compiler_wl_CXX='-Wl,'
11984 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11985 if test "$host_cpu" != ia64; then
11986 lt_prog_compiler_pic_CXX='+Z'
11990 lt_prog_compiler_wl_CXX='-Wl,'
11991 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11997 lt_prog_compiler_pic_CXX='+Z'
12006 # This is c89, which is MS Visual C++ (no shared libs)
12007 # Anyone wants to do a port?
12009 irix5* | irix6* | nonstopux*)
12010 case $cc_basename in
12012 lt_prog_compiler_wl_CXX='-Wl,'
12013 lt_prog_compiler_static_CXX='-non_shared'
12014 # CC pic flag -KPIC is the default.
12020 linux* | k*bsd*-gnu)
12021 case $cc_basename in
12024 lt_prog_compiler_wl_CXX='--backend -Wl,'
12025 lt_prog_compiler_pic_CXX='-fPIC'
12029 lt_prog_compiler_wl_CXX='-Wl,'
12030 lt_prog_compiler_pic_CXX='-KPIC'
12031 lt_prog_compiler_static_CXX='-static'
12034 # Portland Group C++ compiler.
12035 lt_prog_compiler_wl_CXX='-Wl,'
12036 lt_prog_compiler_pic_CXX='-fpic'
12037 lt_prog_compiler_static_CXX='-Bstatic'
12041 # Make sure the PIC flag is empty. It appears that all Alpha
12042 # Linux and Compaq Tru64 Unix objects are PIC.
12043 lt_prog_compiler_pic_CXX=
12044 lt_prog_compiler_static_CXX='-non_shared'
12055 case $cc_basename in
12057 lt_prog_compiler_pic_CXX='-W c,exportall'
12063 netbsd* | netbsdelf*-gnu)
12065 osf3* | osf4* | osf5*)
12066 case $cc_basename in
12068 lt_prog_compiler_wl_CXX='--backend -Wl,'
12071 # Rational C++ 2.4.1
12072 lt_prog_compiler_pic_CXX='-pic'
12075 # Digital/Compaq C++
12076 lt_prog_compiler_wl_CXX='-Wl,'
12077 # Make sure the PIC flag is empty. It appears that all Alpha
12078 # Linux and Compaq Tru64 Unix objects are PIC.
12079 lt_prog_compiler_pic_CXX=
12080 lt_prog_compiler_static_CXX='-non_shared'
12089 case $cc_basename in
12091 # Sun C++ 4.2, 5.x and Centerline C++
12092 lt_prog_compiler_pic_CXX='-KPIC'
12093 lt_prog_compiler_static_CXX='-Bstatic'
12094 lt_prog_compiler_wl_CXX='-Qoption ld '
12097 # Green Hills C++ Compiler
12098 lt_prog_compiler_pic_CXX='-PIC'
12105 case $cc_basename in
12108 lt_prog_compiler_pic_CXX='-pic'
12109 lt_prog_compiler_static_CXX='-Bstatic'
12113 lt_prog_compiler_pic_CXX='-pic'
12120 case $cc_basename in
12122 # NonStop-UX NCC 3.20
12123 lt_prog_compiler_pic_CXX='-KPIC'
12129 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12130 case $cc_basename in
12132 lt_prog_compiler_wl_CXX='-Wl,'
12133 lt_prog_compiler_pic_CXX='-KPIC'
12134 lt_prog_compiler_static_CXX='-Bstatic'
12141 lt_prog_compiler_can_build_shared_CXX=no
12146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12147 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12150 # Check to make sure the PIC flag actually works.
12152 if test -n "$lt_prog_compiler_pic_CXX"; then
12154 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12155 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12156 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 lt_prog_compiler_pic_works_CXX=no
12160 ac_outfile=conftest.$ac_objext
12161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12162 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12163 # Insert the option either (1) after the last *FLAGS variable, or
12164 # (2) before a word containing "conftest.", or (3) at the end.
12165 # Note that $ac_compile itself does not contain backslashes and begins
12166 # with a dollar sign (not a hyphen), so the echo should work correctly.
12167 # The option is referenced via a variable to avoid confusing sed.
12168 lt_compile=`echo "$ac_compile" | $SED \
12169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12171 -e 's:$: $lt_compiler_flag:'`
12172 (eval echo "\"\$as_me:12172: $lt_compile\"" >&5)
12173 (eval "$lt_compile" 2>conftest.err)
12175 cat conftest.err >&5
12176 echo "$as_me:12176: \$? = $ac_status" >&5
12177 if (exit $ac_status) && test -s "$ac_outfile"; then
12178 # The compiler can only warn and ignore the option if not recognized
12179 # So say no if there are warnings other than the usual output.
12180 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12183 lt_prog_compiler_pic_works_CXX=yes
12189 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12190 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12192 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12193 case $lt_prog_compiler_pic_CXX in
12195 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12198 lt_prog_compiler_pic_CXX=
12199 lt_prog_compiler_can_build_shared_CXX=no
12204 # For platforms which do not support PIC, -DPIC is meaningless:
12206 lt_prog_compiler_pic_CXX=
12209 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12214 # Check to make sure the static flag actually works.
12216 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12217 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12218 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12219 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 lt_prog_compiler_static_works_CXX=no
12223 save_LDFLAGS="$LDFLAGS"
12224 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12225 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12227 # The linker can only warn and ignore the option if not recognized
12228 # So say no if there are warnings
12229 if test -s conftest.err; then
12230 # Append any errors to the config.log.
12231 cat conftest.err 1>&5
12232 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12234 if diff conftest.exp conftest.er2 >/dev/null; then
12235 lt_prog_compiler_static_works_CXX=yes
12238 lt_prog_compiler_static_works_CXX=yes
12242 LDFLAGS="$save_LDFLAGS"
12245 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12246 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12248 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12251 lt_prog_compiler_static_CXX=
12255 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12256 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12257 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 lt_cv_prog_compiler_c_o_CXX=no
12261 $rm -r conftest 2>/dev/null
12265 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12267 lt_compiler_flag="-o out/conftest2.$ac_objext"
12268 # Insert the option either (1) after the last *FLAGS variable, or
12269 # (2) before a word containing "conftest.", or (3) at the end.
12270 # Note that $ac_compile itself does not contain backslashes and begins
12271 # with a dollar sign (not a hyphen), so the echo should work correctly.
12272 lt_compile=`echo "$ac_compile" | $SED \
12273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12275 -e 's:$: $lt_compiler_flag:'`
12276 (eval echo "\"\$as_me:12276: $lt_compile\"" >&5)
12277 (eval "$lt_compile" 2>out/conftest.err)
12279 cat out/conftest.err >&5
12280 echo "$as_me:12280: \$? = $ac_status" >&5
12281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12283 # The compiler can only warn and ignore the option if not recognized
12284 # So say no if there are warnings
12285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12288 lt_cv_prog_compiler_c_o_CXX=yes
12293 # SGI C++ compiler will create directory out/ii_files/ for
12294 # template instantiation
12295 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12296 $rm out/* && rmdir out
12302 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12303 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12306 hard_links="nottested"
12307 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12308 # do not overwrite the value of need_locks provided by the user
12309 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12310 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12315 ln conftest.a conftest.b 2>&5 || hard_links=no
12316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12317 { echo "$as_me:$LINENO: result: $hard_links" >&5
12318 echo "${ECHO_T}$hard_links" >&6; }
12319 if test "$hard_links" = no; then
12320 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12321 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12328 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12331 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12334 # If we're using GNU nm, then we don't want the "-C" option.
12335 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12336 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12337 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'
12339 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'
12343 export_symbols_cmds_CXX="$ltdll_cmds"
12346 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12348 linux* | k*bsd*-gnu)
12349 link_all_deplibs_CXX=no
12352 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12356 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12357 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12358 test "$ld_shlibs_CXX" = no && can_build_shared=no
12361 # Do we need to explicitly link libc?
12363 case "x$archive_cmds_need_lc_CXX" in
12365 # Assume -lc should be added
12366 archive_cmds_need_lc_CXX=yes
12368 if test "$enable_shared" = yes && test "$GCC" = yes; then
12369 case $archive_cmds_CXX in
12371 # FIXME: we may have to deal with multi-command sequences.
12374 # Test whether the compiler implicitly links with -lc since on some
12375 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12376 # to ld, don't add -lc before -lgcc.
12377 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12378 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } 2>conftest.err; then
12389 libobjs=conftest.$ac_objext
12391 wl=$lt_prog_compiler_wl_CXX
12392 pic_flag=$lt_prog_compiler_pic_CXX
12398 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12399 allow_undefined_flag_CXX=
12400 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12401 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }
12406 archive_cmds_need_lc_CXX=no
12408 archive_cmds_need_lc_CXX=yes
12410 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12412 cat conftest.err 1>&5
12415 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12416 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12423 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12424 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12425 library_names_spec=
12426 libname_spec='lib$name'
12430 postuninstall_cmds=
12434 shlibpath_overrides_runpath=unknown
12436 dynamic_linker="$host_os ld.so"
12437 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12438 if test "$GCC" = yes; then
12439 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12440 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12441 # if the path contains ";" then we assume it to be the separator
12442 # otherwise default to the standard path separator (i.e. ":") - it is
12443 # assumed that no part of a normal pathname contains ";" but that should
12444 # okay in the real world where ";" in dirpaths is itself problematic.
12445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12452 need_lib_prefix=unknown
12453 hardcode_into_libs=no
12455 # when you set need_version to no, make sure it does not cause -set_version
12456 # flags to be left without arguments
12457 need_version=unknown
12462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12463 shlibpath_var=LIBPATH
12465 # AIX 3 has no versioning support, so we append a major version to the name.
12466 soname_spec='${libname}${release}${shared_ext}$major'
12473 hardcode_into_libs=yes
12474 if test "$host_cpu" = ia64; then
12475 # AIX 5 supports IA64
12476 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12477 shlibpath_var=LD_LIBRARY_PATH
12479 # With GCC up to 2.95.x, collect2 would create an import file
12480 # for dependence libraries. The import file would start with
12481 # the line `#! .'. This would cause the generated library to
12482 # depend on `.', always an invalid library. This was fixed in
12483 # development snapshots of GCC prior to 3.0.
12485 aix4 | aix4.[01] | aix4.[01].*)
12486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12488 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12491 can_build_shared=no
12495 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12496 # soname into executable. Probably we can add versioning support to
12497 # collect2, so additional links can be useful in future.
12498 if test "$aix_use_runtimelinking" = yes; then
12499 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12500 # instead of lib<name>.a to let people know that these are not
12501 # typical AIX shared libraries.
12502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12504 # We preserve .a as extension for shared libraries through AIX4.2
12505 # and later when we are not doing run time linking.
12506 library_names_spec='${libname}${release}.a $libname.a'
12507 soname_spec='${libname}${release}${shared_ext}$major'
12509 shlibpath_var=LIBPATH
12514 library_names_spec='$libname.ixlibrary $libname.a'
12515 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12516 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'
12520 library_names_spec='${libname}${shared_ext}'
12521 dynamic_linker="$host_os ld.so"
12522 shlibpath_var=LIBRARY_PATH
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12529 soname_spec='${libname}${release}${shared_ext}$major'
12530 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12531 shlibpath_var=LD_LIBRARY_PATH
12532 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12533 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12534 # the default ld.so.conf also contains /usr/contrib/lib and
12535 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12536 # libtool to hard-code these into programs
12539 cygwin* | mingw* | pw32*)
12540 version_type=windows
12545 case $GCC,$host_os in
12546 yes,cygwin* | yes,mingw* | yes,pw32*)
12547 library_names_spec='$libname.dll.a'
12548 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12549 postinstall_cmds='base_file=`basename \${file}`~
12550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12551 dldir=$destdir/`dirname \$dlpath`~
12552 test -d \$dldir || mkdir -p \$dldir~
12553 $install_prog $dir/$dlname \$dldir/$dlname~
12554 chmod a+x \$dldir/$dlname'
12555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12556 dlpath=$dir/\$dldll~
12558 shlibpath_overrides_runpath=yes
12562 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12563 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12564 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12567 # MinGW DLLs use traditional 'lib' prefix
12568 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12569 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12570 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12571 # It is most probably a Windows format PATH printed by
12572 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12573 # path with ; separators, and with drive letters. We can handle the
12574 # drive letters (cygwin fileutils understands them), so leave them,
12575 # especially as we might pass files found there to a mingw objdump,
12576 # which wouldn't understand a cygwinified path. Ahh.
12577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12583 # pw32 DLLs use 'pw' prefix rather than 'lib'
12584 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12590 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12593 dynamic_linker='Win32 ld.exe'
12594 # FIXME: first we should search . and the directory the executable is in
12598 darwin* | rhapsody*)
12599 dynamic_linker="$host_os dyld"
12600 version_type=darwin
12603 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12604 soname_spec='${libname}${release}${major}$shared_ext'
12605 shlibpath_overrides_runpath=yes
12606 shlibpath_var=DYLD_LIBRARY_PATH
12607 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12608 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12609 if test "$GCC" = yes; then
12610 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"`
12612 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12614 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 shlibpath_var=LD_LIBRARY_PATH
12630 freebsd* | dragonfly*)
12631 # DragonFly does not have aout. When/if they implement a new
12632 # versioning mechanism, adjust this.
12633 if test -x /usr/bin/objformat; then
12634 objformat=`/usr/bin/objformat`
12637 freebsd[123]*) objformat=aout ;;
12638 *) objformat=elf ;;
12641 version_type=freebsd-$objformat
12642 case $version_type in
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12653 shlibpath_var=LD_LIBRARY_PATH
12656 shlibpath_overrides_runpath=yes
12658 freebsd3.[01]* | freebsdelf3.[01]*)
12659 shlibpath_overrides_runpath=yes
12660 hardcode_into_libs=yes
12662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12664 shlibpath_overrides_runpath=no
12665 hardcode_into_libs=yes
12667 freebsd*) # from 4.6 on
12668 shlibpath_overrides_runpath=yes
12669 hardcode_into_libs=yes
12678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12679 soname_spec='${libname}${release}${shared_ext}$major'
12680 shlibpath_var=LD_LIBRARY_PATH
12681 hardcode_into_libs=yes
12684 hpux9* | hpux10* | hpux11*)
12685 # Give a soname corresponding to the major version so that dld.sl refuses to
12686 # link against other versions.
12693 hardcode_into_libs=yes
12694 dynamic_linker="$host_os dld.so"
12695 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12698 soname_spec='${libname}${release}${shared_ext}$major'
12699 if test "X$HPUX_IA64_MODE" = X32; then
12700 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12708 hardcode_into_libs=yes
12709 dynamic_linker="$host_os dld.sl"
12710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12713 soname_spec='${libname}${release}${shared_ext}$major'
12714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12719 dynamic_linker="$host_os dld.sl"
12720 shlibpath_var=SHLIB_PATH
12721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12726 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12727 postinstall_cmds='chmod 555 $lib'
12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12735 soname_spec='${libname}${release}${shared_ext}$major'
12736 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12737 shlibpath_var=LD_LIBRARY_PATH
12738 shlibpath_overrides_runpath=no
12739 hardcode_into_libs=yes
12742 irix5* | irix6* | nonstopux*)
12744 nonstopux*) version_type=nonstopux ;;
12746 if test "$lt_cv_prog_gnu_ld" = yes; then
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12757 irix5* | nonstopux*)
12758 libsuff= shlibsuff=
12761 case $LD in # libtool.m4 will add one of these switches to LD
12762 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12763 libsuff= shlibsuff= libmagic=32-bit;;
12764 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12765 libsuff=32 shlibsuff=N32 libmagic=N32;;
12766 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12767 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12768 *) libsuff= shlibsuff= libmagic=never-match;;
12772 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12773 shlibpath_overrides_runpath=no
12774 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12775 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12776 hardcode_into_libs=yes
12779 # No shared lib support for Linux oldld, aout, or coff.
12780 linux*oldld* | linux*aout* | linux*coff*)
12784 # This must be Linux ELF.
12785 linux* | k*bsd*-gnu)
12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790 soname_spec='${libname}${release}${shared_ext}$major'
12791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12792 shlibpath_var=LD_LIBRARY_PATH
12793 shlibpath_overrides_runpath=no
12794 # This implies no fast_install, which is unacceptable.
12795 # Some rework will be needed to allow for fast_install
12796 # before this can be enabled.
12797 hardcode_into_libs=yes
12799 # Append ld.so.conf contents to the search path
12800 if test -f /etc/ld.so.conf; then
12801 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12802 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12805 # We used to test for /lib/ld.so.1 and disable shared libraries on
12806 # powerpc, because MkLinux only supported shared libraries with the
12807 # GNU dynamic linker. Since this was broken with cross compilers,
12808 # most powerpc-linux boxes support dynamic linking these days and
12809 # people can always --disable-shared, the test was removed, and we
12810 # assume the GNU/Linux dynamic linker is in use.
12811 dynamic_linker='GNU/Linux ld.so'
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12819 soname_spec='${libname}${release}${shared_ext}$major'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 shlibpath_overrides_runpath=no
12822 hardcode_into_libs=yes
12823 dynamic_linker='NetBSD ld.elf_so'
12830 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12833 dynamic_linker='NetBSD (a.out) ld.so'
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12836 soname_spec='${libname}${release}${shared_ext}$major'
12837 dynamic_linker='NetBSD ld.elf_so'
12839 shlibpath_var=LD_LIBRARY_PATH
12840 shlibpath_overrides_runpath=yes
12841 hardcode_into_libs=yes
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath=yes
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856 soname_spec='${libname}${release}${shared_ext}$major'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 shlibpath_overrides_runpath=yes
12863 sys_lib_dlsearch_path_spec="/usr/lib"
12865 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12867 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12868 *) need_version=no ;;
12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12872 shlibpath_var=LD_LIBRARY_PATH
12873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12875 openbsd2.[89] | openbsd2.[89].*)
12876 shlibpath_overrides_runpath=no
12879 shlibpath_overrides_runpath=yes
12883 shlibpath_overrides_runpath=yes
12888 libname_spec='$name'
12891 library_names_spec='$libname${shared_ext} $libname.a'
12892 dynamic_linker='OS/2 ld.exe'
12893 shlibpath_var=LIBPATH
12896 osf3* | osf4* | osf5*)
12900 soname_spec='${libname}${release}${shared_ext}$major'
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902 shlibpath_var=LD_LIBRARY_PATH
12903 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12904 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=yes
12915 hardcode_into_libs=yes
12916 # ldd complains unless libraries are executable
12917 postinstall_cmds='chmod +x $lib'
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12923 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 shlibpath_overrides_runpath=yes
12926 if test "$with_gnu_ld" = yes; then
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 case $host_vendor in
12939 shlibpath_overrides_runpath=no
12941 export_dynamic_flag_spec='${wl}-Blargedynsym'
12942 runpath_var=LD_RUN_PATH
12950 shlibpath_overrides_runpath=no
12951 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12957 if test -d /usr/nec ;then
12959 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12960 soname_spec='$libname${shared_ext}.$major'
12961 shlibpath_var=LD_LIBRARY_PATH
12965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12966 version_type=freebsd-elf
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 hardcode_into_libs=yes
12973 if test "$with_gnu_ld" = yes; then
12974 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12975 shlibpath_overrides_runpath=no
12977 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12978 shlibpath_overrides_runpath=yes
12981 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12985 sys_lib_dlsearch_path_spec='/usr/lib'
12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12991 soname_spec='${libname}${release}${shared_ext}$major'
12992 shlibpath_var=LD_LIBRARY_PATH
12999 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13000 echo "${ECHO_T}$dynamic_linker" >&6; }
13001 test "$dynamic_linker" = no && can_build_shared=no
13003 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13004 if test "$GCC" = yes; then
13005 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13008 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13009 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13010 hardcode_action_CXX=
13011 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13012 test -n "$runpath_var_CXX" || \
13013 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13015 # We can hardcode non-existant directories.
13016 if test "$hardcode_direct_CXX" != no &&
13017 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13018 # have to relink, otherwise we might link with an installed library
13019 # when we should be linking with a yet-to-be-installed one
13020 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13021 test "$hardcode_minus_L_CXX" != no; then
13022 # Linking always hardcodes the temporary library directory.
13023 hardcode_action_CXX=relink
13025 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13026 hardcode_action_CXX=immediate
13029 # We cannot hardcode anything, or else we can only hardcode existing
13031 hardcode_action_CXX=unsupported
13033 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13034 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13036 if test "$hardcode_action_CXX" = relink; then
13037 # Fast installation is not supported
13038 enable_fast_install=no
13039 elif test "$shlibpath_overrides_runpath" = yes ||
13040 test "$enable_shared" = no; then
13041 # Fast installation is not necessary
13042 enable_fast_install=needless
13046 # The else clause should only fire when bootstrapping the
13047 # libtool distribution, otherwise you forgot to ship ltmain.sh
13048 # with your package, and you will get complaints that there are
13049 # no rules to generate ltmain.sh.
13050 if test -f "$ltmain"; then
13051 # See if we are running on zsh, and set the options which allow our commands through
13052 # without removal of \ escapes.
13053 if test -n "${ZSH_VERSION+set}" ; then
13054 setopt NO_GLOB_SUBST
13056 # Now quote all the things that may contain metacharacters while being
13057 # careful not to overquote the AC_SUBSTed values. We take copies of the
13058 # variables and quote the copies for generation of the libtool script.
13059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13063 deplibs_check_method reload_flag reload_cmds need_locks \
13064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13065 lt_cv_sys_global_symbol_to_c_name_address \
13066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13067 old_postinstall_cmds old_postuninstall_cmds \
13071 lt_prog_compiler_wl_CXX \
13072 lt_prog_compiler_pic_CXX \
13073 lt_prog_compiler_static_CXX \
13074 lt_prog_compiler_no_builtin_flag_CXX \
13075 export_dynamic_flag_spec_CXX \
13076 thread_safe_flag_spec_CXX \
13077 whole_archive_flag_spec_CXX \
13078 enable_shared_with_static_runtimes_CXX \
13079 old_archive_cmds_CXX \
13080 old_archive_from_new_cmds_CXX \
13081 predep_objects_CXX \
13082 postdep_objects_CXX \
13085 compiler_lib_search_path_CXX \
13087 archive_expsym_cmds_CXX \
13088 postinstall_cmds_CXX \
13089 postuninstall_cmds_CXX \
13090 old_archive_from_expsyms_cmds_CXX \
13091 allow_undefined_flag_CXX \
13092 no_undefined_flag_CXX \
13093 export_symbols_cmds_CXX \
13094 hardcode_libdir_flag_spec_CXX \
13095 hardcode_libdir_flag_spec_ld_CXX \
13096 hardcode_libdir_separator_CXX \
13097 hardcode_automatic_CXX \
13099 module_expsym_cmds_CXX \
13100 lt_cv_prog_compiler_c_o_CXX \
13101 exclude_expsyms_CXX \
13102 include_expsyms_CXX; do
13105 old_archive_cmds_CXX | \
13106 old_archive_from_new_cmds_CXX | \
13107 archive_cmds_CXX | \
13108 archive_expsym_cmds_CXX | \
13109 module_cmds_CXX | \
13110 module_expsym_cmds_CXX | \
13111 old_archive_from_expsyms_cmds_CXX | \
13112 export_symbols_cmds_CXX | \
13113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13114 postinstall_cmds | postuninstall_cmds | \
13115 old_postinstall_cmds | old_postuninstall_cmds | \
13116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13117 # Double-quote double-evaled strings.
13118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13127 *'\$0 --fallback-echo"')
13128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13134 cat <<__EOF__ >> "$cfgfile"
13135 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13139 # Shell to use when invoking shell scripts.
13142 # Whether or not to build shared libraries.
13143 build_libtool_libs=$enable_shared
13145 # Whether or not to build static libraries.
13146 build_old_libs=$enable_static
13148 # Whether or not to add -lc for building shared libraries.
13149 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13151 # Whether or not to disallow shared libs when runtime libs are static
13152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13154 # Whether or not to optimize for fast installation.
13155 fast_install=$enable_fast_install
13158 host_alias=$host_alias
13162 # The build system.
13163 build_alias=$build_alias
13167 # An echo program that does not interpret backslashes.
13172 AR_FLAGS=$lt_AR_FLAGS
13177 # LTCC compiler flags.
13178 LTCFLAGS=$lt_LTCFLAGS
13180 # A language-specific compiler.
13181 CC=$lt_compiler_CXX
13183 # Is the compiler the GNU C compiler?
13189 # The linker used to build libraries.
13192 # Whether we need hard or soft links.
13195 # A BSD-compatible nm program.
13198 # A symbol stripping program
13201 # Used to examine libraries when file_magic_cmd begins "file"
13202 MAGIC_CMD=$MAGIC_CMD
13204 # Used on cygwin: DLL creation program.
13207 # Used on cygwin: object dumper.
13210 # Used on cygwin: assembler.
13213 # The name of the directory that contains temporary libtool files.
13216 # How to create reloadable object files.
13217 reload_flag=$lt_reload_flag
13218 reload_cmds=$lt_reload_cmds
13220 # How to pass a linker flag through the compiler.
13221 wl=$lt_lt_prog_compiler_wl_CXX
13223 # Object file suffix (normally "o").
13224 objext="$ac_objext"
13226 # Old archive suffix (normally "a").
13229 # Shared library suffix (normally ".so").
13230 shrext_cmds='$shrext_cmds'
13232 # Executable file suffix (normally "").
13235 # Additional compiler flags for building library objects.
13236 pic_flag=$lt_lt_prog_compiler_pic_CXX
13239 # What is the maximum length of a command?
13240 max_cmd_len=$lt_cv_sys_max_cmd_len
13242 # Does compiler simultaneously support -c and -o options?
13243 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13245 # Must we lock files when doing compilation?
13246 need_locks=$lt_need_locks
13248 # Do we need the lib prefix for modules?
13249 need_lib_prefix=$need_lib_prefix
13251 # Do we need a version for libraries?
13252 need_version=$need_version
13254 # Whether dlopen is supported.
13255 dlopen_support=$enable_dlopen
13257 # Whether dlopen of programs is supported.
13258 dlopen_self=$enable_dlopen_self
13260 # Whether dlopen of statically linked programs is supported.
13261 dlopen_self_static=$enable_dlopen_self_static
13263 # Compiler flag to prevent dynamic linking.
13264 link_static_flag=$lt_lt_prog_compiler_static_CXX
13266 # Compiler flag to turn off builtin functions.
13267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13269 # Compiler flag to allow reflexive dlopens.
13270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13272 # Compiler flag to generate shared objects directly from archives.
13273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13275 # Compiler flag to generate thread-safe objects.
13276 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13278 # Library versioning type.
13279 version_type=$version_type
13281 # Format of library name prefix.
13282 libname_spec=$lt_libname_spec
13284 # List of archive names. First name is the real one, the rest are links.
13285 # The last name is the one that the linker finds with -lNAME.
13286 library_names_spec=$lt_library_names_spec
13288 # The coded name of the library, if different from the real name.
13289 soname_spec=$lt_soname_spec
13291 # Commands used to build and install an old-style archive.
13293 old_archive_cmds=$lt_old_archive_cmds_CXX
13294 old_postinstall_cmds=$lt_old_postinstall_cmds
13295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13297 # Create an old-style archive from a shared archive.
13298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13300 # Create a temporary old-style archive to link instead of a shared archive.
13301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13303 # Commands used to build and install a shared archive.
13304 archive_cmds=$lt_archive_cmds_CXX
13305 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13306 postinstall_cmds=$lt_postinstall_cmds
13307 postuninstall_cmds=$lt_postuninstall_cmds
13309 # Commands used to build a loadable module (assumed same as above if empty)
13310 module_cmds=$lt_module_cmds_CXX
13311 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13313 # Commands to strip libraries.
13314 old_striplib=$lt_old_striplib
13315 striplib=$lt_striplib
13317 # Dependencies to place before the objects being linked to create a
13319 predep_objects=$lt_predep_objects_CXX
13321 # Dependencies to place after the objects being linked to create a
13323 postdep_objects=$lt_postdep_objects_CXX
13325 # Dependencies to place before the objects being linked to create a
13327 predeps=$lt_predeps_CXX
13329 # Dependencies to place after the objects being linked to create a
13331 postdeps=$lt_postdeps_CXX
13333 # The library search path used internally by the compiler when linking
13334 # a shared library.
13335 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13337 # Method to check whether dependent libraries are shared objects.
13338 deplibs_check_method=$lt_deplibs_check_method
13340 # Command to use when deplibs_check_method == file_magic.
13341 file_magic_cmd=$lt_file_magic_cmd
13343 # Flag that allows shared libraries with undefined symbols to be built.
13344 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13346 # Flag that forces no undefined symbols.
13347 no_undefined_flag=$lt_no_undefined_flag_CXX
13349 # Commands used to finish a libtool library installation in a directory.
13350 finish_cmds=$lt_finish_cmds
13352 # Same as above, but a single script fragment to be evaled but not shown.
13353 finish_eval=$lt_finish_eval
13355 # Take the output of nm and produce a listing of raw symbols and C names.
13356 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13358 # Transform the output of nm in a proper C declaration
13359 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13361 # Transform the output of nm in a C name address pair
13362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13364 # This is the shared library runtime path variable.
13365 runpath_var=$runpath_var
13367 # This is the shared library path variable.
13368 shlibpath_var=$shlibpath_var
13370 # Is shlibpath searched before the hard-coded library search path?
13371 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13373 # How to hardcode a shared library path into an executable.
13374 hardcode_action=$hardcode_action_CXX
13376 # Whether we should hardcode library paths into libraries.
13377 hardcode_into_libs=$hardcode_into_libs
13379 # Flag to hardcode \$libdir into a binary during linking.
13380 # This must work even if \$libdir does not exist.
13381 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13383 # If ld is used when linking, flag to hardcode \$libdir into
13384 # a binary during linking. This must work even if \$libdir does
13386 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13388 # Whether we need a single -rpath flag with a separated argument.
13389 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13391 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13392 # resulting binary.
13393 hardcode_direct=$hardcode_direct_CXX
13395 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13396 # resulting binary.
13397 hardcode_minus_L=$hardcode_minus_L_CXX
13399 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13400 # the resulting binary.
13401 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13403 # Set to yes if building a shared library automatically hardcodes DIR into the library
13404 # and all subsequent libraries and executables linked against it.
13405 hardcode_automatic=$hardcode_automatic_CXX
13407 # Variables whose values should be saved in libtool wrapper scripts and
13408 # restored at relink time.
13409 variables_saved_for_relink="$variables_saved_for_relink"
13411 # Whether libtool must link a program against all its dependency libraries.
13412 link_all_deplibs=$link_all_deplibs_CXX
13414 # Compile-time system search path for libraries
13415 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13417 # Run-time system search path for libraries
13418 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13420 # Fix the shell variable \$srcfile for the compiler.
13421 fix_srcfile_path="$fix_srcfile_path_CXX"
13423 # Set to yes if exported symbols are required.
13424 always_export_symbols=$always_export_symbols_CXX
13426 # The commands to list exported symbols.
13427 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13429 # The commands to extract the exported symbol list from a shared archive.
13430 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13432 # Symbols that should not be listed in the preloaded symbols.
13433 exclude_expsyms=$lt_exclude_expsyms_CXX
13435 # Symbols that must always be exported.
13436 include_expsyms=$lt_include_expsyms_CXX
13438 # ### END LIBTOOL TAG CONFIG: $tagname
13444 # If there is no Makefile yet, we rely on a make rule to execute
13445 # `config.status --recheck' to rerun these tests and create the
13446 # libtool script then.
13447 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13448 if test -f "$ltmain_in"; then
13449 test -f Makefile && make "$ltmain"
13455 ac_cpp='$CPP $CPPFLAGS'
13456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13464 with_gnu_ldcxx=$with_gnu_ld
13465 with_gnu_ld=$lt_save_with_gnu_ld
13466 lt_cv_path_LDCXX=$lt_cv_path_LD
13467 lt_cv_path_LD=$lt_save_path_LD
13468 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13469 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13477 if test -n "$F77" && test "X$F77" != "Xno"; then
13480 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13481 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13482 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13485 archive_cmds_need_lc_F77=no
13486 allow_undefined_flag_F77=
13487 always_export_symbols_F77=no
13488 archive_expsym_cmds_F77=
13489 export_dynamic_flag_spec_F77=
13490 hardcode_direct_F77=no
13491 hardcode_libdir_flag_spec_F77=
13492 hardcode_libdir_flag_spec_ld_F77=
13493 hardcode_libdir_separator_F77=
13494 hardcode_minus_L_F77=no
13495 hardcode_automatic_F77=no
13497 module_expsym_cmds_F77=
13498 link_all_deplibs_F77=unknown
13499 old_archive_cmds_F77=$old_archive_cmds
13500 no_undefined_flag_F77=
13501 whole_archive_flag_spec_F77=
13502 enable_shared_with_static_runtimes_F77=no
13504 # Source file extension for f77 test sources.
13507 # Object file extension for compiled f77 test sources.
13511 # Code to be used in simple compile tests
13512 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13514 # Code to be used in simple link tests
13515 lt_simple_link_test_code=" program t\n end\n"
13517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13519 # If no C compiler was specified, use CC.
13522 # If no C compiler flags were specified, use CFLAGS.
13523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13525 # Allow CC to be a program name with arguments.
13529 # save warnings/boilerplate of simple test code
13530 ac_outfile=conftest.$ac_objext
13531 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13533 _lt_compiler_boilerplate=`cat conftest.err`
13536 ac_outfile=conftest.$ac_objext
13537 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13539 _lt_linker_boilerplate=`cat conftest.err`
13543 # Allow CC to be a program name with arguments.
13548 for cc_temp in $compiler""; do
13550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13559 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13560 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13561 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13562 echo "${ECHO_T}$can_build_shared" >&6; }
13564 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13565 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13566 test "$can_build_shared" = "no" && enable_shared=no
13568 # On AIX, shared libraries and static libraries use the same namespace, and
13569 # are all built from PIC.
13572 test "$enable_shared" = yes && enable_static=no
13573 if test -n "$RANLIB"; then
13574 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13575 postinstall_cmds='$RANLIB $lib'
13579 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13580 test "$enable_shared" = yes && enable_static=no
13584 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13585 echo "${ECHO_T}$enable_shared" >&6; }
13587 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13588 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13589 # Make sure either enable_shared or enable_static is yes.
13590 test "$enable_shared" = yes || enable_static=yes
13591 { echo "$as_me:$LINENO: result: $enable_static" >&5
13592 echo "${ECHO_T}$enable_static" >&6; }
13597 lt_prog_compiler_wl_F77=
13598 lt_prog_compiler_pic_F77=
13599 lt_prog_compiler_static_F77=
13601 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13602 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13604 if test "$GCC" = yes; then
13605 lt_prog_compiler_wl_F77='-Wl,'
13606 lt_prog_compiler_static_F77='-static'
13610 # All AIX code is PIC.
13611 if test "$host_cpu" = ia64; then
13612 # AIX 5 now supports IA64 processor
13613 lt_prog_compiler_static_F77='-Bstatic'
13618 # FIXME: we need at least 68020 code to build shared libraries, but
13619 # adding the `-m68020' flag to GCC prevents building anything better,
13621 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13624 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13625 # PIC is the default for these OSes.
13628 mingw* | pw32* | os2*)
13629 # This hack is so that the source file can tell whether it is being
13630 # built for inclusion in a dll (and should export symbols for example).
13631 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13634 darwin* | rhapsody*)
13635 # PIC is the default on this platform
13636 # Common symbols not allowed in MH_DYLIB files
13637 lt_prog_compiler_pic_F77='-fno-common'
13641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13642 # Instead, we relocate shared libraries at runtime.
13646 # Just because we use GCC doesn't mean we suddenly get shared libraries
13647 # on systems that don't support them.
13648 lt_prog_compiler_can_build_shared_F77=no
13653 if test -d /usr/nec; then
13654 lt_prog_compiler_pic_F77=-Kconform_pic
13659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13660 # not for PA HP-UX.
13666 lt_prog_compiler_pic_F77='-fPIC'
13672 lt_prog_compiler_pic_F77='-fPIC'
13676 # PORTME Check for flag to pass linker flags through the system compiler.
13679 lt_prog_compiler_wl_F77='-Wl,'
13680 if test "$host_cpu" = ia64; then
13681 # AIX 5 now supports IA64 processor
13682 lt_prog_compiler_static_F77='-Bstatic'
13684 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13688 # PIC is the default on this platform
13689 # Common symbols not allowed in MH_DYLIB files
13690 case $cc_basename in
13692 lt_prog_compiler_pic_F77='-qnocommon'
13693 lt_prog_compiler_wl_F77='-Wl,'
13698 mingw* | pw32* | os2*)
13699 # This hack is so that the source file can tell whether it is being
13700 # built for inclusion in a dll (and should export symbols for example).
13701 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13704 hpux9* | hpux10* | hpux11*)
13705 lt_prog_compiler_wl_F77='-Wl,'
13706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13707 # not for PA HP-UX.
13713 lt_prog_compiler_pic_F77='+Z'
13716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13717 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13720 irix5* | irix6* | nonstopux*)
13721 lt_prog_compiler_wl_F77='-Wl,'
13722 # PIC (with -KPIC) is the default.
13723 lt_prog_compiler_static_F77='-non_shared'
13727 lt_prog_compiler_pic_F77='-KPIC'
13728 lt_prog_compiler_static_F77='-Bstatic'
13731 linux* | k*bsd*-gnu)
13732 case $cc_basename in
13734 lt_prog_compiler_wl_F77='-Wl,'
13735 lt_prog_compiler_pic_F77='-KPIC'
13736 lt_prog_compiler_static_F77='-static'
13738 pgcc* | pgf77* | pgf90* | pgf95*)
13739 # Portland Group compilers (*not* the Pentium gcc compiler,
13740 # which looks to be a dead project)
13741 lt_prog_compiler_wl_F77='-Wl,'
13742 lt_prog_compiler_pic_F77='-fpic'
13743 lt_prog_compiler_static_F77='-Bstatic'
13746 lt_prog_compiler_wl_F77='-Wl,'
13747 # All Alpha code is PIC.
13748 lt_prog_compiler_static_F77='-non_shared'
13753 osf3* | osf4* | osf5*)
13754 lt_prog_compiler_wl_F77='-Wl,'
13755 # All OSF/1 code is PIC.
13756 lt_prog_compiler_static_F77='-non_shared'
13760 lt_prog_compiler_pic_F77='-KPIC'
13761 lt_prog_compiler_static_F77='-Bstatic'
13762 case $cc_basename in
13763 f77* | f90* | f95*)
13764 lt_prog_compiler_wl_F77='-Qoption ld ';;
13766 lt_prog_compiler_wl_F77='-Wl,';;
13771 lt_prog_compiler_wl_F77='-Qoption ld '
13772 lt_prog_compiler_pic_F77='-PIC'
13773 lt_prog_compiler_static_F77='-Bstatic'
13776 sysv4 | sysv4.2uw2* | sysv4.3*)
13777 lt_prog_compiler_wl_F77='-Wl,'
13778 lt_prog_compiler_pic_F77='-KPIC'
13779 lt_prog_compiler_static_F77='-Bstatic'
13783 if test -d /usr/nec ;then
13784 lt_prog_compiler_pic_F77='-Kconform_pic'
13785 lt_prog_compiler_static_F77='-Bstatic'
13789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13790 lt_prog_compiler_wl_F77='-Wl,'
13791 lt_prog_compiler_pic_F77='-KPIC'
13792 lt_prog_compiler_static_F77='-Bstatic'
13796 lt_prog_compiler_wl_F77='-Wl,'
13797 lt_prog_compiler_can_build_shared_F77=no
13801 lt_prog_compiler_pic_F77='-pic'
13802 lt_prog_compiler_static_F77='-Bstatic'
13806 lt_prog_compiler_can_build_shared_F77=no
13811 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13812 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13815 # Check to make sure the PIC flag actually works.
13817 if test -n "$lt_prog_compiler_pic_F77"; then
13819 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13821 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 lt_prog_compiler_pic_works_F77=no
13825 ac_outfile=conftest.$ac_objext
13826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13827 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13828 # Insert the option either (1) after the last *FLAGS variable, or
13829 # (2) before a word containing "conftest.", or (3) at the end.
13830 # Note that $ac_compile itself does not contain backslashes and begins
13831 # with a dollar sign (not a hyphen), so the echo should work correctly.
13832 # The option is referenced via a variable to avoid confusing sed.
13833 lt_compile=`echo "$ac_compile" | $SED \
13834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13836 -e 's:$: $lt_compiler_flag:'`
13837 (eval echo "\"\$as_me:13837: $lt_compile\"" >&5)
13838 (eval "$lt_compile" 2>conftest.err)
13840 cat conftest.err >&5
13841 echo "$as_me:13841: \$? = $ac_status" >&5
13842 if (exit $ac_status) && test -s "$ac_outfile"; then
13843 # The compiler can only warn and ignore the option if not recognized
13844 # So say no if there are warnings other than the usual output.
13845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13848 lt_prog_compiler_pic_works_F77=yes
13854 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13855 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13857 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13858 case $lt_prog_compiler_pic_F77 in
13860 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13863 lt_prog_compiler_pic_F77=
13864 lt_prog_compiler_can_build_shared_F77=no
13869 # For platforms which do not support PIC, -DPIC is meaningless:
13871 lt_prog_compiler_pic_F77=
13874 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13879 # Check to make sure the static flag actually works.
13881 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13882 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13883 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13884 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 lt_prog_compiler_static_works_F77=no
13888 save_LDFLAGS="$LDFLAGS"
13889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13890 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13892 # The linker can only warn and ignore the option if not recognized
13893 # So say no if there are warnings
13894 if test -s conftest.err; then
13895 # Append any errors to the config.log.
13896 cat conftest.err 1>&5
13897 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13899 if diff conftest.exp conftest.er2 >/dev/null; then
13900 lt_prog_compiler_static_works_F77=yes
13903 lt_prog_compiler_static_works_F77=yes
13907 LDFLAGS="$save_LDFLAGS"
13910 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13911 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13913 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13916 lt_prog_compiler_static_F77=
13920 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13922 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 lt_cv_prog_compiler_c_o_F77=no
13926 $rm -r conftest 2>/dev/null
13930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13932 lt_compiler_flag="-o out/conftest2.$ac_objext"
13933 # Insert the option either (1) after the last *FLAGS variable, or
13934 # (2) before a word containing "conftest.", or (3) at the end.
13935 # Note that $ac_compile itself does not contain backslashes and begins
13936 # with a dollar sign (not a hyphen), so the echo should work correctly.
13937 lt_compile=`echo "$ac_compile" | $SED \
13938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13940 -e 's:$: $lt_compiler_flag:'`
13941 (eval echo "\"\$as_me:13941: $lt_compile\"" >&5)
13942 (eval "$lt_compile" 2>out/conftest.err)
13944 cat out/conftest.err >&5
13945 echo "$as_me:13945: \$? = $ac_status" >&5
13946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13948 # The compiler can only warn and ignore the option if not recognized
13949 # So say no if there are warnings
13950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13953 lt_cv_prog_compiler_c_o_F77=yes
13958 # SGI C++ compiler will create directory out/ii_files/ for
13959 # template instantiation
13960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13961 $rm out/* && rmdir out
13967 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13968 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13971 hard_links="nottested"
13972 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13973 # do not overwrite the value of need_locks provided by the user
13974 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13980 ln conftest.a conftest.b 2>&5 || hard_links=no
13981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13982 { echo "$as_me:$LINENO: result: $hard_links" >&5
13983 echo "${ECHO_T}$hard_links" >&6; }
13984 if test "$hard_links" = no; then
13985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13993 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13994 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13997 allow_undefined_flag_F77=
13998 enable_shared_with_static_runtimes_F77=no
14000 archive_expsym_cmds_F77=
14001 old_archive_From_new_cmds_F77=
14002 old_archive_from_expsyms_cmds_F77=
14003 export_dynamic_flag_spec_F77=
14004 whole_archive_flag_spec_F77=
14005 thread_safe_flag_spec_F77=
14006 hardcode_libdir_flag_spec_F77=
14007 hardcode_libdir_flag_spec_ld_F77=
14008 hardcode_libdir_separator_F77=
14009 hardcode_direct_F77=no
14010 hardcode_minus_L_F77=no
14011 hardcode_shlibpath_var_F77=unsupported
14012 link_all_deplibs_F77=unknown
14013 hardcode_automatic_F77=no
14015 module_expsym_cmds_F77=
14016 always_export_symbols_F77=no
14017 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14018 # include_expsyms should be a list of space-separated symbols to be *always*
14019 # included in the symbol list
14020 include_expsyms_F77=
14021 # exclude_expsyms can be an extended regexp of symbols to exclude
14022 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14023 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14024 # as well as any symbol that contains `d'.
14025 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14026 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14027 # platforms (ab)use it in PIC code, but their linkers get confused if
14028 # the symbol is explicitly referenced. Since portable code cannot
14029 # rely on this symbol name, it's probably fine to never include it in
14030 # preloaded symbol tables.
14031 extract_expsyms_cmds=
14032 # Just being paranoid about ensuring that cc_basename is set.
14033 for cc_temp in $compiler""; do
14035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14041 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14044 cygwin* | mingw* | pw32*)
14045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14046 # When not using gcc, we currently assume that we are using
14047 # Microsoft Visual C++.
14048 if test "$GCC" != yes; then
14053 # we just hope/assume this is gcc and not c89 (= MSVC++)
14062 if test "$with_gnu_ld" = yes; then
14063 # If archive_cmds runs LD, not CC, wlarc should be empty
14066 # Set some defaults for GNU ld with shared library support. These
14067 # are reset later if shared libraries are not supported. Putting them
14068 # here allows them to be overridden if necessary.
14069 runpath_var=LD_RUN_PATH
14070 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14071 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14072 # ancient GNU ld didn't support --whole-archive et. al.
14073 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14074 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14076 whole_archive_flag_spec_F77=
14078 supports_anon_versioning=no
14079 case `$LD -v 2>/dev/null` in
14080 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14082 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14083 *\ 2.11.*) ;; # other 2.11 versions
14084 *) supports_anon_versioning=yes ;;
14087 # See if GNU ld supports shared libraries.
14089 aix3* | aix4* | aix5*)
14090 # On AIX/PPC, the GNU linker is very broken
14091 if test "$host_cpu" != ia64; then
14095 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14096 *** to be unable to reliably create shared libraries on AIX.
14097 *** Therefore, libtool is disabling shared libraries support. If you
14098 *** really care for shared libraries, you may want to modify your PATH
14099 *** so that a non-GNU linker is found, and then restart.
14106 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)'
14107 hardcode_libdir_flag_spec_F77='-L$libdir'
14108 hardcode_minus_L_F77=yes
14110 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14111 # that the semantics of dynamic libraries on AmigaOS, at least up
14112 # to version 4, is to share data among multiple programs linked
14113 # with the same dynamic library. Since this doesn't match the
14114 # behavior of shared libraries on other platforms, we can't use
14120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14121 allow_undefined_flag_F77=unsupported
14122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14123 # support --undefined. This deserves some investigation. FIXME
14124 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14130 cygwin* | mingw* | pw32*)
14131 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14132 # as there is no search path for DLLs.
14133 hardcode_libdir_flag_spec_F77='-L$libdir'
14134 allow_undefined_flag_F77=unsupported
14135 always_export_symbols_F77=no
14136 enable_shared_with_static_runtimes_F77=yes
14137 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14139 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14140 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14141 # If the export-symbols file already is a .def file (1st line
14142 # is EXPORTS), use it as is; otherwise, prepend...
14143 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14144 cp $export_symbols $output_objdir/$soname.def;
14146 echo EXPORTS > $output_objdir/$soname.def;
14147 cat $export_symbols >> $output_objdir/$soname.def;
14149 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14156 hardcode_direct_F77=no
14157 hardcode_shlibpath_var_F77=no
14158 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14159 export_dynamic_flag_spec_F77='${wl}-E'
14160 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14161 # Instead, shared libraries are loaded at an image base (0x10000000 by
14162 # default) and relocated if they conflict, which is a slow very memory
14163 # consuming and fragmenting process. To avoid this, we pick a random,
14164 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14165 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14166 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14167 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14170 linux* | k*bsd*-gnu)
14171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14173 case $cc_basename,$host_cpu in
14174 pgcc*) # Portland Group C compiler
14175 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14176 tmp_addflag=' $pic_flag'
14178 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14179 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14180 tmp_addflag=' $pic_flag -Mnomain' ;;
14181 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14182 tmp_addflag=' -i_dynamic' ;;
14183 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14184 tmp_addflag=' -i_dynamic -nofor_main' ;;
14185 ifc* | ifort*) # Intel Fortran compiler
14186 tmp_addflag=' -nofor_main' ;;
14188 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14190 if test $supports_anon_versioning = yes; then
14191 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14192 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14193 $echo "local: *; };" >> $output_objdir/$libname.ver~
14194 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14196 link_all_deplibs_F77=no
14202 netbsd* | netbsdelf*-gnu)
14203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14204 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14207 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14208 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14213 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14218 *** create shared libraries on Solaris systems. Therefore, libtool
14219 *** is disabling shared libraries support. We urge you to upgrade GNU
14220 *** binutils to release 2.9.1 or newer. Another option is to modify
14221 *** your PATH or compiler configuration so that the native linker is
14222 *** used, and then restart.
14225 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14226 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14234 case `$LD -v 2>&1` in
14235 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14240 *** reliably create shared libraries on SCO systems. Therefore, libtool
14241 *** is disabling shared libraries support. We urge you to upgrade GNU
14242 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14243 *** your PATH or compiler configuration so that the native linker is
14244 *** used, and then restart.
14249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14250 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14251 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14252 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14261 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14263 hardcode_direct_F77=yes
14264 hardcode_shlibpath_var_F77=no
14268 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14270 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14277 if test "$ld_shlibs_F77" = no; then
14279 hardcode_libdir_flag_spec_F77=
14280 export_dynamic_flag_spec_F77=
14281 whole_archive_flag_spec_F77=
14284 # PORTME fill in a description of your system's linker (not GNU ld)
14287 allow_undefined_flag_F77=unsupported
14288 always_export_symbols_F77=yes
14289 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'
14290 # Note: this linker hardcodes the directories in LIBPATH if there
14291 # are no directories specified by -L.
14292 hardcode_minus_L_F77=yes
14293 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14294 # Neither direct hardcoding nor static linking is supported with a
14296 hardcode_direct_F77=unsupported
14301 if test "$host_cpu" = ia64; then
14302 # On IA64, the linker does run time linking by default, so we don't
14303 # have to do anything special.
14304 aix_use_runtimelinking=no
14305 exp_sym_flag='-Bexport'
14308 # If we're using GNU nm, then we don't want the "-C" option.
14309 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14310 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14311 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'
14313 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'
14315 aix_use_runtimelinking=no
14317 # Test if we are trying to use run time linking or normal
14318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14319 # need to do runtime linking.
14320 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14321 for ld_flag in $LDFLAGS; do
14322 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14323 aix_use_runtimelinking=yes
14330 exp_sym_flag='-bexport'
14331 no_entry_flag='-bnoentry'
14334 # When large executables or shared objects are built, AIX ld can
14335 # have problems creating the table of contents. If linking a library
14336 # or program results in "error TOC overflow" add -mminimal-toc to
14337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14340 archive_cmds_F77=''
14341 hardcode_direct_F77=yes
14342 hardcode_libdir_separator_F77=':'
14343 link_all_deplibs_F77=yes
14345 if test "$GCC" = yes; then
14346 case $host_os in aix4.[012]|aix4.[012].*)
14347 # We only want to do this on AIX 4.2 and lower, the check
14348 # below for broken collect2 doesn't work under 4.3+
14349 collect2name=`${CC} -print-prog-name=collect2`
14350 if test -f "$collect2name" && \
14351 strings "$collect2name" | grep resolve_lib_name >/dev/null
14353 # We have reworked collect2
14354 hardcode_direct_F77=yes
14356 # We have old collect2
14357 hardcode_direct_F77=unsupported
14358 # It fails to find uninstalled libraries when the uninstalled
14359 # path is not listed in the libpath. Setting hardcode_minus_L
14360 # to unsupported forces relinking
14361 hardcode_minus_L_F77=yes
14362 hardcode_libdir_flag_spec_F77='-L$libdir'
14363 hardcode_libdir_separator_F77=
14367 shared_flag='-shared'
14368 if test "$aix_use_runtimelinking" = yes; then
14369 shared_flag="$shared_flag "'${wl}-G'
14373 if test "$host_cpu" = ia64; then
14374 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14375 # chokes on -Wl,-G. The following line is correct:
14378 if test "$aix_use_runtimelinking" = yes; then
14379 shared_flag='${wl}-G'
14381 shared_flag='${wl}-bM:SRE'
14386 # It seems that -bexpall does not export symbols beginning with
14387 # underscore (_), so it is better to generate a list of symbols to export.
14388 always_export_symbols_F77=yes
14389 if test "$aix_use_runtimelinking" = yes; then
14390 # Warning - without using the other runtime loading flags (-brtl),
14391 # -berok will link without error, but may produce a broken library.
14392 allow_undefined_flag_F77='-berok'
14393 # Determine the default libpath from the value encoded in an empty executable.
14394 cat >conftest.$ac_ext <<_ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_link") 2>conftest.er1
14408 grep -v '^ *+' conftest.er1 >conftest.err
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && {
14413 test -z "$ac_f77_werror_flag" ||
14414 test ! -s conftest.err
14415 } && test -s conftest$ac_exeext &&
14416 $as_test_x conftest$ac_exeext; then
14418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14420 # Check for a 64-bit object if we didn't find anything.
14421 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; }
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431 conftest$ac_exeext conftest.$ac_ext
14432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14434 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14435 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14437 if test "$host_cpu" = ia64; then
14438 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14439 allow_undefined_flag_F77="-z nodefs"
14440 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14442 # Determine the default libpath from the value encoded in an empty executable.
14443 cat >conftest.$ac_ext <<_ACEOF
14448 rm -f conftest.$ac_objext conftest$ac_exeext
14449 if { (ac_try="$ac_link"
14450 case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_link") 2>conftest.er1
14457 grep -v '^ *+' conftest.er1 >conftest.err
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } && {
14462 test -z "$ac_f77_werror_flag" ||
14463 test ! -s conftest.err
14464 } && test -s conftest$ac_exeext &&
14465 $as_test_x conftest$ac_exeext; then
14467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14469 # Check for a 64-bit object if we didn't find anything.
14470 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; }
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14480 conftest$ac_exeext conftest.$ac_ext
14481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14483 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14484 # Warning - without using the other run time loading flags,
14485 # -berok will link without error, but may produce a broken library.
14486 no_undefined_flag_F77=' ${wl}-bernotok'
14487 allow_undefined_flag_F77=' ${wl}-berok'
14488 # Exported symbols can be pulled into shared objects from archives
14489 whole_archive_flag_spec_F77='$convenience'
14490 archive_cmds_need_lc_F77=yes
14491 # This is similar to how AIX traditionally builds its shared libraries.
14492 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14498 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)'
14499 hardcode_libdir_flag_spec_F77='-L$libdir'
14500 hardcode_minus_L_F77=yes
14501 # see comment about different semantics on the GNU ld section
14506 export_dynamic_flag_spec_F77=-rdynamic
14509 cygwin* | mingw* | pw32*)
14510 # When not using gcc, we currently assume that we are using
14511 # Microsoft Visual C++.
14512 # hardcode_libdir_flag_spec is actually meaningless, as there is
14513 # no search path for DLLs.
14514 hardcode_libdir_flag_spec_F77=' '
14515 allow_undefined_flag_F77=unsupported
14516 # Tell ltmain to make .lib files, not .a files.
14518 # Tell ltmain to make .dll files, not .so files.
14520 # FIXME: Setting linknames here is a bad hack.
14521 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14522 # The linker will automatically build a .lib file if we build a DLL.
14523 old_archive_From_new_cmds_F77='true'
14524 # FIXME: Should let the user specify the lib program.
14525 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14526 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14527 enable_shared_with_static_runtimes_F77=yes
14530 darwin* | rhapsody*)
14532 rhapsody* | darwin1.[012])
14533 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14536 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14537 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14539 case ${MACOSX_DEPLOYMENT_TARGET} in
14541 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14544 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14550 archive_cmds_need_lc_F77=no
14551 hardcode_direct_F77=no
14552 hardcode_automatic_F77=yes
14553 hardcode_shlibpath_var_F77=unsupported
14554 whole_archive_flag_spec_F77=''
14555 link_all_deplibs_F77=yes
14556 if test "$GCC" = yes ; then
14557 output_verbose_link_cmd='echo'
14558 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14559 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14560 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14561 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14562 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}'
14564 case $cc_basename in
14566 output_verbose_link_cmd='echo'
14567 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14568 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14569 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14570 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14571 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}'
14581 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582 hardcode_libdir_flag_spec_F77='-L$libdir'
14583 hardcode_shlibpath_var_F77=no
14590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14591 # support. Future versions do this automatically, but an explicit c++rt0.o
14592 # does not break anything, and helps significantly (at the cost of a little
14595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14596 hardcode_libdir_flag_spec_F77='-R$libdir'
14597 hardcode_direct_F77=yes
14598 hardcode_shlibpath_var_F77=no
14601 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14603 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14604 hardcode_direct_F77=yes
14605 hardcode_minus_L_F77=yes
14606 hardcode_shlibpath_var_F77=no
14609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14610 freebsd* | dragonfly*)
14611 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14612 hardcode_libdir_flag_spec_F77='-R$libdir'
14613 hardcode_direct_F77=yes
14614 hardcode_shlibpath_var_F77=no
14618 if test "$GCC" = yes; then
14619 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'
14621 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'
14623 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14624 hardcode_libdir_separator_F77=:
14625 hardcode_direct_F77=yes
14627 # hardcode_minus_L: Not really in the search PATH,
14628 # but as the default location of the library.
14629 hardcode_minus_L_F77=yes
14630 export_dynamic_flag_spec_F77='${wl}-E'
14634 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14635 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14637 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14639 if test "$with_gnu_ld" = no; then
14640 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14641 hardcode_libdir_separator_F77=:
14643 hardcode_direct_F77=yes
14644 export_dynamic_flag_spec_F77='${wl}-E'
14646 # hardcode_minus_L: Not really in the search PATH,
14647 # but as the default location of the library.
14648 hardcode_minus_L_F77=yes
14653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14656 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14662 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14668 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14671 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14674 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14678 if test "$with_gnu_ld" = no; then
14679 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14680 hardcode_libdir_separator_F77=:
14684 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14685 hardcode_direct_F77=no
14686 hardcode_shlibpath_var_F77=no
14689 hardcode_direct_F77=yes
14690 export_dynamic_flag_spec_F77='${wl}-E'
14692 # hardcode_minus_L: Not really in the search PATH,
14693 # but as the default location of the library.
14694 hardcode_minus_L_F77=yes
14700 irix5* | irix6* | nonstopux*)
14701 if test "$GCC" = yes; then
14702 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'
14704 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'
14705 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14707 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14708 hardcode_libdir_separator_F77=:
14709 link_all_deplibs_F77=yes
14712 netbsd* | netbsdelf*-gnu)
14713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14714 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14716 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14718 hardcode_libdir_flag_spec_F77='-R$libdir'
14719 hardcode_direct_F77=yes
14720 hardcode_shlibpath_var_F77=no
14724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14725 hardcode_direct_F77=yes
14726 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14727 hardcode_libdir_separator_F77=:
14728 hardcode_shlibpath_var_F77=no
14732 hardcode_direct_F77=yes
14733 hardcode_shlibpath_var_F77=no
14734 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14735 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14736 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14737 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14738 export_dynamic_flag_spec_F77='${wl}-E'
14741 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14742 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_F77='-R$libdir'
14746 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14747 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14754 hardcode_libdir_flag_spec_F77='-L$libdir'
14755 hardcode_minus_L_F77=yes
14756 allow_undefined_flag_F77=unsupported
14757 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'
14758 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14762 if test "$GCC" = yes; then
14763 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14764 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'
14766 allow_undefined_flag_F77=' -expect_unresolved \*'
14767 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'
14769 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14770 hardcode_libdir_separator_F77=:
14773 osf4* | osf5*) # as osf3* with the addition of -msym flag
14774 if test "$GCC" = yes; then
14775 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14776 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'
14777 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14779 allow_undefined_flag_F77=' -expect_unresolved \*'
14780 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'
14781 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~
14782 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14784 # Both c and cxx compiler support -rpath directly
14785 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14787 hardcode_libdir_separator_F77=:
14791 no_undefined_flag_F77=' -z text'
14792 if test "$GCC" = yes; then
14794 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14795 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14796 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14799 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14800 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14803 hardcode_libdir_flag_spec_F77='-R$libdir'
14804 hardcode_shlibpath_var_F77=no
14806 solaris2.[0-5] | solaris2.[0-5].*) ;;
14808 # The compiler driver will combine linker options so we
14809 # cannot just pass the convience library names through
14810 # without $wl, iff we do not link with $LD.
14811 # Luckily, gcc supports the same syntax we need for Sun Studio.
14812 # Supported since Solaris 2.6 (maybe 2.5.1?)
14815 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14817 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14820 link_all_deplibs_F77=yes
14824 if test "x$host_vendor" = xsequent; then
14825 # Use $CC to link under sequent, because it throws in some extra .o
14826 # files that make .init and .fini sections work.
14827 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14829 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14831 hardcode_libdir_flag_spec_F77='-L$libdir'
14832 hardcode_direct_F77=yes
14833 hardcode_minus_L_F77=yes
14834 hardcode_shlibpath_var_F77=no
14838 case $host_vendor in
14840 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841 hardcode_direct_F77=yes # is this really true???
14844 ## LD is ld it makes a PLAMLIB
14845 ## CC just makes a GrossModule.
14846 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14847 reload_cmds_F77='$CC -r -o $output$reload_objs'
14848 hardcode_direct_F77=no
14851 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14855 runpath_var='LD_RUN_PATH'
14856 hardcode_shlibpath_var_F77=no
14860 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14861 hardcode_shlibpath_var_F77=no
14862 export_dynamic_flag_spec_F77='-Bexport'
14866 if test -d /usr/nec; then
14867 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14868 hardcode_shlibpath_var_F77=no
14869 runpath_var=LD_RUN_PATH
14870 hardcode_runpath_var=yes
14875 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14876 no_undefined_flag_F77='${wl}-z,text'
14877 archive_cmds_need_lc_F77=no
14878 hardcode_shlibpath_var_F77=no
14879 runpath_var='LD_RUN_PATH'
14881 if test "$GCC" = yes; then
14882 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14883 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14885 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 sysv5* | sco3.2v5* | sco5v6*)
14891 # Note: We can NOT use -z defs as we might desire, because we do not
14892 # link with -lc, and that would cause any symbols used from libc to
14893 # always be unresolved, which means just about no library would
14894 # ever link correctly. If we're not using GNU ld we use -z text
14895 # though, which does catch some bad symbols but isn't as heavy-handed
14897 no_undefined_flag_F77='${wl}-z,text'
14898 allow_undefined_flag_F77='${wl}-z,nodefs'
14899 archive_cmds_need_lc_F77=no
14900 hardcode_shlibpath_var_F77=no
14901 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14902 hardcode_libdir_separator_F77=':'
14903 link_all_deplibs_F77=yes
14904 export_dynamic_flag_spec_F77='${wl}-Bexport'
14905 runpath_var='LD_RUN_PATH'
14907 if test "$GCC" = yes; then
14908 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14909 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14911 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14912 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14918 hardcode_libdir_flag_spec_F77='-L$libdir'
14919 hardcode_shlibpath_var_F77=no
14928 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14929 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14930 test "$ld_shlibs_F77" = no && can_build_shared=no
14933 # Do we need to explicitly link libc?
14935 case "x$archive_cmds_need_lc_F77" in
14937 # Assume -lc should be added
14938 archive_cmds_need_lc_F77=yes
14940 if test "$enable_shared" = yes && test "$GCC" = yes; then
14941 case $archive_cmds_F77 in
14943 # FIXME: we may have to deal with multi-command sequences.
14946 # Test whether the compiler implicitly links with -lc since on some
14947 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14948 # to ld, don't add -lc before -lgcc.
14949 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14950 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14955 (eval $ac_compile) 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } 2>conftest.err; then
14961 libobjs=conftest.$ac_objext
14963 wl=$lt_prog_compiler_wl_F77
14964 pic_flag=$lt_prog_compiler_pic_F77
14970 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14971 allow_undefined_flag_F77=
14972 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14973 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }
14978 archive_cmds_need_lc_F77=no
14980 archive_cmds_need_lc_F77=yes
14982 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14984 cat conftest.err 1>&5
14987 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14988 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14995 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14996 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14997 library_names_spec=
14998 libname_spec='lib$name'
15002 postuninstall_cmds=
15006 shlibpath_overrides_runpath=unknown
15008 dynamic_linker="$host_os ld.so"
15009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15010 if test "$GCC" = yes; then
15011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15012 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15013 # if the path contains ";" then we assume it to be the separator
15014 # otherwise default to the standard path separator (i.e. ":") - it is
15015 # assumed that no part of a normal pathname contains ";" but that should
15016 # okay in the real world where ";" in dirpaths is itself problematic.
15017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15024 need_lib_prefix=unknown
15025 hardcode_into_libs=no
15027 # when you set need_version to no, make sure it does not cause -set_version
15028 # flags to be left without arguments
15029 need_version=unknown
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15035 shlibpath_var=LIBPATH
15037 # AIX 3 has no versioning support, so we append a major version to the name.
15038 soname_spec='${libname}${release}${shared_ext}$major'
15045 hardcode_into_libs=yes
15046 if test "$host_cpu" = ia64; then
15047 # AIX 5 supports IA64
15048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15049 shlibpath_var=LD_LIBRARY_PATH
15051 # With GCC up to 2.95.x, collect2 would create an import file
15052 # for dependence libraries. The import file would start with
15053 # the line `#! .'. This would cause the generated library to
15054 # depend on `.', always an invalid library. This was fixed in
15055 # development snapshots of GCC prior to 3.0.
15057 aix4 | aix4.[01] | aix4.[01].*)
15058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15060 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15063 can_build_shared=no
15067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15068 # soname into executable. Probably we can add versioning support to
15069 # collect2, so additional links can be useful in future.
15070 if test "$aix_use_runtimelinking" = yes; then
15071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15072 # instead of lib<name>.a to let people know that these are not
15073 # typical AIX shared libraries.
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15076 # We preserve .a as extension for shared libraries through AIX4.2
15077 # and later when we are not doing run time linking.
15078 library_names_spec='${libname}${release}.a $libname.a'
15079 soname_spec='${libname}${release}${shared_ext}$major'
15081 shlibpath_var=LIBPATH
15086 library_names_spec='$libname.ixlibrary $libname.a'
15087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15088 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'
15092 library_names_spec='${libname}${shared_ext}'
15093 dynamic_linker="$host_os ld.so"
15094 shlibpath_var=LIBRARY_PATH
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15106 # the default ld.so.conf also contains /usr/contrib/lib and
15107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15108 # libtool to hard-code these into programs
15111 cygwin* | mingw* | pw32*)
15112 version_type=windows
15117 case $GCC,$host_os in
15118 yes,cygwin* | yes,mingw* | yes,pw32*)
15119 library_names_spec='$libname.dll.a'
15120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15121 postinstall_cmds='base_file=`basename \${file}`~
15122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15123 dldir=$destdir/`dirname \$dlpath`~
15124 test -d \$dldir || mkdir -p \$dldir~
15125 $install_prog $dir/$dlname \$dldir/$dlname~
15126 chmod a+x \$dldir/$dlname'
15127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15128 dlpath=$dir/\$dldll~
15130 shlibpath_overrides_runpath=yes
15134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15136 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15139 # MinGW DLLs use traditional 'lib' prefix
15140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15141 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15142 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15143 # It is most probably a Windows format PATH printed by
15144 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15145 # path with ; separators, and with drive letters. We can handle the
15146 # drive letters (cygwin fileutils understands them), so leave them,
15147 # especially as we might pass files found there to a mingw objdump,
15148 # which wouldn't understand a cygwinified path. Ahh.
15149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15155 # pw32 DLLs use 'pw' prefix rather than 'lib'
15156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15162 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15165 dynamic_linker='Win32 ld.exe'
15166 # FIXME: first we should search . and the directory the executable is in
15170 darwin* | rhapsody*)
15171 dynamic_linker="$host_os dyld"
15172 version_type=darwin
15175 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15176 soname_spec='${libname}${release}${major}$shared_ext'
15177 shlibpath_overrides_runpath=yes
15178 shlibpath_var=DYLD_LIBRARY_PATH
15179 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15180 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15181 if test "$GCC" = yes; then
15182 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"`
15184 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 shlibpath_var=LD_LIBRARY_PATH
15202 freebsd* | dragonfly*)
15203 # DragonFly does not have aout. When/if they implement a new
15204 # versioning mechanism, adjust this.
15205 if test -x /usr/bin/objformat; then
15206 objformat=`/usr/bin/objformat`
15209 freebsd[123]*) objformat=aout ;;
15210 *) objformat=elf ;;
15213 version_type=freebsd-$objformat
15214 case $version_type in
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15225 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15230 freebsd3.[01]* | freebsdelf3.[01]*)
15231 shlibpath_overrides_runpath=yes
15232 hardcode_into_libs=yes
15234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15236 shlibpath_overrides_runpath=no
15237 hardcode_into_libs=yes
15239 freebsd*) # from 4.6 on
15240 shlibpath_overrides_runpath=yes
15241 hardcode_into_libs=yes
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 hardcode_into_libs=yes
15256 hpux9* | hpux10* | hpux11*)
15257 # Give a soname corresponding to the major version so that dld.sl refuses to
15258 # link against other versions.
15265 hardcode_into_libs=yes
15266 dynamic_linker="$host_os dld.so"
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 if test "X$HPUX_IA64_MODE" = X32; then
15272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15280 hardcode_into_libs=yes
15281 dynamic_linker="$host_os dld.sl"
15282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15291 dynamic_linker="$host_os dld.sl"
15292 shlibpath_var=SHLIB_PATH
15293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295 soname_spec='${libname}${release}${shared_ext}$major'
15298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15299 postinstall_cmds='chmod 555 $lib'
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 shlibpath_overrides_runpath=no
15311 hardcode_into_libs=yes
15314 irix5* | irix6* | nonstopux*)
15316 nonstopux*) version_type=nonstopux ;;
15318 if test "$lt_cv_prog_gnu_ld" = yes; then
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15329 irix5* | nonstopux*)
15330 libsuff= shlibsuff=
15333 case $LD in # libtool.m4 will add one of these switches to LD
15334 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15335 libsuff= shlibsuff= libmagic=32-bit;;
15336 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15337 libsuff=32 shlibsuff=N32 libmagic=N32;;
15338 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15339 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15340 *) libsuff= shlibsuff= libmagic=never-match;;
15344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15345 shlibpath_overrides_runpath=no
15346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15348 hardcode_into_libs=yes
15351 # No shared lib support for Linux oldld, aout, or coff.
15352 linux*oldld* | linux*aout* | linux*coff*)
15356 # This must be Linux ELF.
15357 linux* | k*bsd*-gnu)
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 shlibpath_overrides_runpath=no
15366 # This implies no fast_install, which is unacceptable.
15367 # Some rework will be needed to allow for fast_install
15368 # before this can be enabled.
15369 hardcode_into_libs=yes
15371 # Append ld.so.conf contents to the search path
15372 if test -f /etc/ld.so.conf; then
15373 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15374 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15377 # We used to test for /lib/ld.so.1 and disable shared libraries on
15378 # powerpc, because MkLinux only supported shared libraries with the
15379 # GNU dynamic linker. Since this was broken with cross compilers,
15380 # most powerpc-linux boxes support dynamic linking these days and
15381 # people can always --disable-shared, the test was removed, and we
15382 # assume the GNU/Linux dynamic linker is in use.
15383 dynamic_linker='GNU/Linux ld.so'
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=no
15394 hardcode_into_libs=yes
15395 dynamic_linker='NetBSD ld.elf_so'
15402 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15405 dynamic_linker='NetBSD (a.out) ld.so'
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 dynamic_linker='NetBSD ld.elf_so'
15411 shlibpath_var=LD_LIBRARY_PATH
15412 shlibpath_overrides_runpath=yes
15413 hardcode_into_libs=yes
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 shlibpath_overrides_runpath=yes
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15435 sys_lib_dlsearch_path_spec="/usr/lib"
15437 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15439 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15440 *) need_version=no ;;
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15444 shlibpath_var=LD_LIBRARY_PATH
15445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15447 openbsd2.[89] | openbsd2.[89].*)
15448 shlibpath_overrides_runpath=no
15451 shlibpath_overrides_runpath=yes
15455 shlibpath_overrides_runpath=yes
15460 libname_spec='$name'
15463 library_names_spec='$libname${shared_ext} $libname.a'
15464 dynamic_linker='OS/2 ld.exe'
15465 shlibpath_var=LIBPATH
15468 osf3* | osf4* | osf5*)
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15476 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=yes
15487 hardcode_into_libs=yes
15488 # ldd complains unless libraries are executable
15489 postinstall_cmds='chmod +x $lib'
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15495 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=yes
15498 if test "$with_gnu_ld" = yes; then
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507 soname_spec='${libname}${release}${shared_ext}$major'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 case $host_vendor in
15511 shlibpath_overrides_runpath=no
15513 export_dynamic_flag_spec='${wl}-Blargedynsym'
15514 runpath_var=LD_RUN_PATH
15522 shlibpath_overrides_runpath=no
15523 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15529 if test -d /usr/nec ;then
15531 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15532 soname_spec='$libname${shared_ext}.$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15538 version_type=freebsd-elf
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 hardcode_into_libs=yes
15545 if test "$with_gnu_ld" = yes; then
15546 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15547 shlibpath_overrides_runpath=no
15549 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15550 shlibpath_overrides_runpath=yes
15553 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15557 sys_lib_dlsearch_path_spec='/usr/lib'
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 shlibpath_var=LD_LIBRARY_PATH
15571 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15572 echo "${ECHO_T}$dynamic_linker" >&6; }
15573 test "$dynamic_linker" = no && can_build_shared=no
15575 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15576 if test "$GCC" = yes; then
15577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15580 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15582 hardcode_action_F77=
15583 if test -n "$hardcode_libdir_flag_spec_F77" || \
15584 test -n "$runpath_var_F77" || \
15585 test "X$hardcode_automatic_F77" = "Xyes" ; then
15587 # We can hardcode non-existant directories.
15588 if test "$hardcode_direct_F77" != no &&
15589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15590 # have to relink, otherwise we might link with an installed library
15591 # when we should be linking with a yet-to-be-installed one
15592 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15593 test "$hardcode_minus_L_F77" != no; then
15594 # Linking always hardcodes the temporary library directory.
15595 hardcode_action_F77=relink
15597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15598 hardcode_action_F77=immediate
15601 # We cannot hardcode anything, or else we can only hardcode existing
15603 hardcode_action_F77=unsupported
15605 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15606 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15608 if test "$hardcode_action_F77" = relink; then
15609 # Fast installation is not supported
15610 enable_fast_install=no
15611 elif test "$shlibpath_overrides_runpath" = yes ||
15612 test "$enable_shared" = no; then
15613 # Fast installation is not necessary
15614 enable_fast_install=needless
15618 # The else clause should only fire when bootstrapping the
15619 # libtool distribution, otherwise you forgot to ship ltmain.sh
15620 # with your package, and you will get complaints that there are
15621 # no rules to generate ltmain.sh.
15622 if test -f "$ltmain"; then
15623 # See if we are running on zsh, and set the options which allow our commands through
15624 # without removal of \ escapes.
15625 if test -n "${ZSH_VERSION+set}" ; then
15626 setopt NO_GLOB_SUBST
15628 # Now quote all the things that may contain metacharacters while being
15629 # careful not to overquote the AC_SUBSTed values. We take copies of the
15630 # variables and quote the copies for generation of the libtool script.
15631 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15635 deplibs_check_method reload_flag reload_cmds need_locks \
15636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15637 lt_cv_sys_global_symbol_to_c_name_address \
15638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15639 old_postinstall_cmds old_postuninstall_cmds \
15643 lt_prog_compiler_wl_F77 \
15644 lt_prog_compiler_pic_F77 \
15645 lt_prog_compiler_static_F77 \
15646 lt_prog_compiler_no_builtin_flag_F77 \
15647 export_dynamic_flag_spec_F77 \
15648 thread_safe_flag_spec_F77 \
15649 whole_archive_flag_spec_F77 \
15650 enable_shared_with_static_runtimes_F77 \
15651 old_archive_cmds_F77 \
15652 old_archive_from_new_cmds_F77 \
15653 predep_objects_F77 \
15654 postdep_objects_F77 \
15657 compiler_lib_search_path_F77 \
15659 archive_expsym_cmds_F77 \
15660 postinstall_cmds_F77 \
15661 postuninstall_cmds_F77 \
15662 old_archive_from_expsyms_cmds_F77 \
15663 allow_undefined_flag_F77 \
15664 no_undefined_flag_F77 \
15665 export_symbols_cmds_F77 \
15666 hardcode_libdir_flag_spec_F77 \
15667 hardcode_libdir_flag_spec_ld_F77 \
15668 hardcode_libdir_separator_F77 \
15669 hardcode_automatic_F77 \
15671 module_expsym_cmds_F77 \
15672 lt_cv_prog_compiler_c_o_F77 \
15673 exclude_expsyms_F77 \
15674 include_expsyms_F77; do
15677 old_archive_cmds_F77 | \
15678 old_archive_from_new_cmds_F77 | \
15679 archive_cmds_F77 | \
15680 archive_expsym_cmds_F77 | \
15681 module_cmds_F77 | \
15682 module_expsym_cmds_F77 | \
15683 old_archive_from_expsyms_cmds_F77 | \
15684 export_symbols_cmds_F77 | \
15685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15686 postinstall_cmds | postuninstall_cmds | \
15687 old_postinstall_cmds | old_postuninstall_cmds | \
15688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15689 # Double-quote double-evaled strings.
15690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15699 *'\$0 --fallback-echo"')
15700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15706 cat <<__EOF__ >> "$cfgfile"
15707 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15711 # Shell to use when invoking shell scripts.
15714 # Whether or not to build shared libraries.
15715 build_libtool_libs=$enable_shared
15717 # Whether or not to build static libraries.
15718 build_old_libs=$enable_static
15720 # Whether or not to add -lc for building shared libraries.
15721 build_libtool_need_lc=$archive_cmds_need_lc_F77
15723 # Whether or not to disallow shared libs when runtime libs are static
15724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15726 # Whether or not to optimize for fast installation.
15727 fast_install=$enable_fast_install
15730 host_alias=$host_alias
15734 # The build system.
15735 build_alias=$build_alias
15739 # An echo program that does not interpret backslashes.
15744 AR_FLAGS=$lt_AR_FLAGS
15749 # LTCC compiler flags.
15750 LTCFLAGS=$lt_LTCFLAGS
15752 # A language-specific compiler.
15753 CC=$lt_compiler_F77
15755 # Is the compiler the GNU C compiler?
15761 # The linker used to build libraries.
15764 # Whether we need hard or soft links.
15767 # A BSD-compatible nm program.
15770 # A symbol stripping program
15773 # Used to examine libraries when file_magic_cmd begins "file"
15774 MAGIC_CMD=$MAGIC_CMD
15776 # Used on cygwin: DLL creation program.
15779 # Used on cygwin: object dumper.
15782 # Used on cygwin: assembler.
15785 # The name of the directory that contains temporary libtool files.
15788 # How to create reloadable object files.
15789 reload_flag=$lt_reload_flag
15790 reload_cmds=$lt_reload_cmds
15792 # How to pass a linker flag through the compiler.
15793 wl=$lt_lt_prog_compiler_wl_F77
15795 # Object file suffix (normally "o").
15796 objext="$ac_objext"
15798 # Old archive suffix (normally "a").
15801 # Shared library suffix (normally ".so").
15802 shrext_cmds='$shrext_cmds'
15804 # Executable file suffix (normally "").
15807 # Additional compiler flags for building library objects.
15808 pic_flag=$lt_lt_prog_compiler_pic_F77
15811 # What is the maximum length of a command?
15812 max_cmd_len=$lt_cv_sys_max_cmd_len
15814 # Does compiler simultaneously support -c and -o options?
15815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15817 # Must we lock files when doing compilation?
15818 need_locks=$lt_need_locks
15820 # Do we need the lib prefix for modules?
15821 need_lib_prefix=$need_lib_prefix
15823 # Do we need a version for libraries?
15824 need_version=$need_version
15826 # Whether dlopen is supported.
15827 dlopen_support=$enable_dlopen
15829 # Whether dlopen of programs is supported.
15830 dlopen_self=$enable_dlopen_self
15832 # Whether dlopen of statically linked programs is supported.
15833 dlopen_self_static=$enable_dlopen_self_static
15835 # Compiler flag to prevent dynamic linking.
15836 link_static_flag=$lt_lt_prog_compiler_static_F77
15838 # Compiler flag to turn off builtin functions.
15839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15841 # Compiler flag to allow reflexive dlopens.
15842 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15844 # Compiler flag to generate shared objects directly from archives.
15845 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15847 # Compiler flag to generate thread-safe objects.
15848 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15850 # Library versioning type.
15851 version_type=$version_type
15853 # Format of library name prefix.
15854 libname_spec=$lt_libname_spec
15856 # List of archive names. First name is the real one, the rest are links.
15857 # The last name is the one that the linker finds with -lNAME.
15858 library_names_spec=$lt_library_names_spec
15860 # The coded name of the library, if different from the real name.
15861 soname_spec=$lt_soname_spec
15863 # Commands used to build and install an old-style archive.
15865 old_archive_cmds=$lt_old_archive_cmds_F77
15866 old_postinstall_cmds=$lt_old_postinstall_cmds
15867 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15869 # Create an old-style archive from a shared archive.
15870 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15872 # Create a temporary old-style archive to link instead of a shared archive.
15873 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15875 # Commands used to build and install a shared archive.
15876 archive_cmds=$lt_archive_cmds_F77
15877 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15878 postinstall_cmds=$lt_postinstall_cmds
15879 postuninstall_cmds=$lt_postuninstall_cmds
15881 # Commands used to build a loadable module (assumed same as above if empty)
15882 module_cmds=$lt_module_cmds_F77
15883 module_expsym_cmds=$lt_module_expsym_cmds_F77
15885 # Commands to strip libraries.
15886 old_striplib=$lt_old_striplib
15887 striplib=$lt_striplib
15889 # Dependencies to place before the objects being linked to create a
15891 predep_objects=$lt_predep_objects_F77
15893 # Dependencies to place after the objects being linked to create a
15895 postdep_objects=$lt_postdep_objects_F77
15897 # Dependencies to place before the objects being linked to create a
15899 predeps=$lt_predeps_F77
15901 # Dependencies to place after the objects being linked to create a
15903 postdeps=$lt_postdeps_F77
15905 # The library search path used internally by the compiler when linking
15906 # a shared library.
15907 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15909 # Method to check whether dependent libraries are shared objects.
15910 deplibs_check_method=$lt_deplibs_check_method
15912 # Command to use when deplibs_check_method == file_magic.
15913 file_magic_cmd=$lt_file_magic_cmd
15915 # Flag that allows shared libraries with undefined symbols to be built.
15916 allow_undefined_flag=$lt_allow_undefined_flag_F77
15918 # Flag that forces no undefined symbols.
15919 no_undefined_flag=$lt_no_undefined_flag_F77
15921 # Commands used to finish a libtool library installation in a directory.
15922 finish_cmds=$lt_finish_cmds
15924 # Same as above, but a single script fragment to be evaled but not shown.
15925 finish_eval=$lt_finish_eval
15927 # Take the output of nm and produce a listing of raw symbols and C names.
15928 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15930 # Transform the output of nm in a proper C declaration
15931 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15933 # Transform the output of nm in a C name address pair
15934 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15936 # This is the shared library runtime path variable.
15937 runpath_var=$runpath_var
15939 # This is the shared library path variable.
15940 shlibpath_var=$shlibpath_var
15942 # Is shlibpath searched before the hard-coded library search path?
15943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15945 # How to hardcode a shared library path into an executable.
15946 hardcode_action=$hardcode_action_F77
15948 # Whether we should hardcode library paths into libraries.
15949 hardcode_into_libs=$hardcode_into_libs
15951 # Flag to hardcode \$libdir into a binary during linking.
15952 # This must work even if \$libdir does not exist.
15953 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15955 # If ld is used when linking, flag to hardcode \$libdir into
15956 # a binary during linking. This must work even if \$libdir does
15958 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15960 # Whether we need a single -rpath flag with a separated argument.
15961 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15963 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15964 # resulting binary.
15965 hardcode_direct=$hardcode_direct_F77
15967 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15968 # resulting binary.
15969 hardcode_minus_L=$hardcode_minus_L_F77
15971 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15972 # the resulting binary.
15973 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15975 # Set to yes if building a shared library automatically hardcodes DIR into the library
15976 # and all subsequent libraries and executables linked against it.
15977 hardcode_automatic=$hardcode_automatic_F77
15979 # Variables whose values should be saved in libtool wrapper scripts and
15980 # restored at relink time.
15981 variables_saved_for_relink="$variables_saved_for_relink"
15983 # Whether libtool must link a program against all its dependency libraries.
15984 link_all_deplibs=$link_all_deplibs_F77
15986 # Compile-time system search path for libraries
15987 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15989 # Run-time system search path for libraries
15990 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15992 # Fix the shell variable \$srcfile for the compiler.
15993 fix_srcfile_path="$fix_srcfile_path_F77"
15995 # Set to yes if exported symbols are required.
15996 always_export_symbols=$always_export_symbols_F77
15998 # The commands to list exported symbols.
15999 export_symbols_cmds=$lt_export_symbols_cmds_F77
16001 # The commands to extract the exported symbol list from a shared archive.
16002 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16004 # Symbols that should not be listed in the preloaded symbols.
16005 exclude_expsyms=$lt_exclude_expsyms_F77
16007 # Symbols that must always be exported.
16008 include_expsyms=$lt_include_expsyms_F77
16010 # ### END LIBTOOL TAG CONFIG: $tagname
16016 # If there is no Makefile yet, we rely on a make rule to execute
16017 # `config.status --recheck' to rerun these tests and create the
16018 # libtool script then.
16019 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16020 if test -f "$ltmain_in"; then
16021 test -f Makefile && make "$ltmain"
16027 ac_cpp='$CPP $CPPFLAGS'
16028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16040 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16043 # Source file extension for Java test sources.
16046 # Object file extension for compiled Java test sources.
16050 # Code to be used in simple compile tests
16051 lt_simple_compile_test_code="class foo {}\n"
16053 # Code to be used in simple link tests
16054 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16058 # If no C compiler was specified, use CC.
16061 # If no C compiler flags were specified, use CFLAGS.
16062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16064 # Allow CC to be a program name with arguments.
16068 # save warnings/boilerplate of simple test code
16069 ac_outfile=conftest.$ac_objext
16070 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16072 _lt_compiler_boilerplate=`cat conftest.err`
16075 ac_outfile=conftest.$ac_objext
16076 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16078 _lt_linker_boilerplate=`cat conftest.err`
16082 # Allow CC to be a program name with arguments.
16087 for cc_temp in $compiler""; do
16089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16098 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16099 archive_cmds_need_lc_GCJ=no
16101 old_archive_cmds_GCJ=$old_archive_cmds
16104 lt_prog_compiler_no_builtin_flag_GCJ=
16106 if test "$GCC" = yes; then
16107 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16110 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16111 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 lt_cv_prog_compiler_rtti_exceptions=no
16116 ac_outfile=conftest.$ac_objext
16117 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16118 lt_compiler_flag="-fno-rtti -fno-exceptions"
16119 # Insert the option either (1) after the last *FLAGS variable, or
16120 # (2) before a word containing "conftest.", or (3) at the end.
16121 # Note that $ac_compile itself does not contain backslashes and begins
16122 # with a dollar sign (not a hyphen), so the echo should work correctly.
16123 # The option is referenced via a variable to avoid confusing sed.
16124 lt_compile=`echo "$ac_compile" | $SED \
16125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16127 -e 's:$: $lt_compiler_flag:'`
16128 (eval echo "\"\$as_me:16128: $lt_compile\"" >&5)
16129 (eval "$lt_compile" 2>conftest.err)
16131 cat conftest.err >&5
16132 echo "$as_me:16132: \$? = $ac_status" >&5
16133 if (exit $ac_status) && test -s "$ac_outfile"; then
16134 # The compiler can only warn and ignore the option if not recognized
16135 # So say no if there are warnings other than the usual output.
16136 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16139 lt_cv_prog_compiler_rtti_exceptions=yes
16145 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16146 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16149 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16156 lt_prog_compiler_wl_GCJ=
16157 lt_prog_compiler_pic_GCJ=
16158 lt_prog_compiler_static_GCJ=
16160 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16161 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16163 if test "$GCC" = yes; then
16164 lt_prog_compiler_wl_GCJ='-Wl,'
16165 lt_prog_compiler_static_GCJ='-static'
16169 # All AIX code is PIC.
16170 if test "$host_cpu" = ia64; then
16171 # AIX 5 now supports IA64 processor
16172 lt_prog_compiler_static_GCJ='-Bstatic'
16177 # FIXME: we need at least 68020 code to build shared libraries, but
16178 # adding the `-m68020' flag to GCC prevents building anything better,
16180 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16183 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16184 # PIC is the default for these OSes.
16187 mingw* | pw32* | os2*)
16188 # This hack is so that the source file can tell whether it is being
16189 # built for inclusion in a dll (and should export symbols for example).
16190 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16193 darwin* | rhapsody*)
16194 # PIC is the default on this platform
16195 # Common symbols not allowed in MH_DYLIB files
16196 lt_prog_compiler_pic_GCJ='-fno-common'
16200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16201 # Instead, we relocate shared libraries at runtime.
16205 # Just because we use GCC doesn't mean we suddenly get shared libraries
16206 # on systems that don't support them.
16207 lt_prog_compiler_can_build_shared_GCJ=no
16212 if test -d /usr/nec; then
16213 lt_prog_compiler_pic_GCJ=-Kconform_pic
16218 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16219 # not for PA HP-UX.
16225 lt_prog_compiler_pic_GCJ='-fPIC'
16231 lt_prog_compiler_pic_GCJ='-fPIC'
16235 # PORTME Check for flag to pass linker flags through the system compiler.
16238 lt_prog_compiler_wl_GCJ='-Wl,'
16239 if test "$host_cpu" = ia64; then
16240 # AIX 5 now supports IA64 processor
16241 lt_prog_compiler_static_GCJ='-Bstatic'
16243 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16247 # PIC is the default on this platform
16248 # Common symbols not allowed in MH_DYLIB files
16249 case $cc_basename in
16251 lt_prog_compiler_pic_GCJ='-qnocommon'
16252 lt_prog_compiler_wl_GCJ='-Wl,'
16257 mingw* | pw32* | os2*)
16258 # This hack is so that the source file can tell whether it is being
16259 # built for inclusion in a dll (and should export symbols for example).
16260 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16263 hpux9* | hpux10* | hpux11*)
16264 lt_prog_compiler_wl_GCJ='-Wl,'
16265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16266 # not for PA HP-UX.
16272 lt_prog_compiler_pic_GCJ='+Z'
16275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16276 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16279 irix5* | irix6* | nonstopux*)
16280 lt_prog_compiler_wl_GCJ='-Wl,'
16281 # PIC (with -KPIC) is the default.
16282 lt_prog_compiler_static_GCJ='-non_shared'
16286 lt_prog_compiler_pic_GCJ='-KPIC'
16287 lt_prog_compiler_static_GCJ='-Bstatic'
16290 linux* | k*bsd*-gnu)
16291 case $cc_basename in
16293 lt_prog_compiler_wl_GCJ='-Wl,'
16294 lt_prog_compiler_pic_GCJ='-KPIC'
16295 lt_prog_compiler_static_GCJ='-static'
16297 pgcc* | pgf77* | pgf90* | pgf95*)
16298 # Portland Group compilers (*not* the Pentium gcc compiler,
16299 # which looks to be a dead project)
16300 lt_prog_compiler_wl_GCJ='-Wl,'
16301 lt_prog_compiler_pic_GCJ='-fpic'
16302 lt_prog_compiler_static_GCJ='-Bstatic'
16305 lt_prog_compiler_wl_GCJ='-Wl,'
16306 # All Alpha code is PIC.
16307 lt_prog_compiler_static_GCJ='-non_shared'
16312 osf3* | osf4* | osf5*)
16313 lt_prog_compiler_wl_GCJ='-Wl,'
16314 # All OSF/1 code is PIC.
16315 lt_prog_compiler_static_GCJ='-non_shared'
16319 lt_prog_compiler_pic_GCJ='-KPIC'
16320 lt_prog_compiler_static_GCJ='-Bstatic'
16321 case $cc_basename in
16322 f77* | f90* | f95*)
16323 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16325 lt_prog_compiler_wl_GCJ='-Wl,';;
16330 lt_prog_compiler_wl_GCJ='-Qoption ld '
16331 lt_prog_compiler_pic_GCJ='-PIC'
16332 lt_prog_compiler_static_GCJ='-Bstatic'
16335 sysv4 | sysv4.2uw2* | sysv4.3*)
16336 lt_prog_compiler_wl_GCJ='-Wl,'
16337 lt_prog_compiler_pic_GCJ='-KPIC'
16338 lt_prog_compiler_static_GCJ='-Bstatic'
16342 if test -d /usr/nec ;then
16343 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16344 lt_prog_compiler_static_GCJ='-Bstatic'
16348 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16349 lt_prog_compiler_wl_GCJ='-Wl,'
16350 lt_prog_compiler_pic_GCJ='-KPIC'
16351 lt_prog_compiler_static_GCJ='-Bstatic'
16355 lt_prog_compiler_wl_GCJ='-Wl,'
16356 lt_prog_compiler_can_build_shared_GCJ=no
16360 lt_prog_compiler_pic_GCJ='-pic'
16361 lt_prog_compiler_static_GCJ='-Bstatic'
16365 lt_prog_compiler_can_build_shared_GCJ=no
16370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16371 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16374 # Check to make sure the PIC flag actually works.
16376 if test -n "$lt_prog_compiler_pic_GCJ"; then
16378 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16379 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16380 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 lt_prog_compiler_pic_works_GCJ=no
16384 ac_outfile=conftest.$ac_objext
16385 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16386 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16387 # Insert the option either (1) after the last *FLAGS variable, or
16388 # (2) before a word containing "conftest.", or (3) at the end.
16389 # Note that $ac_compile itself does not contain backslashes and begins
16390 # with a dollar sign (not a hyphen), so the echo should work correctly.
16391 # The option is referenced via a variable to avoid confusing sed.
16392 lt_compile=`echo "$ac_compile" | $SED \
16393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16395 -e 's:$: $lt_compiler_flag:'`
16396 (eval echo "\"\$as_me:16396: $lt_compile\"" >&5)
16397 (eval "$lt_compile" 2>conftest.err)
16399 cat conftest.err >&5
16400 echo "$as_me:16400: \$? = $ac_status" >&5
16401 if (exit $ac_status) && test -s "$ac_outfile"; then
16402 # The compiler can only warn and ignore the option if not recognized
16403 # So say no if there are warnings other than the usual output.
16404 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16407 lt_prog_compiler_pic_works_GCJ=yes
16413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16414 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16416 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16417 case $lt_prog_compiler_pic_GCJ in
16419 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16422 lt_prog_compiler_pic_GCJ=
16423 lt_prog_compiler_can_build_shared_GCJ=no
16428 # For platforms which do not support PIC, -DPIC is meaningless:
16430 lt_prog_compiler_pic_GCJ=
16433 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16438 # Check to make sure the static flag actually works.
16440 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16441 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16442 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16443 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 lt_prog_compiler_static_works_GCJ=no
16447 save_LDFLAGS="$LDFLAGS"
16448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16449 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16451 # The linker can only warn and ignore the option if not recognized
16452 # So say no if there are warnings
16453 if test -s conftest.err; then
16454 # Append any errors to the config.log.
16455 cat conftest.err 1>&5
16456 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16458 if diff conftest.exp conftest.er2 >/dev/null; then
16459 lt_prog_compiler_static_works_GCJ=yes
16462 lt_prog_compiler_static_works_GCJ=yes
16466 LDFLAGS="$save_LDFLAGS"
16469 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16470 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16472 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16475 lt_prog_compiler_static_GCJ=
16479 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16480 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16481 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 lt_cv_prog_compiler_c_o_GCJ=no
16485 $rm -r conftest 2>/dev/null
16489 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16491 lt_compiler_flag="-o out/conftest2.$ac_objext"
16492 # Insert the option either (1) after the last *FLAGS variable, or
16493 # (2) before a word containing "conftest.", or (3) at the end.
16494 # Note that $ac_compile itself does not contain backslashes and begins
16495 # with a dollar sign (not a hyphen), so the echo should work correctly.
16496 lt_compile=`echo "$ac_compile" | $SED \
16497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16499 -e 's:$: $lt_compiler_flag:'`
16500 (eval echo "\"\$as_me:16500: $lt_compile\"" >&5)
16501 (eval "$lt_compile" 2>out/conftest.err)
16503 cat out/conftest.err >&5
16504 echo "$as_me:16504: \$? = $ac_status" >&5
16505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16507 # The compiler can only warn and ignore the option if not recognized
16508 # So say no if there are warnings
16509 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16512 lt_cv_prog_compiler_c_o_GCJ=yes
16517 # SGI C++ compiler will create directory out/ii_files/ for
16518 # template instantiation
16519 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16520 $rm out/* && rmdir out
16526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16527 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16530 hard_links="nottested"
16531 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16532 # do not overwrite the value of need_locks provided by the user
16533 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16534 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16539 ln conftest.a conftest.b 2>&5 || hard_links=no
16540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16541 { echo "$as_me:$LINENO: result: $hard_links" >&5
16542 echo "${ECHO_T}$hard_links" >&6; }
16543 if test "$hard_links" = no; then
16544 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16545 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16552 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16556 allow_undefined_flag_GCJ=
16557 enable_shared_with_static_runtimes_GCJ=no
16559 archive_expsym_cmds_GCJ=
16560 old_archive_From_new_cmds_GCJ=
16561 old_archive_from_expsyms_cmds_GCJ=
16562 export_dynamic_flag_spec_GCJ=
16563 whole_archive_flag_spec_GCJ=
16564 thread_safe_flag_spec_GCJ=
16565 hardcode_libdir_flag_spec_GCJ=
16566 hardcode_libdir_flag_spec_ld_GCJ=
16567 hardcode_libdir_separator_GCJ=
16568 hardcode_direct_GCJ=no
16569 hardcode_minus_L_GCJ=no
16570 hardcode_shlibpath_var_GCJ=unsupported
16571 link_all_deplibs_GCJ=unknown
16572 hardcode_automatic_GCJ=no
16574 module_expsym_cmds_GCJ=
16575 always_export_symbols_GCJ=no
16576 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16577 # include_expsyms should be a list of space-separated symbols to be *always*
16578 # included in the symbol list
16579 include_expsyms_GCJ=
16580 # exclude_expsyms can be an extended regexp of symbols to exclude
16581 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16582 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16583 # as well as any symbol that contains `d'.
16584 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16585 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16586 # platforms (ab)use it in PIC code, but their linkers get confused if
16587 # the symbol is explicitly referenced. Since portable code cannot
16588 # rely on this symbol name, it's probably fine to never include it in
16589 # preloaded symbol tables.
16590 extract_expsyms_cmds=
16591 # Just being paranoid about ensuring that cc_basename is set.
16592 for cc_temp in $compiler""; do
16594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16603 cygwin* | mingw* | pw32*)
16604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16605 # When not using gcc, we currently assume that we are using
16606 # Microsoft Visual C++.
16607 if test "$GCC" != yes; then
16612 # we just hope/assume this is gcc and not c89 (= MSVC++)
16621 if test "$with_gnu_ld" = yes; then
16622 # If archive_cmds runs LD, not CC, wlarc should be empty
16625 # Set some defaults for GNU ld with shared library support. These
16626 # are reset later if shared libraries are not supported. Putting them
16627 # here allows them to be overridden if necessary.
16628 runpath_var=LD_RUN_PATH
16629 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16630 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16631 # ancient GNU ld didn't support --whole-archive et. al.
16632 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16633 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16635 whole_archive_flag_spec_GCJ=
16637 supports_anon_versioning=no
16638 case `$LD -v 2>/dev/null` in
16639 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16640 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16641 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16642 *\ 2.11.*) ;; # other 2.11 versions
16643 *) supports_anon_versioning=yes ;;
16646 # See if GNU ld supports shared libraries.
16648 aix3* | aix4* | aix5*)
16649 # On AIX/PPC, the GNU linker is very broken
16650 if test "$host_cpu" != ia64; then
16654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16655 *** to be unable to reliably create shared libraries on AIX.
16656 *** Therefore, libtool is disabling shared libraries support. If you
16657 *** really care for shared libraries, you may want to modify your PATH
16658 *** so that a non-GNU linker is found, and then restart.
16665 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)'
16666 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16667 hardcode_minus_L_GCJ=yes
16669 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16670 # that the semantics of dynamic libraries on AmigaOS, at least up
16671 # to version 4, is to share data among multiple programs linked
16672 # with the same dynamic library. Since this doesn't match the
16673 # behavior of shared libraries on other platforms, we can't use
16679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16680 allow_undefined_flag_GCJ=unsupported
16681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16682 # support --undefined. This deserves some investigation. FIXME
16683 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16689 cygwin* | mingw* | pw32*)
16690 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16691 # as there is no search path for DLLs.
16692 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16693 allow_undefined_flag_GCJ=unsupported
16694 always_export_symbols_GCJ=no
16695 enable_shared_with_static_runtimes_GCJ=yes
16696 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16698 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16699 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16700 # If the export-symbols file already is a .def file (1st line
16701 # is EXPORTS), use it as is; otherwise, prepend...
16702 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16703 cp $export_symbols $output_objdir/$soname.def;
16705 echo EXPORTS > $output_objdir/$soname.def;
16706 cat $export_symbols >> $output_objdir/$soname.def;
16708 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16715 hardcode_direct_GCJ=no
16716 hardcode_shlibpath_var_GCJ=no
16717 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16718 export_dynamic_flag_spec_GCJ='${wl}-E'
16719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16720 # Instead, shared libraries are loaded at an image base (0x10000000 by
16721 # default) and relocated if they conflict, which is a slow very memory
16722 # consuming and fragmenting process. To avoid this, we pick a random,
16723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16725 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16726 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16729 linux* | k*bsd*-gnu)
16730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16732 case $cc_basename,$host_cpu in
16733 pgcc*) # Portland Group C compiler
16734 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16735 tmp_addflag=' $pic_flag'
16737 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16738 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16739 tmp_addflag=' $pic_flag -Mnomain' ;;
16740 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16741 tmp_addflag=' -i_dynamic' ;;
16742 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16743 tmp_addflag=' -i_dynamic -nofor_main' ;;
16744 ifc* | ifort*) # Intel Fortran compiler
16745 tmp_addflag=' -nofor_main' ;;
16747 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16749 if test $supports_anon_versioning = yes; then
16750 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16752 $echo "local: *; };" >> $output_objdir/$libname.ver~
16753 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16755 link_all_deplibs_GCJ=no
16761 netbsd* | netbsdelf*-gnu)
16762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16763 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16766 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16767 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16772 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16776 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16777 *** create shared libraries on Solaris systems. Therefore, libtool
16778 *** is disabling shared libraries support. We urge you to upgrade GNU
16779 *** binutils to release 2.9.1 or newer. Another option is to modify
16780 *** your PATH or compiler configuration so that the native linker is
16781 *** used, and then restart.
16784 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16786 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16793 case `$LD -v 2>&1` in
16794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16798 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16799 *** reliably create shared libraries on SCO systems. Therefore, libtool
16800 *** is disabling shared libraries support. We urge you to upgrade GNU
16801 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16802 *** your PATH or compiler configuration so that the native linker is
16803 *** used, and then restart.
16808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16809 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16810 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16811 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16820 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16822 hardcode_direct_GCJ=yes
16823 hardcode_shlibpath_var_GCJ=no
16827 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16828 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16829 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16836 if test "$ld_shlibs_GCJ" = no; then
16838 hardcode_libdir_flag_spec_GCJ=
16839 export_dynamic_flag_spec_GCJ=
16840 whole_archive_flag_spec_GCJ=
16843 # PORTME fill in a description of your system's linker (not GNU ld)
16846 allow_undefined_flag_GCJ=unsupported
16847 always_export_symbols_GCJ=yes
16848 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'
16849 # Note: this linker hardcodes the directories in LIBPATH if there
16850 # are no directories specified by -L.
16851 hardcode_minus_L_GCJ=yes
16852 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16853 # Neither direct hardcoding nor static linking is supported with a
16855 hardcode_direct_GCJ=unsupported
16860 if test "$host_cpu" = ia64; then
16861 # On IA64, the linker does run time linking by default, so we don't
16862 # have to do anything special.
16863 aix_use_runtimelinking=no
16864 exp_sym_flag='-Bexport'
16867 # If we're using GNU nm, then we don't want the "-C" option.
16868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16869 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16870 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'
16872 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'
16874 aix_use_runtimelinking=no
16876 # Test if we are trying to use run time linking or normal
16877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16878 # need to do runtime linking.
16879 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16880 for ld_flag in $LDFLAGS; do
16881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16882 aix_use_runtimelinking=yes
16889 exp_sym_flag='-bexport'
16890 no_entry_flag='-bnoentry'
16893 # When large executables or shared objects are built, AIX ld can
16894 # have problems creating the table of contents. If linking a library
16895 # or program results in "error TOC overflow" add -mminimal-toc to
16896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16899 archive_cmds_GCJ=''
16900 hardcode_direct_GCJ=yes
16901 hardcode_libdir_separator_GCJ=':'
16902 link_all_deplibs_GCJ=yes
16904 if test "$GCC" = yes; then
16905 case $host_os in aix4.[012]|aix4.[012].*)
16906 # We only want to do this on AIX 4.2 and lower, the check
16907 # below for broken collect2 doesn't work under 4.3+
16908 collect2name=`${CC} -print-prog-name=collect2`
16909 if test -f "$collect2name" && \
16910 strings "$collect2name" | grep resolve_lib_name >/dev/null
16912 # We have reworked collect2
16913 hardcode_direct_GCJ=yes
16915 # We have old collect2
16916 hardcode_direct_GCJ=unsupported
16917 # It fails to find uninstalled libraries when the uninstalled
16918 # path is not listed in the libpath. Setting hardcode_minus_L
16919 # to unsupported forces relinking
16920 hardcode_minus_L_GCJ=yes
16921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16922 hardcode_libdir_separator_GCJ=
16926 shared_flag='-shared'
16927 if test "$aix_use_runtimelinking" = yes; then
16928 shared_flag="$shared_flag "'${wl}-G'
16932 if test "$host_cpu" = ia64; then
16933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16934 # chokes on -Wl,-G. The following line is correct:
16937 if test "$aix_use_runtimelinking" = yes; then
16938 shared_flag='${wl}-G'
16940 shared_flag='${wl}-bM:SRE'
16945 # It seems that -bexpall does not export symbols beginning with
16946 # underscore (_), so it is better to generate a list of symbols to export.
16947 always_export_symbols_GCJ=yes
16948 if test "$aix_use_runtimelinking" = yes; then
16949 # Warning - without using the other runtime loading flags (-brtl),
16950 # -berok will link without error, but may produce a broken library.
16951 allow_undefined_flag_GCJ='-berok'
16952 # Determine the default libpath from the value encoded in an empty executable.
16953 cat >conftest.$ac_ext <<_ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16968 rm -f conftest.$ac_objext conftest$ac_exeext
16969 if { (ac_try="$ac_link"
16970 case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_link") 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } && {
16982 test -z "$ac_c_werror_flag" ||
16983 test ! -s conftest.err
16984 } && test -s conftest$ac_exeext &&
16985 $as_test_x conftest$ac_exeext; then
16987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16989 # Check for a 64-bit object if we didn't find anything.
16990 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; }
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17000 conftest$ac_exeext conftest.$ac_ext
17001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17003 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17004 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17006 if test "$host_cpu" = ia64; then
17007 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17008 allow_undefined_flag_GCJ="-z nodefs"
17009 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17011 # Determine the default libpath from the value encoded in an empty executable.
17012 cat >conftest.$ac_ext <<_ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (ac_try="$ac_link"
17029 case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_link") 2>conftest.er1
17036 grep -v '^ *+' conftest.er1 >conftest.err
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } && {
17041 test -z "$ac_c_werror_flag" ||
17042 test ! -s conftest.err
17043 } && test -s conftest$ac_exeext &&
17044 $as_test_x conftest$ac_exeext; then
17046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17048 # Check for a 64-bit object if we didn't find anything.
17049 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; }
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 conftest$ac_exeext conftest.$ac_ext
17060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17062 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17063 # Warning - without using the other run time loading flags,
17064 # -berok will link without error, but may produce a broken library.
17065 no_undefined_flag_GCJ=' ${wl}-bernotok'
17066 allow_undefined_flag_GCJ=' ${wl}-berok'
17067 # Exported symbols can be pulled into shared objects from archives
17068 whole_archive_flag_spec_GCJ='$convenience'
17069 archive_cmds_need_lc_GCJ=yes
17070 # This is similar to how AIX traditionally builds its shared libraries.
17071 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17077 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)'
17078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17079 hardcode_minus_L_GCJ=yes
17080 # see comment about different semantics on the GNU ld section
17085 export_dynamic_flag_spec_GCJ=-rdynamic
17088 cygwin* | mingw* | pw32*)
17089 # When not using gcc, we currently assume that we are using
17090 # Microsoft Visual C++.
17091 # hardcode_libdir_flag_spec is actually meaningless, as there is
17092 # no search path for DLLs.
17093 hardcode_libdir_flag_spec_GCJ=' '
17094 allow_undefined_flag_GCJ=unsupported
17095 # Tell ltmain to make .lib files, not .a files.
17097 # Tell ltmain to make .dll files, not .so files.
17099 # FIXME: Setting linknames here is a bad hack.
17100 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17101 # The linker will automatically build a .lib file if we build a DLL.
17102 old_archive_From_new_cmds_GCJ='true'
17103 # FIXME: Should let the user specify the lib program.
17104 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17105 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17106 enable_shared_with_static_runtimes_GCJ=yes
17109 darwin* | rhapsody*)
17111 rhapsody* | darwin1.[012])
17112 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17115 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17116 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17118 case ${MACOSX_DEPLOYMENT_TARGET} in
17120 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17123 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17129 archive_cmds_need_lc_GCJ=no
17130 hardcode_direct_GCJ=no
17131 hardcode_automatic_GCJ=yes
17132 hardcode_shlibpath_var_GCJ=unsupported
17133 whole_archive_flag_spec_GCJ=''
17134 link_all_deplibs_GCJ=yes
17135 if test "$GCC" = yes ; then
17136 output_verbose_link_cmd='echo'
17137 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17138 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17140 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17141 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}'
17143 case $cc_basename in
17145 output_verbose_link_cmd='echo'
17146 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17147 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17149 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17150 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}'
17160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17162 hardcode_shlibpath_var_GCJ=no
17169 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17170 # support. Future versions do this automatically, but an explicit c++rt0.o
17171 # does not break anything, and helps significantly (at the cost of a little
17174 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17175 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17176 hardcode_direct_GCJ=yes
17177 hardcode_shlibpath_var_GCJ=no
17180 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17182 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17183 hardcode_direct_GCJ=yes
17184 hardcode_minus_L_GCJ=yes
17185 hardcode_shlibpath_var_GCJ=no
17188 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17189 freebsd* | dragonfly*)
17190 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17191 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17192 hardcode_direct_GCJ=yes
17193 hardcode_shlibpath_var_GCJ=no
17197 if test "$GCC" = yes; then
17198 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'
17200 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'
17202 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17203 hardcode_libdir_separator_GCJ=:
17204 hardcode_direct_GCJ=yes
17206 # hardcode_minus_L: Not really in the search PATH,
17207 # but as the default location of the library.
17208 hardcode_minus_L_GCJ=yes
17209 export_dynamic_flag_spec_GCJ='${wl}-E'
17213 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17214 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17216 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17218 if test "$with_gnu_ld" = no; then
17219 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17220 hardcode_libdir_separator_GCJ=:
17222 hardcode_direct_GCJ=yes
17223 export_dynamic_flag_spec_GCJ='${wl}-E'
17225 # hardcode_minus_L: Not really in the search PATH,
17226 # but as the default location of the library.
17227 hardcode_minus_L_GCJ=yes
17232 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17235 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17238 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17241 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17247 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17250 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17253 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17257 if test "$with_gnu_ld" = no; then
17258 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17259 hardcode_libdir_separator_GCJ=:
17263 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17264 hardcode_direct_GCJ=no
17265 hardcode_shlibpath_var_GCJ=no
17268 hardcode_direct_GCJ=yes
17269 export_dynamic_flag_spec_GCJ='${wl}-E'
17271 # hardcode_minus_L: Not really in the search PATH,
17272 # but as the default location of the library.
17273 hardcode_minus_L_GCJ=yes
17279 irix5* | irix6* | nonstopux*)
17280 if test "$GCC" = yes; then
17281 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'
17283 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'
17284 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17286 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17287 hardcode_libdir_separator_GCJ=:
17288 link_all_deplibs_GCJ=yes
17291 netbsd* | netbsdelf*-gnu)
17292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17293 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17295 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17298 hardcode_direct_GCJ=yes
17299 hardcode_shlibpath_var_GCJ=no
17303 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17304 hardcode_direct_GCJ=yes
17305 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17306 hardcode_libdir_separator_GCJ=:
17307 hardcode_shlibpath_var_GCJ=no
17311 hardcode_direct_GCJ=yes
17312 hardcode_shlibpath_var_GCJ=no
17313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17314 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17315 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17316 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17317 export_dynamic_flag_spec_GCJ='${wl}-E'
17320 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17321 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17322 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17325 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17326 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17333 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17334 hardcode_minus_L_GCJ=yes
17335 allow_undefined_flag_GCJ=unsupported
17336 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'
17337 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17341 if test "$GCC" = yes; then
17342 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17343 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'
17345 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17346 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'
17348 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17349 hardcode_libdir_separator_GCJ=:
17352 osf4* | osf5*) # as osf3* with the addition of -msym flag
17353 if test "$GCC" = yes; then
17354 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17355 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'
17356 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17358 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17359 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'
17360 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~
17361 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17363 # Both c and cxx compiler support -rpath directly
17364 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17366 hardcode_libdir_separator_GCJ=:
17370 no_undefined_flag_GCJ=' -z text'
17371 if test "$GCC" = yes; then
17373 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17374 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17375 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17378 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17379 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17380 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17382 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17383 hardcode_shlibpath_var_GCJ=no
17385 solaris2.[0-5] | solaris2.[0-5].*) ;;
17387 # The compiler driver will combine linker options so we
17388 # cannot just pass the convience library names through
17389 # without $wl, iff we do not link with $LD.
17390 # Luckily, gcc supports the same syntax we need for Sun Studio.
17391 # Supported since Solaris 2.6 (maybe 2.5.1?)
17394 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17396 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17399 link_all_deplibs_GCJ=yes
17403 if test "x$host_vendor" = xsequent; then
17404 # Use $CC to link under sequent, because it throws in some extra .o
17405 # files that make .init and .fini sections work.
17406 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17408 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17410 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17411 hardcode_direct_GCJ=yes
17412 hardcode_minus_L_GCJ=yes
17413 hardcode_shlibpath_var_GCJ=no
17417 case $host_vendor in
17419 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17420 hardcode_direct_GCJ=yes # is this really true???
17423 ## LD is ld it makes a PLAMLIB
17424 ## CC just makes a GrossModule.
17425 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17426 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17427 hardcode_direct_GCJ=no
17430 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17431 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17434 runpath_var='LD_RUN_PATH'
17435 hardcode_shlibpath_var_GCJ=no
17439 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17440 hardcode_shlibpath_var_GCJ=no
17441 export_dynamic_flag_spec_GCJ='-Bexport'
17445 if test -d /usr/nec; then
17446 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17447 hardcode_shlibpath_var_GCJ=no
17448 runpath_var=LD_RUN_PATH
17449 hardcode_runpath_var=yes
17454 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17455 no_undefined_flag_GCJ='${wl}-z,text'
17456 archive_cmds_need_lc_GCJ=no
17457 hardcode_shlibpath_var_GCJ=no
17458 runpath_var='LD_RUN_PATH'
17460 if test "$GCC" = yes; then
17461 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17462 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17464 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17465 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17469 sysv5* | sco3.2v5* | sco5v6*)
17470 # Note: We can NOT use -z defs as we might desire, because we do not
17471 # link with -lc, and that would cause any symbols used from libc to
17472 # always be unresolved, which means just about no library would
17473 # ever link correctly. If we're not using GNU ld we use -z text
17474 # though, which does catch some bad symbols but isn't as heavy-handed
17476 no_undefined_flag_GCJ='${wl}-z,text'
17477 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17478 archive_cmds_need_lc_GCJ=no
17479 hardcode_shlibpath_var_GCJ=no
17480 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17481 hardcode_libdir_separator_GCJ=':'
17482 link_all_deplibs_GCJ=yes
17483 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17484 runpath_var='LD_RUN_PATH'
17486 if test "$GCC" = yes; then
17487 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17488 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17490 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17491 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17497 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17498 hardcode_shlibpath_var_GCJ=no
17507 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17508 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17509 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17512 # Do we need to explicitly link libc?
17514 case "x$archive_cmds_need_lc_GCJ" in
17516 # Assume -lc should be added
17517 archive_cmds_need_lc_GCJ=yes
17519 if test "$enable_shared" = yes && test "$GCC" = yes; then
17520 case $archive_cmds_GCJ in
17522 # FIXME: we may have to deal with multi-command sequences.
17525 # Test whether the compiler implicitly links with -lc since on some
17526 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17527 # to ld, don't add -lc before -lgcc.
17528 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17529 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17534 (eval $ac_compile) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } 2>conftest.err; then
17540 libobjs=conftest.$ac_objext
17542 wl=$lt_prog_compiler_wl_GCJ
17543 pic_flag=$lt_prog_compiler_pic_GCJ
17549 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17550 allow_undefined_flag_GCJ=
17551 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17552 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }
17557 archive_cmds_need_lc_GCJ=no
17559 archive_cmds_need_lc_GCJ=yes
17561 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17563 cat conftest.err 1>&5
17566 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17567 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17574 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17576 library_names_spec=
17577 libname_spec='lib$name'
17581 postuninstall_cmds=
17585 shlibpath_overrides_runpath=unknown
17587 dynamic_linker="$host_os ld.so"
17588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17589 if test "$GCC" = yes; then
17590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17591 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17592 # if the path contains ";" then we assume it to be the separator
17593 # otherwise default to the standard path separator (i.e. ":") - it is
17594 # assumed that no part of a normal pathname contains ";" but that should
17595 # okay in the real world where ";" in dirpaths is itself problematic.
17596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17603 need_lib_prefix=unknown
17604 hardcode_into_libs=no
17606 # when you set need_version to no, make sure it does not cause -set_version
17607 # flags to be left without arguments
17608 need_version=unknown
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17614 shlibpath_var=LIBPATH
17616 # AIX 3 has no versioning support, so we append a major version to the name.
17617 soname_spec='${libname}${release}${shared_ext}$major'
17624 hardcode_into_libs=yes
17625 if test "$host_cpu" = ia64; then
17626 # AIX 5 supports IA64
17627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17628 shlibpath_var=LD_LIBRARY_PATH
17630 # With GCC up to 2.95.x, collect2 would create an import file
17631 # for dependence libraries. The import file would start with
17632 # the line `#! .'. This would cause the generated library to
17633 # depend on `.', always an invalid library. This was fixed in
17634 # development snapshots of GCC prior to 3.0.
17636 aix4 | aix4.[01] | aix4.[01].*)
17637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17639 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17642 can_build_shared=no
17646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17647 # soname into executable. Probably we can add versioning support to
17648 # collect2, so additional links can be useful in future.
17649 if test "$aix_use_runtimelinking" = yes; then
17650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17651 # instead of lib<name>.a to let people know that these are not
17652 # typical AIX shared libraries.
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 # We preserve .a as extension for shared libraries through AIX4.2
17656 # and later when we are not doing run time linking.
17657 library_names_spec='${libname}${release}.a $libname.a'
17658 soname_spec='${libname}${release}${shared_ext}$major'
17660 shlibpath_var=LIBPATH
17665 library_names_spec='$libname.ixlibrary $libname.a'
17666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17667 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'
17671 library_names_spec='${libname}${shared_ext}'
17672 dynamic_linker="$host_os ld.so"
17673 shlibpath_var=LIBRARY_PATH
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17682 shlibpath_var=LD_LIBRARY_PATH
17683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17685 # the default ld.so.conf also contains /usr/contrib/lib and
17686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17687 # libtool to hard-code these into programs
17690 cygwin* | mingw* | pw32*)
17691 version_type=windows
17696 case $GCC,$host_os in
17697 yes,cygwin* | yes,mingw* | yes,pw32*)
17698 library_names_spec='$libname.dll.a'
17699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17700 postinstall_cmds='base_file=`basename \${file}`~
17701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17702 dldir=$destdir/`dirname \$dlpath`~
17703 test -d \$dldir || mkdir -p \$dldir~
17704 $install_prog $dir/$dlname \$dldir/$dlname~
17705 chmod a+x \$dldir/$dlname'
17706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17707 dlpath=$dir/\$dldll~
17709 shlibpath_overrides_runpath=yes
17713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17714 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17715 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17718 # MinGW DLLs use traditional 'lib' prefix
17719 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17721 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17722 # It is most probably a Windows format PATH printed by
17723 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17724 # path with ; separators, and with drive letters. We can handle the
17725 # drive letters (cygwin fileutils understands them), so leave them,
17726 # especially as we might pass files found there to a mingw objdump,
17727 # which wouldn't understand a cygwinified path. Ahh.
17728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17734 # pw32 DLLs use 'pw' prefix rather than 'lib'
17735 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17744 dynamic_linker='Win32 ld.exe'
17745 # FIXME: first we should search . and the directory the executable is in
17749 darwin* | rhapsody*)
17750 dynamic_linker="$host_os dyld"
17751 version_type=darwin
17754 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17755 soname_spec='${libname}${release}${major}$shared_ext'
17756 shlibpath_overrides_runpath=yes
17757 shlibpath_var=DYLD_LIBRARY_PATH
17758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17759 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17760 if test "$GCC" = yes; then
17761 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"`
17763 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17765 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 shlibpath_var=LD_LIBRARY_PATH
17781 freebsd* | dragonfly*)
17782 # DragonFly does not have aout. When/if they implement a new
17783 # versioning mechanism, adjust this.
17784 if test -x /usr/bin/objformat; then
17785 objformat=`/usr/bin/objformat`
17788 freebsd[123]*) objformat=aout ;;
17789 *) objformat=elf ;;
17792 version_type=freebsd-$objformat
17793 case $version_type in
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17804 shlibpath_var=LD_LIBRARY_PATH
17807 shlibpath_overrides_runpath=yes
17809 freebsd3.[01]* | freebsdelf3.[01]*)
17810 shlibpath_overrides_runpath=yes
17811 hardcode_into_libs=yes
17813 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17814 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17815 shlibpath_overrides_runpath=no
17816 hardcode_into_libs=yes
17818 freebsd*) # from 4.6 on
17819 shlibpath_overrides_runpath=yes
17820 hardcode_into_libs=yes
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 shlibpath_var=LD_LIBRARY_PATH
17832 hardcode_into_libs=yes
17835 hpux9* | hpux10* | hpux11*)
17836 # Give a soname corresponding to the major version so that dld.sl refuses to
17837 # link against other versions.
17844 hardcode_into_libs=yes
17845 dynamic_linker="$host_os dld.so"
17846 shlibpath_var=LD_LIBRARY_PATH
17847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849 soname_spec='${libname}${release}${shared_ext}$major'
17850 if test "X$HPUX_IA64_MODE" = X32; then
17851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17859 hardcode_into_libs=yes
17860 dynamic_linker="$host_os dld.sl"
17861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17870 dynamic_linker="$host_os dld.sl"
17871 shlibpath_var=SHLIB_PATH
17872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17874 soname_spec='${libname}${release}${shared_ext}$major'
17877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17878 postinstall_cmds='chmod 555 $lib'
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=no
17890 hardcode_into_libs=yes
17893 irix5* | irix6* | nonstopux*)
17895 nonstopux*) version_type=nonstopux ;;
17897 if test "$lt_cv_prog_gnu_ld" = yes; then
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17908 irix5* | nonstopux*)
17909 libsuff= shlibsuff=
17912 case $LD in # libtool.m4 will add one of these switches to LD
17913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17914 libsuff= shlibsuff= libmagic=32-bit;;
17915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17916 libsuff=32 shlibsuff=N32 libmagic=N32;;
17917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17919 *) libsuff= shlibsuff= libmagic=never-match;;
17923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17924 shlibpath_overrides_runpath=no
17925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17927 hardcode_into_libs=yes
17930 # No shared lib support for Linux oldld, aout, or coff.
17931 linux*oldld* | linux*aout* | linux*coff*)
17935 # This must be Linux ELF.
17936 linux* | k*bsd*-gnu)
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 soname_spec='${libname}${release}${shared_ext}$major'
17942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 shlibpath_overrides_runpath=no
17945 # This implies no fast_install, which is unacceptable.
17946 # Some rework will be needed to allow for fast_install
17947 # before this can be enabled.
17948 hardcode_into_libs=yes
17950 # Append ld.so.conf contents to the search path
17951 if test -f /etc/ld.so.conf; then
17952 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17956 # We used to test for /lib/ld.so.1 and disable shared libraries on
17957 # powerpc, because MkLinux only supported shared libraries with the
17958 # GNU dynamic linker. Since this was broken with cross compilers,
17959 # most powerpc-linux boxes support dynamic linking these days and
17960 # people can always --disable-shared, the test was removed, and we
17961 # assume the GNU/Linux dynamic linker is in use.
17962 dynamic_linker='GNU/Linux ld.so'
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 shlibpath_var=LD_LIBRARY_PATH
17972 shlibpath_overrides_runpath=no
17973 hardcode_into_libs=yes
17974 dynamic_linker='NetBSD ld.elf_so'
17981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17984 dynamic_linker='NetBSD (a.out) ld.so'
17986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17987 soname_spec='${libname}${release}${shared_ext}$major'
17988 dynamic_linker='NetBSD ld.elf_so'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 shlibpath_overrides_runpath=yes
17992 hardcode_into_libs=yes
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998 shlibpath_var=LD_LIBRARY_PATH
17999 shlibpath_overrides_runpath=yes
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007 soname_spec='${libname}${release}${shared_ext}$major'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 shlibpath_overrides_runpath=yes
18014 sys_lib_dlsearch_path_spec="/usr/lib"
18016 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18018 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18019 *) need_version=no ;;
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18026 openbsd2.[89] | openbsd2.[89].*)
18027 shlibpath_overrides_runpath=no
18030 shlibpath_overrides_runpath=yes
18034 shlibpath_overrides_runpath=yes
18039 libname_spec='$name'
18042 library_names_spec='$libname${shared_ext} $libname.a'
18043 dynamic_linker='OS/2 ld.exe'
18044 shlibpath_var=LIBPATH
18047 osf3* | osf4* | osf5*)
18051 soname_spec='${libname}${release}${shared_ext}$major'
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 shlibpath_var=LD_LIBRARY_PATH
18054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18055 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=yes
18066 hardcode_into_libs=yes
18067 # ldd complains unless libraries are executable
18068 postinstall_cmds='chmod +x $lib'
18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18075 shlibpath_var=LD_LIBRARY_PATH
18076 shlibpath_overrides_runpath=yes
18077 if test "$with_gnu_ld" = yes; then
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 case $host_vendor in
18090 shlibpath_overrides_runpath=no
18092 export_dynamic_flag_spec='${wl}-Blargedynsym'
18093 runpath_var=LD_RUN_PATH
18101 shlibpath_overrides_runpath=no
18102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18108 if test -d /usr/nec ;then
18110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18111 soname_spec='$libname${shared_ext}.$major'
18112 shlibpath_var=LD_LIBRARY_PATH
18116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18117 version_type=freebsd-elf
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 shlibpath_var=LD_LIBRARY_PATH
18123 hardcode_into_libs=yes
18124 if test "$with_gnu_ld" = yes; then
18125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18126 shlibpath_overrides_runpath=no
18128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18129 shlibpath_overrides_runpath=yes
18132 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18136 sys_lib_dlsearch_path_spec='/usr/lib'
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18142 soname_spec='${libname}${release}${shared_ext}$major'
18143 shlibpath_var=LD_LIBRARY_PATH
18150 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18151 echo "${ECHO_T}$dynamic_linker" >&6; }
18152 test "$dynamic_linker" = no && can_build_shared=no
18154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18155 if test "$GCC" = yes; then
18156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18159 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18160 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18161 hardcode_action_GCJ=
18162 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18163 test -n "$runpath_var_GCJ" || \
18164 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18166 # We can hardcode non-existant directories.
18167 if test "$hardcode_direct_GCJ" != no &&
18168 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18169 # have to relink, otherwise we might link with an installed library
18170 # when we should be linking with a yet-to-be-installed one
18171 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18172 test "$hardcode_minus_L_GCJ" != no; then
18173 # Linking always hardcodes the temporary library directory.
18174 hardcode_action_GCJ=relink
18176 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18177 hardcode_action_GCJ=immediate
18180 # We cannot hardcode anything, or else we can only hardcode existing
18182 hardcode_action_GCJ=unsupported
18184 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18185 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18187 if test "$hardcode_action_GCJ" = relink; then
18188 # Fast installation is not supported
18189 enable_fast_install=no
18190 elif test "$shlibpath_overrides_runpath" = yes ||
18191 test "$enable_shared" = no; then
18192 # Fast installation is not necessary
18193 enable_fast_install=needless
18197 # The else clause should only fire when bootstrapping the
18198 # libtool distribution, otherwise you forgot to ship ltmain.sh
18199 # with your package, and you will get complaints that there are
18200 # no rules to generate ltmain.sh.
18201 if test -f "$ltmain"; then
18202 # See if we are running on zsh, and set the options which allow our commands through
18203 # without removal of \ escapes.
18204 if test -n "${ZSH_VERSION+set}" ; then
18205 setopt NO_GLOB_SUBST
18207 # Now quote all the things that may contain metacharacters while being
18208 # careful not to overquote the AC_SUBSTed values. We take copies of the
18209 # variables and quote the copies for generation of the libtool script.
18210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18212 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18213 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18214 deplibs_check_method reload_flag reload_cmds need_locks \
18215 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18216 lt_cv_sys_global_symbol_to_c_name_address \
18217 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18218 old_postinstall_cmds old_postuninstall_cmds \
18222 lt_prog_compiler_wl_GCJ \
18223 lt_prog_compiler_pic_GCJ \
18224 lt_prog_compiler_static_GCJ \
18225 lt_prog_compiler_no_builtin_flag_GCJ \
18226 export_dynamic_flag_spec_GCJ \
18227 thread_safe_flag_spec_GCJ \
18228 whole_archive_flag_spec_GCJ \
18229 enable_shared_with_static_runtimes_GCJ \
18230 old_archive_cmds_GCJ \
18231 old_archive_from_new_cmds_GCJ \
18232 predep_objects_GCJ \
18233 postdep_objects_GCJ \
18236 compiler_lib_search_path_GCJ \
18238 archive_expsym_cmds_GCJ \
18239 postinstall_cmds_GCJ \
18240 postuninstall_cmds_GCJ \
18241 old_archive_from_expsyms_cmds_GCJ \
18242 allow_undefined_flag_GCJ \
18243 no_undefined_flag_GCJ \
18244 export_symbols_cmds_GCJ \
18245 hardcode_libdir_flag_spec_GCJ \
18246 hardcode_libdir_flag_spec_ld_GCJ \
18247 hardcode_libdir_separator_GCJ \
18248 hardcode_automatic_GCJ \
18250 module_expsym_cmds_GCJ \
18251 lt_cv_prog_compiler_c_o_GCJ \
18252 exclude_expsyms_GCJ \
18253 include_expsyms_GCJ; do
18256 old_archive_cmds_GCJ | \
18257 old_archive_from_new_cmds_GCJ | \
18258 archive_cmds_GCJ | \
18259 archive_expsym_cmds_GCJ | \
18260 module_cmds_GCJ | \
18261 module_expsym_cmds_GCJ | \
18262 old_archive_from_expsyms_cmds_GCJ | \
18263 export_symbols_cmds_GCJ | \
18264 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18265 postinstall_cmds | postuninstall_cmds | \
18266 old_postinstall_cmds | old_postuninstall_cmds | \
18267 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18268 # Double-quote double-evaled strings.
18269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18278 *'\$0 --fallback-echo"')
18279 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18285 cat <<__EOF__ >> "$cfgfile"
18286 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18290 # Shell to use when invoking shell scripts.
18293 # Whether or not to build shared libraries.
18294 build_libtool_libs=$enable_shared
18296 # Whether or not to build static libraries.
18297 build_old_libs=$enable_static
18299 # Whether or not to add -lc for building shared libraries.
18300 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18302 # Whether or not to disallow shared libs when runtime libs are static
18303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18305 # Whether or not to optimize for fast installation.
18306 fast_install=$enable_fast_install
18309 host_alias=$host_alias
18313 # The build system.
18314 build_alias=$build_alias
18318 # An echo program that does not interpret backslashes.
18323 AR_FLAGS=$lt_AR_FLAGS
18328 # LTCC compiler flags.
18329 LTCFLAGS=$lt_LTCFLAGS
18331 # A language-specific compiler.
18332 CC=$lt_compiler_GCJ
18334 # Is the compiler the GNU C compiler?
18340 # The linker used to build libraries.
18343 # Whether we need hard or soft links.
18346 # A BSD-compatible nm program.
18349 # A symbol stripping program
18352 # Used to examine libraries when file_magic_cmd begins "file"
18353 MAGIC_CMD=$MAGIC_CMD
18355 # Used on cygwin: DLL creation program.
18358 # Used on cygwin: object dumper.
18361 # Used on cygwin: assembler.
18364 # The name of the directory that contains temporary libtool files.
18367 # How to create reloadable object files.
18368 reload_flag=$lt_reload_flag
18369 reload_cmds=$lt_reload_cmds
18371 # How to pass a linker flag through the compiler.
18372 wl=$lt_lt_prog_compiler_wl_GCJ
18374 # Object file suffix (normally "o").
18375 objext="$ac_objext"
18377 # Old archive suffix (normally "a").
18380 # Shared library suffix (normally ".so").
18381 shrext_cmds='$shrext_cmds'
18383 # Executable file suffix (normally "").
18386 # Additional compiler flags for building library objects.
18387 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18390 # What is the maximum length of a command?
18391 max_cmd_len=$lt_cv_sys_max_cmd_len
18393 # Does compiler simultaneously support -c and -o options?
18394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18396 # Must we lock files when doing compilation?
18397 need_locks=$lt_need_locks
18399 # Do we need the lib prefix for modules?
18400 need_lib_prefix=$need_lib_prefix
18402 # Do we need a version for libraries?
18403 need_version=$need_version
18405 # Whether dlopen is supported.
18406 dlopen_support=$enable_dlopen
18408 # Whether dlopen of programs is supported.
18409 dlopen_self=$enable_dlopen_self
18411 # Whether dlopen of statically linked programs is supported.
18412 dlopen_self_static=$enable_dlopen_self_static
18414 # Compiler flag to prevent dynamic linking.
18415 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18417 # Compiler flag to turn off builtin functions.
18418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18420 # Compiler flag to allow reflexive dlopens.
18421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18423 # Compiler flag to generate shared objects directly from archives.
18424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18426 # Compiler flag to generate thread-safe objects.
18427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18429 # Library versioning type.
18430 version_type=$version_type
18432 # Format of library name prefix.
18433 libname_spec=$lt_libname_spec
18435 # List of archive names. First name is the real one, the rest are links.
18436 # The last name is the one that the linker finds with -lNAME.
18437 library_names_spec=$lt_library_names_spec
18439 # The coded name of the library, if different from the real name.
18440 soname_spec=$lt_soname_spec
18442 # Commands used to build and install an old-style archive.
18444 old_archive_cmds=$lt_old_archive_cmds_GCJ
18445 old_postinstall_cmds=$lt_old_postinstall_cmds
18446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18448 # Create an old-style archive from a shared archive.
18449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18451 # Create a temporary old-style archive to link instead of a shared archive.
18452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18454 # Commands used to build and install a shared archive.
18455 archive_cmds=$lt_archive_cmds_GCJ
18456 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18457 postinstall_cmds=$lt_postinstall_cmds
18458 postuninstall_cmds=$lt_postuninstall_cmds
18460 # Commands used to build a loadable module (assumed same as above if empty)
18461 module_cmds=$lt_module_cmds_GCJ
18462 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18464 # Commands to strip libraries.
18465 old_striplib=$lt_old_striplib
18466 striplib=$lt_striplib
18468 # Dependencies to place before the objects being linked to create a
18470 predep_objects=$lt_predep_objects_GCJ
18472 # Dependencies to place after the objects being linked to create a
18474 postdep_objects=$lt_postdep_objects_GCJ
18476 # Dependencies to place before the objects being linked to create a
18478 predeps=$lt_predeps_GCJ
18480 # Dependencies to place after the objects being linked to create a
18482 postdeps=$lt_postdeps_GCJ
18484 # The library search path used internally by the compiler when linking
18485 # a shared library.
18486 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18488 # Method to check whether dependent libraries are shared objects.
18489 deplibs_check_method=$lt_deplibs_check_method
18491 # Command to use when deplibs_check_method == file_magic.
18492 file_magic_cmd=$lt_file_magic_cmd
18494 # Flag that allows shared libraries with undefined symbols to be built.
18495 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18497 # Flag that forces no undefined symbols.
18498 no_undefined_flag=$lt_no_undefined_flag_GCJ
18500 # Commands used to finish a libtool library installation in a directory.
18501 finish_cmds=$lt_finish_cmds
18503 # Same as above, but a single script fragment to be evaled but not shown.
18504 finish_eval=$lt_finish_eval
18506 # Take the output of nm and produce a listing of raw symbols and C names.
18507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18509 # Transform the output of nm in a proper C declaration
18510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18512 # Transform the output of nm in a C name address pair
18513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18515 # This is the shared library runtime path variable.
18516 runpath_var=$runpath_var
18518 # This is the shared library path variable.
18519 shlibpath_var=$shlibpath_var
18521 # Is shlibpath searched before the hard-coded library search path?
18522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18524 # How to hardcode a shared library path into an executable.
18525 hardcode_action=$hardcode_action_GCJ
18527 # Whether we should hardcode library paths into libraries.
18528 hardcode_into_libs=$hardcode_into_libs
18530 # Flag to hardcode \$libdir into a binary during linking.
18531 # This must work even if \$libdir does not exist.
18532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18534 # If ld is used when linking, flag to hardcode \$libdir into
18535 # a binary during linking. This must work even if \$libdir does
18537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18539 # Whether we need a single -rpath flag with a separated argument.
18540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18543 # resulting binary.
18544 hardcode_direct=$hardcode_direct_GCJ
18546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18547 # resulting binary.
18548 hardcode_minus_L=$hardcode_minus_L_GCJ
18550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18551 # the resulting binary.
18552 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18554 # Set to yes if building a shared library automatically hardcodes DIR into the library
18555 # and all subsequent libraries and executables linked against it.
18556 hardcode_automatic=$hardcode_automatic_GCJ
18558 # Variables whose values should be saved in libtool wrapper scripts and
18559 # restored at relink time.
18560 variables_saved_for_relink="$variables_saved_for_relink"
18562 # Whether libtool must link a program against all its dependency libraries.
18563 link_all_deplibs=$link_all_deplibs_GCJ
18565 # Compile-time system search path for libraries
18566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18568 # Run-time system search path for libraries
18569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18571 # Fix the shell variable \$srcfile for the compiler.
18572 fix_srcfile_path="$fix_srcfile_path_GCJ"
18574 # Set to yes if exported symbols are required.
18575 always_export_symbols=$always_export_symbols_GCJ
18577 # The commands to list exported symbols.
18578 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18580 # The commands to extract the exported symbol list from a shared archive.
18581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18583 # Symbols that should not be listed in the preloaded symbols.
18584 exclude_expsyms=$lt_exclude_expsyms_GCJ
18586 # Symbols that must always be exported.
18587 include_expsyms=$lt_include_expsyms_GCJ
18589 # ### END LIBTOOL TAG CONFIG: $tagname
18595 # If there is no Makefile yet, we rely on a make rule to execute
18596 # `config.status --recheck' to rerun these tests and create the
18597 # libtool script then.
18598 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18599 if test -f "$ltmain_in"; then
18600 test -f Makefile && make "$ltmain"
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18621 # Source file extension for RC test sources.
18624 # Object file extension for compiled RC test sources.
18628 # Code to be used in simple compile tests
18629 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18631 # Code to be used in simple link tests
18632 lt_simple_link_test_code="$lt_simple_compile_test_code"
18634 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18636 # If no C compiler was specified, use CC.
18639 # If no C compiler flags were specified, use CFLAGS.
18640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18642 # Allow CC to be a program name with arguments.
18646 # save warnings/boilerplate of simple test code
18647 ac_outfile=conftest.$ac_objext
18648 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18650 _lt_compiler_boilerplate=`cat conftest.err`
18653 ac_outfile=conftest.$ac_objext
18654 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18656 _lt_linker_boilerplate=`cat conftest.err`
18660 # Allow CC to be a program name with arguments.
18665 for cc_temp in $compiler""; do
18667 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18668 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18673 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18675 lt_cv_prog_compiler_c_o_RC=yes
18677 # The else clause should only fire when bootstrapping the
18678 # libtool distribution, otherwise you forgot to ship ltmain.sh
18679 # with your package, and you will get complaints that there are
18680 # no rules to generate ltmain.sh.
18681 if test -f "$ltmain"; then
18682 # See if we are running on zsh, and set the options which allow our commands through
18683 # without removal of \ escapes.
18684 if test -n "${ZSH_VERSION+set}" ; then
18685 setopt NO_GLOB_SUBST
18687 # Now quote all the things that may contain metacharacters while being
18688 # careful not to overquote the AC_SUBSTed values. We take copies of the
18689 # variables and quote the copies for generation of the libtool script.
18690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18694 deplibs_check_method reload_flag reload_cmds need_locks \
18695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18696 lt_cv_sys_global_symbol_to_c_name_address \
18697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18698 old_postinstall_cmds old_postuninstall_cmds \
18702 lt_prog_compiler_wl_RC \
18703 lt_prog_compiler_pic_RC \
18704 lt_prog_compiler_static_RC \
18705 lt_prog_compiler_no_builtin_flag_RC \
18706 export_dynamic_flag_spec_RC \
18707 thread_safe_flag_spec_RC \
18708 whole_archive_flag_spec_RC \
18709 enable_shared_with_static_runtimes_RC \
18710 old_archive_cmds_RC \
18711 old_archive_from_new_cmds_RC \
18712 predep_objects_RC \
18713 postdep_objects_RC \
18716 compiler_lib_search_path_RC \
18718 archive_expsym_cmds_RC \
18719 postinstall_cmds_RC \
18720 postuninstall_cmds_RC \
18721 old_archive_from_expsyms_cmds_RC \
18722 allow_undefined_flag_RC \
18723 no_undefined_flag_RC \
18724 export_symbols_cmds_RC \
18725 hardcode_libdir_flag_spec_RC \
18726 hardcode_libdir_flag_spec_ld_RC \
18727 hardcode_libdir_separator_RC \
18728 hardcode_automatic_RC \
18730 module_expsym_cmds_RC \
18731 lt_cv_prog_compiler_c_o_RC \
18732 exclude_expsyms_RC \
18733 include_expsyms_RC; do
18736 old_archive_cmds_RC | \
18737 old_archive_from_new_cmds_RC | \
18738 archive_cmds_RC | \
18739 archive_expsym_cmds_RC | \
18741 module_expsym_cmds_RC | \
18742 old_archive_from_expsyms_cmds_RC | \
18743 export_symbols_cmds_RC | \
18744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18745 postinstall_cmds | postuninstall_cmds | \
18746 old_postinstall_cmds | old_postuninstall_cmds | \
18747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18748 # Double-quote double-evaled strings.
18749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18758 *'\$0 --fallback-echo"')
18759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18765 cat <<__EOF__ >> "$cfgfile"
18766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18770 # Shell to use when invoking shell scripts.
18773 # Whether or not to build shared libraries.
18774 build_libtool_libs=$enable_shared
18776 # Whether or not to build static libraries.
18777 build_old_libs=$enable_static
18779 # Whether or not to add -lc for building shared libraries.
18780 build_libtool_need_lc=$archive_cmds_need_lc_RC
18782 # Whether or not to disallow shared libs when runtime libs are static
18783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18785 # Whether or not to optimize for fast installation.
18786 fast_install=$enable_fast_install
18789 host_alias=$host_alias
18793 # The build system.
18794 build_alias=$build_alias
18798 # An echo program that does not interpret backslashes.
18803 AR_FLAGS=$lt_AR_FLAGS
18808 # LTCC compiler flags.
18809 LTCFLAGS=$lt_LTCFLAGS
18811 # A language-specific compiler.
18814 # Is the compiler the GNU C compiler?
18820 # The linker used to build libraries.
18823 # Whether we need hard or soft links.
18826 # A BSD-compatible nm program.
18829 # A symbol stripping program
18832 # Used to examine libraries when file_magic_cmd begins "file"
18833 MAGIC_CMD=$MAGIC_CMD
18835 # Used on cygwin: DLL creation program.
18838 # Used on cygwin: object dumper.
18841 # Used on cygwin: assembler.
18844 # The name of the directory that contains temporary libtool files.
18847 # How to create reloadable object files.
18848 reload_flag=$lt_reload_flag
18849 reload_cmds=$lt_reload_cmds
18851 # How to pass a linker flag through the compiler.
18852 wl=$lt_lt_prog_compiler_wl_RC
18854 # Object file suffix (normally "o").
18855 objext="$ac_objext"
18857 # Old archive suffix (normally "a").
18860 # Shared library suffix (normally ".so").
18861 shrext_cmds='$shrext_cmds'
18863 # Executable file suffix (normally "").
18866 # Additional compiler flags for building library objects.
18867 pic_flag=$lt_lt_prog_compiler_pic_RC
18870 # What is the maximum length of a command?
18871 max_cmd_len=$lt_cv_sys_max_cmd_len
18873 # Does compiler simultaneously support -c and -o options?
18874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18876 # Must we lock files when doing compilation?
18877 need_locks=$lt_need_locks
18879 # Do we need the lib prefix for modules?
18880 need_lib_prefix=$need_lib_prefix
18882 # Do we need a version for libraries?
18883 need_version=$need_version
18885 # Whether dlopen is supported.
18886 dlopen_support=$enable_dlopen
18888 # Whether dlopen of programs is supported.
18889 dlopen_self=$enable_dlopen_self
18891 # Whether dlopen of statically linked programs is supported.
18892 dlopen_self_static=$enable_dlopen_self_static
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static_RC
18897 # Compiler flag to turn off builtin functions.
18898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18906 # Compiler flag to generate thread-safe objects.
18907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18909 # Library versioning type.
18910 version_type=$version_type
18912 # Format of library name prefix.
18913 libname_spec=$lt_libname_spec
18915 # List of archive names. First name is the real one, the rest are links.
18916 # The last name is the one that the linker finds with -lNAME.
18917 library_names_spec=$lt_library_names_spec
18919 # The coded name of the library, if different from the real name.
18920 soname_spec=$lt_soname_spec
18922 # Commands used to build and install an old-style archive.
18924 old_archive_cmds=$lt_old_archive_cmds_RC
18925 old_postinstall_cmds=$lt_old_postinstall_cmds
18926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18928 # Create an old-style archive from a shared archive.
18929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18931 # Create a temporary old-style archive to link instead of a shared archive.
18932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18934 # Commands used to build and install a shared archive.
18935 archive_cmds=$lt_archive_cmds_RC
18936 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18937 postinstall_cmds=$lt_postinstall_cmds
18938 postuninstall_cmds=$lt_postuninstall_cmds
18940 # Commands used to build a loadable module (assumed same as above if empty)
18941 module_cmds=$lt_module_cmds_RC
18942 module_expsym_cmds=$lt_module_expsym_cmds_RC
18944 # Commands to strip libraries.
18945 old_striplib=$lt_old_striplib
18946 striplib=$lt_striplib
18948 # Dependencies to place before the objects being linked to create a
18950 predep_objects=$lt_predep_objects_RC
18952 # Dependencies to place after the objects being linked to create a
18954 postdep_objects=$lt_postdep_objects_RC
18956 # Dependencies to place before the objects being linked to create a
18958 predeps=$lt_predeps_RC
18960 # Dependencies to place after the objects being linked to create a
18962 postdeps=$lt_postdeps_RC
18964 # The library search path used internally by the compiler when linking
18965 # a shared library.
18966 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18968 # Method to check whether dependent libraries are shared objects.
18969 deplibs_check_method=$lt_deplibs_check_method
18971 # Command to use when deplibs_check_method == file_magic.
18972 file_magic_cmd=$lt_file_magic_cmd
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag_RC
18977 # Flag that forces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag_RC
18980 # Commands used to finish a libtool library installation in a directory.
18981 finish_cmds=$lt_finish_cmds
18983 # Same as above, but a single script fragment to be evaled but not shown.
18984 finish_eval=$lt_finish_eval
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18989 # Transform the output of nm in a proper C declaration
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18992 # Transform the output of nm in a C name address pair
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18995 # This is the shared library runtime path variable.
18996 runpath_var=$runpath_var
18998 # This is the shared library path variable.
18999 shlibpath_var=$shlibpath_var
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19004 # How to hardcode a shared library path into an executable.
19005 hardcode_action=$hardcode_action_RC
19007 # Whether we should hardcode library paths into libraries.
19008 hardcode_into_libs=$hardcode_into_libs
19010 # Flag to hardcode \$libdir into a binary during linking.
19011 # This must work even if \$libdir does not exist.
19012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19014 # If ld is used when linking, flag to hardcode \$libdir into
19015 # a binary during linking. This must work even if \$libdir does
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19019 # Whether we need a single -rpath flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19023 # resulting binary.
19024 hardcode_direct=$hardcode_direct_RC
19026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19027 # resulting binary.
19028 hardcode_minus_L=$hardcode_minus_L_RC
19030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19031 # the resulting binary.
19032 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19034 # Set to yes if building a shared library automatically hardcodes DIR into the library
19035 # and all subsequent libraries and executables linked against it.
19036 hardcode_automatic=$hardcode_automatic_RC
19038 # Variables whose values should be saved in libtool wrapper scripts and
19039 # restored at relink time.
19040 variables_saved_for_relink="$variables_saved_for_relink"
19042 # Whether libtool must link a program against all its dependency libraries.
19043 link_all_deplibs=$link_all_deplibs_RC
19045 # Compile-time system search path for libraries
19046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19048 # Run-time system search path for libraries
19049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19051 # Fix the shell variable \$srcfile for the compiler.
19052 fix_srcfile_path="$fix_srcfile_path_RC"
19054 # Set to yes if exported symbols are required.
19055 always_export_symbols=$always_export_symbols_RC
19057 # The commands to list exported symbols.
19058 export_symbols_cmds=$lt_export_symbols_cmds_RC
19060 # The commands to extract the exported symbol list from a shared archive.
19061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19063 # Symbols that should not be listed in the preloaded symbols.
19064 exclude_expsyms=$lt_exclude_expsyms_RC
19066 # Symbols that must always be exported.
19067 include_expsyms=$lt_include_expsyms_RC
19069 # ### END LIBTOOL TAG CONFIG: $tagname
19075 # If there is no Makefile yet, we rely on a make rule to execute
19076 # `config.status --recheck' to rerun these tests and create the
19077 # libtool script then.
19078 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19079 if test -f "$ltmain_in"; then
19080 test -f Makefile && make "$ltmain"
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19097 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19098 { (exit 1); exit 1; }; }
19102 # Append the new tag name to the list of available tags.
19103 if test -n "$tagname" ; then
19104 available_tags="$available_tags $tagname"
19110 # Now substitute the updated list of available tags.
19111 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19112 mv "${ofile}T" "$ofile"
19116 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19117 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19118 { (exit 1); exit 1; }; }
19124 # This can be used to rebuild libtool when needed
19125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19127 # Always use our own libtool.
19128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19130 # Prevent multiple expansion
19153 # Check whether --with-transport-agent was given.
19154 if test "${with_transport_agent+set}" = set; then
19155 withval=$with_transport_agent; transport_agent="$withval"
19157 transport_agent="no"
19162 if test "x$transport_agent" = "xno"; then
19164 *apple-darwin*) use_mac_ta="yes" ;;
19165 *) use_curl_ta="yes" ;;
19168 case $transport_agent in
19169 curl) use_curl_ta="yes" ;;
19170 mac) use_mac_ta="yes" ;;
19171 mozilla) use_mozilla_ta="yes" ;;
19172 *) { { echo "$as_me:$LINENO: error: you must choose one of the following transport agents: curl/mac/mozilla" >&5
19173 echo "$as_me: error: you must choose one of the following transport agents: curl/mac/mozilla" >&2;}
19174 { (exit 1); exit 1; }; } ;;
19178 if test "x$use_curl_ta" = "xyes"; then
19179 { echo "$as_me:$LINENO: checking for libcurl" >&5
19180 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
19181 if CURL_LDFLAGS=`sh -c 'curl-config --libs' 2>&5` && \
19182 CURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
19183 { echo "$as_me:$LINENO: result: found" >&5
19184 echo "${ECHO_T}found" >&6; }
19187 CPPFLAGS="-DFUN_TRANSPORT_AGENT=FUN_CURL_TRANSPORT_AGENT $CPPFLAGS"
19189 { echo "$as_me:$LINENO: result: missing" >&5
19190 echo "${ECHO_T}missing" >&6; }
19191 { { echo "$as_me:$LINENO: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&5
19192 echo "$as_me: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&2;}
19193 { (exit 1); exit 1; }; }
19197 if test "x$use_mac_ta" = "xyes"; then
19198 CURL_LDFLAGS="-framework CoreServices"
19200 CPPFLAGS="-DFUN_TRANSPORT_AGENT=FUN_MAC_TRANSPORT_AGENT $CPPFLAGS"
19203 if test "x$use_mozilla_ta" = "xyes"; then
19206 # Check whether --with-mozilla-sdk-path was given.
19207 if test "${with_mozilla_sdk_path+set}" = set; then
19208 withval=$with_mozilla_sdk_path; mozilla_sdk_path="$withval"
19210 { { echo "$as_me:$LINENO: error: Mozilla SDK is required, you must specify its path using --with-mozilla-sdk-path=DIR" >&5
19211 echo "$as_me: error: Mozilla SDK is required, you must specify its path using --with-mozilla-sdk-path=DIR" >&2;}
19212 { (exit 1); exit 1; }; }
19216 CPPFLAGS="-I$mozilla_sdk_path/include -I$mozilla_sdk_path/include/xpcom -I$mozilla_sdk_path/include/nspr -I$mozilla_sdk_path/include/string -I$mozilla_sdk_path/include/content $CPPFLAGS"
19217 LDFLAGS="-L$mozilla_sdk_path/lib -lxpcomglue_s -lxpcom -lnspr4 -lplds4 -lplc4 $LDFLAGS"
19219 { echo "$as_me:$LINENO: checking for mozilla headers" >&5
19220 echo $ECHO_N "checking for mozilla headers... $ECHO_C" >&6; }
19222 for ac_header in mozilla-config.h
19224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 ac_res=`eval echo '${'$as_ac_Header'}'`
19232 { echo "$as_me:$LINENO: result: $ac_res" >&5
19233 echo "${ECHO_T}$ac_res" >&6; }
19235 # Is the header compilable?
19236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 $ac_includes_default
19245 #include <$ac_header>
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_compile") 2>conftest.er1
19256 grep -v '^ *+' conftest.er1 >conftest.err
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } && {
19261 test -z "$ac_c_werror_flag" ||
19262 test ! -s conftest.err
19263 } && test -s conftest.$ac_objext; then
19264 ac_header_compiler=yes
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 ac_header_compiler=no
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19274 echo "${ECHO_T}$ac_header_compiler" >&6; }
19276 # Is the header present?
19277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19279 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19285 #include <$ac_header>
19287 if { (ac_try="$ac_cpp conftest.$ac_ext"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } >/dev/null && {
19300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19303 ac_header_preproc=yes
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 ac_header_preproc=no
19311 rm -f conftest.err conftest.$ac_ext
19312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19313 echo "${ECHO_T}$ac_header_preproc" >&6; }
19315 # So? What about this header?
19316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19322 ac_header_preproc=yes
19325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19345 eval "$as_ac_Header=\$ac_header_preproc"
19347 ac_res=`eval echo '${'$as_ac_Header'}'`
19348 { echo "$as_me:$LINENO: result: $ac_res" >&5
19349 echo "${ECHO_T}$ac_res" >&6; }
19352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19353 cat >>confdefs.h <<_ACEOF
19354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19358 { { echo "$as_me:$LINENO: error: Mozilla headers not found, you must specify the Mozilla SDK path using --with-mozilla-sdk-path=DIR" >&5
19359 echo "$as_me: error: Mozilla headers not found, you must specify the Mozilla SDK path using --with-mozilla-sdk-path=DIR" >&2;}
19360 { (exit 1); exit 1; }; }
19366 CPPFLAGS="-DFUN_TRANSPORT_AGENT=FUN_MOZ_TRANSPORT_AGENT $CPPFLAGS"
19370 for ac_header in time.h
19372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 ac_res=`eval echo '${'$as_ac_Header'}'`
19380 { echo "$as_me:$LINENO: result: $ac_res" >&5
19381 echo "${ECHO_T}$ac_res" >&6; }
19383 # Is the header compilable?
19384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19386 cat >conftest.$ac_ext <<_ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 $ac_includes_default
19393 #include <$ac_header>
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19404 grep -v '^ *+' conftest.er1 >conftest.err
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } && {
19409 test -z "$ac_c_werror_flag" ||
19410 test ! -s conftest.err
19411 } && test -s conftest.$ac_objext; then
19412 ac_header_compiler=yes
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ac_header_compiler=no
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19422 echo "${ECHO_T}$ac_header_compiler" >&6; }
19424 # Is the header present?
19425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19427 cat >conftest.$ac_ext <<_ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19433 #include <$ac_header>
19435 if { (ac_try="$ac_cpp conftest.$ac_ext"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19443 grep -v '^ *+' conftest.er1 >conftest.err
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } >/dev/null && {
19448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19449 test ! -s conftest.err
19451 ac_header_preproc=yes
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19456 ac_header_preproc=no
19459 rm -f conftest.err conftest.$ac_ext
19460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19461 echo "${ECHO_T}$ac_header_preproc" >&6; }
19463 # So? What about this header?
19464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19470 ac_header_preproc=yes
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 eval "$as_ac_Header=\$ac_header_preproc"
19495 ac_res=`eval echo '${'$as_ac_Header'}'`
19496 { echo "$as_me:$LINENO: result: $ac_res" >&5
19497 echo "${ECHO_T}$ac_res" >&6; }
19500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19501 cat >>confdefs.h <<_ACEOF
19502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19510 # Check whether --enable-unit-tests was given.
19511 if test "${enable_unit_tests+set}" = set; then
19512 enableval=$enable_unit_tests; enable_unit_tests="$enableval"
19514 enable_unit_tests="no"
19517 # Check whether --enable-integration-tests was given.
19518 if test "${enable_integration_tests+set}" = set; then
19519 enableval=$enable_integration_tests; enable_integration_tests="$enableval"
19521 enable_integration_tests="no"
19524 # Check whether --enable-assert was given.
19525 if test "${enable_assert+set}" = set; then
19526 enableval=$enable_assert; enable_assert="$enableval"
19532 if test $enable_assert == "no"; then
19534 cat >>confdefs.h <<\_ACEOF
19540 # Optionally use wchar_t for unicode strings
19541 # Check whether --enable-wchar was given.
19542 if test "${enable_wchar+set}" = set; then
19543 enableval=$enable_wchar; enable_wchar="$enableval"
19549 if test $enable_wchar == "yes"; then
19551 cat >>confdefs.h <<\_ACEOF
19552 #define USE_WCHAR 1
19556 for ac_header in wchar.h
19558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 ac_res=`eval echo '${'$as_ac_Header'}'`
19566 { echo "$as_me:$LINENO: result: $ac_res" >&5
19567 echo "${ECHO_T}$ac_res" >&6; }
19569 # Is the header compilable?
19570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 $ac_includes_default
19579 #include <$ac_header>
19581 rm -f conftest.$ac_objext
19582 if { (ac_try="$ac_compile"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_compile") 2>conftest.er1
19590 grep -v '^ *+' conftest.er1 >conftest.err
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest.$ac_objext; then
19598 ac_header_compiler=yes
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_header_compiler=no
19606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19608 echo "${ECHO_T}$ac_header_compiler" >&6; }
19610 # Is the header present?
19611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 #include <$ac_header>
19621 if { (ac_try="$ac_cpp conftest.$ac_ext"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } >/dev/null && {
19634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19637 ac_header_preproc=yes
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_header_preproc=no
19645 rm -f conftest.err conftest.$ac_ext
19646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19647 echo "${ECHO_T}$ac_header_preproc" >&6; }
19649 # So? What about this header?
19650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19656 ac_header_preproc=yes
19659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 eval "$as_ac_Header=\$ac_header_preproc"
19681 ac_res=`eval echo '${'$as_ac_Header'}'`
19682 { echo "$as_me:$LINENO: result: $ac_res" >&5
19683 echo "${ECHO_T}$ac_res" >&6; }
19686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19687 cat >>confdefs.h <<_ACEOF
19688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19698 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
19699 CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
19700 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
19701 { (exit 1); exit 1; }; }
19702 CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
19703 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
19704 { (exit 1); exit 1; }; }
19705 CPPUNIT_TESTS=client-test
19707 for ac_header in signal.h
19709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 ac_res=`eval echo '${'$as_ac_Header'}'`
19717 { echo "$as_me:$LINENO: result: $ac_res" >&5
19718 echo "${ECHO_T}$ac_res" >&6; }
19720 # Is the header compilable?
19721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19723 cat >conftest.$ac_ext <<_ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19729 $ac_includes_default
19730 #include <$ac_header>
19732 rm -f conftest.$ac_objext
19733 if { (ac_try="$ac_compile"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_compile") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest.$ac_objext; then
19749 ac_header_compiler=yes
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_header_compiler=no
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19759 echo "${ECHO_T}$ac_header_compiler" >&6; }
19761 # Is the header present?
19762 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 #include <$ac_header>
19772 if { (ac_try="$ac_cpp conftest.$ac_ext"
19773 case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19780 grep -v '^ *+' conftest.er1 >conftest.err
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } >/dev/null && {
19785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19786 test ! -s conftest.err
19788 ac_header_preproc=yes
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19793 ac_header_preproc=no
19796 rm -f conftest.err conftest.$ac_ext
19797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19798 echo "${ECHO_T}$ac_header_preproc" >&6; }
19800 # So? What about this header?
19801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19807 ac_header_preproc=yes
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 eval "$as_ac_Header=\$ac_header_preproc"
19832 ac_res=`eval echo '${'$as_ac_Header'}'`
19833 { echo "$as_me:$LINENO: result: $ac_res" >&5
19834 echo "${ECHO_T}$ac_res" >&6; }
19837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19838 cat >>confdefs.h <<_ACEOF
19839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19851 if test $enable_unit_tests == "yes"; then
19853 cat >>confdefs.h <<\_ACEOF
19854 #define ENABLE_UNIT_TESTS 1
19858 if test $enable_integration_tests == "yes"; then
19860 cat >>confdefs.h <<\_ACEOF
19861 #define ENABLE_INTEGRATION_TESTS 1
19867 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
19869 cat >confcache <<\_ACEOF
19870 # This file is a shell script that caches the results of configure
19871 # tests run on this system so they can be shared between configure
19872 # scripts and configure runs, see configure's option --config-cache.
19873 # It is not useful on other systems. If it contains results you don't
19874 # want to keep, you may remove or edit it.
19876 # config.status only pays attention to the cache file if you give it
19877 # the --recheck option to rerun configure.
19879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19881 # following values.
19885 # The following way of writing the cache mishandles newlines in values,
19886 # but we know of no workaround that is simple, portable, and efficient.
19887 # So, we kill variables containing newlines.
19888 # Ultrix sh set writes to stderr and can't be redirected directly,
19889 # and sets the high bit in the cache file unless we assign to the vars.
19891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19892 eval ac_val=\$$ac_var
19896 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19897 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19900 _ | IFS | as_nl) ;; #(
19901 *) $as_unset $ac_var ;;
19907 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19908 *${as_nl}ac_space=\ *)
19909 # `set' does not quote correctly, so add quotes (double-quote
19910 # substitution turns \\\\ into \\, and sed turns \\ into \).
19913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19916 # `set' quotes correctly as required by POSIX, so do not add quotes.
19917 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19926 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19928 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19930 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19931 if test -w "$cache_file"; then
19932 test "x$cache_file" != "x/dev/null" &&
19933 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19934 echo "$as_me: updating cache $cache_file" >&6;}
19935 cat confcache >$cache_file
19937 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19938 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19944 # Let make expand exec_prefix.
19945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19947 DEFS=-DHAVE_CONFIG_H
19951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19952 # 1. Remove the extension, and $U if already installed.
19953 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19954 ac_i=`echo "$ac_i" | sed "$ac_script"`
19955 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19956 # will be set to the directory where LIBOBJS objects are built.
19957 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19958 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19960 LIBOBJS=$ac_libobjs
19962 LTLIBOBJS=$ac_ltlibobjs
19965 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19966 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19967 Usually this means the macro was only invoked conditionally." >&5
19968 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19969 Usually this means the macro was only invoked conditionally." >&2;}
19970 { (exit 1); exit 1; }; }
19972 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19973 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19974 Usually this means the macro was only invoked conditionally." >&5
19975 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19976 Usually this means the macro was only invoked conditionally." >&2;}
19977 { (exit 1); exit 1; }; }
19979 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19980 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19981 Usually this means the macro was only invoked conditionally." >&5
19982 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19983 Usually this means the macro was only invoked conditionally." >&2;}
19984 { (exit 1); exit 1; }; }
19987 : ${CONFIG_STATUS=./config.status}
19988 ac_clean_files_save=$ac_clean_files
19989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19992 cat >$CONFIG_STATUS <<_ACEOF
19994 # Generated by $as_me.
19995 # Run this file to recreate the current configuration.
19996 # Compiler output produced by configure, useful for debugging
19997 # configure, is in config.log if it exists.
20000 ac_cs_recheck=false
20002 SHELL=\${CONFIG_SHELL-$SHELL}
20005 cat >>$CONFIG_STATUS <<\_ACEOF
20006 ## --------------------- ##
20007 ## M4sh Initialization. ##
20008 ## --------------------- ##
20010 # Be more Bourne compatible
20011 DUALCASE=1; export DUALCASE # for MKS sh
20012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20016 # is contrary to our usage. Disable this feature.
20017 alias -g '${1+"$@"}'='"$@"'
20018 setopt NO_GLOB_SUBST
20020 case `(set -o) 2>/dev/null` in
20021 *posix*) set -o posix ;;
20030 # Avoid depending upon Character Ranges.
20031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20034 as_cr_digits='0123456789'
20035 as_cr_alnum=$as_cr_Letters$as_cr_digits
20037 # The user is always right.
20038 if test "${PATH_SEPARATOR+set}" != set; then
20039 echo "#! /bin/sh" >conf$$.sh
20040 echo "exit 0" >>conf$$.sh
20042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20050 # Support unset when possible.
20051 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20059 # We need space, tab and new line, in precisely that order. Quoting is
20060 # there to prevent editors from complaining about space-tab.
20061 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20062 # splitting by setting IFS to empty value.)
20067 # Find who we are. Look in the path if we contain no directory separator.
20069 *[\\/]* ) as_myself=$0 ;;
20070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20071 for as_dir in $PATH
20074 test -z "$as_dir" && as_dir=.
20075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20081 # We did not find ourselves, most probably we were run as `sh COMMAND'
20082 # in which case we are not to be found in the path.
20083 if test "x$as_myself" = x; then
20086 if test ! -f "$as_myself"; then
20087 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20088 { (exit 1); exit 1; }
20091 # Work around bugs in pre-3.0 UWIN ksh.
20092 for as_var in ENV MAIL MAILPATH
20093 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20103 LC_TELEPHONE LC_TIME
20105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20106 eval $as_var=C; export $as_var
20108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20112 # Required to use basename.
20113 if expr a : '\(a\)' >/dev/null 2>&1 &&
20114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20121 as_basename=basename
20127 # Name of the executable.
20128 as_me=`$as_basename -- "$0" ||
20129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20130 X"$0" : 'X\(//\)$' \| \
20131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20133 sed '/^.*\/\([^/][^/]*\)\/*$/{
20152 as_lineno_1=$LINENO
20153 as_lineno_2=$LINENO
20154 test "x$as_lineno_1" != "x$as_lineno_2" &&
20155 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20158 # uniformly replaced by the line number. The first 'sed' inserts a
20159 # line-number line after each line using $LINENO; the second 'sed'
20160 # does the real work. The second script uses 'N' to pair each
20161 # line-number line with the line containing $LINENO, and appends
20162 # trailing '-' during substitution so that $LINENO is not a special
20163 # case at line end.
20164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20165 # scripts with optimization help from Paolo Bonzini. Blame Lee
20166 # E. McMahon (1931-1989) for sed's syntax. :-)
20178 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20181 ' >$as_me.lineno &&
20182 chmod +x "$as_me.lineno" ||
20183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20184 { (exit 1); exit 1; }; }
20186 # Don't try to exec as it changes $[0], causing all sort of problems
20187 # (the dirname of $[0] is not the place where we might find the
20188 # original and so on. Autoconf is especially sensitive to this).
20189 . "./$as_me.lineno"
20190 # Exit status is that of the last command.
20195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20201 ECHO_C= ECHO_N= ECHO_T=
20202 case `echo -n x` in
20204 case `echo 'x\c'` in
20205 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20212 if expr a : '\(a\)' >/dev/null 2>&1 &&
20213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20219 rm -f conf$$ conf$$.exe conf$$.file
20220 if test -d conf$$.dir; then
20221 rm -f conf$$.dir/conf$$.file
20227 if ln -s conf$$.file conf$$ 2>/dev/null; then
20229 # ... but there are two gotchas:
20230 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20231 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20232 # In both cases, we have to default to `cp -p'.
20233 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20235 elif ln conf$$.file conf$$ 2>/dev/null; then
20240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20241 rmdir conf$$.dir 2>/dev/null
20243 if mkdir -p . 2>/dev/null; then
20246 test -d ./-p && rmdir ./-p
20250 if test -x / >/dev/null 2>&1; then
20251 as_test_x='test -x'
20253 if ls -dL / >/dev/null 2>&1; then
20260 if test -d "$1"; then
20266 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20267 ???[sx]*):;;*)false;;esac;fi
20271 as_executable_p=$as_test_x
20273 # Sed expression to map a string onto a valid CPP name.
20274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20276 # Sed expression to map a string onto a valid variable name.
20277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20282 # Save the log message, to keep $[0] and so on meaningful, and to
20283 # report actual input values of CONFIG_FILES etc. instead of their
20284 # values after options handling.
20286 This file was extended by $as_me, which was
20287 generated by GNU Autoconf 2.61. Invocation command line was
20289 CONFIG_FILES = $CONFIG_FILES
20290 CONFIG_HEADERS = $CONFIG_HEADERS
20291 CONFIG_LINKS = $CONFIG_LINKS
20292 CONFIG_COMMANDS = $CONFIG_COMMANDS
20295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20300 cat >>$CONFIG_STATUS <<_ACEOF
20301 # Files that config.status was made for.
20302 config_files="$ac_config_files"
20303 config_headers="$ac_config_headers"
20304 config_commands="$ac_config_commands"
20308 cat >>$CONFIG_STATUS <<\_ACEOF
20310 \`$as_me' instantiates files from templates according to the
20311 current configuration.
20313 Usage: $0 [OPTIONS] [FILE]...
20315 -h, --help print this help, then exit
20316 -V, --version print version number and configuration settings, then exit
20317 -q, --quiet do not print progress messages
20318 -d, --debug don't remove temporary files
20319 --recheck update $as_me by reconfiguring in the same conditions
20320 --file=FILE[:TEMPLATE]
20321 instantiate the configuration file FILE
20322 --header=FILE[:TEMPLATE]
20323 instantiate the configuration header FILE
20325 Configuration files:
20328 Configuration headers:
20331 Configuration commands:
20334 Report bugs to <bug-autoconf@gnu.org>."
20337 cat >>$CONFIG_STATUS <<_ACEOF
20340 configured by $0, generated by GNU Autoconf 2.61,
20341 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20343 Copyright (C) 2006 Free Software Foundation, Inc.
20344 This config.status script is free software; the Free Software Foundation
20345 gives unlimited permission to copy, distribute and modify it."
20352 cat >>$CONFIG_STATUS <<\_ACEOF
20353 # If no file are specified by the user, then we need to provide default
20354 # value. By we need to know if files were specified by the user.
20360 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20361 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20372 # Handling of the options.
20373 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20375 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20376 echo "$ac_cs_version"; exit ;;
20377 --debug | --debu | --deb | --de | --d | -d )
20379 --file | --fil | --fi | --f )
20381 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20382 ac_need_defaults=false;;
20383 --header | --heade | --head | --hea )
20385 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20386 ac_need_defaults=false;;
20388 # Conflict between --help and --header
20389 { echo "$as_me: error: ambiguous option: $1
20390 Try \`$0 --help' for more information." >&2
20391 { (exit 1); exit 1; }; };;
20392 --help | --hel | -h )
20393 echo "$ac_cs_usage"; exit ;;
20394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20398 # This is an error.
20399 -*) { echo "$as_me: error: unrecognized option: $1
20400 Try \`$0 --help' for more information." >&2
20401 { (exit 1); exit 1; }; } ;;
20403 *) ac_config_targets="$ac_config_targets $1"
20404 ac_need_defaults=false ;;
20410 ac_configure_extra_args=
20412 if $ac_cs_silent; then
20414 ac_configure_extra_args="$ac_configure_extra_args --silent"
20418 cat >>$CONFIG_STATUS <<_ACEOF
20419 if \$ac_cs_recheck; then
20420 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20421 CONFIG_SHELL=$SHELL
20422 export CONFIG_SHELL
20423 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20427 cat >>$CONFIG_STATUS <<\_ACEOF
20431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20432 ## Running $as_me. ##
20438 cat >>$CONFIG_STATUS <<_ACEOF
20442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20446 cat >>$CONFIG_STATUS <<\_ACEOF
20448 # Handling of arguments.
20449 for ac_config_target in $ac_config_targets
20451 case $ac_config_target in
20452 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20453 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20454 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20455 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20456 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20457 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20459 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20460 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20461 { (exit 1); exit 1; }; };;
20466 # If the user did not use the arguments to specify the items to instantiate,
20467 # then the envvar interface is used. Set only those that are not.
20468 # We use the long form for the default assignment because of an extremely
20469 # bizarre bug on SunOS 4.1.3.
20470 if $ac_need_defaults; then
20471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20473 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20476 # Have a temporary directory for convenience. Make it in the build tree
20477 # simply because there is no reason against having it here, and in addition,
20478 # creating and moving files from /tmp can sometimes cause problems.
20479 # Hook for its removal unless debugging.
20480 # Note that there is a small window in which the directory will not be cleaned:
20481 # after its creation but before its name has been assigned to `$tmp'.
20485 trap 'exit_status=$?
20486 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20488 trap '{ (exit 1); exit 1; }' 1 2 13 15
20490 # Create a (secure) tmp directory for tmp files.
20493 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20494 test -n "$tmp" && test -d "$tmp"
20497 tmp=./conf$$-$RANDOM
20498 (umask 077 && mkdir "$tmp")
20501 echo "$me: cannot create a temporary directory in ." >&2
20502 { (exit 1); exit 1; }
20506 # Set up the sed scripts for CONFIG_FILES section.
20509 # No need to generate the scripts if there are no CONFIG_FILES.
20510 # This happens for instance when ./config.status config.h
20511 if test -n "$CONFIG_FILES"; then
20518 for ac_last_try in false false false false false :; do
20519 cat >conf$$subs.sed <<_ACEOF
20520 SHELL!$SHELL$ac_delim
20521 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20522 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20523 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20524 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20525 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20526 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20527 exec_prefix!$exec_prefix$ac_delim
20528 prefix!$prefix$ac_delim
20529 program_transform_name!$program_transform_name$ac_delim
20530 bindir!$bindir$ac_delim
20531 sbindir!$sbindir$ac_delim
20532 libexecdir!$libexecdir$ac_delim
20533 datarootdir!$datarootdir$ac_delim
20534 datadir!$datadir$ac_delim
20535 sysconfdir!$sysconfdir$ac_delim
20536 sharedstatedir!$sharedstatedir$ac_delim
20537 localstatedir!$localstatedir$ac_delim
20538 includedir!$includedir$ac_delim
20539 oldincludedir!$oldincludedir$ac_delim
20540 docdir!$docdir$ac_delim
20541 infodir!$infodir$ac_delim
20542 htmldir!$htmldir$ac_delim
20543 dvidir!$dvidir$ac_delim
20544 pdfdir!$pdfdir$ac_delim
20545 psdir!$psdir$ac_delim
20546 libdir!$libdir$ac_delim
20547 localedir!$localedir$ac_delim
20548 mandir!$mandir$ac_delim
20549 DEFS!$DEFS$ac_delim
20550 ECHO_C!$ECHO_C$ac_delim
20551 ECHO_N!$ECHO_N$ac_delim
20552 ECHO_T!$ECHO_T$ac_delim
20553 LIBS!$LIBS$ac_delim
20554 build_alias!$build_alias$ac_delim
20555 host_alias!$host_alias$ac_delim
20556 target_alias!$target_alias$ac_delim
20557 build!$build$ac_delim
20558 build_cpu!$build_cpu$ac_delim
20559 build_vendor!$build_vendor$ac_delim
20560 build_os!$build_os$ac_delim
20561 host!$host$ac_delim
20562 host_cpu!$host_cpu$ac_delim
20563 host_vendor!$host_vendor$ac_delim
20564 host_os!$host_os$ac_delim
20565 target!$target$ac_delim
20566 target_cpu!$target_cpu$ac_delim
20567 target_vendor!$target_vendor$ac_delim
20568 target_os!$target_os$ac_delim
20569 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20570 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20571 INSTALL_DATA!$INSTALL_DATA$ac_delim
20572 CYGPATH_W!$CYGPATH_W$ac_delim
20573 PACKAGE!$PACKAGE$ac_delim
20574 VERSION!$VERSION$ac_delim
20575 ACLOCAL!$ACLOCAL$ac_delim
20576 AUTOCONF!$AUTOCONF$ac_delim
20577 AUTOMAKE!$AUTOMAKE$ac_delim
20578 AUTOHEADER!$AUTOHEADER$ac_delim
20579 MAKEINFO!$MAKEINFO$ac_delim
20580 install_sh!$install_sh$ac_delim
20581 STRIP!$STRIP$ac_delim
20582 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20583 mkdir_p!$mkdir_p$ac_delim
20585 SET_MAKE!$SET_MAKE$ac_delim
20586 am__leading_dot!$am__leading_dot$ac_delim
20587 AMTAR!$AMTAR$ac_delim
20588 am__tar!$am__tar$ac_delim
20589 am__untar!$am__untar$ac_delim
20591 CXXFLAGS!$CXXFLAGS$ac_delim
20592 LDFLAGS!$LDFLAGS$ac_delim
20593 CPPFLAGS!$CPPFLAGS$ac_delim
20594 ac_ct_CXX!$ac_ct_CXX$ac_delim
20595 EXEEXT!$EXEEXT$ac_delim
20596 OBJEXT!$OBJEXT$ac_delim
20597 DEPDIR!$DEPDIR$ac_delim
20598 am__include!$am__include$ac_delim
20599 am__quote!$am__quote$ac_delim
20600 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20601 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20602 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20603 CXXDEPMODE!$CXXDEPMODE$ac_delim
20604 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20605 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20607 CFLAGS!$CFLAGS$ac_delim
20608 ac_ct_CC!$ac_ct_CC$ac_delim
20609 CCDEPMODE!$CCDEPMODE$ac_delim
20610 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20611 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20612 GREP!$GREP$ac_delim
20613 EGREP!$EGREP$ac_delim
20614 LN_S!$LN_S$ac_delim
20615 ECHO!$ECHO$ac_delim
20619 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20621 elif $ac_last_try; then
20622 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20623 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20624 { (exit 1); exit 1; }; }
20626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20630 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20631 if test -n "$ac_eof"; then
20632 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20633 ac_eof=`expr $ac_eof + 1`
20636 cat >>$CONFIG_STATUS <<_ACEOF
20637 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20641 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20642 s/^/s,@/; s/!/@,|#_!!_#|/
20645 s/'"$ac_delim"'$/,g/; t
20647 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20648 ' >>$CONFIG_STATUS <conf$$subs.sed
20649 rm -f conf$$subs.sed
20650 cat >>$CONFIG_STATUS <<_ACEOF
20656 for ac_last_try in false false false false false :; do
20657 cat >conf$$subs.sed <<_ACEOF
20658 RANLIB!$RANLIB$ac_delim
20660 CXXCPP!$CXXCPP$ac_delim
20662 FFLAGS!$FFLAGS$ac_delim
20663 ac_ct_F77!$ac_ct_F77$ac_delim
20664 LIBTOOL!$LIBTOOL$ac_delim
20665 CURL_LDFLAGS!$CURL_LDFLAGS$ac_delim
20666 CURL_CFLAGS!$CURL_CFLAGS$ac_delim
20667 CPPUNIT_CXXFLAGS!$CPPUNIT_CXXFLAGS$ac_delim
20668 CPPUNIT_LDFLAGS!$CPPUNIT_LDFLAGS$ac_delim
20669 CPPUNIT_TESTS!$CPPUNIT_TESTS$ac_delim
20670 LIBOBJS!$LIBOBJS$ac_delim
20671 LTLIBOBJS!$LTLIBOBJS$ac_delim
20674 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
20676 elif $ac_last_try; then
20677 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20678 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20679 { (exit 1); exit 1; }; }
20681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20685 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20686 if test -n "$ac_eof"; then
20687 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20688 ac_eof=`expr $ac_eof + 1`
20691 cat >>$CONFIG_STATUS <<_ACEOF
20692 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20696 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20697 s/^/s,@/; s/!/@,|#_!!_#|/
20700 s/'"$ac_delim"'$/,g/; t
20702 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20703 ' >>$CONFIG_STATUS <conf$$subs.sed
20704 rm -f conf$$subs.sed
20705 cat >>$CONFIG_STATUS <<_ACEOF
20712 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20713 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20714 # trailing colons and then remove the whole line if VPATH becomes empty
20715 # (actually we leave an empty line to preserve line numbers).
20716 if test "x$srcdir" = x.; then
20717 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20718 s/:*\$(srcdir):*/:/
20719 s/:*\${srcdir}:*/:/
20721 s/^\([^=]*=[ ]*\):*/\1/
20727 cat >>$CONFIG_STATUS <<\_ACEOF
20728 fi # test -n "$CONFIG_FILES"
20731 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20734 :[FHLC]) ac_mode=$ac_tag; continue;;
20736 case $ac_mode$ac_tag in
20738 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20739 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20740 { (exit 1); exit 1; }; };;
20741 :[FH]-) ac_tag=-:-;;
20742 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20759 -) ac_f="$tmp/stdin";;
20760 *) # Look for the file first in the build tree, then in the source tree
20761 # (if the path is not absolute). The absolute path cannot be DOS-style,
20762 # because $ac_f cannot contain `:'.
20766 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20768 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20769 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20770 { (exit 1); exit 1; }; };;
20772 ac_file_inputs="$ac_file_inputs $ac_f"
20775 # Let's still pretend it is `configure' which instantiates (i.e., don't
20776 # use $as_me), people would be surprised to read:
20777 # /* config.h. Generated by config.status. */
20778 configure_input="Generated from "`IFS=:
20779 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20780 if test x"$ac_file" != x-; then
20781 configure_input="$ac_file. $configure_input"
20782 { echo "$as_me:$LINENO: creating $ac_file" >&5
20783 echo "$as_me: creating $ac_file" >&6;}
20787 *:-:* | *:-) cat >"$tmp/stdin";;
20792 ac_dir=`$as_dirname -- "$ac_file" ||
20793 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20794 X"$ac_file" : 'X\(//\)[^/]' \| \
20795 X"$ac_file" : 'X\(//\)$' \| \
20796 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20802 /^X\(\/\/\)[^/].*/{
20817 -*) as_dir=./$as_dir;;
20819 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20823 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20824 *) as_qdir=$as_dir;;
20826 as_dirs="'$as_qdir' $as_dirs"
20827 as_dir=`$as_dirname -- "$as_dir" ||
20828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20829 X"$as_dir" : 'X\(//\)[^/]' \| \
20830 X"$as_dir" : 'X\(//\)$' \| \
20831 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20837 /^X\(\/\/\)[^/].*/{
20850 test -d "$as_dir" && break
20852 test -z "$as_dirs" || eval "mkdir $as_dirs"
20853 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20854 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20855 { (exit 1); exit 1; }; }; }
20859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20862 # A ".." for each directory in $ac_dir_suffix.
20863 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20864 case $ac_top_builddir_sub in
20865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20869 ac_abs_top_builddir=$ac_pwd
20870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20871 # for backward compatibility:
20872 ac_top_builddir=$ac_top_build_prefix
20875 .) # We are building in place.
20877 ac_top_srcdir=$ac_top_builddir_sub
20878 ac_abs_top_srcdir=$ac_pwd ;;
20879 [\\/]* | ?:[\\/]* ) # Absolute name.
20880 ac_srcdir=$srcdir$ac_dir_suffix;
20881 ac_top_srcdir=$srcdir
20882 ac_abs_top_srcdir=$srcdir ;;
20883 *) # Relative name.
20884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20885 ac_top_srcdir=$ac_top_build_prefix$srcdir
20886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20899 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20903 cat >>$CONFIG_STATUS <<\_ACEOF
20904 # If the template does not know about datarootdir, expand it.
20905 # FIXME: This hack should be removed a few years after 2.60.
20906 ac_datarootdir_hack=; ac_datarootdir_seen=
20908 case `sed -n '/datarootdir/ {
20917 ' $ac_file_inputs` in
20918 *datarootdir*) ac_datarootdir_seen=yes;;
20919 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20920 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20921 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20923 cat >>$CONFIG_STATUS <<_ACEOF
20924 ac_datarootdir_hack='
20925 s&@datadir@&$datadir&g
20926 s&@docdir@&$docdir&g
20927 s&@infodir@&$infodir&g
20928 s&@localedir@&$localedir&g
20929 s&@mandir@&$mandir&g
20930 s&\\\${datarootdir}&$datarootdir&g' ;;
20934 # Neutralize VPATH when `$srcdir' = `.'.
20935 # Shell code in configure.ac might set extrasub.
20936 # FIXME: do we really want to maintain this feature?
20937 cat >>$CONFIG_STATUS <<_ACEOF
20941 cat >>$CONFIG_STATUS <<\_ACEOF
20943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20944 s&@configure_input@&$configure_input&;t t
20945 s&@top_builddir@&$ac_top_builddir_sub&;t t
20946 s&@srcdir@&$ac_srcdir&;t t
20947 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20948 s&@top_srcdir@&$ac_top_srcdir&;t t
20949 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20950 s&@builddir@&$ac_builddir&;t t
20951 s&@abs_builddir@&$ac_abs_builddir&;t t
20952 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20953 s&@INSTALL@&$ac_INSTALL&;t t
20954 $ac_datarootdir_hack
20955 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20957 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20958 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20959 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20960 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20961 which seems to be undefined. Please make sure it is defined." >&5
20962 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20963 which seems to be undefined. Please make sure it is defined." >&2;}
20967 -) cat "$tmp/out"; rm -f "$tmp/out";;
20968 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20977 # Transform confdefs.h into a sed script `conftest.defines', that
20978 # substitutes the proper values into config.h.in to produce config.h.
20979 rm -f conftest.defines conftest.tail
20980 # First, append a space to every undef/define line, to ease matching.
20981 echo 's/$/ /' >conftest.defines
20982 # Then, protect against being on the right side of a sed subst, or in
20983 # an unquoted here document, in config.status. If some macros were
20984 # called several times there might be several #defines for the same
20985 # symbol, which is useless. But do not sort them, since the last
20986 # AC_DEFINE must be honored.
20987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20988 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20989 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20990 # PARAMS is the parameter list in the macro definition--in most cases, it's
20991 # just an empty string.
20992 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20993 ac_dB='\\)[ (].*,\\1define\\2'
21001 s/^[ ]*#[ ]*define[ ][ ]*//
21006 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21007 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21008 ' >>conftest.defines
21010 # Remove the space that was appended to ease matching.
21011 # Then replace #undef with comments. This is necessary, for
21012 # example, in the case of _POSIX_SOURCE, which is predefined and required
21013 # on some systems where configure will not decide to define it.
21014 # (The regexp can be short, since the line contains either #define or #undef.)
21016 s,^[ #]*u.*,/* & */,' >>conftest.defines
21018 # Break up conftest.defines:
21019 ac_max_sed_lines=50
21021 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21022 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21023 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21025 ac_in='$ac_file_inputs'
21026 ac_out='"$tmp/out1"'
21027 ac_nxt='"$tmp/out2"'
21031 # Write a here document:
21032 cat >>$CONFIG_STATUS <<_ACEOF
21033 # First, check the format of the line:
21034 cat >"\$tmp/defines.sed" <<\\CEOF
21035 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21036 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21040 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21042 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21043 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21044 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21045 grep . conftest.tail >/dev/null || break
21046 rm -f conftest.defines
21047 mv conftest.tail conftest.defines
21049 rm -f conftest.defines conftest.tail
21051 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21052 cat >>$CONFIG_STATUS <<\_ACEOF
21053 if test x"$ac_file" != x-; then
21054 echo "/* $configure_input */" >"$tmp/config.h"
21055 cat "$ac_result" >>"$tmp/config.h"
21056 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21057 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21058 echo "$as_me: $ac_file is unchanged" >&6;}
21061 mv "$tmp/config.h" $ac_file
21064 echo "/* $configure_input */"
21068 # Compute $ac_file's index in $config_headers.
21070 for _am_header in $config_headers :; do
21071 case $_am_header in
21072 $ac_file | $ac_file:* )
21075 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21078 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21079 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21080 X$ac_file : 'X\(//\)[^/]' \| \
21081 X$ac_file : 'X\(//\)$' \| \
21082 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21088 /^X\(\/\/\)[^/].*/{
21100 s/.*/./; q'`/stamp-h$_am_stamp_count
21103 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21104 echo "$as_me: executing $ac_file commands" >&6;}
21109 case $ac_file$ac_mode in
21110 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21111 # Strip MF so we end up with the name of the file.
21112 mf=`echo "$mf" | sed -e 's/:.*$//'`
21113 # Check whether this is an Automake generated Makefile or not.
21114 # We used to match only the files named `Makefile.in', but
21115 # some people rename them; so instead we look at the file content.
21116 # Grep'ing the first line is not enough: some people post-process
21117 # each Makefile.in and add a new line on top of each file to say so.
21118 # So let's grep whole file.
21119 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21120 dirpart=`$as_dirname -- "$mf" ||
21121 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21122 X"$mf" : 'X\(//\)[^/]' \| \
21123 X"$mf" : 'X\(//\)$' \| \
21124 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21130 /^X\(\/\/\)[^/].*/{
21146 # Extract the definition of DEPDIR, am__include, and am__quote
21147 # from the Makefile without running `make'.
21148 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21149 test -z "$DEPDIR" && continue
21150 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21151 test -z "am__include" && continue
21152 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21153 # When using ansi2knr, U may be empty or an underscore; expand it
21154 U=`sed -n 's/^U = //p' < "$mf"`
21155 # Find all dependency output files, they are included files with
21156 # $(DEPDIR) in their names. We invoke sed twice because it is the
21157 # simplest approach to changing $(DEPDIR) to its actual value in the
21159 for file in `sed -n "
21160 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21161 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21162 # Make sure the directory exists.
21163 test -f "$dirpart/$file" && continue
21164 fdir=`$as_dirname -- "$file" ||
21165 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21166 X"$file" : 'X\(//\)[^/]' \| \
21167 X"$file" : 'X\(//\)$' \| \
21168 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21174 /^X\(\/\/\)[^/].*/{
21187 { as_dir=$dirpart/$fdir
21189 -*) as_dir=./$as_dir;;
21191 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21195 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21196 *) as_qdir=$as_dir;;
21198 as_dirs="'$as_qdir' $as_dirs"
21199 as_dir=`$as_dirname -- "$as_dir" ||
21200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21201 X"$as_dir" : 'X\(//\)[^/]' \| \
21202 X"$as_dir" : 'X\(//\)$' \| \
21203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21209 /^X\(\/\/\)[^/].*/{
21222 test -d "$as_dir" && break
21224 test -z "$as_dirs" || eval "mkdir $as_dirs"
21225 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21226 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21227 { (exit 1); exit 1; }; }; }
21228 # echo "creating $dirpart/$file"
21229 echo '# dummy' > "$dirpart/$file"
21238 { (exit 0); exit 0; }
21240 chmod +x $CONFIG_STATUS
21241 ac_clean_files=$ac_clean_files_save
21244 # configure is writing to config.log, and then calls config.status.
21245 # config.status does its own redirection, appending to config.log.
21246 # Unfortunately, on DOS this fails, as config.log is still kept open
21247 # by configure, so config.status won't be able to write to it; its
21248 # output is simply discarded. So we exec the FD to /dev/null,
21249 # effectively closing config.log, so it can be properly (re)opened and
21250 # appended to by config.status. When coming back to configure, we
21251 # need to make the FD available again.
21252 if test "$no_create" != yes; then
21254 ac_config_status_args=
21255 test "$silent" = yes &&
21256 ac_config_status_args="$ac_config_status_args --quiet"
21258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21261 # would make configure fail if this is the last instruction.
21262 $ac_cs_success || { (exit 1); exit 1; }