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="mp.w"
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
820 INSTALL_STRIP_PROGRAM
873 ac_precious_vars='build_alias
890 # Initialize some variables set by options.
892 ac_init_version=false
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
902 program_transform_name=s,x,x,
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE}'
927 infodir='${datarootdir}/info'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
976 cache_file=config.cache ;;
978 -datadir | --datadir | --datadi | --datad)
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
990 -disable-* | --disable-*)
991 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
994 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995 { (exit 1); exit 1; }; }
996 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
997 eval enable_$ac_feature=no ;;
999 -docdir | --docdir | --docdi | --doc | --do)
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1009 -enable-* | --enable-*)
1010 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016 eval enable_$ac_feature=\$ac_optarg ;;
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 htmldir=$ac_optarg ;;
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1061 -libdir | --libdir | --libdi | --libd)
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1152 -psdir | --psdir | --psdi | --psd | --ps)
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 sbindir=$ac_optarg ;;
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 sharedstatedir=$ac_optarg ;;
1178 -site | --site | --sit)
1180 -site=* | --site=* | --sit=*)
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1207 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 { echo "$as_me: error: invalid package name: $ac_package" >&2
1211 { (exit 1); exit 1; }; }
1212 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1213 eval with_$ac_package=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1225 # Obsolete; use --with-x.
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1242 -*) { echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 { echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1273 # Be sure to have absolute directory names.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1279 eval ac_val=\$$ac_var
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1285 { (exit 1); exit 1; }; }
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 { echo "$as_me: error: Working directory cannot be determined" >&2
1316 { (exit 1); exit 1; }; }
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 { echo "$as_me: error: pwd does not report name of working directory" >&2
1319 { (exit 1); exit 1; }; }
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$0" ||
1327 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$0" : 'X\(//\)[^/]' \| \
1329 X"$0" : 'X\(//\)$' \| \
1330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1354 ac_srcdir_defaulted=no
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1359 { (exit 1); exit 1; }; }
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1364 { (exit 1); exit 1; }; }
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 # Report the --help message.
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1390 \`configure' configures this package to adapt to many kinds of systems.
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1397 Defaults for the options are specified in brackets.
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1421 For better control, use the options below.
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 if test -n "$ac_init_help"; then
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-static[=PKGS] build static libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-dependency-tracking speeds up one-time build
1470 --enable-dependency-tracking do not reject slow dependency extractors
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1479 --with-tags[=TAGS] include additional configurations [automatic]
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1492 CXXCPP C++ preprocessor
1493 F77 Fortran 77 compiler command
1494 FFLAGS Fortran 77 compiler flags
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" || continue
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1526 .) # We are building in place.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1550 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1560 generated by GNU Autoconf 2.61
1562 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1563 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1569 cat >config.log <<_ACEOF
1570 This file contains any messages produced by compilers while
1571 running configure, to aid debugging if configure makes a mistake.
1573 It was created by $as_me, which was
1574 generated by GNU Autoconf 2.61. Invocation command line was
1586 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1587 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1588 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1589 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1590 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1593 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1596 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1597 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1598 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1599 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1600 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1601 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 echo "PATH: $as_dir"
1626 # Keep a trace of the command line.
1627 # Strip out --no-create and --no-recursion so they do not pile up.
1628 # Strip out --silent because we don't want to record it for future runs.
1629 # Also quote any args containing shell meta-characters.
1630 # Make two passes to allow for proper duplicate-argument suppression.
1634 ac_must_keep_next=false
1640 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642 | -silent | --silent | --silen | --sile | --sil)
1645 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1648 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1651 if test $ac_must_keep_next = true; then
1652 ac_must_keep_next=false # Got value, back to normal.
1655 *=* | --config-cache | -C | -disable-* | --disable-* \
1656 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658 | -with-* | --with-* | -without-* | --without-* | --x)
1659 case "$ac_configure_args0 " in
1660 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663 -* ) ac_must_keep_next=true ;;
1666 ac_configure_args="$ac_configure_args '$ac_arg'"
1671 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1672 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674 # When interrupted or exit'd, cleanup temporary files, and complete
1675 # config.log. We remove comments because anyway the quotes in there
1676 # would cause problems or look ugly.
1677 # WARNING: Use '\'' to represent an apostrophe within the trap.
1678 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679 trap 'exit_status=$?
1680 # Save into config.log some information that might help in debugging.
1685 ## ---------------- ##
1686 ## Cache variables. ##
1687 ## ---------------- ##
1690 # The following way of writing the cache mishandles newlines in values,
1692 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1693 eval ac_val=\$$ac_var
1697 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1698 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1701 _ | IFS | as_nl) ;; #(
1702 *) $as_unset $ac_var ;;
1707 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1708 *${as_nl}ac_space=\ *)
1710 "s/'\''/'\''\\\\'\'''\''/g;
1711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722 ## ----------------- ##
1723 ## Output variables. ##
1724 ## ----------------- ##
1727 for ac_var in $ac_subst_vars
1729 eval ac_val=\$$ac_var
1731 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 echo "$ac_var='\''$ac_val'\''"
1737 if test -n "$ac_subst_files"; then
1739 ## ------------------- ##
1740 ## File substitutions. ##
1741 ## ------------------- ##
1744 for ac_var in $ac_subst_files
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 echo "$ac_var='\''$ac_val'\''"
1755 if test -s confdefs.h; then
1765 test "$ac_signal" != 0 &&
1766 echo "$as_me: caught signal $ac_signal"
1767 echo "$as_me: exit $exit_status"
1769 rm -f core *.core core.conftest.* &&
1770 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1773 for ac_signal in 1 2 13 15; do
1774 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1778 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1779 rm -f -r conftest* confdefs.h
1781 # Predefined preprocessor variables.
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_NAME "$PACKAGE_NAME"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_STRING "$PACKAGE_STRING"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1808 # Let the site file select an alternate cache file if it wants to.
1809 # Prefer explicitly selected file to automatically selected ones.
1810 if test -n "$CONFIG_SITE"; then
1811 set x "$CONFIG_SITE"
1812 elif test "x$prefix" != xNONE; then
1813 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 set x "$ac_default_prefix/share/config.site" \
1816 "$ac_default_prefix/etc/config.site"
1821 if test -r "$ac_site_file"; then
1822 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 echo "$as_me: loading site script $ac_site_file" >&6;}
1824 sed 's/^/| /' "$ac_site_file" >&5
1829 if test -r "$cache_file"; then
1830 # Some versions of bash will fail to source /dev/null (special
1831 # files actually), so we avoid doing that.
1832 if test -f "$cache_file"; then
1833 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 echo "$as_me: loading cache $cache_file" >&6;}
1836 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837 *) . "./$cache_file";;
1841 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 echo "$as_me: creating cache $cache_file" >&6;}
1846 # Check that the precious variables saved in the cache have kept the same
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851 eval ac_new_set=\$ac_env_${ac_var}_set
1852 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853 eval ac_new_val=\$ac_env_${ac_var}_value
1854 case $ac_old_set,$ac_new_set in
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1860 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862 ac_cache_corrupted=: ;;
1865 if test "x$ac_old_val" != "x$ac_new_val"; then
1866 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1868 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1869 echo "$as_me: former value: $ac_old_val" >&2;}
1870 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1871 echo "$as_me: current value: $ac_new_val" >&2;}
1872 ac_cache_corrupted=:
1875 # Pass precious variables to config.status.
1876 if test "$ac_new_set" = set; then
1878 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 *) ac_arg=$ac_var=$ac_new_val ;;
1881 case " $ac_configure_args " in
1882 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1883 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1887 if $ac_cache_corrupted; then
1888 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1889 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1890 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1891 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1892 { (exit 1); exit 1; }; }
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918 am__api_version="1.9"
1920 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1921 if test -f "$ac_dir/install-sh"; then
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 elif test -f "$ac_dir/install.sh"; then
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 elif test -f "$ac_dir/shtool"; then
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 if test -z "$ac_aux_dir"; then
1936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1938 { (exit 1); exit 1; }; }
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1950 # Find a good install program. We prefer a C program (faster),
1951 # so one script is as good as another. But avoid the broken or
1952 # incompatible versions:
1953 # SysV /etc/install, /usr/sbin/install
1954 # SunOS /usr/etc/install
1955 # IRIX /sbin/install
1957 # AmigaOS /C/install, which installs bootblocks on floppy discs
1958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1961 # OS/2's system install, which has a completely different semantic
1962 # ./install, which can be erroneously created by make from ./install.sh.
1963 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1964 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1965 if test -z "$INSTALL"; then
1966 if test "${ac_cv_path_install+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 # Account for people who put trailing slashes in PATH elements.
1976 ./ | .// | /cC/* | \
1977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1978 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1981 # OSF1 and SCO ODT 3.0 have their own names for install.
1982 # Don't use installbsd from OSF since it installs stuff as root
1984 for ac_prog in ginstall scoinst install; do
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1987 if test $ac_prog = install &&
1988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1989 # AIX install. It has an incompatible calling convention.
1991 elif test $ac_prog = install &&
1992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993 # program-specific install script used by HP pwplus--don't use.
1996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2009 if test "${ac_cv_path_install+set}" = set; then
2010 INSTALL=$ac_cv_path_install
2012 # As a last resort, use the slow shell script. Don't cache a
2013 # value for INSTALL within a source directory, because that will
2014 # break other packages using the cache if that directory is
2015 # removed, or if the value is a relative name.
2016 INSTALL=$ac_install_sh
2019 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2020 echo "${ECHO_T}$INSTALL" >&6; }
2022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023 # It thinks the first close brace ends the variable substitution.
2024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2030 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2031 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2034 echo timestamp > conftest.file
2035 # Do `set' in a subshell so we don't clobber the current shell's
2036 # arguments. Must try -L first in case configure is actually a
2037 # symlink; some systems play weird games with the mod time of symlinks
2038 # (eg FreeBSD returns the mod time of the symlink's containing
2041 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2042 if test "$*" = "X"; then
2044 set X `ls -t $srcdir/configure conftest.file`
2047 if test "$*" != "X $srcdir/configure conftest.file" \
2048 && test "$*" != "X conftest.file $srcdir/configure"; then
2050 # If neither matched, then we have a broken ls. This can happen
2051 # if, for instance, CONFIG_SHELL is bash and it inherits a
2052 # broken ls alias from the environment. This has actually
2053 # happened. Such a system could not be considered "sane".
2054 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2055 alias in your environment" >&5
2056 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2057 alias in your environment" >&2;}
2058 { (exit 1); exit 1; }; }
2061 test "$2" = conftest.file
2067 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2068 Check your system clock" >&5
2069 echo "$as_me: error: newly created file is older than distributed files!
2070 Check your system clock" >&2;}
2071 { (exit 1); exit 1; }; }
2073 { echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6; }
2075 test "$program_prefix" != NONE &&
2076 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2077 # Use a double $ so make ignores it.
2078 test "$program_suffix" != NONE &&
2079 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2080 # Double any \ or $. echo might interpret backslashes.
2081 # By default was `s,x,x', remove it if useless.
2082 cat <<\_ACEOF >conftest.sed
2083 s/[\\$]/&&/g;s/;s,x,x,$//
2085 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2088 # expand $ac_aux_dir to an absolute path
2089 am_aux_dir=`cd $ac_aux_dir && pwd`
2091 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2092 # Use eval to expand $SHELL
2093 if eval "$MISSING --run true"; then
2094 am_missing_run="$MISSING --run "
2097 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2098 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2101 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2102 # We used to keeping the `.' as first argument, in order to
2103 # allow $(mkdir_p) to be used without argument. As in
2104 # $(mkdir_p) $(somedir)
2105 # where $(somedir) is conditionally defined. However this is wrong
2107 # 1. if the package is installed by a user who cannot write `.'
2108 # make install will fail,
2109 # 2. the above comment should most certainly read
2110 # $(mkdir_p) $(DESTDIR)$(somedir)
2111 # so it does not work when $(somedir) is undefined and
2112 # $(DESTDIR) is not.
2113 # To support the latter case, we have to write
2114 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2115 # so the `.' trick is pointless.
2116 mkdir_p='mkdir -p --'
2118 # On NextStep and OpenStep, the `mkdir' command does not
2119 # recognize any option. It will interpret all options as
2120 # directories to create, and then abort because `.' already
2122 for d in ./-p ./--version;
2124 test -d $d && rmdir $d
2126 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2127 if test -f "$ac_aux_dir/mkinstalldirs"; then
2128 mkdir_p='$(mkinstalldirs)'
2130 mkdir_p='$(install_sh) -d'
2134 for ac_prog in gawk mawk nawk awk
2136 # Extract the first word of "$ac_prog", so it can be a program name with args.
2137 set dummy $ac_prog; ac_word=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_prog_AWK+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 if test -n "$AWK"; then
2144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 ac_cv_prog_AWK="$ac_prog"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 if test -n "$AWK"; then
2165 { echo "$as_me:$LINENO: result: $AWK" >&5
2166 echo "${ECHO_T}$AWK" >&6; }
2168 { echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6; }
2173 test -n "$AWK" && break
2176 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2178 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2179 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 cat >conftest.make <<\_ACEOF
2185 @echo '@@@%%%=$(MAKE)=@@@%%%'
2187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2188 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2190 eval ac_cv_prog_make_${ac_make}_set=yes;;
2192 eval ac_cv_prog_make_${ac_make}_set=no;;
2196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2197 { echo "$as_me:$LINENO: result: yes" >&5
2198 echo "${ECHO_T}yes" >&6; }
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2203 SET_MAKE="MAKE=${MAKE-make}"
2206 rm -rf .tst 2>/dev/null
2207 mkdir .tst 2>/dev/null
2208 if test -d .tst; then
2213 rmdir .tst 2>/dev/null
2215 # test to see if srcdir already configured
2216 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2217 test -f $srcdir/config.status; then
2218 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2219 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2220 { (exit 1); exit 1; }; }
2223 # test whether we have cygpath
2224 if test -z "$CYGPATH_W"; then
2225 if (cygpath --version) >/dev/null 2>/dev/null; then
2226 CYGPATH_W='cygpath -w'
2233 # Define the identity of the package.
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE "$PACKAGE"
2243 cat >>confdefs.h <<_ACEOF
2244 #define VERSION "$VERSION"
2247 # Some tools Automake needs.
2249 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2252 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2255 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2258 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2261 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2263 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2265 # Installed binaries are usually stripped using `strip' when the user
2266 # run `make install-strip'. However `strip' might not be the right
2267 # tool to use in cross-compilation environments, therefore Automake
2268 # will honor the `STRIP' environment variable to overrule this program.
2269 if test "$cross_compiling" != no; then
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}strip; ac_word=$2
2273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2275 if test "${ac_cv_prog_STRIP+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 if test -n "$STRIP"; then
2279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 STRIP=$ac_cv_prog_STRIP
2299 if test -n "$STRIP"; then
2300 { echo "$as_me:$LINENO: result: $STRIP" >&5
2301 echo "${ECHO_T}$STRIP" >&6; }
2303 { echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6; }
2309 if test -z "$ac_cv_prog_STRIP"; then
2311 # Extract the first word of "strip", so it can be a program name with args.
2312 set dummy strip; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$ac_ct_STRIP"; then
2319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_ac_ct_STRIP="strip"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2339 if test -n "$ac_ct_STRIP"; then
2340 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2341 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2343 { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2347 if test "x$ac_ct_STRIP" = x; then
2350 case $cross_compiling:$ac_tool_warned in
2352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2353 whose name does not start with the host triplet. If you think this
2354 configuration is useful to you, please write to autoconf@gnu.org." >&5
2355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet. If you think this
2357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2358 ac_tool_warned=yes ;;
2363 STRIP="$ac_cv_prog_STRIP"
2367 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2369 # We need awk for the "check" target. The system "awk" is bad on
2371 # Always define AMTAR for backward compatibility.
2373 AMTAR=${AMTAR-"${am_missing_run}tar"}
2375 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2381 ac_config_headers="$ac_config_headers config.h"
2383 # Check whether --enable-shared was given.
2384 if test "${enable_shared+set}" = set; then
2385 enableval=$enable_shared; p=${PACKAGE-default}
2387 yes) enable_shared=yes ;;
2388 no) enable_shared=no ;;
2391 # Look at the argument we got. We use all the common list separators.
2392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2393 for pkg in $enableval; do
2395 if test "X$pkg" = "X$p"; then
2407 # Check whether --enable-static was given.
2408 if test "${enable_static+set}" = set; then
2409 enableval=$enable_static; p=${PACKAGE-default}
2411 yes) enable_static=yes ;;
2412 no) enable_static=no ;;
2415 # Look at the argument we got. We use all the common list separators.
2416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2417 for pkg in $enableval; do
2419 if test "X$pkg" = "X$p"; then
2431 # Check whether --enable-fast-install was given.
2432 if test "${enable_fast_install+set}" = set; then
2433 enableval=$enable_fast_install; p=${PACKAGE-default}
2435 yes) enable_fast_install=yes ;;
2436 no) enable_fast_install=no ;;
2438 enable_fast_install=no
2439 # Look at the argument we got. We use all the common list separators.
2440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2441 for pkg in $enableval; do
2443 if test "X$pkg" = "X$p"; then
2444 enable_fast_install=yes
2451 enable_fast_install=yes
2455 # Make sure we can run config.sub.
2456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2457 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2458 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2459 { (exit 1); exit 1; }; }
2461 { echo "$as_me:$LINENO: checking build system type" >&5
2462 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2463 if test "${ac_cv_build+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 ac_build_alias=$build_alias
2467 test "x$ac_build_alias" = x &&
2468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2469 test "x$ac_build_alias" = x &&
2470 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2471 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2472 { (exit 1); exit 1; }; }
2473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2474 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2476 { (exit 1); exit 1; }; }
2479 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2480 echo "${ECHO_T}$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2484 echo "$as_me: error: invalid value of canonical build" >&2;}
2485 { (exit 1); exit 1; }; };;
2488 ac_save_IFS=$IFS; IFS='-'
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2501 { echo "$as_me:$LINENO: checking host system type" >&5
2502 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2503 if test "${ac_cv_host+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test "x$host_alias" = x; then
2507 ac_cv_host=$ac_cv_build
2509 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2510 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2512 { (exit 1); exit 1; }; }
2516 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2517 echo "${ECHO_T}$ac_cv_host" >&6; }
2520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2521 echo "$as_me: error: invalid value of canonical host" >&2;}
2522 { (exit 1); exit 1; }; };;
2525 ac_save_IFS=$IFS; IFS='-'
2531 # Remember, the first character of IFS is used to create $*,
2532 # except with old shells:
2535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2538 DEPDIR="${am__leading_dot}deps"
2540 ac_config_commands="$ac_config_commands depfiles"
2543 am_make=${MAKE-make}
2544 cat > confinc << 'END'
2549 # If we don't find an include directive, just comment out the code.
2550 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2551 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2555 # First try GNU make style include.
2556 echo "include confinc" > confmf
2557 # We grep out `Entering directory' and `Leaving directory'
2558 # messages which can occur if `w' ends up in MAKEFLAGS.
2559 # In particular we don't look at `^make:' because GNU make might
2560 # be invoked under some other name (usually "gmake"), in which
2561 # case it prints its new name instead of `make'.
2562 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2567 # Now try BSD make style include.
2568 if test "$am__include" = "#"; then
2569 echo '.include "confinc"' > confmf
2570 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2571 am__include=.include
2578 { echo "$as_me:$LINENO: result: $_am_result" >&5
2579 echo "${ECHO_T}$_am_result" >&6; }
2580 rm -f confinc confmf
2582 # Check whether --enable-dependency-tracking was given.
2583 if test "${enable_dependency_tracking+set}" = set; then
2584 enableval=$enable_dependency_tracking;
2587 if test "x$enable_dependency_tracking" != xno; then
2588 am_depcomp="$ac_aux_dir/depcomp"
2593 if test "x$enable_dependency_tracking" != xno; then
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 if test -n "$CC"; then
2638 { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2647 if test -z "$ac_cv_prog_CC"; then
2649 # Extract the first word of "gcc", so it can be a program name with args.
2650 set dummy gcc; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_CC="gcc"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6; }
2681 { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2685 if test "x$ac_ct_CC" = x; then
2688 case $cross_compiling:$ac_tool_warned in
2690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet. If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&5
2693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2694 whose name does not start with the host triplet. If you think this
2695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2696 ac_tool_warned=yes ;;
2704 if test -z "$CC"; then
2705 if test -n "$ac_tool_prefix"; then
2706 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2707 set dummy ${ac_tool_prefix}cc; ac_word=$2
2708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_CC+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 if test -n "$CC"; then
2714 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_CC="${ac_tool_prefix}cc"
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 if test -n "$CC"; then
2735 { echo "$as_me:$LINENO: result: $CC" >&5
2736 echo "${ECHO_T}$CC" >&6; }
2738 { echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6; }
2745 if test -z "$CC"; then
2746 # Extract the first word of "cc", so it can be a program name with args.
2747 set dummy cc; ac_word=$2
2748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2765 ac_prog_rejected=yes
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 if test $ac_prog_rejected = yes; then
2777 # We found a bogon in the path, so make sure we never use it.
2778 set dummy $ac_cv_prog_CC
2780 if test $# != 0; then
2781 # We chose a different compiler from the bogus one.
2782 # However, it has the same basename, so the bogon will be chosen
2783 # first if we set CC to just the basename; use the full file name.
2785 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2791 if test -n "$CC"; then
2792 { echo "$as_me:$LINENO: result: $CC" >&5
2793 echo "${ECHO_T}$CC" >&6; }
2795 { echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6; }
2801 if test -z "$CC"; then
2802 if test -n "$ac_tool_prefix"; then
2803 for ac_prog in cl.exe
2805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2809 if test "${ac_cv_prog_CC+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 if test -n "$CC"; then
2834 { echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6; }
2837 { echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6; }
2842 test -n "$CC" && break
2845 if test -z "$CC"; then
2847 for ac_prog in cl.exe
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$ac_ct_CC"; then
2857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_ac_ct_CC="$ac_prog"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2886 test -n "$ac_ct_CC" && break
2889 if test "x$ac_ct_CC" = x; then
2892 case $cross_compiling:$ac_tool_warned in
2894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet. If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&5
2897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2898 whose name does not start with the host triplet. If you think this
2899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2900 ac_tool_warned=yes ;;
2909 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: no acceptable C compiler found in \$PATH
2912 See \`config.log' for more details." >&2;}
2913 { (exit 1); exit 1; }; }
2915 # Provide some information about the compiler.
2916 echo "$as_me:$LINENO: checking for C compiler version" >&5
2917 ac_compiler=`set X $ac_compile; echo $2`
2918 { (ac_try="$ac_compiler --version >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler --version >&5") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2928 { (ac_try="$ac_compiler -v >&5"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compiler -v >&5") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2938 { (ac_try="$ac_compiler -V >&5"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compiler -V >&5") 2>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2964 ac_clean_files_save=$ac_clean_files
2965 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2966 # Try to create an executable without -o first, disregard a.out.
2967 # It will help us diagnose broken compilers, and finding out an intuition
2969 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2970 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2971 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2973 # List of possible output files, starting from the most likely.
2974 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2975 # only as a last resort. b.out is created by i960 compilers.
2976 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2978 # The IRIX 6 linker writes into existing files which may not be
2979 # executable, retaining their permissions. Remove them first so a
2980 # subsequent execution test works.
2982 for ac_file in $ac_files
2985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2986 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2991 if { (ac_try="$ac_link_default"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_link_default") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; then
3001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3006 for ac_file in $ac_files ''
3008 test -f "$ac_file" || continue
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3013 # We found the default executable, but exeext='' is most
3017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021 # We set ac_cv_exeext here because the later test for it is not
3022 # safe: cross compilers may not add the suffix if given an `-o'
3023 # argument, so we may need to know it at that point already.
3024 # Even if this section looks crufty: it has the advantage of
3031 test "$ac_cv_exeext" = no && ac_cv_exeext=
3037 { echo "$as_me:$LINENO: result: $ac_file" >&5
3038 echo "${ECHO_T}$ac_file" >&6; }
3039 if test -z "$ac_file"; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: C compiler cannot create executables
3046 See \`config.log' for more details." >&2;}
3047 { (exit 77); exit 77; }; }
3050 ac_exeext=$ac_cv_exeext
3052 # Check that the compiler produces executables we can run. If not, either
3053 # the compiler is broken, or we cross compile.
3054 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3055 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3056 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3057 # If not cross compiling, check that we can run a simple program.
3058 if test "$cross_compiling" != yes; then
3059 if { ac_try='./$ac_file'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 if test "$cross_compiling" = maybe; then
3074 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3075 If you meant to cross compile, use \`--host'.
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details." >&2;}
3080 { (exit 1); exit 1; }; }
3084 { echo "$as_me:$LINENO: result: yes" >&5
3085 echo "${ECHO_T}yes" >&6; }
3087 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3088 ac_clean_files=$ac_clean_files_save
3089 # Check that the compiler produces executables we can run. If not, either
3090 # the compiler is broken, or we cross compile.
3091 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3092 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3093 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3094 echo "${ECHO_T}$cross_compiling" >&6; }
3096 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3097 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3098 if { (ac_try="$ac_link"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_link") 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; then
3108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3112 for ac_file in conftest.exe conftest conftest.*; do
3113 test -f "$ac_file" || continue
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3123 See \`config.log' for more details." >&5
3124 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." >&2;}
3126 { (exit 1); exit 1; }; }
3129 rm -f conftest$ac_cv_exeext
3130 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3131 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3133 rm -f conftest.$ac_ext
3134 EXEEXT=$ac_cv_exeext
3136 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3137 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3138 if test "${ac_cv_objext+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3156 rm -f conftest.o conftest.obj
3157 if { (ac_try="$ac_compile"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; then
3167 for ac_file in conftest.o conftest.obj conftest.*; do
3168 test -f "$ac_file" || continue;
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3171 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3179 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details." >&2;}
3183 { (exit 1); exit 1; }; }
3186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3188 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3189 echo "${ECHO_T}$ac_cv_objext" >&6; }
3190 OBJEXT=$ac_cv_objext
3192 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3193 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3194 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 cat >conftest.$ac_ext <<_ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_compile") 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } && {
3229 test -z "$ac_c_werror_flag" ||
3230 test ! -s conftest.err
3231 } && test -s conftest.$ac_objext; then
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3244 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3245 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3246 GCC=`test $ac_compiler_gnu = yes && echo yes`
3247 ac_test_CFLAGS=${CFLAGS+set}
3248 ac_save_CFLAGS=$CFLAGS
3249 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3250 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_g+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 ac_save_c_werror_flag=$ac_c_werror_flag
3255 ac_c_werror_flag=yes
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } && {
3287 test -z "$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3289 } && test -s conftest.$ac_objext; then
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } && {
3325 test -z "$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3335 cat >conftest.$ac_ext <<_ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3359 grep -v '^ *+' conftest.er1 >conftest.err
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && {
3364 test -z "$ac_c_werror_flag" ||
3365 test ! -s conftest.err
3366 } && test -s conftest.$ac_objext; then
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_c_werror_flag=$ac_save_c_werror_flag
3384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3386 if test "$ac_test_CFLAGS" = set; then
3387 CFLAGS=$ac_save_CFLAGS
3388 elif test $ac_cv_prog_cc_g = yes; then
3389 if test "$GCC" = yes; then
3395 if test "$GCC" = yes; then
3401 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3402 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3403 if test "${ac_cv_prog_cc_c89+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 ac_cv_prog_cc_c89=no
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3416 #include <sys/types.h>
3417 #include <sys/stat.h>
3418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3419 struct buf { int x; };
3420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3421 static char *e (p, i)
3427 static char *f (char * (*g) (char **, int), char **p, ...)
3432 s = g (p, va_arg (v,int));
3437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3438 function prototypes and stuff, but not '\xHH' hex character constants.
3439 These don't provoke an error unfortunately, instead are silently treated
3440 as 'x'. The following induces an error, until -std is added to get
3441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3442 array size at least. It's necessary to write '\x00'==0 to get something
3443 that's true only with -std. */
3444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3447 inside strings and character constants. */
3449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3451 int test (int i, double x);
3452 struct s1 {int (*f) (int a);};
3453 struct s2 {int (*f) (double a);};
3454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3468 CC="$ac_save_CC $ac_arg"
3469 rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3486 ac_cv_prog_cc_c89=$ac_arg
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3494 rm -f core conftest.err conftest.$ac_objext
3495 test "x$ac_cv_prog_cc_c89" != "xno" && break
3497 rm -f conftest.$ac_ext
3502 case "x$ac_cv_prog_cc_c89" in
3504 { echo "$as_me:$LINENO: result: none needed" >&5
3505 echo "${ECHO_T}none needed" >&6; } ;;
3507 { echo "$as_me:$LINENO: result: unsupported" >&5
3508 echo "${ECHO_T}unsupported" >&6; } ;;
3510 CC="$CC $ac_cv_prog_cc_c89"
3511 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 depcc="$CC" am_compiler_list=
3524 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3525 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3526 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3530 # We make a subdir and do the tests there. Otherwise we can end up
3531 # making bogus files that we don't know about and never remove. For
3532 # instance it was reported that on HP-UX the gcc test will end up
3533 # making a dummy file named `D' -- because `-MD' means `put the output
3536 # Copy depcomp to subdir because otherwise we won't find it if we're
3537 # using a relative directory.
3538 cp "$am_depcomp" conftest.dir
3540 # We will build objects and dependencies in a subdirectory because
3541 # it helps to detect inapplicable dependency modes. For instance
3542 # both Tru64's cc and ICC support -MD to output dependencies as a
3543 # side effect of compilation, but ICC will put the dependencies in
3544 # the current directory while Tru64 will put them in the object
3548 am_cv_CC_dependencies_compiler_type=none
3549 if test "$am_compiler_list" = ""; then
3550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3552 for depmode in $am_compiler_list; do
3553 # Setup a source with many dependencies, because some compilers
3554 # like to wrap large dependency lists on column 80 (with \), and
3555 # we should not choose a depcomp mode which is confused by this.
3557 # We need to recreate these files for each test, as the compiler may
3558 # overwrite some of them when testing with obscure command lines.
3559 # This happens at least with the AIX C compiler.
3561 for i in 1 2 3 4 5 6; do
3562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3564 # Solaris 8's {/usr,}/bin/sh.
3565 touch sub/conftst$i.h
3567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3571 # after this tag, mechanisms are not by side-effect, so they'll
3572 # only be used when explicitly requested
3573 if test "x$enable_dependency_tracking" = xyes; then
3581 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3582 # mode. It turns out that the SunPro C++ compiler does not properly
3583 # handle `-M -o', and we need to detect this.
3584 if depmode=$depmode \
3585 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3587 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3588 >/dev/null 2>conftest.err &&
3589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3590 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3592 # icc doesn't choke on unknown options, it will just issue warnings
3593 # or remarks (even with -Werror). So we grep stderr for any message
3594 # that says an option was ignored or not supported.
3595 # When given -MP, icc 7.0 and 7.1 complain thusly:
3596 # icc: Command line warning: ignoring option '-M'; no argument required
3597 # The diagnosis changed in icc 8.0:
3598 # icc: Command line remark: option '-MP' not supported
3599 if (grep 'ignoring option' conftest.err ||
3600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3601 am_cv_CC_dependencies_compiler_type=$depmode
3610 am_cv_CC_dependencies_compiler_type=none
3614 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3615 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3616 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3621 test "x$enable_dependency_tracking" != xno \
3622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3624 am__fastdepCC_FALSE='#'
3626 am__fastdepCC_TRUE='#'
3627 am__fastdepCC_FALSE=
3631 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3632 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3633 if test "${lt_cv_path_SED+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 # Loop through the user's path and test for sed and gsed.
3637 # Then use that list of sed's as ones to test for truncation.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 for lt_ac_prog in sed gsed; do
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3646 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3653 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3654 # along with /bin/sed that truncates output.
3655 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3656 test ! -f $lt_ac_sed && continue
3657 cat /dev/null > conftest.in
3659 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3660 # Check for GNU sed and select it if it is found.
3661 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3662 lt_cv_path_SED=$lt_ac_sed
3666 cat conftest.in conftest.in >conftest.tmp
3667 mv conftest.tmp conftest.in
3668 cp conftest.in conftest.nl
3670 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3671 cmp -s conftest.out conftest.nl || break
3672 # 10000 chars as input seems more than enough
3673 test $lt_ac_count -gt 10 && break
3674 lt_ac_count=`expr $lt_ac_count + 1`
3675 if test $lt_ac_count -gt $lt_ac_max; then
3676 lt_ac_max=$lt_ac_count
3677 lt_cv_path_SED=$lt_ac_sed
3685 { echo "$as_me:$LINENO: result: $SED" >&5
3686 echo "${ECHO_T}$SED" >&6; }
3688 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3689 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3690 if test "${ac_cv_path_GREP+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 # Extract the first word of "grep ggrep" to use in msg output
3694 if test -z "$GREP"; then
3695 set dummy grep ggrep; ac_prog_name=$2
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 ac_path_GREP_found=false
3700 # Loop through the user's path and test for each of PROGNAME-LIST
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3705 test -z "$as_dir" && as_dir=.
3706 for ac_prog in grep ggrep; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3709 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3710 # Check for GNU ac_path_GREP and select it if it is found.
3711 # Check for GNU $ac_path_GREP
3712 case `"$ac_path_GREP" --version 2>&1` in
3714 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3717 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720 cat "conftest.in" "conftest.in" >"conftest.tmp"
3721 mv "conftest.tmp" "conftest.in"
3722 cp "conftest.in" "conftest.nl"
3723 echo 'GREP' >> "conftest.nl"
3724 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3726 ac_count=`expr $ac_count + 1`
3727 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3728 # Best one so far, save it but keep looking for a better one
3729 ac_cv_path_GREP="$ac_path_GREP"
3730 ac_path_GREP_max=$ac_count
3732 # 10*(2^10) chars as input seems more than enough
3733 test $ac_count -gt 10 && break
3735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3739 $ac_path_GREP_found && break 3
3749 GREP="$ac_cv_path_GREP"
3750 if test -z "$GREP"; then
3751 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3752 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3753 { (exit 1); exit 1; }; }
3757 ac_cv_path_GREP=$GREP
3762 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3763 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3764 GREP="$ac_cv_path_GREP"
3767 { echo "$as_me:$LINENO: checking for egrep" >&5
3768 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3769 if test "${ac_cv_path_EGREP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3773 then ac_cv_path_EGREP="$GREP -E"
3775 # Extract the first word of "egrep" to use in msg output
3776 if test -z "$EGREP"; then
3777 set dummy egrep; ac_prog_name=$2
3778 if test "${ac_cv_path_EGREP+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 ac_path_EGREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in egrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3791 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3792 # Check for GNU ac_path_EGREP and select it if it is found.
3793 # Check for GNU $ac_path_EGREP
3794 case `"$ac_path_EGREP" --version 2>&1` in
3796 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 echo 'EGREP' >> "conftest.nl"
3806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 ac_count=`expr $ac_count + 1`
3809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_EGREP="$ac_path_EGREP"
3812 ac_path_EGREP_max=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 $ac_path_EGREP_found && break 3
3831 EGREP="$ac_cv_path_EGREP"
3832 if test -z "$EGREP"; then
3833 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3835 { (exit 1); exit 1; }; }
3839 ac_cv_path_EGREP=$EGREP
3845 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3846 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3847 EGREP="$ac_cv_path_EGREP"
3851 # Check whether --with-gnu-ld was given.
3852 if test "${with_gnu_ld+set}" = set; then
3853 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3859 if test "$GCC" = yes; then
3860 # Check if gcc -print-prog-name=ld gives a path.
3861 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3862 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3865 # gcc leaves a trailing carriage return which upsets mingw
3866 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3868 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3871 # Accept absolute paths.
3873 re_direlt='/[^/][^/]*/\.\./'
3874 # Canonicalize the pathname of ld
3875 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3876 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3877 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3879 test -z "$LD" && LD="$ac_prog"
3882 # If it fails, then pretend we aren't using GCC.
3886 # If it is relative, then search for the first ld in PATH.
3890 elif test "$with_gnu_ld" = yes; then
3891 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3892 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3894 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3895 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3897 if test "${lt_cv_path_LD+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 if test -z "$LD"; then
3901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3902 for ac_dir in $PATH; do
3904 test -z "$ac_dir" && ac_dir=.
3905 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3906 lt_cv_path_LD="$ac_dir/$ac_prog"
3907 # Check to see if the program is GNU ld. I'd rather use --version,
3908 # but apparently some variants of GNU ld only accept -v.
3909 # Break only if it was the GNU/non-GNU ld that we prefer.
3910 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3911 *GNU* | *'with BFD'*)
3912 test "$with_gnu_ld" != no && break
3915 test "$with_gnu_ld" != yes && break
3922 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3927 if test -n "$LD"; then
3928 { echo "$as_me:$LINENO: result: $LD" >&5
3929 echo "${ECHO_T}$LD" >&6; }
3931 { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3934 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3935 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3936 { (exit 1); exit 1; }; }
3937 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3938 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3939 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3943 case `$LD -v 2>&1 </dev/null` in
3944 *GNU* | *'with BFD'*)
3945 lt_cv_prog_gnu_ld=yes
3948 lt_cv_prog_gnu_ld=no
3952 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3953 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3954 with_gnu_ld=$lt_cv_prog_gnu_ld
3957 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3958 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3959 if test "${lt_cv_ld_reload_flag+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 lt_cv_ld_reload_flag='-r'
3964 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3965 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3966 reload_flag=$lt_cv_ld_reload_flag
3967 case $reload_flag in
3969 *) reload_flag=" $reload_flag" ;;
3971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3974 if test "$GCC" = yes; then
3975 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3977 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3982 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3983 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3984 if test "${lt_cv_path_NM+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$NM"; then
3988 # Let the user override the test.
3991 lt_nm_to_check="${ac_tool_prefix}nm"
3992 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3993 lt_nm_to_check="$lt_nm_to_check nm"
3995 for lt_tmp_nm in $lt_nm_to_check; do
3996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3997 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3999 test -z "$ac_dir" && ac_dir=.
4000 tmp_nm="$ac_dir/$lt_tmp_nm"
4001 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4002 # Check to see if the nm accepts a BSD-compat flag.
4003 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4004 # nm: unknown option "B" ignored
4005 # Tru64's nm complains that /dev/null is an invalid object file
4006 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4007 */dev/null* | *'Invalid file or object type'*)
4008 lt_cv_path_NM="$tmp_nm -B"
4012 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4014 lt_cv_path_NM="$tmp_nm -p"
4018 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4019 continue # so that we can try to find one that supports BSD flags
4028 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4031 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4032 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4035 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4036 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4038 if test "$LN_S" = "ln -s"; then
4039 { echo "$as_me:$LINENO: result: yes" >&5
4040 echo "${ECHO_T}yes" >&6; }
4042 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4043 echo "${ECHO_T}no, using $LN_S" >&6; }
4046 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4047 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4048 if test "${lt_cv_deplibs_check_method+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 lt_cv_file_magic_cmd='$MAGIC_CMD'
4052 lt_cv_file_magic_test_file=
4053 lt_cv_deplibs_check_method='unknown'
4054 # Need to set the preceding variable on all platforms that support
4055 # interlibrary dependencies.
4056 # 'none' -- dependencies not supported.
4057 # `unknown' -- same as none, but documents that we really don't know.
4058 # 'pass_all' -- all dependencies passed with no checks.
4059 # 'test_compile' -- check by making test program.
4060 # 'file_magic [[regex]]' -- check by looking for files in library path
4061 # which responds to the $file_magic_cmd with a given extended regex.
4062 # If you have `file' or equivalent on your system and you're not sure
4063 # whether `pass_all' will *always* work, you probably want this one.
4067 lt_cv_deplibs_check_method=pass_all
4071 lt_cv_deplibs_check_method=pass_all
4075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4076 lt_cv_file_magic_cmd='/usr/bin/file -L'
4077 lt_cv_file_magic_test_file=/shlib/libc.so
4081 # func_win32_libid is a shell function defined in ltmain.sh
4082 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4083 lt_cv_file_magic_cmd='func_win32_libid'
4087 # Base MSYS/MinGW do not provide the 'file' command needed by
4088 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4089 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4090 lt_cv_file_magic_cmd='$OBJDUMP -f'
4093 darwin* | rhapsody*)
4094 lt_cv_deplibs_check_method=pass_all
4097 freebsd* | kfreebsd*-gnu | dragonfly*)
4098 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4101 # Not sure whether the presence of OpenBSD here was a mistake.
4102 # Let's accept both of them until this is cleared up.
4103 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4104 lt_cv_file_magic_cmd=/usr/bin/file
4105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4109 lt_cv_deplibs_check_method=pass_all
4114 lt_cv_deplibs_check_method=pass_all
4117 hpux10.20* | hpux11*)
4118 lt_cv_file_magic_cmd=/usr/bin/file
4121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4122 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4125 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]'
4126 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4129 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4130 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4136 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4140 irix5* | irix6* | nonstopux*)
4142 *-32|*"-32 ") libmagic=32-bit;;
4143 *-n32|*"-n32 ") libmagic=N32;;
4144 *-64|*"-64 ") libmagic=64-bit;;
4145 *) libmagic=never-match;;
4147 lt_cv_deplibs_check_method=pass_all
4150 # This must be Linux ELF.
4152 lt_cv_deplibs_check_method=pass_all
4156 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4157 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4165 lt_cv_file_magic_cmd=/usr/bin/file
4166 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4170 lt_cv_deplibs_check_method=unknown
4174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4181 osf3* | osf4* | osf5*)
4182 lt_cv_deplibs_check_method=pass_all
4186 lt_cv_deplibs_check_method=pass_all
4190 case $host_vendor in
4192 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]'
4193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4196 lt_cv_deplibs_check_method=pass_all
4199 lt_cv_file_magic_cmd='/bin/file'
4200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4203 lt_cv_file_magic_cmd='/bin/file'
4204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4205 lt_cv_file_magic_test_file=/lib/libc.so
4208 lt_cv_deplibs_check_method=pass_all
4211 lt_cv_deplibs_check_method=pass_all
4216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4217 lt_cv_deplibs_check_method=pass_all
4222 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4223 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4224 file_magic_cmd=$lt_cv_file_magic_cmd
4225 deplibs_check_method=$lt_cv_deplibs_check_method
4226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4231 # If no C compiler was specified, use CC.
4234 # If no C compiler flags were specified, use CFLAGS.
4235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4237 # Allow CC to be a program name with arguments.
4241 # Check whether --enable-libtool-lock was given.
4242 if test "${enable_libtool_lock+set}" = set; then
4243 enableval=$enable_libtool_lock;
4246 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4248 # Some flags need to be propagated to the compiler or linker for good
4252 # Find out which ABI we are using.
4253 echo 'int i;' > conftest.$ac_ext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; then
4259 case `/usr/bin/file conftest.$ac_objext` in
4271 # Find out which ABI we are using.
4272 echo '#line 4272 "configure"' > conftest.$ac_ext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274 (eval $ac_compile) 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; then
4278 if test "$lt_cv_prog_gnu_ld" = yes; then
4279 case `/usr/bin/file conftest.$ac_objext` in
4281 LD="${LD-ld} -melf32bsmip"
4284 LD="${LD-ld} -melf32bmipn32"
4287 LD="${LD-ld} -melf64bmip"
4291 case `/usr/bin/file conftest.$ac_objext` in
4307 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4308 # Find out which ABI we are using.
4309 echo 'int i;' > conftest.$ac_ext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; then
4315 case `/usr/bin/file conftest.o` in
4319 LD="${LD-ld} -m elf_i386"
4321 ppc64-*linux*|powerpc64-*linux*)
4322 LD="${LD-ld} -m elf32ppclinux"
4325 LD="${LD-ld} -m elf_s390"
4328 LD="${LD-ld} -m elf32_sparc"
4335 LD="${LD-ld} -m elf_x86_64"
4337 ppc*-*linux*|powerpc*-*linux*)
4338 LD="${LD-ld} -m elf64ppc"
4341 LD="${LD-ld} -m elf64_s390"
4344 LD="${LD-ld} -m elf64_sparc"
4354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4355 SAVE_CFLAGS="$CFLAGS"
4356 CFLAGS="$CFLAGS -belf"
4357 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4358 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4359 if test "${lt_cv_cc_needs_belf+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 ac_cpp='$CPP $CPPFLAGS'
4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4383 rm -f conftest.$ac_objext conftest$ac_exeext
4384 if { (ac_try="$ac_link"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_link") 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && {
4397 test -z "$ac_c_werror_flag" ||
4398 test ! -s conftest.err
4399 } && test -s conftest$ac_exeext &&
4400 $as_test_x conftest$ac_exeext; then
4401 lt_cv_cc_needs_belf=yes
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 lt_cv_cc_needs_belf=no
4409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4410 conftest$ac_exeext conftest.$ac_ext
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4419 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4422 CFLAGS="$SAVE_CFLAGS"
4426 # Find out which ABI we are using.
4427 echo 'int i;' > conftest.$ac_ext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; then
4433 case `/usr/bin/file conftest.o` in
4435 case $lt_cv_prog_gnu_ld in
4436 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4437 *) LD="${LD-ld} -64" ;;
4448 need_locks="$enable_libtool_lock"
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4457 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4462 if test -z "$CPP"; then
4463 if test "${ac_cv_prog_CPP+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 # Double quotes because CPP needs to be expanded
4467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4470 for ac_c_preproc_warn_flag in '' yes
4472 # Use a header file that comes with gcc, so configuring glibc
4473 # with a fresh cross-compiler works.
4474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 # <limits.h> exists even on freestanding compilers.
4476 # On the NeXT, cc -E runs the code through the compiler's parser,
4477 # not just through cpp. "Syntax error" is here to catch this case.
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4485 # include <limits.h>
4487 # include <assert.h>
4491 if { (ac_try="$ac_cpp conftest.$ac_ext"
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4499 grep -v '^ *+' conftest.er1 >conftest.err
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } >/dev/null && {
4504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4505 test ! -s conftest.err
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 # Broken: fails on valid input.
4516 rm -f conftest.err conftest.$ac_ext
4518 # OK, works on sane cases. Now check whether nonexistent headers
4519 # can be detected and how.
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #include <ac_nonexistent.h>
4528 if { (ac_try="$ac_cpp conftest.$ac_ext"
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } >/dev/null && {
4541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4542 test ! -s conftest.err
4544 # Broken: success on invalid input.
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 # Passes both tests.
4555 rm -f conftest.err conftest.$ac_ext
4558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559 rm -f conftest.err conftest.$ac_ext
4560 if $ac_preproc_ok; then
4572 { echo "$as_me:$LINENO: result: $CPP" >&5
4573 echo "${ECHO_T}$CPP" >&6; }
4575 for ac_c_preproc_warn_flag in '' yes
4577 # Use a header file that comes with gcc, so configuring glibc
4578 # with a fresh cross-compiler works.
4579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4580 # <limits.h> exists even on freestanding compilers.
4581 # On the NeXT, cc -E runs the code through the compiler's parser,
4582 # not just through cpp. "Syntax error" is here to catch this case.
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4590 # include <limits.h>
4592 # include <assert.h>
4596 if { (ac_try="$ac_cpp conftest.$ac_ext"
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } >/dev/null && {
4609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 # Broken: fails on valid input.
4621 rm -f conftest.err conftest.$ac_ext
4623 # OK, works on sane cases. Now check whether nonexistent headers
4624 # can be detected and how.
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 #include <ac_nonexistent.h>
4633 if { (ac_try="$ac_cpp conftest.$ac_ext"
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4641 grep -v '^ *+' conftest.er1 >conftest.err
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null && {
4646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4649 # Broken: success on invalid input.
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 # Passes both tests.
4660 rm -f conftest.err conftest.$ac_ext
4663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4664 rm -f conftest.err conftest.$ac_ext
4665 if $ac_preproc_ok; then
4668 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4669 See \`config.log' for more details." >&5
4670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4671 See \`config.log' for more details." >&2;}
4672 { (exit 1); exit 1; }; }
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4683 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4684 if test "${ac_cv_header_stdc+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4706 rm -f conftest.$ac_objext
4707 if { (ac_try="$ac_compile"
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_compile") 2>conftest.er1
4715 grep -v '^ *+' conftest.er1 >conftest.err
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest.$ac_objext; then
4723 ac_cv_header_stdc=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_cv_header_stdc=no
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 if test $ac_cv_header_stdc = yes; then
4734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4735 cat >conftest.$ac_ext <<_ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745 $EGREP "memchr" >/dev/null 2>&1; then
4748 ac_cv_header_stdc=no
4754 if test $ac_cv_header_stdc = yes; then
4755 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4756 cat >conftest.$ac_ext <<_ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 $EGREP "free" >/dev/null 2>&1; then
4769 ac_cv_header_stdc=no
4775 if test $ac_cv_header_stdc = yes; then
4776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4777 if test "$cross_compiling" = yes; then
4780 cat >conftest.$ac_ext <<_ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4788 #if ((' ' & 0x0FF) == 0x020)
4789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4792 # define ISLOWER(c) \
4793 (('a' <= (c) && (c) <= 'i') \
4794 || ('j' <= (c) && (c) <= 'r') \
4795 || ('s' <= (c) && (c) <= 'z'))
4796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4804 for (i = 0; i < 256; i++)
4805 if (XOR (islower (i), ISLOWER (i))
4806 || toupper (i) != TOUPPER (i))
4811 rm -f conftest$ac_exeext
4812 if { (ac_try="$ac_link"
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_link") 2>&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4822 { (case "(($ac_try" in
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_try") 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4833 echo "$as_me: program exited with status $ac_status" >&5
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 ac_cv_header_stdc=no
4840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4846 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4847 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4848 if test $ac_cv_header_stdc = yes; then
4850 cat >>confdefs.h <<\_ACEOF
4851 #define STDC_HEADERS 1
4856 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4867 inttypes.h stdint.h unistd.h
4869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 cat >conftest.$ac_ext <<_ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 $ac_includes_default
4883 #include <$ac_header>
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4902 eval "$as_ac_Header=yes"
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 eval "$as_ac_Header=no"
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 ac_res=`eval echo '${'$as_ac_Header'}'`
4913 { echo "$as_me:$LINENO: result: $ac_res" >&5
4914 echo "${ECHO_T}$ac_res" >&6; }
4915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 for ac_header in dlfcn.h
4928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 ac_res=`eval echo '${'$as_ac_Header'}'`
4936 { echo "$as_me:$LINENO: result: $ac_res" >&5
4937 echo "${ECHO_T}$ac_res" >&6; }
4939 # Is the header compilable?
4940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4949 #include <$ac_header>
4951 rm -f conftest.$ac_objext
4952 if { (ac_try="$ac_compile"
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_compile") 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && {
4965 test -z "$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 } && test -s conftest.$ac_objext; then
4968 ac_header_compiler=yes
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4973 ac_header_compiler=no
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4978 echo "${ECHO_T}$ac_header_compiler" >&6; }
4980 # Is the header present?
4981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <$ac_header>
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 grep -v '^ *+' conftest.er1 >conftest.err
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null && {
5004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5007 ac_header_preproc=yes
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 ac_header_preproc=no
5015 rm -f conftest.err conftest.$ac_ext
5016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5017 echo "${ECHO_T}$ac_header_preproc" >&6; }
5019 # So? What about this header?
5020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5026 ac_header_preproc=yes
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 eval "$as_ac_Header=\$ac_header_preproc"
5051 ac_res=`eval echo '${'$as_ac_Header'}'`
5052 { echo "$as_me:$LINENO: result: $ac_res" >&5
5053 echo "${ECHO_T}$ac_res" >&6; }
5056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5066 ac_cpp='$CXXCPP $CPPFLAGS'
5067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5070 if test -z "$CXX"; then
5071 if test -n "$CCC"; then
5074 if test -n "$ac_tool_prefix"; then
5075 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5081 if test "${ac_cv_prog_CXX+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 if test -n "$CXX"; then
5085 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 if test -n "$CXX"; then
5106 { echo "$as_me:$LINENO: result: $CXX" >&5
5107 echo "${ECHO_T}$CXX" >&6; }
5109 { echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6; }
5114 test -n "$CXX" && break
5117 if test -z "$CXX"; then
5119 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5121 # Extract the first word of "$ac_prog", so it can be a program name with args.
5122 set dummy $ac_prog; ac_word=$2
5123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5125 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 if test -n "$ac_ct_CXX"; then
5129 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_ac_ct_CXX="$ac_prog"
5139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5149 if test -n "$ac_ct_CXX"; then
5150 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5151 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5153 { echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6; }
5158 test -n "$ac_ct_CXX" && break
5161 if test "x$ac_ct_CXX" = x; then
5164 case $cross_compiling:$ac_tool_warned in
5166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5167 whose name does not start with the host triplet. If you think this
5168 configuration is useful to you, please write to autoconf@gnu.org." >&5
5169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5170 whose name does not start with the host triplet. If you think this
5171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5172 ac_tool_warned=yes ;;
5180 # Provide some information about the compiler.
5181 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5182 ac_compiler=`set X $ac_compile; echo $2`
5183 { (ac_try="$ac_compiler --version >&5"
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189 (eval "$ac_compiler --version >&5") 2>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }
5193 { (ac_try="$ac_compiler -v >&5"
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compiler -v >&5") 2>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }
5203 { (ac_try="$ac_compiler -V >&5"
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_compiler -V >&5") 2>&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }
5214 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5215 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5216 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5237 rm -f conftest.$ac_objext
5238 if { (ac_try="$ac_compile"
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_compile") 2>conftest.er1
5246 grep -v '^ *+' conftest.er1 >conftest.err
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && {
5251 test -z "$ac_cxx_werror_flag" ||
5252 test ! -s conftest.err
5253 } && test -s conftest.$ac_objext; then
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5266 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5267 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5268 GXX=`test $ac_compiler_gnu = yes && echo yes`
5269 ac_test_CXXFLAGS=${CXXFLAGS+set}
5270 ac_save_CXXFLAGS=$CXXFLAGS
5271 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5272 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5273 if test "${ac_cv_prog_cxx_g+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5277 ac_cxx_werror_flag=yes
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5295 rm -f conftest.$ac_objext
5296 if { (ac_try="$ac_compile"
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_compile") 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } && {
5309 test -z "$ac_cxx_werror_flag" ||
5310 test ! -s conftest.err
5311 } && test -s conftest.$ac_objext; then
5312 ac_cv_prog_cxx_g=yes
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5333 rm -f conftest.$ac_objext
5334 if { (ac_try="$ac_compile"
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compile") 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && {
5347 test -z "$ac_cxx_werror_flag" ||
5348 test ! -s conftest.err
5349 } && test -s conftest.$ac_objext; then
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5357 cat >conftest.$ac_ext <<_ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5372 rm -f conftest.$ac_objext
5373 if { (ac_try="$ac_compile"
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_compile") 2>conftest.er1
5381 grep -v '^ *+' conftest.er1 >conftest.err
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && {
5386 test -z "$ac_cxx_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest.$ac_objext; then
5389 ac_cv_prog_cxx_g=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5407 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5408 if test "$ac_test_CXXFLAGS" = set; then
5409 CXXFLAGS=$ac_save_CXXFLAGS
5410 elif test $ac_cv_prog_cxx_g = yes; then
5411 if test "$GXX" = yes; then
5417 if test "$GXX" = yes; then
5424 ac_cpp='$CXXCPP $CPPFLAGS'
5425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5429 depcc="$CXX" am_compiler_list=
5431 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5432 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5433 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5437 # We make a subdir and do the tests there. Otherwise we can end up
5438 # making bogus files that we don't know about and never remove. For
5439 # instance it was reported that on HP-UX the gcc test will end up
5440 # making a dummy file named `D' -- because `-MD' means `put the output
5443 # Copy depcomp to subdir because otherwise we won't find it if we're
5444 # using a relative directory.
5445 cp "$am_depcomp" conftest.dir
5447 # We will build objects and dependencies in a subdirectory because
5448 # it helps to detect inapplicable dependency modes. For instance
5449 # both Tru64's cc and ICC support -MD to output dependencies as a
5450 # side effect of compilation, but ICC will put the dependencies in
5451 # the current directory while Tru64 will put them in the object
5455 am_cv_CXX_dependencies_compiler_type=none
5456 if test "$am_compiler_list" = ""; then
5457 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5459 for depmode in $am_compiler_list; do
5460 # Setup a source with many dependencies, because some compilers
5461 # like to wrap large dependency lists on column 80 (with \), and
5462 # we should not choose a depcomp mode which is confused by this.
5464 # We need to recreate these files for each test, as the compiler may
5465 # overwrite some of them when testing with obscure command lines.
5466 # This happens at least with the AIX C compiler.
5468 for i in 1 2 3 4 5 6; do
5469 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5470 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5471 # Solaris 8's {/usr,}/bin/sh.
5472 touch sub/conftst$i.h
5474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5478 # after this tag, mechanisms are not by side-effect, so they'll
5479 # only be used when explicitly requested
5480 if test "x$enable_dependency_tracking" = xyes; then
5488 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5489 # mode. It turns out that the SunPro C++ compiler does not properly
5490 # handle `-M -o', and we need to detect this.
5491 if depmode=$depmode \
5492 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5493 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5494 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5495 >/dev/null 2>conftest.err &&
5496 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5497 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5498 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5499 # icc doesn't choke on unknown options, it will just issue warnings
5500 # or remarks (even with -Werror). So we grep stderr for any message
5501 # that says an option was ignored or not supported.
5502 # When given -MP, icc 7.0 and 7.1 complain thusly:
5503 # icc: Command line warning: ignoring option '-M'; no argument required
5504 # The diagnosis changed in icc 8.0:
5505 # icc: Command line remark: option '-MP' not supported
5506 if (grep 'ignoring option' conftest.err ||
5507 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5508 am_cv_CXX_dependencies_compiler_type=$depmode
5517 am_cv_CXX_dependencies_compiler_type=none
5521 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5522 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5523 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5528 test "x$enable_dependency_tracking" != xno \
5529 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5530 am__fastdepCXX_TRUE=
5531 am__fastdepCXX_FALSE='#'
5533 am__fastdepCXX_TRUE='#'
5534 am__fastdepCXX_FALSE=
5540 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5541 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5542 (test "X$CXX" != "Xg++"))) ; then
5544 ac_cpp='$CXXCPP $CPPFLAGS'
5545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5548 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5549 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5550 if test -z "$CXXCPP"; then
5551 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 # Double quotes because CXXCPP needs to be expanded
5555 for CXXCPP in "$CXX -E" "/lib/cpp"
5558 for ac_cxx_preproc_warn_flag in '' yes
5560 # Use a header file that comes with gcc, so configuring glibc
5561 # with a fresh cross-compiler works.
5562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5563 # <limits.h> exists even on freestanding compilers.
5564 # On the NeXT, cc -E runs the code through the compiler's parser,
5565 # not just through cpp. "Syntax error" is here to catch this case.
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5573 # include <limits.h>
5575 # include <assert.h>
5579 if { (ac_try="$ac_cpp conftest.$ac_ext"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5587 grep -v '^ *+' conftest.er1 >conftest.err
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null && {
5592 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5593 test ! -s conftest.err
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 # Broken: fails on valid input.
5604 rm -f conftest.err conftest.$ac_ext
5606 # OK, works on sane cases. Now check whether nonexistent headers
5607 # can be detected and how.
5608 cat >conftest.$ac_ext <<_ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #include <ac_nonexistent.h>
5616 if { (ac_try="$ac_cpp conftest.$ac_ext"
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5624 grep -v '^ *+' conftest.er1 >conftest.err
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } >/dev/null && {
5629 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5630 test ! -s conftest.err
5632 # Broken: success on invalid input.
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 # Passes both tests.
5643 rm -f conftest.err conftest.$ac_ext
5646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647 rm -f conftest.err conftest.$ac_ext
5648 if $ac_preproc_ok; then
5653 ac_cv_prog_CXXCPP=$CXXCPP
5656 CXXCPP=$ac_cv_prog_CXXCPP
5658 ac_cv_prog_CXXCPP=$CXXCPP
5660 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5661 echo "${ECHO_T}$CXXCPP" >&6; }
5663 for ac_cxx_preproc_warn_flag in '' yes
5665 # Use a header file that comes with gcc, so configuring glibc
5666 # with a fresh cross-compiler works.
5667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5668 # <limits.h> exists even on freestanding compilers.
5669 # On the NeXT, cc -E runs the code through the compiler's parser,
5670 # not just through cpp. "Syntax error" is here to catch this case.
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5678 # include <limits.h>
5680 # include <assert.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
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 # Broken: fails on valid input.
5709 rm -f conftest.err conftest.$ac_ext
5711 # OK, works on sane cases. Now check whether nonexistent headers
5712 # can be detected and how.
5713 cat >conftest.$ac_ext <<_ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719 #include <ac_nonexistent.h>
5721 if { (ac_try="$ac_cpp conftest.$ac_ext"
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1 >conftest.err
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } >/dev/null && {
5734 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5735 test ! -s conftest.err
5737 # Broken: success on invalid input.
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 # Passes both tests.
5748 rm -f conftest.err conftest.$ac_ext
5751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5752 rm -f conftest.err conftest.$ac_ext
5753 if $ac_preproc_ok; then
5756 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5757 See \`config.log' for more details." >&5
5758 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5759 See \`config.log' for more details." >&2;}
5760 { (exit 1); exit 1; }; }
5764 ac_cpp='$CXXCPP $CPPFLAGS'
5765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5773 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5774 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5776 if test -n "$ac_tool_prefix"; then
5777 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
5779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_prog_F77+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 if test -n "$F77"; then
5787 ac_cv_prog_F77="$F77" # Let the user override the test.
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 if test -n "$F77"; then
5808 { echo "$as_me:$LINENO: result: $F77" >&5
5809 echo "${ECHO_T}$F77" >&6; }
5811 { echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6; }
5816 test -n "$F77" && break
5819 if test -z "$F77"; then
5821 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
5823 # Extract the first word of "$ac_prog", so it can be a program name with args.
5824 set dummy $ac_prog; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 if test -n "$ac_ct_F77"; then
5831 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_prog_ac_ct_F77="$ac_prog"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5851 if test -n "$ac_ct_F77"; then
5852 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5853 echo "${ECHO_T}$ac_ct_F77" >&6; }
5855 { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5860 test -n "$ac_ct_F77" && break
5863 if test "x$ac_ct_F77" = x; then
5866 case $cross_compiling:$ac_tool_warned in
5868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5869 whose name does not start with the host triplet. If you think this
5870 configuration is useful to you, please write to autoconf@gnu.org." >&5
5871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5872 whose name does not start with the host triplet. If you think this
5873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5874 ac_tool_warned=yes ;;
5881 # Provide some information about the compiler.
5882 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5883 ac_compiler=`set X $ac_compile; echo $2`
5884 { (ac_try="$ac_compiler --version >&5"
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_compiler --version >&5") 2>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }
5894 { (ac_try="$ac_compiler -v >&5"
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compiler -v >&5") 2>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }
5904 { (ac_try="$ac_compiler -V >&5"
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compiler -V >&5") 2>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }
5916 # If we don't use `.F' as extension, the preprocessor is not run on the
5917 # input file. (Note that this only needs to work for GNU compilers.)
5920 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5921 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5922 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_f77_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5962 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5963 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5965 ac_test_FFLAGS=${FFLAGS+set}
5966 ac_save_FFLAGS=$FFLAGS
5968 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5969 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5970 if test "${ac_cv_prog_f77_g+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 cat >conftest.$ac_ext <<_ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5988 grep -v '^ *+' conftest.er1 >conftest.err
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && {
5993 test -z "$ac_f77_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest.$ac_objext; then
5996 ac_cv_prog_f77_g=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6008 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6009 if test "$ac_test_FFLAGS" = set; then
6010 FFLAGS=$ac_save_FFLAGS
6011 elif test $ac_cv_prog_f77_g = yes; then
6012 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6018 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6025 G77=`test $ac_compiler_gnu = yes && echo yes`
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6036 # find the maximum length of command line arguments
6037 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6038 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6039 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 # On DJGPP, this test can blow up pretty badly due to problems in libc
6048 # (any single argument exceeding 2000 bytes causes a buffer overrun
6049 # during glob expansion). Even if it were fixed, the result of this
6050 # check would be larger than it should be.
6051 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6055 # Under GNU Hurd, this test is not required because there is
6056 # no limit to the length of command line arguments.
6057 # Libtool will interpret -1 as no limit whatsoever
6058 lt_cv_sys_max_cmd_len=-1;
6062 # On Win9x/ME, this test blows up -- it succeeds, but takes
6063 # about 5 minutes as the teststring grows exponentially.
6064 # Worse, since 9x/ME are not pre-emptively multitasking,
6065 # you end up with a "frozen" computer, even though with patience
6066 # the test eventually succeeds (with a max line length of 256k).
6067 # Instead, let's just punt: use the minimum linelength reported by
6068 # all of the supported platforms: 8192 (on NT/2K/XP).
6069 lt_cv_sys_max_cmd_len=8192;
6073 # On AmigaOS with pdksh, this test takes hours, literally.
6074 # So we just punt and use a minimum line length of 8192.
6075 lt_cv_sys_max_cmd_len=8192;
6078 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6079 # This has been around since 386BSD, at least. Likely further.
6080 if test -x /sbin/sysctl; then
6081 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6082 elif test -x /usr/sbin/sysctl; then
6083 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6085 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6087 # And add a safety zone
6088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6093 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6094 lt_cv_sys_max_cmd_len=196608
6098 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6099 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6100 # nice to cause kernel panics so lets avoid the loop below.
6101 # First set a reasonable default.
6102 lt_cv_sys_max_cmd_len=16384
6104 if test -x /sbin/sysconfig; then
6105 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6106 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6111 lt_cv_sys_max_cmd_len=102400
6113 sysv5* | sco5v6* | sysv4.2uw2*)
6114 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6115 if test -n "$kargmax"; then
6116 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6118 lt_cv_sys_max_cmd_len=32768
6122 # If test is not a shell built-in, we'll probably end up computing a
6123 # maximum length that is only half of the actual maximum length, but
6125 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6126 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6127 = "XX$teststring") >/dev/null 2>&1 &&
6128 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6129 lt_cv_sys_max_cmd_len=$new_result &&
6130 test $i != 17 # 1/2 MB should be enough
6133 teststring=$teststring$teststring
6136 # Add a significant safety factor because C++ compilers can tack on massive
6137 # amounts of additional arguments before passing them to the linker.
6138 # It appears as though 1/2 is a usable value.
6139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6145 if test -n $lt_cv_sys_max_cmd_len ; then
6146 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6149 { echo "$as_me:$LINENO: result: none" >&5
6150 echo "${ECHO_T}none" >&6; }
6156 # Check for command to grab the raw symbol name followed by C symbol from nm.
6157 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6158 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6159 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 # These are sane defaults that work on at least a few old systems.
6164 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6166 # Character class describing NM global symbol codes.
6167 symcode='[BCDEGRST]'
6169 # Regexp to match symbols that can be accessed directly from C.
6170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6172 # Transform an extracted symbol line into a proper C declaration
6173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6175 # Transform an extracted symbol line into symbol name and symbol address
6176 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'"
6178 # Define system-specific variables.
6183 cygwin* | mingw* | pw32*)
6184 symcode='[ABCDGISTW]'
6186 hpux*) # Its linker distinguishes data from code symbols
6187 if test "$host_cpu" = ia64; then
6188 symcode='[ABCDEGRST]'
6190 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6191 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'"
6194 if test "$host_cpu" = ia64; then
6195 symcode='[ABCDGIRSTW]'
6196 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6197 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6201 symcode='[BCDEGRST]'
6204 symcode='[BCDEGQRST]'
6215 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6223 # Handle CRLF in mingw tool chain
6227 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6231 # If we're using GNU nm, then use its standard symbol codes.
6232 case `$NM -V 2>&1` in
6233 *GNU* | *'with BFD'*)
6234 symcode='[ABCDGIRSTW]' ;;
6237 # Try without a prefix undercore, then with it.
6238 for ac_symprfx in "" "_"; do
6240 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6241 symxfrm="\\1 $ac_symprfx\\2 \\2"
6243 # Write the raw and C identifiers.
6244 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6246 # Check to see that the pipe works correctly.
6250 cat > conftest.$ac_ext <<EOF
6255 void nm_test_func(){}
6259 int main(){nm_test_var='a';nm_test_func();return(0);}
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; then
6267 # Now try to grab the symbols.
6269 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6270 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && test -s "$nlist"; then
6274 # Try sorting and uniquifying the output.
6275 if sort "$nlist" | uniq > "$nlist"T; then
6276 mv -f "$nlist"T "$nlist"
6281 # Make sure that we snagged all the symbols we need.
6282 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6283 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6284 cat <<EOF > conftest.$ac_ext
6290 # Now generate the symbol file.
6291 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6293 cat <<EOF >> conftest.$ac_ext
6294 #if defined (__STDC__) && __STDC__
6295 # define lt_ptr_t void *
6297 # define lt_ptr_t char *
6301 /* The mapping between symbol names and symbols. */
6306 lt_preloaded_symbols[] =
6309 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6310 cat <<\EOF >> conftest.$ac_ext
6318 # Now try linking the two files.
6319 mv conftest.$ac_objext conftstm.$ac_objext
6320 lt_save_LIBS="$LIBS"
6321 lt_save_CFLAGS="$CFLAGS"
6322 LIBS="conftstm.$ac_objext"
6323 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6331 LIBS="$lt_save_LIBS"
6332 CFLAGS="$lt_save_CFLAGS"
6334 echo "cannot find nm_test_func in $nlist" >&5
6337 echo "cannot find nm_test_var in $nlist" >&5
6340 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6343 echo "$progname: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 rm -f conftest* conftst*
6348 # Do not use the global_symbol_pipe unless it works.
6349 if test "$pipe_works" = yes; then
6352 lt_cv_sys_global_symbol_pipe=
6358 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6359 lt_cv_sys_global_symbol_to_cdecl=
6361 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6362 { echo "$as_me:$LINENO: result: failed" >&5
6363 echo "${ECHO_T}failed" >&6; }
6365 { echo "$as_me:$LINENO: result: ok" >&5
6366 echo "${ECHO_T}ok" >&6; }
6369 { echo "$as_me:$LINENO: checking for objdir" >&5
6370 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6371 if test "${lt_cv_objdir+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 rm -f .libs 2>/dev/null
6375 mkdir .libs 2>/dev/null
6376 if test -d .libs; then
6379 # MS-DOS does not allow filenames that begin with a dot.
6382 rmdir .libs 2>/dev/null
6384 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6385 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6386 objdir=$lt_cv_objdir
6394 # AIX sometimes has problems with the GCC collect2 program. For some
6395 # reason, if we set the COLLECT_NAMES environment variable, the problems
6396 # vanish in a puff of smoke.
6397 if test "X${COLLECT_NAMES+set}" != Xset; then
6399 export COLLECT_NAMES
6404 # Sed substitution that helps us do robust quoting. It backslashifies
6405 # metacharacters that are still active within double-quoted strings.
6406 Xsed='sed -e 1s/^X//'
6407 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6409 # Same as above, but do not quote variable references.
6410 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6412 # Sed substitution to delay expansion of an escaped shell variable in a
6413 # double_quote_subst'ed string.
6414 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6416 # Sed substitution to avoid accidental globbing in evaled expressions
6417 no_glob_subst='s/\*/\\\*/g'
6423 default_ofile=libtool
6424 can_build_shared=yes
6426 # All known linkers require a `.a' archive for static linking (except MSVC,
6427 # which needs '.lib').
6429 ltmain="$ac_aux_dir/ltmain.sh"
6430 ofile="$default_ofile"
6431 with_gnu_ld="$lt_cv_prog_gnu_ld"
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}ar; ac_word=$2
6436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438 if test "${ac_cv_prog_AR+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 if test -n "$AR"; then
6442 ac_cv_prog_AR="$AR" # Let the user override the test.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_AR="${ac_tool_prefix}ar"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 if test -n "$AR"; then
6463 { echo "$as_me:$LINENO: result: $AR" >&5
6464 echo "${ECHO_T}$AR" >&6; }
6466 { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6472 if test -z "$ac_cv_prog_AR"; then
6474 # Extract the first word of "ar", so it can be a program name with args.
6475 set dummy ar; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 if test -n "$ac_ct_AR"; then
6482 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_ac_ct_AR="ar"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6502 if test -n "$ac_ct_AR"; then
6503 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6504 echo "${ECHO_T}$ac_ct_AR" >&6; }
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6510 if test "x$ac_ct_AR" = x; then
6513 case $cross_compiling:$ac_tool_warned in
6515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6516 whose name does not start with the host triplet. If you think this
6517 configuration is useful to you, please write to autoconf@gnu.org." >&5
6518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6519 whose name does not start with the host triplet. If you think this
6520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6521 ac_tool_warned=yes ;;
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_RANLIB+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 if test -n "$RANLIB"; then
6538 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 RANLIB=$ac_cv_prog_RANLIB
6558 if test -n "$RANLIB"; then
6559 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6560 echo "${ECHO_T}$RANLIB" >&6; }
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6568 if test -z "$ac_cv_prog_RANLIB"; then
6569 ac_ct_RANLIB=$RANLIB
6570 # Extract the first word of "ranlib", so it can be a program name with args.
6571 set dummy ranlib; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$ac_ct_RANLIB"; then
6578 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_RANLIB="ranlib"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6598 if test -n "$ac_ct_RANLIB"; then
6599 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6600 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6606 if test "x$ac_ct_RANLIB" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet. If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&5
6614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6615 whose name does not start with the host triplet. If you think this
6616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6617 ac_tool_warned=yes ;;
6619 RANLIB=$ac_ct_RANLIB
6622 RANLIB="$ac_cv_prog_RANLIB"
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}strip; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_prog_STRIP+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 if test -n "$STRIP"; then
6634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 STRIP=$ac_cv_prog_STRIP
6654 if test -n "$STRIP"; then
6655 { echo "$as_me:$LINENO: result: $STRIP" >&5
6656 echo "${ECHO_T}$STRIP" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6664 if test -z "$ac_cv_prog_STRIP"; then
6666 # Extract the first word of "strip", so it can be a program name with args.
6667 set dummy strip; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 if test -n "$ac_ct_STRIP"; then
6674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_STRIP="strip"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6694 if test -n "$ac_ct_STRIP"; then
6695 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6696 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6702 if test "x$ac_ct_STRIP" = x; then
6705 case $cross_compiling:$ac_tool_warned in
6707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet. If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&5
6710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711 whose name does not start with the host triplet. If you think this
6712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713 ac_tool_warned=yes ;;
6718 STRIP="$ac_cv_prog_STRIP"
6723 old_CFLAGS="$CFLAGS"
6725 # Set sane defaults for various variables
6726 test -z "$AR" && AR=ar
6727 test -z "$AR_FLAGS" && AR_FLAGS=cru
6728 test -z "$AS" && AS=as
6729 test -z "$CC" && CC=cc
6730 test -z "$LTCC" && LTCC=$CC
6731 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6732 test -z "$DLLTOOL" && DLLTOOL=dlltool
6733 test -z "$LD" && LD=ld
6734 test -z "$LN_S" && LN_S="ln -s"
6735 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6736 test -z "$NM" && NM=nm
6737 test -z "$SED" && SED=sed
6738 test -z "$OBJDUMP" && OBJDUMP=objdump
6739 test -z "$RANLIB" && RANLIB=:
6740 test -z "$STRIP" && STRIP=:
6741 test -z "$ac_objext" && ac_objext=o
6743 # Determine commands to create old-style static archives.
6744 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6745 old_postinstall_cmds='chmod 644 $oldlib'
6746 old_postuninstall_cmds=
6748 if test -n "$RANLIB"; then
6751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6757 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6760 for cc_temp in $compiler""; do
6762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6771 # Only perform the check for file, if the check method requires it
6772 case $deplibs_check_method in
6774 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6775 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6776 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6777 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6785 lt_save_MAGIC_CMD="$MAGIC_CMD"
6786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6787 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6788 for ac_dir in $ac_dummy; do
6790 test -z "$ac_dir" && ac_dir=.
6791 if test -f $ac_dir/${ac_tool_prefix}file; then
6792 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6793 if test -n "$file_magic_test_file"; then
6794 case $deplibs_check_method in
6796 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6798 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6799 $EGREP "$file_magic_regex" > /dev/null; then
6804 *** Warning: the command libtool uses to detect shared libraries,
6805 *** $file_magic_cmd, produces output that libtool cannot recognize.
6806 *** The result is that libtool may fail to recognize shared libraries
6807 *** as such. This will affect the creation of libtool libraries that
6808 *** depend on shared libraries, but programs linked with such libtool
6809 *** libraries will work regardless of this problem. Nevertheless, you
6810 *** may want to report the problem to your system manager and/or to
6811 *** bug-libtool@gnu.org
6821 MAGIC_CMD="$lt_save_MAGIC_CMD"
6826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6827 if test -n "$MAGIC_CMD"; then
6828 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6829 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6835 if test -z "$lt_cv_path_MAGIC_CMD"; then
6836 if test -n "$ac_tool_prefix"; then
6837 { echo "$as_me:$LINENO: checking for file" >&5
6838 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6847 lt_save_MAGIC_CMD="$MAGIC_CMD"
6848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6850 for ac_dir in $ac_dummy; do
6852 test -z "$ac_dir" && ac_dir=.
6853 if test -f $ac_dir/file; then
6854 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6855 if test -n "$file_magic_test_file"; then
6856 case $deplibs_check_method in
6858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6861 $EGREP "$file_magic_regex" > /dev/null; then
6866 *** Warning: the command libtool uses to detect shared libraries,
6867 *** $file_magic_cmd, produces output that libtool cannot recognize.
6868 *** The result is that libtool may fail to recognize shared libraries
6869 *** as such. This will affect the creation of libtool libraries that
6870 *** depend on shared libraries, but programs linked with such libtool
6871 *** libraries will work regardless of this problem. Nevertheless, you
6872 *** may want to report the problem to your system manager and/or to
6873 *** bug-libtool@gnu.org
6883 MAGIC_CMD="$lt_save_MAGIC_CMD"
6888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6889 if test -n "$MAGIC_CMD"; then
6890 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6891 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6909 # Check whether --enable-libtool-lock was given.
6910 if test "${enable_libtool_lock+set}" = set; then
6911 enableval=$enable_libtool_lock;
6914 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6917 # Check whether --with-pic was given.
6918 if test "${with_pic+set}" = set; then
6919 withval=$with_pic; pic_mode="$withval"
6924 test -z "$pic_mode" && pic_mode=default
6926 # Use C for the default configuration in the libtool script
6930 ac_cpp='$CPP $CPPFLAGS'
6931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6936 # Source file extension for C test sources.
6939 # Object file extension for compiled C test sources.
6943 # Code to be used in simple compile tests
6944 lt_simple_compile_test_code="int some_variable = 0;\n"
6946 # Code to be used in simple link tests
6947 lt_simple_link_test_code='int main(){return(0);}\n'
6950 # If no C compiler was specified, use CC.
6953 # If no C compiler flags were specified, use CFLAGS.
6954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6956 # Allow CC to be a program name with arguments.
6960 # save warnings/boilerplate of simple test code
6961 ac_outfile=conftest.$ac_objext
6962 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6963 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6964 _lt_compiler_boilerplate=`cat conftest.err`
6967 ac_outfile=conftest.$ac_objext
6968 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6970 _lt_linker_boilerplate=`cat conftest.err`
6975 lt_prog_compiler_no_builtin_flag=
6977 if test "$GCC" = yes; then
6978 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6981 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6982 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 lt_cv_prog_compiler_rtti_exceptions=no
6987 ac_outfile=conftest.$ac_objext
6988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6989 lt_compiler_flag="-fno-rtti -fno-exceptions"
6990 # Insert the option either (1) after the last *FLAGS variable, or
6991 # (2) before a word containing "conftest.", or (3) at the end.
6992 # Note that $ac_compile itself does not contain backslashes and begins
6993 # with a dollar sign (not a hyphen), so the echo should work correctly.
6994 # The option is referenced via a variable to avoid confusing sed.
6995 lt_compile=`echo "$ac_compile" | $SED \
6996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6998 -e 's:$: $lt_compiler_flag:'`
6999 (eval echo "\"\$as_me:6999: $lt_compile\"" >&5)
7000 (eval "$lt_compile" 2>conftest.err)
7002 cat conftest.err >&5
7003 echo "$as_me:7003: \$? = $ac_status" >&5
7004 if (exit $ac_status) && test -s "$ac_outfile"; then
7005 # The compiler can only warn and ignore the option if not recognized
7006 # So say no if there are warnings other than the usual output.
7007 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7010 lt_cv_prog_compiler_rtti_exceptions=yes
7016 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7017 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7020 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7027 lt_prog_compiler_wl=
7028 lt_prog_compiler_pic=
7029 lt_prog_compiler_static=
7031 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7034 if test "$GCC" = yes; then
7035 lt_prog_compiler_wl='-Wl,'
7036 lt_prog_compiler_static='-static'
7040 # All AIX code is PIC.
7041 if test "$host_cpu" = ia64; then
7042 # AIX 5 now supports IA64 processor
7043 lt_prog_compiler_static='-Bstatic'
7048 # FIXME: we need at least 68020 code to build shared libraries, but
7049 # adding the `-m68020' flag to GCC prevents building anything better,
7051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7054 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7055 # PIC is the default for these OSes.
7058 mingw* | pw32* | os2*)
7059 # This hack is so that the source file can tell whether it is being
7060 # built for inclusion in a dll (and should export symbols for example).
7061 lt_prog_compiler_pic='-DDLL_EXPORT'
7064 darwin* | rhapsody*)
7065 # PIC is the default on this platform
7066 # Common symbols not allowed in MH_DYLIB files
7067 lt_prog_compiler_pic='-fno-common'
7071 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7072 # Instead, we relocate shared libraries at runtime.
7076 # Just because we use GCC doesn't mean we suddenly get shared libraries
7077 # on systems that don't support them.
7078 lt_prog_compiler_can_build_shared=no
7083 if test -d /usr/nec; then
7084 lt_prog_compiler_pic=-Kconform_pic
7089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7096 lt_prog_compiler_pic='-fPIC'
7102 lt_prog_compiler_pic='-fPIC'
7106 # PORTME Check for flag to pass linker flags through the system compiler.
7109 lt_prog_compiler_wl='-Wl,'
7110 if test "$host_cpu" = ia64; then
7111 # AIX 5 now supports IA64 processor
7112 lt_prog_compiler_static='-Bstatic'
7114 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7118 # PIC is the default on this platform
7119 # Common symbols not allowed in MH_DYLIB files
7120 case $cc_basename in
7122 lt_prog_compiler_pic='-qnocommon'
7123 lt_prog_compiler_wl='-Wl,'
7128 mingw* | pw32* | os2*)
7129 # This hack is so that the source file can tell whether it is being
7130 # built for inclusion in a dll (and should export symbols for example).
7131 lt_prog_compiler_pic='-DDLL_EXPORT'
7134 hpux9* | hpux10* | hpux11*)
7135 lt_prog_compiler_wl='-Wl,'
7136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7143 lt_prog_compiler_pic='+Z'
7146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7147 lt_prog_compiler_static='${wl}-a ${wl}archive'
7150 irix5* | irix6* | nonstopux*)
7151 lt_prog_compiler_wl='-Wl,'
7152 # PIC (with -KPIC) is the default.
7153 lt_prog_compiler_static='-non_shared'
7157 lt_prog_compiler_pic='-KPIC'
7158 lt_prog_compiler_static='-Bstatic'
7162 case $cc_basename in
7164 lt_prog_compiler_wl='-Wl,'
7165 lt_prog_compiler_pic='-KPIC'
7166 lt_prog_compiler_static='-static'
7168 pgcc* | pgf77* | pgf90* | pgf95*)
7169 # Portland Group compilers (*not* the Pentium gcc compiler,
7170 # which looks to be a dead project)
7171 lt_prog_compiler_wl='-Wl,'
7172 lt_prog_compiler_pic='-fpic'
7173 lt_prog_compiler_static='-Bstatic'
7176 lt_prog_compiler_wl='-Wl,'
7177 # All Alpha code is PIC.
7178 lt_prog_compiler_static='-non_shared'
7183 osf3* | osf4* | osf5*)
7184 lt_prog_compiler_wl='-Wl,'
7185 # All OSF/1 code is PIC.
7186 lt_prog_compiler_static='-non_shared'
7190 lt_prog_compiler_pic='-KPIC'
7191 lt_prog_compiler_static='-Bstatic'
7192 case $cc_basename in
7194 lt_prog_compiler_wl='-Qoption ld ';;
7196 lt_prog_compiler_wl='-Wl,';;
7201 lt_prog_compiler_wl='-Qoption ld '
7202 lt_prog_compiler_pic='-PIC'
7203 lt_prog_compiler_static='-Bstatic'
7206 sysv4 | sysv4.2uw2* | sysv4.3*)
7207 lt_prog_compiler_wl='-Wl,'
7208 lt_prog_compiler_pic='-KPIC'
7209 lt_prog_compiler_static='-Bstatic'
7213 if test -d /usr/nec ;then
7214 lt_prog_compiler_pic='-Kconform_pic'
7215 lt_prog_compiler_static='-Bstatic'
7219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7220 lt_prog_compiler_wl='-Wl,'
7221 lt_prog_compiler_pic='-KPIC'
7222 lt_prog_compiler_static='-Bstatic'
7226 lt_prog_compiler_wl='-Wl,'
7227 lt_prog_compiler_can_build_shared=no
7231 lt_prog_compiler_pic='-pic'
7232 lt_prog_compiler_static='-Bstatic'
7236 lt_prog_compiler_can_build_shared=no
7241 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7242 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7245 # Check to make sure the PIC flag actually works.
7247 if test -n "$lt_prog_compiler_pic"; then
7249 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7250 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7251 if test "${lt_prog_compiler_pic_works+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 lt_prog_compiler_pic_works=no
7255 ac_outfile=conftest.$ac_objext
7256 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7257 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7258 # Insert the option either (1) after the last *FLAGS variable, or
7259 # (2) before a word containing "conftest.", or (3) at the end.
7260 # Note that $ac_compile itself does not contain backslashes and begins
7261 # with a dollar sign (not a hyphen), so the echo should work correctly.
7262 # The option is referenced via a variable to avoid confusing sed.
7263 lt_compile=`echo "$ac_compile" | $SED \
7264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7266 -e 's:$: $lt_compiler_flag:'`
7267 (eval echo "\"\$as_me:7267: $lt_compile\"" >&5)
7268 (eval "$lt_compile" 2>conftest.err)
7270 cat conftest.err >&5
7271 echo "$as_me:7271: \$? = $ac_status" >&5
7272 if (exit $ac_status) && test -s "$ac_outfile"; then
7273 # The compiler can only warn and ignore the option if not recognized
7274 # So say no if there are warnings other than the usual output.
7275 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7278 lt_prog_compiler_pic_works=yes
7284 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7285 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7287 if test x"$lt_prog_compiler_pic_works" = xyes; then
7288 case $lt_prog_compiler_pic in
7290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7293 lt_prog_compiler_pic=
7294 lt_prog_compiler_can_build_shared=no
7299 # For platforms which do not support PIC, -DPIC is meaningless:
7301 lt_prog_compiler_pic=
7304 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7309 # Check to make sure the static flag actually works.
7311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7312 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7313 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7314 if test "${lt_prog_compiler_static_works+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 lt_prog_compiler_static_works=no
7318 save_LDFLAGS="$LDFLAGS"
7319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7320 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7322 # The linker can only warn and ignore the option if not recognized
7323 # So say no if there are warnings
7324 if test -s conftest.err; then
7325 # Append any errors to the config.log.
7326 cat conftest.err 1>&5
7327 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7329 if diff conftest.exp conftest.er2 >/dev/null; then
7330 lt_prog_compiler_static_works=yes
7333 lt_prog_compiler_static_works=yes
7337 LDFLAGS="$save_LDFLAGS"
7340 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7341 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7343 if test x"$lt_prog_compiler_static_works" = xyes; then
7346 lt_prog_compiler_static=
7350 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7351 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7352 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 lt_cv_prog_compiler_c_o=no
7356 $rm -r conftest 2>/dev/null
7360 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7362 lt_compiler_flag="-o out/conftest2.$ac_objext"
7363 # Insert the option either (1) after the last *FLAGS variable, or
7364 # (2) before a word containing "conftest.", or (3) at the end.
7365 # Note that $ac_compile itself does not contain backslashes and begins
7366 # with a dollar sign (not a hyphen), so the echo should work correctly.
7367 lt_compile=`echo "$ac_compile" | $SED \
7368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7370 -e 's:$: $lt_compiler_flag:'`
7371 (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)
7372 (eval "$lt_compile" 2>out/conftest.err)
7374 cat out/conftest.err >&5
7375 echo "$as_me:7375: \$? = $ac_status" >&5
7376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7378 # The compiler can only warn and ignore the option if not recognized
7379 # So say no if there are warnings
7380 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7383 lt_cv_prog_compiler_c_o=yes
7388 # SGI C++ compiler will create directory out/ii_files/ for
7389 # template instantiation
7390 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7391 $rm out/* && rmdir out
7397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7398 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7401 hard_links="nottested"
7402 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7403 # do not overwrite the value of need_locks provided by the user
7404 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7405 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7410 ln conftest.a conftest.b 2>&5 || hard_links=no
7411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7412 { echo "$as_me:$LINENO: result: $hard_links" >&5
7413 echo "${ECHO_T}$hard_links" >&6; }
7414 if test "$hard_links" = no; then
7415 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7416 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7423 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7424 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7427 allow_undefined_flag=
7428 enable_shared_with_static_runtimes=no
7430 archive_expsym_cmds=
7431 old_archive_From_new_cmds=
7432 old_archive_from_expsyms_cmds=
7433 export_dynamic_flag_spec=
7434 whole_archive_flag_spec=
7435 thread_safe_flag_spec=
7436 hardcode_libdir_flag_spec=
7437 hardcode_libdir_flag_spec_ld=
7438 hardcode_libdir_separator=
7441 hardcode_shlibpath_var=unsupported
7442 link_all_deplibs=unknown
7443 hardcode_automatic=no
7446 always_export_symbols=no
7447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7448 # include_expsyms should be a list of space-separated symbols to be *always*
7449 # included in the symbol list
7451 # exclude_expsyms can be an extended regexp of symbols to exclude
7452 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7453 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7454 # as well as any symbol that contains `d'.
7455 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7456 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7457 # platforms (ab)use it in PIC code, but their linkers get confused if
7458 # the symbol is explicitly referenced. Since portable code cannot
7459 # rely on this symbol name, it's probably fine to never include it in
7460 # preloaded symbol tables.
7461 extract_expsyms_cmds=
7462 # Just being paranoid about ensuring that cc_basename is set.
7463 for cc_temp in $compiler""; do
7465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7471 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7474 cygwin* | mingw* | pw32*)
7475 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7476 # When not using gcc, we currently assume that we are using
7477 # Microsoft Visual C++.
7478 if test "$GCC" != yes; then
7483 # we just hope/assume this is gcc and not c89 (= MSVC++)
7492 if test "$with_gnu_ld" = yes; then
7493 # If archive_cmds runs LD, not CC, wlarc should be empty
7496 # Set some defaults for GNU ld with shared library support. These
7497 # are reset later if shared libraries are not supported. Putting them
7498 # here allows them to be overridden if necessary.
7499 runpath_var=LD_RUN_PATH
7500 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7501 export_dynamic_flag_spec='${wl}--export-dynamic'
7502 # ancient GNU ld didn't support --whole-archive et. al.
7503 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7504 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7506 whole_archive_flag_spec=
7508 supports_anon_versioning=no
7509 case `$LD -v 2>/dev/null` in
7510 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7511 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7512 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7513 *\ 2.11.*) ;; # other 2.11 versions
7514 *) supports_anon_versioning=yes ;;
7517 # See if GNU ld supports shared libraries.
7519 aix3* | aix4* | aix5*)
7520 # On AIX/PPC, the GNU linker is very broken
7521 if test "$host_cpu" != ia64; then
7525 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7526 *** to be unable to reliably create shared libraries on AIX.
7527 *** Therefore, libtool is disabling shared libraries support. If you
7528 *** really care for shared libraries, you may want to modify your PATH
7529 *** so that a non-GNU linker is found, and then restart.
7536 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)'
7537 hardcode_libdir_flag_spec='-L$libdir'
7538 hardcode_minus_L=yes
7540 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7541 # that the semantics of dynamic libraries on AmigaOS, at least up
7542 # to version 4, is to share data among multiple programs linked
7543 # with the same dynamic library. Since this doesn't match the
7544 # behavior of shared libraries on other platforms, we can't use
7550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7551 allow_undefined_flag=unsupported
7552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7553 # support --undefined. This deserves some investigation. FIXME
7554 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7560 cygwin* | mingw* | pw32*)
7561 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7562 # as there is no search path for DLLs.
7563 hardcode_libdir_flag_spec='-L$libdir'
7564 allow_undefined_flag=unsupported
7565 always_export_symbols=no
7566 enable_shared_with_static_runtimes=yes
7567 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7569 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7571 # If the export-symbols file already is a .def file (1st line
7572 # is EXPORTS), use it as is; otherwise, prepend...
7573 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7574 cp $export_symbols $output_objdir/$soname.def;
7576 echo EXPORTS > $output_objdir/$soname.def;
7577 cat $export_symbols >> $output_objdir/$soname.def;
7579 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7587 hardcode_shlibpath_var=no
7588 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7589 export_dynamic_flag_spec='${wl}-E'
7590 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7591 # Instead, shared libraries are loaded at an image base (0x10000000 by
7592 # default) and relocated if they conflict, which is a slow very memory
7593 # consuming and fragmenting process. To avoid this, we pick a random,
7594 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7595 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7596 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7597 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'
7601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7603 case $cc_basename,$host_cpu in
7604 pgcc*) # Portland Group C compiler
7605 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'
7606 tmp_addflag=' $pic_flag'
7608 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7609 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'
7610 tmp_addflag=' $pic_flag -Mnomain' ;;
7611 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7612 tmp_addflag=' -i_dynamic' ;;
7613 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7614 tmp_addflag=' -i_dynamic -nofor_main' ;;
7615 ifc* | ifort*) # Intel Fortran compiler
7616 tmp_addflag=' -nofor_main' ;;
7618 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7620 if test $supports_anon_versioning = yes; then
7621 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7623 $echo "local: *; };" >> $output_objdir/$libname.ver~
7624 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7633 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7642 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7646 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7647 *** create shared libraries on Solaris systems. Therefore, libtool
7648 *** is disabling shared libraries support. We urge you to upgrade GNU
7649 *** binutils to release 2.9.1 or newer. Another option is to modify
7650 *** your PATH or compiler configuration so that the native linker is
7651 *** used, and then restart.
7654 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7663 case `$LD -v 2>&1` in
7664 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7668 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7669 *** reliably create shared libraries on SCO systems. Therefore, libtool
7670 *** is disabling shared libraries support. We urge you to upgrade GNU
7671 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7672 *** your PATH or compiler configuration so that the native linker is
7673 *** used, and then restart.
7678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7679 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7690 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7693 hardcode_shlibpath_var=no
7697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7706 if test "$ld_shlibs" = no; then
7708 hardcode_libdir_flag_spec=
7709 export_dynamic_flag_spec=
7710 whole_archive_flag_spec=
7713 # PORTME fill in a description of your system's linker (not GNU ld)
7716 allow_undefined_flag=unsupported
7717 always_export_symbols=yes
7718 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'
7719 # Note: this linker hardcodes the directories in LIBPATH if there
7720 # are no directories specified by -L.
7721 hardcode_minus_L=yes
7722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7723 # Neither direct hardcoding nor static linking is supported with a
7725 hardcode_direct=unsupported
7730 if test "$host_cpu" = ia64; then
7731 # On IA64, the linker does run time linking by default, so we don't
7732 # have to do anything special.
7733 aix_use_runtimelinking=no
7734 exp_sym_flag='-Bexport'
7737 # If we're using GNU nm, then we don't want the "-C" option.
7738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7739 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7740 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'
7742 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'
7744 aix_use_runtimelinking=no
7746 # Test if we are trying to use run time linking or normal
7747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7748 # need to do runtime linking.
7749 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7750 for ld_flag in $LDFLAGS; do
7751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7752 aix_use_runtimelinking=yes
7759 exp_sym_flag='-bexport'
7760 no_entry_flag='-bnoentry'
7763 # When large executables or shared objects are built, AIX ld can
7764 # have problems creating the table of contents. If linking a library
7765 # or program results in "error TOC overflow" add -mminimal-toc to
7766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7771 hardcode_libdir_separator=':'
7772 link_all_deplibs=yes
7774 if test "$GCC" = yes; then
7775 case $host_os in aix4.[012]|aix4.[012].*)
7776 # We only want to do this on AIX 4.2 and lower, the check
7777 # below for broken collect2 doesn't work under 4.3+
7778 collect2name=`${CC} -print-prog-name=collect2`
7779 if test -f "$collect2name" && \
7780 strings "$collect2name" | grep resolve_lib_name >/dev/null
7782 # We have reworked collect2
7785 # We have old collect2
7786 hardcode_direct=unsupported
7787 # It fails to find uninstalled libraries when the uninstalled
7788 # path is not listed in the libpath. Setting hardcode_minus_L
7789 # to unsupported forces relinking
7790 hardcode_minus_L=yes
7791 hardcode_libdir_flag_spec='-L$libdir'
7792 hardcode_libdir_separator=
7796 shared_flag='-shared'
7797 if test "$aix_use_runtimelinking" = yes; then
7798 shared_flag="$shared_flag "'${wl}-G'
7802 if test "$host_cpu" = ia64; then
7803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7804 # chokes on -Wl,-G. The following line is correct:
7807 if test "$aix_use_runtimelinking" = yes; then
7808 shared_flag='${wl}-G'
7810 shared_flag='${wl}-bM:SRE'
7815 # It seems that -bexpall does not export symbols beginning with
7816 # underscore (_), so it is better to generate a list of symbols to export.
7817 always_export_symbols=yes
7818 if test "$aix_use_runtimelinking" = yes; then
7819 # Warning - without using the other runtime loading flags (-brtl),
7820 # -berok will link without error, but may produce a broken library.
7821 allow_undefined_flag='-berok'
7822 # Determine the default libpath from the value encoded in an empty executable.
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_link") 2>conftest.er1
7847 grep -v '^ *+' conftest.er1 >conftest.err
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest$ac_exeext &&
7855 $as_test_x conftest$ac_exeext; then
7857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7859 # Check for a 64-bit object if we didn't find anything.
7860 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; }
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7870 conftest$ac_exeext conftest.$ac_ext
7871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7873 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7874 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"
7876 if test "$host_cpu" = ia64; then
7877 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7878 allow_undefined_flag="-z nodefs"
7879 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"
7881 # Determine the default libpath from the value encoded in an empty executable.
7882 cat >conftest.$ac_ext <<_ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_link") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest$ac_exeext &&
7914 $as_test_x conftest$ac_exeext; then
7916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7918 # Check for a 64-bit object if we didn't find anything.
7919 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; }
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7929 conftest$ac_exeext conftest.$ac_ext
7930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7932 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7933 # Warning - without using the other run time loading flags,
7934 # -berok will link without error, but may produce a broken library.
7935 no_undefined_flag=' ${wl}-bernotok'
7936 allow_undefined_flag=' ${wl}-berok'
7937 # Exported symbols can be pulled into shared objects from archives
7938 whole_archive_flag_spec='$convenience'
7939 archive_cmds_need_lc=yes
7940 # This is similar to how AIX traditionally builds its shared libraries.
7941 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'
7947 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)'
7948 hardcode_libdir_flag_spec='-L$libdir'
7949 hardcode_minus_L=yes
7950 # see comment about different semantics on the GNU ld section
7955 export_dynamic_flag_spec=-rdynamic
7958 cygwin* | mingw* | pw32*)
7959 # When not using gcc, we currently assume that we are using
7960 # Microsoft Visual C++.
7961 # hardcode_libdir_flag_spec is actually meaningless, as there is
7962 # no search path for DLLs.
7963 hardcode_libdir_flag_spec=' '
7964 allow_undefined_flag=unsupported
7965 # Tell ltmain to make .lib files, not .a files.
7967 # Tell ltmain to make .dll files, not .so files.
7969 # FIXME: Setting linknames here is a bad hack.
7970 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7971 # The linker will automatically build a .lib file if we build a DLL.
7972 old_archive_From_new_cmds='true'
7973 # FIXME: Should let the user specify the lib program.
7974 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7975 fix_srcfile_path='`cygpath -w "$srcfile"`'
7976 enable_shared_with_static_runtimes=yes
7979 darwin* | rhapsody*)
7981 rhapsody* | darwin1.[012])
7982 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7986 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7988 case ${MACOSX_DEPLOYMENT_TARGET} in
7990 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7993 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7999 archive_cmds_need_lc=no
8001 hardcode_automatic=yes
8002 hardcode_shlibpath_var=unsupported
8003 whole_archive_flag_spec=''
8004 link_all_deplibs=yes
8005 if test "$GCC" = yes ; then
8006 output_verbose_link_cmd='echo'
8007 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8008 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8010 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}'
8011 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}'
8013 case $cc_basename in
8015 output_verbose_link_cmd='echo'
8016 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8017 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8018 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8019 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}'
8020 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}'
8030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8031 hardcode_libdir_flag_spec='-L$libdir'
8032 hardcode_shlibpath_var=no
8039 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8040 # support. Future versions do this automatically, but an explicit c++rt0.o
8041 # does not break anything, and helps significantly (at the cost of a little
8044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8045 hardcode_libdir_flag_spec='-R$libdir'
8047 hardcode_shlibpath_var=no
8050 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8054 hardcode_minus_L=yes
8055 hardcode_shlibpath_var=no
8058 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8059 freebsd* | kfreebsd*-gnu | dragonfly*)
8060 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8061 hardcode_libdir_flag_spec='-R$libdir'
8063 hardcode_shlibpath_var=no
8067 if test "$GCC" = yes; then
8068 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'
8070 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'
8072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8073 hardcode_libdir_separator=:
8076 # hardcode_minus_L: Not really in the search PATH,
8077 # but as the default location of the library.
8078 hardcode_minus_L=yes
8079 export_dynamic_flag_spec='${wl}-E'
8083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8084 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8086 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8088 if test "$with_gnu_ld" = no; then
8089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8090 hardcode_libdir_separator=:
8093 export_dynamic_flag_spec='${wl}-E'
8095 # hardcode_minus_L: Not really in the search PATH,
8096 # but as the default location of the library.
8097 hardcode_minus_L=yes
8102 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8105 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8108 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8111 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8117 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8120 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8127 if test "$with_gnu_ld" = no; then
8128 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8129 hardcode_libdir_separator=:
8133 hardcode_libdir_flag_spec_ld='+b $libdir'
8135 hardcode_shlibpath_var=no
8139 export_dynamic_flag_spec='${wl}-E'
8141 # hardcode_minus_L: Not really in the search PATH,
8142 # but as the default location of the library.
8143 hardcode_minus_L=yes
8149 irix5* | irix6* | nonstopux*)
8150 if test "$GCC" = yes; then
8151 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'
8153 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'
8154 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8157 hardcode_libdir_separator=:
8158 link_all_deplibs=yes
8162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8167 hardcode_libdir_flag_spec='-R$libdir'
8169 hardcode_shlibpath_var=no
8173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8176 hardcode_libdir_separator=:
8177 hardcode_shlibpath_var=no
8182 hardcode_shlibpath_var=no
8183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8184 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8185 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8186 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8187 export_dynamic_flag_spec='${wl}-E'
8190 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8192 hardcode_libdir_flag_spec='-R$libdir'
8195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8203 hardcode_libdir_flag_spec='-L$libdir'
8204 hardcode_minus_L=yes
8205 allow_undefined_flag=unsupported
8206 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'
8207 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8211 if test "$GCC" = yes; then
8212 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8213 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'
8215 allow_undefined_flag=' -expect_unresolved \*'
8216 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'
8218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8219 hardcode_libdir_separator=:
8222 osf4* | osf5*) # as osf3* with the addition of -msym flag
8223 if test "$GCC" = yes; then
8224 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8225 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'
8226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8228 allow_undefined_flag=' -expect_unresolved \*'
8229 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'
8230 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8231 $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'
8233 # Both c and cxx compiler support -rpath directly
8234 hardcode_libdir_flag_spec='-rpath $libdir'
8236 hardcode_libdir_separator=:
8240 no_undefined_flag=' -z text'
8241 if test "$GCC" = yes; then
8243 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8244 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8245 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8248 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8249 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8250 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8252 hardcode_libdir_flag_spec='-R$libdir'
8253 hardcode_shlibpath_var=no
8255 solaris2.[0-5] | solaris2.[0-5].*) ;;
8257 # The compiler driver will combine linker options so we
8258 # cannot just pass the convience library names through
8259 # without $wl, iff we do not link with $LD.
8260 # Luckily, gcc supports the same syntax we need for Sun Studio.
8261 # Supported since Solaris 2.6 (maybe 2.5.1?)
8264 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8266 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' ;;
8269 link_all_deplibs=yes
8273 if test "x$host_vendor" = xsequent; then
8274 # Use $CC to link under sequent, because it throws in some extra .o
8275 # files that make .init and .fini sections work.
8276 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8278 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8280 hardcode_libdir_flag_spec='-L$libdir'
8282 hardcode_minus_L=yes
8283 hardcode_shlibpath_var=no
8287 case $host_vendor in
8289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8290 hardcode_direct=yes # is this really true???
8293 ## LD is ld it makes a PLAMLIB
8294 ## CC just makes a GrossModule.
8295 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8296 reload_cmds='$CC -r -o $output$reload_objs'
8300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8301 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8304 runpath_var='LD_RUN_PATH'
8305 hardcode_shlibpath_var=no
8309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8310 hardcode_shlibpath_var=no
8311 export_dynamic_flag_spec='-Bexport'
8315 if test -d /usr/nec; then
8316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317 hardcode_shlibpath_var=no
8318 runpath_var=LD_RUN_PATH
8319 hardcode_runpath_var=yes
8324 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8325 no_undefined_flag='${wl}-z,text'
8326 archive_cmds_need_lc=no
8327 hardcode_shlibpath_var=no
8328 runpath_var='LD_RUN_PATH'
8330 if test "$GCC" = yes; then
8331 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8332 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8334 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8335 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8339 sysv5* | sco3.2v5* | sco5v6*)
8340 # Note: We can NOT use -z defs as we might desire, because we do not
8341 # link with -lc, and that would cause any symbols used from libc to
8342 # always be unresolved, which means just about no library would
8343 # ever link correctly. If we're not using GNU ld we use -z text
8344 # though, which does catch some bad symbols but isn't as heavy-handed
8346 no_undefined_flag='${wl}-z,text'
8347 allow_undefined_flag='${wl}-z,nodefs'
8348 archive_cmds_need_lc=no
8349 hardcode_shlibpath_var=no
8350 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8351 hardcode_libdir_separator=':'
8352 link_all_deplibs=yes
8353 export_dynamic_flag_spec='${wl}-Bexport'
8354 runpath_var='LD_RUN_PATH'
8356 if test "$GCC" = yes; then
8357 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8358 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8360 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8361 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 hardcode_shlibpath_var=no
8377 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8378 echo "${ECHO_T}$ld_shlibs" >&6; }
8379 test "$ld_shlibs" = no && can_build_shared=no
8382 # Do we need to explicitly link libc?
8384 case "x$archive_cmds_need_lc" in
8386 # Assume -lc should be added
8387 archive_cmds_need_lc=yes
8389 if test "$enable_shared" = yes && test "$GCC" = yes; then
8390 case $archive_cmds in
8392 # FIXME: we may have to deal with multi-command sequences.
8395 # Test whether the compiler implicitly links with -lc since on some
8396 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8397 # to ld, don't add -lc before -lgcc.
8398 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8399 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8404 (eval $ac_compile) 2>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } 2>conftest.err; then
8410 libobjs=conftest.$ac_objext
8412 wl=$lt_prog_compiler_wl
8413 pic_flag=$lt_prog_compiler_pic
8419 lt_save_allow_undefined_flag=$allow_undefined_flag
8420 allow_undefined_flag=
8421 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8422 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }
8427 archive_cmds_need_lc=no
8429 archive_cmds_need_lc=yes
8431 allow_undefined_flag=$lt_save_allow_undefined_flag
8433 cat conftest.err 1>&5
8436 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8437 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8444 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8445 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8447 libname_spec='lib$name'
8455 shlibpath_overrides_runpath=unknown
8457 dynamic_linker="$host_os ld.so"
8458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8459 if test "$GCC" = yes; then
8460 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8461 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8462 # if the path contains ";" then we assume it to be the separator
8463 # otherwise default to the standard path separator (i.e. ":") - it is
8464 # assumed that no part of a normal pathname contains ";" but that should
8465 # okay in the real world where ";" in dirpaths is itself problematic.
8466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8473 need_lib_prefix=unknown
8474 hardcode_into_libs=no
8476 # when you set need_version to no, make sure it does not cause -set_version
8477 # flags to be left without arguments
8478 need_version=unknown
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8484 shlibpath_var=LIBPATH
8486 # AIX 3 has no versioning support, so we append a major version to the name.
8487 soname_spec='${libname}${release}${shared_ext}$major'
8494 hardcode_into_libs=yes
8495 if test "$host_cpu" = ia64; then
8496 # AIX 5 supports IA64
8497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8498 shlibpath_var=LD_LIBRARY_PATH
8500 # With GCC up to 2.95.x, collect2 would create an import file
8501 # for dependence libraries. The import file would start with
8502 # the line `#! .'. This would cause the generated library to
8503 # depend on `.', always an invalid library. This was fixed in
8504 # development snapshots of GCC prior to 3.0.
8506 aix4 | aix4.[01] | aix4.[01].*)
8507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8509 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8517 # soname into executable. Probably we can add versioning support to
8518 # collect2, so additional links can be useful in future.
8519 if test "$aix_use_runtimelinking" = yes; then
8520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8521 # instead of lib<name>.a to let people know that these are not
8522 # typical AIX shared libraries.
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525 # We preserve .a as extension for shared libraries through AIX4.2
8526 # and later when we are not doing run time linking.
8527 library_names_spec='${libname}${release}.a $libname.a'
8528 soname_spec='${libname}${release}${shared_ext}$major'
8530 shlibpath_var=LIBPATH
8535 library_names_spec='$libname.ixlibrary $libname.a'
8536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8537 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'
8541 library_names_spec='${libname}${shared_ext}'
8542 dynamic_linker="$host_os ld.so"
8543 shlibpath_var=LIBRARY_PATH
8549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550 soname_spec='${libname}${release}${shared_ext}$major'
8551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8552 shlibpath_var=LD_LIBRARY_PATH
8553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8555 # the default ld.so.conf also contains /usr/contrib/lib and
8556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8557 # libtool to hard-code these into programs
8560 cygwin* | mingw* | pw32*)
8561 version_type=windows
8566 case $GCC,$host_os in
8567 yes,cygwin* | yes,mingw* | yes,pw32*)
8568 library_names_spec='$libname.dll.a'
8569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8570 postinstall_cmds='base_file=`basename \${file}`~
8571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8572 dldir=$destdir/`dirname \$dlpath`~
8573 test -d \$dldir || mkdir -p \$dldir~
8574 $install_prog $dir/$dlname \$dldir/$dlname~
8575 chmod a+x \$dldir/$dlname'
8576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8577 dlpath=$dir/\$dldll~
8579 shlibpath_overrides_runpath=yes
8583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8585 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8588 # MinGW DLLs use traditional 'lib' prefix
8589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8591 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8592 # It is most probably a Windows format PATH printed by
8593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8594 # path with ; separators, and with drive letters. We can handle the
8595 # drive letters (cygwin fileutils understands them), so leave them,
8596 # especially as we might pass files found there to a mingw objdump,
8597 # which wouldn't understand a cygwinified path. Ahh.
8598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8604 # pw32 DLLs use 'pw' prefix rather than 'lib'
8605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8614 dynamic_linker='Win32 ld.exe'
8615 # FIXME: first we should search . and the directory the executable is in
8619 darwin* | rhapsody*)
8620 dynamic_linker="$host_os dyld"
8624 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8625 soname_spec='${libname}${release}${major}$shared_ext'
8626 shlibpath_overrides_runpath=yes
8627 shlibpath_var=DYLD_LIBRARY_PATH
8628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8629 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8630 if test "$GCC" = yes; then
8631 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"`
8633 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8635 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8643 soname_spec='${libname}${release}${shared_ext}$major'
8644 shlibpath_var=LD_LIBRARY_PATH
8655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8656 soname_spec='${libname}${release}${shared_ext}$major'
8657 shlibpath_var=LD_LIBRARY_PATH
8658 shlibpath_overrides_runpath=no
8659 hardcode_into_libs=yes
8660 dynamic_linker='GNU ld.so'
8663 freebsd* | dragonfly*)
8664 # DragonFly does not have aout. When/if they implement a new
8665 # versioning mechanism, adjust this.
8666 if test -x /usr/bin/objformat; then
8667 objformat=`/usr/bin/objformat`
8670 freebsd[123]*) objformat=aout ;;
8674 version_type=freebsd-$objformat
8675 case $version_type in
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8686 shlibpath_var=LD_LIBRARY_PATH
8689 shlibpath_overrides_runpath=yes
8691 freebsd3.[01]* | freebsdelf3.[01]*)
8692 shlibpath_overrides_runpath=yes
8693 hardcode_into_libs=yes
8695 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8696 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8697 shlibpath_overrides_runpath=no
8698 hardcode_into_libs=yes
8700 freebsd*) # from 4.6 on
8701 shlibpath_overrides_runpath=yes
8702 hardcode_into_libs=yes
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
8714 hardcode_into_libs=yes
8717 hpux9* | hpux10* | hpux11*)
8718 # Give a soname corresponding to the major version so that dld.sl refuses to
8719 # link against other versions.
8726 hardcode_into_libs=yes
8727 dynamic_linker="$host_os dld.so"
8728 shlibpath_var=LD_LIBRARY_PATH
8729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731 soname_spec='${libname}${release}${shared_ext}$major'
8732 if test "X$HPUX_IA64_MODE" = X32; then
8733 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8741 hardcode_into_libs=yes
8742 dynamic_linker="$host_os dld.sl"
8743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8752 dynamic_linker="$host_os dld.sl"
8753 shlibpath_var=SHLIB_PATH
8754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8759 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8760 postinstall_cmds='chmod 555 $lib'
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 shlibpath_overrides_runpath=no
8772 hardcode_into_libs=yes
8775 irix5* | irix6* | nonstopux*)
8777 nonstopux*) version_type=nonstopux ;;
8779 if test "$lt_cv_prog_gnu_ld" = yes; then
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8790 irix5* | nonstopux*)
8794 case $LD in # libtool.m4 will add one of these switches to LD
8795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8796 libsuff= shlibsuff= libmagic=32-bit;;
8797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8798 libsuff=32 shlibsuff=N32 libmagic=N32;;
8799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8800 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8801 *) libsuff= shlibsuff= libmagic=never-match;;
8805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8806 shlibpath_overrides_runpath=no
8807 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8808 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8809 hardcode_into_libs=yes
8812 # No shared lib support for Linux oldld, aout, or coff.
8813 linux*oldld* | linux*aout* | linux*coff*)
8817 # This must be Linux ELF.
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=no
8827 # This implies no fast_install, which is unacceptable.
8828 # Some rework will be needed to allow for fast_install
8829 # before this can be enabled.
8830 hardcode_into_libs=yes
8832 # find out which ABI we are using
8835 x86_64*|s390x*|powerpc64*)
8836 echo '#line 8836 "configure"' > conftest.$ac_ext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838 (eval $ac_compile) 2>&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; then
8842 case `/usr/bin/file conftest.$ac_objext` in
8845 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8853 # Append ld.so.conf contents to the search path
8854 if test -f /etc/ld.so.conf; then
8855 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8856 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8859 # We used to test for /lib/ld.so.1 and disable shared libraries on
8860 # powerpc, because MkLinux only supported shared libraries with the
8861 # GNU dynamic linker. Since this was broken with cross compilers,
8862 # most powerpc-linux boxes support dynamic linking these days and
8863 # people can always --disable-shared, the test was removed, and we
8864 # assume the GNU/Linux dynamic linker is in use.
8865 dynamic_linker='GNU/Linux ld.so'
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 shlibpath_var=LD_LIBRARY_PATH
8875 shlibpath_overrides_runpath=no
8876 hardcode_into_libs=yes
8877 dynamic_linker='GNU ld.so'
8884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8887 dynamic_linker='NetBSD (a.out) ld.so'
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 dynamic_linker='NetBSD ld.elf_so'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 shlibpath_overrides_runpath=yes
8895 hardcode_into_libs=yes
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 shlibpath_var=LD_LIBRARY_PATH
8902 shlibpath_overrides_runpath=yes
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=yes
8917 sys_lib_dlsearch_path_spec="/usr/lib"
8919 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8921 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8922 *) need_version=no ;;
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8929 openbsd2.[89] | openbsd2.[89].*)
8930 shlibpath_overrides_runpath=no
8933 shlibpath_overrides_runpath=yes
8937 shlibpath_overrides_runpath=yes
8942 libname_spec='$name'
8945 library_names_spec='$libname${shared_ext} $libname.a'
8946 dynamic_linker='OS/2 ld.exe'
8947 shlibpath_var=LIBPATH
8950 osf3* | osf4* | osf5*)
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8958 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 shlibpath_overrides_runpath=yes
8969 hardcode_into_libs=yes
8970 # ldd complains unless libraries are executable
8971 postinstall_cmds='chmod +x $lib'
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8980 if test "$with_gnu_ld" = yes; then
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 case $host_vendor in
8993 shlibpath_overrides_runpath=no
8995 export_dynamic_flag_spec='${wl}-Blargedynsym'
8996 runpath_var=LD_RUN_PATH
9004 shlibpath_overrides_runpath=no
9005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9011 if test -d /usr/nec ;then
9013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9014 soname_spec='$libname${shared_ext}.$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9020 version_type=freebsd-elf
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 hardcode_into_libs=yes
9027 if test "$with_gnu_ld" = yes; then
9028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9029 shlibpath_overrides_runpath=no
9031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9032 shlibpath_overrides_runpath=yes
9035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9039 sys_lib_dlsearch_path_spec='/usr/lib'
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 shlibpath_var=LD_LIBRARY_PATH
9053 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9054 echo "${ECHO_T}$dynamic_linker" >&6; }
9055 test "$dynamic_linker" = no && can_build_shared=no
9057 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9058 if test "$GCC" = yes; then
9059 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9062 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9063 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9065 if test -n "$hardcode_libdir_flag_spec" || \
9066 test -n "$runpath_var" || \
9067 test "X$hardcode_automatic" = "Xyes" ; then
9069 # We can hardcode non-existant directories.
9070 if test "$hardcode_direct" != no &&
9071 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9072 # have to relink, otherwise we might link with an installed library
9073 # when we should be linking with a yet-to-be-installed one
9074 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9075 test "$hardcode_minus_L" != no; then
9076 # Linking always hardcodes the temporary library directory.
9077 hardcode_action=relink
9079 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9080 hardcode_action=immediate
9083 # We cannot hardcode anything, or else we can only hardcode existing
9085 hardcode_action=unsupported
9087 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9088 echo "${ECHO_T}$hardcode_action" >&6; }
9090 if test "$hardcode_action" = relink; then
9091 # Fast installation is not supported
9092 enable_fast_install=no
9093 elif test "$shlibpath_overrides_runpath" = yes ||
9094 test "$enable_shared" = no; then
9095 # Fast installation is not necessary
9096 enable_fast_install=needless
9101 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9102 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9103 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9104 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9105 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9106 { echo "$as_me:$LINENO: result: yes" >&5
9107 echo "${ECHO_T}yes" >&6; }
9109 # FIXME - insert some real tests, host_os isn't really good enough
9112 if test -n "$STRIP" ; then
9113 striplib="$STRIP -x"
9114 { echo "$as_me:$LINENO: result: yes" >&5
9115 echo "${ECHO_T}yes" >&6; }
9117 { echo "$as_me:$LINENO: result: no" >&5
9118 echo "${ECHO_T}no" >&6; }
9122 { echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6; }
9128 if test "x$enable_dlopen" != xyes; then
9129 enable_dlopen=unknown
9130 enable_dlopen_self=unknown
9131 enable_dlopen_self_static=unknown
9138 lt_cv_dlopen="load_add_on"
9140 lt_cv_dlopen_self=yes
9144 lt_cv_dlopen="LoadLibrary"
9149 lt_cv_dlopen="dlopen"
9154 # if libdl is installed we need to link against it
9155 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9156 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9157 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 ac_check_lib_save_LIBS=$LIBS
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9169 /* Override any GCC internal prototype to avoid an error.
9170 Use char because int might match the return type of a GCC
9171 builtin and then its argument prototype would still apply. */
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_c_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest$ac_exeext &&
9201 $as_test_x conftest$ac_exeext; then
9202 ac_cv_lib_dl_dlopen=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 ac_cv_lib_dl_dlopen=no
9210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9211 conftest$ac_exeext conftest.$ac_ext
9212 LIBS=$ac_check_lib_save_LIBS
9214 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9215 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9216 if test $ac_cv_lib_dl_dlopen = yes; then
9217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9222 lt_cv_dlopen_self=yes
9229 { echo "$as_me:$LINENO: checking for shl_load" >&5
9230 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9231 if test "${ac_cv_func_shl_load+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9242 #define shl_load innocuous_shl_load
9244 /* System header to define __stub macros and hopefully few prototypes,
9245 which can conflict with char shl_load (); below.
9246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9247 <limits.h> exists even on freestanding compilers. */
9250 # include <limits.h>
9252 # include <assert.h>
9257 /* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9264 /* The GNU C library defines this for functions which it implements
9265 to always fail with ENOSYS. Some functions are actually named
9266 something starting with __ and the normal name is an alias. */
9267 #if defined __stub_shl_load || defined __stub___shl_load
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_link") 2>conftest.er1
9288 grep -v '^ *+' conftest.er1 >conftest.err
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && {
9293 test -z "$ac_c_werror_flag" ||
9294 test ! -s conftest.err
9295 } && test -s conftest$ac_exeext &&
9296 $as_test_x conftest$ac_exeext; then
9297 ac_cv_func_shl_load=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_func_shl_load=no
9305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9306 conftest$ac_exeext conftest.$ac_ext
9308 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9309 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9310 if test $ac_cv_func_shl_load = yes; then
9311 lt_cv_dlopen="shl_load"
9313 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9314 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 ac_check_lib_save_LIBS=$LIBS
9320 cat >conftest.$ac_ext <<_ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9327 /* Override any GCC internal prototype to avoid an error.
9328 Use char because int might match the return type of a GCC
9329 builtin and then its argument prototype would still apply. */
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_link") 2>conftest.er1
9351 grep -v '^ *+' conftest.er1 >conftest.err
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && {
9356 test -z "$ac_c_werror_flag" ||
9357 test ! -s conftest.err
9358 } && test -s conftest$ac_exeext &&
9359 $as_test_x conftest$ac_exeext; then
9360 ac_cv_lib_dld_shl_load=yes
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 ac_cv_lib_dld_shl_load=no
9368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369 conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9373 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9374 if test $ac_cv_lib_dld_shl_load = yes; then
9375 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9377 { echo "$as_me:$LINENO: checking for dlopen" >&5
9378 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9379 if test "${ac_cv_func_dlopen+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 cat >conftest.$ac_ext <<_ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9388 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9390 #define dlopen innocuous_dlopen
9392 /* System header to define __stub macros and hopefully few prototypes,
9393 which can conflict with char dlopen (); below.
9394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9395 <limits.h> exists even on freestanding compilers. */
9398 # include <limits.h>
9400 # include <assert.h>
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9412 /* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415 #if defined __stub_dlopen || defined __stub___dlopen
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (ac_try="$ac_link"
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434 (eval "$ac_link") 2>conftest.er1
9436 grep -v '^ *+' conftest.er1 >conftest.err
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } && {
9441 test -z "$ac_c_werror_flag" ||
9442 test ! -s conftest.err
9443 } && test -s conftest$ac_exeext &&
9444 $as_test_x conftest$ac_exeext; then
9445 ac_cv_func_dlopen=yes
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_func_dlopen=no
9453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9454 conftest$ac_exeext conftest.$ac_ext
9456 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9457 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9458 if test $ac_cv_func_dlopen = yes; then
9459 lt_cv_dlopen="dlopen"
9461 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 ac_check_lib_save_LIBS=$LIBS
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_link") 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest$ac_exeext &&
9507 $as_test_x conftest$ac_exeext; then
9508 ac_cv_lib_dl_dlopen=yes
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_cv_lib_dl_dlopen=no
9516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LIBS=$ac_check_lib_save_LIBS
9520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9522 if test $ac_cv_lib_dl_dlopen = yes; then
9523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9525 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9526 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9527 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 ac_check_lib_save_LIBS=$LIBS
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest$ac_exeext &&
9571 $as_test_x conftest$ac_exeext; then
9572 ac_cv_lib_svld_dlopen=yes
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_svld_dlopen=no
9580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9585 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9586 if test $ac_cv_lib_svld_dlopen = yes; then
9587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9589 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9590 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 ac_check_lib_save_LIBS=$LIBS
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest$ac_exeext &&
9635 $as_test_x conftest$ac_exeext; then
9636 ac_cv_lib_dld_dld_link=yes
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_cv_lib_dld_dld_link=no
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645 conftest$ac_exeext conftest.$ac_ext
9646 LIBS=$ac_check_lib_save_LIBS
9648 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9649 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9650 if test $ac_cv_lib_dld_dld_link = yes; then
9651 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9672 if test "x$lt_cv_dlopen" != xno; then
9678 case $lt_cv_dlopen in
9680 save_CPPFLAGS="$CPPFLAGS"
9681 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9683 save_LDFLAGS="$LDFLAGS"
9684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9687 LIBS="$lt_cv_dlopen_libs $LIBS"
9689 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9690 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9691 if test "${lt_cv_dlopen_self+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 if test "$cross_compiling" = yes; then :
9695 lt_cv_dlopen_self=cross
9697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9698 lt_status=$lt_dlunknown
9699 cat > conftest.$ac_ext <<EOF
9700 #line 9700 "configure"
9701 #include "confdefs.h"
9710 # define LT_DLGLOBAL RTLD_GLOBAL
9713 # define LT_DLGLOBAL DL_GLOBAL
9715 # define LT_DLGLOBAL 0
9719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9720 find out it does not work in some platform. */
9721 #ifndef LT_DLLAZY_OR_NOW
9723 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9726 # define LT_DLLAZY_OR_NOW DL_LAZY
9729 # define LT_DLLAZY_OR_NOW RTLD_NOW
9732 # define LT_DLLAZY_OR_NOW DL_NOW
9734 # define LT_DLLAZY_OR_NOW 0
9742 extern "C" void exit (int);
9745 void fnord() { int i=42;}
9748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9749 int status = $lt_dlunknown;
9753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9754 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9755 /* dlclose (self); */
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9768 (./conftest; exit; ) >&5 2>/dev/null
9771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9773 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9776 # compilation failed
9777 lt_cv_dlopen_self=no
9784 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9785 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9787 if test "x$lt_cv_dlopen_self" = xyes; then
9788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9789 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9790 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9791 if test "${lt_cv_dlopen_self_static+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 if test "$cross_compiling" = yes; then :
9795 lt_cv_dlopen_self_static=cross
9797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9798 lt_status=$lt_dlunknown
9799 cat > conftest.$ac_ext <<EOF
9800 #line 9800 "configure"
9801 #include "confdefs.h"
9810 # define LT_DLGLOBAL RTLD_GLOBAL
9813 # define LT_DLGLOBAL DL_GLOBAL
9815 # define LT_DLGLOBAL 0
9819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9820 find out it does not work in some platform. */
9821 #ifndef LT_DLLAZY_OR_NOW
9823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9826 # define LT_DLLAZY_OR_NOW DL_LAZY
9829 # define LT_DLLAZY_OR_NOW RTLD_NOW
9832 # define LT_DLLAZY_OR_NOW DL_NOW
9834 # define LT_DLLAZY_OR_NOW 0
9842 extern "C" void exit (int);
9845 void fnord() { int i=42;}
9848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9849 int status = $lt_dlunknown;
9853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9855 /* dlclose (self); */
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9868 (./conftest; exit; ) >&5 2>/dev/null
9871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9873 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9876 # compilation failed
9877 lt_cv_dlopen_self_static=no
9884 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9885 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9888 CPPFLAGS="$save_CPPFLAGS"
9889 LDFLAGS="$save_LDFLAGS"
9894 case $lt_cv_dlopen_self in
9895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9896 *) enable_dlopen_self=unknown ;;
9899 case $lt_cv_dlopen_self_static in
9900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9901 *) enable_dlopen_self_static=unknown ;;
9906 # Report which library types will actually be built
9907 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9908 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9909 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9910 echo "${ECHO_T}$can_build_shared" >&6; }
9912 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9913 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9914 test "$can_build_shared" = "no" && enable_shared=no
9916 # On AIX, shared libraries and static libraries use the same namespace, and
9917 # are all built from PIC.
9920 test "$enable_shared" = yes && enable_static=no
9921 if test -n "$RANLIB"; then
9922 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9923 postinstall_cmds='$RANLIB $lib'
9928 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9929 test "$enable_shared" = yes && enable_static=no
9933 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9934 echo "${ECHO_T}$enable_shared" >&6; }
9936 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9938 # Make sure either enable_shared or enable_static is yes.
9939 test "$enable_shared" = yes || enable_static=yes
9940 { echo "$as_me:$LINENO: result: $enable_static" >&5
9941 echo "${ECHO_T}$enable_static" >&6; }
9943 # The else clause should only fire when bootstrapping the
9944 # libtool distribution, otherwise you forgot to ship ltmain.sh
9945 # with your package, and you will get complaints that there are
9946 # no rules to generate ltmain.sh.
9947 if test -f "$ltmain"; then
9948 # See if we are running on zsh, and set the options which allow our commands through
9949 # without removal of \ escapes.
9950 if test -n "${ZSH_VERSION+set}" ; then
9951 setopt NO_GLOB_SUBST
9953 # Now quote all the things that may contain metacharacters while being
9954 # careful not to overquote the AC_SUBSTed values. We take copies of the
9955 # variables and quote the copies for generation of the libtool script.
9956 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9958 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9959 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9960 deplibs_check_method reload_flag reload_cmds need_locks \
9961 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9962 lt_cv_sys_global_symbol_to_c_name_address \
9963 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9964 old_postinstall_cmds old_postuninstall_cmds \
9968 lt_prog_compiler_wl \
9969 lt_prog_compiler_pic \
9970 lt_prog_compiler_static \
9971 lt_prog_compiler_no_builtin_flag \
9972 export_dynamic_flag_spec \
9973 thread_safe_flag_spec \
9974 whole_archive_flag_spec \
9975 enable_shared_with_static_runtimes \
9977 old_archive_from_new_cmds \
9982 compiler_lib_search_path \
9984 archive_expsym_cmds \
9986 postuninstall_cmds \
9987 old_archive_from_expsyms_cmds \
9988 allow_undefined_flag \
9990 export_symbols_cmds \
9991 hardcode_libdir_flag_spec \
9992 hardcode_libdir_flag_spec_ld \
9993 hardcode_libdir_separator \
9994 hardcode_automatic \
9996 module_expsym_cmds \
9997 lt_cv_prog_compiler_c_o \
10002 old_archive_cmds | \
10003 old_archive_from_new_cmds | \
10005 archive_expsym_cmds | \
10007 module_expsym_cmds | \
10008 old_archive_from_expsyms_cmds | \
10009 export_symbols_cmds | \
10010 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10011 postinstall_cmds | postuninstall_cmds | \
10012 old_postinstall_cmds | old_postuninstall_cmds | \
10013 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10014 # Double-quote double-evaled strings.
10015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10024 *'\$0 --fallback-echo"')
10025 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10029 cfgfile="${ofile}T"
10030 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10032 { echo "$as_me:$LINENO: creating $ofile" >&5
10033 echo "$as_me: creating $ofile" >&6;}
10035 cat <<__EOF__ >> "$cfgfile"
10038 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10039 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10040 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10042 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10043 # Free Software Foundation, Inc.
10045 # This file is part of GNU Libtool:
10046 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10048 # This program is free software; you can redistribute it and/or modify
10049 # it under the terms of the GNU General Public License as published by
10050 # the Free Software Foundation; either version 2 of the License, or
10051 # (at your option) any later version.
10053 # This program is distributed in the hope that it will be useful, but
10054 # WITHOUT ANY WARRANTY; without even the implied warranty of
10055 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10056 # General Public License for more details.
10058 # You should have received a copy of the GNU General Public License
10059 # along with this program; if not, write to the Free Software
10060 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10062 # As a special exception to the GNU General Public License, if you
10063 # distribute this file as part of a program that contains a
10064 # configuration script generated by Autoconf, you may include it under
10065 # the same distribution terms that you use for the rest of that program.
10067 # A sed program that does not truncate output.
10070 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10071 Xsed="$SED -e 1s/^X//"
10073 # The HP-UX ksh and POSIX shell print the target directory to stdout
10074 # if CDPATH is set.
10075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10077 # The names of the tagged configurations supported by this script.
10080 # ### BEGIN LIBTOOL CONFIG
10082 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10084 # Shell to use when invoking shell scripts.
10087 # Whether or not to build shared libraries.
10088 build_libtool_libs=$enable_shared
10090 # Whether or not to build static libraries.
10091 build_old_libs=$enable_static
10093 # Whether or not to add -lc for building shared libraries.
10094 build_libtool_need_lc=$archive_cmds_need_lc
10096 # Whether or not to disallow shared libs when runtime libs are static
10097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10099 # Whether or not to optimize for fast installation.
10100 fast_install=$enable_fast_install
10103 host_alias=$host_alias
10107 # The build system.
10108 build_alias=$build_alias
10112 # An echo program that does not interpret backslashes.
10117 AR_FLAGS=$lt_AR_FLAGS
10122 # LTCC compiler flags.
10123 LTCFLAGS=$lt_LTCFLAGS
10125 # A language-specific compiler.
10128 # Is the compiler the GNU C compiler?
10131 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10132 gcc_ver=\`gcc -dumpversion\`
10137 # The linker used to build libraries.
10140 # Whether we need hard or soft links.
10143 # A BSD-compatible nm program.
10146 # A symbol stripping program
10149 # Used to examine libraries when file_magic_cmd begins "file"
10150 MAGIC_CMD=$MAGIC_CMD
10152 # Used on cygwin: DLL creation program.
10155 # Used on cygwin: object dumper.
10158 # Used on cygwin: assembler.
10161 # The name of the directory that contains temporary libtool files.
10164 # How to create reloadable object files.
10165 reload_flag=$lt_reload_flag
10166 reload_cmds=$lt_reload_cmds
10168 # How to pass a linker flag through the compiler.
10169 wl=$lt_lt_prog_compiler_wl
10171 # Object file suffix (normally "o").
10172 objext="$ac_objext"
10174 # Old archive suffix (normally "a").
10177 # Shared library suffix (normally ".so").
10178 shrext_cmds='$shrext_cmds'
10180 # Executable file suffix (normally "").
10183 # Additional compiler flags for building library objects.
10184 pic_flag=$lt_lt_prog_compiler_pic
10187 # What is the maximum length of a command?
10188 max_cmd_len=$lt_cv_sys_max_cmd_len
10190 # Does compiler simultaneously support -c and -o options?
10191 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10193 # Must we lock files when doing compilation?
10194 need_locks=$lt_need_locks
10196 # Do we need the lib prefix for modules?
10197 need_lib_prefix=$need_lib_prefix
10199 # Do we need a version for libraries?
10200 need_version=$need_version
10202 # Whether dlopen is supported.
10203 dlopen_support=$enable_dlopen
10205 # Whether dlopen of programs is supported.
10206 dlopen_self=$enable_dlopen_self
10208 # Whether dlopen of statically linked programs is supported.
10209 dlopen_self_static=$enable_dlopen_self_static
10211 # Compiler flag to prevent dynamic linking.
10212 link_static_flag=$lt_lt_prog_compiler_static
10214 # Compiler flag to turn off builtin functions.
10215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10217 # Compiler flag to allow reflexive dlopens.
10218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10220 # Compiler flag to generate shared objects directly from archives.
10221 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10223 # Compiler flag to generate thread-safe objects.
10224 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10226 # Library versioning type.
10227 version_type=$version_type
10229 # Format of library name prefix.
10230 libname_spec=$lt_libname_spec
10232 # List of archive names. First name is the real one, the rest are links.
10233 # The last name is the one that the linker finds with -lNAME.
10234 library_names_spec=$lt_library_names_spec
10236 # The coded name of the library, if different from the real name.
10237 soname_spec=$lt_soname_spec
10239 # Commands used to build and install an old-style archive.
10241 old_archive_cmds=$lt_old_archive_cmds
10242 old_postinstall_cmds=$lt_old_postinstall_cmds
10243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10245 # Create an old-style archive from a shared archive.
10246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10248 # Create a temporary old-style archive to link instead of a shared archive.
10249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10251 # Commands used to build and install a shared archive.
10252 archive_cmds=$lt_archive_cmds
10253 archive_expsym_cmds=$lt_archive_expsym_cmds
10254 postinstall_cmds=$lt_postinstall_cmds
10255 postuninstall_cmds=$lt_postuninstall_cmds
10257 # Commands used to build a loadable module (assumed same as above if empty)
10258 module_cmds=$lt_module_cmds
10259 module_expsym_cmds=$lt_module_expsym_cmds
10261 # Commands to strip libraries.
10262 old_striplib=$lt_old_striplib
10263 striplib=$lt_striplib
10265 # Dependencies to place before the objects being linked to create a
10267 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10269 # Dependencies to place after the objects being linked to create a
10271 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10273 # Dependencies to place before the objects being linked to create a
10275 predeps=$lt_predeps
10277 # Dependencies to place after the objects being linked to create a
10279 postdeps=$lt_postdeps
10281 # The library search path used internally by the compiler when linking
10282 # a shared library.
10283 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10285 # Method to check whether dependent libraries are shared objects.
10286 deplibs_check_method=$lt_deplibs_check_method
10288 # Command to use when deplibs_check_method == file_magic.
10289 file_magic_cmd=$lt_file_magic_cmd
10291 # Flag that allows shared libraries with undefined symbols to be built.
10292 allow_undefined_flag=$lt_allow_undefined_flag
10294 # Flag that forces no undefined symbols.
10295 no_undefined_flag=$lt_no_undefined_flag
10297 # Commands used to finish a libtool library installation in a directory.
10298 finish_cmds=$lt_finish_cmds
10300 # Same as above, but a single script fragment to be evaled but not shown.
10301 finish_eval=$lt_finish_eval
10303 # Take the output of nm and produce a listing of raw symbols and C names.
10304 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10306 # Transform the output of nm in a proper C declaration
10307 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10309 # Transform the output of nm in a C name address pair
10310 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10312 # This is the shared library runtime path variable.
10313 runpath_var=$runpath_var
10315 # This is the shared library path variable.
10316 shlibpath_var=$shlibpath_var
10318 # Is shlibpath searched before the hard-coded library search path?
10319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10321 # How to hardcode a shared library path into an executable.
10322 hardcode_action=$hardcode_action
10324 # Whether we should hardcode library paths into libraries.
10325 hardcode_into_libs=$hardcode_into_libs
10327 # Flag to hardcode \$libdir into a binary during linking.
10328 # This must work even if \$libdir does not exist.
10329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10331 # If ld is used when linking, flag to hardcode \$libdir into
10332 # a binary during linking. This must work even if \$libdir does
10334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10336 # Whether we need a single -rpath flag with a separated argument.
10337 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10339 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10340 # resulting binary.
10341 hardcode_direct=$hardcode_direct
10343 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10344 # resulting binary.
10345 hardcode_minus_L=$hardcode_minus_L
10347 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10348 # the resulting binary.
10349 hardcode_shlibpath_var=$hardcode_shlibpath_var
10351 # Set to yes if building a shared library automatically hardcodes DIR into the library
10352 # and all subsequent libraries and executables linked against it.
10353 hardcode_automatic=$hardcode_automatic
10355 # Variables whose values should be saved in libtool wrapper scripts and
10356 # restored at relink time.
10357 variables_saved_for_relink="$variables_saved_for_relink"
10359 # Whether libtool must link a program against all its dependency libraries.
10360 link_all_deplibs=$link_all_deplibs
10362 # Compile-time system search path for libraries
10363 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10365 # Run-time system search path for libraries
10366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10368 # Fix the shell variable \$srcfile for the compiler.
10369 fix_srcfile_path="$fix_srcfile_path"
10371 # Set to yes if exported symbols are required.
10372 always_export_symbols=$always_export_symbols
10374 # The commands to list exported symbols.
10375 export_symbols_cmds=$lt_export_symbols_cmds
10377 # The commands to extract the exported symbol list from a shared archive.
10378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10380 # Symbols that should not be listed in the preloaded symbols.
10381 exclude_expsyms=$lt_exclude_expsyms
10383 # Symbols that must always be exported.
10384 include_expsyms=$lt_include_expsyms
10386 # ### END LIBTOOL CONFIG
10393 cat <<\EOF >> "$cfgfile"
10395 # AIX sometimes has problems with the GCC collect2 program. For some
10396 # reason, if we set the COLLECT_NAMES environment variable, the problems
10397 # vanish in a puff of smoke.
10398 if test "X${COLLECT_NAMES+set}" != Xset; then
10400 export COLLECT_NAMES
10406 # We use sed instead of cat because bash on DJGPP gets confused if
10407 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10408 # text mode, it properly converts lines to CR/LF. This bash problem
10409 # is reportedly fixed, but why not run on old versions too?
10410 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10412 mv -f "$cfgfile" "$ofile" || \
10413 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10417 # If there is no Makefile yet, we rely on a make rule to execute
10418 # `config.status --recheck' to rerun these tests and create the
10419 # libtool script then.
10420 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10421 if test -f "$ltmain_in"; then
10422 test -f Makefile && make "$ltmain"
10428 ac_cpp='$CPP $CPPFLAGS'
10429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10436 # Check whether --with-tags was given.
10437 if test "${with_tags+set}" = set; then
10438 withval=$with_tags; tagnames="$withval"
10442 if test -f "$ltmain" && test -n "$tagnames"; then
10443 if test ! -f "${ofile}"; then
10444 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10445 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10448 if test -z "$LTCC"; then
10449 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10450 if test -z "$LTCC"; then
10451 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10452 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10455 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10458 if test -z "$LTCFLAGS"; then
10459 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10462 # Extract list of available tagged configurations in $ofile.
10463 # Note that this assumes the entire list is on one line.
10464 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10467 for tagname in $tagnames; do
10469 # Check whether tagname contains only valid characters
10470 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10472 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10473 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10474 { (exit 1); exit 1; }; }
10478 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10480 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10481 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10482 { (exit 1); exit 1; }; }
10485 # Update the list of available tags.
10486 if test -n "$tagname"; then
10487 echo appending configuration tag \"$tagname\" to $ofile
10491 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10492 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10493 (test "X$CXX" != "Xg++"))) ; then
10495 ac_cpp='$CXXCPP $CPPFLAGS'
10496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10503 archive_cmds_need_lc_CXX=no
10504 allow_undefined_flag_CXX=
10505 always_export_symbols_CXX=no
10506 archive_expsym_cmds_CXX=
10507 export_dynamic_flag_spec_CXX=
10508 hardcode_direct_CXX=no
10509 hardcode_libdir_flag_spec_CXX=
10510 hardcode_libdir_flag_spec_ld_CXX=
10511 hardcode_libdir_separator_CXX=
10512 hardcode_minus_L_CXX=no
10513 hardcode_shlibpath_var_CXX=unsupported
10514 hardcode_automatic_CXX=no
10516 module_expsym_cmds_CXX=
10517 link_all_deplibs_CXX=unknown
10518 old_archive_cmds_CXX=$old_archive_cmds
10519 no_undefined_flag_CXX=
10520 whole_archive_flag_spec_CXX=
10521 enable_shared_with_static_runtimes_CXX=no
10523 # Dependencies to place before and after the object being linked:
10524 predep_objects_CXX=
10525 postdep_objects_CXX=
10528 compiler_lib_search_path_CXX=
10530 # Source file extension for C++ test sources.
10533 # Object file extension for compiled C++ test sources.
10537 # Code to be used in simple compile tests
10538 lt_simple_compile_test_code="int some_variable = 0;\n"
10540 # Code to be used in simple link tests
10541 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10543 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10545 # If no C compiler was specified, use CC.
10548 # If no C compiler flags were specified, use CFLAGS.
10549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10551 # Allow CC to be a program name with arguments.
10555 # save warnings/boilerplate of simple test code
10556 ac_outfile=conftest.$ac_objext
10557 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10559 _lt_compiler_boilerplate=`cat conftest.err`
10562 ac_outfile=conftest.$ac_objext
10563 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10565 _lt_linker_boilerplate=`cat conftest.err`
10569 # Allow CC to be a program name with arguments.
10574 lt_save_with_gnu_ld=$with_gnu_ld
10575 lt_save_path_LD=$lt_cv_path_LD
10576 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10577 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10579 $as_unset lt_cv_prog_gnu_ld
10581 if test -n "${lt_cv_path_LDCXX+set}"; then
10582 lt_cv_path_LD=$lt_cv_path_LDCXX
10584 $as_unset lt_cv_path_LD
10586 test -z "${LDCXX+set}" || LD=$LDCXX
10590 for cc_temp in $compiler""; do
10592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10598 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10601 # We don't want -fno-exception wen compiling C++ code, so set the
10602 # no_builtin_flag separately
10603 if test "$GXX" = yes; then
10604 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10606 lt_prog_compiler_no_builtin_flag_CXX=
10609 if test "$GXX" = yes; then
10610 # Set up default GNU C++ configuration
10613 # Check whether --with-gnu-ld was given.
10614 if test "${with_gnu_ld+set}" = set; then
10615 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10621 if test "$GCC" = yes; then
10622 # Check if gcc -print-prog-name=ld gives a path.
10623 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10624 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10627 # gcc leaves a trailing carriage return which upsets mingw
10628 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10630 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10633 # Accept absolute paths.
10635 re_direlt='/[^/][^/]*/\.\./'
10636 # Canonicalize the pathname of ld
10637 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10638 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10639 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10641 test -z "$LD" && LD="$ac_prog"
10644 # If it fails, then pretend we aren't using GCC.
10648 # If it is relative, then search for the first ld in PATH.
10649 with_gnu_ld=unknown
10652 elif test "$with_gnu_ld" = yes; then
10653 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10654 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10656 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10657 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10659 if test "${lt_cv_path_LD+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 if test -z "$LD"; then
10663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10664 for ac_dir in $PATH; do
10666 test -z "$ac_dir" && ac_dir=.
10667 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10668 lt_cv_path_LD="$ac_dir/$ac_prog"
10669 # Check to see if the program is GNU ld. I'd rather use --version,
10670 # but apparently some variants of GNU ld only accept -v.
10671 # Break only if it was the GNU/non-GNU ld that we prefer.
10672 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10673 *GNU* | *'with BFD'*)
10674 test "$with_gnu_ld" != no && break
10677 test "$with_gnu_ld" != yes && break
10684 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10688 LD="$lt_cv_path_LD"
10689 if test -n "$LD"; then
10690 { echo "$as_me:$LINENO: result: $LD" >&5
10691 echo "${ECHO_T}$LD" >&6; }
10693 { echo "$as_me:$LINENO: result: no" >&5
10694 echo "${ECHO_T}no" >&6; }
10696 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10697 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10698 { (exit 1); exit 1; }; }
10699 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10700 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10701 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10705 case `$LD -v 2>&1 </dev/null` in
10706 *GNU* | *'with BFD'*)
10707 lt_cv_prog_gnu_ld=yes
10710 lt_cv_prog_gnu_ld=no
10714 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10715 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10716 with_gnu_ld=$lt_cv_prog_gnu_ld
10720 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10721 # archiving commands below assume that GNU ld is being used.
10722 if test "$with_gnu_ld" = yes; then
10723 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10724 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'
10726 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10729 # If archive_cmds runs LD, not CC, wlarc should be empty
10730 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10731 # investigate it a little bit more. (MM)
10734 # ancient GNU ld didn't support --whole-archive et. al.
10735 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10736 grep 'no-whole-archive' > /dev/null; then
10737 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10739 whole_archive_flag_spec_CXX=
10745 # A generic and very simple default shared library creation
10746 # command for GNU C++ for the case where it uses the native
10747 # linker, instead of GNU ld. If possible, this setting should
10748 # overridden to take advantage of the native linker features on
10749 # the platform it is being used on.
10750 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10753 # Commands to make compiler produce verbose output that lists
10754 # what "hidden" libraries, object files and flags are used when
10755 # linking a shared library.
10756 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10764 # PORTME: fill in a description of your system's C++ link characteristics
10765 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10766 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10770 # FIXME: insert proper C++ library support
10774 if test "$host_cpu" = ia64; then
10775 # On IA64, the linker does run time linking by default, so we don't
10776 # have to do anything special.
10777 aix_use_runtimelinking=no
10778 exp_sym_flag='-Bexport'
10781 aix_use_runtimelinking=no
10783 # Test if we are trying to use run time linking or normal
10784 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10785 # need to do runtime linking.
10786 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10787 for ld_flag in $LDFLAGS; do
10790 aix_use_runtimelinking=yes
10798 exp_sym_flag='-bexport'
10799 no_entry_flag='-bnoentry'
10802 # When large executables or shared objects are built, AIX ld can
10803 # have problems creating the table of contents. If linking a library
10804 # or program results in "error TOC overflow" add -mminimal-toc to
10805 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10806 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10808 archive_cmds_CXX=''
10809 hardcode_direct_CXX=yes
10810 hardcode_libdir_separator_CXX=':'
10811 link_all_deplibs_CXX=yes
10813 if test "$GXX" = yes; then
10814 case $host_os in aix4.[012]|aix4.[012].*)
10815 # We only want to do this on AIX 4.2 and lower, the check
10816 # below for broken collect2 doesn't work under 4.3+
10817 collect2name=`${CC} -print-prog-name=collect2`
10818 if test -f "$collect2name" && \
10819 strings "$collect2name" | grep resolve_lib_name >/dev/null
10821 # We have reworked collect2
10822 hardcode_direct_CXX=yes
10824 # We have old collect2
10825 hardcode_direct_CXX=unsupported
10826 # It fails to find uninstalled libraries when the uninstalled
10827 # path is not listed in the libpath. Setting hardcode_minus_L
10828 # to unsupported forces relinking
10829 hardcode_minus_L_CXX=yes
10830 hardcode_libdir_flag_spec_CXX='-L$libdir'
10831 hardcode_libdir_separator_CXX=
10835 shared_flag='-shared'
10836 if test "$aix_use_runtimelinking" = yes; then
10837 shared_flag="$shared_flag "'${wl}-G'
10841 if test "$host_cpu" = ia64; then
10842 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10843 # chokes on -Wl,-G. The following line is correct:
10846 if test "$aix_use_runtimelinking" = yes; then
10847 shared_flag='${wl}-G'
10849 shared_flag='${wl}-bM:SRE'
10854 # It seems that -bexpall does not export symbols beginning with
10855 # underscore (_), so it is better to generate a list of symbols to export.
10856 always_export_symbols_CXX=yes
10857 if test "$aix_use_runtimelinking" = yes; then
10858 # Warning - without using the other runtime loading flags (-brtl),
10859 # -berok will link without error, but may produce a broken library.
10860 allow_undefined_flag_CXX='-berok'
10861 # Determine the default libpath from the value encoded in an empty executable.
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (ac_try="$ac_link"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_link") 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && {
10891 test -z "$ac_cxx_werror_flag" ||
10892 test ! -s conftest.err
10893 } && test -s conftest$ac_exeext &&
10894 $as_test_x conftest$ac_exeext; then
10896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10898 # Check for a 64-bit object if we didn't find anything.
10899 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; }
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10909 conftest$ac_exeext conftest.$ac_ext
10910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10912 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10914 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"
10916 if test "$host_cpu" = ia64; then
10917 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10918 allow_undefined_flag_CXX="-z nodefs"
10919 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"
10921 # Determine the default libpath from the value encoded in an empty executable.
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10937 rm -f conftest.$ac_objext conftest$ac_exeext
10938 if { (ac_try="$ac_link"
10939 case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_link") 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } && {
10951 test -z "$ac_cxx_werror_flag" ||
10952 test ! -s conftest.err
10953 } && test -s conftest$ac_exeext &&
10954 $as_test_x conftest$ac_exeext; then
10956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10958 # Check for a 64-bit object if we didn't find anything.
10959 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; }
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10972 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10973 # Warning - without using the other run time loading flags,
10974 # -berok will link without error, but may produce a broken library.
10975 no_undefined_flag_CXX=' ${wl}-bernotok'
10976 allow_undefined_flag_CXX=' ${wl}-berok'
10977 # Exported symbols can be pulled into shared objects from archives
10978 whole_archive_flag_spec_CXX='$convenience'
10979 archive_cmds_need_lc_CXX=yes
10980 # This is similar to how AIX traditionally builds its shared libraries.
10981 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'
10987 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10988 allow_undefined_flag_CXX=unsupported
10989 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10990 # support --undefined. This deserves some investigation. FIXME
10991 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998 case $cc_basename in
11000 # FIXME: insert proper C++ library support
11006 cygwin* | mingw* | pw32*)
11007 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11008 # as there is no search path for DLLs.
11009 hardcode_libdir_flag_spec_CXX='-L$libdir'
11010 allow_undefined_flag_CXX=unsupported
11011 always_export_symbols_CXX=no
11012 enable_shared_with_static_runtimes_CXX=yes
11014 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11015 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'
11016 # If the export-symbols file already is a .def file (1st line
11017 # is EXPORTS), use it as is; otherwise, prepend...
11018 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11019 cp $export_symbols $output_objdir/$soname.def;
11021 echo EXPORTS > $output_objdir/$soname.def;
11022 cat $export_symbols >> $output_objdir/$soname.def;
11024 $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'
11029 darwin* | rhapsody*)
11031 rhapsody* | darwin1.[012])
11032 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11035 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11036 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11038 case ${MACOSX_DEPLOYMENT_TARGET} in
11040 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11043 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11049 archive_cmds_need_lc_CXX=no
11050 hardcode_direct_CXX=no
11051 hardcode_automatic_CXX=yes
11052 hardcode_shlibpath_var_CXX=unsupported
11053 whole_archive_flag_spec_CXX=''
11054 link_all_deplibs_CXX=yes
11056 if test "$GXX" = yes ; then
11057 lt_int_apple_cc_single_mod=no
11058 output_verbose_link_cmd='echo'
11059 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11060 lt_int_apple_cc_single_mod=yes
11062 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11063 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11065 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'
11067 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11068 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11069 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11070 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}'
11072 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}'
11074 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}'
11076 case $cc_basename in
11078 output_verbose_link_cmd='echo'
11079 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'
11080 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11081 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11082 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}'
11083 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}'
11093 case $cc_basename in
11095 # FIXME: insert proper C++ library support
11099 # Green Hills C++ Compiler
11100 # FIXME: insert proper C++ library support
11104 # FIXME: insert proper C++ library support
11110 # C++ shared libraries reported to be fairly broken before switch to ELF
11114 archive_cmds_need_lc_CXX=no
11116 freebsd* | kfreebsd*-gnu | dragonfly*)
11117 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11124 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11125 hardcode_libdir_separator_CXX=:
11126 export_dynamic_flag_spec_CXX='${wl}-E'
11127 hardcode_direct_CXX=yes
11128 hardcode_minus_L_CXX=yes # Not in the search PATH,
11129 # but as the default
11130 # location of the library.
11132 case $cc_basename in
11134 # FIXME: insert proper C++ library support
11138 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'
11139 # Commands to make compiler produce verbose output that lists
11140 # what "hidden" libraries, object files and flags are used when
11141 # linking a shared library.
11143 # There doesn't appear to be a way to prevent this compiler from
11144 # explicitly linking system object files so we need to strip them
11145 # from the output so that they don't get included in the library
11147 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'
11150 if test "$GXX" = yes; then
11151 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'
11153 # FIXME: insert proper C++ library support
11160 if test $with_gnu_ld = no; then
11161 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11162 hardcode_libdir_separator_CXX=:
11166 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11169 export_dynamic_flag_spec_CXX='${wl}-E'
11175 hardcode_direct_CXX=no
11176 hardcode_shlibpath_var_CXX=no
11179 hardcode_direct_CXX=yes
11180 hardcode_minus_L_CXX=yes # Not in the search PATH,
11181 # but as the default
11182 # location of the library.
11186 case $cc_basename in
11188 # FIXME: insert proper C++ library support
11194 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11197 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11203 # Commands to make compiler produce verbose output that lists
11204 # what "hidden" libraries, object files and flags are used when
11205 # linking a shared library.
11207 # There doesn't appear to be a way to prevent this compiler from
11208 # explicitly linking system object files so we need to strip them
11209 # from the output so that they don't get included in the library
11211 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'
11214 if test "$GXX" = yes; then
11215 if test $with_gnu_ld = no; then
11218 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11221 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11224 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'
11229 # FIXME: insert proper C++ library support
11236 hardcode_direct_CXX=no
11237 hardcode_shlibpath_var_CXX=no
11238 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11239 export_dynamic_flag_spec_CXX='${wl}-E'
11240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11241 # Instead, shared libraries are loaded at an image base (0x10000000 by
11242 # default) and relocated if they conflict, which is a slow very memory
11243 # consuming and fragmenting process. To avoid this, we pick a random,
11244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11245 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11246 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'
11247 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'
11250 case $cc_basename in
11253 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'
11255 # Archives containing C++ object files must be created using
11256 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11257 # necessary to make sure instantiated templates are included
11259 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11262 if test "$GXX" = yes; then
11263 if test "$with_gnu_ld" = no; then
11264 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'
11266 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'
11269 link_all_deplibs_CXX=yes
11272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11273 hardcode_libdir_separator_CXX=:
11276 case $cc_basename in
11278 # Kuck and Associates, Inc. (KAI) C++ Compiler
11280 # KCC will only create a shared library if the output file
11281 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11282 # to its proper name (with version) after linking.
11283 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'
11284 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'
11285 # Commands to make compiler produce verbose output that lists
11286 # what "hidden" libraries, object files and flags are used when
11287 # linking a shared library.
11289 # There doesn't appear to be a way to prevent this compiler from
11290 # explicitly linking system object files so we need to strip them
11291 # from the output so that they don't get included in the library
11293 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'
11295 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11298 # Archives containing C++ object files must be created using
11299 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11300 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11305 # version 8.0 and above of icpc choke on multiply defined symbols
11306 # if we add $predep_objects and $postdep_objects, however 7.1 and
11307 # earlier do not add the objects themselves.
11308 case `$CC -V 2>&1` in
11310 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11311 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'
11313 *) # Version 8.0 or newer
11316 ia64*) tmp_idyn=' -i_dynamic';;
11318 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11319 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'
11322 archive_cmds_need_lc_CXX=no
11323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11324 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11325 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11328 # Portland Group C++ compiler
11329 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11330 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'
11332 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11334 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'
11338 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11339 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'
11341 runpath_var=LD_RUN_PATH
11342 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11343 hardcode_libdir_separator_CXX=:
11345 # Commands to make compiler produce verbose output that lists
11346 # what "hidden" libraries, object files and flags are used when
11347 # linking a shared library.
11349 # There doesn't appear to be a way to prevent this compiler from
11350 # explicitly linking system object files so we need to strip them
11351 # from the output so that they don't get included in the library
11353 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'
11358 # FIXME: insert proper C++ library support
11362 # FIXME: insert proper C++ library support
11366 case $cc_basename in
11368 # FIXME: insert proper C++ library support
11372 # FIXME: insert proper C++ library support
11378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11379 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11381 hardcode_libdir_flag_spec_CXX='-R$libdir'
11382 hardcode_direct_CXX=yes
11383 hardcode_shlibpath_var_CXX=no
11385 # Workaround some broken pre-1.5 toolchains
11386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11389 # C++ shared libraries are fairly broken
11393 hardcode_direct_CXX=yes
11394 hardcode_shlibpath_var_CXX=no
11395 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11398 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11399 export_dynamic_flag_spec_CXX='${wl}-E'
11400 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11402 output_verbose_link_cmd='echo'
11405 case $cc_basename in
11407 # Kuck and Associates, Inc. (KAI) C++ Compiler
11409 # KCC will only create a shared library if the output file
11410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11411 # to its proper name (with version) after linking.
11412 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'
11414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11415 hardcode_libdir_separator_CXX=:
11417 # Archives containing C++ object files must be created using
11418 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11419 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11423 # Rational C++ 2.4.1
11424 # FIXME: insert proper C++ library support
11428 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11429 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'
11431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11432 hardcode_libdir_separator_CXX=:
11434 # Commands to make compiler produce verbose output that lists
11435 # what "hidden" libraries, object files and flags are used when
11436 # linking a shared library.
11438 # There doesn't appear to be a way to prevent this compiler from
11439 # explicitly linking system object files so we need to strip them
11440 # from the output so that they don't get included in the library
11442 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'
11445 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11446 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11447 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'
11449 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11450 hardcode_libdir_separator_CXX=:
11452 # Commands to make compiler produce verbose output that lists
11453 # what "hidden" libraries, object files and flags are used when
11454 # linking a shared library.
11455 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11458 # FIXME: insert proper C++ library support
11465 case $cc_basename in
11467 # Kuck and Associates, Inc. (KAI) C++ Compiler
11469 # KCC will only create a shared library if the output file
11470 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11471 # to its proper name (with version) after linking.
11472 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'
11474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11475 hardcode_libdir_separator_CXX=:
11477 # Archives containing C++ object files must be created using
11478 # the KAI C++ compiler.
11479 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11482 # Rational C++ 2.4.1
11483 # FIXME: insert proper C++ library support
11487 allow_undefined_flag_CXX=' -expect_unresolved \*'
11488 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'
11489 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11490 echo "-hidden">> $lib.exp~
11491 $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~
11494 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11495 hardcode_libdir_separator_CXX=:
11497 # Commands to make compiler produce verbose output that lists
11498 # what "hidden" libraries, object files and flags are used when
11499 # linking a shared library.
11501 # There doesn't appear to be a way to prevent this compiler from
11502 # explicitly linking system object files so we need to strip them
11503 # from the output so that they don't get included in the library
11505 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'
11508 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11509 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11510 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'
11512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11513 hardcode_libdir_separator_CXX=:
11515 # Commands to make compiler produce verbose output that lists
11516 # what "hidden" libraries, object files and flags are used when
11517 # linking a shared library.
11518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11521 # FIXME: insert proper C++ library support
11528 # FIXME: insert proper C++ library support
11532 case $cc_basename in
11535 # FIXME: insert proper C++ library support
11540 # FIXME: insert proper C++ library support
11544 # FIXME: insert proper C++ library support
11550 case $cc_basename in
11552 # Sun C++ 4.2, 5.x and Centerline C++
11553 archive_cmds_need_lc_CXX=yes
11554 no_undefined_flag_CXX=' -zdefs'
11555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11556 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11557 $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'
11559 hardcode_libdir_flag_spec_CXX='-R$libdir'
11560 hardcode_shlibpath_var_CXX=no
11562 solaris2.[0-5] | solaris2.[0-5].*) ;;
11564 # The C++ compiler is used as linker so we must use $wl
11565 # flag to pass the commands to the underlying system
11566 # linker. We must also pass each convience library through
11567 # to the system linker between allextract/defaultextract.
11568 # The C++ compiler will combine linker options so we
11569 # cannot just pass the convience library names through
11571 # Supported since Solaris 2.6 (maybe 2.5.1?)
11572 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'
11575 link_all_deplibs_CXX=yes
11577 output_verbose_link_cmd='echo'
11579 # Archives containing C++ object files must be created using
11580 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11581 # necessary to make sure instantiated templates are included
11583 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11586 # Green Hills C++ Compiler
11587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11589 # The C++ compiler must be used to create the archive.
11590 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11593 # GNU C++ compiler with Solaris linker
11594 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11595 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11596 if $CC --version | grep -v '^2\.7' > /dev/null; then
11597 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11598 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11599 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11601 # Commands to make compiler produce verbose output that lists
11602 # what "hidden" libraries, object files and flags are used when
11603 # linking a shared library.
11604 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11606 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11608 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11609 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11610 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11612 # Commands to make compiler produce verbose output that lists
11613 # what "hidden" libraries, object files and flags are used when
11614 # linking a shared library.
11615 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11618 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11623 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11624 no_undefined_flag_CXX='${wl}-z,text'
11625 archive_cmds_need_lc_CXX=no
11626 hardcode_shlibpath_var_CXX=no
11627 runpath_var='LD_RUN_PATH'
11629 case $cc_basename in
11631 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11636 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11640 sysv5* | sco3.2v5* | sco5v6*)
11641 # Note: We can NOT use -z defs as we might desire, because we do not
11642 # link with -lc, and that would cause any symbols used from libc to
11643 # always be unresolved, which means just about no library would
11644 # ever link correctly. If we're not using GNU ld we use -z text
11645 # though, which does catch some bad symbols but isn't as heavy-handed
11647 # For security reasons, it is highly recommended that you always
11648 # use absolute paths for naming shared libraries, and exclude the
11649 # DT_RUNPATH tag from executables and libraries. But doing so
11650 # requires that you compile everything twice, which is a pain.
11651 # So that behaviour is only enabled if SCOABSPATH is set to a
11652 # non-empty value in the environment. Most likely only useful for
11653 # creating official distributions of packages.
11654 # This is a hack until libtool officially supports absolute path
11655 # names for shared libraries.
11656 no_undefined_flag_CXX='${wl}-z,text'
11657 allow_undefined_flag_CXX='${wl}-z,nodefs'
11658 archive_cmds_need_lc_CXX=no
11659 hardcode_shlibpath_var_CXX=no
11660 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11661 hardcode_libdir_separator_CXX=':'
11662 link_all_deplibs_CXX=yes
11663 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11664 runpath_var='LD_RUN_PATH'
11666 case $cc_basename in
11668 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11672 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11673 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11678 case $cc_basename in
11680 # NonStop-UX NCC 3.20
11681 # FIXME: insert proper C++ library support
11685 # FIXME: insert proper C++ library support
11691 # FIXME: insert proper C++ library support
11695 # FIXME: insert proper C++ library support
11699 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11700 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11701 test "$ld_shlibs_CXX" = no && can_build_shared=no
11707 cat > conftest.$ac_ext <<EOF
11711 Foo (void) { a = 0; }
11717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11718 (eval $ac_compile) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; then
11722 # Parse the compiler output and extract the necessary
11723 # objects, libraries and library flags.
11725 # Sentinel used to keep track of whether or not we are before
11726 # the conftest object file.
11727 pre_test_object_deps_done=no
11729 # The `*' in the case matches for architectures that use `case' in
11730 # $output_verbose_cmd can trigger glob expansion during the loop
11731 # eval without this substitution.
11732 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11734 for p in `eval $output_verbose_link_cmd`; do
11738 # Some compilers place space between "-{L,R}" and the path.
11739 # Remove the space.
11740 if test $p = "-L" \
11741 || test $p = "-R"; then
11748 if test "$pre_test_object_deps_done" = no; then
11751 # Internal compiler library paths should come after those
11752 # provided the user. The postdeps already come after the
11753 # user supplied libs so there is no need to process them.
11754 if test -z "$compiler_lib_search_path_CXX"; then
11755 compiler_lib_search_path_CXX="${prev}${p}"
11757 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11760 # The "-l" case would never come before the object being
11761 # linked, so don't bother handling this case.
11764 if test -z "$postdeps_CXX"; then
11765 postdeps_CXX="${prev}${p}"
11767 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11773 # This assumes that the test object file only shows up
11774 # once in the compiler output.
11775 if test "$p" = "conftest.$objext"; then
11776 pre_test_object_deps_done=yes
11780 if test "$pre_test_object_deps_done" = no; then
11781 if test -z "$predep_objects_CXX"; then
11782 predep_objects_CXX="$p"
11784 predep_objects_CXX="$predep_objects_CXX $p"
11787 if test -z "$postdep_objects_CXX"; then
11788 postdep_objects_CXX="$p"
11790 postdep_objects_CXX="$postdep_objects_CXX $p"
11795 *) ;; # Ignore the rest.
11803 echo "libtool.m4: error: problem compiling CXX test program"
11806 $rm -f confest.$objext
11808 # PORTME: override above test on systems where it is broken
11811 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11812 # hack all around it, let's just trust "g++" to DTRT.
11813 predep_objects_CXX=
11814 postdep_objects_CXX=
11819 case $cc_basename in
11821 # Adding this requires a known-good setup of shared libraries for
11822 # Sun compiler versions before 5.6, else PIC objects from an old
11823 # archive will be linked into the output, leading to subtle bugs.
11824 postdeps_CXX='-lCstd -lCrun'
11831 case " $postdeps_CXX " in
11832 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11835 lt_prog_compiler_wl_CXX=
11836 lt_prog_compiler_pic_CXX=
11837 lt_prog_compiler_static_CXX=
11839 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11840 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11842 # C++ specific cases for pic, static, wl, etc.
11843 if test "$GXX" = yes; then
11844 lt_prog_compiler_wl_CXX='-Wl,'
11845 lt_prog_compiler_static_CXX='-static'
11849 # All AIX code is PIC.
11850 if test "$host_cpu" = ia64; then
11851 # AIX 5 now supports IA64 processor
11852 lt_prog_compiler_static_CXX='-Bstatic'
11856 # FIXME: we need at least 68020 code to build shared libraries, but
11857 # adding the `-m68020' flag to GCC prevents building anything better,
11859 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11861 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11862 # PIC is the default for these OSes.
11864 mingw* | os2* | pw32*)
11865 # This hack is so that the source file can tell whether it is being
11866 # built for inclusion in a dll (and should export symbols for example).
11867 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11869 darwin* | rhapsody*)
11870 # PIC is the default on this platform
11871 # Common symbols not allowed in MH_DYLIB files
11872 lt_prog_compiler_pic_CXX='-fno-common'
11875 # DJGPP does not support shared libraries at all
11876 lt_prog_compiler_pic_CXX=
11879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11880 # Instead, we relocate shared libraries at runtime.
11883 if test -d /usr/nec; then
11884 lt_prog_compiler_pic_CXX=-Kconform_pic
11888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11889 # not for PA HP-UX.
11894 lt_prog_compiler_pic_CXX='-fPIC'
11899 lt_prog_compiler_pic_CXX='-fPIC'
11905 # All AIX code is PIC.
11906 if test "$host_cpu" = ia64; then
11907 # AIX 5 now supports IA64 processor
11908 lt_prog_compiler_static_CXX='-Bstatic'
11910 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11914 case $cc_basename in
11916 # Green Hills C++ Compiler
11917 # _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"
11922 # PIC is the default on this platform
11923 # Common symbols not allowed in MH_DYLIB files
11924 case $cc_basename in
11926 lt_prog_compiler_pic_CXX='-qnocommon'
11927 lt_prog_compiler_wl_CXX='-Wl,'
11932 case $cc_basename in
11934 lt_prog_compiler_pic_CXX='-KPIC'
11937 # Green Hills C++ Compiler
11938 lt_prog_compiler_pic_CXX='-pic'
11944 freebsd* | kfreebsd*-gnu | dragonfly*)
11945 # FreeBSD uses GNU C++
11947 hpux9* | hpux10* | hpux11*)
11948 case $cc_basename in
11950 lt_prog_compiler_wl_CXX='-Wl,'
11951 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11952 if test "$host_cpu" != ia64; then
11953 lt_prog_compiler_pic_CXX='+Z'
11957 lt_prog_compiler_wl_CXX='-Wl,'
11958 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11964 lt_prog_compiler_pic_CXX='+Z'
11973 # This is c89, which is MS Visual C++ (no shared libs)
11974 # Anyone wants to do a port?
11976 irix5* | irix6* | nonstopux*)
11977 case $cc_basename in
11979 lt_prog_compiler_wl_CXX='-Wl,'
11980 lt_prog_compiler_static_CXX='-non_shared'
11981 # CC pic flag -KPIC is the default.
11988 case $cc_basename in
11991 lt_prog_compiler_wl_CXX='--backend -Wl,'
11992 lt_prog_compiler_pic_CXX='-fPIC'
11996 lt_prog_compiler_wl_CXX='-Wl,'
11997 lt_prog_compiler_pic_CXX='-KPIC'
11998 lt_prog_compiler_static_CXX='-static'
12001 # Portland Group C++ compiler.
12002 lt_prog_compiler_wl_CXX='-Wl,'
12003 lt_prog_compiler_pic_CXX='-fpic'
12004 lt_prog_compiler_static_CXX='-Bstatic'
12008 # Make sure the PIC flag is empty. It appears that all Alpha
12009 # Linux and Compaq Tru64 Unix objects are PIC.
12010 lt_prog_compiler_pic_CXX=
12011 lt_prog_compiler_static_CXX='-non_shared'
12022 case $cc_basename in
12024 lt_prog_compiler_pic_CXX='-W c,exportall'
12032 osf3* | osf4* | osf5*)
12033 case $cc_basename in
12035 lt_prog_compiler_wl_CXX='--backend -Wl,'
12038 # Rational C++ 2.4.1
12039 lt_prog_compiler_pic_CXX='-pic'
12042 # Digital/Compaq C++
12043 lt_prog_compiler_wl_CXX='-Wl,'
12044 # Make sure the PIC flag is empty. It appears that all Alpha
12045 # Linux and Compaq Tru64 Unix objects are PIC.
12046 lt_prog_compiler_pic_CXX=
12047 lt_prog_compiler_static_CXX='-non_shared'
12056 case $cc_basename in
12058 # Sun C++ 4.2, 5.x and Centerline C++
12059 lt_prog_compiler_pic_CXX='-KPIC'
12060 lt_prog_compiler_static_CXX='-Bstatic'
12061 lt_prog_compiler_wl_CXX='-Qoption ld '
12064 # Green Hills C++ Compiler
12065 lt_prog_compiler_pic_CXX='-PIC'
12072 case $cc_basename in
12075 lt_prog_compiler_pic_CXX='-pic'
12076 lt_prog_compiler_static_CXX='-Bstatic'
12080 lt_prog_compiler_pic_CXX='-pic'
12087 case $cc_basename in
12089 # NonStop-UX NCC 3.20
12090 lt_prog_compiler_pic_CXX='-KPIC'
12096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12097 case $cc_basename in
12099 lt_prog_compiler_wl_CXX='-Wl,'
12100 lt_prog_compiler_pic_CXX='-KPIC'
12101 lt_prog_compiler_static_CXX='-Bstatic'
12108 lt_prog_compiler_can_build_shared_CXX=no
12113 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12114 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12117 # Check to make sure the PIC flag actually works.
12119 if test -n "$lt_prog_compiler_pic_CXX"; then
12121 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12123 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 lt_prog_compiler_pic_works_CXX=no
12127 ac_outfile=conftest.$ac_objext
12128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12129 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12130 # Insert the option either (1) after the last *FLAGS variable, or
12131 # (2) before a word containing "conftest.", or (3) at the end.
12132 # Note that $ac_compile itself does not contain backslashes and begins
12133 # with a dollar sign (not a hyphen), so the echo should work correctly.
12134 # The option is referenced via a variable to avoid confusing sed.
12135 lt_compile=`echo "$ac_compile" | $SED \
12136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12138 -e 's:$: $lt_compiler_flag:'`
12139 (eval echo "\"\$as_me:12139: $lt_compile\"" >&5)
12140 (eval "$lt_compile" 2>conftest.err)
12142 cat conftest.err >&5
12143 echo "$as_me:12143: \$? = $ac_status" >&5
12144 if (exit $ac_status) && test -s "$ac_outfile"; then
12145 # The compiler can only warn and ignore the option if not recognized
12146 # So say no if there are warnings other than the usual output.
12147 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12150 lt_prog_compiler_pic_works_CXX=yes
12156 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12157 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12159 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12160 case $lt_prog_compiler_pic_CXX in
12162 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12165 lt_prog_compiler_pic_CXX=
12166 lt_prog_compiler_can_build_shared_CXX=no
12171 # For platforms which do not support PIC, -DPIC is meaningless:
12173 lt_prog_compiler_pic_CXX=
12176 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12181 # Check to make sure the static flag actually works.
12183 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12184 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12185 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12186 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 lt_prog_compiler_static_works_CXX=no
12190 save_LDFLAGS="$LDFLAGS"
12191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12192 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12194 # The linker can only warn and ignore the option if not recognized
12195 # So say no if there are warnings
12196 if test -s conftest.err; then
12197 # Append any errors to the config.log.
12198 cat conftest.err 1>&5
12199 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12201 if diff conftest.exp conftest.er2 >/dev/null; then
12202 lt_prog_compiler_static_works_CXX=yes
12205 lt_prog_compiler_static_works_CXX=yes
12209 LDFLAGS="$save_LDFLAGS"
12212 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12213 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12215 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12218 lt_prog_compiler_static_CXX=
12222 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12223 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12224 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 lt_cv_prog_compiler_c_o_CXX=no
12228 $rm -r conftest 2>/dev/null
12232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12234 lt_compiler_flag="-o out/conftest2.$ac_objext"
12235 # Insert the option either (1) after the last *FLAGS variable, or
12236 # (2) before a word containing "conftest.", or (3) at the end.
12237 # Note that $ac_compile itself does not contain backslashes and begins
12238 # with a dollar sign (not a hyphen), so the echo should work correctly.
12239 lt_compile=`echo "$ac_compile" | $SED \
12240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12242 -e 's:$: $lt_compiler_flag:'`
12243 (eval echo "\"\$as_me:12243: $lt_compile\"" >&5)
12244 (eval "$lt_compile" 2>out/conftest.err)
12246 cat out/conftest.err >&5
12247 echo "$as_me:12247: \$? = $ac_status" >&5
12248 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12250 # The compiler can only warn and ignore the option if not recognized
12251 # So say no if there are warnings
12252 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12253 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12254 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12255 lt_cv_prog_compiler_c_o_CXX=yes
12260 # SGI C++ compiler will create directory out/ii_files/ for
12261 # template instantiation
12262 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12263 $rm out/* && rmdir out
12269 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12270 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12273 hard_links="nottested"
12274 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12275 # do not overwrite the value of need_locks provided by the user
12276 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12282 ln conftest.a conftest.b 2>&5 || hard_links=no
12283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12284 { echo "$as_me:$LINENO: result: $hard_links" >&5
12285 echo "${ECHO_T}$hard_links" >&6; }
12286 if test "$hard_links" = no; then
12287 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12295 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12298 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12301 # If we're using GNU nm, then we don't want the "-C" option.
12302 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12303 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12304 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'
12306 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'
12310 export_symbols_cmds_CXX="$ltdll_cmds"
12313 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'
12316 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12320 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12321 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12322 test "$ld_shlibs_CXX" = no && can_build_shared=no
12325 # Do we need to explicitly link libc?
12327 case "x$archive_cmds_need_lc_CXX" in
12329 # Assume -lc should be added
12330 archive_cmds_need_lc_CXX=yes
12332 if test "$enable_shared" = yes && test "$GCC" = yes; then
12333 case $archive_cmds_CXX in
12335 # FIXME: we may have to deal with multi-command sequences.
12338 # Test whether the compiler implicitly links with -lc since on some
12339 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12340 # to ld, don't add -lc before -lgcc.
12341 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12342 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12347 (eval $ac_compile) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } 2>conftest.err; then
12353 libobjs=conftest.$ac_objext
12355 wl=$lt_prog_compiler_wl_CXX
12356 pic_flag=$lt_prog_compiler_pic_CXX
12362 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12363 allow_undefined_flag_CXX=
12364 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12365 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }
12370 archive_cmds_need_lc_CXX=no
12372 archive_cmds_need_lc_CXX=yes
12374 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12376 cat conftest.err 1>&5
12379 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12380 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12387 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12388 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12389 library_names_spec=
12390 libname_spec='lib$name'
12394 postuninstall_cmds=
12398 shlibpath_overrides_runpath=unknown
12400 dynamic_linker="$host_os ld.so"
12401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12402 if test "$GCC" = yes; then
12403 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12404 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12405 # if the path contains ";" then we assume it to be the separator
12406 # otherwise default to the standard path separator (i.e. ":") - it is
12407 # assumed that no part of a normal pathname contains ";" but that should
12408 # okay in the real world where ";" in dirpaths is itself problematic.
12409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12414 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12416 need_lib_prefix=unknown
12417 hardcode_into_libs=no
12419 # when you set need_version to no, make sure it does not cause -set_version
12420 # flags to be left without arguments
12421 need_version=unknown
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12427 shlibpath_var=LIBPATH
12429 # AIX 3 has no versioning support, so we append a major version to the name.
12430 soname_spec='${libname}${release}${shared_ext}$major'
12437 hardcode_into_libs=yes
12438 if test "$host_cpu" = ia64; then
12439 # AIX 5 supports IA64
12440 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12441 shlibpath_var=LD_LIBRARY_PATH
12443 # With GCC up to 2.95.x, collect2 would create an import file
12444 # for dependence libraries. The import file would start with
12445 # the line `#! .'. This would cause the generated library to
12446 # depend on `.', always an invalid library. This was fixed in
12447 # development snapshots of GCC prior to 3.0.
12449 aix4 | aix4.[01] | aix4.[01].*)
12450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12452 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12455 can_build_shared=no
12459 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12460 # soname into executable. Probably we can add versioning support to
12461 # collect2, so additional links can be useful in future.
12462 if test "$aix_use_runtimelinking" = yes; then
12463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12464 # instead of lib<name>.a to let people know that these are not
12465 # typical AIX shared libraries.
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12468 # We preserve .a as extension for shared libraries through AIX4.2
12469 # and later when we are not doing run time linking.
12470 library_names_spec='${libname}${release}.a $libname.a'
12471 soname_spec='${libname}${release}${shared_ext}$major'
12473 shlibpath_var=LIBPATH
12478 library_names_spec='$libname.ixlibrary $libname.a'
12479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12480 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'
12484 library_names_spec='${libname}${shared_ext}'
12485 dynamic_linker="$host_os ld.so"
12486 shlibpath_var=LIBRARY_PATH
12492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12493 soname_spec='${libname}${release}${shared_ext}$major'
12494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12495 shlibpath_var=LD_LIBRARY_PATH
12496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12498 # the default ld.so.conf also contains /usr/contrib/lib and
12499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12500 # libtool to hard-code these into programs
12503 cygwin* | mingw* | pw32*)
12504 version_type=windows
12509 case $GCC,$host_os in
12510 yes,cygwin* | yes,mingw* | yes,pw32*)
12511 library_names_spec='$libname.dll.a'
12512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12513 postinstall_cmds='base_file=`basename \${file}`~
12514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12515 dldir=$destdir/`dirname \$dlpath`~
12516 test -d \$dldir || mkdir -p \$dldir~
12517 $install_prog $dir/$dlname \$dldir/$dlname~
12518 chmod a+x \$dldir/$dlname'
12519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12520 dlpath=$dir/\$dldll~
12522 shlibpath_overrides_runpath=yes
12526 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12527 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12528 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12531 # MinGW DLLs use traditional 'lib' prefix
12532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12534 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12535 # It is most probably a Windows format PATH printed by
12536 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12537 # path with ; separators, and with drive letters. We can handle the
12538 # drive letters (cygwin fileutils understands them), so leave them,
12539 # especially as we might pass files found there to a mingw objdump,
12540 # which wouldn't understand a cygwinified path. Ahh.
12541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12547 # pw32 DLLs use 'pw' prefix rather than 'lib'
12548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12557 dynamic_linker='Win32 ld.exe'
12558 # FIXME: first we should search . and the directory the executable is in
12562 darwin* | rhapsody*)
12563 dynamic_linker="$host_os dyld"
12564 version_type=darwin
12567 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12568 soname_spec='${libname}${release}${major}$shared_ext'
12569 shlibpath_overrides_runpath=yes
12570 shlibpath_var=DYLD_LIBRARY_PATH
12571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12572 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12573 if test "$GCC" = yes; then
12574 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"`
12576 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12586 soname_spec='${libname}${release}${shared_ext}$major'
12587 shlibpath_var=LD_LIBRARY_PATH
12598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12599 soname_spec='${libname}${release}${shared_ext}$major'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=no
12602 hardcode_into_libs=yes
12603 dynamic_linker='GNU ld.so'
12606 freebsd* | dragonfly*)
12607 # DragonFly does not have aout. When/if they implement a new
12608 # versioning mechanism, adjust this.
12609 if test -x /usr/bin/objformat; then
12610 objformat=`/usr/bin/objformat`
12613 freebsd[123]*) objformat=aout ;;
12614 *) objformat=elf ;;
12617 version_type=freebsd-$objformat
12618 case $version_type in
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12629 shlibpath_var=LD_LIBRARY_PATH
12632 shlibpath_overrides_runpath=yes
12634 freebsd3.[01]* | freebsdelf3.[01]*)
12635 shlibpath_overrides_runpath=yes
12636 hardcode_into_libs=yes
12638 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12639 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12640 shlibpath_overrides_runpath=no
12641 hardcode_into_libs=yes
12643 freebsd*) # from 4.6 on
12644 shlibpath_overrides_runpath=yes
12645 hardcode_into_libs=yes
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12655 soname_spec='${libname}${release}${shared_ext}$major'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 hardcode_into_libs=yes
12660 hpux9* | hpux10* | hpux11*)
12661 # Give a soname corresponding to the major version so that dld.sl refuses to
12662 # link against other versions.
12669 hardcode_into_libs=yes
12670 dynamic_linker="$host_os dld.so"
12671 shlibpath_var=LD_LIBRARY_PATH
12672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12674 soname_spec='${libname}${release}${shared_ext}$major'
12675 if test "X$HPUX_IA64_MODE" = X32; then
12676 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12678 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12684 hardcode_into_libs=yes
12685 dynamic_linker="$host_os dld.sl"
12686 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12687 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689 soname_spec='${libname}${release}${shared_ext}$major'
12690 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12695 dynamic_linker="$host_os dld.sl"
12696 shlibpath_var=SHLIB_PATH
12697 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12699 soname_spec='${libname}${release}${shared_ext}$major'
12702 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12703 postinstall_cmds='chmod 555 $lib'
12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12711 soname_spec='${libname}${release}${shared_ext}$major'
12712 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12713 shlibpath_var=LD_LIBRARY_PATH
12714 shlibpath_overrides_runpath=no
12715 hardcode_into_libs=yes
12718 irix5* | irix6* | nonstopux*)
12720 nonstopux*) version_type=nonstopux ;;
12722 if test "$lt_cv_prog_gnu_ld" = yes; then
12730 soname_spec='${libname}${release}${shared_ext}$major'
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12733 irix5* | nonstopux*)
12734 libsuff= shlibsuff=
12737 case $LD in # libtool.m4 will add one of these switches to LD
12738 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12739 libsuff= shlibsuff= libmagic=32-bit;;
12740 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12741 libsuff=32 shlibsuff=N32 libmagic=N32;;
12742 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12743 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12744 *) libsuff= shlibsuff= libmagic=never-match;;
12748 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12749 shlibpath_overrides_runpath=no
12750 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12751 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12752 hardcode_into_libs=yes
12755 # No shared lib support for Linux oldld, aout, or coff.
12756 linux*oldld* | linux*aout* | linux*coff*)
12760 # This must be Linux ELF.
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12766 soname_spec='${libname}${release}${shared_ext}$major'
12767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12768 shlibpath_var=LD_LIBRARY_PATH
12769 shlibpath_overrides_runpath=no
12770 # This implies no fast_install, which is unacceptable.
12771 # Some rework will be needed to allow for fast_install
12772 # before this can be enabled.
12773 hardcode_into_libs=yes
12775 # find out which ABI we are using
12777 case "$host_cpu" in
12778 x86_64*|s390x*|powerpc64*)
12779 echo '#line 12779 "configure"' > conftest.$ac_ext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781 (eval $ac_compile) 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; then
12785 case `/usr/bin/file conftest.$ac_objext` in
12788 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12796 # Append ld.so.conf contents to the search path
12797 if test -f /etc/ld.so.conf; then
12798 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' ' '`
12799 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12802 # We used to test for /lib/ld.so.1 and disable shared libraries on
12803 # powerpc, because MkLinux only supported shared libraries with the
12804 # GNU dynamic linker. Since this was broken with cross compilers,
12805 # most powerpc-linux boxes support dynamic linking these days and
12806 # people can always --disable-shared, the test was removed, and we
12807 # assume the GNU/Linux dynamic linker is in use.
12808 dynamic_linker='GNU/Linux ld.so'
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12816 soname_spec='${libname}${release}${shared_ext}$major'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=no
12819 hardcode_into_libs=yes
12820 dynamic_linker='GNU ld.so'
12827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12830 dynamic_linker='NetBSD (a.out) ld.so'
12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12833 soname_spec='${libname}${release}${shared_ext}$major'
12834 dynamic_linker='NetBSD ld.elf_so'
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=yes
12838 hardcode_into_libs=yes
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=yes
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 shlibpath_overrides_runpath=yes
12860 sys_lib_dlsearch_path_spec="/usr/lib"
12862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12865 *) need_version=no ;;
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12872 openbsd2.[89] | openbsd2.[89].*)
12873 shlibpath_overrides_runpath=no
12876 shlibpath_overrides_runpath=yes
12880 shlibpath_overrides_runpath=yes
12885 libname_spec='$name'
12888 library_names_spec='$libname${shared_ext} $libname.a'
12889 dynamic_linker='OS/2 ld.exe'
12890 shlibpath_var=LIBPATH
12893 osf3* | osf4* | osf5*)
12897 soname_spec='${libname}${release}${shared_ext}$major'
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12909 soname_spec='${libname}${release}${shared_ext}$major'
12910 shlibpath_var=LD_LIBRARY_PATH
12911 shlibpath_overrides_runpath=yes
12912 hardcode_into_libs=yes
12913 # ldd complains unless libraries are executable
12914 postinstall_cmds='chmod +x $lib'
12919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12921 shlibpath_var=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath=yes
12923 if test "$with_gnu_ld" = yes; then
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 shlibpath_var=LD_LIBRARY_PATH
12934 case $host_vendor in
12936 shlibpath_overrides_runpath=no
12938 export_dynamic_flag_spec='${wl}-Blargedynsym'
12939 runpath_var=LD_RUN_PATH
12947 shlibpath_overrides_runpath=no
12948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12954 if test -d /usr/nec ;then
12956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12957 soname_spec='$libname${shared_ext}.$major'
12958 shlibpath_var=LD_LIBRARY_PATH
12962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12963 version_type=freebsd-elf
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12967 soname_spec='${libname}${release}${shared_ext}$major'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 hardcode_into_libs=yes
12970 if test "$with_gnu_ld" = yes; then
12971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12972 shlibpath_overrides_runpath=no
12974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12975 shlibpath_overrides_runpath=yes
12978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12982 sys_lib_dlsearch_path_spec='/usr/lib'
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988 soname_spec='${libname}${release}${shared_ext}$major'
12989 shlibpath_var=LD_LIBRARY_PATH
12996 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12997 echo "${ECHO_T}$dynamic_linker" >&6; }
12998 test "$dynamic_linker" = no && can_build_shared=no
13000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13001 if test "$GCC" = yes; then
13002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13005 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13006 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13007 hardcode_action_CXX=
13008 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13009 test -n "$runpath_var_CXX" || \
13010 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13012 # We can hardcode non-existant directories.
13013 if test "$hardcode_direct_CXX" != no &&
13014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13015 # have to relink, otherwise we might link with an installed library
13016 # when we should be linking with a yet-to-be-installed one
13017 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13018 test "$hardcode_minus_L_CXX" != no; then
13019 # Linking always hardcodes the temporary library directory.
13020 hardcode_action_CXX=relink
13022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13023 hardcode_action_CXX=immediate
13026 # We cannot hardcode anything, or else we can only hardcode existing
13028 hardcode_action_CXX=unsupported
13030 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13031 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13033 if test "$hardcode_action_CXX" = relink; then
13034 # Fast installation is not supported
13035 enable_fast_install=no
13036 elif test "$shlibpath_overrides_runpath" = yes ||
13037 test "$enable_shared" = no; then
13038 # Fast installation is not necessary
13039 enable_fast_install=needless
13043 # The else clause should only fire when bootstrapping the
13044 # libtool distribution, otherwise you forgot to ship ltmain.sh
13045 # with your package, and you will get complaints that there are
13046 # no rules to generate ltmain.sh.
13047 if test -f "$ltmain"; then
13048 # See if we are running on zsh, and set the options which allow our commands through
13049 # without removal of \ escapes.
13050 if test -n "${ZSH_VERSION+set}" ; then
13051 setopt NO_GLOB_SUBST
13053 # Now quote all the things that may contain metacharacters while being
13054 # careful not to overquote the AC_SUBSTed values. We take copies of the
13055 # variables and quote the copies for generation of the libtool script.
13056 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13058 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13059 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13060 deplibs_check_method reload_flag reload_cmds need_locks \
13061 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13062 lt_cv_sys_global_symbol_to_c_name_address \
13063 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13064 old_postinstall_cmds old_postuninstall_cmds \
13068 lt_prog_compiler_wl_CXX \
13069 lt_prog_compiler_pic_CXX \
13070 lt_prog_compiler_static_CXX \
13071 lt_prog_compiler_no_builtin_flag_CXX \
13072 export_dynamic_flag_spec_CXX \
13073 thread_safe_flag_spec_CXX \
13074 whole_archive_flag_spec_CXX \
13075 enable_shared_with_static_runtimes_CXX \
13076 old_archive_cmds_CXX \
13077 old_archive_from_new_cmds_CXX \
13078 predep_objects_CXX \
13079 postdep_objects_CXX \
13082 compiler_lib_search_path_CXX \
13084 archive_expsym_cmds_CXX \
13085 postinstall_cmds_CXX \
13086 postuninstall_cmds_CXX \
13087 old_archive_from_expsyms_cmds_CXX \
13088 allow_undefined_flag_CXX \
13089 no_undefined_flag_CXX \
13090 export_symbols_cmds_CXX \
13091 hardcode_libdir_flag_spec_CXX \
13092 hardcode_libdir_flag_spec_ld_CXX \
13093 hardcode_libdir_separator_CXX \
13094 hardcode_automatic_CXX \
13096 module_expsym_cmds_CXX \
13097 lt_cv_prog_compiler_c_o_CXX \
13098 exclude_expsyms_CXX \
13099 include_expsyms_CXX; do
13102 old_archive_cmds_CXX | \
13103 old_archive_from_new_cmds_CXX | \
13104 archive_cmds_CXX | \
13105 archive_expsym_cmds_CXX | \
13106 module_cmds_CXX | \
13107 module_expsym_cmds_CXX | \
13108 old_archive_from_expsyms_cmds_CXX | \
13109 export_symbols_cmds_CXX | \
13110 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13111 postinstall_cmds | postuninstall_cmds | \
13112 old_postinstall_cmds | old_postuninstall_cmds | \
13113 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13114 # Double-quote double-evaled strings.
13115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13124 *'\$0 --fallback-echo"')
13125 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13131 cat <<__EOF__ >> "$cfgfile"
13132 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13136 # Shell to use when invoking shell scripts.
13139 # Whether or not to build shared libraries.
13140 build_libtool_libs=$enable_shared
13142 # Whether or not to build static libraries.
13143 build_old_libs=$enable_static
13145 # Whether or not to add -lc for building shared libraries.
13146 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13148 # Whether or not to disallow shared libs when runtime libs are static
13149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13151 # Whether or not to optimize for fast installation.
13152 fast_install=$enable_fast_install
13155 host_alias=$host_alias
13159 # The build system.
13160 build_alias=$build_alias
13164 # An echo program that does not interpret backslashes.
13169 AR_FLAGS=$lt_AR_FLAGS
13174 # LTCC compiler flags.
13175 LTCFLAGS=$lt_LTCFLAGS
13177 # A language-specific compiler.
13178 CC=$lt_compiler_CXX
13180 # Is the compiler the GNU C compiler?
13183 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13184 gcc_ver=\`gcc -dumpversion\`
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=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13321 # Dependencies to place after the objects being linked to create a
13323 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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'
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'
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'
14202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14203 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14206 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14207 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14212 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14216 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14217 *** create shared libraries on Solaris systems. Therefore, libtool
14218 *** is disabling shared libraries support. We urge you to upgrade GNU
14219 *** binutils to release 2.9.1 or newer. Another option is to modify
14220 *** your PATH or compiler configuration so that the native linker is
14221 *** used, and then restart.
14224 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14225 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14226 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14233 case `$LD -v 2>&1` in
14234 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14238 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14239 *** reliably create shared libraries on SCO systems. Therefore, libtool
14240 *** is disabling shared libraries support. We urge you to upgrade GNU
14241 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14242 *** your PATH or compiler configuration so that the native linker is
14243 *** used, and then restart.
14248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14251 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14260 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14262 hardcode_direct_F77=yes
14263 hardcode_shlibpath_var_F77=no
14267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14268 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14269 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14276 if test "$ld_shlibs_F77" = no; then
14278 hardcode_libdir_flag_spec_F77=
14279 export_dynamic_flag_spec_F77=
14280 whole_archive_flag_spec_F77=
14283 # PORTME fill in a description of your system's linker (not GNU ld)
14286 allow_undefined_flag_F77=unsupported
14287 always_export_symbols_F77=yes
14288 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'
14289 # Note: this linker hardcodes the directories in LIBPATH if there
14290 # are no directories specified by -L.
14291 hardcode_minus_L_F77=yes
14292 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14293 # Neither direct hardcoding nor static linking is supported with a
14295 hardcode_direct_F77=unsupported
14300 if test "$host_cpu" = ia64; then
14301 # On IA64, the linker does run time linking by default, so we don't
14302 # have to do anything special.
14303 aix_use_runtimelinking=no
14304 exp_sym_flag='-Bexport'
14307 # If we're using GNU nm, then we don't want the "-C" option.
14308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14309 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14310 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'
14312 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'
14314 aix_use_runtimelinking=no
14316 # Test if we are trying to use run time linking or normal
14317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14318 # need to do runtime linking.
14319 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14320 for ld_flag in $LDFLAGS; do
14321 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14322 aix_use_runtimelinking=yes
14329 exp_sym_flag='-bexport'
14330 no_entry_flag='-bnoentry'
14333 # When large executables or shared objects are built, AIX ld can
14334 # have problems creating the table of contents. If linking a library
14335 # or program results in "error TOC overflow" add -mminimal-toc to
14336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14339 archive_cmds_F77=''
14340 hardcode_direct_F77=yes
14341 hardcode_libdir_separator_F77=':'
14342 link_all_deplibs_F77=yes
14344 if test "$GCC" = yes; then
14345 case $host_os in aix4.[012]|aix4.[012].*)
14346 # We only want to do this on AIX 4.2 and lower, the check
14347 # below for broken collect2 doesn't work under 4.3+
14348 collect2name=`${CC} -print-prog-name=collect2`
14349 if test -f "$collect2name" && \
14350 strings "$collect2name" | grep resolve_lib_name >/dev/null
14352 # We have reworked collect2
14353 hardcode_direct_F77=yes
14355 # We have old collect2
14356 hardcode_direct_F77=unsupported
14357 # It fails to find uninstalled libraries when the uninstalled
14358 # path is not listed in the libpath. Setting hardcode_minus_L
14359 # to unsupported forces relinking
14360 hardcode_minus_L_F77=yes
14361 hardcode_libdir_flag_spec_F77='-L$libdir'
14362 hardcode_libdir_separator_F77=
14366 shared_flag='-shared'
14367 if test "$aix_use_runtimelinking" = yes; then
14368 shared_flag="$shared_flag "'${wl}-G'
14372 if test "$host_cpu" = ia64; then
14373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14374 # chokes on -Wl,-G. The following line is correct:
14377 if test "$aix_use_runtimelinking" = yes; then
14378 shared_flag='${wl}-G'
14380 shared_flag='${wl}-bM:SRE'
14385 # It seems that -bexpall does not export symbols beginning with
14386 # underscore (_), so it is better to generate a list of symbols to export.
14387 always_export_symbols_F77=yes
14388 if test "$aix_use_runtimelinking" = yes; then
14389 # Warning - without using the other runtime loading flags (-brtl),
14390 # -berok will link without error, but may produce a broken library.
14391 allow_undefined_flag_F77='-berok'
14392 # Determine the default libpath from the value encoded in an empty executable.
14393 cat >conftest.$ac_ext <<_ACEOF
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (ac_try="$ac_link"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_link") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } && {
14412 test -z "$ac_f77_werror_flag" ||
14413 test ! -s conftest.err
14414 } && test -s conftest$ac_exeext &&
14415 $as_test_x conftest$ac_exeext; then
14417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14419 # Check for a 64-bit object if we didn't find anything.
14420 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; }
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14430 conftest$ac_exeext conftest.$ac_ext
14431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14433 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14434 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"
14436 if test "$host_cpu" = ia64; then
14437 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14438 allow_undefined_flag_F77="-z nodefs"
14439 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"
14441 # Determine the default libpath from the value encoded in an empty executable.
14442 cat >conftest.$ac_ext <<_ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (ac_try="$ac_link"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_link") 2>conftest.er1
14456 grep -v '^ *+' conftest.er1 >conftest.err
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } && {
14461 test -z "$ac_f77_werror_flag" ||
14462 test ! -s conftest.err
14463 } && test -s conftest$ac_exeext &&
14464 $as_test_x conftest$ac_exeext; then
14466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14468 # Check for a 64-bit object if we didn't find anything.
14469 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; }
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14479 conftest$ac_exeext conftest.$ac_ext
14480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14482 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14483 # Warning - without using the other run time loading flags,
14484 # -berok will link without error, but may produce a broken library.
14485 no_undefined_flag_F77=' ${wl}-bernotok'
14486 allow_undefined_flag_F77=' ${wl}-berok'
14487 # Exported symbols can be pulled into shared objects from archives
14488 whole_archive_flag_spec_F77='$convenience'
14489 archive_cmds_need_lc_F77=yes
14490 # This is similar to how AIX traditionally builds its shared libraries.
14491 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'
14497 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)'
14498 hardcode_libdir_flag_spec_F77='-L$libdir'
14499 hardcode_minus_L_F77=yes
14500 # see comment about different semantics on the GNU ld section
14505 export_dynamic_flag_spec_F77=-rdynamic
14508 cygwin* | mingw* | pw32*)
14509 # When not using gcc, we currently assume that we are using
14510 # Microsoft Visual C++.
14511 # hardcode_libdir_flag_spec is actually meaningless, as there is
14512 # no search path for DLLs.
14513 hardcode_libdir_flag_spec_F77=' '
14514 allow_undefined_flag_F77=unsupported
14515 # Tell ltmain to make .lib files, not .a files.
14517 # Tell ltmain to make .dll files, not .so files.
14519 # FIXME: Setting linknames here is a bad hack.
14520 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14521 # The linker will automatically build a .lib file if we build a DLL.
14522 old_archive_From_new_cmds_F77='true'
14523 # FIXME: Should let the user specify the lib program.
14524 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14525 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14526 enable_shared_with_static_runtimes_F77=yes
14529 darwin* | rhapsody*)
14531 rhapsody* | darwin1.[012])
14532 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14535 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14536 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14538 case ${MACOSX_DEPLOYMENT_TARGET} in
14540 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14543 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14549 archive_cmds_need_lc_F77=no
14550 hardcode_direct_F77=no
14551 hardcode_automatic_F77=yes
14552 hardcode_shlibpath_var_F77=unsupported
14553 whole_archive_flag_spec_F77=''
14554 link_all_deplibs_F77=yes
14555 if test "$GCC" = yes ; then
14556 output_verbose_link_cmd='echo'
14557 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14558 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14559 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14560 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}'
14561 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}'
14563 case $cc_basename in
14565 output_verbose_link_cmd='echo'
14566 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14567 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14568 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14569 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}'
14570 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}'
14580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14581 hardcode_libdir_flag_spec_F77='-L$libdir'
14582 hardcode_shlibpath_var_F77=no
14589 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14590 # support. Future versions do this automatically, but an explicit c++rt0.o
14591 # does not break anything, and helps significantly (at the cost of a little
14594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14595 hardcode_libdir_flag_spec_F77='-R$libdir'
14596 hardcode_direct_F77=yes
14597 hardcode_shlibpath_var_F77=no
14600 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14602 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14603 hardcode_direct_F77=yes
14604 hardcode_minus_L_F77=yes
14605 hardcode_shlibpath_var_F77=no
14608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14609 freebsd* | kfreebsd*-gnu | dragonfly*)
14610 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14611 hardcode_libdir_flag_spec_F77='-R$libdir'
14612 hardcode_direct_F77=yes
14613 hardcode_shlibpath_var_F77=no
14617 if test "$GCC" = yes; then
14618 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'
14620 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'
14622 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14623 hardcode_libdir_separator_F77=:
14624 hardcode_direct_F77=yes
14626 # hardcode_minus_L: Not really in the search PATH,
14627 # but as the default location of the library.
14628 hardcode_minus_L_F77=yes
14629 export_dynamic_flag_spec_F77='${wl}-E'
14633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14634 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14636 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14638 if test "$with_gnu_ld" = no; then
14639 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14640 hardcode_libdir_separator_F77=:
14642 hardcode_direct_F77=yes
14643 export_dynamic_flag_spec_F77='${wl}-E'
14645 # hardcode_minus_L: Not really in the search PATH,
14646 # but as the default location of the library.
14647 hardcode_minus_L_F77=yes
14652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14655 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14658 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14661 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14667 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14670 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14673 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14677 if test "$with_gnu_ld" = no; then
14678 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14679 hardcode_libdir_separator_F77=:
14683 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14684 hardcode_direct_F77=no
14685 hardcode_shlibpath_var_F77=no
14688 hardcode_direct_F77=yes
14689 export_dynamic_flag_spec_F77='${wl}-E'
14691 # hardcode_minus_L: Not really in the search PATH,
14692 # but as the default location of the library.
14693 hardcode_minus_L_F77=yes
14699 irix5* | irix6* | nonstopux*)
14700 if test "$GCC" = yes; then
14701 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'
14703 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'
14704 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14706 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14707 hardcode_libdir_separator_F77=:
14708 link_all_deplibs_F77=yes
14712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14713 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14715 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14717 hardcode_libdir_flag_spec_F77='-R$libdir'
14718 hardcode_direct_F77=yes
14719 hardcode_shlibpath_var_F77=no
14723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14724 hardcode_direct_F77=yes
14725 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14726 hardcode_libdir_separator_F77=:
14727 hardcode_shlibpath_var_F77=no
14731 hardcode_direct_F77=yes
14732 hardcode_shlibpath_var_F77=no
14733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14734 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14735 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14736 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14737 export_dynamic_flag_spec_F77='${wl}-E'
14740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14741 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14742 hardcode_libdir_flag_spec_F77='-R$libdir'
14745 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14746 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14753 hardcode_libdir_flag_spec_F77='-L$libdir'
14754 hardcode_minus_L_F77=yes
14755 allow_undefined_flag_F77=unsupported
14756 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'
14757 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14761 if test "$GCC" = yes; then
14762 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14763 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'
14765 allow_undefined_flag_F77=' -expect_unresolved \*'
14766 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'
14768 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14769 hardcode_libdir_separator_F77=:
14772 osf4* | osf5*) # as osf3* with the addition of -msym flag
14773 if test "$GCC" = yes; then
14774 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14775 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'
14776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14778 allow_undefined_flag_F77=' -expect_unresolved \*'
14779 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'
14780 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~
14781 $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'
14783 # Both c and cxx compiler support -rpath directly
14784 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14786 hardcode_libdir_separator_F77=:
14790 no_undefined_flag_F77=' -z text'
14791 if test "$GCC" = yes; then
14793 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14794 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14795 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14798 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14799 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14800 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14802 hardcode_libdir_flag_spec_F77='-R$libdir'
14803 hardcode_shlibpath_var_F77=no
14805 solaris2.[0-5] | solaris2.[0-5].*) ;;
14807 # The compiler driver will combine linker options so we
14808 # cannot just pass the convience library names through
14809 # without $wl, iff we do not link with $LD.
14810 # Luckily, gcc supports the same syntax we need for Sun Studio.
14811 # Supported since Solaris 2.6 (maybe 2.5.1?)
14814 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14816 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' ;;
14819 link_all_deplibs_F77=yes
14823 if test "x$host_vendor" = xsequent; then
14824 # Use $CC to link under sequent, because it throws in some extra .o
14825 # files that make .init and .fini sections work.
14826 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14830 hardcode_libdir_flag_spec_F77='-L$libdir'
14831 hardcode_direct_F77=yes
14832 hardcode_minus_L_F77=yes
14833 hardcode_shlibpath_var_F77=no
14837 case $host_vendor in
14839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14840 hardcode_direct_F77=yes # is this really true???
14843 ## LD is ld it makes a PLAMLIB
14844 ## CC just makes a GrossModule.
14845 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14846 reload_cmds_F77='$CC -r -o $output$reload_objs'
14847 hardcode_direct_F77=no
14850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14851 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14854 runpath_var='LD_RUN_PATH'
14855 hardcode_shlibpath_var_F77=no
14859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14860 hardcode_shlibpath_var_F77=no
14861 export_dynamic_flag_spec_F77='-Bexport'
14865 if test -d /usr/nec; then
14866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14867 hardcode_shlibpath_var_F77=no
14868 runpath_var=LD_RUN_PATH
14869 hardcode_runpath_var=yes
14874 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14875 no_undefined_flag_F77='${wl}-z,text'
14876 archive_cmds_need_lc_F77=no
14877 hardcode_shlibpath_var_F77=no
14878 runpath_var='LD_RUN_PATH'
14880 if test "$GCC" = yes; then
14881 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14882 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14884 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14885 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14889 sysv5* | sco3.2v5* | sco5v6*)
14890 # Note: We can NOT use -z defs as we might desire, because we do not
14891 # link with -lc, and that would cause any symbols used from libc to
14892 # always be unresolved, which means just about no library would
14893 # ever link correctly. If we're not using GNU ld we use -z text
14894 # though, which does catch some bad symbols but isn't as heavy-handed
14896 no_undefined_flag_F77='${wl}-z,text'
14897 allow_undefined_flag_F77='${wl}-z,nodefs'
14898 archive_cmds_need_lc_F77=no
14899 hardcode_shlibpath_var_F77=no
14900 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14901 hardcode_libdir_separator_F77=':'
14902 link_all_deplibs_F77=yes
14903 export_dynamic_flag_spec_F77='${wl}-Bexport'
14904 runpath_var='LD_RUN_PATH'
14906 if test "$GCC" = yes; then
14907 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14908 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14910 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14911 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14917 hardcode_libdir_flag_spec_F77='-L$libdir'
14918 hardcode_shlibpath_var_F77=no
14927 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14928 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14929 test "$ld_shlibs_F77" = no && can_build_shared=no
14932 # Do we need to explicitly link libc?
14934 case "x$archive_cmds_need_lc_F77" in
14936 # Assume -lc should be added
14937 archive_cmds_need_lc_F77=yes
14939 if test "$enable_shared" = yes && test "$GCC" = yes; then
14940 case $archive_cmds_F77 in
14942 # FIXME: we may have to deal with multi-command sequences.
14945 # Test whether the compiler implicitly links with -lc since on some
14946 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14947 # to ld, don't add -lc before -lgcc.
14948 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14949 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14951 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14954 (eval $ac_compile) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } 2>conftest.err; then
14960 libobjs=conftest.$ac_objext
14962 wl=$lt_prog_compiler_wl_F77
14963 pic_flag=$lt_prog_compiler_pic_F77
14969 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14970 allow_undefined_flag_F77=
14971 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14972 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }
14977 archive_cmds_need_lc_F77=no
14979 archive_cmds_need_lc_F77=yes
14981 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14983 cat conftest.err 1>&5
14986 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14987 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14994 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14995 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14996 library_names_spec=
14997 libname_spec='lib$name'
15001 postuninstall_cmds=
15005 shlibpath_overrides_runpath=unknown
15007 dynamic_linker="$host_os ld.so"
15008 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15009 if test "$GCC" = yes; then
15010 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15011 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15012 # if the path contains ";" then we assume it to be the separator
15013 # otherwise default to the standard path separator (i.e. ":") - it is
15014 # assumed that no part of a normal pathname contains ";" but that should
15015 # okay in the real world where ";" in dirpaths is itself problematic.
15016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15023 need_lib_prefix=unknown
15024 hardcode_into_libs=no
15026 # when you set need_version to no, make sure it does not cause -set_version
15027 # flags to be left without arguments
15028 need_version=unknown
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15034 shlibpath_var=LIBPATH
15036 # AIX 3 has no versioning support, so we append a major version to the name.
15037 soname_spec='${libname}${release}${shared_ext}$major'
15044 hardcode_into_libs=yes
15045 if test "$host_cpu" = ia64; then
15046 # AIX 5 supports IA64
15047 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15048 shlibpath_var=LD_LIBRARY_PATH
15050 # With GCC up to 2.95.x, collect2 would create an import file
15051 # for dependence libraries. The import file would start with
15052 # the line `#! .'. This would cause the generated library to
15053 # depend on `.', always an invalid library. This was fixed in
15054 # development snapshots of GCC prior to 3.0.
15056 aix4 | aix4.[01] | aix4.[01].*)
15057 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15059 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15062 can_build_shared=no
15066 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15067 # soname into executable. Probably we can add versioning support to
15068 # collect2, so additional links can be useful in future.
15069 if test "$aix_use_runtimelinking" = yes; then
15070 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15071 # instead of lib<name>.a to let people know that these are not
15072 # typical AIX shared libraries.
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075 # We preserve .a as extension for shared libraries through AIX4.2
15076 # and later when we are not doing run time linking.
15077 library_names_spec='${libname}${release}.a $libname.a'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15080 shlibpath_var=LIBPATH
15085 library_names_spec='$libname.ixlibrary $libname.a'
15086 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15087 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'
15091 library_names_spec='${libname}${shared_ext}'
15092 dynamic_linker="$host_os ld.so"
15093 shlibpath_var=LIBRARY_PATH
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15104 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15105 # the default ld.so.conf also contains /usr/contrib/lib and
15106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15107 # libtool to hard-code these into programs
15110 cygwin* | mingw* | pw32*)
15111 version_type=windows
15116 case $GCC,$host_os in
15117 yes,cygwin* | yes,mingw* | yes,pw32*)
15118 library_names_spec='$libname.dll.a'
15119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15120 postinstall_cmds='base_file=`basename \${file}`~
15121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15122 dldir=$destdir/`dirname \$dlpath`~
15123 test -d \$dldir || mkdir -p \$dldir~
15124 $install_prog $dir/$dlname \$dldir/$dlname~
15125 chmod a+x \$dldir/$dlname'
15126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15127 dlpath=$dir/\$dldll~
15129 shlibpath_overrides_runpath=yes
15133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15135 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15138 # MinGW DLLs use traditional 'lib' prefix
15139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15141 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15142 # It is most probably a Windows format PATH printed by
15143 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15144 # path with ; separators, and with drive letters. We can handle the
15145 # drive letters (cygwin fileutils understands them), so leave them,
15146 # especially as we might pass files found there to a mingw objdump,
15147 # which wouldn't understand a cygwinified path. Ahh.
15148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15154 # pw32 DLLs use 'pw' prefix rather than 'lib'
15155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15164 dynamic_linker='Win32 ld.exe'
15165 # FIXME: first we should search . and the directory the executable is in
15169 darwin* | rhapsody*)
15170 dynamic_linker="$host_os dyld"
15171 version_type=darwin
15174 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15175 soname_spec='${libname}${release}${major}$shared_ext'
15176 shlibpath_overrides_runpath=yes
15177 shlibpath_var=DYLD_LIBRARY_PATH
15178 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15179 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15180 if test "$GCC" = yes; then
15181 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"`
15183 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15185 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 shlibpath_var=LD_LIBRARY_PATH
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 shlibpath_overrides_runpath=no
15209 hardcode_into_libs=yes
15210 dynamic_linker='GNU ld.so'
15213 freebsd* | dragonfly*)
15214 # DragonFly does not have aout. When/if they implement a new
15215 # versioning mechanism, adjust this.
15216 if test -x /usr/bin/objformat; then
15217 objformat=`/usr/bin/objformat`
15220 freebsd[123]*) objformat=aout ;;
15221 *) objformat=elf ;;
15224 version_type=freebsd-$objformat
15225 case $version_type in
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15236 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=yes
15241 freebsd3.[01]* | freebsdelf3.[01]*)
15242 shlibpath_overrides_runpath=yes
15243 hardcode_into_libs=yes
15245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15247 shlibpath_overrides_runpath=no
15248 hardcode_into_libs=yes
15250 freebsd*) # from 4.6 on
15251 shlibpath_overrides_runpath=yes
15252 hardcode_into_libs=yes
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15262 soname_spec='${libname}${release}${shared_ext}$major'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 hardcode_into_libs=yes
15267 hpux9* | hpux10* | hpux11*)
15268 # Give a soname corresponding to the major version so that dld.sl refuses to
15269 # link against other versions.
15276 hardcode_into_libs=yes
15277 dynamic_linker="$host_os dld.so"
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15282 if test "X$HPUX_IA64_MODE" = X32; then
15283 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15285 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15291 hardcode_into_libs=yes
15292 dynamic_linker="$host_os dld.sl"
15293 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15302 dynamic_linker="$host_os dld.sl"
15303 shlibpath_var=SHLIB_PATH
15304 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306 soname_spec='${libname}${release}${shared_ext}$major'
15309 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15310 postinstall_cmds='chmod 555 $lib'
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=no
15322 hardcode_into_libs=yes
15325 irix5* | irix6* | nonstopux*)
15327 nonstopux*) version_type=nonstopux ;;
15329 if test "$lt_cv_prog_gnu_ld" = yes; then
15337 soname_spec='${libname}${release}${shared_ext}$major'
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15340 irix5* | nonstopux*)
15341 libsuff= shlibsuff=
15344 case $LD in # libtool.m4 will add one of these switches to LD
15345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15346 libsuff= shlibsuff= libmagic=32-bit;;
15347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15348 libsuff=32 shlibsuff=N32 libmagic=N32;;
15349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15350 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15351 *) libsuff= shlibsuff= libmagic=never-match;;
15355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15356 shlibpath_overrides_runpath=no
15357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15359 hardcode_into_libs=yes
15362 # No shared lib support for Linux oldld, aout, or coff.
15363 linux*oldld* | linux*aout* | linux*coff*)
15367 # This must be Linux ELF.
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 shlibpath_overrides_runpath=no
15377 # This implies no fast_install, which is unacceptable.
15378 # Some rework will be needed to allow for fast_install
15379 # before this can be enabled.
15380 hardcode_into_libs=yes
15382 # find out which ABI we are using
15384 case "$host_cpu" in
15385 x86_64*|s390x*|powerpc64*)
15386 echo '#line 15386 "configure"' > conftest.$ac_ext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388 (eval $ac_compile) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; then
15392 case `/usr/bin/file conftest.$ac_objext` in
15395 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15403 # Append ld.so.conf contents to the search path
15404 if test -f /etc/ld.so.conf; then
15405 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' ' '`
15406 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15409 # We used to test for /lib/ld.so.1 and disable shared libraries on
15410 # powerpc, because MkLinux only supported shared libraries with the
15411 # GNU dynamic linker. Since this was broken with cross compilers,
15412 # most powerpc-linux boxes support dynamic linking these days and
15413 # people can always --disable-shared, the test was removed, and we
15414 # assume the GNU/Linux dynamic linker is in use.
15415 dynamic_linker='GNU/Linux ld.so'
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=no
15426 hardcode_into_libs=yes
15427 dynamic_linker='GNU ld.so'
15434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15437 dynamic_linker='NetBSD (a.out) ld.so'
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15441 dynamic_linker='NetBSD ld.elf_so'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 shlibpath_overrides_runpath=yes
15445 hardcode_into_libs=yes
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 shlibpath_overrides_runpath=yes
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 shlibpath_var=LD_LIBRARY_PATH
15462 shlibpath_overrides_runpath=yes
15467 sys_lib_dlsearch_path_spec="/usr/lib"
15469 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15471 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15472 *) need_version=no ;;
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15479 openbsd2.[89] | openbsd2.[89].*)
15480 shlibpath_overrides_runpath=no
15483 shlibpath_overrides_runpath=yes
15487 shlibpath_overrides_runpath=yes
15492 libname_spec='$name'
15495 library_names_spec='$libname${shared_ext} $libname.a'
15496 dynamic_linker='OS/2 ld.exe'
15497 shlibpath_var=LIBPATH
15500 osf3* | osf4* | osf5*)
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15508 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 shlibpath_overrides_runpath=yes
15519 hardcode_into_libs=yes
15520 # ldd complains unless libraries are executable
15521 postinstall_cmds='chmod +x $lib'
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=yes
15530 if test "$with_gnu_ld" = yes; then
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 case $host_vendor in
15543 shlibpath_overrides_runpath=no
15545 export_dynamic_flag_spec='${wl}-Blargedynsym'
15546 runpath_var=LD_RUN_PATH
15554 shlibpath_overrides_runpath=no
15555 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15561 if test -d /usr/nec ;then
15563 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15564 soname_spec='$libname${shared_ext}.$major'
15565 shlibpath_var=LD_LIBRARY_PATH
15569 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15570 version_type=freebsd-elf
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 hardcode_into_libs=yes
15577 if test "$with_gnu_ld" = yes; then
15578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15579 shlibpath_overrides_runpath=no
15581 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15582 shlibpath_overrides_runpath=yes
15585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15589 sys_lib_dlsearch_path_spec='/usr/lib'
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 shlibpath_var=LD_LIBRARY_PATH
15603 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15604 echo "${ECHO_T}$dynamic_linker" >&6; }
15605 test "$dynamic_linker" = no && can_build_shared=no
15607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15608 if test "$GCC" = yes; then
15609 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15612 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15614 hardcode_action_F77=
15615 if test -n "$hardcode_libdir_flag_spec_F77" || \
15616 test -n "$runpath_var_F77" || \
15617 test "X$hardcode_automatic_F77" = "Xyes" ; then
15619 # We can hardcode non-existant directories.
15620 if test "$hardcode_direct_F77" != no &&
15621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15622 # have to relink, otherwise we might link with an installed library
15623 # when we should be linking with a yet-to-be-installed one
15624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15625 test "$hardcode_minus_L_F77" != no; then
15626 # Linking always hardcodes the temporary library directory.
15627 hardcode_action_F77=relink
15629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15630 hardcode_action_F77=immediate
15633 # We cannot hardcode anything, or else we can only hardcode existing
15635 hardcode_action_F77=unsupported
15637 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15638 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15640 if test "$hardcode_action_F77" = relink; then
15641 # Fast installation is not supported
15642 enable_fast_install=no
15643 elif test "$shlibpath_overrides_runpath" = yes ||
15644 test "$enable_shared" = no; then
15645 # Fast installation is not necessary
15646 enable_fast_install=needless
15650 # The else clause should only fire when bootstrapping the
15651 # libtool distribution, otherwise you forgot to ship ltmain.sh
15652 # with your package, and you will get complaints that there are
15653 # no rules to generate ltmain.sh.
15654 if test -f "$ltmain"; then
15655 # See if we are running on zsh, and set the options which allow our commands through
15656 # without removal of \ escapes.
15657 if test -n "${ZSH_VERSION+set}" ; then
15658 setopt NO_GLOB_SUBST
15660 # Now quote all the things that may contain metacharacters while being
15661 # careful not to overquote the AC_SUBSTed values. We take copies of the
15662 # variables and quote the copies for generation of the libtool script.
15663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15667 deplibs_check_method reload_flag reload_cmds need_locks \
15668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15669 lt_cv_sys_global_symbol_to_c_name_address \
15670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15671 old_postinstall_cmds old_postuninstall_cmds \
15675 lt_prog_compiler_wl_F77 \
15676 lt_prog_compiler_pic_F77 \
15677 lt_prog_compiler_static_F77 \
15678 lt_prog_compiler_no_builtin_flag_F77 \
15679 export_dynamic_flag_spec_F77 \
15680 thread_safe_flag_spec_F77 \
15681 whole_archive_flag_spec_F77 \
15682 enable_shared_with_static_runtimes_F77 \
15683 old_archive_cmds_F77 \
15684 old_archive_from_new_cmds_F77 \
15685 predep_objects_F77 \
15686 postdep_objects_F77 \
15689 compiler_lib_search_path_F77 \
15691 archive_expsym_cmds_F77 \
15692 postinstall_cmds_F77 \
15693 postuninstall_cmds_F77 \
15694 old_archive_from_expsyms_cmds_F77 \
15695 allow_undefined_flag_F77 \
15696 no_undefined_flag_F77 \
15697 export_symbols_cmds_F77 \
15698 hardcode_libdir_flag_spec_F77 \
15699 hardcode_libdir_flag_spec_ld_F77 \
15700 hardcode_libdir_separator_F77 \
15701 hardcode_automatic_F77 \
15703 module_expsym_cmds_F77 \
15704 lt_cv_prog_compiler_c_o_F77 \
15705 exclude_expsyms_F77 \
15706 include_expsyms_F77; do
15709 old_archive_cmds_F77 | \
15710 old_archive_from_new_cmds_F77 | \
15711 archive_cmds_F77 | \
15712 archive_expsym_cmds_F77 | \
15713 module_cmds_F77 | \
15714 module_expsym_cmds_F77 | \
15715 old_archive_from_expsyms_cmds_F77 | \
15716 export_symbols_cmds_F77 | \
15717 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15718 postinstall_cmds | postuninstall_cmds | \
15719 old_postinstall_cmds | old_postuninstall_cmds | \
15720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15721 # Double-quote double-evaled strings.
15722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15731 *'\$0 --fallback-echo"')
15732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15738 cat <<__EOF__ >> "$cfgfile"
15739 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15743 # Shell to use when invoking shell scripts.
15746 # Whether or not to build shared libraries.
15747 build_libtool_libs=$enable_shared
15749 # Whether or not to build static libraries.
15750 build_old_libs=$enable_static
15752 # Whether or not to add -lc for building shared libraries.
15753 build_libtool_need_lc=$archive_cmds_need_lc_F77
15755 # Whether or not to disallow shared libs when runtime libs are static
15756 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15758 # Whether or not to optimize for fast installation.
15759 fast_install=$enable_fast_install
15762 host_alias=$host_alias
15766 # The build system.
15767 build_alias=$build_alias
15771 # An echo program that does not interpret backslashes.
15776 AR_FLAGS=$lt_AR_FLAGS
15781 # LTCC compiler flags.
15782 LTCFLAGS=$lt_LTCFLAGS
15784 # A language-specific compiler.
15785 CC=$lt_compiler_F77
15787 # Is the compiler the GNU C compiler?
15790 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15791 gcc_ver=\`gcc -dumpversion\`
15796 # The linker used to build libraries.
15799 # Whether we need hard or soft links.
15802 # A BSD-compatible nm program.
15805 # A symbol stripping program
15808 # Used to examine libraries when file_magic_cmd begins "file"
15809 MAGIC_CMD=$MAGIC_CMD
15811 # Used on cygwin: DLL creation program.
15814 # Used on cygwin: object dumper.
15817 # Used on cygwin: assembler.
15820 # The name of the directory that contains temporary libtool files.
15823 # How to create reloadable object files.
15824 reload_flag=$lt_reload_flag
15825 reload_cmds=$lt_reload_cmds
15827 # How to pass a linker flag through the compiler.
15828 wl=$lt_lt_prog_compiler_wl_F77
15830 # Object file suffix (normally "o").
15831 objext="$ac_objext"
15833 # Old archive suffix (normally "a").
15836 # Shared library suffix (normally ".so").
15837 shrext_cmds='$shrext_cmds'
15839 # Executable file suffix (normally "").
15842 # Additional compiler flags for building library objects.
15843 pic_flag=$lt_lt_prog_compiler_pic_F77
15846 # What is the maximum length of a command?
15847 max_cmd_len=$lt_cv_sys_max_cmd_len
15849 # Does compiler simultaneously support -c and -o options?
15850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15852 # Must we lock files when doing compilation?
15853 need_locks=$lt_need_locks
15855 # Do we need the lib prefix for modules?
15856 need_lib_prefix=$need_lib_prefix
15858 # Do we need a version for libraries?
15859 need_version=$need_version
15861 # Whether dlopen is supported.
15862 dlopen_support=$enable_dlopen
15864 # Whether dlopen of programs is supported.
15865 dlopen_self=$enable_dlopen_self
15867 # Whether dlopen of statically linked programs is supported.
15868 dlopen_self_static=$enable_dlopen_self_static
15870 # Compiler flag to prevent dynamic linking.
15871 link_static_flag=$lt_lt_prog_compiler_static_F77
15873 # Compiler flag to turn off builtin functions.
15874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15876 # Compiler flag to allow reflexive dlopens.
15877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15879 # Compiler flag to generate shared objects directly from archives.
15880 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15882 # Compiler flag to generate thread-safe objects.
15883 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15885 # Library versioning type.
15886 version_type=$version_type
15888 # Format of library name prefix.
15889 libname_spec=$lt_libname_spec
15891 # List of archive names. First name is the real one, the rest are links.
15892 # The last name is the one that the linker finds with -lNAME.
15893 library_names_spec=$lt_library_names_spec
15895 # The coded name of the library, if different from the real name.
15896 soname_spec=$lt_soname_spec
15898 # Commands used to build and install an old-style archive.
15900 old_archive_cmds=$lt_old_archive_cmds_F77
15901 old_postinstall_cmds=$lt_old_postinstall_cmds
15902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15904 # Create an old-style archive from a shared archive.
15905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15907 # Create a temporary old-style archive to link instead of a shared archive.
15908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15910 # Commands used to build and install a shared archive.
15911 archive_cmds=$lt_archive_cmds_F77
15912 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15913 postinstall_cmds=$lt_postinstall_cmds
15914 postuninstall_cmds=$lt_postuninstall_cmds
15916 # Commands used to build a loadable module (assumed same as above if empty)
15917 module_cmds=$lt_module_cmds_F77
15918 module_expsym_cmds=$lt_module_expsym_cmds_F77
15920 # Commands to strip libraries.
15921 old_striplib=$lt_old_striplib
15922 striplib=$lt_striplib
15924 # Dependencies to place before the objects being linked to create a
15926 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15928 # Dependencies to place after the objects being linked to create a
15930 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15932 # Dependencies to place before the objects being linked to create a
15934 predeps=$lt_predeps_F77
15936 # Dependencies to place after the objects being linked to create a
15938 postdeps=$lt_postdeps_F77
15940 # The library search path used internally by the compiler when linking
15941 # a shared library.
15942 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15944 # Method to check whether dependent libraries are shared objects.
15945 deplibs_check_method=$lt_deplibs_check_method
15947 # Command to use when deplibs_check_method == file_magic.
15948 file_magic_cmd=$lt_file_magic_cmd
15950 # Flag that allows shared libraries with undefined symbols to be built.
15951 allow_undefined_flag=$lt_allow_undefined_flag_F77
15953 # Flag that forces no undefined symbols.
15954 no_undefined_flag=$lt_no_undefined_flag_F77
15956 # Commands used to finish a libtool library installation in a directory.
15957 finish_cmds=$lt_finish_cmds
15959 # Same as above, but a single script fragment to be evaled but not shown.
15960 finish_eval=$lt_finish_eval
15962 # Take the output of nm and produce a listing of raw symbols and C names.
15963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15965 # Transform the output of nm in a proper C declaration
15966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15968 # Transform the output of nm in a C name address pair
15969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15971 # This is the shared library runtime path variable.
15972 runpath_var=$runpath_var
15974 # This is the shared library path variable.
15975 shlibpath_var=$shlibpath_var
15977 # Is shlibpath searched before the hard-coded library search path?
15978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15980 # How to hardcode a shared library path into an executable.
15981 hardcode_action=$hardcode_action_F77
15983 # Whether we should hardcode library paths into libraries.
15984 hardcode_into_libs=$hardcode_into_libs
15986 # Flag to hardcode \$libdir into a binary during linking.
15987 # This must work even if \$libdir does not exist.
15988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15990 # If ld is used when linking, flag to hardcode \$libdir into
15991 # a binary during linking. This must work even if \$libdir does
15993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15995 # Whether we need a single -rpath flag with a separated argument.
15996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15998 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15999 # resulting binary.
16000 hardcode_direct=$hardcode_direct_F77
16002 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16003 # resulting binary.
16004 hardcode_minus_L=$hardcode_minus_L_F77
16006 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16007 # the resulting binary.
16008 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16010 # Set to yes if building a shared library automatically hardcodes DIR into the library
16011 # and all subsequent libraries and executables linked against it.
16012 hardcode_automatic=$hardcode_automatic_F77
16014 # Variables whose values should be saved in libtool wrapper scripts and
16015 # restored at relink time.
16016 variables_saved_for_relink="$variables_saved_for_relink"
16018 # Whether libtool must link a program against all its dependency libraries.
16019 link_all_deplibs=$link_all_deplibs_F77
16021 # Compile-time system search path for libraries
16022 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16024 # Run-time system search path for libraries
16025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16027 # Fix the shell variable \$srcfile for the compiler.
16028 fix_srcfile_path="$fix_srcfile_path_F77"
16030 # Set to yes if exported symbols are required.
16031 always_export_symbols=$always_export_symbols_F77
16033 # The commands to list exported symbols.
16034 export_symbols_cmds=$lt_export_symbols_cmds_F77
16036 # The commands to extract the exported symbol list from a shared archive.
16037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16039 # Symbols that should not be listed in the preloaded symbols.
16040 exclude_expsyms=$lt_exclude_expsyms_F77
16042 # Symbols that must always be exported.
16043 include_expsyms=$lt_include_expsyms_F77
16045 # ### END LIBTOOL TAG CONFIG: $tagname
16051 # If there is no Makefile yet, we rely on a make rule to execute
16052 # `config.status --recheck' to rerun these tests and create the
16053 # libtool script then.
16054 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16055 if test -f "$ltmain_in"; then
16056 test -f Makefile && make "$ltmain"
16062 ac_cpp='$CPP $CPPFLAGS'
16063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16075 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16078 # Source file extension for Java test sources.
16081 # Object file extension for compiled Java test sources.
16085 # Code to be used in simple compile tests
16086 lt_simple_compile_test_code="class foo {}\n"
16088 # Code to be used in simple link tests
16089 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16091 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16093 # If no C compiler was specified, use CC.
16096 # If no C compiler flags were specified, use CFLAGS.
16097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16099 # Allow CC to be a program name with arguments.
16103 # save warnings/boilerplate of simple test code
16104 ac_outfile=conftest.$ac_objext
16105 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16107 _lt_compiler_boilerplate=`cat conftest.err`
16110 ac_outfile=conftest.$ac_objext
16111 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16113 _lt_linker_boilerplate=`cat conftest.err`
16117 # Allow CC to be a program name with arguments.
16122 for cc_temp in $compiler""; do
16124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16130 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16134 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16135 archive_cmds_need_lc_GCJ=no
16137 old_archive_cmds_GCJ=$old_archive_cmds
16140 lt_prog_compiler_no_builtin_flag_GCJ=
16142 if test "$GCC" = yes; then
16143 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16146 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16147 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 lt_cv_prog_compiler_rtti_exceptions=no
16152 ac_outfile=conftest.$ac_objext
16153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16154 lt_compiler_flag="-fno-rtti -fno-exceptions"
16155 # Insert the option either (1) after the last *FLAGS variable, or
16156 # (2) before a word containing "conftest.", or (3) at the end.
16157 # Note that $ac_compile itself does not contain backslashes and begins
16158 # with a dollar sign (not a hyphen), so the echo should work correctly.
16159 # The option is referenced via a variable to avoid confusing sed.
16160 lt_compile=`echo "$ac_compile" | $SED \
16161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16163 -e 's:$: $lt_compiler_flag:'`
16164 (eval echo "\"\$as_me:16164: $lt_compile\"" >&5)
16165 (eval "$lt_compile" 2>conftest.err)
16167 cat conftest.err >&5
16168 echo "$as_me:16168: \$? = $ac_status" >&5
16169 if (exit $ac_status) && test -s "$ac_outfile"; then
16170 # The compiler can only warn and ignore the option if not recognized
16171 # So say no if there are warnings other than the usual output.
16172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16175 lt_cv_prog_compiler_rtti_exceptions=yes
16181 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16192 lt_prog_compiler_wl_GCJ=
16193 lt_prog_compiler_pic_GCJ=
16194 lt_prog_compiler_static_GCJ=
16196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16199 if test "$GCC" = yes; then
16200 lt_prog_compiler_wl_GCJ='-Wl,'
16201 lt_prog_compiler_static_GCJ='-static'
16205 # All AIX code is PIC.
16206 if test "$host_cpu" = ia64; then
16207 # AIX 5 now supports IA64 processor
16208 lt_prog_compiler_static_GCJ='-Bstatic'
16213 # FIXME: we need at least 68020 code to build shared libraries, but
16214 # adding the `-m68020' flag to GCC prevents building anything better,
16216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16220 # PIC is the default for these OSes.
16223 mingw* | pw32* | os2*)
16224 # This hack is so that the source file can tell whether it is being
16225 # built for inclusion in a dll (and should export symbols for example).
16226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16229 darwin* | rhapsody*)
16230 # PIC is the default on this platform
16231 # Common symbols not allowed in MH_DYLIB files
16232 lt_prog_compiler_pic_GCJ='-fno-common'
16236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16237 # Instead, we relocate shared libraries at runtime.
16241 # Just because we use GCC doesn't mean we suddenly get shared libraries
16242 # on systems that don't support them.
16243 lt_prog_compiler_can_build_shared_GCJ=no
16248 if test -d /usr/nec; then
16249 lt_prog_compiler_pic_GCJ=-Kconform_pic
16254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16255 # not for PA HP-UX.
16261 lt_prog_compiler_pic_GCJ='-fPIC'
16267 lt_prog_compiler_pic_GCJ='-fPIC'
16271 # PORTME Check for flag to pass linker flags through the system compiler.
16274 lt_prog_compiler_wl_GCJ='-Wl,'
16275 if test "$host_cpu" = ia64; then
16276 # AIX 5 now supports IA64 processor
16277 lt_prog_compiler_static_GCJ='-Bstatic'
16279 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16283 # PIC is the default on this platform
16284 # Common symbols not allowed in MH_DYLIB files
16285 case $cc_basename in
16287 lt_prog_compiler_pic_GCJ='-qnocommon'
16288 lt_prog_compiler_wl_GCJ='-Wl,'
16293 mingw* | pw32* | os2*)
16294 # This hack is so that the source file can tell whether it is being
16295 # built for inclusion in a dll (and should export symbols for example).
16296 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16299 hpux9* | hpux10* | hpux11*)
16300 lt_prog_compiler_wl_GCJ='-Wl,'
16301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16302 # not for PA HP-UX.
16308 lt_prog_compiler_pic_GCJ='+Z'
16311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16312 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16315 irix5* | irix6* | nonstopux*)
16316 lt_prog_compiler_wl_GCJ='-Wl,'
16317 # PIC (with -KPIC) is the default.
16318 lt_prog_compiler_static_GCJ='-non_shared'
16322 lt_prog_compiler_pic_GCJ='-KPIC'
16323 lt_prog_compiler_static_GCJ='-Bstatic'
16327 case $cc_basename in
16329 lt_prog_compiler_wl_GCJ='-Wl,'
16330 lt_prog_compiler_pic_GCJ='-KPIC'
16331 lt_prog_compiler_static_GCJ='-static'
16333 pgcc* | pgf77* | pgf90* | pgf95*)
16334 # Portland Group compilers (*not* the Pentium gcc compiler,
16335 # which looks to be a dead project)
16336 lt_prog_compiler_wl_GCJ='-Wl,'
16337 lt_prog_compiler_pic_GCJ='-fpic'
16338 lt_prog_compiler_static_GCJ='-Bstatic'
16341 lt_prog_compiler_wl_GCJ='-Wl,'
16342 # All Alpha code is PIC.
16343 lt_prog_compiler_static_GCJ='-non_shared'
16348 osf3* | osf4* | osf5*)
16349 lt_prog_compiler_wl_GCJ='-Wl,'
16350 # All OSF/1 code is PIC.
16351 lt_prog_compiler_static_GCJ='-non_shared'
16355 lt_prog_compiler_pic_GCJ='-KPIC'
16356 lt_prog_compiler_static_GCJ='-Bstatic'
16357 case $cc_basename in
16358 f77* | f90* | f95*)
16359 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16361 lt_prog_compiler_wl_GCJ='-Wl,';;
16366 lt_prog_compiler_wl_GCJ='-Qoption ld '
16367 lt_prog_compiler_pic_GCJ='-PIC'
16368 lt_prog_compiler_static_GCJ='-Bstatic'
16371 sysv4 | sysv4.2uw2* | sysv4.3*)
16372 lt_prog_compiler_wl_GCJ='-Wl,'
16373 lt_prog_compiler_pic_GCJ='-KPIC'
16374 lt_prog_compiler_static_GCJ='-Bstatic'
16378 if test -d /usr/nec ;then
16379 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16380 lt_prog_compiler_static_GCJ='-Bstatic'
16384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16385 lt_prog_compiler_wl_GCJ='-Wl,'
16386 lt_prog_compiler_pic_GCJ='-KPIC'
16387 lt_prog_compiler_static_GCJ='-Bstatic'
16391 lt_prog_compiler_wl_GCJ='-Wl,'
16392 lt_prog_compiler_can_build_shared_GCJ=no
16396 lt_prog_compiler_pic_GCJ='-pic'
16397 lt_prog_compiler_static_GCJ='-Bstatic'
16401 lt_prog_compiler_can_build_shared_GCJ=no
16406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16407 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16410 # Check to make sure the PIC flag actually works.
16412 if test -n "$lt_prog_compiler_pic_GCJ"; then
16414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16416 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 lt_prog_compiler_pic_works_GCJ=no
16420 ac_outfile=conftest.$ac_objext
16421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16423 # Insert the option either (1) after the last *FLAGS variable, or
16424 # (2) before a word containing "conftest.", or (3) at the end.
16425 # Note that $ac_compile itself does not contain backslashes and begins
16426 # with a dollar sign (not a hyphen), so the echo should work correctly.
16427 # The option is referenced via a variable to avoid confusing sed.
16428 lt_compile=`echo "$ac_compile" | $SED \
16429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16431 -e 's:$: $lt_compiler_flag:'`
16432 (eval echo "\"\$as_me:16432: $lt_compile\"" >&5)
16433 (eval "$lt_compile" 2>conftest.err)
16435 cat conftest.err >&5
16436 echo "$as_me:16436: \$? = $ac_status" >&5
16437 if (exit $ac_status) && test -s "$ac_outfile"; then
16438 # The compiler can only warn and ignore the option if not recognized
16439 # So say no if there are warnings other than the usual output.
16440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16443 lt_prog_compiler_pic_works_GCJ=yes
16449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16450 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16452 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16453 case $lt_prog_compiler_pic_GCJ in
16455 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16458 lt_prog_compiler_pic_GCJ=
16459 lt_prog_compiler_can_build_shared_GCJ=no
16464 # For platforms which do not support PIC, -DPIC is meaningless:
16466 lt_prog_compiler_pic_GCJ=
16469 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16474 # Check to make sure the static flag actually works.
16476 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16479 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 lt_prog_compiler_static_works_GCJ=no
16483 save_LDFLAGS="$LDFLAGS"
16484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16487 # The linker can only warn and ignore the option if not recognized
16488 # So say no if there are warnings
16489 if test -s conftest.err; then
16490 # Append any errors to the config.log.
16491 cat conftest.err 1>&5
16492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16494 if diff conftest.exp conftest.er2 >/dev/null; then
16495 lt_prog_compiler_static_works_GCJ=yes
16498 lt_prog_compiler_static_works_GCJ=yes
16502 LDFLAGS="$save_LDFLAGS"
16505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16506 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16508 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16511 lt_prog_compiler_static_GCJ=
16515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16517 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 lt_cv_prog_compiler_c_o_GCJ=no
16521 $rm -r conftest 2>/dev/null
16525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16527 lt_compiler_flag="-o out/conftest2.$ac_objext"
16528 # Insert the option either (1) after the last *FLAGS variable, or
16529 # (2) before a word containing "conftest.", or (3) at the end.
16530 # Note that $ac_compile itself does not contain backslashes and begins
16531 # with a dollar sign (not a hyphen), so the echo should work correctly.
16532 lt_compile=`echo "$ac_compile" | $SED \
16533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16535 -e 's:$: $lt_compiler_flag:'`
16536 (eval echo "\"\$as_me:16536: $lt_compile\"" >&5)
16537 (eval "$lt_compile" 2>out/conftest.err)
16539 cat out/conftest.err >&5
16540 echo "$as_me:16540: \$? = $ac_status" >&5
16541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16543 # The compiler can only warn and ignore the option if not recognized
16544 # So say no if there are warnings
16545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16548 lt_cv_prog_compiler_c_o_GCJ=yes
16553 # SGI C++ compiler will create directory out/ii_files/ for
16554 # template instantiation
16555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16556 $rm out/* && rmdir out
16562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16566 hard_links="nottested"
16567 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16568 # do not overwrite the value of need_locks provided by the user
16569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16575 ln conftest.a conftest.b 2>&5 || hard_links=no
16576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16577 { echo "$as_me:$LINENO: result: $hard_links" >&5
16578 echo "${ECHO_T}$hard_links" >&6; }
16579 if test "$hard_links" = no; then
16580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16592 allow_undefined_flag_GCJ=
16593 enable_shared_with_static_runtimes_GCJ=no
16595 archive_expsym_cmds_GCJ=
16596 old_archive_From_new_cmds_GCJ=
16597 old_archive_from_expsyms_cmds_GCJ=
16598 export_dynamic_flag_spec_GCJ=
16599 whole_archive_flag_spec_GCJ=
16600 thread_safe_flag_spec_GCJ=
16601 hardcode_libdir_flag_spec_GCJ=
16602 hardcode_libdir_flag_spec_ld_GCJ=
16603 hardcode_libdir_separator_GCJ=
16604 hardcode_direct_GCJ=no
16605 hardcode_minus_L_GCJ=no
16606 hardcode_shlibpath_var_GCJ=unsupported
16607 link_all_deplibs_GCJ=unknown
16608 hardcode_automatic_GCJ=no
16610 module_expsym_cmds_GCJ=
16611 always_export_symbols_GCJ=no
16612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16613 # include_expsyms should be a list of space-separated symbols to be *always*
16614 # included in the symbol list
16615 include_expsyms_GCJ=
16616 # exclude_expsyms can be an extended regexp of symbols to exclude
16617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16619 # as well as any symbol that contains `d'.
16620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16622 # platforms (ab)use it in PIC code, but their linkers get confused if
16623 # the symbol is explicitly referenced. Since portable code cannot
16624 # rely on this symbol name, it's probably fine to never include it in
16625 # preloaded symbol tables.
16626 extract_expsyms_cmds=
16627 # Just being paranoid about ensuring that cc_basename is set.
16628 for cc_temp in $compiler""; do
16630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16639 cygwin* | mingw* | pw32*)
16640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16641 # When not using gcc, we currently assume that we are using
16642 # Microsoft Visual C++.
16643 if test "$GCC" != yes; then
16648 # we just hope/assume this is gcc and not c89 (= MSVC++)
16657 if test "$with_gnu_ld" = yes; then
16658 # If archive_cmds runs LD, not CC, wlarc should be empty
16661 # Set some defaults for GNU ld with shared library support. These
16662 # are reset later if shared libraries are not supported. Putting them
16663 # here allows them to be overridden if necessary.
16664 runpath_var=LD_RUN_PATH
16665 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16666 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16667 # ancient GNU ld didn't support --whole-archive et. al.
16668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16669 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16671 whole_archive_flag_spec_GCJ=
16673 supports_anon_versioning=no
16674 case `$LD -v 2>/dev/null` in
16675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16678 *\ 2.11.*) ;; # other 2.11 versions
16679 *) supports_anon_versioning=yes ;;
16682 # See if GNU ld supports shared libraries.
16684 aix3* | aix4* | aix5*)
16685 # On AIX/PPC, the GNU linker is very broken
16686 if test "$host_cpu" != ia64; then
16690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16691 *** to be unable to reliably create shared libraries on AIX.
16692 *** Therefore, libtool is disabling shared libraries support. If you
16693 *** really care for shared libraries, you may want to modify your PATH
16694 *** so that a non-GNU linker is found, and then restart.
16701 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)'
16702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16703 hardcode_minus_L_GCJ=yes
16705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16706 # that the semantics of dynamic libraries on AmigaOS, at least up
16707 # to version 4, is to share data among multiple programs linked
16708 # with the same dynamic library. Since this doesn't match the
16709 # behavior of shared libraries on other platforms, we can't use
16715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16716 allow_undefined_flag_GCJ=unsupported
16717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16718 # support --undefined. This deserves some investigation. FIXME
16719 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725 cygwin* | mingw* | pw32*)
16726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16727 # as there is no search path for DLLs.
16728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729 allow_undefined_flag_GCJ=unsupported
16730 always_export_symbols_GCJ=no
16731 enable_shared_with_static_runtimes_GCJ=yes
16732 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16735 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16736 # If the export-symbols file already is a .def file (1st line
16737 # is EXPORTS), use it as is; otherwise, prepend...
16738 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16739 cp $export_symbols $output_objdir/$soname.def;
16741 echo EXPORTS > $output_objdir/$soname.def;
16742 cat $export_symbols >> $output_objdir/$soname.def;
16744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16751 hardcode_direct_GCJ=no
16752 hardcode_shlibpath_var_GCJ=no
16753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16754 export_dynamic_flag_spec_GCJ='${wl}-E'
16755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16756 # Instead, shared libraries are loaded at an image base (0x10000000 by
16757 # default) and relocated if they conflict, which is a slow very memory
16758 # consuming and fragmenting process. To avoid this, we pick a random,
16759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16761 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'
16762 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'
16766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16768 case $cc_basename,$host_cpu in
16769 pgcc*) # Portland Group C compiler
16770 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'
16771 tmp_addflag=' $pic_flag'
16773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16774 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'
16775 tmp_addflag=' $pic_flag -Mnomain' ;;
16776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16777 tmp_addflag=' -i_dynamic' ;;
16778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16779 tmp_addflag=' -i_dynamic -nofor_main' ;;
16780 ifc* | ifort*) # Intel Fortran compiler
16781 tmp_addflag=' -nofor_main' ;;
16783 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16785 if test $supports_anon_versioning = yes; then
16786 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16788 $echo "local: *; };" >> $output_objdir/$libname.ver~
16789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16798 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16802 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16812 *** create shared libraries on Solaris systems. Therefore, libtool
16813 *** is disabling shared libraries support. We urge you to upgrade GNU
16814 *** binutils to release 2.9.1 or newer. Another option is to modify
16815 *** your PATH or compiler configuration so that the native linker is
16816 *** used, and then restart.
16819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16828 case `$LD -v 2>&1` in
16829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16834 *** reliably create shared libraries on SCO systems. Therefore, libtool
16835 *** is disabling shared libraries support. We urge you to upgrade GNU
16836 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16837 *** your PATH or compiler configuration so that the native linker is
16838 *** used, and then restart.
16843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16844 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16855 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16857 hardcode_direct_GCJ=yes
16858 hardcode_shlibpath_var_GCJ=no
16862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16863 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16864 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16871 if test "$ld_shlibs_GCJ" = no; then
16873 hardcode_libdir_flag_spec_GCJ=
16874 export_dynamic_flag_spec_GCJ=
16875 whole_archive_flag_spec_GCJ=
16878 # PORTME fill in a description of your system's linker (not GNU ld)
16881 allow_undefined_flag_GCJ=unsupported
16882 always_export_symbols_GCJ=yes
16883 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'
16884 # Note: this linker hardcodes the directories in LIBPATH if there
16885 # are no directories specified by -L.
16886 hardcode_minus_L_GCJ=yes
16887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16888 # Neither direct hardcoding nor static linking is supported with a
16890 hardcode_direct_GCJ=unsupported
16895 if test "$host_cpu" = ia64; then
16896 # On IA64, the linker does run time linking by default, so we don't
16897 # have to do anything special.
16898 aix_use_runtimelinking=no
16899 exp_sym_flag='-Bexport'
16902 # If we're using GNU nm, then we don't want the "-C" option.
16903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16905 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'
16907 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'
16909 aix_use_runtimelinking=no
16911 # Test if we are trying to use run time linking or normal
16912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16913 # need to do runtime linking.
16914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16915 for ld_flag in $LDFLAGS; do
16916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16917 aix_use_runtimelinking=yes
16924 exp_sym_flag='-bexport'
16925 no_entry_flag='-bnoentry'
16928 # When large executables or shared objects are built, AIX ld can
16929 # have problems creating the table of contents. If linking a library
16930 # or program results in "error TOC overflow" add -mminimal-toc to
16931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16934 archive_cmds_GCJ=''
16935 hardcode_direct_GCJ=yes
16936 hardcode_libdir_separator_GCJ=':'
16937 link_all_deplibs_GCJ=yes
16939 if test "$GCC" = yes; then
16940 case $host_os in aix4.[012]|aix4.[012].*)
16941 # We only want to do this on AIX 4.2 and lower, the check
16942 # below for broken collect2 doesn't work under 4.3+
16943 collect2name=`${CC} -print-prog-name=collect2`
16944 if test -f "$collect2name" && \
16945 strings "$collect2name" | grep resolve_lib_name >/dev/null
16947 # We have reworked collect2
16948 hardcode_direct_GCJ=yes
16950 # We have old collect2
16951 hardcode_direct_GCJ=unsupported
16952 # It fails to find uninstalled libraries when the uninstalled
16953 # path is not listed in the libpath. Setting hardcode_minus_L
16954 # to unsupported forces relinking
16955 hardcode_minus_L_GCJ=yes
16956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16957 hardcode_libdir_separator_GCJ=
16961 shared_flag='-shared'
16962 if test "$aix_use_runtimelinking" = yes; then
16963 shared_flag="$shared_flag "'${wl}-G'
16967 if test "$host_cpu" = ia64; then
16968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16969 # chokes on -Wl,-G. The following line is correct:
16972 if test "$aix_use_runtimelinking" = yes; then
16973 shared_flag='${wl}-G'
16975 shared_flag='${wl}-bM:SRE'
16980 # It seems that -bexpall does not export symbols beginning with
16981 # underscore (_), so it is better to generate a list of symbols to export.
16982 always_export_symbols_GCJ=yes
16983 if test "$aix_use_runtimelinking" = yes; then
16984 # Warning - without using the other runtime loading flags (-brtl),
16985 # -berok will link without error, but may produce a broken library.
16986 allow_undefined_flag_GCJ='-berok'
16987 # Determine the default libpath from the value encoded in an empty executable.
16988 cat >conftest.$ac_ext <<_ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
17003 rm -f conftest.$ac_objext conftest$ac_exeext
17004 if { (ac_try="$ac_link"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_link") 2>conftest.er1
17012 grep -v '^ *+' conftest.er1 >conftest.err
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } && {
17017 test -z "$ac_c_werror_flag" ||
17018 test ! -s conftest.err
17019 } && test -s conftest$ac_exeext &&
17020 $as_test_x conftest$ac_exeext; then
17022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17024 # Check for a 64-bit object if we didn't find anything.
17025 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; }
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17035 conftest$ac_exeext conftest.$ac_ext
17036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17038 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17039 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"
17041 if test "$host_cpu" = ia64; then
17042 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17043 allow_undefined_flag_GCJ="-z nodefs"
17044 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"
17046 # Determine the default libpath from the value encoded in an empty executable.
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && {
17076 test -z "$ac_c_werror_flag" ||
17077 test ! -s conftest.err
17078 } && test -s conftest$ac_exeext &&
17079 $as_test_x conftest$ac_exeext; then
17081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17083 # Check for a 64-bit object if we didn't find anything.
17084 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; }
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17094 conftest$ac_exeext conftest.$ac_ext
17095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17097 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17098 # Warning - without using the other run time loading flags,
17099 # -berok will link without error, but may produce a broken library.
17100 no_undefined_flag_GCJ=' ${wl}-bernotok'
17101 allow_undefined_flag_GCJ=' ${wl}-berok'
17102 # Exported symbols can be pulled into shared objects from archives
17103 whole_archive_flag_spec_GCJ='$convenience'
17104 archive_cmds_need_lc_GCJ=yes
17105 # This is similar to how AIX traditionally builds its shared libraries.
17106 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'
17112 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)'
17113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17114 hardcode_minus_L_GCJ=yes
17115 # see comment about different semantics on the GNU ld section
17120 export_dynamic_flag_spec_GCJ=-rdynamic
17123 cygwin* | mingw* | pw32*)
17124 # When not using gcc, we currently assume that we are using
17125 # Microsoft Visual C++.
17126 # hardcode_libdir_flag_spec is actually meaningless, as there is
17127 # no search path for DLLs.
17128 hardcode_libdir_flag_spec_GCJ=' '
17129 allow_undefined_flag_GCJ=unsupported
17130 # Tell ltmain to make .lib files, not .a files.
17132 # Tell ltmain to make .dll files, not .so files.
17134 # FIXME: Setting linknames here is a bad hack.
17135 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17136 # The linker will automatically build a .lib file if we build a DLL.
17137 old_archive_From_new_cmds_GCJ='true'
17138 # FIXME: Should let the user specify the lib program.
17139 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17140 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17141 enable_shared_with_static_runtimes_GCJ=yes
17144 darwin* | rhapsody*)
17146 rhapsody* | darwin1.[012])
17147 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17150 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17151 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17153 case ${MACOSX_DEPLOYMENT_TARGET} in
17155 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17158 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17164 archive_cmds_need_lc_GCJ=no
17165 hardcode_direct_GCJ=no
17166 hardcode_automatic_GCJ=yes
17167 hardcode_shlibpath_var_GCJ=unsupported
17168 whole_archive_flag_spec_GCJ=''
17169 link_all_deplibs_GCJ=yes
17170 if test "$GCC" = yes ; then
17171 output_verbose_link_cmd='echo'
17172 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17173 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17175 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}'
17176 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}'
17178 case $cc_basename in
17180 output_verbose_link_cmd='echo'
17181 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17182 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17184 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}'
17185 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}'
17195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17196 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17197 hardcode_shlibpath_var_GCJ=no
17204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17205 # support. Future versions do this automatically, but an explicit c++rt0.o
17206 # does not break anything, and helps significantly (at the cost of a little
17209 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17210 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17211 hardcode_direct_GCJ=yes
17212 hardcode_shlibpath_var_GCJ=no
17215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17218 hardcode_direct_GCJ=yes
17219 hardcode_minus_L_GCJ=yes
17220 hardcode_shlibpath_var_GCJ=no
17223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17224 freebsd* | kfreebsd*-gnu | dragonfly*)
17225 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17226 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17227 hardcode_direct_GCJ=yes
17228 hardcode_shlibpath_var_GCJ=no
17232 if test "$GCC" = yes; then
17233 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'
17235 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'
17237 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17238 hardcode_libdir_separator_GCJ=:
17239 hardcode_direct_GCJ=yes
17241 # hardcode_minus_L: Not really in the search PATH,
17242 # but as the default location of the library.
17243 hardcode_minus_L_GCJ=yes
17244 export_dynamic_flag_spec_GCJ='${wl}-E'
17248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17249 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17251 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17253 if test "$with_gnu_ld" = no; then
17254 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17255 hardcode_libdir_separator_GCJ=:
17257 hardcode_direct_GCJ=yes
17258 export_dynamic_flag_spec_GCJ='${wl}-E'
17260 # hardcode_minus_L: Not really in the search PATH,
17261 # but as the default location of the library.
17262 hardcode_minus_L_GCJ=yes
17267 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17270 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17273 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17276 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17282 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17285 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17288 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17292 if test "$with_gnu_ld" = no; then
17293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17294 hardcode_libdir_separator_GCJ=:
17298 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17299 hardcode_direct_GCJ=no
17300 hardcode_shlibpath_var_GCJ=no
17303 hardcode_direct_GCJ=yes
17304 export_dynamic_flag_spec_GCJ='${wl}-E'
17306 # hardcode_minus_L: Not really in the search PATH,
17307 # but as the default location of the library.
17308 hardcode_minus_L_GCJ=yes
17314 irix5* | irix6* | nonstopux*)
17315 if test "$GCC" = yes; then
17316 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'
17318 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'
17319 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17321 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17322 hardcode_libdir_separator_GCJ=:
17323 link_all_deplibs_GCJ=yes
17327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17328 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17330 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17332 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17333 hardcode_direct_GCJ=yes
17334 hardcode_shlibpath_var_GCJ=no
17338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17339 hardcode_direct_GCJ=yes
17340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17341 hardcode_libdir_separator_GCJ=:
17342 hardcode_shlibpath_var_GCJ=no
17346 hardcode_direct_GCJ=yes
17347 hardcode_shlibpath_var_GCJ=no
17348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17349 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17350 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17351 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17352 export_dynamic_flag_spec_GCJ='${wl}-E'
17355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17356 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17360 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369 hardcode_minus_L_GCJ=yes
17370 allow_undefined_flag_GCJ=unsupported
17371 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'
17372 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17376 if test "$GCC" = yes; then
17377 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17378 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'
17380 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17381 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'
17383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17384 hardcode_libdir_separator_GCJ=:
17387 osf4* | osf5*) # as osf3* with the addition of -msym flag
17388 if test "$GCC" = yes; then
17389 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17390 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'
17391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17393 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17394 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'
17395 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~
17396 $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'
17398 # Both c and cxx compiler support -rpath directly
17399 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17401 hardcode_libdir_separator_GCJ=:
17405 no_undefined_flag_GCJ=' -z text'
17406 if test "$GCC" = yes; then
17408 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17409 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17410 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17413 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17414 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17418 hardcode_shlibpath_var_GCJ=no
17420 solaris2.[0-5] | solaris2.[0-5].*) ;;
17422 # The compiler driver will combine linker options so we
17423 # cannot just pass the convience library names through
17424 # without $wl, iff we do not link with $LD.
17425 # Luckily, gcc supports the same syntax we need for Sun Studio.
17426 # Supported since Solaris 2.6 (maybe 2.5.1?)
17429 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17431 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' ;;
17434 link_all_deplibs_GCJ=yes
17438 if test "x$host_vendor" = xsequent; then
17439 # Use $CC to link under sequent, because it throws in some extra .o
17440 # files that make .init and .fini sections work.
17441 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17443 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17446 hardcode_direct_GCJ=yes
17447 hardcode_minus_L_GCJ=yes
17448 hardcode_shlibpath_var_GCJ=no
17452 case $host_vendor in
17454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_direct_GCJ=yes # is this really true???
17458 ## LD is ld it makes a PLAMLIB
17459 ## CC just makes a GrossModule.
17460 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17461 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17462 hardcode_direct_GCJ=no
17465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17466 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17469 runpath_var='LD_RUN_PATH'
17470 hardcode_shlibpath_var_GCJ=no
17474 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17475 hardcode_shlibpath_var_GCJ=no
17476 export_dynamic_flag_spec_GCJ='-Bexport'
17480 if test -d /usr/nec; then
17481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17482 hardcode_shlibpath_var_GCJ=no
17483 runpath_var=LD_RUN_PATH
17484 hardcode_runpath_var=yes
17489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17490 no_undefined_flag_GCJ='${wl}-z,text'
17491 archive_cmds_need_lc_GCJ=no
17492 hardcode_shlibpath_var_GCJ=no
17493 runpath_var='LD_RUN_PATH'
17495 if test "$GCC" = yes; then
17496 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17497 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17499 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17500 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 sysv5* | sco3.2v5* | sco5v6*)
17505 # Note: We can NOT use -z defs as we might desire, because we do not
17506 # link with -lc, and that would cause any symbols used from libc to
17507 # always be unresolved, which means just about no library would
17508 # ever link correctly. If we're not using GNU ld we use -z text
17509 # though, which does catch some bad symbols but isn't as heavy-handed
17511 no_undefined_flag_GCJ='${wl}-z,text'
17512 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17513 archive_cmds_need_lc_GCJ=no
17514 hardcode_shlibpath_var_GCJ=no
17515 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17516 hardcode_libdir_separator_GCJ=':'
17517 link_all_deplibs_GCJ=yes
17518 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17519 runpath_var='LD_RUN_PATH'
17521 if test "$GCC" = yes; then
17522 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17523 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17525 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17526 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17533 hardcode_shlibpath_var_GCJ=no
17542 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17543 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17544 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17547 # Do we need to explicitly link libc?
17549 case "x$archive_cmds_need_lc_GCJ" in
17551 # Assume -lc should be added
17552 archive_cmds_need_lc_GCJ=yes
17554 if test "$enable_shared" = yes && test "$GCC" = yes; then
17555 case $archive_cmds_GCJ in
17557 # FIXME: we may have to deal with multi-command sequences.
17560 # Test whether the compiler implicitly links with -lc since on some
17561 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17562 # to ld, don't add -lc before -lgcc.
17563 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17564 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } 2>conftest.err; then
17575 libobjs=conftest.$ac_objext
17577 wl=$lt_prog_compiler_wl_GCJ
17578 pic_flag=$lt_prog_compiler_pic_GCJ
17584 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17585 allow_undefined_flag_GCJ=
17586 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17587 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }
17592 archive_cmds_need_lc_GCJ=no
17594 archive_cmds_need_lc_GCJ=yes
17596 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17598 cat conftest.err 1>&5
17601 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17602 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17609 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17610 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17611 library_names_spec=
17612 libname_spec='lib$name'
17616 postuninstall_cmds=
17620 shlibpath_overrides_runpath=unknown
17622 dynamic_linker="$host_os ld.so"
17623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17624 if test "$GCC" = yes; then
17625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17626 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17627 # if the path contains ";" then we assume it to be the separator
17628 # otherwise default to the standard path separator (i.e. ":") - it is
17629 # assumed that no part of a normal pathname contains ";" but that should
17630 # okay in the real world where ";" in dirpaths is itself problematic.
17631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17636 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17638 need_lib_prefix=unknown
17639 hardcode_into_libs=no
17641 # when you set need_version to no, make sure it does not cause -set_version
17642 # flags to be left without arguments
17643 need_version=unknown
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17649 shlibpath_var=LIBPATH
17651 # AIX 3 has no versioning support, so we append a major version to the name.
17652 soname_spec='${libname}${release}${shared_ext}$major'
17659 hardcode_into_libs=yes
17660 if test "$host_cpu" = ia64; then
17661 # AIX 5 supports IA64
17662 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17663 shlibpath_var=LD_LIBRARY_PATH
17665 # With GCC up to 2.95.x, collect2 would create an import file
17666 # for dependence libraries. The import file would start with
17667 # the line `#! .'. This would cause the generated library to
17668 # depend on `.', always an invalid library. This was fixed in
17669 # development snapshots of GCC prior to 3.0.
17671 aix4 | aix4.[01] | aix4.[01].*)
17672 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17674 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17677 can_build_shared=no
17681 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17682 # soname into executable. Probably we can add versioning support to
17683 # collect2, so additional links can be useful in future.
17684 if test "$aix_use_runtimelinking" = yes; then
17685 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17686 # instead of lib<name>.a to let people know that these are not
17687 # typical AIX shared libraries.
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 # We preserve .a as extension for shared libraries through AIX4.2
17691 # and later when we are not doing run time linking.
17692 library_names_spec='${libname}${release}.a $libname.a'
17693 soname_spec='${libname}${release}${shared_ext}$major'
17695 shlibpath_var=LIBPATH
17700 library_names_spec='$libname.ixlibrary $libname.a'
17701 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17702 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'
17706 library_names_spec='${libname}${shared_ext}'
17707 dynamic_linker="$host_os ld.so"
17708 shlibpath_var=LIBRARY_PATH
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17715 soname_spec='${libname}${release}${shared_ext}$major'
17716 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17717 shlibpath_var=LD_LIBRARY_PATH
17718 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17719 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17720 # the default ld.so.conf also contains /usr/contrib/lib and
17721 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17722 # libtool to hard-code these into programs
17725 cygwin* | mingw* | pw32*)
17726 version_type=windows
17731 case $GCC,$host_os in
17732 yes,cygwin* | yes,mingw* | yes,pw32*)
17733 library_names_spec='$libname.dll.a'
17734 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17735 postinstall_cmds='base_file=`basename \${file}`~
17736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17737 dldir=$destdir/`dirname \$dlpath`~
17738 test -d \$dldir || mkdir -p \$dldir~
17739 $install_prog $dir/$dlname \$dldir/$dlname~
17740 chmod a+x \$dldir/$dlname'
17741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17742 dlpath=$dir/\$dldll~
17744 shlibpath_overrides_runpath=yes
17748 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17749 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17750 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17753 # MinGW DLLs use traditional 'lib' prefix
17754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17756 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17757 # It is most probably a Windows format PATH printed by
17758 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17759 # path with ; separators, and with drive letters. We can handle the
17760 # drive letters (cygwin fileutils understands them), so leave them,
17761 # especially as we might pass files found there to a mingw objdump,
17762 # which wouldn't understand a cygwinified path. Ahh.
17763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17769 # pw32 DLLs use 'pw' prefix rather than 'lib'
17770 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17779 dynamic_linker='Win32 ld.exe'
17780 # FIXME: first we should search . and the directory the executable is in
17784 darwin* | rhapsody*)
17785 dynamic_linker="$host_os dyld"
17786 version_type=darwin
17789 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17790 soname_spec='${libname}${release}${major}$shared_ext'
17791 shlibpath_overrides_runpath=yes
17792 shlibpath_var=DYLD_LIBRARY_PATH
17793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17794 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17795 if test "$GCC" = yes; then
17796 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"`
17798 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17800 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17808 soname_spec='${libname}${release}${shared_ext}$major'
17809 shlibpath_var=LD_LIBRARY_PATH
17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17821 soname_spec='${libname}${release}${shared_ext}$major'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 shlibpath_overrides_runpath=no
17824 hardcode_into_libs=yes
17825 dynamic_linker='GNU ld.so'
17828 freebsd* | dragonfly*)
17829 # DragonFly does not have aout. When/if they implement a new
17830 # versioning mechanism, adjust this.
17831 if test -x /usr/bin/objformat; then
17832 objformat=`/usr/bin/objformat`
17835 freebsd[123]*) objformat=aout ;;
17836 *) objformat=elf ;;
17839 version_type=freebsd-$objformat
17840 case $version_type in
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17851 shlibpath_var=LD_LIBRARY_PATH
17854 shlibpath_overrides_runpath=yes
17856 freebsd3.[01]* | freebsdelf3.[01]*)
17857 shlibpath_overrides_runpath=yes
17858 hardcode_into_libs=yes
17860 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17861 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17862 shlibpath_overrides_runpath=no
17863 hardcode_into_libs=yes
17865 freebsd*) # from 4.6 on
17866 shlibpath_overrides_runpath=yes
17867 hardcode_into_libs=yes
17876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17877 soname_spec='${libname}${release}${shared_ext}$major'
17878 shlibpath_var=LD_LIBRARY_PATH
17879 hardcode_into_libs=yes
17882 hpux9* | hpux10* | hpux11*)
17883 # Give a soname corresponding to the major version so that dld.sl refuses to
17884 # link against other versions.
17891 hardcode_into_libs=yes
17892 dynamic_linker="$host_os dld.so"
17893 shlibpath_var=LD_LIBRARY_PATH
17894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 if test "X$HPUX_IA64_MODE" = X32; then
17898 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17906 hardcode_into_libs=yes
17907 dynamic_linker="$host_os dld.sl"
17908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911 soname_spec='${libname}${release}${shared_ext}$major'
17912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17917 dynamic_linker="$host_os dld.sl"
17918 shlibpath_var=SHLIB_PATH
17919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17921 soname_spec='${libname}${release}${shared_ext}$major'
17924 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17925 postinstall_cmds='chmod 555 $lib'
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath=no
17937 hardcode_into_libs=yes
17940 irix5* | irix6* | nonstopux*)
17942 nonstopux*) version_type=nonstopux ;;
17944 if test "$lt_cv_prog_gnu_ld" = yes; then
17952 soname_spec='${libname}${release}${shared_ext}$major'
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17955 irix5* | nonstopux*)
17956 libsuff= shlibsuff=
17959 case $LD in # libtool.m4 will add one of these switches to LD
17960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17961 libsuff= shlibsuff= libmagic=32-bit;;
17962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17963 libsuff=32 shlibsuff=N32 libmagic=N32;;
17964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17966 *) libsuff= shlibsuff= libmagic=never-match;;
17970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17971 shlibpath_overrides_runpath=no
17972 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17973 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17974 hardcode_into_libs=yes
17977 # No shared lib support for Linux oldld, aout, or coff.
17978 linux*oldld* | linux*aout* | linux*coff*)
17982 # This must be Linux ELF.
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17988 soname_spec='${libname}${release}${shared_ext}$major'
17989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 shlibpath_overrides_runpath=no
17992 # This implies no fast_install, which is unacceptable.
17993 # Some rework will be needed to allow for fast_install
17994 # before this can be enabled.
17995 hardcode_into_libs=yes
17997 # find out which ABI we are using
17999 case "$host_cpu" in
18000 x86_64*|s390x*|powerpc64*)
18001 echo '#line 18001 "configure"' > conftest.$ac_ext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18003 (eval $ac_compile) 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; then
18007 case `/usr/bin/file conftest.$ac_objext` in
18010 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18018 # Append ld.so.conf contents to the search path
18019 if test -f /etc/ld.so.conf; then
18020 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' ' '`
18021 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18024 # We used to test for /lib/ld.so.1 and disable shared libraries on
18025 # powerpc, because MkLinux only supported shared libraries with the
18026 # GNU dynamic linker. Since this was broken with cross compilers,
18027 # most powerpc-linux boxes support dynamic linking these days and
18028 # people can always --disable-shared, the test was removed, and we
18029 # assume the GNU/Linux dynamic linker is in use.
18030 dynamic_linker='GNU/Linux ld.so'
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18038 soname_spec='${libname}${release}${shared_ext}$major'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 shlibpath_overrides_runpath=no
18041 hardcode_into_libs=yes
18042 dynamic_linker='GNU ld.so'
18049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18052 dynamic_linker='NetBSD (a.out) ld.so'
18054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18055 soname_spec='${libname}${release}${shared_ext}$major'
18056 dynamic_linker='NetBSD ld.elf_so'
18058 shlibpath_var=LD_LIBRARY_PATH
18059 shlibpath_overrides_runpath=yes
18060 hardcode_into_libs=yes
18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18066 shlibpath_var=LD_LIBRARY_PATH
18067 shlibpath_overrides_runpath=yes
18074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075 soname_spec='${libname}${release}${shared_ext}$major'
18076 shlibpath_var=LD_LIBRARY_PATH
18077 shlibpath_overrides_runpath=yes
18082 sys_lib_dlsearch_path_spec="/usr/lib"
18084 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18086 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18087 *) need_version=no ;;
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18094 openbsd2.[89] | openbsd2.[89].*)
18095 shlibpath_overrides_runpath=no
18098 shlibpath_overrides_runpath=yes
18102 shlibpath_overrides_runpath=yes
18107 libname_spec='$name'
18110 library_names_spec='$libname${shared_ext} $libname.a'
18111 dynamic_linker='OS/2 ld.exe'
18112 shlibpath_var=LIBPATH
18115 osf3* | osf4* | osf5*)
18119 soname_spec='${libname}${release}${shared_ext}$major'
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121 shlibpath_var=LD_LIBRARY_PATH
18122 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18123 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131 soname_spec='${libname}${release}${shared_ext}$major'
18132 shlibpath_var=LD_LIBRARY_PATH
18133 shlibpath_overrides_runpath=yes
18134 hardcode_into_libs=yes
18135 # ldd complains unless libraries are executable
18136 postinstall_cmds='chmod +x $lib'
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18143 shlibpath_var=LD_LIBRARY_PATH
18144 shlibpath_overrides_runpath=yes
18145 if test "$with_gnu_ld" = yes; then
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18155 shlibpath_var=LD_LIBRARY_PATH
18156 case $host_vendor in
18158 shlibpath_overrides_runpath=no
18160 export_dynamic_flag_spec='${wl}-Blargedynsym'
18161 runpath_var=LD_RUN_PATH
18169 shlibpath_overrides_runpath=no
18170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18176 if test -d /usr/nec ;then
18178 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18179 soname_spec='$libname${shared_ext}.$major'
18180 shlibpath_var=LD_LIBRARY_PATH
18184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18185 version_type=freebsd-elf
18188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18189 soname_spec='${libname}${release}${shared_ext}$major'
18190 shlibpath_var=LD_LIBRARY_PATH
18191 hardcode_into_libs=yes
18192 if test "$with_gnu_ld" = yes; then
18193 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18194 shlibpath_overrides_runpath=no
18196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18197 shlibpath_overrides_runpath=yes
18200 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18204 sys_lib_dlsearch_path_spec='/usr/lib'
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210 soname_spec='${libname}${release}${shared_ext}$major'
18211 shlibpath_var=LD_LIBRARY_PATH
18218 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18219 echo "${ECHO_T}$dynamic_linker" >&6; }
18220 test "$dynamic_linker" = no && can_build_shared=no
18222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18223 if test "$GCC" = yes; then
18224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18227 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18228 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18229 hardcode_action_GCJ=
18230 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18231 test -n "$runpath_var_GCJ" || \
18232 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18234 # We can hardcode non-existant directories.
18235 if test "$hardcode_direct_GCJ" != no &&
18236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18237 # have to relink, otherwise we might link with an installed library
18238 # when we should be linking with a yet-to-be-installed one
18239 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18240 test "$hardcode_minus_L_GCJ" != no; then
18241 # Linking always hardcodes the temporary library directory.
18242 hardcode_action_GCJ=relink
18244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18245 hardcode_action_GCJ=immediate
18248 # We cannot hardcode anything, or else we can only hardcode existing
18250 hardcode_action_GCJ=unsupported
18252 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18253 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18255 if test "$hardcode_action_GCJ" = relink; then
18256 # Fast installation is not supported
18257 enable_fast_install=no
18258 elif test "$shlibpath_overrides_runpath" = yes ||
18259 test "$enable_shared" = no; then
18260 # Fast installation is not necessary
18261 enable_fast_install=needless
18265 # The else clause should only fire when bootstrapping the
18266 # libtool distribution, otherwise you forgot to ship ltmain.sh
18267 # with your package, and you will get complaints that there are
18268 # no rules to generate ltmain.sh.
18269 if test -f "$ltmain"; then
18270 # See if we are running on zsh, and set the options which allow our commands through
18271 # without removal of \ escapes.
18272 if test -n "${ZSH_VERSION+set}" ; then
18273 setopt NO_GLOB_SUBST
18275 # Now quote all the things that may contain metacharacters while being
18276 # careful not to overquote the AC_SUBSTed values. We take copies of the
18277 # variables and quote the copies for generation of the libtool script.
18278 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18280 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18281 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18282 deplibs_check_method reload_flag reload_cmds need_locks \
18283 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18284 lt_cv_sys_global_symbol_to_c_name_address \
18285 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18286 old_postinstall_cmds old_postuninstall_cmds \
18290 lt_prog_compiler_wl_GCJ \
18291 lt_prog_compiler_pic_GCJ \
18292 lt_prog_compiler_static_GCJ \
18293 lt_prog_compiler_no_builtin_flag_GCJ \
18294 export_dynamic_flag_spec_GCJ \
18295 thread_safe_flag_spec_GCJ \
18296 whole_archive_flag_spec_GCJ \
18297 enable_shared_with_static_runtimes_GCJ \
18298 old_archive_cmds_GCJ \
18299 old_archive_from_new_cmds_GCJ \
18300 predep_objects_GCJ \
18301 postdep_objects_GCJ \
18304 compiler_lib_search_path_GCJ \
18306 archive_expsym_cmds_GCJ \
18307 postinstall_cmds_GCJ \
18308 postuninstall_cmds_GCJ \
18309 old_archive_from_expsyms_cmds_GCJ \
18310 allow_undefined_flag_GCJ \
18311 no_undefined_flag_GCJ \
18312 export_symbols_cmds_GCJ \
18313 hardcode_libdir_flag_spec_GCJ \
18314 hardcode_libdir_flag_spec_ld_GCJ \
18315 hardcode_libdir_separator_GCJ \
18316 hardcode_automatic_GCJ \
18318 module_expsym_cmds_GCJ \
18319 lt_cv_prog_compiler_c_o_GCJ \
18320 exclude_expsyms_GCJ \
18321 include_expsyms_GCJ; do
18324 old_archive_cmds_GCJ | \
18325 old_archive_from_new_cmds_GCJ | \
18326 archive_cmds_GCJ | \
18327 archive_expsym_cmds_GCJ | \
18328 module_cmds_GCJ | \
18329 module_expsym_cmds_GCJ | \
18330 old_archive_from_expsyms_cmds_GCJ | \
18331 export_symbols_cmds_GCJ | \
18332 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18333 postinstall_cmds | postuninstall_cmds | \
18334 old_postinstall_cmds | old_postuninstall_cmds | \
18335 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18336 # Double-quote double-evaled strings.
18337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18346 *'\$0 --fallback-echo"')
18347 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18353 cat <<__EOF__ >> "$cfgfile"
18354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18358 # Shell to use when invoking shell scripts.
18361 # Whether or not to build shared libraries.
18362 build_libtool_libs=$enable_shared
18364 # Whether or not to build static libraries.
18365 build_old_libs=$enable_static
18367 # Whether or not to add -lc for building shared libraries.
18368 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18370 # Whether or not to disallow shared libs when runtime libs are static
18371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18373 # Whether or not to optimize for fast installation.
18374 fast_install=$enable_fast_install
18377 host_alias=$host_alias
18381 # The build system.
18382 build_alias=$build_alias
18386 # An echo program that does not interpret backslashes.
18391 AR_FLAGS=$lt_AR_FLAGS
18396 # LTCC compiler flags.
18397 LTCFLAGS=$lt_LTCFLAGS
18399 # A language-specific compiler.
18400 CC=$lt_compiler_GCJ
18402 # Is the compiler the GNU C compiler?
18405 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18406 gcc_ver=\`gcc -dumpversion\`
18411 # The linker used to build libraries.
18414 # Whether we need hard or soft links.
18417 # A BSD-compatible nm program.
18420 # A symbol stripping program
18423 # Used to examine libraries when file_magic_cmd begins "file"
18424 MAGIC_CMD=$MAGIC_CMD
18426 # Used on cygwin: DLL creation program.
18429 # Used on cygwin: object dumper.
18432 # Used on cygwin: assembler.
18435 # The name of the directory that contains temporary libtool files.
18438 # How to create reloadable object files.
18439 reload_flag=$lt_reload_flag
18440 reload_cmds=$lt_reload_cmds
18442 # How to pass a linker flag through the compiler.
18443 wl=$lt_lt_prog_compiler_wl_GCJ
18445 # Object file suffix (normally "o").
18446 objext="$ac_objext"
18448 # Old archive suffix (normally "a").
18451 # Shared library suffix (normally ".so").
18452 shrext_cmds='$shrext_cmds'
18454 # Executable file suffix (normally "").
18457 # Additional compiler flags for building library objects.
18458 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18461 # What is the maximum length of a command?
18462 max_cmd_len=$lt_cv_sys_max_cmd_len
18464 # Does compiler simultaneously support -c and -o options?
18465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18467 # Must we lock files when doing compilation?
18468 need_locks=$lt_need_locks
18470 # Do we need the lib prefix for modules?
18471 need_lib_prefix=$need_lib_prefix
18473 # Do we need a version for libraries?
18474 need_version=$need_version
18476 # Whether dlopen is supported.
18477 dlopen_support=$enable_dlopen
18479 # Whether dlopen of programs is supported.
18480 dlopen_self=$enable_dlopen_self
18482 # Whether dlopen of statically linked programs is supported.
18483 dlopen_self_static=$enable_dlopen_self_static
18485 # Compiler flag to prevent dynamic linking.
18486 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18488 # Compiler flag to turn off builtin functions.
18489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18491 # Compiler flag to allow reflexive dlopens.
18492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18494 # Compiler flag to generate shared objects directly from archives.
18495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18497 # Compiler flag to generate thread-safe objects.
18498 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18500 # Library versioning type.
18501 version_type=$version_type
18503 # Format of library name prefix.
18504 libname_spec=$lt_libname_spec
18506 # List of archive names. First name is the real one, the rest are links.
18507 # The last name is the one that the linker finds with -lNAME.
18508 library_names_spec=$lt_library_names_spec
18510 # The coded name of the library, if different from the real name.
18511 soname_spec=$lt_soname_spec
18513 # Commands used to build and install an old-style archive.
18515 old_archive_cmds=$lt_old_archive_cmds_GCJ
18516 old_postinstall_cmds=$lt_old_postinstall_cmds
18517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18519 # Create an old-style archive from a shared archive.
18520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18522 # Create a temporary old-style archive to link instead of a shared archive.
18523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18525 # Commands used to build and install a shared archive.
18526 archive_cmds=$lt_archive_cmds_GCJ
18527 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18528 postinstall_cmds=$lt_postinstall_cmds
18529 postuninstall_cmds=$lt_postuninstall_cmds
18531 # Commands used to build a loadable module (assumed same as above if empty)
18532 module_cmds=$lt_module_cmds_GCJ
18533 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18535 # Commands to strip libraries.
18536 old_striplib=$lt_old_striplib
18537 striplib=$lt_striplib
18539 # Dependencies to place before the objects being linked to create a
18541 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18543 # Dependencies to place after the objects being linked to create a
18545 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18547 # Dependencies to place before the objects being linked to create a
18549 predeps=$lt_predeps_GCJ
18551 # Dependencies to place after the objects being linked to create a
18553 postdeps=$lt_postdeps_GCJ
18555 # The library search path used internally by the compiler when linking
18556 # a shared library.
18557 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18559 # Method to check whether dependent libraries are shared objects.
18560 deplibs_check_method=$lt_deplibs_check_method
18562 # Command to use when deplibs_check_method == file_magic.
18563 file_magic_cmd=$lt_file_magic_cmd
18565 # Flag that allows shared libraries with undefined symbols to be built.
18566 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18568 # Flag that forces no undefined symbols.
18569 no_undefined_flag=$lt_no_undefined_flag_GCJ
18571 # Commands used to finish a libtool library installation in a directory.
18572 finish_cmds=$lt_finish_cmds
18574 # Same as above, but a single script fragment to be evaled but not shown.
18575 finish_eval=$lt_finish_eval
18577 # Take the output of nm and produce a listing of raw symbols and C names.
18578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18580 # Transform the output of nm in a proper C declaration
18581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18583 # Transform the output of nm in a C name address pair
18584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18586 # This is the shared library runtime path variable.
18587 runpath_var=$runpath_var
18589 # This is the shared library path variable.
18590 shlibpath_var=$shlibpath_var
18592 # Is shlibpath searched before the hard-coded library search path?
18593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18595 # How to hardcode a shared library path into an executable.
18596 hardcode_action=$hardcode_action_GCJ
18598 # Whether we should hardcode library paths into libraries.
18599 hardcode_into_libs=$hardcode_into_libs
18601 # Flag to hardcode \$libdir into a binary during linking.
18602 # This must work even if \$libdir does not exist.
18603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18605 # If ld is used when linking, flag to hardcode \$libdir into
18606 # a binary during linking. This must work even if \$libdir does
18608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18610 # Whether we need a single -rpath flag with a separated argument.
18611 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18613 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18614 # resulting binary.
18615 hardcode_direct=$hardcode_direct_GCJ
18617 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18618 # resulting binary.
18619 hardcode_minus_L=$hardcode_minus_L_GCJ
18621 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18622 # the resulting binary.
18623 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18625 # Set to yes if building a shared library automatically hardcodes DIR into the library
18626 # and all subsequent libraries and executables linked against it.
18627 hardcode_automatic=$hardcode_automatic_GCJ
18629 # Variables whose values should be saved in libtool wrapper scripts and
18630 # restored at relink time.
18631 variables_saved_for_relink="$variables_saved_for_relink"
18633 # Whether libtool must link a program against all its dependency libraries.
18634 link_all_deplibs=$link_all_deplibs_GCJ
18636 # Compile-time system search path for libraries
18637 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18639 # Run-time system search path for libraries
18640 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18642 # Fix the shell variable \$srcfile for the compiler.
18643 fix_srcfile_path="$fix_srcfile_path_GCJ"
18645 # Set to yes if exported symbols are required.
18646 always_export_symbols=$always_export_symbols_GCJ
18648 # The commands to list exported symbols.
18649 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18651 # The commands to extract the exported symbol list from a shared archive.
18652 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18654 # Symbols that should not be listed in the preloaded symbols.
18655 exclude_expsyms=$lt_exclude_expsyms_GCJ
18657 # Symbols that must always be exported.
18658 include_expsyms=$lt_include_expsyms_GCJ
18660 # ### END LIBTOOL TAG CONFIG: $tagname
18666 # If there is no Makefile yet, we rely on a make rule to execute
18667 # `config.status --recheck' to rerun these tests and create the
18668 # libtool script then.
18669 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18670 if test -f "$ltmain_in"; then
18671 test -f Makefile && make "$ltmain"
18677 ac_cpp='$CPP $CPPFLAGS'
18678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18692 # Source file extension for RC test sources.
18695 # Object file extension for compiled RC test sources.
18699 # Code to be used in simple compile tests
18700 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18702 # Code to be used in simple link tests
18703 lt_simple_link_test_code="$lt_simple_compile_test_code"
18705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18707 # If no C compiler was specified, use CC.
18710 # If no C compiler flags were specified, use CFLAGS.
18711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18713 # Allow CC to be a program name with arguments.
18717 # save warnings/boilerplate of simple test code
18718 ac_outfile=conftest.$ac_objext
18719 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18721 _lt_compiler_boilerplate=`cat conftest.err`
18724 ac_outfile=conftest.$ac_objext
18725 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18727 _lt_linker_boilerplate=`cat conftest.err`
18731 # Allow CC to be a program name with arguments.
18736 for cc_temp in $compiler""; do
18738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18744 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18746 lt_cv_prog_compiler_c_o_RC=yes
18748 # The else clause should only fire when bootstrapping the
18749 # libtool distribution, otherwise you forgot to ship ltmain.sh
18750 # with your package, and you will get complaints that there are
18751 # no rules to generate ltmain.sh.
18752 if test -f "$ltmain"; then
18753 # See if we are running on zsh, and set the options which allow our commands through
18754 # without removal of \ escapes.
18755 if test -n "${ZSH_VERSION+set}" ; then
18756 setopt NO_GLOB_SUBST
18758 # Now quote all the things that may contain metacharacters while being
18759 # careful not to overquote the AC_SUBSTed values. We take copies of the
18760 # variables and quote the copies for generation of the libtool script.
18761 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18763 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18764 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18765 deplibs_check_method reload_flag reload_cmds need_locks \
18766 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18767 lt_cv_sys_global_symbol_to_c_name_address \
18768 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18769 old_postinstall_cmds old_postuninstall_cmds \
18773 lt_prog_compiler_wl_RC \
18774 lt_prog_compiler_pic_RC \
18775 lt_prog_compiler_static_RC \
18776 lt_prog_compiler_no_builtin_flag_RC \
18777 export_dynamic_flag_spec_RC \
18778 thread_safe_flag_spec_RC \
18779 whole_archive_flag_spec_RC \
18780 enable_shared_with_static_runtimes_RC \
18781 old_archive_cmds_RC \
18782 old_archive_from_new_cmds_RC \
18783 predep_objects_RC \
18784 postdep_objects_RC \
18787 compiler_lib_search_path_RC \
18789 archive_expsym_cmds_RC \
18790 postinstall_cmds_RC \
18791 postuninstall_cmds_RC \
18792 old_archive_from_expsyms_cmds_RC \
18793 allow_undefined_flag_RC \
18794 no_undefined_flag_RC \
18795 export_symbols_cmds_RC \
18796 hardcode_libdir_flag_spec_RC \
18797 hardcode_libdir_flag_spec_ld_RC \
18798 hardcode_libdir_separator_RC \
18799 hardcode_automatic_RC \
18801 module_expsym_cmds_RC \
18802 lt_cv_prog_compiler_c_o_RC \
18803 exclude_expsyms_RC \
18804 include_expsyms_RC; do
18807 old_archive_cmds_RC | \
18808 old_archive_from_new_cmds_RC | \
18809 archive_cmds_RC | \
18810 archive_expsym_cmds_RC | \
18812 module_expsym_cmds_RC | \
18813 old_archive_from_expsyms_cmds_RC | \
18814 export_symbols_cmds_RC | \
18815 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18816 postinstall_cmds | postuninstall_cmds | \
18817 old_postinstall_cmds | old_postuninstall_cmds | \
18818 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18819 # Double-quote double-evaled strings.
18820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18829 *'\$0 --fallback-echo"')
18830 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18836 cat <<__EOF__ >> "$cfgfile"
18837 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18841 # Shell to use when invoking shell scripts.
18844 # Whether or not to build shared libraries.
18845 build_libtool_libs=$enable_shared
18847 # Whether or not to build static libraries.
18848 build_old_libs=$enable_static
18850 # Whether or not to add -lc for building shared libraries.
18851 build_libtool_need_lc=$archive_cmds_need_lc_RC
18853 # Whether or not to disallow shared libs when runtime libs are static
18854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18856 # Whether or not to optimize for fast installation.
18857 fast_install=$enable_fast_install
18860 host_alias=$host_alias
18864 # The build system.
18865 build_alias=$build_alias
18869 # An echo program that does not interpret backslashes.
18874 AR_FLAGS=$lt_AR_FLAGS
18879 # LTCC compiler flags.
18880 LTCFLAGS=$lt_LTCFLAGS
18882 # A language-specific compiler.
18885 # Is the compiler the GNU C compiler?
18888 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18889 gcc_ver=\`gcc -dumpversion\`
18894 # The linker used to build libraries.
18897 # Whether we need hard or soft links.
18900 # A BSD-compatible nm program.
18903 # A symbol stripping program
18906 # Used to examine libraries when file_magic_cmd begins "file"
18907 MAGIC_CMD=$MAGIC_CMD
18909 # Used on cygwin: DLL creation program.
18912 # Used on cygwin: object dumper.
18915 # Used on cygwin: assembler.
18918 # The name of the directory that contains temporary libtool files.
18921 # How to create reloadable object files.
18922 reload_flag=$lt_reload_flag
18923 reload_cmds=$lt_reload_cmds
18925 # How to pass a linker flag through the compiler.
18926 wl=$lt_lt_prog_compiler_wl_RC
18928 # Object file suffix (normally "o").
18929 objext="$ac_objext"
18931 # Old archive suffix (normally "a").
18934 # Shared library suffix (normally ".so").
18935 shrext_cmds='$shrext_cmds'
18937 # Executable file suffix (normally "").
18940 # Additional compiler flags for building library objects.
18941 pic_flag=$lt_lt_prog_compiler_pic_RC
18944 # What is the maximum length of a command?
18945 max_cmd_len=$lt_cv_sys_max_cmd_len
18947 # Does compiler simultaneously support -c and -o options?
18948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18950 # Must we lock files when doing compilation?
18951 need_locks=$lt_need_locks
18953 # Do we need the lib prefix for modules?
18954 need_lib_prefix=$need_lib_prefix
18956 # Do we need a version for libraries?
18957 need_version=$need_version
18959 # Whether dlopen is supported.
18960 dlopen_support=$enable_dlopen
18962 # Whether dlopen of programs is supported.
18963 dlopen_self=$enable_dlopen_self
18965 # Whether dlopen of statically linked programs is supported.
18966 dlopen_self_static=$enable_dlopen_self_static
18968 # Compiler flag to prevent dynamic linking.
18969 link_static_flag=$lt_lt_prog_compiler_static_RC
18971 # Compiler flag to turn off builtin functions.
18972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18974 # Compiler flag to allow reflexive dlopens.
18975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18977 # Compiler flag to generate shared objects directly from archives.
18978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18980 # Compiler flag to generate thread-safe objects.
18981 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18983 # Library versioning type.
18984 version_type=$version_type
18986 # Format of library name prefix.
18987 libname_spec=$lt_libname_spec
18989 # List of archive names. First name is the real one, the rest are links.
18990 # The last name is the one that the linker finds with -lNAME.
18991 library_names_spec=$lt_library_names_spec
18993 # The coded name of the library, if different from the real name.
18994 soname_spec=$lt_soname_spec
18996 # Commands used to build and install an old-style archive.
18998 old_archive_cmds=$lt_old_archive_cmds_RC
18999 old_postinstall_cmds=$lt_old_postinstall_cmds
19000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19002 # Create an old-style archive from a shared archive.
19003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19005 # Create a temporary old-style archive to link instead of a shared archive.
19006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19008 # Commands used to build and install a shared archive.
19009 archive_cmds=$lt_archive_cmds_RC
19010 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19011 postinstall_cmds=$lt_postinstall_cmds
19012 postuninstall_cmds=$lt_postuninstall_cmds
19014 # Commands used to build a loadable module (assumed same as above if empty)
19015 module_cmds=$lt_module_cmds_RC
19016 module_expsym_cmds=$lt_module_expsym_cmds_RC
19018 # Commands to strip libraries.
19019 old_striplib=$lt_old_striplib
19020 striplib=$lt_striplib
19022 # Dependencies to place before the objects being linked to create a
19024 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19026 # Dependencies to place after the objects being linked to create a
19028 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19030 # Dependencies to place before the objects being linked to create a
19032 predeps=$lt_predeps_RC
19034 # Dependencies to place after the objects being linked to create a
19036 postdeps=$lt_postdeps_RC
19038 # The library search path used internally by the compiler when linking
19039 # a shared library.
19040 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19042 # Method to check whether dependent libraries are shared objects.
19043 deplibs_check_method=$lt_deplibs_check_method
19045 # Command to use when deplibs_check_method == file_magic.
19046 file_magic_cmd=$lt_file_magic_cmd
19048 # Flag that allows shared libraries with undefined symbols to be built.
19049 allow_undefined_flag=$lt_allow_undefined_flag_RC
19051 # Flag that forces no undefined symbols.
19052 no_undefined_flag=$lt_no_undefined_flag_RC
19054 # Commands used to finish a libtool library installation in a directory.
19055 finish_cmds=$lt_finish_cmds
19057 # Same as above, but a single script fragment to be evaled but not shown.
19058 finish_eval=$lt_finish_eval
19060 # Take the output of nm and produce a listing of raw symbols and C names.
19061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19063 # Transform the output of nm in a proper C declaration
19064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19066 # Transform the output of nm in a C name address pair
19067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19069 # This is the shared library runtime path variable.
19070 runpath_var=$runpath_var
19072 # This is the shared library path variable.
19073 shlibpath_var=$shlibpath_var
19075 # Is shlibpath searched before the hard-coded library search path?
19076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19078 # How to hardcode a shared library path into an executable.
19079 hardcode_action=$hardcode_action_RC
19081 # Whether we should hardcode library paths into libraries.
19082 hardcode_into_libs=$hardcode_into_libs
19084 # Flag to hardcode \$libdir into a binary during linking.
19085 # This must work even if \$libdir does not exist.
19086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19088 # If ld is used when linking, flag to hardcode \$libdir into
19089 # a binary during linking. This must work even if \$libdir does
19091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19093 # Whether we need a single -rpath flag with a separated argument.
19094 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19096 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19097 # resulting binary.
19098 hardcode_direct=$hardcode_direct_RC
19100 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19101 # resulting binary.
19102 hardcode_minus_L=$hardcode_minus_L_RC
19104 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19105 # the resulting binary.
19106 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19108 # Set to yes if building a shared library automatically hardcodes DIR into the library
19109 # and all subsequent libraries and executables linked against it.
19110 hardcode_automatic=$hardcode_automatic_RC
19112 # Variables whose values should be saved in libtool wrapper scripts and
19113 # restored at relink time.
19114 variables_saved_for_relink="$variables_saved_for_relink"
19116 # Whether libtool must link a program against all its dependency libraries.
19117 link_all_deplibs=$link_all_deplibs_RC
19119 # Compile-time system search path for libraries
19120 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19122 # Run-time system search path for libraries
19123 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19125 # Fix the shell variable \$srcfile for the compiler.
19126 fix_srcfile_path="$fix_srcfile_path_RC"
19128 # Set to yes if exported symbols are required.
19129 always_export_symbols=$always_export_symbols_RC
19131 # The commands to list exported symbols.
19132 export_symbols_cmds=$lt_export_symbols_cmds_RC
19134 # The commands to extract the exported symbol list from a shared archive.
19135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19137 # Symbols that should not be listed in the preloaded symbols.
19138 exclude_expsyms=$lt_exclude_expsyms_RC
19140 # Symbols that must always be exported.
19141 include_expsyms=$lt_include_expsyms_RC
19143 # ### END LIBTOOL TAG CONFIG: $tagname
19149 # If there is no Makefile yet, we rely on a make rule to execute
19150 # `config.status --recheck' to rerun these tests and create the
19151 # libtool script then.
19152 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19153 if test -f "$ltmain_in"; then
19154 test -f Makefile && make "$ltmain"
19160 ac_cpp='$CPP $CPPFLAGS'
19161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19170 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19171 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19172 { (exit 1); exit 1; }; }
19176 # Append the new tag name to the list of available tags.
19177 if test -n "$tagname" ; then
19178 available_tags="$available_tags $tagname"
19184 # Now substitute the updated list of available tags.
19185 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19186 mv "${ofile}T" "$ofile"
19190 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19191 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19192 { (exit 1); exit 1; }; }
19198 # This can be used to rebuild libtool when needed
19199 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19201 # Always use our own libtool.
19202 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19204 # Prevent multiple expansion
19227 ac_cpp='$CPP $CPPFLAGS'
19228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19234 ac_cpp='$CPP $CPPFLAGS'
19235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19238 if test -n "$ac_tool_prefix"; then
19239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19240 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19243 if test "${ac_cv_prog_CC+set}" = set; then
19244 echo $ECHO_N "(cached) $ECHO_C" >&6
19246 if test -n "$CC"; then
19247 ac_cv_prog_CC="$CC" # Let the user override the test.
19249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19250 for as_dir in $PATH
19253 test -z "$as_dir" && as_dir=.
19254 for ac_exec_ext in '' $ac_executable_extensions; do
19255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19256 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19267 if test -n "$CC"; then
19268 { echo "$as_me:$LINENO: result: $CC" >&5
19269 echo "${ECHO_T}$CC" >&6; }
19271 { echo "$as_me:$LINENO: result: no" >&5
19272 echo "${ECHO_T}no" >&6; }
19277 if test -z "$ac_cv_prog_CC"; then
19279 # Extract the first word of "gcc", so it can be a program name with args.
19280 set dummy gcc; ac_word=$2
19281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 if test -n "$ac_ct_CC"; then
19287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19293 test -z "$as_dir" && as_dir=.
19294 for ac_exec_ext in '' $ac_executable_extensions; do
19295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19296 ac_cv_prog_ac_ct_CC="gcc"
19297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19307 if test -n "$ac_ct_CC"; then
19308 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19309 echo "${ECHO_T}$ac_ct_CC" >&6; }
19311 { echo "$as_me:$LINENO: result: no" >&5
19312 echo "${ECHO_T}no" >&6; }
19315 if test "x$ac_ct_CC" = x; then
19318 case $cross_compiling:$ac_tool_warned in
19320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19321 whose name does not start with the host triplet. If you think this
19322 configuration is useful to you, please write to autoconf@gnu.org." >&5
19323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19324 whose name does not start with the host triplet. If you think this
19325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19326 ac_tool_warned=yes ;;
19331 CC="$ac_cv_prog_CC"
19334 if test -z "$CC"; then
19335 if test -n "$ac_tool_prefix"; then
19336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19337 set dummy ${ac_tool_prefix}cc; ac_word=$2
19338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19340 if test "${ac_cv_prog_CC+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 if test -n "$CC"; then
19344 ac_cv_prog_CC="$CC" # Let the user override the test.
19346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 for as_dir in $PATH
19350 test -z "$as_dir" && as_dir=.
19351 for ac_exec_ext in '' $ac_executable_extensions; do
19352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19353 ac_cv_prog_CC="${ac_tool_prefix}cc"
19354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19364 if test -n "$CC"; then
19365 { echo "$as_me:$LINENO: result: $CC" >&5
19366 echo "${ECHO_T}$CC" >&6; }
19368 { echo "$as_me:$LINENO: result: no" >&5
19369 echo "${ECHO_T}no" >&6; }
19375 if test -z "$CC"; then
19376 # Extract the first word of "cc", so it can be a program name with args.
19377 set dummy cc; ac_word=$2
19378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19380 if test "${ac_cv_prog_CC+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 if test -n "$CC"; then
19384 ac_cv_prog_CC="$CC" # Let the user override the test.
19386 ac_prog_rejected=no
19387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19388 for as_dir in $PATH
19391 test -z "$as_dir" && as_dir=.
19392 for ac_exec_ext in '' $ac_executable_extensions; do
19393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19394 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19395 ac_prog_rejected=yes
19399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19406 if test $ac_prog_rejected = yes; then
19407 # We found a bogon in the path, so make sure we never use it.
19408 set dummy $ac_cv_prog_CC
19410 if test $# != 0; then
19411 # We chose a different compiler from the bogus one.
19412 # However, it has the same basename, so the bogon will be chosen
19413 # first if we set CC to just the basename; use the full file name.
19415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19421 if test -n "$CC"; then
19422 { echo "$as_me:$LINENO: result: $CC" >&5
19423 echo "${ECHO_T}$CC" >&6; }
19425 { echo "$as_me:$LINENO: result: no" >&5
19426 echo "${ECHO_T}no" >&6; }
19431 if test -z "$CC"; then
19432 if test -n "$ac_tool_prefix"; then
19433 for ac_prog in cl.exe
19435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19439 if test "${ac_cv_prog_CC+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19442 if test -n "$CC"; then
19443 ac_cv_prog_CC="$CC" # Let the user override the test.
19445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19446 for as_dir in $PATH
19449 test -z "$as_dir" && as_dir=.
19450 for ac_exec_ext in '' $ac_executable_extensions; do
19451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19463 if test -n "$CC"; then
19464 { echo "$as_me:$LINENO: result: $CC" >&5
19465 echo "${ECHO_T}$CC" >&6; }
19467 { echo "$as_me:$LINENO: result: no" >&5
19468 echo "${ECHO_T}no" >&6; }
19472 test -n "$CC" && break
19475 if test -z "$CC"; then
19477 for ac_prog in cl.exe
19479 # Extract the first word of "$ac_prog", so it can be a program name with args.
19480 set dummy $ac_prog; ac_word=$2
19481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 if test -n "$ac_ct_CC"; then
19487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19490 for as_dir in $PATH
19493 test -z "$as_dir" && as_dir=.
19494 for ac_exec_ext in '' $ac_executable_extensions; do
19495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19496 ac_cv_prog_ac_ct_CC="$ac_prog"
19497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19507 if test -n "$ac_ct_CC"; then
19508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19509 echo "${ECHO_T}$ac_ct_CC" >&6; }
19511 { echo "$as_me:$LINENO: result: no" >&5
19512 echo "${ECHO_T}no" >&6; }
19516 test -n "$ac_ct_CC" && break
19519 if test "x$ac_ct_CC" = x; then
19522 case $cross_compiling:$ac_tool_warned in
19524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19525 whose name does not start with the host triplet. If you think this
19526 configuration is useful to you, please write to autoconf@gnu.org." >&5
19527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19528 whose name does not start with the host triplet. If you think this
19529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19530 ac_tool_warned=yes ;;
19539 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19540 See \`config.log' for more details." >&5
19541 echo "$as_me: error: no acceptable C compiler found in \$PATH
19542 See \`config.log' for more details." >&2;}
19543 { (exit 1); exit 1; }; }
19545 # Provide some information about the compiler.
19546 echo "$as_me:$LINENO: checking for C compiler version" >&5
19547 ac_compiler=`set X $ac_compile; echo $2`
19548 { (ac_try="$ac_compiler --version >&5"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_compiler --version >&5") 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }
19558 { (ac_try="$ac_compiler -v >&5"
19559 case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_compiler -v >&5") 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }
19568 { (ac_try="$ac_compiler -V >&5"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_compiler -V >&5") 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }
19579 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 cat >conftest.$ac_ext <<_ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19602 rm -f conftest.$ac_objext
19603 if { (ac_try="$ac_compile"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_compile") 2>conftest.er1
19611 grep -v '^ *+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest.$ac_objext; then
19619 ac_compiler_gnu=yes
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19631 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19632 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19633 GCC=`test $ac_compiler_gnu = yes && echo yes`
19634 ac_test_CFLAGS=${CFLAGS+set}
19635 ac_save_CFLAGS=$CFLAGS
19636 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19637 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19638 if test "${ac_cv_prog_cc_g+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 ac_save_c_werror_flag=$ac_c_werror_flag
19642 ac_c_werror_flag=yes
19645 cat >conftest.$ac_ext <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && {
19674 test -z "$ac_c_werror_flag" ||
19675 test ! -s conftest.err
19676 } && test -s conftest.$ac_objext; then
19677 ac_cv_prog_cc_g=yes
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19683 cat >conftest.$ac_ext <<_ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_compile") 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest.$ac_objext; then
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 ac_c_werror_flag=$ac_save_c_werror_flag
19722 cat >conftest.$ac_ext <<_ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19737 rm -f conftest.$ac_objext
19738 if { (ac_try="$ac_compile"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_compile") 2>conftest.er1
19746 grep -v '^ *+' conftest.er1 >conftest.err
19748 cat conftest.err >&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } && {
19751 test -z "$ac_c_werror_flag" ||
19752 test ! -s conftest.err
19753 } && test -s conftest.$ac_objext; then
19754 ac_cv_prog_cc_g=yes
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19769 ac_c_werror_flag=$ac_save_c_werror_flag
19771 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19772 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19773 if test "$ac_test_CFLAGS" = set; then
19774 CFLAGS=$ac_save_CFLAGS
19775 elif test $ac_cv_prog_cc_g = yes; then
19776 if test "$GCC" = yes; then
19782 if test "$GCC" = yes; then
19788 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19789 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19790 if test "${ac_cv_prog_cc_c89+set}" = set; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 ac_cv_prog_cc_c89=no
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 #include <stdarg.h>
19803 #include <sys/types.h>
19804 #include <sys/stat.h>
19805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19806 struct buf { int x; };
19807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19808 static char *e (p, i)
19814 static char *f (char * (*g) (char **, int), char **p, ...)
19819 s = g (p, va_arg (v,int));
19824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19825 function prototypes and stuff, but not '\xHH' hex character constants.
19826 These don't provoke an error unfortunately, instead are silently treated
19827 as 'x'. The following induces an error, until -std is added to get
19828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19829 array size at least. It's necessary to write '\x00'==0 to get something
19830 that's true only with -std. */
19831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19834 inside strings and character constants. */
19836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19838 int test (int i, double x);
19839 struct s1 {int (*f) (int a);};
19840 struct s2 {int (*f) (double a);};
19841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19847 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19855 CC="$ac_save_CC $ac_arg"
19856 rm -f conftest.$ac_objext
19857 if { (ac_try="$ac_compile"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_compile") 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } && {
19870 test -z "$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 } && test -s conftest.$ac_objext; then
19873 ac_cv_prog_cc_c89=$ac_arg
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19881 rm -f core conftest.err conftest.$ac_objext
19882 test "x$ac_cv_prog_cc_c89" != "xno" && break
19884 rm -f conftest.$ac_ext
19889 case "x$ac_cv_prog_cc_c89" in
19891 { echo "$as_me:$LINENO: result: none needed" >&5
19892 echo "${ECHO_T}none needed" >&6; } ;;
19894 { echo "$as_me:$LINENO: result: unsupported" >&5
19895 echo "${ECHO_T}unsupported" >&6; } ;;
19897 CC="$CC $ac_cv_prog_cc_c89"
19898 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19899 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19904 ac_cpp='$CPP $CPPFLAGS'
19905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19909 depcc="$CC" am_compiler_list=
19911 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19912 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19913 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19917 # We make a subdir and do the tests there. Otherwise we can end up
19918 # making bogus files that we don't know about and never remove. For
19919 # instance it was reported that on HP-UX the gcc test will end up
19920 # making a dummy file named `D' -- because `-MD' means `put the output
19923 # Copy depcomp to subdir because otherwise we won't find it if we're
19924 # using a relative directory.
19925 cp "$am_depcomp" conftest.dir
19927 # We will build objects and dependencies in a subdirectory because
19928 # it helps to detect inapplicable dependency modes. For instance
19929 # both Tru64's cc and ICC support -MD to output dependencies as a
19930 # side effect of compilation, but ICC will put the dependencies in
19931 # the current directory while Tru64 will put them in the object
19935 am_cv_CC_dependencies_compiler_type=none
19936 if test "$am_compiler_list" = ""; then
19937 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19939 for depmode in $am_compiler_list; do
19940 # Setup a source with many dependencies, because some compilers
19941 # like to wrap large dependency lists on column 80 (with \), and
19942 # we should not choose a depcomp mode which is confused by this.
19944 # We need to recreate these files for each test, as the compiler may
19945 # overwrite some of them when testing with obscure command lines.
19946 # This happens at least with the AIX C compiler.
19948 for i in 1 2 3 4 5 6; do
19949 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19950 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19951 # Solaris 8's {/usr,}/bin/sh.
19952 touch sub/conftst$i.h
19954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19958 # after this tag, mechanisms are not by side-effect, so they'll
19959 # only be used when explicitly requested
19960 if test "x$enable_dependency_tracking" = xyes; then
19968 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19969 # mode. It turns out that the SunPro C++ compiler does not properly
19970 # handle `-M -o', and we need to detect this.
19971 if depmode=$depmode \
19972 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19973 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19974 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19975 >/dev/null 2>conftest.err &&
19976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19977 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19979 # icc doesn't choke on unknown options, it will just issue warnings
19980 # or remarks (even with -Werror). So we grep stderr for any message
19981 # that says an option was ignored or not supported.
19982 # When given -MP, icc 7.0 and 7.1 complain thusly:
19983 # icc: Command line warning: ignoring option '-M'; no argument required
19984 # The diagnosis changed in icc 8.0:
19985 # icc: Command line remark: option '-MP' not supported
19986 if (grep 'ignoring option' conftest.err ||
19987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19988 am_cv_CC_dependencies_compiler_type=$depmode
19995 rm -rf conftest.dir
19997 am_cv_CC_dependencies_compiler_type=none
20001 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20002 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20008 test "x$enable_dependency_tracking" != xno \
20009 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20010 am__fastdepCC_TRUE=
20011 am__fastdepCC_FALSE='#'
20013 am__fastdepCC_TRUE='#'
20014 am__fastdepCC_FALSE=
20019 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20020 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20021 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20022 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 cat >conftest.make <<\_ACEOF
20028 @echo '@@@%%%=$(MAKE)=@@@%%%'
20030 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20031 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20032 *@@@%%%=?*=@@@%%%*)
20033 eval ac_cv_prog_make_${ac_make}_set=yes;;
20035 eval ac_cv_prog_make_${ac_make}_set=no;;
20037 rm -f conftest.make
20039 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20040 { echo "$as_me:$LINENO: result: yes" >&5
20041 echo "${ECHO_T}yes" >&6; }
20044 { echo "$as_me:$LINENO: result: no" >&5
20045 echo "${ECHO_T}no" >&6; }
20046 SET_MAKE="MAKE=${MAKE-make}"
20050 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20051 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20052 if test "${ac_cv_header_stdc+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 #include <stdlib.h>
20062 #include <stdarg.h>
20063 #include <string.h>
20074 rm -f conftest.$ac_objext
20075 if { (ac_try="$ac_compile"
20076 case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081 (eval "$ac_compile") 2>conftest.er1
20083 grep -v '^ *+' conftest.er1 >conftest.err
20085 cat conftest.err >&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } && {
20088 test -z "$ac_c_werror_flag" ||
20089 test ! -s conftest.err
20090 } && test -s conftest.$ac_objext; then
20091 ac_cv_header_stdc=yes
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_cv_header_stdc=no
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101 if test $ac_cv_header_stdc = yes; then
20102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <string.h>
20112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20113 $EGREP "memchr" >/dev/null 2>&1; then
20116 ac_cv_header_stdc=no
20122 if test $ac_cv_header_stdc = yes; then
20123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130 #include <stdlib.h>
20133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20134 $EGREP "free" >/dev/null 2>&1; then
20137 ac_cv_header_stdc=no
20143 if test $ac_cv_header_stdc = yes; then
20144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20145 if test "$cross_compiling" = yes; then
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20155 #include <stdlib.h>
20156 #if ((' ' & 0x0FF) == 0x020)
20157 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20158 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20160 # define ISLOWER(c) \
20161 (('a' <= (c) && (c) <= 'i') \
20162 || ('j' <= (c) && (c) <= 'r') \
20163 || ('s' <= (c) && (c) <= 'z'))
20164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20172 for (i = 0; i < 256; i++)
20173 if (XOR (islower (i), ISLOWER (i))
20174 || toupper (i) != TOUPPER (i))
20179 rm -f conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20201 echo "$as_me: program exited with status $ac_status" >&5
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 ( exit $ac_status )
20206 ac_cv_header_stdc=no
20208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20214 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20215 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20216 if test $ac_cv_header_stdc = yes; then
20218 cat >>confdefs.h <<\_ACEOF
20219 #define STDC_HEADERS 1
20226 for ac_header in unistd.h
20228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 ac_res=`eval echo '${'$as_ac_Header'}'`
20236 { echo "$as_me:$LINENO: result: $ac_res" >&5
20237 echo "${ECHO_T}$ac_res" >&6; }
20239 # Is the header compilable?
20240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 $ac_includes_default
20249 #include <$ac_header>
20251 rm -f conftest.$ac_objext
20252 if { (ac_try="$ac_compile"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_compile") 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } && {
20265 test -z "$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20267 } && test -s conftest.$ac_objext; then
20268 ac_header_compiler=yes
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 ac_header_compiler=no
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20278 echo "${ECHO_T}$ac_header_compiler" >&6; }
20280 # Is the header present?
20281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 #include <$ac_header>
20291 if { (ac_try="$ac_cpp conftest.$ac_ext"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20299 grep -v '^ *+' conftest.er1 >conftest.err
20301 cat conftest.err >&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } >/dev/null && {
20304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20305 test ! -s conftest.err
20307 ac_header_preproc=yes
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20312 ac_header_preproc=no
20315 rm -f conftest.err conftest.$ac_ext
20316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20317 echo "${ECHO_T}$ac_header_preproc" >&6; }
20319 # So? What about this header?
20320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20326 ac_header_preproc=yes
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 eval "$as_ac_Header=\$ac_header_preproc"
20351 ac_res=`eval echo '${'$as_ac_Header'}'`
20352 { echo "$as_me:$LINENO: result: $ac_res" >&5
20353 echo "${ECHO_T}$ac_res" >&6; }
20356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20362 { { echo "$as_me:$LINENO: error: required header file missing" >&5
20363 echo "$as_me: error: required header file missing" >&2;}
20364 { (exit 1); exit 1; }; }
20372 for ac_func in access atoi
20374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20388 #define $ac_func innocuous_$ac_func
20390 /* System header to define __stub macros and hopefully few prototypes,
20391 which can conflict with char $ac_func (); below.
20392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20393 <limits.h> exists even on freestanding compilers. */
20396 # include <limits.h>
20398 # include <assert.h>
20403 /* Override any GCC internal prototype to avoid an error.
20404 Use char because int might match the return type of a GCC
20405 builtin and then its argument prototype would still apply. */
20410 /* The GNU C library defines this for functions which it implements
20411 to always fail with ENOSYS. Some functions are actually named
20412 something starting with __ and the normal name is an alias. */
20413 #if defined __stub_$ac_func || defined __stub___$ac_func
20420 return $ac_func ();
20425 rm -f conftest.$ac_objext conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_link") 2>conftest.er1
20434 grep -v '^ *+' conftest.er1 >conftest.err
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest$ac_exeext &&
20442 $as_test_x conftest$ac_exeext; then
20443 eval "$as_ac_var=yes"
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20448 eval "$as_ac_var=no"
20451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20452 conftest$ac_exeext conftest.$ac_ext
20454 ac_res=`eval echo '${'$as_ac_var'}'`
20455 { echo "$as_me:$LINENO: result: $ac_res" >&5
20456 echo "${ECHO_T}$ac_res" >&6; }
20457 if test `eval echo '${'$as_ac_var'}'` = yes; then
20458 cat >>confdefs.h <<_ACEOF
20459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20463 { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
20464 echo "$as_me: error: required standard library function missing" >&2;}
20465 { (exit 1); exit 1; }; }
20471 for ac_func in snprintf
20473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20487 #define $ac_func innocuous_$ac_func
20489 /* System header to define __stub macros and hopefully few prototypes,
20490 which can conflict with char $ac_func (); below.
20491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20492 <limits.h> exists even on freestanding compilers. */
20495 # include <limits.h>
20497 # include <assert.h>
20502 /* Override any GCC internal prototype to avoid an error.
20503 Use char because int might match the return type of a GCC
20504 builtin and then its argument prototype would still apply. */
20509 /* The GNU C library defines this for functions which it implements
20510 to always fail with ENOSYS. Some functions are actually named
20511 something starting with __ and the normal name is an alias. */
20512 #if defined __stub_$ac_func || defined __stub___$ac_func
20519 return $ac_func ();
20524 rm -f conftest.$ac_objext conftest$ac_exeext
20525 if { (ac_try="$ac_link"
20526 case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_link") 2>conftest.er1
20533 grep -v '^ *+' conftest.er1 >conftest.err
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } && {
20538 test -z "$ac_c_werror_flag" ||
20539 test ! -s conftest.err
20540 } && test -s conftest$ac_exeext &&
20541 $as_test_x conftest$ac_exeext; then
20542 eval "$as_ac_var=yes"
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 eval "$as_ac_var=no"
20550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20551 conftest$ac_exeext conftest.$ac_ext
20553 ac_res=`eval echo '${'$as_ac_var'}'`
20554 { echo "$as_me:$LINENO: result: $ac_res" >&5
20555 echo "${ECHO_T}$ac_res" >&6; }
20556 if test `eval echo '${'$as_ac_var'}'` = yes; then
20557 cat >>confdefs.h <<_ACEOF
20558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20565 ac_config_files="$ac_config_files Makefile"
20567 cat >confcache <<\_ACEOF
20568 # This file is a shell script that caches the results of configure
20569 # tests run on this system so they can be shared between configure
20570 # scripts and configure runs, see configure's option --config-cache.
20571 # It is not useful on other systems. If it contains results you don't
20572 # want to keep, you may remove or edit it.
20574 # config.status only pays attention to the cache file if you give it
20575 # the --recheck option to rerun configure.
20577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20579 # following values.
20583 # The following way of writing the cache mishandles newlines in values,
20584 # but we know of no workaround that is simple, portable, and efficient.
20585 # So, we kill variables containing newlines.
20586 # Ultrix sh set writes to stderr and can't be redirected directly,
20587 # and sets the high bit in the cache file unless we assign to the vars.
20589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20590 eval ac_val=\$$ac_var
20594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20598 _ | IFS | as_nl) ;; #(
20599 *) $as_unset $ac_var ;;
20605 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20606 *${as_nl}ac_space=\ *)
20607 # `set' does not quote correctly, so add quotes (double-quote
20608 # substitution turns \\\\ into \\, and sed turns \\ into \).
20611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20614 # `set' quotes correctly as required by POSIX, so do not add quotes.
20615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20629 if test -w "$cache_file"; then
20630 test "x$cache_file" != "x/dev/null" &&
20631 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20632 echo "$as_me: updating cache $cache_file" >&6;}
20633 cat confcache >$cache_file
20635 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20636 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20642 # Let make expand exec_prefix.
20643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20645 DEFS=-DHAVE_CONFIG_H
20649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20650 # 1. Remove the extension, and $U if already installed.
20651 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20652 ac_i=`echo "$ac_i" | sed "$ac_script"`
20653 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20654 # will be set to the directory where LIBOBJS objects are built.
20655 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20656 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20658 LIBOBJS=$ac_libobjs
20660 LTLIBOBJS=$ac_ltlibobjs
20663 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20664 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20665 Usually this means the macro was only invoked conditionally." >&5
20666 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20667 Usually this means the macro was only invoked conditionally." >&2;}
20668 { (exit 1); exit 1; }; }
20670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20671 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20672 Usually this means the macro was only invoked conditionally." >&5
20673 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20674 Usually this means the macro was only invoked conditionally." >&2;}
20675 { (exit 1); exit 1; }; }
20677 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20678 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20679 Usually this means the macro was only invoked conditionally." >&5
20680 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20681 Usually this means the macro was only invoked conditionally." >&2;}
20682 { (exit 1); exit 1; }; }
20684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20685 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20686 Usually this means the macro was only invoked conditionally." >&5
20687 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20688 Usually this means the macro was only invoked conditionally." >&2;}
20689 { (exit 1); exit 1; }; }
20692 : ${CONFIG_STATUS=./config.status}
20693 ac_clean_files_save=$ac_clean_files
20694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20695 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20696 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20697 cat >$CONFIG_STATUS <<_ACEOF
20699 # Generated by $as_me.
20700 # Run this file to recreate the current configuration.
20701 # Compiler output produced by configure, useful for debugging
20702 # configure, is in config.log if it exists.
20705 ac_cs_recheck=false
20707 SHELL=\${CONFIG_SHELL-$SHELL}
20710 cat >>$CONFIG_STATUS <<\_ACEOF
20711 ## --------------------- ##
20712 ## M4sh Initialization. ##
20713 ## --------------------- ##
20715 # Be more Bourne compatible
20716 DUALCASE=1; export DUALCASE # for MKS sh
20717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20720 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20721 # is contrary to our usage. Disable this feature.
20722 alias -g '${1+"$@"}'='"$@"'
20723 setopt NO_GLOB_SUBST
20725 case `(set -o) 2>/dev/null` in
20726 *posix*) set -o posix ;;
20735 # Avoid depending upon Character Ranges.
20736 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20737 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20738 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20739 as_cr_digits='0123456789'
20740 as_cr_alnum=$as_cr_Letters$as_cr_digits
20742 # The user is always right.
20743 if test "${PATH_SEPARATOR+set}" != set; then
20744 echo "#! /bin/sh" >conf$$.sh
20745 echo "exit 0" >>conf$$.sh
20747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20755 # Support unset when possible.
20756 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20764 # We need space, tab and new line, in precisely that order. Quoting is
20765 # there to prevent editors from complaining about space-tab.
20766 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20767 # splitting by setting IFS to empty value.)
20772 # Find who we are. Look in the path if we contain no directory separator.
20774 *[\\/]* ) as_myself=$0 ;;
20775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20776 for as_dir in $PATH
20779 test -z "$as_dir" && as_dir=.
20780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20786 # We did not find ourselves, most probably we were run as `sh COMMAND'
20787 # in which case we are not to be found in the path.
20788 if test "x$as_myself" = x; then
20791 if test ! -f "$as_myself"; then
20792 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20793 { (exit 1); exit 1; }
20796 # Work around bugs in pre-3.0 UWIN ksh.
20797 for as_var in ENV MAIL MAILPATH
20798 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20806 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20807 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20808 LC_TELEPHONE LC_TIME
20810 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20811 eval $as_var=C; export $as_var
20813 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20817 # Required to use basename.
20818 if expr a : '\(a\)' >/dev/null 2>&1 &&
20819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20825 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20826 as_basename=basename
20832 # Name of the executable.
20833 as_me=`$as_basename -- "$0" ||
20834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20835 X"$0" : 'X\(//\)$' \| \
20836 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20838 sed '/^.*\/\([^/][^/]*\)\/*$/{
20857 as_lineno_1=$LINENO
20858 as_lineno_2=$LINENO
20859 test "x$as_lineno_1" != "x$as_lineno_2" &&
20860 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20862 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20863 # uniformly replaced by the line number. The first 'sed' inserts a
20864 # line-number line after each line using $LINENO; the second 'sed'
20865 # does the real work. The second script uses 'N' to pair each
20866 # line-number line with the line containing $LINENO, and appends
20867 # trailing '-' during substitution so that $LINENO is not a special
20868 # case at line end.
20869 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20870 # scripts with optimization help from Paolo Bonzini. Blame Lee
20871 # E. McMahon (1931-1989) for sed's syntax. :-)
20883 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20886 ' >$as_me.lineno &&
20887 chmod +x "$as_me.lineno" ||
20888 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20889 { (exit 1); exit 1; }; }
20891 # Don't try to exec as it changes $[0], causing all sort of problems
20892 # (the dirname of $[0] is not the place where we might find the
20893 # original and so on. Autoconf is especially sensitive to this).
20894 . "./$as_me.lineno"
20895 # Exit status is that of the last command.
20900 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20906 ECHO_C= ECHO_N= ECHO_T=
20907 case `echo -n x` in
20909 case `echo 'x\c'` in
20910 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20917 if expr a : '\(a\)' >/dev/null 2>&1 &&
20918 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20924 rm -f conf$$ conf$$.exe conf$$.file
20925 if test -d conf$$.dir; then
20926 rm -f conf$$.dir/conf$$.file
20932 if ln -s conf$$.file conf$$ 2>/dev/null; then
20934 # ... but there are two gotchas:
20935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20937 # In both cases, we have to default to `cp -p'.
20938 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20940 elif ln conf$$.file conf$$ 2>/dev/null; then
20945 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20946 rmdir conf$$.dir 2>/dev/null
20948 if mkdir -p . 2>/dev/null; then
20951 test -d ./-p && rmdir ./-p
20955 if test -x / >/dev/null 2>&1; then
20956 as_test_x='test -x'
20958 if ls -dL / >/dev/null 2>&1; then
20965 if test -d "$1"; then
20971 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20972 ???[sx]*):;;*)false;;esac;fi
20976 as_executable_p=$as_test_x
20978 # Sed expression to map a string onto a valid CPP name.
20979 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20981 # Sed expression to map a string onto a valid variable name.
20982 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20987 # Save the log message, to keep $[0] and so on meaningful, and to
20988 # report actual input values of CONFIG_FILES etc. instead of their
20989 # values after options handling.
20991 This file was extended by $as_me, which was
20992 generated by GNU Autoconf 2.61. Invocation command line was
20994 CONFIG_FILES = $CONFIG_FILES
20995 CONFIG_HEADERS = $CONFIG_HEADERS
20996 CONFIG_LINKS = $CONFIG_LINKS
20997 CONFIG_COMMANDS = $CONFIG_COMMANDS
21000 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21005 cat >>$CONFIG_STATUS <<_ACEOF
21006 # Files that config.status was made for.
21007 config_files="$ac_config_files"
21008 config_headers="$ac_config_headers"
21009 config_commands="$ac_config_commands"
21013 cat >>$CONFIG_STATUS <<\_ACEOF
21015 \`$as_me' instantiates files from templates according to the
21016 current configuration.
21018 Usage: $0 [OPTIONS] [FILE]...
21020 -h, --help print this help, then exit
21021 -V, --version print version number and configuration settings, then exit
21022 -q, --quiet do not print progress messages
21023 -d, --debug don't remove temporary files
21024 --recheck update $as_me by reconfiguring in the same conditions
21025 --file=FILE[:TEMPLATE]
21026 instantiate the configuration file FILE
21027 --header=FILE[:TEMPLATE]
21028 instantiate the configuration header FILE
21030 Configuration files:
21033 Configuration headers:
21036 Configuration commands:
21039 Report bugs to <bug-autoconf@gnu.org>."
21042 cat >>$CONFIG_STATUS <<_ACEOF
21045 configured by $0, generated by GNU Autoconf 2.61,
21046 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21048 Copyright (C) 2006 Free Software Foundation, Inc.
21049 This config.status script is free software; the Free Software Foundation
21050 gives unlimited permission to copy, distribute and modify it."
21057 cat >>$CONFIG_STATUS <<\_ACEOF
21058 # If no file are specified by the user, then we need to provide default
21059 # value. By we need to know if files were specified by the user.
21065 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21066 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21077 # Handling of the options.
21078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21080 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21081 echo "$ac_cs_version"; exit ;;
21082 --debug | --debu | --deb | --de | --d | -d )
21084 --file | --fil | --fi | --f )
21086 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21087 ac_need_defaults=false;;
21088 --header | --heade | --head | --hea )
21090 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21091 ac_need_defaults=false;;
21093 # Conflict between --help and --header
21094 { echo "$as_me: error: ambiguous option: $1
21095 Try \`$0 --help' for more information." >&2
21096 { (exit 1); exit 1; }; };;
21097 --help | --hel | -h )
21098 echo "$ac_cs_usage"; exit ;;
21099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21100 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21103 # This is an error.
21104 -*) { echo "$as_me: error: unrecognized option: $1
21105 Try \`$0 --help' for more information." >&2
21106 { (exit 1); exit 1; }; } ;;
21108 *) ac_config_targets="$ac_config_targets $1"
21109 ac_need_defaults=false ;;
21115 ac_configure_extra_args=
21117 if $ac_cs_silent; then
21119 ac_configure_extra_args="$ac_configure_extra_args --silent"
21123 cat >>$CONFIG_STATUS <<_ACEOF
21124 if \$ac_cs_recheck; then
21125 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21126 CONFIG_SHELL=$SHELL
21127 export CONFIG_SHELL
21128 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21132 cat >>$CONFIG_STATUS <<\_ACEOF
21136 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21137 ## Running $as_me. ##
21143 cat >>$CONFIG_STATUS <<_ACEOF
21147 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21151 cat >>$CONFIG_STATUS <<\_ACEOF
21153 # Handling of arguments.
21154 for ac_config_target in $ac_config_targets
21156 case $ac_config_target in
21157 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21158 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21159 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21161 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21163 { (exit 1); exit 1; }; };;
21168 # If the user did not use the arguments to specify the items to instantiate,
21169 # then the envvar interface is used. Set only those that are not.
21170 # We use the long form for the default assignment because of an extremely
21171 # bizarre bug on SunOS 4.1.3.
21172 if $ac_need_defaults; then
21173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21178 # Have a temporary directory for convenience. Make it in the build tree
21179 # simply because there is no reason against having it here, and in addition,
21180 # creating and moving files from /tmp can sometimes cause problems.
21181 # Hook for its removal unless debugging.
21182 # Note that there is a small window in which the directory will not be cleaned:
21183 # after its creation but before its name has been assigned to `$tmp'.
21187 trap 'exit_status=$?
21188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21190 trap '{ (exit 1); exit 1; }' 1 2 13 15
21192 # Create a (secure) tmp directory for tmp files.
21195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21196 test -n "$tmp" && test -d "$tmp"
21199 tmp=./conf$$-$RANDOM
21200 (umask 077 && mkdir "$tmp")
21203 echo "$me: cannot create a temporary directory in ." >&2
21204 { (exit 1); exit 1; }
21208 # Set up the sed scripts for CONFIG_FILES section.
21211 # No need to generate the scripts if there are no CONFIG_FILES.
21212 # This happens for instance when ./config.status config.h
21213 if test -n "$CONFIG_FILES"; then
21220 for ac_last_try in false false false false false :; do
21221 cat >conf$$subs.sed <<_ACEOF
21222 SHELL!$SHELL$ac_delim
21223 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21224 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21225 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21226 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21227 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21228 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21229 exec_prefix!$exec_prefix$ac_delim
21230 prefix!$prefix$ac_delim
21231 program_transform_name!$program_transform_name$ac_delim
21232 bindir!$bindir$ac_delim
21233 sbindir!$sbindir$ac_delim
21234 libexecdir!$libexecdir$ac_delim
21235 datarootdir!$datarootdir$ac_delim
21236 datadir!$datadir$ac_delim
21237 sysconfdir!$sysconfdir$ac_delim
21238 sharedstatedir!$sharedstatedir$ac_delim
21239 localstatedir!$localstatedir$ac_delim
21240 includedir!$includedir$ac_delim
21241 oldincludedir!$oldincludedir$ac_delim
21242 docdir!$docdir$ac_delim
21243 infodir!$infodir$ac_delim
21244 htmldir!$htmldir$ac_delim
21245 dvidir!$dvidir$ac_delim
21246 pdfdir!$pdfdir$ac_delim
21247 psdir!$psdir$ac_delim
21248 libdir!$libdir$ac_delim
21249 localedir!$localedir$ac_delim
21250 mandir!$mandir$ac_delim
21251 DEFS!$DEFS$ac_delim
21252 ECHO_C!$ECHO_C$ac_delim
21253 ECHO_N!$ECHO_N$ac_delim
21254 ECHO_T!$ECHO_T$ac_delim
21255 LIBS!$LIBS$ac_delim
21256 build_alias!$build_alias$ac_delim
21257 host_alias!$host_alias$ac_delim
21258 target_alias!$target_alias$ac_delim
21259 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21260 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21261 INSTALL_DATA!$INSTALL_DATA$ac_delim
21262 CYGPATH_W!$CYGPATH_W$ac_delim
21263 PACKAGE!$PACKAGE$ac_delim
21264 VERSION!$VERSION$ac_delim
21265 ACLOCAL!$ACLOCAL$ac_delim
21266 AUTOCONF!$AUTOCONF$ac_delim
21267 AUTOMAKE!$AUTOMAKE$ac_delim
21268 AUTOHEADER!$AUTOHEADER$ac_delim
21269 MAKEINFO!$MAKEINFO$ac_delim
21270 install_sh!$install_sh$ac_delim
21271 STRIP!$STRIP$ac_delim
21272 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21273 mkdir_p!$mkdir_p$ac_delim
21275 SET_MAKE!$SET_MAKE$ac_delim
21276 am__leading_dot!$am__leading_dot$ac_delim
21277 AMTAR!$AMTAR$ac_delim
21278 am__tar!$am__tar$ac_delim
21279 am__untar!$am__untar$ac_delim
21280 build!$build$ac_delim
21281 build_cpu!$build_cpu$ac_delim
21282 build_vendor!$build_vendor$ac_delim
21283 build_os!$build_os$ac_delim
21284 host!$host$ac_delim
21285 host_cpu!$host_cpu$ac_delim
21286 host_vendor!$host_vendor$ac_delim
21287 host_os!$host_os$ac_delim
21289 CFLAGS!$CFLAGS$ac_delim
21290 LDFLAGS!$LDFLAGS$ac_delim
21291 CPPFLAGS!$CPPFLAGS$ac_delim
21292 ac_ct_CC!$ac_ct_CC$ac_delim
21293 EXEEXT!$EXEEXT$ac_delim
21294 OBJEXT!$OBJEXT$ac_delim
21295 DEPDIR!$DEPDIR$ac_delim
21296 am__include!$am__include$ac_delim
21297 am__quote!$am__quote$ac_delim
21298 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21299 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21300 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21301 CCDEPMODE!$CCDEPMODE$ac_delim
21302 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21303 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21304 GREP!$GREP$ac_delim
21305 EGREP!$EGREP$ac_delim
21306 LN_S!$LN_S$ac_delim
21307 ECHO!$ECHO$ac_delim
21309 RANLIB!$RANLIB$ac_delim
21312 CXXFLAGS!$CXXFLAGS$ac_delim
21313 ac_ct_CXX!$ac_ct_CXX$ac_delim
21314 CXXDEPMODE!$CXXDEPMODE$ac_delim
21315 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21316 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21317 CXXCPP!$CXXCPP$ac_delim
21321 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21323 elif $ac_last_try; then
21324 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21325 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21326 { (exit 1); exit 1; }; }
21328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21332 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21333 if test -n "$ac_eof"; then
21334 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21335 ac_eof=`expr $ac_eof + 1`
21338 cat >>$CONFIG_STATUS <<_ACEOF
21339 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21343 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21344 s/^/s,@/; s/!/@,|#_!!_#|/
21347 s/'"$ac_delim"'$/,g/; t
21349 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21350 ' >>$CONFIG_STATUS <conf$$subs.sed
21351 rm -f conf$$subs.sed
21352 cat >>$CONFIG_STATUS <<_ACEOF
21358 for ac_last_try in false false false false false :; do
21359 cat >conf$$subs.sed <<_ACEOF
21360 FFLAGS!$FFLAGS$ac_delim
21361 ac_ct_F77!$ac_ct_F77$ac_delim
21362 LIBTOOL!$LIBTOOL$ac_delim
21363 LIBOBJS!$LIBOBJS$ac_delim
21364 LTLIBOBJS!$LTLIBOBJS$ac_delim
21367 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
21369 elif $ac_last_try; then
21370 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21371 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21372 { (exit 1); exit 1; }; }
21374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21378 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21379 if test -n "$ac_eof"; then
21380 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21381 ac_eof=`expr $ac_eof + 1`
21384 cat >>$CONFIG_STATUS <<_ACEOF
21385 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21389 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21390 s/^/s,@/; s/!/@,|#_!!_#|/
21393 s/'"$ac_delim"'$/,g/; t
21395 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21396 ' >>$CONFIG_STATUS <conf$$subs.sed
21397 rm -f conf$$subs.sed
21398 cat >>$CONFIG_STATUS <<_ACEOF
21405 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21406 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21407 # trailing colons and then remove the whole line if VPATH becomes empty
21408 # (actually we leave an empty line to preserve line numbers).
21409 if test "x$srcdir" = x.; then
21410 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21411 s/:*\$(srcdir):*/:/
21412 s/:*\${srcdir}:*/:/
21414 s/^\([^=]*=[ ]*\):*/\1/
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21421 fi # test -n "$CONFIG_FILES"
21424 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21427 :[FHLC]) ac_mode=$ac_tag; continue;;
21429 case $ac_mode$ac_tag in
21431 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21432 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21433 { (exit 1); exit 1; }; };;
21434 :[FH]-) ac_tag=-:-;;
21435 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21452 -) ac_f="$tmp/stdin";;
21453 *) # Look for the file first in the build tree, then in the source tree
21454 # (if the path is not absolute). The absolute path cannot be DOS-style,
21455 # because $ac_f cannot contain `:'.
21459 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21461 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21462 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21463 { (exit 1); exit 1; }; };;
21465 ac_file_inputs="$ac_file_inputs $ac_f"
21468 # Let's still pretend it is `configure' which instantiates (i.e., don't
21469 # use $as_me), people would be surprised to read:
21470 # /* config.h. Generated by config.status. */
21471 configure_input="Generated from "`IFS=:
21472 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21473 if test x"$ac_file" != x-; then
21474 configure_input="$ac_file. $configure_input"
21475 { echo "$as_me:$LINENO: creating $ac_file" >&5
21476 echo "$as_me: creating $ac_file" >&6;}
21480 *:-:* | *:-) cat >"$tmp/stdin";;
21485 ac_dir=`$as_dirname -- "$ac_file" ||
21486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21487 X"$ac_file" : 'X\(//\)[^/]' \| \
21488 X"$ac_file" : 'X\(//\)$' \| \
21489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21495 /^X\(\/\/\)[^/].*/{
21510 -*) as_dir=./$as_dir;;
21512 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21516 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21517 *) as_qdir=$as_dir;;
21519 as_dirs="'$as_qdir' $as_dirs"
21520 as_dir=`$as_dirname -- "$as_dir" ||
21521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21522 X"$as_dir" : 'X\(//\)[^/]' \| \
21523 X"$as_dir" : 'X\(//\)$' \| \
21524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21530 /^X\(\/\/\)[^/].*/{
21543 test -d "$as_dir" && break
21545 test -z "$as_dirs" || eval "mkdir $as_dirs"
21546 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21547 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21548 { (exit 1); exit 1; }; }; }
21552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21554 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21555 # A ".." for each directory in $ac_dir_suffix.
21556 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21557 case $ac_top_builddir_sub in
21558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21562 ac_abs_top_builddir=$ac_pwd
21563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21564 # for backward compatibility:
21565 ac_top_builddir=$ac_top_build_prefix
21568 .) # We are building in place.
21570 ac_top_srcdir=$ac_top_builddir_sub
21571 ac_abs_top_srcdir=$ac_pwd ;;
21572 [\\/]* | ?:[\\/]* ) # Absolute name.
21573 ac_srcdir=$srcdir$ac_dir_suffix;
21574 ac_top_srcdir=$srcdir
21575 ac_abs_top_srcdir=$srcdir ;;
21576 *) # Relative name.
21577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21578 ac_top_srcdir=$ac_top_build_prefix$srcdir
21579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21592 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21596 cat >>$CONFIG_STATUS <<\_ACEOF
21597 # If the template does not know about datarootdir, expand it.
21598 # FIXME: This hack should be removed a few years after 2.60.
21599 ac_datarootdir_hack=; ac_datarootdir_seen=
21601 case `sed -n '/datarootdir/ {
21610 ' $ac_file_inputs` in
21611 *datarootdir*) ac_datarootdir_seen=yes;;
21612 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21613 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21614 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21616 cat >>$CONFIG_STATUS <<_ACEOF
21617 ac_datarootdir_hack='
21618 s&@datadir@&$datadir&g
21619 s&@docdir@&$docdir&g
21620 s&@infodir@&$infodir&g
21621 s&@localedir@&$localedir&g
21622 s&@mandir@&$mandir&g
21623 s&\\\${datarootdir}&$datarootdir&g' ;;
21627 # Neutralize VPATH when `$srcdir' = `.'.
21628 # Shell code in configure.ac might set extrasub.
21629 # FIXME: do we really want to maintain this feature?
21630 cat >>$CONFIG_STATUS <<_ACEOF
21634 cat >>$CONFIG_STATUS <<\_ACEOF
21636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21637 s&@configure_input@&$configure_input&;t t
21638 s&@top_builddir@&$ac_top_builddir_sub&;t t
21639 s&@srcdir@&$ac_srcdir&;t t
21640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21641 s&@top_srcdir@&$ac_top_srcdir&;t t
21642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21643 s&@builddir@&$ac_builddir&;t t
21644 s&@abs_builddir@&$ac_abs_builddir&;t t
21645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21646 s&@INSTALL@&$ac_INSTALL&;t t
21647 $ac_datarootdir_hack
21648 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21650 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21651 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21652 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21653 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21654 which seems to be undefined. Please make sure it is defined." >&5
21655 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21656 which seems to be undefined. Please make sure it is defined." >&2;}
21660 -) cat "$tmp/out"; rm -f "$tmp/out";;
21661 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21670 # Transform confdefs.h into a sed script `conftest.defines', that
21671 # substitutes the proper values into config.h.in to produce config.h.
21672 rm -f conftest.defines conftest.tail
21673 # First, append a space to every undef/define line, to ease matching.
21674 echo 's/$/ /' >conftest.defines
21675 # Then, protect against being on the right side of a sed subst, or in
21676 # an unquoted here document, in config.status. If some macros were
21677 # called several times there might be several #defines for the same
21678 # symbol, which is useless. But do not sort them, since the last
21679 # AC_DEFINE must be honored.
21680 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21681 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21682 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21683 # PARAMS is the parameter list in the macro definition--in most cases, it's
21684 # just an empty string.
21685 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21686 ac_dB='\\)[ (].*,\\1define\\2'
21694 s/^[ ]*#[ ]*define[ ][ ]*//
21699 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21700 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21701 ' >>conftest.defines
21703 # Remove the space that was appended to ease matching.
21704 # Then replace #undef with comments. This is necessary, for
21705 # example, in the case of _POSIX_SOURCE, which is predefined and required
21706 # on some systems where configure will not decide to define it.
21707 # (The regexp can be short, since the line contains either #define or #undef.)
21709 s,^[ #]*u.*,/* & */,' >>conftest.defines
21711 # Break up conftest.defines:
21712 ac_max_sed_lines=50
21714 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21715 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21716 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21718 ac_in='$ac_file_inputs'
21719 ac_out='"$tmp/out1"'
21720 ac_nxt='"$tmp/out2"'
21724 # Write a here document:
21725 cat >>$CONFIG_STATUS <<_ACEOF
21726 # First, check the format of the line:
21727 cat >"\$tmp/defines.sed" <<\\CEOF
21728 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21729 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21733 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21735 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21736 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21737 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21738 grep . conftest.tail >/dev/null || break
21739 rm -f conftest.defines
21740 mv conftest.tail conftest.defines
21742 rm -f conftest.defines conftest.tail
21744 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21745 cat >>$CONFIG_STATUS <<\_ACEOF
21746 if test x"$ac_file" != x-; then
21747 echo "/* $configure_input */" >"$tmp/config.h"
21748 cat "$ac_result" >>"$tmp/config.h"
21749 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21750 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21751 echo "$as_me: $ac_file is unchanged" >&6;}
21754 mv "$tmp/config.h" $ac_file
21757 echo "/* $configure_input */"
21761 # Compute $ac_file's index in $config_headers.
21763 for _am_header in $config_headers :; do
21764 case $_am_header in
21765 $ac_file | $ac_file:* )
21768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21771 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21772 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21773 X$ac_file : 'X\(//\)[^/]' \| \
21774 X$ac_file : 'X\(//\)$' \| \
21775 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21781 /^X\(\/\/\)[^/].*/{
21793 s/.*/./; q'`/stamp-h$_am_stamp_count
21796 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21797 echo "$as_me: executing $ac_file commands" >&6;}
21802 case $ac_file$ac_mode in
21803 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21804 # Strip MF so we end up with the name of the file.
21805 mf=`echo "$mf" | sed -e 's/:.*$//'`
21806 # Check whether this is an Automake generated Makefile or not.
21807 # We used to match only the files named `Makefile.in', but
21808 # some people rename them; so instead we look at the file content.
21809 # Grep'ing the first line is not enough: some people post-process
21810 # each Makefile.in and add a new line on top of each file to say so.
21811 # So let's grep whole file.
21812 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21813 dirpart=`$as_dirname -- "$mf" ||
21814 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21815 X"$mf" : 'X\(//\)[^/]' \| \
21816 X"$mf" : 'X\(//\)$' \| \
21817 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21823 /^X\(\/\/\)[^/].*/{
21839 # Extract the definition of DEPDIR, am__include, and am__quote
21840 # from the Makefile without running `make'.
21841 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21842 test -z "$DEPDIR" && continue
21843 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21844 test -z "am__include" && continue
21845 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21846 # When using ansi2knr, U may be empty or an underscore; expand it
21847 U=`sed -n 's/^U = //p' < "$mf"`
21848 # Find all dependency output files, they are included files with
21849 # $(DEPDIR) in their names. We invoke sed twice because it is the
21850 # simplest approach to changing $(DEPDIR) to its actual value in the
21852 for file in `sed -n "
21853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21855 # Make sure the directory exists.
21856 test -f "$dirpart/$file" && continue
21857 fdir=`$as_dirname -- "$file" ||
21858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21859 X"$file" : 'X\(//\)[^/]' \| \
21860 X"$file" : 'X\(//\)$' \| \
21861 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21867 /^X\(\/\/\)[^/].*/{
21880 { as_dir=$dirpart/$fdir
21882 -*) as_dir=./$as_dir;;
21884 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21888 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21889 *) as_qdir=$as_dir;;
21891 as_dirs="'$as_qdir' $as_dirs"
21892 as_dir=`$as_dirname -- "$as_dir" ||
21893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21894 X"$as_dir" : 'X\(//\)[^/]' \| \
21895 X"$as_dir" : 'X\(//\)$' \| \
21896 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21902 /^X\(\/\/\)[^/].*/{
21915 test -d "$as_dir" && break
21917 test -z "$as_dirs" || eval "mkdir $as_dirs"
21918 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21919 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21920 { (exit 1); exit 1; }; }; }
21921 # echo "creating $dirpart/$file"
21922 echo '# dummy' > "$dirpart/$file"
21931 { (exit 0); exit 0; }
21933 chmod +x $CONFIG_STATUS
21934 ac_clean_files=$ac_clean_files_save
21937 # configure is writing to config.log, and then calls config.status.
21938 # config.status does its own redirection, appending to config.log.
21939 # Unfortunately, on DOS this fails, as config.log is still kept open
21940 # by configure, so config.status won't be able to write to it; its
21941 # output is simply discarded. So we exec the FD to /dev/null,
21942 # effectively closing config.log, so it can be properly (re)opened and
21943 # appended to by config.status. When coming back to configure, we
21944 # need to make the FD available again.
21945 if test "$no_create" != yes; then
21947 ac_config_status_args=
21948 test "$silent" = yes &&
21949 ac_config_status_args="$ac_config_status_args --quiet"
21951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21954 # would make configure fail if this is the last instruction.
21955 $ac_cs_success || { (exit 1); exit 1; }